@questpie/admin 3.0.3 → 3.0.4

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 (249) hide show
  1. package/README.md +34 -5
  2. package/dist/client/blocks/block-renderer.d.mts +2 -2
  3. package/dist/client/blocks/block-renderer.mjs +4 -1
  4. package/dist/client/builder/types/action-types.d.mts +31 -3
  5. package/dist/client/builder/types/collection-types.d.mts +140 -0
  6. package/dist/client/builder/types/ui-config.d.mts +16 -2
  7. package/dist/client/builder/types/views.d.mts +57 -0
  8. package/dist/client/builder/types/widget-types.d.mts +5 -0
  9. package/dist/client/components/actions/action-button.mjs +137 -199
  10. package/dist/client/components/actions/action-dialog.mjs +198 -156
  11. package/dist/client/components/actions/confirmation-dialog.mjs +2 -2
  12. package/dist/client/components/actions/header-actions.mjs +52 -53
  13. package/dist/client/components/admin-link.d.mts +2 -2
  14. package/dist/client/components/auth/auth-loading.mjs +41 -18
  15. package/dist/client/components/blocks/block-fields-renderer.mjs +64 -28
  16. package/dist/client/components/blocks/block-insert-button.mjs +4 -4
  17. package/dist/client/components/blocks/block-item.mjs +2 -2
  18. package/dist/client/components/blocks/block-library-sidebar.mjs +2 -2
  19. package/dist/client/components/component-renderer.mjs +1 -1
  20. package/dist/client/components/fields/array-field.mjs +14 -14
  21. package/dist/client/components/fields/asset-preview-field.mjs +1 -1
  22. package/dist/client/components/fields/blocks-field/blocks-field.mjs +84 -104
  23. package/dist/client/components/fields/json-field.mjs +2 -2
  24. package/dist/client/components/fields/object-array-field.mjs +22 -22
  25. package/dist/client/components/fields/object-field.mjs +5 -5
  26. package/dist/client/components/fields/relation/displays/cards-display.mjs +16 -9
  27. package/dist/client/components/fields/relation/displays/chips-display.mjs +15 -12
  28. package/dist/client/components/fields/relation/displays/grid-display.mjs +15 -11
  29. package/dist/client/components/fields/relation/displays/list-display.mjs +33 -20
  30. package/dist/client/components/fields/relation/displays/table-display.mjs +62 -93
  31. package/dist/client/components/fields/relation/relation-items-display.mjs +1 -1
  32. package/dist/client/components/fields/relation-picker.mjs +7 -6
  33. package/dist/client/components/fields/relation-select.mjs +71 -47
  34. package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs +392 -82
  35. package/dist/client/components/fields/rich-text-editor/extensions.mjs +54 -23
  36. package/dist/client/components/fields/rich-text-editor/image-popover.mjs +24 -50
  37. package/dist/client/components/fields/rich-text-editor/image-upload.mjs +66 -0
  38. package/dist/client/components/fields/rich-text-editor/index.d.mts +38 -0
  39. package/dist/client/components/fields/rich-text-editor/index.mjs +637 -376
  40. package/dist/client/components/fields/rich-text-editor/link-utils.mjs +26 -0
  41. package/dist/client/components/fields/rich-text-editor/presets.d.mts +10 -0
  42. package/dist/client/components/fields/rich-text-editor/slash-commands.mjs +27 -6
  43. package/dist/client/components/fields/rich-text-editor/toolbar.mjs +464 -346
  44. package/dist/client/components/fields/rich-text-editor/types.d.mts +77 -0
  45. package/dist/client/components/fields/upload-field.mjs +45 -49
  46. package/dist/client/components/filter-builder/columns-tab.mjs +69 -62
  47. package/dist/client/components/filter-builder/filter-builder-sheet.mjs +473 -308
  48. package/dist/client/components/filter-builder/filters-tab.mjs +109 -82
  49. package/dist/client/components/filter-builder/saved-views-tab.mjs +300 -198
  50. package/dist/client/components/history-sidebar.mjs +850 -340
  51. package/dist/client/components/layout/field-layout-renderer.mjs +6 -5
  52. package/dist/client/components/locale-switcher.mjs +8 -8
  53. package/dist/client/components/media/media-grid.mjs +12 -9
  54. package/dist/client/components/media/media-picker-dialog.mjs +242 -230
  55. package/dist/client/components/preview/live-preview-mode.mjs +1 -1
  56. package/dist/client/components/primitives/asset-preview.mjs +37 -22
  57. package/dist/client/components/primitives/date-input.mjs +212 -249
  58. package/dist/client/components/primitives/dropzone.mjs +192 -159
  59. package/dist/client/components/primitives/field-select-control.mjs +93 -0
  60. package/dist/client/components/primitives/select-multi.mjs +251 -230
  61. package/dist/client/components/primitives/select-single.mjs +345 -290
  62. package/dist/client/components/primitives/time-input.mjs +2 -2
  63. package/dist/client/components/sheets/resource-sheet.mjs +2 -0
  64. package/dist/client/components/ui/accordion.mjs +4 -4
  65. package/dist/client/components/ui/alert.mjs +3 -3
  66. package/dist/client/components/ui/badge.mjs +4 -4
  67. package/dist/client/components/ui/button.mjs +47 -37
  68. package/dist/client/components/ui/card.mjs +2 -2
  69. package/dist/client/components/ui/checkbox.mjs +1 -1
  70. package/dist/client/components/ui/command.mjs +5 -5
  71. package/dist/client/components/ui/dialog.mjs +3 -3
  72. package/dist/client/components/ui/drawer.mjs +1 -1
  73. package/dist/client/components/ui/dropdown-menu.mjs +157 -15
  74. package/dist/client/components/ui/empty-state.mjs +88 -59
  75. package/dist/client/components/ui/field.mjs +2 -2
  76. package/dist/client/components/ui/input-group.mjs +3 -3
  77. package/dist/client/components/ui/input.mjs +1 -1
  78. package/dist/client/components/ui/kbd.mjs +1 -1
  79. package/dist/client/components/ui/label.mjs +1 -1
  80. package/dist/client/components/ui/popover.mjs +19 -11
  81. package/dist/client/components/ui/scroll-fade.mjs +170 -0
  82. package/dist/client/components/ui/search-input.mjs +1 -1
  83. package/dist/client/components/ui/select.mjs +129 -27
  84. package/dist/client/components/ui/sheet.mjs +54 -34
  85. package/dist/client/components/ui/sidebar.mjs +15 -14
  86. package/dist/client/components/ui/skeleton.mjs +28 -12
  87. package/dist/client/components/ui/switch.mjs +2 -2
  88. package/dist/client/components/ui/table.mjs +82 -74
  89. package/dist/client/components/ui/tabs.mjs +26 -31
  90. package/dist/client/components/ui/textarea.mjs +1 -1
  91. package/dist/client/components/ui/tooltip.mjs +1 -1
  92. package/dist/client/components/widgets/chart-widget.mjs +134 -96
  93. package/dist/client/components/widgets/progress-widget.mjs +59 -34
  94. package/dist/client/components/widgets/quick-actions-widget.mjs +184 -113
  95. package/dist/client/components/widgets/recent-items-widget.mjs +144 -102
  96. package/dist/client/components/widgets/stats-widget.mjs +91 -72
  97. package/dist/client/components/widgets/table-widget.mjs +159 -246
  98. package/dist/client/components/widgets/timeline-widget.mjs +66 -43
  99. package/dist/client/components/widgets/value-widget.mjs +261 -152
  100. package/dist/client/components/widgets/widget-empty-state.mjs +88 -0
  101. package/dist/client/components/widgets/widget-skeletons.mjs +53 -20
  102. package/dist/client/contexts/focus-context.d.mts +2 -2
  103. package/dist/client/hooks/use-action.mjs +63 -55
  104. package/dist/client/hooks/use-audit-history.mjs +1 -65
  105. package/dist/client/hooks/use-collection-validation.mjs +36 -23
  106. package/dist/client/hooks/use-collection.mjs +96 -1
  107. package/dist/client/hooks/use-saved-views.mjs +70 -49
  108. package/dist/client/hooks/use-server-actions.mjs +59 -40
  109. package/dist/client/hooks/use-server-validation.mjs +156 -41
  110. package/dist/client/hooks/use-server-widget-data.mjs +1 -1
  111. package/dist/client/hooks/use-setup-status.d.mts +3 -3
  112. package/dist/client/hooks/use-setup-status.mjs +2 -2
  113. package/dist/client/hooks/use-transition-stage.mjs +2 -10
  114. package/dist/client/hooks/use-validation-error-map.mjs +31 -13
  115. package/dist/client/hooks/use-view-state.mjs +238 -174
  116. package/dist/client/i18n/date-locale.mjs +33 -0
  117. package/dist/client/i18n/hooks.mjs +17 -1
  118. package/dist/client/lib/utils.mjs +3 -2
  119. package/dist/client/preview/block-scope-context.d.mts +2 -2
  120. package/dist/client/preview/preview-banner.d.mts +2 -2
  121. package/dist/client/preview/preview-field.d.mts +4 -4
  122. package/dist/client/preview/preview-field.mjs +2 -2
  123. package/dist/client/runtime/provider.mjs +8 -1
  124. package/dist/client/runtime/translations-provider.mjs +1 -1
  125. package/dist/client/scope/picker.d.mts +2 -2
  126. package/dist/client/scope/provider.d.mts +2 -2
  127. package/dist/client/styles/base.css +1022 -0
  128. package/dist/client/styles/index.css +3 -589
  129. package/dist/client/utils/auto-expand-fields.mjs +4 -2
  130. package/dist/client/utils/keyboard-shortcuts.mjs +26 -0
  131. package/dist/client/utils/use-lazy-component.mjs +80 -0
  132. package/dist/client/views/auth/auth-layout.d.mts +18 -11
  133. package/dist/client/views/auth/auth-layout.mjs +291 -80
  134. package/dist/client/views/auth/forgot-password-form.d.mts +2 -2
  135. package/dist/client/views/auth/forgot-password-form.mjs +2 -2
  136. package/dist/client/views/auth/login-form.d.mts +2 -2
  137. package/dist/client/views/auth/login-form.mjs +1 -1
  138. package/dist/client/views/auth/reset-password-form.d.mts +2 -2
  139. package/dist/client/views/auth/reset-password-form.mjs +2 -2
  140. package/dist/client/views/auth/setup-form.d.mts +2 -2
  141. package/dist/client/views/collection/auto-form-fields.mjs +11 -9
  142. package/dist/client/views/collection/bulk-action-toolbar.mjs +173 -138
  143. package/dist/client/views/collection/cells/complex-cells.mjs +22 -22
  144. package/dist/client/views/collection/cells/primitive-cells.mjs +1 -1
  145. package/dist/client/views/collection/cells/relation-cells.mjs +147 -129
  146. package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs +224 -278
  147. package/dist/client/views/collection/cells/shared/relation-chip.mjs +64 -36
  148. package/dist/client/views/collection/cells/upload-cells.mjs +199 -9
  149. package/dist/client/views/collection/columns/build-columns.mjs +29 -9
  150. package/dist/client/views/collection/columns/column-defaults.mjs +2 -2
  151. package/dist/client/views/collection/field-renderer.mjs +50 -89
  152. package/dist/client/views/collection/form-view.mjs +237 -227
  153. package/dist/client/views/collection/table-view.mjs +1162 -229
  154. package/dist/client/views/collection/view-skeletons.mjs +222 -79
  155. package/dist/client/views/common/global-search.mjs +29 -18
  156. package/dist/client/views/dashboard/dashboard-grid.mjs +678 -501
  157. package/dist/client/views/dashboard/dashboard-widget.mjs +6 -3
  158. package/dist/client/views/dashboard/widget-card.mjs +23 -14
  159. package/dist/client/views/globals/global-form-view.mjs +634 -589
  160. package/dist/client/views/layout/admin-layout-provider.mjs +67 -70
  161. package/dist/client/views/layout/admin-layout.d.mts +3 -6
  162. package/dist/client/views/layout/admin-layout.mjs +149 -172
  163. package/dist/client/views/layout/admin-router.mjs +747 -544
  164. package/dist/client/views/layout/admin-sidebar.d.mts +38 -1
  165. package/dist/client/views/layout/admin-sidebar.mjs +751 -591
  166. package/dist/client/views/layout/admin-theme.d.mts +10 -0
  167. package/dist/client/views/layout/admin-theme.mjs +84 -0
  168. package/dist/client/views/layout/admin-view-layout.mjs +161 -0
  169. package/dist/client/views/pages/accept-invite-page.d.mts +2 -2
  170. package/dist/client/views/pages/accept-invite-page.mjs +49 -26
  171. package/dist/client/views/pages/dashboard-page.d.mts +2 -2
  172. package/dist/client/views/pages/forgot-password-page.d.mts +2 -2
  173. package/dist/client/views/pages/forgot-password-page.mjs +2 -19
  174. package/dist/client/views/pages/invite-page.d.mts +2 -2
  175. package/dist/client/views/pages/invite-page.mjs +2 -19
  176. package/dist/client/views/pages/login-page.d.mts +1 -1
  177. package/dist/client/views/pages/login-page.mjs +4 -21
  178. package/dist/client/views/pages/reset-password-page.d.mts +2 -2
  179. package/dist/client/views/pages/reset-password-page.mjs +3 -20
  180. package/dist/client/views/pages/setup-page.d.mts +2 -2
  181. package/dist/client/views/pages/setup-page.mjs +3 -20
  182. package/dist/client.d.mts +6 -2
  183. package/dist/client.mjs +2 -1
  184. package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
  185. package/dist/index.d.mts +6 -2
  186. package/dist/index.mjs +2 -1
  187. package/dist/server/augmentation/dashboard.d.mts +67 -3
  188. package/dist/server/augmentation/form-layout.d.mts +21 -0
  189. package/dist/server/augmentation/index.d.mts +1 -1
  190. package/dist/server/codegen/admin-client-template.mjs +4 -0
  191. package/dist/server/fields/blocks.d.mts +1 -1
  192. package/dist/server/fields/blocks.mjs +12 -0
  193. package/dist/server/fields/rich-text.d.mts +1 -1
  194. package/dist/server/fields/rich-text.mjs +8 -0
  195. package/dist/server/i18n/index.mjs +17 -1
  196. package/dist/server/i18n/messages/cs.mjs +23 -0
  197. package/dist/server/i18n/messages/de.mjs +23 -0
  198. package/dist/server/i18n/messages/en.mjs +64 -1
  199. package/dist/server/i18n/messages/es.mjs +23 -0
  200. package/dist/server/i18n/messages/fr.mjs +23 -0
  201. package/dist/server/i18n/messages/pl.mjs +23 -0
  202. package/dist/server/i18n/messages/pt.mjs +23 -0
  203. package/dist/server/i18n/messages/sk.mjs +83 -1
  204. package/dist/server/modules/admin/block/introspection.mjs +4 -1
  205. package/dist/server/modules/admin/block/prefetch.mjs +12 -2
  206. package/dist/server/modules/admin/collections/account.d.mts +50 -50
  207. package/dist/server/modules/admin/collections/admin-locks.d.mts +54 -54
  208. package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
  209. package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
  210. package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
  211. package/dist/server/modules/admin/collections/assets.d.mts +20 -20
  212. package/dist/server/modules/admin/collections/assets.mjs +0 -1
  213. package/dist/server/modules/admin/collections/session.d.mts +42 -42
  214. package/dist/server/modules/admin/collections/user.d.mts +12 -0
  215. package/dist/server/modules/admin/collections/user.mjs +40 -9
  216. package/dist/server/modules/admin/collections/verification.d.mts +2 -2
  217. package/dist/server/modules/admin/dto/admin-config.dto.mjs +2 -0
  218. package/dist/server/modules/admin/factories.mjs +7 -18
  219. package/dist/server/modules/admin/index.d.mts +1 -1
  220. package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
  221. package/dist/server/modules/admin/routes/admin-config.mjs +34 -16
  222. package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
  223. package/dist/server/modules/admin/routes/execute-action.mjs +33 -0
  224. package/dist/server/modules/admin/routes/locales.d.mts +2 -2
  225. package/dist/server/modules/admin/routes/preview.d.mts +11 -11
  226. package/dist/server/modules/admin/routes/reactive.d.mts +9 -9
  227. package/dist/server/modules/admin/routes/setup.d.mts +10 -10
  228. package/dist/server/modules/admin/routes/setup.mjs +7 -7
  229. package/dist/server/modules/admin/routes/translations.d.mts +4 -4
  230. package/dist/server/modules/admin/routes/translations.mjs +5 -1
  231. package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
  232. package/dist/server/modules/admin-preferences/collections/admin-preferences.mjs +1 -1
  233. package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +27 -27
  234. package/dist/server/modules/audit/.generated/module.d.mts +1 -1
  235. package/dist/server/modules/audit/.generated/module.mjs +1 -1
  236. package/dist/server/modules/audit/collections/audit-log.d.mts +2 -2
  237. package/dist/server/modules/audit/collections/audit-log.mjs +1 -1
  238. package/dist/server/modules/audit/config/app.mjs +99 -42
  239. package/dist/server/modules/audit/jobs/audit-cleanup.mjs +1 -1
  240. package/dist/server/plugin.mjs +4 -2
  241. package/dist/server/proxy-factories.d.mts +4 -3
  242. package/dist/server/proxy-factories.mjs +34 -8
  243. package/dist/shared/types/saved-views.types.d.mts +2 -0
  244. package/package.json +6 -4
  245. package/dist/client/components/fields/rich-text-editor/link-popover.mjs +0 -85
  246. package/dist/client/components/ui/spinner.mjs +0 -52
  247. package/dist/client/components/ui/toolbar.mjs +0 -136
  248. package/dist/client/contexts/breadcrumb-context.mjs +0 -60
  249. package/dist/client/views/layout/admin-topbar.mjs +0 -236
