@nivaro/react 0.3.114 → 0.3.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ScreenShareHost.js +24 -0
- package/dist/full.css +50 -2
- package/dist/hooks/useSessionRecorder.js +61 -60
- package/dist/index.d.ts +1728 -22
- package/dist/index.js +1091 -950
- package/dist/shared/components/ActivityEntry.js +209 -97
- package/dist/shared/components/AgentPresenceChip.js +51 -0
- package/dist/shared/components/AnnouncementBanner.js +56 -41
- package/dist/shared/components/AutolinkedText.js +98 -85
- package/dist/shared/components/BroadcastView.js +149 -141
- package/dist/shared/components/CacheStamp.js +78 -30
- package/dist/shared/components/CollectionBrowserView.js +4909 -4182
- package/dist/shared/components/ConfigChangeStrip.js +63 -0
- package/dist/shared/components/ConfigReachNote.js +107 -0
- package/dist/shared/components/ConformanceView.js +389 -319
- package/dist/shared/components/DataTable.js +612 -551
- package/dist/shared/components/DelegateCoverLine.js +164 -0
- package/dist/shared/components/EnvironmentNotice.js +56 -65
- package/dist/shared/components/FilePreviewLightbox.js +89 -43
- package/dist/shared/components/FindingFixedMark.js +23 -0
- package/dist/shared/components/GridPresenceLine.js +100 -0
- package/dist/shared/components/IdleReloadWatcher.js +82 -43
- package/dist/shared/components/InStep.js +46 -0
- package/dist/shared/components/ItemEditForm.js +5504 -4889
- package/dist/shared/components/LiveAnnouncer.js +62 -0
- package/dist/shared/components/LiveCount.js +54 -0
- package/dist/shared/components/LiveFigure.js +28 -0
- package/dist/shared/components/LiveListControls.js +114 -0
- package/dist/shared/components/LiveNewMatchesPill.js +25 -0
- package/dist/shared/components/LiveOffNote.js +44 -0
- package/dist/shared/components/LivePreferenceHost.js +42 -0
- package/dist/shared/components/LiveRowMark.js +25 -20
- package/dist/shared/components/LiveTraceView.js +257 -0
- package/dist/shared/components/MapView.js +30 -29
- package/dist/shared/components/MatrixEditor.js +497 -462
- package/dist/shared/components/MyWorkView.js +346 -272
- package/dist/shared/components/NotificationBell.js +215 -201
- package/dist/shared/components/OverflowRail.js +326 -0
- package/dist/shared/components/PageRenderer.js +636 -599
- package/dist/shared/components/PresenceDot.js +21 -0
- package/dist/shared/components/ProfileView.js +656 -536
- package/dist/shared/components/RealtimeStatusBanner.js +25 -25
- package/dist/shared/components/RecentRecordsRail.js +51 -48
- package/dist/shared/components/RecordCompare.js +241 -150
- package/dist/shared/components/RecordDrilldownSheet.js +66 -64
- package/dist/shared/components/RecordGridEditor.js +350 -311
- package/dist/shared/components/RecordHoverCard.js +147 -0
- package/dist/shared/components/RecordPeekHost.js +111 -0
- package/dist/shared/components/RecordReadView.js +414 -412
- package/dist/shared/components/RelativeTime.js +16 -0
- package/dist/shared/components/ReportView.js +1396 -1304
- package/dist/shared/components/ScreenRefreshButton.js +77 -0
- package/dist/shared/components/TabCountHost.js +10 -0
- package/dist/shared/components/TickerNumber.js +19 -18
- package/dist/shared/components/TipLayer.js +70 -58
- package/dist/shared/components/WidgetImageMenu.js +59 -0
- package/dist/shared/components/WidgetSlot.js +571 -524
- package/dist/shared/components/activity/RecordActivityStream.js +317 -0
- package/dist/shared/components/bulk/BulkSelectionNotices.js +220 -0
- package/dist/shared/components/cbv/approval-changed.js +20 -0
- package/dist/shared/components/cbv/changed-by-others.js +251 -0
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +320 -0
- package/dist/shared/components/change-proposals/ProposalValue.js +28 -0
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +44 -0
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +359 -0
- package/dist/shared/components/change-proposals/types.js +4 -0
- package/dist/shared/components/chat/ChatPanel.js +1571 -1528
- package/dist/shared/components/chat/Composer.js +276 -298
- package/dist/shared/components/chat/room-due.js +13 -0
- package/dist/shared/components/collections-directory/CollectionRow.js +76 -75
- package/dist/shared/components/collections-directory/CollectionsDirectory.js +415 -395
- package/dist/shared/components/collections-directory/directory-data.js +75 -63
- package/dist/shared/components/imports/ImportConsole.js +159 -155
- package/dist/shared/components/imports/ImportDuplicatesNotice.js +46 -31
- package/dist/shared/components/integrations/SendStatus.js +202 -0
- package/dist/shared/components/integrations/console/IntegrationsConsole.js +45 -36
- package/dist/shared/components/integrations/console/ReadyToSendView.js +453 -0
- package/dist/shared/components/integrations/console/SignalCard.js +84 -77
- package/dist/shared/components/integrations/console/api.js +161 -117
- package/dist/shared/components/integrations/console/tone.js +15 -12
- package/dist/shared/components/item-edit/CatalogPickerField.js +1353 -1245
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +162 -0
- package/dist/shared/components/item-edit/CloneDialog.js +208 -206
- package/dist/shared/components/item-edit/DerivedCauseNote.js +57 -0
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +81 -70
- package/dist/shared/components/item-edit/DuplicateNotice.js +169 -101
- package/dist/shared/components/item-edit/FieldAffordances.js +294 -385
- package/dist/shared/components/item-edit/FieldComments.js +159 -116
- package/dist/shared/components/item-edit/FieldPointer.js +132 -0
- package/dist/shared/components/item-edit/FieldRenderer.js +277 -273
- package/dist/shared/components/item-edit/FieldRow.js +519 -439
- package/dist/shared/components/item-edit/FieldSourceBadge.js +88 -0
- package/dist/shared/components/item-edit/FilePickerField.js +454 -369
- package/dist/shared/components/item-edit/GroupSection.js +618 -567
- package/dist/shared/components/item-edit/HeldEditsChip.js +113 -0
- package/dist/shared/components/item-edit/InlineTableField.js +2891 -2723
- package/dist/shared/components/item-edit/ListNeighborNav.js +79 -0
- package/dist/shared/components/item-edit/LiveTraceSheet.js +26 -0
- package/dist/shared/components/item-edit/M2MCombobox.js +284 -273
- package/dist/shared/components/item-edit/OutboxReviewTray.js +313 -0
- package/dist/shared/components/item-edit/PickerBadges.js +52 -0
- package/dist/shared/components/item-edit/PlanGrid.js +434 -439
- package/dist/shared/components/item-edit/RecalcValue.js +55 -0
- package/dist/shared/components/item-edit/RecordChatActions.js +76 -64
- package/dist/shared/components/item-edit/RecordChatMentionsChip.js +103 -0
- package/dist/shared/components/item-edit/RecordGrantTools.js +87 -86
- package/dist/shared/components/item-edit/RecordHelpChip.js +70 -0
- package/dist/shared/components/item-edit/RecordLiveSync.js +230 -217
- package/dist/shared/components/item-edit/RecordOutbox.js +53 -52
- package/dist/shared/components/item-edit/RecordRecapStrip.js +109 -36
- package/dist/shared/components/item-edit/RelationCombobox.js +229 -217
- package/dist/shared/components/item-edit/RelationGroupedCombobox.js +105 -100
- package/dist/shared/components/item-edit/RemoteChangeUi.js +454 -0
- package/dist/shared/components/item-edit/RemoteUploads.js +55 -0
- package/dist/shared/components/item-edit/RemovedLineNote.js +92 -0
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +298 -223
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +244 -0
- package/dist/shared/components/item-edit/SectionPresence.js +78 -0
- package/dist/shared/components/item-edit/SplitLinesButton.js +166 -0
- package/dist/shared/components/item-edit/catalog-line-watch.js +94 -0
- package/dist/shared/components/item-edit/coedit/collab.js +84 -0
- package/dist/shared/components/item-edit/coedit/context.js +24 -0
- package/dist/shared/components/item-edit/coedit/cursors.js +103 -0
- package/dist/shared/components/item-edit/coedit/safe-link.js +15 -0
- package/dist/shared/components/item-edit/coedit/session.js +382 -0
- package/dist/shared/components/item-edit/coedit/useCoedit.js +49 -0
- package/dist/shared/components/item-edit/file-live.js +77 -0
- package/dist/shared/components/item-edit/file-processing.js +87 -0
- package/dist/shared/components/item-edit/layout-switch.js +148 -0
- package/dist/shared/components/item-edit/live-related.js +23 -0
- package/dist/shared/components/item-edit/live-title.js +66 -0
- package/dist/shared/components/item-edit/partner-needs.js +142 -0
- package/dist/shared/components/item-edit/removed-line.js +58 -0
- package/dist/shared/components/item-edit/render-stability.js +70 -59
- package/dist/shared/components/layout-editor/ChangeNote.js +36 -34
- package/dist/shared/components/layout-editor/CollabParts.js +72 -70
- package/dist/shared/components/layout-editor/LayoutEditor.js +306 -303
- package/dist/shared/components/list/InlineEdit.js +504 -208
- package/dist/shared/components/list/ListViewers.js +81 -0
- package/dist/shared/components/list/PhonePager.js +50 -0
- package/dist/shared/components/merge/MergeRecordsDialog.js +1227 -0
- package/dist/shared/components/merge/MergeWithFlow.js +290 -0
- package/dist/shared/components/merge/merge-values.js +110 -0
- package/dist/shared/components/monitoring/InactiveUserLinksView.js +285 -258
- package/dist/shared/components/notifications/NotificationCenterView.js +389 -323
- package/dist/shared/components/notifications/NotificationDetailBits.js +205 -130
- package/dist/shared/components/notifications/NotificationRulesEditor.js +72 -52
- package/dist/shared/components/notifications/bundles.js +21 -19
- package/dist/shared/components/notifications/resolved-line.js +25 -0
- package/dist/shared/components/ops/OpsTasksView.js +45 -44
- package/dist/shared/components/panels/AccessGrantedNote.js +85 -0
- package/dist/shared/components/panels/AlertBanners.js +132 -0
- package/dist/shared/components/panels/AsyncUserPicker.js +54 -45
- package/dist/shared/components/panels/BranchLanes.js +82 -54
- package/dist/shared/components/panels/CommentAwareness.js +332 -0
- package/dist/shared/components/panels/CommentImages.js +219 -0
- package/dist/shared/components/panels/CommentPanel.js +649 -530
- package/dist/shared/components/panels/ExternalRequestsChip.js +98 -80
- package/dist/shared/components/panels/NewSinceChip.js +16 -0
- package/dist/shared/components/panels/OwnerOpenedLine.js +85 -0
- package/dist/shared/components/panels/PipelinePanel.js +1644 -1494
- package/dist/shared/components/panels/ResubmissionDiff.js +293 -0
- package/dist/shared/components/panels/SlaBreachBanner.js +30 -29
- package/dist/shared/components/panels/SlaClock.js +130 -99
- package/dist/shared/components/panels/TaskPanel.js +308 -287
- package/dist/shared/components/panels/unseen-move-check.js +101 -0
- package/dist/shared/components/pipeline/OwnerMatrix.js +80 -71
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +495 -0
- package/dist/shared/components/pipeline/PipelineEditorView.js +2050 -1942
- package/dist/shared/components/profile/AgentNameField.js +141 -0
- package/dist/shared/components/profile/AgentsPanel.js +55 -46
- package/dist/shared/components/profile/PersonAccess.js +398 -330
- package/dist/shared/components/profile/PersonAdminTools.js +127 -113
- package/dist/shared/components/profile/PersonProfile.js +81 -73
- package/dist/shared/components/profile/SignInTroubleshooter.js +361 -0
- package/dist/shared/components/queue/OwnerAvatars.js +9 -9
- package/dist/shared/components/queue/QueueBulkBar.js +101 -84
- package/dist/shared/components/queue/QueueItemSheet.js +66 -66
- package/dist/shared/components/queue/QueueTeamStrip.js +279 -0
- package/dist/shared/components/queue/QueueWorklist.js +2407 -1950
- package/dist/shared/components/queue/worklist-helpers.js +10 -6
- package/dist/shared/components/send-view/SendViewButton.js +136 -0
- package/dist/shared/components/send-view/SentViewCards.js +147 -0
- package/dist/shared/components/support/ReportProblem.js +1 -0
- package/dist/shared/components/support/ScreenShare.js +554 -0
- package/dist/shared/components/support/SupportView.js +160 -129
- package/dist/shared/components/support/TicketDetailSheet.js +101 -89
- package/dist/shared/components/ui/popover.js +53 -29
- package/dist/shared/components/watch-list/WatchDock.js +1044 -0
- package/dist/shared/components/watch-list/WatchExtras.js +723 -0
- package/dist/shared/components/watch-list/WatchListButton.js +46 -0
- package/dist/shared/components/watch-list/WatchPinButton.js +67 -0
- package/dist/shared/components/watch-list/WatchRows.js +348 -0
- package/dist/shared/lib/activity-sentence.js +87 -75
- package/dist/shared/lib/agent-presence.js +46 -0
- package/dist/shared/lib/approval-progress.js +49 -0
- package/dist/shared/lib/attention-prefs.js +27 -0
- package/dist/shared/lib/cell-locks.js +56 -0
- package/dist/shared/lib/co-edit.js +166 -0
- package/dist/shared/lib/coedit-registry.js +44 -0
- package/dist/shared/lib/comment-awareness.js +124 -0
- package/dist/shared/lib/comment-images.js +45 -0
- package/dist/shared/lib/config-watch.js +94 -0
- package/dist/shared/lib/copy-rules.js +65 -0
- package/dist/shared/lib/count-step.js +30 -0
- package/dist/shared/lib/deadline-ticker.js +68 -0
- package/dist/shared/lib/derived-causes.js +115 -0
- package/dist/shared/lib/draft-store.js +114 -85
- package/dist/shared/lib/error-hints.js +1 -0
- package/dist/shared/lib/field-merge.js +126 -0
- package/dist/shared/lib/filter-sentence.js +10 -10
- package/dist/shared/lib/focus-mode.js +16 -12
- package/dist/shared/lib/grid-cursors.js +77 -0
- package/dist/shared/lib/grid-presence.js +182 -0
- package/dist/shared/lib/idle-reload.js +100 -73
- package/dist/shared/lib/in-step.js +45 -0
- package/dist/shared/lib/integration-chip.js +19 -18
- package/dist/shared/lib/keep-row-focus.js +43 -0
- package/dist/shared/lib/line-locks.js +141 -0
- package/dist/shared/lib/line-split.js +41 -0
- package/dist/shared/lib/linked-changes.js +150 -0
- package/dist/shared/lib/list-return.js +231 -0
- package/dist/shared/lib/list-viewers.js +52 -0
- package/dist/shared/lib/live-announcer.js +86 -0
- package/dist/shared/lib/live-counts.js +85 -0
- package/dist/shared/lib/live-data-changed.js +108 -0
- package/dist/shared/lib/live-deltas.js +81 -0
- package/dist/shared/lib/live-findings.js +113 -0
- package/dist/shared/lib/live-groups.js +122 -0
- package/dist/shared/lib/live-link-labels.js +162 -0
- package/dist/shared/lib/live-list-flow.js +334 -0
- package/dist/shared/lib/live-list.js +143 -129
- package/dist/shared/lib/live-moves.js +51 -0
- package/dist/shared/lib/live-ops.js +26 -26
- package/dist/shared/lib/live-pickers.js +7 -0
- package/dist/shared/lib/live-preference.js +184 -0
- package/dist/shared/lib/live-queries.js +226 -181
- package/dist/shared/lib/live-screen.js +333 -0
- package/dist/shared/lib/live-search.js +108 -0
- package/dist/shared/lib/live-seen.js +35 -0
- package/dist/shared/lib/live-views.js +100 -0
- package/dist/shared/lib/live.js +159 -133
- package/dist/shared/lib/missed-updates.js +198 -0
- package/dist/shared/lib/newer-file.js +56 -0
- package/dist/shared/lib/notification-sound.js +42 -20
- package/dist/shared/lib/obligation-banner.js +17 -17
- package/dist/shared/lib/own-writes.js +59 -41
- package/dist/shared/lib/picker-badges.js +94 -0
- package/dist/shared/lib/presence-signals.js +131 -84
- package/dist/shared/lib/rail-menu-context.js +9 -0
- package/dist/shared/lib/realtime.js +49 -24
- package/dist/shared/lib/record-gaps.js +85 -0
- package/dist/shared/lib/record-outbox.js +369 -222
- package/dist/shared/lib/record-peek.js +75 -0
- package/dist/shared/lib/record-tabs.js +92 -72
- package/dist/shared/lib/relative-ticker.js +42 -0
- package/dist/shared/lib/request-gate.js +119 -119
- package/dist/shared/lib/rollup-recalc.js +107 -0
- package/dist/shared/lib/room-gaps.js +40 -36
- package/dist/shared/lib/row-surface.js +7 -0
- package/dist/shared/lib/rum.js +137 -87
- package/dist/shared/lib/save-progress.js +20 -0
- package/dist/shared/lib/scheduled-countdown.js +67 -0
- package/dist/shared/lib/screen-refresh.js +160 -0
- package/dist/shared/lib/screen-share.js +234 -0
- package/dist/shared/lib/seen-since.js +74 -0
- package/dist/shared/lib/selection-watch.js +205 -0
- package/dist/shared/lib/send-status.js +132 -0
- package/dist/shared/lib/send-view.js +23 -0
- package/dist/shared/lib/socket-liveness.js +155 -0
- package/dist/shared/lib/socket-realtime.js +168 -140
- package/dist/shared/lib/state-census.js +53 -0
- package/dist/shared/lib/summary-mode.js +61 -39
- package/dist/shared/lib/tab-attention.js +143 -32
- package/dist/shared/lib/table-density.js +64 -0
- package/dist/shared/lib/table-pins.js +20 -18
- package/dist/shared/lib/track-travel.js +40 -0
- package/dist/shared/lib/unseen-changes.js +68 -0
- package/dist/shared/lib/upload-file.js +62 -0
- package/dist/shared/lib/upload-presence.js +127 -0
- package/dist/shared/lib/urgent-chime.js +65 -0
- package/dist/shared/lib/use-below-md.js +29 -0
- package/dist/shared/lib/use-online-users.js +32 -11
- package/dist/shared/lib/user-sync.js +155 -39
- package/dist/shared/lib/waiting-count.js +44 -0
- package/dist/shared/lib/watch-desktop.js +83 -0
- package/dist/shared/lib/watch-list.js +447 -0
- package/dist/shared/lib/widget-image-render.js +64 -0
- package/dist/shared/lib/widget-image.js +111 -0
- package/dist/shared/lib/worker-socket.js +130 -104
- package/dist/shared/lib/write-to-screen.js +133 -0
- package/package.json +1 -1
- package/styles.css +49 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import { duplicateHintsEqual as
|
|
3
|
-
function
|
|
1
|
+
import { useRef as L, useLayoutEffect as b, useMemo as l } from "react";
|
|
2
|
+
import { duplicateHintsEqual as q } from "./DuplicateNotice.js";
|
|
3
|
+
function A(e, t) {
|
|
4
4
|
if (Object.is(e, t)) return !0;
|
|
5
5
|
if (e == null || t == null || typeof e != "object" || typeof t != "object") return !1;
|
|
6
6
|
try {
|
|
@@ -9,7 +9,7 @@ function b(e, t) {
|
|
|
9
9
|
return !1;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function v(e, t) {
|
|
13
13
|
if (Object.is(e, t)) return !0;
|
|
14
14
|
if (!e || !t) return !1;
|
|
15
15
|
const n = Object.keys(e);
|
|
@@ -17,15 +17,15 @@ function L(e, t) {
|
|
|
17
17
|
for (const o of n) if (!Object.hasOwn(t, o) || !Object.is(e[o], t[o])) return !1;
|
|
18
18
|
return !0;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function P(e, t, n) {
|
|
21
21
|
const o = e.current;
|
|
22
22
|
return o !== void 0 && n(o, t) ? o : (e.current = t, t);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const n =
|
|
26
|
-
return
|
|
24
|
+
function f(e, t) {
|
|
25
|
+
const n = L(void 0);
|
|
26
|
+
return P(n, e, t);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function H(e, t) {
|
|
29
29
|
const n = Object.keys(e);
|
|
30
30
|
if (n.length !== Object.keys(t).length) return !1;
|
|
31
31
|
for (const o of n) {
|
|
@@ -34,109 +34,120 @@ function A(e, t) {
|
|
|
34
34
|
}
|
|
35
35
|
return !0;
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
function
|
|
39
|
-
const t =
|
|
40
|
-
|
|
37
|
+
const T = {}, w = {};
|
|
38
|
+
function U(e) {
|
|
39
|
+
const t = L(e);
|
|
40
|
+
b(() => {
|
|
41
41
|
t.current = e;
|
|
42
42
|
});
|
|
43
|
-
const n =
|
|
43
|
+
const n = l(
|
|
44
44
|
() => ({
|
|
45
45
|
dismissRemoteChange: (c) => t.current.dismissRemoteChange(c),
|
|
46
46
|
takeRemoteChange: (c) => {
|
|
47
|
-
var
|
|
48
|
-
return (i = (
|
|
47
|
+
var a, i;
|
|
48
|
+
return (i = (a = t.current).takeRemoteChange) == null ? void 0 : i.call(a, c);
|
|
49
|
+
},
|
|
50
|
+
mergeRemoteChange: (c, a) => {
|
|
51
|
+
var i, u;
|
|
52
|
+
return (u = (i = t.current).mergeRemoteChange) == null ? void 0 : u.call(i, c, a);
|
|
49
53
|
},
|
|
50
54
|
onLockHover: () => {
|
|
51
|
-
var c,
|
|
52
|
-
return (
|
|
55
|
+
var c, a;
|
|
56
|
+
return (a = (c = t.current).onLockHover) == null ? void 0 : a.call(c);
|
|
53
57
|
},
|
|
54
|
-
openRelated: (c,
|
|
55
|
-
var i,
|
|
56
|
-
return (
|
|
58
|
+
openRelated: (c, a) => {
|
|
59
|
+
var i, u;
|
|
60
|
+
return (u = (i = t.current).openRelated) == null ? void 0 : u.call(i, c, a);
|
|
57
61
|
}
|
|
58
62
|
}),
|
|
59
63
|
[]
|
|
60
|
-
), o =
|
|
64
|
+
), o = f(e.lockReasons, v), s = f(e.applyToLines, H), r = l(() => {
|
|
61
65
|
const c = {};
|
|
62
|
-
for (const [
|
|
63
|
-
c[
|
|
66
|
+
for (const [a, i] of Object.entries(s))
|
|
67
|
+
c[a] = {
|
|
64
68
|
...i,
|
|
65
|
-
onApply: (
|
|
69
|
+
onApply: (u) => {
|
|
66
70
|
var S;
|
|
67
|
-
return (S = t.current.applyToLines[
|
|
71
|
+
return (S = t.current.applyToLines[a]) == null ? void 0 : S.onApply(u);
|
|
68
72
|
}
|
|
69
73
|
};
|
|
70
74
|
return c;
|
|
71
|
-
}, [s]),
|
|
72
|
-
e.duplicates ??
|
|
75
|
+
}, [s]), g = !!e.takeRemoteChange, p = !!e.mergeRemoteChange, h = !!e.onLockHover, m = !!e.openRelated, { remoteChanges: y, layoutId: k, pickerMisses: R, fromAutofill: d, glossaryHelp: O, placementText: C } = e, j = f(
|
|
76
|
+
e.duplicates ?? T,
|
|
77
|
+
q
|
|
78
|
+
), E = f(
|
|
79
|
+
e.linkedChanges ?? w,
|
|
73
80
|
v
|
|
74
81
|
);
|
|
75
|
-
return
|
|
82
|
+
return l(
|
|
76
83
|
() => ({
|
|
77
|
-
remoteChanges:
|
|
84
|
+
remoteChanges: y,
|
|
78
85
|
dismissRemoteChange: n.dismissRemoteChange,
|
|
79
|
-
takeRemoteChange:
|
|
86
|
+
takeRemoteChange: g ? n.takeRemoteChange : void 0,
|
|
87
|
+
mergeRemoteChange: p ? n.mergeRemoteChange : void 0,
|
|
80
88
|
lockReasons: o,
|
|
81
|
-
onLockHover:
|
|
89
|
+
onLockHover: h ? n.onLockHover : void 0,
|
|
82
90
|
applyToLines: r,
|
|
83
|
-
openRelated:
|
|
91
|
+
openRelated: m ? n.openRelated : void 0,
|
|
84
92
|
layoutId: k,
|
|
85
|
-
pickerMisses:
|
|
93
|
+
pickerMisses: R,
|
|
86
94
|
fromAutofill: d,
|
|
87
|
-
glossaryHelp:
|
|
88
|
-
placementText:
|
|
89
|
-
duplicates: j
|
|
95
|
+
glossaryHelp: O,
|
|
96
|
+
placementText: C,
|
|
97
|
+
duplicates: j,
|
|
98
|
+
linkedChanges: E
|
|
90
99
|
}),
|
|
91
100
|
[
|
|
92
|
-
|
|
101
|
+
y,
|
|
93
102
|
n,
|
|
103
|
+
g,
|
|
94
104
|
p,
|
|
95
105
|
o,
|
|
96
|
-
y,
|
|
97
|
-
r,
|
|
98
106
|
h,
|
|
99
|
-
|
|
100
|
-
O,
|
|
101
|
-
d,
|
|
107
|
+
r,
|
|
102
108
|
m,
|
|
109
|
+
k,
|
|
103
110
|
R,
|
|
104
|
-
|
|
111
|
+
d,
|
|
112
|
+
O,
|
|
113
|
+
C,
|
|
114
|
+
j,
|
|
115
|
+
E
|
|
105
116
|
]
|
|
106
117
|
);
|
|
107
118
|
}
|
|
108
|
-
function
|
|
119
|
+
function N(e, t) {
|
|
109
120
|
if (e.size !== t.size) return !1;
|
|
110
121
|
for (const n of e) if (!t.has(n)) return !1;
|
|
111
122
|
return !0;
|
|
112
123
|
}
|
|
113
|
-
function
|
|
124
|
+
function _(e, t) {
|
|
114
125
|
if (e.length !== t.length) return !1;
|
|
115
126
|
for (let n = 0; n < e.length; n++) if (!Object.is(e[n], t[n])) return !1;
|
|
116
127
|
return !0;
|
|
117
128
|
}
|
|
118
|
-
const
|
|
119
|
-
function
|
|
129
|
+
const I = /* @__PURE__ */ new Set(["summaryFields", "swapConfig", "alternateWidths"]), D = /* @__PURE__ */ new Set(["onToggle", "onSwapToggle"]);
|
|
130
|
+
function z(e, t) {
|
|
120
131
|
const n = Object.keys(e);
|
|
121
132
|
if (n.length !== Object.keys(t).length) return !1;
|
|
122
133
|
for (const o of n) {
|
|
123
134
|
if (!Object.hasOwn(t, o)) return !1;
|
|
124
135
|
const s = e[o], r = t[o];
|
|
125
136
|
if (!Object.is(s, r)) {
|
|
126
|
-
if (
|
|
137
|
+
if (D.has(o)) {
|
|
127
138
|
if (typeof s == "function" && typeof r == "function") continue;
|
|
128
139
|
return !1;
|
|
129
140
|
}
|
|
130
|
-
if (
|
|
131
|
-
if (
|
|
141
|
+
if (I.has(o)) {
|
|
142
|
+
if (A(s, r)) continue;
|
|
132
143
|
return !1;
|
|
133
144
|
}
|
|
134
145
|
if (s instanceof Set && r instanceof Set) {
|
|
135
|
-
if (
|
|
146
|
+
if (N(s, r)) continue;
|
|
136
147
|
return !1;
|
|
137
148
|
}
|
|
138
149
|
if (Array.isArray(s) && Array.isArray(r)) {
|
|
139
|
-
if (
|
|
150
|
+
if (_(s, r)) continue;
|
|
140
151
|
return !1;
|
|
141
152
|
}
|
|
142
153
|
return !1;
|
|
@@ -145,10 +156,10 @@ function U(e, t) {
|
|
|
145
156
|
return !0;
|
|
146
157
|
}
|
|
147
158
|
export {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
159
|
+
z as groupSectionPropsEqual,
|
|
160
|
+
A as jsonEqual,
|
|
161
|
+
P as keepIfEqual,
|
|
162
|
+
v as shallowRecordEqual,
|
|
163
|
+
f as useKeepIfEqual,
|
|
164
|
+
U as useStableFieldAffordances
|
|
154
165
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Popover as
|
|
5
|
-
import { inputBase as
|
|
6
|
-
import { unsavedText as
|
|
7
|
-
function
|
|
2
|
+
import { useState as b, useMemo as N } from "react";
|
|
3
|
+
import { cn as f } from "../../lib/utils.js";
|
|
4
|
+
import { Popover as y, PopoverAnchor as w, PopoverContent as C } from "../ui/popover.js";
|
|
5
|
+
import { inputBase as p } from "./panel-style.js";
|
|
6
|
+
import { unsavedText as P } from "./UnsavedConfirm.js";
|
|
7
|
+
function F(e) {
|
|
8
8
|
const t = e == null ? void 0 : e.change_note;
|
|
9
9
|
return t === "note" || t === "note_ticket" ? t : null;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function S(e, t) {
|
|
12
12
|
return e ? t.reason.trim().length < 3 ? !1 : e !== "note_ticket" || t.ticket.trim().length > 0 : !0;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function K(e) {
|
|
15
15
|
return { reason: e.reason.trim(), ticket: e.ticket.trim() || null };
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function _({
|
|
18
18
|
policy: e,
|
|
19
19
|
value: t,
|
|
20
20
|
onChange: o,
|
|
@@ -36,7 +36,7 @@ function S({
|
|
|
36
36
|
onKeyDown: s,
|
|
37
37
|
placeholder: "A short reason, kept with this version",
|
|
38
38
|
"data-change-note-reason": "",
|
|
39
|
-
className:
|
|
39
|
+
className: f(p, "h-8 w-full")
|
|
40
40
|
}
|
|
41
41
|
)
|
|
42
42
|
] }),
|
|
@@ -54,62 +54,64 @@ function S({
|
|
|
54
54
|
onKeyDown: s,
|
|
55
55
|
placeholder: "https://… or OPS-123",
|
|
56
56
|
"data-change-note-ticket": "",
|
|
57
|
-
className:
|
|
57
|
+
className: f(p, "h-8 w-full")
|
|
58
58
|
}
|
|
59
59
|
)
|
|
60
60
|
] })
|
|
61
61
|
] });
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function L({
|
|
64
64
|
open: e,
|
|
65
65
|
anchor: t,
|
|
66
66
|
policy: o,
|
|
67
67
|
count: i,
|
|
68
68
|
value: s,
|
|
69
69
|
onChange: n,
|
|
70
|
-
onSave:
|
|
70
|
+
onSave: x,
|
|
71
71
|
onClose: l,
|
|
72
|
-
intro:
|
|
72
|
+
intro: g,
|
|
73
|
+
footer: d
|
|
73
74
|
}) {
|
|
74
|
-
const [c,
|
|
75
|
+
const [c, m] = b(!1), v = N(
|
|
75
76
|
() => ({ current: t ?? document.body }),
|
|
76
77
|
[t]
|
|
77
78
|
);
|
|
78
79
|
if (!e) return null;
|
|
79
|
-
const
|
|
80
|
-
if (!(!
|
|
81
|
-
|
|
80
|
+
const h = S(o, s), u = async () => {
|
|
81
|
+
if (!(!h || c)) {
|
|
82
|
+
m(!0);
|
|
82
83
|
try {
|
|
83
|
-
await
|
|
84
|
+
await x() && l();
|
|
84
85
|
} finally {
|
|
85
|
-
|
|
86
|
+
m(!1);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
};
|
|
89
90
|
return /* @__PURE__ */ r(
|
|
90
|
-
|
|
91
|
+
y,
|
|
91
92
|
{
|
|
92
93
|
open: !0,
|
|
93
94
|
onOpenChange: (k) => {
|
|
94
95
|
!k && !c && l();
|
|
95
96
|
},
|
|
96
97
|
children: [
|
|
97
|
-
/* @__PURE__ */ a(
|
|
98
|
-
/* @__PURE__ */ r(
|
|
98
|
+
/* @__PURE__ */ a(w, { virtualRef: v }),
|
|
99
|
+
/* @__PURE__ */ r(C, { align: "end", className: "w-[320px] p-3", "data-change-note-save": "", children: [
|
|
99
100
|
/* @__PURE__ */ r("p", { className: "text-[13px] font-semibold text-slate-900 dark:text-foreground", children: [
|
|
100
101
|
"Save ",
|
|
101
|
-
|
|
102
|
+
P(i)
|
|
102
103
|
] }),
|
|
103
|
-
/* @__PURE__ */ a("p", { className: "mb-2 mt-0.5 text-[12px] leading-snug text-slate-600 dark:text-muted-foreground", children:
|
|
104
|
+
/* @__PURE__ */ a("p", { className: "mb-2 mt-0.5 text-[12px] leading-snug text-slate-600 dark:text-muted-foreground", children: g ?? "This layout keeps a reason with every save. It shows in History." }),
|
|
104
105
|
/* @__PURE__ */ a(
|
|
105
|
-
|
|
106
|
+
_,
|
|
106
107
|
{
|
|
107
108
|
policy: o,
|
|
108
109
|
value: s,
|
|
109
110
|
onChange: n,
|
|
110
|
-
onSubmit: () => void
|
|
111
|
+
onSubmit: () => void u()
|
|
111
112
|
}
|
|
112
113
|
),
|
|
114
|
+
d && /* @__PURE__ */ a("div", { className: "mt-2.5", children: d }),
|
|
113
115
|
/* @__PURE__ */ r("div", { className: "mt-3 flex items-center justify-end gap-1.5", children: [
|
|
114
116
|
/* @__PURE__ */ a(
|
|
115
117
|
"button",
|
|
@@ -126,8 +128,8 @@ function K({
|
|
|
126
128
|
{
|
|
127
129
|
type: "button",
|
|
128
130
|
"data-change-note-submit": "",
|
|
129
|
-
onClick: () => void
|
|
130
|
-
disabled: !
|
|
131
|
+
onClick: () => void u(),
|
|
132
|
+
disabled: !h || c,
|
|
131
133
|
className: "inline-flex h-7 items-center rounded-md bg-nvr-cyan px-3 text-[12px] font-medium text-white transition-opacity hover:opacity-90 disabled:pointer-events-none disabled:opacity-40",
|
|
132
134
|
children: c ? "Saving…" : "Save"
|
|
133
135
|
}
|
|
@@ -139,9 +141,9 @@ function K({
|
|
|
139
141
|
);
|
|
140
142
|
}
|
|
141
143
|
export {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
_ as ChangeNoteFields,
|
|
145
|
+
L as ChangeNoteSave,
|
|
146
|
+
K as changeNoteMeta,
|
|
147
|
+
F as changeNotePolicyOf,
|
|
148
|
+
S as changeNoteReady
|
|
147
149
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as r, jsx as
|
|
2
|
-
import { AlertTriangle as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { cn as m, formatRelative as
|
|
5
|
-
import { Popover as
|
|
6
|
-
import { initials as
|
|
7
|
-
import { unsavedText as
|
|
8
|
-
import { stepTargets as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return e.length === 0 ? null : /* @__PURE__ */ r("div", { role: "alert", "data-dropped-changes": "", className:
|
|
12
|
-
/* @__PURE__ */
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { AlertTriangle as v, History as k, ArrowUpRight as y, Settings2 as w } from "lucide-react";
|
|
3
|
+
import { useMemo as N } from "react";
|
|
4
|
+
import { cn as m, formatRelative as C } from "../../lib/utils.js";
|
|
5
|
+
import { Popover as R, PopoverAnchor as $, PopoverContent as T } from "../ui/popover.js";
|
|
6
|
+
import { initials as j } from "./presence.js";
|
|
7
|
+
import { unsavedText as p } from "./UnsavedConfirm.js";
|
|
8
|
+
import { stepTargets as S, touchesSettings as A } from "./unsaved-marks.js";
|
|
9
|
+
const f = "flex shrink-0 items-start gap-3 border-b px-4 py-1.5 text-[12.5px] border-amber-200 bg-amber-50 text-amber-800 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-200", x = "inline-flex h-7 shrink-0 items-center rounded-md border border-amber-300 px-2.5 text-[12px] font-medium hover:bg-amber-100 dark:border-amber-500/40 dark:hover:bg-amber-500/15";
|
|
10
|
+
function I({ labels: e, onDismiss: a }) {
|
|
11
|
+
return e.length === 0 ? null : /* @__PURE__ */ r("div", { role: "alert", "data-dropped-changes": "", className: f, children: [
|
|
12
|
+
/* @__PURE__ */ t(v, { className: "mt-1 h-3.5 w-3.5 shrink-0" }),
|
|
13
13
|
/* @__PURE__ */ r("div", { className: "min-w-0 flex-1 py-1", children: [
|
|
14
14
|
/* @__PURE__ */ r("p", { className: "m-0", children: [
|
|
15
15
|
"Someone else saved this layout first.",
|
|
@@ -22,154 +22,156 @@ function H({ labels: e, onDismiss: i }) {
|
|
|
22
22
|
e.length === 1 ? "it" : "them",
|
|
23
23
|
" by hand:"
|
|
24
24
|
] }),
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ t("ul", { className: "m-0 mt-1 list-disc space-y-0.5 pl-5", children: e.map((l, i) => (
|
|
26
26
|
// Labels repeat ("Rename field"); their order is the identity.
|
|
27
27
|
// biome-ignore lint/suspicious/noArrayIndexKey: see above
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ t("li", { "data-dropped-change": "", children: l }, i)
|
|
29
29
|
)) })
|
|
30
30
|
] }),
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ t("button", { type: "button", onClick: a, className: m(x, "mt-0.5"), children: "Got it" })
|
|
32
32
|
] });
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function L({
|
|
35
35
|
state: e,
|
|
36
|
-
onRecover:
|
|
37
|
-
onDismiss:
|
|
36
|
+
onRecover: a,
|
|
37
|
+
onDismiss: l
|
|
38
38
|
}) {
|
|
39
39
|
if (!e) return null;
|
|
40
|
-
const
|
|
40
|
+
const i = e.draft.steps.length, n = C(new Date(e.draft.at).toISOString()), o = e.source === "server" ? "kept for you" : "left in this browser";
|
|
41
41
|
return /* @__PURE__ */ r(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
44
|
role: "note",
|
|
45
45
|
"data-draft-recovery": e.kind,
|
|
46
46
|
"data-draft-stale": e.stale ? "" : void 0,
|
|
47
|
-
className: m(
|
|
47
|
+
className: m(f, "items-center"),
|
|
48
48
|
children: [
|
|
49
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ t(k, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
50
50
|
/* @__PURE__ */ r("p", { className: "m-0 min-w-0 flex-1", children: [
|
|
51
51
|
"You have ",
|
|
52
|
-
|
|
52
|
+
p(i),
|
|
53
53
|
" on this layout, ",
|
|
54
54
|
o,
|
|
55
55
|
" ",
|
|
56
|
-
|
|
56
|
+
n,
|
|
57
57
|
".",
|
|
58
58
|
e.stale && " The layout was saved since: Recover lays them on top of it and lists any that no longer fit."
|
|
59
59
|
] }),
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ t(
|
|
61
61
|
"button",
|
|
62
62
|
{
|
|
63
63
|
type: "button",
|
|
64
64
|
"data-draft-recover": "",
|
|
65
|
-
onClick:
|
|
65
|
+
onClick: a,
|
|
66
66
|
className: "inline-flex h-7 shrink-0 items-center rounded-md bg-nvr-cyan px-3 text-[12px] font-medium text-white transition-opacity hover:opacity-90",
|
|
67
67
|
children: "Recover"
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ t("button", { type: "button", "data-draft-dismiss": "", onClick: l, className: x, children: "Discard" })
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function M({
|
|
76
76
|
peers: e,
|
|
77
|
-
describe:
|
|
78
|
-
onJump:
|
|
77
|
+
describe: a,
|
|
78
|
+
onJump: l
|
|
79
79
|
}) {
|
|
80
80
|
if (e.length === 0) return null;
|
|
81
|
-
const
|
|
81
|
+
const i = e.slice(0, 4);
|
|
82
82
|
return /* @__PURE__ */ r("div", { "data-presence": "", className: "flex shrink-0 items-center -space-x-1.5", children: [
|
|
83
|
-
|
|
84
|
-
const o =
|
|
85
|
-
return /* @__PURE__ */
|
|
83
|
+
i.map((n) => {
|
|
84
|
+
const o = n.selected ? a(n.selected) : null;
|
|
85
|
+
return /* @__PURE__ */ t(
|
|
86
86
|
"button",
|
|
87
87
|
{
|
|
88
88
|
type: "button",
|
|
89
|
-
"data-presence-peer":
|
|
90
|
-
"data-tip": o ? `${
|
|
91
|
-
"aria-label": o ? `${
|
|
89
|
+
"data-presence-peer": n.id,
|
|
90
|
+
"data-tip": o ? `${n.name} — on ${o}` : `${n.name} is editing this form too`,
|
|
91
|
+
"aria-label": o ? `${n.name}, on ${o}` : `${n.name}, editing this form`,
|
|
92
92
|
disabled: !o,
|
|
93
|
-
onClick: () =>
|
|
93
|
+
onClick: () => n.selected && l(n.selected),
|
|
94
94
|
className: m(
|
|
95
95
|
"inline-flex h-7 w-7 items-center justify-center rounded-full text-[11px] font-semibold ring-2 ring-white disabled:cursor-default dark:ring-card",
|
|
96
|
-
|
|
96
|
+
n.tone.chip
|
|
97
97
|
),
|
|
98
|
-
children:
|
|
98
|
+
children: j(n.name)
|
|
99
99
|
},
|
|
100
|
-
|
|
100
|
+
n.id
|
|
101
101
|
);
|
|
102
102
|
}),
|
|
103
|
-
e.length >
|
|
103
|
+
e.length > i.length && /* @__PURE__ */ r(
|
|
104
104
|
"span",
|
|
105
105
|
{
|
|
106
|
-
"data-tip": e.slice(
|
|
106
|
+
"data-tip": e.slice(i.length).map((n) => n.name).join(", "),
|
|
107
107
|
className: "inline-flex h-7 min-w-7 items-center justify-center rounded-full bg-slate-100 px-1 text-[11px] font-semibold text-slate-600 ring-2 ring-white dark:bg-muted dark:text-muted-foreground dark:ring-card",
|
|
108
108
|
children: [
|
|
109
109
|
"+",
|
|
110
|
-
e.length -
|
|
110
|
+
e.length - i.length
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
)
|
|
114
114
|
] });
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Y({
|
|
117
117
|
anchor: e,
|
|
118
|
-
steps:
|
|
119
|
-
exists:
|
|
120
|
-
describe:
|
|
121
|
-
onJump:
|
|
118
|
+
steps: a,
|
|
119
|
+
exists: l,
|
|
120
|
+
describe: i,
|
|
121
|
+
onJump: n,
|
|
122
122
|
onSettings: o,
|
|
123
|
-
onClose:
|
|
123
|
+
onClose: b,
|
|
124
|
+
footer: h
|
|
124
125
|
}) {
|
|
125
|
-
const g =
|
|
126
|
+
const g = N(
|
|
126
127
|
() => ({ current: e ?? document.body }),
|
|
127
128
|
[e]
|
|
128
129
|
);
|
|
129
|
-
return /* @__PURE__ */ r(
|
|
130
|
-
/* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ r(R, { open: !0, onOpenChange: (d) => !d && b(), children: [
|
|
131
|
+
/* @__PURE__ */ t($, { virtualRef: g }),
|
|
131
132
|
/* @__PURE__ */ r(
|
|
132
|
-
|
|
133
|
+
T,
|
|
133
134
|
{
|
|
134
135
|
align: "end",
|
|
135
136
|
className: "max-h-[min(70vh,480px)] w-[340px] overflow-y-auto overscroll-contain p-2",
|
|
136
137
|
"data-unsaved-list": "",
|
|
137
138
|
children: [
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
|
|
140
|
-
const
|
|
139
|
+
/* @__PURE__ */ t("p", { className: "px-1.5 pb-1.5 pt-1 text-[13px] font-semibold text-slate-900 dark:text-foreground", children: p(a.length) }),
|
|
140
|
+
a.length === 0 ? /* @__PURE__ */ t("p", { className: "px-1.5 pb-1.5 text-[12px] text-slate-500 dark:text-muted-foreground", children: "Everything is saved." }) : /* @__PURE__ */ t("ol", { className: "m-0 list-none space-y-0.5 p-0", children: a.map((d, u) => {
|
|
141
|
+
const s = S(d).filter(l).pop() ?? null, c = !s && A(d);
|
|
141
142
|
return (
|
|
142
143
|
// biome-ignore lint/suspicious/noArrayIndexKey: steps have no id; order is identity
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ t("li", { children: /* @__PURE__ */ r(
|
|
144
145
|
"button",
|
|
145
146
|
{
|
|
146
147
|
type: "button",
|
|
147
|
-
"data-unsaved-step":
|
|
148
|
-
disabled: !
|
|
148
|
+
"data-unsaved-step": u,
|
|
149
|
+
disabled: !s && !c,
|
|
149
150
|
onClick: () => {
|
|
150
|
-
|
|
151
|
+
s ? n(s) : c && o();
|
|
151
152
|
},
|
|
152
153
|
className: "flex w-full items-center gap-2 rounded-md px-1.5 py-1.5 text-left hover:bg-muted disabled:pointer-events-none",
|
|
153
154
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ t("span", { className: "h-1.5 w-1.5 shrink-0 rounded-full bg-amber-500 dark:bg-amber-400" }),
|
|
155
156
|
/* @__PURE__ */ r("span", { className: "min-w-0 flex-1", children: [
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
|
|
157
|
+
/* @__PURE__ */ t("span", { className: "block truncate text-[12.5px] text-slate-800 dark:text-foreground", children: d.label }),
|
|
158
|
+
s && /* @__PURE__ */ t("span", { className: "block truncate text-[11.5px] text-slate-500 dark:text-muted-foreground", children: i(s) })
|
|
158
159
|
] }),
|
|
159
|
-
|
|
160
|
+
s ? /* @__PURE__ */ t(y, { className: "h-3.5 w-3.5 shrink-0 text-slate-400" }) : c ? /* @__PURE__ */ t(w, { className: "h-3.5 w-3.5 shrink-0 text-slate-400" }) : null
|
|
160
161
|
]
|
|
161
162
|
}
|
|
162
|
-
) },
|
|
163
|
+
) }, u)
|
|
163
164
|
);
|
|
164
|
-
}) })
|
|
165
|
+
}) }),
|
|
166
|
+
h && a.length > 0 && /* @__PURE__ */ t("div", { className: "mt-1.5 border-t border-slate-100 px-1.5 pb-1 pt-2 dark:border-border", children: h })
|
|
165
167
|
]
|
|
166
168
|
}
|
|
167
169
|
)
|
|
168
170
|
] });
|
|
169
171
|
}
|
|
170
172
|
export {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
I as DroppedBanner,
|
|
174
|
+
M as PresenceAvatars,
|
|
175
|
+
L as RecoveryBanner,
|
|
176
|
+
Y as UnsavedList
|
|
175
177
|
};
|