@burdenoff/microfe-export 2026.1124.2 → 2026.1125.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 (38) hide show
  1. package/dist/export/ExportRoutes.js +62 -57
  2. package/dist/export/ExportRoutes.js.map +1 -1
  3. package/dist/export/components/ConfirmDestructiveDialog.js +18 -14
  4. package/dist/export/components/ConfirmDestructiveDialog.js.map +1 -1
  5. package/dist/export/components/DownloadStatus.js +14 -10
  6. package/dist/export/components/DownloadStatus.js.map +1 -1
  7. package/dist/export/components/ExportProgressBar.d.ts +3 -1
  8. package/dist/export/components/ExportProgressBar.js +23 -11
  9. package/dist/export/components/ExportProgressBar.js.map +1 -1
  10. package/dist/export/components/loadingSystem.d.ts +64 -0
  11. package/dist/export/components/loadingSystem.js +49 -0
  12. package/dist/export/components/loadingSystem.js.map +1 -0
  13. package/dist/export/hooks/exportBackgroundTask.d.ts +18 -0
  14. package/dist/export/hooks/exportBackgroundTask.js +46 -0
  15. package/dist/export/hooks/exportBackgroundTask.js.map +1 -0
  16. package/dist/export/hooks/useExportQueries.js +140 -124
  17. package/dist/export/hooks/useExportQueries.js.map +1 -1
  18. package/dist/export/pages/CreateExportPage.js +29 -27
  19. package/dist/export/pages/CreateExportPage.js.map +1 -1
  20. package/dist/export/pages/ExportDashboardPage.js +114 -113
  21. package/dist/export/pages/ExportDashboardPage.js.map +1 -1
  22. package/dist/export/pages/ExportDetailPage.js +104 -98
  23. package/dist/export/pages/ExportDetailPage.js.map +1 -1
  24. package/dist/export/pages/ExportHistoryPage.js +150 -149
  25. package/dist/export/pages/ExportHistoryPage.js.map +1 -1
  26. package/dist/export/pages/ExportTemplatesPage.js +156 -154
  27. package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
  28. package/dist/export/pages/TemplateDetailPage.js +142 -136
  29. package/dist/export/pages/TemplateDetailPage.js.map +1 -1
  30. package/dist/export/pages/v2/DownloadDetailPage.js +108 -103
  31. package/dist/export/pages/v2/DownloadDetailPage.js.map +1 -1
  32. package/dist/export/pages/v2/DownloadsPage.js +153 -152
  33. package/dist/export/pages/v2/DownloadsPage.js.map +1 -1
  34. package/dist/export/pages/v2/NewDownloadPage.js +142 -138
  35. package/dist/export/pages/v2/NewDownloadPage.js.map +1 -1
  36. package/dist/export/workspace-v2/DownloadCells.js +32 -20
  37. package/dist/export/workspace-v2/DownloadCells.js.map +1 -1
  38. package/package.json +2 -2
@@ -2,8 +2,8 @@ import { useExport as e } from "../../providers/ExportProvider.js";
2
2
  import { useExportJobs as t, useRetryExportJob as ee } from "../../hooks/useExportQueries.js";
3
3
  import { useEntityLabel as te } from "../../hooks/useEntityLabel.js";
4
4
  import { useExportStore as ne } from "../../store/exportStore.js";
5
- import { useTr as re } from "../../hooks/useTr.js";
6
- import { PageLayout as n } from "../../components/PageLayout.js";
5
+ import { useTr as n } from "../../hooks/useTr.js";
6
+ import { PageLayout as re } from "../../components/PageLayout.js";
7
7
  import { DownloadsTabs as ie } from "../../components/DownloadsTabs.js";
8
8
  import { DownloadStatus as r } from "../../components/DownloadStatus.js";
9
9
  import { ExportProgressBar as ae } from "../../components/ExportProgressBar.js";
@@ -12,12 +12,13 @@ import { canTryAgain as se, isInProgress as i } from "../../utils/downloadStatus
12
12
  import { getAllStatuses as a } from "../../constants/enums.js";
13
13
  import { joinPath as ce } from "../../utils/paths.js";
14
14
  import { cn as le } from "../../utils/cn.js";
