@burdenoff/microfe-export 2026.1114.1 → 2026.1119.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.
@@ -1,116 +1,116 @@
1
1
  import { useExport as e } from "../providers/ExportProvider.js";
2
2
  import { useAvailableEntities as t, useCreateExportTemplate as ee, useDeleteExportTemplate as te, useExportTemplates as ne } from "../hooks/useExportQueries.js";
3
- import { PageLayout as re } from "../components/PageLayout.js";
4
- import { DownloadsTabs as n } from "../components/DownloadsTabs.js";
5
- import { ConfirmDestructiveDialog as ie } from "../components/ConfirmDestructiveDialog.js";
6
- import { useNavigationV2 as r } from "../navigation-v2/NavigationV2.js";
3
+ import { PageLayout as n } from "../components/PageLayout.js";
4
+ import { DownloadsTabs as r } from "../components/DownloadsTabs.js";
5
+ import { ConfirmDestructiveDialog as re } from "../components/ConfirmDestructiveDialog.js";
6
+ import { useNavigationV2 as ie } from "../navigation-v2/NavigationV2.js";
7
7
  import { useEntityLabel as ae } from "../hooks/useEntityLabel.js";
8
8
  import { isExportEntityDisabled as oe, isForeignProductEntity as se } from "../utils/disabledModules.js";
9
- import { getFormatDisplayName as ce } from "../constants/enums.js";
10
- import { useTr as i } from "../hooks/useTr.js";
11
- import { cn as a } from "../utils/cn.js";
12
- import { nativeImpact as o, nativeNotify as s } from "../../utils/nativeBridge.js";
13
- import { useMemo as c, useState as l } from "react";
14
- import { ChevronRight as le, FileBox as u, Loader2 as ue, Plus as d, Search as de, Sparkles as fe, X as f } from "lucide-react";
15
- import { useAppShell as p } from "@burdenoff/fe-libs/shared/providers/shell";
9
+ import { getFormatDisplayName as i } from "../constants/enums.js";
10
+ import { useTr as a } from "../hooks/useTr.js";
11
+ import { cn as o } from "../utils/cn.js";
12
+ import { nativeImpact as s, nativeNotify as c } from "../../utils/nativeBridge.js";
13
+ import { useMemo as l, useState as u } from "react";
14
+ import { ChevronRight as ce, FileBox as d, Loader2 as le, Plus as f, Search as ue, Sparkles as de, X as p } from "lucide-react";
15
+ import { useAppShell as fe } from "@burdenoff/fe-libs/shared/providers/shell";
16
16
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
17
- import { CTAOverflowMenu as pe, IllustratedEmptyState as me, PagePurpose as g } from "@burdenoff/fe-libs/ui";
17
+ import { CTAOverflowMenu as pe, IllustratedEmptyState as me, PagePurpose as g, ThemedSelect as _ } from "@burdenoff/fe-libs/ui";
18
18
  // src/export/pages/ExportTemplatesPage.tsx