@@ -7,18 +7,22 @@ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, D
7
7
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../components/ui/dropdown-menu.mjs";
8
8
  import { LocaleSwitcher } from "../../components/locale-switcher.mjs";
9
9
  import { Label } from "../../components/ui/label.mjs";
10
+ import { Skeleton } from "../../components/ui/skeleton.mjs";
10
11
  import { Checkbox } from "../../components/ui/checkbox.mjs";
11
12
  import { DateTimeInput } from "../../components/primitives/date-input.mjs";
12
13
  import { ConfirmationDialog } from "../../components/actions/confirmation-dialog.mjs";
13
14
  import { useGlobalFields } from "../../hooks/use-global-fields.mjs";
14
15
  import { AutoFormFields } from "../collection/auto-form-fields.mjs";
16
+ import { EmptyState } from "../../components/ui/empty-state.mjs";
15
17
  import { HistorySidebar } from "../../components/history-sidebar.mjs";
16
18
  import { useGlobal, useGlobalRevertVersion, useGlobalUpdate, useGlobalVersions } from "../../hooks/use-global.mjs";
17
19
  import { useGlobalServerValidation } from "../../hooks/use-server-validation.mjs";
18
20
  import { useSidebarSearchParam } from "../../hooks/use-sidebar-search-param.mjs";
19
- import { useGlobalAuditHistory } from "../../hooks/use-audit-history.mjs";
20
21
  import { useReactiveFields } from "../../hooks/use-reactive-fields.mjs";
21
22
  import { useTransitionStage } from "../../hooks/use-transition-stage.mjs";
23
+ import { shouldHandleAdminShortcut } from "../../utils/keyboard-shortcuts.mjs";
24
+ import { AdminViewHeader } from "../layout/admin-view-layout.mjs";
25
+ import { useGlobalAuditHistory } from "../../hooks/use-audit-history.mjs";
22
26
  import { c } from "react/compiler-runtime";
23
27
  import { Icon } from "@iconify/react";
