@burdenoff/microfe-devportal 2026.720.5 → 2026.720.6

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 (33) hide show
  1. package/dist/devportal/hooks/usePackageUpload.d.ts.map +1 -1
  2. package/dist/devportal/hooks/usePackageUpload.js.map +1 -1
  3. package/dist/devportal/pages/CreateApiKeyPage.d.ts.map +1 -1
  4. package/dist/devportal/pages/CreateApiKeyPage.js +103 -104
  5. package/dist/devportal/pages/CreateApiKeyPage.js.map +1 -1
  6. package/dist/devportal/pages/CreateApplicationPage.d.ts.map +1 -1
  7. package/dist/devportal/pages/CreateApplicationPage.js +115 -116
  8. package/dist/devportal/pages/CreateApplicationPage.js.map +1 -1
  9. package/dist/devportal/pages/CreateOAuthClientPage.d.ts.map +1 -1
  10. package/dist/devportal/pages/CreateOAuthClientPage.js +129 -130
  11. package/dist/devportal/pages/CreateOAuthClientPage.js.map +1 -1
  12. package/dist/devportal/pages/CreateWebhookPage.js +1 -1
  13. package/dist/devportal/pages/CreateWebhookPage.js.map +1 -1
  14. package/dist/devportal/pages/DelegationsPage.js +214 -214
  15. package/dist/devportal/pages/DelegationsPage.js.map +1 -1
  16. package/dist/devportal/pages/EditApplicationPage.d.ts.map +1 -1
  17. package/dist/devportal/pages/EditApplicationPage.js +1 -1
  18. package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
  19. package/dist/devportal/pages/PublishPage.d.ts.map +1 -1
  20. package/dist/devportal/pages/PublishPage.js +106 -106
  21. package/dist/devportal/pages/PublishPage.js.map +1 -1
  22. package/dist/devportal/pages/SellerDashboardPage.d.ts.map +1 -1
  23. package/dist/devportal/pages/SellerDashboardPage.js +136 -137
  24. package/dist/devportal/pages/SellerDashboardPage.js.map +1 -1
  25. package/dist/devportal/pages/SellerItemsPage.d.ts.map +1 -1
  26. package/dist/devportal/pages/SellerItemsPage.js +190 -191
  27. package/dist/devportal/pages/SellerItemsPage.js.map +1 -1
  28. package/dist/devportal/pages/SellerOrdersPage.d.ts.map +1 -1
  29. package/dist/devportal/pages/SellerOrdersPage.js +138 -139
  30. package/dist/devportal/pages/SellerOrdersPage.js.map +1 -1
  31. package/dist/devportal/types/index.d.ts.map +1 -1
  32. package/dist/devportal/types/index.js.map +1 -1
  33. package/package.json +1 -1
@@ -3,13 +3,12 @@ import { EmptyState as t } from "../components/EmptyState.js";
3
3
  import { PageLayout as n } from "../components/PageLayout.js";
4
4
  import { PermissionGuard as r } from "../components/PermissionGuard.js";
5
5
  import "../components/index.js";
6
- import { DEVPORTAL_PERMISSIONS as i } from "../constants/permissions.js";
7
- import { useEffect as a, useMemo as o, useState as s } from "react";
8
- import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
- import { AlertCircle as l, ChevronDown as u, Loader2 as d, Package as f, ShoppingBag as p } from "lucide-react";
10
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
6
+ import { useEffect as i, useMemo as a, useState as o } from "react";
7
+ import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
+ import { AlertCircle as c, ChevronDown as l, Loader2 as u, Package as d, ShoppingBag as f } from "lucide-react";
9
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
11
10
  //#region src/devportal/pages/SellerOrdersPage.tsx
