@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.
- package/README.md +34 -5
- package/dist/client/blocks/block-renderer.d.mts +2 -2
- package/dist/client/blocks/block-renderer.mjs +4 -1
- package/dist/client/builder/types/action-types.d.mts +31 -3
- package/dist/client/builder/types/collection-types.d.mts +140 -0
- package/dist/client/builder/types/ui-config.d.mts +16 -2
- package/dist/client/builder/types/views.d.mts +57 -0
- package/dist/client/builder/types/widget-types.d.mts +5 -0
- package/dist/client/components/actions/action-button.mjs +137 -199
- package/dist/client/components/actions/action-dialog.mjs +198 -156
- package/dist/client/components/actions/confirmation-dialog.mjs +2 -2
- package/dist/client/components/actions/header-actions.mjs +52 -53
- package/dist/client/components/admin-link.d.mts +2 -2
- package/dist/client/components/auth/auth-loading.mjs +41 -18
- package/dist/client/components/blocks/block-fields-renderer.mjs +64 -28
- package/dist/client/components/blocks/block-insert-button.mjs +4 -4
- package/dist/client/components/blocks/block-item.mjs +2 -2
- package/dist/client/components/blocks/block-library-sidebar.mjs +2 -2
- package/dist/client/components/component-renderer.mjs +1 -1
- package/dist/client/components/fields/array-field.mjs +14 -14
- package/dist/client/components/fields/asset-preview-field.mjs +1 -1
- package/dist/client/components/fields/blocks-field/blocks-field.mjs +84 -104
- package/dist/client/components/fields/json-field.mjs +2 -2
- package/dist/client/components/fields/object-array-field.mjs +22 -22
- package/dist/client/components/fields/object-field.mjs +5 -5
- package/dist/client/components/fields/relation/displays/cards-display.mjs +16 -9
- package/dist/client/components/fields/relation/displays/chips-display.mjs +15 -12
- package/dist/client/components/fields/relation/displays/grid-display.mjs +15 -11
- package/dist/client/components/fields/relation/displays/list-display.mjs +33 -20
- package/dist/client/components/fields/relation/displays/table-display.mjs +62 -93
- package/dist/client/components/fields/relation/relation-items-display.mjs +1 -1
- package/dist/client/components/fields/relation-picker.mjs +7 -6
- package/dist/client/components/fields/relation-select.mjs +71 -47
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs +392 -82
- package/dist/client/components/fields/rich-text-editor/extensions.mjs +54 -23
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs +24 -50
- package/dist/client/components/fields/rich-text-editor/image-upload.mjs +66 -0
- package/dist/client/components/fields/rich-text-editor/index.d.mts +38 -0
- package/dist/client/components/fields/rich-text-editor/index.mjs +637 -376
- package/dist/client/components/fields/rich-text-editor/link-utils.mjs +26 -0
- package/dist/client/components/fields/rich-text-editor/presets.d.mts +10 -0
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs +27 -6
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs +464 -346
- package/dist/client/components/fields/rich-text-editor/types.d.mts +77 -0
- package/dist/client/components/fields/upload-field.mjs +45 -49
- package/dist/client/components/filter-builder/columns-tab.mjs +69 -62
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs +473 -308
- package/dist/client/components/filter-builder/filters-tab.mjs +109 -82
- package/dist/client/components/filter-builder/saved-views-tab.mjs +300 -198
- package/dist/client/components/history-sidebar.mjs +850 -340
- package/dist/client/components/layout/field-layout-renderer.mjs +6 -5
- package/dist/client/components/locale-switcher.mjs +8 -8
- package/dist/client/components/media/media-grid.mjs +12 -9
- package/dist/client/components/media/media-picker-dialog.mjs +242 -230
- package/dist/client/components/preview/live-preview-mode.mjs +1 -1
- package/dist/client/components/primitives/asset-preview.mjs +37 -22
- package/dist/client/components/primitives/date-input.mjs +212 -249
- package/dist/client/components/primitives/dropzone.mjs +192 -159
- package/dist/client/components/primitives/field-select-control.mjs +93 -0
- package/dist/client/components/primitives/select-multi.mjs +251 -230
- package/dist/client/components/primitives/select-single.mjs +345 -290
- package/dist/client/components/primitives/time-input.mjs +2 -2
- package/dist/client/components/sheets/resource-sheet.mjs +2 -0
- package/dist/client/components/ui/accordion.mjs +4 -4
- package/dist/client/components/ui/alert.mjs +3 -3
- package/dist/client/components/ui/badge.mjs +4 -4
- package/dist/client/components/ui/button.mjs +47 -37
- package/dist/client/components/ui/card.mjs +2 -2
- package/dist/client/components/ui/checkbox.mjs +1 -1
- package/dist/client/components/ui/command.mjs +5 -5
- package/dist/client/components/ui/dialog.mjs +3 -3
- package/dist/client/components/ui/drawer.mjs +1 -1
- package/dist/client/components/ui/dropdown-menu.mjs +157 -15
- package/dist/client/components/ui/empty-state.mjs +88 -59
- package/dist/client/components/ui/field.mjs +2 -2
- package/dist/client/components/ui/input-group.mjs +3 -3
- package/dist/client/components/ui/input.mjs +1 -1
- package/dist/client/components/ui/kbd.mjs +1 -1
- package/dist/client/components/ui/label.mjs +1 -1
- package/dist/client/components/ui/popover.mjs +19 -11
- package/dist/client/components/ui/scroll-fade.mjs +170 -0
- package/dist/client/components/ui/search-input.mjs +1 -1
- package/dist/client/components/ui/select.mjs +129 -27
- package/dist/client/components/ui/sheet.mjs +54 -34
- package/dist/client/components/ui/sidebar.mjs +15 -14
- package/dist/client/components/ui/skeleton.mjs +28 -12
- package/dist/client/components/ui/switch.mjs +2 -2
- package/dist/client/components/ui/table.mjs +82 -74
- package/dist/client/components/ui/tabs.mjs +26 -31
- package/dist/client/components/ui/textarea.mjs +1 -1
- package/dist/client/components/ui/tooltip.mjs +1 -1
- package/dist/client/components/widgets/chart-widget.mjs +134 -96
- package/dist/client/components/widgets/progress-widget.mjs +59 -34
- package/dist/client/components/widgets/quick-actions-widget.mjs +184 -113
- package/dist/client/components/widgets/recent-items-widget.mjs +144 -102
- package/dist/client/components/widgets/stats-widget.mjs +91 -72
- package/dist/client/components/widgets/table-widget.mjs +159 -246
- package/dist/client/components/widgets/timeline-widget.mjs +66 -43
- package/dist/client/components/widgets/value-widget.mjs +261 -152
- package/dist/client/components/widgets/widget-empty-state.mjs +88 -0
- package/dist/client/components/widgets/widget-skeletons.mjs +53 -20
- package/dist/client/contexts/focus-context.d.mts +2 -2
- package/dist/client/hooks/use-action.mjs +63 -55
- package/dist/client/hooks/use-audit-history.mjs +1 -65
- package/dist/client/hooks/use-collection-validation.mjs +36 -23
- package/dist/client/hooks/use-collection.mjs +96 -1
- package/dist/client/hooks/use-saved-views.mjs +70 -49
- package/dist/client/hooks/use-server-actions.mjs +59 -40
- package/dist/client/hooks/use-server-validation.mjs +156 -41
- package/dist/client/hooks/use-server-widget-data.mjs +1 -1
- package/dist/client/hooks/use-setup-status.d.mts +3 -3
- package/dist/client/hooks/use-setup-status.mjs +2 -2
- package/dist/client/hooks/use-transition-stage.mjs +2 -10
- package/dist/client/hooks/use-validation-error-map.mjs +31 -13
- package/dist/client/hooks/use-view-state.mjs +238 -174
- package/dist/client/i18n/date-locale.mjs +33 -0
- package/dist/client/i18n/hooks.mjs +17 -1
- package/dist/client/lib/utils.mjs +3 -2
- package/dist/client/preview/block-scope-context.d.mts +2 -2
- package/dist/client/preview/preview-banner.d.mts +2 -2
- package/dist/client/preview/preview-field.d.mts +4 -4
- package/dist/client/preview/preview-field.mjs +2 -2
- package/dist/client/runtime/provider.mjs +8 -1
- package/dist/client/runtime/translations-provider.mjs +1 -1
- package/dist/client/scope/picker.d.mts +2 -2
- package/dist/client/scope/provider.d.mts +2 -2
- package/dist/client/styles/base.css +1022 -0
- package/dist/client/styles/index.css +3 -589
- package/dist/client/utils/auto-expand-fields.mjs +4 -2
- package/dist/client/utils/keyboard-shortcuts.mjs +26 -0
- package/dist/client/utils/use-lazy-component.mjs +80 -0
- package/dist/client/views/auth/auth-layout.d.mts +18 -11
- package/dist/client/views/auth/auth-layout.mjs +291 -80
- package/dist/client/views/auth/forgot-password-form.d.mts +2 -2
- package/dist/client/views/auth/forgot-password-form.mjs +2 -2
- package/dist/client/views/auth/login-form.d.mts +2 -2
- package/dist/client/views/auth/login-form.mjs +1 -1
- package/dist/client/views/auth/reset-password-form.d.mts +2 -2
- package/dist/client/views/auth/reset-password-form.mjs +2 -2
- package/dist/client/views/auth/setup-form.d.mts +2 -2
- package/dist/client/views/collection/auto-form-fields.mjs +11 -9
- package/dist/client/views/collection/bulk-action-toolbar.mjs +173 -138
- package/dist/client/views/collection/cells/complex-cells.mjs +22 -22
- package/dist/client/views/collection/cells/primitive-cells.mjs +1 -1
- package/dist/client/views/collection/cells/relation-cells.mjs +147 -129
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs +224 -278
- package/dist/client/views/collection/cells/shared/relation-chip.mjs +64 -36
- package/dist/client/views/collection/cells/upload-cells.mjs +199 -9
- package/dist/client/views/collection/columns/build-columns.mjs +29 -9
- package/dist/client/views/collection/columns/column-defaults.mjs +2 -2
- package/dist/client/views/collection/field-renderer.mjs +50 -89
- package/dist/client/views/collection/form-view.mjs +237 -227
- package/dist/client/views/collection/table-view.mjs +1162 -229
- package/dist/client/views/collection/view-skeletons.mjs +222 -79
- package/dist/client/views/common/global-search.mjs +29 -18
- package/dist/client/views/dashboard/dashboard-grid.mjs +678 -501
- package/dist/client/views/dashboard/dashboard-widget.mjs +6 -3
- package/dist/client/views/dashboard/widget-card.mjs +23 -14
- package/dist/client/views/globals/global-form-view.mjs +634 -589
- package/dist/client/views/layout/admin-layout-provider.mjs +67 -70
- package/dist/client/views/layout/admin-layout.d.mts +3 -6
- package/dist/client/views/layout/admin-layout.mjs +149 -172
- package/dist/client/views/layout/admin-router.mjs +747 -544
- package/dist/client/views/layout/admin-sidebar.d.mts +38 -1
- package/dist/client/views/layout/admin-sidebar.mjs +751 -591
- package/dist/client/views/layout/admin-theme.d.mts +10 -0
- package/dist/client/views/layout/admin-theme.mjs +84 -0
- package/dist/client/views/layout/admin-view-layout.mjs +161 -0
- package/dist/client/views/pages/accept-invite-page.d.mts +2 -2
- package/dist/client/views/pages/accept-invite-page.mjs +49 -26
- package/dist/client/views/pages/dashboard-page.d.mts +2 -2
- package/dist/client/views/pages/forgot-password-page.d.mts +2 -2
- package/dist/client/views/pages/forgot-password-page.mjs +2 -19
- package/dist/client/views/pages/invite-page.d.mts +2 -2
- package/dist/client/views/pages/invite-page.mjs +2 -19
- package/dist/client/views/pages/login-page.d.mts +1 -1
- package/dist/client/views/pages/login-page.mjs +4 -21
- package/dist/client/views/pages/reset-password-page.d.mts +2 -2
- package/dist/client/views/pages/reset-password-page.mjs +3 -20
- package/dist/client/views/pages/setup-page.d.mts +2 -2
- package/dist/client/views/pages/setup-page.mjs +3 -20
- package/dist/client.d.mts +6 -2
- package/dist/client.mjs +2 -1
- package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
- package/dist/index.d.mts +6 -2
- package/dist/index.mjs +2 -1
- package/dist/server/augmentation/dashboard.d.mts +67 -3
- package/dist/server/augmentation/form-layout.d.mts +21 -0
- package/dist/server/augmentation/index.d.mts +1 -1
- package/dist/server/codegen/admin-client-template.mjs +4 -0
- package/dist/server/fields/blocks.d.mts +1 -1
- package/dist/server/fields/blocks.mjs +12 -0
- package/dist/server/fields/rich-text.d.mts +1 -1
- package/dist/server/fields/rich-text.mjs +8 -0
- package/dist/server/i18n/index.mjs +17 -1
- package/dist/server/i18n/messages/cs.mjs +23 -0
- package/dist/server/i18n/messages/de.mjs +23 -0
- package/dist/server/i18n/messages/en.mjs +64 -1
- package/dist/server/i18n/messages/es.mjs +23 -0
- package/dist/server/i18n/messages/fr.mjs +23 -0
- package/dist/server/i18n/messages/pl.mjs +23 -0
- package/dist/server/i18n/messages/pt.mjs +23 -0
- package/dist/server/i18n/messages/sk.mjs +83 -1
- package/dist/server/modules/admin/block/introspection.mjs +4 -1
- package/dist/server/modules/admin/block/prefetch.mjs +12 -2
- package/dist/server/modules/admin/collections/account.d.mts +50 -50
- package/dist/server/modules/admin/collections/admin-locks.d.mts +54 -54
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
- package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
- package/dist/server/modules/admin/collections/assets.d.mts +20 -20
- package/dist/server/modules/admin/collections/assets.mjs +0 -1
- package/dist/server/modules/admin/collections/session.d.mts +42 -42
- package/dist/server/modules/admin/collections/user.d.mts +12 -0
- package/dist/server/modules/admin/collections/user.mjs +40 -9
- package/dist/server/modules/admin/collections/verification.d.mts +2 -2
- package/dist/server/modules/admin/dto/admin-config.dto.mjs +2 -0
- package/dist/server/modules/admin/factories.mjs +7 -18
- package/dist/server/modules/admin/index.d.mts +1 -1
- package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
- package/dist/server/modules/admin/routes/admin-config.mjs +34 -16
- package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
- package/dist/server/modules/admin/routes/execute-action.mjs +33 -0
- package/dist/server/modules/admin/routes/locales.d.mts +2 -2
- package/dist/server/modules/admin/routes/preview.d.mts +11 -11
- package/dist/server/modules/admin/routes/reactive.d.mts +9 -9
- package/dist/server/modules/admin/routes/setup.d.mts +10 -10
- package/dist/server/modules/admin/routes/setup.mjs +7 -7
- package/dist/server/modules/admin/routes/translations.d.mts +4 -4
- package/dist/server/modules/admin/routes/translations.mjs +5 -1
- package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
- package/dist/server/modules/admin-preferences/collections/admin-preferences.mjs +1 -1
- package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +27 -27
- package/dist/server/modules/audit/.generated/module.d.mts +1 -1
- package/dist/server/modules/audit/.generated/module.mjs +1 -1
- package/dist/server/modules/audit/collections/audit-log.d.mts +2 -2
- package/dist/server/modules/audit/collections/audit-log.mjs +1 -1
- package/dist/server/modules/audit/config/app.mjs +99 -42
- package/dist/server/modules/audit/jobs/audit-cleanup.mjs +1 -1
- package/dist/server/plugin.mjs +4 -2
- package/dist/server/proxy-factories.d.mts +4 -3
- package/dist/server/proxy-factories.mjs +34 -8
- package/dist/shared/types/saved-views.types.d.mts +2 -0
- package/package.json +6 -4
- package/dist/client/components/fields/rich-text-editor/link-popover.mjs +0 -85
- package/dist/client/components/ui/spinner.mjs +0 -52
- package/dist/client/components/ui/toolbar.mjs +0 -136
- package/dist/client/contexts/breadcrumb-context.mjs +0 -60
- 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(
|
|
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
|
|
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]
|
|
514
|
-
t39$1 =
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
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 ($[
|
|
529
|
-
t41$1 = /* @__PURE__ */ jsx(
|
|
530
|
-
|
|
531
|
-
|
|
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
|
-
$[
|
|
534
|
-
|
|
535
|
-
} else t41$1 = $[99];
|
|
607
|
+
$[96] = t41$1;
|
|
608
|
+
} else t41$1 = $[96];
|
|
536
609
|
let t42$1;
|
|
537
|
-
if ($[
|
|
610
|
+
if ($[97] !== t) {
|
|
538
611
|
t42$1 = t("common.retry");
|
|
539
|
-
$[
|
|
540
|
-
$[
|
|
541
|
-
} else t42$1 = $[
|
|
612
|
+
$[97] = t;
|
|
613
|
+
$[98] = t42$1;
|
|
614
|
+
} else t42$1 = $[98];
|
|
542
615
|
let t43$1;
|
|
543
|
-
if ($[
|
|
544
|
-
t43$1 = /* @__PURE__ */
|
|
545
|
-
|
|
546
|
-
|
|
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
|
-
$[
|
|
551
|
-
$[
|
|
552
|
-
} else t43$1 = $[
|
|
624
|
+
$[99] = t42$1;
|
|
625
|
+
$[100] = t43$1;
|
|
626
|
+
} else t43$1 = $[100];
|
|
553
627
|
let t44$1;
|
|
554
|
-
if ($[
|
|
555
|
-
t44$1 = /* @__PURE__ */
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
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
|
-
$[
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
566
|
-
|
|
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 ($[
|
|
572
|
-
t39$1 = /* @__PURE__ */ jsx(
|
|
573
|
-
|
|
574
|
-
|
|
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 ($[
|
|
654
|
+
if ($[106] !== globalName || $[107] !== resolveText || $[108] !== t39) {
|
|
586
655
|
t40 = resolveText(t39, globalName);
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
591
|
-
} else t40 = $[
|
|
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 ($[
|
|
663
|
+
if ($[110] !== form || $[111] !== onSubmit) {
|
|
595
664
|
t41 = form.handleSubmit(onSubmit);
|
|
596
|
-
$[
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
599
|
-
} else t41 = $[
|
|
665
|
+
$[110] = form;
|
|
666
|
+
$[111] = onSubmit;
|
|
667
|
+
$[112] = t41;
|
|
668
|
+
} else t41 = $[112];
|
|
600
669
|
let t42;
|
|
601
|
-
if ($[115] !==
|
|
602
|
-
t42 = /* @__PURE__ */ jsx(
|
|
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
|
-
$[
|
|
617
|
-
$[
|
|
618
|
-
$[
|
|
619
|
-
$[
|
|
620
|
-
} else
|
|
621
|
-
let
|
|
622
|
-
if ($[
|
|
623
|
-
|
|
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
|
-
$[
|
|
632
|
-
$[
|
|
633
|
-
$[
|
|
634
|
-
$[
|
|
635
|
-
} else
|
|
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 ($[
|
|
638
|
-
t45 = /* @__PURE__ */ jsxs("
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
$[
|
|
647
|
-
|
|
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 ($[
|
|
653
|
-
t46 =
|
|
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-
|
|
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
|
-
$[
|
|
702
|
-
$[
|
|
703
|
-
$[
|
|
704
|
-
$[
|
|
705
|
-
} else
|
|
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 ($[
|
|
708
|
-
t49 =
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
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 ($[
|
|
767
|
+
if ($[137] !== t) {
|
|
714
768
|
t50 = t("history.title");
|
|
715
|
-
$[
|
|
716
|
-
$[
|
|
717
|
-
} else t50 = $[
|
|
769
|
+
$[137] = t;
|
|
770
|
+
$[138] = t50;
|
|
771
|
+
} else t50 = $[138];
|
|
718
772
|
let t51;
|
|
719
|
-
if ($[
|
|
720
|
-
t51 = /* @__PURE__ */ jsx(
|
|
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:
|
|
776
|
+
children: t50
|
|
737
777
|
});
|
|
738
|
-
$[
|
|
739
|
-
$[
|
|
740
|
-
} else
|
|
741
|
-
let
|
|
742
|
-
if ($[
|
|
743
|
-
|
|
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
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
children: [t51, t53]
|
|
786
|
+
size: "icon-sm",
|
|
787
|
+
onClick: t47,
|
|
788
|
+
title: t48,
|
|
789
|
+
children: [t49, t51]
|
|
751
790
|
});
|
|
752
|
-
$[
|
|
753
|
-
$[
|
|
754
|
-
$[
|
|
755
|
-
$[
|
|
756
|
-
} else
|
|
757
|
-
let
|
|
758
|
-
if ($[
|
|
759
|
-
|
|
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
|
-
$[
|
|
768
|
-
$[
|
|
769
|
-
$[
|
|
770
|
-
} else
|
|
771
|
-
let
|
|
772
|
-
if ($[
|
|
773
|
-
|
|
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:
|
|
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
|
-
$[
|
|
795
|
-
$[
|
|
796
|
-
$[
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
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
|
-
$[
|
|
807
|
-
$[
|
|
808
|
-
$[
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
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
|
-
$[
|
|
819
|
-
$[
|
|
820
|
-
$[
|
|
821
|
-
$[
|
|
822
|
-
} else
|
|
823
|
-
let
|
|
824
|
-
if ($[
|
|
825
|
-
|
|
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: [
|
|
870
|
+
children: [t56, t57]
|
|
829
871
|
});
|
|
830
|
-
$[
|
|
831
|
-
$[
|
|
832
|
-
$[
|
|
833
|
-
$[
|
|
834
|
-
} else
|
|
835
|
-
let
|
|
836
|
-
if ($[
|
|
837
|
-
|
|
838
|
-
$[
|
|
839
|
-
$[
|
|
840
|
-
} else
|
|
841
|
-
let
|
|
842
|
-
if ($[
|
|
843
|
-
|
|
844
|
-
$[
|
|
845
|
-
$[
|
|
846
|
-
} else
|
|
847
|
-
const
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
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
|
-
$[
|
|
854
|
-
} else
|
|
855
|
-
const
|
|
856
|
-
let
|
|
857
|
-
if ($[
|
|
858
|
-
|
|
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:
|
|
904
|
+
auditEntries: t59,
|
|
862
905
|
isLoadingAudit: auditLoading,
|
|
863
|
-
versions:
|
|
906
|
+
versions: t61,
|
|
907
|
+
fields: t62,
|
|
864
908
|
isLoadingVersions: versionsLoading,
|
|
865
909
|
isReverting: revertVersionMutation.isPending,
|
|
866
|
-
onRevert:
|
|
867
|
-
showVersionsTab:
|
|
910
|
+
onRevert: t63,
|
|
911
|
+
showVersionsTab: t64
|
|
868
912
|
});
|
|
869
|
-
$[
|
|
870
|
-
$[
|
|
871
|
-
$[
|
|
872
|
-
$[
|
|
873
|
-
$[
|
|
874
|
-
$[
|
|
875
|
-
$[
|
|
876
|
-
$[
|
|
877
|
-
$[
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
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
|
-
$[
|
|
886
|
-
} else
|
|
887
|
-
let
|
|
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
|
-
|
|
948
|
+
t71 = t("version.revert");
|
|
890
949
|
$[190] = t;
|
|
891
|
-
$[191] =
|
|
892
|
-
} else
|
|
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 ($[
|
|
903
|
-
t72 = t("
|
|
904
|
-
$[
|
|
905
|
-
$[
|
|
906
|
-
} else t72 = $[
|
|
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] !==
|
|
909
|
-
t73 =
|
|
910
|
-
|
|
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] !==
|
|
915
|
-
t74 = {
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
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
|
-
$[
|
|
938
|
-
$[
|
|
939
|
-
$[
|
|
940
|
-
$[
|
|
941
|
-
$[
|
|
942
|
-
} else
|
|
943
|
-
const
|
|
944
|
-
let
|
|
945
|
-
if ($[
|
|
946
|
-
|
|
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
|
-
$[
|
|
954
|
-
} else
|
|
955
|
-
let
|
|
956
|
-
if ($[
|
|
957
|
-
|
|
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
|
-
$[
|
|
962
|
-
} else
|
|
963
|
-
const
|
|
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 ($[
|
|
966
|
-
t80 =
|
|
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: [
|
|
1020
|
+
children: [t77, t79]
|
|
976
1021
|
});
|
|
977
|
-
$[
|
|
978
|
-
$[
|
|
979
|
-
} else
|
|
980
|
-
const
|
|
981
|
-
let
|
|
982
|
-
if ($[
|
|
983
|
-
|
|
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:
|
|
1030
|
+
to: t81
|
|
986
1031
|
});
|
|
987
|
-
$[
|
|
988
|
-
$[
|
|
989
|
-
$[
|
|
990
|
-
$[
|
|
991
|
-
} else
|
|
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 ($[
|
|
994
|
-
t84 = /* @__PURE__ */
|
|
995
|
-
$[
|
|
996
|
-
$[
|
|
997
|
-
|
|
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 ($[
|
|
1000
|
-
t85 =
|
|
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
|
-
$[
|
|
1012
|
-
} else
|
|
1013
|
-
let
|
|
1014
|
-
if ($[
|
|
1015
|
-
|
|
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:
|
|
1062
|
+
onCheckedChange: t85,
|
|
1018
1063
|
id: "global-transition-schedule"
|
|
1019
1064
|
});
|
|
1020
|
-
$[
|
|
1021
|
-
$[
|
|
1022
|
-
} else
|
|
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 ($[
|
|
1025
|
-
t88 =
|
|
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:
|
|
1079
|
+
children: t87
|
|
1035
1080
|
});
|
|
1036
|
-
$[
|
|
1037
|
-
$[
|
|
1038
|
-
} else
|
|
1039
|
-
let
|
|
1040
|
-
if ($[
|
|
1041
|
-
|
|
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: [
|
|
1088
|
+
children: [t86, t88]
|
|
1044
1089
|
});
|
|
1045
|
-
$[
|
|
1046
|
-
$[
|
|
1047
|
-
$[
|
|
1048
|
-
} else
|
|
1049
|
-
let
|
|
1050
|
-
if ($[
|
|
1051
|
-
|
|
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
|
-
$[
|
|
1070
|
-
$[
|
|
1071
|
-
$[
|
|
1072
|
-
$[
|
|
1073
|
-
} else
|
|
1074
|
-
let
|
|
1075
|
-
if ($[
|
|
1076
|
-
|
|
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: [
|
|
1123
|
+
children: [t89, t90]
|
|
1079
1124
|
});
|
|
1080
|
-
$[
|
|
1081
|
-
$[
|
|
1082
|
-
$[
|
|
1083
|
-
} else
|
|
1084
|
-
let
|
|
1085
|
-
if ($[
|
|
1086
|
-
|
|
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
|
-
$[
|
|
1092
|
-
} else
|
|
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 ($[
|
|
1095
|
-
t94 =
|
|
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:
|
|
1105
|
-
children:
|
|
1149
|
+
onClick: t92,
|
|
1150
|
+
children: t93
|
|
1106
1151
|
});
|
|
1107
|
-
$[
|
|
1108
|
-
$[
|
|
1109
|
-
} else
|
|
1110
|
-
const
|
|
1111
|
-
let
|
|
1112
|
-
if ($[
|
|
1113
|
-
|
|
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
|
-
$[
|
|
1118
|
-
$[
|
|
1119
|
-
} else
|
|
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] !==
|
|
1122
|
-
t98 =
|
|
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:
|
|
1177
|
+
disabled: t95,
|
|
1133
1178
|
className: "gap-2",
|
|
1134
|
-
children: [
|
|
1179
|
+
children: [t96, t97]
|
|
1135
1180
|
});
|
|
1136
|
-
$[
|
|
1137
|
-
$[
|
|
1138
|
-
$[
|
|
1139
|
-
$[
|
|
1140
|
-
$[
|
|
1141
|
-
} else
|
|
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 ($[
|
|
1144
|
-
t100 = /* @__PURE__ */ jsxs(
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
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
|
-
$[
|
|
1157
|
-
$[
|
|
1158
|
-
$[
|
|
1159
|
-
$[
|
|
1160
|
-
} else
|
|
1161
|
-
let
|
|
1162
|
-
if ($[
|
|
1163
|
-
|
|
1164
|
-
open:
|
|
1165
|
-
onOpenChange:
|
|
1166
|
-
children:
|
|
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
|
-
$[
|
|
1169
|
-
$[
|
|
1170
|
-
$[
|
|
1171
|
-
} else
|
|
1172
|
-
const
|
|
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 ($[
|
|
1175
|
-
t104 = (
|
|
1176
|
-
$[
|
|
1177
|
-
$[
|
|
1178
|
-
} else t104 = $[
|
|
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 ($[
|
|
1181
|
-
t105 =
|
|
1182
|
-
$[
|
|
1183
|
-
$[
|
|
1184
|
-
} else t105 = $[
|
|
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 ($[
|
|
1187
|
-
t106 =
|
|
1188
|
-
$[
|
|
1189
|
-
$[
|
|
1190
|
-
} else t106 = $[
|
|
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 ($[
|
|
1193
|
-
t107 =
|
|
1194
|
-
$[
|
|
1195
|
-
$[
|
|
1196
|
-
} else t107 = $[
|
|
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 ($[
|
|
1199
|
-
t108 = /* @__PURE__ */
|
|
1200
|
-
$[
|
|
1201
|
-
$[
|
|
1202
|
-
|
|
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 ($[
|
|
1205
|
-
t109 =
|
|
1206
|
-
$[
|
|
1207
|
-
$[
|
|
1208
|
-
|
|
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 ($[
|
|
1212
|
-
t110 =
|
|
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:
|
|
1266
|
+
children: t109
|
|
1222
1267
|
});
|
|
1223
|
-
$[
|
|
1224
|
-
$[
|
|
1225
|
-
$[
|
|
1226
|
-
} else
|
|
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 ($[
|
|
1229
|
-
t112 =
|
|
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:
|
|
1283
|
+
children: t111
|
|
1239
1284
|
});
|
|
1240
|
-
$[
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
} else
|
|
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 ($[
|
|
1246
|
-
t114 = /* @__PURE__ */ jsxs(
|
|
1247
|
-
$[
|
|
1248
|
-
$[
|
|
1249
|
-
$[
|
|
1250
|
-
} else t114 = $[
|
|
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 ($[
|
|
1253
|
-
t115 = /* @__PURE__ */
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
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
|
-
$[
|
|
1266
|
-
$[
|
|
1267
|
-
$[
|
|
1268
|
-
$[
|
|
1269
|
-
} else
|
|
1270
|
-
let
|
|
1271
|
-
if ($[
|
|
1272
|
-
|
|
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
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1320
|
+
t58,
|
|
1321
|
+
t65,
|
|
1322
|
+
t74,
|
|
1323
|
+
t101,
|
|
1324
|
+
t115
|
|
1280
1325
|
]
|
|
1281
1326
|
});
|
|
1282
|
-
$[
|
|
1283
|
-
$[
|
|
1284
|
-
$[
|
|
1285
|
-
$[
|
|
1286
|
-
$[
|
|
1287
|
-
$[
|
|
1288
|
-
$[
|
|
1289
|
-
} else
|
|
1290
|
-
return
|
|
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();
|