@burdenoff/microfe-export 2026.1108.1 → 2026.1113.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 (65) hide show
  1. package/dist/export/ExportRoot.js +45 -40
  2. package/dist/export/ExportRoot.js.map +1 -1
  3. package/dist/export/ExportRoutes.d.ts +7 -0
  4. package/dist/export/ExportRoutes.js +70 -51
  5. package/dist/export/ExportRoutes.js.map +1 -1
  6. package/dist/export/components/ConfirmDestructiveDialog.d.ts +21 -0
  7. package/dist/export/components/ConfirmDestructiveDialog.js +37 -0
  8. package/dist/export/components/ConfirmDestructiveDialog.js.map +1 -0
  9. package/dist/export/components/DownloadSections.d.ts +10 -0
  10. package/dist/export/components/DownloadSections.js +161 -0
  11. package/dist/export/components/DownloadSections.js.map +1 -0
  12. package/dist/export/components/DownloadStatus.d.ts +13 -0
  13. package/dist/export/components/DownloadStatus.js +36 -0
  14. package/dist/export/components/DownloadStatus.js.map +1 -0
  15. package/dist/export/components/DownloadsTabs.d.ts +5 -0
  16. package/dist/export/components/DownloadsTabs.js +25 -0
  17. package/dist/export/components/DownloadsTabs.js.map +1 -0
  18. package/dist/export/hooks/useEntityLabel.d.ts +7 -0
  19. package/dist/export/hooks/useEntityLabel.js +16 -0
  20. package/dist/export/hooks/useEntityLabel.js.map +1 -0
  21. package/dist/export/hooks/useExportQueries.d.ts +7 -1
  22. package/dist/export/hooks/useExportQueries.js +40 -36
  23. package/dist/export/hooks/useExportQueries.js.map +1 -1
  24. package/dist/export/navigation-v2/NavigationV2.d.ts +7 -0
  25. package/dist/export/navigation-v2/NavigationV2.js +16 -0
  26. package/dist/export/navigation-v2/NavigationV2.js.map +1 -0
  27. package/dist/export/pages/CreateExportPage.js +123 -121
  28. package/dist/export/pages/CreateExportPage.js.map +1 -1
  29. package/dist/export/pages/ExportDetailPage.js +131 -124
  30. package/dist/export/pages/ExportDetailPage.js.map +1 -1
  31. package/dist/export/pages/ExportHistoryPage.js +61 -57
  32. package/dist/export/pages/ExportHistoryPage.js.map +1 -1
  33. package/dist/export/pages/ExportTemplatesPage.js +214 -182
  34. package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
  35. package/dist/export/pages/TemplateDetailPage.js +141 -119
  36. package/dist/export/pages/TemplateDetailPage.js.map +1 -1
  37. package/dist/export/pages/v2/DownloadDetailPage.d.ts +8 -0
  38. package/dist/export/pages/v2/DownloadDetailPage.js +176 -0
  39. package/dist/export/pages/v2/DownloadDetailPage.js.map +1 -0
  40. package/dist/export/pages/v2/DownloadsPage.d.ts +10 -0
  41. package/dist/export/pages/v2/DownloadsPage.js +401 -0
  42. package/dist/export/pages/v2/DownloadsPage.js.map +1 -0
  43. package/dist/export/pages/v2/NewDownloadPage.d.ts +8 -0
  44. package/dist/export/pages/v2/NewDownloadPage.js +440 -0
  45. package/dist/export/pages/v2/NewDownloadPage.js.map +1 -0
  46. package/dist/export/types/index.d.ts +7 -0
  47. package/dist/export/utils/billing.d.ts +6 -0
  48. package/dist/export/utils/billing.js +7 -0
  49. package/dist/export/utils/billing.js.map +1 -0
  50. package/dist/export/utils/downloadStatus.d.ts +15 -0
  51. package/dist/export/utils/downloadStatus.js +48 -0
  52. package/dist/export/utils/downloadStatus.js.map +1 -0
  53. package/dist/export/utils/entityLabels.d.ts +47 -0
  54. package/dist/export/utils/entityLabels.js +150 -0
  55. package/dist/export/utils/entityLabels.js.map +1 -0
  56. package/dist/export/utils/formatBytes.d.ts +2 -0
  57. package/dist/export/utils/formatBytes.js +15 -0
  58. package/dist/export/utils/formatBytes.js.map +1 -0
  59. package/dist/export/utils/newDownloadForm.d.ts +32 -0
  60. package/dist/export/utils/newDownloadForm.js +42 -0
  61. package/dist/export/utils/newDownloadForm.js.map +1 -0
  62. package/dist/export/utils/paths.d.ts +2 -0
  63. package/dist/export/utils/paths.js +7 -0
  64. package/dist/export/utils/paths.js.map +1 -0
  65. package/package.json +2 -2
