@burdenoff/microfe-devportal 2026.720.4 → 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.
- package/dist/devportal/hooks/usePackageUpload.d.ts.map +1 -1
- package/dist/devportal/hooks/usePackageUpload.js.map +1 -1
- package/dist/devportal/pages/ApplicationDetailPage.d.ts.map +1 -1
- package/dist/devportal/pages/ApplicationDetailPage.js +3 -3
- package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
- package/dist/devportal/pages/CreateApiKeyPage.d.ts.map +1 -1
- package/dist/devportal/pages/CreateApiKeyPage.js +103 -104
- package/dist/devportal/pages/CreateApiKeyPage.js.map +1 -1
- package/dist/devportal/pages/CreateApplicationPage.d.ts.map +1 -1
- package/dist/devportal/pages/CreateApplicationPage.js +115 -116
- package/dist/devportal/pages/CreateApplicationPage.js.map +1 -1
- package/dist/devportal/pages/CreateOAuthClientPage.d.ts.map +1 -1
- package/dist/devportal/pages/CreateOAuthClientPage.js +129 -130
- package/dist/devportal/pages/CreateOAuthClientPage.js.map +1 -1
- package/dist/devportal/pages/CreateWebhookPage.js +1 -1
- package/dist/devportal/pages/CreateWebhookPage.js.map +1 -1
- package/dist/devportal/pages/DelegationsPage.js +214 -214
- package/dist/devportal/pages/DelegationsPage.js.map +1 -1
- package/dist/devportal/pages/EditApplicationPage.d.ts.map +1 -1
- package/dist/devportal/pages/EditApplicationPage.js +1 -1
- package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
- package/dist/devportal/pages/PublishPage.d.ts.map +1 -1
- package/dist/devportal/pages/PublishPage.js +106 -106
- package/dist/devportal/pages/PublishPage.js.map +1 -1
- package/dist/devportal/pages/SellerDashboardPage.d.ts.map +1 -1
- package/dist/devportal/pages/SellerDashboardPage.js +136 -137
- package/dist/devportal/pages/SellerDashboardPage.js.map +1 -1
- package/dist/devportal/pages/SellerItemsPage.d.ts.map +1 -1
- package/dist/devportal/pages/SellerItemsPage.js +190 -191
- package/dist/devportal/pages/SellerItemsPage.js.map +1 -1
- package/dist/devportal/pages/SellerOrdersPage.d.ts.map +1 -1
- package/dist/devportal/pages/SellerOrdersPage.js +138 -139
- package/dist/devportal/pages/SellerOrdersPage.js.map +1 -1
- package/dist/devportal/types/index.d.ts.map +1 -1
- package/dist/devportal/types/index.js.map +1 -1
- 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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
-
},
|
|
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
|
-
],
|
|
71
|
-
function
|
|
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
|
|
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
|
|
86
|
+
function S(e, t) {
|
|
88
87
|
return e ? `#${e.slice(0, 8).toUpperCase()}` : `#${t.slice(0, 8).toUpperCase()}`;
|
|
89
88
|
}
|
|
90
|
-
var
|
|
91
|
-
let { apiGatewayUrl:
|
|
92
|
-
let n =
|
|
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
|
-
},
|
|
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 ${
|
|
97
|
-
}), [
|
|
98
|
-
|
|
95
|
+
Authorization: `Bearer ${w ?? ""}`
|
|
96
|
+
}), [w]);
|
|
97
|
+
i(() => {
|
|
99
98
|
let e = !1;
|
|
100
|
-
return
|
|
99
|
+
return k(!0), (async () => {
|
|
101
100
|
try {
|
|
102
|
-
let t = await (await fetch(
|
|
101
|
+
let t = await (await fetch(D, {
|
|
103
102
|
method: "POST",
|
|
104
|
-
headers:
|
|
105
|
-
body: JSON.stringify({ query:
|
|
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
|
-
|
|
108
|
+
j(n), n.length > 0 && N(n[0].id);
|
|
110
109
|
} catch {} finally {
|
|
111
|
-
e ||
|
|
110
|
+
e || k(!1);
|
|
112
111
|
}
|
|
113
112
|
})(), () => {
|
|
114
113
|
e = !0;
|
|
115
114
|
};
|
|
116
|
-
}, [
|
|
117
|
-
if (!
|
|
115
|
+
}, [D, J]), i(() => {
|
|
116
|
+
if (!M) return;
|
|
118
117
|
let e = !1;
|
|
119
|
-
return
|
|
118
|
+
return F(!0), V(null), (async () => {
|
|
120
119
|
try {
|
|
121
120
|
let t = {
|
|
122
|
-
organizationId:
|
|
121
|
+
organizationId: M,
|
|
123
122
|
limit: 25,
|
|
124
|
-
offset:
|
|
123
|
+
offset: K * 25
|
|
125
124
|
};
|
|
126
|
-
|
|
127
|
-
let n = await fetch(
|
|
125
|
+
W && (t.status = W);
|
|
126
|
+
let n = await fetch(D, {
|
|
128
127
|
method: "POST",
|
|
129
|
-
headers:
|
|
128
|
+
headers: J,
|
|
130
129
|
body: JSON.stringify({
|
|
131
|
-
query:
|
|
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
|
-
|
|
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 ||
|
|
144
|
+
e || V(t instanceof Error ? t.message : "Failed to load orders");
|
|
146
145
|
} finally {
|
|
147
|
-
e ||
|
|
146
|
+
e || F(!1);
|
|
148
147
|
}
|
|
149
148
|
})(), () => {
|
|
150
149
|
e = !0;
|
|
151
150
|
};
|
|
152
151
|
}, [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
M,
|
|
153
|
+
W,
|
|
154
|
+
K,
|
|
155
|
+
D,
|
|
156
|
+
J,
|
|
157
|
+
H
|
|
159
158
|
]);
|
|
160
|
-
let
|
|
161
|
-
let e =
|
|
159
|
+
let Y = a(() => I.filter((e) => e.storeProductId !== null), [I]), X = a(() => {
|
|
160
|
+
let e = Y;
|
|
162
161
|
return {
|
|
163
|
-
total:
|
|
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
|
-
}, [
|
|
169
|
-
return
|
|
170
|
-
title:
|
|
171
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
172
|
+
children: /* @__PURE__ */ m(u, { className: "h-8 w-8 animate-spin text-text-secondary" })
|
|
174
173
|
})
|
|
175
|
-
}) :
|
|
176
|
-
title:
|
|
177
|
-
description:
|
|
178
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
181
|
-
title:
|
|
182
|
-
description:
|
|
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__ */
|
|
185
|
-
|
|
186
|
-
children: /* @__PURE__ */
|
|
187
|
-
title:
|
|
188
|
-
description:
|
|
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__ */
|
|
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: [
|
|
191
|
+
children: [A.length > 1 && /* @__PURE__ */ h("div", {
|
|
193
192
|
className: "relative",
|
|
194
|
-
children: [/* @__PURE__ */
|
|
195
|
-
value:
|
|
193
|
+
children: [/* @__PURE__ */ m("select", {
|
|
194
|
+
value: M ?? "",
|
|
196
195
|
onChange: (e) => {
|
|
197
|
-
|
|
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:
|
|
199
|
+
children: A.map((e) => /* @__PURE__ */ m("option", {
|
|
201
200
|
value: e.id,
|
|
202
201
|
children: e.name
|
|
203
202
|
}, e.id))
|
|
204
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
207
|
+
}), /* @__PURE__ */ h("div", {
|
|
209
208
|
className: "relative",
|
|
210
|
-
children: [/* @__PURE__ */
|
|
211
|
-
value:
|
|
209
|
+
children: [/* @__PURE__ */ m("select", {
|
|
210
|
+
value: W,
|
|
212
211
|
onChange: (e) => {
|
|
213
|
-
|
|
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:
|
|
215
|
+
children: _.map((e) => /* @__PURE__ */ m("option", {
|
|
217
216
|
value: e.value,
|
|
218
217
|
children: e.label
|
|
219
218
|
}, e.value))
|
|
220
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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:
|
|
230
|
+
value: X.total
|
|
232
231
|
},
|
|
233
232
|
{
|
|
234
233
|
label: "Pending",
|
|
235
|
-
value:
|
|
234
|
+
value: X.pending,
|
|
236
235
|
color: "text-status-warning-text"
|
|
237
236
|
},
|
|
238
237
|
{
|
|
239
238
|
label: "Completed",
|
|
240
|
-
value:
|
|
239
|
+
value: X.completed,
|
|
241
240
|
color: "text-status-success-text"
|
|
242
241
|
},
|
|
243
242
|
{
|
|
244
243
|
label: "Refunded",
|
|
245
|
-
value:
|
|
244
|
+
value: X.refunded,
|
|
246
245
|
color: "text-status-error-text"
|
|
247
246
|
}
|
|
248
|
-
].map((e) => /* @__PURE__ */
|
|
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__ */
|
|
249
|
+
children: [/* @__PURE__ */ m("p", {
|
|
251
250
|
className: `text-xs ${e.color ?? "text-text-secondary"}`,
|
|
252
251
|
children: e.label
|
|
253
|
-
}), /* @__PURE__ */
|
|
252
|
+
}), /* @__PURE__ */ m("p", {
|
|
254
253
|
className: "mt-1 text-xl font-semibold tabular-nums",
|
|
255
|
-
children:
|
|
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
|
-
|
|
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__ */
|
|
261
|
+
/* @__PURE__ */ m(c, {
|
|
263
262
|
size: 16,
|
|
264
263
|
className: "shrink-0 text-status-error-text"
|
|
265
264
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ m("span", {
|
|
267
266
|
className: "text-status-error-text",
|
|
268
|
-
children:
|
|
267
|
+
children: B
|
|
269
268
|
}),
|
|
270
|
-
/* @__PURE__ */
|
|
271
|
-
onClick: () =>
|
|
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
|
-
|
|
276
|
+
P ? /* @__PURE__ */ m("div", {
|
|
278
277
|
className: "flex items-center justify-center py-16",
|
|
279
|
-
children: /* @__PURE__ */
|
|
280
|
-
}) :
|
|
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__ */
|
|
283
|
-
title:
|
|
284
|
-
description:
|
|
285
|
-
}) : /* @__PURE__ */
|
|
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__ */
|
|
286
|
+
children: /* @__PURE__ */ h("table", {
|
|
288
287
|
className: "w-full text-sm",
|
|
289
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
322
|
-
let t =
|
|
323
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
325
|
+
/* @__PURE__ */ m("td", {
|
|
327
326
|
className: "px-4 py-3",
|
|
328
|
-
children: /* @__PURE__ */
|
|
327
|
+
children: /* @__PURE__ */ m("span", {
|
|
329
328
|
className: "font-mono text-xs font-semibold text-text-primary",
|
|
330
|
-
children:
|
|
329
|
+
children: S(e.storeOrderId, e.id)
|
|
331
330
|
})
|
|
332
331
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ m("td", {
|
|
334
333
|
className: "px-4 py-3",
|
|
335
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
339
|
+
/* @__PURE__ */ m("td", {
|
|
341
340
|
className: "px-4 py-3",
|
|
342
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
346
|
+
/* @__PURE__ */ m("td", {
|
|
348
347
|
className: "px-4 py-3 text-right tabular-nums text-text-primary",
|
|
349
|
-
children:
|
|
348
|
+
children: b(e.grossAmount, e.currency)
|
|
350
349
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ m("td", {
|
|
352
351
|
className: "px-4 py-3 text-right tabular-nums text-status-success-text",
|
|
353
|
-
children:
|
|
352
|
+
children: b(e.netAmount, e.currency)
|
|
354
353
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ h("td", {
|
|
356
355
|
className: "px-4 py-3",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
|
|
364
|
+
b(e.refundAmount, e.currency)
|
|
366
365
|
]
|
|
367
366
|
})]
|
|
368
367
|
}),
|
|
369
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ m("td", {
|
|
370
369
|
className: "px-4 py-3 text-xs text-text-secondary whitespace-nowrap",
|
|
371
|
-
children:
|
|
370
|
+
children: x(e.purchasedAt)
|
|
372
371
|
})
|
|
373
372
|
]
|
|
374
373
|
}, e.id);
|
|
375
374
|
}) })]
|
|
376
375
|
})
|
|
377
|
-
}),
|
|
376
|
+
}), R > 25 && /* @__PURE__ */ h("div", {
|
|
378
377
|
className: "mt-4 flex items-center justify-between text-sm",
|
|
379
|
-
children: [/* @__PURE__ */
|
|
378
|
+
children: [/* @__PURE__ */ h("span", {
|
|
380
379
|
className: "text-text-secondary",
|
|
381
380
|
children: [
|
|
382
381
|
"Showing ",
|
|
383
|
-
|
|
382
|
+
K * 25 + 1,
|
|
384
383
|
"–",
|
|
385
|
-
Math.min((
|
|
384
|
+
Math.min((K + 1) * 25, R),
|
|
386
385
|
" of ",
|
|
387
|
-
|
|
386
|
+
R
|
|
388
387
|
]
|
|
389
|
-
}), /* @__PURE__ */
|
|
388
|
+
}), /* @__PURE__ */ h("div", {
|
|
390
389
|
className: "flex items-center gap-2",
|
|
391
|
-
children: [/* @__PURE__ */
|
|
392
|
-
disabled:
|
|
393
|
-
onClick: () =>
|
|
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__ */
|
|
397
|
-
disabled: (
|
|
398
|
-
onClick: () =>
|
|
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 {
|
|
408
|
+
export { C as SellerOrdersPage };
|
|
410
409
|
|
|
411
410
|
//# sourceMappingURL=SellerOrdersPage.js.map
|