@burdenoff/microfe-export 2026.1107.2 → 2026.1113.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/dist/dev/main.d.ts +0 -2
  2. package/dist/export/ExportRoot.d.ts +0 -2
  3. package/dist/export/ExportRoot.js +50 -42
  4. package/dist/export/ExportRoot.js.map +1 -1
  5. package/dist/export/ExportRoutes.d.ts +8 -2
  6. package/dist/export/ExportRoutes.js +71 -53
  7. package/dist/export/ExportRoutes.js.map +1 -1
  8. package/dist/export/components/ConfirmDestructiveDialog.d.ts +21 -0
  9. package/dist/export/components/ConfirmDestructiveDialog.js +37 -0
  10. package/dist/export/components/ConfirmDestructiveDialog.js.map +1 -0
  11. package/dist/export/components/DownloadSections.d.ts +10 -0
  12. package/dist/export/components/DownloadSections.js +161 -0
  13. package/dist/export/components/DownloadSections.js.map +1 -0
  14. package/dist/export/components/DownloadStatus.d.ts +13 -0
  15. package/dist/export/components/DownloadStatus.js +36 -0
  16. package/dist/export/components/DownloadStatus.js.map +1 -0
  17. package/dist/export/components/DownloadsTabs.d.ts +5 -0
  18. package/dist/export/components/DownloadsTabs.js +25 -0
  19. package/dist/export/components/DownloadsTabs.js.map +1 -0
  20. package/dist/export/components/ExportProgressBar.d.ts +1 -2
  21. package/dist/export/components/ExportProgressBar.js +1 -2
  22. package/dist/export/components/ExportProgressBar.js.map +1 -1
  23. package/dist/export/components/ExportStatusBadge.d.ts +1 -3
  24. package/dist/export/components/ExportStatusBadge.js +7 -8
  25. package/dist/export/components/ExportStatusBadge.js.map +1 -1
  26. package/dist/export/components/PageLayout.d.ts +3 -5
  27. package/dist/export/components/PageLayout.js +1 -2
  28. package/dist/export/components/PageLayout.js.map +1 -1
  29. package/dist/export/constants/enums.d.ts +0 -2
  30. package/dist/export/constants/enums.js +1 -2
  31. package/dist/export/constants/enums.js.map +1 -1
  32. package/dist/export/constants/index.d.ts +0 -1
  33. package/dist/export/hooks/useEntityLabel.d.ts +7 -0
  34. package/dist/export/hooks/useEntityLabel.js +16 -0
  35. package/dist/export/hooks/useEntityLabel.js.map +1 -0
  36. package/dist/export/hooks/useExportQueries.d.ts +17 -32
  37. package/dist/export/hooks/useExportQueries.js +144 -145
  38. package/dist/export/hooks/useExportQueries.js.map +1 -1
  39. package/dist/export/hooks/useTr.d.ts +0 -2
  40. package/dist/export/hooks/useTr.js +1 -2
  41. package/dist/export/hooks/useTr.js.map +1 -1
  42. package/dist/export/index.d.ts +0 -1
  43. package/dist/export/index.js +5 -4
  44. package/dist/export/navigation-v2/NavigationV2.d.ts +7 -0
  45. package/dist/export/navigation-v2/NavigationV2.js +16 -0
  46. package/dist/export/navigation-v2/NavigationV2.js.map +1 -0
  47. package/dist/export/pages/CreateExportPage.d.ts +1 -2
  48. package/dist/export/pages/CreateExportPage.js +126 -125
  49. package/dist/export/pages/CreateExportPage.js.map +1 -1
  50. package/dist/export/pages/ExportDashboardPage.d.ts +1 -2
  51. package/dist/export/pages/ExportDashboardPage.js +17 -18
  52. package/dist/export/pages/ExportDashboardPage.js.map +1 -1
  53. package/dist/export/pages/ExportDetailPage.d.ts +1 -2
  54. package/dist/export/pages/ExportDetailPage.js +133 -127
  55. package/dist/export/pages/ExportDetailPage.js.map +1 -1
  56. package/dist/export/pages/ExportHistoryPage.d.ts +1 -2
  57. package/dist/export/pages/ExportHistoryPage.js +74 -69
  58. package/dist/export/pages/ExportHistoryPage.js.map +1 -1
  59. package/dist/export/pages/ExportLandingPage.d.ts +1 -2
  60. package/dist/export/pages/ExportLandingPage.js +1 -2
  61. package/dist/export/pages/ExportLandingPage.js.map +1 -1
  62. package/dist/export/pages/ExportTemplatesPage.d.ts +1 -2
  63. package/dist/export/pages/ExportTemplatesPage.js +219 -192
  64. package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
  65. package/dist/export/pages/TemplateDetailPage.d.ts +1 -2
  66. package/dist/export/pages/TemplateDetailPage.js +146 -125
  67. package/dist/export/pages/TemplateDetailPage.js.map +1 -1
  68. package/dist/export/pages/v2/DownloadDetailPage.d.ts +8 -0
  69. package/dist/export/pages/v2/DownloadDetailPage.js +176 -0
  70. package/dist/export/pages/v2/DownloadDetailPage.js.map +1 -0
  71. package/dist/export/pages/v2/DownloadsPage.d.ts +10 -0
  72. package/dist/export/pages/v2/DownloadsPage.js +401 -0
  73. package/dist/export/pages/v2/DownloadsPage.js.map +1 -0
  74. package/dist/export/pages/v2/NewDownloadPage.d.ts +8 -0
  75. package/dist/export/pages/v2/NewDownloadPage.js +440 -0
  76. package/dist/export/pages/v2/NewDownloadPage.js.map +1 -0
  77. package/dist/export/providers/ExportProvider.d.ts +0 -2
  78. package/dist/export/providers/ExportProvider.js +12 -16
  79. package/dist/export/providers/ExportProvider.js.map +1 -1
  80. package/dist/export/store/exportStore.d.ts +0 -2
  81. package/dist/export/store/exportStore.js +1 -2
  82. package/dist/export/store/exportStore.js.map +1 -1
  83. package/dist/export/types/index.d.ts +7 -1
  84. package/dist/export/utils/billing.d.ts +6 -0
  85. package/dist/export/utils/billing.js +7 -0
  86. package/dist/export/utils/billing.js.map +1 -0
  87. package/dist/export/utils/cn.d.ts +0 -2
  88. package/dist/export/utils/cn.js +2 -3
  89. package/dist/export/utils/cn.js.map +1 -1
  90. package/dist/export/utils/disabledModules.d.ts +0 -1
  91. package/dist/export/utils/disabledModules.js +3 -4
  92. package/dist/export/utils/disabledModules.js.map +1 -1
  93. package/dist/export/utils/downloadStatus.d.ts +15 -0
  94. package/dist/export/utils/downloadStatus.js +48 -0
  95. package/dist/export/utils/downloadStatus.js.map +1 -0
  96. package/dist/export/utils/entityLabels.d.ts +47 -0
  97. package/dist/export/utils/entityLabels.js +150 -0
  98. package/dist/export/utils/entityLabels.js.map +1 -0
  99. package/dist/export/utils/events.d.ts +0 -2
  100. package/dist/export/utils/events.js +1 -2
  101. package/dist/export/utils/events.js.map +1 -1
  102. package/dist/export/utils/exportAuthority.d.ts +0 -2
  103. package/dist/export/utils/exportAuthority.js +1 -2
  104. package/dist/export/utils/exportAuthority.js.map +1 -1
  105. package/dist/export/utils/formatBytes.d.ts +2 -0
  106. package/dist/export/utils/formatBytes.js +15 -0
  107. package/dist/export/utils/formatBytes.js.map +1 -0
  108. package/dist/export/utils/i18n.d.ts +0 -2
  109. package/dist/export/utils/i18n.js +1 -2
  110. package/dist/export/utils/i18n.js.map +1 -1
  111. package/dist/export/utils/newDownloadForm.d.ts +32 -0
  112. package/dist/export/utils/newDownloadForm.js +42 -0
  113. package/dist/export/utils/newDownloadForm.js.map +1 -0
  114. package/dist/export/utils/paths.d.ts +2 -0
  115. package/dist/export/utils/paths.js +7 -0
  116. package/dist/export/utils/paths.js.map +1 -0
  117. package/dist/generated/global-operations.d.ts +4 -2
  118. package/dist/generated/global-types.d.ts +2 -22
  119. package/dist/generated/wspace-operations.d.ts +226 -181
  120. package/dist/generated/wspace-operations.js +1 -2
  121. package/dist/generated/wspace-operations.js.map +1 -1
  122. package/dist/generated/wspace-types.d.ts +4 -24
  123. package/dist/generated/wspace-types.js +1 -2
  124. package/dist/generated/wspace-types.js.map +1 -1
  125. package/dist/index.d.ts +0 -1
  126. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
  127. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
  128. package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
  129. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
  130. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
  131. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
  132. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +15 -16
  133. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
  134. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
  135. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
  136. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
  137. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  138. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
  139. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
  140. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
  141. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
  142. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
  143. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
  144. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
  145. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
  146. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
  147. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  148. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
  149. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
  150. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
  151. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
  152. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
  153. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
  154. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
  155. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
  156. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
  157. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
  158. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
  159. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
  160. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
  161. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
  162. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
  163. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
  164. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
  165. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
  166. package/dist/node_modules/@apollo/client/version.js +2 -3
  167. package/dist/node_modules/@apollo/client/version.js.map +1 -1
  168. package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
  169. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
  170. package/dist/node_modules/@wry/trie/lib/index.js +2 -3
  171. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
  172. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  173. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  174. package/dist/node_modules/graphql-ws/dist/client.js +76 -69
  175. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
  176. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
  177. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
  178. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
  179. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
  180. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
  181. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
  182. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
  183. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
  184. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
  185. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
  186. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
  187. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
  188. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
  189. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
  190. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
  191. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
  192. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
  193. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
  194. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
  195. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
  196. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
  197. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
  198. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
  199. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
  200. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
  201. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
  202. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
  203. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
  204. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
  205. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
  206. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
  207. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
  208. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
  209. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
  210. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
  211. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
  212. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  213. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  214. package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
  215. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  216. package/dist/test/happydom.d.ts +1 -0
  217. package/dist/translations/en.d.ts +0 -1
  218. package/dist/translations/en.js +1 -2
  219. package/dist/translations/en.js.map +1 -1
  220. package/dist/utils/nativeBridge.d.ts +0 -1
  221. package/dist/utils/nativeBridge.js +1 -2
  222. package/package.json +63 -47
  223. package/dist/dev/main.d.ts.map +0 -1
  224. package/dist/export/ExportRoot.d.ts.map +0 -1
  225. package/dist/export/ExportRoutes.d.ts.map +0 -1
  226. package/dist/export/components/ExportProgressBar.d.ts.map +0 -1
  227. package/dist/export/components/ExportStatusBadge.d.ts.map +0 -1
  228. package/dist/export/components/PageLayout.d.ts.map +0 -1
  229. package/dist/export/constants/enums.d.ts.map +0 -1
  230. package/dist/export/constants/index.d.ts.map +0 -1
  231. package/dist/export/hooks/useExportQueries.d.ts.map +0 -1
  232. package/dist/export/hooks/useTr.d.ts.map +0 -1
  233. package/dist/export/index.d.ts.map +0 -1
  234. package/dist/export/pages/CreateExportPage.d.ts.map +0 -1
  235. package/dist/export/pages/ExportDashboardPage.d.ts.map +0 -1
  236. package/dist/export/pages/ExportDetailPage.d.ts.map +0 -1
  237. package/dist/export/pages/ExportHistoryPage.d.ts.map +0 -1
  238. package/dist/export/pages/ExportLandingPage.d.ts.map +0 -1
  239. package/dist/export/pages/ExportTemplatesPage.d.ts.map +0 -1
  240. package/dist/export/pages/TemplateDetailPage.d.ts.map +0 -1
  241. package/dist/export/providers/ExportProvider.d.ts.map +0 -1
  242. package/dist/export/store/exportStore.d.ts.map +0 -1
  243. package/dist/export/types/index.d.ts.map +0 -1
  244. package/dist/export/utils/cn.d.ts.map +0 -1
  245. package/dist/export/utils/disabledModules.d.ts.map +0 -1
  246. package/dist/export/utils/events.d.ts.map +0 -1
  247. package/dist/export/utils/exportAuthority.d.ts.map +0 -1
  248. package/dist/export/utils/i18n.d.ts.map +0 -1
  249. package/dist/generated/global-operations.d.ts.map +0 -1
  250. package/dist/generated/global-types.d.ts.map +0 -1
  251. package/dist/generated/wspace-operations.d.ts.map +0 -1
  252. package/dist/generated/wspace-types.d.ts.map +0 -1
  253. package/dist/index.d.ts.map +0 -1
  254. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
  255. package/dist/translations/en.d.ts.map +0 -1
  256. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,78 +1,80 @@
