@burdenoff/microfe-store 2026.805.1 → 2026.819.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/StoreAdminRoutes.js +27 -27
  2. package/dist/StoreRoot.js +78 -45
  3. package/dist/StoreRoot.js.map +1 -1
  4. package/dist/StoreRoutes.js +163 -85
  5. package/dist/StoreRoutes.js.map +1 -1
  6. package/dist/components/sourcing/SourcingConfirmationDialog.d.ts +15 -0
  7. package/dist/components/sourcing/SourcingConfirmationDialog.js +61 -0
  8. package/dist/components/sourcing/SourcingConfirmationDialog.js.map +1 -0
  9. package/dist/components/sourcing/SourcingUi.d.ts +51 -0
  10. package/dist/components/sourcing/SourcingUi.js +176 -0
  11. package/dist/components/sourcing/SourcingUi.js.map +1 -0
  12. package/dist/generated/global-operations.d.ts +713 -0
  13. package/dist/generated/global-operations.js +557 -175
  14. package/dist/generated/global-operations.js.map +1 -1
  15. package/dist/generated/global-types.d.ts +2152 -2159
  16. package/dist/generated/global-types.js +8 -2
  17. package/dist/generated/global-types.js.map +1 -1
  18. package/dist/hooks/useBackendCart.js +17 -17
  19. package/dist/hooks/useInstallations.js +32 -32
  20. package/dist/hooks/useOrders.js +7 -7
  21. package/dist/hooks/useSourcing.d.ts +319 -0
  22. package/dist/hooks/useSourcing.js +87 -0
  23. package/dist/hooks/useSourcing.js.map +1 -0
  24. package/dist/hooks/useStoreGraphQL.js +163 -163
  25. package/dist/index.js +12 -12
  26. package/dist/pages/AdminDashboardPage.js +132 -132
  27. package/dist/pages/AdminReviewModerationPage.js +55 -55
  28. package/dist/pages/AdminStoresPage.js +95 -95
  29. package/dist/pages/AdminSubmissionsQueuePage.js +297 -297
  30. package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
  31. package/dist/pages/AppDetailPage.js +65 -65
  32. package/dist/pages/AppSettingsPage.js +32 -32
  33. package/dist/pages/CartPage.js +66 -66
  34. package/dist/pages/CreateSourcingRequestPage.d.ts +3 -0
  35. package/dist/pages/CreateSourcingRequestPage.js +439 -0
  36. package/dist/pages/CreateSourcingRequestPage.js.map +1 -0
  37. package/dist/pages/InstalledAppsPage.js +15 -15
  38. package/dist/pages/InstalledAppsPage.js.map +1 -1
  39. package/dist/pages/MarketplaceHomePage.js +384 -384
  40. package/dist/pages/MarketplaceHomePage.js.map +1 -1
  41. package/dist/pages/MyLicensesPage.js +39 -39
  42. package/dist/pages/OrderConfirmationPage.js +57 -57
  43. package/dist/pages/OrdersPage.js +3 -3
  44. package/dist/pages/OrdersPage.js.map +1 -1
  45. package/dist/pages/ProductDetailPage.js +6 -6
  46. package/dist/pages/SellerSourcingOffersPage.d.ts +3 -0
  47. package/dist/pages/SellerSourcingOffersPage.js +284 -0
  48. package/dist/pages/SellerSourcingOffersPage.js.map +1 -0
  49. package/dist/pages/SellerSourcingOpportunitiesPage.d.ts +3 -0
  50. package/dist/pages/SellerSourcingOpportunitiesPage.js +272 -0
  51. package/dist/pages/SellerSourcingOpportunitiesPage.js.map +1 -0
  52. package/dist/pages/SellerSourcingOpportunityDetailPage.d.ts +3 -0
  53. package/dist/pages/SellerSourcingOpportunityDetailPage.js +465 -0
  54. package/dist/pages/SellerSourcingOpportunityDetailPage.js.map +1 -0
  55. package/dist/pages/SourcingRequestDetailPage.d.ts +3 -0
  56. package/dist/pages/SourcingRequestDetailPage.js +447 -0
  57. package/dist/pages/SourcingRequestDetailPage.js.map +1 -0
  58. package/dist/pages/SourcingRequestsPage.d.ts +3 -0
  59. package/dist/pages/SourcingRequestsPage.js +272 -0
  60. package/dist/pages/SourcingRequestsPage.js.map +1 -0
  61. package/dist/providers/SourcingAccessProvider.d.ts +21 -0
  62. package/dist/providers/SourcingAccessProvider.js +95 -0
  63. package/dist/providers/SourcingAccessProvider.js.map +1 -0
  64. package/dist/translations/en.d.ts +3 -0
  65. package/dist/translations/en.js +3 -0
  66. package/dist/translations/en.js.map +1 -1
  67. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import { useStore as e } from "../providers/StoreProvider.js";
