@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,253 +1,253 @@
1
1
  import { useExport as e } from "../providers/ExportProvider.js";
2
- import { useAvailableEntities as t, useCreateExportJob as n, useExportTemplates as r, useOrganizationExportPermission as i } from "../hooks/useExportQueries.js";
3
- import { getFormatDisplayName as a } from "../constants/enums.js";
4
- import { PageLayout as ee } from "../components/PageLayout.js";
5
- import { useTr as te } from "../hooks/useTr.js";
6
- import { cn as o } from "../utils/cn.js";
7
- import { openBilling as ne } from "../utils/billing.js";
8
- import { LEGACY_ENTITY_COPY_KEY as s } from "../utils/entityLabels.js";
9
- import { isExportEntityDisabled as c, isForeignProductEntity as l } from "../utils/disabledModules.js";
10
- import { useCallback as u, useEffect as d, useRef as re, useState as f } from "react";
11
- import { ArrowLeft as ie, ArrowRight as p, Building2 as m, CalendarRange as ae, CheckCircle2 as h, Download as g, FileJson as _, FileSpreadsheet as v, Loader2 as oe, Lock as se, Package as ce, User as y, Users as b } from "lucide-react";
12
- import { useAppShell as le, usePermission as ue } from "@burdenoff/fe-libs/shared/providers/shell";
13
- import { useSearchParams as de } from "react-router";
14
- import { isQuotaExhaustedError as fe } from "@burdenoff/fe-libs/shared/utils";
15
- import { jsx as x, jsxs as S } from "react/jsx-runtime";
16
- import { AlertDialog as pe, AlertDialogAction as me, AlertDialogCancel as he, AlertDialogContent as ge, AlertDialogDescription as _e, AlertDialogFooter as ve, AlertDialogHeader as ye, AlertDialogTitle as be, EmphasisPanel as xe, IllustratedEmptyState as Se, PagePurpose as Ce, ShowMore as we } from "@burdenoff/fe-libs/ui";
2
+ import { useAvailableEntities as t, useCreateExportJob as n, useExportTemplates as r, useOrganizationExportPermission as ee } from "../hooks/useExportQueries.js";
3
+ import { getFormatDisplayName as i } from "../constants/enums.js";
4
+ import { PageLayout as te } from "../components/PageLayout.js";
5
+ import { useTr as ne } from "../hooks/useTr.js";
6
+ import { cn as a } from "../utils/cn.js";
7
+ import { openBilling as re } from "../utils/billing.js";
8
+ import { LEGACY_ENTITY_COPY_KEY as o } from "../utils/entityLabels.js";
9
+ import { isExportEntityDisabled as s, isForeignProductEntity as c } from "../utils/disabledModules.js";
10
+ import { useCallback as l, useEffect as u, useRef as ie, useState as d } from "react";
11
+ import { ArrowLeft as ae, ArrowRight as f, Building2 as p, CalendarRange as oe, CheckCircle2 as m, Download as h, FileJson as g, FileSpreadsheet as _, Loader2 as se, Lock as ce, Package as le, User as v, Users as y } from "lucide-react";
12
+ import { useAppShell as ue, usePermission as de } from "@burdenoff/fe-libs/shared/providers/shell";
13
+ import { useSearchParams as fe } from "react-router";
14
+ import { isQuotaExhaustedError as pe } from "@burdenoff/fe-libs/shared/utils";
15
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
16
+ import { AlertDialog as me, AlertDialogAction as he, AlertDialogCancel as ge, AlertDialogContent as _e, AlertDialogDescription as ve, AlertDialogFooter as ye, AlertDialogHeader as be, AlertDialogTitle as xe, EmphasisPanel as Se, IllustratedEmptyState as Ce, PagePurpose as we, ShowMore as Te, ThemedSelect as S } from "@burdenoff/fe-libs/ui";
17
17
  // src/export/pages/CreateExportPage.tsx