1
1
  import { useExport as e } from "../providers/ExportProvider.js";
2
- import { useTr as t } from "../hooks/useTr.js";
3
- import { useAvailableEntities as n, useCreateExportJob as r, useExportTemplates as i, useOrganizationExportPermission as ee } from "../hooks/useExportQueries.js";
4
- import { cn as a } from "../utils/cn.js";
5
- import { getFormatDisplayName as o } from "../constants/enums.js";
6
- import { PageLayout as s } from "../components/PageLayout.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";
7
9
  import { isExportEntityDisabled as c, isForeignProductEntity as l } from "../utils/disabledModules.js";
8
- import { useCallback as u, useEffect as te, useRef as ne, useState as d } from "react";
9
- import { ArrowLeft as re, ArrowRight as f, Building2 as p, CalendarRange as m, CheckCircle2 as h, Download as g, FileJson as _, FileSpreadsheet as v, Loader2 as ie, Lock as ae, Package as oe, User as y, Users as b } from "lucide-react";
10
- import { useAppShell as se, usePermission as ce } from "@burdenoff/fe-libs/shared/providers/shell";
11
- import { useSearchParams as le } from "react-router";
12
- import { isQuotaExhaustedError as ue } from "@burdenoff/fe-libs/shared/utils";
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";
13
15
  import { jsx as x, jsxs as S } from "react/jsx-runtime";