@@ -1,20 +1,20 @@
1
1
  import { exportArchiveDownload as e } from "../utils/exportAuthority.js";
2
2
  import { useExport as t } from "../providers/ExportProvider.js";
3
- import { useCancelExportJob as n, useDeleteExportJob as r, useExportJob as ee, useExportJobProgress as i, useRetryExportJob as a } from "../hooks/useExportQueries.js";
4
- import { ExportStatusBadge as o } from "../components/ExportStatusBadge.js";
5
- import { ExportProgressBar as s } from "../components/ExportProgressBar.js";
6
- import { PageLayout as c, PageSection as te } from "../components/PageLayout.js";
7
- import { getArchiveFormatDisplayName as ne, getFormatDisplayName as l } from "../constants/enums.js";
8
- import { useTr as u } from "../hooks/useTr.js";
9
- import { cn as d } from "../utils/cn.js";
10
- import { nativeImpact as f, nativeNotify as p } from "../../utils/nativeBridge.js";
11
- import { useState as m } from "react";
12
- import { AlertCircle as h, ArrowLeft as g, CheckCircle2 as re, Clock as _, Download as v, FileDown as y, FileText as ie, HardDrive as ae, Loader2 as b, RotateCcw as x, Trash2 as oe, XCircle as se } from "lucide-react";
3
+ import { useCancelExportJob as n, useDeleteExportJob as r, useExportJob as i, useExportJobProgress as a, useRetryExportJob as o } from "../hooks/useExportQueries.js";
4
+ import { ExportStatusBadge as s } from "../components/ExportStatusBadge.js";
5
+ import { ExportProgressBar as c } from "../components/ExportProgressBar.js";
6
+ import { PageLayout as l, PageSection as ee } from "../components/PageLayout.js";
7
+ import { getArchiveFormatDisplayName as te, getFormatDisplayName as ne } from "../constants/enums.js";
8
+ import { useTr as re } from "../hooks/useTr.js";
9
+ import { cn as u } from "../utils/cn.js";
10
+ import { nativeImpact as d, nativeNotify as f } from "../../utils/nativeBridge.js";
11
+ import { useState as p } from "react";
12
+ import { AlertCircle as m, ArrowLeft as h, CheckCircle2 as g, Clock as _, Download as v, FileDown as ie, FileText as y, HardDrive as ae, Loader2 as b, RotateCcw as x, Trash2 as oe, XCircle as se } from "lucide-react";
13
13
  import { useNavigate as ce, useParams as le } from "react-router";
14
14
  import { jsx as S, jsxs as C } from "react/jsx-runtime";
15
- import { CTAOverflowMenu as w, GlassCard as T, IllustratedEmptyState as E, NextSteps as D } from "@burdenoff/fe-libs/ui";
15
+ import { CTAOverflowMenu as ue, GlassCard as de, IllustratedEmptyState as w, NextSteps as T } from "@burdenoff/fe-libs/ui";
16
16
  // src/export/pages/ExportDetailPage.tsx
