@nivaro/react 0.2.54 → 0.2.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +99 -98
  3. package/dist/index.d.ts +339 -2
  4. package/dist/index.js +644 -618
  5. package/dist/layout-editor.d.ts +4 -0
  6. package/dist/shared/components/BackgroundRunOffer.js +117 -0
  7. package/dist/shared/components/BroadcastView.js +214 -213
  8. package/dist/shared/components/CollectionBrowserView.js +2592 -2695
  9. package/dist/shared/components/ItemEditForm.js +4066 -3832
  10. package/dist/shared/components/JobsTray.js +100 -55
  11. package/dist/shared/components/MyWorkView.js +91 -89
  12. package/dist/shared/components/NotificationBell.js +80 -79
  13. package/dist/shared/components/ProfileView.js +568 -520
  14. package/dist/shared/components/RecordCompare.js +254 -0
  15. package/dist/shared/components/RecordReadView.js +599 -552
  16. package/dist/shared/components/ReportView.js +578 -543
  17. package/dist/shared/components/RowPresence.js +91 -0
  18. package/dist/shared/components/WidgetSlot.js +474 -458
  19. package/dist/shared/components/ai/AiAnalyticsView.js +16 -6
  20. package/dist/shared/components/ai/AskPanel.js +139 -119
  21. package/dist/shared/components/ai/FirstWeekCard.js +126 -0
  22. package/dist/shared/components/bulk/BulkFieldUpdate.js +289 -0
  23. package/dist/shared/components/bulk/bulk-field-options.js +45 -0
  24. package/dist/shared/components/charts/CumulativeFlowChart.js +176 -0
  25. package/dist/shared/components/chat/ChannelArchive.js +326 -0
  26. package/dist/shared/components/chat/ChannelExtras.js +141 -121
  27. package/dist/shared/components/chat/ChatAnalyticsView.js +112 -110
  28. package/dist/shared/components/chat/ChatPanel.js +1695 -1733
  29. package/dist/shared/components/chat/Composer.js +357 -303
  30. package/dist/shared/components/chat/MessageActions.js +92 -0
  31. package/dist/shared/components/chat/MessageFormat.js +290 -264
  32. package/dist/shared/components/chat/OutboxBubbles.js +146 -0
  33. package/dist/shared/components/chat/RequestIdCard.js +135 -0
  34. package/dist/shared/components/chat/RoomHeaderMenu.js +202 -0
  35. package/dist/shared/components/chat/RoomParts.js +213 -274
  36. package/dist/shared/components/chat/ScreenClip.js +184 -0
  37. package/dist/shared/components/chat/chat-core.js +402 -483
  38. package/dist/shared/components/chat/chat-drafts.js +59 -0
  39. package/dist/shared/components/chat/chat-emoji.js +348 -0
  40. package/dist/shared/components/chat/chat-local-time.js +41 -0
  41. package/dist/shared/components/chat/chat-outbox.js +303 -0
  42. package/dist/shared/components/chat/chat-window.js +163 -0
  43. package/dist/shared/components/chat/huddle/HuddleControls.js +143 -0
  44. package/dist/shared/components/chat/huddle/HuddleStage.js +164 -0
  45. package/dist/shared/components/chat/huddle/huddle-store.js +342 -0
  46. package/dist/shared/components/chat/huddle/useHuddle.js +58 -0
  47. package/dist/shared/components/help-videos/api.js +76 -73
  48. package/dist/shared/components/item-edit/CatalogPickerField.js +113 -112
  49. package/dist/shared/components/item-edit/ChangeReasonDialog.js +13 -13
  50. package/dist/shared/components/item-edit/FieldAffordances.js +2 -2
  51. package/dist/shared/components/item-edit/FieldRenderer.js +248 -245
  52. package/dist/shared/components/item-edit/FieldRow.js +292 -279
  53. package/dist/shared/components/item-edit/GroupSection.js +698 -574
  54. package/dist/shared/components/item-edit/InlineTableField.js +3 -1
  55. package/dist/shared/components/item-edit/RelationCombobox.js +186 -176
  56. package/dist/shared/components/item-edit/entry/EntryStrip.js +54 -0
  57. package/dist/shared/components/item-edit/entry/entry-keys.js +27 -0
  58. package/dist/shared/components/item-edit/entry/useEntryKeyboard.js +70 -0
  59. package/dist/shared/components/item-edit/entry/useEntryMode.js +59 -0
  60. package/dist/shared/components/item-edit/form-structure-ui.js +105 -0
  61. package/dist/shared/components/item-edit/lazy-sections.js +36 -0
  62. package/dist/shared/components/item-edit/lock-why.js +39 -32
  63. package/dist/shared/components/item-edit/picker-miss.js +26 -0
  64. package/dist/shared/components/item-edit/placement-behaviour.js +196 -0
  65. package/dist/shared/components/item-edit/useFormUsageBeacon.js +51 -45
  66. package/dist/shared/components/layout-editor/AddPanel.js +134 -117
  67. package/dist/shared/components/layout-editor/ChangeNote.js +25 -24
  68. package/dist/shared/components/layout-editor/CollabParts.js +80 -75
  69. package/dist/shared/components/layout-editor/DesignNode.js +126 -120
  70. package/dist/shared/components/layout-editor/EditorCanvas.js +30 -27
  71. package/dist/shared/components/layout-editor/EditorTopBar.js +203 -192
  72. package/dist/shared/components/layout-editor/HistoryPanel.js +120 -104
  73. package/dist/shared/components/layout-editor/LayoutEditor.js +768 -671
  74. package/dist/shared/components/layout-editor/RestorePiece.js +143 -0
  75. package/dist/shared/components/layout-editor/StagedChip.js +22 -0
  76. package/dist/shared/components/layout-editor/StructureMenu.js +237 -186
  77. package/dist/shared/components/layout-editor/collab/FormFollowShare.js +149 -103
  78. package/dist/shared/components/layout-editor/collab/collab-api.js +29 -26
  79. package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +81 -80
  80. package/dist/shared/components/layout-editor/dnd/node.js +69 -57
  81. package/dist/shared/components/layout-editor/draft-recovery.js +113 -43
  82. package/dist/shared/components/layout-editor/entry/PlacementPresets.js +149 -0
  83. package/dist/shared/components/layout-editor/entry/entry-editor-context.js +10 -0
  84. package/dist/shared/components/layout-editor/entry/presets.js +71 -0
  85. package/dist/shared/components/layout-editor/entry/tab-order.js +110 -0
  86. package/dist/shared/components/layout-editor/entry/theme-preview.js +37 -0
  87. package/dist/shared/components/layout-editor/grid-guides.js +142 -0
  88. package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +402 -0
  89. package/dist/shared/components/layout-editor/inspector/BulkInspector.js +61 -57
  90. package/dist/shared/components/layout-editor/inspector/GroupInspector.js +247 -151
  91. package/dist/shared/components/layout-editor/inspector/Inspector.js +176 -155
  92. package/dist/shared/components/layout-editor/inspector/LookTab.js +167 -116
  93. package/dist/shared/components/layout-editor/inspector/PickerMisses.js +129 -0
  94. package/dist/shared/components/layout-editor/inspector/PickerTab.js +84 -82
  95. package/dist/shared/components/layout-editor/inspector/RulesTab.js +66 -62
  96. package/dist/shared/components/layout-editor/inspector/kit.js +69 -68
  97. package/dist/shared/components/layout-editor/outputs/OutputsButton.js +254 -0
  98. package/dist/shared/components/layout-editor/outputs/help-sheet.js +154 -0
  99. package/dist/shared/components/layout-editor/outputs/output-api.js +61 -0
  100. package/dist/shared/components/layout-editor/overview/describe-conditions.js +6 -0
  101. package/dist/shared/components/layout-editor/overview/purpose.js +15 -13
  102. package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
  103. package/dist/shared/components/layout-editor/restore-piece.js +192 -0
  104. package/dist/shared/components/layout-editor/section-structure.js +241 -0
  105. package/dist/shared/components/layout-editor/settings/EntrySection.js +296 -0
  106. package/dist/shared/components/layout-editor/settings/FormSettings.js +41 -39
  107. package/dist/shared/components/layout-editor/settings/ResolveSettings.js +255 -0
  108. package/dist/shared/components/layout-editor/settings/ToolsSection.js +147 -111
  109. package/dist/shared/components/layout-editor/settings/WhoSection.js +29 -26
  110. package/dist/shared/components/layout-editor/settings/settings-registry.js +114 -17
  111. package/dist/shared/components/layout-editor/staged-api.js +64 -0
  112. package/dist/shared/components/layout-editor/structure-ops.js +81 -77
  113. package/dist/shared/components/layout-editor/testing/TestingPanels.js +65 -60
  114. package/dist/shared/components/layout-editor/testing/testing-model.js +198 -185
  115. package/dist/shared/components/layout-editor/toolbar-kit.js +11 -11
  116. package/dist/shared/components/layout-editor/usage/AbTestSection.js +355 -0
  117. package/dist/shared/components/layout-editor/usage/UsagePanel.js +144 -70
  118. package/dist/shared/components/layout-editor/usage/ab-api.js +86 -0
  119. package/dist/shared/components/layout-editor/usage/suggest-collapse.js +32 -0
  120. package/dist/shared/components/layout-editor/useLayoutDraft.js +25 -24
  121. package/dist/shared/components/notifications/NotificationAnalyticsView.js +148 -77
  122. package/dist/shared/components/panels/ErpFailureBanner.js +18 -17
  123. package/dist/shared/components/panels/ExternalRequestsChip.js +63 -62
  124. package/dist/shared/components/pipeline/PipelineEditorView.js +106 -104
  125. package/dist/shared/components/profile/AgentsPanel.js +479 -0
  126. package/dist/shared/components/queue/QueueWorklist.js +1026 -1040
  127. package/dist/shared/components/support/SupportAnalytics.js +171 -0
  128. package/dist/shared/components/support/SupportView.js +75 -73
  129. package/dist/shared/lib/background-runs.js +150 -0
  130. package/dist/shared/lib/delivery-ack.js +9 -0
  131. package/dist/shared/lib/entry-badge-style.js +13 -0
  132. package/dist/shared/lib/entry-config.js +71 -0
  133. package/dist/shared/lib/form-sections.js +64 -0
  134. package/dist/shared/lib/form-structure.js +99 -0
  135. package/dist/shared/lib/form-usage-beacon.js +101 -52
  136. package/dist/shared/lib/jobs-tray.js +25 -23
  137. package/dist/shared/lib/keyset-pager.js +37 -0
  138. package/dist/shared/lib/layout-ops.js +84 -82
  139. package/dist/shared/lib/layout-resolve.js +113 -0
  140. package/dist/shared/lib/placement-behaviour.js +144 -0
  141. package/dist/shared/lib/prefetch.js +149 -0
  142. package/dist/shared/lib/presence-hooks.js +199 -0
  143. package/dist/shared/lib/record-outbox.js +82 -81
  144. package/dist/shared/lib/replay-socket.js +93 -0
  145. package/dist/shared/lib/request-gate.js +51 -50
  146. package/dist/shared/lib/room-gaps.js +96 -0
  147. package/dist/shared/lib/search-log.js +27 -0
  148. package/dist/shared/lib/socket-realtime.js +101 -80
  149. package/dist/shared/lib/worker-socket.js +200 -0
  150. package/package.json +1 -1