14
- import { AlertDialog as de, AlertDialogAction as C, AlertDialogCancel as fe, AlertDialogContent as pe, AlertDialogDescription as me, AlertDialogFooter as he, AlertDialogHeader as ge, AlertDialogTitle as _e, EmphasisPanel as ve, IllustratedEmptyState as ye, PagePurpose as be, ShowMore as xe } from "@burdenoff/fe-libs/ui";
15
- //#region src/export/pages/CreateExportPage.tsx
16
- var w = ["CSV", "JSON"], Se = {
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";
17
+ // src/export/pages/CreateExportPage.tsx
18
+ var C = ["CSV", "JSON"], Te = {
17
19
  CSV: v,
18
20
  JSON: _
19
- }, Ce = {
21
+ }, Ee = {
20
22
  INDIVIDUAL: y,
21
23
  WORKSPACE_ADMIN: b,
22
- ORG_ADMIN: p
24
+ ORG_ADMIN: m
23
25
  };
24
- function T() {
25
- let { basePath: p = "/", navigate: _, organizationId: v } = e(), y = t(), { createJob: b, isPending: T } = r(), { data: E } = n(), { data: D } = i(), [O] = le(), { productSlug: k } = se(), A = u((e) => !c(e) && !l(e, k), [k]), we = ce("export:workspace_admin"), Te = ee(v), [j, M] = d("entities"), [N, P] = d([]), [F, I] = d(""), [L, R] = d("CSV"), [z, Ee] = d("INDIVIDUAL"), [B, V] = d(O.get("templateId") ?? void 0), [H, De] = d(""), [U, Oe] = d(""), [W, G] = d(null), [ke, K] = d(!1), q = ne(null);
26
- te(() => {
27
- let e = O.get("templateId");
28
- if (!e || !D?.length || q.current === e) return;
29
- let t = D.find((t) => t.id === e);
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);
30
32
  if (!t) return;
31
- q.current = e, V(t.id), P((t.entityTypes ?? []).filter(A));
33
+ K.current = e, B(t.id), N((t.entityTypes ?? []).filter(k));
32
34
  let n = t.format?.toUpperCase();
33
- n && w.includes(n) && R(n), t.name && I(t.name);
35
+ n && C.includes(n) && L(n), t.name && F(t.name);
34
36
  }, [
35
- A,
36
- O,
37
- D
37
+ k,
38
+ D,
39
+ E
38
40
  ]);
39
- let Ae = () => {
40
- j === "options" ? M("entities") : j === "review" ? M("options") : _?.(p);
41
- }, je = () => {
42
- if (j === "entities") {
43
- if (N.length === 0) {
44
- G(y("export.create.errors.selectEntity", "Please select at least one entity type to export"));
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"));
45
47
  return;
46
48
  }
47
- G(null), M("options");
48
- } else if (j === "options") {
49
- if (!F.trim()) {
50
- G(y("export.create.errors.exportNameRequired", "Please provide a name for this export"));
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"));
51
53
  return;
52
54
  }
53
- G(null), M("review");
55
+ W(null), j("review");
54
56
  }
55
- }, Me = async () => {
57
+ }, Pe = async () => {
56
58
  try {
57
- G(null), await b({
58
- name: F,
59
- entityTypes: N,
60
- format: L,
61
- exportScope: z,
62
- organizationId: z === "ORG_ADMIN" ? v : void 0,
63
- templateId: B,
64
- dateRangeStart: H ? new Date(H).toISOString() : null,
65
- dateRangeEnd: U ? new Date(U).toISOString() : null
66
- }), _?.(p);
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);
67
69
  } catch (e) {
68
- if (ue(e)) {
69
- K(!0), G(y("export.create.errors.quotaReached", "You have reached your export limit for this month."));
70
+ if (fe(e)) {
71
+ G(!0), W(y("export.create.errors.quotaReached", "You have reached your export limit for this month."));
70
72
  return;
71
73
  }
72
- G(e instanceof Error ? e.message : y("export.create.errors.createFailed", "Failed to create export"));
74
+ W(e instanceof Error ? e.message : y("export.create.errors.createFailed", "Failed to create export"));
73
75
  }
74
- }, Ne = (e) => {
75
- A(e) && P((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
76
+ }, Fe = (e) => {
77
+ k(e) && N((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
76
78
  }, J = (e) => {
77
79
  switch (e) {
78
80
  case "INDIVIDUAL": return y("export.create.scope.individual.label", "My Data Only");
@@ -80,7 +82,7 @@ function T() {
80
82
  case "ORG_ADMIN": return y("export.create.scope.orgAdmin.label", "All Organization Data");
81
83
  default: return e;
82
84
  }
83
- }, Pe = (e) => {
85
+ }, Ie = (e) => {
84
86
  switch (e) {
85
87
  case "INDIVIDUAL": return y("export.create.scope.individual.description", "Export data you personally created across selected modules.");
86
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.");
@@ -120,21 +122,21 @@ function T() {
120
122
  label: y("export.create.entities.calendar.label", "Calendar Events"),
121
123
  description: y("export.create.entities.calendar.description", "Events and bookings")
122
124
  }
123
- }, X = E.filter((e) => e.enabled !== !1 && !l(e.entityType, k)), Z = X.filter((e) => !c(e.entityType)), Q = X.filter((e) => c(e.entityType)), $ = (e, t) => {
124
- let n = !t && N.includes(e.entityType);
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);
125
127
  return /* @__PURE__ */ S("button", {
126
128
  type: "button",
127
- onClick: () => Ne(e.entityType),
129
+ onClick: () => Fe(e.entityType),
128
130
  disabled: t,
129
131
  "aria-disabled": t,
130
132
  title: t ? y("export.create.select.unavailableHint", "Export for this product isn't available yet") : void 0,
131
- 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"),
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
134
  children: [
133
135
  /* @__PURE__ */ S("div", {
134
136
  className: "flex items-center justify-between mb-2 gap-2",
135
137
  children: [/* @__PURE__ */ x("h3", {
136
138
  className: "font-semibold",
137
- children: Y[e.entityType]?.label ?? e.displayName
139
+ children: Y[s[e.entityType] ?? e.entityType]?.label ?? e.displayName
138
140
  }), t ? /* @__PURE__ */ x("span", {
139
141
  className: "shrink-0 text-xs font-medium px-2 py-0.5 rounded-full bg-bg-sunken text-text-secondary",
140
142
  children: y("export.create.select.unavailable", "Unavailable")
@@ -145,7 +147,7 @@ function T() {
145
147
  }),
146
148
  /* @__PURE__ */ x("p", {
147
149
  className: "text-sm text-text-secondary",
148
- children: Y[e.entityType]?.description ?? e.description
150
+ children: Y[s[e.entityType] ?? e.entityType]?.description ?? e.description
149
151
  }),
150
152
  e.estimatedSize && /* @__PURE__ */ S("p", {
151
153
  className: "text-xs text-text-secondary mt-2",
@@ -154,7 +156,7 @@ function T() {
154
156
  ]
155
157
  }, e.entityType);
156
158
  };
157
- return /* @__PURE__ */ S(s, {
159
+ return /* @__PURE__ */ S(ee, {
158
160
  showHeader: !1,
159
161
  children: [
160
162
  /* @__PURE__ */ x("div", {
@@ -163,10 +165,10 @@ function T() {
163
165
  className: "relative z-10 flex items-center gap-4",
164
166
  children: [/* @__PURE__ */ x("button", {
165
167
  type: "button",
166
- onClick: () => _?.(p),
168
+ onClick: () => _?.(m),
167
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",
168
170
  "aria-label": y("export.create.actions.backToDashboard", "Back to export dashboard"),
169
- children: /* @__PURE__ */ x(re, { size: 20 })
171
+ children: /* @__PURE__ */ x(ie, { size: 20 })
170
172
  }), /* @__PURE__ */ S("div", {
171
173
  className: "flex items-center gap-3",
172
174
  children: [/* @__PURE__ */ x("div", {
@@ -182,7 +184,7 @@ function T() {
182
184
  })]
183
185
  })
184
186
  }),
185
- /* @__PURE__ */ x(be, {
187
+ /* @__PURE__ */ x(Ce, {
186
188
  icon: /* @__PURE__ */ x(g, { size: 16 }),
187
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.")
188
190
  }),
@@ -194,11 +196,11 @@ function T() {
194
196
  "review"
195
197
  ].map((e, t) => /* @__PURE__ */ S("div", {
196
198
  className: "flex items-center gap-2",
197
- children: [t > 0 && /* @__PURE__ */ x(f, {
199
+ children: [t > 0 && /* @__PURE__ */ x(p, {
198
200
  size: 18,
199
201
  className: "text-text-secondary"
200
202
  }), /* @__PURE__ */ S("div", {
201
- 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"),
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"),
202
204
  children: [/* @__PURE__ */ x("div", {
203
205
  className: "flex items-center justify-center size-6 rounded-full bg-bg-surface/20 font-bold",
204
206
  children: t + 1
@@ -209,11 +211,11 @@ function T() {
209
211
  })]
210
212
  }, e))
211
213
  }),
212
- W && /* @__PURE__ */ x("div", {
214
+ U && /* @__PURE__ */ x("div", {
213
215
  className: "border-2 border-border-default rounded-xl bg-status-error-bg-subtle p-4 text-status-error-text text-sm",
214
- children: W
216
+ children: U
215
217
  }),
216
- j === "entities" && /* @__PURE__ */ S("div", {
218
+ A === "entities" && /* @__PURE__ */ S("div", {
217
219
  className: "space-y-4",
218
220
  children: [
219
221
  /* @__PURE__ */ x("h2", {
@@ -224,7 +226,7 @@ function T() {
224
226
  className: "text-sm text-text-secondary",
225
227
  children: y("export.create.select.description", "Choose which entity types to include in your export.")
226
228
  }),
227
- X.length === 0 ? /* @__PURE__ */ x(ye, {
229
+ X.length === 0 ? /* @__PURE__ */ x(Se, {
228
230
  illustration: "empty-data",
229
231
  title: y("export.create.select.emptyTitle", "Nothing to export yet"),
230
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.")
@@ -253,7 +255,7 @@ function T() {
253
255
  })
254
256
  ]
255
257
  }),
256
- j === "options" && /* @__PURE__ */ x("div", {
258
+ A === "options" && /* @__PURE__ */ x("div", {
257
259
  className: "space-y-6",
258
260
  children: /* @__PURE__ */ S("div", {
259
261
  className: "border border-border-seam rounded-xl p-6 space-y-5 bg-bg-surface",
@@ -272,12 +274,12 @@ function T() {
272
274
  "WORKSPACE_ADMIN",
273
275
  "ORG_ADMIN"
274
276
  ].map((e) => {
275
- let t = e === "WORKSPACE_ADMIN" && !we || e === "ORG_ADMIN" && !Te, n = Ce[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");
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");
276
278
  return /* @__PURE__ */ S("button", {
277
279
  type: "button",
278
- onClick: () => !t && Ee(e),
280
+ onClick: () => !t && ke(e),
279
281
  disabled: t,
280
- 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"),
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"),
281
283
  title: t ? r : void 0,
282
284
  children: [
283
285
  /* @__PURE__ */ S("div", {
@@ -285,13 +287,13 @@ function T() {
285
287
  children: [
286
288
  /* @__PURE__ */ x(n, {
287
289
  size: 18,
288
- className: z === e ? "text-primary" : t ? "text-text-secondary/50" : "text-text-secondary"
290
+ className: R === e ? "text-primary" : t ? "text-text-secondary/50" : "text-text-secondary"
289
291
  }),
290
- z === e && /* @__PURE__ */ x(h, {
292
+ R === e && /* @__PURE__ */ x(h, {
291
293
  size: 16,
292
294
  className: "text-primary"
293
295
  }),
294
- t && /* @__PURE__ */ x(ae, {
296
+ t && /* @__PURE__ */ x(se, {
295
297
  size: 14,
296
298
  className: "text-text-secondary/50"
297
299
  })
@@ -303,7 +305,7 @@ function T() {
303
305
  }),
304
306
  /* @__PURE__ */ x("p", {
305
307
  className: "text-xs text-text-secondary mt-1",
306
- children: Pe(e)
308
+ children: Ie(e)
307
309
  })
308
310
  ]
309
311
  }, e);
@@ -324,8 +326,8 @@ function T() {
324
326
  type: "text",
325
327
  id: "exportName",
326
328
  "aria-label": y("export.create.options.name", "Export Name"),
327
- value: F,
328
- onChange: (e) => I(e.target.value),
329
+ value: P,
330
+ onChange: (e) => F(e.target.value),
329
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",
330
332
  placeholder: y("export.create.options.namePlaceholder", "e.g., Monthly User Export")
331
333
  })] }),
@@ -334,18 +336,18 @@ function T() {
334
336
  children: y("export.create.options.outputFormat", "Output Format")
335
337
  }), /* @__PURE__ */ x("div", {
336
338
  className: "grid grid-cols-2 gap-3",
337
- children: w.map((e) => {
338
- let t = Se[e];
339
+ children: C.map((e) => {
340
+ let t = Te[e];
339
341
  return /* @__PURE__ */ S("button", {
340
342
  type: "button",
341
- onClick: () => R(e),
342
- 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"),
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"),
343
345
  children: [/* @__PURE__ */ x(t, {
344
346
  size: 18,
345
- className: L === e ? "text-primary" : "text-text-secondary"
347
+ className: I === e ? "text-primary" : "text-text-secondary"
346
348
  }), /* @__PURE__ */ x("span", {
347
349
  className: "font-medium text-sm",
348
- children: o(e)
350
+ children: a(e)
349
351
  })]
350
352
  }, e);
351
353
  })
@@ -358,8 +360,8 @@ function T() {
358
360
  /* @__PURE__ */ x("div", {
359
361
  className: "flex gap-3",
360
362
  children: /* @__PURE__ */ S("div", {
361
- className: a("flex items-center gap-2 border-2 rounded-lg px-4 py-2 border-primary bg-action-primary-bg/5"),
362
- children: [/* @__PURE__ */ x(oe, {
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, {
363
365
  size: 16,
364
366
  className: "text-primary"
365
367
  }), /* @__PURE__ */ x("span", {
@@ -373,7 +375,7 @@ function T() {
373
375
  children: y("export.create.options.archiveDescription", "Exports are packaged as ZIP archives.")
374
376
  })
375
377
  ] }),
376
- /* @__PURE__ */ x(xe, {
378
+ /* @__PURE__ */ x(we, {
377
379
  collapsedHeight: 0,
378
380
  label: y("export.create.options.advancedToggle", "Date range & template"),
379
381
  children: /* @__PURE__ */ S("div", {
@@ -384,7 +386,7 @@ function T() {
384
386
  children: /* @__PURE__ */ S("span", {
385
387
  className: "inline-flex items-center gap-1.5",
386
388
  children: [
387
- /* @__PURE__ */ x(m, { size: 15 }),
389
+ /* @__PURE__ */ x(ae, { size: 15 }),
388
390
  y("export.create.options.dateRange", "Date Range"),
389
391
  " ",
390
392
  /* @__PURE__ */ x("span", {
@@ -404,8 +406,8 @@ function T() {
404
406
  type: "date",
405
407
  id: "dateFrom",
406
408
  "aria-label": y("export.create.options.dateFrom", "From"),
407
- value: H,
408
- onChange: (e) => De(e.target.value),
409
+ value: V,
410
+ onChange: (e) => Ae(e.target.value),
409
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"
410
412
  })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
411
413
  htmlFor: "dateTo",
@@ -415,9 +417,9 @@ function T() {
415
417
  type: "date",
416
418
  id: "dateTo",
417
419
  "aria-label": y("export.create.options.dateTo", "To"),
418
- value: U,
419
- min: H,
420
- onChange: (e) => Oe(e.target.value),
420
+ value: H,
421
+ min: V,
422
+ onChange: (e) => je(e.target.value),
421
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"
422
424
  })] })]
423
425
  }),
@@ -435,14 +437,14 @@ function T() {
435
437
  children: y("export.create.shared.optional", "(optional)")
436
438
  })
437
439
  ]
438
- }), D.length > 0 ? /* @__PURE__ */ S("select", {
439
- value: B ?? "",
440
- onChange: (e) => V(e.target.value || void 0),
440
+ }), E.length > 0 ? /* @__PURE__ */ S("select", {
441
+ value: z ?? "",
442
+ onChange: (e) => B(e.target.value || void 0),
441
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",
442
444
  children: [/* @__PURE__ */ x("option", {
443
445
  value: "",
444
446
  children: y("export.create.options.noTemplate", "No template")
445
- }), D.map((e) => /* @__PURE__ */ x("option", {
447
+ }), E.map((e) => /* @__PURE__ */ x("option", {
446
448
  value: e.id,
447
449
  children: e.name
448
450
  }, e.id))]
@@ -453,7 +455,7 @@ function T() {
453
455
  " ",
454
456
  /* @__PURE__ */ x("button", {
455
457
  type: "button",
456
- onClick: () => _?.(p + "/templates"),
458
+ onClick: () => _?.(m + "/templates"),
457
459
  className: "text-primary underline-offset-2 hover:underline",
458
460
  children: y("export.create.options.createTemplateLink", "Create one")
459
461
  }),
@@ -466,9 +468,9 @@ function T() {
466
468
  ]
467
469
  })
468
470
  }),
469
- j === "review" && /* @__PURE__ */ x("div", {
471
+ A === "review" && /* @__PURE__ */ x("div", {
470
472
  className: "space-y-6",
471
- children: /* @__PURE__ */ S(ve, {
473
+ children: /* @__PURE__ */ S(xe, {
472
474
  className: "p-6 space-y-4",
473
475
  children: [/* @__PURE__ */ S("h2", {
474
476
  className: "text-lg font-bold flex items-center gap-2",
@@ -481,31 +483,31 @@ function T() {
481
483
  children: [
482
484
  {
483
485
  label: y("export.create.review.fields.name", "Name"),
484
- value: F
486
+ value: P
485
487
  },
486
488
  {
487
489
  label: y("export.create.review.fields.scope", "Scope"),
488
- value: J(z)
490
+ value: J(R)
489
491
  },
490
492
  {
491
493
  label: y("export.create.review.fields.entityTypes", "Entity Types"),
492
- value: N.join(", ")
494
+ value: M.join(", ")
493
495
  },
494
496
  {
495
497
  label: y("export.create.review.fields.format", "Format"),
496
- value: o(L)
498
+ value: a(I)
497
499
  },
498
500
  {
499
501
  label: y("export.create.review.fields.archive", "Archive"),
500
502
  value: y("export.archive.zip", "ZIP")
501
503
  },
502
- ...H || U ? [{
504
+ ...V || H ? [{
503
505
  label: y("export.create.review.fields.dateRange", "Date Range"),
504
- value: [H || "—", U || "—"].join(" → ")
506
+ value: [V || "—", H || "—"].join(" → ")
505
507
  }] : [],
506
- ...B ? [{
508
+ ...z ? [{
507
509
  label: y("export.create.review.fields.template", "Template"),
508
- value: D.find((e) => e.id === B)?.name ?? B
510
+ value: E.find((e) => e.id === z)?.name ?? z
509
511
  }] : []
510
512
  ].map(({ label: e, value: t }) => /* @__PURE__ */ S("div", {
511
513
  className: "flex flex-col sm:flex-row sm:justify-between gap-1",
@@ -524,37 +526,36 @@ function T() {
524
526
  className: "flex flex-col sm:flex-row gap-3 pt-2",
525
527
  children: [/* @__PURE__ */ x("button", {
526
528
  type: "button",
527
- onClick: Ae,
529
+ onClick: Ne,
528
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",
529
- children: j === "entities" ? y("export.create.actions.cancel", "Cancel") : y("export.create.actions.back", "Back")
530
- }), j === "review" ? /* @__PURE__ */ S("button", {
531
+ children: A === "entities" ? y("export.create.actions.cancel", "Cancel") : y("export.create.actions.back", "Back")
532
+ }), A === "review" ? /* @__PURE__ */ S("button", {
531
533
  type: "button",
532
- onClick: Me,
533
- disabled: T,
534
+ onClick: Pe,
535
+ disabled: w,
534
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",
535
- children: [T ? /* @__PURE__ */ x(ie, {
537
+ children: [w ? /* @__PURE__ */ x(oe, {
536
538
  size: 18,
537
539
  className: "animate-spin"
538
540
  }) : /* @__PURE__ */ x(g, { size: 18 }), y("export.create.actions.startExport", "Start Export")]
539
541
  }) : /* @__PURE__ */ S("button", {
540
542
  type: "button",
541
- onClick: je,
543
+ onClick: q,
542
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",
543
- children: [y("export.create.actions.next", "Next"), /* @__PURE__ */ x(f, { size: 18 })]
545
+ children: [y("export.create.actions.next", "Next"), /* @__PURE__ */ x(p, { size: 18 })]
544
546
  })]
545
547
  }),
546
- /* @__PURE__ */ x(de, {
547
- open: ke,
548
- onOpenChange: K,
549
- children: /* @__PURE__ */ S(pe, { children: [/* @__PURE__ */ S(ge, { children: [/* @__PURE__ */ x(_e, { children: y("export.create.quotaDialog.title", "Export Limit Reached") }), /* @__PURE__ */ x(me, { children: y("export.create.quotaDialog.description", "You have reached your export limit for this month.") })] }), /* @__PURE__ */ S(he, { children: [/* @__PURE__ */ x(fe, { children: y("export.create.quotaDialog.dismiss", "Dismiss") }), /* @__PURE__ */ x(C, {
550
- onClick: () => window.location.assign("/billing"),
548
+ /* @__PURE__ */ x(pe, {
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(_),
551
553
  children: y("export.create.quotaDialog.viewBilling", "View Billing")
552
554
  })] })] })
553
555
  })
554
556
  ]
555
557
  });
556
558
  }
557
- //#endregion
558
- export { T as CreateExportPage };
559
+ export { w as CreateExportPage };
559
560
 
560
561
  //# sourceMappingURL=CreateExportPage.js.map