24
28
  import * as React from "react";
@@ -44,11 +48,86 @@ function extractReactiveConfigs(schema) {
44
48
  for (const [fieldName, fieldDef] of Object.entries(schema.fields)) if (fieldDef.reactive) configs[fieldName] = fieldDef.reactive;
45
49
  return configs;
46
50
  }
51
+ function GlobalFormViewSkeleton() {
52
+ const $ = c(5);
53
+ let t0;
54
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
55
+ t0 = /* @__PURE__ */ jsx("span", {
56
+ className: "sr-only",
57
+ children: "Loading global form"
58
+ });
59
+ $[0] = t0;
60
+ } else t0 = $[0];
61
+ let t1;
62
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
63
+ t1 = /* @__PURE__ */ jsx(AdminViewHeader, {
64
+ title: /* @__PURE__ */ jsx(Skeleton, {
65
+ variant: "text",
66
+ className: "h-7 w-48"
67
+ }),
68
+ meta: /* @__PURE__ */ jsx(Skeleton, {
69
+ variant: "text",
70
+ className: "h-3 w-36"
71
+ }),
72
+ actions: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Skeleton, { className: "size-8" }), /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20" })] })
73
+ });
74
+ $[1] = t1;
75
+ } else t1 = $[1];
76
+ let t2;
77
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
78
+ t2 = /* @__PURE__ */ jsxs("div", {
79
+ className: "space-y-2",
80
+ children: [/* @__PURE__ */ jsx(Skeleton, {
81
+ variant: "text",
82
+ className: "h-4 w-24"
83
+ }), /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })]
84
+ });
85
+ $[2] = t2;
86
+ } else t2 = $[2];
87
+ let t3;
88
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
89
+ t3 = /* @__PURE__ */ jsxs("div", {
90
+ className: "space-y-2",
91
+ children: [/* @__PURE__ */ jsx(Skeleton, {
92
+ variant: "text",
93
+ className: "h-4 w-32"
94
+ }), /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })]
95
+ });
96
+ $[3] = t3;
97
+ } else t3 = $[3];
98
+ let t4;
99
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
100
+ t4 = /* @__PURE__ */ jsxs("div", {
101
+ className: "qa-global-form w-full space-y-4",
102
+ "aria-busy": "true",
103
+ children: [
104
+ t0,
105
+ t1,
106
+ /* @__PURE__ */ jsxs("div", {
107
+ className: "space-y-4",
108
+ children: [
109
+ t2,
110
+ t3,
111
+ /* @__PURE__ */ jsxs("div", {
112
+ className: "space-y-2",
113
+ children: [/* @__PURE__ */ jsx(Skeleton, {
114
+ variant: "text",
115
+ className: "h-4 w-28"
116
+ }), /* @__PURE__ */ jsx(Skeleton, { className: "h-32 w-full" })]
117
+ })
118
+ ]
119
+ })
120
+ ]
121
+ });
122
+ $[4] = t4;
123
+ } else t4 = $[4];
124
+ return t4;
125
+ }
47
126
  /**
48
127
  * GlobalFormView - Default form-based edit view for globals
49
128
  */
