@burdenoff/microfe-devportal 2026.707.2 → 2026.711.1

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/devportal/AdminDevportalRoot.js +33 -27
  2. package/dist/devportal/AdminDevportalRoot.js.map +1 -1
  3. package/dist/devportal/AdminDevportalRoutes.js +9 -5
  4. package/dist/devportal/AdminDevportalRoutes.js.map +1 -1
  5. package/dist/devportal/DevportalRoutes.js +125 -105
  6. package/dist/devportal/DevportalRoutes.js.map +1 -1
  7. package/dist/devportal/pages/AdminOrganizationVerificationPage.js +169 -0
  8. package/dist/devportal/pages/AdminOrganizationVerificationPage.js.map +1 -0
  9. package/dist/devportal/pages/CreatePhysicalItemPage.js +494 -0
  10. package/dist/devportal/pages/CreatePhysicalItemPage.js.map +1 -0
  11. package/dist/devportal/pages/EditPhysicalItemPage.js +419 -0
  12. package/dist/devportal/pages/EditPhysicalItemPage.js.map +1 -0
  13. package/dist/devportal/pages/OrganizationDetailPage.js +441 -295
  14. package/dist/devportal/pages/OrganizationDetailPage.js.map +1 -1
  15. package/dist/devportal/pages/RevenueDashboardPage.js +72 -54
  16. package/dist/devportal/pages/RevenueDashboardPage.js.map +1 -1
  17. package/dist/devportal/pages/SellerDashboardPage.js +364 -0
  18. package/dist/devportal/pages/SellerDashboardPage.js.map +1 -0
  19. package/dist/devportal/pages/SellerItemsPage.js +533 -0
  20. package/dist/devportal/pages/SellerItemsPage.js.map +1 -0
  21. package/dist/devportal/pages/SellerOrdersPage.js +411 -0
  22. package/dist/devportal/pages/SellerOrdersPage.js.map +1 -0
  23. package/dist/devportal/types/index.js.map +1 -1
  24. package/dist/generated/global-operations.js +48 -55
  25. package/dist/generated/global-operations.js.map +1 -1
  26. package/package.json +1 -1
