@chobantonov/jsonforms-react-antd-renderers 0.0.0-stage → 0.1.0

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 (312) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +103 -2
  3. package/lib/additional/LabelRenderer.d.ts +13 -0
  4. package/lib/additional/ListWithDetailMasterItem.d.ts +9 -0
  5. package/lib/additional/ListWithDetailRenderer.d.ts +8 -0
  6. package/lib/additional/index.d.ts +4 -0
  7. package/lib/additional/unwrapped.d.ts +6 -0
  8. package/lib/antd-controls/AntdCheckbox.d.ts +10 -0
  9. package/lib/antd-controls/AntdClearValueButton.d.ts +44 -0
  10. package/lib/antd-controls/AntdClearableInput.d.ts +19 -0
  11. package/lib/antd-controls/AntdDatePicker.d.ts +7 -0
  12. package/lib/antd-controls/AntdDateTimePicker.d.ts +7 -0
  13. package/lib/antd-controls/AntdFile.d.ts +7 -0
  14. package/lib/antd-controls/AntdInputInteger.d.ts +3 -0
  15. package/lib/antd-controls/AntdInputNumber.d.ts +3 -0
  16. package/lib/antd-controls/AntdInputNumberFormat.d.ts +6 -0
  17. package/lib/antd-controls/AntdInputText.d.ts +6 -0
  18. package/lib/antd-controls/AntdNumericInput.d.ts +9 -0
  19. package/lib/antd-controls/AntdOtp.d.ts +33 -0
  20. package/lib/antd-controls/AntdPassword.d.ts +6 -0
  21. package/lib/antd-controls/AntdRadioGroup.d.ts +6 -0
  22. package/lib/antd-controls/AntdRevealButton.d.ts +32 -0
  23. package/lib/antd-controls/AntdSelect.d.ts +7 -0
  24. package/lib/antd-controls/AntdSlider.d.ts +21 -0
  25. package/lib/antd-controls/AntdTimePicker.d.ts +6 -0
  26. package/lib/antd-controls/AntdToggle.d.ts +6 -0
  27. package/lib/antd-controls/FileFeedback.d.ts +6 -0
  28. package/lib/antd-controls/index.d.ts +18 -0
  29. package/lib/antd-controls/useTemporalPicker.d.ts +49 -0
  30. package/lib/cells/AntdCompositeCell.d.ts +8 -0
  31. package/lib/cells/BooleanCell.d.ts +6 -0
  32. package/lib/cells/BooleanToggleCell.d.ts +5 -0
  33. package/lib/cells/CompositeDetailDialog.d.ts +15 -0
  34. package/lib/cells/CustomizableCells.d.ts +9 -0
  35. package/lib/cells/DateCell.d.ts +6 -0
  36. package/lib/cells/EnumCell.d.ts +11 -0
  37. package/lib/cells/IntegerCell.d.ts +6 -0
  38. package/lib/cells/NumberCell.d.ts +10 -0
  39. package/lib/cells/NumberFormatCell.d.ts +10 -0
  40. package/lib/cells/OneOfEnumCell.d.ts +11 -0
  41. package/lib/cells/PasswordCell.d.ts +5 -0
  42. package/lib/cells/TextCell.d.ts +10 -0
  43. package/lib/cells/TimeCell.d.ts +6 -0
  44. package/lib/cells/index.d.ts +14 -0
  45. package/lib/complex/AdditionalProperties.d.ts +4 -0
  46. package/lib/complex/AnyOfRenderer.d.ts +31 -0
  47. package/lib/complex/ArrayControlRenderer.d.ts +8 -0
  48. package/lib/complex/ChipsControl.d.ts +22 -0
  49. package/lib/complex/CollectionPager.d.ts +5 -0
  50. package/lib/complex/DataCell.d.ts +16 -0
  51. package/lib/complex/DeleteDialog.d.ts +14 -0
  52. package/lib/complex/DetailModal.d.ts +6 -0
  53. package/lib/complex/EnumArrayRenderer.d.ts +6 -0
  54. package/lib/complex/ErrorFeedback.d.ts +6 -0
  55. package/lib/complex/MixedRenderer.d.ts +6 -0
  56. package/lib/complex/MultiSelectControl.d.ts +17 -0
  57. package/lib/complex/ObjectRenderer.d.ts +5 -0
  58. package/lib/complex/OneOfRenderer.d.ts +6 -0
  59. package/lib/complex/OneOfTabRenderer.d.ts +5 -0
  60. package/lib/complex/RecursiveTreeRenderer.d.ts +4 -0
  61. package/lib/complex/RowDetailFrame.d.ts +10 -0
  62. package/lib/complex/ScalarCompositionRenderer.d.ts +4 -0
  63. package/lib/complex/TabSwitchConfirmDialog.d.ts +9 -0
  64. package/lib/complex/TableControl.d.ts +9 -0
  65. package/lib/complex/TableToolbar.d.ts +21 -0
  66. package/lib/complex/TupleAdditionalItems.d.ts +13 -0
  67. package/lib/complex/TupleControlRenderer.d.ts +6 -0
  68. package/lib/complex/TupleField.d.ts +4 -0
  69. package/lib/complex/ValidationIcon.d.ts +8 -0
  70. package/lib/complex/additionalProperties/AntdAdditionalPropertyActions.d.ts +9 -0
  71. package/lib/complex/additionalProperties/AntdAdditionalPropertyRenameDialog.d.ts +11 -0
  72. package/lib/complex/index.d.ts +20 -0
  73. package/lib/complex/mixed/AntdJsonTypeIcon.d.ts +4 -0
  74. package/lib/complex/mixed/AntdMixedNavigationContext.d.ts +5 -0
  75. package/lib/complex/mixed/AntdMixedSplitPane.d.ts +5 -0
  76. package/lib/complex/mixed/AntdMixedTree.d.ts +15 -0
  77. package/lib/complex/mixed/AntdMixedTypeSelector.d.ts +12 -0
  78. package/lib/complex/mixed/AntdNestedMixedNavigation.d.ts +7 -0
  79. package/lib/complex/mixed/mixedTree.d.ts +2 -0
  80. package/lib/complex/unwrapped.d.ts +10 -0
  81. package/lib/controls/AnyOfStringOrEnumControl.d.ts +9 -0
  82. package/lib/controls/BooleanControl.d.ts +6 -0
  83. package/lib/controls/BooleanToggleControl.d.ts +6 -0
  84. package/lib/controls/ChoiceCards.d.ts +1 -0
  85. package/lib/controls/DateControl.d.ts +6 -0
  86. package/lib/controls/DateTimeControl.d.ts +6 -0
  87. package/lib/controls/EnumControl.d.ts +7 -0
  88. package/lib/controls/FileControl.d.ts +7 -0
  89. package/lib/controls/InputControl.d.ts +6 -0
  90. package/lib/controls/IntegerControl.d.ts +6 -0
  91. package/lib/controls/NativeControl.d.ts +6 -0
  92. package/lib/controls/NumberControl.d.ts +6 -0
  93. package/lib/controls/OneOfEnumControl.d.ts +7 -0
  94. package/lib/controls/OneOfRadioGroupControl.d.ts +6 -0
  95. package/lib/controls/PasswordControl.d.ts +18 -0
  96. package/lib/controls/PasswordOtpControl.d.ts +38 -0
  97. package/lib/controls/RadioGroup.d.ts +3 -0
  98. package/lib/controls/RadioGroupControl.d.ts +6 -0
  99. package/lib/controls/SliderControl.d.ts +6 -0
  100. package/lib/controls/TextControl.d.ts +6 -0
  101. package/lib/controls/TimeControl.d.ts +6 -0
  102. package/lib/controls/index.d.ts +20 -0
  103. package/lib/controls/unwrapped.d.ts +19 -0
  104. package/lib/index.d.ts +50 -0
  105. package/lib/jsonforms-react-antd.cjs.js +39 -0
  106. package/lib/jsonforms-react-antd.cjs.js.map +1 -0
  107. package/lib/jsonforms-react-antd.esm.js +4235 -0
  108. package/lib/jsonforms-react-antd.esm.js.map +1 -0
  109. package/lib/layouts/ArrayLayout.d.ts +5 -0
  110. package/lib/layouts/ArrayLayoutRenderer.d.ts +8 -0
  111. package/lib/layouts/ArrayPanel.d.ts +7 -0
  112. package/lib/layouts/ArrayToolbar.d.ts +17 -0
  113. package/lib/layouts/CategorizationAccordionLayout.d.ts +21 -0
  114. package/lib/layouts/CategorizationLayout.d.ts +14 -0
  115. package/lib/layouts/CategorizationStepperLayout.d.ts +10 -0
  116. package/lib/layouts/CategoryHeader.d.ts +39 -0
  117. package/lib/layouts/ContainerIndicator.d.ts +37 -0
  118. package/lib/layouts/GroupLayout.d.ts +6 -0
  119. package/lib/layouts/HorizontalLayout.d.ts +10 -0
  120. package/lib/layouts/ValidationIndicator.d.ts +13 -0
  121. package/lib/layouts/VerticalLayout.d.ts +10 -0
  122. package/lib/layouts/arrayTitle.d.ts +2 -0
  123. package/lib/layouts/index.d.ts +11 -0
  124. package/lib/layouts/unwrapped.d.ts +11 -0
  125. package/lib/locale/index.d.ts +1 -0
  126. package/lib/util/additionalPropertyName.d.ts +2 -0
  127. package/lib/util/arrayChoices.d.ts +2 -0
  128. package/lib/util/categoryState.d.ts +3 -0
  129. package/lib/util/cellFrame.d.ts +27 -0
  130. package/lib/util/cellMode.d.ts +29 -0
  131. package/lib/util/clearAffordance.d.ts +1 -0
  132. package/lib/util/combinators.d.ts +1 -0
  133. package/lib/util/compositeActions.d.ts +1 -0
  134. package/lib/util/compositeSummary.d.ts +1 -0
  135. package/lib/util/configNamespaces.d.ts +1 -0
  136. package/lib/util/confirmation.d.ts +2 -0
  137. package/lib/util/datejs.d.ts +4 -0
  138. package/lib/util/debounce.d.ts +1 -0
  139. package/lib/util/dynamicProperties.d.ts +1 -0
  140. package/lib/util/focus.d.ts +1 -0
  141. package/lib/util/groupState.d.ts +1 -0
  142. package/lib/util/index.d.ts +25 -0
  143. package/lib/util/layout.d.ts +18 -0
  144. package/lib/util/layoutSizing.d.ts +6 -0
  145. package/lib/util/literalPropertySchema.d.ts +1 -0
  146. package/lib/util/locale.d.ts +68 -0
  147. package/lib/util/numeric.d.ts +1 -0
  148. package/lib/util/pendingChanges.d.ts +2 -0
  149. package/lib/util/preTouchErrors.d.ts +2 -0
  150. package/lib/util/rendererLocale.d.ts +2 -0
  151. package/lib/util/temporalBounds.d.ts +35 -0
  152. package/lib/util/temporalFormats.d.ts +26 -0
  153. package/lib/util/theme.d.ts +9 -0
  154. package/lib/util/translate.d.ts +1 -0
  155. package/lib/util/tuple.d.ts +2 -0
  156. package/lib/util/useConfirmation.d.ts +7 -0
  157. package/lib/util/validationIndicator.d.ts +2 -0
  158. package/lib/util/visuallyHidden.d.ts +1 -0
  159. package/package.json +89 -3
  160. package/src/additional/LabelRenderer.tsx +21 -0
  161. package/src/additional/ListWithDetailMasterItem.tsx +124 -0
  162. package/src/additional/ListWithDetailRenderer.tsx +243 -0
  163. package/src/additional/index.ts +14 -0
  164. package/src/additional/unwrapped.ts +8 -0
  165. package/src/antd-controls/AntdCheckbox.tsx +56 -0
  166. package/src/antd-controls/AntdClearValueButton.tsx +96 -0
  167. package/src/antd-controls/AntdClearableInput.tsx +63 -0
  168. package/src/antd-controls/AntdDatePicker.tsx +26 -0
  169. package/src/antd-controls/AntdDateTimePicker.tsx +31 -0
  170. package/src/antd-controls/AntdFile.tsx +395 -0
  171. package/src/antd-controls/AntdInputInteger.tsx +10 -0
  172. package/src/antd-controls/AntdInputNumber.tsx +10 -0
  173. package/src/antd-controls/AntdInputNumberFormat.tsx +63 -0
  174. package/src/antd-controls/AntdInputText.tsx +124 -0
  175. package/src/antd-controls/AntdNumericInput.tsx +83 -0
  176. package/src/antd-controls/AntdOtp.tsx +132 -0
  177. package/src/antd-controls/AntdPassword.tsx +106 -0
  178. package/src/antd-controls/AntdRadioGroup.tsx +60 -0
  179. package/src/antd-controls/AntdRevealButton.tsx +74 -0
  180. package/src/antd-controls/AntdSelect.tsx +113 -0
  181. package/src/antd-controls/AntdSlider.tsx +114 -0
  182. package/src/antd-controls/AntdTimePicker.tsx +25 -0
  183. package/src/antd-controls/AntdToggle.tsx +70 -0
  184. package/src/antd-controls/FileFeedback.tsx +37 -0
  185. package/src/antd-controls/index.ts +18 -0
  186. package/src/antd-controls/useTemporalPicker.ts +130 -0
  187. package/src/cells/AntdCompositeCell.tsx +228 -0
  188. package/src/cells/BooleanCell.tsx +33 -0
  189. package/src/cells/BooleanToggleCell.tsx +38 -0
  190. package/src/cells/CompositeDetailDialog.tsx +100 -0
  191. package/src/cells/CustomizableCells.ts +9 -0
  192. package/src/cells/DateCell.tsx +17 -0
  193. package/src/cells/EnumCell.tsx +30 -0
  194. package/src/cells/IntegerCell.tsx +17 -0
  195. package/src/cells/NumberCell.tsx +20 -0
  196. package/src/cells/NumberFormatCell.tsx +37 -0
  197. package/src/cells/OneOfEnumCell.tsx +32 -0
  198. package/src/cells/PasswordCell.tsx +22 -0
  199. package/src/cells/TextCell.tsx +22 -0
  200. package/src/cells/TimeCell.tsx +17 -0
  201. package/src/cells/index.ts +40 -0
  202. package/src/complex/AdditionalProperties.tsx +422 -0
  203. package/src/complex/AnyOfRenderer.tsx +158 -0
  204. package/src/complex/ArrayControlRenderer.tsx +121 -0
  205. package/src/complex/ChipsControl.tsx +205 -0
  206. package/src/complex/CollectionPager.tsx +26 -0
  207. package/src/complex/DataCell.tsx +82 -0
  208. package/src/complex/DeleteDialog.tsx +44 -0
  209. package/src/complex/DetailModal.tsx +110 -0
  210. package/src/complex/EnumArrayRenderer.tsx +148 -0
  211. package/src/complex/ErrorFeedback.tsx +51 -0
  212. package/src/complex/MixedRenderer.tsx +325 -0
  213. package/src/complex/MultiSelectControl.tsx +205 -0
  214. package/src/complex/ObjectRenderer.tsx +55 -0
  215. package/src/complex/OneOfRenderer.tsx +299 -0
  216. package/src/complex/OneOfTabRenderer.tsx +123 -0
  217. package/src/complex/RecursiveTreeRenderer.tsx +20 -0
  218. package/src/complex/RowDetailFrame.tsx +99 -0
  219. package/src/complex/ScalarCompositionRenderer.tsx +14 -0
  220. package/src/complex/TabSwitchConfirmDialog.tsx +36 -0
  221. package/src/complex/TableControl.tsx +646 -0
  222. package/src/complex/TableToolbar.tsx +80 -0
  223. package/src/complex/TupleAdditionalItems.tsx +100 -0
  224. package/src/complex/TupleControlRenderer.tsx +78 -0
  225. package/src/complex/TupleField.tsx +44 -0
  226. package/src/complex/ValidationIcon.tsx +30 -0
  227. package/src/complex/additionalProperties/AntdAdditionalPropertyActions.tsx +56 -0
  228. package/src/complex/additionalProperties/AntdAdditionalPropertyRenameDialog.tsx +56 -0
  229. package/src/complex/index.ts +48 -0
  230. package/src/complex/mixed/AntdJsonTypeIcon.tsx +40 -0
  231. package/src/complex/mixed/AntdMixedNavigationContext.ts +8 -0
  232. package/src/complex/mixed/AntdMixedSplitPane.tsx +51 -0
  233. package/src/complex/mixed/AntdMixedTree.tsx +287 -0
  234. package/src/complex/mixed/AntdMixedTypeSelector.tsx +60 -0
  235. package/src/complex/mixed/AntdNestedMixedNavigation.tsx +39 -0
  236. package/src/complex/mixed/mixedTree.ts +9 -0
  237. package/src/complex/unwrapped.ts +15 -0
  238. package/src/controls/AnyOfStringOrEnumControl.tsx +123 -0
  239. package/src/controls/BooleanControl.tsx +17 -0
  240. package/src/controls/BooleanToggleControl.tsx +24 -0
  241. package/src/controls/ChoiceCards.tsx +13 -0
  242. package/src/controls/DateControl.tsx +19 -0
  243. package/src/controls/DateTimeControl.tsx +22 -0
  244. package/src/controls/EnumControl.tsx +29 -0
  245. package/src/controls/FileControl.tsx +44 -0
  246. package/src/controls/InputControl.tsx +94 -0
  247. package/src/controls/IntegerControl.tsx +16 -0
  248. package/src/controls/NativeControl.tsx +79 -0
  249. package/src/controls/NumberControl.tsx +18 -0
  250. package/src/controls/OneOfEnumControl.tsx +32 -0
  251. package/src/controls/OneOfRadioGroupControl.tsx +25 -0
  252. package/src/controls/PasswordControl.tsx +43 -0
  253. package/src/controls/PasswordOtpControl.tsx +61 -0
  254. package/src/controls/RadioGroup.tsx +8 -0
  255. package/src/controls/RadioGroupControl.tsx +21 -0
  256. package/src/controls/SliderControl.tsx +19 -0
  257. package/src/controls/TextControl.tsx +17 -0
  258. package/src/controls/TimeControl.tsx +20 -0
  259. package/src/controls/index.ts +69 -0
  260. package/src/controls/unwrapped.ts +35 -0
  261. package/src/index.ts +267 -0
  262. package/src/layouts/ArrayLayout.tsx +435 -0
  263. package/src/layouts/ArrayLayoutRenderer.tsx +54 -0
  264. package/src/layouts/ArrayPanel.tsx +51 -0
  265. package/src/layouts/ArrayToolbar.tsx +67 -0
  266. package/src/layouts/CategorizationAccordionLayout.tsx +217 -0
  267. package/src/layouts/CategorizationLayout.tsx +149 -0
  268. package/src/layouts/CategorizationStepperLayout.tsx +164 -0
  269. package/src/layouts/CategoryHeader.tsx +107 -0
  270. package/src/layouts/ContainerIndicator.tsx +83 -0
  271. package/src/layouts/GroupLayout.tsx +307 -0
  272. package/src/layouts/HorizontalLayout.tsx +50 -0
  273. package/src/layouts/ValidationIndicator.tsx +43 -0
  274. package/src/layouts/VerticalLayout.tsx +50 -0
  275. package/src/layouts/arrayTitle.tsx +30 -0
  276. package/src/layouts/index.ts +35 -0
  277. package/src/layouts/unwrapped.ts +17 -0
  278. package/src/locale/index.ts +1 -0
  279. package/src/util/additionalPropertyName.ts +11 -0
  280. package/src/util/arrayChoices.ts +21 -0
  281. package/src/util/categoryState.ts +17 -0
  282. package/src/util/cellFrame.tsx +52 -0
  283. package/src/util/cellMode.tsx +145 -0
  284. package/src/util/clearAffordance.ts +2 -0
  285. package/src/util/combinators.ts +6 -0
  286. package/src/util/compositeActions.ts +2 -0
  287. package/src/util/compositeSummary.ts +2 -0
  288. package/src/util/configNamespaces.ts +4 -0
  289. package/src/util/confirmation.ts +15 -0
  290. package/src/util/datejs.tsx +42 -0
  291. package/src/util/debounce.ts +2 -0
  292. package/src/util/dynamicProperties.ts +6 -0
  293. package/src/util/focus.ts +2 -0
  294. package/src/util/groupState.ts +8 -0
  295. package/src/util/index.ts +25 -0
  296. package/src/util/layout.tsx +121 -0
  297. package/src/util/layoutSizing.ts +33 -0
  298. package/src/util/literalPropertySchema.ts +2 -0
  299. package/src/util/locale.ts +222 -0
  300. package/src/util/numeric.ts +2 -0
  301. package/src/util/pendingChanges.tsx +6 -0
  302. package/src/util/preTouchErrors.ts +10 -0
  303. package/src/util/rendererLocale.ts +10 -0
  304. package/src/util/temporalBounds.ts +106 -0
  305. package/src/util/temporalFormats.ts +95 -0
  306. package/src/util/theme.ts +9 -0
  307. package/src/util/translate.ts +6 -0
  308. package/src/util/tuple.ts +16 -0
  309. package/src/util/uiSchemaCycle.tsx +2 -0
  310. package/src/util/useConfirmation.tsx +25 -0
  311. package/src/util/validationIndicator.ts +10 -0
  312. package/src/util/visuallyHidden.ts +2 -0