15
- import { useEffect as ue, useMemo as de, useRef as fe, useState as o } from "react";
16
- import { AlertCircle as s, ChevronLeft as c, ChevronRight as l, Download as u, FileArchive as pe, Filter as me, Plus as d, RefreshCw as he, RotateCcw as ge, Search as _e, X as f } from "lucide-react";
17
- import { useSearchParams as ve } from "react-router";
18
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
19
- import { Button as h, CTAOverflowMenu as ye, EmphasisPanel as be, GlassCard as xe, IllustratedEmptyState as Se, ThemedSelect as g, useRememberedOpen as _ } from "@burdenoff/fe-libs/ui";
20
- var v = {
15
+ import { SkeletonBlock as ue } from "../../components/loadingSystem.js";
16
+ import { useEffect as de, useMemo as fe, useRef as pe, useState as o } from "react";
17
+ import { AlertCircle as s, ChevronLeft as c, ChevronRight as me, Download as l, FileArchive as he, Filter as ge, Plus as u, RefreshCw as _e, RotateCcw as ve, Search as ye, X as d } from "lucide-react";
18
+ import { useSearchParams as be } from "react-router";
19
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
20
+ import { Button as m, CTAOverflowMenu as xe, EmphasisPanel as Se, GlassCard as Ce, IllustratedEmptyState as we, ThemedSelect as h, useRememberedOpen as g } from "@burdenoff/fe-libs/ui";
21
+ var _ = {
21
22
  CREATED: ["export.downloads.filters.status.created", "Preparing: not started"],
22
23
  QUEUED: ["export.downloads.filters.status.queued", "Preparing: waiting"],
23
24
  RUNNING: ["export.downloads.filters.status.running", "Preparing: in progress"],
@@ -27,291 +28,291 @@ var v = {
27
28
  EXPIRED: ["export.status.expired", "Link expired: start again"],
28
29
  DELETED: ["export.status.deleted", "Deleted"]
29
30
  };
30
- function y() {
31
- let { basePath: y = "/", navigate: Ce } = e(), b = re(), x = te(), { jobFilter: S, updateFilter: C, resetFilter: we, pagination: w, setPagination: T } = ne(), [E] = ve(), { retryJob: D, isPending: O } = ee(), [k, A] = o(null), [j, M] = o([null]), [N, P] = o(0), F = () => {
31
+ function v() {
32
+ let { basePath: v = "/", navigate: Te } = e(), y = n(), b = te(), { jobFilter: x, updateFilter: S, resetFilter: C, pagination: w, setPagination: T } = ne(), [E] = be(), { retryJob: D, isPending: O } = ee(), [k, A] = o(null), [j, M] = o([null]), [N, P] = o(0), F = () => {
32
33
  M([null]), P(0);
33
- }, I = fe(!1);
34
- ue(() => {
34
+ }, I = pe(!1);
35
+ de(() => {
35
36
  if (I.current) return;
36
37
  I.current = !0;
37
38
  let e = E.get("status");
38
- e && a().includes(e) && C({ status: e });
39
- }, [E, C]);
40
- let { data: L, totalCount: R, pageInfo: z, isLoading: B, error: V, refetch: Te } = t(S, {
39
+ e && a().includes(e) && S({ status: e });
40
+ }, [E, S]);
41
+ let { data: L, totalCount: R, pageInfo: z, isLoading: B, error: V, refetch: Ee } = t(x, {
41
42
  first: w.pageSize,
42
43
  after: j[N] ?? void 0
43
- }), [H, Ee] = _("export.downloads.summary", !1), [U, De] = _("export.downloads.filters", !1), W = !!S.search || S.status !== "all" || S.format !== "all", Oe = R > 5 || W, G = de(() => {
44
- if (!S.search) return L;
45
- let e = S.search.toLowerCase();
46
- return L.filter((t) => t.name.toLowerCase().includes(e) || t.entityTypes.some((t) => t.toLowerCase().includes(e) || x(t).toLowerCase().includes(e)));
44
+ }), [H, De] = g("export.downloads.summary", !1), [U, Oe] = g("export.downloads.filters", !1), W = !!x.search || x.status !== "all" || x.format !== "all", ke = R > 5 || W, G = fe(() => {
45
+ if (!x.search) return L;
46
+ let e = x.search.toLowerCase();
47
+ return L.filter((t) => t.name.toLowerCase().includes(e) || t.entityTypes.some((t) => t.toLowerCase().includes(e) || b(t).toLowerCase().includes(e)));
47
48
  }, [
48
49
  L,
49
- S.search,
50
- x
51
- ]), K = S.status === "all", q = K ? G.filter((e) => i(e.status)) : [], J = K ? G.filter((e) => !i(e.status)) : G, Y = (e) => {
52
- C(e), ("status" in e || "format" in e) && F();
50
+ x.search,
51
+ b
52
+ ]), K = x.status === "all", q = K ? G.filter((e) => i(e.status)) : [], J = K ? G.filter((e) => !i(e.status)) : G, Y = (e) => {
53
+ S(e), ("status" in e || "format" in e) && F();
53
54
  }, X = () => {
54
- we(), F();
55
- }, ke = () => {
55
+ C(), F();
56
+ }, Ae = () => {
56
57
  z?.hasNextPage && z.endCursor && (M([...j.slice(0, N + 1), z.endCursor]), P(N + 1), T({
57
58
  page: N + 2,
58
59
  cursor: z.endCursor
59
60
  }));
60
- }, Ae = () => {
61
+ }, je = () => {
61
62
  N !== 0 && (P(N - 1), T({
62
63
  page: N,
63
64
  cursor: j[N - 1] ?? null
64
65
  }));
65
- }, Z = (e) => Ce?.(ce(y, e)), je = async (e) => {
66
+ }, Z = (e) => Te?.(ce(v, e)), Q = async (e) => {
66
67
  A(null);
67
68
  try {
68
69
  let t = await D(e.id);
69
70
  t?.id && Z(t.id);
70
71
  } catch (e) {
71
- A(e instanceof Error && e.message ? e.message : b("export.downloads.errors.retryFailed", "Couldn't start it again. Try once more."));
72
+ A(e instanceof Error && e.message ? e.message : y("export.downloads.errors.retryFailed", "Couldn't start it again. Try once more."));
72
73
  }
73
- }, Q = L.filter((e) => i(e.status)).length, Me = L.filter((e) => e.status === "COMPLETED").length, Ne = (e) => {
74
- let t = e.entityTypes.map(x);
75
- return `${t.slice(0, 3).join(", ")}${t.length > 3 ? ` ${b("export.downloads.row.more", "+{{count}} more", { count: t.length - 3 })}` : ""}${e.createdAt ? ` · ${new Date(e.createdAt).toLocaleDateString()}` : ""}`;
76
- }, Pe = (e) => {
74
+ }, Me = L.filter((e) => i(e.status)).length, Ne = L.filter((e) => e.status === "COMPLETED").length, Pe = (e) => {
75
+ let t = e.entityTypes.map(b);
76
+ return `${t.slice(0, 3).join(", ")}${t.length > 3 ? ` ${y("export.downloads.row.more", "+{{count}} more", { count: t.length - 3 })}` : ""}${e.createdAt ? ` · ${new Date(e.createdAt).toLocaleDateString()}` : ""}`;
77
+ }, Fe = (e) => {
77
78
  let t = oe(e);
78
- return /* @__PURE__ */ m("li", {
79
+ return /* @__PURE__ */ p("li", {
79
80
  className: "flex flex-col gap-3 border-b border-border-subtle p-4 last:border-b-0 sm:flex-row sm:items-center",
80
- children: [/* @__PURE__ */ m("button", {
81
+ children: [/* @__PURE__ */ p("button", {
81
82
  type: "button",
82
83
  onClick: () => Z(e.id),
83
84
  className: "flex min-w-0 flex-1 items-start gap-3 rounded-lg text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
84
- children: [/* @__PURE__ */ p(pe, {
85
+ children: [/* @__PURE__ */ f(he, {
85
86
  size: 20,
86
87
  "aria-hidden": "true",
87
88
  className: "mt-0.5 shrink-0 text-text-secondary"
88
- }), /* @__PURE__ */ m("span", {
89
+ }), /* @__PURE__ */ p("span", {
89
90
  className: "min-w-0",
90
- children: [/* @__PURE__ */ p("span", {
91
+ children: [/* @__PURE__ */ f("span", {
91
92
  className: "block truncate font-medium text-text-primary",
92
93
  children: e.name
93
- }), /* @__PURE__ */ p("span", {
94
+ }), /* @__PURE__ */ f("span", {
94
95
  className: "block text-sm text-text-secondary line-clamp-2",
95
- children: Ne(e)
96
+ children: Pe(e)
96
97
  })]
97
98
  })]
98
- }), /* @__PURE__ */ m("div", {
99
+ }), /* @__PURE__ */ p("div", {
99
100
  className: "flex shrink-0 items-center gap-3 pl-8 sm:pl-0",
100
- children: [/* @__PURE__ */ p(r, { status: e.status }), t ? /* @__PURE__ */ m(h, {
101
+ children: [/* @__PURE__ */ f(r, { status: e.status }), t ? /* @__PURE__ */ p(m, {
101
102
  type: "button",
102
103
  variant: "outline",
103
104
  size: "sm",
104
105
  onClick: () => window.location.assign(t),
105
- "aria-label": b("export.downloads.row.downloadAria", "Download {{name}}", { name: e.name }),
106
- children: [/* @__PURE__ */ p(u, {
106
+ "aria-label": y("export.downloads.row.downloadAria", "Download {{name}}", { name: e.name }),
107
+ children: [/* @__PURE__ */ f(l, {
107
108
  size: 14,
108
109
  "aria-hidden": "true"
109
- }), b("export.detail.parts.download", "Download")]
110
- }) : se(e.status) ? /* @__PURE__ */ m(h, {
110
+ }), y("export.detail.parts.download", "Download")]
111
+ }) : se(e.status) ? /* @__PURE__ */ p(m, {
111
112
  type: "button",
112
113
  variant: "outline",
113
114
  size: "sm",
114
115
  disabled: O,
115
- onClick: () => void je(e),
116
- "aria-label": b("export.downloads.row.tryAgainAria", "Try {{name}} again", { name: e.name }),
117
- children: [/* @__PURE__ */ p(ge, {
116
+ onClick: () => void Q(e),
117
+ "aria-label": y("export.downloads.row.tryAgainAria", "Try {{name}} again", { name: e.name }),
118
+ children: [/* @__PURE__ */ f(ve, {
118
119
  size: 14,
119
120
  "aria-hidden": "true"
120
- }), b("export.detail.actions.retry", "Retry Export")]
121
+ }), y("export.detail.actions.retry", "Retry Export")]
121
122
  }) : null]
122
123
  })]
123
124
  }, e.id);
124
125
  }, $ = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary";
125
- return /* @__PURE__ */ m(n, {
126
- title: b("export.dashboard.title", "Export"),
127
- subtitle: b("export.downloads.subtitle", "Get a copy of your workspace data as a ZIP file."),
128
- icon: /* @__PURE__ */ p(u, { size: 24 }),
129
- headerActions: /* @__PURE__ */ p(ye, {
126
+ return /* @__PURE__ */ p(re, {
127
+ title: y("export.dashboard.title", "Export"),
128
+ subtitle: y("export.downloads.subtitle", "Get a copy of your workspace data as a ZIP file."),
129
+ icon: /* @__PURE__ */ f(l, { size: 24 }),
130
+ headerActions: /* @__PURE__ */ f(xe, {
130
131
  primary: {
131
- label: b("export.history.actions.newExport", "New Export"),
132
- icon: /* @__PURE__ */ p(d, { size: 16 }),
132
+ label: y("export.history.actions.newExport", "New Export"),
133
+ icon: /* @__PURE__ */ f(u, { size: 16 }),
133
134
  onSelect: () => Z("new")
134
135
  },
135
136
  actions: [{
136
- label: H ? b("export.downloads.summary.hide", "Hide summary") : b("export.downloads.summary.show", "Show summary"),
137
- onSelect: () => Ee(!H)
137
+ label: H ? y("export.downloads.summary.hide", "Hide summary") : y("export.downloads.summary.show", "Show summary"),
138
+ onSelect: () => De(!H)
138
139
  }]
139
140
  }),
140
141
  children: [
141
- /* @__PURE__ */ p(ie, {}),
142
- H && /* @__PURE__ */ p("div", {
142
+ /* @__PURE__ */ f(ie, {}),
143
+ H && /* @__PURE__ */ f("div", {
143
144
  className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
144
145
  children: [
145
- [b("export.dashboard.metrics.total", "Total Exports"), R],
146
- [b("export.dashboard.metrics.active", "Active"), Q],
147
- [b("export.dashboard.metrics.completed", "Completed"), Me]
148
- ].map(([e, t]) => /* @__PURE__ */ m(xe, {
146
+ [y("export.dashboard.metrics.total", "Total Exports"), R],
147
+ [y("export.dashboard.metrics.active", "Active"), Me],
148
+ [y("export.dashboard.metrics.completed", "Completed"), Ne]
149
+ ].map(([e, t]) => /* @__PURE__ */ p(Ce, {
149
150
  treatment: "metric",
150
151
  className: "border-border-seam p-4",
151
- children: [/* @__PURE__ */ p("p", {
152
+ children: [/* @__PURE__ */ f("p", {
152
153
  className: "text-xs font-medium text-text-secondary",
153
154
  children: e
154
- }), /* @__PURE__ */ p("p", {
155
+ }), /* @__PURE__ */ f("p", {
155
156
  className: "text-2xl font-bold tabular-nums text-text-primary",
156
157
  children: Number(t).toLocaleString()
157
158
  })]
158
159
  }, String(e)))
159
160
  }),
160
- Oe && /* @__PURE__ */ m("div", {
161
+ ke && /* @__PURE__ */ p("div", {
161
162
  className: "space-y-3",
162
- children: [/* @__PURE__ */ m(h, {
163
+ children: [/* @__PURE__ */ p(m, {
163
164
  type: "button",
164
165
  variant: "ghost",
165
166
  size: "sm",
166
167
  "aria-expanded": U,
167
168
  "aria-controls": "export-downloads-filters",
168
- onClick: () => De(!U),
169
+ onClick: () => Oe(!U),
169
170
  children: [
170
- /* @__PURE__ */ p(me, {
171
+ /* @__PURE__ */ f(ge, {
171
172
  size: 14,
172
173
  "aria-hidden": "true"
173
174
  }),
174
- b("export.downloads.filters.toggle", "More filters"),
175
- W ? /* @__PURE__ */ p("span", {
175
+ y("export.downloads.filters.toggle", "More filters"),
176
+ W ? /* @__PURE__ */ f("span", {
176
177
  className: "rounded-full bg-bg-sunken px-1.5 text-xs",
177
- children: b("export.downloads.filters.on", "On")
178
+ children: y("export.downloads.filters.on", "On")
178
179
  }) : null
179
180
  ]
180
- }), /* @__PURE__ */ m("div", {
181
+ }), /* @__PURE__ */ p("div", {
181
182
  id: "export-downloads-filters",
182
183
  hidden: !U,
183
184
  className: "space-y-3 rounded-xl border border-border-subtle p-4",
184
185
  children: [
185
- /* @__PURE__ */ m("div", {
186
+ /* @__PURE__ */ p("div", {
186
187
  className: "relative",
187
- children: [/* @__PURE__ */ p(_e, {
188
+ children: [/* @__PURE__ */ f(ye, {
188
189
  size: 16,
189
190
  "aria-hidden": "true",
190
191
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
191
- }), /* @__PURE__ */ p("input", {
192
+ }), /* @__PURE__ */ f("input", {
192
193
  type: "search",
193
- "aria-label": b("export.downloads.filters.search", "Search downloads"),
194
- placeholder: b("export.downloads.filters.searchPlaceholder", "Search by name or kind of data"),
195
- value: S.search,
194
+ "aria-label": y("export.downloads.filters.search", "Search downloads"),
195
+ placeholder: y("export.downloads.filters.searchPlaceholder", "Search by name or kind of data"),
196
+ value: x.search,
196
197
  onChange: (e) => Y({ search: e.target.value }),
197
198
  className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-9 pr-3 text-sm focus:outline-none focus:ring-2 focus:ring-primary/20"
198
199
  })]
199
200
  }),
200
- /* @__PURE__ */ m("div", {
201
+ /* @__PURE__ */ p("div", {
201
202
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
202
- children: [/* @__PURE__ */ m("label", {
203
+ children: [/* @__PURE__ */ p("label", {
203
204
  className: "space-y-1 text-sm font-medium",
204
- children: [/* @__PURE__ */ p("span", { children: b("export.history.filters.status.label", "Status") }), /* @__PURE__ */ m(g, {
205
- value: S.status,
205
+ children: [/* @__PURE__ */ f("span", { children: y("export.history.filters.status.label", "Status") }), /* @__PURE__ */ p(h, {
206
+ value: x.status,
206
207
  onChange: (e) => Y({ status: e.target.value }),
207
208
  className: $,
208
- children: [/* @__PURE__ */ p("option", {
209
+ children: [/* @__PURE__ */ f("option", {
209
210
  value: "all",
210
- children: b("export.history.filters.status.all", "All Statuses")
211
- }), a().map((e) => /* @__PURE__ */ p("option", {
211
+ children: y("export.history.filters.status.all", "All Statuses")
212
+ }), a().map((e) => /* @__PURE__ */ f("option", {
212
213
  value: e,
213
- children: b(v[e][0], v[e][1])
214
+ children: y(_[e][0], _[e][1])
214
215
  }, e))]
215
216
  })]
216
- }), /* @__PURE__ */ m("label", {
217
+ }), /* @__PURE__ */ p("label", {
217
218
  className: "space-y-1 text-sm font-medium",
218
- children: [/* @__PURE__ */ p("span", { children: b("export.history.filters.format.label", "Format") }), /* @__PURE__ */ m(g, {
219
- value: S.format,
219
+ children: [/* @__PURE__ */ f("span", { children: y("export.history.filters.format.label", "Format") }), /* @__PURE__ */ p(h, {
220
+ value: x.format,
220
221
  onChange: (e) => Y({ format: e.target.value }),
221
222
  className: $,
222
223
  children: [
223
- /* @__PURE__ */ p("option", {
224
+ /* @__PURE__ */ f("option", {
224
225
  value: "all",
225
- children: b("export.history.filters.format.all", "All Formats")
226
+ children: y("export.history.filters.format.all", "All Formats")
226
227
  }),
227
- /* @__PURE__ */ p("option", {
228
+ /* @__PURE__ */ f("option", {
228
229
  value: "CSV",
229
- children: b("export.format.csv", "CSV")
230
+ children: y("export.format.csv", "CSV")
230
231
  }),
231
- /* @__PURE__ */ p("option", {
232
+ /* @__PURE__ */ f("option", {
232
233
  value: "JSON",
233
- children: b("export.format.json", "JSON")
234
+ children: y("export.format.json", "JSON")
234
235
  })
235
236
  ]
236
237
  })]
237
238
  })]
238
239
  }),
239
- W && /* @__PURE__ */ m(h, {
240
+ W && /* @__PURE__ */ p(m, {
240
241
  type: "button",
241
242
  variant: "ghost",
242
243
  size: "sm",
243
244
  onClick: X,
244
- children: [/* @__PURE__ */ p(f, {
245
+ children: [/* @__PURE__ */ f(d, {
245
246
  size: 14,
246
247
  "aria-hidden": "true"
247
- }), b("export.history.filters.clearAll", "Clear All")]
248
+ }), y("export.history.filters.clearAll", "Clear All")]
248
249
  })
249
250
  ]
250
251
  })]
251
252
  }),
252
- k && /* @__PURE__ */ p("p", {
253
+ k && /* @__PURE__ */ f("p", {
253
254
  role: "alert",
254
255
  className: "rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
255
256
  children: k
256
257
  }),
257
- V && /* @__PURE__ */ m("div", {
258
+ V && /* @__PURE__ */ p("div", {
258
259
  role: "alert",
259
260
  className: "flex items-start gap-3 rounded-xl border border-border-default bg-status-error-bg-subtle p-4",
260
- children: [/* @__PURE__ */ p(s, {
261
+ children: [/* @__PURE__ */ f(s, {
261
262
  size: 20,
262
263
  "aria-hidden": "true",
263
264
  className: "shrink-0 text-status-error-text"
264
- }), /* @__PURE__ */ m("div", {
265
+ }), /* @__PURE__ */ p("div", {
265
266
  className: "space-y-2",
266
267
  children: [
267
- /* @__PURE__ */ p("p", {
268
+ /* @__PURE__ */ f("p", {
268
269
  className: "font-medium text-status-error-text",
269
- children: b("export.history.error.title", "Error loading exports")
270
+ children: y("export.history.error.title", "Error loading exports")
270
271
  }),
271
- /* @__PURE__ */ p("p", {
272
+ /* @__PURE__ */ f("p", {
272
273
  className: "text-sm text-status-error-text",
273
274
  children: V.message
274
275
  }),
275
- /* @__PURE__ */ m(h, {
276
+ /* @__PURE__ */ p(m, {
276
277
  type: "button",
277
278
  variant: "outline",
278
279
  size: "sm",
279
- onClick: () => void Te(),
280
- children: [/* @__PURE__ */ p(he, {
280
+ onClick: () => void Ee(),
281
+ children: [/* @__PURE__ */ f(_e, {
281
282
  size: 14,
282
283
  "aria-hidden": "true"
283
- }), b("export.history.error.retry", "Try Again")]
284
+ }), y("export.history.error.retry", "Try Again")]
284
285
  })
285
286
  ]
286
287
  })]
287
288
  }),
288
- B && /* @__PURE__ */ p("div", {
289
+ B && /* @__PURE__ */ f("div", {
289
290
  className: "space-y-2",
290
291
  "aria-hidden": "true",
291
292
  children: [
292
293
  0,
293
294
  1,
294
295
  2
295
- ].map((e) => /* @__PURE__ */ p("div", { className: "h-16 rounded-xl bg-bg-sunken animate-vc-shimmer" }, e))
296
+ ].map((e) => /* @__PURE__ */ f(ue, { className: "h-16 rounded-xl bg-bg-sunken animate-vc-shimmer" }, e))
296
297
  }),
297
- !B && !V && q.length > 0 && /* @__PURE__ */ m(be, {
298
+ !B && !V && q.length > 0 && /* @__PURE__ */ p(Se, {
298
299
  className: "p-4 sm:p-5",
299
- children: [/* @__PURE__ */ p("h2", {
300
+ children: [/* @__PURE__ */ f("h2", {
300
301
  className: "mb-3 text-xs font-semibold uppercase tracking-wide text-text-secondary",
301
- children: b("export.downloads.inProgress", "In progress")
302
- }), /* @__PURE__ */ p("ul", {
302
+ children: y("export.downloads.inProgress", "In progress")
303
+ }), /* @__PURE__ */ f("ul", {
303
304
  className: "space-y-3",
304
- children: q.map((e) => /* @__PURE__ */ p("li", { children: /* @__PURE__ */ m("button", {
305
+ children: q.map((e) => /* @__PURE__ */ f("li", { children: /* @__PURE__ */ p("button", {
305
306
  type: "button",
306
307
  onClick: () => Z(e.id),
307
308
  className: "w-full space-y-2 rounded-lg text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
308
- children: [/* @__PURE__ */ m("span", {
309
+ children: [/* @__PURE__ */ p("span", {
309
310
  className: "flex flex-wrap items-center justify-between gap-2",
310
- children: [/* @__PURE__ */ p("span", {
311
+ children: [/* @__PURE__ */ f("span", {
311
312
  className: "font-medium text-text-primary",
312
313
  children: e.name
313
- }), /* @__PURE__ */ p(r, { status: e.status })]
314
- }), /* @__PURE__ */ p(ae, {
314
+ }), /* @__PURE__ */ f(r, { status: e.status })]
315
+ }), /* @__PURE__ */ f(ae, {
315
316
  progress: e.progress,
316
317
  size: "sm",
317
318
  showLabel: !1
@@ -319,74 +320,74 @@ function y() {
319
320
  }) }, e.id))
320
321
  })]
321
322
  }),
322
- !B && !V && J.length > 0 && /* @__PURE__ */ m("section", {
323
+ !B && !V && J.length > 0 && /* @__PURE__ */ p("section", {
323
324
  "aria-labelledby": "export-downloads-list",
324
- children: [/* @__PURE__ */ p("h2", {
325
+ children: [/* @__PURE__ */ f("h2", {
325
326
  id: "export-downloads-list",
326
327
  className: "mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",
327
- children: b("export.downloads.list", "Your downloads")
328
- }), /* @__PURE__ */ p("ul", {
328
+ children: y("export.downloads.list", "Your downloads")
329
+ }), /* @__PURE__ */ f("ul", {
329
330
  className: "rounded-xl border border-border-subtle bg-bg-surface",
330
- children: J.map(Pe)
331
+ children: J.map(Fe)
331
332
  })]
332
333
  }),
333
- !B && !V && G.length === 0 && /* @__PURE__ */ p(Se, {
334
+ !B && !V && G.length === 0 && /* @__PURE__ */ f(we, {
334
335
  illustration: W ? "empty-search" : "empty-files",
335
- title: W ? b("export.history.empty.filtered.title", "No matching exports") : b("export.dashboard.empty.title", "No exports yet"),
336
- description: W ? b("export.history.empty.filtered.description", "Try adjusting your search or filters.") : b("export.downloads.empty.description", "Pick what you want and we'll package it as a ZIP file."),
337
- action: W ? /* @__PURE__ */ m(h, {
336
+ title: W ? y("export.history.empty.filtered.title", "No matching exports") : y("export.dashboard.empty.title", "No exports yet"),
337
+ description: W ? y("export.history.empty.filtered.description", "Try adjusting your search or filters.") : y("export.downloads.empty.description", "Pick what you want and we'll package it as a ZIP file."),
338
+ action: W ? /* @__PURE__ */ p(m, {
338
339
  type: "button",
339
340
  variant: "outline",
340
341
  onClick: X,
341
- children: [/* @__PURE__ */ p(f, {
342
+ children: [/* @__PURE__ */ f(d, {
342
343
  size: 16,
343
344
  "aria-hidden": "true"
344
- }), b("export.history.empty.filtered.actions.clear", "Clear Filters")]
345
- }) : /* @__PURE__ */ m(h, {
345
+ }), y("export.history.empty.filtered.actions.clear", "Clear Filters")]
346
+ }) : /* @__PURE__ */ p(m, {
346
347
  type: "button",
347
348
  onClick: () => Z("new"),
348
- children: [/* @__PURE__ */ p(d, {
349
+ children: [/* @__PURE__ */ f(u, {
349
350
  size: 16,
350
351
  "aria-hidden": "true"
351
- }), b("export.history.actions.newExport", "New Export")]
352
+ }), y("export.history.actions.newExport", "New Export")]
352
353
  }),
353
- kind: S.search ? "no-results" : W ? "filtered" : "first-use"
354
+ kind: x.search ? "no-results" : W ? "filtered" : "first-use"
354
355
  }),
355
- !B && R > w.pageSize && /* @__PURE__ */ m("nav", {
356
- "aria-label": b("export.downloads.pagination.label", "Pages"),
356
+ !B && R > w.pageSize && /* @__PURE__ */ p("nav", {
357
+ "aria-label": y("export.downloads.pagination.label", "Pages"),
357
358
  className: "flex flex-col items-center justify-between gap-3 sm:flex-row",
358
- children: [/* @__PURE__ */ p("p", {
359
+ children: [/* @__PURE__ */ f("p", {
359
360
  className: "text-sm text-text-secondary",
360
- children: b("export.history.pagination.showing", "Showing {{start}}-{{end}} of {{total}}", {
361
+ children: y("export.history.pagination.showing", "Showing {{start}}-{{end}} of {{total}}", {
361
362
  start: N * w.pageSize + 1,
362
363
  end: Math.min((N + 1) * w.pageSize, R),
363
364
  total: R
364
365
  })
365
- }), /* @__PURE__ */ m("div", {
366
+ }), /* @__PURE__ */ p("div", {
366
367
  className: "flex items-center gap-2",
367
368
  children: [
368
- /* @__PURE__ */ m(h, {
369
+ /* @__PURE__ */ p(m, {
369
370
  type: "button",
370
371
  variant: "outline",
371
372
  size: "sm",
372
- onClick: Ae,
373
+ onClick: je,
373
374
  disabled: N === 0,
374
- children: [/* @__PURE__ */ p(c, {
375
+ children: [/* @__PURE__ */ f(c, {
375
376
  size: 16,
376
377
  "aria-hidden": "true"
377
- }), b("export.history.pagination.prev", "Prev")]
378
+ }), y("export.history.pagination.prev", "Prev")]
378
379
  }),
379
- /* @__PURE__ */ p("span", {
380
+ /* @__PURE__ */ f("span", {
380
381
  className: le("px-2 text-sm text-text-secondary"),
381
- children: b("export.history.pagination.page", "Page {{page}}", { page: N + 1 })
382
+ children: y("export.history.pagination.page", "Page {{page}}", { page: N + 1 })
382
383
  }),
383
- /* @__PURE__ */ m(h, {
384
+ /* @__PURE__ */ p(m, {
384
385
  type: "button",
385
386
  variant: "outline",
386
387
  size: "sm",
387
- onClick: ke,
388
+ onClick: Ae,
388
389
  disabled: !z?.hasNextPage,
389
- children: [b("export.history.pagination.next", "Next"), /* @__PURE__ */ p(l, {
390
+ children: [y("export.history.pagination.next", "Next"), /* @__PURE__ */ f(me, {
390
391
  size: 16,
391
392
  "aria-hidden": "true"
392
393
  })]
@@ -397,6 +398,6 @@ function y() {
397
398
  ]
398
399
  });
399
400
  }
400
- export { y as DownloadsPage };
401
+ export { v as DownloadsPage };
401
402
 
402
403
  //# sourceMappingURL=DownloadsPage.js.map