@@ -0,0 +1,533 @@
1
+ import { useDevportal as e } from "../providers/DevportalProvider.js";
2
+ import { EmptyState as t } from "../components/EmptyState.js";
3
+ import { PageLayout as n } from "../components/PageLayout.js";
4
+ import { PermissionGuard as r } from "../components/PermissionGuard.js";
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, Edit as u, Grid as ee, List as d, Loader2 as f, Package as p, Plus as m, Search as h, Tag as g } from "lucide-react";
10
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
11
+ import { EmphasisPanel as y, GlassCard as b } from "@burdenoff/fe-libs/ui";
12
+ //#region src/devportal/pages/SellerItemsPage.tsx
13
+ var x = new Set([
14
+ "APP",
15
+ "NODE",
16
+ "WORKFLOW"
17
+ ]), S = {
18
+ MERCHANDISE: "Merchandise",
19
+ HARDWARE: "Hardware",
20
+ ACCESSORY: "Accessory",
21
+ BOOK: "Book",
22
+ EQUIPMENT: "Equipment",
23
+ APPAREL: "Apparel",
24
+ COLLECTIBLE: "Collectible",
25
+ CONSUMABLE: "Consumable"
26
+ }, C = {
27
+ PUBLISHED: {
28
+ label: "Published",
29
+ className: "text-status-success-text bg-status-success-bg-subtle"
30
+ },
31
+ PENDING_REVIEW: {
32
+ label: "Pending Review",
33
+ className: "text-status-warning-text bg-status-warning-bg-subtle"
34
+ },
35
+ DRAFT: {
36
+ label: "Draft",
37
+ className: "text-text-muted bg-bg-muted"
38
+ },
39
+ REJECTED: {
40
+ label: "Rejected",
41
+ className: "text-status-error-text bg-status-error-bg/10"
42
+ },
43
+ INACTIVE: {
44
+ label: "Inactive",
45
+ className: "text-text-muted bg-bg-muted"
46
+ }
47
+ }, te = [
48
+ {
49
+ value: "",
50
+ label: "All Status"
51
+ },
52
+ {
53
+ value: "DRAFT",
54
+ label: "Draft"
55
+ },
56
+ {
57
+ value: "PENDING_REVIEW",
58
+ label: "Pending Review"
59
+ },
60
+ {
61
+ value: "PUBLISHED",
62
+ label: "Published"
63
+ },
64
+ {
65
+ value: "REJECTED",
66
+ label: "Rejected"
67
+ },
68
+ {
69
+ value: "INACTIVE",
70
+ label: "Inactive"
71
+ }
72
+ ];
73
+ function w(e, t) {
74
+ let n = t || "USD";
75
+ return `${new Intl.NumberFormat("en-US", {
76
+ style: "currency",
77
+ currency: n,
78
+ minimumFractionDigits: 2,
79
+ maximumFractionDigits: 2
80
+ }).format(e)} ${n}`;
81
+ }
82
+ function T(e) {
83
+ return S[e] ?? e.replace(/_/g, " ");
84
+ }
85
+ var E = "\n query SellerMyPublisher {\n myPublisher {\n id\n }\n }\n", D = "\n query SellerItems($publisherId: String!) {\n products(filter: { publisherId: $publisherId, nature: PHYSICAL }, limit: 100, offset: 0) {\n id\n name\n slug\n type\n status\n price\n currency\n stockQuantity\n sku\n brand\n icon\n createdAt\n }\n }\n", O = () => {
86
+ let { navigate: g, basePath: S, apiGatewayUrl: O, authToken: A } = e(), { t: j } = c(), M = (e, t) => {
87
+ let n = j(e);
88
+ return n === e ? t : n;
89
+ }, N = O ?? "/global/graphql", [P, F] = s(!0), [I, L] = s(!1), [R, z] = s(null), [B, V] = s([]), [H, U] = s(null), [W, G] = s(0), [K, q] = s("grid"), [J, ne] = s(""), [Y, re] = s(""), X = (e) => {
90
+ g?.(`${S}${e}`);
91
+ };
92
+ a(() => {
93
+ let e = !1;
94
+ return F(!0), U(null), (async () => {
95
+ try {
96
+ let t = await fetch(N, {
97
+ method: "POST",
98
+ headers: {
99
+ "Content-Type": "application/json",
100
+ Authorization: `Bearer ${A ?? ""}`
101
+ },
102
+ body: JSON.stringify({ query: E })
103
+ });
104
+ if (e) return;
105
+ if (!t.ok) throw Error(`Request failed with status ${t.status}`);
106
+ let n = await t.json();
107
+ if (e) return;
108
+ if (n.errors?.length) throw Error(n.errors[0]?.message ?? "Unknown GraphQL error");
109
+ z(n.data?.myPublisher?.id ?? null);
110
+ } catch (t) {
111
+ e || U(t instanceof Error ? t.message : "Failed to load publisher");
112
+ } finally {
113
+ e || F(!1);
114
+ }
115
+ })(), () => {
116
+ e = !0;
117
+ };
118
+ }, [
119
+ N,
120
+ A,
121
+ W
122
+ ]), a(() => {
123
+ if (!R) return;
124
+ let e = !1;
125
+ return L(!0), U(null), (async () => {
126
+ try {
127
+ let t = await fetch(N, {
128
+ method: "POST",
129
+ headers: {
130
+ "Content-Type": "application/json",
131
+ Authorization: `Bearer ${A ?? ""}`
132
+ },
133
+ body: JSON.stringify({
134
+ query: D,
135
+ variables: { publisherId: R }
136
+ })
137
+ });
138
+ if (e) return;
139
+ if (!t.ok) throw Error(`Request failed with status ${t.status}`);
140
+ let n = await t.json();
141
+ if (e) return;
142
+ if (n.errors?.length) throw Error(n.errors[0]?.message ?? "Unknown GraphQL error");
143
+ V((n.data?.products ?? []).map((e) => ({
144
+ ...e,
145
+ status: e.status
146
+ })));
147
+ } catch (t) {
148
+ e || U(t instanceof Error ? t.message : "Failed to load items");
149
+ } finally {
150
+ e || L(!1);
151
+ }
152
+ })(), () => {
153
+ e = !0;
154
+ };
155
+ }, [
156
+ R,
157
+ N,
158
+ A,
159
+ W
160
+ ]);
161
+ let Z = o(() => B.filter((e) => !x.has(e.type)), [B]), Q = o(() => Z.filter((e) => {
162
+ let t = !J || e.name.toLowerCase().includes(J.toLowerCase()), n = !Y || e.status === Y;
163
+ return t && n;
164
+ }), [
165
+ Z,
166
+ J,
167
+ Y
168
+ ]), $ = o(() => ({
169
+ total: Z.length,
170
+ published: Z.filter((e) => e.status === "PUBLISHED").length,
171
+ pendingReview: Z.filter((e) => e.status === "PENDING_REVIEW").length,
172
+ outOfStock: Z.filter((e) => e.stockQuantity === 0).length
173
+ }), [Z]);
174
+ if (P && B.length === 0 && !H) return /* @__PURE__ */ _(n, {
175
+ title: M("devportal.myItems", "My Items"),
176
+ description: M("devportal.manageYourPhysicalProductListings", "Manage your physical product listings."),
177
+ children: /* @__PURE__ */ v("div", {
178
+ className: "flex items-center justify-center py-12",
179
+ children: [/* @__PURE__ */ _(f, { className: "h-8 w-8 animate-spin text-text-secondary" }), /* @__PURE__ */ _("span", {
180
+ className: "ml-2 text-text-secondary",
181
+ children: M("devportal.loadingItems", "Loading items...")
182
+ })]
183
+ })
184
+ });
185
+ if (H && B.length === 0) return /* @__PURE__ */ _(n, {
186
+ title: M("devportal.myItems", "My Items"),
187
+ description: M("devportal.manageYourPhysicalProductListings", "Manage your physical product listings."),
188
+ children: /* @__PURE__ */ v("div", {
189
+ className: "rounded-lg border border-status-error-border/50 bg-status-error-bg/10 p-6 text-center",
190
+ children: [
191
+ /* @__PURE__ */ _(l, { className: "mx-auto h-8 w-8 text-status-error-text" }),
192
+ /* @__PURE__ */ _("h3", {
193
+ className: "mt-2 font-medium text-status-error-text",
194
+ children: M("devportal.failedToLoadItems", "Failed to load items")
195
+ }),
196
+ /* @__PURE__ */ _("p", {
197
+ className: "mt-1 text-sm text-text-secondary",
198
+ children: H
199
+ }),
200
+ /* @__PURE__ */ _("button", {
201
+ onClick: () => G((e) => e + 1),
202
+ className: "mt-4 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
203
+ children: M("devportal.tryAgain", "Try Again")
204
+ })
205
+ ]
206
+ })
207
+ });
208
+ let ie = !!(J || Y);
209
+ return /* @__PURE__ */ _(r, {
210
+ permission: i.APP_READ,
211
+ children: /* @__PURE__ */ v(n, {
212
+ title: M("devportal.myItems", "My Items"),
213
+ description: M("devportal.manageYourPhysicalProductListings", "Manage your physical product listings."),
214
+ actions: /* @__PURE__ */ v("button", {
215
+ onClick: () => X("/seller/items/new"),
216
+ className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
217
+ children: [/* @__PURE__ */ _(m, {
218
+ size: 16,
219
+ "aria-hidden": "true"
220
+ }), M("devportal.listAnItem", "List an Item")]
221
+ }),
222
+ children: [
223
+ /* @__PURE__ */ _(y, {
224
+ className: "mb-4",
225
+ children: /* @__PURE__ */ v("div", {
226
+ className: "grid grid-cols-2 gap-4 sm:grid-cols-4",
227
+ children: [
228
+ /* @__PURE__ */ v(b, {
229
+ treatment: "metric",
230
+ className: "p-4",
231
+ children: [/* @__PURE__ */ _("p", {
232
+ className: "text-sm text-text-secondary",
233
+ children: M("devportal.totalItems", "Total Items")
234
+ }), /* @__PURE__ */ _("p", {
235
+ className: "mt-1 text-2xl font-semibold tabular-nums",
236
+ children: I ? /* @__PURE__ */ _(f, { className: "h-5 w-5 animate-spin text-text-secondary" }) : $.total
237
+ })]
238
+ }),
239
+ /* @__PURE__ */ v(b, {
240
+ treatment: "metric",
241
+ className: "p-4",
242
+ children: [/* @__PURE__ */ _("p", {
243
+ className: "text-sm text-status-success-text",
244
+ children: M("devportal.published", "Published")
245
+ }), /* @__PURE__ */ _("p", {
246
+ className: "mt-1 text-2xl font-semibold tabular-nums",
247
+ children: I ? /* @__PURE__ */ _(f, { className: "h-5 w-5 animate-spin text-text-secondary" }) : $.published
248
+ })]
249
+ }),
250
+ /* @__PURE__ */ v(b, {
251
+ treatment: "metric",
252
+ className: "p-4",
253
+ children: [/* @__PURE__ */ _("p", {
254
+ className: "text-sm text-status-warning-text",
255
+ children: M("devportal.pendingReview", "Pending Review")
256
+ }), /* @__PURE__ */ _("p", {
257
+ className: "mt-1 text-2xl font-semibold tabular-nums",
258
+ children: I ? /* @__PURE__ */ _(f, { className: "h-5 w-5 animate-spin text-text-secondary" }) : $.pendingReview
259
+ })]
260
+ }),
261
+ /* @__PURE__ */ v(b, {
262
+ treatment: "metric",
263
+ className: "p-4",
264
+ children: [/* @__PURE__ */ _("p", {
265
+ className: "text-sm text-status-error-text",
266
+ children: M("devportal.outOfStock", "Out of Stock")
267
+ }), /* @__PURE__ */ _("p", {
268
+ className: "mt-1 text-2xl font-semibold tabular-nums",
269
+ children: I ? /* @__PURE__ */ _(f, { className: "h-5 w-5 animate-spin text-text-secondary" }) : $.outOfStock
270
+ })]
271
+ })
272
+ ]
273
+ })
274
+ }),
275
+ /* @__PURE__ */ v("div", {
276
+ className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
277
+ children: [/* @__PURE__ */ v("div", {
278
+ className: "flex flex-1 items-center gap-3",
279
+ children: [/* @__PURE__ */ v("div", {
280
+ className: "relative flex-1 max-w-md",
281
+ children: [/* @__PURE__ */ _(h, {
282
+ size: 16,
283
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
284
+ }), /* @__PURE__ */ _("input", {
285
+ type: "text",
286
+ placeholder: M("devportal.searchItems", "Search items..."),
287
+ value: J,
288
+ onChange: (e) => ne(e.target.value),
289
+ className: "w-full rounded-md border border-border-seam bg-bg-surface pl-9 pr-4 py-2 text-sm text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-primary"
290
+ })]
291
+ }), /* @__PURE__ */ _("select", {
292
+ value: Y,
293
+ onChange: (e) => re(e.target.value),
294
+ className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-primary",
295
+ children: te.map((e) => /* @__PURE__ */ _("option", {
296
+ value: e.value,
297
+ children: e.label
298
+ }, e.value))
299
+ })]
300
+ }), /* @__PURE__ */ v("div", {
301
+ className: "flex items-center gap-1 rounded-md border border-border-seam p-1",
302
+ children: [/* @__PURE__ */ _("button", {
303
+ onClick: () => q("grid"),
304
+ className: `rounded p-1.5 transition-colors ${K === "grid" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:bg-bg-sunken/50"}`,
305
+ title: M("devportal.gridView", "Grid view"),
306
+ children: /* @__PURE__ */ _(ee, { size: 16 })
307
+ }), /* @__PURE__ */ _("button", {
308
+ onClick: () => q("list"),
309
+ className: `rounded p-1.5 transition-colors ${K === "list" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:bg-bg-sunken/50"}`,
310
+ title: M("devportal.listView", "List view"),
311
+ children: /* @__PURE__ */ _(d, { size: 16 })
312
+ })]
313
+ })]
314
+ }),
315
+ Z.length > 0 && /* @__PURE__ */ v("p", {
316
+ className: "text-sm text-text-secondary",
317
+ children: [
318
+ Q.length,
319
+ " item",
320
+ Q.length === 1 ? "" : "s",
321
+ " found"
322
+ ]
323
+ }),
324
+ !R && !P ? /* @__PURE__ */ _(t, {
325
+ illustration: "empty-generic",
326
+ icon: /* @__PURE__ */ _(p, { size: 32 }),
327
+ title: M("devportal.noPublisherProfileYet", "No publisher profile yet"),
328
+ description: M("devportal.listAnItemToGetStarted", "List an item to get started. Your publisher profile will be created automatically."),
329
+ action: /* @__PURE__ */ v("button", {
330
+ onClick: () => X("/seller/items/new"),
331
+ className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
332
+ children: [/* @__PURE__ */ _(m, { size: 16 }), M("devportal.listAnItem", "List an Item")]
333
+ })
334
+ }) : I ? /* @__PURE__ */ v("div", {
335
+ className: "flex items-center justify-center py-12",
336
+ children: [/* @__PURE__ */ _(f, { className: "h-6 w-6 animate-spin text-text-secondary" }), /* @__PURE__ */ _("span", {
337
+ className: "ml-2 text-text-secondary",
338
+ children: M("devportal.loadingItems", "Loading items...")
339
+ })]
340
+ }) : Q.length > 0 ? K === "grid" ? /* @__PURE__ */ _("div", {
341
+ className: "grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
342
+ children: Q.map((e) => /* @__PURE__ */ _(k, {
343
+ item: e,
344
+ onEdit: () => X(`/seller/items/${e.id}`)
345
+ }, e.id))
346
+ }) : /* @__PURE__ */ _("div", {
347
+ className: "overflow-x-auto rounded-lg border border-border-seam",
348
+ children: /* @__PURE__ */ v("table", {
349
+ className: "w-full text-sm",
350
+ children: [/* @__PURE__ */ _("thead", { children: /* @__PURE__ */ v("tr", {
351
+ className: "border-b border-border-seam bg-bg-sunken",
352
+ children: [
353
+ /* @__PURE__ */ _("th", {
354
+ className: "px-4 py-3 text-left font-medium text-text-secondary",
355
+ children: "Item"
356
+ }),
357
+ /* @__PURE__ */ _("th", {
358
+ className: "px-4 py-3 text-left font-medium text-text-secondary",
359
+ children: "Type"
360
+ }),
361
+ /* @__PURE__ */ _("th", {
362
+ className: "px-4 py-3 text-left font-medium text-text-secondary",
363
+ children: "Price"
364
+ }),
365
+ /* @__PURE__ */ _("th", {
366
+ className: "px-4 py-3 text-left font-medium text-text-secondary",
367
+ children: "Stock"
368
+ }),
369
+ /* @__PURE__ */ _("th", {
370
+ className: "px-4 py-3 text-left font-medium text-text-secondary",
371
+ children: "Status"
372
+ }),
373
+ /* @__PURE__ */ _("th", {
374
+ className: "px-4 py-3 text-right font-medium text-text-secondary",
375
+ children: "Actions"
376
+ })
377
+ ]
378
+ }) }), /* @__PURE__ */ _("tbody", { children: Q.map((e) => {
379
+ let t = C[e.status] ?? C.DRAFT;
380
+ return /* @__PURE__ */ v("tr", {
381
+ className: "border-b border-border-subtle last:border-0 hover:bg-bg-sunken/50 transition-colors",
382
+ children: [
383
+ /* @__PURE__ */ _("td", {
384
+ className: "px-4 py-3",
385
+ children: /* @__PURE__ */ v("div", {
386
+ className: "flex items-center gap-3",
387
+ children: [e.icon ? /* @__PURE__ */ _("img", {
388
+ src: e.icon,
389
+ alt: e.name,
390
+ className: "h-8 w-8 rounded-lg object-cover shrink-0"
391
+ }) : /* @__PURE__ */ _("div", {
392
+ className: "flex h-8 w-8 items-center justify-center rounded-lg bg-bg-sunken shrink-0",
393
+ children: /* @__PURE__ */ _(p, {
394
+ size: 14,
395
+ className: "text-text-muted"
396
+ })
397
+ }), /* @__PURE__ */ v("div", {
398
+ className: "min-w-0",
399
+ children: [/* @__PURE__ */ _("p", {
400
+ className: "font-medium text-text-primary truncate",
401
+ children: e.name
402
+ }), e.sku && /* @__PURE__ */ v("p", {
403
+ className: "text-xs text-text-muted",
404
+ children: ["SKU: ", e.sku]
405
+ })]
406
+ })]
407
+ })
408
+ }),
409
+ /* @__PURE__ */ _("td", {
410
+ className: "px-4 py-3 text-text-secondary",
411
+ children: T(e.type)
412
+ }),
413
+ /* @__PURE__ */ _("td", {
414
+ className: "px-4 py-3 text-text-primary tabular-nums",
415
+ children: w(e.price, e.currency)
416
+ }),
417
+ /* @__PURE__ */ _("td", {
418
+ className: "px-4 py-3",
419
+ children: e.stockQuantity === 0 ? /* @__PURE__ */ _("span", {
420
+ className: "text-status-error-text",
421
+ children: "Out of stock"
422
+ }) : /* @__PURE__ */ _("span", {
423
+ className: "text-text-primary tabular-nums",
424
+ children: e.stockQuantity
425
+ })
426
+ }),
427
+ /* @__PURE__ */ _("td", {
428
+ className: "px-4 py-3",
429
+ children: /* @__PURE__ */ _("span", {
430
+ className: `rounded-full px-2.5 py-0.5 text-xs font-medium ${t.className}`,
431
+ children: t.label
432
+ })
433
+ }),
434
+ /* @__PURE__ */ _("td", {
435
+ className: "px-4 py-3 text-right",
436
+ children: /* @__PURE__ */ v("button", {
437
+ onClick: () => X(`/seller/items/${e.id}`),
438
+ className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors",
439
+ children: [/* @__PURE__ */ _(u, { size: 12 }), M("devportal.edit", "Edit")]
440
+ })
441
+ })
442
+ ]
443
+ }, e.id);
444
+ }) })]
445
+ })
446
+ }) : Z.length > 0 && ie ? /* @__PURE__ */ _(t, {
447
+ illustration: "empty-search",
448
+ title: M("devportal.noItemsMatchYourSearch", "No items match your search"),
449
+ description: M("devportal.tryAdjustingFilters", "Try adjusting your search or filters")
450
+ }) : /* @__PURE__ */ _(t, {
451
+ illustration: "empty-data",
452
+ icon: /* @__PURE__ */ _(p, { size: 32 }),
453
+ title: M("devportal.noItemsYet", "No items yet"),
454
+ description: M("devportal.addYourFirstPhysicalProduct", "Add your first physical product listing to start selling"),
455
+ action: /* @__PURE__ */ v("button", {
456
+ onClick: () => X("/seller/items/new"),
457
+ className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
458
+ children: [/* @__PURE__ */ _(m, { size: 16 }), M("devportal.listAnItem", "List an Item")]
459
+ })
460
+ })
461
+ ]
462
+ })
463
+ });
464
+ }, k = ({ item: e, onEdit: t }) => {
465
+ let n = C[e.status] ?? C.DRAFT;
466
+ return /* @__PURE__ */ v(b, {
467
+ treatment: "insight",
468
+ className: "flex flex-col gap-3 p-4",
469
+ children: [/* @__PURE__ */ v("div", {
470
+ className: "flex items-start gap-3",
471
+ children: [e.icon ? /* @__PURE__ */ _("img", {
472
+ src: e.icon,
473
+ alt: e.name,
474
+ className: "h-20 w-20 rounded-xl object-cover shrink-0"
475
+ }) : /* @__PURE__ */ _("div", {
476
+ className: "flex h-20 w-20 items-center justify-center rounded-xl bg-bg-sunken shrink-0",
477
+ children: /* @__PURE__ */ _(p, {
478
+ size: 32,
479
+ className: "text-text-muted"
480
+ })
481
+ }), /* @__PURE__ */ v("div", {
482
+ className: "min-w-0 flex-1",
483
+ children: [
484
+ /* @__PURE__ */ _("p", {
485
+ className: "font-semibold text-text-primary truncate",
486
+ children: e.name
487
+ }),
488
+ e.brand && /* @__PURE__ */ _("p", {
489
+ className: "text-xs text-text-muted mt-0.5",
490
+ children: e.brand
491
+ }),
492
+ /* @__PURE__ */ _("p", {
493
+ className: "text-sm text-text-secondary mt-1",
494
+ children: w(e.price, e.currency)
495
+ }),
496
+ /* @__PURE__ */ v("div", {
497
+ className: "flex items-center gap-2 mt-2 flex-wrap",
498
+ children: [/* @__PURE__ */ _("span", {
499
+ className: `rounded-full px-2 py-0.5 text-xs font-medium ${n.className}`,
500
+ children: n.label
501
+ }), /* @__PURE__ */ _("span", {
502
+ className: "rounded-full px-2 py-0.5 text-xs font-medium bg-bg-muted text-text-secondary",
503
+ children: T(e.type)
504
+ })]
505
+ })
506
+ ]
507
+ })]
508
+ }), /* @__PURE__ */ v("div", {
509
+ className: "flex items-center justify-between pt-2 border-t border-border-subtle",
510
+ children: [/* @__PURE__ */ v("div", {
511
+ className: "flex items-center gap-1.5 text-sm",
512
+ children: [/* @__PURE__ */ _(g, {
513
+ size: 12,
514
+ className: "text-text-muted shrink-0"
515
+ }), e.stockQuantity === 0 ? /* @__PURE__ */ _("span", {
516
+ className: "text-status-error-text",
517
+ children: "Out of stock"
518
+ }) : /* @__PURE__ */ v("span", {
519
+ className: "text-text-secondary",
520
+ children: [e.stockQuantity, " in stock"]
521
+ })]
522
+ }), /* @__PURE__ */ v("button", {
523
+ onClick: t,
524
+ className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors",
525
+ children: [/* @__PURE__ */ _(u, { size: 12 }), "Edit"]
526
+ })]
527
+ })]
528
+ });
529
+ };
530
+ //#endregion
531
+ export { O as SellerItemsPage };
532
+
533
+ //# sourceMappingURL=SellerItemsPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SellerItemsPage.js","names":[],"sources":["../../../src/devportal/pages/SellerItemsPage.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport { useEffect, useState, useMemo } from \"react\";\nimport { useI18n } from \"@burdenoff/fe-libs/shared/providers/shell/I18nProvider\";\nimport {\n Plus,\n Search,\n Grid,\n List,\n Package,\n Loader2,\n AlertCircle,\n Edit,\n Tag,\n} from \"lucide-react\";\nimport { EmphasisPanel, GlassCard } from \"@burdenoff/fe-libs/ui\";\nimport { PageLayout } from \"../components/PageLayout\";\nimport { EmptyState } from \"../components/EmptyState\";\nimport { useDevportal } from \"../providers/DevportalProvider\";\nimport { PermissionGuard } from \"../components\";\nimport { DEVPORTAL_PERMISSIONS } from \"../constants/permissions\";\n\n// ---------------------------------------------------------------------------\n// Local types\n// ---------------------------------------------------------------------------\n\ntype ProductStatus =\n | \"DRAFT\"\n | \"PENDING_REVIEW\"\n | \"PUBLISHED\"\n | \"REJECTED\"\n | \"INACTIVE\";\n\ntype PhysicalProductType =\n | \"MERCHANDISE\"\n | \"HARDWARE\"\n | \"ACCESSORY\"\n | \"BOOK\"\n | \"EQUIPMENT\"\n | \"APPAREL\"\n | \"COLLECTIBLE\"\n | \"CONSUMABLE\";\n\ninterface PhysicalProductDetail {\n id: string;\n name: string;\n slug: string;\n type: string;\n status: ProductStatus;\n price: number;\n currency: string;\n stockQuantity: number;\n sku?: string | null;\n brand?: string | null;\n icon?: string | null;\n createdAt: string;\n}\n\n// ---------------------------------------------------------------------------\n// Constants\n// ---------------------------------------------------------------------------\n\n/**\n * Digital product types to exclude even if `nature: PHYSICAL` is set wrong.\n */\nconst DIGITAL_TYPES = new Set([\"APP\", \"NODE\", \"WORKFLOW\"]);\n\nconst PRODUCT_TYPE_LABELS: Record<PhysicalProductType, string> = {\n MERCHANDISE: \"Merchandise\",\n HARDWARE: \"Hardware\",\n ACCESSORY: \"Accessory\",\n BOOK: \"Book\",\n EQUIPMENT: \"Equipment\",\n APPAREL: \"Apparel\",\n COLLECTIBLE: \"Collectible\",\n CONSUMABLE: \"Consumable\",\n};\n\nconst STATUS_BADGE_STYLES: Record<\n ProductStatus,\n { label: string; className: string }\n> = {\n PUBLISHED: {\n label: \"Published\",\n className: \"text-status-success-text bg-status-success-bg-subtle\",\n },\n PENDING_REVIEW: {\n label: \"Pending Review\",\n className: \"text-status-warning-text bg-status-warning-bg-subtle\",\n },\n DRAFT: {\n label: \"Draft\",\n className: \"text-text-muted bg-bg-muted\",\n },\n REJECTED: {\n label: \"Rejected\",\n className: \"text-status-error-text bg-status-error-bg/10\",\n },\n INACTIVE: {\n label: \"Inactive\",\n className: \"text-text-muted bg-bg-muted\",\n },\n};\n\nconst STATUS_OPTIONS: { value: ProductStatus | \"\"; label: string }[] = [\n { value: \"\", label: \"All Status\" },\n { value: \"DRAFT\", label: \"Draft\" },\n { value: \"PENDING_REVIEW\", label: \"Pending Review\" },\n { value: \"PUBLISHED\", label: \"Published\" },\n { value: \"REJECTED\", label: \"Rejected\" },\n { value: \"INACTIVE\", label: \"Inactive\" },\n];\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\nfunction formatPrice(price: number, currency: string): string {\n const curr = currency || \"USD\";\n const formatted = new Intl.NumberFormat(\"en-US\", {\n style: \"currency\",\n currency: curr,\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n }).format(price);\n return `${formatted} ${curr}`;\n}\n\nfunction resolveTypeLabel(type: string): string {\n return (\n PRODUCT_TYPE_LABELS[type as PhysicalProductType] ??\n type.replace(/_/g, \" \")\n );\n}\n\n// ---------------------------------------------------------------------------\n// GraphQL query strings\n// ---------------------------------------------------------------------------\n\nconst SELLER_PUBLISHER_QUERY = `\n query SellerMyPublisher {\n myPublisher {\n id\n }\n }\n`;\n\nconst SELLER_ITEMS_QUERY = `\n query SellerItems($publisherId: String!) {\n products(filter: { publisherId: $publisherId, nature: PHYSICAL }, limit: 100, offset: 0) {\n id\n name\n slug\n type\n status\n price\n currency\n stockQuantity\n sku\n brand\n icon\n createdAt\n }\n }\n`;\n\n// ---------------------------------------------------------------------------\n// Page component\n// ---------------------------------------------------------------------------\n\nexport const SellerItemsPage: FC = () => {\n const { navigate, basePath, apiGatewayUrl, authToken } = useDevportal();\n const { t } = useI18n();\n const tr = (key: string, fallback: string): string => {\n const value = t(key);\n return value === key ? fallback : value;\n };\n\n const gqlUrl = apiGatewayUrl ?? \"/global/graphql\";\n\n const [publisherLoading, setPublisherLoading] = useState(true);\n const [productsLoading, setProductsLoading] = useState(false);\n const [publisherId, setPublisherId] = useState<string | null>(null);\n const [products, setProducts] = useState<PhysicalProductDetail[]>([]);\n const [error, setError] = useState<string | null>(null);\n const [retryToken, setRetryToken] = useState(0);\n\n const [viewMode, setViewMode] = useState<\"grid\" | \"list\">(\"grid\");\n const [searchQuery, setSearchQuery] = useState(\"\");\n const [statusFilter, setStatusFilter] = useState<ProductStatus | \"\">(\"\");\n\n const handleNavigate = (path: string) => {\n navigate?.(`${basePath}${path}`);\n };\n\n // Fetch publisher first\n useEffect(() => {\n let cancelled = false;\n setPublisherLoading(true);\n setError(null);\n\n const run = async () => {\n try {\n const res = await fetch(gqlUrl, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n Authorization: `Bearer ${authToken ?? \"\"}`,\n },\n body: JSON.stringify({ query: SELLER_PUBLISHER_QUERY }),\n });\n if (cancelled) return;\n if (!res.ok) {\n throw new Error(`Request failed with status ${res.status}`);\n }\n const json = (await res.json()) as {\n data?: { myPublisher?: { id: string } | null };\n errors?: { message: string }[];\n };\n if (cancelled) return;\n if (json.errors?.length) {\n throw new Error(json.errors[0]?.message ?? \"Unknown GraphQL error\");\n }\n setPublisherId(json.data?.myPublisher?.id ?? null);\n } catch (err) {\n if (!cancelled) {\n setError(\n err instanceof Error ? err.message : \"Failed to load publisher\",\n );\n }\n } finally {\n if (!cancelled) setPublisherLoading(false);\n }\n };\n\n void run();\n return () => {\n cancelled = true;\n };\n }, [gqlUrl, authToken, retryToken]);\n\n // Fetch products once publisher is resolved\n useEffect(() => {\n if (!publisherId) return;\n let cancelled = false;\n setProductsLoading(true);\n setError(null);\n\n const run = async () => {\n try {\n const res = await fetch(gqlUrl, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n Authorization: `Bearer ${authToken ?? \"\"}`,\n },\n body: JSON.stringify({\n query: SELLER_ITEMS_QUERY,\n variables: { publisherId },\n }),\n });\n if (cancelled) return;\n if (!res.ok) {\n throw new Error(`Request failed with status ${res.status}`);\n }\n const json = (await res.json()) as {\n data?: {\n products?: Array<\n Omit<PhysicalProductDetail, \"status\"> & { status: string }\n >;\n };\n errors?: { message: string }[];\n };\n if (cancelled) return;\n if (json.errors?.length) {\n throw new Error(json.errors[0]?.message ?? \"Unknown GraphQL error\");\n }\n setProducts(\n (json.data?.products ?? []).map((p) => ({\n ...p,\n status: p.status as ProductStatus,\n })),\n );\n } catch (err) {\n if (!cancelled) {\n setError(\n err instanceof Error ? err.message : \"Failed to load items\",\n );\n }\n } finally {\n if (!cancelled) setProductsLoading(false);\n }\n };\n\n void run();\n return () => {\n cancelled = true;\n };\n }, [publisherId, gqlUrl, authToken, retryToken]);\n\n // Exclude digital types defensively, then apply client-side filters\n const physicalItems = useMemo(\n () => products.filter((p) => !DIGITAL_TYPES.has(p.type)),\n [products],\n );\n\n const filteredItems = useMemo(\n () =>\n physicalItems.filter((item) => {\n const matchesSearch =\n !searchQuery ||\n item.name.toLowerCase().includes(searchQuery.toLowerCase());\n const matchesStatus = !statusFilter || item.status === statusFilter;\n return matchesSearch && matchesStatus;\n }),\n [physicalItems, searchQuery, statusFilter],\n );\n\n const stats = useMemo(\n () => ({\n total: physicalItems.length,\n published: physicalItems.filter((i) => i.status === \"PUBLISHED\").length,\n pendingReview: physicalItems.filter(\n (i) => i.status === \"PENDING_REVIEW\",\n ).length,\n outOfStock: physicalItems.filter((i) => i.stockQuantity === 0).length,\n }),\n [physicalItems],\n );\n\n const isInitialLoading =\n publisherLoading && products.length === 0 && !error;\n\n // Full-page loading state\n if (isInitialLoading) {\n return (\n <PageLayout\n title={tr(\"devportal.myItems\", \"My Items\")}\n description={tr(\n \"devportal.manageYourPhysicalProductListings\",\n \"Manage your physical product listings.\",\n )}\n >\n <div className=\"flex items-center justify-center py-12\">\n <Loader2 className=\"h-8 w-8 animate-spin text-text-secondary\" />\n <span className=\"ml-2 text-text-secondary\">\n {tr(\"devportal.loadingItems\", \"Loading items...\")}\n </span>\n </div>\n </PageLayout>\n );\n }\n\n // Full-page error state\n if (error && products.length === 0) {\n return (\n <PageLayout\n title={tr(\"devportal.myItems\", \"My Items\")}\n description={tr(\n \"devportal.manageYourPhysicalProductListings\",\n \"Manage your physical product listings.\",\n )}\n >\n <div className=\"rounded-lg border border-status-error-border/50 bg-status-error-bg/10 p-6 text-center\">\n <AlertCircle className=\"mx-auto h-8 w-8 text-status-error-text\" />\n <h3 className=\"mt-2 font-medium text-status-error-text\">\n {tr(\"devportal.failedToLoadItems\", \"Failed to load items\")}\n </h3>\n <p className=\"mt-1 text-sm text-text-secondary\">{error}</p>\n <button\n onClick={() => setRetryToken((n) => n + 1)}\n className=\"mt-4 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n {tr(\"devportal.tryAgain\", \"Try Again\")}\n </button>\n </div>\n </PageLayout>\n );\n }\n\n const hasActiveFilters = Boolean(searchQuery || statusFilter);\n\n return (\n <PermissionGuard permission={DEVPORTAL_PERMISSIONS.APP_READ}>\n <PageLayout\n title={tr(\"devportal.myItems\", \"My Items\")}\n description={tr(\n \"devportal.manageYourPhysicalProductListings\",\n \"Manage your physical product listings.\",\n )}\n actions={\n <button\n onClick={() => handleNavigate(\"/seller/items/new\")}\n className=\"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary\"\n >\n <Plus size={16} aria-hidden=\"true\" />\n {tr(\"devportal.listAnItem\", \"List an Item\")}\n </button>\n }\n >\n {/* Summary stats */}\n <EmphasisPanel className=\"mb-4\">\n <div className=\"grid grid-cols-2 gap-4 sm:grid-cols-4\">\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <p className=\"text-sm text-text-secondary\">\n {tr(\"devportal.totalItems\", \"Total Items\")}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums\">\n {productsLoading ? (\n <Loader2 className=\"h-5 w-5 animate-spin text-text-secondary\" />\n ) : (\n stats.total\n )}\n </p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <p className=\"text-sm text-status-success-text\">\n {tr(\"devportal.published\", \"Published\")}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums\">\n {productsLoading ? (\n <Loader2 className=\"h-5 w-5 animate-spin text-text-secondary\" />\n ) : (\n stats.published\n )}\n </p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <p className=\"text-sm text-status-warning-text\">\n {tr(\"devportal.pendingReview\", \"Pending Review\")}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums\">\n {productsLoading ? (\n <Loader2 className=\"h-5 w-5 animate-spin text-text-secondary\" />\n ) : (\n stats.pendingReview\n )}\n </p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <p className=\"text-sm text-status-error-text\">\n {tr(\"devportal.outOfStock\", \"Out of Stock\")}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums\">\n {productsLoading ? (\n <Loader2 className=\"h-5 w-5 animate-spin text-text-secondary\" />\n ) : (\n stats.outOfStock\n )}\n </p>\n </GlassCard>\n </div>\n </EmphasisPanel>\n\n {/* Filters + view toggle */}\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n <div className=\"flex flex-1 items-center gap-3\">\n {/* Search */}\n <div className=\"relative flex-1 max-w-md\">\n <Search\n size={16}\n className=\"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary\"\n />\n <input\n type=\"text\"\n placeholder={tr(\"devportal.searchItems\", \"Search items...\")}\n value={searchQuery}\n onChange={(e) => setSearchQuery(e.target.value)}\n className=\"w-full rounded-md border border-border-seam bg-bg-surface pl-9 pr-4 py-2 text-sm text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-primary\"\n />\n </div>\n\n {/* Status filter */}\n <select\n value={statusFilter}\n onChange={(e) =>\n setStatusFilter(e.target.value as ProductStatus | \"\")\n }\n className=\"rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-primary\"\n >\n {STATUS_OPTIONS.map((opt) => (\n <option key={opt.value} value={opt.value}>\n {opt.label}\n </option>\n ))}\n </select>\n </div>\n\n {/* View toggle */}\n <div className=\"flex items-center gap-1 rounded-md border border-border-seam p-1\">\n <button\n onClick={() => setViewMode(\"grid\")}\n className={`rounded p-1.5 transition-colors ${\n viewMode === \"grid\"\n ? \"bg-bg-sunken text-text-primary\"\n : \"text-text-secondary hover:bg-bg-sunken/50\"\n }`}\n title={tr(\"devportal.gridView\", \"Grid view\")}\n >\n <Grid size={16} />\n </button>\n <button\n onClick={() => setViewMode(\"list\")}\n className={`rounded p-1.5 transition-colors ${\n viewMode === \"list\"\n ? \"bg-bg-sunken text-text-primary\"\n : \"text-text-secondary hover:bg-bg-sunken/50\"\n }`}\n title={tr(\"devportal.listView\", \"List view\")}\n >\n <List size={16} />\n </button>\n </div>\n </div>\n\n {/* Results count */}\n {physicalItems.length > 0 && (\n <p className=\"text-sm text-text-secondary\">\n {filteredItems.length} item\n {filteredItems.length !== 1 ? \"s\" : \"\"} found\n </p>\n )}\n\n {/* Content */}\n {!publisherId && !publisherLoading ? (\n <EmptyState\n illustration=\"empty-generic\"\n icon={<Package size={32} />}\n title={tr(\n \"devportal.noPublisherProfileYet\",\n \"No publisher profile yet\",\n )}\n description={tr(\n \"devportal.listAnItemToGetStarted\",\n \"List an item to get started. Your publisher profile will be created automatically.\",\n )}\n action={\n <button\n onClick={() => handleNavigate(\"/seller/items/new\")}\n className=\"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90\"\n >\n <Plus size={16} />\n {tr(\"devportal.listAnItem\", \"List an Item\")}\n </button>\n }\n />\n ) : productsLoading ? (\n <div className=\"flex items-center justify-center py-12\">\n <Loader2 className=\"h-6 w-6 animate-spin text-text-secondary\" />\n <span className=\"ml-2 text-text-secondary\">\n {tr(\"devportal.loadingItems\", \"Loading items...\")}\n </span>\n </div>\n ) : filteredItems.length > 0 ? (\n viewMode === \"grid\" ? (\n <div className=\"grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3\">\n {filteredItems.map((item) => (\n <ProductItemCard\n key={item.id}\n item={item}\n onEdit={() =>\n handleNavigate(`/seller/items/${item.id}`)\n }\n />\n ))}\n </div>\n ) : (\n <div className=\"overflow-x-auto rounded-lg border border-border-seam\">\n <table className=\"w-full text-sm\">\n <thead>\n <tr className=\"border-b border-border-seam bg-bg-sunken\">\n <th className=\"px-4 py-3 text-left font-medium text-text-secondary\">\n Item\n </th>\n <th className=\"px-4 py-3 text-left font-medium text-text-secondary\">\n Type\n </th>\n <th className=\"px-4 py-3 text-left font-medium text-text-secondary\">\n Price\n </th>\n <th className=\"px-4 py-3 text-left font-medium text-text-secondary\">\n Stock\n </th>\n <th className=\"px-4 py-3 text-left font-medium text-text-secondary\">\n Status\n </th>\n <th className=\"px-4 py-3 text-right font-medium text-text-secondary\">\n Actions\n </th>\n </tr>\n </thead>\n <tbody>\n {filteredItems.map((item) => {\n const badge =\n STATUS_BADGE_STYLES[item.status] ??\n STATUS_BADGE_STYLES.DRAFT;\n return (\n <tr\n key={item.id}\n className=\"border-b border-border-subtle last:border-0 hover:bg-bg-sunken/50 transition-colors\"\n >\n <td className=\"px-4 py-3\">\n <div className=\"flex items-center gap-3\">\n {item.icon ? (\n <img\n src={item.icon}\n alt={item.name}\n className=\"h-8 w-8 rounded-lg object-cover shrink-0\"\n />\n ) : (\n <div className=\"flex h-8 w-8 items-center justify-center rounded-lg bg-bg-sunken shrink-0\">\n <Package\n size={14}\n className=\"text-text-muted\"\n />\n </div>\n )}\n <div className=\"min-w-0\">\n <p className=\"font-medium text-text-primary truncate\">\n {item.name}\n </p>\n {item.sku && (\n <p className=\"text-xs text-text-muted\">\n SKU: {item.sku}\n </p>\n )}\n </div>\n </div>\n </td>\n <td className=\"px-4 py-3 text-text-secondary\">\n {resolveTypeLabel(item.type)}\n </td>\n <td className=\"px-4 py-3 text-text-primary tabular-nums\">\n {formatPrice(item.price, item.currency)}\n </td>\n <td className=\"px-4 py-3\">\n {item.stockQuantity === 0 ? (\n <span className=\"text-status-error-text\">\n Out of stock\n </span>\n ) : (\n <span className=\"text-text-primary tabular-nums\">\n {item.stockQuantity}\n </span>\n )}\n </td>\n <td className=\"px-4 py-3\">\n <span\n className={`rounded-full px-2.5 py-0.5 text-xs font-medium ${badge.className}`}\n >\n {badge.label}\n </span>\n </td>\n <td className=\"px-4 py-3 text-right\">\n <button\n onClick={() =>\n handleNavigate(`/seller/items/${item.id}`)\n }\n className=\"inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors\"\n >\n <Edit size={12} />\n {tr(\"devportal.edit\", \"Edit\")}\n </button>\n </td>\n </tr>\n );\n })}\n </tbody>\n </table>\n </div>\n )\n ) : physicalItems.length > 0 && hasActiveFilters ? (\n <EmptyState\n illustration=\"empty-search\"\n title={tr(\n \"devportal.noItemsMatchYourSearch\",\n \"No items match your search\",\n )}\n description={tr(\n \"devportal.tryAdjustingFilters\",\n \"Try adjusting your search or filters\",\n )}\n />\n ) : (\n <EmptyState\n illustration=\"empty-data\"\n icon={<Package size={32} />}\n title={tr(\"devportal.noItemsYet\", \"No items yet\")}\n description={tr(\n \"devportal.addYourFirstPhysicalProduct\",\n \"Add your first physical product listing to start selling\",\n )}\n action={\n <button\n onClick={() => handleNavigate(\"/seller/items/new\")}\n className=\"inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90\"\n >\n <Plus size={16} />\n {tr(\"devportal.listAnItem\", \"List an Item\")}\n </button>\n }\n />\n )}\n </PageLayout>\n </PermissionGuard>\n );\n};\n\n// ---------------------------------------------------------------------------\n// Sub-components\n// ---------------------------------------------------------------------------\n\nconst ProductItemCard: FC<{\n item: PhysicalProductDetail;\n onEdit: () => void;\n}> = ({ item, onEdit }) => {\n const badge =\n STATUS_BADGE_STYLES[item.status] ?? STATUS_BADGE_STYLES.DRAFT;\n\n return (\n <GlassCard treatment=\"insight\" className=\"flex flex-col gap-3 p-4\">\n <div className=\"flex items-start gap-3\">\n {item.icon ? (\n <img\n src={item.icon}\n alt={item.name}\n className=\"h-20 w-20 rounded-xl object-cover shrink-0\"\n />\n ) : (\n <div className=\"flex h-20 w-20 items-center justify-center rounded-xl bg-bg-sunken shrink-0\">\n <Package size={32} className=\"text-text-muted\" />\n </div>\n )}\n <div className=\"min-w-0 flex-1\">\n <p className=\"font-semibold text-text-primary truncate\">{item.name}</p>\n {item.brand && (\n <p className=\"text-xs text-text-muted mt-0.5\">{item.brand}</p>\n )}\n <p className=\"text-sm text-text-secondary mt-1\">\n {formatPrice(item.price, item.currency)}\n </p>\n <div className=\"flex items-center gap-2 mt-2 flex-wrap\">\n <span\n className={`rounded-full px-2 py-0.5 text-xs font-medium ${badge.className}`}\n >\n {badge.label}\n </span>\n <span className=\"rounded-full px-2 py-0.5 text-xs font-medium bg-bg-muted text-text-secondary\">\n {resolveTypeLabel(item.type)}\n </span>\n </div>\n </div>\n </div>\n\n <div className=\"flex items-center justify-between pt-2 border-t border-border-subtle\">\n <div className=\"flex items-center gap-1.5 text-sm\">\n <Tag size={12} className=\"text-text-muted shrink-0\" />\n {item.stockQuantity === 0 ? (\n <span className=\"text-status-error-text\">Out of stock</span>\n ) : (\n <span className=\"text-text-secondary\">\n {item.stockQuantity} in stock\n </span>\n )}\n </div>\n <button\n onClick={onEdit}\n className=\"inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors\"\n >\n <Edit size={12} />\n Edit\n </button>\n </div>\n </GlassCard>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAgEA,IAAM,IAAgB,IAAI,IAAI;CAAC;CAAO;CAAQ;CAAW,CAAC,EAEpD,IAA2D;CAC/D,aAAa;CACb,UAAU;CACV,WAAW;CACX,MAAM;CACN,WAAW;CACX,SAAS;CACT,aAAa;CACb,YAAY;CACb,EAEK,IAGF;CACF,WAAW;EACT,OAAO;EACP,WAAW;EACZ;CACD,gBAA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