@nivaro/react 0.2.53 → 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 (294) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +99 -98
  3. package/dist/index.d.ts +452 -4
  4. package/dist/index.js +644 -618
  5. package/dist/layout-editor.d.ts +252 -2
  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/FormWhatsNew.js +60 -0
  10. package/dist/shared/components/ItemEditForm.js +3968 -3618
  11. package/dist/shared/components/JobsTray.js +100 -55
  12. package/dist/shared/components/MyWorkView.js +91 -89
  13. package/dist/shared/components/NotificationBell.js +80 -79
  14. package/dist/shared/components/ProfileView.js +568 -520
  15. package/dist/shared/components/RecordCompare.js +254 -0
  16. package/dist/shared/components/RecordReadView.js +598 -543
  17. package/dist/shared/components/ReportView.js +578 -543
  18. package/dist/shared/components/RowPresence.js +91 -0
  19. package/dist/shared/components/TipLayer.js +27 -27
  20. package/dist/shared/components/WidgetSlot.js +474 -458
  21. package/dist/shared/components/ai/AiAnalyticsView.js +16 -6
  22. package/dist/shared/components/ai/AskPanel.js +139 -119
  23. package/dist/shared/components/ai/FirstWeekCard.js +126 -0
  24. package/dist/shared/components/bulk/BulkFieldUpdate.js +289 -0
  25. package/dist/shared/components/bulk/bulk-field-options.js +45 -0
  26. package/dist/shared/components/charts/CumulativeFlowChart.js +176 -0
  27. package/dist/shared/components/chat/ChannelArchive.js +326 -0
  28. package/dist/shared/components/chat/ChannelExtras.js +141 -121
  29. package/dist/shared/components/chat/ChatAnalyticsView.js +112 -110
  30. package/dist/shared/components/chat/ChatPanel.js +1695 -1733
  31. package/dist/shared/components/chat/Composer.js +357 -303
  32. package/dist/shared/components/chat/MessageActions.js +92 -0
  33. package/dist/shared/components/chat/MessageFormat.js +290 -264
  34. package/dist/shared/components/chat/OutboxBubbles.js +146 -0
  35. package/dist/shared/components/chat/RequestIdCard.js +135 -0
  36. package/dist/shared/components/chat/RoomHeaderMenu.js +202 -0
  37. package/dist/shared/components/chat/RoomParts.js +213 -274
  38. package/dist/shared/components/chat/ScreenClip.js +184 -0
  39. package/dist/shared/components/chat/chat-core.js +402 -483
  40. package/dist/shared/components/chat/chat-drafts.js +59 -0
  41. package/dist/shared/components/chat/chat-emoji.js +348 -0
  42. package/dist/shared/components/chat/chat-local-time.js +41 -0
  43. package/dist/shared/components/chat/chat-outbox.js +303 -0
  44. package/dist/shared/components/chat/chat-window.js +163 -0
  45. package/dist/shared/components/chat/huddle/HuddleControls.js +143 -0
  46. package/dist/shared/components/chat/huddle/HuddleStage.js +164 -0
  47. package/dist/shared/components/chat/huddle/huddle-store.js +342 -0
  48. package/dist/shared/components/chat/huddle/useHuddle.js +58 -0
  49. package/dist/shared/components/help-videos/api.js +80 -67
  50. package/dist/shared/components/help-videos/editor/DetailsTab.js +147 -130
  51. package/dist/shared/components/item-edit/CatalogPickerField.js +113 -112
  52. package/dist/shared/components/item-edit/ChangeReasonDialog.js +13 -13
  53. package/dist/shared/components/item-edit/FieldAffordances.js +9 -8
  54. package/dist/shared/components/item-edit/FieldRenderer.js +248 -245
  55. package/dist/shared/components/item-edit/FieldRow.js +382 -320
  56. package/dist/shared/components/item-edit/FormHelpVideoButton.js +59 -0
  57. package/dist/shared/components/item-edit/GroupSection.js +786 -639
  58. package/dist/shared/components/item-edit/HeaderTools.js +59 -56
  59. package/dist/shared/components/item-edit/InlineTableField.js +3 -1
  60. package/dist/shared/components/item-edit/LayoutContentBlock.js +47 -24
  61. package/dist/shared/components/item-edit/RelationCombobox.js +186 -176
  62. package/dist/shared/components/item-edit/entry/EntryStrip.js +54 -0
  63. package/dist/shared/components/item-edit/entry/entry-keys.js +27 -0
  64. package/dist/shared/components/item-edit/entry/useEntryKeyboard.js +70 -0
  65. package/dist/shared/components/item-edit/entry/useEntryMode.js +59 -0
  66. package/dist/shared/components/item-edit/form-structure-ui.js +105 -0
  67. package/dist/shared/components/item-edit/lazy-sections.js +36 -0
  68. package/dist/shared/components/item-edit/lock-why.js +94 -0
  69. package/dist/shared/components/item-edit/picker-miss.js +26 -0
  70. package/dist/shared/components/item-edit/placement-behaviour.js +196 -0
  71. package/dist/shared/components/item-edit/useFormUsageBeacon.js +65 -0
  72. package/dist/shared/components/layout-editor/AddPanel.js +226 -151
  73. package/dist/shared/components/layout-editor/ArrangeButton.js +34 -0
  74. package/dist/shared/components/layout-editor/AutoArrange.js +86 -0
  75. package/dist/shared/components/layout-editor/CanvasCompare.js +79 -0
  76. package/dist/shared/components/layout-editor/ChangeNote.js +147 -0
  77. package/dist/shared/components/layout-editor/CollabParts.js +175 -0
  78. package/dist/shared/components/layout-editor/DesignNode.js +311 -116
  79. package/dist/shared/components/layout-editor/EditorCanvas.js +30 -26
  80. package/dist/shared/components/layout-editor/EditorTopBar.js +463 -175
  81. package/dist/shared/components/layout-editor/FindReplace.js +188 -0
  82. package/dist/shared/components/layout-editor/FormMapButton.js +141 -0
  83. package/dist/shared/components/layout-editor/HistoryPanel.js +250 -109
  84. package/dist/shared/components/layout-editor/LayoutEditor.js +1196 -305
  85. package/dist/shared/components/layout-editor/LayoutsRail.js +94 -67
  86. package/dist/shared/components/layout-editor/NoteMarker.js +38 -0
  87. package/dist/shared/components/layout-editor/PlacementsTable.js +187 -0
  88. package/dist/shared/components/layout-editor/RestorePiece.js +143 -0
  89. package/dist/shared/components/layout-editor/ScheduleChange.js +106 -0
  90. package/dist/shared/components/layout-editor/SessionHistory.js +84 -0
  91. package/dist/shared/components/layout-editor/StagedChip.js +22 -0
  92. package/dist/shared/components/layout-editor/StructureMenu.js +464 -0
  93. package/dist/shared/components/layout-editor/UnsavedConfirm.js +103 -0
  94. package/dist/shared/components/layout-editor/ai/AiToolsButton.js +625 -0
  95. package/dist/shared/components/layout-editor/ai/ChangeCheck.js +153 -0
  96. package/dist/shared/components/layout-editor/ai/ai-tools-api.js +80 -0
  97. package/dist/shared/components/layout-editor/ai/assist-ops.js +38 -0
  98. package/dist/shared/components/layout-editor/ai/autofill-ops.js +73 -0
  99. package/dist/shared/components/layout-editor/ai/canvas-capture.js +41 -0
  100. package/dist/shared/components/layout-editor/ai-forms/AiComposer.js +271 -0
  101. package/dist/shared/components/layout-editor/ai-forms/AiFormsButton.js +182 -0
  102. package/dist/shared/components/layout-editor/ai-forms/MeaningSuggestions.js +109 -0
  103. package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +170 -0
  104. package/dist/shared/components/layout-editor/ai-forms/ai-forms-api.js +40 -0
  105. package/dist/shared/components/layout-editor/ai-forms/pending.js +25 -0
  106. package/dist/shared/components/layout-editor/ai-forms/plan.js +263 -0
  107. package/dist/shared/components/layout-editor/ai-rules/AiAskPopover.js +160 -0
  108. package/dist/shared/components/layout-editor/ai-rules/CascadeWriter.js +175 -0
  109. package/dist/shared/components/layout-editor/ai-rules/FieldRuleWriter.js +97 -0
  110. package/dist/shared/components/layout-editor/ai-rules/RuleWriter.js +94 -0
  111. package/dist/shared/components/layout-editor/ai-rules/ValidationSuggest.js +153 -0
  112. package/dist/shared/components/layout-editor/ai-rules/api.js +6 -0
  113. package/dist/shared/components/layout-editor/ai-text/AiTextTools.js +383 -0
  114. package/dist/shared/components/layout-editor/ai-text/text-ops.js +125 -0
  115. package/dist/shared/components/layout-editor/assist/AskPanel.js +278 -0
  116. package/dist/shared/components/layout-editor/assist/ExplainDiff.js +93 -0
  117. package/dist/shared/components/layout-editor/assist/ProposalsButton.js +150 -0
  118. package/dist/shared/components/layout-editor/assist/assist-api.js +63 -0
  119. package/dist/shared/components/layout-editor/assist/jump.js +142 -0
  120. package/dist/shared/components/layout-editor/assist/settings-index.js +118 -0
  121. package/dist/shared/components/layout-editor/auto-arrange.js +101 -0
  122. package/dist/shared/components/layout-editor/bulk/BulkChangesButton.js +221 -0
  123. package/dist/shared/components/layout-editor/bulk/BulkRun.js +237 -0
  124. package/dist/shared/components/layout-editor/bulk/MacrosPanel.js +230 -0
  125. package/dist/shared/components/layout-editor/bulk/bulk-api.js +65 -0
  126. package/dist/shared/components/layout-editor/bulk/field-labels.js +22 -0
  127. package/dist/shared/components/layout-editor/bulk/macro-record.js +142 -0
  128. package/dist/shared/components/layout-editor/bulk/useMacroRecorder.js +65 -0
  129. package/dist/shared/components/layout-editor/bundle-to-active.js +1 -0
  130. package/dist/shared/components/layout-editor/canvas-diff.js +157 -0
  131. package/dist/shared/components/layout-editor/collab/FormFollowShare.js +388 -0
  132. package/dist/shared/components/layout-editor/collab/collab-api.js +80 -0
  133. package/dist/shared/components/layout-editor/commands/CommandPalette.js +221 -0
  134. package/dist/shared/components/layout-editor/commands/intents.js +214 -0
  135. package/dist/shared/components/layout-editor/commands/parse.js +242 -0
  136. package/dist/shared/components/layout-editor/design-context.js +26 -6
  137. package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +181 -164
  138. package/dist/shared/components/layout-editor/dnd/collision.js +25 -23
  139. package/dist/shared/components/layout-editor/dnd/node.js +69 -57
  140. package/dist/shared/components/layout-editor/dnd/rail-drop.js +56 -0
  141. package/dist/shared/components/layout-editor/draft-recovery.js +131 -0
  142. package/dist/shared/components/layout-editor/editor-notes.js +78 -0
  143. package/dist/shared/components/layout-editor/editors/swap-config.js +1 -0
  144. package/dist/shared/components/layout-editor/entry/PlacementPresets.js +149 -0
  145. package/dist/shared/components/layout-editor/entry/entry-editor-context.js +10 -0
  146. package/dist/shared/components/layout-editor/entry/presets.js +71 -0
  147. package/dist/shared/components/layout-editor/entry/tab-order.js +110 -0
  148. package/dist/shared/components/layout-editor/entry/theme-preview.js +37 -0
  149. package/dist/shared/components/layout-editor/explain/CanvasRules.js +142 -0
  150. package/dist/shared/components/layout-editor/explain/default-ghosts.js +81 -0
  151. package/dist/shared/components/layout-editor/explain/driver-hover.js +62 -0
  152. package/dist/shared/components/layout-editor/explain/field-sources.js +246 -0
  153. package/dist/shared/components/layout-editor/explain/rule-graph.js +215 -0
  154. package/dist/shared/components/layout-editor/explain/use-explain.js +132 -0
  155. package/dist/shared/components/layout-editor/field-zones.js +116 -0
  156. package/dist/shared/components/layout-editor/form-map.js +138 -0
  157. package/dist/shared/components/layout-editor/grid-guides.js +142 -0
  158. package/dist/shared/components/layout-editor/history-api.js +87 -0
  159. package/dist/shared/components/layout-editor/inheritance.js +55 -0
  160. package/dist/shared/components/layout-editor/inspect/inspect-api.js +66 -0
  161. package/dist/shared/components/layout-editor/inspect/picker-preview.js +48 -0
  162. package/dist/shared/components/layout-editor/inspect/width-fit.js +87 -0
  163. package/dist/shared/components/layout-editor/inspector/AiFillSetting.js +85 -0
  164. package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +402 -0
  165. package/dist/shared/components/layout-editor/inspector/Breadcrumb.js +36 -0
  166. package/dist/shared/components/layout-editor/inspector/BulkInspector.js +179 -0
  167. package/dist/shared/components/layout-editor/inspector/ColumnFit.js +112 -0
  168. package/dist/shared/components/layout-editor/inspector/GroupInspector.js +291 -141
  169. package/dist/shared/components/layout-editor/inspector/HelpTab.js +174 -0
  170. package/dist/shared/components/layout-editor/inspector/Inspector.js +282 -180
  171. package/dist/shared/components/layout-editor/inspector/LookTab.js +166 -109
  172. package/dist/shared/components/layout-editor/inspector/OverrideNotice.js +61 -0
  173. package/dist/shared/components/layout-editor/inspector/PickerMisses.js +129 -0
  174. package/dist/shared/components/layout-editor/inspector/PickerPreview.js +134 -0
  175. package/dist/shared/components/layout-editor/inspector/PickerTab.js +146 -118
  176. package/dist/shared/components/layout-editor/inspector/RulesTab.js +162 -111
  177. package/dist/shared/components/layout-editor/inspector/Translations.js +156 -0
  178. package/dist/shared/components/layout-editor/inspector/kit.js +71 -70
  179. package/dist/shared/components/layout-editor/inspector/tab-request.js +21 -0
  180. package/dist/shared/components/layout-editor/is-typing.js +9 -0
  181. package/dist/shared/components/layout-editor/keyboard-move.js +66 -0
  182. package/dist/shared/components/layout-editor/lint/LintPanel.js +190 -0
  183. package/dist/shared/components/layout-editor/lint/lint-api.js +52 -0
  184. package/dist/shared/components/layout-editor/load-error.js +37 -0
  185. package/dist/shared/components/layout-editor/matrix/FieldStateMatrix.js +305 -0
  186. package/dist/shared/components/layout-editor/matrix/MatrixGrid.js +181 -0
  187. package/dist/shared/components/layout-editor/matrix/RoleSectionMatrix.js +147 -0
  188. package/dist/shared/components/layout-editor/matrix/matrix-api.js +48 -0
  189. package/dist/shared/components/layout-editor/matrix/role-matrix.js +36 -0
  190. package/dist/shared/components/layout-editor/matrix/state-matrix.js +145 -0
  191. package/dist/shared/components/layout-editor/nav/FindPanel.js +109 -0
  192. package/dist/shared/components/layout-editor/nav/NavTools.js +114 -0
  193. package/dist/shared/components/layout-editor/nav/OutlinePanel.js +228 -0
  194. package/dist/shared/components/layout-editor/nav/ShortcutSheet.js +31 -0
  195. package/dist/shared/components/layout-editor/nav/find.js +20 -0
  196. package/dist/shared/components/layout-editor/nav/tree.js +142 -0
  197. package/dist/shared/components/layout-editor/nav/useEditorNav.js +101 -0
  198. package/dist/shared/components/layout-editor/nav/view-prefs.js +34 -0
  199. package/dist/shared/components/layout-editor/ops/ChangeRequestsPanel.js +143 -0
  200. package/dist/shared/components/layout-editor/ops/DependencyDiagram.js +179 -0
  201. package/dist/shared/components/layout-editor/ops/LayoutOpsBlocks.js +92 -0
  202. package/dist/shared/components/layout-editor/ops/PromotePanel.js +287 -0
  203. package/dist/shared/components/layout-editor/ops/ops-api.js +122 -0
  204. package/dist/shared/components/layout-editor/outputs/OutputsButton.js +254 -0
  205. package/dist/shared/components/layout-editor/outputs/help-sheet.js +154 -0
  206. package/dist/shared/components/layout-editor/outputs/output-api.js +61 -0
  207. package/dist/shared/components/layout-editor/overview/OverviewActions.js +15 -3
  208. package/dist/shared/components/layout-editor/overview/describe-conditions.js +24 -14
  209. package/dist/shared/components/layout-editor/overview/overview-api.js +105 -88
  210. package/dist/shared/components/layout-editor/overview/purpose.js +15 -13
  211. package/dist/shared/components/layout-editor/panel-style.js +8 -7
  212. package/dist/shared/components/layout-editor/parity-keys.json.js +4 -0
  213. package/dist/shared/components/layout-editor/pin.js +25 -0
  214. package/dist/shared/components/layout-editor/presence.js +111 -0
  215. package/dist/shared/components/layout-editor/preview/PreviewModes.js +224 -0
  216. package/dist/shared/components/layout-editor/preview/PreviewPanes.js +262 -0
  217. package/dist/shared/components/layout-editor/preview/preview-api.js +57 -0
  218. package/dist/shared/components/layout-editor/preview/preview-model.js +157 -0
  219. package/dist/shared/components/layout-editor/restore-piece.js +192 -0
  220. package/dist/shared/components/layout-editor/reuse/FieldMapStep.js +70 -0
  221. package/dist/shared/components/layout-editor/reuse/FormMoreMenu.js +127 -0
  222. package/dist/shared/components/layout-editor/reuse/LibraryRows.js +150 -0
  223. package/dist/shared/components/layout-editor/reuse/NewFormStart.js +20 -0
  224. package/dist/shared/components/layout-editor/reuse/SectionReuseActions.js +291 -0
  225. package/dist/shared/components/layout-editor/reuse/field-match.js +77 -0
  226. package/dist/shared/components/layout-editor/reuse/reuse-api.js +73 -0
  227. package/dist/shared/components/layout-editor/reuse/seed.js +13 -0
  228. package/dist/shared/components/layout-editor/reuse/useFormFromRecord.js +43 -0
  229. package/dist/shared/components/layout-editor/reuse/useRailCopy.js +34 -0
  230. package/dist/shared/components/layout-editor/section-structure.js +241 -0
  231. package/dist/shared/components/layout-editor/settings/EntrySection.js +296 -0
  232. package/dist/shared/components/layout-editor/settings/FormSettings.js +125 -103
  233. package/dist/shared/components/layout-editor/settings/InheritanceSection.js +1 -1
  234. package/dist/shared/components/layout-editor/settings/ResolveSettings.js +255 -0
  235. package/dist/shared/components/layout-editor/settings/ToolsSection.js +215 -105
  236. package/dist/shared/components/layout-editor/settings/WhoSection.js +139 -100
  237. package/dist/shared/components/layout-editor/settings/controls.js +8 -8
  238. package/dist/shared/components/layout-editor/settings/settings-registry.js +142 -21
  239. package/dist/shared/components/layout-editor/shortcuts.js +88 -0
  240. package/dist/shared/components/layout-editor/show-when.js +35 -0
  241. package/dist/shared/components/layout-editor/slot-names.js +4 -3
  242. package/dist/shared/components/layout-editor/staged-api.js +64 -0
  243. package/dist/shared/components/layout-editor/structure-ops.js +403 -0
  244. package/dist/shared/components/layout-editor/testing/CostLimitSetting.js +42 -0
  245. package/dist/shared/components/layout-editor/testing/TestingPanels.js +556 -0
  246. package/dist/shared/components/layout-editor/testing/testing-api.js +67 -0
  247. package/dist/shared/components/layout-editor/testing/testing-model.js +406 -0
  248. package/dist/shared/components/layout-editor/testing/use-record-check.js +44 -0
  249. package/dist/shared/components/layout-editor/toolbar-kit.js +242 -0
  250. package/dist/shared/components/layout-editor/unsaved-marks.js +72 -0
  251. package/dist/shared/components/layout-editor/usage/AbTestSection.js +355 -0
  252. package/dist/shared/components/layout-editor/usage/FillChip.js +27 -0
  253. package/dist/shared/components/layout-editor/usage/UsagePanel.js +232 -0
  254. package/dist/shared/components/layout-editor/usage/ab-api.js +86 -0
  255. package/dist/shared/components/layout-editor/usage/suggest-collapse.js +32 -0
  256. package/dist/shared/components/layout-editor/usage/suggest-sections.js +55 -0
  257. package/dist/shared/components/layout-editor/usage/usage-api.js +104 -0
  258. package/dist/shared/components/layout-editor/useLayoutDraft.js +573 -306
  259. package/dist/shared/components/notifications/NotificationAnalyticsView.js +148 -77
  260. package/dist/shared/components/panels/ErpFailureBanner.js +18 -17
  261. package/dist/shared/components/panels/ExternalRequestsChip.js +63 -62
  262. package/dist/shared/components/pipeline/PipelineEditorView.js +106 -104
  263. package/dist/shared/components/profile/AgentsPanel.js +479 -0
  264. package/dist/shared/components/queue/QueueWorklist.js +1026 -1040
  265. package/dist/shared/components/support/SuggestFormChange.js +143 -0
  266. package/dist/shared/components/support/SupportAnalytics.js +171 -0
  267. package/dist/shared/components/support/SupportView.js +75 -73
  268. package/dist/shared/lib/ai-fill.js +37 -0
  269. package/dist/shared/lib/background-runs.js +150 -0
  270. package/dist/shared/lib/delivery-ack.js +9 -0
  271. package/dist/shared/lib/entry-badge-style.js +13 -0
  272. package/dist/shared/lib/entry-config.js +71 -0
  273. package/dist/shared/lib/form-sections.js +64 -0
  274. package/dist/shared/lib/form-structure.js +99 -0
  275. package/dist/shared/lib/form-usage-beacon.js +133 -0
  276. package/dist/shared/lib/jobs-tray.js +25 -23
  277. package/dist/shared/lib/keyset-pager.js +37 -0
  278. package/dist/shared/lib/layout-i18n.js +66 -0
  279. package/dist/shared/lib/layout-lint.js +490 -0
  280. package/dist/shared/lib/layout-ops.js +116 -110
  281. package/dist/shared/lib/layout-resolve.js +113 -0
  282. package/dist/shared/lib/placement-behaviour.js +144 -0
  283. package/dist/shared/lib/prefetch.js +149 -0
  284. package/dist/shared/lib/presence-hooks.js +199 -0
  285. package/dist/shared/lib/record-outbox.js +82 -81
  286. package/dist/shared/lib/replay-socket.js +93 -0
  287. package/dist/shared/lib/request-gate.js +51 -50
  288. package/dist/shared/lib/room-gaps.js +96 -0
  289. package/dist/shared/lib/screenshot.js +54 -28
  290. package/dist/shared/lib/search-log.js +27 -0
  291. package/dist/shared/lib/socket-realtime.js +101 -80
  292. package/dist/shared/lib/visible-when.js +34 -0
  293. package/dist/shared/lib/worker-socket.js +200 -0
  294. package/package.json +1 -1