18
- var C = ["CSV", "JSON"], Te = {
19
- CSV: v,
20
- JSON: _
21
- }, Ee = {
22
- INDIVIDUAL: y,
23
- WORKSPACE_ADMIN: b,
24
- ORG_ADMIN: m
18
+ var C = ["CSV", "JSON"], Ee = {
19
+ CSV: _,
20
+ JSON: g
21
+ }, w = {
22
+ INDIVIDUAL: v,
23
+ WORKSPACE_ADMIN: y,
24
+ ORG_ADMIN: p
25
25
  };
26
- function w() {
27
- let { basePath: m = "/", navigate: _, organizationId: v } = e(), y = te(), { createJob: b, isPending: w } = n(), { data: T } = t(), { data: E } = r(), [D] = de(), { productSlug: O } = le(), k = u((e) => !c(e) && !l(e, O), [O]), De = ue("export:workspace_admin"), Oe = i(v), [A, j] = f("entities"), [M, N] = f([]), [P, F] = f(""), [I, L] = f("CSV"), [R, ke] = f("INDIVIDUAL"), [z, B] = f(D.get("templateId") ?? void 0), [V, Ae] = f(""), [H, je] = f(""), [U, W] = f(null), [Me, G] = f(!1), K = re(null);
28
- d(() => {
29
- let e = D.get("templateId");
30
- if (!e || !E?.length || K.current === e) return;
31
- let t = E.find((t) => t.id === e);
26
+ function T() {
27
+ let { basePath: p = "/", navigate: g, organizationId: _ } = e(), v = ne(), { createJob: y, isPending: T } = n(), { data: E } = t(), { data: D } = r(), [O] = fe(), { productSlug: k } = ue(), A = l((e) => !s(e) && !c(e, k), [k]), De = de("export:workspace_admin"), Oe = ee(_), [j, M] = d("entities"), [N, P] = d([]), [F, I] = d(""), [L, R] = d("CSV"), [z, ke] = d("INDIVIDUAL"), [B, V] = d(O.get("templateId") ?? void 0), [H, Ae] = d(""), [U, je] = d(""), [W, G] = d(null), [Me, K] = d(!1), q = ie(null);
28
+ u(() => {
29
+ let e = O.get("templateId");
30
+ if (!e || !D?.length || q.current === e) return;
31
+ let t = D.find((t) => t.id === e);
32
32
  if (!t) return;
33
- K.current = e, B(t.id), N((t.entityTypes ?? []).filter(k));
33
+ q.current = e, V(t.id), P((t.entityTypes ?? []).filter(A));
34
34
  let n = t.format?.toUpperCase();
35
- n && C.includes(n) && L(n), t.name && F(t.name);
35
+ n && C.includes(n) && R(n), t.name && I(t.name);
36
36
  }, [
37
- k,
38
- D,
39
- E
37
+ A,
38
+ O,
39
+ D
40
40
  ]);
41
41
  let Ne = () => {
42
- A === "options" ? j("entities") : A === "review" ? j("options") : _?.(m);
43
- }, q = () => {
44
- if (A === "entities") {
45
- if (M.length === 0) {
46
- W(y("export.create.errors.selectEntity", "Please select at least one entity type to export"));
42
+ j === "options" ? M("entities") : j === "review" ? M("options") : g?.(p);
43
+ }, Pe = () => {
44
+ if (j === "entities") {
45
+ if (N.length === 0) {
46
+ G(v("export.create.errors.selectEntity", "Please select at least one entity type to export"));
47
47
  return;
48
48
  }
49
- W(null), j("options");
50
- } else if (A === "options") {
51
- if (!P.trim()) {
52
- W(y("export.create.errors.exportNameRequired", "Please provide a name for this export"));
49
+ G(null), M("options");
50
+ } else if (j === "options") {
51
+ if (!F.trim()) {
52
+ G(v("export.create.errors.exportNameRequired", "Please provide a name for this export"));
53
53
  return;
54
54
  }
55
- W(null), j("review");
55
+ G(null), M("review");
56
56
  }
57
- }, Pe = async () => {
57
+ }, Fe = async () => {
58
58
  try {
59
- W(null), await b({
60
- name: P,
61
- entityTypes: M,
62
- format: I,
63
- exportScope: R,
64
- organizationId: R === "ORG_ADMIN" ? v : void 0,
65
- templateId: z,
66
- dateRangeStart: V ? new Date(V).toISOString() : null,
67
- dateRangeEnd: H ? new Date(H).toISOString() : null
68
- }), _?.(m);
59
+ G(null), await y({
60
+ name: F,
61
+ entityTypes: N,
62
+ format: L,
63
+ exportScope: z,
64
+ organizationId: z === "ORG_ADMIN" ? _ : void 0,
65
+ templateId: B,
66
+ dateRangeStart: H ? new Date(H).toISOString() : null,
67
+ dateRangeEnd: U ? new Date(U).toISOString() : null
68
+ }), g?.(p);
69
69
  } catch (e) {
70
- if (fe(e)) {
71
- G(!0), W(y("export.create.errors.quotaReached", "You have reached your export limit for this month."));
70
+ if (pe(e)) {
71
+ K(!0), G(v("export.create.errors.quotaReached", "You have reached your export limit for this month."));
72
72
  return;
73
73
  }
74
- W(e instanceof Error ? e.message : y("export.create.errors.createFailed", "Failed to create export"));
74
+ G(e instanceof Error ? e.message : v("export.create.errors.createFailed", "Failed to create export"));
75
75
  }
76
- }, Fe = (e) => {
77
- k(e) && N((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
76
+ }, Ie = (e) => {
77
+ A(e) && P((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
78
78
  }, J = (e) => {
79
79
  switch (e) {
80
- case "INDIVIDUAL": return y("export.create.scope.individual.label", "My Data Only");
81
- case "WORKSPACE_ADMIN": return y("export.create.scope.workspaceAdmin.label", "All Workspace Data");
82
- case "ORG_ADMIN": return y("export.create.scope.orgAdmin.label", "All Organization Data");
80
+ case "INDIVIDUAL": return v("export.create.scope.individual.label", "My Data Only");
81
+ case "WORKSPACE_ADMIN": return v("export.create.scope.workspaceAdmin.label", "All Workspace Data");
82
+ case "ORG_ADMIN": return v("export.create.scope.orgAdmin.label", "All Organization Data");
83
83
  default: return e;
84
84
  }
85
- }, Ie = (e) => {
85
+ }, Le = (e) => {
86
86
  switch (e) {
87
- case "INDIVIDUAL": return y("export.create.scope.individual.description", "Export data you personally created across selected modules.");
88
- case "WORKSPACE_ADMIN": return y("export.create.scope.workspaceAdmin.description", "Export all data in this workspace regardless of who created it. Requires workspace admin access.");
89
- case "ORG_ADMIN": return y("export.create.scope.orgAdmin.description", "Export data from every workspace in your organization. Requires org-admin access.");
87
+ case "INDIVIDUAL": return v("export.create.scope.individual.description", "Export data you personally created across selected modules.");
88
+ case "WORKSPACE_ADMIN": return v("export.create.scope.workspaceAdmin.description", "Export all data in this workspace regardless of who created it. Requires workspace admin access.");
89
+ case "ORG_ADMIN": return v("export.create.scope.orgAdmin.description", "Export data from every workspace in your organization. Requires org-admin access.");
90
90
  default: return "";
91
91
  }
92
92
  }, Y = {
93
93
  users: {
94
- label: y("export.create.entities.users.label", "Users"),
95
- description: y("export.create.entities.users.description", "Workspace members and profiles")
94
+ label: v("export.create.entities.users.label", "Users"),
95
+ description: v("export.create.entities.users.description", "Workspace members and profiles")
96
96
  },
97
97
  projects: {
98
- label: y("export.create.entities.projects.label", "Projects"),
99
- description: y("export.create.entities.projects.description", "Projects and their metadata")
98
+ label: v("export.create.entities.projects.label", "Projects"),
99
+ description: v("export.create.entities.projects.description", "Projects and their metadata")
100
100
  },
101
101
  tasks: {
102
- label: y("export.create.entities.tasks.label", "Tasks"),
103
- description: y("export.create.entities.tasks.description", "Task items and assignments")
102
+ label: v("export.create.entities.tasks.label", "Tasks"),
103
+ description: v("export.create.entities.tasks.description", "Task items and assignments")
104
104
  },
105
105
  files: {
106
- label: y("export.create.entities.files.label", "Files"),
107
- description: y("export.create.entities.files.description", "File metadata and references")
106
+ label: v("export.create.entities.files.label", "Files"),
107
+ description: v("export.create.entities.files.description", "File metadata and references")
108
108
  },
109
109
  conversations: {
110
- label: y("export.create.entities.conversations.label", "Conversations"),
111
- description: y("export.create.entities.conversations.description", "Chat messages and threads")
110
+ label: v("export.create.entities.conversations.label", "Conversations"),
111
+ description: v("export.create.entities.conversations.description", "Chat messages and threads")
112
112
  },
113
113
  tags: {
114
- label: y("export.create.entities.tags.label", "Tags"),
115
- description: y("export.create.entities.tags.description", "Tags and vocabularies")
114
+ label: v("export.create.entities.tags.label", "Tags"),
115
+ description: v("export.create.entities.tags.description", "Tags and vocabularies")
116
116
  },
117
117
  activity: {
118
- label: y("export.create.entities.activity.label", "Activity Logs"),
119
- description: y("export.create.entities.activity.description", "Audit trail and activity history")
118
+ label: v("export.create.entities.activity.label", "Activity Logs"),
119
+ description: v("export.create.entities.activity.description", "Audit trail and activity history")
120
120
  },
121
121
  calendar: {
122
- label: y("export.create.entities.calendar.label", "Calendar Events"),
123
- description: y("export.create.entities.calendar.description", "Events and bookings")
122
+ label: v("export.create.entities.calendar.label", "Calendar Events"),
123
+ description: v("export.create.entities.calendar.description", "Events and bookings")
124
124
  }
125
- }, X = T.filter((e) => e.enabled !== !1 && !l(e.entityType, O)), Z = X.filter((e) => !c(e.entityType)), Q = X.filter((e) => c(e.entityType)), $ = (e, t) => {
126
- let n = !t && M.includes(e.entityType);
127
- return /* @__PURE__ */ S("button", {
125
+ }, X = E.filter((e) => e.enabled !== !1 && !c(e.entityType, k)), Z = X.filter((e) => !s(e.entityType)), Q = X.filter((e) => s(e.entityType)), $ = (e, t) => {
126
+ let n = !t && N.includes(e.entityType);
127
+ return /* @__PURE__ */ x("button", {
128
128
  type: "button",
129
- onClick: () => Fe(e.entityType),
129
+ onClick: () => Ie(e.entityType),
130
130
  disabled: t,
131
131
  "aria-disabled": t,
132
- title: t ? y("export.create.select.unavailableHint", "Export for this product isn't available yet") : void 0,
133
- className: o("text-left border-2 rounded-xl p-4 transition-all duration-200", t ? "border-border-subtle/30 opacity-50 cursor-not-allowed" : n ? "border-primary bg-action-primary-bg/5 shadow-md" : "border-border-subtle/50 hover:border-primary/30 hover:shadow-sm"),
132
+ title: t ? v("export.create.select.unavailableHint", "Export for this product isn't available yet") : void 0,
133
+ className: a("text-left border-2 rounded-xl p-4 transition-all duration-200", t ? "border-border-subtle/30 opacity-50 cursor-not-allowed" : n ? "border-primary bg-action-primary-bg/5 shadow-md" : "border-border-subtle/50 hover:border-primary/30 hover:shadow-sm"),
134
134
  children: [
135
- /* @__PURE__ */ S("div", {
135
+ /* @__PURE__ */ x("div", {
136
136
  className: "flex items-center justify-between mb-2 gap-2",
137
- children: [/* @__PURE__ */ x("h3", {
137
+ children: [/* @__PURE__ */ b("h3", {
138
138
  className: "font-semibold",
139
- children: Y[s[e.entityType] ?? e.entityType]?.label ?? e.displayName
140
- }), t ? /* @__PURE__ */ x("span", {
139
+ children: Y[o[e.entityType] ?? e.entityType]?.label ?? e.displayName
140
+ }), t ? /* @__PURE__ */ b("span", {
141
141
  className: "shrink-0 text-xs font-medium px-2 py-0.5 rounded-full bg-bg-sunken text-text-secondary",
142
- children: y("export.create.select.unavailable", "Unavailable")
143
- }) : n && /* @__PURE__ */ x(h, {
142
+ children: v("export.create.select.unavailable", "Unavailable")
143
+ }) : n && /* @__PURE__ */ b(m, {
144
144
  size: 18,
145
145
  className: "text-primary"
146
146
  })]
147
147
  }),
148
- /* @__PURE__ */ x("p", {
148
+ /* @__PURE__ */ b("p", {
149
149
  className: "text-sm text-text-secondary",
150
- children: Y[s[e.entityType] ?? e.entityType]?.description ?? e.description
150
+ children: Y[o[e.entityType] ?? e.entityType]?.description ?? e.description
151
151
  }),
152
- e.estimatedSize && /* @__PURE__ */ S("p", {
152
+ e.estimatedSize && /* @__PURE__ */ x("p", {
153
153
  className: "text-xs text-text-secondary mt-2",
154
154
  children: ["~", e.estimatedSize]
155
155
  })
156
156
  ]
157
157
  }, e.entityType);
158
158
  };
159
- return /* @__PURE__ */ S(ee, {
159
+ return /* @__PURE__ */ x(te, {
160
160
  showHeader: !1,
161
161
  children: [
162
- /* @__PURE__ */ x("div", {
162
+ /* @__PURE__ */ b("div", {
163
163
  className: "relative overflow-hidden rounded-xl bg-accent-wash border border-border-seam p-6 shadow-[var(--shadow-pop)]",
164
- children: /* @__PURE__ */ S("div", {
164
+ children: /* @__PURE__ */ x("div", {
165
165
  className: "relative z-10 flex items-center gap-4",
166
- children: [/* @__PURE__ */ x("button", {
166
+ children: [/* @__PURE__ */ b("button", {
167
167
  type: "button",
168
- onClick: () => _?.(m),
168
+ onClick: () => g?.(p),
169
169
  className: "p-2.5 hover:bg-accent rounded-lg transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
170
- "aria-label": y("export.create.actions.backToDashboard", "Back to export dashboard"),
171
- children: /* @__PURE__ */ x(ie, { size: 20 })
172
- }), /* @__PURE__ */ S("div", {
170
+ "aria-label": v("export.create.actions.backToDashboard", "Back to export dashboard"),
171
+ children: /* @__PURE__ */ b(ae, { size: 20 })
172
+ }), /* @__PURE__ */ x("div", {
173
173
  className: "flex items-center gap-3",
174
- children: [/* @__PURE__ */ x("div", {
174
+ children: [/* @__PURE__ */ b("div", {
175
175
  className: "p-2.5 rounded-lg bg-action-primary-bg/10 backdrop-blur-sm",
176
- children: /* @__PURE__ */ x(g, {
176
+ children: /* @__PURE__ */ b(h, {
177
177
  size: 24,
178
178
  className: "text-primary"
179
179
  })
180
- }), /* @__PURE__ */ x("h1", {
180
+ }), /* @__PURE__ */ b("h1", {
181
181
  className: "text-2xl sm:text-3xl font-bold",
182
- children: y("export.create.title", "New Export")
182
+ children: v("export.create.title", "New Export")
183
183
  })]
184
184
  })]
185
185
  })
186
186
  }),
187
- /* @__PURE__ */ x(Ce, {
188
- icon: /* @__PURE__ */ x(g, { size: 16 }),
189
- children: y("export.create.purpose", "Build a one-off export in three steps: pick which data to include, choose a format and scope, then review and start it. The export runs in the background and produces a downloadable ZIP you can grab from History when it finishes.")
187
+ /* @__PURE__ */ b(we, {
188
+ icon: /* @__PURE__ */ b(h, { size: 16 }),
189
+ children: v("export.create.purpose", "Build a one-off export in three steps: pick which data to include, choose a format and scope, then review and start it. The export runs in the background and produces a downloadable ZIP you can grab from History when it finishes.")
190
190
  }),
191
- /* @__PURE__ */ x("div", {
191
+ /* @__PURE__ */ b("div", {
192
192
  className: "flex items-center gap-2 justify-center flex-wrap",
193
193
  children: [
194
194
  "entities",
195
195
  "options",
196
196
  "review"
197
- ].map((e, t) => /* @__PURE__ */ S("div", {
197
+ ].map((e, t) => /* @__PURE__ */ x("div", {
198
198
  className: "flex items-center gap-2",
199
- children: [t > 0 && /* @__PURE__ */ x(p, {
199
+ children: [t > 0 && /* @__PURE__ */ b(f, {
200
200
  size: 18,
201
201
  className: "text-text-secondary"
202
- }), /* @__PURE__ */ S("div", {
203
- className: o("flex items-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium border-2 transition-all duration-200", A === e ? "bg-action-primary-bg text-action-primary-text border-primary shadow-[var(--shadow-pop)]" : "bg-bg-sunken/50 text-text-secondary border-border-seam"),
204
- children: [/* @__PURE__ */ x("div", {
202
+ }), /* @__PURE__ */ x("div", {
203
+ className: a("flex items-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium border-2 transition-all duration-200", j === e ? "bg-action-primary-bg text-action-primary-text border-primary shadow-[var(--shadow-pop)]" : "bg-bg-sunken/50 text-text-secondary border-border-seam"),
204
+ children: [/* @__PURE__ */ b("div", {
205
205
  className: "flex items-center justify-center size-6 rounded-full bg-bg-surface/20 font-bold",
206
206
  children: t + 1
207
- }), /* @__PURE__ */ x("span", {
207
+ }), /* @__PURE__ */ b("span", {
208
208
  className: "hidden sm:inline capitalize",
209
- children: e === "entities" ? y("export.create.steps.entities", "Select Data") : e === "options" ? y("export.create.steps.options", "Options") : y("export.create.steps.review", "Review")
209
+ children: e === "entities" ? v("export.create.steps.entities", "Select Data") : e === "options" ? v("export.create.steps.options", "Options") : v("export.create.steps.review", "Review")
210
210
  })]
211
211
  })]
212
212
  }, e))
213
213
  }),
214
- U && /* @__PURE__ */ x("div", {
214
+ W && /* @__PURE__ */ b("div", {
215
215
  className: "border-2 border-border-default rounded-xl bg-status-error-bg-subtle p-4 text-status-error-text text-sm",
216
- children: U
216
+ children: W
217
217
  }),
218
- A === "entities" && /* @__PURE__ */ S("div", {
218
+ j === "entities" && /* @__PURE__ */ x("div", {
219
219
  className: "space-y-4",
220
220
  children: [
221
- /* @__PURE__ */ x("h2", {
221
+ /* @__PURE__ */ b("h2", {
222
222
  className: "text-lg font-bold",
223
- children: y("export.create.select.title", "Select data to export")
223
+ children: v("export.create.select.title", "Select data to export")
224
224
  }),
225
- /* @__PURE__ */ x("p", {
225
+ /* @__PURE__ */ b("p", {
226
226
  className: "text-sm text-text-secondary",
227
- children: y("export.create.select.description", "Choose which entity types to include in your export.")
227
+ children: v("export.create.select.description", "Choose which entity types to include in your export.")
228
228
  }),
229
- X.length === 0 ? /* @__PURE__ */ x(Se, {
229
+ X.length === 0 ? /* @__PURE__ */ b(Ce, {
230
230
  illustration: "empty-data",
231
- title: y("export.create.select.emptyTitle", "Nothing to export yet"),
232
- description: y("export.create.select.empty", "No exportable entity types are configured for this workspace yet. Once your workspace has data in supported modules, they'll show up here to select.")
233
- }) : /* @__PURE__ */ S("div", {
231
+ title: v("export.create.select.emptyTitle", "Nothing to export yet"),
232
+ description: v("export.create.select.empty", "No exportable entity types are configured for this workspace yet. Once your workspace has data in supported modules, they'll show up here to select.")
233
+ }) : /* @__PURE__ */ x("div", {
234
234
  className: "space-y-6",
235
- children: [Z.length > 0 && /* @__PURE__ */ x("div", {
235
+ children: [Z.length > 0 && /* @__PURE__ */ b("div", {
236
236
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",
237
237
  children: Z.map((e) => $(e, !1))
238
- }), Q.length > 0 && /* @__PURE__ */ S("div", {
238
+ }), Q.length > 0 && /* @__PURE__ */ x("div", {
239
239
  className: "space-y-3",
240
- children: [/* @__PURE__ */ S("div", {
240
+ children: [/* @__PURE__ */ x("div", {
241
241
  className: "flex items-center gap-3",
242
242
  children: [
243
- /* @__PURE__ */ x("div", { className: "h-px flex-1 bg-border/60" }),
244
- /* @__PURE__ */ x("span", {
243
+ /* @__PURE__ */ b("div", { className: "h-px flex-1 bg-border/60" }),
244
+ /* @__PURE__ */ b("span", {
245
245
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
246
- children: y("export.create.select.unavailableSection", "Not available yet")
246
+ children: v("export.create.select.unavailableSection", "Not available yet")
247
247
  }),
248
- /* @__PURE__ */ x("div", { className: "h-px flex-1 bg-border/60" })
248
+ /* @__PURE__ */ b("div", { className: "h-px flex-1 bg-border/60" })
249
249
  ]
250
- }), /* @__PURE__ */ x("div", {
250
+ }), /* @__PURE__ */ b("div", {
251
251
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",
252
252
  children: Q.map((e) => $(e, !0))
253
253
  })]
@@ -255,212 +255,212 @@ function w() {
255
255
  })
256
256
  ]
257
257
  }),
258
- A === "options" && /* @__PURE__ */ x("div", {
258
+ j === "options" && /* @__PURE__ */ b("div", {
259
259
  className: "space-y-6",
260
- children: /* @__PURE__ */ S("div", {
260
+ children: /* @__PURE__ */ x("div", {
261
261
  className: "border border-border-seam rounded-xl p-6 space-y-5 bg-bg-surface",
262
262
  children: [
263
- /* @__PURE__ */ x("h2", {
263
+ /* @__PURE__ */ b("h2", {
264
264
  className: "text-lg font-bold",
265
- children: y("export.create.options.title", "Export Options")
265
+ children: v("export.create.options.title", "Export Options")
266
266
  }),
267
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
267
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
268
268
  className: "block text-sm font-semibold mb-2",
269
- children: y("export.create.options.scope", "Export Scope")
270
- }), /* @__PURE__ */ x("div", {
269
+ children: v("export.create.options.scope", "Export Scope")
270
+ }), /* @__PURE__ */ b("div", {
271
271
  className: "grid grid-cols-1 sm:grid-cols-3 gap-3",
272
272
  children: [
273
273
  "INDIVIDUAL",
274
274
  "WORKSPACE_ADMIN",
275
275
  "ORG_ADMIN"
276
276
  ].map((e) => {
277
- let t = e === "WORKSPACE_ADMIN" && !De || e === "ORG_ADMIN" && !Oe, n = Ee[e], r = e === "WORKSPACE_ADMIN" ? y("export.create.scope.workspaceAdmin.required", "Workspace admin access required") : y("export.create.scope.orgAdmin.required", "Organization admin access required");
278
- return /* @__PURE__ */ S("button", {
277
+ let t = e === "WORKSPACE_ADMIN" && !De || e === "ORG_ADMIN" && !Oe, n = w[e], r = e === "WORKSPACE_ADMIN" ? v("export.create.scope.workspaceAdmin.required", "Workspace admin access required") : v("export.create.scope.orgAdmin.required", "Organization admin access required");
278
+ return /* @__PURE__ */ x("button", {
279
279
  type: "button",
280
280
  onClick: () => !t && ke(e),
281
281
  disabled: t,
282
- className: o("text-left border-2 rounded-xl p-4 transition-all duration-200", R === e ? "border-primary bg-action-primary-bg/5 shadow-md" : t ? "border-border-subtle/30 opacity-50 cursor-not-allowed" : "border-border-subtle/50 hover:border-primary/30 hover:shadow-sm"),
282
+ className: a("text-left border-2 rounded-xl p-4 transition-all duration-200", z === e ? "border-primary bg-action-primary-bg/5 shadow-md" : t ? "border-border-subtle/30 opacity-50 cursor-not-allowed" : "border-border-subtle/50 hover:border-primary/30 hover:shadow-sm"),
283
283
  title: t ? r : void 0,
284
284
  children: [
285
- /* @__PURE__ */ S("div", {
285
+ /* @__PURE__ */ x("div", {
286
286
  className: "flex items-center justify-between mb-2",
287
287
  children: [
288
- /* @__PURE__ */ x(n, {
288
+ /* @__PURE__ */ b(n, {
289
289
  size: 18,
290
- className: R === e ? "text-primary" : t ? "text-text-secondary/50" : "text-text-secondary"
290
+ className: z === e ? "text-primary" : t ? "text-text-secondary/50" : "text-text-secondary"
291
291
  }),
292
- R === e && /* @__PURE__ */ x(h, {
292
+ z === e && /* @__PURE__ */ b(m, {
293
293
  size: 16,
294
294
  className: "text-primary"
295
295
  }),
296
- t && /* @__PURE__ */ x(se, {
296
+ t && /* @__PURE__ */ b(ce, {
297
297
  size: 14,
298
298
  className: "text-text-secondary/50"
299
299
  })
300
300
  ]
301
301
  }),
302
- /* @__PURE__ */ x("p", {
302
+ /* @__PURE__ */ b("p", {
303
303
  className: "font-semibold text-sm",
304
304
  children: J(e)
305
305
  }),
306
- /* @__PURE__ */ x("p", {
306
+ /* @__PURE__ */ b("p", {
307
307
  className: "text-xs text-text-secondary mt-1",
308
- children: Ie(e)
308
+ children: Le(e)
309
309
  })
310
310
  ]
311
311
  }, e);
312
312
  })
313
313
  })] }),
314
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("label", {
314
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("label", {
315
315
  htmlFor: "exportName",
316
316
  className: "block text-sm font-semibold mb-2",
317
317
  children: [
318
- y("export.create.options.name", "Export Name"),
318
+ v("export.create.options.name", "Export Name"),
319
319
  " ",
320
- /* @__PURE__ */ x("span", {
320
+ /* @__PURE__ */ b("span", {
321
321
  className: "text-status-error-text",
322
322
  children: "*"
323
323
  })
324
324
  ]
325
- }), /* @__PURE__ */ x("input", {
325
+ }), /* @__PURE__ */ b("input", {
326
326
  type: "text",
327
327
  id: "exportName",
328
- "aria-label": y("export.create.options.name", "Export Name"),
329
- value: P,
330
- onChange: (e) => F(e.target.value),
328
+ "aria-label": v("export.create.options.name", "Export Name"),
329
+ value: F,
330
+ onChange: (e) => I(e.target.value),
331
331
  className: "w-full px-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",
332
- placeholder: y("export.create.options.namePlaceholder", "e.g., Monthly User Export")
332
+ placeholder: v("export.create.options.namePlaceholder", "e.g., Monthly User Export")
333
333
  })] }),
334
- /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
334
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
335
335
  className: "block text-sm font-semibold mb-2",
336
- children: y("export.create.options.outputFormat", "Output Format")
337
- }), /* @__PURE__ */ x("div", {
336
+ children: v("export.create.options.outputFormat", "Output Format")
337
+ }), /* @__PURE__ */ b("div", {
338
338
  className: "grid grid-cols-2 gap-3",
339
339
  children: C.map((e) => {
340
- let t = Te[e];
341
- return /* @__PURE__ */ S("button", {
340
+ let t = Ee[e];
341
+ return /* @__PURE__ */ x("button", {
342
342
  type: "button",
343
- onClick: () => L(e),
344
- className: o("flex items-center gap-3 border-2 rounded-lg p-3 transition-all duration-200", I === e ? "border-primary bg-action-primary-bg/5" : "border-border-subtle/50 hover:border-primary/30"),
345
- children: [/* @__PURE__ */ x(t, {
343
+ onClick: () => R(e),
344
+ className: a("flex items-center gap-3 border-2 rounded-lg p-3 transition-all duration-200", L === e ? "border-primary bg-action-primary-bg/5" : "border-border-subtle/50 hover:border-primary/30"),
345
+ children: [/* @__PURE__ */ b(t, {
346
346
  size: 18,
347
- className: I === e ? "text-primary" : "text-text-secondary"
348
- }), /* @__PURE__ */ x("span", {
347
+ className: L === e ? "text-primary" : "text-text-secondary"
348
+ }), /* @__PURE__ */ b("span", {
349
349
  className: "font-medium text-sm",
350
- children: a(e)
350
+ children: i(e)
351
351
  })]
352
352
  }, e);
353
353
  })
354
354
  })] }),
355
- /* @__PURE__ */ S("div", { children: [
356
- /* @__PURE__ */ x("label", {
355
+ /* @__PURE__ */ x("div", { children: [
356
+ /* @__PURE__ */ b("label", {
357
357
  className: "block text-sm font-semibold mb-2",
358
- children: y("export.create.options.archiveFormat", "Archive Format")
358
+ children: v("export.create.options.archiveFormat", "Archive Format")
359
359
  }),
360
- /* @__PURE__ */ x("div", {
360
+ /* @__PURE__ */ b("div", {
361
361
  className: "flex gap-3",
362
- children: /* @__PURE__ */ S("div", {
363
- className: o("flex items-center gap-2 border-2 rounded-lg px-4 py-2 border-primary bg-action-primary-bg/5"),
364
- children: [/* @__PURE__ */ x(ce, {
362
+ children: /* @__PURE__ */ x("div", {
363
+ className: a("flex items-center gap-2 border-2 rounded-lg px-4 py-2 border-primary bg-action-primary-bg/5"),
364
+ children: [/* @__PURE__ */ b(le, {
365
365
  size: 16,
366
366
  className: "text-primary"
367
- }), /* @__PURE__ */ x("span", {
367
+ }), /* @__PURE__ */ b("span", {
368
368
  className: "font-medium text-sm",
369
- children: y("export.archive.zip", "ZIP")
369
+ children: v("export.archive.zip", "ZIP")
370
370
  })]
371
371
  })
372
372
  }),
373
- /* @__PURE__ */ x("p", {
373
+ /* @__PURE__ */ b("p", {
374
374
  className: "text-xs text-text-secondary mt-1.5",
375
- children: y("export.create.options.archiveDescription", "Exports are packaged as ZIP archives.")
375
+ children: v("export.create.options.archiveDescription", "Exports are packaged as ZIP archives.")
376
376
  })
377
377
  ] }),
378
- /* @__PURE__ */ x(we, {
378
+ /* @__PURE__ */ b(Te, {
379
379
  collapsedHeight: 0,
380
- label: y("export.create.options.advancedToggle", "Date range & template"),
381
- children: /* @__PURE__ */ S("div", {
380
+ label: v("export.create.options.advancedToggle", "Date range & template"),
381
+ children: /* @__PURE__ */ x("div", {
382
382
  className: "space-y-5 pt-1",
383
- children: [/* @__PURE__ */ S("div", { children: [
384
- /* @__PURE__ */ x("label", {
383
+ children: [/* @__PURE__ */ x("div", { children: [
384
+ /* @__PURE__ */ b("label", {
385
385
  className: "block text-sm font-semibold mb-2",
386
- children: /* @__PURE__ */ S("span", {
386
+ children: /* @__PURE__ */ x("span", {
387
387
  className: "inline-flex items-center gap-1.5",
388
388
  children: [
389
- /* @__PURE__ */ x(ae, { size: 15 }),
390
- y("export.create.options.dateRange", "Date Range"),
389
+ /* @__PURE__ */ b(oe, { size: 15 }),
390
+ v("export.create.options.dateRange", "Date Range"),
391
391
  " ",
392
- /* @__PURE__ */ x("span", {
392
+ /* @__PURE__ */ b("span", {
393
393
  className: "font-normal text-text-secondary",
394
- children: y("export.create.shared.optional", "(optional)")
394
+ children: v("export.create.shared.optional", "(optional)")
395
395
  })
396
396
  ]
397
397
  })
398
398
  }),
399
- /* @__PURE__ */ S("div", {
399
+ /* @__PURE__ */ x("div", {
400
400
  className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
401
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
401
+ children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
402
402
  htmlFor: "dateFrom",
403
403
  className: "block text-xs text-text-secondary mb-1",
404
- children: y("export.create.options.dateFrom", "From")
405
- }), /* @__PURE__ */ x("input", {
404
+ children: v("export.create.options.dateFrom", "From")
405
+ }), /* @__PURE__ */ b("input", {
406
406
  type: "date",
407
407
  id: "dateFrom",
408
- "aria-label": y("export.create.options.dateFrom", "From"),
409
- value: V,
408
+ "aria-label": v("export.create.options.dateFrom", "From"),
409
+ value: H,
410
410
  onChange: (e) => Ae(e.target.value),
411
411
  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 text-sm"
412
- })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
412
+ })] }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
413
413
  htmlFor: "dateTo",
414
414
  className: "block text-xs text-text-secondary mb-1",
415
- children: y("export.create.options.dateTo", "To")
416
- }), /* @__PURE__ */ x("input", {
415
+ children: v("export.create.options.dateTo", "To")
416
+ }), /* @__PURE__ */ b("input", {
417
417
  type: "date",
418
418
  id: "dateTo",
419
- "aria-label": y("export.create.options.dateTo", "To"),
420
- value: H,
421
- min: V,
419
+ "aria-label": v("export.create.options.dateTo", "To"),
420
+ value: U,
421
+ min: H,
422
422
  onChange: (e) => je(e.target.value),
423
423
  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 text-sm"
424
424
  })] })]
425
425
  }),
426
- /* @__PURE__ */ x("p", {
426
+ /* @__PURE__ */ b("p", {
427
427
  className: "text-xs text-text-secondary mt-1.5",
428
- children: y("export.create.options.dateRangeDescription", "Leave blank to export all data regardless of date.")
428
+ children: v("export.create.options.dateRangeDescription", "Leave blank to export all data regardless of date.")
429
429
  })
430
- ] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("label", {
430
+ ] }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("label", {
431
431
  className: "block text-sm font-semibold mb-2",
432
432
  children: [
433
- y("export.create.options.basedOnTemplate", "Based on Template"),
433
+ v("export.create.options.basedOnTemplate", "Based on Template"),
434
434
  " ",
435
- /* @__PURE__ */ x("span", {
435
+ /* @__PURE__ */ b("span", {
436
436
  className: "font-normal text-text-secondary",
437
- children: y("export.create.shared.optional", "(optional)")
437
+ children: v("export.create.shared.optional", "(optional)")
438
438
  })
439
439
  ]
440
- }), E.length > 0 ? /* @__PURE__ */ S("select", {
441
- value: z ?? "",
442
- onChange: (e) => B(e.target.value || void 0),
440
+ }), D.length > 0 ? /* @__PURE__ */ x(S, {
441
+ value: B ?? "",
442
+ onChange: (e) => V(e.target.value || void 0),
443
443
  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 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
444
- children: [/* @__PURE__ */ x("option", {
444
+ children: [/* @__PURE__ */ b("option", {
445
445
  value: "",
446
- children: y("export.create.options.noTemplate", "No template")
447
- }), E.map((e) => /* @__PURE__ */ x("option", {
446
+ children: v("export.create.options.noTemplate", "No template")
447
+ }), D.map((e) => /* @__PURE__ */ b("option", {
448
448
  value: e.id,
449
449
  children: e.name
450
450
  }, e.id))]
451
- }) : /* @__PURE__ */ S("p", {
451
+ }) : /* @__PURE__ */ x("p", {
452
452
  className: "text-sm text-text-secondary",
453
453
  children: [
454
- y("export.create.options.noTemplates", "No templates yet."),
454
+ v("export.create.options.noTemplates", "No templates yet."),
455
455
  " ",
456
- /* @__PURE__ */ x("button", {
456
+ /* @__PURE__ */ b("button", {
457
457
  type: "button",
458
- onClick: () => _?.(m + "/templates"),
458
+ onClick: () => g?.(p + "/templates"),
459
459
  className: "text-primary underline-offset-2 hover:underline",
460
- children: y("export.create.options.createTemplateLink", "Create one")
460
+ children: v("export.create.options.createTemplateLink", "Create one")
461
461
  }),
462
462
  " ",
463
- y("export.create.options.reuseTemplateHint", "to reuse export configurations.")
463
+ v("export.create.options.reuseTemplateHint", "to reuse export configurations.")
464
464
  ]
465
465
  })] })]
466
466
  })
@@ -468,53 +468,53 @@ function w() {
468
468
  ]
469
469
  })
470
470
  }),
471
- A === "review" && /* @__PURE__ */ x("div", {
471
+ j === "review" && /* @__PURE__ */ b("div", {
472
472
  className: "space-y-6",
473
- children: /* @__PURE__ */ S(xe, {
473
+ children: /* @__PURE__ */ x(Se, {
474
474
  className: "p-6 space-y-4",
475
- children: [/* @__PURE__ */ S("h2", {
475
+ children: [/* @__PURE__ */ x("h2", {
476
476
  className: "text-lg font-bold flex items-center gap-2",
477
- children: [/* @__PURE__ */ x(h, {
477
+ children: [/* @__PURE__ */ b(m, {
478
478
  size: 20,
479
479
  className: "text-primary"
480
- }), y("export.create.review.title", "Review Export")]
481
- }), /* @__PURE__ */ x("dl", {
480
+ }), v("export.create.review.title", "Review Export")]
481
+ }), /* @__PURE__ */ b("dl", {
482
482
  className: "space-y-3 text-sm",
483
483
  children: [
484
484
  {
485
- label: y("export.create.review.fields.name", "Name"),
486
- value: P
485
+ label: v("export.create.review.fields.name", "Name"),
486
+ value: F
487
487
  },
488
488
  {
489
- label: y("export.create.review.fields.scope", "Scope"),
490
- value: J(R)
489
+ label: v("export.create.review.fields.scope", "Scope"),
490
+ value: J(z)
491
491
  },
492
492
  {
493
- label: y("export.create.review.fields.entityTypes", "Entity Types"),
494
- value: M.join(", ")
493
+ label: v("export.create.review.fields.entityTypes", "Entity Types"),
494
+ value: N.join(", ")
495
495
  },
496
496
  {
497
- label: y("export.create.review.fields.format", "Format"),
498
- value: a(I)
497
+ label: v("export.create.review.fields.format", "Format"),
498
+ value: i(L)
499
499
  },
500
500
  {
501
- label: y("export.create.review.fields.archive", "Archive"),
502
- value: y("export.archive.zip", "ZIP")
501
+ label: v("export.create.review.fields.archive", "Archive"),
502
+ value: v("export.archive.zip", "ZIP")
503
503
  },
504
- ...V || H ? [{
505
- label: y("export.create.review.fields.dateRange", "Date Range"),
506
- value: [V || "—", H || "—"].join(" → ")
504
+ ...H || U ? [{
505
+ label: v("export.create.review.fields.dateRange", "Date Range"),
506
+ value: [H || "—", U || "—"].join(" → ")
507
507
  }] : [],
508
- ...z ? [{
509
- label: y("export.create.review.fields.template", "Template"),
510
- value: E.find((e) => e.id === z)?.name ?? z
508
+ ...B ? [{
509
+ label: v("export.create.review.fields.template", "Template"),
510
+ value: D.find((e) => e.id === B)?.name ?? B
511
511
  }] : []
512
- ].map(({ label: e, value: t }) => /* @__PURE__ */ S("div", {
512
+ ].map(({ label: e, value: t }) => /* @__PURE__ */ x("div", {
513
513
  className: "flex flex-col sm:flex-row sm:justify-between gap-1",
514
- children: [/* @__PURE__ */ x("dt", {
514
+ children: [/* @__PURE__ */ b("dt", {
515
515
  className: "text-text-secondary",
516
516
  children: e
517
- }), /* @__PURE__ */ x("dd", {
517
+ }), /* @__PURE__ */ b("dd", {
518
518
  className: "font-semibold sm:text-right break-words",
519
519
  children: t
520
520
  })]
@@ -522,40 +522,40 @@ function w() {
522
522
  })]
523
523
  })
524
524
  }),
525
- /* @__PURE__ */ S("div", {
525
+ /* @__PURE__ */ x("div", {
526
526
  className: "flex flex-col sm:flex-row gap-3 pt-2",
527
- children: [/* @__PURE__ */ x("button", {
527
+ children: [/* @__PURE__ */ b("button", {
528
528
  type: "button",
529
529
  onClick: Ne,
530
530
  className: "px-6 py-3 border-2 border-border-subtle/50 rounded-lg hover:bg-accent hover:border-primary/30 transition-all duration-200 font-medium",
531
- children: A === "entities" ? y("export.create.actions.cancel", "Cancel") : y("export.create.actions.back", "Back")
532
- }), A === "review" ? /* @__PURE__ */ S("button", {
531
+ children: j === "entities" ? v("export.create.actions.cancel", "Cancel") : v("export.create.actions.back", "Back")
532
+ }), j === "review" ? /* @__PURE__ */ x("button", {
533
533
  type: "button",
534
- onClick: Pe,
535
- disabled: w,
534
+ onClick: Fe,
535
+ disabled: T,
536
536
  className: "flex-1 inline-flex items-center justify-center gap-2 px-6 py-3 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-all duration-200 font-bold shadow-lg disabled:opacity-50 disabled:cursor-not-allowed",
537
- children: [w ? /* @__PURE__ */ x(oe, {
537
+ children: [T ? /* @__PURE__ */ b(se, {
538
538
  size: 18,
539
539
  className: "animate-spin"
540
- }) : /* @__PURE__ */ x(g, { size: 18 }), y("export.create.actions.startExport", "Start Export")]
541
- }) : /* @__PURE__ */ S("button", {
540
+ }) : /* @__PURE__ */ b(h, { size: 18 }), v("export.create.actions.startExport", "Start Export")]
541
+ }) : /* @__PURE__ */ x("button", {
542
542
  type: "button",
543
- onClick: q,
543
+ onClick: Pe,
544
544
  className: "flex-1 inline-flex items-center justify-center gap-2 px-6 py-3 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-all duration-200 font-bold shadow-lg",
545
- children: [y("export.create.actions.next", "Next"), /* @__PURE__ */ x(p, { size: 18 })]
545
+ children: [v("export.create.actions.next", "Next"), /* @__PURE__ */ b(f, { size: 18 })]
546
546
  })]
547
547
  }),
548
- /* @__PURE__ */ x(pe, {
548
+ /* @__PURE__ */ b(me, {
549
549
  open: Me,
550
- onOpenChange: G,
551
- children: /* @__PURE__ */ S(ge, { children: [/* @__PURE__ */ S(ye, { children: [/* @__PURE__ */ x(be, { children: y("export.create.quotaDialog.title", "Export Limit Reached") }), /* @__PURE__ */ x(_e, { children: y("export.create.quotaDialog.description", "You have reached your export limit for this month.") })] }), /* @__PURE__ */ S(ve, { children: [/* @__PURE__ */ x(he, { children: y("export.create.quotaDialog.dismiss", "Dismiss") }), /* @__PURE__ */ x(me, {
552
- onClick: () => ne(_),
553
- children: y("export.create.quotaDialog.viewBilling", "View Billing")
550
+ onOpenChange: K,
551
+ children: /* @__PURE__ */ x(_e, { children: [/* @__PURE__ */ x(be, { children: [/* @__PURE__ */ b(xe, { children: v("export.create.quotaDialog.title", "Export Limit Reached") }), /* @__PURE__ */ b(ve, { children: v("export.create.quotaDialog.description", "You have reached your export limit for this month.") })] }), /* @__PURE__ */ x(ye, { children: [/* @__PURE__ */ b(ge, { children: v("export.create.quotaDialog.dismiss", "Dismiss") }), /* @__PURE__ */ b(he, {
552
+ onClick: () => re(g),
553
+ children: v("export.create.quotaDialog.viewBilling", "View Billing")
554
554
  })] })] })
555
555
  })
556
556
  ]
557
557
  });
558
558
  }
559
- export { w as CreateExportPage };
559
+ export { T as CreateExportPage };
560
560
 
561
561
  //# sourceMappingURL=CreateExportPage.js.map