@burdenoff/microfe-channel 2026.520.1 → 2026.520.2

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 (26) hide show
  1. package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts.map +1 -1
  2. package/dist/channel/modules/channels/pages/ChannelDashboardPage.js +226 -224
  3. package/dist/channel/modules/channels/pages/ChannelDashboardPage.js.map +1 -1
  4. package/dist/channel/modules/channels/pages/ChannelDetailsPage.js +4 -4
  5. package/dist/channel/modules/channels/pages/ChannelDetailsPage.js.map +1 -1
  6. package/dist/channel/modules/channels/pages/ChannelSettingsPage.js +2 -2
  7. package/dist/channel/modules/channels/pages/ChannelSettingsPage.js.map +1 -1
  8. package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts.map +1 -1
  9. package/dist/channel/modules/channels/pages/ChannelUsersPage.js +65 -57
  10. package/dist/channel/modules/channels/pages/ChannelUsersPage.js.map +1 -1
  11. package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts.map +1 -1
  12. package/dist/channel/modules/channels/pages/ChannelsListPage.js +43 -41
  13. package/dist/channel/modules/channels/pages/ChannelsListPage.js.map +1 -1
  14. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js +1 -1
  15. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js.map +1 -1
  16. package/dist/channel/modules/channels/pages/ConnectionsListPage.js +1 -1
  17. package/dist/channel/modules/channels/pages/ConnectionsListPage.js.map +1 -1
  18. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts.map +1 -1
  19. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js +183 -179
  20. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js.map +1 -1
  21. package/dist/channel/modules/channels/pages/EditChannelPage.js +2 -2
  22. package/dist/channel/modules/channels/pages/EditChannelPage.js.map +1 -1
  23. package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts.map +1 -1
  24. package/dist/channel/modules/channels/pages/WebhookEventsPage.js +165 -159
  25. package/dist/channel/modules/channels/pages/WebhookEventsPage.js.map +1 -1
  26. package/package.json +1 -1
@@ -5,13 +5,13 @@ import { useChannel as i } from "../../../hooks/useChannels.js";
5
5
  import { PermissionGuard as a } from "../../../components/PermissionGuard.js";
6
6
  import { CHANNEL_PERMISSIONS as o } from "../../../constants/permissions.js";
7
7
  import { useExportWebhookEvents as s } from "../hooks/useExport.js";
8
- import { useCallback as c, useEffect as l, useState as u } from "react";
9
- import { useI18n as d } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
- import { AlertCircle as f, ArrowLeft as p, CheckCircle2 as m, ChevronLeft as h, ChevronRight as g, Clock as _, Download as v, Eye as y, EyeOff as b, Loader2 as x, RefreshCw as S, XCircle as C } from "lucide-react";
11
- import { useNavigate as w, useParams as T } from "react-router-dom";
12
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
8
+ import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
9
+ import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
+ import { AlertCircle as p, ArrowLeft as m, CheckCircle2 as h, ChevronLeft as g, ChevronRight as ee, Clock as _, Download as v, Eye as y, EyeOff as b, Loader2 as x, RefreshCw as S, XCircle as C } from "lucide-react";
11
+ import { useNavigate as te, useParams as ne } from "react-router-dom";
12
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
13
13
  //#region src/channel/modules/channels/pages/WebhookEventsPage.tsx
