@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.
- package/dist/export/pages/CreateExportPage.js +269 -269
- package/dist/export/pages/CreateExportPage.js.map +1 -1
- package/dist/export/pages/ExportHistoryPage.js +93 -93
- package/dist/export/pages/ExportHistoryPage.js.map +1 -1
- package/dist/export/pages/ExportTemplatesPage.js +137 -137
- package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
- package/dist/export/pages/v2/DownloadsPage.js +151 -151
- package/dist/export/pages/v2/DownloadsPage.js.map +1 -1
- package/dist/export/pages/v2/NewDownloadPage.js +71 -71
- package/dist/export/pages/v2/NewDownloadPage.js.map +1 -1
- package/package.json +9 -9
|
@@ -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
|
|
3
|
-
import { getFormatDisplayName as
|
|
4
|
-
import { PageLayout as
|
|
5
|
-
import { useTr as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { openBilling as
|
|
8
|
-
import { LEGACY_ENTITY_COPY_KEY as
|
|
9
|
-
import { isExportEntityDisabled as
|
|
10
|
-
import { useCallback as
|
|
11
|
-
import { ArrowLeft as
|
|
12
|
-
import { useAppShell as
|
|
13
|
-
import { useSearchParams as
|
|
14
|
-
import { isQuotaExhaustedError as
|
|
15
|
-
import { jsx as
|
|
16
|
-
import { AlertDialog as
|
|
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"],
|
|
19
|
-
CSV:
|
|
20
|
-
JSON:
|
|
21
|
-
},
|
|
22
|
-
INDIVIDUAL:
|
|
23
|
-
WORKSPACE_ADMIN:
|
|
24
|
-
ORG_ADMIN:
|
|
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
|
|
27
|
-
let { basePath:
|
|
28
|
-
|
|
29
|
-
let e =
|
|
30
|
-
if (!e || !
|
|
31
|
-
let t =
|
|
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
|
-
|
|
33
|
+
q.current = e, V(t.id), P((t.entityTypes ?? []).filter(A));
|
|
34
34
|
let n = t.format?.toUpperCase();
|
|
35
|
-
n && C.includes(n) &&
|
|
35
|
+
n && C.includes(n) && R(n), t.name && I(t.name);
|
|
36
36
|
}, [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
A,
|
|
38
|
+
O,
|
|
39
|
+
D
|
|
40
40
|
]);
|
|
41
41
|
let Ne = () => {
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
if (
|
|
45
|
-
if (
|
|
46
|
-
|
|
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
|
-
|
|
50
|
-
} else if (
|
|
51
|
-
if (!
|
|
52
|
-
|
|
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
|
-
|
|
55
|
+
G(null), M("review");
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Fe = async () => {
|
|
58
58
|
try {
|
|
59
|
-
|
|
60
|
-
name:
|
|
61
|
-
entityTypes:
|
|
62
|
-
format:
|
|
63
|
-
exportScope:
|
|
64
|
-
organizationId:
|
|
65
|
-
templateId:
|
|
66
|
-
dateRangeStart:
|
|
67
|
-
dateRangeEnd:
|
|
68
|
-
}),
|
|
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 (
|
|
71
|
-
|
|
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
|
-
|
|
74
|
+
G(e instanceof Error ? e.message : v("export.create.errors.createFailed", "Failed to create export"));
|
|
75
75
|
}
|
|
76
|
-
},
|
|
77
|
-
|
|
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
|
|
81
|
-
case "WORKSPACE_ADMIN": return
|
|
82
|
-
case "ORG_ADMIN": return
|
|
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
|
-
},
|
|
85
|
+
}, Le = (e) => {
|
|
86
86
|
switch (e) {
|
|
87
|
-
case "INDIVIDUAL": return
|
|
88
|
-
case "WORKSPACE_ADMIN": return
|
|
89
|
-
case "ORG_ADMIN": return
|
|
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:
|
|
95
|
-
description:
|
|
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:
|
|
99
|
-
description:
|
|
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:
|
|
103
|
-
description:
|
|
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:
|
|
107
|
-
description:
|
|
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:
|
|
111
|
-
description:
|
|
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:
|
|
115
|
-
description:
|
|
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:
|
|
119
|
-
description:
|
|
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:
|
|
123
|
-
description:
|
|
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 =
|
|
126
|
-
let n = !t &&
|
|
127
|
-
return /* @__PURE__ */
|
|
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: () =>
|
|
129
|
+
onClick: () => Ie(e.entityType),
|
|
130
130
|
disabled: t,
|
|
131
131
|
"aria-disabled": t,
|
|
132
|
-
title: t ?
|
|
133
|
-
className:
|
|
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__ */
|
|
135
|
+
/* @__PURE__ */ x("div", {
|
|
136
136
|
className: "flex items-center justify-between mb-2 gap-2",
|
|
137
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ b("h3", {
|
|
138
138
|
className: "font-semibold",
|
|
139
|
-
children: Y[
|
|
140
|
-
}), t ? /* @__PURE__ */
|
|
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:
|
|
143
|
-
}) : n && /* @__PURE__ */
|
|
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__ */
|
|
148
|
+
/* @__PURE__ */ b("p", {
|
|
149
149
|
className: "text-sm text-text-secondary",
|
|
150
|
-
children: Y[
|
|
150
|
+
children: Y[o[e.entityType] ?? e.entityType]?.description ?? e.description
|
|
151
151
|
}),
|
|
152
|
-
e.estimatedSize && /* @__PURE__ */
|
|
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__ */
|
|
159
|
+
return /* @__PURE__ */ x(te, {
|
|
160
160
|
showHeader: !1,
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */
|
|
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__ */
|
|
164
|
+
children: /* @__PURE__ */ x("div", {
|
|
165
165
|
className: "relative z-10 flex items-center gap-4",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ b("button", {
|
|
167
167
|
type: "button",
|
|
168
|
-
onClick: () =>
|
|
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":
|
|
171
|
-
children: /* @__PURE__ */
|
|
172
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
174
|
+
children: [/* @__PURE__ */ b("div", {
|
|
175
175
|
className: "p-2.5 rounded-lg bg-action-primary-bg/10 backdrop-blur-sm",
|
|
176
|
-
children: /* @__PURE__ */
|
|
176
|
+
children: /* @__PURE__ */ b(h, {
|
|
177
177
|
size: 24,
|
|
178
178
|
className: "text-primary"
|
|
179
179
|
})
|
|
180
|
-
}), /* @__PURE__ */
|
|
180
|
+
}), /* @__PURE__ */ b("h1", {
|
|
181
181
|
className: "text-2xl sm:text-3xl font-bold",
|
|
182
|
-
children:
|
|
182
|
+
children: v("export.create.title", "New Export")
|
|
183
183
|
})]
|
|
184
184
|
})]
|
|
185
185
|
})
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
icon: /* @__PURE__ */
|
|
189
|
-
children:
|
|
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__ */
|
|
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__ */
|
|
197
|
+
].map((e, t) => /* @__PURE__ */ x("div", {
|
|
198
198
|
className: "flex items-center gap-2",
|
|
199
|
-
children: [t > 0 && /* @__PURE__ */
|
|
199
|
+
children: [t > 0 && /* @__PURE__ */ b(f, {
|
|
200
200
|
size: 18,
|
|
201
201
|
className: "text-text-secondary"
|
|
202
|
-
}), /* @__PURE__ */
|
|
203
|
-
className:
|
|
204
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
207
|
+
}), /* @__PURE__ */ b("span", {
|
|
208
208
|
className: "hidden sm:inline capitalize",
|
|
209
|
-
children: e === "entities" ?
|
|
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
|
-
|
|
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:
|
|
216
|
+
children: W
|
|
217
217
|
}),
|
|
218
|
-
|
|
218
|
+
j === "entities" && /* @__PURE__ */ x("div", {
|
|
219
219
|
className: "space-y-4",
|
|
220
220
|
children: [
|
|
221
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ b("h2", {
|
|
222
222
|
className: "text-lg font-bold",
|
|
223
|
-
children:
|
|
223
|
+
children: v("export.create.select.title", "Select data to export")
|
|
224
224
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ b("p", {
|
|
226
226
|
className: "text-sm text-text-secondary",
|
|
227
|
-
children:
|
|
227
|
+
children: v("export.create.select.description", "Choose which entity types to include in your export.")
|
|
228
228
|
}),
|
|
229
|
-
X.length === 0 ? /* @__PURE__ */
|
|
229
|
+
X.length === 0 ? /* @__PURE__ */ b(Ce, {
|
|
230
230
|
illustration: "empty-data",
|
|
231
|
-
title:
|
|
232
|
-
description:
|
|
233
|
-
}) : /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
238
|
+
}), Q.length > 0 && /* @__PURE__ */ x("div", {
|
|
239
239
|
className: "space-y-3",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ x("div", {
|
|
241
241
|
className: "flex items-center gap-3",
|
|
242
242
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
/* @__PURE__ */
|
|
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:
|
|
246
|
+
children: v("export.create.select.unavailableSection", "Not available yet")
|
|
247
247
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ b("div", { className: "h-px flex-1 bg-border/60" })
|
|
249
249
|
]
|
|
250
|
-
}), /* @__PURE__ */
|
|
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
|
-
|
|
258
|
+
j === "options" && /* @__PURE__ */ b("div", {
|
|
259
259
|
className: "space-y-6",
|
|
260
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
263
|
+
/* @__PURE__ */ b("h2", {
|
|
264
264
|
className: "text-lg font-bold",
|
|
265
|
-
children:
|
|
265
|
+
children: v("export.create.options.title", "Export Options")
|
|
266
266
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
268
268
|
className: "block text-sm font-semibold mb-2",
|
|
269
|
-
children:
|
|
270
|
-
}), /* @__PURE__ */
|
|
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 =
|
|
278
|
-
return /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
285
|
+
/* @__PURE__ */ x("div", {
|
|
286
286
|
className: "flex items-center justify-between mb-2",
|
|
287
287
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ b(n, {
|
|
289
289
|
size: 18,
|
|
290
|
-
className:
|
|
290
|
+
className: z === e ? "text-primary" : t ? "text-text-secondary/50" : "text-text-secondary"
|
|
291
291
|
}),
|
|
292
|
-
|
|
292
|
+
z === e && /* @__PURE__ */ b(m, {
|
|
293
293
|
size: 16,
|
|
294
294
|
className: "text-primary"
|
|
295
295
|
}),
|
|
296
|
-
t && /* @__PURE__ */
|
|
296
|
+
t && /* @__PURE__ */ b(ce, {
|
|
297
297
|
size: 14,
|
|
298
298
|
className: "text-text-secondary/50"
|
|
299
299
|
})
|
|
300
300
|
]
|
|
301
301
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ b("p", {
|
|
303
303
|
className: "font-semibold text-sm",
|
|
304
304
|
children: J(e)
|
|
305
305
|
}),
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ b("p", {
|
|
307
307
|
className: "text-xs text-text-secondary mt-1",
|
|
308
|
-
children:
|
|
308
|
+
children: Le(e)
|
|
309
309
|
})
|
|
310
310
|
]
|
|
311
311
|
}, e);
|
|
312
312
|
})
|
|
313
313
|
})] }),
|
|
314
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
318
|
+
v("export.create.options.name", "Export Name"),
|
|
319
319
|
" ",
|
|
320
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ b("span", {
|
|
321
321
|
className: "text-status-error-text",
|
|
322
322
|
children: "*"
|
|
323
323
|
})
|
|
324
324
|
]
|
|
325
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ b("input", {
|
|
326
326
|
type: "text",
|
|
327
327
|
id: "exportName",
|
|
328
|
-
"aria-label":
|
|
329
|
-
value:
|
|
330
|
-
onChange: (e) =>
|
|
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:
|
|
332
|
+
placeholder: v("export.create.options.namePlaceholder", "e.g., Monthly User Export")
|
|
333
333
|
})] }),
|
|
334
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
335
335
|
className: "block text-sm font-semibold mb-2",
|
|
336
|
-
children:
|
|
337
|
-
}), /* @__PURE__ */
|
|
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 =
|
|
341
|
-
return /* @__PURE__ */
|
|
340
|
+
let t = Ee[e];
|
|
341
|
+
return /* @__PURE__ */ x("button", {
|
|
342
342
|
type: "button",
|
|
343
|
-
onClick: () =>
|
|
344
|
-
className:
|
|
345
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
348
|
-
}), /* @__PURE__ */
|
|
347
|
+
className: L === e ? "text-primary" : "text-text-secondary"
|
|
348
|
+
}), /* @__PURE__ */ b("span", {
|
|
349
349
|
className: "font-medium text-sm",
|
|
350
|
-
children:
|
|
350
|
+
children: i(e)
|
|
351
351
|
})]
|
|
352
352
|
}, e);
|
|
353
353
|
})
|
|
354
354
|
})] }),
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ x("div", { children: [
|
|
356
|
+
/* @__PURE__ */ b("label", {
|
|
357
357
|
className: "block text-sm font-semibold mb-2",
|
|
358
|
-
children:
|
|
358
|
+
children: v("export.create.options.archiveFormat", "Archive Format")
|
|
359
359
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ b("div", {
|
|
361
361
|
className: "flex gap-3",
|
|
362
|
-
children: /* @__PURE__ */
|
|
363
|
-
className:
|
|
364
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
367
|
+
}), /* @__PURE__ */ b("span", {
|
|
368
368
|
className: "font-medium text-sm",
|
|
369
|
-
children:
|
|
369
|
+
children: v("export.archive.zip", "ZIP")
|
|
370
370
|
})]
|
|
371
371
|
})
|
|
372
372
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ b("p", {
|
|
374
374
|
className: "text-xs text-text-secondary mt-1.5",
|
|
375
|
-
children:
|
|
375
|
+
children: v("export.create.options.archiveDescription", "Exports are packaged as ZIP archives.")
|
|
376
376
|
})
|
|
377
377
|
] }),
|
|
378
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ b(Te, {
|
|
379
379
|
collapsedHeight: 0,
|
|
380
|
-
label:
|
|
381
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
384
|
-
/* @__PURE__ */
|
|
383
|
+
children: [/* @__PURE__ */ x("div", { children: [
|
|
384
|
+
/* @__PURE__ */ b("label", {
|
|
385
385
|
className: "block text-sm font-semibold mb-2",
|
|
386
|
-
children: /* @__PURE__ */
|
|
386
|
+
children: /* @__PURE__ */ x("span", {
|
|
387
387
|
className: "inline-flex items-center gap-1.5",
|
|
388
388
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
390
|
-
|
|
389
|
+
/* @__PURE__ */ b(oe, { size: 15 }),
|
|
390
|
+
v("export.create.options.dateRange", "Date Range"),
|
|
391
391
|
" ",
|
|
392
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ b("span", {
|
|
393
393
|
className: "font-normal text-text-secondary",
|
|
394
|
-
children:
|
|
394
|
+
children: v("export.create.shared.optional", "(optional)")
|
|
395
395
|
})
|
|
396
396
|
]
|
|
397
397
|
})
|
|
398
398
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ x("div", {
|
|
400
400
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
405
|
-
}), /* @__PURE__ */
|
|
404
|
+
children: v("export.create.options.dateFrom", "From")
|
|
405
|
+
}), /* @__PURE__ */ b("input", {
|
|
406
406
|
type: "date",
|
|
407
407
|
id: "dateFrom",
|
|
408
|
-
"aria-label":
|
|
409
|
-
value:
|
|
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__ */
|
|
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:
|
|
416
|
-
}), /* @__PURE__ */
|
|
415
|
+
children: v("export.create.options.dateTo", "To")
|
|
416
|
+
}), /* @__PURE__ */ b("input", {
|
|
417
417
|
type: "date",
|
|
418
418
|
id: "dateTo",
|
|
419
|
-
"aria-label":
|
|
420
|
-
value:
|
|
421
|
-
min:
|
|
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__ */
|
|
426
|
+
/* @__PURE__ */ b("p", {
|
|
427
427
|
className: "text-xs text-text-secondary mt-1.5",
|
|
428
|
-
children:
|
|
428
|
+
children: v("export.create.options.dateRangeDescription", "Leave blank to export all data regardless of date.")
|
|
429
429
|
})
|
|
430
|
-
] }), /* @__PURE__ */
|
|
430
|
+
] }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("label", {
|
|
431
431
|
className: "block text-sm font-semibold mb-2",
|
|
432
432
|
children: [
|
|
433
|
-
|
|
433
|
+
v("export.create.options.basedOnTemplate", "Based on Template"),
|
|
434
434
|
" ",
|
|
435
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ b("span", {
|
|
436
436
|
className: "font-normal text-text-secondary",
|
|
437
|
-
children:
|
|
437
|
+
children: v("export.create.shared.optional", "(optional)")
|
|
438
438
|
})
|
|
439
439
|
]
|
|
440
|
-
}),
|
|
441
|
-
value:
|
|
442
|
-
onChange: (e) =>
|
|
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__ */
|
|
444
|
+
children: [/* @__PURE__ */ b("option", {
|
|
445
445
|
value: "",
|
|
446
|
-
children:
|
|
447
|
-
}),
|
|
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__ */
|
|
451
|
+
}) : /* @__PURE__ */ x("p", {
|
|
452
452
|
className: "text-sm text-text-secondary",
|
|
453
453
|
children: [
|
|
454
|
-
|
|
454
|
+
v("export.create.options.noTemplates", "No templates yet."),
|
|
455
455
|
" ",
|
|
456
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ b("button", {
|
|
457
457
|
type: "button",
|
|
458
|
-
onClick: () =>
|
|
458
|
+
onClick: () => g?.(p + "/templates"),
|
|
459
459
|
className: "text-primary underline-offset-2 hover:underline",
|
|
460
|
-
children:
|
|
460
|
+
children: v("export.create.options.createTemplateLink", "Create one")
|
|
461
461
|
}),
|
|
462
462
|
" ",
|
|
463
|
-
|
|
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
|
-
|
|
471
|
+
j === "review" && /* @__PURE__ */ b("div", {
|
|
472
472
|
className: "space-y-6",
|
|
473
|
-
children: /* @__PURE__ */
|
|
473
|
+
children: /* @__PURE__ */ x(Se, {
|
|
474
474
|
className: "p-6 space-y-4",
|
|
475
|
-
children: [/* @__PURE__ */
|
|
475
|
+
children: [/* @__PURE__ */ x("h2", {
|
|
476
476
|
className: "text-lg font-bold flex items-center gap-2",
|
|
477
|
-
children: [/* @__PURE__ */
|
|
477
|
+
children: [/* @__PURE__ */ b(m, {
|
|
478
478
|
size: 20,
|
|
479
479
|
className: "text-primary"
|
|
480
|
-
}),
|
|
481
|
-
}), /* @__PURE__ */
|
|
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:
|
|
486
|
-
value:
|
|
485
|
+
label: v("export.create.review.fields.name", "Name"),
|
|
486
|
+
value: F
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
|
-
label:
|
|
490
|
-
value: J(
|
|
489
|
+
label: v("export.create.review.fields.scope", "Scope"),
|
|
490
|
+
value: J(z)
|
|
491
491
|
},
|
|
492
492
|
{
|
|
493
|
-
label:
|
|
494
|
-
value:
|
|
493
|
+
label: v("export.create.review.fields.entityTypes", "Entity Types"),
|
|
494
|
+
value: N.join(", ")
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
|
-
label:
|
|
498
|
-
value:
|
|
497
|
+
label: v("export.create.review.fields.format", "Format"),
|
|
498
|
+
value: i(L)
|
|
499
499
|
},
|
|
500
500
|
{
|
|
501
|
-
label:
|
|
502
|
-
value:
|
|
501
|
+
label: v("export.create.review.fields.archive", "Archive"),
|
|
502
|
+
value: v("export.archive.zip", "ZIP")
|
|
503
503
|
},
|
|
504
|
-
...
|
|
505
|
-
label:
|
|
506
|
-
value: [
|
|
504
|
+
...H || U ? [{
|
|
505
|
+
label: v("export.create.review.fields.dateRange", "Date Range"),
|
|
506
|
+
value: [H || "—", U || "—"].join(" → ")
|
|
507
507
|
}] : [],
|
|
508
|
-
...
|
|
509
|
-
label:
|
|
510
|
-
value:
|
|
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__ */
|
|
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__ */
|
|
514
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
515
515
|
className: "text-text-secondary",
|
|
516
516
|
children: e
|
|
517
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
525
|
+
/* @__PURE__ */ x("div", {
|
|
526
526
|
className: "flex flex-col sm:flex-row gap-3 pt-2",
|
|
527
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
532
|
-
}),
|
|
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:
|
|
535
|
-
disabled:
|
|
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: [
|
|
537
|
+
children: [T ? /* @__PURE__ */ b(se, {
|
|
538
538
|
size: 18,
|
|
539
539
|
className: "animate-spin"
|
|
540
|
-
}) : /* @__PURE__ */
|
|
541
|
-
}) : /* @__PURE__ */
|
|
540
|
+
}) : /* @__PURE__ */ b(h, { size: 18 }), v("export.create.actions.startExport", "Start Export")]
|
|
541
|
+
}) : /* @__PURE__ */ x("button", {
|
|
542
542
|
type: "button",
|
|
543
|
-
onClick:
|
|
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: [
|
|
545
|
+
children: [v("export.create.actions.next", "Next"), /* @__PURE__ */ b(f, { size: 18 })]
|
|
546
546
|
})]
|
|
547
547
|
}),
|
|
548
|
-
/* @__PURE__ */
|
|
548
|
+
/* @__PURE__ */ b(me, {
|
|
549
549
|
open: Me,
|
|
550
|
-
onOpenChange:
|
|
551
|
-
children: /* @__PURE__ */
|
|
552
|
-
onClick: () =>
|
|
553
|
-
children:
|
|
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 {
|
|
559
|
+
export { T as CreateExportPage };
|
|
560
560
|
|
|
561
561
|
//# sourceMappingURL=CreateExportPage.js.map
|