@nivaro/react 0.2.52 → 0.2.54

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 (191) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +116 -2
  4. package/dist/layout-editor.d.ts +248 -2
  5. package/dist/shared/components/FormWhatsNew.js +60 -0
  6. package/dist/shared/components/ItemEditForm.js +3994 -3876
  7. package/dist/shared/components/RecordReadView.js +219 -211
  8. package/dist/shared/components/TipLayer.js +27 -27
  9. package/dist/shared/components/help-videos/api.js +51 -41
  10. package/dist/shared/components/help-videos/editor/DetailsTab.js +147 -130
  11. package/dist/shared/components/item-edit/FieldAffordances.js +7 -6
  12. package/dist/shared/components/item-edit/FieldRow.js +353 -304
  13. package/dist/shared/components/item-edit/FormHelpVideoButton.js +59 -0
  14. package/dist/shared/components/item-edit/GroupSection.js +419 -396
  15. package/dist/shared/components/item-edit/HeaderTools.js +59 -56
  16. package/dist/shared/components/item-edit/LayoutContentBlock.js +47 -24
  17. package/dist/shared/components/item-edit/lock-why.js +87 -0
  18. package/dist/shared/components/item-edit/useFormUsageBeacon.js +59 -0
  19. package/dist/shared/components/layout-editor/AddPanel.js +204 -146
  20. package/dist/shared/components/layout-editor/ArrangeButton.js +34 -0
  21. package/dist/shared/components/layout-editor/AutoArrange.js +86 -0
  22. package/dist/shared/components/layout-editor/CanvasCompare.js +79 -0
  23. package/dist/shared/components/layout-editor/ChangeNote.js +146 -0
  24. package/dist/shared/components/layout-editor/CollabParts.js +170 -0
  25. package/dist/shared/components/layout-editor/DesignNode.js +304 -115
  26. package/dist/shared/components/layout-editor/EditorCanvas.js +21 -20
  27. package/dist/shared/components/layout-editor/EditorTopBar.js +452 -175
  28. package/dist/shared/components/layout-editor/FindReplace.js +188 -0
  29. package/dist/shared/components/layout-editor/FormMapButton.js +141 -0
  30. package/dist/shared/components/layout-editor/HistoryPanel.js +234 -109
  31. package/dist/shared/components/layout-editor/LayoutEditor.js +1101 -307
  32. package/dist/shared/components/layout-editor/LayoutsRail.js +94 -67
  33. package/dist/shared/components/layout-editor/NoteMarker.js +38 -0
  34. package/dist/shared/components/layout-editor/PlacementsTable.js +187 -0
  35. package/dist/shared/components/layout-editor/ScheduleChange.js +106 -0
  36. package/dist/shared/components/layout-editor/SessionHistory.js +84 -0
  37. package/dist/shared/components/layout-editor/StructureMenu.js +413 -0
  38. package/dist/shared/components/layout-editor/UnsavedConfirm.js +103 -0
  39. package/dist/shared/components/layout-editor/ai/AiToolsButton.js +625 -0
  40. package/dist/shared/components/layout-editor/ai/ChangeCheck.js +153 -0
  41. package/dist/shared/components/layout-editor/ai/ai-tools-api.js +80 -0
  42. package/dist/shared/components/layout-editor/ai/assist-ops.js +38 -0
  43. package/dist/shared/components/layout-editor/ai/autofill-ops.js +73 -0
  44. package/dist/shared/components/layout-editor/ai/canvas-capture.js +41 -0
  45. package/dist/shared/components/layout-editor/ai-forms/AiComposer.js +271 -0
  46. package/dist/shared/components/layout-editor/ai-forms/AiFormsButton.js +182 -0
  47. package/dist/shared/components/layout-editor/ai-forms/MeaningSuggestions.js +109 -0
  48. package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +170 -0
  49. package/dist/shared/components/layout-editor/ai-forms/ai-forms-api.js +40 -0
  50. package/dist/shared/components/layout-editor/ai-forms/pending.js +25 -0
  51. package/dist/shared/components/layout-editor/ai-forms/plan.js +263 -0
  52. package/dist/shared/components/layout-editor/ai-rules/AiAskPopover.js +160 -0
  53. package/dist/shared/components/layout-editor/ai-rules/CascadeWriter.js +175 -0
  54. package/dist/shared/components/layout-editor/ai-rules/FieldRuleWriter.js +97 -0
  55. package/dist/shared/components/layout-editor/ai-rules/RuleWriter.js +94 -0
  56. package/dist/shared/components/layout-editor/ai-rules/ValidationSuggest.js +153 -0
  57. package/dist/shared/components/layout-editor/ai-rules/api.js +6 -0
  58. package/dist/shared/components/layout-editor/ai-text/AiTextTools.js +383 -0
  59. package/dist/shared/components/layout-editor/ai-text/text-ops.js +125 -0
  60. package/dist/shared/components/layout-editor/assist/AskPanel.js +278 -0
  61. package/dist/shared/components/layout-editor/assist/ExplainDiff.js +93 -0
  62. package/dist/shared/components/layout-editor/assist/ProposalsButton.js +150 -0
  63. package/dist/shared/components/layout-editor/assist/assist-api.js +63 -0
  64. package/dist/shared/components/layout-editor/assist/jump.js +142 -0
  65. package/dist/shared/components/layout-editor/assist/settings-index.js +118 -0
  66. package/dist/shared/components/layout-editor/auto-arrange.js +101 -0
  67. package/dist/shared/components/layout-editor/bulk/BulkChangesButton.js +221 -0
  68. package/dist/shared/components/layout-editor/bulk/BulkRun.js +237 -0
  69. package/dist/shared/components/layout-editor/bulk/MacrosPanel.js +230 -0
  70. package/dist/shared/components/layout-editor/bulk/bulk-api.js +65 -0
  71. package/dist/shared/components/layout-editor/bulk/field-labels.js +22 -0
  72. package/dist/shared/components/layout-editor/bulk/macro-record.js +142 -0
  73. package/dist/shared/components/layout-editor/bulk/useMacroRecorder.js +65 -0
  74. package/dist/shared/components/layout-editor/bundle-to-active.js +1 -0
  75. package/dist/shared/components/layout-editor/canvas-diff.js +157 -0
  76. package/dist/shared/components/layout-editor/collab/FormFollowShare.js +342 -0
  77. package/dist/shared/components/layout-editor/collab/collab-api.js +77 -0
  78. package/dist/shared/components/layout-editor/commands/CommandPalette.js +221 -0
  79. package/dist/shared/components/layout-editor/commands/intents.js +214 -0
  80. package/dist/shared/components/layout-editor/commands/parse.js +242 -0
  81. package/dist/shared/components/layout-editor/design-context.js +26 -6
  82. package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +179 -163
  83. package/dist/shared/components/layout-editor/dnd/collision.js +25 -23
  84. package/dist/shared/components/layout-editor/dnd/rail-drop.js +56 -0
  85. package/dist/shared/components/layout-editor/draft-recovery.js +61 -0
  86. package/dist/shared/components/layout-editor/editor-notes.js +78 -0
  87. package/dist/shared/components/layout-editor/editors/swap-config.js +1 -0
  88. package/dist/shared/components/layout-editor/explain/CanvasRules.js +142 -0
  89. package/dist/shared/components/layout-editor/explain/default-ghosts.js +81 -0
  90. package/dist/shared/components/layout-editor/explain/driver-hover.js +62 -0
  91. package/dist/shared/components/layout-editor/explain/field-sources.js +246 -0
  92. package/dist/shared/components/layout-editor/explain/rule-graph.js +215 -0
  93. package/dist/shared/components/layout-editor/explain/use-explain.js +132 -0
  94. package/dist/shared/components/layout-editor/field-zones.js +116 -0
  95. package/dist/shared/components/layout-editor/form-map.js +138 -0
  96. package/dist/shared/components/layout-editor/history-api.js +87 -0
  97. package/dist/shared/components/layout-editor/inheritance.js +55 -0
  98. package/dist/shared/components/layout-editor/inspect/inspect-api.js +66 -0
  99. package/dist/shared/components/layout-editor/inspect/picker-preview.js +48 -0
  100. package/dist/shared/components/layout-editor/inspect/width-fit.js +87 -0
  101. package/dist/shared/components/layout-editor/inspector/AiFillSetting.js +85 -0
  102. package/dist/shared/components/layout-editor/inspector/Breadcrumb.js +36 -0
  103. package/dist/shared/components/layout-editor/inspector/BulkInspector.js +175 -0
  104. package/dist/shared/components/layout-editor/inspector/ColumnFit.js +112 -0
  105. package/dist/shared/components/layout-editor/inspector/GroupInspector.js +146 -92
  106. package/dist/shared/components/layout-editor/inspector/HelpTab.js +174 -0
  107. package/dist/shared/components/layout-editor/inspector/Inspector.js +256 -175
  108. package/dist/shared/components/layout-editor/inspector/LookTab.js +46 -40
  109. package/dist/shared/components/layout-editor/inspector/OverrideNotice.js +61 -0
  110. package/dist/shared/components/layout-editor/inspector/PickerPreview.js +134 -0
  111. package/dist/shared/components/layout-editor/inspector/PickerTab.js +167 -141
  112. package/dist/shared/components/layout-editor/inspector/RulesTab.js +175 -128
  113. package/dist/shared/components/layout-editor/inspector/Translations.js +156 -0
  114. package/dist/shared/components/layout-editor/inspector/kit.js +3 -3
  115. package/dist/shared/components/layout-editor/inspector/tab-request.js +21 -0
  116. package/dist/shared/components/layout-editor/is-typing.js +9 -0
  117. package/dist/shared/components/layout-editor/keyboard-move.js +66 -0
  118. package/dist/shared/components/layout-editor/lint/LintPanel.js +190 -0
  119. package/dist/shared/components/layout-editor/lint/lint-api.js +52 -0
  120. package/dist/shared/components/layout-editor/load-error.js +37 -0
  121. package/dist/shared/components/layout-editor/matrix/FieldStateMatrix.js +305 -0
  122. package/dist/shared/components/layout-editor/matrix/MatrixGrid.js +181 -0
  123. package/dist/shared/components/layout-editor/matrix/RoleSectionMatrix.js +147 -0
  124. package/dist/shared/components/layout-editor/matrix/matrix-api.js +48 -0
  125. package/dist/shared/components/layout-editor/matrix/role-matrix.js +36 -0
  126. package/dist/shared/components/layout-editor/matrix/state-matrix.js +145 -0
  127. package/dist/shared/components/layout-editor/nav/FindPanel.js +109 -0
  128. package/dist/shared/components/layout-editor/nav/NavTools.js +114 -0
  129. package/dist/shared/components/layout-editor/nav/OutlinePanel.js +228 -0
  130. package/dist/shared/components/layout-editor/nav/ShortcutSheet.js +31 -0
  131. package/dist/shared/components/layout-editor/nav/find.js +20 -0
  132. package/dist/shared/components/layout-editor/nav/tree.js +142 -0
  133. package/dist/shared/components/layout-editor/nav/useEditorNav.js +101 -0
  134. package/dist/shared/components/layout-editor/nav/view-prefs.js +34 -0
  135. package/dist/shared/components/layout-editor/ops/ChangeRequestsPanel.js +143 -0
  136. package/dist/shared/components/layout-editor/ops/DependencyDiagram.js +179 -0
  137. package/dist/shared/components/layout-editor/ops/LayoutOpsBlocks.js +92 -0
  138. package/dist/shared/components/layout-editor/ops/PromotePanel.js +287 -0
  139. package/dist/shared/components/layout-editor/ops/ops-api.js +122 -0
  140. package/dist/shared/components/layout-editor/overview/OverviewActions.js +15 -3
  141. package/dist/shared/components/layout-editor/overview/describe-conditions.js +18 -14
  142. package/dist/shared/components/layout-editor/overview/overview-api.js +105 -88
  143. package/dist/shared/components/layout-editor/panel-style.js +8 -7
  144. package/dist/shared/components/layout-editor/parity-keys.json.js +4 -0
  145. package/dist/shared/components/layout-editor/pin.js +25 -0
  146. package/dist/shared/components/layout-editor/presence.js +111 -0
  147. package/dist/shared/components/layout-editor/preview/PreviewModes.js +224 -0
  148. package/dist/shared/components/layout-editor/preview/PreviewPanes.js +262 -0
  149. package/dist/shared/components/layout-editor/preview/preview-api.js +57 -0
  150. package/dist/shared/components/layout-editor/preview/preview-model.js +157 -0
  151. package/dist/shared/components/layout-editor/reuse/FieldMapStep.js +70 -0
  152. package/dist/shared/components/layout-editor/reuse/FormMoreMenu.js +127 -0
  153. package/dist/shared/components/layout-editor/reuse/LibraryRows.js +150 -0
  154. package/dist/shared/components/layout-editor/reuse/NewFormStart.js +20 -0
  155. package/dist/shared/components/layout-editor/reuse/SectionReuseActions.js +291 -0
  156. package/dist/shared/components/layout-editor/reuse/field-match.js +77 -0
  157. package/dist/shared/components/layout-editor/reuse/reuse-api.js +73 -0
  158. package/dist/shared/components/layout-editor/reuse/seed.js +13 -0
  159. package/dist/shared/components/layout-editor/reuse/useFormFromRecord.js +43 -0
  160. package/dist/shared/components/layout-editor/reuse/useRailCopy.js +34 -0
  161. package/dist/shared/components/layout-editor/settings/FormSettings.js +123 -103
  162. package/dist/shared/components/layout-editor/settings/InheritanceSection.js +1 -1
  163. package/dist/shared/components/layout-editor/settings/ToolsSection.js +174 -100
  164. package/dist/shared/components/layout-editor/settings/WhoSection.js +136 -100
  165. package/dist/shared/components/layout-editor/settings/controls.js +8 -8
  166. package/dist/shared/components/layout-editor/settings/settings-registry.js +35 -11
  167. package/dist/shared/components/layout-editor/shortcuts.js +88 -0
  168. package/dist/shared/components/layout-editor/show-when.js +35 -0
  169. package/dist/shared/components/layout-editor/slot-names.js +4 -3
  170. package/dist/shared/components/layout-editor/structure-ops.js +399 -0
  171. package/dist/shared/components/layout-editor/testing/CostLimitSetting.js +42 -0
  172. package/dist/shared/components/layout-editor/testing/TestingPanels.js +551 -0
  173. package/dist/shared/components/layout-editor/testing/testing-api.js +67 -0
  174. package/dist/shared/components/layout-editor/testing/testing-model.js +393 -0
  175. package/dist/shared/components/layout-editor/testing/use-record-check.js +44 -0
  176. package/dist/shared/components/layout-editor/toolbar-kit.js +242 -0
  177. package/dist/shared/components/layout-editor/unsaved-marks.js +72 -0
  178. package/dist/shared/components/layout-editor/usage/FillChip.js +27 -0
  179. package/dist/shared/components/layout-editor/usage/UsagePanel.js +158 -0
  180. package/dist/shared/components/layout-editor/usage/suggest-sections.js +55 -0
  181. package/dist/shared/components/layout-editor/usage/usage-api.js +104 -0
  182. package/dist/shared/components/layout-editor/useLayoutDraft.js +573 -307
  183. package/dist/shared/components/support/SuggestFormChange.js +143 -0
  184. package/dist/shared/lib/ai-fill.js +37 -0
  185. package/dist/shared/lib/form-usage-beacon.js +84 -0
  186. package/dist/shared/lib/layout-i18n.js +66 -0
  187. package/dist/shared/lib/layout-lint.js +490 -0
  188. package/dist/shared/lib/layout-ops.js +110 -106
  189. package/dist/shared/lib/screenshot.js +54 -28
  190. package/dist/shared/lib/visible-when.js +34 -0
  191. package/package.json +1 -1