19
- var _ = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
20
- function v() {
21
- let { basePath: v = "/", navigate: y } = e(), b = i(), { data: x, isLoading: S } = ne(), { deleteTemplate: he } = te(), { createTemplate: ge, isPending: C } = ee(), { data: _e } = t(), w = r(), T = ae(w), { productSlug: E } = p(), D = _e.filter((e) => e.enabled !== !1 && !oe(e.entityType) && !se(e.entityType, E)), [O, k] = l(null), [A, j] = l(!1), [M, N] = l(""), [P, F] = l(!1), [I, L] = l(""), [R, z] = l(""), [B, V] = l([]), [H, U] = l("CSV"), [W, G] = l(null), [K, q] = l(null), J = () => {
22
- L(""), z(""), V([]), U("CSV"), G(null), F(!0);
23
- }, Y = async () => {
24
- if (!I.trim()) G(b("export.templates.form.errors.nameRequired", "Template name is required."));
25
- else if (B.length === 0) G(b("export.templates.form.errors.entityRequired", "Select at least one entity type."));
19
+ var v = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
20
+ function y() {
21
+ let { basePath: y = "/", navigate: b } = e(), x = a(), { data: S, isLoading: C } = ne(), { deleteTemplate: he } = te(), { createTemplate: ge, isPending: w } = ee(), { data: _e } = t(), T = ie(), E = ae(T), { productSlug: D } = fe(), O = _e.filter((e) => e.enabled !== !1 && !oe(e.entityType) && !se(e.entityType, D)), [k, A] = u(null), [j, M] = u(!1), [N, P] = u(""), [F, I] = u(!1), [L, R] = u(""), [z, B] = u(""), [V, H] = u([]), [U, W] = u("CSV"), [G, K] = u(null), [q, J] = u(null), Y = () => {
22
+ R(""), B(""), H([]), W("CSV"), K(null), I(!0);
23
+ }, ve = async () => {
24
+ if (!L.trim()) K(x("export.templates.form.errors.nameRequired", "Template name is required."));
25
+ else if (V.length === 0) K(x("export.templates.form.errors.entityRequired", "Select at least one entity type."));
26
26
  else {
27
- G(null);
27
+ K(null);
28
28
  try {
29
29
  await ge({
30
- name: I.trim(),
31
- description: R.trim() || void 0,
32
- entityTypes: B,
33
- format: H
34
- }), F(!1);
30
+ name: L.trim(),
31
+ description: z.trim() || void 0,
32
+ entityTypes: V,
33
+ format: U
34
+ }), I(!1);
35
35
  } catch (e) {
36
- G(e instanceof Error ? e.message : b("export.templates.form.errors.createFailed", "Failed to create template."));
36
+ K(e instanceof Error ? e.message : x("export.templates.form.errors.createFailed", "Failed to create template."));
37
37
  }
38
38
  }
39
- }, ve = (e) => {
40
- V((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
41
- }, X = c(() => {
42
- if (!M) return x;
43
- let e = M.toLowerCase();
44
- return x.filter((t) => t.name.toLowerCase().includes(e) || t.entityTypes.some((t) => t.toLowerCase().includes(e) || T(t).toLowerCase().includes(e)));
39
+ }, ye = (e) => {
40
+ H((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
41
+ }, X = l(() => {
42
+ if (!N) return S;
43
+ let e = N.toLowerCase();
44
+ return S.filter((t) => t.name.toLowerCase().includes(e) || t.entityTypes.some((t) => t.toLowerCase().includes(e) || E(t).toLowerCase().includes(e)));
45
45
  }, [
46
- x,
47
- M,
48
- T
46
+ S,
47
+ N,
48
+ E
49
49
  ]), Z = (e) => {
50
- y?.(_(v, `templates/${e}`));
51
- }, ye = async (e, t) => {
52
- e.stopPropagation(), o("medium"), q(t);
50
+ b?.(v(y, `templates/${e}`));
51
+ }, be = async (e, t) => {
52
+ e.stopPropagation(), s("medium"), J(t);
53
53
  }, Q = () => {
54
- q(null), k(null);
54
+ J(null), A(null);
55
55
  }, $ = async () => {
56
- if (K) {
57
- k(null), j(!0);
56
+ if (q) {
57
+ A(null), M(!0);
58
58
  try {
59
- await he(K), s("success"), q(null);
59
+ await he(q), c("success"), J(null);
60
60
  } catch (e) {
61
- s("error"), k(e instanceof Error && e.message ? e.message : b("export.templates.delete.failed", "Couldn't delete this template. Try again."));
61
+ c("error"), A(e instanceof Error && e.message ? e.message : x("export.templates.delete.failed", "Couldn't delete this template. Try again."));
62
62
  } finally {
63
- j(!1);
63
+ M(!1);
64
64
  }
65
65
  }
66
- }, be = x.find((e) => e.id === K)?.name ?? "";
67
- return /* @__PURE__ */ h(re, {
68
- title: b("export.templates.title", "Export Templates"),
69
- subtitle: b("export.templates.subtitle", "Reusable export configurations for common data exports"),
70
- icon: /* @__PURE__ */ m(u, { size: 24 }),
66
+ }, xe = S.find((e) => e.id === q)?.name ?? "";
67
+ return /* @__PURE__ */ h(n, {
68
+ title: x("export.templates.title", "Export Templates"),
69
+ subtitle: x("export.templates.subtitle", "Reusable export configurations for common data exports"),
70
+ icon: /* @__PURE__ */ m(d, { size: 24 }),
71
71
  headerActions: /* @__PURE__ */ m(pe, {
72
72
  primary: {
73
- label: b("export.templates.actions.newTemplate", "New Template"),
74
- icon: /* @__PURE__ */ m(d, { size: 16 }),
75
- onSelect: J
73
+ label: x("export.templates.actions.newTemplate", "New Template"),
74
+ icon: /* @__PURE__ */ m(f, { size: 16 }),
75
+ onSelect: Y
76
76
  },
77
77
  actions: [{
78
- label: b("export.templates.actions.newExport", "New Export"),
79
- icon: /* @__PURE__ */ m(d, { size: 16 }),
80
- onSelect: () => y?.(_(v, "new"))
78
+ label: x("export.templates.actions.newExport", "New Export"),
79
+ icon: /* @__PURE__ */ m(f, { size: 16 }),
80
+ onSelect: () => b?.(v(y, "new"))
81
81
  }]
82
82
  }),
83
83
  headerContent: /* @__PURE__ */ h("span", {
84
84
  className: "inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-bg-sunken text-text-secondary",
85
- children: [/* @__PURE__ */ m(fe, { size: 12 }), w ? X.length === 1 ? b("export.templates.summary.one", "1 setup") : b("export.templates.summary.other", "{{count}} setups", { count: X.length }) : b("export.templates.summary.available", "{{count}} template{{suffix}} available", {
85
+ children: [/* @__PURE__ */ m(de, { size: 12 }), T ? X.length === 1 ? x("export.templates.summary.one", "1 setup") : x("export.templates.summary.other", "{{count}} setups", { count: X.length }) : x("export.templates.summary.available", "{{count}} template{{suffix}} available", {
86
86
  count: X.length,
87
87
  suffix: X.length === 1 ? "" : "s"
88
88
  })]
89
89
  }),
90
90
  children: [
91
- w && /* @__PURE__ */ m(n, {}),
91
+ T && /* @__PURE__ */ m(r, {}),
92
92
  /* @__PURE__ */ m(g, {
93
- icon: /* @__PURE__ */ m(u, { size: 16 }),
94
- children: b("export.templates.purpose", "Templates save an export setup — the entity types and format you regularly need — so you don't rebuild it each time. Create one here, then start a new export from it in a single click. Handy for recurring backups, periodic audits, or any export you run more than once.")
93
+ icon: /* @__PURE__ */ m(d, { size: 16 }),
94
+ children: x("export.templates.purpose", "Templates save an export setup — the entity types and format you regularly need — so you don't rebuild it each time. Create one here, then start a new export from it in a single click. Handy for recurring backups, periodic audits, or any export you run more than once.")
95
95
  }),
96
- P && /* @__PURE__ */ h("div", {
96
+ F && /* @__PURE__ */ h("div", {
97
97
  className: "border border-primary/30 rounded-xl p-6 bg-accent-wash space-y-4",
98
98
  children: [
99
99
  /* @__PURE__ */ h("div", {
100
100
  className: "flex items-center justify-between",
101
101
  children: [/* @__PURE__ */ m("h3", {
102
102
  className: "font-semibold text-lg",
103
- children: b("export.templates.form.title", "New Template")
103
+ children: x("export.templates.form.title", "New Template")
104
104
  }), /* @__PURE__ */ m("button", {
105
105
  type: "button",
106
- onClick: () => F(!1),
106
+ onClick: () => I(!1),
107
107
  className: "p-1.5 rounded-md hover:bg-accent",
108
- children: /* @__PURE__ */ m(f, { size: 16 })
108
+ children: /* @__PURE__ */ m(p, { size: 16 })
109
109
  })]
110
110
  }),
111
- W && /* @__PURE__ */ m("p", {
111
+ G && /* @__PURE__ */ m("p", {
112
112
  className: "text-sm text-status-error-text bg-status-error-bg/10 rounded-lg px-3 py-2",
113
- children: W
113
+ children: G
114
114
  }),
115
115
  /* @__PURE__ */ h("div", {
116
116
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
@@ -118,30 +118,30 @@ function v() {
118
118
  className: "space-y-1",
119
119
  children: [/* @__PURE__ */ h("label", {
120
120
  className: "text-sm font-medium",
121
- children: [b("export.templates.form.fields.name", "Name"), " *"]
121
+ children: [x("export.templates.form.fields.name", "Name"), " *"]
122
122
  }), /* @__PURE__ */ m("input", {
123
123
  type: "text",
124
- "aria-label": b("export.templates.form.fields.name", "Name"),
125
- placeholder: b("export.templates.form.fields.namePlaceholder", "e.g. Weekly Tags Export"),
126
- value: I,
127
- onChange: (e) => L(e.target.value),
124
+ "aria-label": x("export.templates.form.fields.name", "Name"),
125
+ placeholder: x("export.templates.form.fields.namePlaceholder", "e.g. Weekly Tags Export"),
126
+ value: L,
127
+ onChange: (e) => R(e.target.value),
128
128
  className: "w-full px-3 py-2 border-2 border-border-subtle rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all"
129
129
  })]
130
130
  }), /* @__PURE__ */ h("div", {
131
131
  className: "space-y-1",
132
132
  children: [/* @__PURE__ */ h("label", {
133
133
  className: "text-sm font-medium",
134
- children: [b("export.templates.form.fields.format", "Format"), " *"]
135
- }), /* @__PURE__ */ h("select", {
136
- value: H,
137
- onChange: (e) => U(e.target.value),
134
+ children: [x("export.templates.form.fields.format", "Format"), " *"]
135
+ }), /* @__PURE__ */ h(_, {
136
+ value: U,
137
+ onChange: (e) => W(e.target.value),
138
138
  className: "w-full px-3 py-2 border-2 border-border-subtle rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
139
139
  children: [/* @__PURE__ */ m("option", {
140
140
  value: "CSV",
141
- children: b("export.format.csv", "CSV")
141
+ children: x("export.format.csv", "CSV")
142
142
  }), /* @__PURE__ */ m("option", {
143
143
  value: "JSON",
144
- children: b("export.format.json", "JSON")
144
+ children: x("export.format.json", "JSON")
145
145
  })]
146
146
  })]
147
147
  })]
@@ -150,13 +150,13 @@ function v() {
150
150
  className: "space-y-1",
151
151
  children: [/* @__PURE__ */ m("label", {
152
152
  className: "text-sm font-medium",
153
- children: b("export.templates.form.fields.description", "Description")
153
+ children: x("export.templates.form.fields.description", "Description")
154
154
  }), /* @__PURE__ */ m("input", {
155
155
  type: "text",
156
- "aria-label": b("export.templates.form.fields.description", "Description"),
157
- placeholder: b("export.templates.form.fields.descriptionPlaceholder", "Optional description"),
158
- value: R,
159
- onChange: (e) => z(e.target.value),
156
+ "aria-label": x("export.templates.form.fields.description", "Description"),
157
+ placeholder: x("export.templates.form.fields.descriptionPlaceholder", "Optional description"),
158
+ value: z,
159
+ onChange: (e) => B(e.target.value),
160
160
  className: "w-full px-3 py-2 border-2 border-border-subtle rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all"
161
161
  })]
162
162
  }),
@@ -165,21 +165,21 @@ function v() {
165
165
  children: [/* @__PURE__ */ h("label", {
166
166
  className: "text-sm font-medium",
167
167
  children: [
168
- b("export.templates.form.fields.entityTypes", "Entity Types"),
168
+ x("export.templates.form.fields.entityTypes", "Entity Types"),
169
169
  " *",
170
170
  " ",
171
171
  /* @__PURE__ */ m("span", {
172
172
  className: "text-text-secondary font-normal",
173
- children: b("export.templates.form.fields.entityTypesHint", "(select at least one)")
173
+ children: x("export.templates.form.fields.entityTypesHint", "(select at least one)")
174
174
  })
175
175
  ]
176
176
  }), /* @__PURE__ */ m("div", {
177
177
  className: "flex flex-wrap gap-2",
178
- children: D.map((e) => /* @__PURE__ */ m("button", {
178
+ children: O.map((e) => /* @__PURE__ */ m("button", {
179
179
  type: "button",
180
- onClick: () => ve(e.entityType),
181
- className: a("px-3 py-1.5 rounded-lg text-sm font-medium border-2 transition-all", B.includes(e.entityType) ? "border-primary bg-action-primary-bg/10 text-primary" : "border-border-subtle bg-bg-surface hover:border-primary/50"),
182
- children: w ? T(e.entityType) : e.displayName
180
+ onClick: () => ye(e.entityType),
181
+ className: o("px-3 py-1.5 rounded-lg text-sm font-medium border-2 transition-all", V.includes(e.entityType) ? "border-primary bg-action-primary-bg/10 text-primary" : "border-border-subtle bg-bg-surface hover:border-primary/50"),
182
+ children: T ? E(e.entityType) : e.displayName
183
183
  }, e.entityType))
184
184
  })]
185
185
  }),
@@ -187,18 +187,18 @@ function v() {
187
187
  className: "flex gap-3 pt-2",
188
188
  children: [/* @__PURE__ */ h("button", {
189
189
  type: "button",
190
- onClick: Y,
191
- disabled: C,
190
+ onClick: ve,
191
+ disabled: w,
192
192
  className: "inline-flex items-center gap-2 px-5 py-2.5 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-colors font-medium disabled:opacity-50",
193
- children: [C ? /* @__PURE__ */ m(ue, {
193
+ children: [w ? /* @__PURE__ */ m(le, {
194
194
  size: 16,
195
195
  className: "animate-spin"
196
- }) : /* @__PURE__ */ m(d, { size: 16 }), b("export.templates.form.actions.create", "Create Template")]
196
+ }) : /* @__PURE__ */ m(f, { size: 16 }), x("export.templates.form.actions.create", "Create Template")]
197
197
  }), /* @__PURE__ */ m("button", {
198
198
  type: "button",
199
- onClick: () => F(!1),
199
+ onClick: () => I(!1),
200
200
  className: "px-5 py-2.5 border-2 border-border-subtle rounded-lg hover:bg-accent transition-colors font-medium",
201
- children: b("export.templates.form.actions.cancel", "Cancel")
201
+ children: x("export.templates.form.actions.cancel", "Cancel")
202
202
  })]
203
203
  })
204
204
  ]
@@ -206,27 +206,27 @@ function v() {
206
206
  /* @__PURE__ */ h("div", {
207
207
  className: "relative group",
208
208
  children: [
209
- /* @__PURE__ */ m(de, {
209
+ /* @__PURE__ */ m(ue, {
210
210
  size: 18,
211
211
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary group-focus-within:text-primary transition-colors"
212
212
  }),
213
213
  /* @__PURE__ */ m("input", {
214
214
  type: "text",
215
- "aria-label": b("export.templates.search.placeholder", "Search templates"),
216
- placeholder: b("export.templates.search.placeholder", "Search templates..."),
217
- value: M,
218
- onChange: (e) => N(e.target.value),
215
+ "aria-label": x("export.templates.search.placeholder", "Search templates"),
216
+ placeholder: x("export.templates.search.placeholder", "Search templates..."),
217
+ value: N,
218
+ onChange: (e) => P(e.target.value),
219
219
  className: "w-full pl-[3.25rem] pr-4 py-2.5 border-2 border-border-subtle rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200"
220
220
  }),
221
- M && /* @__PURE__ */ m("button", {
221
+ N && /* @__PURE__ */ m("button", {
222
222
  type: "button",
223
- onClick: () => N(""),
223
+ onClick: () => P(""),
224
224
  className: "absolute right-3 top-1/2 -translate-y-1/2 p-1 rounded-md text-text-secondary hover:text-text-primary hover:bg-accent",
225
- children: /* @__PURE__ */ m(f, { size: 16 })
225
+ children: /* @__PURE__ */ m(p, { size: 16 })
226
226
  })
227
227
  ]
228
228
  }),
229
- S && /* @__PURE__ */ m("div", {
229
+ C && /* @__PURE__ */ m("div", {
230
230
  className: "grid grid-cols-1 lg:grid-cols-2 gap-4",
231
231
  children: [...[
232
232
  ,
@@ -245,7 +245,7 @@ function v() {
245
245
  ]
246
246
  }, t))
247
247
  }),
248
- S ? null : X.length > 0 ? /* @__PURE__ */ m("div", {
248
+ C ? null : X.length > 0 ? /* @__PURE__ */ m("div", {
249
249
  className: "grid grid-cols-1 lg:grid-cols-2 gap-4",
250
250
  children: X.map((e, t) => /* @__PURE__ */ h("div", {
251
251
  role: "button",
@@ -254,7 +254,7 @@ function v() {
254
254
  onKeyDown: (t) => {
255
255
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), Z(e.id));
256
256
  },
257
- className: a("text-left group cursor-pointer border border-border-seam rounded-xl overflow-hidden bg-bg-surface", "hover:border-primary/40 shadow-[var(--shadow-pop)] transition-colors duration-200", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40", "animate-in fade-in-0"),
257
+ className: o("text-left group cursor-pointer border border-border-seam rounded-xl overflow-hidden bg-bg-surface", "hover:border-primary/40 shadow-[var(--shadow-pop)] transition-colors duration-200", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40", "animate-in fade-in-0"),
258
258
  style: { animationDelay: `${t * 50}ms` },
259
259
  children: [/* @__PURE__ */ m("div", {
260
260
  className: "p-4 border-b bg-bg-sunken/30",
@@ -264,7 +264,7 @@ function v() {
264
264
  className: "flex items-center gap-3",
265
265
  children: [/* @__PURE__ */ m("div", {
266
266
  className: "p-2 rounded-lg bg-action-primary-bg/10",
267
- children: /* @__PURE__ */ m(u, {
267
+ children: /* @__PURE__ */ m(d, {
268
268
  size: 20,
269
269
  className: "text-primary"
270
270
  })
@@ -273,20 +273,20 @@ function v() {
273
273
  children: e.name
274
274
  }), /* @__PURE__ */ h("p", {
275
275
  className: "text-xs text-text-secondary",
276
- children: [ce(e.format), e.isDefault && /* @__PURE__ */ m("span", {
276
+ children: [i(e.format), e.isDefault && /* @__PURE__ */ m("span", {
277
277
  className: "ml-1.5 inline-flex items-center px-1.5 py-0.5 rounded text-xs bg-action-primary-bg/10 text-primary font-medium",
278
- children: b("export.templates.card.default", "Default")
278
+ children: x("export.templates.card.default", "Default")
279
279
  })]
280
280
  })] })]
281
281
  }), /* @__PURE__ */ h("div", {
282
282
  className: "flex items-center gap-2",
283
283
  children: [/* @__PURE__ */ m("button", {
284
284
  type: "button",
285
- onClick: (t) => ye(t, e.id),
285
+ onClick: (t) => be(t, e.id),
286
286
  className: "p-1.5 rounded-md text-text-secondary hover:text-status-error-text hover:bg-status-error-bg/10 transition-colors",
287
- "aria-label": b("export.templates.card.deleteAriaLabel", "Delete {{name}}", { name: e.name }),
288
- children: /* @__PURE__ */ m(f, { size: 14 })
289
- }), /* @__PURE__ */ m(le, {
287
+ "aria-label": x("export.templates.card.deleteAriaLabel", "Delete {{name}}", { name: e.name }),
288
+ children: /* @__PURE__ */ m(p, { size: 14 })
289
+ }), /* @__PURE__ */ m(ce, {
290
290
  size: 18,
291
291
  className: "text-text-secondary group-hover:text-primary transition-colors mt-1"
292
292
  })]
@@ -301,43 +301,43 @@ function v() {
301
301
  className: "flex flex-wrap gap-1.5 overflow-hidden",
302
302
  children: [e.entityTypes.slice(0, 6).map((e) => /* @__PURE__ */ m("span", {
303
303
  className: "inline-flex px-2 py-0.5 rounded text-xs font-medium bg-bg-sunken text-text-secondary max-w-full truncate",
304
- children: T(e)
304
+ children: E(e)
305
305
  }, e)), e.entityTypes.length > 6 && /* @__PURE__ */ m("span", {
306
306
  className: "inline-flex px-2 py-0.5 rounded text-xs font-medium bg-bg-sunken text-text-secondary",
307
- children: b("export.templates.card.moreEntities", "+{{count}} more", { count: e.entityTypes.length - 6 })
307
+ children: x("export.templates.card.moreEntities", "+{{count}} more", { count: e.entityTypes.length - 6 })
308
308
  })]
309
309
  })]
310
310
  })]
311
311
  }, e.id))
312
312
  }) : /* @__PURE__ */ m(me, {
313
- illustration: M ? "empty-search" : "empty-data",
314
- title: M ? b("export.templates.empty.filtered.title", "No matching templates") : b("export.templates.empty.title", "No templates yet"),
315
- description: M ? b("export.templates.empty.filtered.description", "Try adjusting your search to find what you are looking for.") : b("export.templates.empty.description", "Create a template to save reusable export configurations."),
316
- action: M ? /* @__PURE__ */ h("button", {
313
+ illustration: N ? "empty-search" : "empty-data",
314
+ title: N ? x("export.templates.empty.filtered.title", "No matching templates") : x("export.templates.empty.title", "No templates yet"),
315
+ description: N ? x("export.templates.empty.filtered.description", "Try adjusting your search to find what you are looking for.") : x("export.templates.empty.description", "Create a template to save reusable export configurations."),
316
+ action: N ? /* @__PURE__ */ h("button", {
317
317
  type: "button",
318
- onClick: () => N(""),
318
+ onClick: () => P(""),
319
319
  className: "inline-flex items-center gap-2 px-4 py-2 border-2 border-border-subtle rounded-lg hover:bg-accent transition-colors font-medium",
320
- children: [/* @__PURE__ */ m(f, { size: 16 }), b("export.templates.empty.filtered.actions.clear", "Clear Search")]
320
+ children: [/* @__PURE__ */ m(p, { size: 16 }), x("export.templates.empty.filtered.actions.clear", "Clear Search")]
321
321
  }) : /* @__PURE__ */ h("button", {
322
322
  type: "button",
323
- onClick: J,
323
+ onClick: Y,
324
324
  className: "inline-flex items-center gap-2 px-4 py-2 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-colors font-medium",
325
- children: [/* @__PURE__ */ m(d, { size: 16 }), b("export.templates.empty.actions.newTemplate", "New Template")]
325
+ children: [/* @__PURE__ */ m(f, { size: 16 }), x("export.templates.empty.actions.newTemplate", "New Template")]
326
326
  })
327
327
  }),
328
- w ? /* @__PURE__ */ m(ie, {
329
- open: K !== null,
328
+ T ? /* @__PURE__ */ m(re, {
329
+ open: q !== null,
330
330
  onOpenChange: (e) => {
331
331
  e || Q();
332
332
  },
333
- title: b("export.templates.delete.named", "Delete “{{name}}”?", { name: be }),
334
- description: b("export.templates.delete.description", "This removes the saved export configuration. Existing export jobs are not deleted."),
335
- confirmLabel: b("export.templates.delete.confirmAction", "Delete Template"),
336
- keepLabel: b("export.templates.delete.cancel", "Keep Template"),
337
- busy: A,
338
- error: O,
333
+ title: x("export.templates.delete.named", "Delete “{{name}}”?", { name: xe }),
334
+ description: x("export.templates.delete.description", "This removes the saved export configuration. Existing export jobs are not deleted."),
335
+ confirmLabel: x("export.templates.delete.confirmAction", "Delete Template"),
336
+ keepLabel: x("export.templates.delete.cancel", "Keep Template"),
337
+ busy: j,
338
+ error: k,
339
339
  onConfirm: () => void $()
340
- }) : K && /* @__PURE__ */ m("div", {
340
+ }) : q && /* @__PURE__ */ m("div", {
341
341
  role: "dialog",
342
342
  "aria-modal": "true",
343
343
  "aria-labelledby": "template-list-delete-title",
@@ -348,16 +348,16 @@ function v() {
348
348
  /* @__PURE__ */ m("h2", {
349
349
  id: "template-list-delete-title",
350
350
  className: "text-lg font-bold",
351
- children: b("export.templates.delete.title", "Delete template?")
351
+ children: x("export.templates.delete.title", "Delete template?")
352
352
  }),
353
353
  /* @__PURE__ */ m("p", {
354
354
  className: "mt-2 text-sm text-text-secondary",
355
- children: b("export.templates.delete.description", "This removes the saved export configuration. Existing export jobs are not deleted.")
355
+ children: x("export.templates.delete.description", "This removes the saved export configuration. Existing export jobs are not deleted.")
356
356
  }),
357
- O && /* @__PURE__ */ m("p", {
357
+ k && /* @__PURE__ */ m("p", {
358
358
  role: "alert",
359
359
  className: "mt-3 rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
360
- children: O
360
+ children: k
361
361
  }),
362
362
  /* @__PURE__ */ h("div", {
363
363
  className: "mt-6 flex flex-col-reverse sm:flex-row sm:justify-end gap-3",
@@ -365,12 +365,12 @@ function v() {
365
365
  type: "button",
366
366
  onClick: Q,
367
367
  className: "px-4 py-2 rounded-lg border-2 border-border-subtle hover:bg-accent transition-colors font-medium",
368
- children: b("export.templates.delete.cancel", "Keep Template")
368
+ children: x("export.templates.delete.cancel", "Keep Template")
369
369
  }), /* @__PURE__ */ m("button", {
370
370
  type: "button",
371
371
  onClick: $,
372
372
  className: "px-4 py-2 rounded-lg bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90 transition-colors font-medium",
373
- children: b("export.templates.delete.confirmAction", "Delete Template")
373
+ children: x("export.templates.delete.confirmAction", "Delete Template")
374
374
  })]
375
375
  })
376
376
  ]
@@ -379,6 +379,6 @@ function v() {
379
379
  ]
380
380
  });
381
381
  }
382
- export { v as ExportTemplatesPage };
382
+ export { y as ExportTemplatesPage };
383
383
 
384
384
  //# sourceMappingURL=ExportTemplatesPage.js.map