@@ -1,104 +1,118 @@
1
- import { jsxs as p, jsx as t, Fragment as I } from "react/jsx-runtime";
2
- import { CopyPlus as X, Group as J, Ungroup as z, Shuffle as Q, ClipboardCopy as Z, PinOff as ee, Pin as te, ArrowLeft as ne } from "lucide-react";
3
- import { useState as O, useRef as re, useCallback as oe, useEffect as L, useMemo as w } from "react";
1
+ import { jsxs as p, jsx as t, Fragment as Y } from "react/jsx-runtime";
2
+ import { CopyPlus as F, Group as X, SquareSplitVertical as z, Columns3 as Q, Merge as Z, Ungroup as ee, Shuffle as te, ClipboardCopy as ne, PinOff as re, Pin as oe, ArrowLeft as se } from "lucide-react";
3
+ import { useState as O, useRef as ie, useCallback as ae, useEffect as R, useMemo as w } from "react";
4
4
  import { toast as A } from "sonner";
5
- import { UNGROUPED_KEY as se, isCanvasSlot as ae } from "../../lib/layout-ops.js";
6
- import { cn as $ } from "../../lib/utils.js";
7
- import { Checkbox as _ } from "../ui/checkbox.js";
8
- import { Popover as ie, PopoverAnchor as le, PopoverContent as ce } from "../ui/popover.js";
9
- import { STRUCTURE_MENU_EVENT as U, duplicateKeys as de } from "./ArrangeButton.js";
10
- import { ArrangeButton as Ge, openStructureMenu as Ie } from "./ArrangeButton.js";
11
- import { isTyping as ue } from "./is-typing.js";
12
- import { tintCard as pe, effectText as P } from "./panel-style.js";
13
- import { duplicatePlan as B, convertChoices as K, groupName as E, rulesOf as j, ruleSet as V, ruleTargets as me, copyRulesPlan as fe, RULE_LABELS as he, kindWord as T, wrapPlan as ge, duplicateBlocked as xe, unwrapPlan as ke, unwrapBlocked as ye, pinPlan as ve } from "./structure-ops.js";
14
- import { isPinned as C } from "./pin.js";
15
- function we(e) {
5
+ import { stickyGroupKey as le } from "../../lib/form-structure.js";
6
+ import { UNGROUPED_KEY as ce, isCanvasSlot as de } from "../../lib/layout-ops.js";
7
+ import { cn as $, titleCase as ue } from "../../lib/utils.js";
8
+ import { Checkbox as L } from "../ui/checkbox.js";
9
+ import { Popover as pe, PopoverAnchor as me, PopoverContent as fe } from "../ui/popover.js";
10
+ import { STRUCTURE_MENU_EVENT as j, duplicateKeys as he } from "./ArrangeButton.js";
11
+ import { ArrangeButton as dt, openStructureMenu as ut } from "./ArrangeButton.js";
12
+ import { readOverrides as ge } from "./inspector/model.js";
13
+ import { isTyping as ke } from "./is-typing.js";
14
+ import { splitPlan as xe, splitBlocked as ye, rowPlan as ve, rowBlocked as we, joinTarget as Ne, joinPlan as be, joinBlocked as Ce } from "./section-structure.js";
15
+ import { tintCard as Pe, effectText as S } from "./panel-style.js";
16
+ import { duplicatePlan as U, convertChoices as M, groupName as N, rulesOf as K, ruleSet as V, ruleTargets as Se, copyRulesPlan as Ee, RULE_LABELS as Ae, kindWord as T, wrapPlan as Oe, duplicateBlocked as $e, unwrapPlan as Te, unwrapBlocked as _e, pinPlan as De } from "./structure-ops.js";
17
+ import { isPinned as P } from "./pin.js";
18
+ function Re(e) {
16
19
  if (!e) return null;
17
- const r = e.indexOf(":"), o = e.slice(0, r), i = e.slice(r + 1);
18
- if (o === "group") return { kind: "group", key: i };
19
- if (o === "header") return { kind: "header", field: i };
20
+ const s = e.indexOf(":"), o = e.slice(0, s), c = e.slice(s + 1);
21
+ if (o === "group") return { kind: "group", key: c };
22
+ if (o === "header") return { kind: "header", field: c };
20
23
  if (o !== "field" && o !== "slot") return null;
21
- const s = i.lastIndexOf(":"), n = i.slice(s + 1);
22
- return { kind: o, field: i.slice(0, s), group_key: n === "" ? null : n };
24
+ const r = c.lastIndexOf(":"), n = c.slice(r + 1);
25
+ return { kind: o, field: c.slice(0, r), group_key: n === "" ? null : n };
23
26
  }
24
- const Ne = (e, r) => ({
25
- getBoundingClientRect: () => new DOMRect(e, r, 0, 0)
27
+ const Le = (e, s) => ({
28
+ getBoundingClientRect: () => new DOMRect(e, s, 0, 0)
26
29
  });
27
- function qe(e, r) {
30
+ function it(e, s) {
28
31
  return w(() => {
29
- const o = new Set(e.groups.filter((i) => C(i)).map((i) => i.key));
30
- return (i) => {
31
- const s = (r == null ? void 0 : r(i)) ?? [];
32
- return i.kind !== "group" || !o.has(i.key) ? s : [
33
- ...s,
32
+ const o = new Set(e.groups.filter((r) => P(r)).map((r) => r.key)), c = le(
33
+ [...e.groups].filter((r) => r.parent_key === null).sort((r, n) => r.sort - n.sort)
34
+ );
35
+ return (r) => {
36
+ const n = (s == null ? void 0 : s(r)) ?? [];
37
+ if (r.kind !== "group") return n;
38
+ const i = r.key === c ? [
39
+ ...n,
40
+ {
41
+ text: "Sticks to the top",
42
+ tone: "slate",
43
+ tip: "People see this section stay at the top of the form while they scroll the rest (not on phones)."
44
+ }
45
+ ] : n;
46
+ return o.has(r.key) ? [
47
+ ...i,
34
48
  {
35
49
  text: "Pinned",
36
50
  tone: "slate",
37
51
  icon: "pin",
38
52
  tip: "Pinned in the editor: it does not drag and takes no drops. The form people see is unchanged."
39
53
  }
40
- ];
54
+ ] : i;
41
55
  };
42
- }, [e.groups, r]);
56
+ }, [e.groups, s]);
43
57
  }
44
- function He({
58
+ function at({
45
59
  bundle: e,
46
- selection: r,
60
+ selection: s,
47
61
  apply: o,
48
- onSelection: i,
49
- rootRef: s
62
+ onSelection: c,
63
+ rootRef: r
50
64
  }) {
51
- var g, k;
52
- const [n, l] = O(null), m = re({ bundle: e, selection: r, apply: o, onSelection: i });
53
- m.current = { bundle: e, selection: r, apply: o, onSelection: i };
54
- const h = oe((d, u = {}) => d.ok ? (m.current.apply(d.ops, { label: d.label }), d.select && m.current.onSelection([d.select]), u.toastNotes && d.notes.length && A.success(d.label, { description: d.notes.join(". ") }), l(null), !0) : (A(d.reason), !1), []);
55
- L(() => {
65
+ var h, x;
66
+ const [n, i] = O(null), m = ie({ bundle: e, selection: s, apply: o, onSelection: c });
67
+ m.current = { bundle: e, selection: s, apply: o, onSelection: c };
68
+ const g = ae((d, u = {}) => d.ok ? (m.current.apply(d.ops, { label: d.label }), d.select && m.current.onSelection([d.select]), u.toastNotes && d.notes.length && A.success(d.label, { description: d.notes.join(". ") }), i(null), !0) : (A(d.reason), !1), []);
69
+ R(() => {
56
70
  const d = (u) => {
57
71
  if (!(u.metaKey || u.ctrlKey) || u.altKey || u.shiftKey || u.key.toLowerCase() !== "d") return;
58
- const { bundle: a, selection: c } = m.current;
59
- if (!(!a || c.length === 0 || ue(u.target) || u.defaultPrevented) && !document.querySelector('[data-radix-popper-content-wrapper], [role="menu"]')) {
60
- if (u.preventDefault(), c.length > 1) {
72
+ const { bundle: a, selection: l } = m.current;
73
+ if (!(!a || l.length === 0 || ke(u.target) || u.defaultPrevented) && !document.querySelector('[data-radix-popper-content-wrapper], [role="menu"]')) {
74
+ if (u.preventDefault(), l.length > 1) {
61
75
  A("Duplicate works on one section at a time");
62
76
  return;
63
77
  }
64
- h(B(a, c[0]), { toastNotes: !0 });
78
+ g(U(a, l[0]), { toastNotes: !0 });
65
79
  }
66
80
  };
67
81
  return window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d);
68
- }, [h]), L(() => {
69
- const d = (c) => {
82
+ }, [g]), R(() => {
83
+ const d = (l) => {
70
84
  var f;
71
- return !!c && !!((f = s.current) != null && f.contains(c));
72
- }, u = (c) => {
73
- var b, R;
74
- const f = ((R = (b = c.target) == null ? void 0 : b.closest) == null ? void 0 : R.call(b, "[data-design-target]")) ?? null;
85
+ return !!l && !!((f = r.current) != null && f.contains(l));
86
+ }, u = (l) => {
87
+ var C, D;
88
+ const f = ((D = (C = l.target) == null ? void 0 : C.closest) == null ? void 0 : D.call(C, "[data-design-target]")) ?? null;
75
89
  if (!d(f) || !(f != null && f.closest("[data-design-canvas]")) || !m.current.bundle) return;
76
- const y = we(f.getAttribute("data-design-target"));
77
- if (!y) return;
78
- c.preventDefault();
79
- const N = m.current.selection, H = f.getAttribute("data-design-target"), D = N.some((G) => be(G) === H), Y = D && N.length > 1 ? N : [y];
80
- (!D || N.length <= 1) && m.current.onSelection([y]);
81
- const F = c.button !== 2 && c.clientX === 0 && c.clientY === 0;
82
- l({
83
- targets: Y,
84
- anchor: F ? f : Ne(c.clientX, c.clientY),
90
+ const v = Re(f.getAttribute("data-design-target"));
91
+ if (!v) return;
92
+ l.preventDefault();
93
+ const b = m.current.selection, G = f.getAttribute("data-design-target"), _ = b.some((J) => Be(J) === G), H = _ && b.length > 1 ? b : [v];
94
+ (!_ || b.length <= 1) && m.current.onSelection([v]);
95
+ const I = l.button !== 2 && l.clientX === 0 && l.clientY === 0;
96
+ i({
97
+ targets: H,
98
+ anchor: I ? f : Le(l.clientX, l.clientY),
85
99
  view: "menu"
86
100
  });
87
- }, a = (c) => {
88
- const f = c.target;
101
+ }, a = (l) => {
102
+ const f = l.target;
89
103
  if (!d(f)) return;
90
- const y = c.detail;
91
- l({ targets: y.targets, anchor: f, view: y.view ?? "menu" });
104
+ const v = l.detail;
105
+ i({ targets: v.targets, anchor: f, view: v.view ?? "menu" });
92
106
  };
93
- return document.addEventListener("contextmenu", u, !0), document.addEventListener(U, a), () => {
94
- document.removeEventListener("contextmenu", u, !0), document.removeEventListener(U, a);
107
+ return document.addEventListener("contextmenu", u, !0), document.addEventListener(j, a), () => {
108
+ document.removeEventListener("contextmenu", u, !0), document.removeEventListener(j, a);
95
109
  };
96
- }, [s]);
97
- const x = w(() => ({ current: (n == null ? void 0 : n.anchor) ?? null }), [n]);
98
- return !n || !e ? null : /* @__PURE__ */ p(ie, { open: !0, onOpenChange: (d) => !d && l(null), children: [
99
- /* @__PURE__ */ t(le, { virtualRef: x }),
110
+ }, [r]);
111
+ const k = w(() => ({ current: (n == null ? void 0 : n.anchor) ?? null }), [n]);
112
+ return !n || !e ? null : /* @__PURE__ */ p(pe, { open: !0, onOpenChange: (d) => !d && i(null), children: [
113
+ /* @__PURE__ */ t(me, { virtualRef: k }),
100
114
  /* @__PURE__ */ t(
101
- ce,
115
+ fe,
102
116
  {
103
117
  align: "start",
104
118
  className: "w-[300px] p-1.5",
@@ -109,45 +123,49 @@ function He({
109
123
  '[role="menuitem"]:not([aria-disabled="true"]), input, button'
110
124
  )) == null || a.focus();
111
125
  },
112
- children: n.view === "convert" && ((g = n.targets[0]) == null ? void 0 : g.kind) === "group" ? /* @__PURE__ */ t(
113
- Se,
126
+ children: n.view === "convert" && ((h = n.targets[0]) == null ? void 0 : h.kind) === "group" ? /* @__PURE__ */ t(
127
+ Ve,
114
128
  {
115
129
  bundle: e,
116
130
  groupKey: n.targets[0].key,
117
- onBack: () => l({ ...n, view: "menu" }),
118
- run: h
131
+ onBack: () => i({ ...n, view: "menu" }),
132
+ run: g
119
133
  }
120
- ) : n.view === "rules" && ((k = n.targets[0]) == null ? void 0 : k.kind) === "group" ? /* @__PURE__ */ t(
121
- Oe,
134
+ ) : n.view === "rules" && ((x = n.targets[0]) == null ? void 0 : x.kind) === "group" ? /* @__PURE__ */ t(
135
+ We,
122
136
  {
123
137
  bundle: e,
124
138
  groupKey: n.targets[0].key,
125
- onBack: () => l({ ...n, view: "menu" }),
126
- run: h
139
+ onBack: () => i({ ...n, view: "menu" }),
140
+ run: g
127
141
  }
128
142
  ) : /* @__PURE__ */ t(
129
- Ee,
143
+ Ke,
130
144
  {
131
145
  bundle: e,
132
146
  targets: n.targets,
133
- run: h,
134
- onView: (d) => l({ ...n, view: d })
147
+ run: g,
148
+ onView: (d) => i({ ...n, view: d })
135
149
  }
136
150
  )
137
151
  }
138
152
  )
139
153
  ] });
140
154
  }
141
- function be(e) {
155
+ const je = (e) => (s) => {
156
+ const o = e.placements.find((r) => r.field === s), c = ge(o).label;
157
+ return typeof c == "string" && c || (o == null ? void 0 : o.label_override) || ue(s);
158
+ };
159
+ function Be(e) {
142
160
  return e.kind === "group" ? `group:${e.key}` : e.kind === "header" ? `header:${e.field}` : `${e.kind}:${e.field}:${e.group_key ?? ""}`;
143
161
  }
144
- const Ce = "flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-[12.5px] text-slate-700 outline-none transition-colors hover:bg-muted focus-visible:bg-muted dark:text-foreground aria-disabled:cursor-not-allowed aria-disabled:opacity-45 aria-disabled:hover:bg-transparent";
145
- function v({
162
+ const Ue = "flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-[12.5px] text-slate-700 outline-none transition-colors hover:bg-muted focus-visible:bg-muted dark:text-foreground aria-disabled:cursor-not-allowed aria-disabled:opacity-45 aria-disabled:hover:bg-transparent";
163
+ function y({
146
164
  icon: e,
147
- children: r,
165
+ children: s,
148
166
  hint: o,
149
- blocked: i,
150
- onPick: s,
167
+ blocked: c,
168
+ onPick: r,
151
169
  ...n
152
170
  }) {
153
171
  return /* @__PURE__ */ p(
@@ -155,70 +173,103 @@ function v({
155
173
  {
156
174
  type: "button",
157
175
  role: "menuitem",
158
- "aria-disabled": i ? !0 : void 0,
159
- "data-tip": i ?? void 0,
176
+ "aria-disabled": c ? !0 : void 0,
177
+ "data-tip": c ?? void 0,
160
178
  onClick: () => {
161
- i || s();
179
+ c || r();
162
180
  },
163
- className: Ce,
181
+ className: Ue,
164
182
  ...n,
165
183
  children: [
166
184
  /* @__PURE__ */ t("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center text-slate-500 dark:text-muted-foreground [&_svg]:h-3.5 [&_svg]:w-3.5", children: e }),
167
- /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate", children: r }),
185
+ /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate", children: s }),
168
186
  o && /* @__PURE__ */ t("kbd", { className: "shrink-0 font-sans text-[11px] text-slate-400 dark:text-muted-foreground", children: o })
169
187
  ]
170
188
  }
171
189
  );
172
190
  }
173
- function Pe(e) {
191
+ function Me(e) {
174
192
  var n;
175
193
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key)) return;
176
194
  const o = Array.from(e.currentTarget.querySelectorAll('[role="menuitem"]'));
177
195
  if (o.length === 0) return;
178
196
  e.preventDefault();
179
- const i = o.indexOf(document.activeElement), s = e.key === "Home" ? 0 : e.key === "End" ? o.length - 1 : (i + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length;
180
- (n = o[s]) == null || n.focus();
197
+ const c = o.indexOf(document.activeElement), r = e.key === "Home" ? 0 : e.key === "End" ? o.length - 1 : (c + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length;
198
+ (n = o[r]) == null || n.focus();
181
199
  }
182
- function Ee({
200
+ function Ke({
183
201
  bundle: e,
184
- targets: r,
202
+ targets: s,
185
203
  run: o,
186
- onView: i
204
+ onView: c
187
205
  }) {
188
- const s = r.length === 1 ? r[0] : null, n = (s == null ? void 0 : s.kind) === "group" && s.key !== se ? e.groups.find((g) => g.key === s.key) ?? null : null, l = r.filter(
189
- (g) => (g.kind === "field" || g.kind === "slot") && !ae(g)
190
- ), m = l.length ? ge(e, l) : null, h = s ? xe(e, s) : "Duplicate works on one section at a time", x = n ? `${E(n)} · ${T(e, n)}` : l.length > 1 ? `${l.length} selected` : null;
191
- return /* @__PURE__ */ p("div", { role: "menu", "aria-label": "Arrange", onKeyDown: Pe, className: "flex flex-col", children: [
192
- x && /* @__PURE__ */ t("p", { className: $(P, "truncate px-2 pb-1 pt-0.5"), children: x }),
206
+ const r = s.length === 1 ? s[0] : null, n = (r == null ? void 0 : r.kind) === "group" && r.key !== ce ? e.groups.find((h) => h.key === r.key) ?? null : null, i = s.filter(
207
+ (h) => (h.kind === "field" || h.kind === "slot") && !de(h)
208
+ ), m = i.length ? Oe(e, i) : null, g = r ? $e(e, r) : "Duplicate works on one section at a time", k = n ? `${N(n)} · ${T(e, n)}` : i.length > 1 ? `${i.length} selected` : null;
209
+ return /* @__PURE__ */ p("div", { role: "menu", "aria-label": "Arrange", onKeyDown: Me, className: "flex flex-col", children: [
210
+ k && /* @__PURE__ */ t("p", { className: $(S, "truncate px-2 pb-1 pt-0.5"), children: k }),
193
211
  /* @__PURE__ */ t(
194
- v,
212
+ y,
195
213
  {
196
- icon: /* @__PURE__ */ t(X, {}),
197
- hint: de(),
198
- blocked: h,
214
+ icon: /* @__PURE__ */ t(F, {}),
215
+ hint: he(),
216
+ blocked: g,
199
217
  "data-structure-action": "duplicate",
200
- onPick: () => o(B(e, s), { toastNotes: !0 }),
218
+ onPick: () => o(U(e, r), { toastNotes: !0 }),
201
219
  children: "Duplicate"
202
220
  }
203
221
  ),
204
222
  m && /* @__PURE__ */ t(
205
- v,
223
+ y,
206
224
  {
207
- icon: /* @__PURE__ */ t(J, {}),
225
+ icon: /* @__PURE__ */ t(X, {}),
208
226
  blocked: m.ok ? null : m.reason,
209
227
  "data-structure-action": "wrap",
210
228
  onPick: () => o(m),
211
229
  children: m.ok ? m.label.replace(/^Wrap \d+ fields?/, "Wrap") : "Wrap in a new section"
212
230
  }
213
231
  ),
214
- n && /* @__PURE__ */ p(I, { children: [
232
+ r && (r.kind === "field" || r.kind === "slot") && r.group_key !== null && /* @__PURE__ */ t(
233
+ y,
234
+ {
235
+ icon: /* @__PURE__ */ t(z, {}),
236
+ blocked: ye(e, r),
237
+ "data-structure-action": "split",
238
+ onPick: () => o(xe(e, r), { toastNotes: !0 }),
239
+ children: "Split the section here"
240
+ }
241
+ ),
242
+ i.length > 1 && /* @__PURE__ */ t(
243
+ y,
244
+ {
245
+ icon: /* @__PURE__ */ t(Q, {}),
246
+ blocked: we(e, i),
247
+ "data-structure-action": "row",
248
+ onPick: () => o(ve(e, i, je(e)), { toastNotes: !0 }),
249
+ children: "Put side by side under one label"
250
+ }
251
+ ),
252
+ n && /* @__PURE__ */ p(Y, { children: [
253
+ /* @__PURE__ */ t(
254
+ y,
255
+ {
256
+ icon: /* @__PURE__ */ t(Z, {}),
257
+ blocked: Ce(e, n.key),
258
+ "data-structure-action": "join",
259
+ onPick: () => o(be(e, n.key), { toastNotes: !0 }),
260
+ children: (() => {
261
+ const h = Ne(e, n.key);
262
+ return h ? `Join with ${N(h)}` : "Join with the next section";
263
+ })()
264
+ }
265
+ ),
215
266
  /* @__PURE__ */ p(
216
- v,
267
+ y,
217
268
  {
218
- icon: /* @__PURE__ */ t(z, {}),
219
- blocked: ye(e, n.key),
269
+ icon: /* @__PURE__ */ t(ee, {}),
270
+ blocked: _e(e, n.key),
220
271
  "data-structure-action": "unwrap",
221
- onPick: () => o(ke(e, n.key), { toastNotes: !0 }),
272
+ onPick: () => o(Te(e, n.key), { toastNotes: !0 }),
222
273
  children: [
223
274
  "Unwrap: keep its fields, drop the ",
224
275
  T(e, n)
@@ -226,125 +277,125 @@ function Ee({
226
277
  }
227
278
  ),
228
279
  /* @__PURE__ */ t(
229
- v,
280
+ y,
230
281
  {
231
- icon: /* @__PURE__ */ t(Q, {}),
232
- blocked: K(e, n.key).length ? null : "Only sections, tabs, steps and their holders convert",
282
+ icon: /* @__PURE__ */ t(te, {}),
283
+ blocked: M(e, n.key).length ? null : "Only sections, tabs, steps and their holders convert",
233
284
  "data-structure-action": "convert",
234
- onPick: () => i("convert"),
285
+ onPick: () => c("convert"),
235
286
  children: "Convert to…"
236
287
  }
237
288
  ),
238
289
  /* @__PURE__ */ t(
239
- v,
290
+ y,
240
291
  {
241
- icon: /* @__PURE__ */ t(Z, {}),
242
- blocked: j(n).length ? null : "Only sections, tabs and steps have these rules",
292
+ icon: /* @__PURE__ */ t(ne, {}),
293
+ blocked: K(n).length ? null : "Only sections, tabs and steps have these rules",
243
294
  "data-structure-action": "rules",
244
- onPick: () => i("rules"),
295
+ onPick: () => c("rules"),
245
296
  children: "Copy rules to other sections…"
246
297
  }
247
298
  ),
248
299
  /* @__PURE__ */ t(
249
- v,
300
+ y,
250
301
  {
251
- icon: C(n) ? /* @__PURE__ */ t(ee, {}) : /* @__PURE__ */ t(te, {}),
302
+ icon: P(n) ? /* @__PURE__ */ t(re, {}) : /* @__PURE__ */ t(oe, {}),
252
303
  "data-structure-action": "pin",
253
- onPick: () => o(ve(e, n.key, !C(n))),
254
- children: C(n) ? "Unpin" : "Pin in the editor (no dragging)"
304
+ onPick: () => o(De(e, n.key, !P(n))),
305
+ children: P(n) ? "Unpin" : "Pin in the editor (no dragging)"
255
306
  }
256
307
  )
257
308
  ] }),
258
- !n && l.length === 0 && /* @__PURE__ */ t("p", { className: $(P, "px-2 py-1"), children: "Select a section or fields to duplicate, wrap or convert." })
309
+ !n && i.length === 0 && /* @__PURE__ */ t("p", { className: $(S, "px-2 py-1"), children: "Select a section or fields to duplicate, wrap or convert." })
259
310
  ] });
260
311
  }
261
- function S({ title: e, onBack: r }) {
312
+ function E({ title: e, onBack: s }) {
262
313
  return /* @__PURE__ */ p("div", { className: "flex items-center gap-1.5 px-1 pb-1.5", children: [
263
314
  /* @__PURE__ */ t(
264
315
  "button",
265
316
  {
266
317
  type: "button",
267
318
  "aria-label": "Back",
268
- onClick: r,
319
+ onClick: s,
269
320
  className: "inline-flex h-6 w-6 items-center justify-center rounded text-slate-500 hover:bg-muted hover:text-slate-900 dark:text-muted-foreground dark:hover:text-foreground",
270
- children: /* @__PURE__ */ t(ne, { className: "h-3.5 w-3.5" })
321
+ children: /* @__PURE__ */ t(se, { className: "h-3.5 w-3.5" })
271
322
  }
272
323
  ),
273
324
  /* @__PURE__ */ t("p", { className: "min-w-0 flex-1 truncate text-[13px] font-semibold text-slate-900 dark:text-foreground", children: e })
274
325
  ] });
275
326
  }
276
- const W = "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 disabled:pointer-events-none disabled:opacity-40";
277
- function q({ notes: e }) {
278
- return e.length === 0 ? null : /* @__PURE__ */ t("ul", { className: "mt-1 list-disc space-y-0.5 pl-4 text-[12px] leading-snug text-slate-600 dark:text-muted-foreground", children: e.map((r) => /* @__PURE__ */ t("li", { children: r }, r)) });
327
+ const q = "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 disabled:pointer-events-none disabled:opacity-40";
328
+ function W({ notes: e }) {
329
+ return e.length === 0 ? null : /* @__PURE__ */ t("ul", { className: "mt-1 list-disc space-y-0.5 pl-4 text-[12px] leading-snug text-slate-600 dark:text-muted-foreground", children: e.map((s) => /* @__PURE__ */ t("li", { children: s }, s)) });
279
330
  }
280
- function Se({
331
+ function Ve({
281
332
  bundle: e,
282
- groupKey: r,
333
+ groupKey: s,
283
334
  onBack: o,
284
- run: i
335
+ run: c
285
336
  }) {
286
- const s = e.groups.find((l) => l.key === r), n = w(() => K(e, r), [e, r]);
287
- return s ? /* @__PURE__ */ p("div", { "data-structure-convert": "", className: "flex flex-col", children: [
288
- /* @__PURE__ */ t(S, { title: `Convert ${E(s)}`, onBack: o }),
289
- /* @__PURE__ */ t("div", { className: "space-y-1.5", children: n.map((l) => /* @__PURE__ */ p("div", { "data-convert-choice": l.to, className: $(pe, "p-2.5"), children: [
337
+ const r = e.groups.find((i) => i.key === s), n = w(() => M(e, s), [e, s]);
338
+ return r ? /* @__PURE__ */ p("div", { "data-structure-convert": "", className: "flex flex-col", children: [
339
+ /* @__PURE__ */ t(E, { title: `Convert ${N(r)}`, onBack: o }),
340
+ /* @__PURE__ */ t("div", { className: "space-y-1.5", children: n.map((i) => /* @__PURE__ */ p("div", { "data-convert-choice": i.to, className: $(Pe, "p-2.5"), children: [
290
341
  /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
291
- /* @__PURE__ */ t("p", { className: "min-w-0 flex-1 text-[12.5px] font-medium text-slate-900 dark:text-foreground", children: l.title }),
342
+ /* @__PURE__ */ t("p", { className: "min-w-0 flex-1 text-[12.5px] font-medium text-slate-900 dark:text-foreground", children: i.title }),
292
343
  /* @__PURE__ */ t(
293
344
  "button",
294
345
  {
295
346
  type: "button",
296
- disabled: !l.plan.ok,
297
- onClick: () => i(l.plan),
298
- className: W,
347
+ disabled: !i.plan.ok,
348
+ onClick: () => c(i.plan),
349
+ className: q,
299
350
  children: "Convert"
300
351
  }
301
352
  )
302
353
  ] }),
303
- l.plan.ok ? /* @__PURE__ */ t(q, { notes: l.plan.notes }) : /* @__PURE__ */ t("p", { className: "mt-1 text-[12px] leading-snug text-amber-700 dark:text-amber-300", children: l.plan.reason })
304
- ] }, l.to)) })
305
- ] }) : /* @__PURE__ */ t(S, { title: "That section is no longer here", onBack: o });
354
+ i.plan.ok ? /* @__PURE__ */ t(W, { notes: i.plan.notes }) : /* @__PURE__ */ t("p", { className: "mt-1 text-[12px] leading-snug text-amber-700 dark:text-amber-300", children: i.plan.reason })
355
+ ] }, i.to)) })
356
+ ] }) : /* @__PURE__ */ t(E, { title: "That section is no longer here", onBack: o });
306
357
  }
307
- const Ae = (e, r) => {
308
- if (!V(e, r)) return "none: clears it";
358
+ const qe = (e, s) => {
359
+ if (!V(e, s)) return "none: clears it";
309
360
  try {
310
- const o = JSON.parse(String(e[r])).length;
311
- return r === "visible_when" ? `${o} condition${o === 1 ? "" : "s"}` : `${o} role${o === 1 ? "" : "s"}`;
361
+ const o = JSON.parse(String(e[s])).length;
362
+ return s === "visible_when" ? `${o} condition${o === 1 ? "" : "s"}` : `${o} role${o === 1 ? "" : "s"}`;
312
363
  } catch {
313
364
  return "set";
314
365
  }
315
- }, M = "h-4 w-4 rounded border-slate-300 data-[state=checked]:border-nvr-cyan data-[state=checked]:bg-nvr-cyan data-[state=checked]:text-white dark:border-slate-600 [&_svg]:h-3 [&_svg]:w-3";
316
- function Oe({
366
+ }, B = "h-4 w-4 rounded border-slate-300 data-[state=checked]:border-nvr-cyan data-[state=checked]:bg-nvr-cyan data-[state=checked]:text-white dark:border-slate-600 [&_svg]:h-3 [&_svg]:w-3";
367
+ function We({
317
368
  bundle: e,
318
- groupKey: r,
369
+ groupKey: s,
319
370
  onBack: o,
320
- run: i
371
+ run: c
321
372
  }) {
322
- const s = e.groups.find((a) => a.key === r), n = s ? j(s) : [], [l, m] = O(() => {
323
- const a = s ? n.filter((c) => V(s, c)) : [];
373
+ const r = e.groups.find((a) => a.key === s), n = r ? K(r) : [], [i, m] = O(() => {
374
+ const a = r ? n.filter((l) => V(r, l)) : [];
324
375
  return a.length ? a : n;
325
- }), h = w(() => me(e, r), [e, r]), [x, g] = O([]), k = w(
326
- () => fe(e, r, x, l),
327
- [e, r, x, l]
376
+ }), g = w(() => Se(e, s), [e, s]), [k, h] = O([]), x = w(
377
+ () => Ee(e, s, k, i),
378
+ [e, s, k, i]
328
379
  );
329
- if (!s) return /* @__PURE__ */ t(S, { title: "That section is no longer here", onBack: o });
330
- const d = (a, c) => a.includes(c) ? a.filter((f) => f !== c) : [...a, c], u = x.length === h.length && h.length > 0;
380
+ if (!r) return /* @__PURE__ */ t(E, { title: "That section is no longer here", onBack: o });
381
+ const d = (a, l) => a.includes(l) ? a.filter((f) => f !== l) : [...a, l], u = k.length === g.length && g.length > 0;
331
382
  return /* @__PURE__ */ p("div", { "data-structure-rules": "", className: "flex flex-col", children: [
332
- /* @__PURE__ */ t(S, { title: `Copy the rules of ${E(s)}`, onBack: o }),
383
+ /* @__PURE__ */ t(E, { title: `Copy the rules of ${N(r)}`, onBack: o }),
333
384
  /* @__PURE__ */ p("fieldset", { className: "m-0 min-w-0 border-0 p-0 px-1", children: [
334
385
  /* @__PURE__ */ t("legend", { className: "pb-1 text-[12px] font-medium text-slate-700 dark:text-foreground", children: "Rules" }),
335
386
  n.map((a) => (
336
387
  // biome-ignore lint/a11y/noLabelWithoutControl: the Radix checkbox is the control
337
388
  /* @__PURE__ */ p("label", { className: "flex items-center gap-2 py-0.5 text-[12.5px]", children: [
338
389
  /* @__PURE__ */ t(
339
- _,
390
+ L,
340
391
  {
341
- checked: l.includes(a),
342
- onCheckedChange: () => m((c) => d(c, a)),
343
- className: M
392
+ checked: i.includes(a),
393
+ onCheckedChange: () => m((l) => d(l, a)),
394
+ className: B
344
395
  }
345
396
  ),
346
- /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-slate-800 dark:text-foreground", children: he[a] }),
347
- /* @__PURE__ */ t("span", { className: "shrink-0 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: Ae(s, a) })
397
+ /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-slate-800 dark:text-foreground", children: Ae[a] }),
398
+ /* @__PURE__ */ t("span", { className: "shrink-0 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: qe(r, a) })
348
399
  ] }, a)
349
400
  ))
350
401
  ] }),
@@ -355,15 +406,15 @@ function Oe({
355
406
  "button",
356
407
  {
357
408
  type: "button",
358
- onClick: () => g(u ? [] : h.map((a) => a.key)),
409
+ onClick: () => h(u ? [] : g.map((a) => a.key)),
359
410
  className: "text-[12px] font-medium text-sky-700 hover:underline dark:text-nvr-cyan",
360
411
  children: u ? "None" : "All"
361
412
  }
362
413
  )
363
414
  ] }),
364
415
  /* @__PURE__ */ p("div", { className: "max-h-[200px] overflow-y-auto", children: [
365
- h.length === 0 && /* @__PURE__ */ t("p", { className: P, children: "No other sections on this form." }),
366
- h.map((a) => (
416
+ g.length === 0 && /* @__PURE__ */ t("p", { className: S, children: "No other sections on this form." }),
417
+ g.map((a) => (
367
418
  // biome-ignore lint/a11y/noLabelWithoutControl: the Radix checkbox is the control
368
419
  /* @__PURE__ */ p(
369
420
  "label",
@@ -372,14 +423,14 @@ function Oe({
372
423
  className: "flex items-center gap-2 py-0.5 text-[12.5px]",
373
424
  children: [
374
425
  /* @__PURE__ */ t(
375
- _,
426
+ L,
376
427
  {
377
- checked: x.includes(a.key),
378
- onCheckedChange: () => g((c) => d(c, a.key)),
379
- className: M
428
+ checked: k.includes(a.key),
429
+ onCheckedChange: () => h((l) => d(l, a.key)),
430
+ className: B
380
431
  }
381
432
  ),
382
- /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-slate-800 dark:text-foreground", children: E(a) }),
433
+ /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-slate-800 dark:text-foreground", children: N(a) }),
383
434
  /* @__PURE__ */ t("span", { className: "shrink-0 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: T(e, a) })
384
435
  ]
385
436
  },
@@ -389,25 +440,25 @@ function Oe({
389
440
  ] })
390
441
  ] }),
391
442
  /* @__PURE__ */ p("div", { className: "mt-2 border-t border-slate-100 px-1 pt-2 dark:border-border", children: [
392
- k.ok ? /* @__PURE__ */ t(q, { notes: k.notes }) : x.length > 0 && /* @__PURE__ */ t("p", { className: P, children: k.reason }),
443
+ x.ok ? /* @__PURE__ */ t(W, { notes: x.notes }) : k.length > 0 && /* @__PURE__ */ t("p", { className: S, children: x.reason }),
393
444
  /* @__PURE__ */ t("div", { className: "mt-2 flex justify-end", children: /* @__PURE__ */ t(
394
445
  "button",
395
446
  {
396
447
  type: "button",
397
- disabled: !k.ok,
448
+ disabled: !x.ok,
398
449
  "data-rules-apply": "",
399
- onClick: () => i(k),
400
- className: W,
401
- children: k.ok ? `Copy to ${k.ops.length}` : "Copy"
450
+ onClick: () => c(x),
451
+ className: q,
452
+ children: x.ok ? `Copy to ${x.ops.length}` : "Copy"
402
453
  }
403
454
  ) })
404
455
  ] })
405
456
  ] });
406
457
  }
407
458
  export {
408
- Ge as ArrangeButton,
409
- He as StructureActions,
410
- Ie as openStructureMenu,
411
- we as parseTargetKey,
412
- qe as usePinMarks
459
+ dt as ArrangeButton,
460
+ at as StructureActions,
461
+ ut as openStructureMenu,
462
+ Re as parseTargetKey,
463
+ it as usePinMarks
413
464
  };