17
- function O(e) {
17
+ function E(e) {
18
18
  if (e === 0) return "0 B";
19
19
  let t = 1024, n = [
20
20
  "B",
@@ -25,116 +25,116 @@ function O(e) {
25
25
  ], r = Math.floor(Math.log(e) / Math.log(t));
26
26
  return `${parseFloat((e / t ** r).toFixed(2))} ${n[r]}`;
27
27
  }
28
- var k = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
29
- function A() {
30
- let { jobId: A } = le(), { basePath: j = "/", navigate: M } = t(), N = ce(), P = u(), F = () => {
31
- window.history.length > 1 ? N(-1) : M?.(j);
32
- }, { data: I, isLoading: L } = ee(A), { data: R } = i(A), [z, B] = m(null), { cancelJob: V, isPending: H } = n(), { deleteJob: U, isPending: W } = r(), { retryJob: ue, isPending: G } = a(), K = R ?? I ?? null, q = K?.status === "CREATED" || K?.status === "QUEUED" || K?.status === "RUNNING", J = K?.status === "COMPLETED", de = K?.status === "FAILED", Y = K?.status === "FAILED" || K?.status === "CANCELLED" || K?.status === "EXPIRED", fe = async () => {
33
- A && B("cancel");
34
- }, pe = async () => {
35
- A && (f("medium"), B("delete"));
36
- }, me = async () => {
37
- if (A && z) {
28
+ var D = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
29
+ function O() {
30
+ let { jobId: O } = le(), { basePath: k = "/", navigate: A } = t(), j = ce(), M = re(), N = () => {
31
+ window.history.length > 1 ? j(-1) : A?.(k);
32
+ }, { data: P, isLoading: F } = i(O), { data: I } = a(O), [L, R] = p(null), { cancelJob: z, isPending: B } = n(), { deleteJob: V, isPending: H } = r(), { retryJob: fe, isPending: U } = o(), W = I ?? P ?? null, G = W?.status === "CREATED" || W?.status === "QUEUED" || W?.status === "RUNNING", K = W?.status === "COMPLETED", pe = W?.status === "FAILED", q = W?.status === "FAILED" || W?.status === "CANCELLED" || W?.status === "EXPIRED", me = async () => {
33
+ O && R("cancel");
34
+ }, he = async () => {
35
+ O && (d("medium"), R("delete"));
36
+ }, [J, Y] = p(null), ge = async () => {
37
+ if (O && L) {
38
+ Y(null);
38
39
  try {
39
- z === "cancel" ? await V(A) : (await U(A), M?.(j)), p("success");
40
- } catch {
41
- p("error");
40
+ L === "cancel" ? await z(O) : (await V(O), A?.(k)), f("success"), R(null);
41
+ } catch (e) {
42
+ f("error"), Y(e instanceof Error && e.message ? e.message : L === "cancel" ? M("export.detail.confirm.cancelFailed", "Couldn't cancel. Try again.") : M("export.detail.confirm.deleteFailed", "Couldn't delete. Try again."));
42
43
  }
43
- B(null);
44
44
  }
45
45
  }, X = async () => {
46
- if (!A) return;
47
- let e = await ue(A);
48
- e?.id && M?.(k(j, e.id));
49
- }, Z = e(K);
50
- if (L) return /* @__PURE__ */ C("div", {
46
+ if (!O) return;
47
+ let e = await fe(O);
48
+ e?.id && A?.(D(k, e.id));
49
+ }, Z = e(W);
50
+ if (F) return /* @__PURE__ */ C("div", {
51
51
  className: "flex flex-col items-center justify-center py-20",
52
52
  children: [/* @__PURE__ */ S(b, {
53
53
  size: 48,
54
54
  className: "animate-spin text-primary"
55
55
  }), /* @__PURE__ */ S("span", {
56
56
  className: "mt-6 text-sm font-medium text-text-secondary",
57
- children: P("export.detail.loading", "Loading export details…")
57
+ children: M("export.detail.loading", "Loading export details…")
58
58
  })]
59
59
  });
60
- if (!K) return /* @__PURE__ */ C(c, {
60
+ if (!W) return /* @__PURE__ */ C(l, {
61
61
  showHeader: !1,
62
62
  children: [/* @__PURE__ */ C("div", {
63
63
  className: "flex items-center gap-3 mb-6",
64
64
  children: [/* @__PURE__ */ S("button", {
65
65
  type: "button",
66
- onClick: F,
67
- "aria-label": P("export.detail.actions.back", "Go back"),
66
+ onClick: N,
67
+ "aria-label": M("export.detail.actions.back", "Go back"),
68
68
  className: "p-2.5 hover:bg-accent rounded-lg transition-all duration-200",
69
- children: /* @__PURE__ */ S(g, { size: 20 })
69
+ children: /* @__PURE__ */ S(h, { size: 20 })
70
70
  }), /* @__PURE__ */ S("h1", {
71
71
  className: "text-xl font-bold",
72
- children: P("export.detail.notFound.title", "Export Not Found")
72
+ children: M("export.detail.notFound.title", "Export Not Found")
73
73
  })]
74
- }), /* @__PURE__ */ S(E, {
74
+ }), /* @__PURE__ */ S(w, {
75
75
  illustration: "empty-data",
76
- title: P("export.detail.notFound.heading", "Export not found"),
77
- description: P("export.detail.notFound.description", "The export job you are looking for does not exist or has been deleted."),
76
+ title: M("export.detail.notFound.heading", "Export not found"),
77
+ description: M("export.detail.notFound.description", "The export job you are looking for does not exist or has been deleted."),
78
78
  action: /* @__PURE__ */ C("button", {
79
79
  type: "button",
80
- onClick: F,
80
+ onClick: N,
81
81
  className: "inline-flex items-center gap-2 px-6 py-3 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-colors font-medium",
82
- children: [/* @__PURE__ */ S(g, { size: 18 }), P("export.detail.actions.backToDashboard", "Back to Dashboard")]
82
+ children: [/* @__PURE__ */ S(h, { size: 18 }), M("export.detail.actions.backToDashboard", "Back to Dashboard")]
83
83
  })
84
84
  })]
85
85
  });
86
86
  let Q = Z ? {
87
- label: P("export.detail.actions.downloadArchive", "Download Archive"),
87
+ label: M("export.detail.actions.downloadArchive", "Download Archive"),
88
88
  icon: /* @__PURE__ */ S(v, { size: 16 }),
89
89
  onSelect: () => {
90
90
  Z && window.location.assign(Z);
91
91
  }
92
- } : Y ? {
93
- label: P("export.detail.actions.retry", "Retry Export"),
92
+ } : q ? {
93
+ label: M("export.detail.actions.retry", "Retry Export"),
94
94
  icon: /* @__PURE__ */ S(x, { size: 16 }),
95
- disabled: G,
95
+ disabled: U,
96
96
  onSelect: () => {
97
97
  X();
98
98
  }
99
99
  } : void 0, $ = [];
100
- Y && Z && $.push({
101
- label: P("export.detail.actions.retry", "Retry Export"),
100
+ q && Z && $.push({
101
+ label: M("export.detail.actions.retry", "Retry Export"),
102
102
  icon: /* @__PURE__ */ S(x, { size: 16 }),
103
- disabled: G,
103
+ disabled: U,
104
104
  onSelect: () => {
105
105
  X();
106
106
  }
107
- }), q && $.push({
108
- label: P("export.detail.actions.cancel", "Cancel Export"),
107
+ }), G && $.push({
108
+ label: M("export.detail.actions.cancel", "Cancel Export"),
109
109
  icon: /* @__PURE__ */ S(se, { size: 16 }),
110
- disabled: H,
110
+ disabled: B,
111
111
  onSelect: () => {
112
- fe();
112
+ me();
113
113
  }
114
- }), q || $.push({
115
- label: P("export.detail.actions.delete", "Delete Export"),
114
+ }), G || $.push({
115
+ label: M("export.detail.actions.delete", "Delete Export"),
116
116
  icon: /* @__PURE__ */ S(oe, { size: 16 }),
117
117
  intent: "destructive",
118
- disabled: W,
118
+ disabled: H,
119
119
  onSelect: () => {
120
- pe();
120
+ he();
121
121
  }
122
122
  });
123
- let he = [
123
+ let _e = [
124
124
  {
125
125
  id: "download",
126
- label: P("export.detail.nextSteps.download.label", "Download your export"),
127
- description: P("export.detail.nextSteps.download.description", "Grab the generated files below before their download links expire."),
126
+ label: M("export.detail.nextSteps.download.label", "Download your export"),
127
+ description: M("export.detail.nextSteps.download.description", "Grab the generated files below before their download links expire."),
128
128
  icon: /* @__PURE__ */ S(v, { size: 16 }),
129
129
  onClick: () => {
130
130
  Z && window.location.assign(Z);
131
131
  },
132
- done: J
132
+ done: K
133
133
  },
134
- ...Y ? [{
134
+ ...q ? [{
135
135
  id: "retry",
136
- label: P("export.detail.nextSteps.retry.label", "Retry this export"),
137
- description: P("export.detail.nextSteps.retry.description", "This export didn't finish — start a fresh run with the same settings."),
136
+ label: M("export.detail.nextSteps.retry.label", "Retry this export"),
137
+ description: M("export.detail.nextSteps.retry.description", "This export didn't finish — start a fresh run with the same settings."),
138
138
  icon: /* @__PURE__ */ S(x, { size: 16 }),
139
139
  onClick: () => {
140
140
  X();
@@ -142,13 +142,13 @@ function A() {
142
142
  }] : [],
143
143
  {
144
144
  id: "history",
145
- label: P("export.detail.nextSteps.history.label", "Back to History"),
146
- description: P("export.detail.nextSteps.history.description", "See all your exports and track other jobs in progress."),
145
+ label: M("export.detail.nextSteps.history.label", "Back to History"),
146
+ description: M("export.detail.nextSteps.history.description", "See all your exports and track other jobs in progress."),
147
147
  icon: /* @__PURE__ */ S(_, { size: 16 }),
148
- onClick: () => M?.(j)
148
+ onClick: () => A?.(k)
149
149
  }
150
150
  ];
151
- return /* @__PURE__ */ C(c, {
151
+ return /* @__PURE__ */ C(l, {
152
152
  showHeader: !1,
153
153
  children: [
154
154
  /* @__PURE__ */ S("div", {
@@ -158,10 +158,10 @@ function A() {
158
158
  children: [
159
159
  /* @__PURE__ */ S("button", {
160
160
  type: "button",
161
- onClick: F,
162
- "aria-label": P("export.detail.actions.back", "Go back"),
161
+ onClick: N,
162
+ "aria-label": M("export.detail.actions.back", "Go back"),
163
163
  className: "p-2.5 hover:bg-accent rounded-lg transition-colors duration-200 self-start focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
164
- children: /* @__PURE__ */ S(g, { size: 20 })
164
+ children: /* @__PURE__ */ S(h, { size: 20 })
165
165
  }),
166
166
  /* @__PURE__ */ C("div", {
167
167
  className: "flex items-center gap-3 flex-1 min-w-0",
@@ -177,18 +177,18 @@ function A() {
177
177
  className: "flex-1 min-w-0",
178
178
  children: [/* @__PURE__ */ S("h1", {
179
179
  className: "text-xl sm:text-2xl font-bold truncate",
180
- children: K.name
180
+ children: W.name
181
181
  }), /* @__PURE__ */ S("p", {
182
182
  className: "text-sm text-text-secondary mt-1",
183
- children: K.entityTypes.join(", ")
183
+ children: W.entityTypes.join(", ")
184
184
  })]
185
185
  }),
186
- /* @__PURE__ */ S(o, { status: K.status })
186
+ /* @__PURE__ */ S(s, { status: W.status })
187
187
  ]
188
188
  }),
189
189
  (Q || $.length > 0) && /* @__PURE__ */ S("div", {
190
190
  className: "flex-shrink-0",
191
- children: /* @__PURE__ */ S(w, {
191
+ children: /* @__PURE__ */ S(ue, {
192
192
  primary: Q,
193
193
  actions: $
194
194
  })
@@ -196,56 +196,56 @@ function A() {
196
196
  ]
197
197
  })
198
198
  }),
199
- (K.status === "RUNNING" || K.status === "QUEUED") && /* @__PURE__ */ C("div", {
199
+ (W.status === "RUNNING" || W.status === "QUEUED") && /* @__PURE__ */ C("div", {
200
200
  className: "border border-border-seam rounded-xl bg-status-info-bg-subtle p-6",
201
- children: [/* @__PURE__ */ S(s, {
202
- progress: K.progress,
201
+ children: [/* @__PURE__ */ S(c, {
202
+ progress: W.progress,
203
203
  size: "lg"
204
- }), K.processedEntities != null && K.totalEntities != null && /* @__PURE__ */ S("p", {
204
+ }), W.processedEntities != null && W.totalEntities != null && /* @__PURE__ */ S("p", {
205
205
  className: "text-sm text-text-secondary mt-2",
206
- children: P("export.detail.progress.entitiesProcessed", "{{processed}} / {{total}} entities processed", {
207
- processed: K.processedEntities.toLocaleString(),
208
- total: K.totalEntities.toLocaleString()
206
+ children: M("export.detail.progress.entitiesProcessed", "{{processed}} / {{total}} entities processed", {
207
+ processed: W.processedEntities.toLocaleString(),
208
+ total: W.totalEntities.toLocaleString()
209
209
  })
210
210
  })]
211
211
  }),
212
- de && K.errorMessage && /* @__PURE__ */ C("div", {
212
+ pe && W.errorMessage && /* @__PURE__ */ C("div", {
213
213
  className: "border-2 border-border-default rounded-xl bg-status-error-bg-subtle p-6 flex items-start gap-4",
214
- children: [/* @__PURE__ */ S(h, {
214
+ children: [/* @__PURE__ */ S(m, {
215
215
  size: 24,
216
216
  className: "text-status-error-text flex-shrink-0 mt-0.5"
217
217
  }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
218
218
  className: "font-semibold text-status-error-text mb-1",
219
- children: P("export.detail.error.title", "Export Failed")
219
+ children: M("export.detail.error.title", "Export Failed")
220
220
  }), /* @__PURE__ */ S("p", {
221
221
  className: "text-sm text-status-error-text",
222
- children: K.errorMessage
222
+ children: W.errorMessage
223
223
  })] })]
224
224
  }),
225
225
  /* @__PURE__ */ S("div", {
226
226
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
227
227
  children: [
228
228
  {
229
- icon: /* @__PURE__ */ S(ie, { size: 18 }),
230
- label: P("export.detail.info.format", "Format"),
231
- value: l(K.format)
229
+ icon: /* @__PURE__ */ S(y, { size: 18 }),
230
+ label: M("export.detail.info.format", "Format"),
231
+ value: ne(W.format)
232
232
  },
233
233
  {
234
234
  icon: /* @__PURE__ */ S(ae, { size: 18 }),
235
- label: P("export.detail.info.archive", "Archive"),
236
- value: ne(K.archiveFormat)
235
+ label: M("export.detail.info.archive", "Archive"),
236
+ value: te(W.archiveFormat)
237
237
  },
238
238
  {
239
239
  icon: /* @__PURE__ */ S(v, { size: 18 }),
240
- label: P("export.detail.info.totalSize", "Total Size"),
241
- value: K.totalSizeBytes == null ? "-" : O(K.totalSizeBytes)
240
+ label: M("export.detail.info.totalSize", "Total Size"),
241
+ value: W.totalSizeBytes == null ? "-" : E(W.totalSizeBytes)
242
242
  },
243
243
  {
244
244
  icon: /* @__PURE__ */ S(_, { size: 18 }),
245
- label: P("export.detail.info.created", "Created"),
246
- value: new Date(K.createdAt).toLocaleDateString()
245
+ label: M("export.detail.info.created", "Created"),
246
+ value: new Date(W.createdAt).toLocaleDateString()
247
247
  }
248
- ].map((e) => /* @__PURE__ */ C(T, {
248
+ ].map((e) => /* @__PURE__ */ C(de, {
249
249
  treatment: "metric",
250
250
  className: "p-4 border-border-seam",
251
251
  children: [/* @__PURE__ */ C("div", {
@@ -260,21 +260,21 @@ function A() {
260
260
  })]
261
261
  }, e.label))
262
262
  }),
263
- /* @__PURE__ */ S(D, {
264
- storageKey: `export-detail-${K.id}`,
265
- title: P("export.detail.nextSteps.title", "What's next"),
266
- steps: he
263
+ /* @__PURE__ */ S(T, {
264
+ storageKey: `export-detail-${W.id}`,
265
+ title: M("export.detail.nextSteps.title", "What's next"),
266
+ steps: _e
267
267
  }),
268
- K.parts.length > 0 && /* @__PURE__ */ S(te, {
269
- title: P("export.detail.parts.title", "Export Parts"),
270
- description: P("export.detail.parts.description", "{{count}} file(s) generated", { count: K.parts.length }),
268
+ W.parts.length > 0 && /* @__PURE__ */ S(ee, {
269
+ title: M("export.detail.parts.title", "Export Parts"),
270
+ description: M("export.detail.parts.description", "{{count}} file(s) generated", { count: W.parts.length }),
271
271
  children: /* @__PURE__ */ S("div", {
272
272
  className: "space-y-2",
273
- children: K.parts.map((e) => /* @__PURE__ */ C("div", {
274
- className: d("border border-border-seam rounded-xl p-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 bg-bg-surface", "hover:border-primary/40 transition-colors duration-200"),
273
+ children: W.parts.map((e) => /* @__PURE__ */ C("div", {
274
+ className: u("border border-border-seam rounded-xl p-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 bg-bg-surface", "hover:border-primary/40 transition-colors duration-200"),
275
275
  children: [/* @__PURE__ */ C("div", {
276
276
  className: "flex items-center gap-3 min-w-0",
277
- children: [/* @__PURE__ */ S(y, {
277
+ children: [/* @__PURE__ */ S(ie, {
278
278
  size: 20,
279
279
  className: "text-primary flex-shrink-0"
280
280
  }), /* @__PURE__ */ C("div", {
@@ -288,8 +288,8 @@ function A() {
288
288
  e.entityTypes.join(", "),
289
289
  " ·",
290
290
  " ",
291
- O(e.sizeBytes),
292
- e.downloadExpiresAt && ` · ${P("export.detail.parts.expires", "expires {{date}}", { date: new Date(e.downloadExpiresAt).toLocaleDateString() })}`
291
+ E(e.sizeBytes),
292
+ e.downloadExpiresAt && ` · ${M("export.detail.parts.expires", "expires {{date}}", { date: new Date(e.downloadExpiresAt).toLocaleDateString() })}`
293
293
  ]
294
294
  })]
295
295
  })]
@@ -298,33 +298,33 @@ function A() {
298
298
  children: e.downloadUrl ? /* @__PURE__ */ C("a", {
299
299
  href: e.downloadUrl,
300
300
  className: "inline-flex items-center gap-2 px-3 py-1.5 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-colors text-sm font-medium",
301
- children: [/* @__PURE__ */ S(v, { size: 14 }), P("export.detail.parts.download", "Download")]
301
+ children: [/* @__PURE__ */ S(v, { size: 14 }), M("export.detail.parts.download", "Download")]
302
302
  }) : /* @__PURE__ */ C("span", {
303
303
  className: "inline-flex items-center gap-1.5 text-sm text-text-secondary",
304
- children: [/* @__PURE__ */ S(_, { size: 14 }), P("export.detail.parts.pending", "Pending")]
304
+ children: [/* @__PURE__ */ S(_, { size: 14 }), M("export.detail.parts.pending", "Pending")]
305
305
  })
306
306
  })]
307
307
  }, e.id))
308
308
  })
309
309
  }),
310
- J && K.parts.length === 0 && /* @__PURE__ */ C("div", {
310
+ K && W.parts.length === 0 && /* @__PURE__ */ C("div", {
311
311
  className: "border-2 border-border-default rounded-xl bg-status-success-bg-subtle p-6 text-center",
312
312
  children: [
313
- /* @__PURE__ */ S(re, {
313
+ /* @__PURE__ */ S(g, {
314
314
  size: 48,
315
315
  className: "text-status-success-text mx-auto mb-3"
316
316
  }),
317
317
  /* @__PURE__ */ S("h3", {
318
318
  className: "text-lg font-bold text-status-success-text mb-1",
319
- children: P("export.detail.complete.title", "Export Complete")
319
+ children: M("export.detail.complete.title", "Export Complete")
320
320
  }),
321
321
  /* @__PURE__ */ S("p", {
322
322
  className: "text-sm text-status-success-text",
323
- children: P("export.detail.complete.noParts", "Your export has completed but no download parts are available yet.")
323
+ children: M("export.detail.complete.noParts", "Your export has completed but no download parts are available yet.")
324
324
  })
325
325
  ]
326
326
  }),
327
- z && /* @__PURE__ */ S("div", {
327
+ L && /* @__PURE__ */ S("div", {
328
328
  role: "dialog",
329
329
  "aria-modal": "true",
330
330
  "aria-labelledby": "export-confirm-title",
@@ -335,28 +335,35 @@ function A() {
335
335
  /* @__PURE__ */ S("h2", {
336
336
  id: "export-confirm-title",
337
337
  className: "text-lg font-bold",
338
- children: z === "cancel" ? P("export.detail.confirm.cancel.title", "Cancel export?") : P("export.detail.confirm.delete.title", "Delete export?")
338
+ children: L === "cancel" ? M("export.detail.confirm.cancel.title", "Cancel export?") : M("export.detail.confirm.delete.title", "Delete export?")
339
339
  }),
340
340
  /* @__PURE__ */ S("p", {
341
341
  className: "mt-2 text-sm text-text-secondary",
342
- children: z === "cancel" ? P("export.detail.confirm.cancel.description", "This stops the running export job. You can retry it later if needed.") : P("export.detail.confirm.delete.description", "This removes the export job from history. This action cannot be undone.")
342
+ children: L === "cancel" ? M("export.detail.confirm.cancel.description", "This stops the running export job. You can retry it later if needed.") : M("export.detail.confirm.delete.description", "This removes the export job from history. This action cannot be undone.")
343
+ }),
344
+ J && /* @__PURE__ */ S("p", {
345
+ role: "alert",
346
+ className: "mt-3 rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
347
+ children: J
343
348
  }),
344
349
  /* @__PURE__ */ C("div", {
345
350
  className: "mt-6 flex flex-col-reverse sm:flex-row sm:justify-end gap-3",
346
351
  children: [/* @__PURE__ */ S("button", {
347
352
  type: "button",
348
- onClick: () => B(null),
353
+ onClick: () => {
354
+ R(null), Y(null);
355
+ },
349
356
  className: "px-4 py-2 rounded-lg border-2 border-border-subtle hover:bg-accent transition-colors font-medium",
350
- children: P("export.detail.confirm.keep", "Keep Export")
357
+ children: M("export.detail.confirm.keep", "Keep Export")
351
358
  }), /* @__PURE__ */ C("button", {
352
359
  type: "button",
353
- onClick: me,
354
- disabled: H || W,
360
+ onClick: ge,
361
+ disabled: B || H,
355
362
  className: "inline-flex items-center justify-center gap-2 px-4 py-2 rounded-lg bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90 transition-colors font-medium disabled:opacity-50",
356
- children: [H || W ? /* @__PURE__ */ S(b, {
363
+ children: [B || H ? /* @__PURE__ */ S(b, {
357
364
  size: 16,
358
365
  className: "animate-spin"
359
- }) : null, z === "cancel" ? P("export.detail.actions.cancel", "Cancel Export") : P("export.detail.actions.delete", "Delete Export")]
366
+ }) : null, L === "cancel" ? M("export.detail.actions.cancel", "Cancel Export") : M("export.detail.actions.delete", "Delete Export")]
360
367
  })]
361
368
  })
362
369
  ]
@@ -365,6 +372,6 @@ function A() {
365
372
  ]
366
373
  });
367
374
  }
368
- export { A as ExportDetailPage };
375
+ export { O as ExportDetailPage };
369
376
 
370
377
  //# sourceMappingURL=ExportDetailPage.js.map