@@ -0,0 +1,4235 @@
1
+ import { dynamicCellEntry as e, dynamicRendererEntry as t } from "@chobantonov/jsonforms-react-renderer-common/dynamic/DynamicUiProvider";
2
+ import n, { useCallback as r, useEffect as i, useId as a, useLayoutEffect as o, useMemo as s, useRef as c, useState as l } from "react";
3
+ import { AutoComplete as u, Avatar as d, Breadcrumb as f, Button as p, Card as m, Checkbox as h, Col as g, Collapse as _, ConfigProvider as v, DatePicker as y, Empty as b, Flex as x, Form as S, Grid as C, Input as w, InputNumber as T, Listy as E, Modal as D, Pagination as O, Popover as k, Radio as A, Row as j, Select as M, Slider as N, Space as P, Splitter as F, Steps as I, Switch as L, Table as ee, Tabs as R, Tag as te, TimePicker as ne, Tooltip as z, Tree as re, Typography as B, Upload as ie, theme as V } from "antd";
4
+ import { useConfirmationState as ae } from "@chobantonov/jsonforms-react-renderer-common/interaction/useConfirmationState";
5
+ import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
6
+ import { createRecursiveTreeRenderer as oe, recursiveTreeTester as se } from "@chobantonov/jsonforms-react-renderer-common/mixed/RecursiveTreeRenderer";
7
+ import { useI18n as G, useI18n as ce, useI18nDefault as le, useTranslator as ue, useTranslator as de } from "@chobantonov/jsonforms-react-renderer-common/locale/translate";
8
+ import fe from "@ant-design/icons/ExclamationCircleOutlined";
9
+ import pe from "@ant-design/icons/DeleteOutlined";
10
+ import me from "@ant-design/icons/EditOutlined";
11
+ import he from "@ant-design/icons/EyeInvisibleOutlined";
12
+ import ge from "@ant-design/icons/EyeOutlined";
13
+ import _e from "@ant-design/icons/AlignLeftOutlined";
14
+ import ve from "@ant-design/icons/CheckOutlined";
15
+ import ye from "@ant-design/icons/CodeOutlined";
16
+ import be from "@ant-design/icons/StopOutlined";
17
+ import { mixedPathKey as xe, mixedTreeLabel as Se } from "@chobantonov/jsonforms-react-renderer-common/mixed/mixedTree";
18
+ import { choiceCardsTester as Ce, createChoiceCards as we } from "@chobantonov/jsonforms-react-renderer-common/composition/choiceCards";
19
+ import { Control as Te, DispatchCell as Ee, JsonFormsContext as De, JsonFormsDispatch as Oe, ctxToCellProps as ke, useJsonForms as Ae, withArrayTranslationProps as je, withJsonFormsAnyOfProps as Me, withJsonFormsArrayLayoutProps as Ne, withJsonFormsCellProps as Pe, withJsonFormsControlProps as K, withJsonFormsEnumCellProps as Fe, withJsonFormsEnumProps as Ie, withJsonFormsLabelProps as Le, withJsonFormsLayoutProps as Re, withJsonFormsMasterListItemProps as ze, withJsonFormsMultiEnumProps as Be, withJsonFormsOneOfEnumCellProps as Ve, withJsonFormsOneOfEnumProps as He, withJsonFormsOneOfProps as Ue, withTranslateProps as q } from "@jsonforms/react";
20
+ import We from "@ant-design/icons/WarningOutlined";
21
+ import Ge from "@ant-design/icons/CloseCircleFilled";
22
+ import { FileArrayInput as Ke, attachmentName as qe, fileArrayTester as Je, fileItemSchema as Ye } from "@chobantonov/jsonforms-react-renderer-common/controls/FileArrayInput";
23
+ import Xe from "@ant-design/icons/FileOutlined";
24
+ import { InputAdornments as Ze } from "@chobantonov/jsonforms-react-renderer-common/controls/inputAdornments";
25
+ import { ErrorSummaryList as Qe, ObjectErrorContext as $e, useAdditionalPropertyErrors as et, useErrorFeedback as tt, useNameConstraintMessage as nt, usePathErrorIndicator as rt, usePropertyNameErrors as it } from "@chobantonov/jsonforms-react-renderer-common/validation/errorSummary";
26
+ import at from "@ant-design/icons/ExclamationCircleFilled";
27
+ import { CellModeProvider as ot, useCellMode as st, useCellMode as ct } from "@chobantonov/jsonforms-react-renderer-common/cells/cellMode";
28
+ import { Paths as lt, Resolve as ut, and as J, categorizationHasCategory as dt, composePaths as ft, computeLabel as pt, createCombinatorRenderInfos as mt, createControlElement as ht, createDefaultValue as gt, defaultErrorTranslator as _t, deriveLabelForUISchemaElement as vt, deriveTypes as yt, encode as bt, errorsAt as xt, formatErrorMessage as St, formatIs as Ct, getCombinedErrorMessage as wt, getFirstPrimitiveProp as Tt, getI18nKey as Et, hasType as Dt, isAnyOfControl as Ot, isBooleanControl as kt, isControl as At, isDateControl as jt, isDateTimeControl as Mt, isDescriptionHidden as Nt, isEnumControl as Pt, isIntegerControl as Ft, isNumberControl as It, isNumberFormatControl as Lt, isObjectArrayControl as Rt, isObjectArrayWithNesting as zt, isOneOfControl as Bt, isOneOfEnumControl as Vt, isPrimitiveArrayControl as Ht, isRangeControl as Ut, isStringControl as Wt, isTimeControl as Gt, optionIs as Kt, or as qt, rankWith as Y, resolveSchema as Jt, schemaMatches as Yt, schemaSubPathMatches as Xt, schemaTypeIs as Zt, uiTypeIs as X, withIncreasedRank as Qt } from "@jsonforms/core";
29
+ import $t from "lodash/toNumber";
30
+ import { useCompositeCellPresentation as en } from "@chobantonov/jsonforms-react-renderer-common/cells/useCompositeCellPresentation";
31
+ import { findDetailUISchema as tn, resolveEditorDetail as nn } from "@chobantonov/jsonforms-react-renderer-common/core/detailUiSchema";
32
+ import { CellSummary as rn, ItemProvider as an } from "@chobantonov/jsonforms-react-renderer-common/cells/CellSummary";
33
+ import on from "@ant-design/icons/CloseOutlined";
34
+ import { useCompositeDraft as sn } from "@chobantonov/jsonforms-react-renderer-common/cells/useCompositeDraft";
35
+ import { ExclamationCircleOutlined as cn, EyeInvisibleOutlined as ln, EyeOutlined as un, FullscreenExitOutlined as dn, FullscreenOutlined as fn } from "@ant-design/icons";
36
+ import { useDetailDialog as pn } from "@chobantonov/jsonforms-react-renderer-common/interaction/detailDialog";
37
+ import { PendingChangesProvider as mn, PendingChangesProvider as hn, useRegisterPendingChange as gn } from "@chobantonov/jsonforms-react-renderer-common/interaction/pendingChanges";
38
+ import { compositeCellTester as _n } from "@chobantonov/jsonforms-react-renderer-common/cells/compositeCellTester";
39
+ import { MixedCodeControl as vn, MixedDetailControl as yn, MixedNodeControl as bn } from "@chobantonov/jsonforms-react-renderer-common/mixed/MixedDetailControl";
40
+ import { mixedParentNode as xn } from "@chobantonov/jsonforms-react-renderer-common/mixed/mixedTreeActions";
41
+ import { useMixedRenderer as Sn } from "@chobantonov/jsonforms-react-renderer-common/mixed/useMixedRenderer";
42
+ import { isArrayElementPath as Cn, isArrayElementPath as wn, isMixedControl as Tn, isMixedSchema as En, mixedControlTester as Dn, schemaForType as On, schemaForType as kn } from "@chobantonov/jsonforms-react-renderer-common/mixed/mixedSchema";
43
+ import { visuallyHidden as An } from "@chobantonov/jsonforms-react-renderer-common/interaction/visuallyHidden";
44
+ import { filterErrorsBeforeTouch as jn, usePreTouchErrors as Mn } from "@chobantonov/jsonforms-react-renderer-common/validation/preTouchErrors";
45
+ import { addChoice as Nn, arrayChoiceItemErrors as Pn, arrayChoicesOf as Fn, asArrayValue as In, canAddChoice as Ln, canRemoveChoice as Rn, hasStringItems as zn, isChipsControl as Bn, isMultiSelectControl as Vn, isSelected as Hn, removeChoice as Un, removeChoiceAt as Wn, resolveItemSchema as Gn, sameChoice as Kn } from "@chobantonov/jsonforms-react-renderer-common/collections/arrayChoices";
46
+ import { buildErrorIndex as qn, displayableErrors as Jn, displayableErrors as Yn, errorDataPath as Xn, resolveIndicatorOption as Zn, sharedErrorIndex as Qn, useContainerValidation as $n } from "@chobantonov/jsonforms-react-renderer-common/validation/validationIndicator";
47
+ import { useTupleControl as er } from "@chobantonov/jsonforms-react-renderer-common/tuple/useTupleControl";
48
+ import { TupleControlContent as tr, connectTupleControl as nr } from "@chobantonov/jsonforms-react-renderer-common/tuple/TupleControlContent";
49
+ import { UNCONSTRAINED_TYPES as rr, isComplexTupleSchema as ir, resolveTupleSchema as ar, tupleControlTester as or, tupleDefinition as sr, tupleEmptyValue as cr, tupleFieldOwnsLabel as lr, tupleInitialValue as ur, tupleRenderSchema as dr } from "@chobantonov/jsonforms-react-renderer-common/tuple/tupleSchema";
50
+ import { useTupleAdditionalItems as fr } from "@chobantonov/jsonforms-react-renderer-common/tuple/useTupleAdditionalItems";
51
+ import pr from "@ant-design/icons/PlusOutlined";
52
+ import { TupleField as mr } from "@chobantonov/jsonforms-react-renderer-common/tuple/TupleField";
53
+ import { AllOfControl as hr, AllOfRenderer as gr, allOfControlTester as _r } from "@chobantonov/jsonforms-react-renderer-common/composition/AllOfRenderer";
54
+ import { CombinatorBranch as vr } from "@chobantonov/jsonforms-react-renderer-common/composition/CombinatorBranch";
55
+ import { CombinatorProperties as yr } from "@chobantonov/jsonforms-react-renderer-common/composition/CombinatorProperties";
56
+ import { confirmationRequired as br, fallbackConfirmationPolicy as xr, isComplexValue as Sr, isDiscardableValue as Cr, resolveConfirmationPolicy as wr, shouldConfirm as Tr } from "@chobantonov/jsonforms-react-renderer-common/interaction/confirmation";
57
+ import { CollectionErrorNavigation as Er, RowErrorCount as Dr } from "@chobantonov/jsonforms-react-renderer-common/collections/CollectionErrorNavigation";
58
+ import { ColumnResizeHandle as Or, useColumnWidths as kr } from "@chobantonov/jsonforms-react-renderer-common/collections/columnResize";
59
+ import { tableColumnFields as Ar, tableColumnStyle as jr } from "@chobantonov/jsonforms-react-renderer-common/collections/tableColumns";
60
+ import { useTableSelection as Mr } from "@chobantonov/jsonforms-react-renderer-common/collections/useTableSelection";
61
+ import { useCollectionPagination as Nr } from "@chobantonov/jsonforms-react-renderer-common/collections/collectionPagination";
62
+ import { createRowDetailFrame as Pr, createRowDetailToggle as Fr, useRowDetail as Ir } from "@chobantonov/jsonforms-react-renderer-common/collections/rowDetail";
63
+ import Lr from "@ant-design/icons/ArrowDownOutlined";
64
+ import Rr from "@ant-design/icons/ArrowUpOutlined";
65
+ import zr from "@ant-design/icons/DeleteFilled";
66
+ import Br from "lodash/range";
67
+ import Vr from "lodash/startCase";
68
+ import Hr from "lodash/union";
69
+ import Z from "lodash/merge";
70
+ import Ur from "@ant-design/icons/DownOutlined";
71
+ import Wr from "@ant-design/icons/UpOutlined";
72
+ import { useArrayPanelState as Gr } from "@chobantonov/jsonforms-react-renderer-common/collections/useArrayPanelState";
73
+ import Kr from "lodash/isEmpty";
74
+ import qr from "dayjs";
75
+ import { formatDate as Jr, formatDate as Yr, parseDateValue as Xr } from "@chobantonov/jsonforms-react-renderer-common/formats/dateValues";
76
+ import { useEffectiveElements as Zr, useEffectiveElements as Qr, withAjvProps as $r } from "@chobantonov/jsonforms-react-renderer-common/layout/layoutContext";
77
+ import { containerStyle as ei, itemSizing as ti, resolveGap as ni, resolveGridColumns as ri } from "@chobantonov/jsonforms-react-renderer-common/layout/layoutSizing";
78
+ import { useDebouncedChange as ii } from "@chobantonov/jsonforms-react-renderer-common/controls/useDebouncedChange";
79
+ import { useFocus as ai } from "@chobantonov/jsonforms-react-renderer-common/controls/useFocus";
80
+ import { bgRendererLocale as oi, i18nDefaults as si } from "@chobantonov/jsonforms-react-renderer-common/locale/index";
81
+ import { useClearAffordance as ci } from "@chobantonov/jsonforms-react-renderer-common/controls/useClearAffordance";
82
+ import { preventsEmpty as li } from "@chobantonov/jsonforms-react-renderer-common/cells/compositeActions";
83
+ import { JSONFORMS_CONFIG_KEY as ui, JSONFORMS_EXTENDED_CONFIG_KEY as di } from "@chobantonov/jsonforms-react-renderer-common/core/configNamespaces";
84
+ import { toCommittableNumber as fi } from "@chobantonov/jsonforms-react-renderer-common/controls/numeric";
85
+ import { compositeSummary as pi } from "@chobantonov/jsonforms-react-renderer-common/cells/compositeSummary";
86
+ import { defaultRendererLocales as mi, getRendererLocales as hi, registerRendererLocale as gi, rendererDefault as _i, resolveRendererLocale as vi, setRendererLocales as yi } from "@chobantonov/jsonforms-react-renderer-common/locale/rendererLocale";
87
+ import { ObjectDetailContext as bi, createObjectRenderer as xi, objectControlTester as Si } from "@chobantonov/jsonforms-react-renderer-common/objects/ObjectDetail";
88
+ import { renamePropertyKey as Ci } from "@chobantonov/jsonforms-react-renderer-common/objects/additionalProperties";
89
+ import { useAdditionalPropertyActions as wi, useAdditionalPropertyEntries as Ti } from "@chobantonov/jsonforms-react-renderer-common/objects/useAdditionalPropertyEntries";
90
+ import { DynamicPropertyProvider as Ei, clearedDynamicPropertyValue as Di, clearedDynamicPropertyValue as Oi, useDynamicProperty as ki } from "@chobantonov/jsonforms-react-renderer-common/objects/dynamicProperties";
91
+ import { assignOwnProperty as Ai, needsIsolatedEditor as ji, validateAdditionalPropertyName as Mi } from "@chobantonov/jsonforms-react-renderer-common/objects/additionalPropertyName";
92
+ import { IsolatedPropertyEditor as Ni } from "@chobantonov/jsonforms-react-renderer-common/objects/IsolatedPropertyEditor";
93
+ import { literalPropertySchema as Pi } from "@chobantonov/jsonforms-react-renderer-common/objects/literalPropertySchema";
94
+ import { useCombinatorSelection as Fi } from "@chobantonov/jsonforms-react-renderer-common/composition/useCombinatorSelection";
95
+ import { discriminatorBranch as Ii } from "@chobantonov/jsonforms-react-renderer-common/composition/discriminatorBranch";
96
+ import { branchChangeData as Li, clearedBranchValue as Ri, discardedByBranchChange as zi, isUnselectedBranchValue as Bi } from "@chobantonov/jsonforms-react-renderer-common/composition/combinators";
97
+ import { ScalarCompositionControl as Vi } from "@chobantonov/jsonforms-react-renderer-common/composition/ScalarCompositionControl";
98
+ import { scalarCompositionTester as Hi } from "@chobantonov/jsonforms-react-renderer-common/composition/useScalarComposition";
99
+ import { ItemValidationIndicator as Ui } from "@chobantonov/jsonforms-react-renderer-common/validation/ItemValidationIndicator";
100
+ import { resolveCollapsed as Wi, useGroupHeaderTitle as Gi, useGroupState as Ki } from "@chobantonov/jsonforms-react-renderer-common/layout/groupState";
101
+ import qi from "lodash/map";
102
+ import { getControlHelp as Ji } from "@chobantonov/jsonforms-react-renderer-common/controls/controlHelp";
103
+ import { specDateSaveFormat as Yi, specDateTimeSaveFormat as Xi, specTimeSaveFormat as Zi, warnOnSaveFormat as Qi } from "@chobantonov/jsonforms-react-renderer-common/formats/temporalFormats";
104
+ import { effectiveRestrict as $i, resolveDataBounds as ea, temporalBounds as ta } from "@chobantonov/jsonforms-react-renderer-common/formats/temporalBounds";
105
+ import { useMixedScalar as na } from "@chobantonov/jsonforms-react-renderer-common/mixed/mixedScalar";
106
+ import ra from "lodash/every";
107
+ import ia from "lodash/isArray";
108
+ import aa from "lodash/isString";
109
+ import oa from "lodash/isEqual";
110
+ import { categoryKey as sa, useCategorySelection as ca } from "@chobantonov/jsonforms-react-renderer-common/layout/categoryState";
111
+ export * from "@chobantonov/jsonforms-react-renderer-common/composition/CombinatorProperties";
112
+ // \0rolldown/runtime.js
113
+ var la = Object.defineProperty, ua = (e, t) => {
114
+ let n = {};
115
+ for (var r in e) la(n, r, {
116
+ get: e[r],
117
+ enumerable: !0
118
+ });
119
+ return t || la(n, Symbol.toStringTag, { value: "Module" }), n;
120
+ }, da = () => {
121
+ let { t: e, pending: t, request: n, close: r, confirm: i, title: a, message: o } = ae();
122
+ return {
123
+ request: n,
124
+ dialog: t ? /* @__PURE__ */ U(D, {
125
+ open: !0,
126
+ title: a,
127
+ okText: e("confirm.accept"),
128
+ cancelText: e("confirm.decline"),
129
+ okButtonProps: { danger: t.operation === "delete" },
130
+ onOk: i,
131
+ onCancel: r,
132
+ "data-confirm": t.operation,
133
+ children: /* @__PURE__ */ U("p", { children: o })
134
+ }) : null
135
+ };
136
+ };
137
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
138
+ function fa(e) {
139
+ "@babel/helpers - typeof";
140
+ return fa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
141
+ return typeof e;
142
+ } : function(e) {
143
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
144
+ }, fa(e);
145
+ }
146
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
147
+ function pa(e, t) {
148
+ if (fa(e) != "object" || !e) return e;
149
+ var n = e[Symbol.toPrimitive];
150
+ if (n !== void 0) {
151
+ var r = n.call(e, t || "default");
152
+ if (fa(r) != "object") return r;
153
+ throw TypeError("@@toPrimitive must return a primitive value.");
154
+ }
155
+ return (t === "string" ? String : Number)(e);
156
+ }
157
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
158
+ function ma(e) {
159
+ var t = pa(e, "string");
160
+ return fa(t) == "symbol" ? t : t + "";
161
+ }
162
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
163
+ function ha(e, t, n) {
164
+ return (t = ma(t)) in e ? Object.defineProperty(e, t, {
165
+ value: n,
166
+ enumerable: !0,
167
+ configurable: !0,
168
+ writable: !0
169
+ }) : e[t] = n, e;
170
+ }
171
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/objectSpread2.js
172
+ function ga(e, t) {
173
+ var n = Object.keys(e);
174
+ if (Object.getOwnPropertySymbols) {
175
+ var r = Object.getOwnPropertySymbols(e);
176
+ t && (r = r.filter(function(t) {
177
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
178
+ })), n.push.apply(n, r);
179
+ }
180
+ return n;
181
+ }
182
+ function Q(e) {
183
+ for (var t = 1; t < arguments.length; t++) {
184
+ var n = arguments[t] == null ? {} : arguments[t];
185
+ t % 2 ? ga(Object(n), !0).forEach(function(t) {
186
+ ha(e, t, n[t]);
187
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ga(Object(n)).forEach(function(t) {
188
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
189
+ });
190
+ }
191
+ return e;
192
+ }
193
+ // src/layouts/ContainerIndicator.tsx
194
+ var _a = ({ label: e, color: t, children: n, marker: r }) => {
195
+ let { token: i } = V.useToken();
196
+ return /* @__PURE__ */ U(z, {
197
+ title: e,
198
+ trigger: ["hover", "focus"],
199
+ children: /* @__PURE__ */ U("span", Q(Q({
200
+ role: "img",
201
+ "aria-label": e,
202
+ tabIndex: 0
203
+ }, r), {}, {
204
+ style: {
205
+ color: t,
206
+ display: "inline-flex",
207
+ verticalAlign: "middle",
208
+ alignItems: "center",
209
+ fontSize: i.fontSize,
210
+ lineHeight: 0
211
+ },
212
+ children: n
213
+ }))
214
+ });
215
+ }, va = () => /* @__PURE__ */ U("svg", {
216
+ viewBox: "64 64 896 896",
217
+ width: "1em",
218
+ height: "1em",
219
+ fill: "currentColor",
220
+ focusable: "false",
221
+ "aria-hidden": "true",
222
+ children: /* @__PURE__ */ U("circle", {
223
+ cx: "512",
224
+ cy: "512",
225
+ r: "224"
226
+ })
227
+ }), ya = () => /* @__PURE__ */ U(fe, { rev: void 0 }), ba = ({ count: e }) => {
228
+ let { token: t } = V.useToken(), n = G()(e === void 0 ? "validation.containerHasErrors" : e === 1 ? "validation.containerError" : "validation.containerErrors", { count: e });
229
+ return /* @__PURE__ */ U(_a, {
230
+ label: n,
231
+ color: t.colorError,
232
+ marker: {
233
+ "data-container-validation-indicator": !0,
234
+ "data-error-count": e
235
+ },
236
+ children: /* @__PURE__ */ U(ya, {})
237
+ });
238
+ }, xa = ({ disabled: e, error: t, oldName: n, onCancel: r, onChange: i, onRename: a, value: o }) => {
239
+ let s = G();
240
+ return /* @__PURE__ */ W(D, {
241
+ cancelText: s("combinator.cancel"),
242
+ destroyOnHidden: !0,
243
+ okButtonProps: { disabled: e },
244
+ okText: s("additionalProperties.renameConfirm"),
245
+ onCancel: r,
246
+ onOk: a,
247
+ open: n !== null,
248
+ title: s("additionalProperties.renameTitle"),
249
+ children: [/* @__PURE__ */ U(B.Paragraph, {
250
+ type: "secondary",
251
+ children: s("additionalProperties.renameDialogDescription")
252
+ }), /* @__PURE__ */ U(S.Item, {
253
+ help: t,
254
+ label: s("additionalProperties.renamePropertyNameLabel"),
255
+ validateStatus: t ? "error" : void 0,
256
+ children: /* @__PURE__ */ U(w, {
257
+ autoFocus: !0,
258
+ "aria-label": s("additionalProperties.renamePropertyNameLabel"),
259
+ onChange: (e) => i(e.currentTarget.value),
260
+ onPressEnter: () => {
261
+ e || a();
262
+ },
263
+ value: o
264
+ })
265
+ })]
266
+ });
267
+ }, Sa = /* @__PURE__ */ new Map([
268
+ ["array", "[]"],
269
+ ["object", "{}"],
270
+ ["string", /* @__PURE__ */ U(_e, {}, "AlignLeftOutlined")],
271
+ ["integer", "#"],
272
+ ["number", "#"],
273
+ ["boolean", /* @__PURE__ */ U(ve, {}, "CheckOutlined")],
274
+ ["null", /* @__PURE__ */ U(be, {}, "StopOutlined")]
275
+ ]), Ca = ({ type: e }) => {
276
+ var t;
277
+ let n = ce()("mixed.typedValue", { type: de()(`mixed.type.${e == null ? "unknown" : e}`, e == null ? "unknown" : e) }), r = (t = Sa.get(e == null ? "unknown" : e)) == null ? /* @__PURE__ */ U(ye, {}) : t;
278
+ return /* @__PURE__ */ U("span", {
279
+ "aria-label": n,
280
+ className: "jsonforms-mixed-tree-type-icon",
281
+ role: "img",
282
+ style: {
283
+ fontFamily: "monospace",
284
+ fontWeight: 600
285
+ },
286
+ title: n,
287
+ children: r
288
+ });
289
+ }, wa = (e, t) => Se(e).toLowerCase().includes(t) || e.children.some((e) => wa(e, t)), Ta = ({ domainTree: e, renderIndicator: t, canDelete: n, canRename: r, onDelete: i, onRename: a, onSelect: o, root: c, selectedPath: u, validateRename: d }) => {
290
+ let f = G(), [m, h] = l(""), [g, _] = l(!1), [v, y] = l([xe([])]), [b, S] = l(null), [C, T] = l(""), E = m.trim().toLowerCase(), D = /* @__PURE__ */ new Map(), O = b ? d(b, C.trim()) : void 0, k = s(() => {
291
+ if (!E) return [];
292
+ let e = [], t = (n) => {
293
+ wa(n, E) && ((n.type === "object" || n.type === "array") && e.push(xe(n.path)), n.children.forEach(t));
294
+ };
295
+ return t(c), e;
296
+ }, [E, c]), A = JSON.stringify(u), [j, M] = l();
297
+ if (j !== A) {
298
+ M(A);
299
+ let e = u.map((e, t) => xe(u.slice(0, t)));
300
+ y((t) => [.../* @__PURE__ */ new Set([
301
+ ...t,
302
+ xe([]),
303
+ ...e
304
+ ])]);
305
+ }
306
+ let N = () => {
307
+ S(null), T("");
308
+ }, P = (a) => {
309
+ let o = a.type === "object" || a.type === "array";
310
+ if (a.path.length > 0 && !o && !g && xe(u) !== xe(a.path) && !E || E && !wa(a, E)) return null;
311
+ let s = xe(a.path);
312
+ D.set(s, a);
313
+ let c = a.path.length === 0, l = !c && n(a), d = (!c || e) && r(a);
314
+ return {
315
+ icon: /* @__PURE__ */ U(Ca, { type: a.type }),
316
+ key: s,
317
+ title: /* @__PURE__ */ W(x, {
318
+ align: "center",
319
+ className: "jsonforms-mixed-tree-row",
320
+ gap: 4,
321
+ "data-recursive-node": e ? xe(a.path) : void 0,
322
+ children: [
323
+ c && !e ? null : /* @__PURE__ */ U(B.Text, {
324
+ className: "jsonforms-mixed-tree-label",
325
+ ellipsis: { tooltip: Se(a) },
326
+ children: Se(a)
327
+ }),
328
+ t == null ? void 0 : t(a),
329
+ /* @__PURE__ */ W(x, {
330
+ className: `jsonforms-mixed-tree-actions${c && !e ? " root-actions" : ""}`,
331
+ gap: 2,
332
+ children: [
333
+ c && !e ? /* @__PURE__ */ U(z, {
334
+ title: f(g ? "mixed.hidePrimitives" : "mixed.showPrimitives"),
335
+ children: /* @__PURE__ */ U(p, {
336
+ "aria-label": f(g ? "mixed.hidePrimitives" : "mixed.showPrimitives"),
337
+ icon: U(g ? ge : he, {}),
338
+ onClick: (e) => {
339
+ e.stopPropagation(), _((e) => !e);
340
+ },
341
+ size: "small",
342
+ type: "text"
343
+ })
344
+ }) : null,
345
+ d ? /* @__PURE__ */ U(z, {
346
+ title: f("mixed.rename"),
347
+ children: /* @__PURE__ */ U(p, {
348
+ "aria-label": f("mixed.renameNamed", { name: Se(a) }),
349
+ icon: /* @__PURE__ */ U(me, {}),
350
+ onClick: (t) => {
351
+ t.stopPropagation(), S(a), T(e ? a.label : String(a.path[a.path.length - 1]));
352
+ },
353
+ size: "small",
354
+ type: "text"
355
+ })
356
+ }) : null,
357
+ l ? /* @__PURE__ */ U(z, {
358
+ title: f("mixed.delete"),
359
+ children: /* @__PURE__ */ U(p, {
360
+ "aria-label": f("mixed.deleteNamed", { name: Se(a) }),
361
+ danger: !0,
362
+ icon: /* @__PURE__ */ U(pe, {}),
363
+ onClick: (e) => {
364
+ e.stopPropagation(), i(a);
365
+ },
366
+ size: "small",
367
+ type: "text"
368
+ })
369
+ }) : null
370
+ ]
371
+ })
372
+ ]
373
+ }),
374
+ children: a.children.map(P).filter((e) => !!e)
375
+ };
376
+ }, F = [P(c)].filter((e) => !!e);
377
+ return /* @__PURE__ */ W(x, {
378
+ className: "jsonforms-mixed-tree",
379
+ vertical: !0,
380
+ gap: "small",
381
+ children: [
382
+ /* @__PURE__ */ U("style", { children: "\n .jsonforms-mixed-tree .ant-tree-treenode { align-items: center; display: flex; width: 100%; }\n .jsonforms-mixed-tree .ant-tree-indent-unit { width: 20px; }\n .jsonforms-mixed-tree .ant-tree-node-content-wrapper { display: flex; flex: 1 1 auto; min-width: 0; }\n .jsonforms-mixed-tree .ant-tree-iconEle { flex: 0 0 24px; margin-inline-end: 0; text-align: center; }\n .jsonforms-mixed-tree .ant-tree-title { display: block; flex: 1 1 auto; min-width: 0; }\n .jsonforms-mixed-tree .ant-tree-list-holder-inner { min-width: max-content; }\n .jsonforms-mixed-tree-row { min-width: 0; width: 100%; }\n .jsonforms-mixed-tree-label { min-width: 0; flex: 1 1 auto; }\n .jsonforms-mixed-tree-actions { margin-inline-start: auto; flex: 0 0 auto; opacity: 0; visibility: hidden; }\n .jsonforms-mixed-tree-actions.root-actions,\n .ant-tree-node-content-wrapper:hover .jsonforms-mixed-tree-actions,\n .ant-tree-node-content-wrapper:focus-within .jsonforms-mixed-tree-actions { opacity: 1; visibility: visible; }\n .jsonforms-mixed-tree-actions .ant-btn { height: 24px; padding: 0; width: 24px; }\n .jsonforms-mixed-tree-type-icon { align-items: center; display: inline-flex; justify-content: center; width: 20px; }\n " }),
383
+ /* @__PURE__ */ U(w.Search, {
384
+ allowClear: !0,
385
+ "aria-label": f("mixed.searchLabel"),
386
+ onChange: (e) => h(e.currentTarget.value),
387
+ placeholder: f("mixed.searchPlaceholder"),
388
+ value: m
389
+ }),
390
+ /* @__PURE__ */ U(re, {
391
+ "aria-label": f("mixed.treeLabel"),
392
+ autoExpandParent: !!E,
393
+ blockNode: !0,
394
+ expandedKeys: E ? k : v,
395
+ onExpand: (e) => y(e),
396
+ onSelect: (e) => {
397
+ let t = e[0] ? D.get(String(e[0])) : void 0;
398
+ t && o(t);
399
+ },
400
+ selectedKeys: [xe(u)],
401
+ showIcon: !0,
402
+ treeData: F
403
+ }),
404
+ /* @__PURE__ */ U(xa, {
405
+ disabled: !b || !!O || !C.trim() || C.trim() === (e ? b.label : String(b.path[b.path.length - 1])),
406
+ error: O,
407
+ oldName: b ? e ? b.label : String(b.path[b.path.length - 1]) : null,
408
+ onCancel: N,
409
+ onChange: T,
410
+ onRename: () => {
411
+ b && !O && (a(b, C.trim()), N());
412
+ },
413
+ value: C
414
+ })
415
+ ]
416
+ });
417
+ }, Ea = oe(Ta, ba, ({ children: e, onClick: t }) => /* @__PURE__ */ U(p, {
418
+ type: "link",
419
+ onClick: t,
420
+ children: e
421
+ }), da), Da = we(da, () => {
422
+ let { token: e } = V.useToken();
423
+ return {
424
+ border: e.colorBorder,
425
+ selected: e.colorPrimary,
426
+ focus: e.colorPrimary,
427
+ background: e.colorBgContainer,
428
+ error: e.colorError
429
+ };
430
+ }), Oa = ({ message: e, cell: t, severity: n }) => {
431
+ let { token: r } = V.useToken(), i = n === "warning" ? r.colorWarning : r.colorError;
432
+ return t ? /* @__PURE__ */ U(k, {
433
+ content: e,
434
+ trigger: [
435
+ "hover",
436
+ "focus",
437
+ "click"
438
+ ],
439
+ children: /* @__PURE__ */ U(p, {
440
+ type: "text",
441
+ size: "small",
442
+ "aria-label": e,
443
+ style: {
444
+ color: i,
445
+ flexShrink: 0
446
+ },
447
+ icon: U(n === "warning" ? We : fe, {})
448
+ })
449
+ }) : /* @__PURE__ */ U(B.Text, {
450
+ style: { color: i },
451
+ role: "alert",
452
+ "data-file-rejection": !0,
453
+ children: e
454
+ });
455
+ }, ka = 24, Aa = 46, ja = ({ clearable: e = !0, data: t, enabled: n, onClear: r, visible: i = !0, offset: a = 24, inline: o = !1 }) => {
456
+ let s = G();
457
+ return !e || !n || t == null || t === "" || o && !i ? null : /* @__PURE__ */ U(z, {
458
+ title: s("control.clearValue"),
459
+ children: /* @__PURE__ */ U(p, {
460
+ "aria-label": s("control.clearValue"),
461
+ icon: /* @__PURE__ */ U(Ge, {}),
462
+ onClick: (e) => {
463
+ e.stopPropagation(), r();
464
+ },
465
+ onMouseDown: (e) => e.preventDefault(),
466
+ shape: "circle",
467
+ size: "small",
468
+ style: Q({
469
+ opacity: +!!i,
470
+ pointerEvents: i ? "auto" : "none",
471
+ transition: "opacity 120ms ease"
472
+ }, o ? {} : {
473
+ insetBlockStart: "50%",
474
+ insetInlineEnd: `calc(${a}px + var(--jf-end-adornment-space, 0px))`,
475
+ position: "absolute",
476
+ transform: "translateY(-50%)",
477
+ zIndex: 2
478
+ }),
479
+ type: "text"
480
+ })
481
+ });
482
+ }, Ma = ({ children: e, clearable: t, data: n, enabled: r, onClear: i, offset: a }) => {
483
+ let [o, s] = l(!1), c = typeof e == "function", u = /* @__PURE__ */ U(ja, {
484
+ clearable: t,
485
+ data: n,
486
+ enabled: r,
487
+ inline: c,
488
+ offset: a,
489
+ onClear: i,
490
+ visible: o
491
+ });
492
+ return /* @__PURE__ */ W("span", {
493
+ className: "jsonforms-antd-clearable-input",
494
+ onBlurCapture: (e) => {
495
+ e.currentTarget.contains(e.relatedTarget) || s(!1);
496
+ },
497
+ onFocusCapture: () => s(!0),
498
+ onMouseEnter: () => s(!0),
499
+ onMouseLeave: () => s(!1),
500
+ style: {
501
+ display: "block",
502
+ minWidth: 0,
503
+ position: "relative"
504
+ },
505
+ children: [c ? e(u) : e, c ? null : u]
506
+ });
507
+ }, Na = ({ errors: e, path: t, children: n, local: r = !1 }) => {
508
+ let { setOpen: i, count: a, entries: o, message: s } = tt(e, t, r);
509
+ return a <= 1 ? /* @__PURE__ */ U(z, {
510
+ onOpenChange: i,
511
+ trigger: ["hover", "focus"],
512
+ title: /* @__PURE__ */ U("span", {
513
+ style: { whiteSpace: "pre-line" },
514
+ children: s
515
+ }),
516
+ children: n
517
+ }) : /* @__PURE__ */ U(k, {
518
+ onOpenChange: i,
519
+ trigger: [
520
+ "hover",
521
+ "focus",
522
+ "click"
523
+ ],
524
+ content: /* @__PURE__ */ U(Qe, {
525
+ entries: o,
526
+ renderToggle: (e, t, n) => /* @__PURE__ */ U(p, {
527
+ type: "link",
528
+ onClick: t,
529
+ "aria-expanded": n,
530
+ children: e
531
+ })
532
+ }),
533
+ children: n
534
+ });
535
+ }, Pa = ({ path: e, id: t, htmlFor: n, label: r, required: i, hideRequiredAsterisk: a, errors: o, help: s, style: c, children: l, adornmentSchema: u, adornmentOptions: d }) => {
536
+ var f;
537
+ let p = ct(), m = Ae(), h = i && !(a == null ? (f = m.config) != null && f.hideRequiredAsterisk : a), g = !o || o.length === 0, _ = () => ({
538
+ success: !1,
539
+ warning: !1,
540
+ validating: !1,
541
+ error: /* @__PURE__ */ U(Na, {
542
+ errors: o == null ? "" : o,
543
+ path: e,
544
+ local: !0,
545
+ children: /* @__PURE__ */ U(at, {
546
+ tabIndex: 0,
547
+ role: "img",
548
+ "aria-label": o,
549
+ style: {
550
+ pointerEvents: "auto",
551
+ cursor: "help"
552
+ }
553
+ })
554
+ })
555
+ }), v = d ? /* @__PURE__ */ U(Ze, {
556
+ schema: u,
557
+ options: d,
558
+ children: l
559
+ }) : l;
560
+ return p ? /* @__PURE__ */ U(S.Item, {
561
+ required: h,
562
+ hasFeedback: { icons: _ },
563
+ validateStatus: g ? "success" : "error",
564
+ style: Q({ marginBottom: 0 }, c),
565
+ htmlFor: n,
566
+ id: t,
567
+ children: v
568
+ }) : /* @__PURE__ */ U(S.Item, {
569
+ required: h,
570
+ hasFeedback: { icons: _ },
571
+ validateStatus: g ? "success" : "error",
572
+ label: r,
573
+ help: s == null ? null : s,
574
+ style: c,
575
+ htmlFor: n,
576
+ id: t,
577
+ children: v
578
+ });
579
+ };
580
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/objectWithoutPropertiesLoose.js
581
+ function Fa(e, t) {
582
+ if (e == null) return {};
583
+ var n = {};
584
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
585
+ if (t.includes(r)) continue;
586
+ n[r] = e[r];
587
+ }
588
+ return n;
589
+ }
590
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/objectWithoutProperties.js
591
+ function Ia(e, t) {
592
+ if (e == null) return {};
593
+ var n, r, i = Fa(e, t);
594
+ if (Object.getOwnPropertySymbols) {
595
+ var a = Object.getOwnPropertySymbols(e);
596
+ for (r = 0; r < a.length; r++) n = a[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
597
+ }
598
+ return i;
599
+ }
600
+ // \0@oxc-project+runtime@0.156.0/helpers/esm/asyncToGenerator.js
601
+ function La(e, t, n, r, i, a, o) {
602
+ try {
603
+ var s = e[a](o), c = s.value;
604
+ } catch (e) {
605
+ n(e);
606
+ return;
607
+ }
608
+ s.done ? t(c) : Promise.resolve(c).then(r, i);
609
+ }
610
+ function Ra(e) {
611
+ return function() {
612
+ var t = this, n = arguments;
613
+ return new Promise(function(r, i) {
614
+ var a = e.apply(t, n);
615
+ function o(e) {
616
+ La(a, r, i, o, s, "next", e);
617
+ }
618
+ function s(e) {
619
+ La(a, r, i, o, s, "throw", e);
620
+ }
621
+ o(void 0);
622
+ });
623
+ };
624
+ }
625
+ // src/antd-controls/AntdFile.tsx
626
+ var za = ["type", "color"], Ba = ["style"], Va = (e) => {
627
+ let { type: t, color: n } = e, r = Ia(e, za);
628
+ return /* @__PURE__ */ U(p, Q(Q({}, r), {}, {
629
+ htmlType: "button",
630
+ type: "text",
631
+ size: "small"
632
+ }));
633
+ }, Ha = (e) => {
634
+ let { style: t } = e, n = Ia(e, Ba), { token: r } = V.useToken();
635
+ return /* @__PURE__ */ U("span", Q(Q({}, n), {}, { style: Q(Q({}, t), {}, {
636
+ background: r.colorFillSecondary,
637
+ color: r.colorText,
638
+ fontSize: r.fontSizeSM
639
+ }) }));
640
+ }, Ua = (e, t, n = 2) => {
641
+ if (e === 0) return `0 ${t}`;
642
+ let r = 1024, i = n < 0 ? 0 : n, a = [
643
+ t,
644
+ "KB",
645
+ "MB",
646
+ "GB",
647
+ "TB",
648
+ "PB",
649
+ "EB",
650
+ "ZB",
651
+ "YB"
652
+ ], o = Math.floor(Math.log(e) / Math.log(r));
653
+ return parseFloat((e / Math.pow(r, o)).toFixed(i)) + " " + a[o];
654
+ }, Wa = (e) => {
655
+ let t = e === void 0 ? void 0 : $t(e);
656
+ return t && t >= 0 ? t : void 0;
657
+ }, Ga = (e, t, n) => {
658
+ let r = !1, i;
659
+ return n === "min" ? (i = Wa(e == null ? void 0 : e.formatMinimum), i === void 0 && e != null && e.formatExclusiveMinimum && (i = Wa(e == null ? void 0 : e.formatExclusiveMinimum), r = !0), i === void 0 && t && (typeof t.formatMinimum == "number" || typeof t.formatMinimum == "string" ? i = Wa(t.formatMinimum) : (typeof t.formatExclusiveMinimum == "number" || typeof t.formatExclusiveMinimum == "string") && (i = Wa(t.formatExclusiveMinimum), r = !0))) : (i = Wa(e == null ? void 0 : e.formatMaximum), i === void 0 && e != null && e.formatExclusiveMaximum && (i = Wa(e == null ? void 0 : e.formatExclusiveMaximum), r = !0), i === void 0 && t && (typeof t.formatMaximum == "number" || typeof t.formatMaximum == "string" ? i = Wa(t.formatMaximum) : (typeof t.formatExclusiveMaximum == "number" || typeof t.formatExclusiveMaximum == "string") && (i = Wa(t.formatExclusiveMaximum), r = !0))), [i, r];
660
+ }, Ka = (e, t, n, r) => new Promise((i, a) => {
661
+ t.onload = () => {
662
+ let n = t.result;
663
+ if (r === "uri") i(n);
664
+ else if (r === "binary") {
665
+ let t = n.indexOf(";base64,");
666
+ i(n.substring(0, t) + `;filename=${encodeURIComponent(e.name)}` + n.substring(t));
667
+ } else i(n.substring(n.indexOf(",") + 1));
668
+ }, t.onabort = (e) => a(e), t.onerror = (e) => a(e), t.onprogress = n, t.readAsDataURL(e);
669
+ }), qa = n.memo(function(e) {
670
+ var t, r;
671
+ let { schema: i, uischema: a, path: o, handleChange: s, enabled: c, t: u, inputProps: d } = e, f = le(), m = G(), h = st(), [g, _] = l(), [v, y] = l("warning"), [b, x] = l(void 0), [S, C] = n.useState(e.data);
672
+ Object.is(S, e.data) || (C(() => e.data), x(void 0));
673
+ let T = (e) => {
674
+ let [t, n] = Ga(i, a.options, "min"), [r, s] = Ga(i, a.options, "max");
675
+ if (r && !(s ? e.size < r : e.size <= r)) {
676
+ let e = Et(i, a, o, s ? "error.formatExclusiveMaximum" : "error.formatMaximum"), t = Ua(r, m("file.bytes"));
677
+ return u(e, m("file.maximumSize", { limitText: t }), {
678
+ limitText: `${t}`,
679
+ limit: `${r}`
680
+ });
681
+ }
682
+ if (t && !(n ? e.size > t : e.size >= t)) {
683
+ let e = Et(i, a, o, n ? "error.formatExclusiveMinimum" : "error.formatMinimum"), r = Ua(t, m("file.bytes"));
684
+ return u(e, m("file.minimumSize", { limitText: r }), {
685
+ limitText: `${r}`,
686
+ limit: `${t}`
687
+ });
688
+ }
689
+ }, E = (e) => {
690
+ let t = T(e);
691
+ return !t || !e.name ? t : u("file.rejected", f("file.rejected"), {
692
+ name: e.name,
693
+ reason: t
694
+ }).replace("{name}", e.name).replace("{reason}", t);
695
+ }, D = (e) => {
696
+ y("warning");
697
+ let t = E(e);
698
+ return x(t), !t || ie.LIST_IGNORE;
699
+ }, O = function() {
700
+ var e = Ra(function* (e) {
701
+ let { onSuccess: t, onError: n, file: r, onProgress: a } = e;
702
+ try {
703
+ let e = yield Ka(r, new FileReader(), a, i.format);
704
+ x(void 0), _({
705
+ value: e,
706
+ name: r.name
707
+ }), s(o, e), t("Ok");
708
+ } catch (e) {
709
+ y("error");
710
+ let t = u("file.readFailed", f("file.readFailed"));
711
+ x(t), n({ message: t });
712
+ }
713
+ });
714
+ return function(t) {
715
+ return e.apply(this, arguments);
716
+ };
717
+ }();
718
+ if (Ye(e.schema, e.rootSchema)) return /* @__PURE__ */ U(Ke, Q(Q({}, e), {}, {
719
+ cell: h,
720
+ FeedbackComponent: Oa,
721
+ ButtonComponent: Va,
722
+ PillComponent: Ha
723
+ }));
724
+ let k = e.data ? (t = qe(e.data)) == null ? g && g.value === e.data ? g.name : u("file.attached", f("file.attached")) : t : "";
725
+ return /* @__PURE__ */ W("div", {
726
+ style: {
727
+ minWidth: 0,
728
+ width: "100%"
729
+ },
730
+ children: [/* @__PURE__ */ U(Ma, {
731
+ data: e.data,
732
+ enabled: c,
733
+ clearable: ((r = e.uischema.options) == null ? void 0 : r.clearable) !== !1,
734
+ onClear: () => {
735
+ x(void 0), s(o, void 0);
736
+ },
737
+ children: (t) => /* @__PURE__ */ U(w, {
738
+ readOnly: !0,
739
+ disabled: !c,
740
+ value: k,
741
+ title: k,
742
+ id: e.id,
743
+ "aria-label": e.path,
744
+ "aria-invalid": !!e.errors,
745
+ prefix: /* @__PURE__ */ U(ie, Q(Q({
746
+ disabled: !c,
747
+ accept: e.schema.contentMediaType,
748
+ beforeUpload: D,
749
+ customRequest: O,
750
+ listType: "text",
751
+ showUploadList: !1,
752
+ maxCount: 1,
753
+ onRemove: () => {
754
+ x(void 0), s(o, void 0);
755
+ }
756
+ }, d), {}, { children: /* @__PURE__ */ U(z, {
757
+ title: u("file.select", f("file.select")),
758
+ children: /* @__PURE__ */ U(p, {
759
+ type: "text",
760
+ size: "small",
761
+ disabled: !c,
762
+ "aria-label": u("file.select", f("file.select")),
763
+ icon: /* @__PURE__ */ U(Xe, {})
764
+ })
765
+ }) })),
766
+ suffix: /* @__PURE__ */ W(H, { children: [h && b && /* @__PURE__ */ U(Oa, {
767
+ message: b,
768
+ cell: !0,
769
+ severity: v
770
+ }), t] })
771
+ })
772
+ }), b && !h && /* @__PURE__ */ U(Oa, {
773
+ message: b,
774
+ severity: v
775
+ })]
776
+ });
777
+ }), Ja = ({ errorMessages: e, id: t, path: n, local: r }) => e ? /* @__PURE__ */ U(Na, {
778
+ errors: e,
779
+ path: n,
780
+ local: r,
781
+ children: /* @__PURE__ */ U(p, {
782
+ id: t,
783
+ "data-validation-summary": !0,
784
+ type: "text",
785
+ danger: !0,
786
+ size: "small",
787
+ "aria-label": e,
788
+ icon: /* @__PURE__ */ U(fe, {})
789
+ })
790
+ }) : null, Ya = ["options"], Xa = (e) => {
791
+ var t, r;
792
+ let { options: i = {} } = e, a = Ia(e, Ya), o = de(), s = n.useRef(null), c = pn(!!a.open, i, () => {
793
+ var e;
794
+ return (e = s.current) == null ? void 0 : e.firstElementChild;
795
+ }), [l, u] = n.useState();
796
+ !a.open && l !== void 0 && u(void 0);
797
+ let d = () => {
798
+ if (!c.maximized) {
799
+ var e;
800
+ let t = (e = s.current) == null ? void 0 : e.firstElementChild;
801
+ t != null && t.style.width && u(t.style.width);
802
+ }
803
+ c.toggle();
804
+ }, f = typeof a.styles == "function" ? a.styles({ props: a }) : a.styles, m = c.maximized ? o("dialog.restore", "Restore dialog") : o("dialog.maximize", "Maximize dialog");
805
+ return /* @__PURE__ */ U(D, Q(Q({}, a), {}, {
806
+ centered: (t = a.centered) == null || t,
807
+ width: (r = c.style.width) == null ? a.width : r,
808
+ style: Q(Q({}, a.style), {}, {
809
+ top: a.centered === !1 ? 16 : 0,
810
+ paddingBottom: 0
811
+ }),
812
+ styles: Q(Q({}, f), {}, {
813
+ container: Q(Q({}, f == null ? void 0 : f.container), {}, {
814
+ width: c.maximized ? "100%" : l,
815
+ resize: c.style.resize,
816
+ minWidth: 280,
817
+ minHeight: 160,
818
+ maxWidth: c.style.maxWidth,
819
+ height: c.style.height,
820
+ maxHeight: c.style.maxHeight,
821
+ overflow: "hidden",
822
+ display: "flex",
823
+ flexDirection: "column"
824
+ }),
825
+ body: Q(Q({}, f == null ? void 0 : f.body), {}, {
826
+ flex: "1 1 auto",
827
+ minHeight: 0,
828
+ maxHeight: void 0,
829
+ overflow: "auto"
830
+ }),
831
+ header: Q(Q({}, f == null ? void 0 : f.header), {}, { flexShrink: 0 }),
832
+ footer: Q(Q({}, f == null ? void 0 : f.footer), {}, {
833
+ flexShrink: 0,
834
+ marginTop: "auto",
835
+ paddingTop: 12,
836
+ textAlign: "end"
837
+ })
838
+ }),
839
+ modalRender: (e) => /* @__PURE__ */ U("div", {
840
+ ref: s,
841
+ style: { translate: c.style.translate },
842
+ children: e
843
+ }),
844
+ title: /* @__PURE__ */ W("div", Q(Q({}, c.dragProps), {}, {
845
+ style: Q(Q({}, c.dragProps.style), {}, { paddingRight: 56 }),
846
+ children: [a.title, c.options.maximizable !== !1 && /* @__PURE__ */ U(z, {
847
+ title: m,
848
+ children: /* @__PURE__ */ U(p, {
849
+ type: "text",
850
+ "aria-label": m,
851
+ style: {
852
+ position: "absolute",
853
+ right: 48,
854
+ top: 12
855
+ },
856
+ icon: c.maximized ? /* @__PURE__ */ U(dn, {}) : /* @__PURE__ */ U(fn, {}),
857
+ onClick: d
858
+ })
859
+ })]
860
+ }))
861
+ }));
862
+ }, Za = (e) => {
863
+ let { open: t, title: n, label: r, options: i, t: a, children: o } = e, s = sn(e), c = /* @__PURE__ */ W("div", {
864
+ style: {
865
+ display: "flex",
866
+ gap: 8,
867
+ justifyContent: "flex-end"
868
+ },
869
+ children: [
870
+ i.showEmptyButton === !0 && /* @__PURE__ */ U(z, {
871
+ title: a("composite.emptyTooltip", s.defaultMessage("composite.emptyTooltip")),
872
+ children: /* @__PURE__ */ U("span", { children: /* @__PURE__ */ U(p, {
873
+ disabled: !s.canEmpty,
874
+ onClick: s.clear,
875
+ children: s.buttonLabel(i.emptyLabel, "composite.empty")
876
+ }) })
877
+ }),
878
+ /* @__PURE__ */ U(z, {
879
+ title: a("composite.cancelTooltip", s.defaultMessage("composite.cancelTooltip")),
880
+ children: /* @__PURE__ */ U(p, {
881
+ onClick: s.cancel,
882
+ children: s.buttonLabel(i.cancelLabel, "composite.cancel")
883
+ })
884
+ }),
885
+ /* @__PURE__ */ U(z, {
886
+ title: s.conflicted ? a("composite.applyConflict", s.defaultMessage("composite.applyConflict")) : a("composite.applyTooltip", s.defaultMessage("composite.applyTooltip")),
887
+ children: /* @__PURE__ */ U("span", { children: /* @__PURE__ */ U(p, {
888
+ type: "primary",
889
+ disabled: !s.canApply,
890
+ onClick: s.apply,
891
+ children: s.buttonLabel(i.okLabel, "composite.apply")
892
+ }) })
893
+ })
894
+ ]
895
+ });
896
+ return /* @__PURE__ */ U(Xa, {
897
+ options: i.dialog,
898
+ open: t,
899
+ title: n,
900
+ onCancel: s.cancel,
901
+ footer: c,
902
+ destroyOnHidden: !0,
903
+ width: 640,
904
+ "aria-label": r,
905
+ children: /* @__PURE__ */ U(De.Provider, {
906
+ value: s.context,
907
+ children: /* @__PURE__ */ U(mn, {
908
+ changes: s.pending,
909
+ children: /* @__PURE__ */ U(ot, {
910
+ value: !1,
911
+ children: o
912
+ })
913
+ })
914
+ })
915
+ });
916
+ }, Qa = Pe(q((e) => {
917
+ var t, n, r, i, a, s, u, d, f, m, h, g, _, v, y, b, x;
918
+ let { t: S } = e, C = Ae(), { token: w } = V.useToken(), T = le(), E = da(), D = c(e);
919
+ o(() => {
920
+ D.current = e;
921
+ }, [e]);
922
+ let [O, k] = l(!1), [A, j] = l(!1), M = (t = (n = e.uischema) == null ? void 0 : n.options) == null ? {} : t, { errors: N, summary: P } = en(e, S, T), F = Array.isArray(e.data) || ((r = e.schema) == null ? void 0 : r.type) === "array", I = (i = (a = e.schema) == null ? void 0 : a.title) == null ? F ? S("composite.itemsLabel", T("composite.itemsLabel")) : S("composite.detailsLabel", T("composite.detailsLabel")) : i, L = (e) => S(e, T(e), { label: I }).replace("{label}", I), ee = nn(M.detail, (s = C.uischemas) == null ? [] : s, e.schema, e.uischema.scope, e.path, e.rootSchema, {
923
+ type: "Control",
924
+ scope: "#",
925
+ label: !1
926
+ }), R = e.enabled && !M.summaryOnly && (((u = M.summary) == null ? void 0 : u.type) !== "Label" || !!M.detail) && e.data !== void 0 && M.clearable !== !1;
927
+ return /* @__PURE__ */ W("div", {
928
+ style: {
929
+ display: "flex",
930
+ alignItems: "center",
931
+ gap: 6,
932
+ minWidth: 0
933
+ },
934
+ onMouseEnter: () => j(!0),
935
+ onMouseLeave: () => j(!1),
936
+ onFocus: () => j(!0),
937
+ onBlur: () => j(!1),
938
+ children: [
939
+ ((d = (f = M.showTypeIndicator) == null ? (m = e.config) == null ? void 0 : m.showTypeIndicator : f) != null && d) === !0 && (F || ((h = e.schema) == null ? void 0 : h.type) === "object") && /* @__PURE__ */ U("span", {
940
+ "aria-hidden": "true",
941
+ style: {
942
+ flex: "none",
943
+ opacity: .55,
944
+ lineHeight: 0
945
+ },
946
+ children: F ? "[]" : "{}"
947
+ }),
948
+ /* @__PURE__ */ U("span", {
949
+ style: {
950
+ color: P.generated && ((g = M.summary) == null ? void 0 : g.type) !== "Label" ? w.colorTextSecondary : void 0,
951
+ fontStyle: P.generated && ((_ = M.summary) == null ? void 0 : _.type) !== "Label" ? "italic" : void 0,
952
+ flex: 1,
953
+ minWidth: 0,
954
+ overflow: "hidden",
955
+ textOverflow: "ellipsis",
956
+ whiteSpace: "nowrap"
957
+ },
958
+ children: ((v = M.summary) == null ? void 0 : v.type) === "Label" ? /* @__PURE__ */ U(rn, {
959
+ schema: e.schema,
960
+ path: e.path,
961
+ uischema: M.summary
962
+ }) : P.text
963
+ }),
964
+ /* @__PURE__ */ U(Ja, {
965
+ errorMessages: N,
966
+ path: e.path,
967
+ id: `${e.path}-cell-errors`
968
+ }),
969
+ (!M.summaryOnly && ((y = M.summary) == null ? void 0 : y.type) !== "Label" || M.detail) && /* @__PURE__ */ W("span", {
970
+ style: {
971
+ display: "flex",
972
+ gap: 2,
973
+ flex: "none",
974
+ opacity: A || O ? 1 : 0,
975
+ transition: "opacity 0.2s"
976
+ },
977
+ children: [/* @__PURE__ */ U(p, {
978
+ size: "small",
979
+ type: "text",
980
+ icon: /* @__PURE__ */ U(me, {}),
981
+ onClick: () => k(!0),
982
+ title: L("composite.edit"),
983
+ "aria-label": L("composite.edit")
984
+ }), R && /* @__PURE__ */ U(p, {
985
+ size: "small",
986
+ type: "text",
987
+ danger: !0,
988
+ icon: /* @__PURE__ */ U(on, {}),
989
+ onClick: () => {
990
+ let t = e.data, n = e.path;
991
+ E.request({
992
+ catalogId: "compositeCell",
993
+ operation: "delete",
994
+ options: M,
995
+ config: e.config,
996
+ discarded: [t],
997
+ perform: () => {
998
+ var e;
999
+ let r = D.current;
1000
+ r.enabled && r.path === n && r.data === t && ((e = r.uischema.options) == null ? void 0 : e.clearable) !== !1 && r.handleChange(n, void 0);
1001
+ }
1002
+ });
1003
+ },
1004
+ title: L("composite.remove"),
1005
+ "aria-label": L("composite.remove")
1006
+ })]
1007
+ }),
1008
+ E.dialog,
1009
+ /* @__PURE__ */ U(Za, {
1010
+ open: O,
1011
+ title: (b = (x = e.schema) == null ? void 0 : x.title) == null ? S("composite.detailsTitle", T("composite.detailsTitle")) : b,
1012
+ label: I,
1013
+ path: e.path,
1014
+ schema: e.schema,
1015
+ enabled: !!e.enabled,
1016
+ options: M,
1017
+ t: S,
1018
+ onClose: () => k(!1),
1019
+ onApply: (t) => e.handleChange(e.path, t),
1020
+ children: /* @__PURE__ */ U(Oe, {
1021
+ schema: e.schema,
1022
+ uischema: ee,
1023
+ path: e.path,
1024
+ enabled: e.enabled,
1025
+ renderers: e.renderers,
1026
+ cells: e.cells
1027
+ })
1028
+ })
1029
+ ]
1030
+ });
1031
+ })), $a = n.createContext(null), eo = ({ detail: e, tree: t }) => C.useBreakpoint().md ? /* @__PURE__ */ W(F, {
1032
+ className: "jsonforms-mixed-split-pane",
1033
+ style: {
1034
+ height: "min(70vh, 720px)",
1035
+ minHeight: 280
1036
+ },
1037
+ children: [/* @__PURE__ */ U(F.Panel, {
1038
+ defaultSize: "25%",
1039
+ min: "18%",
1040
+ max: "45%",
1041
+ children: /* @__PURE__ */ U("div", {
1042
+ className: "jsonforms-mixed-tree-pane",
1043
+ style: {
1044
+ height: "100%",
1045
+ overflow: "auto",
1046
+ padding: 12
1047
+ },
1048
+ children: t
1049
+ })
1050
+ }), /* @__PURE__ */ U(F.Panel, {
1051
+ min: "45%",
1052
+ children: /* @__PURE__ */ U("div", {
1053
+ className: "jsonforms-mixed-detail-pane",
1054
+ style: {
1055
+ height: "100%",
1056
+ overflow: "auto",
1057
+ padding: 12
1058
+ },
1059
+ children: e
1060
+ })
1061
+ })]
1062
+ }) : /* @__PURE__ */ W("div", {
1063
+ className: "jsonforms-mixed-split-pane-stacked",
1064
+ style: {
1065
+ display: "grid",
1066
+ gap: 16
1067
+ },
1068
+ children: [/* @__PURE__ */ U("div", {
1069
+ className: "jsonforms-mixed-tree-pane",
1070
+ style: {
1071
+ maxHeight: "min(45vh, 480px)",
1072
+ overflow: "auto"
1073
+ },
1074
+ children: t
1075
+ }), /* @__PURE__ */ U("div", {
1076
+ className: "jsonforms-mixed-detail-pane",
1077
+ children: e
1078
+ })]
1079
+ }), to = ({ clearable: e = !0, disabled: t, error: n, fullWidth: r = !1, onChange: i, required: a, types: o, value: s }) => {
1080
+ let c = G(), l = de();
1081
+ return /* @__PURE__ */ W("div", {
1082
+ className: r ? "jsonforms-mixed-type-selector jsonforms-mixed-type-selector-full-width" : "jsonforms-mixed-type-selector",
1083
+ style: {
1084
+ minWidth: 140,
1085
+ width: r ? "100%" : void 0
1086
+ },
1087
+ children: [
1088
+ /* @__PURE__ */ U(M, {
1089
+ allowClear: e,
1090
+ "aria-label": c("mixed.typeLabel"),
1091
+ disabled: t,
1092
+ onChange: i,
1093
+ options: o.map((e) => ({
1094
+ label: l(`mixed.type.${e}`, e),
1095
+ value: e
1096
+ })),
1097
+ placeholder: c("mixed.typePlaceholder"),
1098
+ popupMatchSelectWidth: !1,
1099
+ status: n ? "error" : void 0,
1100
+ value: s == null ? void 0 : s,
1101
+ style: { width: "100%" }
1102
+ }),
1103
+ n ? /* @__PURE__ */ U(B.Text, {
1104
+ type: "danger",
1105
+ children: n
1106
+ }) : null,
1107
+ a ? /* @__PURE__ */ U("span", {
1108
+ style: An,
1109
+ children: c("mixed.required")
1110
+ }) : null
1111
+ ]
1112
+ });
1113
+ }, no = ({ description: e, label: t, onView: n, selector: r }) => {
1114
+ let i = G();
1115
+ return /* @__PURE__ */ W(x, {
1116
+ className: "jsonforms-mixed-nested-navigation",
1117
+ vertical: !0,
1118
+ gap: 4,
1119
+ children: [
1120
+ t ? /* @__PURE__ */ U(B.Text, { children: t }) : null,
1121
+ /* @__PURE__ */ W(x, {
1122
+ align: "center",
1123
+ gap: "small",
1124
+ children: [r, /* @__PURE__ */ U(z, {
1125
+ title: i("mixed.view", { label: t || i("control.value") }),
1126
+ children: /* @__PURE__ */ U(p, {
1127
+ "aria-label": i("mixed.view", { label: t || i("control.value") }),
1128
+ icon: /* @__PURE__ */ U(ge, {}),
1129
+ onClick: n,
1130
+ size: "small"
1131
+ })
1132
+ })]
1133
+ }),
1134
+ e ? /* @__PURE__ */ U(B.Text, {
1135
+ type: "secondary",
1136
+ children: e
1137
+ }) : null
1138
+ ]
1139
+ });
1140
+ }, ro = (e) => {
1141
+ let { description: t, label: r, path: i, rootSchema: a, uischema: o } = e, s = da(), c = Sn(e, s.request), { structuredLayout: l, t: u, collapsible: d, expanded: p, setSelectedPath: m, selectedType: h, tree: g, selectedNode: v, canRenameNode: y } = c, b = n.useContext($a), S = /* @__PURE__ */ U(yn, Q(Q({}, c.detailProps), {}, {
1142
+ selectedType: h,
1143
+ selectedSchema: c.selectedSchema
1144
+ })), C = h === "object" || h === "array", w = /* @__PURE__ */ U(to, Q({}, c.selectorProps));
1145
+ if (!e.visible) return null;
1146
+ let T = (e, t) => {
1147
+ var n;
1148
+ let r = e.path[e.path.length - 1], i = xn(g, e);
1149
+ if (!t) return u("additionalProperties.nameRequired");
1150
+ if (!i || typeof r != "string" || !y(e)) return u("mixed.renameBlocked");
1151
+ if (t.includes(".") || t.includes("[") || t.includes("]")) return u("additionalProperties.nameInvalid", { name: t });
1152
+ if (i.data && typeof i.data == "object" && t !== r && Object.prototype.hasOwnProperty.call(i.data, t)) return u("additionalProperties.nameTaken", { name: t });
1153
+ let o = kn(i.schema, "object", a), s = o.propertyNames;
1154
+ if (s != null && s.$ref) {
1155
+ var l;
1156
+ s = (l = Jt(a, s.$ref, a)) == null ? s : l;
1157
+ }
1158
+ let d = (n = c.jsonforms.core) == null ? void 0 : n.ajv;
1159
+ if (s && d && !d.validate(s, t)) return d.errorsText(d.errors) || u("additionalProperties.nameInvalid", { name: t });
1160
+ if (o.additionalProperties === !1 && o.patternProperties && !Object.keys(o.patternProperties).some((e) => {
1161
+ try {
1162
+ return new RegExp(e).test(t);
1163
+ } catch (e) {
1164
+ return !1;
1165
+ }
1166
+ })) return u("additionalProperties.namePattern");
1167
+ }, E = (e, t) => {
1168
+ T(e, t) || c.renameNode(e, t);
1169
+ };
1170
+ if (l === "code") return /* @__PURE__ */ U(vn, Q({}, e));
1171
+ if (l === "tree" && b && C) return /* @__PURE__ */ U(no, {
1172
+ description: t,
1173
+ label: r,
1174
+ onView: () => b.selectPath(i),
1175
+ selector: w
1176
+ });
1177
+ let D = /* @__PURE__ */ W(x, {
1178
+ "data-structured-layout": l,
1179
+ className: "jsonforms-mixed-renderer",
1180
+ vertical: !0,
1181
+ gap: "small",
1182
+ children: [
1183
+ s.dialog,
1184
+ /* @__PURE__ */ U("style", { children: "\n .jsonforms-mixed-renderer-primitive,\n .jsonforms-mixed-renderer-detail-primitive {\n align-items: start;\n display: grid;\n gap: 8px;\n grid-template-columns: 140px minmax(0, 1fr);\n }\n .jsonforms-mixed-renderer-unselected {\n grid-template-columns: minmax(0, 1fr);\n }\n .jsonforms-mixed-renderer-detail-control,\n .jsonforms-mixed-renderer-value {\n min-width: 0;\n }\n @media (max-width: 600px) {\n .jsonforms-mixed-renderer-primitive,\n .jsonforms-mixed-renderer-detail-primitive {\n grid-template-columns: minmax(0, 1fr);\n }\n }\n " }),
1185
+ C ? /* @__PURE__ */ W(H, { children: [r && o.label !== !1 && /* @__PURE__ */ U(B.Text, { children: r }), /* @__PURE__ */ U(_, {
1186
+ ghost: !0,
1187
+ styles: {
1188
+ header: {
1189
+ padding: 0,
1190
+ alignItems: "center"
1191
+ },
1192
+ body: { padding: "12px 0" }
1193
+ },
1194
+ activeKey: p ? ["value"] : [],
1195
+ className: "jsonforms-mixed-renderer-structured",
1196
+ expandIconPlacement: "end",
1197
+ onChange: (e) => c.setExpanded(e.includes("value")),
1198
+ items: [{
1199
+ key: "value",
1200
+ collapsible: d ? void 0 : "disabled",
1201
+ showArrow: d,
1202
+ label: /* @__PURE__ */ W(x, {
1203
+ align: "center",
1204
+ gap: "middle",
1205
+ children: [/* @__PURE__ */ U("div", {
1206
+ onClick: (e) => e.stopPropagation(),
1207
+ onKeyDown: (e) => e.stopPropagation(),
1208
+ children: w
1209
+ }), c.validation.show && /* @__PURE__ */ U(ba, { count: c.validation.count })]
1210
+ }),
1211
+ children: l === "nested" ? S : g && v ? /* @__PURE__ */ U(eo, {
1212
+ tree: /* @__PURE__ */ U(Ta, {
1213
+ canDelete: c.canDeleteNode,
1214
+ canRename: y,
1215
+ onDelete: c.deleteNode,
1216
+ onRename: E,
1217
+ onSelect: (e) => m(e.path),
1218
+ root: g,
1219
+ selectedPath: v.path,
1220
+ validateRename: T
1221
+ }),
1222
+ detail: /* @__PURE__ */ W(x, {
1223
+ vertical: !0,
1224
+ gap: "small",
1225
+ children: [/* @__PURE__ */ U(f, { items: [Q({ title: /* @__PURE__ */ U(Ca, { type: g.type }) }, v.path.length > 0 ? {
1226
+ href: "#",
1227
+ onClick: (e) => {
1228
+ e.preventDefault(), m([]);
1229
+ }
1230
+ } : {}), ...v.path.map((e, t) => {
1231
+ let n = v.path.slice(0, t + 1), r = typeof e == "number" ? `Item ${e}` : e, i = t === v.path.length - 1;
1232
+ return Q({ title: r }, i ? {} : {
1233
+ href: "#",
1234
+ onClick: (e) => {
1235
+ e.preventDefault(), m(n);
1236
+ }
1237
+ });
1238
+ })] }), /* @__PURE__ */ U(bn, Q(Q(Q({}, c.detailProps), {}, { node: v }, c.nodeEditorProps), {}, {
1239
+ MixedTypeSelector: to,
1240
+ wrapStructured: (e) => /* @__PURE__ */ U(x, {
1241
+ vertical: !0,
1242
+ gap: "small",
1243
+ children: e
1244
+ })
1245
+ }))]
1246
+ })
1247
+ }) : null
1248
+ }]
1249
+ })] }) : /* @__PURE__ */ W(H, { children: [r && o.label !== !1 ? /* @__PURE__ */ U(B.Text, { children: r }) : null, /* @__PURE__ */ W("div", {
1250
+ className: `jsonforms-mixed-renderer-primitive${h ? "" : " jsonforms-mixed-renderer-unselected"}`,
1251
+ children: [/* @__PURE__ */ U("div", {
1252
+ className: "jsonforms-mixed-renderer-type",
1253
+ children: w
1254
+ }), h ? /* @__PURE__ */ U("div", {
1255
+ className: "jsonforms-mixed-renderer-value",
1256
+ children: S
1257
+ }) : null]
1258
+ })] }),
1259
+ t ? /* @__PURE__ */ U(B.Text, {
1260
+ type: "secondary",
1261
+ children: t
1262
+ }) : null
1263
+ ]
1264
+ });
1265
+ return l === "nested" || b ? D : /* @__PURE__ */ U($a.Provider, {
1266
+ value: c.navigation,
1267
+ children: D
1268
+ });
1269
+ }, io = K(ro), ao = Y(6, J(X("Control"), Bn)), oo = (e) => {
1270
+ var t, n;
1271
+ let r = G(), { token: i } = V.useToken(), [a, o] = l(""), { data: s, enabled: c, id: u, label: d, path: f, required: p, rootSchema: m, schema: h, uischema: g, visible: _ } = e, { errors: v, onFocus: y, onBlur: b } = Mn({
1272
+ errors: e.errors,
1273
+ path: e.path,
1274
+ schema: e.schema,
1275
+ uischema: e.uischema,
1276
+ config: e.config
1277
+ }), S = Q(Q({}, e.config), g.options), C = In(s), T = Gn(h, m), E = Fn(T), D = h.uniqueItems === !0, O = {
1278
+ minItems: h.minItems,
1279
+ maxItems: h.maxItems,
1280
+ restrict: S.restrict !== !1
1281
+ }, k = c !== !1 && Ln(C, O), A = c !== !1 && Rn(C, O);
1282
+ if (!_) return null;
1283
+ let j = (t) => e.handleChange(f, t), N = (e) => {
1284
+ if (!k || e === "") return;
1285
+ let t = Nn(C, e, D);
1286
+ t !== C && j(t), o("");
1287
+ }, P = (e) => {
1288
+ let t = E == null ? void 0 : E.find((t) => t.value === e);
1289
+ return t ? t.label : String(e);
1290
+ }, F = E == null ? void 0 : E.filter((e) => !D || !Hn(C, e.value));
1291
+ return /* @__PURE__ */ U(Pa, {
1292
+ hideRequiredAsterisk: (t = g.options) == null ? void 0 : t.hideRequiredAsterisk,
1293
+ id: u,
1294
+ label: d,
1295
+ required: p,
1296
+ errors: v || void 0,
1297
+ help: v || e.description,
1298
+ children: /* @__PURE__ */ W(x, {
1299
+ "data-chips": !0,
1300
+ vertical: !0,
1301
+ gap: i.paddingXS,
1302
+ children: [C.length > 0 && /* @__PURE__ */ U(x, {
1303
+ wrap: !0,
1304
+ gap: i.paddingXXS,
1305
+ children: C.map((e, t) => /* @__PURE__ */ U(te, {
1306
+ closable: A,
1307
+ "data-chip": t,
1308
+ onClose: (e) => {
1309
+ e.preventDefault(), A && j(Wn(C, t));
1310
+ },
1311
+ children: P(e)
1312
+ }, `${t}-${String(e)}`))
1313
+ }), E ? /* @__PURE__ */ U(M, {
1314
+ "data-chips-select": !0,
1315
+ disabled: !k,
1316
+ autoFocus: S.focus === !0,
1317
+ style: { width: "100%" },
1318
+ placeholder: S.placeholder,
1319
+ value: null,
1320
+ showSearch: {
1321
+ optionFilterProp: "label",
1322
+ filterOption: (e, t) => {
1323
+ var n;
1324
+ return String((n = t == null ? void 0 : t.label) == null ? "" : n).toLowerCase().includes(e.toLowerCase());
1325
+ }
1326
+ },
1327
+ notFoundContent: r("enum.noMatches"),
1328
+ onChange: (e) => N(e),
1329
+ options: (F == null ? [] : F).map((e) => ({
1330
+ value: e.value,
1331
+ label: e.label
1332
+ }))
1333
+ }) : /* @__PURE__ */ U(w, {
1334
+ "data-chips-input": !0,
1335
+ disabled: !k,
1336
+ autoFocus: S.focus === !0,
1337
+ placeholder: (n = S.placeholder) == null ? r("chips.addPlaceholder") : n,
1338
+ value: a,
1339
+ onChange: (e) => o(e.currentTarget.value),
1340
+ onPressEnter: () => N(a),
1341
+ onFocus: y,
1342
+ onBlur: () => {
1343
+ o(""), b();
1344
+ }
1345
+ })]
1346
+ })
1347
+ });
1348
+ }, so = K(oo), co = Y(6, J(X("Control"), Vn)), lo = (e) => {
1349
+ var t, n, r;
1350
+ let i = G(), a = Ae(), o = de(), { data: s, enabled: c, id: l, label: u, path: d, required: f, rootSchema: p, schema: m, uischema: h, visible: g } = e, _ = Q(Q({}, e.config), h.options), v = In(s), y = Gn(m, p), b = (t = Fn(y)) == null ? [] : t, [x, S] = Yn((n = a.core) == null ? {} : n), C = Pn([...x == null ? [] : x, ...S == null ? [] : S], d, v.length).map((e, t) => {
1351
+ var n, r;
1352
+ return wt(e, (n = (r = a.i18n) == null ? void 0 : r.translateError) == null ? _t : n, o, y, h, d ? `${d}.${t}` : String(t));
1353
+ }), { errors: w, onFocus: T, onBlur: E } = Mn({
1354
+ errors: [e.errors, ...C.map((e, t) => e ? `${String(v[t])}: ${e}` : "")].filter(Boolean).join("\n"),
1355
+ path: d,
1356
+ schema: m,
1357
+ uischema: h,
1358
+ config: e.config
1359
+ }), D = {
1360
+ minItems: m.minItems,
1361
+ maxItems: m.maxItems,
1362
+ restrict: _.restrict !== !1
1363
+ }, O = Ln(v, D), k = Rn(v, D);
1364
+ if (!g) return null;
1365
+ let A = v.filter((e) => !b.some((t) => Kn(t.value, e)));
1366
+ return /* @__PURE__ */ U(Pa, {
1367
+ hideRequiredAsterisk: (r = h.options) == null ? void 0 : r.hideRequiredAsterisk,
1368
+ id: l,
1369
+ label: u,
1370
+ required: f,
1371
+ errors: w || void 0,
1372
+ help: w || e.description,
1373
+ children: /* @__PURE__ */ U(M, {
1374
+ mode: "multiple",
1375
+ "data-multi-select": !0,
1376
+ disabled: !c,
1377
+ onFocus: T,
1378
+ onBlur: E,
1379
+ autoFocus: _.focus === !0,
1380
+ style: { width: "100%" },
1381
+ placeholder: _.placeholder,
1382
+ value: v,
1383
+ status: w ? "error" : void 0,
1384
+ tagRender: ({ label: e, value: t, closable: n, onClose: r }) => {
1385
+ let i = v.findIndex((e) => Kn(e, t)), a = w && i >= 0 ? C[i] : "";
1386
+ return /* @__PURE__ */ U(z, {
1387
+ title: a || void 0,
1388
+ children: /* @__PURE__ */ W(te, {
1389
+ color: a ? "red" : void 0,
1390
+ closable: n,
1391
+ onClose: r,
1392
+ onMouseDown: (e) => e.preventDefault(),
1393
+ children: [/* @__PURE__ */ U("span", {
1394
+ "aria-invalid": !!a,
1395
+ children: e
1396
+ }), a ? /* @__PURE__ */ U(cn, {
1397
+ "aria-label": a,
1398
+ style: { marginInlineStart: 4 }
1399
+ }) : null]
1400
+ })
1401
+ });
1402
+ },
1403
+ showSearch: {
1404
+ optionFilterProp: "label",
1405
+ filterOption: (e, t) => {
1406
+ var n;
1407
+ return String((n = t == null ? void 0 : t.label) == null ? "" : n).toLowerCase().includes(e.toLowerCase());
1408
+ }
1409
+ },
1410
+ notFoundContent: i("enum.noMatches"),
1411
+ onChange: (t) => {
1412
+ t.length > v.length && !O || t.length < v.length && !k || e.handleChange(d, t);
1413
+ },
1414
+ options: [...b.map((e) => ({
1415
+ value: e.value,
1416
+ label: e.label
1417
+ })), ...A.map((e) => ({
1418
+ value: e,
1419
+ label: String(e)
1420
+ }))]
1421
+ })
1422
+ });
1423
+ }, uo = K(lo), fo = n.memo(function({ open: e, onConfirm: t, onCancel: n, title: r, message: i, acceptText: a, declineText: o }) {
1424
+ let s = G();
1425
+ return /* @__PURE__ */ U(D, {
1426
+ title: r == null ? s("confirm.delete.title") : r,
1427
+ open: e,
1428
+ onOk: t,
1429
+ onCancel: n,
1430
+ okText: a == null ? s("confirm.accept") : a,
1431
+ okButtonProps: { danger: !0 },
1432
+ cancelText: o == null ? s("confirm.decline") : o,
1433
+ "aria-labelledby": "alert-dialog-confirmdelete-title",
1434
+ "aria-describedby": "alert-dialog-confirmdelete-description",
1435
+ children: /* @__PURE__ */ U("p", { children: i == null ? s("confirm.delete.message") : i })
1436
+ });
1437
+ }), po = ({ page: e }) => {
1438
+ let { token: t } = V.useToken();
1439
+ return !e.enabled || e.total === 0 ? null : /* @__PURE__ */ U("div", {
1440
+ "data-collection-footer": !0,
1441
+ style: {
1442
+ display: "flex",
1443
+ justifyContent: "flex-end",
1444
+ paddingBlock: 12,
1445
+ borderTop: `1px solid ${t.colorBorderSecondary}`
1446
+ },
1447
+ children: /* @__PURE__ */ U(O, {
1448
+ current: e.current,
1449
+ pageSize: e.size,
1450
+ total: e.total,
1451
+ pageSizeOptions: e.choices,
1452
+ showSizeChanger: !0,
1453
+ onChange: e.change
1454
+ })
1455
+ });
1456
+ }, mo = (e) => {
1457
+ let { renderItem: t, positionLabel: n } = e, { token: r } = V.useToken(), { t: i, message: a, canAdd: o, canDelete: s, add: c, deletion: l, visibleIndices: u, page: d } = fr(e);
1458
+ return /* @__PURE__ */ W("section", {
1459
+ "data-tuple-additional": !0,
1460
+ style: {
1461
+ marginTop: r.margin,
1462
+ paddingTop: r.paddingSM,
1463
+ borderTop: `1px solid ${r.colorBorderSecondary}`
1464
+ },
1465
+ children: [
1466
+ /* @__PURE__ */ U(fo, {
1467
+ open: l.confirming,
1468
+ onCancel: l.cancel,
1469
+ onConfirm: l.confirm
1470
+ }),
1471
+ /* @__PURE__ */ W("header", {
1472
+ style: {
1473
+ display: "flex",
1474
+ alignItems: "center",
1475
+ justifyContent: "space-between",
1476
+ gap: r.paddingXS,
1477
+ marginBottom: r.paddingXS
1478
+ },
1479
+ children: [/* @__PURE__ */ U(B.Text, {
1480
+ strong: !0,
1481
+ children: i("tuple.additionalItems")
1482
+ }), /* @__PURE__ */ U(p, {
1483
+ size: "small",
1484
+ type: "text",
1485
+ icon: /* @__PURE__ */ U(pr, {}),
1486
+ disabled: !o,
1487
+ onClick: c,
1488
+ title: i("tuple.add"),
1489
+ "aria-label": i("tuple.add"),
1490
+ "data-tuple-add": !0
1491
+ })]
1492
+ }),
1493
+ /* @__PURE__ */ U(hn, {
1494
+ changes: d.pending,
1495
+ children: u.map((e) => /* @__PURE__ */ W("div", {
1496
+ style: {
1497
+ display: "flex",
1498
+ alignItems: "flex-start",
1499
+ gap: r.paddingXS,
1500
+ marginBottom: r.paddingXS
1501
+ },
1502
+ children: [/* @__PURE__ */ U("div", {
1503
+ style: {
1504
+ flex: 1,
1505
+ minWidth: 0
1506
+ },
1507
+ children: t(e)
1508
+ }), /* @__PURE__ */ U(p, {
1509
+ size: "small",
1510
+ type: "text",
1511
+ danger: !0,
1512
+ icon: /* @__PURE__ */ U(pe, {}),
1513
+ disabled: !s,
1514
+ onClick: () => l.request(e),
1515
+ title: i("tuple.delete", { label: n(e) }),
1516
+ "aria-label": i("tuple.delete", { label: n(e) }),
1517
+ "data-tuple-delete": e
1518
+ })]
1519
+ }, e))
1520
+ }),
1521
+ /* @__PURE__ */ U(po, { page: d }),
1522
+ a && /* @__PURE__ */ U(B.Text, {
1523
+ type: "warning",
1524
+ role: "alert",
1525
+ "data-tuple-draft": !0,
1526
+ children: a
1527
+ })
1528
+ ]
1529
+ });
1530
+ };
1531
+ // src/complex/TupleField.tsx
1532
+ function ho(e) {
1533
+ let { token: t } = V.useToken();
1534
+ return /* @__PURE__ */ U(mr, Q(Q({}, e), {}, {
1535
+ CompositeDetailDialog: Za,
1536
+ gap: t.paddingXS,
1537
+ legendStyle: {
1538
+ marginBottom: t.paddingXXS,
1539
+ fontSize: t.fontSize,
1540
+ color: t.colorTextHeading
1541
+ },
1542
+ renderEditButton: (e, t, n) => /* @__PURE__ */ U(p, {
1543
+ size: "small",
1544
+ type: "text",
1545
+ icon: /* @__PURE__ */ U(me, {}),
1546
+ disabled: t,
1547
+ onClick: n,
1548
+ title: e,
1549
+ "aria-label": e
1550
+ }),
1551
+ renderError: (e, t) => /* @__PURE__ */ U(B.Text, {
1552
+ type: t ? "warning" : "danger",
1553
+ role: "alert",
1554
+ "data-tuple-draft": t || void 0,
1555
+ children: e
1556
+ })
1557
+ }));
1558
+ }
1559
+ // src/complex/TupleControlRenderer.tsx
1560
+ var go = or, _o = (e) => {
1561
+ var t;
1562
+ let { label: n, required: r, visible: i, uischema: a } = e, { token: o } = V.useToken(), s = er(e), { options: c, shownErrors: l } = s;
1563
+ if (!i) return null;
1564
+ let u = /* @__PURE__ */ U(tr, {
1565
+ props: e,
1566
+ model: s,
1567
+ TupleField: ho,
1568
+ TupleAdditionalItems: mo,
1569
+ gap: o.margin,
1570
+ diagnostic: (e) => /* @__PURE__ */ U(B.Text, {
1571
+ type: "danger",
1572
+ role: "alert",
1573
+ "data-tuple-diagnostic": !0,
1574
+ children: e
1575
+ })
1576
+ });
1577
+ return /* @__PURE__ */ U(Pa, {
1578
+ hideRequiredAsterisk: (t = a.options) == null ? void 0 : t.hideRequiredAsterisk,
1579
+ id: e.id,
1580
+ label: n,
1581
+ required: r,
1582
+ errors: l || void 0,
1583
+ help: l || e.description,
1584
+ children: c.showBorder === !1 ? /* @__PURE__ */ U("div", {
1585
+ "data-tuple-control": !0,
1586
+ children: u
1587
+ }) : /* @__PURE__ */ U("div", {
1588
+ "data-tuple-control": !0,
1589
+ style: {
1590
+ border: `1px solid ${o.colorBorderSecondary}`,
1591
+ borderRadius: o.borderRadius,
1592
+ padding: o.paddingSM
1593
+ },
1594
+ children: u
1595
+ })
1596
+ });
1597
+ }, vo = nr(_o), yo = ({ schema: e, rootSchema: t, indexOfFittingSchema: n, visible: a, enabled: o, path: s, renderers: u, cells: d, uischema: f, uischemas: p }) => {
1598
+ var m;
1599
+ let [h, g] = l(n == null ? -1 : n), _ = c(!1);
1600
+ i(() => {
1601
+ _.current || g(n == null ? -1 : n);
1602
+ }, [n]);
1603
+ let v = r((e) => {
1604
+ _.current = !0, g(parseInt(e, 10));
1605
+ }, []), y = "anyOf", b = mt((m = e.anyOf) == null ? [] : m, t, y, f, s, p);
1606
+ if (!a) return null;
1607
+ if (b.length === 1) {
1608
+ let n = b[0];
1609
+ return /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(yr, {
1610
+ schema: e,
1611
+ combinatorKeyword: "anyOf",
1612
+ path: s,
1613
+ rootSchema: t
1614
+ }), /* @__PURE__ */ U(vr, {
1615
+ options: f.options,
1616
+ schema: n.schema,
1617
+ path: s,
1618
+ children: /* @__PURE__ */ U(Oe, {
1619
+ schema: n.schema,
1620
+ uischema: n.uischema,
1621
+ path: s,
1622
+ renderers: u,
1623
+ cells: d,
1624
+ enabled: o
1625
+ })
1626
+ })] });
1627
+ }
1628
+ return /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(yr, {
1629
+ schema: e,
1630
+ combinatorKeyword: y,
1631
+ path: s,
1632
+ rootSchema: t
1633
+ }), /* @__PURE__ */ U(R, {
1634
+ activeKey: h >= 0 ? h.toString() : "",
1635
+ onChange: v,
1636
+ items: b.map((e, t) => ({
1637
+ label: e.label,
1638
+ key: String(t),
1639
+ children: h === t && /* @__PURE__ */ U(vr, {
1640
+ options: f.options,
1641
+ schema: e.schema,
1642
+ path: s,
1643
+ children: /* @__PURE__ */ U(Oe, {
1644
+ schema: e.schema,
1645
+ uischema: e.uischema,
1646
+ path: s,
1647
+ renderers: u,
1648
+ cells: d
1649
+ })
1650
+ })
1651
+ }))
1652
+ })] });
1653
+ }, bo = Y(3, Ot), xo = Me(yo), So = Pr(({ state: e }) => {
1654
+ let { options: t, t: n } = e;
1655
+ return /* @__PURE__ */ W(Xa, {
1656
+ options: t.dialog,
1657
+ open: !!e.selection,
1658
+ title: n("collection.editDetails"),
1659
+ onCancel: e.close,
1660
+ onOk: e.apply,
1661
+ okText: n("composite.apply"),
1662
+ cancelText: n("composite.cancel"),
1663
+ okButtonProps: { disabled: !e.enabled || e.conflict },
1664
+ styles: { body: {
1665
+ maxHeight: "65vh",
1666
+ overflow: "auto"
1667
+ } },
1668
+ children: [e.conflict && /* @__PURE__ */ U("p", {
1669
+ role: "alert",
1670
+ children: n("composite.applyConflict")
1671
+ }), e.content]
1672
+ });
1673
+ }, ({ state: e, children: t }) => {
1674
+ var n;
1675
+ let { options: r, panelOpen: i, t: a } = e;
1676
+ return /* @__PURE__ */ U("div", { children: /* @__PURE__ */ W(F, {
1677
+ orientation: r.placement === "bottom" ? "vertical" : "horizontal",
1678
+ style: {
1679
+ height: i ? r.placement === "bottom" ? "40rem" : "32rem" : "auto",
1680
+ maxWidth: "100%"
1681
+ },
1682
+ children: [/* @__PURE__ */ U(F.Panel, {
1683
+ defaultSize: "55%",
1684
+ min: "20%",
1685
+ resizable: r.resizable !== !1,
1686
+ children: /* @__PURE__ */ U("div", {
1687
+ style: {
1688
+ height: i ? "100%" : void 0,
1689
+ minWidth: 0,
1690
+ minHeight: 0,
1691
+ overflow: "auto"
1692
+ },
1693
+ children: t
1694
+ })
1695
+ }), i && /* @__PURE__ */ U(F.Panel, {
1696
+ min: "20%",
1697
+ resizable: r.resizable !== !1,
1698
+ children: /* @__PURE__ */ U("div", {
1699
+ style: {
1700
+ padding: 12,
1701
+ height: "100%",
1702
+ minWidth: 0,
1703
+ minHeight: 0,
1704
+ overflow: "auto"
1705
+ },
1706
+ children: (n = e.content) == null ? /* @__PURE__ */ U(b, { description: a("collection.selectItem") }) : n
1707
+ })
1708
+ })]
1709
+ }) });
1710
+ }), Co = Fr((e) => /* @__PURE__ */ U("div", {
1711
+ style: { display: "inline-flex" },
1712
+ children: /* @__PURE__ */ U(z, {
1713
+ title: e.label,
1714
+ children: /* @__PURE__ */ U(p, {
1715
+ shape: "circle",
1716
+ "aria-label": e.label,
1717
+ "aria-expanded": e.expanded,
1718
+ icon: e.expanded ? /* @__PURE__ */ U(ln, {}) : /* @__PURE__ */ U(un, {}),
1719
+ onClick: e.toggle
1720
+ })
1721
+ })
1722
+ })), wo = ({ errors: e, path: t, children: n }) => /* @__PURE__ */ U(ot, { children: /* @__PURE__ */ U(Pa, {
1723
+ path: t,
1724
+ errors: e || void 0,
1725
+ children: n
1726
+ }) }), To = ({ schema: e, uischema: t, path: n, children: r }) => {
1727
+ let i = Ae(), { errors: a } = ke(i, {
1728
+ schema: e,
1729
+ uischema: t,
1730
+ path: n
1731
+ });
1732
+ return /* @__PURE__ */ U(wo, {
1733
+ errors: a,
1734
+ path: n,
1735
+ children: r
1736
+ });
1737
+ }, Eo = (e, t) => ({
1738
+ type: "Control",
1739
+ scope: e,
1740
+ label: !1,
1741
+ options: t
1742
+ }), Do = ({ path: e, propName: t, schema: n, rootSchema: r, errors: i, enabled: a, renderers: o, cells: s, cellOptions: c }) => /* @__PURE__ */ U(wo, {
1743
+ errors: i,
1744
+ path: e,
1745
+ children: n.properties && t !== void 0 ? /* @__PURE__ */ U(Ee, {
1746
+ schema: ut.schema(n, `#/properties/${bt(t)}`, r),
1747
+ uischema: Eo(`#/properties/${bt(t)}`, c),
1748
+ path: e,
1749
+ enabled: a,
1750
+ renderers: o,
1751
+ cells: s
1752
+ }) : /* @__PURE__ */ U(Ee, {
1753
+ schema: n,
1754
+ uischema: Eo("#", c),
1755
+ path: e,
1756
+ enabled: a,
1757
+ renderers: o,
1758
+ cells: s
1759
+ })
1760
+ }), Oo = [
1761
+ "options",
1762
+ "config",
1763
+ "panelLabel",
1764
+ "children",
1765
+ "extra"
1766
+ ], ko = (e) => {
1767
+ let { options: t, config: n, panelLabel: r, children: i, extra: a } = e, o = Ia(e, Oo), s = ce(), c = Gr(t, n);
1768
+ return /* @__PURE__ */ U(m, Q(Q({}, o), {}, {
1769
+ style: Q({
1770
+ minWidth: 0,
1771
+ maxWidth: "100%"
1772
+ }, o.style),
1773
+ extra: /* @__PURE__ */ W("div", {
1774
+ style: {
1775
+ display: "flex",
1776
+ alignItems: "center",
1777
+ gap: 8
1778
+ },
1779
+ children: [a, c.collapsible && /* @__PURE__ */ U(p, {
1780
+ shape: "circle",
1781
+ "aria-label": r || s("control.array"),
1782
+ "aria-expanded": !c.collapsed,
1783
+ "aria-controls": c.contentId,
1784
+ onClick: c.toggle,
1785
+ icon: c.collapsed ? /* @__PURE__ */ U(Ur, {}) : /* @__PURE__ */ U(Wr, {})
1786
+ })]
1787
+ }),
1788
+ children: /* @__PURE__ */ U("div", {
1789
+ id: c.contentId,
1790
+ hidden: c.collapsed,
1791
+ style: {
1792
+ minWidth: 0,
1793
+ maxWidth: "100%"
1794
+ },
1795
+ children: i
1796
+ })
1797
+ }));
1798
+ }, { Title: Ao } = B, jo = (e, t, n) => /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ W(j, {
1799
+ align: "middle",
1800
+ children: [/* @__PURE__ */ U(g, { children: /* @__PURE__ */ U(Ao, {
1801
+ level: 5,
1802
+ style: { margin: 0 },
1803
+ children: e
1804
+ }) }), /* @__PURE__ */ U(g, {
1805
+ style: { paddingLeft: 8 },
1806
+ children: t.length !== 0 && /* @__PURE__ */ U(Ja, {
1807
+ id: "tooltip-validation",
1808
+ errorMessages: t,
1809
+ local: !0
1810
+ })
1811
+ })]
1812
+ }), n && /* @__PURE__ */ U(m.Meta, { description: n })] }), Mo = n.memo(function({ label: e, description: t, path: n, addItem: r, schema: i, enabled: a, translations: o, rootSchema: s, disableAdd: c, children: l, actions: u, options: d, uischema: f, config: m }) {
1813
+ let h = rt(n, d == null ? f.options : d);
1814
+ return /* @__PURE__ */ U(ko, {
1815
+ options: d == null ? f.options : d,
1816
+ config: m,
1817
+ panelLabel: e,
1818
+ style: { width: "100%" },
1819
+ size: "small",
1820
+ type: "inner",
1821
+ title: jo(e, h, t),
1822
+ extra: [u, /* @__PURE__ */ U(z, {
1823
+ title: o.addTooltip,
1824
+ placement: "bottom",
1825
+ children: /* @__PURE__ */ U(p, {
1826
+ disabled: !a || c,
1827
+ "aria-label": o.addAriaLabel,
1828
+ onClick: r(n, gt(i, s)),
1829
+ shape: "circle",
1830
+ icon: /* @__PURE__ */ U(pr, { rev: void 0 })
1831
+ })
1832
+ }, "tooltip-add")],
1833
+ children: l
1834
+ });
1835
+ }), No = (e) => {
1836
+ var t;
1837
+ let { path: n, schema: r, enabled: i, cells: a } = e, o = (t = e.uischema) == null || (t = t.options) == null ? void 0 : t.cells;
1838
+ if (r.type === "object") {
1839
+ var s, c;
1840
+ let t = (s = e.uischema.options) == null ? void 0 : s.columnDefs;
1841
+ return Ar((c = r.properties) == null ? {} : c, t, Po(r, o)).map((e) => {
1842
+ var s, c, l, u;
1843
+ let d = jr(t == null ? void 0 : t.find((t) => t.field === e)), f = {
1844
+ propName: e,
1845
+ schema: r,
1846
+ title: (s = (c = t == null || (l = t.find((t) => t.field === e)) == null ? void 0 : l.headerName) == null ? (u = r.properties) == null || (u = u[e]) == null ? void 0 : u.title : c) == null ? Vr(e) : s,
1847
+ enabled: i,
1848
+ cells: a,
1849
+ cellOptions: o == null ? void 0 : o[e]
1850
+ };
1851
+ return {
1852
+ dataIndex: f.propName,
1853
+ width: d.width,
1854
+ onHeaderCell: () => ({ style: d }),
1855
+ onCell: () => ({ style: d }),
1856
+ title: f.title,
1857
+ render: (s, c) => {
1858
+ let l = lt.compose(n, `${c.index}`);
1859
+ return t != null && t.some((t) => t.field === e && t.scope === "#") ? /* @__PURE__ */ U(an, {
1860
+ path: l,
1861
+ children: /* @__PURE__ */ U(Ee, {
1862
+ schema: r,
1863
+ path: l,
1864
+ uischema: {
1865
+ type: "Control",
1866
+ scope: "#",
1867
+ options: Q(Q({}, o == null ? void 0 : o[e]), {}, { summaryOnly: !0 })
1868
+ },
1869
+ enabled: i,
1870
+ cells: a
1871
+ })
1872
+ }) : /* @__PURE__ */ U(an, {
1873
+ path: l,
1874
+ children: /* @__PURE__ */ U("div", {
1875
+ style: Q(Q({}, d), {}, {
1876
+ width: d.width ? "100%" : void 0,
1877
+ overflow: "hidden"
1878
+ }),
1879
+ children: /* @__PURE__ */ U(Io, Q(Q({}, f), {}, { rowPath: l }))
1880
+ })
1881
+ });
1882
+ }
1883
+ };
1884
+ });
1885
+ }
1886
+ {
1887
+ let e = {
1888
+ schema: r,
1889
+ enabled: i
1890
+ };
1891
+ return [{ render: (t, r) => {
1892
+ let i = lt.compose(n, `${r.index}`);
1893
+ return /* @__PURE__ */ U(Io, Q(Q({}, e), {}, { rowPath: i }));
1894
+ } }];
1895
+ }
1896
+ }, Po = (e, t) => {
1897
+ let n = e.properties;
1898
+ return e.type === "object" && typeof n == "object" ? Object.keys(n).filter((e) => n[e].type !== "array" || !!(t != null && t[e])) : [""];
1899
+ }, Fo = (e, t) => {
1900
+ var n, r, i, a;
1901
+ let o = t.rowPath + (t.schema.type === "object" ? "." + t.propName : ""), s = St(Hr(xt(o, t.schema, (e) => e === o)((n = (r = e.core) == null ? void 0 : r.errors) == null ? [] : n).flatMap((e) => {
1902
+ var t;
1903
+ return (t = e.message) == null ? [] : t;
1904
+ })));
1905
+ return {
1906
+ propName: t.propName,
1907
+ schema: t.schema,
1908
+ rootSchema: (i = (a = e.core) == null ? void 0 : a.schema) == null ? t.schema : i,
1909
+ errors: s,
1910
+ path: o,
1911
+ enabled: t.enabled,
1912
+ cells: t.cells || e.cells,
1913
+ renderers: t.renderers || e.renderers,
1914
+ cellOptions: t.cellOptions
1915
+ };
1916
+ }, Io = (e) => {
1917
+ let t = Fo(Ae(), e);
1918
+ return /* @__PURE__ */ U(Do, Q({}, t));
1919
+ }, Lo = ({ rowIndex: e, moveUpCreator: t, moveDownCreator: n, enabled: r, enableUp: i, enableDown: a, showSortButtons: o, path: c, translations: l }) => {
1920
+ let u = s(() => t == null ? void 0 : t(c, e), [
1921
+ t,
1922
+ c,
1923
+ e
1924
+ ]), d = s(() => n == null ? void 0 : n(c, e), [
1925
+ n,
1926
+ c,
1927
+ e
1928
+ ]);
1929
+ return /* @__PURE__ */ U("div", { children: o ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(z, {
1930
+ title: l.up,
1931
+ children: /* @__PURE__ */ U(p, {
1932
+ shape: "circle",
1933
+ "aria-label": l.upAriaLabel,
1934
+ icon: /* @__PURE__ */ U(Rr, { rev: void 0 }),
1935
+ onClick: u,
1936
+ disabled: !r || !i || !u
1937
+ })
1938
+ }), /* @__PURE__ */ U(z, {
1939
+ title: l.down,
1940
+ children: /* @__PURE__ */ U(p, {
1941
+ shape: "circle",
1942
+ "aria-label": l.downAriaLabel,
1943
+ icon: /* @__PURE__ */ U(Lr, { rev: void 0 }),
1944
+ onClick: d,
1945
+ disabled: !r || !a || !d
1946
+ })
1947
+ })] }) : null });
1948
+ }, Ro = (e) => {
1949
+ let t = e.path, n = e.showSortButtons ? 150 : 50;
1950
+ return No(e).concat(e.enabled && e.showSortButtons ? [{
1951
+ key: "actions",
1952
+ dataIndex: "",
1953
+ title: "",
1954
+ width: n,
1955
+ render: (n, r) => {
1956
+ let i = r.index, a = lt.compose(t, `${i}`), o = i !== 0, s = i !== e.data - 1;
1957
+ return /* @__PURE__ */ U(Lo, Q(Q({}, e), {}, {
1958
+ enableUp: o,
1959
+ enableDown: s,
1960
+ rowIndex: i,
1961
+ childPath: a
1962
+ }));
1963
+ }
1964
+ }] : []);
1965
+ }, zo = ({ props: e, columns: t, dataSource: r, isObjectSchema: i, renderFrame: a }) => {
1966
+ var o, s;
1967
+ let { token: c } = V.useToken(), l = Nr(r.map((e) => e.index), (o = e.uischema.options) == null ? void 0 : o.pagination, e.config, "array", !0), [u, d] = kr(), f = Ir(e), m = Mr(e), h = t.find((e) => e.key === "actions"), g = f.options ? [...t.filter((e) => e.key !== "actions"), {
1968
+ key: "actions",
1969
+ title: "",
1970
+ width: ((s = h == null ? void 0 : h.width) == null ? 0 : s) + 40,
1971
+ render: (t, n, r) => /* @__PURE__ */ W("div", {
1972
+ style: {
1973
+ display: "flex",
1974
+ alignItems: "center",
1975
+ gap: 4,
1976
+ whiteSpace: "nowrap"
1977
+ },
1978
+ children: [
1979
+ /* @__PURE__ */ U(z, {
1980
+ title: f.t("collection.editDetails"),
1981
+ children: /* @__PURE__ */ U(p, {
1982
+ icon: /* @__PURE__ */ U(me, {}),
1983
+ "aria-label": f.t("collection.editDetails"),
1984
+ onClick: (e) => {
1985
+ var t;
1986
+ e.stopPropagation(), ((t = f.options) == null ? void 0 : t.presentation) === "panel" && f.setPanelOpen(!0), f.open(n.index);
1987
+ }
1988
+ })
1989
+ }),
1990
+ /* @__PURE__ */ U(Dr, {
1991
+ path: e.path,
1992
+ index: n.index,
1993
+ renderIndicator: (t) => /* @__PURE__ */ U(Ja, {
1994
+ errorMessages: t,
1995
+ id: `${e.path}-${n.index}-row-errors`
1996
+ })
1997
+ }),
1998
+ h == null ? void 0 : h.render(t, n, r)
1999
+ ]
2000
+ })
2001
+ }] : t;
2002
+ return /* @__PURE__ */ W(hn, {
2003
+ changes: l.pending,
2004
+ children: [a(/* @__PURE__ */ U(So, {
2005
+ state: f,
2006
+ children: /* @__PURE__ */ W("div", {
2007
+ style: {
2008
+ minWidth: 0,
2009
+ overflow: "auto"
2010
+ },
2011
+ children: [
2012
+ /* @__PURE__ */ U(ee, {
2013
+ style: u.__selection ? {
2014
+ width: Object.values(u).reduce((e, t) => e + t, 0),
2015
+ maxWidth: "none"
2016
+ } : void 0,
2017
+ tableLayout: u.__selection ? "fixed" : "auto",
2018
+ rowSelection: {
2019
+ columnWidth: u.__selection,
2020
+ selectedRowKeys: m.selected,
2021
+ onChange: (e) => m.setSelected(e.filter((e) => typeof e == "number")),
2022
+ getCheckboxProps: () => ({ disabled: !m.selectable })
2023
+ },
2024
+ scroll: { x: u.__selection ? Object.values(u).reduce((e, t) => e + t, 0) : "max-content" },
2025
+ dataSource: l.indices.map((e) => r[e]),
2026
+ showHeader: i,
2027
+ columns: g.map((t) => {
2028
+ var n, r, i, a, o, s, l, f, p, m;
2029
+ if (!t.dataIndex) return Q(Q({}, t), {}, { width: (n = u.__actions) == null ? t.width : n });
2030
+ let h = t.dataIndex, g = (r = e.uischema.options) == null || (r = r.columnDefs) == null ? void 0 : r.find((e) => e.field === h), _ = (i = u[h]) == null ? t.width : i;
2031
+ return Q(Q({}, t), {}, {
2032
+ width: _,
2033
+ onHeaderCell: () => ({
2034
+ "data-column-key": h,
2035
+ style: Q(Q({}, jr(g)), {}, {
2036
+ width: _,
2037
+ position: "relative",
2038
+ paddingInlineEnd: 16
2039
+ })
2040
+ }),
2041
+ onCell: () => ({ style: Q(Q({}, jr(g)), {}, { width: _ }) }),
2042
+ title: /* @__PURE__ */ W(H, { children: [
2043
+ t.title,
2044
+ ((a = e.schema.required) == null ? void 0 : a.includes(h)) && !((o = (s = (l = e.uischema.options) == null || (l = l.cells) == null || (l = l[h]) == null ? void 0 : l.hideRequiredAsterisk) == null ? (f = e.uischema.options) == null ? void 0 : f.hideRequiredAsterisk : s) == null ? (p = e.config) != null && p.hideRequiredAsterisk : o) && /* @__PURE__ */ W("span", {
2045
+ "aria-hidden": "true",
2046
+ style: { color: c.colorError },
2047
+ children: [" ", "*"]
2048
+ }),
2049
+ /* @__PURE__ */ U(Or, {
2050
+ colors: {
2051
+ border: c.colorSplit,
2052
+ active: c.colorPrimary,
2053
+ focus: c.colorPrimaryBorder
2054
+ },
2055
+ field: String((m = t.title) == null ? h : m),
2056
+ definition: g,
2057
+ width: _,
2058
+ onResizeStart: (e) => d(e),
2059
+ onResize: (e) => d((t) => Q(Q({}, t), {}, { [h]: e }))
2060
+ })
2061
+ ] })
2062
+ });
2063
+ }),
2064
+ size: "small",
2065
+ pagination: !1,
2066
+ rowClassName: (e) => {
2067
+ var t, n;
2068
+ return ((t = f.options) == null ? void 0 : t.presentation) === "panel" && f.panelOpen && ((n = f.selection) == null ? void 0 : n.index) === e.index ? "ant-table-row-selected" : "";
2069
+ },
2070
+ onRow: (e) => {
2071
+ var t, n;
2072
+ return {
2073
+ "aria-current": ((t = f.options) == null ? void 0 : t.presentation) === "panel" && f.panelOpen && ((n = f.selection) == null ? void 0 : n.index) === e.index ? !0 : void 0,
2074
+ onClick: () => {
2075
+ var t;
2076
+ ((t = f.options) == null ? void 0 : t.presentation) === "panel" && f.open(e.index);
2077
+ }
2078
+ };
2079
+ }
2080
+ }),
2081
+ /* @__PURE__ */ U(Er, {
2082
+ options: e.uischema.options,
2083
+ renderAction: (e, t, n) => /* @__PURE__ */ U(z, {
2084
+ title: e,
2085
+ children: /* @__PURE__ */ U(p, {
2086
+ size: "small",
2087
+ icon: n,
2088
+ "aria-label": e,
2089
+ onClick: t
2090
+ })
2091
+ }),
2092
+ path: e.path,
2093
+ reveal: (e) => {
2094
+ l.change(Math.floor(e / l.size) + 1), f.options && (f.setPanelOpen(!0), f.open(e));
2095
+ }
2096
+ }),
2097
+ /* @__PURE__ */ U(po, { page: l })
2098
+ ]
2099
+ })
2100
+ }), /* @__PURE__ */ W(n.Fragment, { children: [/* @__PURE__ */ U(Co, { state: f }), /* @__PURE__ */ U(z, {
2101
+ title: f.t("collection.deleteSelected"),
2102
+ children: /* @__PURE__ */ U(p, {
2103
+ shape: "circle",
2104
+ icon: /* @__PURE__ */ U(zr, {}),
2105
+ danger: !0,
2106
+ "aria-label": f.t("collection.deleteSelected"),
2107
+ disabled: !m.canDelete,
2108
+ onClick: m.request
2109
+ })
2110
+ })] }, "table-actions")), /* @__PURE__ */ U(fo, {
2111
+ open: m.confirming,
2112
+ onConfirm: m.confirm,
2113
+ onCancel: m.cancel,
2114
+ title: f.t("collection.deleteSelected"),
2115
+ message: f.t("collection.deleteSelectedMessage"),
2116
+ acceptText: f.t("collection.deleteSelected"),
2117
+ declineText: f.t("composite.cancel")
2118
+ })]
2119
+ });
2120
+ }, Bo = class extends n.Component {
2121
+ constructor(...e) {
2122
+ super(...e), ha(this, "addItem", (e, t) => this.props.addItem(e, t));
2123
+ }
2124
+ render() {
2125
+ let { label: e, description: t, path: n, schema: r, rootSchema: i, uischema: a, errors: o, moveUp: s, moveDown: c, visible: l, enabled: u, translations: d, disableAdd: f, disableRemove: p, config: m, data: h } = this.props, g = Z({}, m, a.options), _ = f || g.disableAdd, v = p || g.disableRemove, y = a, b = r.type === "object";
2126
+ if (!l) return null;
2127
+ let x = Ro(Q(Q({}, this.props), {}, {
2128
+ disableRemove: v,
2129
+ showSortButtons: g.showSortButtons,
2130
+ moveUpCreator: s,
2131
+ moveDownCreator: c
2132
+ })), S = Br(h).map((e) => ({
2133
+ index: e,
2134
+ key: e
2135
+ }));
2136
+ return /* @__PURE__ */ U(zo, {
2137
+ props: this.props,
2138
+ columns: x,
2139
+ dataSource: S,
2140
+ isObjectSchema: b,
2141
+ renderFrame: (a, s) => /* @__PURE__ */ U(Mo, {
2142
+ config: this.props.config,
2143
+ errors: o,
2144
+ label: e,
2145
+ description: t,
2146
+ addItem: this.addItem,
2147
+ path: n,
2148
+ uischema: y,
2149
+ schema: r,
2150
+ rootSchema: i,
2151
+ enabled: u,
2152
+ translations: d,
2153
+ disableAdd: _,
2154
+ actions: s,
2155
+ children: a
2156
+ })
2157
+ });
2158
+ }
2159
+ }, Vo = (e) => {
2160
+ var t;
2161
+ let [n, i] = l(), { removeItems: a, visible: o, translations: s } = e, c = Ae(), u = r((t, n) => {
2162
+ var r, o;
2163
+ if (!a) return;
2164
+ let s = t.substring(0, t.lastIndexOf(".")), l = [ut.data((r = c.core) == null ? void 0 : r.data, t)];
2165
+ Tr({
2166
+ options: (o = e.uischema) == null ? void 0 : o.options,
2167
+ config: e.config,
2168
+ catalogId: "arrayTable",
2169
+ operation: "delete"
2170
+ }, l) ? i({
2171
+ path: s,
2172
+ index: n
2173
+ }) : a(s, [n])();
2174
+ }, [
2175
+ (t = c.core) == null ? void 0 : t.data,
2176
+ e.config,
2177
+ e.uischema,
2178
+ a
2179
+ ]), d = r(() => i(void 0), []), f = r(() => {
2180
+ n && (a == null || a(n.path, [n.index])()), i(void 0);
2181
+ }, [n, a]);
2182
+ return o ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(Bo, Q(Q({}, e), {}, {
2183
+ openDeleteDialog: u,
2184
+ translations: s
2185
+ })), /* @__PURE__ */ U(fo, {
2186
+ open: !!n,
2187
+ onCancel: d,
2188
+ onConfirm: f,
2189
+ acceptText: s.deleteDialogAccept,
2190
+ declineText: s.deleteDialogDecline,
2191
+ title: s.deleteDialogTitle,
2192
+ message: s.deleteDialogMessage
2193
+ })] }) : null;
2194
+ }, Ho = qt(Rt, Ht), Uo = Y(3, Ho), Wo = Y(5, qt(Kt("table", !0), Kt("format", "table"))), Go = (e, t, n) => Ho(e, t, n) ? Math.max(Uo(e, t, n), Wo(e, t, n)) : -1, Ko = Ne(q(je(Vo))), qo = n.memo(function(e) {
2195
+ let { data: t, className: n, id: r, enabled: i, label: a, uischema: o, path: s, handleChange: c, config: l, inputProps: u } = e, d = Z({}, l, o.options);
2196
+ return /* @__PURE__ */ U(h, Q(Q({
2197
+ indeterminate: typeof t != "boolean",
2198
+ checked: t === !0,
2199
+ onChange: (e) => c(s, e.target.checked),
2200
+ className: n,
2201
+ id: r,
2202
+ disabled: !i,
2203
+ autoFocus: !!d.focus
2204
+ }, u), {}, { children: a }));
2205
+ }), Jo = (e, t, n) => (r) => {
2206
+ r ? r.isValid() && t(e, Yr(r, n)) : t(e, void 0);
2207
+ }, Yo = (e, t, n, r, i, a) => (o) => {
2208
+ let s = qr(o.target.value, n), c = Yr(s, r);
2209
+ c.toString() === "Invalid Date" ? (t(e, void 0), i()) : t(e, c), a();
2210
+ }, Xo = {
2211
+ row: 16,
2212
+ column: 16
2213
+ }, Zo = (e, t, n) => ni(e, t, n, Xo), Qo = (e, t, n) => ei(e, t, n, Xo), $o = (e, t, n, r, i, a, o, s, c) => {
2214
+ let l = ri(a, o), u = Zo(a, o, i);
2215
+ return /* @__PURE__ */ U(v, {
2216
+ theme: { components: { Form: { itemMarginBottom: 0 } } },
2217
+ children: /* @__PURE__ */ U("div", {
2218
+ "data-layout": i,
2219
+ style: Q(Q({}, Qo(a, o, i)), {}, { width: "100%" }),
2220
+ children: e.map((e, o) => {
2221
+ let { style: d, diagnostics: f } = ti(e, i, l, u, a == null ? void 0 : a.minItemWidth), p = f;
2222
+ return /* @__PURE__ */ U("div", Q(Q({ style: d }, p.length ? { "data-layout-diagnostic": p.join(" ") } : {}), {}, { children: /* @__PURE__ */ U(Oe, {
2223
+ uischema: e,
2224
+ schema: t,
2225
+ path: n,
2226
+ enabled: r,
2227
+ renderers: s,
2228
+ cells: c
2229
+ }) }), `${n}-${o}`);
2230
+ })
2231
+ })
2232
+ });
2233
+ }, es = n.memo(({ visible: e, elements: t, schema: n, path: r = "", enabled: i = !0, direction: a, layoutOptions: o, config: s, renderers: c, cells: l }) => {
2234
+ let u = Qr(t, r, s);
2235
+ return !n || Kr(u) || !e ? null : $o(u, n, r, i, a, o, s, c, l);
2236
+ }), ts = (e, t, n) => Ra(function* () {
2237
+ let [r] = yield Promise.all([e(), t()]);
2238
+ return {
2239
+ antd: r.default,
2240
+ dayjsName: n
2241
+ };
2242
+ }), ns = {
2243
+ en: ts(() => import("antd/locale/en_US"), () => import("dayjs/locale/en"), "en"),
2244
+ bg: ts(() => import("antd/locale/bg_BG"), () => import("dayjs/locale/bg"), "bg"),
2245
+ es: ts(() => import("antd/locale/es_ES"), () => import("dayjs/locale/es"), "es"),
2246
+ fr: ts(() => import("antd/locale/fr_FR"), () => import("dayjs/locale/fr"), "fr"),
2247
+ it: ts(() => import("antd/locale/it_IT"), () => import("dayjs/locale/it"), "it"),
2248
+ ja: ts(() => import("antd/locale/ja_JP"), () => import("dayjs/locale/ja"), "ja"),
2249
+ nl: ts(() => import("antd/locale/nl_NL"), () => import("dayjs/locale/nl"), "nl"),
2250
+ pl: ts(() => import("antd/locale/pl_PL"), () => import("dayjs/locale/pl"), "pl"),
2251
+ pt: ts(() => import("antd/locale/pt_PT"), () => import("dayjs/locale/pt"), "pt"),
2252
+ ru: ts(() => import("antd/locale/ru_RU"), () => import("dayjs/locale/ru"), "ru"),
2253
+ tr: ts(() => import("antd/locale/tr_TR"), () => import("dayjs/locale/tr"), "tr"),
2254
+ uk: ts(() => import("antd/locale/uk_UA"), () => import("dayjs/locale/uk"), "uk"),
2255
+ zh: ts(() => import("antd/locale/zh_CN"), () => import("dayjs/locale/zh-cn"), "zh-cn")
2256
+ }, rs = ns, is = (e) => {
2257
+ rs = e;
2258
+ }, as = () => rs, os = (e) => {
2259
+ if (!e) return;
2260
+ let t = e.toLowerCase().replace(/_/g, "-");
2261
+ return rs[t] ? t : t.split("-")[0];
2262
+ }, ss = /* @__PURE__ */ new Map(), cs = (e) => (qr.locale(e.dayjsName), e.antd), ls = (e) => {
2263
+ var t, n;
2264
+ let r = os(e), [a, o] = l();
2265
+ return i(() => {
2266
+ if (!r) return;
2267
+ let e = ss.get(r);
2268
+ if (e) {
2269
+ cs(e);
2270
+ return;
2271
+ }
2272
+ let t = rs[r];
2273
+ if (!t) return;
2274
+ let n = !0;
2275
+ return t().then((e) => {
2276
+ ss.set(r, e), n && o({
2277
+ key: r,
2278
+ locale: cs(e)
2279
+ });
2280
+ }).catch(() => {
2281
+ n && o(void 0);
2282
+ }), () => {
2283
+ n = !1;
2284
+ };
2285
+ }, [r]), r ? (t = (n = ss.get(r)) == null ? void 0 : n.antd) == null ? (a == null ? void 0 : a.key) === r ? a.locale : void 0 : t : void 0;
2286
+ }, us = ({ config: e, id: t, schema: n, visible: r, errors: i, description: a, label: o, required: s, path: c, options: l, data: u, addItem: d, removeItem: f, uischema: p, rootSchema: m, enabled: h }) => {
2287
+ var g;
2288
+ let [_, v, y] = ai(), b = i.length === 0, C = Z({}, e, p.options), w = ((g = p.options) == null ? void 0 : g.vertical) === !0, T = !Nt(r, a, _, C.showUnfocusedDescription);
2289
+ return r ? /* @__PURE__ */ U(S.Item, {
2290
+ required: s && !C.hideRequiredAsterisk,
2291
+ hasFeedback: !b,
2292
+ validateStatus: b ? "success" : "error",
2293
+ label: o,
2294
+ help: b ? T ? a : null : i,
2295
+ children: /* @__PURE__ */ U(x, {
2296
+ "aria-orientation": w ? "vertical" : "horizontal",
2297
+ gap: w ? 4 : 8,
2298
+ role: "group",
2299
+ vertical: w,
2300
+ wrap: !w,
2301
+ children: (l == null ? [] : l).map((e, a) => {
2302
+ let o = lt.compose(c, `${a}`), s = !!(u != null && u.includes(e.value));
2303
+ return /* @__PURE__ */ U(qo, {
2304
+ id: t + "-input-" + e.value,
2305
+ label: e.label,
2306
+ isValid: Kr(i),
2307
+ path: o,
2308
+ handleChange: (t, n) => n ? d(c, e.value) : f == null ? void 0 : f(c, e.value),
2309
+ data: s,
2310
+ errors: i,
2311
+ schema: n,
2312
+ visible: r,
2313
+ rootSchema: m,
2314
+ uischema: p,
2315
+ enabled: h,
2316
+ inputProps: {
2317
+ onFocus: v,
2318
+ onBlur: y
2319
+ }
2320
+ }, e.value);
2321
+ })
2322
+ })
2323
+ }) : null;
2324
+ }, ds = (e) => e.oneOf !== void 0 && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0), fs = (e) => e.type === "string" && e.enum !== void 0, ps = Y(5, J(X("Control"), J(Yt((e) => Dt(e, "array") && !Array.isArray(e.items) && e.uniqueItems === !0), Xt("items", (e, t) => {
2325
+ let n = e.$ref ? Jt(t, e.$ref, t) : e;
2326
+ return !!n && (ds(n) || fs(n));
2327
+ })))), ms = Be(us), hs = ({ deleteDisabled: e, name: t, onDelete: n, onRename: r, readonly: i }) => {
2328
+ let a = G();
2329
+ return /* @__PURE__ */ W(x, {
2330
+ className: "jsonforms-additional-property-actions",
2331
+ gap: 4,
2332
+ children: [/* @__PURE__ */ U(z, {
2333
+ title: a("additionalProperties.rename"),
2334
+ children: /* @__PURE__ */ U(p, {
2335
+ "aria-label": a("additionalProperties.renameNamed", { name: t }),
2336
+ disabled: i,
2337
+ icon: /* @__PURE__ */ U(me, {}),
2338
+ onClick: r,
2339
+ shape: "circle",
2340
+ size: "small",
2341
+ type: "text"
2342
+ })
2343
+ }), /* @__PURE__ */ U(z, {
2344
+ title: a(e ? "additionalProperties.deleteBlocked" : "additionalProperties.delete"),
2345
+ children: /* @__PURE__ */ U(p, {
2346
+ "aria-label": a("additionalProperties.deleteNamed", { name: t }),
2347
+ danger: !0,
2348
+ disabled: e,
2349
+ icon: /* @__PURE__ */ U(pe, {}),
2350
+ onClick: n,
2351
+ shape: "circle",
2352
+ size: "small",
2353
+ type: "text"
2354
+ })
2355
+ })]
2356
+ });
2357
+ }, gs = xi((e) => {
2358
+ var t;
2359
+ let { embedded: n = !1, cells: r, data: i, enabled: a, handleChange: o, label: s, path: c, readonly: u, renderers: d, rootSchema: f, schema: h } = e, _ = Ae(), [v, y] = l(""), [b, C] = l(null), T = G(), [E, D] = l(""), O = Ti(e), { objectSchema: k, appliedOptions: A, objectData: M, reservedPropertyNames: N, page: P, additionalPropertyItems: F, shouldShow: I } = O, L = A.restrict !== !1, ee = A.allowEmptyPropertyNames === !0, R = v, te = (e, t) => {
2360
+ switch (e) {
2361
+ case "required": return T("additionalProperties.nameRequired");
2362
+ case "already-defined": return T("additionalProperties.nameTaken", { name: t });
2363
+ default: return T("additionalProperties.nameInvalid", { name: t });
2364
+ }
2365
+ }, ne = nt(), re = (t = _.core) == null ? void 0 : t.ajv, ie = (e, t) => {
2366
+ var n;
2367
+ let r = Mi({
2368
+ name: e,
2369
+ schema: h,
2370
+ rootSchema: f,
2371
+ data: i,
2372
+ currentName: t,
2373
+ disallowedNames: N,
2374
+ allowEmptyName: ee,
2375
+ validate: re ? (e, t) => re.validate(e, t) : void 0
2376
+ });
2377
+ return r.error === void 0 ? void 0 : (n = ne(r.errors)) == null ? te(r.error, r.name) : n;
2378
+ }, V = ie(R), ae = v !== "" && !!V, { addPropertyDisabled: H, removePropertyDisabled: oe, deletion: se, addProperty: ce, removeProperty: le } = wi(e, O, {
2379
+ restrict: L,
2380
+ propertyName: R,
2381
+ propertyNameError: V,
2382
+ setNewPropertyName: y
2383
+ }), ue = (e) => {
2384
+ let t = E;
2385
+ if (ie(t, e) || t === e || !M) return;
2386
+ let n = Ci(M, e, t);
2387
+ o(c, n), C(null), D("");
2388
+ }, de = b === null ? void 0 : ie(E, b), fe = () => {
2389
+ C(null), D("");
2390
+ }, pe = et(c), me = it(c);
2391
+ return I ? /* @__PURE__ */ U(hn, {
2392
+ changes: P.pending,
2393
+ children: /* @__PURE__ */ W(m, {
2394
+ className: "jsonforms-additional-properties",
2395
+ size: "small",
2396
+ variant: n ? "borderless" : "outlined",
2397
+ styles: n ? { body: { padding: 0 } } : void 0,
2398
+ children: [
2399
+ /* @__PURE__ */ U(fo, {
2400
+ open: se.confirming,
2401
+ onCancel: se.cancel,
2402
+ onConfirm: se.confirm
2403
+ }),
2404
+ /* @__PURE__ */ W(x, {
2405
+ vertical: !0,
2406
+ gap: "middle",
2407
+ children: [
2408
+ /* @__PURE__ */ W(j, {
2409
+ align: "bottom",
2410
+ gutter: [12, 8],
2411
+ children: [
2412
+ /* @__PURE__ */ U(g, {
2413
+ md: 5,
2414
+ xs: 24,
2415
+ children: /* @__PURE__ */ W(B.Text, { children: [T("additionalProperties.title"), pe && /* @__PURE__ */ U(Ja, {
2416
+ local: !0,
2417
+ errorMessages: pe,
2418
+ id: `${c}-additional-property-errors`
2419
+ })] })
2420
+ }),
2421
+ /* @__PURE__ */ U(g, {
2422
+ md: 18,
2423
+ xs: 20,
2424
+ children: /* @__PURE__ */ U(S.Item, {
2425
+ label: T("additionalProperties.namePlaceholder"),
2426
+ validateStatus: ae ? "error" : void 0,
2427
+ style: { marginBottom: 0 },
2428
+ children: /* @__PURE__ */ U(w, {
2429
+ "aria-label": s ? T("additionalProperties.addTo", { label: s }) : T("additionalProperties.add"),
2430
+ disabled: !a || u,
2431
+ placeholder: T("additionalProperties.namePlaceholder"),
2432
+ value: v,
2433
+ onChange: (e) => y(e.currentTarget.value),
2434
+ onPressEnter: ce
2435
+ })
2436
+ })
2437
+ }),
2438
+ /* @__PURE__ */ U(g, {
2439
+ md: 1,
2440
+ xs: 4,
2441
+ children: /* @__PURE__ */ U(z, {
2442
+ title: T("additionalProperties.add"),
2443
+ children: /* @__PURE__ */ U(p, {
2444
+ "aria-label": T("additionalProperties.add"),
2445
+ disabled: H,
2446
+ icon: /* @__PURE__ */ U(pr, {}),
2447
+ onClick: ce,
2448
+ shape: "circle",
2449
+ size: "small"
2450
+ })
2451
+ })
2452
+ })
2453
+ ]
2454
+ }),
2455
+ ae ? /* @__PURE__ */ U(B.Text, {
2456
+ className: "jsonforms-additional-properties-error",
2457
+ type: "danger",
2458
+ children: V
2459
+ }) : null,
2460
+ /* @__PURE__ */ U(x, {
2461
+ className: "jsonforms-additional-properties-list",
2462
+ vertical: !0,
2463
+ gap: "middle",
2464
+ children: P.indices.map((e) => F[e]).map((e) => {
2465
+ var t;
2466
+ let n = ji(e.propertyName), i = a ? /* @__PURE__ */ U(hs, {
2467
+ deleteDisabled: oe || !!(L && (t = k.required) != null && t.includes(e.propertyName)),
2468
+ name: e.propertyName,
2469
+ onDelete: () => le(e.propertyName),
2470
+ onRename: () => {
2471
+ C(e.propertyName), D(e.propertyName);
2472
+ },
2473
+ readonly: u
2474
+ }) : null;
2475
+ return /* @__PURE__ */ W(x, {
2476
+ align: "start",
2477
+ className: "jsonforms-additional-property",
2478
+ style: {
2479
+ position: "relative",
2480
+ width: "100%"
2481
+ },
2482
+ vertical: !0,
2483
+ children: [/* @__PURE__ */ W(x, {
2484
+ align: "center",
2485
+ justify: "space-between",
2486
+ style: { width: "100%" },
2487
+ children: [/* @__PURE__ */ W(x, {
2488
+ align: "center",
2489
+ gap: 4,
2490
+ children: [/* @__PURE__ */ U(B.Text, {
2491
+ type: me.has(e.propertyName) ? "danger" : void 0,
2492
+ "data-property-name": e.propertyName,
2493
+ children: e.propertyName === "" ? "\xA0" : e.propertyName
2494
+ }), me.get(e.propertyName) && /* @__PURE__ */ U(Ja, {
2495
+ local: !0,
2496
+ errorMessages: me.get(e.propertyName),
2497
+ id: `${e.path}-name-errors`
2498
+ })]
2499
+ }), i]
2500
+ }), /* @__PURE__ */ U("div", {
2501
+ className: "jsonforms-additional-property-control",
2502
+ style: { width: "100%" },
2503
+ children: n ? /* @__PURE__ */ U(Ni, {
2504
+ cells: r,
2505
+ enabled: !!a,
2506
+ onChange: (t) => o(c, Ai(Q({}, M), e.propertyName, t === void 0 ? Di(e.schema, f, M == null ? void 0 : M[e.propertyName]) : t)),
2507
+ readonly: u,
2508
+ renderers: d,
2509
+ schema: Pi(e.schema, f),
2510
+ uischema: {
2511
+ type: "Control",
2512
+ scope: "#",
2513
+ label: !1
2514
+ },
2515
+ value: M && Object.prototype.hasOwnProperty.call(M, e.propertyName) ? M[e.propertyName] : void 0
2516
+ }) : /* @__PURE__ */ U(Ei, {
2517
+ path: e.path,
2518
+ children: /* @__PURE__ */ U(Oe, {
2519
+ schema: e.schema,
2520
+ uischema: Q(Q({}, e.uischema), {}, { label: !1 }),
2521
+ path: e.path,
2522
+ enabled: a,
2523
+ renderers: d,
2524
+ cells: r,
2525
+ readonly: u
2526
+ })
2527
+ })
2528
+ })]
2529
+ }, e.propertyName);
2530
+ })
2531
+ }),
2532
+ /* @__PURE__ */ U(po, { page: P })
2533
+ ]
2534
+ }),
2535
+ /* @__PURE__ */ U(xa, {
2536
+ disabled: !a || !!u || !!de || !E.trim() || E.trim() === b,
2537
+ error: de,
2538
+ oldName: b,
2539
+ onCancel: fe,
2540
+ onChange: D,
2541
+ onRename: () => {
2542
+ b && ue(b);
2543
+ },
2544
+ value: E
2545
+ })
2546
+ ]
2547
+ })
2548
+ }) : null;
2549
+ }, ({ path: e, title: t, errors: n, detail: r, additional: i }) => {
2550
+ let a = /* @__PURE__ */ W("div", {
2551
+ style: {
2552
+ display: "grid",
2553
+ gap: 12,
2554
+ minWidth: 0
2555
+ },
2556
+ children: [
2557
+ !t && n && /* @__PURE__ */ U(B.Text, {
2558
+ type: "danger",
2559
+ role: "alert",
2560
+ children: n
2561
+ }),
2562
+ r,
2563
+ i
2564
+ ]
2565
+ });
2566
+ return e ? /* @__PURE__ */ U(m, {
2567
+ className: "jsonforms-object",
2568
+ title: t,
2569
+ extra: t && n ? /* @__PURE__ */ U(Ja, {
2570
+ local: !0,
2571
+ errorMessages: n,
2572
+ id: `${e}-object-errors`
2573
+ }) : void 0,
2574
+ children: a
2575
+ }) : a;
2576
+ }), _s = K(gs), vs = ({ open: e, handleClose: t, confirm: n, cancel: r }) => {
2577
+ let i = G();
2578
+ return /* @__PURE__ */ U(D, {
2579
+ title: i("confirm.branchChange.title"),
2580
+ open: e,
2581
+ afterClose: t,
2582
+ onOk: n,
2583
+ onCancel: r,
2584
+ okText: i("confirm.accept"),
2585
+ cancelText: i("confirm.decline"),
2586
+ "aria-labelledby": "alert-dialog-title",
2587
+ "aria-describedby": "alert-dialog-description",
2588
+ children: /* @__PURE__ */ U("p", { children: i("confirm.branchChange.message") })
2589
+ });
2590
+ }, ys = ({ handleChange: e, schema: t, path: n, renderers: i, cells: a, rootSchema: o, id: s, visible: c, indexOfFittingSchema: u, uischema: d, uischemas: f, data: p, enabled: m, config: h, required: g, errors: _, label: v, description: y }) => {
2591
+ var b;
2592
+ let x = Ae();
2593
+ u = (b = Ii(t, o, "oneOf", p)) == null ? u : b;
2594
+ let [C, w] = l(!1), [T, E] = l(u == null ? Kr(p) ? null : 0 : u), [D, O] = l(0), [k, A] = l(!1), [j, N] = l({
2595
+ initialized: !1,
2596
+ data: p,
2597
+ indexOfFittingSchema: u
2598
+ });
2599
+ j.initialized && j.data === p && j.indexOfFittingSchema === u || (N({
2600
+ initialized: !0,
2601
+ data: p,
2602
+ indexOfFittingSchema: u
2603
+ }), Bi(p, u) ? (A(!1), E(null), w(!1)) : !k && u != null && u >= 0 && E(u));
2604
+ let P = r(() => w(!1), [w]), F = r(() => {
2605
+ w(!1);
2606
+ }, [w]), { selectionError: I, renderInfos: L } = Fi({
2607
+ schema: t,
2608
+ rootSchema: o,
2609
+ uischema: d,
2610
+ path: n,
2611
+ uischemas: f
2612
+ }, "oneOf", x.core), ee = (r) => {
2613
+ var i;
2614
+ let a = r === null ? Ri(wn((i = x.core) == null ? void 0 : i.data, n), L.map((e) => e.schema)) : gt(L[r].schema, o);
2615
+ e(n, Li(p, a, t)), E(r);
2616
+ }, R = () => {
2617
+ ee(D), w(!1);
2618
+ }, te = (e) => {
2619
+ let n = e == null ? null : parseInt(e, 10);
2620
+ n !== T && (A(!0), O(n), Tr({
2621
+ options: d.options,
2622
+ config: h,
2623
+ catalogId: "oneOf",
2624
+ operation: "branchChange"
2625
+ }, [zi(p, t)]) ? w(!0) : ee(n));
2626
+ }, [ne, z, re] = ai(), B = Z({}, h, d.options), ie = _.length === 0 && !I, V = !Nt(c, y, ne, B.showUnfocusedDescription), ae = ie ? V ? y : null : I || _, oe = { width: "100%" };
2627
+ if (!c) return null;
2628
+ if (L.length === 1) {
2629
+ let e = L[0];
2630
+ return /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(yr, {
2631
+ schema: t,
2632
+ combinatorKeyword: "oneOf",
2633
+ path: n,
2634
+ rootSchema: o
2635
+ }), /* @__PURE__ */ U(vr, {
2636
+ options: d.options,
2637
+ schema: e.schema,
2638
+ path: n,
2639
+ children: /* @__PURE__ */ U(Oe, {
2640
+ schema: e.schema,
2641
+ uischema: e.uischema,
2642
+ path: n,
2643
+ renderers: i,
2644
+ cells: a,
2645
+ enabled: m
2646
+ })
2647
+ })] });
2648
+ }
2649
+ return /* @__PURE__ */ W(H, { children: [
2650
+ /* @__PURE__ */ U(yr, {
2651
+ schema: t,
2652
+ combinatorKeyword: "oneOf",
2653
+ path: n,
2654
+ rootSchema: o
2655
+ }),
2656
+ /* @__PURE__ */ U(S.Item, {
2657
+ required: g && !B.hideRequiredAsterisk,
2658
+ hasFeedback: !ie,
2659
+ validateStatus: ie ? "success" : "error",
2660
+ label: v,
2661
+ help: ae,
2662
+ style: oe,
2663
+ htmlFor: s + "-input",
2664
+ id: s,
2665
+ children: /* @__PURE__ */ U(M, {
2666
+ id: s + "-input",
2667
+ "aria-invalid": !ie,
2668
+ disabled: !m,
2669
+ autoFocus: B.focus,
2670
+ placeholder: B.placeholder,
2671
+ onFocus: z,
2672
+ onBlur: re,
2673
+ value: T == null ? void 0 : T.toString(),
2674
+ onChange: te,
2675
+ allowClear: m,
2676
+ options: L.map((e, t) => ({
2677
+ value: String(t),
2678
+ label: e.label
2679
+ }))
2680
+ })
2681
+ }),
2682
+ T != null && /* @__PURE__ */ U(vr, {
2683
+ options: d.options,
2684
+ schema: L[T].schema,
2685
+ path: n,
2686
+ children: /* @__PURE__ */ U(Oe, {
2687
+ uischema: L[T].uischema,
2688
+ schema: L[T].schema,
2689
+ path: n,
2690
+ renderers: i,
2691
+ cells: a
2692
+ })
2693
+ }),
2694
+ /* @__PURE__ */ U(vs, {
2695
+ cancel: F,
2696
+ confirm: R,
2697
+ id: "oneOf-" + s,
2698
+ open: C,
2699
+ handleClose: P
2700
+ })
2701
+ ] });
2702
+ }, bs = Y(3, Bt), xs = Ue(ys), Ss = ({ handleChange: e, schema: t, path: n, renderers: i, cells: a, rootSchema: o, id: s, visible: c, indexOfFittingSchema: u = 0, uischema: d, uischemas: f, data: p }) => {
2703
+ var m;
2704
+ let [h, g] = l(!1), [_, v] = l(u), [y, b] = l(0), x = r(() => g(!1), [g]), S = mt((m = t.oneOf) == null ? [] : m, o, "oneOf", d, n, f), C = (t) => {
2705
+ e(n, gt(S[t].schema, o)), v(t);
2706
+ };
2707
+ return c ? /* @__PURE__ */ W(H, { children: [
2708
+ /* @__PURE__ */ U(yr, {
2709
+ schema: t,
2710
+ combinatorKeyword: "oneOf",
2711
+ path: n,
2712
+ rootSchema: o
2713
+ }),
2714
+ /* @__PURE__ */ U(R, {
2715
+ defaultActiveKey: String(_),
2716
+ onChange: (e) => {
2717
+ let t = parseInt(e, 10);
2718
+ b(t), Kr(p) ? C(t) : g(!0);
2719
+ },
2720
+ items: S.map((e, t) => ({
2721
+ label: e.label,
2722
+ key: String(t),
2723
+ children: /* @__PURE__ */ U(Oe, {
2724
+ schema: e.schema,
2725
+ uischema: e.uischema,
2726
+ path: n,
2727
+ renderers: i,
2728
+ cells: a
2729
+ })
2730
+ }))
2731
+ }),
2732
+ /* @__PURE__ */ U(vs, {
2733
+ cancel: x,
2734
+ confirm: () => {
2735
+ C(y), g(!1);
2736
+ },
2737
+ id: "oneOf-" + s,
2738
+ open: h,
2739
+ handleClose: x
2740
+ })
2741
+ ] }) : null;
2742
+ }, Cs = Y(4, J(Bt, Kt("variant", "tab"))), ws = Ue(Ss), Ts = {
2743
+ marginTop: -16,
2744
+ marginBottom: 16
2745
+ }, Es = K((e) => /* @__PURE__ */ U(Vi, Q(Q({}, e), {}, {
2746
+ errorClassName: "ant-form-item-explain ant-form-item-explain-error",
2747
+ errorStyle: Ts
2748
+ }))), Ds = Y(1, X("Label")), Os = ({ text: e, visible: t }) => t ? /* @__PURE__ */ U("label", { children: e }) : null, ks = Le(Os), As = n.memo(function({ label: e, description: t, addItem: n, path: r, enabled: i, createDefault: a, translations: o, disableAdd: s, children: c, options: l, config: u }) {
2749
+ var d;
2750
+ let f = rt(r, l, !((d = l == null ? void 0 : l.hideArraySummaryValidation) == null ? u != null && u.hideArraySummaryValidation : d));
2751
+ return /* @__PURE__ */ U(ko, {
2752
+ options: l,
2753
+ config: u,
2754
+ panelLabel: e,
2755
+ style: { width: "100%" },
2756
+ size: "small",
2757
+ type: "inner",
2758
+ title: jo(e, f, t),
2759
+ extra: [/* @__PURE__ */ U(z, {
2760
+ title: o.addTooltip,
2761
+ children: /* @__PURE__ */ U(p, {
2762
+ disabled: !i || s,
2763
+ "aria-label": o.addTooltip,
2764
+ onClick: n(r, a()),
2765
+ shape: "circle",
2766
+ icon: /* @__PURE__ */ U(pr, { rev: void 0 })
2767
+ })
2768
+ }, "1")],
2769
+ children: c
2770
+ });
2771
+ }), js = {
2772
+ position: "absolute",
2773
+ width: 1,
2774
+ height: 1,
2775
+ overflow: "hidden",
2776
+ clip: "rect(0 0 0 0)",
2777
+ whiteSpace: "nowrap"
2778
+ }, Ms = (e) => {
2779
+ let [t, n] = l(() => Wi(e.uischema.options, e.config, "array") || e.data === 0 ? void 0 : 0), i = r(() => gt(e.schema, e.rootSchema), [e.schema, e.rootSchema]), { arraySchema: a, enabled: o, data: c, path: u, schema: f, uischema: m, errors: h, addItem: g, renderers: v, cells: y, label: x, required: S, rootSchema: C, config: w, uischemas: T, description: E, disableAdd: D, disableRemove: O, translations: k, moveUp: A, moveDown: j, removeItems: M } = e, N = G(), F = da(), I = s(() => Z({}, w, m.options), [w, m.options]), L = I.showSortButtons, ee = I.hideAvatar === !0, R = s(() => ({ marginRight: "10px" }), []), te = s(() => {
2780
+ var t, n;
2781
+ return St(xt(u, f, (e) => e === u)((t = (n = e.ctx.core) == null ? void 0 : n.errors) == null ? [] : t).flatMap((e) => {
2782
+ var t;
2783
+ return (t = e.message) == null ? [] : t;
2784
+ }));
2785
+ }, [
2786
+ u,
2787
+ f,
2788
+ e.ctx.core
2789
+ ]), ne = I.hideArraySummaryValidation ? te : h, re = r((e, t) => {
2790
+ n((n) => n === e ? t : n === t ? e : n);
2791
+ }, []), ie = r((e) => {
2792
+ n((t) => t === void 0 || t < e ? t : t === e ? void 0 : t - 1);
2793
+ }, []), V = r((e, t) => () => {
2794
+ let r = c;
2795
+ g(e, t)(), I.collapseNewItems || n(r);
2796
+ }, [
2797
+ g,
2798
+ c,
2799
+ I.collapseNewItems
2800
+ ]), ae = ({ rowIndex: t, enableUp: n, enableDown: r, showSortButtons: i, disableRemove: a }) => /* @__PURE__ */ W(H, { children: [i ? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(z, {
2801
+ title: k.up,
2802
+ children: /* @__PURE__ */ U(p, {
2803
+ shape: "circle",
2804
+ "aria-label": k.upAriaLabel,
2805
+ icon: /* @__PURE__ */ U(Rr, { rev: void 0 }),
2806
+ onClick: (e) => {
2807
+ e.stopPropagation(), re(t, t - 1), A == null || A(u, t)();
2808
+ },
2809
+ disabled: !o || !n || !A
2810
+ })
2811
+ }), /* @__PURE__ */ U(z, {
2812
+ title: k.down,
2813
+ children: /* @__PURE__ */ U(p, {
2814
+ shape: "circle",
2815
+ "aria-label": k.downAriaLabel,
2816
+ icon: /* @__PURE__ */ U(Lr, { rev: void 0 }),
2817
+ onClick: (e) => {
2818
+ e.stopPropagation(), re(t, t + 1), j == null || j(u, t)();
2819
+ },
2820
+ disabled: !o || !r || !j
2821
+ })
2822
+ })] }) : null, /* @__PURE__ */ U(z, {
2823
+ title: k.removeTooltip,
2824
+ children: /* @__PURE__ */ U(p, {
2825
+ onClick: (n) => {
2826
+ var r;
2827
+ n.stopPropagation(), F.request({
2828
+ operation: "delete",
2829
+ catalogId: "arrayLayout",
2830
+ discarded: [ut.data((r = e.ctx.core) == null ? void 0 : r.data, ft(u, `${t}`))],
2831
+ options: m == null ? void 0 : m.options,
2832
+ config: w,
2833
+ perform: () => {
2834
+ ie(t), M == null || M(u, [t])();
2835
+ }
2836
+ });
2837
+ },
2838
+ shape: "circle",
2839
+ disabled: !o || a || !M,
2840
+ icon: /* @__PURE__ */ U(zr, { rev: void 0 }),
2841
+ "aria-label": k.removeAriaLabel
2842
+ })
2843
+ }, "tooltip-remove")] }), oe = s(() => tn(T == null ? [] : T, f, m.scope, u, typeof f == "boolean" && f ? () => ht("#") : void 0, m, C), [
2844
+ T,
2845
+ f,
2846
+ u,
2847
+ m,
2848
+ C
2849
+ ]), se = D || I.disableAdd || I.restrict && a !== void 0 && a.maxItems !== void 0 && c >= a.maxItems, ce = O || I.disableRemove || I.restrict && a !== void 0 && a.minItems !== void 0 && c <= a.minItems, le = (t, n) => {
2850
+ var r, i, a;
2851
+ let o = (r = (i = m.options) == null ? void 0 : i.elementLabelProp) == null ? Tt(f) : r;
2852
+ if (!o) return `${n}`;
2853
+ let s = ut.data((a = e.ctx.core) == null ? void 0 : a.data, ft(t, o));
2854
+ return s == null || Number.isNaN(s) ? "" : `${s}`;
2855
+ };
2856
+ return /* @__PURE__ */ W(H, { children: [F.dialog, /* @__PURE__ */ U(As, {
2857
+ options: m.options,
2858
+ config: w,
2859
+ translations: k,
2860
+ label: pt(x, S != null && S, I.hideRequiredAsterisk),
2861
+ description: E,
2862
+ errors: ne,
2863
+ path: u,
2864
+ enabled: o,
2865
+ addItem: V,
2866
+ createDefault: i,
2867
+ disableAdd: se,
2868
+ children: c > 0 ? /* @__PURE__ */ U(_, {
2869
+ accordion: !0,
2870
+ expandIconPlacement: "end",
2871
+ activeKey: t === void 0 ? [] : [String(t)],
2872
+ onChange: (e) => {
2873
+ let t = Array.isArray(e) ? e[0] : e;
2874
+ n(t === void 0 ? void 0 : Number(t));
2875
+ },
2876
+ items: qi(Br(c), (t) => {
2877
+ let n = ft(u, `${t}`), r = le(n, t);
2878
+ return {
2879
+ key: String(t),
2880
+ label: /* @__PURE__ */ W(H, { children: [ee ? /* @__PURE__ */ W("span", {
2881
+ style: js,
2882
+ children: [
2883
+ N("array.indexLabel"),
2884
+ " ",
2885
+ t + 1
2886
+ ]
2887
+ }) : /* @__PURE__ */ U(d, {
2888
+ "aria-label": N("array.indexLabel"),
2889
+ style: R,
2890
+ children: t + 1
2891
+ }), /* @__PURE__ */ W(P, {
2892
+ size: "small",
2893
+ align: "center",
2894
+ style: { verticalAlign: "middle" },
2895
+ children: [r ? /* @__PURE__ */ U(B.Text, { children: r }) : null, /* @__PURE__ */ U(Ui, {
2896
+ Indicator: ba,
2897
+ path: n,
2898
+ options: e.uischema.options,
2899
+ config: e.config
2900
+ })]
2901
+ })] }),
2902
+ extra: /* @__PURE__ */ U(P, { children: ae({
2903
+ rowIndex: t,
2904
+ enableUp: t !== 0,
2905
+ enableDown: t !== e.data - 1,
2906
+ showSortButtons: L,
2907
+ disableRemove: ce
2908
+ }) }),
2909
+ children: /* @__PURE__ */ U(Oe, {
2910
+ schema: f,
2911
+ uischema: oe,
2912
+ path: n,
2913
+ renderers: v,
2914
+ cells: y
2915
+ }, n)
2916
+ };
2917
+ })
2918
+ }) : /* @__PURE__ */ U(b, { description: k.noDataMessage })
2919
+ })] });
2920
+ }, Ns = n.memo(function(e) {
2921
+ let t = Ae();
2922
+ return /* @__PURE__ */ U(Ms, Q(Q({}, e), {}, { ctx: t }));
2923
+ }), Ps = ["visible", "addItem"], Fs = (e) => {
2924
+ let { visible: t, addItem: n } = e, i = Ia(e, Ps), a = r((e, t) => n(e, t), [n]);
2925
+ return t ? /* @__PURE__ */ U(Ns, Q({
2926
+ visible: t,
2927
+ addItem: a
2928
+ }, i)) : null;
2929
+ }, Is = Y(4, qt(zt, J(At, Yt((e) => e.type === "array" && e.items === !0)))), Ls = Ne(q(je(Fs))), { Text: Rs } = B, zs = {
2930
+ position: "absolute",
2931
+ width: 1,
2932
+ height: 1,
2933
+ overflow: "hidden",
2934
+ clip: "rect(0 0 0 0)",
2935
+ whiteSpace: "nowrap"
2936
+ }, Bs = ({ index: e, childLabel: t, selected: n, enabled: r, handleSelect: i, removeItem: a, path: o, translations: s, disableRemove: c, hideAvatar: l }) => {
2937
+ let u = G(), { useToken: f } = V, { token: m } = f();
2938
+ return /* @__PURE__ */ W(x, {
2939
+ align: "center",
2940
+ gap: m.marginXS,
2941
+ className: "jsonforms-list-detail-item",
2942
+ onClick: i(e),
2943
+ style: {
2944
+ paddingBlock: m.paddingSM,
2945
+ paddingInline: m.paddingXS,
2946
+ background: n ? m.controlItemBgActive : void 0,
2947
+ borderRadius: m.borderRadius
2948
+ },
2949
+ children: [/* @__PURE__ */ W(p, {
2950
+ type: "text",
2951
+ "aria-pressed": n,
2952
+ onClick: (t) => {
2953
+ t.stopPropagation(), i(e)();
2954
+ },
2955
+ style: {
2956
+ flex: 1,
2957
+ minWidth: 0,
2958
+ height: "auto",
2959
+ justifyContent: "flex-start"
2960
+ },
2961
+ children: [l ? /* @__PURE__ */ W("span", {
2962
+ style: zs,
2963
+ children: [
2964
+ u("array.indexLabel"),
2965
+ " ",
2966
+ e + 1
2967
+ ]
2968
+ }) : /* @__PURE__ */ U(d, {
2969
+ "aria-label": u("array.indexLabel"),
2970
+ style: n ? {
2971
+ background: m.colorPrimary,
2972
+ flexShrink: 0
2973
+ } : { flexShrink: 0 },
2974
+ size: "small",
2975
+ children: e + 1
2976
+ }), /* @__PURE__ */ U(Rs, {
2977
+ ellipsis: !0,
2978
+ children: t == null ? e : t
2979
+ })]
2980
+ }), /* @__PURE__ */ U(z, {
2981
+ title: s.removeTooltip,
2982
+ children: /* @__PURE__ */ U(p, {
2983
+ disabled: !r || c,
2984
+ "aria-label": s.removeAriaLabel,
2985
+ icon: /* @__PURE__ */ U(zr, { rev: void 0 }),
2986
+ onClick: (t) => {
2987
+ t.stopPropagation(), a(o, e)();
2988
+ }
2989
+ })
2990
+ }, "action_remove")]
2991
+ });
2992
+ }, Vs = ze(Bs), Hs = (e) => {
2993
+ var t, i, a;
2994
+ let { uischemas: o, schema: c, uischema: u, path: d, enabled: f, errors: p, visible: m, label: h, required: g, removeItems: _, addItem: v, data: y, renderers: x, cells: S, config: C, rootSchema: w, description: T, disableAdd: D, disableRemove: O, translations: k } = e, [A, j] = l(), M = da(), N = Ae(), P = r((t, n) => () => {
2995
+ var r, i;
2996
+ M.request({
2997
+ operation: "delete",
2998
+ catalogId: "listWithDetail",
2999
+ discarded: [ut.data((r = N.core) == null ? void 0 : r.data, ft(t, `${n}`))],
3000
+ options: (i = e.uischema) == null ? void 0 : i.options,
3001
+ config: C,
3002
+ perform: () => {
3003
+ _ == null || _(t, [n])(), A === n ? j(void 0) : A !== void 0 && A > n && j(A - 1);
3004
+ }
3005
+ });
3006
+ }, [
3007
+ M,
3008
+ C,
3009
+ (t = N.core) == null ? void 0 : t.data,
3010
+ e.uischema,
3011
+ _,
3012
+ A
3013
+ ]), I = r((e) => () => j(e), [j]), L = r(() => gt(c, w), [c, w]), ee = s(() => tn(o == null ? [] : o, c, u.scope, d, void 0, u, w), [
3014
+ o,
3015
+ c,
3016
+ d,
3017
+ u,
3018
+ w
3019
+ ]), R = Z({}, C, u.options), te = St(xt(d, c, (e) => e === d)((i = (a = N.core) == null ? void 0 : a.errors) == null ? [] : i).flatMap((e) => {
3020
+ var t;
3021
+ return (t = e.message) == null ? [] : t;
3022
+ })), ne = R.hideArraySummaryValidation ? te : p, z = D || R.disableAdd, re = !_ || O || R.disableRemove, [B, ie] = n.useState(c);
3023
+ if (B !== c && (ie(c), j(void 0)), !m) return null;
3024
+ let V = yt(c);
3025
+ return V.length > 0 && !V.includes("object") ? /* @__PURE__ */ U(Fs, Q({}, e)) : /* @__PURE__ */ W(H, { children: [M.dialog, /* @__PURE__ */ U(As, {
3026
+ options: u.options,
3027
+ config: C,
3028
+ translations: k,
3029
+ label: pt(h, g != null && g, R.hideRequiredAsterisk),
3030
+ description: T,
3031
+ errors: ne,
3032
+ path: d,
3033
+ enabled: f,
3034
+ addItem: v,
3035
+ createDefault: L,
3036
+ disableAdd: z,
3037
+ children: /* @__PURE__ */ W(F, {
3038
+ orientation: "horizontal",
3039
+ children: [/* @__PURE__ */ U(F.Panel, {
3040
+ defaultSize: "25%",
3041
+ min: "15%",
3042
+ max: "60%",
3043
+ children: /* @__PURE__ */ U("div", {
3044
+ style: {
3045
+ maxHeight: "20rem",
3046
+ overflowY: "auto",
3047
+ overscrollBehaviorY: "contain"
3048
+ },
3049
+ children: y > 0 ? /* @__PURE__ */ U(E, {
3050
+ items: Br(y),
3051
+ rowKey: (e) => e,
3052
+ styles: { item: { padding: 0 } },
3053
+ itemRender: (e) => /* @__PURE__ */ U(Vs, {
3054
+ index: e,
3055
+ path: d,
3056
+ schema: c,
3057
+ enabled: f,
3058
+ handleSelect: I,
3059
+ removeItem: P,
3060
+ selected: A === e,
3061
+ uischema: ee,
3062
+ childLabelProp: R.elementLabelProp,
3063
+ translations: k,
3064
+ disableRemove: re,
3065
+ hideAvatar: R.hideAvatar === !0
3066
+ }, e)
3067
+ }) : /* @__PURE__ */ U(b, { description: k.noDataMessage })
3068
+ })
3069
+ }), /* @__PURE__ */ U(F.Panel, {
3070
+ min: "25%",
3071
+ children: /* @__PURE__ */ U("div", {
3072
+ style: {
3073
+ minWidth: 0,
3074
+ paddingInlineStart: 12
3075
+ },
3076
+ children: A === void 0 ? /* @__PURE__ */ U(b, { description: k.noSelection }) : /* @__PURE__ */ U(Oe, {
3077
+ renderers: x,
3078
+ cells: S,
3079
+ visible: m,
3080
+ schema: c,
3081
+ uischema: ee,
3082
+ path: ft(d, `${A}`)
3083
+ })
3084
+ })
3085
+ })]
3086
+ })
3087
+ })] });
3088
+ }, Us = Y(4, J(X("ListWithDetail"), Zt("array"))), Ws = Ne(q(je(Hs))), Gs = ({ revealed: e, onToggle: t, disabled: n = !1 }) => {
3089
+ let r = G()(e ? "password.hide" : "password.show");
3090
+ return /* @__PURE__ */ U(z, {
3091
+ title: r,
3092
+ children: /* @__PURE__ */ U("button", {
3093
+ "aria-label": r,
3094
+ "data-password-toggle": !0,
3095
+ disabled: n,
3096
+ onMouseDown: (e) => e.preventDefault(),
3097
+ onClick: t,
3098
+ style: {
3099
+ background: "none",
3100
+ border: 0,
3101
+ color: "inherit",
3102
+ cursor: n ? "not-allowed" : "pointer",
3103
+ display: "inline-flex",
3104
+ padding: 0
3105
+ },
3106
+ tabIndex: 0,
3107
+ type: "button",
3108
+ children: U(e ? ge : he, { rev: void 0 })
3109
+ })
3110
+ });
3111
+ }, Ks = "•", qs = (e) => {
3112
+ let t = e == null ? void 0 : e.minLength, n = e == null ? void 0 : e.maxLength;
3113
+ return typeof t == "number" && typeof n == "number" && n > 0 ? n : void 0;
3114
+ }, Js = n.memo(function(e) {
3115
+ var t;
3116
+ let { data: n, config: r, className: i, id: a, enabled: o, uischema: s, path: c, handleChange: u, schema: d, label: f } = e, p = Z({}, r, s.options), [m, h] = l(!1), g = (t = qs(d)) == null ? 6 : t, _ = typeof n == "string" ? n : "";
3117
+ return /* @__PURE__ */ U(Ma, {
3118
+ clearable: p.clearable !== !1,
3119
+ data: n,
3120
+ enabled: o,
3121
+ onClear: () => u(c, void 0),
3122
+ children: (t) => /* @__PURE__ */ W(x, {
3123
+ align: "center",
3124
+ gap: "small",
3125
+ children: [
3126
+ /* @__PURE__ */ U(w.OTP, Q({
3127
+ onInput: (e) => u(c, e.join("") || void 0),
3128
+ mask: !m && "•",
3129
+ type: m ? "text" : "password",
3130
+ value: _,
3131
+ length: g,
3132
+ disabled: !o,
3133
+ autoComplete: "one-time-code",
3134
+ className: i,
3135
+ role: "group",
3136
+ "aria-label": typeof f == "string" ? f : void 0,
3137
+ id: a
3138
+ }, e.inputProps)),
3139
+ /* @__PURE__ */ U(Gs, {
3140
+ revealed: m,
3141
+ onToggle: () => h((e) => !e),
3142
+ disabled: !o
3143
+ }),
3144
+ t
3145
+ ]
3146
+ })
3147
+ });
3148
+ }), Ys = (e) => {
3149
+ if (!Array.isArray(e)) return;
3150
+ let t = e.filter((e) => e === "hours" || e === "minutes" || e === "seconds");
3151
+ if (t.length !== 0) return {
3152
+ showHour: t.includes("hours"),
3153
+ showMinute: t.includes("minutes"),
3154
+ showSecond: t.includes("seconds")
3155
+ };
3156
+ }, Xs = (e, t) => {
3157
+ if (Array.isArray(e)) {
3158
+ let t = e.filter((e) => e === "year" || e === "month" || e === "day");
3159
+ if (t.includes("day")) return "date";
3160
+ if (t.includes("month")) return "month";
3161
+ if (t.includes("year")) return "year";
3162
+ }
3163
+ return t.includes("D") ? "date" : t.includes("M") ? "month" : "year";
3164
+ }, Zs = "2000-01-01", Qs = (e) => {
3165
+ if (e.empty) return () => !0;
3166
+ if (e.min || e.max) return (t) => tc(t, e, "day");
3167
+ }, $s = (e, t) => {
3168
+ let n = [];
3169
+ for (let r = e; r <= t; r += 1) n.push(r);
3170
+ return n;
3171
+ }, ec = (e, t, n) => {
3172
+ if (!e.min && !e.max) return;
3173
+ let r = n === "second";
3174
+ return (n) => {
3175
+ var i;
3176
+ let a = t ? qr(Zs).startOf("day") : ((i = n == null ? e.min : n) == null ? e.max : i).startOf("day"), o = e.min && e.min.isSame(a, "day") ? e.min : void 0, s = e.max && e.max.isSame(a, "day") ? e.max : void 0;
3177
+ if (!o && !s) return {};
3178
+ let c = () => [...o ? $s(0, o.hour() - 1) : [], ...s ? $s(s.hour() + 1, 23) : []], l = (e) => [...o && e === o.hour() ? $s(0, o.minute() - 1) : [], ...s && e === s.hour() ? $s(s.minute() + 1, 59) : []];
3179
+ return r ? {
3180
+ disabledHours: c,
3181
+ disabledMinutes: l,
3182
+ disabledSeconds: (e, t) => [...o && e === o.hour() && t === o.minute() ? $s(0, o.second() - 1) : [], ...s && e === s.hour() && t === s.minute() ? $s(s.second() + 1, 59) : []]
3183
+ } : {
3184
+ disabledHours: c,
3185
+ disabledMinutes: l
3186
+ };
3187
+ };
3188
+ }, tc = (e, { min: t, max: n }, r) => !!t && e.isBefore(t.startOf(r)) || !!n && e.isAfter(n.startOf(r)), nc = {
3189
+ date: {
3190
+ formats: ["YYYY-MM-DD"],
3191
+ saveFormat: Yi
3192
+ },
3193
+ dateTime: {
3194
+ formats: [
3195
+ "YYYY-MM-DDTHH:mm:ss.SSSZ",
3196
+ "YYYY-MM-DDTHH:mm:ss.SSS",
3197
+ "YYYY-MM-DDTHH:mm:ssZ",
3198
+ "YYYY-MM-DDTHH:mm:ss"
3199
+ ],
3200
+ saveFormat: Xi
3201
+ },
3202
+ time: {
3203
+ formats: [
3204
+ "HH:mm:ss.SSSZ",
3205
+ "HH:mm:ss.SSS",
3206
+ "HH:mm:ssZ",
3207
+ "HH:mm:ss"
3208
+ ],
3209
+ saveFormat: Zi
3210
+ }
3211
+ }, rc = { width: "100%" };
3212
+ function ic(e, t) {
3213
+ return e === "date" ? "YYYY-MM-DD" : e === "dateTime" ? "YYYY-MM-DD HH:mm" : t === !0 ? "hh:mm a" : "HH:mm";
3214
+ }
3215
+ function ac(e, t) {
3216
+ var n, r, a;
3217
+ let { config: o, uischema: c, schema: l, path: u, data: d, handleChange: f, enabled: p, isValid: m, id: h, className: g } = e, _ = s(() => Z({}, o, c.options), [o, c.options]), v = (n = Ae().core) == null ? void 0 : n.data, y = s(() => ea(l, u, v), [
3218
+ l,
3219
+ u,
3220
+ v
3221
+ ]), b = (r = _[`${t}Format`]) == null ? ic(t, _.ampm) : r, x = (a = _[`${t}SaveFormat`]) == null ? nc[t].saveFormat : a, S = s(() => [
3222
+ x,
3223
+ b,
3224
+ ...nc[t].formats
3225
+ ], [
3226
+ x,
3227
+ b,
3228
+ t
3229
+ ]);
3230
+ i(() => {
3231
+ Qi(l == null ? void 0 : l.format, x);
3232
+ }, [l == null ? void 0 : l.format, x]);
3233
+ let C = s(() => Xr(d, S), [d, S]), w = s(() => Jo(u, f, x), [
3234
+ u,
3235
+ f,
3236
+ x
3237
+ ]), T = $i(c.options, o), E = b.includes("s") ? "second" : "minute", D = s(() => ta(y, S, t === "date" ? "day" : E, t === "time"), [
3238
+ y,
3239
+ S,
3240
+ t,
3241
+ E
3242
+ ]);
3243
+ return {
3244
+ options: _,
3245
+ disabledDate: s(() => T && t !== "time" ? Qs(D) : void 0, [
3246
+ D,
3247
+ T,
3248
+ t
3249
+ ]),
3250
+ disabledTime: s(() => T && t !== "date" ? ec(D, t === "time", E) : void 0, [
3251
+ D,
3252
+ t,
3253
+ T,
3254
+ E
3255
+ ]),
3256
+ saveFormat: x,
3257
+ pickerProps: {
3258
+ value: C,
3259
+ onChange: w,
3260
+ format: b,
3261
+ allowClear: p,
3262
+ disabled: !p,
3263
+ className: g,
3264
+ id: h,
3265
+ autoFocus: _.focus,
3266
+ placeholder: _.placeholder,
3267
+ style: rc,
3268
+ status: m ? void 0 : "error"
3269
+ }
3270
+ };
3271
+ }
3272
+ // src/antd-controls/AntdDatePicker.tsx
3273
+ var oc = n.memo(function(e) {
3274
+ let { pickerProps: t, options: n, disabledDate: r, saveFormat: i } = ac(e, "date");
3275
+ return /* @__PURE__ */ U(y, Q(Q({}, t), {}, {
3276
+ picker: Xs(n.views, i),
3277
+ disabledDate: r
3278
+ }, e.inputProps));
3279
+ }), sc = n.memo(function(e) {
3280
+ var t;
3281
+ let { pickerProps: n, options: r, disabledDate: i, disabledTime: a } = ac(e, "dateTime");
3282
+ return /* @__PURE__ */ U(y, Q(Q({}, n), {}, {
3283
+ disabledDate: i,
3284
+ disabledTime: a,
3285
+ showTime: (t = Ys(r.views)) == null || t,
3286
+ use12Hours: !!r.ampm
3287
+ }, e.inputProps));
3288
+ }), cc = n.memo(function(e) {
3289
+ let { data: t, className: r, id: i, enabled: a, uischema: o, path: s, handleChange: c, config: l, inputProps: u } = e, d = na(s), f = n.useCallback((e, t) => c(e, d && t === void 0 ? 0 : t), [c, d]), p = Z({}, l, o.options), m = { width: "100%" }, [h, g, _] = ii(f, d ? 0 : "", t, s, fi);
3290
+ return /* @__PURE__ */ U(Ma, {
3291
+ clearable: p.clearable !== !1,
3292
+ data: t,
3293
+ enabled: a,
3294
+ offset: 46,
3295
+ onClear: _,
3296
+ children: /* @__PURE__ */ U(T, Q({
3297
+ value: h,
3298
+ onChange: (t) => t == null ? _() : !e.integerOnly || Number.isInteger(Number(t)) ? g(t) : void 0,
3299
+ className: r,
3300
+ id: i,
3301
+ disabled: !a,
3302
+ autoFocus: p.focus,
3303
+ step: e.integerOnly ? void 0 : .1,
3304
+ style: m,
3305
+ placeholder: p.placeholder
3306
+ }, u))
3307
+ });
3308
+ }), lc = n.memo(function(e) {
3309
+ return /* @__PURE__ */ U(cc, Q(Q({}, e), {}, { integerOnly: !0 }));
3310
+ }), uc = n.memo(function(e) {
3311
+ return /* @__PURE__ */ U(cc, Q({}, e));
3312
+ }), dc = (e) => {
3313
+ let { className: t, id: n, enabled: r, uischema: i, path: a, handleChange: o, schema: s, config: c, inputProps: l } = e, u = s.maxLength, d = Z({}, c, i.options), f = e.toFormatted(e.data), p = (t) => {
3314
+ let n = e.fromFormatted(t.currentTarget.value);
3315
+ o(a, n);
3316
+ }, m = w;
3317
+ return d.multi === !0 && (m = w.TextArea), /* @__PURE__ */ U(Ma, {
3318
+ clearable: d.clearable !== !1,
3319
+ data: e.data,
3320
+ enabled: r,
3321
+ onClear: () => o(a, void 0),
3322
+ children: /* @__PURE__ */ U(m, Q({
3323
+ value: f,
3324
+ onChange: p,
3325
+ className: t,
3326
+ id: n,
3327
+ disabled: !r,
3328
+ autoFocus: d.focus,
3329
+ placeholder: d.placeholder,
3330
+ maxLength: u,
3331
+ style: { width: "100%" }
3332
+ }, l))
3333
+ });
3334
+ }, fc = (e) => e.target ? e.target.value === "" ? void 0 : e.target.value : e === "" ? void 0 : e, pc = n.memo(function(e) {
3335
+ let [t, r, i] = ai(), { data: a, config: o, className: s, id: c, enabled: l, uischema: d, path: f, handleChange: p, schema: m, inputProps: h } = e, g = na(f), _ = n.useCallback((e, t) => p(e, g && t === void 0 ? "" : t), [p, g]), v = m.maxLength, y = Z({}, o, d.options), [b, x, S] = ii(_, "", a, f, fc), C = w, T = {}, E = y == null ? void 0 : y.suggestion;
3336
+ if (ia(E) && ra(E, aa)) {
3337
+ let e = E.map((e) => ({ value: e }));
3338
+ C = u, T.options = e, T.filterOption = !0, T.popupMatchSelectWidth = !0;
3339
+ }
3340
+ let D = { width: "100%" };
3341
+ return y.multi && (D.resize = "vertical", D.overflow = "auto", C = w.TextArea, T.rows = 5, T.autoSize = {
3342
+ minRows: 5,
3343
+ maxRows: 5
3344
+ }), /* @__PURE__ */ U(Ma, {
3345
+ clearable: y.clearable !== !1,
3346
+ data: a,
3347
+ enabled: l,
3348
+ onClear: S,
3349
+ children: /* @__PURE__ */ U(C, Q(Q({
3350
+ value: b,
3351
+ onChange: x,
3352
+ className: s,
3353
+ id: c,
3354
+ disabled: !l,
3355
+ autoFocus: y.focus,
3356
+ style: D,
3357
+ maxLength: v,
3358
+ onFocus: r,
3359
+ onBlur: i,
3360
+ placeholder: y.placeholder,
3361
+ count: v === void 0 ? void 0 : {
3362
+ max: v,
3363
+ show: t
3364
+ }
3365
+ }, T), h))
3366
+ });
3367
+ }), mc = n.memo(function(e) {
3368
+ var t, n, r, i;
3369
+ let { data: a, options: o = [], handleChange: s, path: c, enabled: l, uischema: u, inputProps: d } = e, f = ((t = (n = (r = u.options) == null ? void 0 : r.vertical) == null ? (i = e.config) == null || (i = i.jsonformsExtended) == null || (i = i.radio) == null ? void 0 : i.vertical : n) != null && t) === !0;
3370
+ return /* @__PURE__ */ U(A.Group, Q(Q({
3371
+ "aria-orientation": f ? "vertical" : "horizontal",
3372
+ disabled: !l,
3373
+ value: (o || []).findIndex((e) => oa(e.value, a)),
3374
+ onChange: (e) => {
3375
+ l && s(c, o[e.target.value].value);
3376
+ }
3377
+ }, d), {}, { children: /* @__PURE__ */ U(x, {
3378
+ gap: f ? 4 : 8,
3379
+ vertical: f,
3380
+ wrap: !f,
3381
+ children: (o || []).map((e, t) => /* @__PURE__ */ U(A, {
3382
+ value: t,
3383
+ children: e.label
3384
+ }, t))
3385
+ }) }));
3386
+ }), hc = (e) => {
3387
+ var t;
3388
+ let { data: n, className: r, id: i, enabled: a, schema: o, uischema: c, path: l, handleChange: u, options: d = [], config: f, inputProps: p, t: m } = e, h = Z({}, f, c.options), g = le(), _ = s(() => m("enum.none", g("enum.none"), {
3389
+ schema: o,
3390
+ uischema: c,
3391
+ path: l
3392
+ }), [
3393
+ m,
3394
+ g,
3395
+ o,
3396
+ c,
3397
+ l
3398
+ ]), v = d.findIndex((e) => oa(e.value, n)), y = { width: "100%" }, b = h.autocomplete === !0;
3399
+ return /* @__PURE__ */ U(M, Q({
3400
+ className: r,
3401
+ id: i,
3402
+ disabled: !a,
3403
+ autoFocus: h.focus,
3404
+ value: v < 0 ? void 0 : v,
3405
+ onChange: (e) => {
3406
+ if (a) {
3407
+ var t;
3408
+ u(l, typeof e == "number" ? (t = d[e]) == null ? void 0 : t.value : void 0);
3409
+ }
3410
+ },
3411
+ style: y,
3412
+ placeholder: (t = h.placeholder) == null ? _ : t,
3413
+ allowClear: a,
3414
+ showSearch: b ? {
3415
+ optionFilterProp: "label",
3416
+ filterOption: (e, t) => {
3417
+ var n;
3418
+ return String((n = t == null ? void 0 : t.label) == null ? "" : n).toLowerCase().includes(e.toLowerCase());
3419
+ }
3420
+ } : !1,
3421
+ notFoundContent: b ? m("enum.noMatches", g("enum.noMatches"), {
3422
+ schema: o,
3423
+ uischema: c,
3424
+ path: l
3425
+ }) : void 0,
3426
+ options: d.map(({ label: e }, t) => ({
3427
+ value: t,
3428
+ label: e
3429
+ }))
3430
+ }, p));
3431
+ }, gc = (e, t) => {
3432
+ if (typeof e == "number" && Number.isFinite(e)) return e;
3433
+ if (typeof e == "string" && e.trim() !== "") {
3434
+ let t = Number(e);
3435
+ if (Number.isFinite(t)) return t;
3436
+ }
3437
+ return t;
3438
+ }, _c = (e) => typeof e == "number" && Number.isFinite(e) || typeof e == "string" && e.trim() !== "" && Number.isFinite(Number(e)), vc = n.memo(function(e) {
3439
+ var t;
3440
+ let { data: n, id: r, enabled: i, uischema: a, path: o, handleChange: s, config: c, schema: l, inputProps: u } = e, d = G(), f = Z({}, c, a.options), p = { marginTop: "7px" }, m = _c(n), h = gc(n, gc(l.default, (t = l.minimum) == null ? 0 : t)), g = {
3441
+ [l.minimum]: {
3442
+ label: l.minimum,
3443
+ style: { whiteSpace: "nowrap" }
3444
+ },
3445
+ [l.maximum]: {
3446
+ label: l.maximum,
3447
+ style: { whiteSpace: "nowrap" }
3448
+ }
3449
+ };
3450
+ return /* @__PURE__ */ U(N, Q({
3451
+ id: r,
3452
+ style: p,
3453
+ min: l.minimum,
3454
+ max: l.maximum,
3455
+ marks: g,
3456
+ value: h,
3457
+ ariaValueTextFormatterForHandle: m ? void 0 : () => d("control.notSet"),
3458
+ onChange: (e) => {
3459
+ s(o, Number(e));
3460
+ },
3461
+ disabled: !i,
3462
+ step: l.multipleOf || 1,
3463
+ autoFocus: !!f.focus
3464
+ }, u));
3465
+ }), yc = n.memo(function(e) {
3466
+ let { pickerProps: t, options: n, disabledTime: r } = ac(e, "time");
3467
+ return /* @__PURE__ */ U(ne, Q(Q(Q({}, t), {}, { disabledTime: r }, Ys(n.views)), {}, { use12Hours: !!n.ampm }, e.inputProps));
3468
+ }), bc = n.memo(function(e) {
3469
+ let { data: t, id: n, className: r, enabled: i, uischema: a, path: o, handleChange: s, config: c, inputProps: l } = e, u = Z({}, c, a.options), d = G(), f = typeof t == "boolean", p = `${n}-state`, m = [l == null ? void 0 : l["aria-describedby"], f ? void 0 : p].filter(Boolean).join(" ") || void 0;
3470
+ return /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(L, Q(Q({
3471
+ id: n,
3472
+ checked: t === !0,
3473
+ onChange: (e) => s(o, e),
3474
+ className: r,
3475
+ disabled: !i,
3476
+ autoFocus: !!u.focus
3477
+ }, l), {}, { "aria-describedby": m })), f ? null : /* @__PURE__ */ U("span", {
3478
+ id: p,
3479
+ style: An,
3480
+ children: d(t == null ? "boolean.notSet" : "boolean.invalid")
3481
+ })] });
3482
+ }), xc = (e) => e.target.value === "" ? void 0 : e.target.value, Sc = n.memo(function(e) {
3483
+ let { data: t, config: n, className: r, id: i, enabled: a, uischema: o, path: s, handleChange: c, schema: u, inputProps: d } = e, f = Z({}, n, o.options), [p, m, h] = ii(c, "", t, s, xc), [g, _] = l(!1);
3484
+ return /* @__PURE__ */ U(Ma, {
3485
+ clearable: f.clearable !== !1,
3486
+ data: t,
3487
+ enabled: a,
3488
+ onClear: h,
3489
+ children: (e) => /* @__PURE__ */ U(w, Q({
3490
+ type: g ? "text" : "password",
3491
+ suffix: /* @__PURE__ */ W(H, { children: [e, /* @__PURE__ */ U(Gs, {
3492
+ revealed: g,
3493
+ onToggle: () => _((e) => !e),
3494
+ disabled: !a
3495
+ })] }),
3496
+ value: p,
3497
+ onChange: m,
3498
+ className: r,
3499
+ id: i,
3500
+ disabled: !a,
3501
+ autoFocus: f.focus,
3502
+ maxLength: u.maxLength,
3503
+ placeholder: f.placeholder
3504
+ }, d))
3505
+ });
3506
+ }), $ = (e) => {
3507
+ var t;
3508
+ let n = st(), { id: i, label: a, visible: o, required: s, input: c, handleChange: l } = e, { errors: u, focused: d, onFocus: f, onBlur: p } = Mn(e), m = u.length === 0, h = ki(e.path), g = r((t, n) => {
3509
+ l(t, h && t === e.path && n === void 0 ? Oi(e.schema, e.rootSchema) : n);
3510
+ }, [
3511
+ h,
3512
+ l,
3513
+ e.path,
3514
+ e.rootSchema,
3515
+ e.schema
3516
+ ]), _ = Ji(Q(Q({}, e), {}, { errors: u }), d), v = _ ? `${i}-input-help` : void 0, y = c;
3517
+ return o ? /* @__PURE__ */ U(Pa, {
3518
+ hideRequiredAsterisk: (t = e.uischema.options) == null ? void 0 : t.hideRequiredAsterisk,
3519
+ path: e.path,
3520
+ required: s,
3521
+ errors: m ? void 0 : u,
3522
+ label: c !== qo && e.uischema.label !== !1 ? a : "",
3523
+ help: _ ? /* @__PURE__ */ U("span", {
3524
+ id: v,
3525
+ children: _
3526
+ }) : null,
3527
+ style: { width: "100%" },
3528
+ htmlFor: i + "-input",
3529
+ id: i,
3530
+ children: /* @__PURE__ */ U(Ze, {
3531
+ schema: e.schema,
3532
+ options: e.uischema.options,
3533
+ children: /* @__PURE__ */ U(y, Q(Q({}, e), {}, {
3534
+ handleChange: g,
3535
+ label: n || e.uischema.label === !1 ? "" : a,
3536
+ inputProps: {
3537
+ onFocus: f,
3538
+ onBlur: p,
3539
+ "aria-describedby": v
3540
+ },
3541
+ id: i + "-input",
3542
+ isValid: m,
3543
+ visible: o
3544
+ }))
3545
+ })
3546
+ }) : null;
3547
+ }, Cc = (e) => e.find((e) => e.enum !== void 0 && (e.type === "string" || e.type === void 0)), wc = (e) => e.find((e) => e.type === "string" && e.enum === void 0), Tc = (e) => {
3548
+ var t, n, r;
3549
+ let { data: i, config: a, className: o, id: c, enabled: d, uischema: f, path: p, handleChange: m, schema: h } = e, g = Cc((t = h.anyOf) == null ? [] : t), _ = wc((n = h.anyOf) == null ? [] : n), v = _ == null ? void 0 : _.maxLength, y = s(() => Z({}, a, f.options), [a, f.options]), b = ((r = g == null ? void 0 : g.enum) == null ? [] : r).map((e) => ({ value: e })), [x, S] = l(b), [C, w] = ii(m, "", i, p, (e) => e || void 0);
3550
+ return /* @__PURE__ */ U(u, {
3551
+ value: C,
3552
+ onSearch: (e) => {
3553
+ S(e ? b.filter((t) => t.value.toLowerCase().includes(e)) : b);
3554
+ },
3555
+ onChange: w,
3556
+ onSelect: w,
3557
+ options: x,
3558
+ className: o,
3559
+ id: c,
3560
+ disabled: !d,
3561
+ autoFocus: y.focus,
3562
+ maxLength: v,
3563
+ style: { width: "100%" },
3564
+ allowClear: d
3565
+ });
3566
+ }, Ec = class extends Te {
3567
+ render() {
3568
+ return /* @__PURE__ */ U($, Q(Q({}, this.props), {}, { input: Tc }));
3569
+ }
3570
+ }, Dc = (e) => {
3571
+ let t = Cc(e), n = wc(e), r = e.filter((e) => e !== t || e !== n).find((e) => e.type && e.type !== "string");
3572
+ return !!t && !!n && !r;
3573
+ }, Oc = J(X("Control"), Yt((e) => {
3574
+ var t;
3575
+ return Object.prototype.hasOwnProperty.call(e, "anyOf") && Dc((t = e.anyOf) == null ? [] : t);
3576
+ })), kc = Y(5, Oc), Ac = K(Ec), jc = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: qo })), Mc = Y(2, kt), Nc = K(jc), Pc = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: bc })), Fc = Y(3, J(kt, Kt("toggle", !0))), Ic = K(Pc), Lc = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: oc })), Rc = Y(4, jt), zc = K(Lc), Bc = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: sc })), Vc = Y(2, Mt), Hc = K(Bc), Uc = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: hc })), Wc = Y(2, Pt), Gc = Ie(q(n.memo(Uc)), !1), Kc = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: lc })), qc = Y(2, Ft), Jc = K(Kc), Yc = (e) => {
3577
+ var t, n;
3578
+ let { id: r, label: i, schema: a, enabled: o, visible: s, required: c, path: l, handleChange: u, data: d, config: f } = e, { errors: p, focused: m, onFocus: h, onBlur: g } = Mn(e), _ = p.length === 0, v = Z({}, f, e.uischema.options), [y, b] = ii(u, "", d, l), x = (t = v.format) == null ? a.format : t, S = Ji(Q(Q({}, e), {}, { errors: p }), m);
3579
+ return s ? /* @__PURE__ */ U(Pa, {
3580
+ hideRequiredAsterisk: (n = e.uischema.options) == null ? void 0 : n.hideRequiredAsterisk,
3581
+ path: e.path,
3582
+ errors: _ ? void 0 : p,
3583
+ required: c,
3584
+ label: i,
3585
+ help: S,
3586
+ htmlFor: r + "-input",
3587
+ id: r,
3588
+ children: /* @__PURE__ */ U(w, {
3589
+ id: r + "-input",
3590
+ type: x,
3591
+ disabled: !o,
3592
+ style: { width: "100%" },
3593
+ onFocus: h,
3594
+ onBlur: g,
3595
+ value: y,
3596
+ onChange: b
3597
+ })
3598
+ }) : null;
3599
+ }, Xc = Y(2, qt(jt, Gt)), Zc = K(Yc), Qc = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: uc })), $c = Y(2, It), el = K(Qc), tl = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: hc })), nl = Y(5, Vt), rl = He(q(n.memo(tl)), !1), il = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: mc })), al = (e) => /* @__PURE__ */ U(il, Q({}, e)), ol = Y(20, J(Vt, Kt("format", "radio"))), sl = He(al), cl = (e) => /* @__PURE__ */ U(il, Q({}, e)), ll = Y(20, J(Pt, Kt("format", "radio"))), ul = Ie(cl), dl = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: vc })), fl = Y(4, Ut), pl = K(dl), ml = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: Sc })), hl = J(Wt, qt(Ct("password"), Kt("format", "password"))), gl = Y(4, hl), _l = K(ml), vl = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: Js })), yl = Yt((e) => qs(e) !== void 0), bl = Y(5, J(hl, Kt("variant", "otp"), yl)), xl = K(vl), Sl = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: pc })), Cl = Y(1, Wt), wl = K(Sl), Tl = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: yc })), El = Y(4, Gt), Dl = K(Tl), Ol = (e) => /* @__PURE__ */ U($, Q(Q({}, e), {}, { input: qa })), kl = J(X("Control"), Wt, Yt((e) => Object.prototype.hasOwnProperty.call(e, "contentEncoding") && e.contentEncoding == "base64" || e.format === "binary" || e.format === "byte")), Al = Y(2, kl), jl = (e, t, n) => Math.max(Al(e, t, n), Je(e, t, n)), Ml = K(q(n.memo(Ol))), Nl = Y(1, X("Group")), Pl = (e) => {
3600
+ var t, r, i, a, o;
3601
+ let { token: s } = V.useToken(), c = G(), l = Ki(e.uischema, e.path, e.config), u = $n(e.uischema, e.path, e.config, !1), d = n.useContext($e), f = (d == null ? void 0 : d.uischema) === e.uischema, p = f ? d.message : "", h = n.useContext(bi), g = (h == null ? void 0 : h.uischema) === e.uischema ? h.additional : null, v = e.uischema, y = v, b = Gi(e.path, y.header);
3602
+ if (!e.visible) return null;
3603
+ let x = (t, n) => /* @__PURE__ */ U(Oe, {
3604
+ schema: e.schema,
3605
+ uischema: t,
3606
+ path: e.path,
3607
+ enabled: e.enabled,
3608
+ renderers: e.renderers,
3609
+ cells: e.cells
3610
+ }, n), S = y.cover ? /* @__PURE__ */ U("div", {
3611
+ "data-group-cover": !0,
3612
+ children: x(y.cover, "cover")
3613
+ }) : null, C = (t = y.header) == null ? void 0 : t.map((e, t) => x(e, `header-${t}`)), w = (r = y.footer) == null ? void 0 : r.map((e, t) => x(e, `footer-${t}`)), T = c("group.dataIndicator"), E = l.hasData ? /* @__PURE__ */ U(_a, {
3614
+ label: T,
3615
+ color: s.colorTextTertiary,
3616
+ marker: { "data-group-indicator": !0 },
3617
+ children: /* @__PURE__ */ U(va, {})
3618
+ }) : void 0, D = (f ? p : u.show) || E ? /* @__PURE__ */ W("span", {
3619
+ "data-group-indicators": !0,
3620
+ style: {
3621
+ display: "inline-flex",
3622
+ alignItems: "center",
3623
+ gap: s.marginXS,
3624
+ lineHeight: 0
3625
+ },
3626
+ children: [f ? p ? /* @__PURE__ */ U(Ja, {
3627
+ local: !0,
3628
+ errorMessages: p,
3629
+ id: `${e.path}-object-errors`
3630
+ }) : null : u.show ? /* @__PURE__ */ U(ba, { count: u.count }) : null, E]
3631
+ }) : void 0, O = /* @__PURE__ */ W(H, { children: [v.elements.length > 0 && /* @__PURE__ */ U(es, Q(Q({}, e), {}, {
3632
+ direction: "column",
3633
+ elements: v.elements
3634
+ })), g] }), k = {
3635
+ marginBottom: "10px",
3636
+ width: "100%"
3637
+ };
3638
+ return !y.cover && !((i = y.header) != null && i.length) && !(w != null && w.length) ? l.collapsible ? /* @__PURE__ */ U("section", {
3639
+ role: "group",
3640
+ "aria-label": e.label || void 0,
3641
+ style: k,
3642
+ children: /* @__PURE__ */ U(_, {
3643
+ activeKey: l.collapsed ? [] : ["group"],
3644
+ onChange: (e) => {
3645
+ e.includes("group") === l.collapsed && l.toggle();
3646
+ },
3647
+ destroyOnHidden: !1,
3648
+ items: [{
3649
+ key: "group",
3650
+ label: e.label || c("control.group"),
3651
+ extra: D,
3652
+ forceRender: !0,
3653
+ children: O
3654
+ }]
3655
+ })
3656
+ }) : /* @__PURE__ */ U(m, {
3657
+ title: e.label || void 0,
3658
+ extra: D,
3659
+ style: k,
3660
+ role: "group",
3661
+ "aria-label": e.label || void 0,
3662
+ children: O
3663
+ }) : /* @__PURE__ */ W(m, {
3664
+ "data-group-frame": !0,
3665
+ cover: S,
3666
+ actions: w != null && w.length && !l.collapsible ? [/* @__PURE__ */ U("div", {
3667
+ "data-group-footer": !0,
3668
+ style: {
3669
+ display: "flex",
3670
+ alignItems: "center",
3671
+ flexWrap: "wrap",
3672
+ gap: s.marginXS,
3673
+ paddingInline: s.padding
3674
+ },
3675
+ children: w
3676
+ }, "footer")] : void 0,
3677
+ style: k,
3678
+ role: "group",
3679
+ "aria-label": b || e.label || void 0,
3680
+ children: [/* @__PURE__ */ W("div", {
3681
+ style: {
3682
+ display: "flex",
3683
+ alignItems: "flex-start",
3684
+ justifyContent: "space-between",
3685
+ gap: s.marginXS,
3686
+ marginBottom: l.collapsed ? 0 : s.margin
3687
+ },
3688
+ children: [/* @__PURE__ */ U("div", {
3689
+ "data-group-header": !0,
3690
+ style: { minWidth: 0 },
3691
+ children: /* @__PURE__ */ U(m.Meta, {
3692
+ title: (a = (o = C == null ? void 0 : C[0]) == null ? e.label : o) == null ? void 0 : a,
3693
+ description: C != null && C.length ? C.slice(1) : void 0
3694
+ })
3695
+ }), (l.collapsible || D) && /* @__PURE__ */ W("span", {
3696
+ style: {
3697
+ display: "inline-flex",
3698
+ alignItems: "center",
3699
+ flexShrink: 0,
3700
+ gap: s.marginXS
3701
+ },
3702
+ children: [D, l.collapsible && /* @__PURE__ */ U("button", {
3703
+ type: "button",
3704
+ "aria-label": b || e.label || c("control.group"),
3705
+ "aria-expanded": !l.collapsed,
3706
+ "aria-controls": l.contentId,
3707
+ onClick: l.toggle,
3708
+ style: {
3709
+ display: "inline-flex",
3710
+ alignItems: "center",
3711
+ justifyContent: "center",
3712
+ border: 0,
3713
+ background: "transparent",
3714
+ color: "inherit",
3715
+ cursor: "pointer",
3716
+ padding: s.paddingXS
3717
+ },
3718
+ children: /* @__PURE__ */ U("svg", {
3719
+ "aria-hidden": "true",
3720
+ width: "14",
3721
+ height: "14",
3722
+ viewBox: "0 0 14 14",
3723
+ children: /* @__PURE__ */ U("path", {
3724
+ d: "m5 3 4 4-4 4",
3725
+ fill: "none",
3726
+ stroke: "currentColor",
3727
+ strokeWidth: "1.5",
3728
+ strokeLinecap: "round",
3729
+ strokeLinejoin: "round",
3730
+ transform: l.collapsed ? void 0 : "rotate(90 7 7)"
3731
+ })
3732
+ })
3733
+ })]
3734
+ })]
3735
+ }), l.collapsible ? /* @__PURE__ */ W("div", {
3736
+ id: l.contentId,
3737
+ "data-group-body": !0,
3738
+ style: { display: l.collapsed ? "none" : void 0 },
3739
+ children: [O, w != null && w.length ? /* @__PURE__ */ U("footer", {
3740
+ "data-group-footer": !0,
3741
+ style: {
3742
+ display: "flex",
3743
+ alignItems: "center",
3744
+ flexWrap: "wrap",
3745
+ gap: s.marginXS,
3746
+ borderTop: `1px solid ${s.colorBorderSecondary}`,
3747
+ paddingTop: s.padding,
3748
+ marginTop: s.margin
3749
+ },
3750
+ children: w
3751
+ }) : null]
3752
+ }) : O]
3753
+ });
3754
+ }, Fl = Re(Pl), Il = Qt(1, Nl), Ll = Y(2, X("HorizontalLayout")), Rl = ({ uischema: e, renderers: t, cells: n, schema: r, path: i, enabled: a, visible: o, config: s }) => {
3755
+ let c = e, l = {
3756
+ elements: c.elements,
3757
+ schema: r,
3758
+ path: i,
3759
+ enabled: a,
3760
+ direction: "row",
3761
+ visible: o,
3762
+ layoutOptions: c.options,
3763
+ config: s
3764
+ };
3765
+ return /* @__PURE__ */ U(es, Q(Q({}, l), {}, {
3766
+ renderers: t,
3767
+ cells: n
3768
+ }));
3769
+ }, zl = Re(Rl), Bl = Y(1, X("VerticalLayout")), Vl = ({ uischema: e, schema: t, path: n, enabled: r, visible: i, renderers: a, cells: o, config: s }) => {
3770
+ let c = e, l = {
3771
+ elements: c.elements,
3772
+ schema: t,
3773
+ path: n,
3774
+ enabled: r,
3775
+ direction: "column",
3776
+ visible: i,
3777
+ layoutOptions: c.options,
3778
+ config: s
3779
+ };
3780
+ return /* @__PURE__ */ U(es, Q(Q({}, l), {}, {
3781
+ renderers: a,
3782
+ cells: o
3783
+ }));
3784
+ }, Hl = Re(Vl), Ul = ({ category: e, path: t, config: n }) => {
3785
+ let { token: r } = V.useToken(), i = G(), a = $n(e, t, n, !1), o = Ki(e, t, n);
3786
+ if (!a.show && !o.hasData) return null;
3787
+ let s = i("group.dataIndicator");
3788
+ return /* @__PURE__ */ W("span", {
3789
+ "data-category-indicators": !0,
3790
+ style: {
3791
+ display: "inline-flex",
3792
+ alignItems: "center",
3793
+ gap: r.marginXS,
3794
+ lineHeight: 0
3795
+ },
3796
+ children: [a.show ? /* @__PURE__ */ U(ba, { count: a.count }) : null, o.hasData ? /* @__PURE__ */ U(_a, {
3797
+ label: s,
3798
+ color: r.colorTextTertiary,
3799
+ marker: { "data-category-data-indicator": !0 },
3800
+ children: /* @__PURE__ */ U(va, {})
3801
+ }) : null]
3802
+ });
3803
+ }, Wl = ({ category: e, label: t, path: n, config: r }) => /* @__PURE__ */ W("span", {
3804
+ style: {
3805
+ display: "inline-flex",
3806
+ alignItems: "center",
3807
+ gap: 8
3808
+ },
3809
+ children: [t, /* @__PURE__ */ U(Ul, {
3810
+ category: e,
3811
+ path: n,
3812
+ config: r
3813
+ })]
3814
+ }), Gl = (e, t) => s(() => e.map((e) => vt(e, t)), [e, t]), Kl = J(X("Categorization"), (e) => {
3815
+ let t = e;
3816
+ return t.elements && t.elements.reduce((e, t) => e && t.type === "Category", !0);
3817
+ }), ql = Y(1, Kl), Jl = (e) => {
3818
+ let { data: t, path: n, renderers: r, cells: i, schema: a, uischema: o, visible: s, enabled: c, selected: l, onChange: u, ajv: d, config: f, t: p } = e, { categories: m, active: h, select: g } = ca(o, t, d, f, l, !1, n), _ = (e) => {
3819
+ var t;
3820
+ return {
3821
+ elements: (t = e.elements) == null ? [] : t,
3822
+ schema: a,
3823
+ path: n,
3824
+ direction: "column",
3825
+ enabled: c,
3826
+ visible: s,
3827
+ renderers: r,
3828
+ cells: i
3829
+ };
3830
+ }, v = (e) => {
3831
+ let t = parseInt(e);
3832
+ u && u(t, h), g(t);
3833
+ }, y = Gl(m, p);
3834
+ return s ? /* @__PURE__ */ U(R, {
3835
+ activeKey: String(h),
3836
+ onChange: v,
3837
+ items: m.map((e, t) => ({
3838
+ label: /* @__PURE__ */ U(Wl, {
3839
+ category: e,
3840
+ label: y[t],
3841
+ path: n,
3842
+ config: f
3843
+ }),
3844
+ key: String(t),
3845
+ children: /* @__PURE__ */ U(es, Q({}, _(e)))
3846
+ }))
3847
+ }) : null;
3848
+ }, Yl = $r(q(Re(Jl))), Xl = Y(2, J(X("Categorization"), dt, Kt("variant", "stepper"))), Zl = $r(q(Re((e) => {
3849
+ var t, n;
3850
+ let r = G(), { data: i, path: a, renderers: o, schema: s, uischema: c, visible: l, cells: u, config: d, ajv: f, t: m } = e, h = c, g = Z({}, d, c.options), _ = {
3851
+ textAlign: "right",
3852
+ width: "100%",
3853
+ margin: "1em auto"
3854
+ }, v = { float: "right" }, y = { marginRight: "1em" }, { categories: b, active: x, select: S } = ca(h, i, f, d, void 0, !1, a), C = (e) => {
3855
+ S(Math.min(Math.max(e, 0), b.length - 1));
3856
+ }, w = {
3857
+ elements: (t = (n = b[x]) == null ? void 0 : n.elements) == null ? [] : t,
3858
+ schema: s,
3859
+ path: a,
3860
+ direction: "column",
3861
+ visible: l,
3862
+ renderers: o,
3863
+ cells: u
3864
+ }, T = Gl(b, m);
3865
+ return l ? /* @__PURE__ */ W(H, { children: [
3866
+ /* @__PURE__ */ U(I, {
3867
+ current: x < 0 ? 0 : x,
3868
+ items: b.map((e, t) => ({
3869
+ key: T[t],
3870
+ title: /* @__PURE__ */ U(Wl, {
3871
+ category: e,
3872
+ label: T[t],
3873
+ path: a,
3874
+ config: d
3875
+ })
3876
+ })),
3877
+ onChange: C,
3878
+ style: { marginBottom: "10px" }
3879
+ }),
3880
+ /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(es, Q({}, w)) }),
3881
+ g.showNavButtons ? /* @__PURE__ */ W("div", {
3882
+ style: _,
3883
+ children: [/* @__PURE__ */ U(p, {
3884
+ style: v,
3885
+ color: "primary",
3886
+ disabled: x >= b.length - 1,
3887
+ onClick: () => C(x + 1),
3888
+ children: r("categorization.next")
3889
+ }), /* @__PURE__ */ U(p, {
3890
+ style: y,
3891
+ color: "default",
3892
+ disabled: x <= 0,
3893
+ onClick: () => C(x - 1),
3894
+ children: r("categorization.previous")
3895
+ })]
3896
+ }) : /* @__PURE__ */ U(H, {})
3897
+ ] }) : null;
3898
+ }))), Ql = Y(3, J(X("Categorization"), dt, Kt("variant", "accordion"))), $l = (e) => {
3899
+ let { data: t, path: n, renderers: r, cells: o, schema: l, uischema: u, visible: d, enabled: f, ajv: p, config: m, t: h } = e, { categories: g, active: v, select: y, close: b } = ca(u, t, p, m, void 0, !0, n), x = s(() => g.map((e) => vt(e, h)), [g, h]), S = c(null), C = a();
3900
+ if (i(() => {
3901
+ var e;
3902
+ let t = (e = S.current) == null ? void 0 : e.querySelectorAll(":scope > .ant-collapse > .ant-collapse-item");
3903
+ t == null || t.forEach((e, t) => {
3904
+ let n = e.querySelector(":scope > .ant-collapse-header"), r = e.querySelector(":scope > .ant-collapse-panel, :scope > .ant-collapse-content");
3905
+ if (!n || !r) return;
3906
+ let i = `${C}-header-${t}`, a = `${C}-panel-${t}`;
3907
+ n.id = i, n.setAttribute("aria-controls", a), r.id = a, r.setAttribute("role", "region"), r.setAttribute("aria-labelledby", i);
3908
+ });
3909
+ }), !d) return null;
3910
+ let w = (e) => ({
3911
+ elements: e.elements,
3912
+ schema: l,
3913
+ path: n,
3914
+ direction: "column",
3915
+ enabled: f,
3916
+ visible: d,
3917
+ renderers: r,
3918
+ cells: o
3919
+ });
3920
+ return /* @__PURE__ */ U("div", {
3921
+ ref: S,
3922
+ children: /* @__PURE__ */ U(_, {
3923
+ activeKey: v >= 0 ? [String(v)] : [],
3924
+ onChange: (e) => {
3925
+ let t = (Array.isArray(e) ? e : [e]).filter((e) => String(e) !== String(v));
3926
+ t.length > 0 ? y(Number(t[0])) : b();
3927
+ },
3928
+ items: g.map((e, t) => ({
3929
+ key: String(t),
3930
+ "data-category-key": sa(e, t),
3931
+ label: x[t],
3932
+ extra: /* @__PURE__ */ U(Ul, {
3933
+ category: e,
3934
+ path: n,
3935
+ config: m
3936
+ }),
3937
+ forceRender: !0,
3938
+ children: /* @__PURE__ */ U(es, Q({}, w(e)))
3939
+ }))
3940
+ })
3941
+ });
3942
+ }, eu = $r(q(Re($l))), tu = (e) => e.visible === !1 ? null : /* @__PURE__ */ W("span", {
3943
+ style: {
3944
+ display: "inline-flex",
3945
+ alignItems: "center",
3946
+ gap: 4
3947
+ },
3948
+ children: [/* @__PURE__ */ U(qo, Q(Q({}, e), {}, { inputProps: { "aria-invalid": !!e.errors } })), /* @__PURE__ */ U(Ja, {
3949
+ local: !0,
3950
+ errorMessages: e.errors,
3951
+ path: e.path,
3952
+ id: `${e.id}-error`
3953
+ })]
3954
+ }), nu = Y(2, kt), ru = Pe(tu), iu = (e) => e.visible === !1 ? null : /* @__PURE__ */ W("span", {
3955
+ style: {
3956
+ display: "inline-flex",
3957
+ alignItems: "center",
3958
+ gap: 4
3959
+ },
3960
+ children: [/* @__PURE__ */ U(bc, Q(Q({}, e), {}, { inputProps: { "aria-invalid": !!e.errors } })), /* @__PURE__ */ U(Ja, {
3961
+ local: !0,
3962
+ errorMessages: e.errors,
3963
+ path: e.path,
3964
+ id: `${e.id}-error`
3965
+ })]
3966
+ }), au = Y(3, J(kt, Kt("toggle", !0))), ou = Pe(iu), su = (e) => /* @__PURE__ */ U(oc, Q({}, e)), cu = Y(2, jt), lu = Pe(su), uu = (e) => /* @__PURE__ */ U(hc, Q({}, e)), du = Y(2, Pt), fu = Fe(q(n.memo(uu)), !1), pu = (e) => /* @__PURE__ */ U(lc, Q({}, e)), mu = Y(2, Ft), hu = Pe(pu), gu = (e) => /* @__PURE__ */ U(uc, Q({}, e)), _u = Y(2, It), vu = Pe(gu), yu = (e) => {
3967
+ let { toFormatted: t, fromFormatted: n } = e;
3968
+ return t && n ? /* @__PURE__ */ U(dc, Q(Q({}, e), {}, {
3969
+ toFormatted: t,
3970
+ fromFormatted: n
3971
+ })) : /* @__PURE__ */ U(pu, Q({}, e));
3972
+ }, bu = Y(4, Lt), xu = Pe(yu), Su = (e) => /* @__PURE__ */ U(hc, Q({}, e)), Cu = Y(2, Vt), wu = Ve(q(n.memo(Su)), !1), Tu = (e) => /* @__PURE__ */ U(Sc, Q({}, e)), Eu = gl, Du = Pe(Tu), Ou = (e) => /* @__PURE__ */ U(pc, Q({}, e)), ku = Y(1, Wt), Au = Pe(Ou), ju = (e) => /* @__PURE__ */ U(yc, Q({}, e)), Mu = Y(2, Gt), Nu = Pe(ju), Pu = /* @__PURE__ */ ua({
3973
+ BooleanCell: () => tu,
3974
+ DateCell: () => su,
3975
+ EnumCell: () => uu,
3976
+ IntegerCell: () => pu,
3977
+ NumberCell: () => gu,
3978
+ NumberFormatCell: () => yu,
3979
+ OneOfEnumCell: () => Su,
3980
+ TextCell: () => Ou,
3981
+ TimeCell: () => ju
3982
+ }), Fu = {
3983
+ LabelRenderer: Os,
3984
+ ListWithDetailRenderer: Hs
3985
+ }, Iu = {
3986
+ AllOfRenderer: gr,
3987
+ AnyOfRenderer: yo,
3988
+ ArrayControlRenderer: Vo,
3989
+ EnumArrayRenderer: us,
3990
+ ObjectRenderer: gs,
3991
+ OneOfRenderer: ys
3992
+ }, Lu = {
3993
+ AnyOfStringOrEnumControl: Ec,
3994
+ BooleanControl: jc,
3995
+ BooleanToggleControl: Pc,
3996
+ DateControl: Lc,
3997
+ DateTimeControl: Bc,
3998
+ EnumControl: Uc,
3999
+ IntegerControl: Kc,
4000
+ NativeControl: Yc,
4001
+ NumberControl: Qc,
4002
+ OneOfEnumControl: tl,
4003
+ OneOfRadioGroupControl: al,
4004
+ SliderControl: dl,
4005
+ RadioGroupControl: cl,
4006
+ TextControl: Sl,
4007
+ TimeControl: Tl,
4008
+ FileControl: Ol
4009
+ }, Ru = {
4010
+ ArrayLayout: Fs,
4011
+ CategorizationLayout: Jl,
4012
+ CategorizationAccordionLayout: $l,
4013
+ GroupLayout: Pl,
4014
+ HorizontalLayout: Rl,
4015
+ VerticalLayout: Vl
4016
+ }, zu = [
4017
+ t,
4018
+ {
4019
+ tester: se,
4020
+ renderer: Ea
4021
+ },
4022
+ {
4023
+ tester: Ce,
4024
+ renderer: Da
4025
+ },
4026
+ {
4027
+ tester: Dn,
4028
+ renderer: io
4029
+ },
4030
+ {
4031
+ tester: co,
4032
+ renderer: uo
4033
+ },
4034
+ {
4035
+ tester: ao,
4036
+ renderer: so
4037
+ },
4038
+ {
4039
+ tester: go,
4040
+ renderer: vo
4041
+ },
4042
+ {
4043
+ tester: Go,
4044
+ renderer: Ko
4045
+ },
4046
+ {
4047
+ tester: Mc,
4048
+ renderer: Nc
4049
+ },
4050
+ {
4051
+ tester: Fc,
4052
+ renderer: Ic
4053
+ },
4054
+ {
4055
+ tester: Xc,
4056
+ renderer: Zc
4057
+ },
4058
+ {
4059
+ tester: Wc,
4060
+ renderer: Gc
4061
+ },
4062
+ {
4063
+ tester: qc,
4064
+ renderer: Jc
4065
+ },
4066
+ {
4067
+ tester: $c,
4068
+ renderer: el
4069
+ },
4070
+ {
4071
+ tester: Cl,
4072
+ renderer: wl
4073
+ },
4074
+ {
4075
+ tester: gl,
4076
+ renderer: _l
4077
+ },
4078
+ {
4079
+ tester: bl,
4080
+ renderer: xl
4081
+ },
4082
+ {
4083
+ tester: Vc,
4084
+ renderer: Hc
4085
+ },
4086
+ {
4087
+ tester: Rc,
4088
+ renderer: zc
4089
+ },
4090
+ {
4091
+ tester: El,
4092
+ renderer: Dl
4093
+ },
4094
+ {
4095
+ tester: fl,
4096
+ renderer: pl
4097
+ },
4098
+ {
4099
+ tester: Si,
4100
+ renderer: _s
4101
+ },
4102
+ {
4103
+ tester: Hi,
4104
+ renderer: Es
4105
+ },
4106
+ {
4107
+ tester: _r,
4108
+ renderer: hr
4109
+ },
4110
+ {
4111
+ tester: bo,
4112
+ renderer: xo
4113
+ },
4114
+ {
4115
+ tester: bs,
4116
+ renderer: xs
4117
+ },
4118
+ {
4119
+ tester: jl,
4120
+ renderer: Ml
4121
+ },
4122
+ {
4123
+ tester: ll,
4124
+ renderer: ul
4125
+ },
4126
+ {
4127
+ tester: ol,
4128
+ renderer: sl
4129
+ },
4130
+ {
4131
+ tester: nl,
4132
+ renderer: rl
4133
+ },
4134
+ {
4135
+ tester: Il,
4136
+ renderer: Fl
4137
+ },
4138
+ {
4139
+ tester: Ll,
4140
+ renderer: zl
4141
+ },
4142
+ {
4143
+ tester: Bl,
4144
+ renderer: Hl
4145
+ },
4146
+ {
4147
+ tester: ql,
4148
+ renderer: Yl
4149
+ },
4150
+ {
4151
+ tester: Xl,
4152
+ renderer: Zl
4153
+ },
4154
+ {
4155
+ tester: Ql,
4156
+ renderer: eu
4157
+ },
4158
+ {
4159
+ tester: Is,
4160
+ renderer: Ls
4161
+ },
4162
+ {
4163
+ tester: Ds,
4164
+ renderer: ks
4165
+ },
4166
+ {
4167
+ tester: Us,
4168
+ renderer: Ws
4169
+ },
4170
+ {
4171
+ tester: kc,
4172
+ renderer: Ac
4173
+ },
4174
+ {
4175
+ tester: ps,
4176
+ renderer: ms
4177
+ }
4178
+ ], Bu = [
4179
+ e,
4180
+ {
4181
+ tester: jl,
4182
+ cell: Pe(q(qa))
4183
+ },
4184
+ {
4185
+ tester: _n,
4186
+ cell: Qa
4187
+ },
4188
+ {
4189
+ tester: nu,
4190
+ cell: ru
4191
+ },
4192
+ {
4193
+ tester: au,
4194
+ cell: ou
4195
+ },
4196
+ {
4197
+ tester: cu,
4198
+ cell: lu
4199
+ },
4200
+ {
4201
+ tester: du,
4202
+ cell: fu
4203
+ },
4204
+ {
4205
+ tester: mu,
4206
+ cell: hu
4207
+ },
4208
+ {
4209
+ tester: _u,
4210
+ cell: vu
4211
+ },
4212
+ {
4213
+ tester: bu,
4214
+ cell: xu
4215
+ },
4216
+ {
4217
+ tester: Cu,
4218
+ cell: wu
4219
+ },
4220
+ {
4221
+ tester: ku,
4222
+ cell: Au
4223
+ },
4224
+ {
4225
+ tester: Eu,
4226
+ cell: Du
4227
+ },
4228
+ {
4229
+ tester: Mu,
4230
+ cell: Nu
4231
+ }
4232
+ ], Vu = Q(Q(Q(Q({}, Fu), Iu), Lu), Ru);
4233
+ export { hr as AllOfRenderer, qo as AntdCheckbox, ja as AntdClearValueButton, Ma as AntdClearableInput, oc as AntdDatePicker, sc as AntdDateTimePicker, qa as AntdFile, lc as AntdInputInteger, uc as AntdInputNumber, dc as AntdInputNumberFormat, pc as AntdInputText, es as AntdLayoutRenderer, Js as AntdOtp, Sc as AntdPassword, mc as AntdRadioGroup, Gs as AntdRevealButton, hc as AntdSelect, vc as AntdSlider, yc as AntdTimePicker, bc as AntdToggle, xo as AnyOfRenderer, Ac as AnyOfStringOrEnumControl, Ko as ArrayControlRenderer, Ls as ArrayLayout, As as ArrayLayoutToolbar, ko as ArrayPanel, ru as BooleanCell, Nc as BooleanControl, ou as BooleanToggleCell, Ic as BooleanToggleControl, ka as CLEAR_OFFSET, Aa as CLEAR_OFFSET_WITH_HANDLES, eu as CategorizationAccordionLayout, Yl as CategorizationLayout, Zl as CategorizationStepperLayout, Wl as CategoryHeader, Ul as CategoryIndicators, wo as CellFrame, ot as CellModeProvider, oo as ChipsControl, To as ConnectedCellFrame, Pa as ControlFormItem, Pu as Customizable, lu as DateCell, zc as DateControl, Hc as DateTimeControl, fo as DeleteDialog, ms as EnumArrayRenderer, fu as EnumCell, Gc as EnumControl, Ml as FileControl, Fl as GroupLayout, zl as HorizontalLayout, $ as InputControl, hu as IntegerCell, Jc as IntegerControl, ui as JSONFORMS_CONFIG_KEY, di as JSONFORMS_EXTENDED_CONFIG_KEY, ks as LabelRenderer, Bs as ListWithDetailMasterItem, Ws as ListWithDetailRenderer, io as MixedRenderer, ro as MixedRendererComponent, lo as MultiSelectControl, Zc as NativeControl, vu as NumberCell, el as NumberControl, xu as NumberFormatCell, Ks as OTP_MASK, _s as ObjectRenderer, wu as OneOfEnumCell, rl as OneOfEnumControl, sl as OneOfRadioGroupControl, xs as OneOfRenderer, ws as OneOfTabRenderer, Du as PasswordCell, _l as PasswordControl, xl as PasswordOtpControl, mn as PendingChangesProvider, ul as RadioGroupControl, So as RowDetailFrame, Es as ScalarCompositionRenderer, pl as SliderControl, Bo as TableControl, Au as TextCell, wl as TextControl, Nu as TimeCell, Dl as TimeControl, mo as TupleAdditionalItems, _o as TupleControl, vo as TupleControlRenderer, ho as TupleField, rr as UNCONSTRAINED_TYPES, Vu as Unwrapped, Ja as ValidationIcon, Hl as VerticalLayout, Nn as addChoice, _r as allOfControlTester, Bu as antdCells, Il as antdGroupTester, zu as antdRenderers, bo as anyOfControlTester, kc as anyOfStringOrEnumControlTester, Pn as arrayChoiceItemErrors, Fn as arrayChoicesOf, Go as arrayControlTester, Is as arrayLayoutTester, In as asArrayValue, oi as bgRendererLocale, nu as booleanCellTester, Mc as booleanControlTester, au as booleanToggleCellTester, Fc as booleanToggleControlTester, qn as buildErrorIndex, Ln as canAddChoice, Rn as canRemoveChoice, Ql as categorizationAccordionTester, Xl as categorizationStepperTester, ql as categorizationTester, ao as chipsControlTester, pi as compositeSummary, br as confirmationRequired, Yo as createOnBlurHandler, Jo as createOnChangeHandler, cu as dateCellTester, Rc as dateControlTester, Vc as dateTimeControlTester, ns as defaultAntdLocaleLoaders, mi as defaultRendererLocales, Jn as displayableErrors, ps as enumArrayRendererTester, du as enumCellTester, Wc as enumControlTester, Xn as errorDataPath, xr as fallbackConfirmationPolicy, jl as fileControlTester, jn as filterErrorsBeforeTouch, Jr as formatDate, as as getAntdLocaleLoaders, Xr as getData, hi as getRendererLocales, _c as hasSliderValue, zn as hasStringItems, Ll as horizontalLayoutTester, si as i18nDefaults, mu as integerCellTester, qc as integerControlTester, Cn as isArrayElementPath, Bn as isChipsControl, ir as isComplexTupleSchema, Sr as isComplexValue, Cr as isDiscardableValue, Tn as isMixedControl, En as isMixedSchema, Vn as isMultiSelectControl, Hn as isSelected, Ds as labelRendererTester, Us as listWithDetailTester, os as localeKey, Dn as mixedControlTester, co as multiSelectControlTester, Xc as nativeControlTester, _u as numberCellTester, $c as numberControlTester, bu as numberFormatCellTester, Si as objectControlTester, bs as oneOfControlTester, Cu as oneOfEnumCellTester, nl as oneOfEnumControlTester, ol as oneOfRadioGroupControlTester, Cs as oneOfTabControlTester, qs as otpLength, Eu as passwordCellTester, gl as passwordControlTester, bl as passwordOtpControlTester, li as preventsEmpty, ll as radioGroupControlTester, gi as registerRendererLocale, Un as removeChoice, Wn as removeChoiceAt, $o as renderLayoutElements, _i as rendererDefault, wr as resolveConfirmationPolicy, Zn as resolveIndicatorOption, Gn as resolveItemSchema, vi as resolveRendererLocale, gc as resolveSliderValue, ar as resolveTupleSchema, Kn as sameChoice, Hi as scalarCompositionTester, On as schemaForType, is as setAntdLocaleLoaders, yi as setRendererLocales, Qn as sharedErrorIndex, Tr as shouldConfirm, fl as sliderControlTester, ku as textCellTester, Cl as textControlTester, Mu as timeCellTester, El as timeControlTester, fi as toCommittableNumber, go as tupleControlRendererTester, or as tupleControlTester, sr as tupleDefinition, cr as tupleEmptyValue, lr as tupleFieldOwnsLabel, ur as tupleInitialValue, dr as tupleRenderSchema, ls as useAntdLocale, st as useCellMode, ci as useClearAffordance, da as useConfirmation, $n as useContainerValidation, ii as useDebouncedChange, Zr as useEffectiveElements, ai as useFocus, G as useI18n, le as useI18nDefault, Mn as usePreTouchErrors, gn as useRegisterPendingChange, ue as useTranslator, Bl as verticalLayoutTester, An as visuallyHidden, $r as withAjvProps };
4234
+
4235
+ //# sourceMappingURL=jsonforms-react-antd.esm.js.map