@nivaro/react 0.3.81 → 0.3.82
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.
|
@@ -56,110 +56,110 @@ import { useAutoIdPreview as y_ } from "./item-edit/AutoIdPreviewField.js";
|
|
|
56
56
|
import { changeReasonChallenge as jl, ChangeReasonDialog as __ } from "./item-edit/ChangeReasonDialog.js";
|
|
57
57
|
import { ChangesTray as b_ } from "./item-edit/ChangesTray.js";
|
|
58
58
|
import { CloneDialog as v_ } from "./item-edit/CloneDialog.js";
|
|
59
|
-
import {
|
|
60
|
-
import { columnLengthError as
|
|
61
|
-
import { configUpdateReaction as
|
|
62
|
-
import { DraftRecoveryBanner as
|
|
63
|
-
import { copiedLineLabel as
|
|
64
|
-
import { ExtLayoutSlot as
|
|
65
|
-
import { FieldAffordancesContext as
|
|
66
|
-
import { useFieldCommentsApi as
|
|
59
|
+
import { settleTouchedAfterSave as w_, useCascadeClearNotices as k_, CascadeClearNoticeContext as x_, notePersonLinkEdit as S_ } from "./item-edit/cascade-clear-notice.js";
|
|
60
|
+
import { columnLengthError as N_ } from "./item-edit/column-length.js";
|
|
61
|
+
import { configUpdateReaction as $_ } from "./item-edit/config-update.js";
|
|
62
|
+
import { DraftRecoveryBanner as C_ } from "./item-edit/DraftRecoveryBanner.js";
|
|
63
|
+
import { copiedLineLabel as R_, rehearsalBody as F_, copiedValueChanges as O_ } from "./item-edit/duplicate-rehearsal.js";
|
|
64
|
+
import { ExtLayoutSlot as j_ } from "./item-edit/ExtLayoutSlot.js";
|
|
65
|
+
import { FieldAffordancesContext as A_ } from "./item-edit/FieldAffordances.js";
|
|
66
|
+
import { useFieldCommentsApi as q_ } from "./item-edit/FieldComments.js";
|
|
67
67
|
import { FieldRow as ws } from "./item-edit/FieldRow.js";
|
|
68
|
-
import { buildTourSteps as
|
|
69
|
-
import { FieldCommentsContext as
|
|
70
|
-
import { fieldSourcesFor as
|
|
71
|
-
import { formDensityOf as
|
|
72
|
-
import { FoldArea as
|
|
73
|
-
import { StripFieldValue as
|
|
74
|
-
import { useHeaderBand as
|
|
75
|
-
import { HeaderFreshness as
|
|
76
|
-
import { HeaderRollupExplainer as
|
|
77
|
-
import { HeaderSummaryChip as
|
|
78
|
-
import { HeaderTools as
|
|
79
|
-
import { HighlightedCode as
|
|
80
|
-
import { staleDraftConflicts as
|
|
81
|
-
import { useHeaderPathPreview as
|
|
82
|
-
import { parseJson as Un, getCascadeFilters as Df, SYSTEM_FIELDS as Zt, isSentinelKey as Tr, applyDisplayTemplate as ql, useContainerWidth as
|
|
83
|
-
import { evalClientFormula as
|
|
84
|
-
import { LayoutContentBlock as
|
|
85
|
-
import { deferredSections as
|
|
86
|
-
import { restoredLineConflicts as
|
|
87
|
-
import { rowBaseBookFor as El, fetchLatestRevisions as qo, noteLineReads as
|
|
88
|
-
import { ruleValueFor as ym, NUMBER_FIELD_TYPES as
|
|
89
|
-
import { liveRecordWrite as
|
|
90
|
-
import { parseRollupSources as zf, parseRollupParentFilter as
|
|
91
|
-
import { useLockWhy as
|
|
92
|
-
import { m2aWriteMeta as
|
|
93
|
-
import { M2MStagingContext as
|
|
94
|
-
import { useM2MStaging as
|
|
95
|
-
import { MidairCollisionDialog as
|
|
96
|
-
import { invalidateM2MFor as Wf, editedRowIds as
|
|
97
|
-
import { newFieldError as
|
|
98
|
-
import { O2MStagingContext as
|
|
99
|
-
import { makePersonalDefaultChecks as
|
|
100
|
-
import { placementBehaviourNeeds as
|
|
101
|
-
import { QueueReturnChip as
|
|
102
|
-
import { endQuickCreateFollows as
|
|
103
|
-
import { QuickPicker as
|
|
104
|
-
import { RawEditSheet as
|
|
105
|
-
import { RecordChatActions as
|
|
106
|
-
import { PickerExclusionToggle as
|
|
107
|
-
import { useRecordHeaderActions as
|
|
108
|
-
import { invalidateRecordInsights as
|
|
109
|
-
import { RecordAccessLostPanel as
|
|
110
|
-
import { useRecordOutboxEntry as
|
|
111
|
-
import { RecordRecapStrip as
|
|
112
|
-
import { RecordSubscribeButton as
|
|
113
|
-
import { RuleHiddenNotes as
|
|
114
|
-
import { isNarrowRecordWidth as
|
|
115
|
-
import { rememberRecordLookups as
|
|
116
|
-
import { useStableFieldAffordances as
|
|
117
|
-
import { ruleHiddenGroups as
|
|
118
|
-
import { saveLeftWorkStaged as
|
|
119
|
-
import { refusedFieldOf as
|
|
120
|
-
import { foldStagedLinks as Vf, foldStagedRows as
|
|
121
|
-
import { staleBannerMode as
|
|
122
|
-
import { useFormUsageBeacon as
|
|
123
|
-
import { linksBeyond as Hf, usePersonalDefaults as
|
|
124
|
-
import { ValidationSummary as
|
|
125
|
-
import { useViewAsRole as
|
|
126
|
-
import { choiceLabelsFrom as
|
|
127
|
-
import { LegalHoldBanner as
|
|
128
|
-
import { useRecordIntegrity as
|
|
129
|
-
import { SlaBreachBanner as
|
|
130
|
-
import { RecordGraphSheet as
|
|
131
|
-
import { RecordReadView as
|
|
132
|
-
import { SuggestFormChange as
|
|
133
|
-
import { SupportRequestDialog as
|
|
134
|
-
import { EntryStrip as
|
|
135
|
-
import { useEntryKeyboard as
|
|
136
|
-
import { useEntryMode as
|
|
68
|
+
import { buildTourSteps as T_, useFormTourSeen as I_, sectionKeysOnScreen as E_, FormTourButton as P_, FormTour as L_ } from "./item-edit/FormTour.js";
|
|
69
|
+
import { FieldCommentsContext as M_ } from "./item-edit/field-comments-context.js";
|
|
70
|
+
import { fieldSourcesFor as K_ } from "./item-edit/field-sources.js";
|
|
71
|
+
import { formDensityOf as D_, useFormDensityCss as B_ } from "./item-edit/form-density.js";
|
|
72
|
+
import { FoldArea as z_, RowGroupCell as W_, rowMemberField as Q_ } from "./item-edit/form-structure-ui.js";
|
|
73
|
+
import { StripFieldValue as V_, GroupSection as H_, InlineDisplay as Al } from "./item-edit/GroupSection.js";
|
|
74
|
+
import { useHeaderBand as U_, HeaderTiles as J_ } from "./item-edit/HeaderBand.js";
|
|
75
|
+
import { HeaderFreshness as G_ } from "./item-edit/HeaderFreshness.js";
|
|
76
|
+
import { HeaderRollupExplainer as Y_ } from "./item-edit/HeaderRollupExplainer.js";
|
|
77
|
+
import { HeaderSummaryChip as Z_ } from "./item-edit/HeaderSummaryChip.js";
|
|
78
|
+
import { HeaderTools as X_, HeaderToolGroup as e0, HeaderMenu as t0 } from "./item-edit/HeaderTools.js";
|
|
79
|
+
import { HighlightedCode as n0 } from "./item-edit/HighlightedCode.js";
|
|
80
|
+
import { staleDraftConflicts as r0, restoredDraftCollisions as s0, clientMidairError as i0, conflictsNeedingPerson as Kf, saveIsEcho as o0, resolveHeaderCollision as a0 } from "./item-edit/header-midair.js";
|
|
81
|
+
import { useHeaderPathPreview as l0 } from "./item-edit/header-path-preview.js";
|
|
82
|
+
import { parseJson as Un, getCascadeFilters as Df, SYSTEM_FIELDS as Zt, isSentinelKey as Tr, applyDisplayTemplate as ql, useContainerWidth as d0, resolveColSpan as Tl } from "./item-edit/helpers.js";
|
|
83
|
+
import { evalClientFormula as c0 } from "./item-edit/InlineTableField.js";
|
|
84
|
+
import { LayoutContentBlock as u0, SectionIntro as f0 } from "./item-edit/LayoutContentBlock.js";
|
|
85
|
+
import { deferredSections as m0 } from "./item-edit/lazy-sections.js";
|
|
86
|
+
import { restoredLineConflicts as p0, mergeEditOf as Il } from "./item-edit/line-merge.js";
|
|
87
|
+
import { rowBaseBookFor as El, fetchLatestRevisions as qo, noteLineReads as h0, lineLabelOf as To, withRowBaseRevision as Bf, lineConflictKey as g0, resolveLineCollision as y0 } from "./item-edit/line-midair.js";
|
|
88
|
+
import { ruleValueFor as ym, NUMBER_FIELD_TYPES as _0, checkNumberEntry as b0 } from "./item-edit/line-qty.js";
|
|
89
|
+
import { liveRecordWrite as v0 } from "./item-edit/live-record-marks.js";
|
|
90
|
+
import { parseRollupSources as zf, parseRollupParentFilter as w0, matchesRollupFilter as k0, computeLiveRollup as x0, isDerivedForRecord as Pl } from "./item-edit/live-rollups.js";
|
|
91
|
+
import { useLockWhy as S0, refineLockReasons as N0, HiddenByRulesNote as $0 } from "./item-edit/lock-why.js";
|
|
92
|
+
import { m2aWriteMeta as C0, resolveM2MRelatedCollection as _m } from "./item-edit/M2MCombobox.js";
|
|
93
|
+
import { M2MStagingContext as R0 } from "./item-edit/M2MStagingContext.js";
|
|
94
|
+
import { useM2MStaging as oS } from "./item-edit/M2MStagingContext.js";
|
|
95
|
+
import { MidairCollisionDialog as F0, LineCollisionDialog as O0 } from "./item-edit/MidairCollisionDialog.js";
|
|
96
|
+
import { invalidateM2MFor as Wf, editedRowIds as j0 } from "./item-edit/m2m-invalidate.js";
|
|
97
|
+
import { newFieldError as A0, unsavedBeforeMove as q0, moveBlockedAfterSave as T0 } from "./item-edit/move-guard.js";
|
|
98
|
+
import { O2MStagingContext as I0, LiveRowsContext as E0, StagedRelationsContext as P0 } from "./item-edit/O2MStagingContext.js";
|
|
99
|
+
import { makePersonalDefaultChecks as L0 } from "./item-edit/personal-default-checks.js";
|
|
100
|
+
import { placementBehaviourNeeds as M0, usePlacementTextContext as K0, fieldIsRecommended as D0, placementFieldText as Ll, fieldCounterError as B0, confirmChangeFields as z0, missingRecommended as W0, isDisplayFormulaRow as Q0 } from "./item-edit/placement-behaviour.js";
|
|
101
|
+
import { QueueReturnChip as V0 } from "./item-edit/QueueReturnChip.js";
|
|
102
|
+
import { endQuickCreateFollows as H0 } from "./item-edit/QuickCreateButton.js";
|
|
103
|
+
import { QuickPicker as U0 } from "./item-edit/QuickPicker.js";
|
|
104
|
+
import { RawEditSheet as J0 } from "./item-edit/RawEditSheet.js";
|
|
105
|
+
import { RecordChatActions as G0 } from "./item-edit/RecordChatActions.js";
|
|
106
|
+
import { PickerExclusionToggle as Y0, ScheduleChangeButton as Z0 } from "./item-edit/RecordGrantTools.js";
|
|
107
|
+
import { useRecordHeaderActions as X0, RecordHeaderActionButtons as eb, RecordHeaderActionDialog as tb } from "./item-edit/RecordHeaderActions.js";
|
|
108
|
+
import { invalidateRecordInsights as nb, invalidateRecordNotes as rb, RecordInsightsButton as sb } from "./item-edit/RecordInsights.js";
|
|
109
|
+
import { RecordAccessLostPanel as ib, RecordLiveSync as ob } from "./item-edit/RecordLiveSync.js";
|
|
110
|
+
import { useRecordOutboxEntry as ab, RecordOutboxBanner as lb } from "./item-edit/RecordOutbox.js";
|
|
111
|
+
import { RecordRecapStrip as db } from "./item-edit/RecordRecapStrip.js";
|
|
112
|
+
import { RecordSubscribeButton as cb } from "./item-edit/RecordSubscribeButton.js";
|
|
113
|
+
import { RuleHiddenNotes as ub } from "./item-edit/RuleHiddenNotes.js";
|
|
114
|
+
import { isNarrowRecordWidth as fb } from "./item-edit/rail-width.js";
|
|
115
|
+
import { rememberRecordLookups as mb, recordLookupsFor as Qf } from "./item-edit/record-lookups.js";
|
|
116
|
+
import { useStableFieldAffordances as pb } from "./item-edit/render-stability.js";
|
|
117
|
+
import { ruleHiddenGroups as hb, groupHasReadableField as gb } from "./item-edit/rule-hidden.js";
|
|
118
|
+
import { saveLeftWorkStaged as yb, saveClosingMessage as _b, SAVE_OUTCOME_TOAST_ID as bb } from "./item-edit/save-outcome.js";
|
|
119
|
+
import { refusedFieldOf as vb } from "./item-edit/save-refusal.js";
|
|
120
|
+
import { foldStagedLinks as Vf, foldStagedRows as wb } from "./item-edit/staged-links.js";
|
|
121
|
+
import { staleBannerMode as kb, touchedEditsDiffer as xb } from "./item-edit/stale-banner.js";
|
|
122
|
+
import { useFormUsageBeacon as Sb } from "./item-edit/useFormUsageBeacon.js";
|
|
123
|
+
import { linksBeyond as Hf, usePersonalDefaults as Nb, sameDefaultValue as $b, PersonalDefaultsContext as Cb } from "./item-edit/usePersonalDefaults.js";
|
|
124
|
+
import { ValidationSummary as Rb } from "./item-edit/ValidationSummary.js";
|
|
125
|
+
import { useViewAsRole as Fb, ViewAsRoleBar as Ob } from "./item-edit/ViewAsRole.js";
|
|
126
|
+
import { choiceLabelsFrom as jb } from "./layout-editor/overview/describe-conditions.js";
|
|
127
|
+
import { LegalHoldBanner as Ab } from "./panels/LegalHoldBanner.js";
|
|
128
|
+
import { useRecordIntegrity as qb, RecordIntegrityBanner as Tb } from "./panels/RecordIntegrityBanner.js";
|
|
129
|
+
import { SlaBreachBanner as Ib } from "./panels/SlaBreachBanner.js";
|
|
130
|
+
import { RecordGraphSheet as Eb } from "./RecordGraph.js";
|
|
131
|
+
import { RecordReadView as Pb } from "./RecordReadView.js";
|
|
132
|
+
import { SuggestFormChange as Lb } from "./support/SuggestFormChange.js";
|
|
133
|
+
import { SupportRequestDialog as Mb } from "./support/SupportRequestDialog.js";
|
|
134
|
+
import { EntryStrip as Kb } from "./item-edit/entry/EntryStrip.js";
|
|
135
|
+
import { useEntryKeyboard as Db } from "./item-edit/entry/useEntryKeyboard.js";
|
|
136
|
+
import { useEntryMode as Bb } from "./item-edit/entry/useEntryMode.js";
|
|
137
137
|
import { FindInRecordButton as Uf } from "./item-edit/FindInRecord.js";
|
|
138
|
-
import { RecordViewersChip as
|
|
138
|
+
import { RecordViewersChip as zb } from "./item-edit/RecordViewersChip.js";
|
|
139
139
|
import { StepsBar as Jf } from "./item-edit/StepsBar.js";
|
|
140
|
-
import { SummaryPanel as
|
|
141
|
-
import { designWrap as
|
|
142
|
-
import { DesignCanvas as
|
|
143
|
-
import { revealGroupKey as
|
|
144
|
-
import { GridGuides as
|
|
145
|
-
import { readDesignSummaryCollapsed as Zf, DESIGN_SUMMARY_MIN_CANVAS as
|
|
146
|
-
import { RecordEventPathSheet as
|
|
147
|
-
import { FormSkeleton as
|
|
140
|
+
import { SummaryPanel as Wb, M2OSummaryValue as bm } from "./item-edit/SummaryPanel.js";
|
|
141
|
+
import { designWrap as Qb, DesignDropBody as Gf, DesignDropZone as Yf } from "./layout-editor/DesignNode.js";
|
|
142
|
+
import { DesignCanvas as Vb } from "./layout-editor/design-canvas.js";
|
|
143
|
+
import { revealGroupKey as Hb, useLayoutDesign as Ub } from "./layout-editor/design-context.js";
|
|
144
|
+
import { GridGuides as Jb } from "./layout-editor/grid-guides.js";
|
|
145
|
+
import { readDesignSummaryCollapsed as Zf, DESIGN_SUMMARY_MIN_CANVAS as Gb, writeDesignSummaryCollapsed as Yb } from "./layout-editor/summary-pref.js";
|
|
146
|
+
import { RecordEventPathSheet as Zb } from "./panels/IntegrationActivitySection.js";
|
|
147
|
+
import { FormSkeleton as Xb } from "./Skeletons.js";
|
|
148
148
|
import { SlowNoticeView as Xf } from "./SlowNotice.js";
|
|
149
|
-
import { TipLayer as
|
|
149
|
+
import { TipLayer as ev } from "./TipLayer.js";
|
|
150
150
|
import { Button as on } from "./ui/button.js";
|
|
151
151
|
import { Dialog as Ko, DialogContent as Do, DialogHeader as Bo, DialogTitle as zo, DialogBody as Wo, DialogFooter as Qo } from "./ui/dialog.js";
|
|
152
152
|
import { Popover as vm, PopoverTrigger as wm, PopoverContent as km } from "./ui/popover.js";
|
|
153
153
|
import { Skeleton as hi } from "./ui/skeleton.js";
|
|
154
154
|
import { WidgetSlot as Io } from "./WidgetSlot.js";
|
|
155
|
-
import { useItemLock as
|
|
156
|
-
import { isAccessRefusal as em, deniedToastAction as
|
|
157
|
-
import { AccessDeniedPanel as
|
|
158
|
-
import { RevisionsPanel as
|
|
159
|
-
import { ItemActionButtons as
|
|
160
|
-
import { CustomActionButtons as
|
|
155
|
+
import { useItemLock as tv, LockHolderButton as nv, ItemLockBanner as rv } from "./panels/ItemLockBanner.js";
|
|
156
|
+
import { isAccessRefusal as em, deniedToastAction as sv, WhyDeniedButton as iv } from "./panels/AccessInsights.js";
|
|
157
|
+
import { AccessDeniedPanel as ov } from "./panels/AccessDeniedPanel.js";
|
|
158
|
+
import { RevisionsPanel as av } from "./panels/RevisionsPanel.js";
|
|
159
|
+
import { ItemActionButtons as lv } from "./panels/ItemActionButtons.js";
|
|
160
|
+
import { CustomActionButtons as dv } from "./panels/CustomActionButtons.js";
|
|
161
161
|
import { PipelineTransitionButtons as tm, PipelinePanel as Eo } from "./panels/PipelinePanel.js";
|
|
162
|
-
import { OwnersInlineCompact as
|
|
162
|
+
import { OwnersInlineCompact as cv, OwnersInline as uv } from "./item-edit/UserChip.js";
|
|
163
163
|
import { ExternalRequestsChip as nm } from "./panels/ExternalRequestsChip.js";
|
|
164
164
|
import { CommentPanel as Po } from "./panels/CommentPanel.js";
|
|
165
165
|
import { TaskPanel as Lo } from "./panels/TaskPanel.js";
|
|
@@ -167,9 +167,9 @@ import { AddendumPanel as Mo } from "./panels/AddendumPanel.js";
|
|
|
167
167
|
import { ReferencedByPanel as Ml } from "./panels/ReferencedByPanel.js";
|
|
168
168
|
import { RelatedRecordsPanel as Kl } from "./panels/RelatedRecordsPanel.js";
|
|
169
169
|
import { WorkflowPanel as Dl } from "./panels/WorkflowPanel.js";
|
|
170
|
-
import { OwnersSlot as
|
|
170
|
+
import { OwnersSlot as fv } from "./panels/OwnersSlot.js";
|
|
171
171
|
let Bl = !1;
|
|
172
|
-
const
|
|
172
|
+
const mv = "border-r flex w-6 shrink-0 items-start justify-center pt-3 bg-slate-100 text-slate-500 hover:bg-slate-200/70 hover:text-slate-700 transition-colors dark:bg-white/[0.04] dark:hover:bg-white/[0.08] dark:hover:text-slate-300";
|
|
173
173
|
function rm(i, k, N) {
|
|
174
174
|
if (/[\p{L}\p{N}]/u.test(i)) return i.trim();
|
|
175
175
|
for (const q of ["name", "title", "label"]) {
|
|
@@ -197,28 +197,28 @@ function im(i) {
|
|
|
197
197
|
} : {}
|
|
198
198
|
}));
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function pv(i) {
|
|
201
201
|
const k = i.attach_file_field;
|
|
202
202
|
return typeof k == "string" && k ? k : null;
|
|
203
203
|
}
|
|
204
204
|
function gi({ children: i }) {
|
|
205
|
-
const k = $(null), N =
|
|
205
|
+
const k = $(null), N = d0(k), q = Ub();
|
|
206
206
|
return /* @__PURE__ */ _("div", { ref: k, className: De(q && "relative", "grid grid-cols-12 gap-4 items-start"), children: [
|
|
207
|
-
/* @__PURE__ */ a(
|
|
207
|
+
/* @__PURE__ */ a(Jb, {}),
|
|
208
208
|
i(N)
|
|
209
209
|
] });
|
|
210
210
|
}
|
|
211
211
|
const om = "nvr-form-validation";
|
|
212
|
-
function
|
|
212
|
+
function hv({ status: i }) {
|
|
213
213
|
return i === "running" ? /* @__PURE__ */ a(Ir, { className: "h-4 w-4 animate-spin text-nvr-cyan shrink-0" }) : i === "done" ? /* @__PURE__ */ a(pr, { className: "h-4 w-4 text-green-500 shrink-0" }) : i === "error" ? /* @__PURE__ */ a(mm, { className: "h-4 w-4 text-red-500 shrink-0" }) : /* @__PURE__ */ a("div", { className: "h-4 w-4 rounded-full border-2 border-slate-200 dark:border-slate-600 shrink-0" });
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function gv({
|
|
216
216
|
open: i,
|
|
217
217
|
steps: k,
|
|
218
218
|
onClose: N,
|
|
219
219
|
record: q
|
|
220
220
|
}) {
|
|
221
|
-
const O = k.length > 0 && k.every((W) => W.status === "done" || W.status === "error"), L = k.some((W) => W.status === "error"), ne = O || L, le = k.filter((W) => W.status === "done").length,
|
|
221
|
+
const O = k.length > 0 && k.every((W) => W.status === "done" || W.status === "error"), L = k.some((W) => W.status === "error"), ne = O || L, le = k.filter((W) => W.status === "done").length, Pe = k.length, Ne = Pe > 0 ? Math.round(le / Pe * 100) : 0;
|
|
222
222
|
return /* @__PURE__ */ a(
|
|
223
223
|
Ko,
|
|
224
224
|
{
|
|
@@ -252,7 +252,7 @@ function hv({
|
|
|
252
252
|
/* @__PURE__ */ _("span", { className: "text-[11px] text-slate-400 tabular-nums shrink-0", children: [
|
|
253
253
|
le,
|
|
254
254
|
"/",
|
|
255
|
-
|
|
255
|
+
Pe
|
|
256
256
|
] })
|
|
257
257
|
] })
|
|
258
258
|
] }),
|
|
@@ -269,7 +269,7 @@ function hv({
|
|
|
269
269
|
W.status === "pending" && "border-slate-100 bg-slate-50/60 dark:border-border dark:bg-muted/30"
|
|
270
270
|
),
|
|
271
271
|
children: /* @__PURE__ */ _("div", { className: "flex items-start gap-2.5", children: [
|
|
272
|
-
/* @__PURE__ */ a("div", { className: "mt-0.5 shrink-0", children: /* @__PURE__ */ a(
|
|
272
|
+
/* @__PURE__ */ a("div", { className: "mt-0.5 shrink-0", children: /* @__PURE__ */ a(hv, { status: W.status }) }),
|
|
273
273
|
/* @__PURE__ */ _("div", { className: "flex-1 min-w-0", children: [
|
|
274
274
|
/* @__PURE__ */ _("div", { className: "flex items-center justify-between gap-2", children: [
|
|
275
275
|
/* @__PURE__ */ a(
|
|
@@ -298,7 +298,7 @@ function hv({
|
|
|
298
298
|
W.denied && q && /* @__PURE__ */ _(Ct, { children: [
|
|
299
299
|
" ",
|
|
300
300
|
/* @__PURE__ */ a(
|
|
301
|
-
|
|
301
|
+
iv,
|
|
302
302
|
{
|
|
303
303
|
collection: q.collection,
|
|
304
304
|
itemId: q.itemId,
|
|
@@ -352,7 +352,7 @@ function hv({
|
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function yv(i, k) {
|
|
356
356
|
if (i == null || i === "") return "—";
|
|
357
357
|
if (typeof i == "boolean") return i ? "Yes" : "No";
|
|
358
358
|
const N = Number(i);
|
|
@@ -398,16 +398,16 @@ function yi({
|
|
|
398
398
|
k == null ? void 0 : k.options
|
|
399
399
|
)) == null ? void 0 : L.choices;
|
|
400
400
|
if (Array.isArray(q) && q.length > 0) {
|
|
401
|
-
const le = (Array.isArray(i) ? i : [i]).map((
|
|
402
|
-
const Ne = q.find((W) => String(W.value) === String(
|
|
403
|
-
return Ne != null && Ne.text ? Wl(Ne.text) : String(
|
|
401
|
+
const le = (Array.isArray(i) ? i : [i]).map((Pe) => {
|
|
402
|
+
const Ne = q.find((W) => String(W.value) === String(Pe));
|
|
403
|
+
return Ne != null && Ne.text ? Wl(Ne.text) : String(Pe);
|
|
404
404
|
});
|
|
405
405
|
return /* @__PURE__ */ a(Ct, { children: le.join(", ") });
|
|
406
406
|
}
|
|
407
407
|
const O = typeof i == "object" ? JSON.stringify(i) : String(i);
|
|
408
408
|
return /* @__PURE__ */ a(Ct, { children: O.length > 60 ? `${O.slice(0, 60)}…` : O });
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function _v({
|
|
411
411
|
open: i,
|
|
412
412
|
onClose: k,
|
|
413
413
|
collection: N,
|
|
@@ -416,7 +416,7 @@ function yv({
|
|
|
416
416
|
draft: L,
|
|
417
417
|
initial: ne,
|
|
418
418
|
m2mLinks: le,
|
|
419
|
-
m2mUnlinks:
|
|
419
|
+
m2mUnlinks: Pe,
|
|
420
420
|
pendingRowCount: Ne,
|
|
421
421
|
pendingDeleteCount: W
|
|
422
422
|
}) {
|
|
@@ -445,7 +445,7 @@ function yv({
|
|
|
445
445
|
label: Gn(H, Er.get(H)),
|
|
446
446
|
ids: ue,
|
|
447
447
|
target: xs(H)
|
|
448
|
-
})), bi = [...
|
|
448
|
+
})), bi = [...Pe.entries()].filter(([, H]) => H.size > 0).map(([H, ue]) => ({ key: H, label: Gn(H, Er.get(H)), count: ue.size })), Lr = Pr.reduce((H, ue) => H + ue.ids.length, 0), vi = bi.reduce((H, ue) => H + ue.count, 0), Mr = 5;
|
|
449
449
|
return /* @__PURE__ */ _(
|
|
450
450
|
"div",
|
|
451
451
|
{
|
|
@@ -517,7 +517,7 @@ function yv({
|
|
|
517
517
|
function et(i, k) {
|
|
518
518
|
return i === k || i == null && k == null ? !0 : i == null || k == null ? !1 : typeof i == "string" && typeof k == "number" || typeof i == "number" && typeof k == "string" ? String(i) === String(k) : JSON.stringify(i) === JSON.stringify(k);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function bv(i, k) {
|
|
521
521
|
if (!k) return i;
|
|
522
522
|
const N = { ...i };
|
|
523
523
|
for (const [q, O] of Object.entries(k))
|
|
@@ -538,7 +538,7 @@ function lm(i, k) {
|
|
|
538
538
|
}
|
|
539
539
|
return N ?? i;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function vv(i, k, N, q) {
|
|
542
542
|
return new Set(i.filter((O) => k.has(O) && !et(N[O], q[O])));
|
|
543
543
|
}
|
|
544
544
|
function Ql(i) {
|
|
@@ -551,7 +551,7 @@ function Ql(i) {
|
|
|
551
551
|
})() : k;
|
|
552
552
|
return !!N && typeof N == "object" && !!N.no_duplicate;
|
|
553
553
|
}
|
|
554
|
-
const
|
|
554
|
+
const wv = /* @__PURE__ */ new Set([
|
|
555
555
|
"id",
|
|
556
556
|
"user_created",
|
|
557
557
|
"date_created",
|
|
@@ -563,30 +563,30 @@ const vv = /* @__PURE__ */ new Set([
|
|
|
563
563
|
"changed",
|
|
564
564
|
"creator"
|
|
565
565
|
]);
|
|
566
|
-
function
|
|
566
|
+
function kv(i, k, N) {
|
|
567
567
|
const q = new Set(
|
|
568
568
|
(N ?? []).filter((L) => L.readonly || Ql(L)).map((L) => L.field)
|
|
569
569
|
), O = {};
|
|
570
570
|
for (const [L, ne] of Object.entries(i))
|
|
571
|
-
|
|
571
|
+
wv.has(L) || L === k || q.has(L) || ne === null || typeof ne == "object" || (O[L] = ne);
|
|
572
572
|
return O;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function xv(i, k) {
|
|
575
575
|
const N = i === "" ? null : i, q = k === "" ? null : k;
|
|
576
576
|
if (et(N, q)) return !0;
|
|
577
577
|
const O = (le) => typeof le == "number" ? le : typeof le == "string" && /^\s*-?\d+(\.\d+)?\s*$/.test(le) ? Number(le) : Number.NaN, L = O(N), ne = O(q);
|
|
578
578
|
return Number.isFinite(L) && Number.isFinite(ne) && L === ne;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
return Object.keys(i).some((N) => !N.startsWith("__") && !
|
|
580
|
+
function Sv(i, k) {
|
|
581
|
+
return Object.keys(i).some((N) => !N.startsWith("__") && !xv(i[N], k[N]));
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Nv(i, k, N, q) {
|
|
584
584
|
return i.some((O) => k.has(O) && !et(N[O], q[O]));
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function $v(i, k, N, q) {
|
|
587
587
|
return i[0] !== "o2m-rows" || String(i[3]) !== String(k) || i.length === 5 && i[4] === "" || !Array.isArray(q) || !Array.isArray(N) ? !1 : i.length === 4 ? q.length !== N.length : q.length > N.length;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Cv(i, k, N) {
|
|
590
590
|
const q = {};
|
|
591
591
|
for (const O of i) {
|
|
592
592
|
const L = O.validation_rules;
|
|
@@ -600,14 +600,14 @@ function $v(i, k, N) {
|
|
|
600
600
|
if (Array.isArray(ne))
|
|
601
601
|
for (const le of ne) {
|
|
602
602
|
if (!le || le.soft || le.type !== "gte_field" && le.type !== "lte_field" || O.field !== N && le.field !== N) continue;
|
|
603
|
-
const
|
|
603
|
+
const Pe = gm(
|
|
604
604
|
le,
|
|
605
605
|
ym(O.type, k[O.field]),
|
|
606
606
|
O.label ?? be(O.field),
|
|
607
607
|
k
|
|
608
608
|
);
|
|
609
|
-
if (
|
|
610
|
-
q[O.field] =
|
|
609
|
+
if (Pe) {
|
|
610
|
+
q[O.field] = Pe;
|
|
611
611
|
break;
|
|
612
612
|
}
|
|
613
613
|
O.field in q || (q[O.field] = null);
|
|
@@ -616,37 +616,37 @@ function $v(i, k, N) {
|
|
|
616
616
|
return q;
|
|
617
617
|
}
|
|
618
618
|
const dm = "Add at least one line";
|
|
619
|
-
function
|
|
619
|
+
function Rv(i, k, N) {
|
|
620
620
|
if (i) return !1;
|
|
621
621
|
const q = k.filter(
|
|
622
622
|
(O) => !O.hidden && !Zt.has(O.field) && !Tr(O.field) && O.layout_assigned !== !1
|
|
623
623
|
);
|
|
624
624
|
return q.length > 0 && q.every((O) => N(O.field));
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Fv(i, k) {
|
|
627
627
|
var q;
|
|
628
628
|
return `${((q = k.find((O) => O.field === i.field)) == null ? void 0 : q.label) || be(i.field)} — ${i.message}`;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Ov(i, k, N, q) {
|
|
631
631
|
if (N || q(k)) return !0;
|
|
632
632
|
const O = typeof i.field == "string" ? i.field : "";
|
|
633
633
|
return !!O && (i.type === "gte_field" || i.type === "lte_field" || i.type === "required_if") && q(O);
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function jv(i) {
|
|
636
636
|
var q;
|
|
637
637
|
const k = i == null ? void 0 : i.response, N = (k == null ? void 0 : k.code) ?? ((q = k == null ? void 0 : k.data) == null ? void 0 : q.code);
|
|
638
638
|
return typeof N == "string" ? N : null;
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Av(i, k) {
|
|
641
641
|
return Object.keys(k).filter(
|
|
642
642
|
(N) => !N.startsWith("__") && Object.hasOwn(i, N) && i[N] !== void 0 && !et(i[N], k[N])
|
|
643
643
|
);
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function qv(i, k) {
|
|
646
646
|
return i != null && i.user_id ? !!k && String(i.user_id).toUpperCase() === String(k).toUpperCase() ? "You, in another tab" : i.user_name ?? null : null;
|
|
647
647
|
}
|
|
648
648
|
const zl = "Not an available option — pick another or clear it";
|
|
649
|
-
function
|
|
649
|
+
function Tv(i, k) {
|
|
650
650
|
return !k || Object.keys(k).length === 0 ? i : { ...i, ...k };
|
|
651
651
|
}
|
|
652
652
|
class cm extends Error {
|
|
@@ -669,7 +669,7 @@ function Vl(i, k, N) {
|
|
|
669
669
|
stagingKey: O.one_field ?? `${O.many_collection}.${L}`
|
|
670
670
|
} : null;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Iv(i, k, N) {
|
|
673
673
|
const q = [];
|
|
674
674
|
for (const [O, L] of Object.entries(i)) {
|
|
675
675
|
if (O === "__links" || L == null || L === "" || !(k ?? []).some(
|
|
@@ -677,24 +677,24 @@ function Tv(i, k, N) {
|
|
|
677
677
|
)) continue;
|
|
678
678
|
const le = Vl(k, N, O);
|
|
679
679
|
if (!le) continue;
|
|
680
|
-
const
|
|
680
|
+
const Pe = [];
|
|
681
681
|
for (const Ne of Array.isArray(L) ? L : [L]) {
|
|
682
682
|
const W = Ne && typeof Ne == "object" ? Ne.id ?? Ne.item ?? Ne[le.junctionField] : Ne;
|
|
683
|
-
(typeof W == "string" && W || typeof W == "number") &&
|
|
683
|
+
(typeof W == "string" && W || typeof W == "number") && Pe.push(W);
|
|
684
684
|
}
|
|
685
|
-
q.push({ field: O, stagingKey: le.stagingKey, ids:
|
|
685
|
+
q.push({ field: O, stagingKey: le.stagingKey, ids: Pe });
|
|
686
686
|
}
|
|
687
687
|
return q;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Ev(i, k, N, q) {
|
|
690
690
|
const O = {};
|
|
691
691
|
for (const [L, ne] of k) {
|
|
692
692
|
const le = i.find((W) => W.field === L);
|
|
693
693
|
if (!le || le.hidden || le.readonly || le.layout_assigned === !1) continue;
|
|
694
|
-
const
|
|
694
|
+
const Pe = (q ?? []).find(
|
|
695
695
|
(W) => W.many_collection === ne.manyCollection && W.many_field === ne.junctionField
|
|
696
696
|
);
|
|
697
|
-
if (_m(
|
|
697
|
+
if (_m(Pe) === "nivaro_files") continue;
|
|
698
698
|
const Ne = N[L];
|
|
699
699
|
!(Ne != null && Ne.known) || Ne.ids.length === 0 || (O[ne.stagingKey] = [...Ne.ids]);
|
|
700
700
|
}
|
|
@@ -709,39 +709,39 @@ function um(i, k) {
|
|
|
709
709
|
const N = new Set(k.map(String));
|
|
710
710
|
return i.filter((q) => N.has(String(q)));
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function Pv(i, k) {
|
|
713
713
|
if (!(i == null || i === ""))
|
|
714
714
|
return k.find((N) => String(N) === String(i));
|
|
715
715
|
}
|
|
716
716
|
function Sm(i) {
|
|
717
717
|
return i == null ? "" : String(i);
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Lv(i, k, N, q) {
|
|
720
720
|
const O = i.get(k);
|
|
721
721
|
return !O || O.trigger !== N || q == null || q === "" ? !1 : O.value === Sm(q);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Mv(i, k) {
|
|
724
724
|
const N = String(k).toLowerCase();
|
|
725
725
|
return i.some((q) => String(q).toLowerCase() === N) ? i : [...i, k];
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Kv(i, k) {
|
|
728
728
|
const N = new Set((k ?? []).map(String));
|
|
729
729
|
return i.filter((q) => !N.has(String(q)));
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Dv(i, k, N, q, O, L) {
|
|
732
732
|
return i && !k ? { known: !1, ids: [] } : {
|
|
733
733
|
known: !0,
|
|
734
734
|
ids: xm(N, q, O, L)
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Bv(i, k) {
|
|
738
738
|
var q;
|
|
739
739
|
const N = {};
|
|
740
740
|
for (const [O, L] of Object.entries(i))
|
|
741
741
|
(q = k[O]) != null && q.known && (N[O] = L);
|
|
742
742
|
return N;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function zv(i, k) {
|
|
745
745
|
const N = {}, q = {};
|
|
746
746
|
if (!i) return { scalar: N, alias: q };
|
|
747
747
|
const O = k ?? /* @__PURE__ */ new Set();
|
|
@@ -749,7 +749,7 @@ function Bv(i, k) {
|
|
|
749
749
|
O.has(L) ? q[L] = Array.isArray(ne) ? ne : ne != null ? [ne] : [] : N[L] = ne;
|
|
750
750
|
return { scalar: N, alias: q };
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function Wv({
|
|
753
753
|
collection: i,
|
|
754
754
|
itemId: k,
|
|
755
755
|
origin: N,
|
|
@@ -757,7 +757,7 @@ function zv({
|
|
|
757
757
|
timestamp: O,
|
|
758
758
|
api: L
|
|
759
759
|
}) {
|
|
760
|
-
const [ne, le] = P(!1),
|
|
760
|
+
const [ne, le] = P(!1), Pe = A(() => Mg(L.body), [L.body]), Ne = L.api_key_name ? `API key "${L.api_key_name}"` : q ? `${q}'s token` : "a token";
|
|
761
761
|
return /* @__PURE__ */ _(Ct, { children: [
|
|
762
762
|
/* @__PURE__ */ _(vm, { children: [
|
|
763
763
|
/* @__PURE__ */ a(wm, { asChild: !0, children: /* @__PURE__ */ a(
|
|
@@ -786,15 +786,15 @@ function zv({
|
|
|
786
786
|
/* @__PURE__ */ a("dd", { className: "text-slate-700 dark:text-slate-200", children: _i(L.at) })
|
|
787
787
|
] }),
|
|
788
788
|
/* @__PURE__ */ a("p", { className: "mt-2 text-[11px] font-semibold uppercase tracking-wide text-slate-500", children: "Original payload" }),
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
789
|
+
Pe ? /* @__PURE__ */ _("div", { className: "mt-1 space-y-1.5", children: [
|
|
790
|
+
Pe.sections.map((W) => /* @__PURE__ */ _("div", { children: [
|
|
791
|
+
Pe.sections.length > 1 && /* @__PURE__ */ a("p", { className: "mb-0.5 text-[10px] font-medium text-slate-400", children: W.title }),
|
|
792
792
|
/* @__PURE__ */ a(
|
|
793
793
|
"pre",
|
|
794
794
|
{
|
|
795
795
|
"data-provenance-payload": W.kind,
|
|
796
796
|
className: "max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-md border border-slate-200 bg-slate-50 p-2 font-mono text-[10.5px] leading-snug text-slate-700 dark:border-border dark:bg-[#0f172a] dark:text-slate-200",
|
|
797
|
-
children: /* @__PURE__ */ a(
|
|
797
|
+
children: /* @__PURE__ */ a(n0, { kind: W.kind, text: W.text })
|
|
798
798
|
}
|
|
799
799
|
)
|
|
800
800
|
] }, W.title)),
|
|
@@ -804,7 +804,7 @@ function zv({
|
|
|
804
804
|
type: "button",
|
|
805
805
|
onClick: () => {
|
|
806
806
|
var W;
|
|
807
|
-
(W = navigator.clipboard) == null || W.writeText(
|
|
807
|
+
(W = navigator.clipboard) == null || W.writeText(Pe.sections.map((Jn) => Jn.text).join(`
|
|
808
808
|
|
|
809
809
|
`)).then(() => _e.success("Payload copied"));
|
|
810
810
|
},
|
|
@@ -826,7 +826,7 @@ function zv({
|
|
|
826
826
|
] })
|
|
827
827
|
] }),
|
|
828
828
|
ne && /* @__PURE__ */ a(
|
|
829
|
-
|
|
829
|
+
Zb,
|
|
830
830
|
{
|
|
831
831
|
target: {
|
|
832
832
|
source: "core:inbound",
|
|
@@ -839,21 +839,21 @@ function zv({
|
|
|
839
839
|
)
|
|
840
840
|
] });
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Qv(i) {
|
|
843
843
|
const k = pm();
|
|
844
844
|
return i.map((N) => vy(N, k));
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Vv({
|
|
847
847
|
affordances: i,
|
|
848
848
|
personalDefaults: k,
|
|
849
849
|
sources: N,
|
|
850
850
|
fieldComments: q,
|
|
851
851
|
children: O
|
|
852
852
|
}) {
|
|
853
|
-
return /* @__PURE__ */ a(
|
|
853
|
+
return /* @__PURE__ */ a(A_.Provider, { value: i, children: /* @__PURE__ */ a(Cb.Provider, { value: k, children: /* @__PURE__ */ a(n_.Provider, { value: N ?? null, children: /* @__PURE__ */ a(M_.Provider, { value: q, children: O }) }) }) });
|
|
854
854
|
}
|
|
855
|
-
function
|
|
856
|
-
return i.design ? /* @__PURE__ */ a(
|
|
855
|
+
function rS(i) {
|
|
856
|
+
return i.design ? /* @__PURE__ */ a(Vb, { design: i.design.context, onRefusedWrite: i.design.onRefusedWrite, children: /* @__PURE__ */ a(fm, { ...i }) }) : /* @__PURE__ */ a(fm, { ...i });
|
|
857
857
|
}
|
|
858
858
|
function fm({
|
|
859
859
|
collection: i,
|
|
@@ -864,7 +864,7 @@ function fm({
|
|
|
864
864
|
onBack: L,
|
|
865
865
|
onSaved: ne,
|
|
866
866
|
onDeleted: le,
|
|
867
|
-
showHeader:
|
|
867
|
+
showHeader: Pe = !0,
|
|
868
868
|
headerExtra: Ne,
|
|
869
869
|
focusField: W,
|
|
870
870
|
showItemActions: Jn = !1,
|
|
@@ -901,7 +901,7 @@ function fm({
|
|
|
901
901
|
layoutEditing: Jl = !1
|
|
902
902
|
}) {
|
|
903
903
|
var Qu, Vu, Hu, Uu, Ju, Gu, Yu, Zu, Xu, ef, tf, nf, rf, sf, of, af, lf, df, cf, uf, ff, mf, pf, hf, gf, yf, _f, bf, vf;
|
|
904
|
-
const I = Kt != null, Be = (Kt == null ? void 0 : Kt.context) ?? null, Ho = Be != null, $n = !!(Be != null && Be.showHidden), R = Rg(), wi = Ry(), Dn = Fg(), { isAdmin: qt, userId:
|
|
904
|
+
const I = Kt != null, Be = (Kt == null ? void 0 : Kt.context) ?? null, Ho = Be != null, $n = !!(Be != null && Be.showHidden), R = Rg(), wi = Ry(), Dn = Fg(), { isAdmin: qt, userId: Le } = Ng(Og), nt = Fb(i, qt), Gl = jg(), [Am, Yl] = P(!1), Bn = ((Vu = (Qu = nt.preview) == null ? void 0 : Qu.layout) == null ? void 0 : Vu.slug) ?? N, X = cg(), qm = ((Hu = Kt == null ? void 0 : Kt.record) == null ? void 0 : Hu.id) != null ? String(Kt.record.id) : void 0, Uo = k ?? (I ? qm : void 0), p = Uo ?? "new", m = !Uo || Uo === "new", [Xn] = P(wy), { data: Tm } = $t({
|
|
905
905
|
// Desktop keeps the key the host's own /active read shares (admin ItemEdit).
|
|
906
906
|
queryKey: [
|
|
907
907
|
"active-layout",
|
|
@@ -922,7 +922,7 @@ function fm({
|
|
|
922
922
|
}), w = I ? Kt.layout : Tm, Dt = ((Uu = w == null ? void 0 : w.layout) == null ? void 0 : Uu.id) ?? null, [Zl, Xl] = P(() => /* @__PURE__ */ new Set());
|
|
923
923
|
z(() => Xl(/* @__PURE__ */ new Set()), [i, p, Dt]);
|
|
924
924
|
const Ns = A(
|
|
925
|
-
() =>
|
|
925
|
+
() => m0(w, Zl, { design: I }),
|
|
926
926
|
[w, Zl, I]
|
|
927
927
|
), Im = ce((e) => {
|
|
928
928
|
Xl((t) => t.has(e) ? t : /* @__PURE__ */ new Set([...t, e]));
|
|
@@ -935,7 +935,7 @@ function fm({
|
|
|
935
935
|
enabled: !m && !I
|
|
936
936
|
}), Kr = I ? Kt.layout.assignments : null, {
|
|
937
937
|
data: ki,
|
|
938
|
-
isLoading:
|
|
938
|
+
isLoading: Hv,
|
|
939
939
|
isFetched: xi
|
|
940
940
|
} = $t({
|
|
941
941
|
queryKey: Kr ? ["layout-editor", "field-config", i, Kr] : ["field-config", i, Dt],
|
|
@@ -951,7 +951,7 @@ function fm({
|
|
|
951
951
|
// A draft edit re-asks; the canvas keeps the last answer meanwhile.
|
|
952
952
|
placeholderData: Kr ? (e) => e : void 0,
|
|
953
953
|
// Layout text in the reader's language (#2665); the canvas edits the text as written.
|
|
954
|
-
select: Kr ? void 0 :
|
|
954
|
+
select: Kr ? void 0 : Qv,
|
|
955
955
|
// Wait for the layout either way, not just when a slug pins one. Without
|
|
956
956
|
// this the field config fetched immediately with layoutId = null — the
|
|
957
957
|
// LAYOUT-LESS default field set — painted that, then refetched under a new
|
|
@@ -963,12 +963,12 @@ function fm({
|
|
|
963
963
|
}), Jo = Be == null ? void 0 : Be.ghost, j = A(() => !Jo || !m || !ki ? ki : ki.map((e) => {
|
|
964
964
|
const t = Jo(e.field);
|
|
965
965
|
return t ? { ...e, placeholder: t } : e;
|
|
966
|
-
}), [Jo, m, ki]), ed = A(() =>
|
|
966
|
+
}), [Jo, m, ki]), ed = A(() => M0(j ?? []), [j]), Dr = K0(), { data: D = [], isFetched: yr } = $t({
|
|
967
967
|
queryKey: ["relations", i],
|
|
968
968
|
queryFn: () => R.request(se(`/data-model/relations/for/${i}`)).then((e) => e.data ?? []),
|
|
969
969
|
staleTime: 6e4
|
|
970
970
|
}), Em = A(
|
|
971
|
-
() =>
|
|
971
|
+
() => K_(j ?? [], D, i),
|
|
972
972
|
[j, D, i]
|
|
973
973
|
), { data: Br = [], isFetched: td } = $t({
|
|
974
974
|
queryKey: ["field-rules", i],
|
|
@@ -1060,7 +1060,7 @@ function fm({
|
|
|
1060
1060
|
if (m || !zn) return !1;
|
|
1061
1061
|
const e = (zn == null ? void 0 : zn.status) ?? ((t = zn == null ? void 0 : zn.response) == null ? void 0 : t.status);
|
|
1062
1062
|
return e === 403 || e === 404;
|
|
1063
|
-
})(), cd = na && !de, Bt = de != null, [M, pt] = P({}), U = $({}), ra = $(!1), Oi = $(!1),
|
|
1063
|
+
})(), cd = na && !de, Bt = de != null, [M, pt] = P({}), U = $({}), ra = $(!1), Oi = $(!1), qe = $(/* @__PURE__ */ new Set()), Os = $(0), br = $(/* @__PURE__ */ new Map()), sa = $(/* @__PURE__ */ new Map()), zm = A(
|
|
1064
1064
|
() => ({
|
|
1065
1065
|
register: (e, t) => {
|
|
1066
1066
|
sa.current.set(e, t);
|
|
@@ -1074,7 +1074,7 @@ function fm({
|
|
|
1074
1074
|
z(() => {
|
|
1075
1075
|
const e = md.current;
|
|
1076
1076
|
if (md.current = tt, ud) return;
|
|
1077
|
-
const t =
|
|
1077
|
+
const t = A0(e, tt);
|
|
1078
1078
|
if (!t) return;
|
|
1079
1079
|
const n = (j ?? []).find((r) => r.field === t.field);
|
|
1080
1080
|
Hm(`${(n == null ? void 0 : n.label) || be(t.field)}: ${t.message}`);
|
|
@@ -1120,7 +1120,7 @@ function fm({
|
|
|
1120
1120
|
o.result.then((l) => l.get(t) ?? null)
|
|
1121
1121
|
);
|
|
1122
1122
|
}, z(
|
|
1123
|
-
() => m || p == null || I ? void 0 :
|
|
1123
|
+
() => m || p == null || I ? void 0 : h0(X, R, String(p)),
|
|
1124
1124
|
[X, R, p, m, I]
|
|
1125
1125
|
);
|
|
1126
1126
|
const bd = async (e, t) => {
|
|
@@ -1131,13 +1131,13 @@ function fm({
|
|
|
1131
1131
|
() => /* @__PURE__ */ new Map()
|
|
1132
1132
|
)).get(t) ?? null;
|
|
1133
1133
|
return o != null && ht.current.set(n, Promise.resolve(o)), o;
|
|
1134
|
-
}, gn =
|
|
1134
|
+
}, gn = ab(i, m ? null : p), Rn = $(null), Ii = $(/* @__PURE__ */ new Set()), vd = $({}), Ei = ce(() => {
|
|
1135
1135
|
var e;
|
|
1136
1136
|
(e = Rn.current) == null || e.call(Rn), Rn.current = null, Ii.current = /* @__PURE__ */ new Set();
|
|
1137
1137
|
}, []);
|
|
1138
1138
|
z(() => {
|
|
1139
|
-
|
|
1140
|
-
}, [R,
|
|
1139
|
+
Le && Fy(R, Le, X);
|
|
1140
|
+
}, [R, Le, X]), z(() => Ei, [i, p]);
|
|
1141
1141
|
const [Ue, Fn] = P(!1), [Gm, wd] = P(!1), [js, Hr] = P({}), da = $(0), Pi = $(null), [bt, ca] = P(!1), Li = (e) => ca(e), Mi = $(hr);
|
|
1142
1142
|
Mi.current = hr;
|
|
1143
1143
|
const kd = ((Ju = $s == null ? void 0 : $s.layout) == null ? void 0 : Ju.id) != null ? Number($s.layout.id) : null;
|
|
@@ -1151,7 +1151,7 @@ function fm({
|
|
|
1151
1151
|
const vr = A(
|
|
1152
1152
|
() => x != null && x.read_mode_toggle ? Ef(x.summary_mode_rules) : null,
|
|
1153
1153
|
[x == null ? void 0 : x.read_mode_toggle, x == null ? void 0 : x.summary_mode_rules]
|
|
1154
|
-
), [Ym, Zm] = P(null), ua = `${i}|${String(p)}`, Ur = I || m || x !== void 0 && (!vr || Ym === ua), vt = Hg(i, p,
|
|
1154
|
+
), [Ym, Zm] = P(null), ua = `${i}|${String(p)}`, Ur = I || m || x !== void 0 && (!vr || Ym === ua), vt = Hg(i, p, Le), xd = A(
|
|
1155
1155
|
() => m && (Mt || Kn || Zn) ? Dg({
|
|
1156
1156
|
v: Mt ?? null,
|
|
1157
1157
|
l: Kn ?? null,
|
|
@@ -1172,7 +1172,7 @@ function fm({
|
|
|
1172
1172
|
z(() => {
|
|
1173
1173
|
const e = (t) => {
|
|
1174
1174
|
var s;
|
|
1175
|
-
const n = (s = t.detail) == null ? void 0 : s.collection, r =
|
|
1175
|
+
const n = (s = t.detail) == null ? void 0 : s.collection, r = $_(n, i, Ho, Jl);
|
|
1176
1176
|
r !== "ignore" && (X.invalidateQueries({ queryKey: ["field-config"] }), X.invalidateQueries({ queryKey: ["active-layout"] }), X.invalidateQueries({ queryKey: ["collection-meta"] }), r === "banner" && rp(!0));
|
|
1177
1177
|
};
|
|
1178
1178
|
return window.addEventListener("nvr:config-update", e), () => window.removeEventListener("nvr:config-update", e);
|
|
@@ -1199,7 +1199,7 @@ function fm({
|
|
|
1199
1199
|
return n;
|
|
1200
1200
|
});
|
|
1201
1201
|
}
|
|
1202
|
-
}, []), Rd = $(null), { headerDense: pa, headerFolded: ap, headerRows: lp, headerTilesRef: dp } =
|
|
1202
|
+
}, []), Rd = $(null), { headerDense: pa, headerFolded: ap, headerRows: lp, headerTilesRef: dp } = U_(), Fd = ce((e) => {
|
|
1203
1203
|
const t = e.target, n = t.scrollTop;
|
|
1204
1204
|
sp((r) => {
|
|
1205
1205
|
var l;
|
|
@@ -1313,9 +1313,9 @@ function fm({
|
|
|
1313
1313
|
[je, ze, We]
|
|
1314
1314
|
), [Ad, Xr] = P([]), qd = $(!1), ba = $(!1), va = $({}), [Ge, es] = P(/* @__PURE__ */ new Map()), [at, Ps] = P(/* @__PURE__ */ new Map()), xr = $(
|
|
1315
1315
|
null
|
|
1316
|
-
), Ls = $(/* @__PURE__ */ new Map()), en = $(0), Ms = $(/* @__PURE__ */ new Map()), On = $(/* @__PURE__ */ new Map()), ts = $(/* @__PURE__ */ new Map()), wa = (e) =>
|
|
1316
|
+
), Ls = $(/* @__PURE__ */ new Map()), en = $(0), Ms = $(/* @__PURE__ */ new Map()), On = $(/* @__PURE__ */ new Map()), ts = $(/* @__PURE__ */ new Map()), wa = (e) => S_(
|
|
1317
1317
|
{
|
|
1318
|
-
touched:
|
|
1318
|
+
touched: qe.current,
|
|
1319
1319
|
seq: br.current,
|
|
1320
1320
|
next: () => ++Os.current
|
|
1321
1321
|
},
|
|
@@ -1329,7 +1329,7 @@ function fm({
|
|
|
1329
1329
|
stageLink: (e, t) => {
|
|
1330
1330
|
var n, r;
|
|
1331
1331
|
if (es((s) => {
|
|
1332
|
-
const o = s.get(e) ?? [], l =
|
|
1332
|
+
const o = s.get(e) ?? [], l = Mv(o, t);
|
|
1333
1333
|
if (l === o) return s;
|
|
1334
1334
|
const c = new Map(s);
|
|
1335
1335
|
return c.set(e, l), c;
|
|
@@ -1482,7 +1482,7 @@ function fm({
|
|
|
1482
1482
|
m2m: {},
|
|
1483
1483
|
template_name: e.document_name
|
|
1484
1484
|
});
|
|
1485
|
-
for (const r of Object.keys(t))
|
|
1485
|
+
for (const r of Object.keys(t)) qe.current.add(r);
|
|
1486
1486
|
},
|
|
1487
1487
|
[ns, j]
|
|
1488
1488
|
), [rt, Yi] = P(null), [Zi, Td] = P(!1), Id = ce(
|
|
@@ -1590,7 +1590,7 @@ function fm({
|
|
|
1590
1590
|
async (e, t, n, r, s = []) => {
|
|
1591
1591
|
const o = n.reimport;
|
|
1592
1592
|
if (!o) return;
|
|
1593
|
-
const l =
|
|
1593
|
+
const l = pv(n), c = [...t.issues];
|
|
1594
1594
|
if (o.header_fields !== "skip") {
|
|
1595
1595
|
const u = {};
|
|
1596
1596
|
for (const [f, h] of Object.entries(t.values))
|
|
@@ -1830,12 +1830,12 @@ function fm({
|
|
|
1830
1830
|
if (!de) return;
|
|
1831
1831
|
const e = $e.current, t = Object.keys(e).length === 0, n = Date.now() - da.current < 8e3;
|
|
1832
1832
|
if (!t && !n) {
|
|
1833
|
-
const r =
|
|
1833
|
+
const r = Av(e, de), s = vv(r, qe.current, U.current, e), o = (d) => s.has(d), l = v0(i, String(p)), c = l ? l.fields ? r.filter((d) => {
|
|
1834
1834
|
var g;
|
|
1835
1835
|
return (g = l.fields) == null ? void 0 : g.includes(d);
|
|
1836
1836
|
}) : r : [];
|
|
1837
1837
|
if (r.length > 0) {
|
|
1838
|
-
const d = Pi.current, g =
|
|
1838
|
+
const d = Pi.current, g = qv(d, Le), u = (/* @__PURE__ */ new Date()).toISOString();
|
|
1839
1839
|
Hr((h) => {
|
|
1840
1840
|
const v = { ...h };
|
|
1841
1841
|
for (const S of r) {
|
|
@@ -1843,14 +1843,14 @@ function fm({
|
|
|
1843
1843
|
!y && !c.includes(S) || (v[S] = y ? { was: e[S], by: g, at: u, theirs: de[S], conflict: !0 } : { was: e[S], by: g, at: u });
|
|
1844
1844
|
}
|
|
1845
1845
|
return v;
|
|
1846
|
-
}),
|
|
1847
|
-
for (const h of r) o(h) ||
|
|
1848
|
-
if ([...
|
|
1846
|
+
}), Nv(r, s, U.current, de) || X.invalidateQueries({ queryKey: ["collision-base", i, p] });
|
|
1847
|
+
for (const h of r) o(h) || qe.current.delete(h);
|
|
1848
|
+
if ([...qe.current].some(
|
|
1849
1849
|
(h) => !et(U.current[h], de[h])
|
|
1850
1850
|
)) {
|
|
1851
1851
|
$e.current = de;
|
|
1852
1852
|
const h = { ...U.current };
|
|
1853
|
-
for (const v of r)
|
|
1853
|
+
for (const v of r) qe.current.has(v) || (h[v] = de[v]);
|
|
1854
1854
|
U.current = h, pt(h);
|
|
1855
1855
|
return;
|
|
1856
1856
|
}
|
|
@@ -1861,7 +1861,7 @@ function fm({
|
|
|
1861
1861
|
const ln = A(() => {
|
|
1862
1862
|
const e = $e.current, t = [];
|
|
1863
1863
|
for (const f of Object.keys(M))
|
|
1864
|
-
f.startsWith("__") ||
|
|
1864
|
+
f.startsWith("__") || qe.current.has(f) && (et(M[f], e[f]) || t.push(f));
|
|
1865
1865
|
const n = (f, h) => [...f.values()].reduce((v, S) => v + h(S), 0), r = n(je, (f) => f.length), s = n(ze, (f) => f.size), o = n(We, (f) => f.size), l = Hf(Ge, Di.current(Ge)), c = n(at, (f) => f.size), d = t.length + r + s + o + l + c, g = [];
|
|
1866
1866
|
t.length && g.push(`${t.length} field${t.length === 1 ? "" : "s"}`);
|
|
1867
1867
|
const u = r + s + o;
|
|
@@ -1884,7 +1884,7 @@ function fm({
|
|
|
1884
1884
|
z(() => {
|
|
1885
1885
|
if (!Pd || I || As === vt) return;
|
|
1886
1886
|
let e = !1;
|
|
1887
|
-
const t = m ? "new" : String(p), n =
|
|
1887
|
+
const t = m ? "new" : String(p), n = Le ? R.request(
|
|
1888
1888
|
se(`/drafts/${i}/${t}`)
|
|
1889
1889
|
).then(
|
|
1890
1890
|
(r) => {
|
|
@@ -1933,17 +1933,17 @@ function fm({
|
|
|
1933
1933
|
const r = Di.current(Ge), s = je.size + ze.size + We.size + (r.size ? Hf(Ge, r) : Ge.size) + at.size, o = je.size + ze.size + We.size, l = Yg({ isDirty: Ue, forReload: n, staged: s, stagedLines: o });
|
|
1934
1934
|
if (l === "hold") return !1;
|
|
1935
1935
|
if (l === "drop")
|
|
1936
|
-
return vs(vt),
|
|
1936
|
+
return vs(vt), Le && wr.current && (wr.current = !1, R.request(mr(`/drafts/${i}/${m ? "new" : String(p)}`)).catch(() => {
|
|
1937
1937
|
})), !0;
|
|
1938
1938
|
const c = $e.current, d = {}, g = {};
|
|
1939
1939
|
for (const [y, T] of Object.entries(U.current))
|
|
1940
|
-
y.startsWith("__") || et(T, c[y]) || m && !
|
|
1941
|
-
const u = Object.keys(d).filter((y) => !
|
|
1940
|
+
y.startsWith("__") || et(T, c[y]) || m && !qe.current.has(y) && !ma.current.has(y) || (d[y] = T, g[y] = c[y]);
|
|
1941
|
+
const u = Object.keys(d).filter((y) => !qe.current.has(y)), f = (y, T) => Object.fromEntries([...y.entries()].map(([Q, Y]) => [Q, T(Y)])), h = Ug(
|
|
1942
1942
|
{
|
|
1943
1943
|
key: vt,
|
|
1944
1944
|
collection: i,
|
|
1945
1945
|
item_id: m ? "new" : String(p),
|
|
1946
|
-
user_id:
|
|
1946
|
+
user_id: Le || "anon",
|
|
1947
1947
|
saved_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1948
1948
|
fields: d,
|
|
1949
1949
|
base: g,
|
|
@@ -1970,11 +1970,11 @@ function fm({
|
|
|
1970
1970
|
Xo.current
|
|
1971
1971
|
);
|
|
1972
1972
|
if (Xo.current = h, !Nl(h))
|
|
1973
|
-
return vs(vt),
|
|
1973
|
+
return vs(vt), Le && wr.current && (wr.current = !1, R.request(mr(`/drafts/${i}/${m ? "new" : String(p)}`)).catch(() => {
|
|
1974
1974
|
})), !0;
|
|
1975
1975
|
const v = Gg(h);
|
|
1976
|
-
|
|
1977
|
-
const S =
|
|
1976
|
+
Le && (wr.current = !0);
|
|
1977
|
+
const S = Le ? R.request(
|
|
1978
1978
|
Kg(`/drafts/${i}/${m ? "new" : String(p)}`, {
|
|
1979
1979
|
payload: h,
|
|
1980
1980
|
saved_at: h.saved_at
|
|
@@ -2002,7 +2002,7 @@ function fm({
|
|
|
2002
2002
|
m,
|
|
2003
2003
|
p,
|
|
2004
2004
|
i,
|
|
2005
|
-
|
|
2005
|
+
Le
|
|
2006
2006
|
]);
|
|
2007
2007
|
const Xi = $(() => {
|
|
2008
2008
|
}), yp = ce(() => {
|
|
@@ -2010,7 +2010,7 @@ function fm({
|
|
|
2010
2010
|
if (e.state !== "offer") return;
|
|
2011
2011
|
const t = e.draft;
|
|
2012
2012
|
Xo.current = t;
|
|
2013
|
-
const n =
|
|
2013
|
+
const n = r0({
|
|
2014
2014
|
fields: t.fields,
|
|
2015
2015
|
base: t.base,
|
|
2016
2016
|
current: $e.current
|
|
@@ -2040,7 +2040,7 @@ function fm({
|
|
|
2040
2040
|
ma.current.add(o);
|
|
2041
2041
|
continue;
|
|
2042
2042
|
}
|
|
2043
|
-
|
|
2043
|
+
qe.current.add(o), br.current.set(o, ++Os.current);
|
|
2044
2044
|
}
|
|
2045
2045
|
if (Object.keys(t.pending_rows ?? {}).length && rr(new Map(Object.entries(t.pending_rows))), Object.keys(t.pending_edits ?? {}).length) {
|
|
2046
2046
|
for (const [o, l] of Object.entries(t.line_bases ?? {}))
|
|
@@ -2058,11 +2058,11 @@ function fm({
|
|
|
2058
2058
|
for (const [o, l] of Object.entries(t.fields))
|
|
2059
2059
|
l == null || l === "" || Xi.current(o, l);
|
|
2060
2060
|
}, []), _p = ce(() => {
|
|
2061
|
-
vs(vt),
|
|
2061
|
+
vs(vt), Le && R.request(mr(`/drafts/${i}/${m ? "new" : String(p)}`)).catch(() => {
|
|
2062
2062
|
}), Jr({ state: "none" });
|
|
2063
|
-
}, [vt,
|
|
2063
|
+
}, [vt, Le, R, i, m, p]);
|
|
2064
2064
|
z(() => {
|
|
2065
|
-
Xt.state !== "offer" || Xt.createdId != null || !Ue ||
|
|
2065
|
+
Xt.state !== "offer" || Xt.createdId != null || !Ue || qe.current.size === 0 || (Jr({ state: "none" }), _e("Your newer changes replace the older draft"));
|
|
2066
2066
|
}, [Xt, Ue]), z(() => {
|
|
2067
2067
|
var r;
|
|
2068
2068
|
if (!m || w === void 0 || ba.current) return;
|
|
@@ -2094,14 +2094,14 @@ function fm({
|
|
|
2094
2094
|
}
|
|
2095
2095
|
t[s] = o;
|
|
2096
2096
|
}
|
|
2097
|
-
const n =
|
|
2097
|
+
const n = bv(U.current, t);
|
|
2098
2098
|
U.current = n, pt(n);
|
|
2099
2099
|
}, [m, w, D, yr, i, xe]);
|
|
2100
2100
|
const Md = $(!1);
|
|
2101
2101
|
z(() => {
|
|
2102
2102
|
if (!m || !Mt || Md.current || !yr) return;
|
|
2103
2103
|
Md.current = !0;
|
|
2104
|
-
const e =
|
|
2104
|
+
const e = Iv(Mt, D, i);
|
|
2105
2105
|
if (e.length === 0) return;
|
|
2106
2106
|
Rt.current += 1;
|
|
2107
2107
|
try {
|
|
@@ -2169,7 +2169,7 @@ function fm({
|
|
|
2169
2169
|
const e = {};
|
|
2170
2170
|
return [...ie.entries()].forEach(([t, n], r) => {
|
|
2171
2171
|
const s = Kd[r];
|
|
2172
|
-
e[t] =
|
|
2172
|
+
e[t] = Dv(
|
|
2173
2173
|
!!p && !m,
|
|
2174
2174
|
(s == null ? void 0 : s.isSuccess) ?? !1,
|
|
2175
2175
|
s == null ? void 0 : s.data,
|
|
@@ -2239,7 +2239,7 @@ function fm({
|
|
|
2239
2239
|
const f = d.get(u);
|
|
2240
2240
|
f && !o.has(f.id) ? xe.stageUnlink(r, f.id) : l.includes(u) && xe.unstageLink(r, u);
|
|
2241
2241
|
}
|
|
2242
|
-
|
|
2242
|
+
qe.current.add(e), Fn(!0);
|
|
2243
2243
|
},
|
|
2244
2244
|
[D, i, p, X, xe]
|
|
2245
2245
|
), Ud = A(() => {
|
|
@@ -2505,7 +2505,7 @@ function fm({
|
|
|
2505
2505
|
const Re = await C(fe);
|
|
2506
2506
|
if (Re.length === 1) y[E] = Re[0];
|
|
2507
2507
|
else {
|
|
2508
|
-
const fn =
|
|
2508
|
+
const fn = Pv(d[E], Re);
|
|
2509
2509
|
fn !== void 0 && (y[E] = fn);
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
@@ -2562,17 +2562,17 @@ function fm({
|
|
|
2562
2562
|
const Yd = ce(
|
|
2563
2563
|
(e, t, n = !1) => {
|
|
2564
2564
|
var c, d;
|
|
2565
|
-
const { scalar: r, alias: s } =
|
|
2565
|
+
const { scalar: r, alias: s } = zv(
|
|
2566
2566
|
e,
|
|
2567
2567
|
new Set(ie.keys())
|
|
2568
2568
|
), o = {};
|
|
2569
2569
|
for (const [g, u] of Object.entries(r))
|
|
2570
2570
|
t !== void 0 && (br.current.get(g) ?? 0) > t || (o[g] = u, t !== void 0 && br.current.set(g, t));
|
|
2571
|
-
const l =
|
|
2571
|
+
const l = Bv(s, Qe);
|
|
2572
2572
|
for (const [g, u] of Object.entries(l)) {
|
|
2573
2573
|
const f = ie.get(g);
|
|
2574
2574
|
if (!f) continue;
|
|
2575
|
-
const h =
|
|
2575
|
+
const h = Kv(u, (c = sr.current[g]) == null ? void 0 : c.ids);
|
|
2576
2576
|
if (n && h.length > 0) {
|
|
2577
2577
|
const v = (((d = sr.current[g]) == null ? void 0 : d.ids) ?? []).map(String), S = Di.current(/* @__PURE__ */ new Map([[f.stagingKey, v]])).get(f.stagingKey);
|
|
2578
2578
|
v.every((T) => S == null ? void 0 : S.has(T)) && Tt.current.add(g);
|
|
@@ -2588,7 +2588,7 @@ function fm({
|
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
if (Object.keys(o).length > 0) {
|
|
2591
|
-
const g =
|
|
2591
|
+
const g = Tv(U.current, o);
|
|
2592
2592
|
if (U.current = g, pt(g), Ts(Object.keys(o)), n) for (const u of Object.keys(o)) Tt.current.add(u);
|
|
2593
2593
|
for (const [u, f] of Object.entries(o)) jn(u, f);
|
|
2594
2594
|
}
|
|
@@ -2601,7 +2601,7 @@ function fm({
|
|
|
2601
2601
|
for (const t of Object.values(e)) clearTimeout(t);
|
|
2602
2602
|
};
|
|
2603
2603
|
}, []);
|
|
2604
|
-
const Zd = $(/* @__PURE__ */ new Map()), kp = (e, t, n) =>
|
|
2604
|
+
const Zd = $(/* @__PURE__ */ new Map()), kp = (e, t, n) => Lv(Zd.current, e, t, n), Ws = ce(
|
|
2605
2605
|
(e, t, n) => {
|
|
2606
2606
|
if (I) return;
|
|
2607
2607
|
const r = am(Br, e);
|
|
@@ -2688,7 +2688,7 @@ function fm({
|
|
|
2688
2688
|
(e, t) => {
|
|
2689
2689
|
var o;
|
|
2690
2690
|
if (I || ra.current && !Oi.current || et(U.current[e], t)) return;
|
|
2691
|
-
|
|
2691
|
+
qe.current.add(e), en.current === 0 && On.current.delete(e), (o = An.current) == null || o.call(An), br.current.set(e, ++Os.current);
|
|
2692
2692
|
const n = { ...U.current, [e]: t };
|
|
2693
2693
|
for (const l of j ?? [])
|
|
2694
2694
|
if (l.dependency_config)
|
|
@@ -2698,13 +2698,13 @@ function fm({
|
|
|
2698
2698
|
d.parent_field === e && d.clear_on_parent_change && (n[l.field] = null);
|
|
2699
2699
|
} catch {
|
|
2700
2700
|
}
|
|
2701
|
-
U.current = n, pt(n), Tt.current.delete(e), Bi.current(e), Fn(m ? !0 :
|
|
2701
|
+
U.current = n, pt(n), Tt.current.delete(e), Bi.current(e), Fn(m ? !0 : Sv(n, $e.current));
|
|
2702
2702
|
const r = t == null || t === "";
|
|
2703
2703
|
r || Wi.current.add(e), hn((l) => {
|
|
2704
2704
|
const c = { ...l }, d = (j ?? []).find((g) => g.field === e);
|
|
2705
2705
|
return d != null && d.required && r && Wi.current.has(e) ? c[e] = "This field is required" : delete c[e], c;
|
|
2706
2706
|
});
|
|
2707
|
-
const s =
|
|
2707
|
+
const s = Cv(j ?? [], n, e);
|
|
2708
2708
|
Object.keys(s).length > 0 && hn((l) => {
|
|
2709
2709
|
const c = { ...l };
|
|
2710
2710
|
for (const [d, g] of Object.entries(s))
|
|
@@ -2763,7 +2763,7 @@ function fm({
|
|
|
2763
2763
|
},
|
|
2764
2764
|
[Oa, ie]
|
|
2765
2765
|
), rc = A(
|
|
2766
|
-
() =>
|
|
2766
|
+
() => L0({
|
|
2767
2767
|
client: R,
|
|
2768
2768
|
collection: i,
|
|
2769
2769
|
fields: j ?? [],
|
|
@@ -2814,7 +2814,7 @@ function fm({
|
|
|
2814
2814
|
]);
|
|
2815
2815
|
},
|
|
2816
2816
|
[ie, xe]
|
|
2817
|
-
), ro =
|
|
2817
|
+
), ro = Nb({
|
|
2818
2818
|
collection: i,
|
|
2819
2819
|
isNew: m,
|
|
2820
2820
|
layoutAllows: (e) => tc.has(e),
|
|
@@ -2828,7 +2828,7 @@ function fm({
|
|
|
2828
2828
|
enabled: !I && tc.size > 0,
|
|
2829
2829
|
ready: m && !I && w !== void 0 && xi && yr && Xt.state === "none" && As === vt && // The draft check ran for the real person (the auth id can arrive a render late; the
|
|
2830
2830
|
// anonymous key's check never saw their server draft).
|
|
2831
|
-
!!
|
|
2831
|
+
!!Le,
|
|
2832
2832
|
resetKey: `${i}:${p}`,
|
|
2833
2833
|
rulesFor: (e) => {
|
|
2834
2834
|
var t;
|
|
@@ -2837,8 +2837,8 @@ function fm({
|
|
|
2837
2837
|
);
|
|
2838
2838
|
},
|
|
2839
2839
|
readValue: Fa,
|
|
2840
|
-
canFill: (e) => !
|
|
2841
|
-
replaceable: (e, t) => Object.hasOwn(va.current, e) && !nc(e) &&
|
|
2840
|
+
canFill: (e) => !qe.current.has(e) && !nc(e),
|
|
2841
|
+
replaceable: (e, t) => Object.hasOwn(va.current, e) && !nc(e) && $b(t, va.current[e]),
|
|
2842
2842
|
fieldLabel: (e) => {
|
|
2843
2843
|
const t = (j ?? []).find((n) => n.field === e);
|
|
2844
2844
|
return (t == null ? void 0 : t.label) || be(e);
|
|
@@ -2917,7 +2917,7 @@ function fm({
|
|
|
2917
2917
|
const n = t.query.queryKey;
|
|
2918
2918
|
if (n[0] !== "o2m-rows" || !e.has(`${String(n[1])}\0${String(n[2])}`)) return;
|
|
2919
2919
|
const r = ["o2m-rows", n[1], n[2], p, ""];
|
|
2920
|
-
|
|
2920
|
+
$v(n, p, X.getQueryData(r), t.action.data) && X.invalidateQueries({ queryKey: r, exact: !0 });
|
|
2921
2921
|
});
|
|
2922
2922
|
}, [X, p, m, Ft]);
|
|
2923
2923
|
const qn = A(
|
|
@@ -3009,7 +3009,7 @@ function fm({
|
|
|
3009
3009
|
released: Ea,
|
|
3010
3010
|
relock: lc,
|
|
3011
3011
|
claim: Dp
|
|
3012
|
-
} =
|
|
3012
|
+
} = tv(i, m ? void 0 : p, Qs, {
|
|
3013
3013
|
lazy: !0,
|
|
3014
3014
|
active: bi && Rp,
|
|
3015
3015
|
// a10-4: a clean form (saved, or edits undone) lets the lock go. A line
|
|
@@ -3039,7 +3039,7 @@ function fm({
|
|
|
3039
3039
|
queryFn: dc,
|
|
3040
3040
|
staleTime: 5 * 6e4,
|
|
3041
3041
|
enabled: La
|
|
3042
|
-
}), ao =
|
|
3042
|
+
}), ao = S0(i, m ? null : p, {
|
|
3043
3043
|
enabled: !Be && Bt,
|
|
3044
3044
|
eager: qt
|
|
3045
3045
|
}), lo = (Kt == null ? void 0 : Kt.stateKey) ?? null, uc = () => R.request(se(`/pipelines/instance/${i}/${p}`)).then(
|
|
@@ -3052,7 +3052,7 @@ function fm({
|
|
|
3052
3052
|
enabled: Ma && !m && Bt && !lo
|
|
3053
3053
|
}), pc = w !== void 0;
|
|
3054
3054
|
z(() => {
|
|
3055
|
-
!pc || Be ||
|
|
3055
|
+
!pc || Be || mb(i, { role: La, state: Ma });
|
|
3056
3056
|
}, [pc, Be, i, La, Ma]), z(() => {
|
|
3057
3057
|
if (m || Be) return;
|
|
3058
3058
|
const e = Qf(i);
|
|
@@ -3249,7 +3249,7 @@ function fm({
|
|
|
3249
3249
|
t.rows.map((l) => {
|
|
3250
3250
|
const c = { ...l };
|
|
3251
3251
|
for (const d of s) {
|
|
3252
|
-
const g =
|
|
3252
|
+
const g = c0(String(d.computed_formula), c);
|
|
3253
3253
|
g !== null && (c[d.field] = g);
|
|
3254
3254
|
}
|
|
3255
3255
|
return c;
|
|
@@ -3278,19 +3278,19 @@ function fm({
|
|
|
3278
3278
|
if (m || !et(U.current[e], $e.current[e])) return !0;
|
|
3279
3279
|
const t = (j ?? []).find((n) => n.field === e);
|
|
3280
3280
|
return Df((t == null ? void 0 : t.dependency_config) ?? null).some(
|
|
3281
|
-
(n) => !!n.parent_field &&
|
|
3281
|
+
(n) => !!n.parent_field && qe.current.has(n.parent_field) && !et(U.current[n.parent_field], $e.current[n.parent_field])
|
|
3282
3282
|
);
|
|
3283
3283
|
}
|
|
3284
3284
|
const $c = A(() => {
|
|
3285
3285
|
const e = /* @__PURE__ */ new Map();
|
|
3286
3286
|
for (const t of j ?? []) {
|
|
3287
3287
|
if (t.computed_type !== "rollup" || !t.computed_formula) continue;
|
|
3288
|
-
const n =
|
|
3289
|
-
if (n && !
|
|
3288
|
+
const n = w0(t.computed_formula);
|
|
3289
|
+
if (n && !k0(M, n)) continue;
|
|
3290
3290
|
const r = new Map(ls);
|
|
3291
3291
|
for (const [o, l] of kc)
|
|
3292
3292
|
(!r.has(o) || wc.has(o)) && r.set(o, l);
|
|
3293
|
-
const s =
|
|
3293
|
+
const s = x0(zf(t.computed_formula), r);
|
|
3294
3294
|
s !== null && e.set(t.field, s);
|
|
3295
3295
|
}
|
|
3296
3296
|
return e;
|
|
@@ -3300,7 +3300,7 @@ function fm({
|
|
|
3300
3300
|
), st = He !== "original", dn = st ? "nivaro_addendums" : i, cn = st ? He : p, Up = A(
|
|
3301
3301
|
() => st ? de ?? null : de ? { ...de, ...M } : M,
|
|
3302
3302
|
[st, de, M]
|
|
3303
|
-
), Jp =
|
|
3303
|
+
), Jp = X0(
|
|
3304
3304
|
i,
|
|
3305
3305
|
m || I ? null : String(p),
|
|
3306
3306
|
Up,
|
|
@@ -3451,7 +3451,7 @@ function fm({
|
|
|
3451
3451
|
!(s != null && s.many_collection) || !(s != null && s.many_field) || e.set(`${s.many_collection}.${s.many_field}`, r);
|
|
3452
3452
|
}
|
|
3453
3453
|
return e;
|
|
3454
|
-
}, [j, D, i]),
|
|
3454
|
+
}, [j, D, i]), Te = A(() => {
|
|
3455
3455
|
const e = j ? [...j].sort((n, r) => (n.sort ?? 0) - (r.sort ?? 0)) : [], t = {};
|
|
3456
3456
|
for (const n of e)
|
|
3457
3457
|
!n.group_key || Tr(n.field) || (t[n.group_key] || (t[n.group_key] = []), t[n.group_key].find((r) => r.field === n.field) || t[n.group_key].push(n));
|
|
@@ -3499,16 +3499,16 @@ function fm({
|
|
|
3499
3499
|
), qc = ho.length > 0, kt = Ot.length > 0, ee = w == null ? void 0 : w.layout, Fr = ee ? !!ee.ai_enabled : !0, Va = A(() => {
|
|
3500
3500
|
if ($n) return [];
|
|
3501
3501
|
const e = j ?? [];
|
|
3502
|
-
return
|
|
3502
|
+
return hb({
|
|
3503
3503
|
groups: Ce.filter((t) => t.type === "tab" && !t.container_id),
|
|
3504
3504
|
values: M,
|
|
3505
3505
|
fields: e,
|
|
3506
|
-
choices:
|
|
3506
|
+
choices: jb(e),
|
|
3507
3507
|
quiet: ky(
|
|
3508
3508
|
ee == null ? void 0 : ee.conditions
|
|
3509
3509
|
),
|
|
3510
|
-
readable: (t) =>
|
|
3511
|
-
(
|
|
3510
|
+
readable: (t) => gb(
|
|
3511
|
+
(Te[t] ?? []).map((n) => n.field),
|
|
3512
3512
|
ta,
|
|
3513
3513
|
m || !!Be
|
|
3514
3514
|
)
|
|
@@ -3519,33 +3519,33 @@ function fm({
|
|
|
3519
3519
|
Ce,
|
|
3520
3520
|
M,
|
|
3521
3521
|
ee,
|
|
3522
|
-
|
|
3522
|
+
Te,
|
|
3523
3523
|
ta,
|
|
3524
3524
|
m,
|
|
3525
3525
|
Be
|
|
3526
|
-
]), Or = A(() => Xg(ee), [ee]), Tc =
|
|
3527
|
-
|
|
3528
|
-
const Qn =
|
|
3526
|
+
]), Or = A(() => Xg(ee), [ee]), Tc = D_(Or);
|
|
3527
|
+
B_(Tc === "compact");
|
|
3528
|
+
const Qn = Bb({
|
|
3529
3529
|
collection: i,
|
|
3530
3530
|
layoutId: (ee == null ? void 0 : ee.id) ?? null,
|
|
3531
|
-
userId:
|
|
3531
|
+
userId: Le,
|
|
3532
3532
|
config: Or,
|
|
3533
3533
|
hasTabs: kt || qc,
|
|
3534
3534
|
enabled: !I
|
|
3535
3535
|
}), Ha = (e) => Qn.mode && (e.tab_mode === "steps" || e.tab_mode === "tabs") ? Qn.mode === "beginner" : e.tab_mode === "steps", un = kt && (Qn.mode ? Qn.mode === "beginner" : (ee == null ? void 0 : ee.tab_mode) === "steps"), th = !!(ee != null && ee.validate_before_next), vn = !!(ee != null && ee.summary_enabled), nh = !!(ee != null && ee.summary_hide_empty), rh = ee ? !ee.disable_revisions && Mr : Mr, ar = ee ? !ee.disable_comments && Yn : Yn, jr = ee ? !ee.disable_tasks && Hl : Hl, sh = ee ? !ee.disable_clone && H : H, ih = ee ? !ee.disable_delete : !0, go = !!(ee != null && ee.accordion_mode), [wn, us] = P(
|
|
3536
|
-
() => I ? Zf(
|
|
3536
|
+
() => I ? Zf(Le) ?? !1 : !1
|
|
3537
3537
|
), [In, oh] = P(null), Ic = $(!1);
|
|
3538
3538
|
z(() => {
|
|
3539
3539
|
if (!I || !vn || !In || Ic.current) return;
|
|
3540
3540
|
const e = In.clientWidth;
|
|
3541
|
-
e && (Ic.current = !0, Zf(
|
|
3542
|
-
}, [I, vn, In,
|
|
3541
|
+
e && (Ic.current = !0, Zf(Le) === null && e - 256 < Gb && us(!0));
|
|
3542
|
+
}, [I, vn, In, Le]);
|
|
3543
3543
|
const [Js, ah] = P(!1), Gs = $(null);
|
|
3544
3544
|
z(() => {
|
|
3545
3545
|
if (I || !vn || !In || typeof ResizeObserver > "u") return;
|
|
3546
3546
|
const e = () => {
|
|
3547
3547
|
const n = In.clientWidth;
|
|
3548
|
-
n && ah(
|
|
3548
|
+
n && ah(fb(n));
|
|
3549
3549
|
};
|
|
3550
3550
|
e();
|
|
3551
3551
|
const t = new ResizeObserver(e);
|
|
@@ -3678,7 +3678,7 @@ function fm({
|
|
|
3678
3678
|
var l;
|
|
3679
3679
|
if (document.querySelector(`[data-field="${e}"]`))
|
|
3680
3680
|
return yo(e), !0;
|
|
3681
|
-
const n = (l = Object.entries(
|
|
3681
|
+
const n = (l = Object.entries(Te).find(
|
|
3682
3682
|
([, c]) => c.some((d) => d.field === e)
|
|
3683
3683
|
)) == null ? void 0 : l[0];
|
|
3684
3684
|
if (!n) return !1;
|
|
@@ -3799,7 +3799,7 @@ ${r.join(`
|
|
|
3799
3799
|
fs.current(e);
|
|
3800
3800
|
} catch {
|
|
3801
3801
|
}
|
|
3802
|
-
}, []), Ya =
|
|
3802
|
+
}, []), Ya = q_({
|
|
3803
3803
|
collection: i,
|
|
3804
3804
|
itemId: p,
|
|
3805
3805
|
// After the record answered (army 10: the comments read 404'd for a missing record).
|
|
@@ -3974,7 +3974,7 @@ ${r.join(`
|
|
|
3974
3974
|
step: kt ? Ye : null,
|
|
3975
3975
|
setStep: jt
|
|
3976
3976
|
});
|
|
3977
|
-
const bo =
|
|
3977
|
+
const bo = Sb({
|
|
3978
3978
|
enabled: !I,
|
|
3979
3979
|
layoutId: Dt != null ? Number(Dt) : null,
|
|
3980
3980
|
collection: i,
|
|
@@ -4006,25 +4006,25 @@ ${r.join(`
|
|
|
4006
4006
|
tu.current = eu;
|
|
4007
4007
|
const Ys = (Be == null ? void 0 : Be.reveal) ?? null;
|
|
4008
4008
|
z(() => {
|
|
4009
|
-
Ys && tu.current(
|
|
4009
|
+
Ys && tu.current(Hb(Ys.target));
|
|
4010
4010
|
}, [Ys == null ? void 0 : Ys.seq]);
|
|
4011
4011
|
const nl = I && !!((Yu = Be == null ? void 0 : Be.fold) != null && Yu.open), Zs = A(() => {
|
|
4012
4012
|
const e = /* @__PURE__ */ new Map();
|
|
4013
4013
|
let t = 0;
|
|
4014
4014
|
const n = kt ? we.map((s) => s.key) : [], r = [
|
|
4015
4015
|
...n.filter((s) => s !== "__general__"),
|
|
4016
|
-
...Object.keys(
|
|
4016
|
+
...Object.keys(Te).filter((s) => !n.includes(s))
|
|
4017
4017
|
];
|
|
4018
4018
|
for (const s of r)
|
|
4019
|
-
for (const o of
|
|
4019
|
+
for (const o of Te[s] ?? []) e.has(o.field) || e.set(o.field, t++);
|
|
4020
4020
|
for (const s of Se) e.has(s.field) || e.set(s.field, t++);
|
|
4021
4021
|
return e;
|
|
4022
|
-
}, [Se,
|
|
4022
|
+
}, [Se, Te, kt, we]), vh = (e, t) => (Zs.get(e) ?? 1e9) - (Zs.get(t) ?? 1e9), nu = A(() => {
|
|
4023
4023
|
const e = Object.keys(tt);
|
|
4024
4024
|
if (e.length === 0) return [];
|
|
4025
4025
|
const t = (n) => {
|
|
4026
4026
|
var o;
|
|
4027
|
-
const r = (o = Object.entries(
|
|
4027
|
+
const r = (o = Object.entries(Te).find(
|
|
4028
4028
|
([, l]) => l.some((c) => c.field === n)
|
|
4029
4029
|
)) == null ? void 0 : o[0];
|
|
4030
4030
|
if (!r) return kt ? "General" : null;
|
|
@@ -4040,7 +4040,7 @@ ${r.join(`
|
|
|
4040
4040
|
location: o
|
|
4041
4041
|
};
|
|
4042
4042
|
});
|
|
4043
|
-
}, [tt, Se,
|
|
4043
|
+
}, [tt, Se, Te, Ce, kt, we, Zs]), ru = $(!1);
|
|
4044
4044
|
z(() => {
|
|
4045
4045
|
if (!(ru.current || !kt))
|
|
4046
4046
|
try {
|
|
@@ -4089,13 +4089,13 @@ ${r.join(`
|
|
|
4089
4089
|
const e = /* @__PURE__ */ new Set();
|
|
4090
4090
|
if (!Ue) return e;
|
|
4091
4091
|
for (const t of we)
|
|
4092
|
-
(
|
|
4092
|
+
(Te[t.key] ?? []).some((r) => qe.current.has(r.field)) && e.add(t.key);
|
|
4093
4093
|
return e;
|
|
4094
|
-
}, [Ue, we,
|
|
4094
|
+
}, [Ue, we, Te, M]), kh = A(() => {
|
|
4095
4095
|
const e = /* @__PURE__ */ new Set();
|
|
4096
4096
|
for (const t of we) {
|
|
4097
4097
|
if (m && !Gc.has(t.key)) continue;
|
|
4098
|
-
(t.key === "__general__" ? un ? Ht : [...Ht, ...Ut.flatMap((s) =>
|
|
4098
|
+
(t.key === "__general__" ? un ? Ht : [...Ht, ...Ut.flatMap((s) => Te[s.key] ?? [])] : Te[t.key] ?? []).filter((s) => s.required && !s.hidden).every((s) => {
|
|
4099
4099
|
if (ie.has(s.field)) {
|
|
4100
4100
|
const l = Qe[s.field];
|
|
4101
4101
|
return !l || l.ids.length > 0;
|
|
@@ -4113,7 +4113,7 @@ ${r.join(`
|
|
|
4113
4113
|
we,
|
|
4114
4114
|
Ht,
|
|
4115
4115
|
Ut,
|
|
4116
|
-
|
|
4116
|
+
Te,
|
|
4117
4117
|
M,
|
|
4118
4118
|
m,
|
|
4119
4119
|
Gc,
|
|
@@ -4125,7 +4125,7 @@ ${r.join(`
|
|
|
4125
4125
|
]);
|
|
4126
4126
|
function xh() {
|
|
4127
4127
|
if (th) {
|
|
4128
|
-
const t = Ye === "__general__" ? un ? Ht : [...Ht, ...Ut.flatMap((r) =>
|
|
4128
|
+
const t = Ye === "__general__" ? un ? Ht : [...Ht, ...Ut.flatMap((r) => Te[r.key] ?? [])] : Te[Ye] ?? [], n = {};
|
|
4129
4129
|
for (const r of t)
|
|
4130
4130
|
if (r.required && !r.hidden) {
|
|
4131
4131
|
const s = M[r.field];
|
|
@@ -4139,14 +4139,14 @@ ${r.join(`
|
|
|
4139
4139
|
const e = we.findIndex((t) => t.key === Ye);
|
|
4140
4140
|
e < we.length - 1 && jt(we[e + 1].key);
|
|
4141
4141
|
}
|
|
4142
|
-
const
|
|
4142
|
+
const Ie = lt.find((e) => e.field === "__pipeline__"), iu = A(() => {
|
|
4143
4143
|
try {
|
|
4144
|
-
const e =
|
|
4144
|
+
const e = Ie == null ? void 0 : Ie.overrides, t = typeof e == "string" ? JSON.parse(e) : e;
|
|
4145
4145
|
return t && typeof t == "object" ? t : {};
|
|
4146
4146
|
} catch {
|
|
4147
4147
|
return {};
|
|
4148
4148
|
}
|
|
4149
|
-
}, [
|
|
4149
|
+
}, [Ie]), dt = lt.find((e) => e.field === "__comments__"), ct = lt.find((e) => e.field === "__tasks__"), tn = lt.find((e) => e.field === "__addendums__"), kn = lt.find((e) => e.field === "__referenced_by__"), xn = lt.find((e) => e.field === "__related_records__"), Xs = lt.filter(
|
|
4150
4150
|
(e) => e.field.startsWith("__widget_") && e.field.endsWith("__") && e.widget_id != null
|
|
4151
4151
|
), ut = lt.find((e) => e.field === "__owners__"), Ve = lt.find((e) => e.field === "__pdf__"), It = Ve ? (() => {
|
|
4152
4152
|
try {
|
|
@@ -4202,7 +4202,7 @@ ${r.join(`
|
|
|
4202
4202
|
filenameTemplate: t.filename_template ?? null
|
|
4203
4203
|
});
|
|
4204
4204
|
}, ps = (ut == null ? void 0 : ut.group_key) ?? null, ti = !!(ps && Ce.some((e) => e.key === ps)), $h = () => /* @__PURE__ */ a(
|
|
4205
|
-
|
|
4205
|
+
fv,
|
|
4206
4206
|
{
|
|
4207
4207
|
collection: dn,
|
|
4208
4208
|
item: cn,
|
|
@@ -4283,7 +4283,7 @@ ${r.join(`
|
|
|
4283
4283
|
// The stale-record banner rides this read — one indexed row a minute without a live
|
|
4284
4284
|
// socket, paused while the tab is hidden (react-query default).
|
|
4285
4285
|
refetchInterval: Ch
|
|
4286
|
-
}), [Rh, ri] = P(!1), [Fh, au] = P(!1), [Oh, lu] = P(!1), [jh, Ah] = P(null), [si, du] = P(""), [cu, uu] = P(!1), [fu, mu] = P(!1), pu =
|
|
4286
|
+
}), [Rh, ri] = P(!1), [Fh, au] = P(!1), [Oh, lu] = P(!1), [jh, Ah] = P(null), [si, du] = P(""), [cu, uu] = P(!1), [fu, mu] = P(!1), pu = qb(
|
|
4287
4287
|
i,
|
|
4288
4288
|
String(p ?? ""),
|
|
4289
4289
|
// Waits for the record itself: the check of a record that turns out not
|
|
@@ -4297,7 +4297,7 @@ ${r.join(`
|
|
|
4297
4297
|
if (u.hidden || u.readonly || Pl(u, M) || u.layout_assigned === !1 || e && !e.has(u.field) || u.field.startsWith("__") || u.field.includes(".")) return !1;
|
|
4298
4298
|
const f = u.options;
|
|
4299
4299
|
return !(f && typeof f == "object" && f.auto_id);
|
|
4300
|
-
}), n = t.filter((u) => u.required), r = t.filter((u) =>
|
|
4300
|
+
}), n = t.filter((u) => u.required), r = t.filter((u) => D0(u));
|
|
4301
4301
|
if (n.length === 0 && r.length === 0) return null;
|
|
4302
4302
|
const s = (u) => {
|
|
4303
4303
|
var v;
|
|
@@ -4340,23 +4340,23 @@ ${r.join(`
|
|
|
4340
4340
|
return;
|
|
4341
4341
|
}
|
|
4342
4342
|
if (!(it.timestamp <= hs.current)) {
|
|
4343
|
-
if (!it.user_id || it.user_id ===
|
|
4343
|
+
if (!it.user_id || it.user_id === Le) {
|
|
4344
4344
|
hs.current = it.timestamp, So(null);
|
|
4345
4345
|
return;
|
|
4346
4346
|
}
|
|
4347
4347
|
So(it.user_name ?? "Someone else");
|
|
4348
4348
|
}
|
|
4349
4349
|
}
|
|
4350
|
-
}, [it, m,
|
|
4350
|
+
}, [it, m, Le]);
|
|
4351
4351
|
const hu = ce(() => {
|
|
4352
4352
|
it && (hs.current = it.timestamp), So(null), X.invalidateQueries({ queryKey: ["item", i, p] }), X.invalidateQueries({ queryKey: ["o2m-rows"] }), X.invalidateQueries({ queryKey: ["pipeline", i, String(p)] });
|
|
4353
4353
|
}, [it, X, i, p]), gu = ce(() => {
|
|
4354
4354
|
var t;
|
|
4355
4355
|
const e = (t = Pi.current) == null ? void 0 : t.timestamp;
|
|
4356
4356
|
e && (hs.current = e), So(null);
|
|
4357
|
-
}, []), ii = ol ?
|
|
4357
|
+
}, []), ii = ol ? kb({
|
|
4358
4358
|
dirty: zt,
|
|
4359
|
-
editsDiffer:
|
|
4359
|
+
editsDiffer: xb(qe.current, M, de, et)
|
|
4360
4360
|
}) : null;
|
|
4361
4361
|
z(() => {
|
|
4362
4362
|
ii === "auto-refresh" && hu();
|
|
@@ -4436,7 +4436,7 @@ ${r.join(`
|
|
|
4436
4436
|
},
|
|
4437
4437
|
...e
|
|
4438
4438
|
];
|
|
4439
|
-
}, [w, j, ue, m]), bu =
|
|
4439
|
+
}, [w, j, ue, m]), bu = l0({
|
|
4440
4440
|
collection: i,
|
|
4441
4441
|
relations: D,
|
|
4442
4442
|
paths: al.filter((e) => e.field.includes(".")).map((e) => e.field),
|
|
@@ -4458,7 +4458,7 @@ ${r.join(`
|
|
|
4458
4458
|
const n = (w == null ? void 0 : w.ungrouped_sort) ?? Ut.length;
|
|
4459
4459
|
if (rl.size > 0 && Ht.some((r) => rl.has(r.field))) {
|
|
4460
4460
|
const r = [
|
|
4461
|
-
ue &&
|
|
4461
|
+
ue && Ie ? Ie.sort : null,
|
|
4462
4462
|
jr && ct ? ct.sort : null,
|
|
4463
4463
|
ar && dt ? dt.sort : null,
|
|
4464
4464
|
ue && ut && !ti ? ut.sort : null,
|
|
@@ -4471,7 +4471,7 @@ ${r.join(`
|
|
|
4471
4471
|
tie: 1
|
|
4472
4472
|
}
|
|
4473
4473
|
];
|
|
4474
|
-
ue &&
|
|
4474
|
+
ue && Ie && e(Ie) && t.push({ item: "__pipeline__", sort: Ie.sort, tie: 2 }), jr && ct && e(ct) && t.push({ item: "__tasks__", sort: ct.sort, tie: 3 }), ar && dt && e(dt) && t.push({ item: "__comments__", sort: dt.sort, tie: 4 }), x != null && x.addendums_enabled && !m && tn && e(tn) && t.push({ item: "__addendums__", sort: tn.sort, tie: 7 }), !m && kn && e(kn) && t.push({ item: "__referenced_by__", sort: kn.sort, tie: 8 }), !m && xn && e(xn) && t.push({ item: "__related_records__", sort: xn.sort, tie: 9 }), ue && ut && e(ut) && !ti && ps !== "__header__" && t.push({ item: "__owners__", sort: ut.sort, tie: 5 }), Ve && e(Ve) && !m && !ei && t.push({ item: "__pdf__", sort: Ve.sort, tie: 6 });
|
|
4475
4475
|
for (const n of lt)
|
|
4476
4476
|
Tf(n.field) && e(n) && t.push({ item: n.field, sort: n.sort, tie: 8 });
|
|
4477
4477
|
return t.sort((n, r) => n.sort - r.sort || n.tie - r.tie).map((n) => n.item);
|
|
@@ -4479,7 +4479,7 @@ ${r.join(`
|
|
|
4479
4479
|
Ut,
|
|
4480
4480
|
ho,
|
|
4481
4481
|
w,
|
|
4482
|
-
|
|
4482
|
+
Ie,
|
|
4483
4483
|
dt,
|
|
4484
4484
|
ct,
|
|
4485
4485
|
tn,
|
|
@@ -4527,7 +4527,7 @@ ${r.join(`
|
|
|
4527
4527
|
})() : n.validation_rules;
|
|
4528
4528
|
if (Array.isArray(r))
|
|
4529
4529
|
for (const s of r) {
|
|
4530
|
-
if (!s || s.soft || !
|
|
4530
|
+
if (!s || s.soft || !Ov(s, n.field, m, t)) continue;
|
|
4531
4531
|
const o = gm(
|
|
4532
4532
|
s,
|
|
4533
4533
|
ym(n.type, M[n.field]),
|
|
@@ -4541,15 +4541,15 @@ ${r.join(`
|
|
|
4541
4541
|
}
|
|
4542
4542
|
}
|
|
4543
4543
|
if (!e[n.field]) {
|
|
4544
|
-
const r =
|
|
4544
|
+
const r = B0(n, M[n.field], n.label ?? be(n.field));
|
|
4545
4545
|
r && (e[n.field] = r);
|
|
4546
4546
|
}
|
|
4547
4547
|
if (!e[n.field] && (m || t(n.field))) {
|
|
4548
|
-
const r =
|
|
4548
|
+
const r = N_(n, M[n.field], n.label ?? be(n.field));
|
|
4549
4549
|
r && (e[n.field] = r);
|
|
4550
4550
|
}
|
|
4551
|
-
if (!e[n.field] &&
|
|
4552
|
-
const r =
|
|
4551
|
+
if (!e[n.field] && _0.has(n.type) && (m || !et(M[n.field], $e.current[n.field]))) {
|
|
4552
|
+
const r = b0(M[n.field], {
|
|
4553
4553
|
type: n.type,
|
|
4554
4554
|
label: n.label || be(n.field)
|
|
4555
4555
|
});
|
|
@@ -4683,7 +4683,7 @@ ${r.join(`
|
|
|
4683
4683
|
),
|
|
4684
4684
|
[Se]
|
|
4685
4685
|
);
|
|
4686
|
-
|
|
4686
|
+
Db({
|
|
4687
4687
|
collection: i,
|
|
4688
4688
|
config: Or,
|
|
4689
4689
|
enabled: !I && !bt && !er,
|
|
@@ -4704,11 +4704,11 @@ ${r.join(`
|
|
|
4704
4704
|
).map((n) => n.field)
|
|
4705
4705
|
);
|
|
4706
4706
|
if (!e.size) return null;
|
|
4707
|
-
const t =
|
|
4707
|
+
const t = z0(Se, e, co);
|
|
4708
4708
|
return t.length ? { fields_changed: t, reasons: [], allow_free_text: !0, confirm: !0 } : null;
|
|
4709
4709
|
}
|
|
4710
4710
|
function dl() {
|
|
4711
|
-
const e =
|
|
4711
|
+
const e = W0(
|
|
4712
4712
|
Se,
|
|
4713
4713
|
M,
|
|
4714
4714
|
(t) => Nt.size === 0 || Nt.has(t.field),
|
|
@@ -4772,7 +4772,7 @@ ${r.join(`
|
|
|
4772
4772
|
se("/revisions", { collection: l, item: d, limit: "50" })
|
|
4773
4773
|
).then((T) => T.data ?? []).catch(() => null);
|
|
4774
4774
|
if (!f) continue;
|
|
4775
|
-
const h =
|
|
4775
|
+
const h = p0(g, u, f);
|
|
4776
4776
|
if (!h || h.conflicts.length === 0) continue;
|
|
4777
4777
|
const v = To(
|
|
4778
4778
|
Ti(l, c),
|
|
@@ -4810,11 +4810,11 @@ ${r.join(`
|
|
|
4810
4810
|
(d) => d.one_collection === i && d.many_collection === o && d.many_field === l && !d.junction_field
|
|
4811
4811
|
);
|
|
4812
4812
|
return (c == null ? void 0 : c.one_field) ?? null;
|
|
4813
|
-
}, { body: n, aliases: r } =
|
|
4813
|
+
}, { body: n, aliases: r } = F_(U.current, e, t);
|
|
4814
4814
|
if (Object.keys(r).length === 0) return [];
|
|
4815
4815
|
try {
|
|
4816
4816
|
const s = await R.request(sn(`/items/${i}?dry_run=1`, n));
|
|
4817
|
-
return
|
|
4817
|
+
return O_(e, s == null ? void 0 : s.nested, r);
|
|
4818
4818
|
} catch {
|
|
4819
4819
|
return [];
|
|
4820
4820
|
}
|
|
@@ -4841,7 +4841,7 @@ ${r.join(`
|
|
|
4841
4841
|
return n ? (Wr(n), !1) : (dl(), St.mutate(), !0);
|
|
4842
4842
|
}
|
|
4843
4843
|
const Dh = () => {
|
|
4844
|
-
rs.current = !0, vs(vt),
|
|
4844
|
+
rs.current = !0, vs(vt), Le && (wr.current = !1, R.request(mr(`/drafts/${i}/${m ? "new" : String(p)}`)).catch(() => {
|
|
4845
4845
|
}));
|
|
4846
4846
|
}, St = Nf({
|
|
4847
4847
|
mutationFn: async () => {
|
|
@@ -4877,7 +4877,7 @@ ${r.join(`
|
|
|
4877
4877
|
payload: {},
|
|
4878
4878
|
isNew: m,
|
|
4879
4879
|
committed: o
|
|
4880
|
-
}), c = [...Ge.entries()].filter(([b]) => !l.has(b)), d = [...at.entries()].filter(([b]) => !l.has(b)), g = c.some(([, b]) => b.length > 0) || d.some(([, b]) => b.size > 0), u = {}, f = m ?
|
|
4880
|
+
}), c = [...Ge.entries()].filter(([b]) => !l.has(b)), d = [...at.entries()].filter(([b]) => !l.has(b)), g = c.some(([, b]) => b.length > 0) || d.some(([, b]) => b.size > 0), u = {}, f = m ? wb({
|
|
4881
4881
|
collection: i,
|
|
4882
4882
|
relations: D,
|
|
4883
4883
|
rows: je,
|
|
@@ -5018,13 +5018,13 @@ ${r.join(`
|
|
|
5018
5018
|
if (t(b), F == null) throw new cm();
|
|
5019
5019
|
B = String(F);
|
|
5020
5020
|
} else if (Object.keys(K).some((b) => !b.startsWith("_"))) {
|
|
5021
|
-
const b =
|
|
5021
|
+
const b = s0({
|
|
5022
5022
|
payload: K,
|
|
5023
5023
|
guard: Rs.current,
|
|
5024
5024
|
current: $e.current
|
|
5025
5025
|
});
|
|
5026
5026
|
if (b.length > 0)
|
|
5027
|
-
throw r = !0,
|
|
5027
|
+
throw r = !0, i0(
|
|
5028
5028
|
b,
|
|
5029
5029
|
Cn.current ?? ha.current
|
|
5030
5030
|
);
|
|
@@ -5039,7 +5039,7 @@ ${r.join(`
|
|
|
5039
5039
|
decided: zr.current
|
|
5040
5040
|
}).length > 0)
|
|
5041
5041
|
throw J;
|
|
5042
|
-
Cn.current = me.latest, Fs.current = !1,
|
|
5042
|
+
Cn.current = me.latest, Fs.current = !1, o0({ conflicts: me.conflicts, payload: K }) || (F = await R.request(
|
|
5043
5043
|
mi(`/items/${i}/${p}`, {
|
|
5044
5044
|
...K,
|
|
5045
5045
|
_base_revision: me.latest
|
|
@@ -5064,7 +5064,7 @@ ${r.join(`
|
|
|
5064
5064
|
payload: K,
|
|
5065
5065
|
decided: zr.current
|
|
5066
5066
|
}), Je = ae.length > 0 ? ae : J.conflicts, pe = {};
|
|
5067
|
-
for (const
|
|
5067
|
+
for (const Ee of Je) pe[Ee.field] = K[Ee.field];
|
|
5068
5068
|
throw Qr({
|
|
5069
5069
|
conflicts: Je,
|
|
5070
5070
|
latest: J.latest,
|
|
@@ -5087,19 +5087,19 @@ ${r.join(`
|
|
|
5087
5087
|
if (Je) {
|
|
5088
5088
|
const pe = !Rn.current;
|
|
5089
5089
|
pe && (Rn.current = If(i, p));
|
|
5090
|
-
for (const
|
|
5090
|
+
for (const Ee of Object.keys(Je.payload)) Ii.current.add(Ee);
|
|
5091
5091
|
throw ve("main", {
|
|
5092
5092
|
status: "error",
|
|
5093
5093
|
error: "No connection — will save when you are back online"
|
|
5094
5094
|
}), tr(!1), pe && _e.info("Will save when you are back online"), b;
|
|
5095
5095
|
}
|
|
5096
5096
|
}
|
|
5097
|
-
const me = e(b), te = ey(b), ge = new Set(Se.map((ae) => ae.field)), ye =
|
|
5097
|
+
const me = e(b), te = ey(b), ge = new Set(Se.map((ae) => ae.field)), ye = vb(b, ge);
|
|
5098
5098
|
if (ve("main", {
|
|
5099
5099
|
status: "error",
|
|
5100
5100
|
// a01-8: a refused line reads "Line 1: …" with the grid's name, never
|
|
5101
5101
|
// the internal path "workflow_lines[0]: …".
|
|
5102
|
-
error: ye && /[A-Za-z0-9_]+\[[^\]]*\]:/.test(me) ?
|
|
5102
|
+
error: ye && /[A-Za-z0-9_]+\[[^\]]*\]:/.test(me) ? Fv(ye, Se) : me,
|
|
5103
5103
|
hint: te.hint,
|
|
5104
5104
|
details: te,
|
|
5105
5105
|
denied: em(b)
|
|
@@ -5154,14 +5154,14 @@ ${r.join(`
|
|
|
5154
5154
|
const ye = re(te);
|
|
5155
5155
|
if (!ye) continue;
|
|
5156
5156
|
const ae = D.find(
|
|
5157
|
-
(
|
|
5158
|
-
), Je =
|
|
5159
|
-
for (const
|
|
5157
|
+
(Ee) => Ee.many_collection === ye.many_collection && Ee.many_field === ye.junction_field && Ee.id !== ye.id
|
|
5158
|
+
), Je = C0(ae), pe = Je ? { [Je.field]: Je.value } : {};
|
|
5159
|
+
for (const Ee of ge)
|
|
5160
5160
|
me.push(
|
|
5161
5161
|
R.request(
|
|
5162
5162
|
sn(`/items/${ye.many_collection}`, {
|
|
5163
5163
|
[ye.many_field]: B,
|
|
5164
|
-
[ye.junction_field]:
|
|
5164
|
+
[ye.junction_field]: Ee,
|
|
5165
5165
|
...pe
|
|
5166
5166
|
})
|
|
5167
5167
|
).catch(F("A link could not be added"))
|
|
@@ -5212,10 +5212,10 @@ ${r.join(`
|
|
|
5212
5212
|
for (const b of h) {
|
|
5213
5213
|
const F = `o2m:new:${b}`, [J, me] = b.split("."), te = je.get(b) ?? [], ge = Oc.get(b);
|
|
5214
5214
|
if (ge != null && ge.length) {
|
|
5215
|
-
const pe = (Ke) => ge.map((mn) => String(Ke[mn] ?? "")).join("\0"),
|
|
5215
|
+
const pe = (Ke) => ge.map((mn) => String(Ke[mn] ?? "")).join("\0"), Ee = /* @__PURE__ */ new Set();
|
|
5216
5216
|
if (te.some((Ke) => {
|
|
5217
5217
|
const mn = pe(Ke);
|
|
5218
|
-
return
|
|
5218
|
+
return Ee.has(mn) ? !0 : (Ee.add(mn), !1);
|
|
5219
5219
|
})) {
|
|
5220
5220
|
ve(F, {
|
|
5221
5221
|
status: "error",
|
|
@@ -5225,8 +5225,8 @@ ${r.join(`
|
|
|
5225
5225
|
}
|
|
5226
5226
|
}
|
|
5227
5227
|
ve(F, { status: "running", progress: { done: 0, total: te.length } });
|
|
5228
|
-
const ye = (pe,
|
|
5229
|
-
const yt = pe.line_number ?? pe.sort ?? null, Ke = ["item_description", "description", "name", "title", "label"].map((pn) => pe[pn]).find((pn) => typeof pn == "string" && pn.trim() !== ""), mn = `line ${yt != null && yt !== "" ? String(yt) :
|
|
5228
|
+
const ye = (pe, Ee) => {
|
|
5229
|
+
const yt = pe.line_number ?? pe.sort ?? null, Ke = ["item_description", "description", "name", "title", "label"].map((pn) => pe[pn]).find((pn) => typeof pn == "string" && pn.trim() !== ""), mn = `line ${yt != null && yt !== "" ? String(yt) : Ee + 1}`;
|
|
5230
5230
|
return Ke ? `${mn} · ${Ke.length > 40 ? `${Ke.slice(0, 40)}…` : Ke}` : mn;
|
|
5231
5231
|
}, ae = [], Je = [];
|
|
5232
5232
|
try {
|
|
@@ -5289,16 +5289,16 @@ ${r.join(`
|
|
|
5289
5289
|
})();
|
|
5290
5290
|
}
|
|
5291
5291
|
Je.length > 0 && fn.set(b, Je);
|
|
5292
|
-
const
|
|
5292
|
+
const Ee = [];
|
|
5293
5293
|
if (ae.length > 0) {
|
|
5294
5294
|
const yt = te.length - ae.length;
|
|
5295
|
-
|
|
5295
|
+
Ee.push(
|
|
5296
5296
|
`${ae.length} of ${te.length} line${te.length !== 1 ? "s" : ""} did not save` + (yt > 0 ? ` (${yt} saved)` : "") + ` — ${ae.map((Ke) => `${Ke.label}: ${Ke.error}`).join(" · ")}`
|
|
5297
5297
|
);
|
|
5298
5298
|
}
|
|
5299
|
-
pe > 0 &&
|
|
5299
|
+
pe > 0 && Ee.push(`${pe} nested row${pe !== 1 ? "s" : ""} failed`), Ee.length > 0 && (Oe.current.linkProblems.push(Ee.join(". ")), Oe.current.childFailed = !0), ve(
|
|
5300
5300
|
F,
|
|
5301
|
-
|
|
5301
|
+
Ee.length > 0 ? { status: "error", detail: void 0, error: Ee.join(". ") } : {
|
|
5302
5302
|
status: "done",
|
|
5303
5303
|
detail: `${te.length} line${te.length !== 1 ? "s" : ""} saved`
|
|
5304
5304
|
}
|
|
@@ -5314,11 +5314,11 @@ ${r.join(`
|
|
|
5314
5314
|
let ye = !1, ae = 0;
|
|
5315
5315
|
const Je = /* @__PURE__ */ new Map();
|
|
5316
5316
|
await Promise.all(
|
|
5317
|
-
[...ge.entries()].map(async ([pe,
|
|
5318
|
-
const yt = Object.entries(
|
|
5317
|
+
[...ge.entries()].map(async ([pe, Ee]) => {
|
|
5318
|
+
const yt = Object.entries(Ee).filter(
|
|
5319
5319
|
([mt]) => mt.startsWith("__nested_ops_")
|
|
5320
5320
|
), Ke = Object.fromEntries(
|
|
5321
|
-
Object.entries(
|
|
5321
|
+
Object.entries(Ee).filter(
|
|
5322
5322
|
([mt]) => !mt.startsWith("__nested_ops_") && mt !== "__flush_early"
|
|
5323
5323
|
)
|
|
5324
5324
|
);
|
|
@@ -5365,7 +5365,7 @@ ${r.join(`
|
|
|
5365
5365
|
});
|
|
5366
5366
|
}
|
|
5367
5367
|
if (mn) {
|
|
5368
|
-
Je.set(pe,
|
|
5368
|
+
Je.set(pe, Ee), ve(F, (mt) => {
|
|
5369
5369
|
var Yt;
|
|
5370
5370
|
return {
|
|
5371
5371
|
progress: { done: (((Yt = mt.progress) == null ? void 0 : Yt.done) ?? 0) + 1, total: ge.size }
|
|
@@ -5489,7 +5489,7 @@ ${r.join(`
|
|
|
5489
5489
|
bo.markSaved(), Nd(!0), setTimeout(() => Nd(!1), 1600), da.current = Date.now(), Hr({}), (async () => {
|
|
5490
5490
|
try {
|
|
5491
5491
|
const d = (j ?? []).filter(
|
|
5492
|
-
(f) =>
|
|
5492
|
+
(f) => qe.current.has(f.field) && ["wysiwyg", "rich_text", "input-rich-text-html", "rich-text-html"].includes(
|
|
5493
5493
|
String(f.interface ?? "")
|
|
5494
5494
|
)
|
|
5495
5495
|
);
|
|
@@ -5519,7 +5519,7 @@ ${r.join(`
|
|
|
5519
5519
|
}
|
|
5520
5520
|
})();
|
|
5521
5521
|
try {
|
|
5522
|
-
for (const d of
|
|
5522
|
+
for (const d of qe.current) {
|
|
5523
5523
|
const g = document.querySelector(`[data-field="${CSS.escape(d)}"]`);
|
|
5524
5524
|
g && (g.classList.remove("nvr-saved-glow"), g.offsetWidth, g.classList.add("nvr-saved-glow"), setTimeout(() => g.classList.remove("nvr-saved-glow"), 1e3));
|
|
5525
5525
|
}
|
|
@@ -5529,11 +5529,11 @@ ${r.join(`
|
|
|
5529
5529
|
const d = new Set(Ii.current);
|
|
5530
5530
|
for (const g of Object.keys(vd.current))
|
|
5531
5531
|
g.startsWith("_") || d.add(g);
|
|
5532
|
-
Oy(i, e, d), Ei(), Ky(
|
|
5532
|
+
Oy(i, e, d), Ei(), Ky(Le, "saved", i, e);
|
|
5533
5533
|
}
|
|
5534
5534
|
X.invalidateQueries({ queryKey: ["collision-base", i] });
|
|
5535
|
-
const t = !m &&
|
|
5536
|
-
Ci.current = t, t || Fn(!1), !m && !t && vs(vt), es(/* @__PURE__ */ new Map()), Ps(/* @__PURE__ */ new Map()), Od([]), ga.current = "", ya([]);
|
|
5535
|
+
const t = !m && yb(Oe.current);
|
|
5536
|
+
Ci.current = t, t || Fn(!1), m || w_(qe.current, { leftWorkStaged: t }), !m && !t && vs(vt), es(/* @__PURE__ */ new Map()), Ps(/* @__PURE__ */ new Map()), Od([]), ga.current = "", ya([]);
|
|
5537
5537
|
const n = /* @__PURE__ */ new Set([
|
|
5538
5538
|
...je.keys(),
|
|
5539
5539
|
...ze.keys(),
|
|
@@ -5545,7 +5545,7 @@ ${r.join(`
|
|
|
5545
5545
|
}
|
|
5546
5546
|
rr(new Map(Ji.current));
|
|
5547
5547
|
const r = ds.current.size > 0;
|
|
5548
|
-
if (ds.current.clear(), Da(/* @__PURE__ */ new Map()), X.invalidateQueries({ queryKey: ["item", i] }), r ? X.invalidateQueries({ queryKey: ["m2m-items"] }) : Wf(X, [e, ...
|
|
5548
|
+
if (ds.current.clear(), Da(/* @__PURE__ */ new Map()), X.invalidateQueries({ queryKey: ["item", i] }), r ? X.invalidateQueries({ queryKey: ["m2m-items"] }) : Wf(X, [e, ...j0(ze)]), nb(X, i, String(e)), X.invalidateQueries({ queryKey: ["last-touch", i, String(e)] }), X.invalidateQueries({ queryKey: ["field-lineage", i, String(e)] }), X.invalidateQueries({ queryKey: ["child-summary", i, String(e)] }), rb(X, i, String(e)), vo && Pn && lr({ itemId: String(e), silent: !0 }), m && Ks.current) {
|
|
5549
5549
|
const d = Ks.current;
|
|
5550
5550
|
Ks.current = null;
|
|
5551
5551
|
const g = {};
|
|
@@ -5555,9 +5555,9 @@ ${r.join(`
|
|
|
5555
5555
|
).catch(() => {
|
|
5556
5556
|
});
|
|
5557
5557
|
}
|
|
5558
|
-
const s = Oe.current, o = (x == null ? void 0 : x.singular) || be(i), l =
|
|
5558
|
+
const s = Oe.current, o = (x == null ? void 0 : x.singular) || be(i), l = _b(s, { isNew: m, noun: o });
|
|
5559
5559
|
if (l) {
|
|
5560
|
-
const d = l.kind === "error" ? _e.error : l.kind === "warning" ? _e.warning : l.kind === "success" ? _e.success : _e, g = { id:
|
|
5560
|
+
const d = l.kind === "error" ? _e.error : l.kind === "warning" ? _e.warning : l.kind === "success" ? _e.success : _e, g = { id: bb };
|
|
5561
5561
|
l.duration ? d(l.text, { ...g, duration: l.duration }) : d(l.text, g);
|
|
5562
5562
|
}
|
|
5563
5563
|
s.linkProblems.length > 0 && _e.error(
|
|
@@ -5573,20 +5573,20 @@ ${r.join(`
|
|
|
5573
5573
|
Ai.current = !1;
|
|
5574
5574
|
},
|
|
5575
5575
|
onError: (e) => {
|
|
5576
|
-
m && (rs.current = !1),
|
|
5576
|
+
m && (rs.current = !1), jv(e) === "EDIT_LOCKED" && X.invalidateQueries({ queryKey: ["pipeline-instance-lock", i, p] });
|
|
5577
5577
|
}
|
|
5578
5578
|
}), Co = $(null), gs = (ee == null ? void 0 : ee.id) != null ? Number(ee.id) : null, Vn = Or.tour === !0 && !I && gs != null, ai = A(
|
|
5579
|
-
() => Vn ?
|
|
5580
|
-
[Vn, Ce,
|
|
5581
|
-
), ys =
|
|
5579
|
+
() => Vn ? T_(Ce, Te) : /* @__PURE__ */ new Map(),
|
|
5580
|
+
[Vn, Ce, Te]
|
|
5581
|
+
), ys = I_({
|
|
5582
5582
|
layoutId: Vn ? gs : null,
|
|
5583
|
-
userId:
|
|
5583
|
+
userId: Le,
|
|
5584
5584
|
enabled: Vn
|
|
5585
5585
|
}), [Bh, ul] = P(!1), Su = $(null);
|
|
5586
5586
|
z(() => {
|
|
5587
5587
|
if (!Vn || ys.seen || !ys.known || Su.current === gs) return;
|
|
5588
5588
|
const e = window.setTimeout(() => {
|
|
5589
|
-
document.querySelector('[role="dialog"][data-state="open"]') ||
|
|
5589
|
+
document.querySelector('[role="dialog"][data-state="open"]') || E_(Co.current).some((t) => ai.has(t)) && (Su.current = gs, ul(!0));
|
|
5590
5590
|
}, 800);
|
|
5591
5591
|
return () => window.clearTimeout(e);
|
|
5592
5592
|
}, [Vn, ys.seen, ys.known, gs, ai]);
|
|
@@ -5605,8 +5605,8 @@ ${r.join(`
|
|
|
5605
5605
|
const o = s.key.slice(0, s.key.indexOf(".")), l = s.key.slice(s.key.indexOf(".") + 1), c = new Map(n.get(s.key) ?? []), d = c.get(s.rowId);
|
|
5606
5606
|
if (X.invalidateQueries({ queryKey: ["o2m-rows", o, l, String(p)] }), !d) continue;
|
|
5607
5607
|
const g = new Set(
|
|
5608
|
-
s.conflicts.filter((f) => e.has(
|
|
5609
|
-
), u =
|
|
5608
|
+
s.conflicts.filter((f) => e.has(g0(s, f.field))).map((f) => f.field)
|
|
5609
|
+
), u = y0(d, g);
|
|
5610
5610
|
u ? (c.set(s.rowId, u), ht.current.set(`${o}:${s.rowId}`, Promise.resolve(s.latest || null)), r++) : (c.delete(s.rowId), ht.current.delete(`${o}:${s.rowId}`)), c.size > 0 ? n.set(s.key, c) : n.delete(s.key);
|
|
5611
5611
|
}
|
|
5612
5612
|
if (kr(n), r > 0 && Cs.current && !_t.current && (_t.current = Cs.current), Cs.current = null, aa) {
|
|
@@ -5660,7 +5660,7 @@ ${r.join(`
|
|
|
5660
5660
|
const t = { ...U.current, ...e.payload };
|
|
5661
5661
|
U.current = t, pt(t);
|
|
5662
5662
|
for (const r of Object.keys(e.payload))
|
|
5663
|
-
|
|
5663
|
+
qe.current.add(r), br.current.set(r, ++Os.current);
|
|
5664
5664
|
if (Fn(!0), e.change_reason && (_t.current = e.change_reason), e.status === "conflict" && ((n = e.conflicts) != null && n.length)) {
|
|
5665
5665
|
const r = {};
|
|
5666
5666
|
for (const s of e.conflicts) r[s.field] = e.payload[s.field];
|
|
@@ -5698,7 +5698,7 @@ ${r.join(`
|
|
|
5698
5698
|
description: "Someone else saved this record after you opened it."
|
|
5699
5699
|
}), !1;
|
|
5700
5700
|
if (!vu()) return !1;
|
|
5701
|
-
if (!
|
|
5701
|
+
if (!q0({ isDirty: Ue, staged: ln })) return !0;
|
|
5702
5702
|
const e = wu();
|
|
5703
5703
|
if (e)
|
|
5704
5704
|
return Wr(e), !1;
|
|
@@ -5708,7 +5708,7 @@ ${r.join(`
|
|
|
5708
5708
|
} catch {
|
|
5709
5709
|
return !1;
|
|
5710
5710
|
}
|
|
5711
|
-
return
|
|
5711
|
+
return T0({
|
|
5712
5712
|
childRefused: Ci.current,
|
|
5713
5713
|
lineConflicts: Oe.current.lineConflicts,
|
|
5714
5714
|
reasonWaiting: Oe.current.reasonWaiting
|
|
@@ -5733,7 +5733,7 @@ ${r.join(`
|
|
|
5733
5733
|
onError: (e) => _e.error(Fl(e, "Failed to delete"), {
|
|
5734
5734
|
...ny(e, { action: "Delete record" }),
|
|
5735
5735
|
...em(e) && p ? {
|
|
5736
|
-
action:
|
|
5736
|
+
action: sv(R, {
|
|
5737
5737
|
collection: i,
|
|
5738
5738
|
itemId: String(p),
|
|
5739
5739
|
action: "delete"
|
|
@@ -5792,7 +5792,7 @@ ${r.join(`
|
|
|
5792
5792
|
const pl = /* @__PURE__ */ new Map();
|
|
5793
5793
|
for (const e of Va)
|
|
5794
5794
|
if (Us.has(e.key))
|
|
5795
|
-
for (const t of
|
|
5795
|
+
for (const t of Te[e.key] ?? [])
|
|
5796
5796
|
Et.add(t.field), pl.has(t.field) || pl.set(t.field, `Hidden by a rule: ${e.label} shows when ${e.when}`);
|
|
5797
5797
|
const ft = {};
|
|
5798
5798
|
for (const [e, t] of qu)
|
|
@@ -5838,7 +5838,7 @@ ${r.join(`
|
|
|
5838
5838
|
r.computed_type === "rollup" ? ft[s] = "Calculated from related rows — change the rows, not this total" : r.computed_type === "write" ? ft[s] = r.computed_formula ? `Calculated: ${r.computed_formula}` : "Calculated on save from other fields" : r.interface === "relation-path" ? ft[s] = "Value from a related record — edit it there" : (o == null ? void 0 : o.readonly) === !0 ? ft[s] = "Read-only on this layout" : Zt.has(s) ? ft[s] = "Set by the system" : ft[s] = "Read-only field";
|
|
5839
5839
|
}
|
|
5840
5840
|
}
|
|
5841
|
-
const Xh =
|
|
5841
|
+
const Xh = N0(ft, ao.data), hl = Rv(
|
|
5842
5842
|
m,
|
|
5843
5843
|
Se,
|
|
5844
5844
|
(e) => !!ft[e] || Et.has(e)
|
|
@@ -6049,19 +6049,19 @@ ${r.join(`
|
|
|
6049
6049
|
fromAutofill: mp,
|
|
6050
6050
|
glossaryHelp: Or.glossary !== !1,
|
|
6051
6051
|
placementText: uo
|
|
6052
|
-
}, ng =
|
|
6052
|
+
}, ng = pb(tg), rg = k_({
|
|
6053
6053
|
labelOf: (e) => {
|
|
6054
6054
|
const t = (j ?? []).find((n) => n.field === e);
|
|
6055
6055
|
return t && Ll(t, uo).label || (t == null ? void 0 : t.label) || be(e);
|
|
6056
6056
|
},
|
|
6057
|
-
editSeq: (e) => br.current.get(e) ?? (
|
|
6057
|
+
editSeq: (e) => br.current.get(e) ?? (qe.current.has(e) ? 0 : -1)
|
|
6058
6058
|
}), Oo = $g();
|
|
6059
|
-
z(() => () =>
|
|
6059
|
+
z(() => () => H0(Oo), [Oo]);
|
|
6060
6060
|
const sg = A(
|
|
6061
6061
|
() => ({
|
|
6062
6062
|
draft: Ud,
|
|
6063
6063
|
collection: i,
|
|
6064
|
-
dirtyFields:
|
|
6064
|
+
dirtyFields: qe.current,
|
|
6065
6065
|
fieldLabels: zs,
|
|
6066
6066
|
fieldOptionFilters: $a,
|
|
6067
6067
|
formKey: Oo,
|
|
@@ -6075,7 +6075,7 @@ ${r.join(`
|
|
|
6075
6075
|
Oo,
|
|
6076
6076
|
m
|
|
6077
6077
|
]
|
|
6078
|
-
), Pt = (e, t, n) =>
|
|
6078
|
+
), Pt = (e, t, n) => Qb(Be, e, t, n), _l = (e, t, n) => Pt(e, t, n), qr = (e, t) => {
|
|
6079
6079
|
var n;
|
|
6080
6080
|
return {
|
|
6081
6081
|
kind: "slot",
|
|
@@ -6084,7 +6084,7 @@ ${r.join(`
|
|
|
6084
6084
|
};
|
|
6085
6085
|
}, dr = (e, t = !0) => $n && (e.hidden || !t), jo = (e, t) => e ? /* @__PURE__ */ a("div", { "data-design-hidden": "", className: "opacity-40", children: t }) : t, bl = (e) => ({
|
|
6086
6086
|
// A display formula is a `__calc_<n>__` placement — the editor's slot kind (#2712).
|
|
6087
|
-
kind:
|
|
6087
|
+
kind: Q0(e) ? "slot" : "field",
|
|
6088
6088
|
field: e.field,
|
|
6089
6089
|
group_key: e.group_key ?? null
|
|
6090
6090
|
}), vl = (e, t, n) => {
|
|
@@ -6111,9 +6111,9 @@ ${r.join(`
|
|
|
6111
6111
|
{
|
|
6112
6112
|
collection: dn,
|
|
6113
6113
|
item: cn,
|
|
6114
|
-
title: (
|
|
6115
|
-
defaultExpanded: (
|
|
6116
|
-
showApprovalChain: !!(
|
|
6114
|
+
title: (Ie == null ? void 0 : Ie.label_override) ?? void 0,
|
|
6115
|
+
defaultExpanded: (Ie == null ? void 0 : Ie.default_expanded) ?? !1,
|
|
6116
|
+
showApprovalChain: !!(Ie != null && Ie.show_approval_chain),
|
|
6117
6117
|
hideActionsCollapsed: !!iu.hide_actions_collapsed,
|
|
6118
6118
|
hideActionsExpanded: !!iu.hide_actions_expanded,
|
|
6119
6119
|
onBeforeTransition: _s,
|
|
@@ -6215,7 +6215,7 @@ ${r.join(`
|
|
|
6215
6215
|
const s = Tf(e);
|
|
6216
6216
|
if (s)
|
|
6217
6217
|
return /* @__PURE__ */ a(
|
|
6218
|
-
|
|
6218
|
+
j_,
|
|
6219
6219
|
{
|
|
6220
6220
|
slotKey: s,
|
|
6221
6221
|
collection: i,
|
|
@@ -6351,12 +6351,12 @@ ${r.join(`
|
|
|
6351
6351
|
}
|
|
6352
6352
|
})(), c = ((l == null ? void 0 : l.alternate_fields) ?? []).map(
|
|
6353
6353
|
(y) => typeof y == "string" ? { field: y, width: 2 } : y
|
|
6354
|
-
), d = l != null && l.enabled ? Lc.has((o == null ? void 0 : o.id) ?? -1) : !1, g = (
|
|
6354
|
+
), d = l != null && l.enabled ? Lc.has((o == null ? void 0 : o.id) ?? -1) : !1, g = (Te[(o == null ? void 0 : o.key) ?? ""] ?? []).filter(
|
|
6355
6355
|
(y) => $n || !y.hidden
|
|
6356
6356
|
), u = !m && !!Dt && !!Ve && (ms === (o == null ? void 0 : o.key) || ms === e.key), f = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
|
|
6357
6357
|
for (const y of n) {
|
|
6358
6358
|
if (m && !bh(e, y.key)) continue;
|
|
6359
|
-
const T =
|
|
6359
|
+
const T = Te[y.key] ?? [];
|
|
6360
6360
|
T.some((C) => tt[C.field]) && h.add(y.key);
|
|
6361
6361
|
const Y = T.filter((C) => C.required && !C.hidden);
|
|
6362
6362
|
(Y.length === 0 || Y.every((C) => {
|
|
@@ -6382,7 +6382,7 @@ ${r.join(`
|
|
|
6382
6382
|
errorSteps: h,
|
|
6383
6383
|
dirtySteps: new Set(
|
|
6384
6384
|
n.filter(
|
|
6385
|
-
(y) => (
|
|
6385
|
+
(y) => (Te[y.key] ?? []).some((T) => qe.current.has(T.field))
|
|
6386
6386
|
).map((y) => y.key)
|
|
6387
6387
|
),
|
|
6388
6388
|
onStepClick: (y) => Ar(e, y),
|
|
@@ -6408,7 +6408,7 @@ ${r.join(`
|
|
|
6408
6408
|
)
|
|
6409
6409
|
) }),
|
|
6410
6410
|
/* @__PURE__ */ _("div", { className: "px-5 py-5", children: [
|
|
6411
|
-
o && /* @__PURE__ */ a(
|
|
6411
|
+
o && /* @__PURE__ */ a(f0, { group: o, className: "mb-4" }),
|
|
6412
6412
|
I && o && /* @__PURE__ */ a(Gf, { groupKey: o.key }),
|
|
6413
6413
|
(() => {
|
|
6414
6414
|
const y = (Q, Y) => {
|
|
@@ -6650,7 +6650,7 @@ ${r.join(`
|
|
|
6650
6650
|
if (typeof e == "string" && e !== "__ungrouped__") return wl(e);
|
|
6651
6651
|
const t = e;
|
|
6652
6652
|
if (t.type === "container") return Pu(t);
|
|
6653
|
-
if (t.type === "content") return /* @__PURE__ */ a(
|
|
6653
|
+
if (t.type === "content") return /* @__PURE__ */ a(u0, { group: t }, t.key);
|
|
6654
6654
|
if (t.type === "metadata" && m) return null;
|
|
6655
6655
|
const n = (() => {
|
|
6656
6656
|
try {
|
|
@@ -6660,7 +6660,7 @@ ${r.join(`
|
|
|
6660
6660
|
}
|
|
6661
6661
|
})(), r = ((n == null ? void 0 : n.alternate_fields) ?? []).map(
|
|
6662
6662
|
(h) => typeof h == "string" ? { field: h, width: 2 } : h
|
|
6663
|
-
), s = n != null && n.enabled ? Lc.has(t.id) : !1, l = (
|
|
6663
|
+
), s = n != null && n.enabled ? Lc.has(t.id) : !1, l = (Te[t.key] ?? []).map((h) => {
|
|
6664
6664
|
const v = $c.get(h.field);
|
|
6665
6665
|
if (v === void 0) return h;
|
|
6666
6666
|
const S = M[h.field];
|
|
@@ -6676,7 +6676,7 @@ ${r.join(`
|
|
|
6676
6676
|
return null;
|
|
6677
6677
|
const u = go && t.type !== "tab";
|
|
6678
6678
|
return /* @__PURE__ */ a(
|
|
6679
|
-
|
|
6679
|
+
H_,
|
|
6680
6680
|
{
|
|
6681
6681
|
group: t,
|
|
6682
6682
|
fields: l,
|
|
@@ -6736,7 +6736,7 @@ ${r.join(`
|
|
|
6736
6736
|
const s = typeof n == "string" ? n : n.key;
|
|
6737
6737
|
return vl(n, s ?? r, e);
|
|
6738
6738
|
}),
|
|
6739
|
-
!
|
|
6739
|
+
!Ie && ue && /* @__PURE__ */ a(
|
|
6740
6740
|
Eo,
|
|
6741
6741
|
{
|
|
6742
6742
|
collection: dn,
|
|
@@ -6797,7 +6797,7 @@ ${r.join(`
|
|
|
6797
6797
|
}
|
|
6798
6798
|
function Mu(e, t, n, r) {
|
|
6799
6799
|
return /* @__PURE__ */ a(
|
|
6800
|
-
|
|
6800
|
+
W_,
|
|
6801
6801
|
{
|
|
6802
6802
|
row: e,
|
|
6803
6803
|
members: t,
|
|
@@ -6810,7 +6810,7 @@ ${r.join(`
|
|
|
6810
6810
|
/* @__PURE__ */ a(
|
|
6811
6811
|
ws,
|
|
6812
6812
|
{
|
|
6813
|
-
field:
|
|
6813
|
+
field: Q_(s),
|
|
6814
6814
|
draft: Wn,
|
|
6815
6815
|
onChange: _n,
|
|
6816
6816
|
relations: D,
|
|
@@ -6835,7 +6835,7 @@ ${r.join(`
|
|
|
6835
6835
|
}
|
|
6836
6836
|
function Ku(e, t, n) {
|
|
6837
6837
|
return t.folded.length === 0 ? null : /* @__PURE__ */ a(
|
|
6838
|
-
|
|
6838
|
+
z_,
|
|
6839
6839
|
{
|
|
6840
6840
|
count: t.folded.length,
|
|
6841
6841
|
open: dh.has(e),
|
|
@@ -6850,7 +6850,7 @@ ${r.join(`
|
|
|
6850
6850
|
);
|
|
6851
6851
|
}
|
|
6852
6852
|
function Ao(e, t = !1) {
|
|
6853
|
-
const n = (e === "__general__" ? t ? Ht : [...Ht, ...Ut.flatMap((d) =>
|
|
6853
|
+
const n = (e === "__general__" ? t ? Ht : [...Ht, ...Ut.flatMap((d) => Te[d.key] ?? [])] : Te[e] ?? []).filter((d) => $n || !d.hidden), r = ti && ps === e && ue, s = ei && ms === e && !m, o = Xs.filter((d) => (d.group_key ?? null) === e), l = Lu(
|
|
6854
6854
|
e === "__general__" ? void 0 : Ce.find((d) => d.key === e),
|
|
6855
6855
|
n
|
|
6856
6856
|
), c = l.units.map(
|
|
@@ -6891,7 +6891,7 @@ ${r.join(`
|
|
|
6891
6891
|
return Pt(
|
|
6892
6892
|
qr("__owners__", g.slot.group_key ?? null),
|
|
6893
6893
|
/* @__PURE__ */ a("div", { style: { gridColumn: `span ${C}` }, children: /* @__PURE__ */ a(
|
|
6894
|
-
|
|
6894
|
+
uv,
|
|
6895
6895
|
{
|
|
6896
6896
|
collection: i,
|
|
6897
6897
|
itemId: p,
|
|
@@ -7022,7 +7022,7 @@ ${r.join(`
|
|
|
7022
7022
|
n && jt(n.key);
|
|
7023
7023
|
}
|
|
7024
7024
|
}, Du = (e) => Va.length > 0 ? /* @__PURE__ */ a(
|
|
7025
|
-
|
|
7025
|
+
ub,
|
|
7026
7026
|
{
|
|
7027
7027
|
items: Va,
|
|
7028
7028
|
revealed: Us,
|
|
@@ -7087,7 +7087,7 @@ ${r.join(`
|
|
|
7087
7087
|
Ao(n.key)
|
|
7088
7088
|
] }, n.key)) : Ao(Ye),
|
|
7089
7089
|
oi.filter((n) => typeof n == "string" && n !== "__ungrouped__").map((n) => Pt(qr(n), wl(n))),
|
|
7090
|
-
!
|
|
7090
|
+
!Ie && ue && /* @__PURE__ */ a(
|
|
7091
7091
|
Eo,
|
|
7092
7092
|
{
|
|
7093
7093
|
collection: dn,
|
|
@@ -7199,7 +7199,7 @@ ${r.join(`
|
|
|
7199
7199
|
`${dn}:${cn}`
|
|
7200
7200
|
)
|
|
7201
7201
|
] })
|
|
7202
|
-
] }) }), s = Ot.length > 0 ? Math.min(...Ot.map((d) => d.sort)) : 1 / 0, o = oi.filter((d) => typeof d != "string" ? d.sort < s : d === "__pipeline__" ? !!(
|
|
7202
|
+
] }) }), s = Ot.length > 0 ? Math.min(...Ot.map((d) => d.sort)) : 1 / 0, o = oi.filter((d) => typeof d != "string" ? d.sort < s : d === "__pipeline__" ? !!(Ie && Ie.sort < s) : d === "__comments__" ? !!(dt && dt.sort < s) : d === "__tasks__" ? !!(ct && ct.sort < s) : d === "__addendums__" ? !!(tn && tn.sort < s) : !1), l = oi.filter((d) => d === "__ungrouped__" ? !1 : typeof d != "string" ? d.sort >= s : d === "__pipeline__" ? !(Ie && Ie.sort < s) : d === "__comments__" ? !(dt && dt.sort < s) : d === "__tasks__" ? !(ct && ct.sort < s) : d === "__addendums__" ? !(tn && tn.sort < s) : !1);
|
|
7203
7203
|
return /* @__PURE__ */ _("div", { "data-section-stack": "", className: "nvr-stagger space-y-4 min-w-0 flex-1", children: [
|
|
7204
7204
|
o.map((d, g) => {
|
|
7205
7205
|
const u = typeof d == "string" ? d : d.key;
|
|
@@ -7214,7 +7214,7 @@ ${r.join(`
|
|
|
7214
7214
|
completed: kh,
|
|
7215
7215
|
dirtySteps: wh,
|
|
7216
7216
|
errorSteps: new Set(
|
|
7217
|
-
we.filter((d) => (
|
|
7217
|
+
we.filter((d) => (Te[d.key] ?? []).some((g) => tt[g.field])).map((d) => d.key)
|
|
7218
7218
|
),
|
|
7219
7219
|
onStepClick: jt
|
|
7220
7220
|
}
|
|
@@ -7228,7 +7228,7 @@ ${r.join(`
|
|
|
7228
7228
|
const u = typeof d == "string" ? d : d.key;
|
|
7229
7229
|
return vl(d, u ?? g);
|
|
7230
7230
|
}),
|
|
7231
|
-
!
|
|
7231
|
+
!Ie && ue && /* @__PURE__ */ a(
|
|
7232
7232
|
Eo,
|
|
7233
7233
|
{
|
|
7234
7234
|
collection: dn,
|
|
@@ -7340,10 +7340,10 @@ ${r.join(`
|
|
|
7340
7340
|
) });
|
|
7341
7341
|
}
|
|
7342
7342
|
if ((er == null ? void 0 : er.kind) === "access")
|
|
7343
|
-
return /* @__PURE__ */ a("div", { className: De("nvr-fade-in flex flex-1 min-h-0 flex-col overflow-y-auto", Ss), children: /* @__PURE__ */ a(
|
|
7343
|
+
return /* @__PURE__ */ a("div", { className: De("nvr-fade-in flex flex-1 min-h-0 flex-col overflow-y-auto", Ss), children: /* @__PURE__ */ a(ib, { onBack: L ?? (() => window.history.back()) }) });
|
|
7344
7344
|
if (na && !de)
|
|
7345
7345
|
return /* @__PURE__ */ a("div", { className: De("nvr-fade-in flex flex-1 min-h-0 flex-col overflow-y-auto", Ss), children: /* @__PURE__ */ a(
|
|
7346
|
-
|
|
7346
|
+
ov,
|
|
7347
7347
|
{
|
|
7348
7348
|
collection: i,
|
|
7349
7349
|
itemId: String(p),
|
|
@@ -7353,10 +7353,10 @@ ${r.join(`
|
|
|
7353
7353
|
) });
|
|
7354
7354
|
if (!(I ? j !== void 0 : xi) || !m && Ri)
|
|
7355
7355
|
return /* @__PURE__ */ _("div", { className: De("flex flex-1 min-h-0 flex-col", Ss), children: [
|
|
7356
|
-
|
|
7356
|
+
Pe && /* @__PURE__ */ a("div", { className: "shrink-0 border-b border-slate-200 px-6 py-4 flex items-center gap-3 dark:border-border", children: /* @__PURE__ */ a(hi, { className: "h-6 w-40" }) }),
|
|
7357
7357
|
dd ? /* @__PURE__ */ _("div", { className: "relative flex-1 min-h-0 overflow-hidden p-6", children: [
|
|
7358
7358
|
/* @__PURE__ */ a("p", { className: "sr-only", role: "status", children: "Loading record…" }),
|
|
7359
|
-
/* @__PURE__ */ a(
|
|
7359
|
+
/* @__PURE__ */ a(Xb, { plan: dd }),
|
|
7360
7360
|
Fi.slow && /* @__PURE__ */ a("div", { className: "pointer-events-none absolute inset-x-0 top-3 flex justify-center px-4", children: /* @__PURE__ */ a(Xf, { reason: Fi, variant: "pill" }) })
|
|
7361
7361
|
] }) : /* @__PURE__ */ _("div", { className: "flex flex-1 flex-col items-center justify-center gap-3 p-6", children: [
|
|
7362
7362
|
/* @__PURE__ */ a("span", { className: "relative flex h-10 w-10 items-center justify-center", children: /* @__PURE__ */ a("span", { className: "absolute inset-0 animate-spin rounded-full border-2 border-slate-200 border-t-nvr-cyan motion-reduce:animate-none dark:border-border dark:border-t-nvr-cyan" }) }),
|
|
@@ -7373,15 +7373,15 @@ ${r.join(`
|
|
|
7373
7373
|
qg.Provider,
|
|
7374
7374
|
{
|
|
7375
7375
|
value: m || Qt ? null : Id,
|
|
7376
|
-
children: /* @__PURE__ */ a(Tg.Provider, { value: bp, children: /* @__PURE__ */ a(p_.Provider, { value: Yp, children: /* @__PURE__ */ a(h_.Provider, { value: He, children: /* @__PURE__ */ a(g_.Provider, { value: Bp, children: /* @__PURE__ */ a(Ig.Provider, { value: sg, children: /* @__PURE__ */ a(Eg.Provider, { value: m ? null : zm, children: /* @__PURE__ */ a(Pg.Provider, { value: Hp, children: /* @__PURE__ */ a(
|
|
7377
|
-
|
|
7376
|
+
children: /* @__PURE__ */ a(Tg.Provider, { value: bp, children: /* @__PURE__ */ a(p_.Provider, { value: Yp, children: /* @__PURE__ */ a(h_.Provider, { value: He, children: /* @__PURE__ */ a(g_.Provider, { value: Bp, children: /* @__PURE__ */ a(Ig.Provider, { value: sg, children: /* @__PURE__ */ a(Eg.Provider, { value: m ? null : zm, children: /* @__PURE__ */ a(Pg.Provider, { value: Hp, children: /* @__PURE__ */ a(x_.Provider, { value: rg, children: /* @__PURE__ */ a(I0.Provider, { value: an, children: /* @__PURE__ */ a(E0.Provider, { value: zp, children: /* @__PURE__ */ a(P0.Provider, { value: Wp, children: /* @__PURE__ */ a(R0.Provider, { value: xe, children: /* @__PURE__ */ _(
|
|
7377
|
+
Vv,
|
|
7378
7378
|
{
|
|
7379
7379
|
affordances: ng,
|
|
7380
7380
|
personalDefaults: ro.context,
|
|
7381
7381
|
sources: Em,
|
|
7382
7382
|
fieldComments: Ya,
|
|
7383
7383
|
children: [
|
|
7384
|
-
/* @__PURE__ */ a(
|
|
7384
|
+
/* @__PURE__ */ a(ev, {}),
|
|
7385
7385
|
/* @__PURE__ */ a("p", { className: "sr-only", "aria-live": "polite", "data-live-field-error": !0, children: Vm }),
|
|
7386
7386
|
/* @__PURE__ */ a(
|
|
7387
7387
|
Ko,
|
|
@@ -7428,7 +7428,7 @@ ${r.join(`
|
|
|
7428
7428
|
}
|
|
7429
7429
|
),
|
|
7430
7430
|
/* @__PURE__ */ a(
|
|
7431
|
-
|
|
7431
|
+
gv,
|
|
7432
7432
|
{
|
|
7433
7433
|
open: cp,
|
|
7434
7434
|
steps: up,
|
|
@@ -7449,7 +7449,7 @@ ${r.join(`
|
|
|
7449
7449
|
/* @__PURE__ */ a("p", { className: "text-[13px] text-slate-600 dark:text-slate-300", children: "These values were copied from the original record, but the new record will store them differently — a rule or your access sets them." }),
|
|
7450
7450
|
/* @__PURE__ */ a("ul", { className: "mt-3 space-y-1.5 text-[12.5px]", children: (xu ?? []).map((e) => {
|
|
7451
7451
|
var r;
|
|
7452
|
-
const t = ((r = je.get(e.key)) == null ? void 0 : r[e.index]) ?? {}, n =
|
|
7452
|
+
const t = ((r = je.get(e.key)) == null ? void 0 : r[e.index]) ?? {}, n = R_(t, e.index);
|
|
7453
7453
|
return /* @__PURE__ */ _(
|
|
7454
7454
|
"li",
|
|
7455
7455
|
{
|
|
@@ -7587,7 +7587,7 @@ ${r.join(`
|
|
|
7587
7587
|
"data-form-density": Tc === "compact" ? "compact" : void 0,
|
|
7588
7588
|
className: De("flex flex-1 min-h-0 flex-col", Ss),
|
|
7589
7589
|
children: [
|
|
7590
|
-
|
|
7590
|
+
Pe && /* @__PURE__ */ _(
|
|
7591
7591
|
"header",
|
|
7592
7592
|
{
|
|
7593
7593
|
className: De(
|
|
@@ -7691,7 +7691,7 @@ ${r.join(`
|
|
|
7691
7691
|
}
|
|
7692
7692
|
),
|
|
7693
7693
|
(Jt == null ? void 0 : Jt.api) && /* @__PURE__ */ a(
|
|
7694
|
-
|
|
7694
|
+
Wv,
|
|
7695
7695
|
{
|
|
7696
7696
|
collection: i,
|
|
7697
7697
|
itemId: String(p),
|
|
@@ -7702,7 +7702,7 @@ ${r.join(`
|
|
|
7702
7702
|
}
|
|
7703
7703
|
),
|
|
7704
7704
|
qt && !m && p && !I && /* @__PURE__ */ a(
|
|
7705
|
-
|
|
7705
|
+
zb,
|
|
7706
7706
|
{
|
|
7707
7707
|
collection: i,
|
|
7708
7708
|
itemId: String(p)
|
|
@@ -7769,7 +7769,7 @@ ${r.join(`
|
|
|
7769
7769
|
),
|
|
7770
7770
|
/* @__PURE__ */ _("div", { className: "ml-auto flex items-center gap-1.5 [&_button]:whitespace-nowrap", children: [
|
|
7771
7771
|
Ne,
|
|
7772
|
-
/* @__PURE__ */ _(
|
|
7772
|
+
/* @__PURE__ */ _(X_, { children: [
|
|
7773
7773
|
m && /* @__PURE__ */ a(
|
|
7774
7774
|
Pf,
|
|
7775
7775
|
{
|
|
@@ -7816,7 +7816,7 @@ ${r.join(`
|
|
|
7816
7816
|
className: "w-[440px] max-w-[calc(100vw-24px)] p-3",
|
|
7817
7817
|
"data-quick-picker-modal": !0,
|
|
7818
7818
|
children: /* @__PURE__ */ a(
|
|
7819
|
-
|
|
7819
|
+
U0,
|
|
7820
7820
|
{
|
|
7821
7821
|
collection: i,
|
|
7822
7822
|
itemId: p,
|
|
@@ -7898,9 +7898,9 @@ ${r.join(`
|
|
|
7898
7898
|
]
|
|
7899
7899
|
}
|
|
7900
7900
|
) : null,
|
|
7901
|
-
!m && p ? /* @__PURE__ */ _(
|
|
7901
|
+
!m && p ? /* @__PURE__ */ _(e0, { children: [
|
|
7902
7902
|
Qs && !Tn && (Ia || Ea) && /* @__PURE__ */ a(
|
|
7903
|
-
|
|
7903
|
+
nv,
|
|
7904
7904
|
{
|
|
7905
7905
|
note: Pp,
|
|
7906
7906
|
onSave: Lp,
|
|
@@ -7976,7 +7976,7 @@ ${r.join(`
|
|
|
7976
7976
|
}
|
|
7977
7977
|
),
|
|
7978
7978
|
/* @__PURE__ */ a(
|
|
7979
|
-
|
|
7979
|
+
cb,
|
|
7980
7980
|
{
|
|
7981
7981
|
compact: !0,
|
|
7982
7982
|
collection: i,
|
|
@@ -7984,7 +7984,7 @@ ${r.join(`
|
|
|
7984
7984
|
}
|
|
7985
7985
|
),
|
|
7986
7986
|
/* @__PURE__ */ a(
|
|
7987
|
-
|
|
7987
|
+
sb,
|
|
7988
7988
|
{
|
|
7989
7989
|
compact: !0,
|
|
7990
7990
|
collection: i,
|
|
@@ -7992,7 +7992,7 @@ ${r.join(`
|
|
|
7992
7992
|
}
|
|
7993
7993
|
),
|
|
7994
7994
|
/* @__PURE__ */ a(
|
|
7995
|
-
|
|
7995
|
+
G0,
|
|
7996
7996
|
{
|
|
7997
7997
|
compact: !0,
|
|
7998
7998
|
collection: i,
|
|
@@ -8000,7 +8000,7 @@ ${r.join(`
|
|
|
8000
8000
|
}
|
|
8001
8001
|
),
|
|
8002
8002
|
rh && /* @__PURE__ */ a(
|
|
8003
|
-
|
|
8003
|
+
av,
|
|
8004
8004
|
{
|
|
8005
8005
|
compact: !0,
|
|
8006
8006
|
collection: i,
|
|
@@ -8017,7 +8017,7 @@ ${r.join(`
|
|
|
8017
8017
|
onJump: En
|
|
8018
8018
|
}
|
|
8019
8019
|
),
|
|
8020
|
-
!m && p && /* @__PURE__ */ _(
|
|
8020
|
+
!m && p && /* @__PURE__ */ _(t0, { children: [
|
|
8021
8021
|
/* @__PURE__ */ a(
|
|
8022
8022
|
Pf,
|
|
8023
8023
|
{
|
|
@@ -8079,7 +8079,7 @@ ${r.join(`
|
|
|
8079
8079
|
}
|
|
8080
8080
|
),
|
|
8081
8081
|
Dc.disablePickers && /* @__PURE__ */ a(
|
|
8082
|
-
|
|
8082
|
+
Y0,
|
|
8083
8083
|
{
|
|
8084
8084
|
collection: i,
|
|
8085
8085
|
itemId: String(p),
|
|
@@ -8087,7 +8087,7 @@ ${r.join(`
|
|
|
8087
8087
|
}
|
|
8088
8088
|
),
|
|
8089
8089
|
Dc.schedule && /* @__PURE__ */ a(
|
|
8090
|
-
|
|
8090
|
+
Z0,
|
|
8091
8091
|
{
|
|
8092
8092
|
collection: i,
|
|
8093
8093
|
itemId: String(p),
|
|
@@ -8129,7 +8129,7 @@ ${r.join(`
|
|
|
8129
8129
|
se(`/items/${i}/${p}`)
|
|
8130
8130
|
).then((f) => f.data ?? null).catch(() => null), s = r ? { ...r } : { ...M };
|
|
8131
8131
|
if (r)
|
|
8132
|
-
for (const f of
|
|
8132
|
+
for (const f of qe.current)
|
|
8133
8133
|
et(
|
|
8134
8134
|
M[f],
|
|
8135
8135
|
$e.current[f]
|
|
@@ -8231,7 +8231,7 @@ ${r.join(`
|
|
|
8231
8231
|
staleTime: 6e4
|
|
8232
8232
|
}).catch(() => null)
|
|
8233
8233
|
]), T = (S.data ?? []).map(
|
|
8234
|
-
(Q) =>
|
|
8234
|
+
(Q) => kv(
|
|
8235
8235
|
Q,
|
|
8236
8236
|
h.many_field,
|
|
8237
8237
|
y
|
|
@@ -8518,7 +8518,7 @@ ${r.join(`
|
|
|
8518
8518
|
const o = M[r.field];
|
|
8519
8519
|
o == null || o === "" || typeof o != "object" && (t[r.field] = o);
|
|
8520
8520
|
}
|
|
8521
|
-
const n =
|
|
8521
|
+
const n = Ev(
|
|
8522
8522
|
j ?? [],
|
|
8523
8523
|
ie,
|
|
8524
8524
|
Qe,
|
|
@@ -8561,7 +8561,7 @@ ${r.join(`
|
|
|
8561
8561
|
)
|
|
8562
8562
|
] }),
|
|
8563
8563
|
!m && /* @__PURE__ */ a(
|
|
8564
|
-
|
|
8564
|
+
eb,
|
|
8565
8565
|
{
|
|
8566
8566
|
actions: Jp,
|
|
8567
8567
|
onPick: Cc
|
|
@@ -8582,14 +8582,14 @@ ${r.join(`
|
|
|
8582
8582
|
}
|
|
8583
8583
|
),
|
|
8584
8584
|
Jn && !m && /* @__PURE__ */ a(
|
|
8585
|
-
|
|
8585
|
+
lv,
|
|
8586
8586
|
{
|
|
8587
8587
|
collection: i,
|
|
8588
8588
|
itemId: String(p)
|
|
8589
8589
|
}
|
|
8590
8590
|
),
|
|
8591
8591
|
!m && p && /* @__PURE__ */ a(
|
|
8592
|
-
|
|
8592
|
+
dv,
|
|
8593
8593
|
{
|
|
8594
8594
|
collection: i,
|
|
8595
8595
|
itemId: String(p),
|
|
@@ -8627,7 +8627,7 @@ ${r.join(`
|
|
|
8627
8627
|
}
|
|
8628
8628
|
),
|
|
8629
8629
|
/* @__PURE__ */ a(
|
|
8630
|
-
|
|
8630
|
+
_v,
|
|
8631
8631
|
{
|
|
8632
8632
|
open: Gm && Ue,
|
|
8633
8633
|
onClose: () => wd(!1),
|
|
@@ -8778,7 +8778,7 @@ ${r.join(`
|
|
|
8778
8778
|
}
|
|
8779
8779
|
),
|
|
8780
8780
|
!m && p && /* @__PURE__ */ a(
|
|
8781
|
-
|
|
8781
|
+
tb,
|
|
8782
8782
|
{
|
|
8783
8783
|
action: Gp,
|
|
8784
8784
|
collection: i,
|
|
@@ -8787,7 +8787,7 @@ ${r.join(`
|
|
|
8787
8787
|
}
|
|
8788
8788
|
),
|
|
8789
8789
|
Me && /* @__PURE__ */ a(
|
|
8790
|
-
|
|
8790
|
+
F0,
|
|
8791
8791
|
{
|
|
8792
8792
|
collision: Me,
|
|
8793
8793
|
merge: {
|
|
@@ -8812,7 +8812,7 @@ ${r.join(`
|
|
|
8812
8812
|
},
|
|
8813
8813
|
onCancel: () => Qr(null),
|
|
8814
8814
|
onResolve: (e) => {
|
|
8815
|
-
const t =
|
|
8815
|
+
const t = a0({
|
|
8816
8816
|
draft: U.current,
|
|
8817
8817
|
initial: $e.current,
|
|
8818
8818
|
conflicts: Me.conflicts,
|
|
@@ -8820,7 +8820,7 @@ ${r.join(`
|
|
|
8820
8820
|
takeTheirs: e
|
|
8821
8821
|
});
|
|
8822
8822
|
U.current = t.draft, $e.current = t.initial, pt(t.draft);
|
|
8823
|
-
for (const n of t.theirs)
|
|
8823
|
+
for (const n of t.theirs) qe.current.delete(n);
|
|
8824
8824
|
Hr((n) => {
|
|
8825
8825
|
const r = { ...n };
|
|
8826
8826
|
for (const s of Me.conflicts) delete r[s.field];
|
|
@@ -8833,7 +8833,7 @@ ${r.join(`
|
|
|
8833
8833
|
}
|
|
8834
8834
|
),
|
|
8835
8835
|
Vr && /* @__PURE__ */ a(
|
|
8836
|
-
|
|
8836
|
+
O0,
|
|
8837
8837
|
{
|
|
8838
8838
|
lines: Vr,
|
|
8839
8839
|
hideField: Lh,
|
|
@@ -8860,7 +8860,7 @@ ${r.join(`
|
|
|
8860
8860
|
}
|
|
8861
8861
|
),
|
|
8862
8862
|
!m && p && /* @__PURE__ */ a(
|
|
8863
|
-
|
|
8863
|
+
Mb,
|
|
8864
8864
|
{
|
|
8865
8865
|
open: Fh,
|
|
8866
8866
|
onOpenChange: au,
|
|
@@ -8871,7 +8871,7 @@ ${r.join(`
|
|
|
8871
8871
|
}
|
|
8872
8872
|
),
|
|
8873
8873
|
!qt && !m && p && /* @__PURE__ */ a(
|
|
8874
|
-
|
|
8874
|
+
Lb,
|
|
8875
8875
|
{
|
|
8876
8876
|
open: Oh,
|
|
8877
8877
|
onOpenChange: lu,
|
|
@@ -8892,7 +8892,7 @@ ${r.join(`
|
|
|
8892
8892
|
}
|
|
8893
8893
|
),
|
|
8894
8894
|
!m && p && /* @__PURE__ */ a(
|
|
8895
|
-
|
|
8895
|
+
Eb,
|
|
8896
8896
|
{
|
|
8897
8897
|
collection: i,
|
|
8898
8898
|
itemId: String(p),
|
|
@@ -8901,7 +8901,7 @@ ${r.join(`
|
|
|
8901
8901
|
}
|
|
8902
8902
|
),
|
|
8903
8903
|
qt && !m && p && /* @__PURE__ */ a(
|
|
8904
|
-
|
|
8904
|
+
J0,
|
|
8905
8905
|
{
|
|
8906
8906
|
collection: i,
|
|
8907
8907
|
itemId: String(p),
|
|
@@ -8915,17 +8915,17 @@ ${r.join(`
|
|
|
8915
8915
|
}
|
|
8916
8916
|
),
|
|
8917
8917
|
(Or.badge || !I && Qn.switchable || Vn && ai.size > 0) && /* @__PURE__ */ a(
|
|
8918
|
-
|
|
8918
|
+
Kb,
|
|
8919
8919
|
{
|
|
8920
8920
|
badge: Or.badge,
|
|
8921
8921
|
mode: !I && Qn.switchable ? Qn.mode : null,
|
|
8922
8922
|
auto: Qn.auto,
|
|
8923
8923
|
onMode: Qn.set,
|
|
8924
|
-
tour: Vn && ai.size > 0 ? /* @__PURE__ */ a(
|
|
8924
|
+
tour: Vn && ai.size > 0 ? /* @__PURE__ */ a(P_, { onClick: () => ul(!0) }) : void 0
|
|
8925
8925
|
}
|
|
8926
8926
|
),
|
|
8927
8927
|
Bh && Vn && /* @__PURE__ */ a(
|
|
8928
|
-
|
|
8928
|
+
L_,
|
|
8929
8929
|
{
|
|
8930
8930
|
rootRef: Co,
|
|
8931
8931
|
steps: ai,
|
|
@@ -8934,7 +8934,7 @@ ${r.join(`
|
|
|
8934
8934
|
},
|
|
8935
8935
|
gs ?? 0
|
|
8936
8936
|
),
|
|
8937
|
-
|
|
8937
|
+
Pe && (ko.length > 0 || al.length > 0) && // Condensing HIDES rather than unmounts: a
|
|
8938
8938
|
// remount refires every header widget/chip
|
|
8939
8939
|
// fetch, which read as the sub-header
|
|
8940
8940
|
// "reloading" on scroll-up.
|
|
@@ -8984,7 +8984,7 @@ ${r.join(`
|
|
|
8984
8984
|
if (n.type === "summary") {
|
|
8985
8985
|
const C = n.data;
|
|
8986
8986
|
return /* @__PURE__ */ a(
|
|
8987
|
-
|
|
8987
|
+
Z_,
|
|
8988
8988
|
{
|
|
8989
8989
|
collection: i,
|
|
8990
8990
|
itemId: p,
|
|
@@ -9086,7 +9086,7 @@ ${r.join(`
|
|
|
9086
9086
|
className: qf,
|
|
9087
9087
|
"data-header-value": !0,
|
|
9088
9088
|
children: /* @__PURE__ */ a(
|
|
9089
|
-
|
|
9089
|
+
cv,
|
|
9090
9090
|
{
|
|
9091
9091
|
collection: dn,
|
|
9092
9092
|
itemId: cn
|
|
@@ -9173,7 +9173,7 @@ ${r.join(`
|
|
|
9173
9173
|
);
|
|
9174
9174
|
const C = s.cmsField ? /* @__PURE__ */ _(Ct, { children: [
|
|
9175
9175
|
/* @__PURE__ */ a(
|
|
9176
|
-
|
|
9176
|
+
V_,
|
|
9177
9177
|
{
|
|
9178
9178
|
field: s.cmsField,
|
|
9179
9179
|
val: c,
|
|
@@ -9184,7 +9184,7 @@ ${r.join(`
|
|
|
9184
9184
|
}
|
|
9185
9185
|
),
|
|
9186
9186
|
(s.cmsField.computed_type === "rollup" || (s.cmsField.computed_type === "read" || s.cmsField.computed_type === "write") && S) && !m && !st && /* @__PURE__ */ a(
|
|
9187
|
-
|
|
9187
|
+
Y_,
|
|
9188
9188
|
{
|
|
9189
9189
|
collection: i,
|
|
9190
9190
|
itemId: p,
|
|
@@ -9195,7 +9195,7 @@ ${r.join(`
|
|
|
9195
9195
|
"span",
|
|
9196
9196
|
{
|
|
9197
9197
|
className: `${S ? my : py} ${y}`,
|
|
9198
|
-
children:
|
|
9198
|
+
children: yv(
|
|
9199
9199
|
c,
|
|
9200
9200
|
s.displayFormat
|
|
9201
9201
|
)
|
|
@@ -9227,7 +9227,7 @@ ${r.join(`
|
|
|
9227
9227
|
}
|
|
9228
9228
|
),
|
|
9229
9229
|
s.cmsField && !s.cmsField.computed_type && !m && !st && /* @__PURE__ */ a(
|
|
9230
|
-
|
|
9230
|
+
G_,
|
|
9231
9231
|
{
|
|
9232
9232
|
collection: i,
|
|
9233
9233
|
itemId: p,
|
|
@@ -9278,7 +9278,7 @@ ${r.join(`
|
|
|
9278
9278
|
});
|
|
9279
9279
|
return /* @__PURE__ */ _(Ct, { children: [
|
|
9280
9280
|
/* @__PURE__ */ a(
|
|
9281
|
-
|
|
9281
|
+
J_,
|
|
9282
9282
|
{
|
|
9283
9283
|
tiles: e,
|
|
9284
9284
|
folded: pa ? ap : [],
|
|
@@ -9337,10 +9337,10 @@ ${r.join(`
|
|
|
9337
9337
|
),
|
|
9338
9338
|
onScroll: vn ? Fd : void 0,
|
|
9339
9339
|
children: [
|
|
9340
|
-
!m && /* @__PURE__ */ a(
|
|
9340
|
+
!m && /* @__PURE__ */ a(V0, {}),
|
|
9341
9341
|
$m,
|
|
9342
9342
|
ud && nu.length > 0 && /* @__PURE__ */ a(
|
|
9343
|
-
|
|
9343
|
+
Rb,
|
|
9344
9344
|
{
|
|
9345
9345
|
items: nu,
|
|
9346
9346
|
onJump: zc,
|
|
@@ -9376,7 +9376,7 @@ ${r.join(`
|
|
|
9376
9376
|
),
|
|
9377
9377
|
!I && Dt != null && /* @__PURE__ */ a(i_, { layoutId: Dt }),
|
|
9378
9378
|
Am && /* @__PURE__ */ a(
|
|
9379
|
-
|
|
9379
|
+
Ob,
|
|
9380
9380
|
{
|
|
9381
9381
|
roles: nt.roles,
|
|
9382
9382
|
roleId: nt.roleId,
|
|
@@ -9388,7 +9388,7 @@ ${r.join(`
|
|
|
9388
9388
|
}
|
|
9389
9389
|
),
|
|
9390
9390
|
!m && gn && /* @__PURE__ */ a("div", { className: "nvr-expand-in", children: /* @__PURE__ */ a(
|
|
9391
|
-
|
|
9391
|
+
lb,
|
|
9392
9392
|
{
|
|
9393
9393
|
entry: gn,
|
|
9394
9394
|
labelFor: (e) => {
|
|
@@ -9427,7 +9427,7 @@ ${r.join(`
|
|
|
9427
9427
|
}
|
|
9428
9428
|
),
|
|
9429
9429
|
Xt.state === "offer" && !(Qt && !m) && /* @__PURE__ */ a("div", { className: "nvr-expand-in", children: /* @__PURE__ */ a(
|
|
9430
|
-
|
|
9430
|
+
C_,
|
|
9431
9431
|
{
|
|
9432
9432
|
draft: Xt.draft,
|
|
9433
9433
|
labelFor: (e) => {
|
|
@@ -9458,7 +9458,7 @@ ${r.join(`
|
|
|
9458
9458
|
}
|
|
9459
9459
|
) }),
|
|
9460
9460
|
!m && p && !I && /* @__PURE__ */ a(
|
|
9461
|
-
|
|
9461
|
+
db,
|
|
9462
9462
|
{
|
|
9463
9463
|
collection: i,
|
|
9464
9464
|
itemId: String(p)
|
|
@@ -9468,7 +9468,7 @@ ${r.join(`
|
|
|
9468
9468
|
!I && !((gf = w == null ? void 0 : w.layout) != null && gf.hide_integrity_banner) && // Summary mode marks the affected fields instead —
|
|
9469
9469
|
// the banner would only push the record down.
|
|
9470
9470
|
!(bt && Ur) && /* @__PURE__ */ a(
|
|
9471
|
-
|
|
9471
|
+
Tb,
|
|
9472
9472
|
{
|
|
9473
9473
|
collection: i,
|
|
9474
9474
|
itemId: String(p),
|
|
@@ -9476,7 +9476,7 @@ ${r.join(`
|
|
|
9476
9476
|
}
|
|
9477
9477
|
),
|
|
9478
9478
|
qt && !I && !!((_f = (yf = ao.data) == null ? void 0 : yf.hidden) != null && _f.length) && /* @__PURE__ */ a(
|
|
9479
|
-
|
|
9479
|
+
$0,
|
|
9480
9480
|
{
|
|
9481
9481
|
why: ao.data,
|
|
9482
9482
|
fields: j ?? [],
|
|
@@ -9486,14 +9486,14 @@ ${r.join(`
|
|
|
9486
9486
|
!m && p && !((bf = w == null ? void 0 : w.layout) != null && bf.hide_sla_banner) && // No wrapper div — an EMPTY sibling in this space-y stack
|
|
9487
9487
|
// still costs a 16px gap (the banner is null unless breached).
|
|
9488
9488
|
/* @__PURE__ */ a(
|
|
9489
|
-
|
|
9489
|
+
Ib,
|
|
9490
9490
|
{
|
|
9491
9491
|
collection: dn,
|
|
9492
9492
|
itemId: String(cn)
|
|
9493
9493
|
}
|
|
9494
9494
|
),
|
|
9495
9495
|
!m && p && !I && /* @__PURE__ */ a(
|
|
9496
|
-
|
|
9496
|
+
Ab,
|
|
9497
9497
|
{
|
|
9498
9498
|
collection: i,
|
|
9499
9499
|
itemId: String(p)
|
|
@@ -9519,7 +9519,7 @@ ${r.join(`
|
|
|
9519
9519
|
}
|
|
9520
9520
|
),
|
|
9521
9521
|
Ul && Qs && Tn && /* @__PURE__ */ a("div", { className: "nvr-expand-in", children: /* @__PURE__ */ a(
|
|
9522
|
-
|
|
9522
|
+
rv,
|
|
9523
9523
|
{
|
|
9524
9524
|
lockHolder: Tn,
|
|
9525
9525
|
onTakeOver: Fp,
|
|
@@ -9535,7 +9535,7 @@ ${r.join(`
|
|
|
9535
9535
|
}
|
|
9536
9536
|
) }),
|
|
9537
9537
|
!m && !I && /* @__PURE__ */ a(
|
|
9538
|
-
|
|
9538
|
+
ob,
|
|
9539
9539
|
{
|
|
9540
9540
|
collection: i,
|
|
9541
9541
|
itemId: String(p),
|
|
@@ -9569,7 +9569,7 @@ ${r.join(`
|
|
|
9569
9569
|
}
|
|
9570
9570
|
),
|
|
9571
9571
|
Ur ? bt && !m && (w != null && w.layout) ? /* @__PURE__ */ a(
|
|
9572
|
-
|
|
9572
|
+
Pb,
|
|
9573
9573
|
{
|
|
9574
9574
|
collection: i,
|
|
9575
9575
|
itemId: String(p),
|
|
@@ -9643,14 +9643,14 @@ ${r.join(`
|
|
|
9643
9643
|
type: "button",
|
|
9644
9644
|
onClick: () => {
|
|
9645
9645
|
const e = !wn;
|
|
9646
|
-
us(e), I &&
|
|
9646
|
+
us(e), I && Yb(Le, e);
|
|
9647
9647
|
},
|
|
9648
9648
|
"data-design-pass": I ? "" : void 0,
|
|
9649
9649
|
"data-summary-toggle": I ? "" : void 0,
|
|
9650
9650
|
"aria-expanded": I || Js ? !wn : void 0,
|
|
9651
9651
|
"aria-label": wn ? "Show summary" : "Hide summary",
|
|
9652
9652
|
title: wn ? "Expand summary" : "Collapse summary",
|
|
9653
|
-
className: I ?
|
|
9653
|
+
className: I ? mv : "border-r flex w-6 shrink-0 items-start justify-center pt-3 bg-slate-100 text-slate-400 hover:bg-slate-200/70 hover:text-slate-600 transition-colors dark:bg-white/[0.04] dark:hover:bg-white/[0.08] dark:text-slate-500 dark:hover:text-slate-300",
|
|
9654
9654
|
children: I ? (
|
|
9655
9655
|
// Rides with the canvas scroll; folded, it says what comes back.
|
|
9656
9656
|
/* @__PURE__ */ _("span", { className: "sticky top-3 flex flex-col items-center gap-2", children: [
|
|
@@ -9666,7 +9666,7 @@ ${r.join(`
|
|
|
9666
9666
|
className: "overflow-hidden transition-all duration-200",
|
|
9667
9667
|
style: { width: wn ? 0 : 232 },
|
|
9668
9668
|
children: /* @__PURE__ */ a("div", { className: "w-[232px] overflow-y-auto h-full", children: /* @__PURE__ */ a(
|
|
9669
|
-
|
|
9669
|
+
Wb,
|
|
9670
9670
|
{
|
|
9671
9671
|
onRevertChange: (e) => {
|
|
9672
9672
|
var t;
|
|
@@ -9681,7 +9681,7 @@ ${r.join(`
|
|
|
9681
9681
|
key: e.key,
|
|
9682
9682
|
label: e.label
|
|
9683
9683
|
})) : we,
|
|
9684
|
-
groupedMap:
|
|
9684
|
+
groupedMap: Te,
|
|
9685
9685
|
ungroupedFields: Ht,
|
|
9686
9686
|
sectionGroups: Ut.filter(
|
|
9687
9687
|
(e) => e.type !== "metadata"
|
|
@@ -9781,46 +9781,46 @@ ${r.join(`
|
|
|
9781
9781
|
);
|
|
9782
9782
|
}
|
|
9783
9783
|
export {
|
|
9784
|
-
|
|
9785
|
-
|
|
9784
|
+
rS as ItemEditForm,
|
|
9785
|
+
R0 as M2MStagingContext,
|
|
9786
9786
|
dm as REQUIRED_LINES_MESSAGE,
|
|
9787
9787
|
zl as UNAVAILABLE_OPTION_ERROR,
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9788
|
+
_v as UnsavedInspector,
|
|
9789
|
+
Mv as appendUniqueM2MId,
|
|
9790
|
+
bv as applyLayoutDefaults,
|
|
9791
9791
|
xm as computeM2MEffectiveIds,
|
|
9792
|
-
|
|
9792
|
+
Sv as draftDiffers,
|
|
9793
9793
|
lm as dropSatisfiedRequired,
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9794
|
+
Bv as dropUnsettledAliasResults,
|
|
9795
|
+
kv as duplicateChildRow,
|
|
9796
|
+
Rv as everyShownFieldLocked,
|
|
9797
9797
|
Mg as formatApiPayload,
|
|
9798
|
-
|
|
9798
|
+
Kv as idsNeedingStaging,
|
|
9799
9799
|
Ql as isNoDuplicate,
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9800
|
+
Lv as isRuleFill,
|
|
9801
|
+
Nv as keepCollisionBase,
|
|
9802
|
+
Pv as keptAmong,
|
|
9803
9803
|
um as keptLinksAmong,
|
|
9804
|
-
|
|
9804
|
+
g0 as lineConflictKey,
|
|
9805
9805
|
To as lineLabelOf,
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9806
|
+
Cv as liveCrossFieldErrors,
|
|
9807
|
+
Tv as mergeRuleResults,
|
|
9808
|
+
$v as o2mCountIsStale,
|
|
9809
|
+
vv as ownEditFields,
|
|
9810
|
+
zv as partitionRuleResults,
|
|
9811
|
+
Iv as prefillAliasLinks,
|
|
9812
9812
|
rm as recordHeadingText,
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9813
|
+
Fv as refusalStepText,
|
|
9814
|
+
qv as remoteChangeAuthor,
|
|
9815
|
+
Av as remoteChangedFields,
|
|
9816
|
+
y0 as resolveLineCollision,
|
|
9817
9817
|
Vl as resolveM2MAlias,
|
|
9818
|
-
|
|
9818
|
+
Dv as resolveM2MFieldState,
|
|
9819
9819
|
Sm as ruleFillKey,
|
|
9820
|
-
|
|
9820
|
+
Ov as ruleJudgedOnSave,
|
|
9821
9821
|
am as rulesForTriggerField,
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9822
|
+
jv as serverErrorCode,
|
|
9823
|
+
Ev as templateLinks,
|
|
9824
|
+
oS as useM2MStaging,
|
|
9825
9825
|
Bf as withRowBaseRevision
|
|
9826
9826
|
};
|