@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.
Files changed (36) 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/ApplicationDetailPage.d.ts.map +1 -1
  4. package/dist/devportal/pages/ApplicationDetailPage.js +3 -3
  5. package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
  6. package/dist/devportal/pages/CreateApiKeyPage.d.ts.map +1 -1
  7. package/dist/devportal/pages/CreateApiKeyPage.js +103 -104
  8. package/dist/devportal/pages/CreateApiKeyPage.js.map +1 -1
  9. package/dist/devportal/pages/CreateApplicationPage.d.ts.map +1 -1
  10. package/dist/devportal/pages/CreateApplicationPage.js +115 -116
  11. package/dist/devportal/pages/CreateApplicationPage.js.map +1 -1
  12. package/dist/devportal/pages/CreateOAuthClientPage.d.ts.map +1 -1
  13. package/dist/devportal/pages/CreateOAuthClientPage.js +129 -130
  14. package/dist/devportal/pages/CreateOAuthClientPage.js.map +1 -1
  15. package/dist/devportal/pages/CreateWebhookPage.js +1 -1
  16. package/dist/devportal/pages/CreateWebhookPage.js.map +1 -1
  17. package/dist/devportal/pages/DelegationsPage.js +214 -214
  18. package/dist/devportal/pages/DelegationsPage.js.map +1 -1
  19. package/dist/devportal/pages/EditApplicationPage.d.ts.map +1 -1
  20. package/dist/devportal/pages/EditApplicationPage.js +1 -1
  21. package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
  22. package/dist/devportal/pages/PublishPage.d.ts.map +1 -1
  23. package/dist/devportal/pages/PublishPage.js +106 -106
  24. package/dist/devportal/pages/PublishPage.js.map +1 -1
  25. package/dist/devportal/pages/SellerDashboardPage.d.ts.map +1 -1
  26. package/dist/devportal/pages/SellerDashboardPage.js +136 -137
  27. package/dist/devportal/pages/SellerDashboardPage.js.map +1 -1
  28. package/dist/devportal/pages/SellerItemsPage.d.ts.map +1 -1
  29. package/dist/devportal/pages/SellerItemsPage.js +190 -191
  30. package/dist/devportal/pages/SellerItemsPage.js.map +1 -1
  31. package/dist/devportal/pages/SellerOrdersPage.d.ts.map +1 -1
  32. package/dist/devportal/pages/SellerOrdersPage.js +138 -139
  33. package/dist/devportal/pages/SellerOrdersPage.js.map +1 -1
  34. package/dist/devportal/types/index.d.ts.map +1 -1
  35. package/dist/devportal/types/index.js.map +1 -1
  36. package/package.json +1 -1
@@ -1,20 +1,19 @@
1
1
  import { useDevportal as e } from "../providers/DevportalProvider.js";
2
2
  import { EmptyState as t } from "../components/EmptyState.js";
3
3
  import { PageLayout as n } from "../components/PageLayout.js";
4
- import { PermissionGuard as r } from "../components/PermissionGuard.js";
4
+ import { PermissionGuard as ee } 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, 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";
6
+ import { useEffect as r, useMemo as i, useState as a } from "react";
7
+ import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
+ import { AlertCircle as s, Edit as c, Grid as l, List as u, Loader2 as d, Package as f, Plus as p, Search as m, Tag as h } from "lucide-react";
9
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
10
+ import { EmphasisPanel as v, GlassCard as y } from "@burdenoff/fe-libs/ui";
12
11
  //#region src/devportal/pages/SellerItemsPage.tsx