@@ -1,50 +1,52 @@
1
1
  import { jsx as i, jsxs as h } from "react/jsx-runtime";
2
- import { ExternalLink as Ie } from "lucide-react";
3
- import { useContext as Be, useRef as T, useEffect as ee, useState as Me } from "react";
4
- import { useDrilldown as Le, useParentDraft as qe, RelationPathDataContext as Te, useApiFetchConfig as Ee, fieldDrilldownConfig as J } from "../../context.js";
5
- import { getFieldInterface as Je } from "../../lib/field-interfaces.js";
6
- import { precisionOf as He } from "../../lib/format-value.js";
7
- import { resolveOptionFilterTokens as te } from "../../lib/option-filter-tokens.js";
8
- import { choiceLabel as $e } from "../../lib/utils.js";
9
- import { Badge as Ge } from "../ui/badge.js";
2
+ import { ExternalLink as Me } from "lucide-react";
3
+ import { useContext as Be, useRef as E, useEffect as te, useState as Le } from "react";
4
+ import { useDrilldown as qe, useParentDraft as Te, RelationPathDataContext as Ee, useApiFetchConfig as Je, fieldDrilldownConfig as H } from "../../context.js";
5
+ import { getFieldInterface as He } from "../../lib/field-interfaces.js";
6
+ import { precisionOf as $e } from "../../lib/format-value.js";
7
+ import { resolveOptionFilterTokens as re } from "../../lib/option-filter-tokens.js";
8
+ import { counterOf as Ge } from "../../lib/placement-behaviour.js";
9
+ import { choiceLabel as Ke } from "../../lib/utils.js";
10
+ import { Badge as Ve } from "../ui/badge.js";
10
11
  import { Input as B } from "../ui/input.js";