@@ -1,29 +1,36 @@
1
- import { jsx as t, jsxs as d, Fragment as y } from "react/jsx-runtime";
2
- import { MousePointerClick as V } from "lucide-react";
3
- import { useMemo as J, useState as X, useId as q } from "react";
4
- import { HEADER_GROUP_KEY as F, CANVAS_SLOT_KEYS as Q, UNGROUPED_KEY as Z } from "../../../lib/layout-ops.js";
5
- import { cn as ee, titleCase as _ } from "../../../lib/utils.js";
6
- import { TipLayer as te } from "../../TipLayer.js";
7
- import { useLayoutDesign as ne, targetKey as le } from "../design-context.js";
8
- import { PanelHeader as P, PanelBody as T, PanelTabs as re, tabId as ie, tabPanelId as oe } from "../panel-frame.js";
9
- import { tintCard as de } from "../panel-style.js";
10
- import { slotName as $ } from "../slot-names.js";
11
- import { useLayoutBundle as ae } from "../useLayoutDraft.js";
12
- import { AdvancedTab as se } from "./AdvancedTab.js";
13
- import { useCollectionMeta as j, useGlobalWriter as ce, useFieldCtxValue as ue, FieldCtxContext as fe } from "./field-context.js";
14
- import { GridTab as me } from "./GridTab.js";
15
- import { GroupInspector as pe } from "./GroupInspector.js";
16
- import { HeaderItemInspector as be } from "./HeaderItemInspector.js";
17
- import { InspectorEnvContext as W, useInspectorEnv as K, ScopeLegend as G, GlobalWriterContext as he } from "./kit.js";
18
- import { LookTab as ye } from "./LookTab.js";
19
- import { isDefaultForm as ke, layoutTypeOf as _e, findPlacement as D, SUBTITLE_FIELD as O, overrideGroupOps as xe, overridePlacementOps as ge, describeField as U, asObject as H, NUMERIC_TYPES as ve } from "./model.js";
20
- import { PickerTab as Ne } from "./PickerTab.js";
21
- import { RulesTab as Pe } from "./RulesTab.js";
22
- import { SlotInspector as Te } from "./SlotInspector.js";
23
- import { SubtitleInspector as Ie } from "./SubtitleInspector.js";
24
- import { WidgetInspector as Ee } from "./WidgetInspector.js";
25
- const Se = /^__widget_\d+__$/, Le = /^__ext_[a-z][a-z0-9-]{1,60}__$/, Y = (e) => Q.includes(e) || e === "__owners__" || e === "__pdf__" || Le.test(e);
26
- function z(e) {
1
+ import { jsx as t, jsxs as o, Fragment as k } from "react/jsx-runtime";
2
+ import { MousePointerClick as X } from "lucide-react";
3
+ import { useMemo as Q, useState as Z, useId as ee } from "react";
4
+ import { HEADER_GROUP_KEY as G, CANVAS_SLOT_KEYS as te, UNGROUPED_KEY as le } from "../../../lib/layout-ops.js";
5
+ import { cn as ne, titleCase as h } from "../../../lib/utils.js";
6
+ import { TipLayer as ie } from "../../TipLayer.js";
7
+ import { ArrangeButton as re } from "../ArrangeButton.js";
8
+ import { AutoArrangeButton as oe } from "../AutoArrange.js";
9
+ import { useLayoutDesign as ae, targetKey as de } from "../design-context.js";
10
+ import { FIELD_HOLDERS as ce } from "../field-zones.js";
11
+ import { PanelHeader as I, PanelBody as P, PanelTabs as se, tabId as ue, tabPanelId as fe } from "../panel-frame.js";
12
+ import { tintCard as me } from "../panel-style.js";
13
+ import { slotName as U } from "../slot-names.js";
14
+ import { useLayoutBundle as pe } from "../useLayoutDraft.js";
15
+ import { AdvancedTab as be } from "./AdvancedTab.js";
16
+ import { Breadcrumb as M } from "./Breadcrumb.js";
17
+ import { useCollectionMeta as Y, useGlobalWriter as he, useFieldCtxValue as ye, FieldCtxContext as ke } from "./field-context.js";
18
+ import { GridTab as xe } from "./GridTab.js";
19
+ import { GroupInspector as _e } from "./GroupInspector.js";
20
+ import { HeaderItemInspector as ve } from "./HeaderItemInspector.js";
21
+ import { HelpVideoSetting as z, NoteSetting as $ } from "./HelpTab.js";
22
+ import { InspectorEnvContext as B, useInspectorEnv as F, ScopeLegend as R, GlobalWriterContext as ge } from "./kit.js";
23
+ import { LookTab as Ne } from "./LookTab.js";
24
+ import { isDefaultForm as Te, layoutTypeOf as Se, findPlacement as D, SUBTITLE_FIELD as H, overrideGroupOps as Ie, overridePlacementOps as Pe, describeField as V, asObject as W, NUMERIC_TYPES as Ee } from "./model.js";
25
+ import { OverrideNotice as Le } from "./OverrideNotice.js";
26
+ import { PickerTab as Ce } from "./PickerTab.js";
27
+ import { RulesTab as Ke } from "./RulesTab.js";
28
+ import { SlotInspector as Me } from "./SlotInspector.js";
29
+ import { SubtitleInspector as Fe } from "./SubtitleInspector.js";
30
+ import { useInspectorTabRequest as Oe } from "./tab-request.js";
31
+ import { WidgetInspector as Ge } from "./WidgetInspector.js";
32
+ const Re = /^__widget_\d+__$/, He = /^__ext_[a-z][a-z0-9-]{1,60}__$/, q = (e) => te.includes(e) || e === "__owners__" || e === "__pdf__" || He.test(e);
33
+ function J(e) {
27
34
  switch (e.kind) {
28
35
  case "field":
29
36
  case "slot":
@@ -31,102 +38,120 @@ function z(e) {
31
38
  case "header":
32
39
  return {
33
40
  field: e.field,
34
- group_key: e.field === O ? null : F
41
+ group_key: e.field === H ? null : G
35
42
  };
36
43
  default:
37
44
  return null;
38
45
  }
39
46
  }
40
- function ot(e) {
41
- const { bundle: n, target: l, apply: o, collection: i } = e, a = ne(), c = J(
47
+ function vt(e) {
48
+ const { bundle: l, target: n, apply: i, collection: c } = e, a = ae(), f = Q(
42
49
  () => ({
43
- bundle: n,
44
- apply: o,
50
+ bundle: l,
51
+ apply: i,
45
52
  flush: e.flush ?? (() => {
46
53
  }),
47
- collection: i,
48
- layoutType: _e(n.layout),
49
- defaultForm: ke(n.layout)
54
+ collection: c,
55
+ layoutType: Se(l.layout),
56
+ defaultForm: Te(l.layout),
57
+ select: e.onSelect
50
58
  }),
51
- [n, o, e.flush, i]
52
- ), r = l ? z(l) : null, p = r ? D(n, r.field, r.group_key) : null, x = (l == null ? void 0 : l.kind) === "group" ? n.groups.find((m) => m.key === l.key) ?? null : null, k = !!l && (l.kind === "group" ? !x : !p && !Y((r == null ? void 0 : r.field) ?? "") && (r == null ? void 0 : r.field) !== O), v = n.layout.parent_layout_id != null ? Number(n.layout.parent_layout_id) : null, N = e.inheritedFrom ?? (l ? (a == null ? void 0 : a.inheritedFrom(l)) ?? null : null), { data: s } = ae(v, k), b = k && s && r ? D(s, r.field, r.group_key) : null, u = k && s && (l == null ? void 0 : l.kind) === "group" ? s.groups.find((m) => m.key === l.key) ?? null : null, f = k && (!!b || !!u || !!N);
53
- if (!l)
54
- return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ d("div", { className: "flex flex-1 flex-col items-center justify-center gap-2 px-8 pb-16 text-center", children: [
55
- /* @__PURE__ */ t(V, { className: "h-5 w-5 text-slate-400" }),
59
+ [l, i, e.flush, c, e.onSelect]
60
+ ), d = n ? J(n) : null, r = d ? D(l, d.field, d.group_key) : null, x = (n == null ? void 0 : n.kind) === "group" ? l.groups.find((b) => b.key === n.key) ?? null : null, _ = !!n && (n.kind === "group" ? !x : !r && !q((d == null ? void 0 : d.field) ?? "") && (d == null ? void 0 : d.field) !== H), g = l.layout.parent_layout_id != null ? Number(l.layout.parent_layout_id) : null, E = e.inheritedFrom ?? (n ? (a == null ? void 0 : a.inheritedFrom(n)) ?? null : null), { data: s } = pe(g), m = _ && s && d ? D(s, d.field, d.group_key) : null, p = _ && s && (n == null ? void 0 : n.kind) === "group" ? s.groups.find((b) => b.key === n.key) ?? null : null, N = _ && (!!m || !!p || !!E);
61
+ if (!n)
62
+ return /* @__PURE__ */ t(O, { children: /* @__PURE__ */ o("div", { className: "flex flex-1 flex-col items-center justify-center gap-2 px-8 pb-16 text-center", children: [
63
+ /* @__PURE__ */ t(X, { className: "h-5 w-5 text-slate-400" }),
56
64
  /* @__PURE__ */ t("p", { className: "text-[13px] text-slate-500 dark:text-muted-foreground", children: "Select a field, section or panel on the form to change it." })
57
65
  ] }) });
58
- if (f) {
59
- const m = s != null && s.layout.name ? String(s.layout.name) : N ?? "the parent form", I = { ...c, bundle: s ?? n, apply: () => {
60
- } }, E = () => {
66
+ if (N) {
67
+ const b = s != null && s.layout.name ? String(s.layout.name) : E ?? "the parent form", L = { ...f, bundle: s ?? l, apply: () => {
68
+ } }, C = () => {
61
69
  if (!s) return;
62
- const h = u ? xe(n, s, u) : b ? ge(n, s, b) : [];
63
- h.length && o(h, { label: `Override ${S(l)} on this form` });
64
- }, g = /* @__PURE__ */ d("div", { "data-setting": "inspector.inherited_override", className: ee(de, "space-y-2.5 p-3"), children: [
65
- /* @__PURE__ */ d("p", { className: "text-[12px] leading-snug text-slate-700 dark:text-foreground", children: [
70
+ const y = p ? Ie(l, s, p) : m ? Pe(l, s, m) : [];
71
+ y.length && i(y, { label: `Override ${S(n)} on this form` });
72
+ }, v = /* @__PURE__ */ o("div", { "data-setting": "inspector.inherited_override", className: ne(me, "space-y-2.5 p-3"), children: [
73
+ /* @__PURE__ */ o("p", { className: "text-[12px] leading-snug text-slate-700 dark:text-foreground", children: [
66
74
  "This comes from ",
67
- /* @__PURE__ */ t("span", { className: "font-medium", children: m }),
75
+ /* @__PURE__ */ t("span", { className: "font-medium", children: b }),
68
76
  ". Change it there for every form built on it, or override it on this form only."
69
77
  ] }),
70
- /* @__PURE__ */ d("div", { className: "flex flex-wrap gap-2", children: [
78
+ /* @__PURE__ */ o("div", { className: "flex flex-wrap gap-2", children: [
71
79
  /* @__PURE__ */ t(
72
80
  "button",
73
81
  {
74
82
  type: "button",
75
83
  "data-override-here": "",
76
- disabled: !s || !b && !u,
77
- onClick: E,
84
+ disabled: !s || !m && !p,
85
+ onClick: C,
78
86
  className: "h-7 rounded-md bg-nvr-cyan px-2.5 text-[12px] font-medium text-white transition-colors hover:bg-[#00b8e0] disabled:opacity-40",
79
87
  children: "Override here"
80
88
  }
81
89
  ),
82
- v != null && e.openLayout && /* @__PURE__ */ d(
90
+ g != null && e.openLayout && /* @__PURE__ */ o(
83
91
  "button",
84
92
  {
85
93
  type: "button",
86
94
  "data-edit-in-parent": "",
87
95
  onClick: () => {
88
- var h;
89
- return (h = e.openLayout) == null ? void 0 : h.call(e, v);
96
+ var y;
97
+ return (y = e.openLayout) == null ? void 0 : y.call(e, g);
90
98
  },
91
99
  className: "h-7 rounded-md border border-slate-200 bg-white px-2.5 text-[12px] font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-border dark:bg-background dark:text-foreground dark:hover:bg-muted",
92
100
  children: [
93
101
  "Edit in ",
94
- m
102
+ b
95
103
  ]
96
104
  }
97
105
  )
98
106
  ] })
99
107
  ] });
100
- return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(W.Provider, { value: I, children: u ? /* @__PURE__ */ t(A, { group: u, notice: g, readOnly: !0 }) : b ? /* @__PURE__ */ t(B, { target: l, row: b, notice: g, readOnly: !0 }) : /* @__PURE__ */ d(y, { children: [
101
- /* @__PURE__ */ t(P, { title: S(l) }),
102
- /* @__PURE__ */ t(T, { children: g })
108
+ return /* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(B.Provider, { value: L, children: p ? /* @__PURE__ */ t(w, { group: p, notice: v, readOnly: !0 }) : m ? /* @__PURE__ */ t(j, { target: n, row: m, notice: v, readOnly: !0 }) : /* @__PURE__ */ o(k, { children: [
109
+ /* @__PURE__ */ t(I, { title: S(n) }),
110
+ /* @__PURE__ */ t(P, { children: v })
103
111
  ] }) }) });
104
112
  }
105
- return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(W.Provider, { value: c, children: l.kind === "group" ? x && /* @__PURE__ */ t(A, { group: x }, x.key) : k ? /* @__PURE__ */ d(y, { children: [
106
- /* @__PURE__ */ t(P, { title: S(l) }),
107
- /* @__PURE__ */ t(T, { children: /* @__PURE__ */ d("p", { className: "text-[13px] text-slate-500 dark:text-muted-foreground", children: [
108
- S(l),
113
+ const u = _ ? null : /* @__PURE__ */ t(
114
+ Le,
115
+ {
116
+ bundle: l,
117
+ parent: s,
118
+ target: n,
119
+ title: S(n),
120
+ apply: i
121
+ }
122
+ );
123
+ return /* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(B.Provider, { value: f, children: n.kind === "group" ? x && /* @__PURE__ */ t(w, { group: x, notice: u }, x.key) : _ ? /* @__PURE__ */ o(k, { children: [
124
+ /* @__PURE__ */ t(I, { title: S(n) }),
125
+ /* @__PURE__ */ t(P, { children: /* @__PURE__ */ o("p", { className: "text-[13px] text-slate-500 dark:text-muted-foreground", children: [
126
+ S(n),
109
127
  " is not on this form any more."
110
128
  ] }) })
111
- ] }) : /* @__PURE__ */ t(B, { target: l, row: p }, le(l)) }) });
129
+ ] }) : /* @__PURE__ */ t(
130
+ j,
131
+ {
132
+ target: n,
133
+ row: r,
134
+ notice: u
135
+ },
136
+ de(n)
137
+ ) }) });
112
138
  }
113
139
  function S(e) {
114
- return e.kind === "group" ? _(e.key) : e.field.startsWith("__") ? $(e.field) : _(e.field.split(".").pop() ?? e.field);
140
+ return e.kind === "group" ? h(e.key) : e.field.startsWith("__") ? U(e.field) : h(e.field.split(".").pop() ?? e.field);
115
141
  }
116
- function w({ children: e }) {
117
- return /* @__PURE__ */ d("div", { "data-inspector": "", className: "flex h-full min-h-0 min-w-0 flex-col text-[12px]", children: [
118
- /* @__PURE__ */ t(te, {}),
142
+ function O({ children: e }) {
143
+ return /* @__PURE__ */ o("div", { "data-inspector": "", className: "flex h-full min-h-0 min-w-0 flex-col text-[12px]", children: [
144
+ /* @__PURE__ */ t(ie, {}),
119
145
  e
120
146
  ] });
121
147
  }
122
- function Ce(e, n) {
123
- if (!n || n === Z) return null;
124
- if (n === F) return "Header strip";
125
- const l = e.groups.find((o) => o.key === n);
126
- return l ? l.label || _(l.key) : _(n);
148
+ function Ae(e, l) {
149
+ if (!l || l === le) return null;
150
+ if (l === G) return "Header strip";
151
+ const n = e.groups.find((i) => i.key === l);
152
+ return n ? n.label || h(n.key) : h(l);
127
153
  }
128
- const C = (e, n) => n ? `${e} · ${n}` : e;
129
- function Ke(e) {
154
+ function Be(e) {
130
155
  if (e.isPath) return "shows a linked value";
131
156
  if (e.computedType) return "calculated";
132
157
  if (e.relKind === "M2O") return "picks one record";
@@ -134,7 +159,7 @@ function Ke(e) {
134
159
  if (e.relKind === "O2M")
135
160
  return e.iface === "inline-table" ? "table of related rows" : "related rows";
136
161
  if (e.relKind) return "related records";
137
- if (ve.has(e.type)) return "number";
162
+ if (Ee.has(e.type)) return "number";
138
163
  switch (e.type) {
139
164
  case "boolean":
140
165
  return "yes or no";
@@ -157,176 +182,232 @@ function Ke(e) {
157
182
  return e.type;
158
183
  }
159
184
  }
160
- function R({ words: e, k: n, setting: l }) {
161
- return /* @__PURE__ */ d("span", { "data-setting": l, children: [
162
- e && /* @__PURE__ */ d(y, { children: [
185
+ function A({ words: e, k: l, setting: n }) {
186
+ return /* @__PURE__ */ o("span", { "data-setting": n, children: [
187
+ e && /* @__PURE__ */ o(k, { children: [
163
188
  e,
164
189
  " · "
165
190
  ] }),
166
- /* @__PURE__ */ t("span", { className: "font-mono text-[11px]", children: n })
191
+ /* @__PURE__ */ t("span", { className: "font-mono text-[11px]", children: l })
167
192
  ] });
168
193
  }
169
- function Me(e, n) {
170
- const l = n.parent_key ? e.groups.find((i) => i.key === n.parent_key) ?? null : null, o = n.type === "tab" ? (l == null ? void 0 : l.tab_mode) === "steps" ? "Step" : "Tab" : n.type === "container" ? n.tab_mode === "steps" ? "Steps holder" : "Tabs holder" : n.type === "content" ? "Text block" : n.type === "metadata" ? "Record info" : "Section";
171
- return C(o, l ? l.label || _(l.key) : null);
194
+ function De(e, l) {
195
+ const n = l.parent_key ? e.groups.find((i) => i.key === l.parent_key) ?? null : null;
196
+ return l.type === "tab" ? (n == null ? void 0 : n.tab_mode) === "steps" ? "Step" : "Tab" : l.type === "container" ? l.tab_mode === "steps" ? "Steps holder" : "Tabs holder" : l.type === "content" ? "Text block" : l.type === "metadata" ? "Record info" : "Section";
172
197
  }
173
- function A({
198
+ function w({
174
199
  group: e,
175
- notice: n,
176
- readOnly: l = !1
200
+ notice: l,
201
+ readOnly: n = !1
177
202
  }) {
178
- const o = K(), i = /* @__PURE__ */ t(pe, { group: e, readOnly: l });
179
- return /* @__PURE__ */ d(y, { children: [
203
+ const i = F(), c = /* @__PURE__ */ t(_e, { group: e, readOnly: n });
204
+ return /* @__PURE__ */ o(k, { children: [
180
205
  /* @__PURE__ */ t(
181
- P,
206
+ I,
182
207
  {
183
- eyebrow: Me(o.bundle, e),
184
- title: e.label || _(e.key),
185
- sub: /* @__PURE__ */ t(R, { k: e.key, setting: "group.key" })
208
+ eyebrow: /* @__PURE__ */ t(
209
+ M,
210
+ {
211
+ kind: De(i.bundle, e),
212
+ target: { kind: "group", key: e.key }
213
+ }
214
+ ),
215
+ title: e.label || h(e.key),
216
+ sub: /* @__PURE__ */ t(A, { k: e.key, setting: "group.key" })
186
217
  }
187
218
  ),
188
- /* @__PURE__ */ d(T, { children: [
189
- n,
190
- l ? (
219
+ /* @__PURE__ */ o(P, { children: [
220
+ l,
221
+ n ? (
191
222
  // Inputs sit in a disabled fieldset and writes go nowhere.
192
- /* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children: i })
193
- ) : /* @__PURE__ */ d(y, { children: [
194
- /* @__PURE__ */ t(G, {}),
195
- i
223
+ /* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children: c })
224
+ ) : /* @__PURE__ */ o(k, { children: [
225
+ /* @__PURE__ */ t(R, {}),
226
+ /* @__PURE__ */ o("div", { className: "flex flex-wrap gap-2", children: [
227
+ /* @__PURE__ */ t(re, { targets: [{ kind: "group", key: e.key }] }),
228
+ ce.has(e.type) && i.layoutType !== "table" && i.layoutType !== "file" && /* @__PURE__ */ t(
229
+ oe,
230
+ {
231
+ bundle: i.bundle,
232
+ apply: i.apply,
233
+ zone: e.key,
234
+ zoneLabel: e.label || h(e.key)
235
+ }
236
+ )
237
+ ] }),
238
+ c,
239
+ /* @__PURE__ */ o(
240
+ "div",
241
+ {
242
+ "data-group-help": "",
243
+ className: "mt-5 space-y-5 border-t border-slate-100 pt-5 dark:border-border/60",
244
+ children: [
245
+ /* @__PURE__ */ t(
246
+ z,
247
+ {
248
+ kind: "section",
249
+ name: e.key,
250
+ label: e.label || h(e.key)
251
+ }
252
+ ),
253
+ /* @__PURE__ */ t(
254
+ $,
255
+ {
256
+ target: { kind: "group", key: e.key },
257
+ name: e.label || h(e.key)
258
+ }
259
+ )
260
+ ]
261
+ }
262
+ )
196
263
  ] })
197
264
  ] })
198
265
  ] });
199
266
  }
200
- function L({
267
+ function K({
201
268
  eyebrow: e,
202
- title: n,
203
- sub: l,
204
- notice: o,
205
- readOnly: i,
269
+ title: l,
270
+ sub: n,
271
+ notice: i,
272
+ readOnly: c,
206
273
  children: a
207
274
  }) {
208
- return /* @__PURE__ */ d(y, { children: [
209
- /* @__PURE__ */ t(P, { eyebrow: e, title: n, sub: l }),
210
- /* @__PURE__ */ d(T, { children: [
211
- o,
212
- i ? /* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children: /* @__PURE__ */ t("fieldset", { disabled: !0, className: "min-w-0", children: a }) }) : /* @__PURE__ */ d(y, { children: [
213
- /* @__PURE__ */ t(G, {}),
275
+ return /* @__PURE__ */ o(k, { children: [
276
+ /* @__PURE__ */ t(I, { eyebrow: e, title: l, sub: n }),
277
+ /* @__PURE__ */ o(P, { children: [
278
+ i,
279
+ c ? /* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children: /* @__PURE__ */ t("fieldset", { disabled: !0, className: "min-w-0", children: a }) }) : /* @__PURE__ */ o(k, { children: [
280
+ /* @__PURE__ */ t(R, {}),
214
281
  a
215
282
  ] })
216
283
  ] })
217
284
  ] });
218
285
  }
219
- function B({
286
+ function j({
220
287
  target: e,
221
- row: n,
222
- notice: l,
223
- readOnly: o = !1
288
+ row: l,
289
+ notice: n,
290
+ readOnly: i = !1
224
291
  }) {
225
- var p;
226
- const i = K(), a = e.kind === "group" ? "" : e.field, c = (n == null ? void 0 : n.group_key) ?? (e.kind === "group" ? null : ((p = z(e)) == null ? void 0 : p.group_key) ?? null), r = Ce(i.bundle, c);
227
- return a === O ? /* @__PURE__ */ t(L, { eyebrow: "Header", title: "Subtitle", notice: l, readOnly: o, children: /* @__PURE__ */ t(Ie, {}) }) : n && (Se.test(a) || n.widget_id != null) ? /* @__PURE__ */ t(
228
- L,
292
+ var r;
293
+ const c = F(), a = e.kind === "group" ? "" : e.field, f = (l == null ? void 0 : l.group_key) ?? (e.kind === "group" ? null : ((r = J(e)) == null ? void 0 : r.group_key) ?? null), d = Ae(c.bundle, f);
294
+ return a === H ? /* @__PURE__ */ t(K, { eyebrow: "Header", title: "Subtitle", notice: n, readOnly: i, children: /* @__PURE__ */ t(Fe, {}) }) : l && (Re.test(a) || l.widget_id != null) ? /* @__PURE__ */ t(
295
+ K,
229
296
  {
230
- eyebrow: C("Widget", r),
231
- title: n.label_override || "Widget",
232
- notice: l,
233
- readOnly: o,
234
- children: /* @__PURE__ */ t(Ee, { row: n })
297
+ eyebrow: /* @__PURE__ */ t(M, { kind: "Widget", target: e, where: d }),
298
+ title: l.label_override || "Widget",
299
+ notice: n,
300
+ readOnly: i,
301
+ children: /* @__PURE__ */ t(Ge, { row: l })
235
302
  }
236
- ) : Y(a) ? /* @__PURE__ */ t(
237
- L,
303
+ ) : q(a) ? /* @__PURE__ */ t(
304
+ K,
238
305
  {
239
- eyebrow: C("Panel", r),
240
- title: $(a),
241
- notice: l,
242
- readOnly: o,
243
- children: /* @__PURE__ */ t(Te, { field: a, groupKey: c, row: n })
306
+ eyebrow: /* @__PURE__ */ t(M, { kind: "Panel", target: e, where: d }),
307
+ title: U(a),
308
+ notice: n,
309
+ readOnly: i,
310
+ children: /* @__PURE__ */ t(Me, { field: a, groupKey: f, row: l })
244
311
  }
245
- ) : n ? e.kind === "header" || n.group_key === F ? /* @__PURE__ */ t(we, { row: n, notice: l, readOnly: o }) : /* @__PURE__ */ t(Ge, { row: n, where: r, notice: l, readOnly: o }) : null;
312
+ ) : l ? e.kind === "header" || l.group_key === G ? /* @__PURE__ */ t(We, { row: l, notice: n, readOnly: i }) : /* @__PURE__ */ t(je, { target: e, row: l, where: d, notice: n, readOnly: i }) : null;
246
313
  }
247
- function we({
314
+ function We({
248
315
  row: e,
249
- notice: n,
250
- readOnly: l
316
+ notice: l,
317
+ readOnly: n
251
318
  }) {
252
- const o = K(), { data: i } = j(o.collection), a = U(e.field, (i == null ? void 0 : i.fields) ?? [], (i == null ? void 0 : i.relations) ?? [], null).label;
319
+ const i = F(), { data: c } = Y(i.collection), a = V(e.field, (c == null ? void 0 : c.fields) ?? [], (c == null ? void 0 : c.relations) ?? [], null).label;
253
320
  return /* @__PURE__ */ t(
254
- L,
321
+ K,
255
322
  {
256
323
  eyebrow: "Header strip",
257
324
  title: e.label_override || a,
258
- sub: /* @__PURE__ */ t(R, { k: e.field }),
259
- notice: n,
260
- readOnly: l,
261
- children: /* @__PURE__ */ t(be, { row: e, label: a })
325
+ sub: /* @__PURE__ */ t(A, { k: e.field }),
326
+ notice: l,
327
+ readOnly: n,
328
+ children: /* @__PURE__ */ t(ve, { row: e, label: a })
262
329
  }
263
330
  );
264
331
  }
265
- const Fe = { fields: [], relations: [], label: "" };
266
- function Ge({
267
- row: e,
332
+ const we = { fields: [], relations: [], label: "" };
333
+ function je({
334
+ target: e,
335
+ row: l,
268
336
  where: n,
269
- notice: l,
270
- readOnly: o
337
+ notice: i,
338
+ readOnly: c
271
339
  }) {
272
- var I, E, g, h;
273
- const i = K(), { data: a } = j(i.collection), c = a ?? Fe, r = U(e.field, c.fields, c.relations, e), p = ce({
274
- collection: i.collection,
275
- collectionLabel: c.label || _(i.collection),
276
- field: e.field,
340
+ var L, C, v, y;
341
+ const a = F(), { data: f } = Y(a.collection), d = f ?? we, r = V(l.field, d.fields, d.relations, l), x = he({
342
+ collection: a.collection,
343
+ collectionLabel: d.label || h(a.collection),
344
+ field: l.field,
277
345
  fieldLabel: r.label,
278
346
  stored: {
279
- options: H((I = r.global) == null ? void 0 : I.options),
280
- dependency_config: H((E = r.global) == null ? void 0 : E.dependency_config),
347
+ options: W((L = r.global) == null ? void 0 : L.options),
348
+ dependency_config: W((C = r.global) == null ? void 0 : C.dependency_config),
281
349
  columns: {
282
- deprecated: !!((g = r.global) != null && g.deprecated_at),
283
- deprecation_note: ((h = r.global) == null ? void 0 : h.deprecation_note) || null
350
+ deprecated: !!((v = r.global) != null && v.deprecated_at),
351
+ deprecation_note: ((y = r.global) == null ? void 0 : y.deprecation_note) || null
284
352
  }
285
353
  }
286
- }), x = ue({ env: i, row: e, meta: c, writer: p, readOnly: o }), k = r.relKind === "M2O" || r.relKind === "M2M" || r.isPath || r.iface === "relation-path" || r.iface === "file-image" || r.iface === "files-m2m", v = r.relKind === "O2M" && (r.iface === "inline-grid" || r.iface === "inline-table"), N = [
354
+ }), _ = ye({ env: a, row: l, meta: d, writer: x, readOnly: c }), g = r.relKind === "M2O" || r.relKind === "M2M" || r.isPath || r.iface === "relation-path" || r.iface === "file-image" || r.iface === "files-m2m", E = r.relKind === "O2M" && (r.iface === "inline-grid" || r.iface === "inline-table"), s = [
287
355
  { key: "look", label: "Look" },
288
356
  { key: "rules", label: "Rules" },
289
- ...k ? [{ key: "picker", label: "Picker" }] : [],
290
- ...v ? [{ key: "grid", label: r.iface === "inline-table" ? "Table" : "Grid" }] : [],
357
+ ...g ? [{ key: "picker", label: "Picker" }] : [],
358
+ ...E ? [{ key: "grid", label: r.iface === "inline-table" ? "Table" : "Grid" }] : [],
359
+ { key: "help", label: "Help" },
291
360
  { key: "advanced", label: "Advanced" }
292
- ], [s, b] = X("look"), u = q(), f = N.some((M) => M.key === s) ? s : "look", m = /* @__PURE__ */ t("fieldset", { disabled: o, className: "min-w-0", children: a ? f === "look" ? /* @__PURE__ */ t(ye, {}) : f === "rules" ? /* @__PURE__ */ t(Pe, {}) : f === "picker" ? /* @__PURE__ */ t(Ne, {}) : f === "grid" ? /* @__PURE__ */ t(me, {}) : /* @__PURE__ */ t(se, {}) : /* @__PURE__ */ t("p", { className: "text-[13px] text-slate-500 dark:text-muted-foreground", children: "Loading the field…" }) });
293
- return /* @__PURE__ */ t(fe.Provider, { value: x, children: /* @__PURE__ */ d(he.Provider, { value: p, children: [
361
+ ], [m, p] = Z("look");
362
+ Oe(l.field, (T) => p(T));
363
+ const N = ee(), u = s.some((T) => T.key === m) ? m : "look", b = /* @__PURE__ */ t("fieldset", { disabled: c, className: "min-w-0", children: f ? u === "look" ? /* @__PURE__ */ t(Ne, {}) : u === "rules" ? /* @__PURE__ */ t(Ke, {}) : u === "picker" ? /* @__PURE__ */ t(Ce, {}) : u === "grid" ? /* @__PURE__ */ t(xe, {}) : u === "help" ? /* @__PURE__ */ o("div", { "data-help-tab": "", className: "space-y-5", children: [
364
+ /* @__PURE__ */ t("p", { className: "text-[12px] text-slate-500 dark:text-muted-foreground", children: "Help text and the placeholder are on the Look tab." }),
365
+ /* @__PURE__ */ t(z, { kind: "field", name: l.field, label: r.label }),
294
366
  /* @__PURE__ */ t(
295
- P,
367
+ $,
368
+ {
369
+ target: { kind: "field", field: l.field, group_key: l.group_key },
370
+ name: r.label
371
+ }
372
+ )
373
+ ] }) : /* @__PURE__ */ t(be, {}) : /* @__PURE__ */ t("p", { className: "text-[13px] text-slate-500 dark:text-muted-foreground", children: "Loading the field…" }) });
374
+ return /* @__PURE__ */ t(ke.Provider, { value: _, children: /* @__PURE__ */ o(ge.Provider, { value: x, children: [
375
+ /* @__PURE__ */ t(
376
+ I,
296
377
  {
297
- eyebrow: C("Field", n),
378
+ eyebrow: /* @__PURE__ */ t(M, { kind: "Field", target: e, where: n }),
298
379
  title: r.label,
299
- sub: /* @__PURE__ */ t(R, { words: a ? Ke(r) : void 0, k: e.field }),
380
+ sub: /* @__PURE__ */ t(A, { words: f ? Be(r) : void 0, k: l.field }),
300
381
  children: /* @__PURE__ */ t(
301
- re,
382
+ se,
302
383
  {
303
- idBase: u,
384
+ idBase: N,
304
385
  label: `Settings of ${r.label}`,
305
- tabs: N,
306
- active: f,
307
- onChange: (M) => {
308
- i.flush(), b(M);
386
+ tabs: s,
387
+ active: u,
388
+ onChange: (T) => {
389
+ a.flush(), p(T);
309
390
  }
310
391
  }
311
392
  )
312
393
  }
313
394
  ),
314
- /* @__PURE__ */ d(
315
- T,
395
+ /* @__PURE__ */ o(
396
+ P,
316
397
  {
317
- tabpanel: { id: oe(u), labelledBy: ie(u, f) },
398
+ tabpanel: { id: fe(N), labelledBy: ue(N, u) },
318
399
  children: [
319
- l,
320
- o ? /* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children: m }) : /* @__PURE__ */ d(y, { children: [
321
- /* @__PURE__ */ t(G, { field: !0 }),
322
- m
400
+ i,
401
+ c ? /* @__PURE__ */ t("div", { "data-inherited-view": "", className: "opacity-70", children: b }) : /* @__PURE__ */ o(k, { children: [
402
+ /* @__PURE__ */ t(R, { field: !0 }),
403
+ b
323
404
  ] })
324
405
  ]
325
406
  },
326
- f
407
+ u
327
408
  )
328
409
  ] }) });
329
410
  }
330
411
  export {
331
- ot as Inspector
412
+ vt as Inspector
332
413
  };