50
129
  function GlobalFormView(t0) {
51
- const $ = c(307);
130
+ const $ = c(302);
52
131
  const { global: globalName, config, viewConfig, registry, showMeta: t1, headerActions, onSuccess, onError } = t0;
53
132
  const showMeta = t1 === void 0 ? true : t1;
54
133
  const { t } = useTranslation();
@@ -467,7 +546,10 @@ function GlobalFormView(t0) {
467
546
  if ($[84] !== form || $[85] !== onSubmit) {
468
547
  t36 = () => {
469
548
  const handleKeyDown = (e) => {
470
- if ((e.metaKey || e.ctrlKey) && e.key === "s") {
549
+ if (shouldHandleAdminShortcut(e, {
550
+ allowEditableTarget: true,
551
+ key: "s"
552
+ })) {
471
553
  e.preventDefault();
472
554
  form.handleSubmit(onSubmit)();
473
555
  }
@@ -510,117 +592,95 @@ function GlobalFormView(t0) {
510
592
  const formatDate = _temp;
511
593
  if (dataError) {
512
594
  let t39$1;
513
- if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
514
- t39$1 = /* @__PURE__ */ jsx(Icon, {
515
- icon: "ph:warning-circle",
516
- className: "text-destructive size-8"
517
- });
518
- $[94] = t39$1;
519
- } else t39$1 = $[94];
520
- let t40$1;
521
- if ($[95] !== dataError || $[96] !== t) {
522
- t40$1 = dataError instanceof Error ? dataError.message : t("errors.failedToLoad");
523
- $[95] = dataError;
524
- $[96] = t;
525
- $[97] = t40$1;
526
- } else t40$1 = $[97];
595
+ if ($[94] !== t) {
596
+ t39$1 = t("error.failedToLoad");
597
+ $[94] = t;
598
+ $[95] = t39$1;
599
+ } else t39$1 = $[95];
600
+ const t40$1 = dataError instanceof Error ? dataError.message : void 0;
527
601
  let t41$1;
528
- if ($[98] !== t40$1) {
529
- t41$1 = /* @__PURE__ */ jsx("p", {
530
- className: "text-sm",
531
- children: t40$1
602
+ if ($[96] === Symbol.for("react.memo_cache_sentinel")) {
603
+ t41$1 = /* @__PURE__ */ jsx(Icon, {
604
+ icon: "ph:arrow-clockwise",
605
+ className: "size-3.5"
532
606
  });
533
- $[98] = t40$1;
534
- $[99] = t41$1;
535
- } else t41$1 = $[99];
607
+ $[96] = t41$1;
608
+ } else t41$1 = $[96];
536
609
  let t42$1;
537
- if ($[100] !== t) {
610
+ if ($[97] !== t) {
538
611
  t42$1 = t("common.retry");
539
- $[100] = t;
540
- $[101] = t42$1;
541
- } else t42$1 = $[101];
612
+ $[97] = t;
613
+ $[98] = t42$1;
614
+ } else t42$1 = $[98];
542
615
  let t43$1;
543
- if ($[102] !== t42$1) {
544
- t43$1 = /* @__PURE__ */ jsx("button", {
545
- type: "button",
546
- className: "hover:text-foreground text-sm underline",
616
+ if ($[99] !== t42$1) {
617
+ t43$1 = /* @__PURE__ */ jsxs(Button, {
618
+ variant: "outline",
619
+ size: "sm",
620
+ className: "gap-2",
547
621
  onClick: _temp2,
548
- children: t42$1
622
+ children: [t41$1, t42$1]
549
623
  });
550
- $[102] = t42$1;
551
- $[103] = t43$1;
552
- } else t43$1 = $[103];
624
+ $[99] = t42$1;
625
+ $[100] = t43$1;
626
+ } else t43$1 = $[100];
553
627
  let t44$1;
554
- if ($[104] !== t41$1 || $[105] !== t43$1) {
555
- t44$1 = /* @__PURE__ */ jsxs("div", {
556
- className: "text-muted-foreground flex h-64 flex-col items-center justify-center gap-3",
557
- children: [
558
- t39$1,
559
- t41$1,
560
- t43$1
561
- ]
628
+ if ($[101] !== t39$1 || $[102] !== t40$1 || $[103] !== t43$1) {
629
+ t44$1 = /* @__PURE__ */ jsx(EmptyState, {
630
+ variant: "error",
631
+ iconName: "ph:warning-circle",
632
+ title: t39$1,
633
+ description: t40$1,
634
+ height: "h-64",
635
+ action: t43$1
562
636
  });
563
- $[104] = t41$1;
564
- $[105] = t43$1;
565
- $[106] = t44$1;
566
- } else t44$1 = $[106];
637
+ $[101] = t39$1;
638
+ $[102] = t40$1;
639
+ $[103] = t43$1;
640
+ $[104] = t44$1;
641
+ } else t44$1 = $[104];
567
642
  return t44$1;
568
643
  }
569
644
  if (dataLoading) {
570
645
  let t39$1;
571
- if ($[107] === Symbol.for("react.memo_cache_sentinel")) {
572
- t39$1 = /* @__PURE__ */ jsx("div", {
573
- className: "text-muted-foreground flex h-64 items-center justify-center",
574
- children: /* @__PURE__ */ jsx(Icon, {
575
- icon: "ph:spinner-gap",
576
- className: "size-6 animate-spin"
577
- })
578
- });
579
- $[107] = t39$1;
580
- } else t39$1 = $[107];
646
+ if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
647
+ t39$1 = /* @__PURE__ */ jsx(GlobalFormViewSkeleton, {});
648
+ $[105] = t39$1;
649
+ } else t39$1 = $[105];
581
650
  return t39$1;
582
651
  }
583
652
  const t39 = resolvedConfig?.label ?? schemaFields?._globalLabel;
584
653
  let t40;
585
- if ($[108] !== globalName || $[109] !== resolveText || $[110] !== t39) {
654
+ if ($[106] !== globalName || $[107] !== resolveText || $[108] !== t39) {
586
655
  t40 = resolveText(t39, globalName);
587
- $[108] = globalName;
588
- $[109] = resolveText;
589
- $[110] = t39;
590
- $[111] = t40;
591
- } else t40 = $[111];
656
+ $[106] = globalName;
657
+ $[107] = resolveText;
658
+ $[108] = t39;
659
+ $[109] = t40;
660
+ } else t40 = $[109];
592
661
  const globalLabel = t40;
593
662
  let t41;
594
- if ($[112] !== form || $[113] !== onSubmit) {
663
+ if ($[110] !== form || $[111] !== onSubmit) {
595
664
  t41 = form.handleSubmit(onSubmit);
596
- $[112] = form;
597
- $[113] = onSubmit;
598
- $[114] = t41;
599
- } else t41 = $[114];
665
+ $[110] = form;
666
+ $[111] = onSubmit;
667
+ $[112] = t41;
668
+ } else t41 = $[112];
600
669
  let t42;
601
- if ($[115] !== globalLabel) {
602
- t42 = /* @__PURE__ */ jsx("h1", {
603
- className: "qa-global-form__title text-2xl font-extrabold tracking-tight md:text-3xl",
604
- children: globalLabel
605
- });
606
- $[115] = globalLabel;
607
- $[116] = t42;
608
- } else t42 = $[116];
609
- let t43;
610
- if ($[117] !== contentLocale || $[118] !== localeOptions || $[119] !== setContentLocale) {
611
- t43 = localeOptions.length > 0 && /* @__PURE__ */ jsx(LocaleSwitcher, {
670
+ if ($[113] !== contentLocale || $[114] !== localeOptions || $[115] !== setContentLocale) {
671
+ t42 = localeOptions.length > 0 && /* @__PURE__ */ jsx(LocaleSwitcher, {
612
672
  locales: localeOptions,
613
673
  value: contentLocale,
614
674
  onChange: setContentLocale
615
675
  });
616
- $[117] = contentLocale;
617
- $[118] = localeOptions;
618
- $[119] = setContentLocale;
619
- $[120] = t43;
620
- } else t43 = $[120];
621
- let t44;
622
- if ($[121] !== currentStage || $[122] !== currentStageLabel || $[123] !== workflowEnabled) {
623
- t44 = workflowEnabled && currentStage && /* @__PURE__ */ jsxs(Badge, {
676
+ $[113] = contentLocale;
677
+ $[114] = localeOptions;
678
+ $[115] = setContentLocale;
679
+ $[116] = t42;
680
+ } else t42 = $[116];
681
+ let t43;
682
+ if ($[117] !== currentStage || $[118] !== currentStageLabel || $[119] !== workflowEnabled) {
683
+ t43 = workflowEnabled && currentStage && /* @__PURE__ */ jsxs(Badge, {
624
684
  variant: "outline",
625
685
  className: "gap-1.5",
626
686
  children: [/* @__PURE__ */ jsx(Icon, {
@@ -628,62 +688,42 @@ function GlobalFormView(t0) {
628
688
  className: "size-3"
629
689
  }), currentStageLabel]
630
690
  });
631
- $[121] = currentStage;
632
- $[122] = currentStageLabel;
633
- $[123] = workflowEnabled;
634
- $[124] = t44;
635
- } else t44 = $[124];
691
+ $[117] = currentStage;
692
+ $[118] = currentStageLabel;
693
+ $[119] = workflowEnabled;
694
+ $[120] = t43;
695
+ } else t43 = $[120];
696
+ let t44;
697
+ if ($[121] !== t42 || $[122] !== t43) {
698
+ t44 = /* @__PURE__ */ jsxs(Fragment, { children: [t42, t43] });
699
+ $[121] = t42;
700
+ $[122] = t43;
701
+ $[123] = t44;
702
+ } else t44 = $[123];
636
703
  let t45;
637
- if ($[125] !== t42 || $[126] !== t43 || $[127] !== t44) {
638
- t45 = /* @__PURE__ */ jsxs("div", {
639
- className: "flex flex-wrap items-center gap-3",
640
- children: [
641
- t42,
642
- t43,
643
- t44
644
- ]
645
- });
646
- $[125] = t42;
647
- $[126] = t43;
648
- $[127] = t44;
649
- $[128] = t45;
650
- } else t45 = $[128];
704
+ if ($[124] !== globalData || $[125] !== showMeta || $[126] !== t) {
705
+ t45 = showMeta && globalData?.updatedAt ? /* @__PURE__ */ jsxs("span", { children: [
706
+ t("form.lastUpdated"),
707
+ ": ",
708
+ formatDate(globalData.updatedAt)
709
+ ] }) : void 0;
710
+ $[124] = globalData;
711
+ $[125] = showMeta;
712
+ $[126] = t;
713
+ $[127] = t45;
714
+ } else t45 = $[127];
651
715
  let t46;
652
- if ($[129] !== globalData || $[130] !== showMeta || $[131] !== t) {
653
- t46 = showMeta && globalData?.updatedAt && /* @__PURE__ */ jsxs("p", {
654
- className: "qa-global-form__meta text-muted-foreground mt-1 text-xs",
655
- children: [
656
- t("form.lastUpdated"),
657
- ": ",
658
- formatDate(globalData.updatedAt)
659
- ]
660
- });
661
- $[129] = globalData;
662
- $[130] = showMeta;
663
- $[131] = t;
664
- $[132] = t46;
665
- } else t46 = $[132];
666
- let t47;
667
- if ($[133] !== t45 || $[134] !== t46) {
668
- t47 = /* @__PURE__ */ jsxs("div", {
669
- className: "min-w-0 flex-1",
670
- children: [t45, t46]
671
- });
672
- $[133] = t45;
673
- $[134] = t46;
674
- $[135] = t47;
675
- } else t47 = $[135];
676
- let t48;
677
- if ($[136] !== allowedTransitions || $[137] !== t || $[138] !== workflowEnabled) {
678
- t48 = workflowEnabled && allowedTransitions.length > 0 && /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsxs(DropdownMenuTrigger, {
716
+ if ($[128] !== allowedTransitions || $[129] !== t || $[130] !== workflowEnabled) {
717
+ t46 = workflowEnabled && allowedTransitions.length > 0 && /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsxs(DropdownMenuTrigger, {
679
718
  render: /* @__PURE__ */ jsx(Button, {
680
719
  type: "button",
681
720
  variant: "outline",
721
+ size: "sm",
682
722
  className: "gap-2"
683
723
  }),
684
724
  children: [/* @__PURE__ */ jsx(Icon, {
685
725
  icon: "ph:arrows-left-right",
686
- className: "size-4"
726
+ className: "size-3.5"
687
727
  }), t("workflow.transition")]
688
728
  }), /* @__PURE__ */ jsx(DropdownMenuContent, {
689
729
  align: "end",
@@ -698,65 +738,64 @@ function GlobalFormView(t0) {
698
738
  }), stage.label || stage.name]
699
739
  }, stage.name))
700
740
  })] });
701
- $[136] = allowedTransitions;
702
- $[137] = t;
703
- $[138] = workflowEnabled;
704
- $[139] = t48;
705
- } else t48 = $[139];
741
+ $[128] = allowedTransitions;
742
+ $[129] = t;
743
+ $[130] = workflowEnabled;
744
+ $[131] = t46;
745
+ } else t46 = $[131];
746
+ let t47;
747
+ if ($[132] !== setIsHistoryOpen) {
748
+ t47 = () => setIsHistoryOpen(true);
749
+ $[132] = setIsHistoryOpen;
750
+ $[133] = t47;
751
+ } else t47 = $[133];
752
+ let t48;
753
+ if ($[134] !== t) {
754
+ t48 = t("history.title");
755
+ $[134] = t;
756
+ $[135] = t48;
757
+ } else t48 = $[135];
706
758
  let t49;
707
- if ($[140] !== setIsHistoryOpen) {
708
- t49 = () => setIsHistoryOpen(true);
709
- $[140] = setIsHistoryOpen;
710
- $[141] = t49;
711
- } else t49 = $[141];
759
+ if ($[136] === Symbol.for("react.memo_cache_sentinel")) {
760
+ t49 = /* @__PURE__ */ jsx(Icon, {
761
+ icon: "ph:clock-counter-clockwise",
762
+ className: "size-3.5"
763
+ });
764
+ $[136] = t49;
765
+ } else t49 = $[136];
712
766
  let t50;
713
- if ($[142] !== t) {
767
+ if ($[137] !== t) {
714
768
  t50 = t("history.title");
715
- $[142] = t;
716
- $[143] = t50;
717
- } else t50 = $[143];
769
+ $[137] = t;
770
+ $[138] = t50;
771
+ } else t50 = $[138];
718
772
  let t51;
719
- if ($[144] === Symbol.for("react.memo_cache_sentinel")) {
720
- t51 = /* @__PURE__ */ jsx(Icon, {
721
- icon: "ph:clock-counter-clockwise",
722
- className: "size-4"
723
- });
724
- $[144] = t51;
725
- } else t51 = $[144];
726
- let t52;
727
- if ($[145] !== t) {
728
- t52 = t("history.title");
729
- $[145] = t;
730
- $[146] = t52;
731
- } else t52 = $[146];
732
- let t53;
733
- if ($[147] !== t52) {
734
- t53 = /* @__PURE__ */ jsx("span", {
773
+ if ($[139] !== t50) {
774
+ t51 = /* @__PURE__ */ jsx("span", {
735
775
  className: "sr-only",
736
- children: t52
776
+ children: t50
737
777
  });
738
- $[147] = t52;
739
- $[148] = t53;
740
- } else t53 = $[148];
741
- let t54;
742
- if ($[149] !== t49 || $[150] !== t50 || $[151] !== t53) {
743
- t54 = /* @__PURE__ */ jsxs(Button, {
778
+ $[139] = t50;
779
+ $[140] = t51;
780
+ } else t51 = $[140];
781
+ let t52;
782
+ if ($[141] !== t47 || $[142] !== t48 || $[143] !== t51) {
783
+ t52 = /* @__PURE__ */ jsxs(Button, {
744
784
  type: "button",
745
785
  variant: "outline",
746
- size: "icon",
747
- className: "size-9",
748
- onClick: t49,
749
- title: t50,
750
- children: [t51, t53]
786
+ size: "icon-sm",
787
+ onClick: t47,
788
+ title: t48,
789
+ children: [t49, t51]
751
790
  });
752
- $[149] = t49;
753
- $[150] = t50;
754
- $[151] = t53;
755
- $[152] = t54;
756
- } else t54 = $[152];
757
- let t55;
758
- if ($[153] !== isSubmitting || $[154] !== t) {
759
- t55 = isSubmitting ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Icon, {
791
+ $[141] = t47;
792
+ $[142] = t48;
793
+ $[143] = t51;
794
+ $[144] = t52;
795
+ } else t52 = $[144];
796
+ let t53;
797
+ if ($[145] !== isSubmitting || $[146] !== t) {
798
+ t53 = isSubmitting ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Icon, {
760
799
  icon: "ph:spinner-gap",
761
800
  className: "size-4 animate-spin"
762
801
  }), t("common.loading")] }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Icon, {
@@ -764,291 +803,297 @@ function GlobalFormView(t0) {
764
803
  width: 16,
765
804
  height: 16
766
805
  }), t("common.save")] });
767
- $[153] = isSubmitting;
768
- $[154] = t;
769
- $[155] = t55;
770
- } else t55 = $[155];
771
- let t56;
772
- if ($[156] !== isSubmitting || $[157] !== t55) {
773
- t56 = /* @__PURE__ */ jsx(Button, {
806
+ $[145] = isSubmitting;
807
+ $[146] = t;
808
+ $[147] = t53;
809
+ } else t53 = $[147];
810
+ let t54;
811
+ if ($[148] !== isSubmitting || $[149] !== t53) {
812
+ t54 = /* @__PURE__ */ jsx(Button, {
774
813
  type: "submit",
814
+ size: "sm",
775
815
  disabled: isSubmitting,
776
816
  className: "gap-2",
777
- children: t55
778
- });
779
- $[156] = isSubmitting;
780
- $[157] = t55;
781
- $[158] = t56;
782
- } else t56 = $[158];
783
- let t57;
784
- if ($[159] !== headerActions || $[160] !== t48 || $[161] !== t54 || $[162] !== t56) {
785
- t57 = /* @__PURE__ */ jsxs("div", {
786
- className: "qa-global-form__actions flex shrink-0 items-center gap-2",
787
- children: [
788
- headerActions,
789
- t48,
790
- t54,
791
- t56
792
- ]
817
+ children: t53
793
818
  });
794
- $[159] = headerActions;
795
- $[160] = t48;
796
- $[161] = t54;
797
- $[162] = t56;
798
- $[163] = t57;
799
- } else t57 = $[163];
800
- let t58;
801
- if ($[164] !== t47 || $[165] !== t57) {
802
- t58 = /* @__PURE__ */ jsxs("div", {
803
- className: "qa-global-form__header flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
804
- children: [t47, t57]
819
+ $[148] = isSubmitting;
820
+ $[149] = t53;
821
+ $[150] = t54;
822
+ } else t54 = $[150];
823
+ let t55;
824
+ if ($[151] !== headerActions || $[152] !== t46 || $[153] !== t52 || $[154] !== t54) {
825
+ t55 = /* @__PURE__ */ jsxs(Fragment, { children: [
826
+ headerActions,
827
+ t46,
828
+ t52,
829
+ t54
830
+ ] });
831
+ $[151] = headerActions;
832
+ $[152] = t46;
833
+ $[153] = t52;
834
+ $[154] = t54;
835
+ $[155] = t55;
836
+ } else t55 = $[155];
837
+ let t56;
838
+ if ($[156] !== globalLabel || $[157] !== t44 || $[158] !== t45 || $[159] !== t55) {
839
+ t56 = /* @__PURE__ */ jsx(AdminViewHeader, {
840
+ className: "qa-global-form__header",
841
+ title: globalLabel,
842
+ titleAccessory: t44,
843
+ meta: t45,
844
+ actions: t55
805
845
  });
806
- $[164] = t47;
807
- $[165] = t57;
808
- $[166] = t58;
809
- } else t58 = $[166];
810
- let t59;
811
- if ($[167] !== globalName || $[168] !== registry || $[169] !== resolvedConfig) {
812
- t59 = /* @__PURE__ */ jsx(AutoFormFields, {
846
+ $[156] = globalLabel;
847
+ $[157] = t44;
848
+ $[158] = t45;
849
+ $[159] = t55;
850
+ $[160] = t56;
851
+ } else t56 = $[160];
852
+ let t57;
853
+ if ($[161] !== globalName || $[162] !== registry || $[163] !== resolvedConfig) {
854
+ t57 = /* @__PURE__ */ jsx(AutoFormFields, {
813
855
  collection: globalName,
814
856
  mode: "global",
815
857
  config: resolvedConfig,
816
858
  registry
817
859
  });
818
- $[167] = globalName;
819
- $[168] = registry;
820
- $[169] = resolvedConfig;
821
- $[170] = t59;
822
- } else t59 = $[170];
823
- let t60;
824
- if ($[171] !== t41 || $[172] !== t58 || $[173] !== t59) {
825
- t60 = /* @__PURE__ */ jsxs("form", {
860
+ $[161] = globalName;
861
+ $[162] = registry;
862
+ $[163] = resolvedConfig;
863
+ $[164] = t57;
864
+ } else t57 = $[164];
865
+ let t58;
866
+ if ($[165] !== t41 || $[166] !== t56 || $[167] !== t57) {
867
+ t58 = /* @__PURE__ */ jsxs("form", {
826
868
  onSubmit: t41,
827
869
  className: "qa-global-form w-full space-y-4",
828
- children: [t58, t59]
870
+ children: [t56, t57]
829
871
  });
830
- $[171] = t41;
831
- $[172] = t58;
832
- $[173] = t59;
833
- $[174] = t60;
834
- } else t60 = $[174];
835
- let t61;
836
- if ($[175] !== auditData) {
837
- t61 = auditData ?? [];
838
- $[175] = auditData;
839
- $[176] = t61;
840
- } else t61 = $[176];
841
- let t62;
842
- if ($[177] !== versionsData) {
843
- t62 = versionsData ?? [];
844
- $[177] = versionsData;
845
- $[178] = t62;
846
- } else t62 = $[178];
847
- const t63 = t62;
848
- let t64;
849
- if ($[179] === Symbol.for("react.memo_cache_sentinel")) {
850
- t64 = async (version) => {
872
+ $[165] = t41;
873
+ $[166] = t56;
874
+ $[167] = t57;
875
+ $[168] = t58;
876
+ } else t58 = $[168];
877
+ let t59;
878
+ if ($[169] !== auditData) {
879
+ t59 = auditData ?? [];
880
+ $[169] = auditData;
881
+ $[170] = t59;
882
+ } else t59 = $[170];
883
+ let t60;
884
+ if ($[171] !== versionsData) {
885
+ t60 = versionsData ?? [];
886
+ $[171] = versionsData;
887
+ $[172] = t60;
888
+ } else t60 = $[172];
889
+ const t61 = t60;
890
+ const t62 = globalSchema?.fields;
891
+ let t63;
892
+ if ($[173] === Symbol.for("react.memo_cache_sentinel")) {
893
+ t63 = async (version) => {
851
894
  setPendingRevertVersion(version);
852
895
  };
853
- $[179] = t64;
854
- } else t64 = $[179];
855
- const t65 = !!globalSchema?.options?.versioning;
856
- let t66;
857
- if ($[180] !== auditLoading || $[181] !== isHistoryOpen || $[182] !== revertVersionMutation.isPending || $[183] !== setIsHistoryOpen || $[184] !== t61 || $[185] !== t63 || $[186] !== t65 || $[187] !== versionsLoading) {
858
- t66 = /* @__PURE__ */ jsx(HistorySidebar, {
896
+ $[173] = t63;
897
+ } else t63 = $[173];
898
+ const t64 = !!globalSchema?.options?.versioning;
899
+ let t65;
900
+ if ($[174] !== auditLoading || $[175] !== isHistoryOpen || $[176] !== revertVersionMutation.isPending || $[177] !== setIsHistoryOpen || $[178] !== t59 || $[179] !== t61 || $[180] !== t62 || $[181] !== t64 || $[182] !== versionsLoading) {
901
+ t65 = /* @__PURE__ */ jsx(HistorySidebar, {
859
902
  open: isHistoryOpen,
860
903
  onOpenChange: setIsHistoryOpen,
861
- auditEntries: t61,
904
+ auditEntries: t59,
862
905
  isLoadingAudit: auditLoading,
863
- versions: t63,
906
+ versions: t61,
907
+ fields: t62,
864
908
  isLoadingVersions: versionsLoading,
865
909
  isReverting: revertVersionMutation.isPending,
866
- onRevert: t64,
867
- showVersionsTab: t65
910
+ onRevert: t63,
911
+ showVersionsTab: t64
868
912
  });
869
- $[180] = auditLoading;
870
- $[181] = isHistoryOpen;
871
- $[182] = revertVersionMutation.isPending;
872
- $[183] = setIsHistoryOpen;
873
- $[184] = t61;
874
- $[185] = t63;
875
- $[186] = t65;
876
- $[187] = versionsLoading;
877
- $[188] = t66;
878
- } else t66 = $[188];
879
- const t67 = !!pendingRevertVersion;
880
- let t68;
881
- if ($[189] === Symbol.for("react.memo_cache_sentinel")) {
882
- t68 = (open) => {
913
+ $[174] = auditLoading;
914
+ $[175] = isHistoryOpen;
915
+ $[176] = revertVersionMutation.isPending;
916
+ $[177] = setIsHistoryOpen;
917
+ $[178] = t59;
918
+ $[179] = t61;
919
+ $[180] = t62;
920
+ $[181] = t64;
921
+ $[182] = versionsLoading;
922
+ $[183] = t65;
923
+ } else t65 = $[183];
924
+ const t66 = !!pendingRevertVersion;
925
+ let t67;
926
+ if ($[184] === Symbol.for("react.memo_cache_sentinel")) {
927
+ t67 = (open) => {
883
928
  if (!open) setPendingRevertVersion(null);
884
929
  };
885
- $[189] = t68;
886
- } else t68 = $[189];
887
- let t69;
930
+ $[184] = t67;
931
+ } else t67 = $[184];
932
+ let t68;
933
+ if ($[185] !== t) {
934
+ t68 = t("version.revertConfirmTitle");
935
+ $[185] = t;
936
+ $[186] = t68;
937
+ } else t68 = $[186];
938
+ const t69 = pendingRevertVersion?.versionNumber ?? pendingRevertVersion?.versionId ?? "-";
939
+ let t70;
940
+ if ($[187] !== t || $[188] !== t69) {
941
+ t70 = t("version.revertConfirmDescription", { number: t69 });
942
+ $[187] = t;
943
+ $[188] = t69;
944
+ $[189] = t70;
945
+ } else t70 = $[189];
946
+ let t71;
888
947
  if ($[190] !== t) {
889
- t69 = t("version.revertConfirmTitle");
948
+ t71 = t("version.revert");
890
949
  $[190] = t;
891
- $[191] = t69;
892
- } else t69 = $[191];
893
- const t70 = pendingRevertVersion?.versionNumber ?? pendingRevertVersion?.versionId ?? "-";
894
- let t71;
895
- if ($[192] !== t || $[193] !== t70) {
896
- t71 = t("version.revertConfirmDescription", { number: t70 });
897
- $[192] = t;
898
- $[193] = t70;
899
- $[194] = t71;
900
- } else t71 = $[194];
950
+ $[191] = t71;
951
+ } else t71 = $[191];
901
952
  let t72;
902
- if ($[195] !== t) {
903
- t72 = t("version.revert");
904
- $[195] = t;
905
- $[196] = t72;
906
- } else t72 = $[196];
953
+ if ($[192] !== t) {
954
+ t72 = t("common.cancel");
955
+ $[192] = t;
956
+ $[193] = t72;
957
+ } else t72 = $[193];
907
958
  let t73;
908
- if ($[197] !== t) {
909
- t73 = t("common.cancel");
910
- $[197] = t;
959
+ if ($[194] !== t68 || $[195] !== t70 || $[196] !== t71 || $[197] !== t72) {
960
+ t73 = {
961
+ title: t68,
962
+ description: t70,
963
+ confirmLabel: t71,
964
+ cancelLabel: t72,
965
+ destructive: false
966
+ };
967
+ $[194] = t68;
968
+ $[195] = t70;
969
+ $[196] = t71;
970
+ $[197] = t72;
911
971
  $[198] = t73;
912
972
  } else t73 = $[198];
913
973
  let t74;
914
- if ($[199] !== t69 || $[200] !== t71 || $[201] !== t72 || $[202] !== t73) {
915
- t74 = {
916
- title: t69,
917
- description: t71,
918
- confirmLabel: t72,
919
- cancelLabel: t73,
920
- destructive: false
921
- };
922
- $[199] = t69;
923
- $[200] = t71;
924
- $[201] = t72;
925
- $[202] = t73;
926
- $[203] = t74;
927
- } else t74 = $[203];
928
- let t75;
929
- if ($[204] !== confirmRevertVersion || $[205] !== revertVersionMutation.isPending || $[206] !== t67 || $[207] !== t74) {
930
- t75 = /* @__PURE__ */ jsx(ConfirmationDialog, {
931
- open: t67,
932
- onOpenChange: t68,
933
- config: t74,
974
+ if ($[199] !== confirmRevertVersion || $[200] !== revertVersionMutation.isPending || $[201] !== t66 || $[202] !== t73) {
975
+ t74 = /* @__PURE__ */ jsx(ConfirmationDialog, {
976
+ open: t66,
977
+ onOpenChange: t67,
978
+ config: t73,
934
979
  onConfirm: confirmRevertVersion,
935
980
  loading: revertVersionMutation.isPending
936
981
  });
937
- $[204] = confirmRevertVersion;
938
- $[205] = revertVersionMutation.isPending;
939
- $[206] = t67;
940
- $[207] = t74;
941
- $[208] = t75;
942
- } else t75 = $[208];
943
- const t76 = !!transitionTarget;
944
- let t77;
945
- if ($[209] === Symbol.for("react.memo_cache_sentinel")) {
946
- t77 = (open_0) => {
982
+ $[199] = confirmRevertVersion;
983
+ $[200] = revertVersionMutation.isPending;
984
+ $[201] = t66;
985
+ $[202] = t73;
986
+ $[203] = t74;
987
+ } else t74 = $[203];
988
+ const t75 = !!transitionTarget;
989
+ let t76;
990
+ if ($[204] === Symbol.for("react.memo_cache_sentinel")) {
991
+ t76 = (open_0) => {
947
992
  if (!open_0) {
948
993
  setTransitionTarget(null);
949
994
  setTransitionSchedule(false);
950
995
  setTransitionScheduledAt(null);
951
996
  }
952
997
  };
953
- $[209] = t77;
954
- } else t77 = $[209];
955
- let t78;
956
- if ($[210] === Symbol.for("react.memo_cache_sentinel")) {
957
- t78 = /* @__PURE__ */ jsx(Icon, {
998
+ $[204] = t76;
999
+ } else t76 = $[204];
1000
+ let t77;
1001
+ if ($[205] === Symbol.for("react.memo_cache_sentinel")) {
1002
+ t77 = /* @__PURE__ */ jsx(Icon, {
958
1003
  icon: "ph:arrows-left-right",
959
1004
  className: "size-5"
960
1005
  });
961
- $[210] = t78;
962
- } else t78 = $[210];
963
- const t79 = transitionTarget?.label ?? transitionTarget?.name ?? "";
1006
+ $[205] = t77;
1007
+ } else t77 = $[205];
1008
+ const t78 = transitionTarget?.label ?? transitionTarget?.name ?? "";
1009
+ let t79;
1010
+ if ($[206] !== t || $[207] !== t78) {
1011
+ t79 = t("workflow.transitionTo", { stage: t78 });
1012
+ $[206] = t;
1013
+ $[207] = t78;
1014
+ $[208] = t79;
1015
+ } else t79 = $[208];
964
1016
  let t80;
965
- if ($[211] !== t || $[212] !== t79) {
966
- t80 = t("workflow.transitionTo", { stage: t79 });
967
- $[211] = t;
968
- $[212] = t79;
969
- $[213] = t80;
970
- } else t80 = $[213];
971
- let t81;
972
- if ($[214] !== t80) {
973
- t81 = /* @__PURE__ */ jsxs(DialogTitle, {
1017
+ if ($[209] !== t79) {
1018
+ t80 = /* @__PURE__ */ jsxs(DialogTitle, {
974
1019
  className: "flex items-center gap-2",
975
- children: [t78, t80]
1020
+ children: [t77, t79]
976
1021
  });
977
- $[214] = t80;
978
- $[215] = t81;
979
- } else t81 = $[215];
980
- const t82 = transitionTarget?.label ?? transitionTarget?.name ?? "";
981
- let t83;
982
- if ($[216] !== currentStageLabel || $[217] !== t || $[218] !== t82) {
983
- t83 = t("workflow.transitionDescription", {
1022
+ $[209] = t79;
1023
+ $[210] = t80;
1024
+ } else t80 = $[210];
1025
+ const t81 = transitionTarget?.label ?? transitionTarget?.name ?? "";
1026
+ let t82;
1027
+ if ($[211] !== currentStageLabel || $[212] !== t || $[213] !== t81) {
1028
+ t82 = t("workflow.transitionDescription", {
984
1029
  from: currentStageLabel,
985
- to: t82
1030
+ to: t81
986
1031
  });
987
- $[216] = currentStageLabel;
988
- $[217] = t;
989
- $[218] = t82;
990
- $[219] = t83;
991
- } else t83 = $[219];
1032
+ $[211] = currentStageLabel;
1033
+ $[212] = t;
1034
+ $[213] = t81;
1035
+ $[214] = t82;
1036
+ } else t82 = $[214];
1037
+ let t83;
1038
+ if ($[215] !== t82) {
1039
+ t83 = /* @__PURE__ */ jsx(DialogDescription, { children: t82 });
1040
+ $[215] = t82;
1041
+ $[216] = t83;
1042
+ } else t83 = $[216];
992
1043
  let t84;
993
- if ($[220] !== t83) {
994
- t84 = /* @__PURE__ */ jsx(DialogDescription, { children: t83 });
995
- $[220] = t83;
996
- $[221] = t84;
997
- } else t84 = $[221];
1044
+ if ($[217] !== t80 || $[218] !== t83) {
1045
+ t84 = /* @__PURE__ */ jsxs(DialogHeader, { children: [t80, t83] });
1046
+ $[217] = t80;
1047
+ $[218] = t83;
1048
+ $[219] = t84;
1049
+ } else t84 = $[219];
998
1050
  let t85;
999
- if ($[222] !== t81 || $[223] !== t84) {
1000
- t85 = /* @__PURE__ */ jsxs(DialogHeader, { children: [t81, t84] });
1001
- $[222] = t81;
1002
- $[223] = t84;
1003
- $[224] = t85;
1004
- } else t85 = $[224];
1005
- let t86;
1006
- if ($[225] === Symbol.for("react.memo_cache_sentinel")) {
1007
- t86 = (val) => {
1051
+ if ($[220] === Symbol.for("react.memo_cache_sentinel")) {
1052
+ t85 = (val) => {
1008
1053
  setTransitionSchedule(!!val);
1009
1054
  if (!val) setTransitionScheduledAt(null);
1010
1055
  };
1011
- $[225] = t86;
1012
- } else t86 = $[225];
1013
- let t87;
1014
- if ($[226] !== transitionSchedule) {
1015
- t87 = /* @__PURE__ */ jsx(Checkbox, {
1056
+ $[220] = t85;
1057
+ } else t85 = $[220];
1058
+ let t86;
1059
+ if ($[221] !== transitionSchedule) {
1060
+ t86 = /* @__PURE__ */ jsx(Checkbox, {
1016
1061
  checked: transitionSchedule,
1017
- onCheckedChange: t86,
1062
+ onCheckedChange: t85,
1018
1063
  id: "global-transition-schedule"
1019
1064
  });
1020
- $[226] = transitionSchedule;
1021
- $[227] = t87;
1022
- } else t87 = $[227];
1065
+ $[221] = transitionSchedule;
1066
+ $[222] = t86;
1067
+ } else t86 = $[222];
1068
+ let t87;
1069
+ if ($[223] !== t) {
1070
+ t87 = t("workflow.scheduleLabel");
1071
+ $[223] = t;
1072
+ $[224] = t87;
1073
+ } else t87 = $[224];
1023
1074
  let t88;
1024
- if ($[228] !== t) {
1025
- t88 = t("workflow.scheduleLabel");
1026
- $[228] = t;
1027
- $[229] = t88;
1028
- } else t88 = $[229];
1029
- let t89;
1030
- if ($[230] !== t88) {
1031
- t89 = /* @__PURE__ */ jsx(Label, {
1075
+ if ($[225] !== t87) {
1076
+ t88 = /* @__PURE__ */ jsx(Label, {
1032
1077
  htmlFor: "global-transition-schedule",
1033
1078
  className: "cursor-pointer text-sm",
1034
- children: t88
1079
+ children: t87
1035
1080
  });
1036
- $[230] = t88;
1037
- $[231] = t89;
1038
- } else t89 = $[231];
1039
- let t90;
1040
- if ($[232] !== t87 || $[233] !== t89) {
1041
- t90 = /* @__PURE__ */ jsxs("div", {
1081
+ $[225] = t87;
1082
+ $[226] = t88;
1083
+ } else t88 = $[226];
1084
+ let t89;
1085
+ if ($[227] !== t86 || $[228] !== t88) {
1086
+ t89 = /* @__PURE__ */ jsxs("div", {
1042
1087
  className: "flex items-center gap-2",
1043
- children: [t87, t89]
1088
+ children: [t86, t88]
1044
1089
  });
1045
- $[232] = t87;
1046
- $[233] = t89;
1047
- $[234] = t90;
1048
- } else t90 = $[234];
1049
- let t91;
1050
- if ($[235] !== t || $[236] !== transitionSchedule || $[237] !== transitionScheduledAt) {
1051
- t91 = transitionSchedule && /* @__PURE__ */ jsxs("div", {
1090
+ $[227] = t86;
1091
+ $[228] = t88;
1092
+ $[229] = t89;
1093
+ } else t89 = $[229];
1094
+ let t90;
1095
+ if ($[230] !== t || $[231] !== transitionSchedule || $[232] !== transitionScheduledAt) {
1096
+ t90 = transitionSchedule && /* @__PURE__ */ jsxs("div", {
1052
1097
  className: "space-y-1.5 pl-6",
1053
1098
  children: [
1054
1099
  /* @__PURE__ */ jsx(Label, {
@@ -1066,228 +1111,228 @@ function GlobalFormView(t0) {
1066
1111
  })
1067
1112
  ]
1068
1113
  });
1069
- $[235] = t;
1070
- $[236] = transitionSchedule;
1071
- $[237] = transitionScheduledAt;
1072
- $[238] = t91;
1073
- } else t91 = $[238];
1074
- let t92;
1075
- if ($[239] !== t90 || $[240] !== t91) {
1076
- t92 = /* @__PURE__ */ jsxs("div", {
1114
+ $[230] = t;
1115
+ $[231] = transitionSchedule;
1116
+ $[232] = transitionScheduledAt;
1117
+ $[233] = t90;
1118
+ } else t90 = $[233];
1119
+ let t91;
1120
+ if ($[234] !== t89 || $[235] !== t90) {
1121
+ t91 = /* @__PURE__ */ jsxs("div", {
1077
1122
  className: "space-y-3 py-2",
1078
- children: [t90, t91]
1123
+ children: [t89, t90]
1079
1124
  });
1080
- $[239] = t90;
1081
- $[240] = t91;
1082
- $[241] = t92;
1083
- } else t92 = $[241];
1084
- let t93;
1085
- if ($[242] === Symbol.for("react.memo_cache_sentinel")) {
1086
- t93 = () => {
1125
+ $[234] = t89;
1126
+ $[235] = t90;
1127
+ $[236] = t91;
1128
+ } else t91 = $[236];
1129
+ let t92;
1130
+ if ($[237] === Symbol.for("react.memo_cache_sentinel")) {
1131
+ t92 = () => {
1087
1132
  setTransitionTarget(null);
1088
1133
  setTransitionSchedule(false);
1089
1134
  setTransitionScheduledAt(null);
1090
1135
  };
1091
- $[242] = t93;
1092
- } else t93 = $[242];
1136
+ $[237] = t92;
1137
+ } else t92 = $[237];
1138
+ let t93;
1139
+ if ($[238] !== t) {
1140
+ t93 = t("common.cancel");
1141
+ $[238] = t;
1142
+ $[239] = t93;
1143
+ } else t93 = $[239];
1093
1144
  let t94;
1094
- if ($[243] !== t) {
1095
- t94 = t("common.cancel");
1096
- $[243] = t;
1097
- $[244] = t94;
1098
- } else t94 = $[244];
1099
- let t95;
1100
- if ($[245] !== t94) {
1101
- t95 = /* @__PURE__ */ jsx(Button, {
1145
+ if ($[240] !== t93) {
1146
+ t94 = /* @__PURE__ */ jsx(Button, {
1102
1147
  type: "button",
1103
1148
  variant: "outline",
1104
- onClick: t93,
1105
- children: t94
1149
+ onClick: t92,
1150
+ children: t93
1106
1151
  });
1107
- $[245] = t94;
1108
- $[246] = t95;
1109
- } else t95 = $[246];
1110
- const t96 = transitionMutation.isPending || transitionSchedule && !transitionScheduledAt;
1111
- let t97;
1112
- if ($[247] !== transitionMutation.isPending) {
1113
- t97 = transitionMutation.isPending && /* @__PURE__ */ jsx(Icon, {
1152
+ $[240] = t93;
1153
+ $[241] = t94;
1154
+ } else t94 = $[241];
1155
+ const t95 = transitionMutation.isPending || transitionSchedule && !transitionScheduledAt;
1156
+ let t96;
1157
+ if ($[242] !== transitionMutation.isPending) {
1158
+ t96 = transitionMutation.isPending && /* @__PURE__ */ jsx(Icon, {
1114
1159
  icon: "ph:spinner-gap",
1115
1160
  className: "size-4 animate-spin"
1116
1161
  });
1117
- $[247] = transitionMutation.isPending;
1118
- $[248] = t97;
1119
- } else t97 = $[248];
1162
+ $[242] = transitionMutation.isPending;
1163
+ $[243] = t96;
1164
+ } else t96 = $[243];
1165
+ let t97;
1166
+ if ($[244] !== t || $[245] !== transitionSchedule) {
1167
+ t97 = transitionSchedule ? t("workflow.scheduleLabel") : t("workflow.transition");
1168
+ $[244] = t;
1169
+ $[245] = transitionSchedule;
1170
+ $[246] = t97;
1171
+ } else t97 = $[246];
1120
1172
  let t98;
1121
- if ($[249] !== t || $[250] !== transitionSchedule) {
1122
- t98 = transitionSchedule ? t("workflow.scheduleLabel") : t("workflow.transition");
1123
- $[249] = t;
1124
- $[250] = transitionSchedule;
1125
- $[251] = t98;
1126
- } else t98 = $[251];
1127
- let t99;
1128
- if ($[252] !== confirmTransition || $[253] !== t96 || $[254] !== t97 || $[255] !== t98) {
1129
- t99 = /* @__PURE__ */ jsxs(Button, {
1173
+ if ($[247] !== confirmTransition || $[248] !== t95 || $[249] !== t96 || $[250] !== t97) {
1174
+ t98 = /* @__PURE__ */ jsxs(Button, {
1130
1175
  type: "button",
1131
1176
  onClick: confirmTransition,
1132
- disabled: t96,
1177
+ disabled: t95,
1133
1178
  className: "gap-2",
1134
- children: [t97, t98]
1179
+ children: [t96, t97]
1135
1180
  });
1136
- $[252] = confirmTransition;
1137
- $[253] = t96;
1138
- $[254] = t97;
1139
- $[255] = t98;
1140
- $[256] = t99;
1141
- } else t99 = $[256];
1181
+ $[247] = confirmTransition;
1182
+ $[248] = t95;
1183
+ $[249] = t96;
1184
+ $[250] = t97;
1185
+ $[251] = t98;
1186
+ } else t98 = $[251];
1187
+ let t99;
1188
+ if ($[252] !== t94 || $[253] !== t98) {
1189
+ t99 = /* @__PURE__ */ jsxs(DialogFooter, { children: [t94, t98] });
1190
+ $[252] = t94;
1191
+ $[253] = t98;
1192
+ $[254] = t99;
1193
+ } else t99 = $[254];
1142
1194
  let t100;
1143
- if ($[257] !== t95 || $[258] !== t99) {
1144
- t100 = /* @__PURE__ */ jsxs(DialogFooter, { children: [t95, t99] });
1145
- $[257] = t95;
1146
- $[258] = t99;
1147
- $[259] = t100;
1148
- } else t100 = $[259];
1149
- let t101;
1150
- if ($[260] !== t100 || $[261] !== t85 || $[262] !== t92) {
1151
- t101 = /* @__PURE__ */ jsxs(DialogContent, { children: [
1152
- t85,
1153
- t92,
1154
- t100
1195
+ if ($[255] !== t84 || $[256] !== t91 || $[257] !== t99) {
1196
+ t100 = /* @__PURE__ */ jsxs(DialogContent, { children: [
1197
+ t84,
1198
+ t91,
1199
+ t99
1155
1200
  ] });
1156
- $[260] = t100;
1157
- $[261] = t85;
1158
- $[262] = t92;
1159
- $[263] = t101;
1160
- } else t101 = $[263];
1161
- let t102;
1162
- if ($[264] !== t101 || $[265] !== t76) {
1163
- t102 = /* @__PURE__ */ jsx(Dialog, {
1164
- open: t76,
1165
- onOpenChange: t77,
1166
- children: t101
1201
+ $[255] = t84;
1202
+ $[256] = t91;
1203
+ $[257] = t99;
1204
+ $[258] = t100;
1205
+ } else t100 = $[258];
1206
+ let t101;
1207
+ if ($[259] !== t100 || $[260] !== t75) {
1208
+ t101 = /* @__PURE__ */ jsx(Dialog, {
1209
+ open: t75,
1210
+ onOpenChange: t76,
1211
+ children: t100
1167
1212
  });
1168
- $[264] = t101;
1169
- $[265] = t76;
1170
- $[266] = t102;
1171
- } else t102 = $[266];
1172
- const t103 = localeChangeDialog.open;
1213
+ $[259] = t100;
1214
+ $[260] = t75;
1215
+ $[261] = t101;
1216
+ } else t101 = $[261];
1217
+ const t102 = localeChangeDialog.open;
1218
+ let t103;
1219
+ if ($[262] !== handleLocaleChangeCancel) {
1220
+ t103 = (open_1) => !open_1 && handleLocaleChangeCancel();
1221
+ $[262] = handleLocaleChangeCancel;
1222
+ $[263] = t103;
1223
+ } else t103 = $[263];
1173
1224
  let t104;
1174
- if ($[267] !== handleLocaleChangeCancel) {
1175
- t104 = (open_1) => !open_1 && handleLocaleChangeCancel();
1176
- $[267] = handleLocaleChangeCancel;
1177
- $[268] = t104;
1178
- } else t104 = $[268];
1225
+ if ($[264] !== t) {
1226
+ t104 = t("locale.unsavedChanges");
1227
+ $[264] = t;
1228
+ $[265] = t104;
1229
+ } else t104 = $[265];
1179
1230
  let t105;
1180
- if ($[269] !== t) {
1181
- t105 = t("locale.unsavedChanges");
1182
- $[269] = t;
1183
- $[270] = t105;
1184
- } else t105 = $[270];
1231
+ if ($[266] !== t104) {
1232
+ t105 = /* @__PURE__ */ jsx(DialogTitle, { children: t104 });
1233
+ $[266] = t104;
1234
+ $[267] = t105;
1235
+ } else t105 = $[267];
1185
1236
  let t106;
1186
- if ($[271] !== t105) {
1187
- t106 = /* @__PURE__ */ jsx(DialogTitle, { children: t105 });
1188
- $[271] = t105;
1189
- $[272] = t106;
1190
- } else t106 = $[272];
1237
+ if ($[268] !== t) {
1238
+ t106 = t("locale.unsavedChangesDescription");
1239
+ $[268] = t;
1240
+ $[269] = t106;
1241
+ } else t106 = $[269];
1191
1242
  let t107;
1192
- if ($[273] !== t) {
1193
- t107 = t("locale.unsavedChangesDescription");
1194
- $[273] = t;
1195
- $[274] = t107;
1196
- } else t107 = $[274];
1243
+ if ($[270] !== t106) {
1244
+ t107 = /* @__PURE__ */ jsx(DialogDescription, { children: t106 });
1245
+ $[270] = t106;
1246
+ $[271] = t107;
1247
+ } else t107 = $[271];
1197
1248
  let t108;
1198
- if ($[275] !== t107) {
1199
- t108 = /* @__PURE__ */ jsx(DialogDescription, { children: t107 });
1200
- $[275] = t107;
1201
- $[276] = t108;
1202
- } else t108 = $[276];
1249
+ if ($[272] !== t105 || $[273] !== t107) {
1250
+ t108 = /* @__PURE__ */ jsxs(DialogHeader, { children: [t105, t107] });
1251
+ $[272] = t105;
1252
+ $[273] = t107;
1253
+ $[274] = t108;
1254
+ } else t108 = $[274];
1203
1255
  let t109;
1204
- if ($[277] !== t106 || $[278] !== t108) {
1205
- t109 = /* @__PURE__ */ jsxs(DialogHeader, { children: [t106, t108] });
1206
- $[277] = t106;
1207
- $[278] = t108;
1208
- $[279] = t109;
1209
- } else t109 = $[279];
1256
+ if ($[275] !== t) {
1257
+ t109 = t("common.cancel");
1258
+ $[275] = t;
1259
+ $[276] = t109;
1260
+ } else t109 = $[276];
1210
1261
  let t110;
1211
- if ($[280] !== t) {
1212
- t110 = t("common.cancel");
1213
- $[280] = t;
1214
- $[281] = t110;
1215
- } else t110 = $[281];
1216
- let t111;
1217
- if ($[282] !== handleLocaleChangeCancel || $[283] !== t110) {
1218
- t111 = /* @__PURE__ */ jsx(Button, {
1262
+ if ($[277] !== handleLocaleChangeCancel || $[278] !== t109) {
1263
+ t110 = /* @__PURE__ */ jsx(Button, {
1219
1264
  variant: "outline",
1220
1265
  onClick: handleLocaleChangeCancel,
1221
- children: t110
1266
+ children: t109
1222
1267
  });
1223
- $[282] = handleLocaleChangeCancel;
1224
- $[283] = t110;
1225
- $[284] = t111;
1226
- } else t111 = $[284];
1268
+ $[277] = handleLocaleChangeCancel;
1269
+ $[278] = t109;
1270
+ $[279] = t110;
1271
+ } else t110 = $[279];
1272
+ let t111;
1273
+ if ($[280] !== t) {
1274
+ t111 = t("locale.discardChanges");
1275
+ $[280] = t;
1276
+ $[281] = t111;
1277
+ } else t111 = $[281];
1227
1278
  let t112;
1228
- if ($[285] !== t) {
1229
- t112 = t("locale.discardChanges");
1230
- $[285] = t;
1231
- $[286] = t112;
1232
- } else t112 = $[286];
1233
- let t113;
1234
- if ($[287] !== handleLocaleChangeConfirm || $[288] !== t112) {
1235
- t113 = /* @__PURE__ */ jsx(Button, {
1279
+ if ($[282] !== handleLocaleChangeConfirm || $[283] !== t111) {
1280
+ t112 = /* @__PURE__ */ jsx(Button, {
1236
1281
  variant: "default",
1237
1282
  onClick: handleLocaleChangeConfirm,
1238
- children: t112
1283
+ children: t111
1239
1284
  });
1240
- $[287] = handleLocaleChangeConfirm;
1241
- $[288] = t112;
1242
- $[289] = t113;
1243
- } else t113 = $[289];
1285
+ $[282] = handleLocaleChangeConfirm;
1286
+ $[283] = t111;
1287
+ $[284] = t112;
1288
+ } else t112 = $[284];
1289
+ let t113;
1290
+ if ($[285] !== t110 || $[286] !== t112) {
1291
+ t113 = /* @__PURE__ */ jsxs(DialogFooter, { children: [t110, t112] });
1292
+ $[285] = t110;
1293
+ $[286] = t112;
1294
+ $[287] = t113;
1295
+ } else t113 = $[287];
1244
1296
  let t114;
1245
- if ($[290] !== t111 || $[291] !== t113) {
1246
- t114 = /* @__PURE__ */ jsxs(DialogFooter, { children: [t111, t113] });
1247
- $[290] = t111;
1248
- $[291] = t113;
1249
- $[292] = t114;
1250
- } else t114 = $[292];
1297
+ if ($[288] !== t108 || $[289] !== t113) {
1298
+ t114 = /* @__PURE__ */ jsxs(DialogContent, { children: [t108, t113] });
1299
+ $[288] = t108;
1300
+ $[289] = t113;
1301
+ $[290] = t114;
1302
+ } else t114 = $[290];
1251
1303
  let t115;
1252
- if ($[293] !== t109 || $[294] !== t114) {
1253
- t115 = /* @__PURE__ */ jsxs(DialogContent, { children: [t109, t114] });
1254
- $[293] = t109;
1255
- $[294] = t114;
1256
- $[295] = t115;
1257
- } else t115 = $[295];
1258
- let t116;
1259
- if ($[296] !== localeChangeDialog.open || $[297] !== t104 || $[298] !== t115) {
1260
- t116 = /* @__PURE__ */ jsx(Dialog, {
1261
- open: t103,
1262
- onOpenChange: t104,
1263
- children: t115
1304
+ if ($[291] !== localeChangeDialog.open || $[292] !== t103 || $[293] !== t114) {
1305
+ t115 = /* @__PURE__ */ jsx(Dialog, {
1306
+ open: t102,
1307
+ onOpenChange: t103,
1308
+ children: t114
1264
1309
  });
1265
- $[296] = localeChangeDialog.open;
1266
- $[297] = t104;
1267
- $[298] = t115;
1268
- $[299] = t116;
1269
- } else t116 = $[299];
1270
- let t117;
1271
- if ($[300] !== form || $[301] !== t102 || $[302] !== t116 || $[303] !== t60 || $[304] !== t66 || $[305] !== t75) {
1272
- t117 = /* @__PURE__ */ jsxs(FormProvider, {
1310
+ $[291] = localeChangeDialog.open;
1311
+ $[292] = t103;
1312
+ $[293] = t114;
1313
+ $[294] = t115;
1314
+ } else t115 = $[294];
1315
+ let t116;
1316
+ if ($[295] !== form || $[296] !== t101 || $[297] !== t115 || $[298] !== t58 || $[299] !== t65 || $[300] !== t74) {
1317
+ t116 = /* @__PURE__ */ jsxs(FormProvider, {
1273
1318
  ...form,
1274
1319
  children: [
1275
- t60,
1276
- t66,
1277
- t75,
1278
- t102,
1279
- t116
1320
+ t58,
1321
+ t65,
1322
+ t74,
1323
+ t101,
1324
+ t115
1280
1325
  ]
1281
1326
  });
1282
- $[300] = form;
1283
- $[301] = t102;
1284
- $[302] = t116;
1285
- $[303] = t60;
1286
- $[304] = t66;
1287
- $[305] = t75;
1288
- $[306] = t117;
1289
- } else t117 = $[306];
1290
- return t117;
1327
+ $[295] = form;
1328
+ $[296] = t101;
1329
+ $[297] = t115;
1330
+ $[298] = t58;
1331
+ $[299] = t65;
1332
+ $[300] = t74;
1333
+ $[301] = t116;
1334
+ } else t116 = $[301];
1335
+ return t116;
1291
1336
  }
1292
1337
  function _temp2() {
1293
1338
  return window.location.reload();