13
- var x = new Set([
12
+ var b = new Set([
14
13
  "APP",
15
14
  "NODE",
16
15
  "WORKFLOW"
17
- ]), S = {
16
+ ]), x = {
18
17
  MERCHANDISE: "Merchandise",
19
18
  HARDWARE: "Hardware",
20
19
  ACCESSORY: "Accessory",
@@ -23,7 +22,7 @@ var x = new Set([
23
22
  APPAREL: "Apparel",
24
23
  COLLECTIBLE: "Collectible",
25
24
  CONSUMABLE: "Consumable"
26
- }, C = {
25
+ }, S = {
27
26
  PUBLISHED: {
28
27
  label: "Published",
29
28
  className: "text-status-success-text bg-status-success-bg-subtle"
@@ -44,7 +43,7 @@ var x = new Set([
44
43
  label: "Inactive",
45
44
  className: "text-text-muted bg-bg-muted"
46
45
  }
47
- }, te = [
46
+ }, C = [
48
47
  {
49
48
  value: "",
50
49
  label: "All Status"
@@ -80,24 +79,24 @@ function w(e, t) {
80
79
  }).format(e)} ${n}`;
81
80
  }
82
81
  function T(e) {
83
- return S[e] ?? e.replace(/_/g, " ");
82
+ return x[e] ?? e.replace(/_/g, " ");
84
83
  }
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);
84
+ var E = "\n query SellerMyPublisher {\n myPublisher {\n id\n }\n }\n", te = "\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", D = () => {
85
+ let { navigate: h, basePath: x, apiGatewayUrl: D, authToken: k } = e(), { t: A } = o(), j = (e, t) => {
86
+ let n = A(e);
88
87
  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}`);
88
+ }, M = D ?? "/global/graphql", [N, P] = a(!0), [F, I] = a(!1), [L, ne] = a(null), [R, z] = a([]), [B, V] = a(null), [H, U] = a(0), [W, G] = a("grid"), [K, q] = a(""), [J, Y] = a(""), X = (e) => {
89
+ h?.(`${x}${e}`);
91
90
  };
92
- a(() => {
91
+ r(() => {
93
92
  let e = !1;
94
- return F(!0), U(null), (async () => {
93
+ return P(!0), V(null), (async () => {
95
94
  try {
96
- let t = await fetch(N, {
95
+ let t = await fetch(M, {
97
96
  method: "POST",
98
97
  headers: {
99
98
  "Content-Type": "application/json",
100
- Authorization: `Bearer ${A ?? ""}`
99
+ Authorization: `Bearer ${k ?? ""}`
101
100
  },
102
101
  body: JSON.stringify({ query: E })
103
102
  });
@@ -106,33 +105,33 @@ var E = "\n query SellerMyPublisher {\n myPublisher {\n id\n }\n }\
106
105
  let n = await t.json();
107
106
  if (e) return;
108
107
  if (n.errors?.length) throw Error(n.errors[0]?.message ?? "Unknown GraphQL error");
109
- z(n.data?.myPublisher?.id ?? null);
108
+ ne(n.data?.myPublisher?.id ?? null);
110
109
  } catch (t) {
111
- e || U(t instanceof Error ? t.message : "Failed to load publisher");
110
+ e || V(t instanceof Error ? t.message : "Failed to load publisher");
112
111
  } finally {
113
- e || F(!1);
112
+ e || P(!1);
114
113
  }
115
114
  })(), () => {
116
115
  e = !0;
117
116
  };
118
117
  }, [
119
- N,
120
- A,
121
- W
122
- ]), a(() => {
123
- if (!R) return;
118
+ M,
119
+ k,
120
+ H
121
+ ]), r(() => {
122
+ if (!L) return;
124
123
  let e = !1;
125
- return L(!0), U(null), (async () => {
124
+ return I(!0), V(null), (async () => {
126
125
  try {
127
- let t = await fetch(N, {
126
+ let t = await fetch(M, {
128
127
  method: "POST",
129
128
  headers: {
130
129
  "Content-Type": "application/json",
131
- Authorization: `Bearer ${A ?? ""}`
130
+ Authorization: `Bearer ${k ?? ""}`
132
131
  },
133
132
  body: JSON.stringify({
134
- query: D,
135
- variables: { publisherId: R }
133
+ query: te,
134
+ variables: { publisherId: L }
136
135
  })
137
136
  });
138
137
  if (e) return;
@@ -140,179 +139,179 @@ var E = "\n query SellerMyPublisher {\n myPublisher {\n id\n }\n }\
140
139
  let n = await t.json();
141
140
  if (e) return;
142
141
  if (n.errors?.length) throw Error(n.errors[0]?.message ?? "Unknown GraphQL error");
143
- V((n.data?.products ?? []).map((e) => ({
142
+ z((n.data?.products ?? []).map((e) => ({
144
143
  ...e,
145
144
  status: e.status
146
145
  })));
147
146
  } catch (t) {
148
- e || U(t instanceof Error ? t.message : "Failed to load items");
147
+ e || V(t instanceof Error ? t.message : "Failed to load items");
149
148
  } finally {
150
- e || L(!1);
149
+ e || I(!1);
151
150
  }
152
151
  })(), () => {
153
152
  e = !0;
154
153
  };
155
154
  }, [
156
- R,
157
- N,
158
- A,
159
- W
155
+ L,
156
+ M,
157
+ k,
158
+ H
160
159
  ]);
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;
160
+ let Z = i(() => R.filter((e) => !b.has(e.type)), [R]), Q = i(() => Z.filter((e) => {
161
+ let t = !K || e.name.toLowerCase().includes(K.toLowerCase()), n = !J || e.status === J;
163
162
  return t && n;
164
163
  }), [
165
164
  Z,
166
- J,
167
- Y
168
- ]), $ = o(() => ({
165
+ K,
166
+ J
167
+ ]), $ = i(() => ({
169
168
  total: Z.length,
170
169
  published: Z.filter((e) => e.status === "PUBLISHED").length,
171
170
  pendingReview: Z.filter((e) => e.status === "PENDING_REVIEW").length,
172
171
  outOfStock: Z.filter((e) => e.stockQuantity === 0).length
173
172
  }), [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", {
173
+ if (N && R.length === 0 && !B) return /* @__PURE__ */ g(n, {
174
+ title: j("devportal.myItems", "My Items"),
175
+ description: j("devportal.manageYourPhysicalProductListings", "Manage your physical product listings."),
176
+ children: /* @__PURE__ */ _("div", {
178
177
  className: "flex items-center justify-center py-12",
179
- children: [/* @__PURE__ */ _(f, { className: "h-8 w-8 animate-spin text-text-secondary" }), /* @__PURE__ */ _("span", {
178
+ children: [/* @__PURE__ */ g(d, { className: "h-8 w-8 animate-spin text-text-secondary" }), /* @__PURE__ */ g("span", {
180
179
  className: "ml-2 text-text-secondary",
181
- children: M("devportal.loadingItems", "Loading items...")
180
+ children: j("devportal.loadingItems", "Loading items...")
182
181
  })]
183
182
  })
184
183
  });
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", {
184
+ if (B && R.length === 0) return /* @__PURE__ */ g(n, {
185
+ title: j("devportal.myItems", "My Items"),
186
+ description: j("devportal.manageYourPhysicalProductListings", "Manage your physical product listings."),
187
+ children: /* @__PURE__ */ _("div", {
189
188
  className: "rounded-lg border border-status-error-border/50 bg-status-error-bg/10 p-6 text-center",
190
189
  children: [
191
- /* @__PURE__ */ _(l, { className: "mx-auto h-8 w-8 text-status-error-text" }),
192
- /* @__PURE__ */ _("h3", {
190
+ /* @__PURE__ */ g(s, { className: "mx-auto h-8 w-8 text-status-error-text" }),
191
+ /* @__PURE__ */ g("h3", {
193
192
  className: "mt-2 font-medium text-status-error-text",
194
- children: M("devportal.failedToLoadItems", "Failed to load items")
193
+ children: j("devportal.failedToLoadItems", "Failed to load items")
195
194
  }),
196
- /* @__PURE__ */ _("p", {
195
+ /* @__PURE__ */ g("p", {
197
196
  className: "mt-1 text-sm text-text-secondary",
198
- children: H
197
+ children: B
199
198
  }),
200
- /* @__PURE__ */ _("button", {
201
- onClick: () => G((e) => e + 1),
199
+ /* @__PURE__ */ g("button", {
200
+ onClick: () => U((e) => e + 1),
202
201
  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")
202
+ children: j("devportal.tryAgain", "Try Again")
204
203
  })
205
204
  ]
206
205
  })
207
206
  });
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", {
207
+ let re = !!(K || J);
208
+ return /* @__PURE__ */ g(ee, {
209
+ authOnly: !0,
210
+ children: /* @__PURE__ */ _(n, {
211
+ title: j("devportal.myItems", "My Items"),
212
+ description: j("devportal.manageYourPhysicalProductListings", "Manage your physical product listings."),
213
+ actions: /* @__PURE__ */ _("button", {
215
214
  onClick: () => X("/seller/items/new"),
216
215
  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, {
216
+ children: [/* @__PURE__ */ g(p, {
218
217
  size: 16,
219
218
  "aria-hidden": "true"
220
- }), M("devportal.listAnItem", "List an Item")]
219
+ }), j("devportal.listAnItem", "List an Item")]
221
220
  }),
222
221
  children: [
223
- /* @__PURE__ */ _(y, {
222
+ /* @__PURE__ */ g(v, {
224
223
  className: "mb-4",
225
- children: /* @__PURE__ */ v("div", {
224
+ children: /* @__PURE__ */ _("div", {
226
225
  className: "grid grid-cols-2 gap-4 sm:grid-cols-4",
227
226
  children: [
228
- /* @__PURE__ */ v(b, {
227
+ /* @__PURE__ */ _(y, {
229
228
  treatment: "metric",
230
229
  className: "p-4",
231
- children: [/* @__PURE__ */ _("p", {
230
+ children: [/* @__PURE__ */ g("p", {
232
231
  className: "text-sm text-text-secondary",
233
- children: M("devportal.totalItems", "Total Items")
234
- }), /* @__PURE__ */ _("p", {
232
+ children: j("devportal.totalItems", "Total Items")
233
+ }), /* @__PURE__ */ g("p", {
235
234
  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
235
+ children: F ? /* @__PURE__ */ g(d, { className: "h-5 w-5 animate-spin text-text-secondary" }) : $.total
237
236
  })]
238
237
  }),
239
- /* @__PURE__ */ v(b, {
238
+ /* @__PURE__ */ _(y, {
240
239
  treatment: "metric",
241
240
  className: "p-4",
242
- children: [/* @__PURE__ */ _("p", {
241
+ children: [/* @__PURE__ */ g("p", {
243
242
  className: "text-sm text-status-success-text",
244
- children: M("devportal.published", "Published")
245
- }), /* @__PURE__ */ _("p", {
243
+ children: j("devportal.published", "Published")
244
+ }), /* @__PURE__ */ g("p", {
246
245
  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
246
+ children: F ? /* @__PURE__ */ g(d, { className: "h-5 w-5 animate-spin text-text-secondary" }) : $.published
248
247
  })]
249
248
  }),
250
- /* @__PURE__ */ v(b, {
249
+ /* @__PURE__ */ _(y, {
251
250
  treatment: "metric",
252
251
  className: "p-4",
253
- children: [/* @__PURE__ */ _("p", {
252
+ children: [/* @__PURE__ */ g("p", {
254
253
  className: "text-sm text-status-warning-text",
255
- children: M("devportal.pendingReview", "Pending Review")
256
- }), /* @__PURE__ */ _("p", {
254
+ children: j("devportal.pendingReview", "Pending Review")
255
+ }), /* @__PURE__ */ g("p", {
257
256
  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
257
+ children: F ? /* @__PURE__ */ g(d, { className: "h-5 w-5 animate-spin text-text-secondary" }) : $.pendingReview
259
258
  })]
260
259
  }),
261
- /* @__PURE__ */ v(b, {
260
+ /* @__PURE__ */ _(y, {
262
261
  treatment: "metric",
263
262
  className: "p-4",
264
- children: [/* @__PURE__ */ _("p", {
263
+ children: [/* @__PURE__ */ g("p", {
265
264
  className: "text-sm text-status-error-text",
266
- children: M("devportal.outOfStock", "Out of Stock")
267
- }), /* @__PURE__ */ _("p", {
265
+ children: j("devportal.outOfStock", "Out of Stock")
266
+ }), /* @__PURE__ */ g("p", {
268
267
  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
268
+ children: F ? /* @__PURE__ */ g(d, { className: "h-5 w-5 animate-spin text-text-secondary" }) : $.outOfStock
270
269
  })]
271
270
  })
272
271
  ]
273
272
  })
274
273
  }),
275
- /* @__PURE__ */ v("div", {
274
+ /* @__PURE__ */ _("div", {
276
275
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
277
- children: [/* @__PURE__ */ v("div", {
276
+ children: [/* @__PURE__ */ _("div", {
278
277
  className: "flex flex-1 items-center gap-3",
279
- children: [/* @__PURE__ */ v("div", {
278
+ children: [/* @__PURE__ */ _("div", {
280
279
  className: "relative flex-1 max-w-md",
281
- children: [/* @__PURE__ */ _(h, {
280
+ children: [/* @__PURE__ */ g(m, {
282
281
  size: 16,
283
282
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
284
- }), /* @__PURE__ */ _("input", {
283
+ }), /* @__PURE__ */ g("input", {
285
284
  type: "text",
286
- placeholder: M("devportal.searchItems", "Search items..."),
287
- value: J,
288
- onChange: (e) => ne(e.target.value),
285
+ placeholder: j("devportal.searchItems", "Search items..."),
286
+ value: K,
287
+ onChange: (e) => q(e.target.value),
289
288
  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
289
  })]
291
- }), /* @__PURE__ */ _("select", {
292
- value: Y,
293
- onChange: (e) => re(e.target.value),
290
+ }), /* @__PURE__ */ g("select", {
291
+ value: J,
292
+ onChange: (e) => Y(e.target.value),
294
293
  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", {
294
+ children: C.map((e) => /* @__PURE__ */ g("option", {
296
295
  value: e.value,
297
296
  children: e.label
298
297
  }, e.value))
299
298
  })]
300
- }), /* @__PURE__ */ v("div", {
299
+ }), /* @__PURE__ */ _("div", {
301
300
  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 })
301
+ children: [/* @__PURE__ */ g("button", {
302
+ onClick: () => G("grid"),
303
+ className: `rounded p-1.5 transition-colors ${W === "grid" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:bg-bg-sunken/50"}`,
304
+ title: j("devportal.gridView", "Grid view"),
305
+ children: /* @__PURE__ */ g(l, { size: 16 })
306
+ }), /* @__PURE__ */ g("button", {
307
+ onClick: () => G("list"),
308
+ className: `rounded p-1.5 transition-colors ${W === "list" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:bg-bg-sunken/50"}`,
309
+ title: j("devportal.listView", "List view"),
310
+ children: /* @__PURE__ */ g(u, { size: 16 })
312
311
  })]
313
312
  })]
314
313
  }),
315
- Z.length > 0 && /* @__PURE__ */ v("p", {
314
+ Z.length > 0 && /* @__PURE__ */ _("p", {
316
315
  className: "text-sm text-text-secondary",
317
316
  children: [
318
317
  Q.length,
@@ -321,213 +320,213 @@ var E = "\n query SellerMyPublisher {\n myPublisher {\n id\n }\n }\
321
320
  " found"
322
321
  ]
323
322
  }),
324
- !R && !P ? /* @__PURE__ */ _(t, {
323
+ !L && !N ? /* @__PURE__ */ g(t, {
325
324
  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", {
325
+ icon: /* @__PURE__ */ g(f, { size: 32 }),
326
+ title: j("devportal.noPublisherProfileYet", "No publisher profile yet"),
327
+ description: j("devportal.listAnItemToGetStarted", "List an item to get started. Your publisher profile will be created automatically."),
328
+ action: /* @__PURE__ */ _("button", {
330
329
  onClick: () => X("/seller/items/new"),
331
330
  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")]
331
+ children: [/* @__PURE__ */ g(p, { size: 16 }), j("devportal.listAnItem", "List an Item")]
333
332
  })
334
- }) : I ? /* @__PURE__ */ v("div", {
333
+ }) : F ? /* @__PURE__ */ _("div", {
335
334
  className: "flex items-center justify-center py-12",
336
- children: [/* @__PURE__ */ _(f, { className: "h-6 w-6 animate-spin text-text-secondary" }), /* @__PURE__ */ _("span", {
335
+ children: [/* @__PURE__ */ g(d, { className: "h-6 w-6 animate-spin text-text-secondary" }), /* @__PURE__ */ g("span", {
337
336
  className: "ml-2 text-text-secondary",
338
- children: M("devportal.loadingItems", "Loading items...")
337
+ children: j("devportal.loadingItems", "Loading items...")
339
338
  })]
340
- }) : Q.length > 0 ? K === "grid" ? /* @__PURE__ */ _("div", {
339
+ }) : Q.length > 0 ? W === "grid" ? /* @__PURE__ */ g("div", {
341
340
  className: "grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
342
- children: Q.map((e) => /* @__PURE__ */ _(k, {
341
+ children: Q.map((e) => /* @__PURE__ */ g(O, {
343
342
  item: e,
344
343
  onEdit: () => X(`/seller/items/${e.id}`)
345
344
  }, e.id))
346
- }) : /* @__PURE__ */ _("div", {
345
+ }) : /* @__PURE__ */ g("div", {
347
346
  className: "overflow-x-auto rounded-lg border border-border-seam",
348
- children: /* @__PURE__ */ v("table", {
347
+ children: /* @__PURE__ */ _("table", {
349
348
  className: "w-full text-sm",
350
- children: [/* @__PURE__ */ _("thead", { children: /* @__PURE__ */ v("tr", {
349
+ children: [/* @__PURE__ */ g("thead", { children: /* @__PURE__ */ _("tr", {
351
350
  className: "border-b border-border-seam bg-bg-sunken",
352
351
  children: [
353
- /* @__PURE__ */ _("th", {
352
+ /* @__PURE__ */ g("th", {
354
353
  className: "px-4 py-3 text-left font-medium text-text-secondary",
355
354
  children: "Item"
356
355
  }),
357
- /* @__PURE__ */ _("th", {
356
+ /* @__PURE__ */ g("th", {
358
357
  className: "px-4 py-3 text-left font-medium text-text-secondary",
359
358
  children: "Type"
360
359
  }),
361
- /* @__PURE__ */ _("th", {
360
+ /* @__PURE__ */ g("th", {
362
361
  className: "px-4 py-3 text-left font-medium text-text-secondary",
363
362
  children: "Price"
364
363
  }),
365
- /* @__PURE__ */ _("th", {
364
+ /* @__PURE__ */ g("th", {
366
365
  className: "px-4 py-3 text-left font-medium text-text-secondary",
367
366
  children: "Stock"
368
367
  }),
369
- /* @__PURE__ */ _("th", {
368
+ /* @__PURE__ */ g("th", {
370
369
  className: "px-4 py-3 text-left font-medium text-text-secondary",
371
370
  children: "Status"
372
371
  }),
373
- /* @__PURE__ */ _("th", {
372
+ /* @__PURE__ */ g("th", {
374
373
  className: "px-4 py-3 text-right font-medium text-text-secondary",
375
374
  children: "Actions"
376
375
  })
377
376
  ]
378
- }) }), /* @__PURE__ */ _("tbody", { children: Q.map((e) => {
379
- let t = C[e.status] ?? C.DRAFT;
380
- return /* @__PURE__ */ v("tr", {
377
+ }) }), /* @__PURE__ */ g("tbody", { children: Q.map((e) => {
378
+ let t = S[e.status] ?? S.DRAFT;
379
+ return /* @__PURE__ */ _("tr", {
381
380
  className: "border-b border-border-subtle last:border-0 hover:bg-bg-sunken/50 transition-colors",
382
381
  children: [
383
- /* @__PURE__ */ _("td", {
382
+ /* @__PURE__ */ g("td", {
384
383
  className: "px-4 py-3",
385
- children: /* @__PURE__ */ v("div", {
384
+ children: /* @__PURE__ */ _("div", {
386
385
  className: "flex items-center gap-3",
387
- children: [e.icon ? /* @__PURE__ */ _("img", {
386
+ children: [e.icon ? /* @__PURE__ */ g("img", {
388
387
  src: e.icon,
389
388
  alt: e.name,
390
389
  className: "h-8 w-8 rounded-lg object-cover shrink-0"
391
- }) : /* @__PURE__ */ _("div", {
390
+ }) : /* @__PURE__ */ g("div", {
392
391
  className: "flex h-8 w-8 items-center justify-center rounded-lg bg-bg-sunken shrink-0",
393
- children: /* @__PURE__ */ _(p, {
392
+ children: /* @__PURE__ */ g(f, {
394
393
  size: 14,
395
394
  className: "text-text-muted"
396
395
  })
397
- }), /* @__PURE__ */ v("div", {
396
+ }), /* @__PURE__ */ _("div", {
398
397
  className: "min-w-0",
399
- children: [/* @__PURE__ */ _("p", {
398
+ children: [/* @__PURE__ */ g("p", {
400
399
  className: "font-medium text-text-primary truncate",
401
400
  children: e.name
402
- }), e.sku && /* @__PURE__ */ v("p", {
401
+ }), e.sku && /* @__PURE__ */ _("p", {
403
402
  className: "text-xs text-text-muted",
404
403
  children: ["SKU: ", e.sku]
405
404
  })]
406
405
  })]
407
406
  })
408
407
  }),
409
- /* @__PURE__ */ _("td", {
408
+ /* @__PURE__ */ g("td", {
410
409
  className: "px-4 py-3 text-text-secondary",
411
410
  children: T(e.type)
412
411
  }),
413
- /* @__PURE__ */ _("td", {
412
+ /* @__PURE__ */ g("td", {
414
413
  className: "px-4 py-3 text-text-primary tabular-nums",
415
414
  children: w(e.price, e.currency)
416
415
  }),
417
- /* @__PURE__ */ _("td", {
416
+ /* @__PURE__ */ g("td", {
418
417
  className: "px-4 py-3",
419
- children: e.stockQuantity === 0 ? /* @__PURE__ */ _("span", {
418
+ children: e.stockQuantity === 0 ? /* @__PURE__ */ g("span", {
420
419
  className: "text-status-error-text",
421
420
  children: "Out of stock"
422
- }) : /* @__PURE__ */ _("span", {
421
+ }) : /* @__PURE__ */ g("span", {
423
422
  className: "text-text-primary tabular-nums",
424
423
  children: e.stockQuantity
425
424
  })
426
425
  }),
427
- /* @__PURE__ */ _("td", {
426
+ /* @__PURE__ */ g("td", {
428
427
  className: "px-4 py-3",
429
- children: /* @__PURE__ */ _("span", {
428
+ children: /* @__PURE__ */ g("span", {
430
429
  className: `rounded-full px-2.5 py-0.5 text-xs font-medium ${t.className}`,
431
430
  children: t.label
432
431
  })
433
432
  }),
434
- /* @__PURE__ */ _("td", {
433
+ /* @__PURE__ */ g("td", {
435
434
  className: "px-4 py-3 text-right",
436
- children: /* @__PURE__ */ v("button", {
435
+ children: /* @__PURE__ */ _("button", {
437
436
  onClick: () => X(`/seller/items/${e.id}`),
438
437
  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")]
438
+ children: [/* @__PURE__ */ g(c, { size: 12 }), j("devportal.edit", "Edit")]
440
439
  })
441
440
  })
442
441
  ]
443
442
  }, e.id);
444
443
  }) })]
445
444
  })
446
- }) : Z.length > 0 && ie ? /* @__PURE__ */ _(t, {
445
+ }) : Z.length > 0 && re ? /* @__PURE__ */ g(t, {
447
446
  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, {
447
+ title: j("devportal.noItemsMatchYourSearch", "No items match your search"),
448
+ description: j("devportal.tryAdjustingFilters", "Try adjusting your search or filters")
449
+ }) : /* @__PURE__ */ g(t, {
451
450
  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", {
451
+ icon: /* @__PURE__ */ g(f, { size: 32 }),
452
+ title: j("devportal.noItemsYet", "No items yet"),
453
+ description: j("devportal.addYourFirstPhysicalProduct", "Add your first physical product listing to start selling"),
454
+ action: /* @__PURE__ */ _("button", {
456
455
  onClick: () => X("/seller/items/new"),
457
456
  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")]
457
+ children: [/* @__PURE__ */ g(p, { size: 16 }), j("devportal.listAnItem", "List an Item")]
459
458
  })
460
459
  })
461
460
  ]
462
461
  })
463
462
  });
464
- }, k = ({ item: e, onEdit: t }) => {
465
- let n = C[e.status] ?? C.DRAFT;
466
- return /* @__PURE__ */ v(b, {
463
+ }, O = ({ item: e, onEdit: t }) => {
464
+ let n = S[e.status] ?? S.DRAFT;
465
+ return /* @__PURE__ */ _(y, {
467
466
  treatment: "insight",
468
467
  className: "flex flex-col gap-3 p-4",
469
- children: [/* @__PURE__ */ v("div", {
468
+ children: [/* @__PURE__ */ _("div", {
470
469
  className: "flex items-start gap-3",
471
- children: [e.icon ? /* @__PURE__ */ _("img", {
470
+ children: [e.icon ? /* @__PURE__ */ g("img", {
472
471
  src: e.icon,
473
472
  alt: e.name,
474
473
  className: "h-20 w-20 rounded-xl object-cover shrink-0"
475
- }) : /* @__PURE__ */ _("div", {
474
+ }) : /* @__PURE__ */ g("div", {
476
475
  className: "flex h-20 w-20 items-center justify-center rounded-xl bg-bg-sunken shrink-0",
477
- children: /* @__PURE__ */ _(p, {
476
+ children: /* @__PURE__ */ g(f, {
478
477
  size: 32,
479
478
  className: "text-text-muted"
480
479
  })
481
- }), /* @__PURE__ */ v("div", {
480
+ }), /* @__PURE__ */ _("div", {
482
481
  className: "min-w-0 flex-1",
483
482
  children: [
484
- /* @__PURE__ */ _("p", {
483
+ /* @__PURE__ */ g("p", {
485
484
  className: "font-semibold text-text-primary truncate",
486
485
  children: e.name
487
486
  }),
488
- e.brand && /* @__PURE__ */ _("p", {
487
+ e.brand && /* @__PURE__ */ g("p", {
489
488
  className: "text-xs text-text-muted mt-0.5",
490
489
  children: e.brand
491
490
  }),
492
- /* @__PURE__ */ _("p", {
491
+ /* @__PURE__ */ g("p", {
493
492
  className: "text-sm text-text-secondary mt-1",
494
493
  children: w(e.price, e.currency)
495
494
  }),
496
- /* @__PURE__ */ v("div", {
495
+ /* @__PURE__ */ _("div", {
497
496
  className: "flex items-center gap-2 mt-2 flex-wrap",
498
- children: [/* @__PURE__ */ _("span", {
497
+ children: [/* @__PURE__ */ g("span", {
499
498
  className: `rounded-full px-2 py-0.5 text-xs font-medium ${n.className}`,
500
499
  children: n.label
501
- }), /* @__PURE__ */ _("span", {
500
+ }), /* @__PURE__ */ g("span", {
502
501
  className: "rounded-full px-2 py-0.5 text-xs font-medium bg-bg-muted text-text-secondary",
503
502
  children: T(e.type)
504
503
  })]
505
504
  })
506
505
  ]
507
506
  })]
508
- }), /* @__PURE__ */ v("div", {
507
+ }), /* @__PURE__ */ _("div", {
509
508
  className: "flex items-center justify-between pt-2 border-t border-border-subtle",
510
- children: [/* @__PURE__ */ v("div", {
509
+ children: [/* @__PURE__ */ _("div", {
511
510
  className: "flex items-center gap-1.5 text-sm",
512
- children: [/* @__PURE__ */ _(g, {
511
+ children: [/* @__PURE__ */ g(h, {
513
512
  size: 12,
514
513
  className: "text-text-muted shrink-0"
515
- }), e.stockQuantity === 0 ? /* @__PURE__ */ _("span", {
514
+ }), e.stockQuantity === 0 ? /* @__PURE__ */ g("span", {
516
515
  className: "text-status-error-text",
517
516
  children: "Out of stock"
518
- }) : /* @__PURE__ */ v("span", {
517
+ }) : /* @__PURE__ */ _("span", {
519
518
  className: "text-text-secondary",
520
519
  children: [e.stockQuantity, " in stock"]
521
520
  })]
522
- }), /* @__PURE__ */ v("button", {
521
+ }), /* @__PURE__ */ _("button", {
523
522
  onClick: t,
524
523
  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"]
524
+ children: [/* @__PURE__ */ g(c, { size: 12 }), "Edit"]
526
525
  })]
527
526
  })]
528
527
  });
529
528
  };
530
529
  //#endregion
531
- export { O as SellerItemsPage };
530
+ export { D as SellerItemsPage };
532
531
 
533
532
  //# sourceMappingURL=SellerItemsPage.js.map