2
2
  import { MarkdownEditor as t } from "../components/MarkdownEditor.js";
3
3
  import { useCallback as n, useEffect as r, useState as i } from "react";
4
- import { ArrowLeft as a, Pencil as o, Plus as s, RefreshCw as c, Store as l, Trash2 as u } from "lucide-react";
5
- import { graphqlFetch as d } from "@burdenoff/fe-libs/shared/graphql";
6
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
7
- import { useNavigate as m } from "react-router";
4
+ import { useNavigate as a } from "react-router";
5
+ import { ArrowLeft as o, Pencil as s, Plus as c, RefreshCw as l, Store as u, Trash2 as d } from "lucide-react";
6
+ import { graphqlFetch as f } from "@burdenoff/fe-libs/shared/graphql";
7
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
8
8
  import { AlertDialog as h, AlertDialogAction as g, AlertDialogCancel as _, AlertDialogContent as v, AlertDialogDescription as y, AlertDialogFooter as b, AlertDialogHeader as x, AlertDialogTitle as S, GlassCard as C, IllustratedEmptyState as w, NextSteps as T, PagePurpose as E } from "@burdenoff/fe-libs/ui";
9
9
  //#region src/pages/AdminStoresPage.tsx
10
10
  var D = "\n query AdminStores {\n stores {\n id\n slug\n name\n type\n tenantId\n isPublic\n requiresApproval\n allowUnverifiedPublishers\n currency\n logoUrl\n description\n createdAt\n }\n }\n", O = "\n mutation CreateStore($input: CreateStoreInput!) {\n createStore(input: $input) {\n id\n slug\n name\n type\n }\n }\n", k = "\n mutation UpdateStore($id: ID!, $input: UpdateStoreInput!) {\n updateStore(id: $id, input: $input) {\n id\n name\n isPublic\n requiresApproval\n }\n }\n", A = "\n mutation DeleteStore($id: ID!) {\n deleteStore(id: $id)\n }\n", j = {
@@ -18,10 +18,10 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
18
18
  currency: "USD",
19
19
  description: ""
20
20
  }, M = () => {
21
- let M = m(), { authToken: N, basePath: P } = e(), [F, I] = i([]), [L, R] = i(!1), [z, B] = i(null), [V, H] = i(!1), [U, W] = i(j), [G, K] = i(null), [q, J] = i(null), Y = n(async () => {
21
+ let M = a(), { authToken: N, basePath: P } = e(), [F, I] = i([]), [L, R] = i(!1), [z, B] = i(null), [V, H] = i(!1), [U, W] = i(j), [G, K] = i(null), [q, J] = i(null), Y = n(async () => {
22
22
  R(!0), B(null);
23
23
  try {
24
- let e = await d({
24
+ let e = await f({
25
25
  gateway: "global",
26
26
  query: D,
27
27
  authToken: N || void 0
@@ -58,7 +58,7 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
58
58
  }
59
59
  B(null);
60
60
  try {
61
- G ? await d({
61
+ G ? await f({
62
62
  gateway: "global",
63
63
  query: k,
64
64
  variables: {
@@ -73,7 +73,7 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
73
73
  }
74
74
  },
75
75
  authToken: N || void 0
76
- }) : await d({
76
+ }) : await f({
77
77
  gateway: "global",
78
78
  query: O,
79
79
  variables: { input: {
@@ -94,7 +94,7 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
94
94
  }
95
95
  }, $ = async (e) => {
96
96
  try {
97
- await d({
97
+ await f({
98
98
  gateway: "global",
99
99
  query: A,
100
100
  variables: { id: e },
@@ -104,62 +104,62 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
104
104
  B(e instanceof Error ? e.message : "Delete failed");
105
105
  }
106
106
  };
107
- return /* @__PURE__ */ p("div", {
107
+ return /* @__PURE__ */ m("div", {
108
108
  className: "min-h-screen bg-surface-default",
109
109
  children: [
110
- /* @__PURE__ */ f("header", {
110
+ /* @__PURE__ */ p("header", {
111
111
  className: "border-b border-border-seam bg-surface-raised",
112
- children: /* @__PURE__ */ f("div", {
112
+ children: /* @__PURE__ */ p("div", {
113
113
  className: "mx-auto max-w-7xl px-6 py-4",
114
- children: /* @__PURE__ */ p("div", {
114
+ children: /* @__PURE__ */ m("div", {
115
115
  className: "flex items-center justify-between",
116
- children: [/* @__PURE__ */ p("div", {
116
+ children: [/* @__PURE__ */ m("div", {
117
117
  className: "flex items-center gap-3",
118
- children: [/* @__PURE__ */ p("button", {
118
+ children: [/* @__PURE__ */ m("button", {
119
119
  type: "button",
120
120
  onClick: () => M(`${P}/dashboard`),
121
121
  className: "inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-sm text-text-secondary hover:bg-surface-hover hover:text-text-primary",
122
- children: [/* @__PURE__ */ f(a, { className: "size-4" }), "Back"]
123
- }), /* @__PURE__ */ p("div", {
122
+ children: [/* @__PURE__ */ p(o, { className: "size-4" }), "Back"]
123
+ }), /* @__PURE__ */ m("div", {
124
124
  className: "flex items-center gap-2",
125
125
  children: [
126
- /* @__PURE__ */ f(l, { className: "size-5 text-text-primary" }),
127
- /* @__PURE__ */ f("h1", {
126
+ /* @__PURE__ */ p(u, { className: "size-5 text-text-primary" }),
127
+ /* @__PURE__ */ p("h1", {
128
128
  className: "text-xl font-semibold text-text-primary",
129
129
  children: "Store registry"
130
130
  }),
131
- /* @__PURE__ */ f("span", {
131
+ /* @__PURE__ */ p("span", {
132
132
  className: "rounded-full bg-surface-accent-muted px-2 py-0.5 text-xs font-medium text-text-accent",
133
133
  children: F.length
134
134
  })
135
135
  ]
136
136
  })]
137
- }), /* @__PURE__ */ p("div", {
137
+ }), /* @__PURE__ */ m("div", {
138
138
  className: "flex gap-2",
139
- children: [/* @__PURE__ */ p("button", {
139
+ children: [/* @__PURE__ */ m("button", {
140
140
  type: "button",
141
141
  onClick: () => void Y(),
142
142
  className: "inline-flex items-center gap-2 rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary hover:bg-surface-hover",
143
143
  disabled: L,
144
- children: [/* @__PURE__ */ f(c, { className: `size-4 ${L ? "animate-spin" : ""}` }), "Refresh"]
145
- }), /* @__PURE__ */ p("button", {
144
+ children: [/* @__PURE__ */ p(l, { className: `size-4 ${L ? "animate-spin" : ""}` }), "Refresh"]
145
+ }), /* @__PURE__ */ m("button", {
146
146
  type: "button",
147
147
  onClick: X,
148
148
  className: "inline-flex items-center gap-2 rounded-md bg-surface-accent px-3 py-1.5 text-sm font-medium text-text-on-accent hover:bg-surface-accent-hover",
149
- children: [/* @__PURE__ */ f(s, { className: "size-4" }), "Create store"]
149
+ children: [/* @__PURE__ */ p(c, { className: "size-4" }), "Create store"]
150
150
  })]
151
151
  })]
152
152
  })
153
153
  })
154
154
  }),
155
- /* @__PURE__ */ p("main", {
155
+ /* @__PURE__ */ m("main", {
156
156
  className: "mx-auto max-w-7xl p-6",
157
157
  children: [
158
- /* @__PURE__ */ f(E, {
158
+ /* @__PURE__ */ p(E, {
159
159
  className: "mb-4",
160
160
  children: "A store is a storefront that decides which products a given audience can see and buy. Use this registry to spin up a public marketplace, a tenant-scoped enterprise store, or a private opt-in catalog — and to control whether submissions auto-publish or wait for approval, and whether unverified publishers may submit. One store can power a whole product's app marketplace."
161
161
  }),
162
- /* @__PURE__ */ f(T, {
162
+ /* @__PURE__ */ p(T, {
163
163
  storageKey: "store-admin-stores",
164
164
  steps: [
165
165
  {
@@ -182,28 +182,28 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
182
182
  }
183
183
  ]
184
184
  }),
185
- z && /* @__PURE__ */ f("div", {
185
+ z && /* @__PURE__ */ p("div", {
186
186
  role: "alert",
187
187
  className: "mb-4 rounded-md border border-border-danger bg-surface-danger-muted px-4 py-3 text-sm text-text-danger",
188
188
  children: z
189
189
  }),
190
- V && /* @__PURE__ */ p(C, {
190
+ V && /* @__PURE__ */ m(C, {
191
191
  treatment: "plain",
192
192
  className: "mb-6 p-4",
193
193
  children: [
194
- /* @__PURE__ */ f("h2", {
194
+ /* @__PURE__ */ p("h2", {
195
195
  className: "mb-3 text-sm font-semibold text-text-primary",
196
196
  children: G ? "Edit store" : "Create store"
197
197
  }),
198
- /* @__PURE__ */ p("div", {
198
+ /* @__PURE__ */ m("div", {
199
199
  className: "grid grid-cols-1 gap-3 md:grid-cols-2",
200
200
  children: [
201
- /* @__PURE__ */ p("label", {
201
+ /* @__PURE__ */ m("label", {
202
202
  className: "block",
203
- children: [/* @__PURE__ */ f("span", {
203
+ children: [/* @__PURE__ */ p("span", {
204
204
  className: "text-xs text-text-secondary",
205
205
  children: "Slug"
206
- }), /* @__PURE__ */ f("input", {
206
+ }), /* @__PURE__ */ p("input", {
207
207
  type: "text",
208
208
  "aria-label": "Slug",
209
209
  value: U.slug,
@@ -217,12 +217,12 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
217
217
  className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary disabled:opacity-60"
218
218
  })]
219
219
  }),
220
- /* @__PURE__ */ p("label", {
220
+ /* @__PURE__ */ m("label", {
221
221
  className: "block",
222
- children: [/* @__PURE__ */ f("span", {
222
+ children: [/* @__PURE__ */ p("span", {
223
223
  className: "text-xs text-text-secondary",
224
224
  children: "Name"
225
- }), /* @__PURE__ */ f("input", {
225
+ }), /* @__PURE__ */ p("input", {
226
226
  type: "text",
227
227
  "aria-label": "Name",
228
228
  value: U.name,
@@ -235,12 +235,12 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
235
235
  className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary"
236
236
  })]
237
237
  }),
238
- /* @__PURE__ */ p("label", {
238
+ /* @__PURE__ */ m("label", {
239
239
  className: "block",
240
- children: [/* @__PURE__ */ f("span", {
240
+ children: [/* @__PURE__ */ p("span", {
241
241
  className: "text-xs text-text-secondary",
242
242
  children: "Type"
243
- }), /* @__PURE__ */ p("select", {
243
+ }), /* @__PURE__ */ m("select", {
244
244
  "aria-label": "Store type",
245
245
  value: U.type,
246
246
  onChange: (e) => W({
@@ -250,27 +250,27 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
250
250
  disabled: !!G,
251
251
  className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary disabled:opacity-60",
252
252
  children: [
253
- /* @__PURE__ */ f("option", {
253
+ /* @__PURE__ */ p("option", {
254
254
  value: "PUBLIC",
255
255
  children: "Public"
256
256
  }),
257
- /* @__PURE__ */ f("option", {
257
+ /* @__PURE__ */ p("option", {
258
258
  value: "PRIVATE",
259
259
  children: "Private (opt-in)"
260
260
  }),
261
- /* @__PURE__ */ f("option", {
261
+ /* @__PURE__ */ p("option", {
262
262
  value: "ENTERPRISE",
263
263
  children: "Enterprise (tenant-scoped)"
264
264
  })
265
265
  ]
266
266
  })]
267
267
  }),
268
- /* @__PURE__ */ p("label", {
268
+ /* @__PURE__ */ m("label", {
269
269
  className: "block",
270
- children: [/* @__PURE__ */ f("span", {
270
+ children: [/* @__PURE__ */ p("span", {
271
271
  className: "text-xs text-text-secondary",
272
272
  children: "Currency"
273
- }), /* @__PURE__ */ f("input", {
273
+ }), /* @__PURE__ */ p("input", {
274
274
  type: "text",
275
275
  "aria-label": "Currency",
276
276
  value: U.currency,
@@ -281,12 +281,12 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
281
281
  className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary"
282
282
  })]
283
283
  }),
284
- U.type !== "PUBLIC" && /* @__PURE__ */ p("label", {
284
+ U.type !== "PUBLIC" && /* @__PURE__ */ m("label", {
285
285
  className: "block md:col-span-2",
286
- children: [/* @__PURE__ */ f("span", {
286
+ children: [/* @__PURE__ */ p("span", {
287
287
  className: "text-xs text-text-secondary",
288
288
  children: "Tenant ID (optional)"
289
- }), /* @__PURE__ */ f("input", {
289
+ }), /* @__PURE__ */ p("input", {
290
290
  type: "text",
291
291
  "aria-label": "Tenant ID",
292
292
  value: U.tenantId,
@@ -298,7 +298,7 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
298
298
  className: "mt-1 w-full rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary disabled:opacity-60"
299
299
  })]
300
300
  }),
301
- /* @__PURE__ */ f(t, {
301
+ /* @__PURE__ */ p(t, {
302
302
  className: "md:col-span-2",
303
303
  id: "store-description",
304
304
  label: "Description",
@@ -309,9 +309,9 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
309
309
  }),
310
310
  rows: 2
311
311
  }),
312
- /* @__PURE__ */ p("label", {
312
+ /* @__PURE__ */ m("label", {
313
313
  className: "flex items-center gap-2",
314
- children: [/* @__PURE__ */ f("input", {
314
+ children: [/* @__PURE__ */ p("input", {
315
315
  type: "checkbox",
316
316
  "aria-label": "Publicly visible",
317
317
  checked: U.isPublic,
@@ -319,14 +319,14 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
319
319
  ...U,
320
320
  isPublic: e.target.checked
321
321
  })
322
- }), /* @__PURE__ */ f("span", {
322
+ }), /* @__PURE__ */ p("span", {
323
323
  className: "text-sm text-text-primary",
324
324
  children: "Publicly visible"
325
325
  })]
326
326
  }),
327
- /* @__PURE__ */ p("label", {
327
+ /* @__PURE__ */ m("label", {
328
328
  className: "flex items-center gap-2",
329
- children: [/* @__PURE__ */ f("input", {
329
+ children: [/* @__PURE__ */ p("input", {
330
330
  type: "checkbox",
331
331
  "aria-label": "Requires admin approval",
332
332
  checked: U.requiresApproval,
@@ -334,14 +334,14 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
334
334
  ...U,
335
335
  requiresApproval: e.target.checked
336
336
  })
337
- }), /* @__PURE__ */ f("span", {
337
+ }), /* @__PURE__ */ p("span", {
338
338
  className: "text-sm text-text-primary",
339
339
  children: "Requires admin approval"
340
340
  })]
341
341
  }),
342
- /* @__PURE__ */ p("label", {
342
+ /* @__PURE__ */ m("label", {
343
343
  className: "flex items-center gap-2 md:col-span-2",
344
- children: [/* @__PURE__ */ f("input", {
344
+ children: [/* @__PURE__ */ p("input", {
345
345
  type: "checkbox",
346
346
  "aria-label": "Allow unverified publishers to submit",
347
347
  checked: U.allowUnverifiedPublishers,
@@ -349,23 +349,23 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
349
349
  ...U,
350
350
  allowUnverifiedPublishers: e.target.checked
351
351
  })
352
- }), /* @__PURE__ */ f("span", {
352
+ }), /* @__PURE__ */ p("span", {
353
353
  className: "text-sm text-text-primary",
354
354
  children: "Allow unverified publishers to submit"
355
355
  })]
356
356
  })
357
357
  ]
358
358
  }),
359
- /* @__PURE__ */ p("div", {
359
+ /* @__PURE__ */ m("div", {
360
360
  className: "mt-4 flex justify-end gap-2",
361
- children: [/* @__PURE__ */ f("button", {
361
+ children: [/* @__PURE__ */ p("button", {
362
362
  type: "button",
363
363
  onClick: () => {
364
364
  H(!1), K(null), W(j);
365
365
  },
366
366
  className: "rounded-md border border-border-default bg-surface-default px-3 py-1.5 text-sm text-text-primary hover:bg-surface-hover",
367
367
  children: "Cancel"
368
- }), /* @__PURE__ */ f("button", {
368
+ }), /* @__PURE__ */ p("button", {
369
369
  type: "button",
370
370
  onClick: () => void Q(),
371
371
  className: "rounded-md bg-surface-accent px-3 py-1.5 text-sm font-medium text-text-on-accent hover:bg-surface-accent-hover",
@@ -374,99 +374,99 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
374
374
  })
375
375
  ]
376
376
  }),
377
- L && F.length === 0 ? /* @__PURE__ */ f("output", {
377
+ L && F.length === 0 ? /* @__PURE__ */ p("output", {
378
378
  className: "block py-16 text-center text-text-secondary",
379
379
  children: "Loading stores…"
380
- }) : F.length === 0 ? /* @__PURE__ */ f(w, {
380
+ }) : F.length === 0 ? /* @__PURE__ */ p(w, {
381
381
  illustration: "empty-generic",
382
382
  title: "No stores yet",
383
383
  description: "Create your first store to give an audience a place to discover and install products.",
384
- action: /* @__PURE__ */ p("button", {
384
+ action: /* @__PURE__ */ m("button", {
385
385
  type: "button",
386
386
  onClick: X,
387
387
  className: "inline-flex items-center gap-2 rounded-md bg-surface-accent px-3 py-1.5 text-sm font-medium text-text-on-accent hover:bg-surface-accent-hover",
388
- children: [/* @__PURE__ */ f(s, { className: "size-4" }), "Create store"]
388
+ children: [/* @__PURE__ */ p(c, { className: "size-4" }), "Create store"]
389
389
  })
390
- }) : /* @__PURE__ */ f("div", {
390
+ }) : /* @__PURE__ */ p("div", {
391
391
  className: "overflow-hidden rounded-lg border border-border-seam",
392
- children: /* @__PURE__ */ p("table", {
392
+ children: /* @__PURE__ */ m("table", {
393
393
  className: "w-full text-sm",
394
- children: [/* @__PURE__ */ f("thead", {
394
+ children: [/* @__PURE__ */ p("thead", {
395
395
  className: "bg-surface-muted text-left text-xs uppercase tracking-wide text-text-secondary",
396
- children: /* @__PURE__ */ p("tr", { children: [
397
- /* @__PURE__ */ f("th", {
396
+ children: /* @__PURE__ */ m("tr", { children: [
397
+ /* @__PURE__ */ p("th", {
398
398
  className: "px-4 py-2",
399
399
  children: "Slug"
400
400
  }),
401
- /* @__PURE__ */ f("th", {
401
+ /* @__PURE__ */ p("th", {
402
402
  className: "px-4 py-2",
403
403
  children: "Name"
404
404
  }),
405
- /* @__PURE__ */ f("th", {
405
+ /* @__PURE__ */ p("th", {
406
406
  className: "px-4 py-2",
407
407
  children: "Type"
408
408
  }),
409
- /* @__PURE__ */ f("th", {
409
+ /* @__PURE__ */ p("th", {
410
410
  className: "px-4 py-2",
411
411
  children: "Public"
412
412
  }),
413
- /* @__PURE__ */ f("th", {
413
+ /* @__PURE__ */ p("th", {
414
414
  className: "px-4 py-2",
415
415
  children: "Approval"
416
416
  }),
417
- /* @__PURE__ */ f("th", {
417
+ /* @__PURE__ */ p("th", {
418
418
  className: "px-4 py-2",
419
419
  children: "Currency"
420
420
  }),
421
- /* @__PURE__ */ f("th", {
421
+ /* @__PURE__ */ p("th", {
422
422
  className: "px-4 py-2 text-right",
423
423
  children: "Actions"
424
424
  })
425
425
  ] })
426
- }), /* @__PURE__ */ f("tbody", {
426
+ }), /* @__PURE__ */ p("tbody", {
427
427
  className: "divide-y divide-border-seam bg-surface-raised",
428
- children: F.map((e) => /* @__PURE__ */ p("tr", {
428
+ children: F.map((e) => /* @__PURE__ */ m("tr", {
429
429
  className: "text-text-primary",
430
430
  children: [
431
- /* @__PURE__ */ f("td", {
431
+ /* @__PURE__ */ p("td", {
432
432
  className: "px-4 py-2 font-mono text-xs",
433
433
  children: e.slug
434
434
  }),
435
- /* @__PURE__ */ f("td", {
435
+ /* @__PURE__ */ p("td", {
436
436
  className: "px-4 py-2",
437
437
  children: e.name
438
438
  }),
439
- /* @__PURE__ */ f("td", {
439
+ /* @__PURE__ */ p("td", {
440
440
  className: "px-4 py-2",
441
- children: /* @__PURE__ */ f("span", {
441
+ children: /* @__PURE__ */ p("span", {
442
442
  className: "rounded-full bg-surface-accent-muted px-2 py-0.5 text-xs font-medium text-text-accent",
443
443
  children: e.type
444
444
  })
445
445
  }),
446
- /* @__PURE__ */ f("td", {
446
+ /* @__PURE__ */ p("td", {
447
447
  className: "px-4 py-2 text-xs",
448
448
  children: e.isPublic ? "Yes" : "No"
449
449
  }),
450
- /* @__PURE__ */ f("td", {
450
+ /* @__PURE__ */ p("td", {
451
451
  className: "px-4 py-2 text-xs",
452
452
  children: e.requiresApproval ? "Required" : "Auto-publish"
453
453
  }),
454
- /* @__PURE__ */ f("td", {
454
+ /* @__PURE__ */ p("td", {
455
455
  className: "px-4 py-2 text-xs",
456
456
  children: e.currency
457
457
  }),
458
- /* @__PURE__ */ p("td", {
458
+ /* @__PURE__ */ m("td", {
459
459
  className: "px-4 py-2 text-right",
460
- children: [/* @__PURE__ */ p("button", {
460
+ children: [/* @__PURE__ */ m("button", {
461
461
  type: "button",
462
462
  onClick: () => Z(e),
463
463
  className: "inline-flex items-center gap-1 rounded-md border border-border-default px-2 py-1 text-xs text-text-primary hover:bg-surface-hover",
464
- children: [/* @__PURE__ */ f(o, { className: "size-3" }), "Edit"]
465
- }), e.id !== "store_public_default" && /* @__PURE__ */ p("button", {
464
+ children: [/* @__PURE__ */ p(s, { className: "size-3" }), "Edit"]
465
+ }), e.id !== "store_public_default" && /* @__PURE__ */ m("button", {
466
466
  type: "button",
467
467
  onClick: () => J(e.id),
468
468
  className: "ml-2 inline-flex items-center gap-1 rounded-md border border-border-danger px-2 py-1 text-xs text-text-danger hover:bg-surface-danger-muted",
469
- children: [/* @__PURE__ */ f(u, { className: "size-3" }), "Delete"]
469
+ children: [/* @__PURE__ */ p(d, { className: "size-3" }), "Delete"]
470
470
  })]
471
471
  })
472
472
  ]
@@ -476,13 +476,13 @@ var D = "\n query AdminStores {\n stores {\n id\n slug\n name
476
476
  })
477
477
  ]
478
478
  }),
479
- /* @__PURE__ */ f(h, {
479
+ /* @__PURE__ */ p(h, {
480
480
  open: q !== null,
481
481
  onOpenChange: (e) => !e && J(null),
482
- children: /* @__PURE__ */ p(v, { children: [/* @__PURE__ */ p(x, { children: [/* @__PURE__ */ f(S, { children: "Delete this store?" }), /* @__PURE__ */ f(y, { children: "This is a soft delete." })] }), /* @__PURE__ */ p(b, { children: [/* @__PURE__ */ f(_, {
482
+ children: /* @__PURE__ */ m(v, { children: [/* @__PURE__ */ m(x, { children: [/* @__PURE__ */ p(S, { children: "Delete this store?" }), /* @__PURE__ */ p(y, { children: "This is a soft delete." })] }), /* @__PURE__ */ m(b, { children: [/* @__PURE__ */ p(_, {
483
483
  onClick: () => J(null),
484
484
  children: "Cancel"
485
- }), /* @__PURE__ */ f(g, {
485
+ }), /* @__PURE__ */ p(g, {
486
486
  className: "bg-surface-danger text-text-on-danger hover:bg-surface-danger-hover",
487
487
  onClick: () => {
488
488
  q && $(q), J(null);