11
- import { Label as Ke } from "../ui/label.js";
12
- import { SimpleSelect as Ve } from "../ui/SimpleSelect.js";
13
- import { Switch as We } from "../ui/switch.js";
14
- import { Textarea as H } from "../ui/textarea.js";
15
- import { CatalogPickerField as Ye } from "./CatalogPickerField.js";
16
- import { ProgressField as re, RatingScaleField as oe, DurationReadOnly as ze, ChecklistReadOnly as Ue, ColorPackField as ne, PhoneField as ie, EmailField as Ce, AddressAutocompleteField as Qe } from "./FieldPack.js";
17
- import { FilePickerField as Xe, FileM2MField as Ze } from "./FilePickerField.js";
18
- import { formatDisplayValue as M } from "./GroupSection.js";
19
- import { parseJson as _, toLocalDatetime as Oe } from "./helpers.js";
20
- import { InlineGridField as et } from "./InlineGridField.js";
21
- import { InlineTableField as tt } from "./InlineTableField.js";
22
- import { M2MSingleSelectCombobox as rt, M2MCombobox as ot } from "./M2MCombobox.js";
23
- import { MembershipSetField as nt } from "./MembershipSetField.js";
24
- import { PlanGridField as it } from "./PlanGrid.js";
25
- import { smartParseDate as at, CountdownChip as lt, DurationField as st, FiscalPeriodField as ct, ChecklistField as dt, RepeaterField as ut, RangeSliderField as mt, DateRangeField as pt, AddressField as yt, maskFor as _t, applyInputMask as ae } from "./PolishFields.js";
26
- import { QuickCreateButton as ft } from "./QuickCreateButton.js";
27
- import { RelationCombobox as bt } from "./RelationCombobox.js";
28
- import { RelationGroupedCombobox as xt } from "./RelationGroupedCombobox.js";
29
- import { RichTextEditor as ht } from "./RichTextEditor.js";
30
- function gt({
31
- plugin: t,
12
+ import { Label as We } from "../ui/label.js";
13
+ import { SimpleSelect as Ye } from "../ui/SimpleSelect.js";
14
+ import { Switch as ze } from "../ui/switch.js";
15
+ import { Textarea as $ } from "../ui/textarea.js";
16
+ import { CatalogPickerField as Ue } from "./CatalogPickerField.js";
17
+ import { useFieldAffordances as Ce } from "./FieldAffordances.js";
18
+ import { ProgressField as oe, RatingScaleField as ne, DurationReadOnly as Qe, ChecklistReadOnly as Xe, ColorPackField as ie, PhoneField as ae, EmailField as Ze, AddressAutocompleteField as Oe } from "./FieldPack.js";
19
+ import { FilePickerField as et, FileM2MField as tt } from "./FilePickerField.js";
20
+ import { formatDisplayValue as L } from "./GroupSection.js";
21
+ import { parseJson as _, toLocalDatetime as rt } from "./helpers.js";
22
+ import { InlineGridField as ot } from "./InlineGridField.js";
23
+ import { InlineTableField as nt } from "./InlineTableField.js";
24
+ import { M2MSingleSelectCombobox as it, M2MCombobox as at } from "./M2MCombobox.js";
25
+ import { MembershipSetField as lt } from "./MembershipSetField.js";
26
+ import { PlanGridField as st } from "./PlanGrid.js";
27
+ import { smartParseDate as ct, CountdownChip as dt, DurationField as ut, FiscalPeriodField as mt, ChecklistField as pt, RepeaterField as yt, RangeSliderField as _t, DateRangeField as ft, AddressField as bt, maskFor as xt, applyInputMask as le } from "./PolishFields.js";
28
+ import { QuickCreateButton as ht } from "./QuickCreateButton.js";
29
+ import { RelationCombobox as gt } from "./RelationCombobox.js";
30
+ import { RelationGroupedCombobox as vt } from "./RelationGroupedCombobox.js";
31
+ import { RichTextEditor as wt } from "./RichTextEditor.js";
32
+ function Nt({
33
+ plugin: e,
32
34
  props: n
33
35
  }) {
34
- const l = T(null), m = T(void 0), p = T(n);
35
- return p.current = n, ee(() => {
36
+ const l = E(null), m = E(void 0), p = E(n);
37
+ return p.current = n, te(() => {
36
38
  if (l.current)
37
- return l.current.innerHTML = "", m.current = t.mount(l.current, p.current), () => {
39
+ return l.current.innerHTML = "", m.current = e.mount(l.current, p.current), () => {
38
40
  var c, u;
39
41
  (u = (c = m.current) == null ? void 0 : c.destroy) == null || u.call(c), m.current = void 0;
40
42
  };
41
- }, [t]), ee(() => {
43
+ }, [e]), te(() => {
42
44
  var c, u;
43
45
  (u = (c = m.current) == null ? void 0 : c.update) == null || u.call(c, n);
44
- }, [n]), /* @__PURE__ */ i("div", { ref: l, "data-custom-interface": t.interface });
46
+ }, [n]), /* @__PURE__ */ i("div", { ref: l, "data-custom-interface": e.interface });
45
47
  }
46
- function le(t) {
47
- const n = t.validation_rules, l = Array.isArray(n) ? n : _(typeof n == "string" ? n : null);
48
+ function se(e) {
49
+ const n = e.validation_rules, l = Array.isArray(n) ? n : _(typeof n == "string" ? n : null);
48
50
  if (!Array.isArray(l)) return {};
49
51
  const m = (c) => {
50
52
  const u = /* @__PURE__ */ new Date();
@@ -58,8 +60,8 @@ function le(t) {
58
60
  }
59
61
  return p;
60
62
  }
61
- function Zt({
62
- field: t,
63
+ function or({
64
+ field: e,
63
65
  value: n,
64
66
  onChange: l,
65
67
  relations: m,
@@ -70,100 +72,101 @@ function Zt({
70
72
  narrowedBy: F,
71
73
  onCountChange: d,
72
74
  displayOnly: w,
73
- prefillParentId: se,
74
- pinnedOption: $
75
+ prefillParentId: ce,
76
+ pinnedOption: G
75
77
  }) {
76
- var W, Y, z, U, C, Q, X, Z, O;
77
- const j = Le(), A = qe(), E = Be(Te), D = A, f = (() => {
78
+ var Y, z, U, C, Q, X, Z, O, ee;
79
+ const j = qe(), I = Ce(), A = Te(), J = Be(Ee), D = A, f = (() => {
78
80
  try {
79
- return Ee();
81
+ return Je();
80
82
  } catch {
81
83
  return null;
82
84
  }
83
- })(), s = t.interface ?? "", G = T(Je(s)).current;
84
- if (G)
85
+ })(), s = e.interface ?? "", K = E(He(s)).current;
86
+ if (K)
85
87
  return /* @__PURE__ */ i(
86
- gt,
88
+ Nt,
87
89
  {
88
- plugin: G,
90
+ plugin: K,
89
91
  props: {
90
92
  value: n,
91
93
  onChange: l,
92
- field: { field: t.field, label: t.label, options: t.options },
93
- readOnly: !!t.readonly || !!w,
94
+ field: { field: e.field, label: e.label, options: e.options },
95
+ readOnly: !!e.readonly || !!w,
94
96
  collection: p,
95
97
  itemId: c || null
96
98
  }
97
99
  }
98
100
  );
99
101
  if (s === "file-image" || s === "file") {
100
- const r = _(t.options);
102
+ const r = _(e.options);
101
103
  return /* @__PURE__ */ i(
102
- Xe,
104
+ et,
103
105
  {
104
106
  value: n,
105
107
  onChange: l,
106
- disabled: t.readonly,
108
+ disabled: e.readonly,
107
109
  allowUpload: (r == null ? void 0 : r.allow_upload) !== !1,
108
110
  allowPick: (r == null ? void 0 : r.allow_pick) !== !1
109
111
  }
110
112
  );
111
113
  }
112
- const K = !s || s.startsWith("relation-") || s === "select-multiple-m2m" || s.endsWith("-m2o") || s.endsWith("-m2m"), N = K ? m.find(
113
- (r) => r.many_collection === p && r.many_field === t.field && !r.junction_field
114
+ const V = !s || s.startsWith("relation-") || s === "select-multiple-m2m" || s.endsWith("-m2o") || s.endsWith("-m2m"), N = V ? m.find(
115
+ (r) => r.many_collection === p && r.many_field === e.field && !r.junction_field
114
116
  ) : null;
115
117
  if (N != null && N.one_collection) {
116
118
  if (s === "relation-grouped") {
117
- const y = _(t.options);
119
+ const y = _(e.options);
118
120
  if (y != null && y.group_field && (y != null && y.option_field))
119
121
  return /* @__PURE__ */ i(
120
- xt,
122
+ vt,
121
123
  {
122
124
  collection: N.one_collection,
123
125
  value: n,
124
126
  onChange: l,
125
127
  groupField: y.group_field,
126
128
  optionField: y.option_field,
127
- disabled: t.readonly,
128
- placeholder: t.placeholder ?? void 0,
129
+ disabled: e.readonly,
130
+ placeholder: e.placeholder ?? void 0,
129
131
  extraFilter: u,
130
- pinned: $
132
+ pinned: G
131
133
  }
132
134
  );
133
135
  }
134
- const r = j && n != null && n !== "" ? J(t) : null, o = _(t.options), a = te(
136
+ const r = j && n != null && n !== "" ? H(e) : null, o = _(e.options), a = re(
135
137
  o != null && o.option_filter && typeof o.option_filter == "object" ? o.option_filter : void 0,
136
138
  A == null ? void 0 : A.draft,
137
139
  c
138
- ), e = a ? u ? { _and: [a, u] } : a : u, b = /* @__PURE__ */ i(
139
- bt,
140
+ ), t = a ? u ? { _and: [a, u] } : a : u, b = /* @__PURE__ */ i(
141
+ gt,
140
142
  {
141
- fieldKey: t.field,
143
+ fieldKey: e.field,
144
+ missPlacement: (I == null ? void 0 : I.layoutId) != null && I.pickerMisses !== !1 ? { layoutId: Number(I.layoutId), collection: p, field: e.field } : null,
142
145
  collection: N.one_collection,
143
146
  value: n,
144
147
  onChange: l,
145
- disabled: t.readonly,
146
- placeholder: t.placeholder ?? void 0,
147
- extraFilter: e,
148
+ disabled: e.readonly,
149
+ placeholder: e.placeholder ?? void 0,
150
+ extraFilter: t,
148
151
  autoSelectSingle: (o == null ? void 0 : o.auto_select_single) === !0,
149
152
  optionSort: typeof (o == null ? void 0 : o.option_sort) == "string" && o.option_sort ? o.option_sort : void 0,
150
153
  requiredParent: g ?? void 0,
151
154
  narrowedBy: F,
152
- pinned: $,
155
+ pinned: G,
153
156
  facets: Array.isArray(o == null ? void 0 : o.picker_facets) ? o.picker_facets.map((y) => ({
154
157
  ...y,
155
158
  // Facet filters support the same '$parent.<field>' tokens (and
156
159
  // _and clause pruning) as option_filter, resolved from the same
157
160
  // parent draft — keeps facet option lists in sync with the main
158
161
  // option query's eligibility clauses.
159
- filter: y.filter && typeof y.filter == "object" ? te(y.filter, A == null ? void 0 : A.draft, c) : void 0
162
+ filter: y.filter && typeof y.filter == "object" ? re(y.filter, A == null ? void 0 : A.draft, c) : void 0
160
163
  })) : void 0
161
164
  }
162
- ), v = o != null && o.quick_create && Array.isArray(o.quick_create.fields) && !t.readonly ? o.quick_create : null;
165
+ ), v = o != null && o.quick_create && Array.isArray(o.quick_create.fields) && !e.readonly ? o.quick_create : null;
163
166
  return !r && !v ? b : /* @__PURE__ */ h("div", { className: "flex items-center gap-1.5", children: [
164
167
  /* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: b }),
165
168
  v && /* @__PURE__ */ i(
166
- ft,
169
+ ht,
167
170
  {
168
171
  targetCollection: N.one_collection,
169
172
  config: v,
@@ -182,14 +185,14 @@ function Zt({
182
185
  width: r.width
183
186
  }),
184
187
  className: "shrink-0 rounded p-1 text-slate-400 hover:bg-slate-100 hover:text-nvr-cyan dark:hover:bg-slate-800",
185
- children: /* @__PURE__ */ i(Ie, { className: "h-3.5 w-3.5" })
188
+ children: /* @__PURE__ */ i(Me, { className: "h-3.5 w-3.5" })
186
189
  }
187
190
  )
188
191
  ] });
189
192
  }
190
- const L = K && !N ? (() => {
193
+ const q = V && !N ? (() => {
191
194
  const r = m.find(
192
- (a) => a.one_collection === p && (a.one_field === t.field || a.junction_field != null && a.many_collection === t.field)
195
+ (a) => a.one_collection === p && (a.one_field === e.field || a.junction_field != null && a.many_collection === e.field)
193
196
  );
194
197
  if (!r) return null;
195
198
  if (r.junction_field) return r;
@@ -198,27 +201,27 @@ function Zt({
198
201
  );
199
202
  return o ? { ...r, junction_field: o.many_field } : null;
200
203
  })() : null;
201
- if (L) {
204
+ if (q) {
202
205
  if (s === "files-m2m") {
203
- const a = _(t.options);
206
+ const a = _(e.options);
204
207
  return /* @__PURE__ */ i(
205
- Ze,
208
+ tt,
206
209
  {
207
- relation: L,
210
+ relation: q,
208
211
  parentId: c,
209
212
  allRelations: m,
210
- disabled: t.readonly,
213
+ disabled: e.readonly,
211
214
  allowUpload: (a == null ? void 0 : a.allow_upload) !== !1,
212
215
  allowPick: (a == null ? void 0 : a.allow_pick) !== !1,
213
216
  pendingSave: (a == null ? void 0 : a.pending_save) === !0
214
217
  }
215
218
  );
216
219
  }
217
- const r = _(t.options), o = typeof (r == null ? void 0 : r.option_sort) == "string" && r.option_sort ? r.option_sort : void 0;
220
+ const r = _(e.options), o = typeof (r == null ? void 0 : r.option_sort) == "string" && r.option_sort ? r.option_sort : void 0;
218
221
  return (r == null ? void 0 : r.max_values) === 1 ? /* @__PURE__ */ i(
219
- rt,
222
+ it,
220
223
  {
221
- relation: L,
224
+ relation: q,
222
225
  parentId: c,
223
226
  allRelations: m,
224
227
  extraFilter: u,
@@ -228,81 +231,81 @@ function Zt({
228
231
  readOnly: w
229
232
  }
230
233
  ) : /* @__PURE__ */ i(
231
- ot,
234
+ at,
232
235
  {
233
- relation: L,
236
+ relation: q,
234
237
  parentId: c,
235
238
  allRelations: m,
236
239
  extraFilter: u,
237
240
  optionSort: o,
238
241
  requiredParent: g ?? void 0,
239
242
  onCountChange: d,
240
- drilldown: J(t)
243
+ drilldown: H(e)
241
244
  }
242
245
  );
243
246
  }
244
- if (t.readonly && s !== "inline-table") {
247
+ if (e.readonly && s !== "inline-table") {
245
248
  if (s === "relation-path" && n != null && n !== "" && j) {
246
- const a = J(t), e = E == null ? void 0 : E[t.field];
247
- if (a && (e != null && e.target_collection) && e.ids.length > 0)
249
+ const a = H(e), t = J == null ? void 0 : J[e.field];
250
+ if (a && (t != null && t.target_collection) && t.ids.length > 0)
248
251
  return /* @__PURE__ */ i("div", { className: "min-h-[36px] flex items-center", children: /* @__PURE__ */ i(
249
252
  "button",
250
253
  {
251
254
  type: "button",
252
255
  onClick: () => j.open({
253
- collection: e.target_collection,
254
- itemId: e.ids[0],
256
+ collection: t.target_collection,
257
+ itemId: t.ids[0],
255
258
  layoutId: a.layout_id,
256
259
  width: a.width,
257
260
  title: String(n)
258
261
  }),
259
262
  className: "text-left text-sm text-slate-700 underline decoration-slate-300 decoration-dotted underline-offset-2 hover:text-[#172940] hover:decoration-nvr-cyan dark:text-slate-200 dark:hover:text-nvr-cyan",
260
- children: M(n, t)
263
+ children: L(n, e)
261
264
  }
262
265
  ) });
263
266
  }
264
- const r = (W = t.options) == null ? void 0 : W.__live_delta;
267
+ const r = (Y = e.options) == null ? void 0 : Y.__live_delta;
265
268
  if (r && Number.isFinite(Number(r.live))) {
266
- const a = Number(r.original), e = Number(r.live) - (Number.isFinite(a) ? a : 0), b = Math.round(e * 100) / 100;
269
+ const a = Number(r.original), t = Number(r.live) - (Number.isFinite(a) ? a : 0), b = Math.round(t * 100) / 100;
267
270
  return /* @__PURE__ */ h("div", { className: "flex min-h-[36px] flex-wrap items-center gap-x-2 gap-y-0.5", children: [
268
- /* @__PURE__ */ i("span", { className: "text-sm text-slate-400 line-through tabular-nums", children: M(r.original, t) }),
271
+ /* @__PURE__ */ i("span", { className: "text-sm text-slate-400 line-through tabular-nums", children: L(r.original, e) }),
269
272
  /* @__PURE__ */ i("span", { className: "text-slate-300", "aria-hidden": !0, children: "→" }),
270
- /* @__PURE__ */ i("span", { className: "text-sm font-medium tabular-nums", children: M(r.live, t) }),
273
+ /* @__PURE__ */ i("span", { className: "text-sm font-medium tabular-nums", children: L(r.live, e) }),
271
274
  b !== 0 && /* @__PURE__ */ h(
272
275
  "span",
273
276
  {
274
277
  className: `rounded px-1.5 py-px text-[11px] font-medium tabular-nums ${b > 0 ? "bg-emerald-50 text-emerald-700 dark:bg-emerald-900/20 dark:text-emerald-400" : "bg-red-50 text-red-700 dark:bg-red-900/20 dark:text-red-400"}`,
275
278
  children: [
276
279
  b > 0 ? "+" : "−",
277
- M(Math.abs(b), t)
280
+ L(Math.abs(b), e)
278
281
  ]
279
282
  }
280
283
  )
281
284
  ] });
282
285
  }
283
- if (s === "progress") return /* @__PURE__ */ i(re, { value: n, onChange: l, readOnly: !0 });
286
+ if (s === "progress") return /* @__PURE__ */ i(oe, { value: n, onChange: l, readOnly: !0 });
284
287
  if (s === "rating") {
285
- const a = (Y = _(t.options)) == null ? void 0 : Y.rating_max;
286
- return /* @__PURE__ */ i(oe, { value: n, onChange: l, max: a ?? 5, readOnly: !0 });
288
+ const a = (z = _(e.options)) == null ? void 0 : z.rating_max;
289
+ return /* @__PURE__ */ i(ne, { value: n, onChange: l, max: a ?? 5, readOnly: !0 });
287
290
  }
288
- if (s === "duration") return /* @__PURE__ */ i(ze, { value: n });
289
- if (s === "checklist") return /* @__PURE__ */ i(Ue, { value: n });
291
+ if (s === "duration") return /* @__PURE__ */ i(Qe, { value: n });
292
+ if (s === "checklist") return /* @__PURE__ */ i(Xe, { value: n });
290
293
  if (s === "color")
291
- return /* @__PURE__ */ i(ne, { field: t, value: n, onChange: l, readOnly: !0 });
292
- if (s === "phone") return /* @__PURE__ */ i(ie, { value: n, onChange: l, readOnly: !0 });
293
- const o = n == null ? /* @__PURE__ */ i("span", { className: "text-muted-foreground italic text-sm", children: "—" }) : typeof n == "boolean" ? /* @__PURE__ */ i(Ge, { variant: n ? "default" : "secondary", children: n ? "Yes" : "No" }) : /* @__PURE__ */ i("span", { className: "text-sm tabular-nums", children: M(n, t) });
294
+ return /* @__PURE__ */ i(ie, { field: e, value: n, onChange: l, readOnly: !0 });
295
+ if (s === "phone") return /* @__PURE__ */ i(ae, { value: n, onChange: l, readOnly: !0 });
296
+ const o = n == null ? /* @__PURE__ */ i("span", { className: "text-muted-foreground italic text-sm", children: "—" }) : typeof n == "boolean" ? /* @__PURE__ */ i(Ve, { variant: n ? "default" : "secondary", children: n ? "Yes" : "No" }) : /* @__PURE__ */ i("span", { className: "text-sm tabular-nums", children: L(n, e) });
294
297
  return /* @__PURE__ */ i("div", { className: "min-h-[36px] flex items-center", children: o });
295
298
  }
296
299
  const x = n == null ? "" : String(n);
297
- if (t.type === "boolean")
300
+ if (e.type === "boolean")
298
301
  return /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
299
- /* @__PURE__ */ i(We, { checked: !!n, onCheckedChange: l }),
300
- /* @__PURE__ */ i(Ke, { className: "font-normal text-sm", children: n ? "Yes" : "No" })
302
+ /* @__PURE__ */ i(ze, { checked: !!n, onCheckedChange: l }),
303
+ /* @__PURE__ */ i(We, { className: "font-normal text-sm", children: n ? "Yes" : "No" })
301
304
  ] });
302
- if (t.type === "datetime" || s === "datetime") {
303
- const r = _(t.options);
305
+ if (e.type === "datetime" || s === "datetime") {
306
+ const r = _(e.options);
304
307
  if ((r == null ? void 0 : r.date_mode) === "date") {
305
- const o = le(t);
308
+ const o = se(e);
306
309
  return /* @__PURE__ */ i(
307
310
  B,
308
311
  {
@@ -311,7 +314,7 @@ function Zt({
311
314
  min: o.min,
312
315
  max: o.max,
313
316
  onChange: (a) => l(a.target.value || null),
314
- placeholder: t.placeholder ?? void 0
317
+ placeholder: e.placeholder ?? void 0
315
318
  }
316
319
  );
317
320
  }
@@ -319,14 +322,14 @@ function Zt({
319
322
  B,
320
323
  {
321
324
  type: "datetime-local",
322
- value: Oe(n),
325
+ value: rt(n),
323
326
  onChange: (o) => l(o.target.value ? new Date(o.target.value).toISOString() : null),
324
- placeholder: t.placeholder ?? void 0
327
+ placeholder: e.placeholder ?? void 0
325
328
  }
326
329
  );
327
330
  }
328
- if (t.type === "date" || s === "date") {
329
- const r = ((z = _(t.options)) == null ? void 0 : z.countdown) === !0, o = le(t);
331
+ if (e.type === "date" || s === "date") {
332
+ const r = ((U = _(e.options)) == null ? void 0 : U.countdown) === !0, o = se(e);
330
333
  return /* @__PURE__ */ h("div", { className: "flex items-center", children: [
331
334
  /* @__PURE__ */ i(
332
335
  B,
@@ -337,14 +340,14 @@ function Zt({
337
340
  max: o.max,
338
341
  onChange: (a) => l(a.target.value || null),
339
342
  onPaste: (a) => {
340
- const e = at(a.clipboardData.getData("text"));
341
- e && (a.preventDefault(), l(e));
343
+ const t = ct(a.clipboardData.getData("text"));
344
+ t && (a.preventDefault(), l(t));
342
345
  },
343
- placeholder: t.placeholder ?? void 0,
346
+ placeholder: e.placeholder ?? void 0,
344
347
  className: "flex-1"
345
348
  }
346
349
  ),
347
- r && /* @__PURE__ */ i(lt, { value: x.slice(0, 10) })
350
+ r && /* @__PURE__ */ i(dt, { value: x.slice(0, 10) })
348
351
  ] });
349
352
  }
350
353
  if ([
@@ -362,31 +365,31 @@ function Zt({
362
365
  "smallmoney",
363
366
  "double",
364
367
  "number"
365
- ].includes(t.type)) {
368
+ ].includes(e.type)) {
366
369
  const r = ["integer", "bigInteger", "int", "bigint", "smallint", "tinyint"].includes(
367
- t.type
368
- ), o = r ? 0 : He(t.options, -1), a = r ? "1" : o >= 0 ? String(10 ** -o) : "any";
370
+ e.type
371
+ ), o = r ? 0 : $e(e.options, -1), a = r ? "1" : o >= 0 ? String(10 ** -o) : "any";
369
372
  return /* @__PURE__ */ i(
370
373
  B,
371
374
  {
372
375
  type: "number",
373
376
  step: a,
374
377
  value: x,
375
- onChange: (e) => l(e.target.value === "" ? null : Number(e.target.value)),
376
- onBlur: (e) => {
377
- if (o < 0 || e.target.value === "") return;
378
- const b = Number(e.target.value);
378
+ onChange: (t) => l(t.target.value === "" ? null : Number(t.target.value)),
379
+ onBlur: (t) => {
380
+ if (o < 0 || t.target.value === "") return;
381
+ const b = Number(t.target.value);
379
382
  if (!Number.isFinite(b)) return;
380
383
  const v = Number(b.toFixed(o));
381
384
  v !== b && l(v);
382
385
  },
383
- placeholder: t.placeholder ?? void 0
386
+ placeholder: e.placeholder ?? void 0
384
387
  }
385
388
  );
386
389
  }
387
- if (t.type === "json" || s === "code")
390
+ if (e.type === "json" || s === "code")
388
391
  return /* @__PURE__ */ i(
389
- H,
392
+ $,
390
393
  {
391
394
  className: "font-mono text-xs",
392
395
  rows: 4,
@@ -398,64 +401,64 @@ function Zt({
398
401
  l(r.target.value);
399
402
  }
400
403
  },
401
- placeholder: t.placeholder ?? void 0
404
+ placeholder: e.placeholder ?? void 0
402
405
  }
403
406
  );
404
407
  if (s === "textarea")
405
408
  return /* @__PURE__ */ i(
406
- H,
409
+ $,
407
410
  {
408
411
  rows: 4,
409
412
  value: x,
410
413
  onChange: (r) => l(r.target.value),
411
- placeholder: t.placeholder ?? void 0
414
+ placeholder: e.placeholder ?? void 0
412
415
  }
413
416
  );
414
417
  if (s === "wysiwyg" || s === "markdown")
415
418
  return /* @__PURE__ */ i(
416
- H,
419
+ $,
417
420
  {
418
421
  rows: 6,
419
422
  value: x,
420
423
  onChange: (r) => l(r.target.value),
421
- placeholder: t.placeholder ?? void 0,
424
+ placeholder: e.placeholder ?? void 0,
422
425
  className: "font-mono text-sm"
423
426
  }
424
427
  );
425
- if (s === "input-rich-text-html" || s === "rich_text" || t.type === "rich_text" || s === "extension-editorjs")
428
+ if (s === "input-rich-text-html" || s === "rich_text" || e.type === "rich_text" || s === "extension-editorjs")
426
429
  return /* @__PURE__ */ i(
427
- ht,
430
+ wt,
428
431
  {
429
432
  value: x,
430
433
  onChange: l,
431
- placeholder: t.placeholder ?? void 0,
432
- disabled: t.readonly,
433
- pastePlain: ((U = _(t.options)) == null ? void 0 : U.paste_plain) === !0
434
+ placeholder: e.placeholder ?? void 0,
435
+ disabled: e.readonly,
436
+ pastePlain: ((C = _(e.options)) == null ? void 0 : C.paste_plain) === !0
434
437
  }
435
438
  );
436
439
  if (s === "inline-grid" || s === "relation-list" || s === "list-o2m") {
437
440
  const r = m.find(
438
- (o) => o.one_collection === p && !o.junction_field && (o.one_field === t.field || o.many_collection === t.field)
441
+ (o) => o.one_collection === p && !o.junction_field && (o.one_field === e.field || o.many_collection === e.field)
439
442
  );
440
443
  if (r) {
441
444
  const o = r.many_collection ?? null, a = r.many_field ?? null;
442
445
  if (o && a && c) {
443
- const b = (typeof t.options == "string" ? (() => {
446
+ const b = (typeof e.options == "string" ? (() => {
444
447
  try {
445
- return JSON.parse(t.options);
448
+ return JSON.parse(e.options);
446
449
  } catch {
447
450
  return {};
448
451
  }
449
- })() : t.options ?? {}).layout_slug ?? null;
452
+ })() : e.options ?? {}).layout_slug ?? null;
450
453
  return /* @__PURE__ */ i(
451
- et,
454
+ ot,
452
455
  {
453
456
  relatedCollection: o,
454
457
  manyField: a,
455
458
  parentId: c,
456
459
  layoutSlug: b,
457
- parentFieldKey: t.field,
458
- emptyLabel: t.label || void 0
460
+ parentFieldKey: e.field,
461
+ emptyLabel: e.label || void 0
459
462
  }
460
463
  );
461
464
  }
@@ -464,64 +467,64 @@ function Zt({
464
467
  }
465
468
  if (s === "inline-table") {
466
469
  const r = m.find(
467
- (o) => o.one_collection === p && !o.junction_field && (o.one_field === t.field || o.many_collection === t.field)
470
+ (o) => o.one_collection === p && !o.junction_field && (o.one_field === e.field || o.many_collection === e.field)
468
471
  );
469
472
  if (r) {
470
473
  const o = r.many_collection ?? null, a = r.many_field ?? null;
471
474
  if (o && a && c) {
472
- const e = typeof t.options == "string" ? (() => {
475
+ const t = typeof e.options == "string" ? (() => {
473
476
  try {
474
- return JSON.parse(t.options);
477
+ return JSON.parse(e.options);
475
478
  } catch {
476
479
  return {};
477
480
  }
478
- })() : t.options ?? {}, b = e.layout_id ?? null, v = !!e.show_row_revisions, y = !!e.row_comments, ce = e.allow_revision_restore !== !1, de = e.save_mode ?? "immediate", ue = !!e.show_line_numbers, me = e.enable_reorder !== !1, pe = Array.isArray(e.parent_cascades) ? e.parent_cascades : void 0, ye = Array.isArray(e.row_rules) ? e.row_rules : void 0, _e = Array.isArray(e.column_presets) ? e.column_presets : void 0, fe = typeof e.default_preset == "string" && e.default_preset ? e.default_preset : void 0, be = Array.isArray(e.drawer_relations) ? e.drawer_relations : void 0, xe = Array.isArray(e.parent_context_fields) ? e.parent_context_fields : void 0, he = Array.isArray(e.unique_by) ? e.unique_by : void 0, ge = typeof e.sort_field == "string" && e.sort_field ? e.sort_field : void 0, ve = e.sort_dir === "desc" ? "desc" : "asc", we = e.freeze_first_column === !0, Ne = typeof e.section_group_by == "string" && e.section_group_by.includes(".") ? e.section_group_by : void 0, ke = e.row_filter && typeof e.row_filter == "object" ? e.row_filter : void 0, Fe = e.allocate_drawer && typeof e.allocate_drawer == "object" ? e.allocate_drawer : void 0, Ae = e.auto_allocate && typeof e.auto_allocate == "object" ? e.auto_allocate : void 0, Se = Array.isArray(e.row_bulk_actions) ? e.row_bulk_actions : void 0, Re = typeof e.upload_template == "string" && e.upload_template ? e.upload_template : void 0, je = e.row_match_panel ?? void 0, De = e.row_defaults && typeof e.row_defaults == "object" ? e.row_defaults : void 0, Pe = e.submission_errors === !0 ? {} : e.submission_errors && typeof e.submission_errors == "object" ? e.submission_errors : void 0, S = e.membership_set;
481
+ })() : e.options ?? {}, b = t.layout_id ?? null, v = !!t.show_row_revisions, y = !!t.row_comments, de = t.allow_revision_restore !== !1, ue = t.save_mode ?? "immediate", me = !!t.show_line_numbers, pe = t.enable_reorder !== !1, ye = Array.isArray(t.parent_cascades) ? t.parent_cascades : void 0, _e = Array.isArray(t.row_rules) ? t.row_rules : void 0, fe = Array.isArray(t.column_presets) ? t.column_presets : void 0, be = typeof t.default_preset == "string" && t.default_preset ? t.default_preset : void 0, xe = Array.isArray(t.drawer_relations) ? t.drawer_relations : void 0, he = Array.isArray(t.parent_context_fields) ? t.parent_context_fields : void 0, ge = Array.isArray(t.unique_by) ? t.unique_by : void 0, ve = typeof t.sort_field == "string" && t.sort_field ? t.sort_field : void 0, we = t.sort_dir === "desc" ? "desc" : "asc", Ne = t.freeze_first_column === !0, ke = typeof t.section_group_by == "string" && t.section_group_by.includes(".") ? t.section_group_by : void 0, Fe = t.row_filter && typeof t.row_filter == "object" ? t.row_filter : void 0, Ae = t.allocate_drawer && typeof t.allocate_drawer == "object" ? t.allocate_drawer : void 0, Se = t.auto_allocate && typeof t.auto_allocate == "object" ? t.auto_allocate : void 0, Re = Array.isArray(t.row_bulk_actions) ? t.row_bulk_actions : void 0, je = typeof t.upload_template == "string" && t.upload_template ? t.upload_template : void 0, De = t.row_match_panel ?? void 0, Ie = t.row_defaults && typeof t.row_defaults == "object" ? t.row_defaults : void 0, Pe = t.submission_errors === !0 ? {} : t.submission_errors && typeof t.submission_errors == "object" ? t.submission_errors : void 0, S = t.membership_set;
479
482
  if (S != null && S.key_field && (S != null && S.value_field))
480
483
  return /* @__PURE__ */ i(
481
- nt,
484
+ lt,
482
485
  {
483
486
  relatedCollection: o,
484
487
  manyField: a,
485
488
  parentId: c,
486
489
  config: S,
487
- readOnly: t.readonly
490
+ readOnly: e.readonly
488
491
  }
489
492
  );
490
- const R = e.catalog_mode;
493
+ const R = t.catalog_mode;
491
494
  if (R != null && R.item_field && (R != null && R.section_by))
492
495
  return /* @__PURE__ */ i(
493
- Ye,
496
+ Ue,
494
497
  {
495
498
  relatedCollection: o,
496
499
  manyField: a,
497
500
  parentId: c,
498
501
  parentCollection: p,
499
502
  config: R,
500
- readOnly: t.readonly
503
+ readOnly: e.readonly
501
504
  }
502
505
  );
503
- const k = e.row_split;
506
+ const k = t.row_split;
504
507
  if (k != null && k.key_field && (k != null && k.category_field) && Array.isArray(k.value_fields)) {
505
- const q = e.spread_remaining;
508
+ const T = t.spread_remaining;
506
509
  return /* @__PURE__ */ i(
507
- it,
510
+ st,
508
511
  {
509
512
  relatedCollection: o,
510
513
  manyField: a,
511
514
  parentId: c,
512
515
  config: k,
513
- compareSeries: e.compare_series && typeof e.compare_series == "object" && typeof e.compare_series.endpoint == "string" ? e.compare_series : null,
514
- stats: Array.isArray(e.stats) ? e.stats : null,
515
- sumCap: e.sum_cap && typeof e.sum_cap == "object" ? e.sum_cap : null,
516
- remaining: typeof (q == null ? void 0 : q.remaining) == "string" ? q.remaining : null,
517
- readOnly: t.readonly,
516
+ compareSeries: t.compare_series && typeof t.compare_series == "object" && typeof t.compare_series.endpoint == "string" ? t.compare_series : null,
517
+ stats: Array.isArray(t.stats) ? t.stats : null,
518
+ sumCap: t.sum_cap && typeof t.sum_cap == "object" ? t.sum_cap : null,
519
+ remaining: typeof (T == null ? void 0 : T.remaining) == "string" ? T.remaining : null,
520
+ readOnly: e.readonly,
518
521
  showHistory: v,
519
- emptyLabel: t.label || void 0
522
+ emptyLabel: e.label || void 0
520
523
  }
521
524
  );
522
525
  }
523
526
  return /* @__PURE__ */ i(
524
- tt,
527
+ nt,
525
528
  {
526
529
  relatedCollection: o,
527
530
  manyField: a,
@@ -530,103 +533,103 @@ function Zt({
530
533
  layoutId: b,
531
534
  showRowRevisions: v,
532
535
  rowComments: y,
533
- allowRevisionRestore: ce,
534
- saveMode: de,
535
- showLineNumbers: ue,
536
- enableReorder: me,
537
- parentCascades: pe,
538
- rowRules: ye,
539
- columnPresets: _e,
540
- defaultPreset: fe,
541
- drawerRelations: be,
542
- parentContextFields: xe,
543
- uniqueBy: he,
544
- sortField: ge,
545
- sortDir: ve,
546
- sectionGroupBy: Ne,
547
- freezeFirstColumn: we,
548
- rowFilter: ke,
549
- rowDefaults: De,
550
- allocateDrawer: Fe,
551
- autoAllocate: Ae,
552
- rowBulkActions: Se,
553
- uploadTemplate: Re,
554
- rowMatchPanel: je,
555
- lineSla: e.line_sla ?? null,
556
- editorMode: e.editor_mode === "split" ? "split" : "drawer",
557
- rowLints: Array.isArray(e.row_lints) ? e.row_lints : null,
558
- stats: Array.isArray(e.stats) ? e.stats : null,
559
- sumCap: e.sum_cap && typeof e.sum_cap == "object" ? e.sum_cap : null,
560
- spreadRemaining: e.spread_remaining && typeof e.spread_remaining == "object" ? e.spread_remaining : null,
561
- compareSeries: e.compare_series && typeof e.compare_series == "object" && typeof e.compare_series.endpoint == "string" ? e.compare_series : null,
536
+ allowRevisionRestore: de,
537
+ saveMode: ue,
538
+ showLineNumbers: me,
539
+ enableReorder: pe,
540
+ parentCascades: ye,
541
+ rowRules: _e,
542
+ columnPresets: fe,
543
+ defaultPreset: be,
544
+ drawerRelations: xe,
545
+ parentContextFields: he,
546
+ uniqueBy: ge,
547
+ sortField: ve,
548
+ sortDir: we,
549
+ sectionGroupBy: ke,
550
+ freezeFirstColumn: Ne,
551
+ rowFilter: Fe,
552
+ rowDefaults: Ie,
553
+ allocateDrawer: Ae,
554
+ autoAllocate: Se,
555
+ rowBulkActions: Re,
556
+ uploadTemplate: je,
557
+ rowMatchPanel: De,
558
+ lineSla: t.line_sla ?? null,
559
+ editorMode: t.editor_mode === "split" ? "split" : "drawer",
560
+ rowLints: Array.isArray(t.row_lints) ? t.row_lints : null,
561
+ stats: Array.isArray(t.stats) ? t.stats : null,
562
+ sumCap: t.sum_cap && typeof t.sum_cap == "object" ? t.sum_cap : null,
563
+ spreadRemaining: t.spread_remaining && typeof t.spread_remaining == "object" ? t.spread_remaining : null,
564
+ compareSeries: t.compare_series && typeof t.compare_series == "object" && typeof t.compare_series.endpoint == "string" ? t.compare_series : null,
562
565
  submissionErrors: Pe,
563
- prefillParentId: se,
564
- parentFieldKey: t.field,
565
- readOnly: t.readonly,
566
- emptyLabel: t.label || void 0
566
+ prefillParentId: ce,
567
+ parentFieldKey: e.field,
568
+ readOnly: e.readonly,
569
+ emptyLabel: e.label || void 0
567
570
  }
568
571
  );
569
572
  }
570
573
  }
571
574
  return /* @__PURE__ */ i("p", { className: "text-[12px] text-slate-400 py-1", children: "Inline table editing not available in embedded form" });
572
575
  }
573
- if (s === "color") return /* @__PURE__ */ i(ne, { field: t, value: n, onChange: l });
576
+ if (s === "color") return /* @__PURE__ */ i(ie, { field: e, value: n, onChange: l });
574
577
  if (s === "rating") {
575
- const r = (C = _(t.options)) == null ? void 0 : C.rating_max;
576
- return /* @__PURE__ */ i(oe, { value: n, onChange: l, max: r ?? 5 });
578
+ const r = (Q = _(e.options)) == null ? void 0 : Q.rating_max;
579
+ return /* @__PURE__ */ i(ne, { value: n, onChange: l, max: r ?? 5 });
577
580
  }
578
- if (s === "progress") return /* @__PURE__ */ i(re, { value: n, onChange: l });
581
+ if (s === "progress") return /* @__PURE__ */ i(oe, { value: n, onChange: l });
579
582
  if (s === "phone")
580
- return /* @__PURE__ */ i(ie, { value: n, onChange: l, placeholder: t.placeholder ?? void 0 });
583
+ return /* @__PURE__ */ i(ae, { value: n, onChange: l, placeholder: e.placeholder ?? void 0 });
581
584
  if (s === "email")
582
- return /* @__PURE__ */ i(Ce, { value: n, onChange: l, placeholder: t.placeholder ?? void 0 });
585
+ return /* @__PURE__ */ i(Ze, { value: n, onChange: l, placeholder: e.placeholder ?? void 0 });
583
586
  if (s === "address-autocomplete")
584
587
  return /* @__PURE__ */ i(
585
- Qe,
588
+ Oe,
586
589
  {
587
- field: t,
590
+ field: e,
588
591
  value: n,
589
592
  onChange: l,
590
593
  apiBase: f == null ? void 0 : f.apiBase,
591
594
  authHeaders: f == null ? void 0 : f.authHeaders,
592
595
  credentials: f == null ? void 0 : f.credentials,
593
- placeholder: t.placeholder ?? void 0
596
+ placeholder: e.placeholder ?? void 0
594
597
  }
595
598
  );
596
- if (s === "duration") return /* @__PURE__ */ i(st, { value: n, onChange: l });
597
- if (s === "fiscal_period") return /* @__PURE__ */ i(ct, { value: n, onChange: l });
598
- if (s === "checklist") return /* @__PURE__ */ i(dt, { value: n, onChange: l });
599
- if (s === "repeater" || t.repeater_schema && t.type === "json")
600
- return /* @__PURE__ */ i(ut, { field: t, value: n, onChange: l });
599
+ if (s === "duration") return /* @__PURE__ */ i(ut, { value: n, onChange: l });
600
+ if (s === "fiscal_period") return /* @__PURE__ */ i(mt, { value: n, onChange: l });
601
+ if (s === "checklist") return /* @__PURE__ */ i(pt, { value: n, onChange: l });
602
+ if (s === "repeater" || e.repeater_schema && e.type === "json")
603
+ return /* @__PURE__ */ i(yt, { field: e, value: n, onChange: l });
601
604
  if (s === "range_slider") {
602
- const r = (Q = _(t.options)) == null ? void 0 : Q.range_end_field;
605
+ const r = (X = _(e.options)) == null ? void 0 : X.range_end_field;
603
606
  return /* @__PURE__ */ i(
604
- mt,
607
+ _t,
605
608
  {
606
- field: t,
609
+ field: e,
607
610
  value: n,
608
611
  onChange: l,
609
- pairedValue: r ? (X = D == null ? void 0 : D.draft) == null ? void 0 : X[r] : void 0
612
+ pairedValue: r ? (Z = D == null ? void 0 : D.draft) == null ? void 0 : Z[r] : void 0
610
613
  }
611
614
  );
612
615
  }
613
616
  if (s === "date_range") {
614
- const r = (Z = _(t.options)) == null ? void 0 : Z.range_end_field;
617
+ const r = (O = _(e.options)) == null ? void 0 : O.range_end_field;
615
618
  return /* @__PURE__ */ i(
616
- pt,
619
+ ft,
617
620
  {
618
- field: t,
621
+ field: e,
619
622
  value: n,
620
623
  onChange: l,
621
- pairedValue: r ? (O = D == null ? void 0 : D.draft) == null ? void 0 : O[r] : void 0
624
+ pairedValue: r ? (ee = D == null ? void 0 : D.draft) == null ? void 0 : ee[r] : void 0
622
625
  }
623
626
  );
624
627
  }
625
628
  if (s === "address")
626
629
  return /* @__PURE__ */ i(
627
- yt,
630
+ bt,
628
631
  {
629
- field: t,
632
+ field: e,
630
633
  value: n,
631
634
  onChange: l,
632
635
  apiBase: f == null ? void 0 : f.apiBase,
@@ -634,71 +637,71 @@ function Zt({
634
637
  }
635
638
  );
636
639
  if (s === "tags")
637
- return /* @__PURE__ */ i(vt, { field: t, value: n, onChange: l });
640
+ return /* @__PURE__ */ i(kt, { field: e, value: n, onChange: l });
638
641
  if (s === "select-dropdown" || s === "radio-buttons") {
639
642
  const r = (() => {
640
- const o = _(t.options);
643
+ const o = _(e.options);
641
644
  return (o == null ? void 0 : o.choices) ?? [];
642
645
  })();
643
646
  if (r.length > 0)
644
647
  return /* @__PURE__ */ i(
645
- Ve,
648
+ Ye,
646
649
  {
647
650
  value: x,
648
651
  onChange: (o) => l(o || null),
649
652
  options: [
650
653
  { value: "", label: "— Select —" },
651
- ...r.map((o) => ({ value: o.value, label: $e(o.text) }))
654
+ ...r.map((o) => ({ value: o.value, label: Ke(o.text) }))
652
655
  ],
653
- ariaLabel: t.label ?? t.field,
656
+ ariaLabel: e.label ?? e.field,
654
657
  className: "h-9 rounded-md text-sm"
655
658
  }
656
659
  );
657
660
  }
658
- const P = _t(t), I = (() => {
659
- const r = _(t.options);
661
+ const P = xt(e), M = (() => {
662
+ const r = _(e.options);
660
663
  if (Number.isFinite(Number(r == null ? void 0 : r.max_length))) return Number(r == null ? void 0 : r.max_length);
661
- const o = _(t.validation_rules), a = Array.isArray(o) ? o.find((e) => (e == null ? void 0 : e.type) === "max") : null;
664
+ const o = _(e.validation_rules), a = Array.isArray(o) ? o.find((t) => (t == null ? void 0 : t.type) === "max") : null;
662
665
  return a && Number.isFinite(Number(a.value)) ? Number(a.value) : null;
663
- })(), V = /* @__PURE__ */ i(
666
+ })(), W = /* @__PURE__ */ i(
664
667
  B,
665
668
  {
666
- value: P ? ae(P, x).display : x,
669
+ value: P ? le(P, x).display : x,
667
670
  onChange: (r) => {
668
671
  if (P) {
669
- const { clean: o } = ae(P, r.target.value);
672
+ const { clean: o } = le(P, r.target.value);
670
673
  l(o || null);
671
674
  } else
672
675
  l(r.target.value || null);
673
676
  },
674
- placeholder: t.placeholder ?? P ?? void 0
677
+ placeholder: e.placeholder ?? P ?? void 0
675
678
  }
676
679
  );
677
- if (I != null && I > 0) {
680
+ if (M != null && M > 0 && !Ge(e._overrides)) {
678
681
  const r = x.length;
679
682
  return /* @__PURE__ */ h("div", { children: [
680
- V,
681
- r >= I * 0.6 && /* @__PURE__ */ h(
683
+ W,
684
+ r >= M * 0.6 && /* @__PURE__ */ h(
682
685
  "p",
683
686
  {
684
- className: r > I ? "mt-0.5 text-right text-[10.5px] tabular-nums text-red-500" : "mt-0.5 text-right text-[10.5px] tabular-nums text-slate-400",
687
+ className: r > M ? "mt-0.5 text-right text-[10.5px] tabular-nums text-red-500" : "mt-0.5 text-right text-[10.5px] tabular-nums text-slate-400",
685
688
  children: [
686
689
  r,
687
690
  "/",
688
- I
691
+ M
689
692
  ]
690
693
  }
691
694
  )
692
695
  ] });
693
696
  }
694
- return V;
697
+ return W;
695
698
  }
696
- function vt({
697
- field: t,
699
+ function kt({
700
+ field: e,
698
701
  value: n,
699
702
  onChange: l
700
703
  }) {
701
- const [m, p] = Me(""), c = (() => {
704
+ const [m, p] = Le(""), c = (() => {
702
705
  if (Array.isArray(n)) return n.map(String);
703
706
  if (typeof n == "string" && n.trim().startsWith("["))
704
707
  try {
@@ -709,7 +712,7 @@ function vt({
709
712
  }
710
713
  return typeof n == "string" && n.trim() !== "" ? [n] : [];
711
714
  })(), u = (() => {
712
- const d = _(t.options);
715
+ const d = _(e.options);
713
716
  return Array.isArray(d == null ? void 0 : d.tag_options) ? d.tag_options.map(String) : [];
714
717
  })(), g = (d) => l(d.length > 0 ? JSON.stringify(d) : null), F = (d) => {
715
718
  const w = d.trim();
@@ -767,6 +770,6 @@ function vt({
767
770
  ] });
768
771
  }
769
772
  export {
770
- Zt as FieldRenderer,
771
- te as resolveOptionFilterTokens
773
+ or as FieldRenderer,
774
+ re as resolveOptionFilterTokens
772
775
  };