14
- var k = {
14
+ var D = {
15
15
  PENDING: {
16
16
  label: "Pending",
17
17
  color: "text-muted-foreground bg-muted",
@@ -25,7 +25,7 @@ var k = {
25
25
  COMPLETED: {
26
26
  label: "Completed",
27
27
  color: "text-status-success-text bg-status-success-bg-subtle",
28
- icon: m
28
+ icon: h
29
29
  },
30
30
  FAILED: {
31
31
  label: "Failed",
@@ -38,287 +38,293 @@ var k = {
38
38
  icon: b
39
39
  }
40
40
  };
41
- function A() {
42
- let { channelId: m } = T(), _ = w(), { t: C } = d(), A = (e, t) => {
41
+ function O() {
42
+ let { channelId: h } = ne(), _ = te(), { t: C } = f(), O = (e, t) => {
43
43
  let n = C(e);
44
44
  return n === e ? t : n;
45
- }, { organizationId: j } = e(), { triggerExport: M, isExporting: N, exportError: P } = s(j ?? void 0, m), [F, I] = u(!0), [L, R] = u([]), [z, B] = u(null), [V, H] = u(25), [U, W] = u(0), [G, K] = u([void 0]), [q, J] = u(0), { channel: Y, isLoading: X, error: Z, fetchWebhookEvents: Q } = i(m), $ = c(async (e) => {
46
- if (m) {
47
- I(!0);
45
+ }, { organizationId: k } = e(), { triggerExport: A, isExporting: j, exportError: M } = s(k ?? void 0, h), [N, P] = d(!0), [F, I] = d([]), [re, ie] = d(null), [L, R] = d(25), [z, B] = d(0), [V, H] = d([void 0]), [U, W] = d(0), { channel: G, isLoading: K, error: q, fetchWebhookEvents: J } = i(h), Y = c(async (e) => {
46
+ if (h) {
47
+ P(!0);
48
48
  try {
49
- let t = await Q(V, e);
50
- return R(t.items), W(t.total), t.nextCursor;
49
+ let t = await J(L, e);
50
+ return I(t.items), B(t.total), t.nextCursor;
51
51
  } finally {
52
- I(!1);
52
+ P(!1);
53
53
  }
54
54
  }
55
55
  }, [
56
- m,
57
- Q,
58
- V
59
- ]);
56
+ h,
57
+ J,
58
+ L
59
+ ]), X = u(Y), Z = u(V), Q = u(U);
60
+ l(() => {
61
+ X.current = Y, Z.current = V, Q.current = U;
62
+ });
63
+ let $ = u(!0);
60
64
  l(() => {
61
65
  Promise.resolve().then(() => {
62
- K([void 0]), J(0), $(void 0);
66
+ H([void 0]), W(0), X.current(void 0);
63
67
  });
64
- }, [V]), l(() => {
65
- Promise.resolve().then(() => $(G[q]));
66
- }, [q]), l(() => {
67
- Promise.resolve().then(() => $(void 0));
68
- }, []);
69
- let ee = c(async () => {
70
- let e = await $(G[q]);
71
- e && K((t) => {
68
+ }, [L]), l(() => {
69
+ if ($.current) {
70
+ $.current = !1;
71
+ return;
72
+ }
73
+ Promise.resolve().then(() => X.current(Z.current[U]));
74
+ }, [U]);
75
+ let ae = c(async () => {
76
+ let e = await Y(V[U]);
77
+ e && H((t) => {
72
78
  let n = [...t];
73
- return n[q + 1] || (n[q + 1] = e), n;
74
- }), J((e) => e + 1);
79
+ return n[U + 1] || (n[U + 1] = e), n;
80
+ }), W((e) => e + 1);
75
81
  }, [
76
- G,
77
- q,
78
- $
79
- ]), te = c(() => {
80
- let e = q - 1;
81
- J(e), $(G[e]);
82
+ V,
83
+ U,
84
+ Y
85
+ ]), oe = c(() => {
86
+ let e = U - 1;
87
+ W(e), Y(V[e]);
82
88
  }, [
83
- G,
84
- q,
85
- $
86
- ]), ne = L.length === V, re = q > 0;
89
+ V,
90
+ U,
91
+ Y
92
+ ]), se = F.length === L, ce = U > 0;
87
93
  r({
88
94
  query: n,
89
- variables: { channelId: m },
95
+ variables: { channelId: h },
90
96
  operationName: "WebhookReceived",
91
- enabled: !!m,
92
- onData: () => {
93
- t("webhook.received", { channelId: m }), $(G[q]);
94
- },
95
- pollFn: () => {
96
- $(G[q]);
97
- },
97
+ enabled: !!h,
98
+ onData: c(() => {
99
+ t("webhook.received", { channelId: h }), X.current(Z.current[Q.current]);
100
+ }, [h]),
101
+ pollFn: c(() => {
102
+ X.current(Z.current[Q.current]);
103
+ }, []),
98
104
  pollIntervalMs: 6e4
99
105
  });
100
- let ie = (e) => k[e] || k.PENDING;
101
- return X ? /* @__PURE__ */ D("div", {
106
+ let le = (e) => D[e] || D.PENDING;
107
+ return K ? /* @__PURE__ */ T("div", {
102
108
  className: "flex items-center justify-center min-h-screen",
103
- children: /* @__PURE__ */ D(x, {
109
+ children: /* @__PURE__ */ T(x, {
104
110
  size: 32,
105
111
  className: "animate-spin text-accent-primary"
106
112
  })
107
- }) : Z || !Y ? /* @__PURE__ */ D("div", {
113
+ }) : q || !G ? /* @__PURE__ */ T("div", {
108
114
  className: "p-6",
109
- children: /* @__PURE__ */ O("div", {
115
+ children: /* @__PURE__ */ E("div", {
110
116
  className: "flex items-center gap-3 p-4 bg-status-error-bg-subtle border border-status-error-border rounded-lg",
111
117
  children: [
112
- /* @__PURE__ */ D(f, {
118
+ /* @__PURE__ */ T(p, {
113
119
  size: 20,
114
120
  className: "text-status-error-text"
115
121
  }),
116
- /* @__PURE__ */ D("div", { children: /* @__PURE__ */ D("p", {
122
+ /* @__PURE__ */ T("div", { children: /* @__PURE__ */ T("p", {
117
123
  className: "text-sm font-medium text-status-error-text",
118
- children: Z || "Channel not found"
124
+ children: q || "Channel not found"
119
125
  }) }),
120
- /* @__PURE__ */ D("button", {
121
- onClick: () => _(`/channels/${m}`),
126
+ /* @__PURE__ */ T("button", {
127
+ onClick: () => _(`/channels/${h}`),
122
128
  className: "ml-auto px-3 py-1 text-sm text-status-error-text hover:bg-status-error-bg-subtle rounded transition-colors",
123
129
  children: "Go Back"
124
130
  })
125
131
  ]
126
132
  })
127
- }) : /* @__PURE__ */ D(a, {
133
+ }) : /* @__PURE__ */ T(a, {
128
134
  permission: o.CHANNEL_WEBHOOK_READ,
129
- children: /* @__PURE__ */ O("div", {
135
+ children: /* @__PURE__ */ E("div", {
130
136
  className: "space-y-6 p-3 sm:p-6",
131
137
  children: [
132
- /* @__PURE__ */ O("div", {
138
+ /* @__PURE__ */ E("div", {
133
139
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
134
- children: [/* @__PURE__ */ O("div", {
140
+ children: [/* @__PURE__ */ E("div", {
135
141
  className: "flex items-center gap-3",
136
- children: [/* @__PURE__ */ D("button", {
137
- onClick: () => _(`/channels/${m}`),
138
- "aria-label": A("channel.backToChannel", "Back to channel"),
142
+ children: [/* @__PURE__ */ T("button", {
143
+ onClick: () => _(`/channels/${h}`),
144
+ "aria-label": O("channel.backToChannel", "Back to channel"),
139
145
  className: "p-2 text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors",
140
- children: /* @__PURE__ */ D(p, {
146
+ children: /* @__PURE__ */ T(m, {
141
147
  size: 20,
142
148
  "aria-hidden": "true"
143
149
  })
144
- }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h1", {
150
+ }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h1", {
145
151
  className: "text-xl sm:text-2xl font-bold text-foreground",
146
- children: A("channel.webhookEvents", "Webhook Events")
147
- }), /* @__PURE__ */ O("p", {
152
+ children: O("channel.webhookEvents", "Webhook Events")
153
+ }), /* @__PURE__ */ E("p", {
148
154
  className: "text-sm text-muted-foreground mt-1",
149
- children: [Y.name, " - Event history"]
155
+ children: [G.name, " - Event history"]
150
156
  })] })]
151
- }), /* @__PURE__ */ O("div", {
157
+ }), /* @__PURE__ */ E("div", {
152
158
  className: "flex items-center gap-3",
153
159
  children: [
154
- /* @__PURE__ */ O("select", {
155
- value: V,
156
- onChange: (e) => H(Number(e.target.value)),
160
+ /* @__PURE__ */ E("select", {
161
+ value: L,
162
+ onChange: (e) => R(Number(e.target.value)),
157
163
  className: "px-3 py-2 text-sm bg-surface border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-action-primary-bg/50 text-foreground",
158
164
  children: [
159
- /* @__PURE__ */ D("option", {
165
+ /* @__PURE__ */ T("option", {
160
166
  value: 10,
161
167
  children: "10 results"
162
168
  }),
163
- /* @__PURE__ */ D("option", {
169
+ /* @__PURE__ */ T("option", {
164
170
  value: 25,
165
171
  children: "25 results"
166
172
  }),
167
- /* @__PURE__ */ D("option", {
173
+ /* @__PURE__ */ T("option", {
168
174
  value: 50,
169
175
  children: "50 results"
170
176
  }),
171
- /* @__PURE__ */ D("option", {
177
+ /* @__PURE__ */ T("option", {
172
178
  value: 100,
173
179
  children: "100 results"
174
180
  })
175
181
  ]
176
182
  }),
177
- /* @__PURE__ */ O("button", {
178
- onClick: () => void $(G[q]),
179
- disabled: F,
183
+ /* @__PURE__ */ E("button", {
184
+ onClick: () => void Y(V[U]),
185
+ disabled: N,
180
186
  className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors disabled:opacity-50",
181
- children: [/* @__PURE__ */ D(S, {
187
+ children: [/* @__PURE__ */ T(S, {
182
188
  size: 16,
183
- className: F ? "animate-spin" : ""
184
- }), A("channel.refresh", "Refresh")]
189
+ className: N ? "animate-spin" : ""
190
+ }), O("channel.refresh", "Refresh")]
185
191
  }),
186
- /* @__PURE__ */ D(a, {
192
+ /* @__PURE__ */ T(a, {
187
193
  permission: o.CHANNEL_ADMIN,
188
- children: /* @__PURE__ */ O("button", {
189
- onClick: () => void M(),
190
- disabled: N,
194
+ children: /* @__PURE__ */ E("button", {
195
+ onClick: () => void A(),
196
+ disabled: j,
191
197
  className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-fg border border-border hover:bg-bg-elevated rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
192
- title: A("channel.exportCSV", "Export to CSV"),
193
- children: [N ? /* @__PURE__ */ D(x, {
198
+ title: O("channel.exportCSV", "Export to CSV"),
199
+ children: [j ? /* @__PURE__ */ T(x, {
194
200
  size: 16,
195
201
  className: "animate-spin"
196
- }) : /* @__PURE__ */ D(v, { size: 16 }), A("channel.export", "Export")]
202
+ }) : /* @__PURE__ */ T(v, { size: 16 }), O("channel.export", "Export")]
197
203
  })
198
204
  })
199
205
  ]
200
206
  })]
201
207
  }),
202
- P && /* @__PURE__ */ O("div", {
208
+ M && /* @__PURE__ */ E("div", {
203
209
  className: "p-4 bg-status-error-bg-subtle border border-status-error-border rounded-lg flex items-center gap-3",
204
- children: [/* @__PURE__ */ D(f, {
210
+ children: [/* @__PURE__ */ T(p, {
205
211
  size: 20,
206
212
  className: "text-status-error-text"
207
- }), /* @__PURE__ */ D("p", {
213
+ }), /* @__PURE__ */ T("p", {
208
214
  className: "text-sm text-status-error-text flex-1",
209
- children: P
215
+ children: M
210
216
  })]
211
217
  }),
212
- /* @__PURE__ */ D("div", {
218
+ /* @__PURE__ */ T("div", {
213
219
  className: "p-4 bg-surface border border-border rounded-lg",
214
- children: /* @__PURE__ */ D("p", {
220
+ children: /* @__PURE__ */ T("p", {
215
221
  className: "text-sm text-muted-foreground",
216
222
  children: "Webhook events show all incoming webhooks received by this channel. Data is retained for 7 days."
217
223
  })
218
224
  }),
219
- /* @__PURE__ */ D("div", {
225
+ /* @__PURE__ */ T("div", {
220
226
  className: "bg-surface border border-border rounded-lg overflow-hidden",
221
- children: /* @__PURE__ */ D("div", {
227
+ children: /* @__PURE__ */ T("div", {
222
228
  className: "overflow-x-auto min-w-full",
223
- children: /* @__PURE__ */ O("table", {
229
+ children: /* @__PURE__ */ E("table", {
224
230
  className: "w-full min-w-[600px]",
225
- children: [/* @__PURE__ */ D("thead", {
231
+ children: [/* @__PURE__ */ T("thead", {
226
232
  className: "bg-muted/50 border-b border-border",
227
- children: /* @__PURE__ */ O("tr", { children: [
228
- /* @__PURE__ */ D("th", {
233
+ children: /* @__PURE__ */ E("tr", { children: [
234
+ /* @__PURE__ */ T("th", {
229
235
  className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
230
- children: A("channel.status", "Status")
236
+ children: O("channel.status", "Status")
231
237
  }),
232
- /* @__PURE__ */ D("th", {
238
+ /* @__PURE__ */ T("th", {
233
239
  className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
234
- children: A("channel.eventType", "Event Type")
240
+ children: O("channel.eventType", "Event Type")
235
241
  }),
236
- /* @__PURE__ */ D("th", {
242
+ /* @__PURE__ */ T("th", {
237
243
  className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
238
- children: A("channel.duplicate", "Duplicate")
244
+ children: O("channel.duplicate", "Duplicate")
239
245
  }),
240
- /* @__PURE__ */ D("th", {
246
+ /* @__PURE__ */ T("th", {
241
247
  className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
242
- children: A("channel.processedAt", "Processed At")
248
+ children: O("channel.processedAt", "Processed At")
243
249
  }),
244
- /* @__PURE__ */ D("th", {
250
+ /* @__PURE__ */ T("th", {
245
251
  className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
246
- children: A("channel.error", "Error")
252
+ children: O("channel.error", "Error")
247
253
  }),
248
- /* @__PURE__ */ D("th", {
254
+ /* @__PURE__ */ T("th", {
249
255
  className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
250
- children: A("channel.actions", "Actions")
256
+ children: O("channel.actions", "Actions")
251
257
  })
252
258
  ] })
253
- }), /* @__PURE__ */ D("tbody", {
259
+ }), /* @__PURE__ */ T("tbody", {
254
260
  className: "divide-y divide-border",
255
- children: L.length === 0 ? /* @__PURE__ */ D("tr", { children: /* @__PURE__ */ D("td", {
261
+ children: F.length === 0 ? /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
256
262
  colSpan: 6,
257
263
  className: "px-4 py-8 text-center text-muted-foreground",
258
- children: A("channel.noWebhookEventsFound", "No webhook events found")
259
- }) }) : L.map((e) => {
260
- let t = ie(e.status), n = t.icon, r = z === e.id;
261
- return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ O("tr", {
264
+ children: O("channel.noWebhookEventsFound", "No webhook events found")
265
+ }) }) : F.map((e) => {
266
+ let t = le(e.status), n = t.icon, r = re === e.id;
267
+ return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("tr", {
262
268
  className: "hover:bg-muted/30 transition-colors",
263
269
  children: [
264
- /* @__PURE__ */ D("td", {
270
+ /* @__PURE__ */ T("td", {
265
271
  className: "px-4 py-3",
266
- children: /* @__PURE__ */ O("div", {
272
+ children: /* @__PURE__ */ E("div", {
267
273
  className: "flex items-center gap-2",
268
- children: [/* @__PURE__ */ D(n, {
274
+ children: [/* @__PURE__ */ T(n, {
269
275
  size: 14,
270
276
  className: t.color.split(" ")[0]
271
- }), /* @__PURE__ */ D("span", {
277
+ }), /* @__PURE__ */ T("span", {
272
278
  className: `text-sm font-medium ${t.color}`,
273
279
  children: t.label
274
280
  })]
275
281
  })
276
282
  }),
277
- /* @__PURE__ */ D("td", {
283
+ /* @__PURE__ */ T("td", {
278
284
  className: "px-4 py-3 text-sm font-mono text-foreground",
279
285
  children: e.eventType
280
286
  }),
281
- /* @__PURE__ */ D("td", {
287
+ /* @__PURE__ */ T("td", {
282
288
  className: "px-4 py-3",
283
- children: e.isDuplicate ? /* @__PURE__ */ D("span", {
289
+ children: e.isDuplicate ? /* @__PURE__ */ T("span", {
284
290
  className: "text-xs text-status-warning-text bg-status-warning-bg-subtle px-2 py-1 rounded",
285
291
  children: "Duplicate"
286
- }) : /* @__PURE__ */ D("span", {
292
+ }) : /* @__PURE__ */ T("span", {
287
293
  className: "text-xs text-muted-foreground",
288
294
  children: "No"
289
295
  })
290
296
  }),
291
- /* @__PURE__ */ D("td", {
297
+ /* @__PURE__ */ T("td", {
292
298
  className: "px-4 py-3 text-sm text-muted-foreground",
293
299
  children: e.processedAt ? new Date(e.processedAt).toLocaleString() : "-"
294
300
  }),
295
- /* @__PURE__ */ D("td", {
301
+ /* @__PURE__ */ T("td", {
296
302
  className: "px-4 py-3 text-sm text-status-error-text max-w-xs truncate",
297
303
  children: e.errorMessage || "-"
298
304
  }),
299
- /* @__PURE__ */ D("td", {
305
+ /* @__PURE__ */ T("td", {
300
306
  className: "px-4 py-3",
301
- children: /* @__PURE__ */ D("button", {
302
- onClick: () => B(r ? null : e.id),
303
- "aria-label": r ? A("channel.hidePayload", "Hide payload") : A("channel.viewPayload", "View payload"),
307
+ children: /* @__PURE__ */ T("button", {
308
+ onClick: () => ie(r ? null : e.id),
309
+ "aria-label": r ? O("channel.hidePayload", "Hide payload") : O("channel.viewPayload", "View payload"),
304
310
  "aria-expanded": r,
305
311
  className: "p-1 text-muted-foreground hover:text-foreground hover:bg-muted rounded transition-colors",
306
- children: D(r ? b : y, {
312
+ children: T(r ? b : y, {
307
313
  size: 16,
308
314
  "aria-hidden": "true"
309
315
  })
310
316
  })
311
317
  })
312
318
  ]
313
- }, e.id), r && /* @__PURE__ */ D("tr", { children: /* @__PURE__ */ D("td", {
319
+ }, e.id), r && /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
314
320
  colSpan: 6,
315
321
  className: "px-4 py-3 bg-muted/30",
316
- children: /* @__PURE__ */ O("div", {
322
+ children: /* @__PURE__ */ E("div", {
317
323
  className: "text-xs",
318
- children: [/* @__PURE__ */ O("p", {
324
+ children: [/* @__PURE__ */ E("p", {
319
325
  className: "text-muted-foreground mb-1",
320
- children: [A("channel.payload", "Payload"), ":"]
321
- }), /* @__PURE__ */ D("pre", {
326
+ children: [O("channel.payload", "Payload"), ":"]
327
+ }), /* @__PURE__ */ T("pre", {
322
328
  className: "bg-surface p-2 rounded border border-border overflow-auto",
323
329
  children: JSON.stringify(e.payload, null, 2)
324
330
  })]
@@ -329,37 +335,37 @@ function A() {
329
335
  })
330
336
  })
331
337
  }),
332
- /* @__PURE__ */ O("div", {
338
+ /* @__PURE__ */ E("div", {
333
339
  className: "flex items-center justify-between",
334
- children: [/* @__PURE__ */ D("p", {
340
+ children: [/* @__PURE__ */ T("p", {
335
341
  className: "text-sm text-muted-foreground",
336
- children: U > 0 && /* @__PURE__ */ O(E, { children: [
337
- A("channel.page", "Page"),
342
+ children: z > 0 && /* @__PURE__ */ E(w, { children: [
343
+ O("channel.page", "Page"),
338
344
  " ",
339
- /* @__PURE__ */ D("span", {
345
+ /* @__PURE__ */ T("span", {
340
346
  className: "font-medium",
341
- children: q + 1
347
+ children: U + 1
342
348
  }),
343
349
  " · ",
344
- A("channel.totalRecords", "Total"),
350
+ O("channel.totalRecords", "Total"),
345
351
  ": ",
346
- /* @__PURE__ */ D("span", {
352
+ /* @__PURE__ */ T("span", {
347
353
  className: "font-medium",
348
- children: U
354
+ children: z
349
355
  })
350
356
  ] })
351
- }), /* @__PURE__ */ O("div", {
357
+ }), /* @__PURE__ */ E("div", {
352
358
  className: "flex items-center gap-2",
353
- children: [/* @__PURE__ */ O("button", {
354
- onClick: te,
355
- disabled: !re || F,
359
+ children: [/* @__PURE__ */ E("button", {
360
+ onClick: oe,
361
+ disabled: !ce || N,
356
362
  className: "flex items-center gap-1 px-3 py-1.5 text-sm border border-border rounded-lg hover:bg-muted transition-colors disabled:opacity-40 disabled:cursor-not-allowed",
357
- children: [/* @__PURE__ */ D(h, { size: 16 }), A("channel.previous", "Previous")]
358
- }), /* @__PURE__ */ O("button", {
359
- onClick: () => void ee(),
360
- disabled: !ne || F,
363
+ children: [/* @__PURE__ */ T(g, { size: 16 }), O("channel.previous", "Previous")]
364
+ }), /* @__PURE__ */ E("button", {
365
+ onClick: () => void ae(),
366
+ disabled: !se || N,
361
367
  className: "flex items-center gap-1 px-3 py-1.5 text-sm border border-border rounded-lg hover:bg-muted transition-colors disabled:opacity-40 disabled:cursor-not-allowed",
362
- children: [A("channel.next", "Next"), /* @__PURE__ */ D(g, { size: 16 })]
368
+ children: [O("channel.next", "Next"), /* @__PURE__ */ T(ee, { size: 16 })]
363
369
  })]
364
370
  })]
365
371
  })
@@ -368,6 +374,6 @@ function A() {
368
374
  });
369
375
  }
370
376
  //#endregion
371
- export { A as WebhookEventsPage };
377
+ export { O as WebhookEventsPage };
372
378
 
373
379
  //# sourceMappingURL=WebhookEventsPage.js.map