12
- var _ = {
11
+ var g = {
13
12
  PENDING: {
14
13
  label: "Pending",
15
14
  className: "text-status-warning-text bg-status-warning-bg-subtle"
@@ -38,7 +37,7 @@ var _ = {
38
37
  label: "Cancelled",
39
38
  className: "text-text-muted bg-bg-muted"
40
39
  }
41
- }, v = [
40
+ }, _ = [
42
41
  {
43
42
  value: "",
44
43
  label: "All Orders"
@@ -67,15 +66,15 @@ var _ = {
67
66
  value: "CANCELLED",
68
67
  label: "Cancelled"
69
68
  }
70
- ], y = "\n query SellerOrdersOrgs {\n myDeveloperOrganizations {\n id\n name\n slug\n }\n }\n", b = "\n query SellerOrders($organizationId: ID!, $status: SaleStatus, $limit: Int, $offset: Int) {\n developerOrgSales(\n organizationId: $organizationId\n status: $status\n limit: $limit\n offset: $offset\n ) {\n totalCount\n edges {\n node {\n id\n storeOrderId\n storeProductId\n grossAmount\n netAmount\n platformFee\n currency\n status\n buyerUserId\n purchasedAt\n refundAmount\n refundedAt\n refundReason\n discountAmount\n taxAmount\n }\n }\n pageInfo { hasNextPage hasPreviousPage }\n }\n }\n";
71
- function x(e, t) {
69
+ ], v = "\n query SellerOrdersOrgs {\n myDeveloperOrganizations {\n id\n name\n slug\n }\n }\n", y = "\n query SellerOrders($organizationId: ID!, $status: SaleStatus, $limit: Int, $offset: Int) {\n developerOrgSales(\n organizationId: $organizationId\n status: $status\n limit: $limit\n offset: $offset\n ) {\n totalCount\n edges {\n node {\n id\n storeOrderId\n storeProductId\n grossAmount\n netAmount\n platformFee\n currency\n status\n buyerUserId\n purchasedAt\n refundAmount\n refundedAt\n refundReason\n discountAmount\n taxAmount\n }\n }\n pageInfo { hasNextPage hasPreviousPage }\n }\n }\n";
70
+ function b(e, t) {
72
71
  return new Intl.NumberFormat("en-US", {
73
72
  style: "currency",
74
73
  currency: t || "USD",
75
74
  minimumFractionDigits: 2
76
75
  }).format(e);
77
76
  }
78
- function S(e) {
77
+ function x(e) {
79
78
  return new Date(e).toLocaleDateString("en-US", {
80
79
  year: "numeric",
81
80
  month: "short",
@@ -84,51 +83,51 @@ function S(e) {
84
83
  minute: "2-digit"
85
84
  });
86
85
  }
87
- function C(e, t) {
86
+ function S(e, t) {
88
87
  return e ? `#${e.slice(0, 8).toUpperCase()}` : `#${t.slice(0, 8).toUpperCase()}`;
89
88
  }
90
- var w = () => {
91
- let { apiGatewayUrl: w, authToken: T } = e(), { t: E } = c(), D = (e, t) => {
92
- let n = E(e);
89
+ var C = () => {
90
+ let { apiGatewayUrl: C, authToken: w } = e(), { t: T } = s(), E = (e, t) => {
91
+ let n = T(e);
93
92
  return n === e ? t : n;
94
- }, O = w ?? "/global/graphql", [k, A] = s(!0), [j, M] = s([]), [N, P] = s(null), [F, I] = s(!1), [L, R] = s([]), [z, B] = s(0), [V, H] = s(null), [U, W] = s(0), [G, K] = s(""), [q, J] = s(0), Y = o(() => ({
93
+ }, D = C ?? "/global/graphql", [O, k] = o(!0), [A, j] = o([]), [M, N] = o(null), [P, F] = o(!1), [I, L] = o([]), [R, z] = o(0), [B, V] = o(null), [H, U] = o(0), [W, G] = o(""), [K, q] = o(0), J = a(() => ({
95
94
  "Content-Type": "application/json",
96
- Authorization: `Bearer ${T ?? ""}`
97
- }), [T]);
98
- a(() => {
95
+ Authorization: `Bearer ${w ?? ""}`
96
+ }), [w]);
97
+ i(() => {
99
98
  let e = !1;
100
- return A(!0), (async () => {
99
+ return k(!0), (async () => {
101
100
  try {
102
- let t = await (await fetch(O, {
101
+ let t = await (await fetch(D, {
103
102
  method: "POST",
104
- headers: Y,
105
- body: JSON.stringify({ query: y })
103
+ headers: J,
104
+ body: JSON.stringify({ query: v })
106
105
  })).json();
107
106
  if (e) return;
108
107
  let n = t.data?.myDeveloperOrganizations ?? [];
109
- M(n), n.length > 0 && P(n[0].id);
108
+ j(n), n.length > 0 && N(n[0].id);
110
109
  } catch {} finally {
111
- e || A(!1);
110
+ e || k(!1);
112
111
  }
113
112
  })(), () => {
114
113
  e = !0;
115
114
  };
116
- }, [O, Y]), a(() => {
117
- if (!N) return;
115
+ }, [D, J]), i(() => {
116
+ if (!M) return;
118
117
  let e = !1;
119
- return I(!0), H(null), (async () => {
118
+ return F(!0), V(null), (async () => {
120
119
  try {
121
120
  let t = {
122
- organizationId: N,
121
+ organizationId: M,
123
122
  limit: 25,
124
- offset: q * 25
123
+ offset: K * 25
125
124
  };
126
- G && (t.status = G);
127
- let n = await fetch(O, {
125
+ W && (t.status = W);
126
+ let n = await fetch(D, {
128
127
  method: "POST",
129
- headers: Y,
128
+ headers: J,
130
129
  body: JSON.stringify({
131
- query: b,
130
+ query: y,
132
131
  variables: t
133
132
  })
134
133
  });
@@ -137,265 +136,265 @@ var w = () => {
137
136
  if (e) return;
138
137
  if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL error");
139
138
  let i = r.data?.developerOrgSales;
140
- B(i?.totalCount ?? 0), R((i?.edges ?? []).map((e) => ({
139
+ z(i?.totalCount ?? 0), L((i?.edges ?? []).map((e) => ({
141
140
  ...e.node,
142
141
  status: e.node.status
143
142
  })));
144
143
  } catch (t) {
145
- e || H(t instanceof Error ? t.message : "Failed to load orders");
144
+ e || V(t instanceof Error ? t.message : "Failed to load orders");
146
145
  } finally {
147
- e || I(!1);
146
+ e || F(!1);
148
147
  }
149
148
  })(), () => {
150
149
  e = !0;
151
150
  };
152
151
  }, [
153
- N,
154
- G,
155
- q,
156
- O,
157
- Y,
158
- U
152
+ M,
153
+ W,
154
+ K,
155
+ D,
156
+ J,
157
+ H
159
158
  ]);
160
- let X = o(() => L.filter((e) => e.storeProductId !== null), [L]), Z = o(() => {
161
- let e = X;
159
+ let Y = a(() => I.filter((e) => e.storeProductId !== null), [I]), X = a(() => {
160
+ let e = Y;
162
161
  return {
163
- total: z,
162
+ total: R,
164
163
  pending: e.filter((e) => e.status === "PENDING").length,
165
164
  completed: e.filter((e) => e.status === "COMPLETED").length,
166
165
  refunded: e.filter((e) => e.status === "REFUNDED" || e.status === "PARTIAL_REFUND").length
167
166
  };
168
- }, [X, z]);
169
- return k ? /* @__PURE__ */ h(n, {
170
- title: D("devportal.orders", "Orders"),
171
- children: /* @__PURE__ */ h("div", {
167
+ }, [Y, R]);
168
+ return O ? /* @__PURE__ */ m(n, {
169
+ title: E("devportal.orders", "Orders"),
170
+ children: /* @__PURE__ */ m("div", {
172
171
  className: "flex items-center justify-center py-20",
173
- children: /* @__PURE__ */ h(d, { className: "h-8 w-8 animate-spin text-text-secondary" })
172
+ children: /* @__PURE__ */ m(u, { className: "h-8 w-8 animate-spin text-text-secondary" })
174
173
  })
175
- }) : j.length === 0 ? /* @__PURE__ */ h(n, {
176
- title: D("devportal.orders", "Orders"),
177
- description: D("devportal.ordersDesc", "Orders placed by customers for your physical items."),
178
- children: /* @__PURE__ */ h(t, {
174
+ }) : A.length === 0 ? /* @__PURE__ */ m(n, {
175
+ title: E("devportal.orders", "Orders"),
176
+ description: E("devportal.ordersDesc", "Orders placed by customers for your physical items."),
177
+ children: /* @__PURE__ */ m(t, {
179
178
  illustration: "empty-generic",
180
- icon: /* @__PURE__ */ h(p, { size: 32 }),
181
- title: D("devportal.noOrgForOrders", "No organization yet"),
182
- description: D("devportal.createOrgToSell", "Create a developer organization to start selling physical products and receive orders.")
179
+ icon: /* @__PURE__ */ m(f, { size: 32 }),
180
+ title: E("devportal.noOrgForOrders", "No organization yet"),
181
+ description: E("devportal.createOrgToSell", "Create a developer organization to start selling physical products and receive orders.")
183
182
  })
184
- }) : /* @__PURE__ */ h(r, {
185
- permission: i.APP_READ,
186
- children: /* @__PURE__ */ g(n, {
187
- title: D("devportal.orders", "Orders"),
188
- description: D("devportal.ordersDesc", "Orders placed by customers for your physical items."),
183
+ }) : /* @__PURE__ */ m(r, {
184
+ authOnly: !0,
185
+ children: /* @__PURE__ */ h(n, {
186
+ title: E("devportal.orders", "Orders"),
187
+ description: E("devportal.ordersDesc", "Orders placed by customers for your physical items."),
189
188
  children: [
190
- /* @__PURE__ */ g("div", {
189
+ /* @__PURE__ */ h("div", {
191
190
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-6",
192
- children: [j.length > 1 && /* @__PURE__ */ g("div", {
191
+ children: [A.length > 1 && /* @__PURE__ */ h("div", {
193
192
  className: "relative",
194
- children: [/* @__PURE__ */ h("select", {
195
- value: N ?? "",
193
+ children: [/* @__PURE__ */ m("select", {
194
+ value: M ?? "",
196
195
  onChange: (e) => {
197
- P(e.target.value), J(0);
196
+ N(e.target.value), q(0);
198
197
  },
199
198
  className: "appearance-none rounded-md border border-border-seam bg-bg-surface pl-3 pr-8 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-primary",
200
- children: j.map((e) => /* @__PURE__ */ h("option", {
199
+ children: A.map((e) => /* @__PURE__ */ m("option", {
201
200
  value: e.id,
202
201
  children: e.name
203
202
  }, e.id))
204
- }), /* @__PURE__ */ h(u, {
203
+ }), /* @__PURE__ */ m(l, {
205
204
  size: 14,
206
205
  className: "pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-text-muted"
207
206
  })]
208
- }), /* @__PURE__ */ g("div", {
207
+ }), /* @__PURE__ */ h("div", {
209
208
  className: "relative",
210
- children: [/* @__PURE__ */ h("select", {
211
- value: G,
209
+ children: [/* @__PURE__ */ m("select", {
210
+ value: W,
212
211
  onChange: (e) => {
213
- K(e.target.value), J(0);
212
+ G(e.target.value), q(0);
214
213
  },
215
214
  className: "appearance-none rounded-md border border-border-seam bg-bg-surface pl-3 pr-8 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-primary",
216
- children: v.map((e) => /* @__PURE__ */ h("option", {
215
+ children: _.map((e) => /* @__PURE__ */ m("option", {
217
216
  value: e.value,
218
217
  children: e.label
219
218
  }, e.value))
220
- }), /* @__PURE__ */ h(u, {
219
+ }), /* @__PURE__ */ m(l, {
221
220
  size: 14,
222
221
  className: "pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-text-muted"
223
222
  })]
224
223
  })]
225
224
  }),
226
- /* @__PURE__ */ h("div", {
225
+ /* @__PURE__ */ m("div", {
227
226
  className: "grid grid-cols-2 gap-3 sm:grid-cols-4 mb-6",
228
227
  children: [
229
228
  {
230
229
  label: "Total Orders",
231
- value: Z.total
230
+ value: X.total
232
231
  },
233
232
  {
234
233
  label: "Pending",
235
- value: Z.pending,
234
+ value: X.pending,
236
235
  color: "text-status-warning-text"
237
236
  },
238
237
  {
239
238
  label: "Completed",
240
- value: Z.completed,
239
+ value: X.completed,
241
240
  color: "text-status-success-text"
242
241
  },
243
242
  {
244
243
  label: "Refunded",
245
- value: Z.refunded,
244
+ value: X.refunded,
246
245
  color: "text-status-error-text"
247
246
  }
248
- ].map((e) => /* @__PURE__ */ g("div", {
247
+ ].map((e) => /* @__PURE__ */ h("div", {
249
248
  className: "rounded-lg border border-border-seam bg-bg-surface px-4 py-3",
250
- children: [/* @__PURE__ */ h("p", {
249
+ children: [/* @__PURE__ */ m("p", {
251
250
  className: `text-xs ${e.color ?? "text-text-secondary"}`,
252
251
  children: e.label
253
- }), /* @__PURE__ */ h("p", {
252
+ }), /* @__PURE__ */ m("p", {
254
253
  className: "mt-1 text-xl font-semibold tabular-nums",
255
- children: F ? /* @__PURE__ */ h(d, { className: "h-4 w-4 animate-spin text-text-secondary" }) : e.value
254
+ children: P ? /* @__PURE__ */ m(u, { className: "h-4 w-4 animate-spin text-text-secondary" }) : e.value
256
255
  })]
257
256
  }, e.label))
258
257
  }),
259
- V && /* @__PURE__ */ g("div", {
258
+ B && /* @__PURE__ */ h("div", {
260
259
  className: "mb-4 flex items-center gap-3 rounded-lg border border-status-error-border/50 bg-status-error-bg/10 px-4 py-3 text-sm",
261
260
  children: [
262
- /* @__PURE__ */ h(l, {
261
+ /* @__PURE__ */ m(c, {
263
262
  size: 16,
264
263
  className: "shrink-0 text-status-error-text"
265
264
  }),
266
- /* @__PURE__ */ h("span", {
265
+ /* @__PURE__ */ m("span", {
267
266
  className: "text-status-error-text",
268
- children: V
267
+ children: B
269
268
  }),
270
- /* @__PURE__ */ h("button", {
271
- onClick: () => W((e) => e + 1),
269
+ /* @__PURE__ */ m("button", {
270
+ onClick: () => U((e) => e + 1),
272
271
  className: "ml-auto text-xs font-medium text-status-error-text underline",
273
272
  children: "Retry"
274
273
  })
275
274
  ]
276
275
  }),
277
- F ? /* @__PURE__ */ h("div", {
276
+ P ? /* @__PURE__ */ m("div", {
278
277
  className: "flex items-center justify-center py-16",
279
- children: /* @__PURE__ */ h(d, { className: "h-6 w-6 animate-spin text-text-secondary" })
280
- }) : X.length === 0 ? /* @__PURE__ */ h(t, {
278
+ children: /* @__PURE__ */ m(u, { className: "h-6 w-6 animate-spin text-text-secondary" })
279
+ }) : Y.length === 0 ? /* @__PURE__ */ m(t, {
281
280
  illustration: "empty-data",
282
- icon: /* @__PURE__ */ h(f, { size: 32 }),
283
- title: G ? D("devportal.noOrdersForFilter", "No orders match this filter") : D("devportal.noOrdersYet", "No orders yet"),
284
- description: G ? D("devportal.tryDifferentFilter", "Try selecting a different status filter") : D("devportal.ordersWillAppear", "Orders placed for your physical items will appear here once customers make purchases.")
285
- }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
281
+ icon: /* @__PURE__ */ m(d, { size: 32 }),
282
+ title: W ? E("devportal.noOrdersForFilter", "No orders match this filter") : E("devportal.noOrdersYet", "No orders yet"),
283
+ description: W ? E("devportal.tryDifferentFilter", "Try selecting a different status filter") : E("devportal.ordersWillAppear", "Orders placed for your physical items will appear here once customers make purchases.")
284
+ }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
286
285
  className: "overflow-x-auto rounded-lg border border-border-seam",
287
- children: /* @__PURE__ */ g("table", {
286
+ children: /* @__PURE__ */ h("table", {
288
287
  className: "w-full text-sm",
289
- children: [/* @__PURE__ */ h("thead", { children: /* @__PURE__ */ g("tr", {
288
+ children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
290
289
  className: "border-b border-border-seam bg-bg-sunken",
291
290
  children: [
292
- /* @__PURE__ */ h("th", {
291
+ /* @__PURE__ */ m("th", {
293
292
  className: "px-4 py-3 text-left font-medium text-text-secondary",
294
293
  children: "Order"
295
294
  }),
296
- /* @__PURE__ */ h("th", {
295
+ /* @__PURE__ */ m("th", {
297
296
  className: "px-4 py-3 text-left font-medium text-text-secondary",
298
297
  children: "Product ID"
299
298
  }),
300
- /* @__PURE__ */ h("th", {
299
+ /* @__PURE__ */ m("th", {
301
300
  className: "px-4 py-3 text-left font-medium text-text-secondary",
302
301
  children: "Buyer"
303
302
  }),
304
- /* @__PURE__ */ h("th", {
303
+ /* @__PURE__ */ m("th", {
305
304
  className: "px-4 py-3 text-right font-medium text-text-secondary",
306
305
  children: "Gross"
307
306
  }),
308
- /* @__PURE__ */ h("th", {
307
+ /* @__PURE__ */ m("th", {
309
308
  className: "px-4 py-3 text-right font-medium text-text-secondary",
310
309
  children: "Your Earnings"
311
310
  }),
312
- /* @__PURE__ */ h("th", {
311
+ /* @__PURE__ */ m("th", {
313
312
  className: "px-4 py-3 text-left font-medium text-text-secondary",
314
313
  children: "Status"
315
314
  }),
316
- /* @__PURE__ */ h("th", {
315
+ /* @__PURE__ */ m("th", {
317
316
  className: "px-4 py-3 text-left font-medium text-text-secondary",
318
317
  children: "Date"
319
318
  })
320
319
  ]
321
- }) }), /* @__PURE__ */ h("tbody", { children: X.map((e) => {
322
- let t = _[e.status] ?? _.PENDING;
323
- return /* @__PURE__ */ g("tr", {
320
+ }) }), /* @__PURE__ */ m("tbody", { children: Y.map((e) => {
321
+ let t = g[e.status] ?? g.PENDING;
322
+ return /* @__PURE__ */ h("tr", {
324
323
  className: "border-b border-border-subtle last:border-0 hover:bg-bg-sunken/50 transition-colors",
325
324
  children: [
326
- /* @__PURE__ */ h("td", {
325
+ /* @__PURE__ */ m("td", {
327
326
  className: "px-4 py-3",
328
- children: /* @__PURE__ */ h("span", {
327
+ children: /* @__PURE__ */ m("span", {
329
328
  className: "font-mono text-xs font-semibold text-text-primary",
330
- children: C(e.storeOrderId, e.id)
329
+ children: S(e.storeOrderId, e.id)
331
330
  })
332
331
  }),
333
- /* @__PURE__ */ h("td", {
332
+ /* @__PURE__ */ m("td", {
334
333
  className: "px-4 py-3",
335
- children: /* @__PURE__ */ h("span", {
334
+ children: /* @__PURE__ */ m("span", {
336
335
  className: "font-mono text-xs text-text-secondary",
337
336
  children: e.storeProductId ? `…${e.storeProductId.slice(-8)}` : "—"
338
337
  })
339
338
  }),
340
- /* @__PURE__ */ h("td", {
339
+ /* @__PURE__ */ m("td", {
341
340
  className: "px-4 py-3",
342
- children: /* @__PURE__ */ h("span", {
341
+ children: /* @__PURE__ */ m("span", {
343
342
  className: "font-mono text-xs text-text-secondary",
344
343
  children: `…${e.buyerUserId.slice(-8)}`
345
344
  })
346
345
  }),
347
- /* @__PURE__ */ h("td", {
346
+ /* @__PURE__ */ m("td", {
348
347
  className: "px-4 py-3 text-right tabular-nums text-text-primary",
349
- children: x(e.grossAmount, e.currency)
348
+ children: b(e.grossAmount, e.currency)
350
349
  }),
351
- /* @__PURE__ */ h("td", {
350
+ /* @__PURE__ */ m("td", {
352
351
  className: "px-4 py-3 text-right tabular-nums text-status-success-text",
353
- children: x(e.netAmount, e.currency)
352
+ children: b(e.netAmount, e.currency)
354
353
  }),
355
- /* @__PURE__ */ g("td", {
354
+ /* @__PURE__ */ h("td", {
356
355
  className: "px-4 py-3",
357
- children: [/* @__PURE__ */ h("span", {
356
+ children: [/* @__PURE__ */ m("span", {
358
357
  className: `rounded-full px-2.5 py-0.5 text-xs font-medium ${t.className}`,
359
358
  children: t.label
360
- }), e.refundAmount != null && e.refundAmount > 0 && /* @__PURE__ */ g("p", {
359
+ }), e.refundAmount != null && e.refundAmount > 0 && /* @__PURE__ */ h("p", {
361
360
  className: "mt-0.5 text-[11px] text-status-error-text",
362
361
  children: [
363
362
  "Refunded",
364
363
  " ",
365
- x(e.refundAmount, e.currency)
364
+ b(e.refundAmount, e.currency)
366
365
  ]
367
366
  })]
368
367
  }),
369
- /* @__PURE__ */ h("td", {
368
+ /* @__PURE__ */ m("td", {
370
369
  className: "px-4 py-3 text-xs text-text-secondary whitespace-nowrap",
371
- children: S(e.purchasedAt)
370
+ children: x(e.purchasedAt)
372
371
  })
373
372
  ]
374
373
  }, e.id);
375
374
  }) })]
376
375
  })
377
- }), z > 25 && /* @__PURE__ */ g("div", {
376
+ }), R > 25 && /* @__PURE__ */ h("div", {
378
377
  className: "mt-4 flex items-center justify-between text-sm",
379
- children: [/* @__PURE__ */ g("span", {
378
+ children: [/* @__PURE__ */ h("span", {
380
379
  className: "text-text-secondary",
381
380
  children: [
382
381
  "Showing ",
383
- q * 25 + 1,
382
+ K * 25 + 1,
384
383
  "–",
385
- Math.min((q + 1) * 25, z),
384
+ Math.min((K + 1) * 25, R),
386
385
  " of ",
387
- z
386
+ R
388
387
  ]
389
- }), /* @__PURE__ */ g("div", {
388
+ }), /* @__PURE__ */ h("div", {
390
389
  className: "flex items-center gap-2",
391
- children: [/* @__PURE__ */ h("button", {
392
- disabled: q === 0,
393
- onClick: () => J((e) => e - 1),
390
+ children: [/* @__PURE__ */ m("button", {
391
+ disabled: K === 0,
392
+ onClick: () => q((e) => e - 1),
394
393
  className: "rounded-md border border-border-seam px-3 py-1.5 text-xs font-medium text-text-secondary hover:bg-bg-sunken disabled:opacity-40 disabled:cursor-not-allowed transition-colors",
395
394
  children: "Previous"
396
- }), /* @__PURE__ */ h("button", {
397
- disabled: (q + 1) * 25 >= z,
398
- onClick: () => J((e) => e + 1),
395
+ }), /* @__PURE__ */ m("button", {
396
+ disabled: (K + 1) * 25 >= R,
397
+ onClick: () => q((e) => e + 1),
399
398
  className: "rounded-md border border-border-seam px-3 py-1.5 text-xs font-medium text-text-secondary hover:bg-bg-sunken disabled:opacity-40 disabled:cursor-not-allowed transition-colors",
400
399
  children: "Next"
401
400
  })]
@@ -406,6 +405,6 @@ var w = () => {
406
405
  });
407
406
  };
408
407
  //#endregion
409
- export { w as SellerOrdersPage };
408
+ export { C as SellerOrdersPage };
410
409
 
411
410
  //# sourceMappingURL=SellerOrdersPage.js.map