@oliasoft-open-source/react-ui-library 7.0.0-beta-1 → 7.0.0-beta-3

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 (297) hide show
  1. package/README.md +14 -79
  2. package/dist/components/accordion/accordion.d.ts.map +1 -1
  3. package/dist/components/accordion/accordion.stories.d.ts.map +1 -1
  4. package/dist/components/accordion/helpers/accordion-with-default-toggle.d.ts.map +1 -1
  5. package/dist/components/actions/actions.d.ts.map +1 -1
  6. package/dist/components/actions/actions.interface.d.ts.map +1 -1
  7. package/dist/components/actions/actions.stories.d.ts.map +1 -1
  8. package/dist/components/audit-log/audit-log.d.ts.map +1 -1
  9. package/dist/components/audit-log/audit-log.stories.d.ts.map +1 -1
  10. package/dist/components/audit-log/changes-overview.d.ts.map +1 -1
  11. package/dist/components/audit-log/comparison-view-modal.d.ts.map +1 -1
  12. package/dist/components/audit-log/utils.d.ts.map +1 -1
  13. package/dist/components/badge/badge.d.ts.map +1 -1
  14. package/dist/components/breadcrumb/link.d.ts.map +1 -1
  15. package/dist/components/button/button.d.ts.map +1 -1
  16. package/dist/components/button-group/button-group.d.ts.map +1 -1
  17. package/dist/components/card/card.d.ts.map +1 -1
  18. package/dist/components/check-box/check-box.test-case.stories.d.ts.map +1 -1
  19. package/dist/components/color/color.stories-data.d.ts.map +1 -1
  20. package/dist/components/color-input/color-input-area-picker.d.ts +1 -1
  21. package/dist/components/color-input/color-input-area-picker.d.ts.map +1 -1
  22. package/dist/components/color-input/color-input-popover.d.ts.map +1 -1
  23. package/dist/components/color-input/color-input-swatch-picker.d.ts.map +1 -1
  24. package/dist/components/color-input/color-input-utils.d.ts.map +1 -1
  25. package/dist/components/color-input/color-input.d.ts.map +1 -1
  26. package/dist/components/color-input/color-input.stories.d.ts.map +1 -1
  27. package/dist/components/color-input/color-input.test-case.stories.d.ts.map +1 -1
  28. package/dist/components/data-import-export/components/data-import-export-menu.d.ts +1 -1
  29. package/dist/components/data-import-export/components/data-import-export-menu.d.ts.map +1 -1
  30. package/dist/components/data-import-export/components/help-modal/help-modal.d.ts +1 -1
  31. package/dist/components/data-import-export/components/help-modal/help-modal.d.ts.map +1 -1
  32. package/dist/components/data-import-export/components/help-modal/help.d.ts.map +1 -1
  33. package/dist/components/data-import-export/components/modals-renderer.d.ts +1 -1
  34. package/dist/components/data-import-export/components/modals-renderer.d.ts.map +1 -1
  35. package/dist/components/data-import-export/components/paste-with-review-modal/paste-with-review-modal.d.ts.map +1 -1
  36. package/dist/components/data-import-export/components/paste-with-review-modal/table.d.ts +1 -1
  37. package/dist/components/data-import-export/components/paste-with-review-modal/table.d.ts.map +1 -1
  38. package/dist/components/data-import-export/components/transition-toast.d.ts.map +1 -1
  39. package/dist/components/data-import-export/data-import-export.d.ts +1 -1
  40. package/dist/components/data-import-export/data-import-export.d.ts.map +1 -1
  41. package/dist/components/data-import-export/data-import-export.stories.d.ts.map +1 -1
  42. package/dist/components/data-import-export/helpers/apply-modal-handlers.d.ts.map +1 -1
  43. package/dist/components/data-import-export/helpers/get-data-to-export.d.ts.map +1 -1
  44. package/dist/components/data-import-export/helpers/get-updated-errors.d.ts.map +1 -1
  45. package/dist/components/data-import-export/helpers/has-one-comma.d.ts.map +1 -1
  46. package/dist/components/data-import-export/helpers/interpolate-translations.d.ts.map +1 -1
  47. package/dist/components/data-import-export/helpers/parse.d.ts.map +1 -1
  48. package/dist/components/data-import-export/helpers/validation.d.ts.map +1 -1
  49. package/dist/components/data-import-export/hooks/use-data-import-actions.d.ts.map +1 -1
  50. package/dist/components/data-import-export/hooks/use-export-data.d.ts.map +1 -1
  51. package/dist/components/data-import-export/locale/en.d.ts.map +1 -1
  52. package/dist/components/data-import-export/locale/use-translation-map.d.ts.map +1 -1
  53. package/dist/components/data-import-export/types.d.ts.map +1 -1
  54. package/dist/components/datetime/datetime.d.ts.map +1 -1
  55. package/dist/components/dialog/dialog.d.ts.map +1 -1
  56. package/dist/components/diff-viewer/diff-viewer.d.ts +1 -1
  57. package/dist/components/diff-viewer/diff-viewer.d.ts.map +1 -1
  58. package/dist/components/drawer/drawer-resize-wrapper.d.ts.map +1 -1
  59. package/dist/components/drawer/drawer-tabs.d.ts +1 -1
  60. package/dist/components/drawer/drawer-tabs.d.ts.map +1 -1
  61. package/dist/components/drawer/drawer.d.ts.map +1 -1
  62. package/dist/components/drawer/drawer.stories.d.ts.map +1 -1
  63. package/dist/components/empty/empty.d.ts +1 -1
  64. package/dist/components/empty/empty.d.ts.map +1 -1
  65. package/dist/components/file-button/file-button.d.ts.map +1 -1
  66. package/dist/components/file-button/file-button.stories.d.ts.map +1 -1
  67. package/dist/components/file-input/file-input.d.ts.map +1 -1
  68. package/dist/components/file-input/file-input.stories.d.ts.map +1 -1
  69. package/dist/components/file-input/types.d.ts.map +1 -1
  70. package/dist/components/form/field.d.ts.map +1 -1
  71. package/dist/components/form/form.stories.d.ts.map +1 -1
  72. package/dist/components/heading/heading.d.ts.map +1 -1
  73. package/dist/components/help-icon/help-icon.d.ts.map +1 -1
  74. package/dist/components/icon/icon.d.ts +1 -1
  75. package/dist/components/icon/icon.d.ts.map +1 -1
  76. package/dist/components/icon/icon.stories.d.ts +1 -1
  77. package/dist/components/input/date-input.stories.d.ts.map +1 -1
  78. package/dist/components/input/input.d.ts.map +1 -1
  79. package/dist/components/input-group/input-group-addon/input-group-addon.d.ts +1 -1
  80. package/dist/components/input-group/input-group-addon/input-group-addon.d.ts.map +1 -1
  81. package/dist/components/input-group/input-group.d.ts +1 -1
  82. package/dist/components/input-group/input-group.d.ts.map +1 -1
  83. package/dist/components/input-group/input-group.stories.d.ts.map +1 -1
  84. package/dist/components/label/label.d.ts.map +1 -1
  85. package/dist/components/label/label.stories.d.ts.map +1 -1
  86. package/dist/components/layout/column/column.d.ts.map +1 -1
  87. package/dist/components/layout/column.stories.d.ts.map +1 -1
  88. package/dist/components/layout/flex/flex.d.ts.map +1 -1
  89. package/dist/components/layout/page/page.d.ts.map +1 -1
  90. package/dist/components/layout/print-header/print-header.d.ts +1 -1
  91. package/dist/components/layout/print-header/print-header.d.ts.map +1 -1
  92. package/dist/components/layout/row/row.d.ts.map +1 -1
  93. package/dist/components/layout/spacer/spacer.d.ts +1 -1
  94. package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
  95. package/dist/components/layout/spacer/spacer.stories.d.ts.map +1 -1
  96. package/dist/components/list/list-drag-wrapper.d.ts +1 -1
  97. package/dist/components/list/list-drag-wrapper.d.ts.map +1 -1
  98. package/dist/components/list/list-row/list-heading.d.ts.map +1 -1
  99. package/dist/components/list/list-row/list-row.d.ts.map +1 -1
  100. package/dist/components/list/list-row/list-row.interface.d.ts.map +1 -1
  101. package/dist/components/list/list-row/list-subheading.d.ts.map +1 -1
  102. package/dist/components/list/list-row/meta-content.d.ts.map +1 -1
  103. package/dist/components/list/list-row/meta-count.d.ts.map +1 -1
  104. package/dist/components/list/list-row/name.d.ts.map +1 -1
  105. package/dist/components/list/list-scroll-wrapper.d.ts +1 -1
  106. package/dist/components/list/list-scroll-wrapper.d.ts.map +1 -1
  107. package/dist/components/list/list-virtual-scroll-wrapper.d.ts +1 -1
  108. package/dist/components/list/list-virtual-scroll-wrapper.d.ts.map +1 -1
  109. package/dist/components/list/list.d.ts.map +1 -1
  110. package/dist/components/list/list.stories.d.ts.map +1 -1
  111. package/dist/components/list/toggle-narrow.d.ts +1 -1
  112. package/dist/components/list/toggle-narrow.d.ts.map +1 -1
  113. package/dist/components/loader/loader.d.ts.map +1 -1
  114. package/dist/components/loader/loader.stories.d.ts.map +1 -1
  115. package/dist/components/menu/layer/heading.d.ts.map +1 -1
  116. package/dist/components/menu/layer/layer.d.ts.map +1 -1
  117. package/dist/components/menu/layer/option.d.ts.map +1 -1
  118. package/dist/components/menu/layer/path.d.ts.map +1 -1
  119. package/dist/components/menu/layer/placementOptions.d.ts.map +1 -1
  120. package/dist/components/menu/layer/section.d.ts +1 -1
  121. package/dist/components/menu/layer/section.d.ts.map +1 -1
  122. package/dist/components/menu/menu.d.ts.map +1 -1
  123. package/dist/components/menu/menu.interface.d.ts.map +1 -1
  124. package/dist/components/menu/trigger/button.d.ts.map +1 -1
  125. package/dist/components/menu/trigger/component.d.ts +1 -1
  126. package/dist/components/menu/trigger/component.d.ts.map +1 -1
  127. package/dist/components/menu/trigger/text.d.ts +1 -1
  128. package/dist/components/menu/trigger/text.d.ts.map +1 -1
  129. package/dist/components/menu/trigger/trigger.d.ts.map +1 -1
  130. package/dist/components/message/dismiss.d.ts +1 -1
  131. package/dist/components/message/dismiss.d.ts.map +1 -1
  132. package/dist/components/message/message.d.ts.map +1 -1
  133. package/dist/components/message/message.stories.d.ts.map +1 -1
  134. package/dist/components/modal/modal.d.ts.map +1 -1
  135. package/dist/components/modal/modal.stories.d.ts.map +1 -1
  136. package/dist/components/modal/modal.test-case.stories.d.ts.map +1 -1
  137. package/dist/components/number-input/number-input.d.ts.map +1 -1
  138. package/dist/components/number-input/number-input.test-case.stories.d.ts.map +1 -1
  139. package/dist/components/option-dropdown/heading.d.ts.map +1 -1
  140. package/dist/components/option-dropdown/layer.d.ts.map +1 -1
  141. package/dist/components/option-dropdown/option-dropdown.d.ts.map +1 -1
  142. package/dist/components/option-dropdown/option-dropdown.test-case.stories.d.ts.map +1 -1
  143. package/dist/components/option-dropdown/option.d.ts +1 -1
  144. package/dist/components/option-dropdown/option.d.ts.map +1 -1
  145. package/dist/components/pagination/pagination.d.ts.map +1 -1
  146. package/dist/components/pagination/pagination.interface.d.ts.map +1 -1
  147. package/dist/components/pagination/pagination.viewdata.d.ts.map +1 -1
  148. package/dist/components/pop-confirm/content.d.ts.map +1 -1
  149. package/dist/components/popover/popover.d.ts.map +1 -1
  150. package/dist/components/popover/popover.stories.d.ts.map +1 -1
  151. package/dist/components/progress-bar/progress-bar.d.ts.map +1 -1
  152. package/dist/components/progress-bar/progress-bar.stories.d.ts.map +1 -1
  153. package/dist/components/radio-button/radio-button.d.ts.map +1 -1
  154. package/dist/components/radio-button/radio-input.d.ts.map +1 -1
  155. package/dist/components/rich-text-input/rich-text-input.d.ts.map +1 -1
  156. package/dist/components/rich-text-input/rich-text-input.stories.d.ts.map +1 -1
  157. package/dist/components/rich-text-input/rich-text-input.test-case.stories.d.ts.map +1 -1
  158. package/dist/components/rich-text-input/rich-text-toolbar/rich-text-toolbar.d.ts +1 -1
  159. package/dist/components/rich-text-input/rich-text-toolbar/rich-text-toolbar.d.ts.map +1 -1
  160. package/dist/components/select/custom-select/custom-select.d.ts.map +1 -1
  161. package/dist/components/select/custom-select/custom-select.interface.d.ts.map +1 -1
  162. package/dist/components/select/custom-select/custom-select.reducer.d.ts.map +1 -1
  163. package/dist/components/select/custom-select/helper.d.ts.map +1 -1
  164. package/dist/components/select/custom-select/hooks/use-custom-select-logic.d.ts.map +1 -1
  165. package/dist/components/select/custom-select/layer/layer.d.ts.map +1 -1
  166. package/dist/components/select/custom-select/layer/option.d.ts.map +1 -1
  167. package/dist/components/select/custom-select/layer/section.d.ts +1 -1
  168. package/dist/components/select/custom-select/layer/section.d.ts.map +1 -1
  169. package/dist/components/select/custom-select/reducer.interface.d.ts.map +1 -1
  170. package/dist/components/select/custom-select/trigger/input.d.ts.map +1 -1
  171. package/dist/components/select/custom-select/trigger/multi-selected-options.d.ts +1 -1
  172. package/dist/components/select/custom-select/trigger/multi-selected-options.d.ts.map +1 -1
  173. package/dist/components/select/custom-select/trigger/trigger.d.ts.map +1 -1
  174. package/dist/components/select/native-select/native-select.d.ts.map +1 -1
  175. package/dist/components/select/select.d.ts.map +1 -1
  176. package/dist/components/select/select.input.d.ts.map +1 -1
  177. package/dist/components/select/select.stories-data.d.ts.map +1 -1
  178. package/dist/components/select/select.stories.d.ts.map +1 -1
  179. package/dist/components/select/select.test-case.stories.d.ts.map +1 -1
  180. package/dist/components/setting-field/setting-field.d.ts.map +1 -1
  181. package/dist/components/setting-field/setting-field.stories.d.ts.map +1 -1
  182. package/dist/components/side-bar/link.d.ts +1 -1
  183. package/dist/components/side-bar/link.d.ts.map +1 -1
  184. package/dist/components/side-bar/sections.d.ts +1 -1
  185. package/dist/components/side-bar/sections.d.ts.map +1 -1
  186. package/dist/components/side-bar/side-bar.d.ts +1 -1
  187. package/dist/components/side-bar/side-bar.d.ts.map +1 -1
  188. package/dist/components/skeleton/skeleton.stories.d.ts.map +1 -1
  189. package/dist/components/slider/slider.d.ts.map +1 -1
  190. package/dist/components/slider/slider.stories.d.ts.map +1 -1
  191. package/dist/components/smart-upload-modal/smart-upload-modal.d.ts.map +1 -1
  192. package/dist/components/spinner/spinner.d.ts +1 -1
  193. package/dist/components/spinner/spinner.d.ts.map +1 -1
  194. package/dist/components/spinner/spinner.stories.d.ts.map +1 -1
  195. package/dist/components/table/cell/cell-types/cell-library-icon.d.ts.map +1 -1
  196. package/dist/components/table/cell/cell-types/cell-types.interface.d.ts.map +1 -1
  197. package/dist/components/table/cell/cell-types/input-cell.d.ts +1 -1
  198. package/dist/components/table/cell/cell-types/input-cell.d.ts.map +1 -1
  199. package/dist/components/table/cell/cell-types/link-cell.d.ts.map +1 -1
  200. package/dist/components/table/cell/cell-types/number-input-cell.d.ts +1 -1
  201. package/dist/components/table/cell/cell-types/number-input-cell.d.ts.map +1 -1
  202. package/dist/components/table/cell/cell-types/popover-cell.d.ts.map +1 -1
  203. package/dist/components/table/cell/cell-types/select-cell.d.ts +1 -1
  204. package/dist/components/table/cell/cell-types/select-cell.d.ts.map +1 -1
  205. package/dist/components/table/cell/cell-types/static-cell.d.ts.map +1 -1
  206. package/dist/components/table/cell/cell-wrapper.d.ts +1 -1
  207. package/dist/components/table/cell/cell-wrapper.d.ts.map +1 -1
  208. package/dist/components/table/cell/cell.d.ts.map +1 -1
  209. package/dist/components/table/cell/cell.stories.d.ts.map +1 -1
  210. package/dist/components/table/cell/input-cell-wrapper.d.ts +1 -1
  211. package/dist/components/table/cell/input-cell-wrapper.d.ts.map +1 -1
  212. package/dist/components/table/footer/footer.d.ts +1 -1
  213. package/dist/components/table/footer/footer.d.ts.map +1 -1
  214. package/dist/components/table/helper.d.ts.map +1 -1
  215. package/dist/components/table/row/expanded-content-row.d.ts +1 -1
  216. package/dist/components/table/row/expanded-content-row.d.ts.map +1 -1
  217. package/dist/components/table/row/row.d.ts.map +1 -1
  218. package/dist/components/table/row/row.stories.d.ts.map +1 -1
  219. package/dist/components/table/table-drag-wrapper.d.ts.map +1 -1
  220. package/dist/components/table/table-scroll-wrapper.d.ts +1 -1
  221. package/dist/components/table/table-scroll-wrapper.d.ts.map +1 -1
  222. package/dist/components/table/table-virtual-scroll-wrapper.d.ts +1 -1
  223. package/dist/components/table/table-virtual-scroll-wrapper.d.ts.map +1 -1
  224. package/dist/components/table/table.d.ts +1 -1
  225. package/dist/components/table/table.d.ts.map +1 -1
  226. package/dist/components/table/table.stories-data.d.ts.map +1 -1
  227. package/dist/components/table/table.stories.d.ts.map +1 -1
  228. package/dist/components/table/table.test-case.stories.d.ts.map +1 -1
  229. package/dist/components/table/table.viewdata.d.ts.map +1 -1
  230. package/dist/components/table/title/title.d.ts +1 -1
  231. package/dist/components/table/title/title.d.ts.map +1 -1
  232. package/dist/components/tabs/tabs.d.ts.map +1 -1
  233. package/dist/components/tabs/tabs.stories.d.ts.map +1 -1
  234. package/dist/components/tabs/tabs.test-case.stories.d.ts.map +1 -1
  235. package/dist/components/text-link/text-link.d.ts.map +1 -1
  236. package/dist/components/textarea/textarea.d.ts.map +1 -1
  237. package/dist/components/toaster/toaster.d.ts.map +1 -1
  238. package/dist/components/toaster/toaster.stories.d.ts.map +1 -1
  239. package/dist/components/toggle/toggle.d.ts.map +1 -1
  240. package/dist/components/tooltip/tooltip-layer.d.ts.map +1 -1
  241. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  242. package/dist/components/tooltip/tooltip.test-case.stories.d.ts.map +1 -1
  243. package/dist/components/top-bar/app-switcher.d.ts +1 -1
  244. package/dist/components/top-bar/app-switcher.d.ts.map +1 -1
  245. package/dist/components/top-bar/element/element.d.ts.map +1 -1
  246. package/dist/components/top-bar/title.d.ts +1 -1
  247. package/dist/components/top-bar/title.d.ts.map +1 -1
  248. package/dist/components/top-bar/top-bar.d.ts.map +1 -1
  249. package/dist/components/top-bar/types.d.ts.map +1 -1
  250. package/dist/components/tree/tree-item.d.ts +1 -1
  251. package/dist/components/tree/tree-item.d.ts.map +1 -1
  252. package/dist/components/tree/tree-placeholder.d.ts +1 -1
  253. package/dist/components/tree/tree-placeholder.d.ts.map +1 -1
  254. package/dist/components/tree/tree.d.ts.map +1 -1
  255. package/dist/components/tree/tree.stories-data.d.ts.map +1 -1
  256. package/dist/components/tree/tree.stories.d.ts.map +1 -1
  257. package/dist/components/tree-table/tree-table-check-context.d.ts +1 -1
  258. package/dist/components/tree-table/tree-table-check-context.d.ts.map +1 -1
  259. package/dist/components/tree-table/tree-table-header.d.ts.map +1 -1
  260. package/dist/components/tree-table/tree-table-row.d.ts.map +1 -1
  261. package/dist/components/tree-table/tree-table.d.ts.map +1 -1
  262. package/dist/components/tree-table/tree-table.stories-data.d.ts.map +1 -1
  263. package/dist/components/unit-input/unit-input.d.ts.map +1 -1
  264. package/dist/components/unit-input/unit-input.stories.d.ts.map +1 -1
  265. package/dist/components/unit-input/unit-input.test-case.stories.d.ts.map +1 -1
  266. package/dist/components/unit-input/utils/get-string-name.d.ts.map +1 -1
  267. package/dist/components/unit-input/utils/is-known-unit.d.ts.map +1 -1
  268. package/dist/components/unit-input/utils/safe-convert-value.d.ts.map +1 -1
  269. package/dist/components/unit-input/utils/safe-round-numbers.d.ts.map +1 -1
  270. package/dist/components/unit-slider/unit-slider.d.ts.map +1 -1
  271. package/dist/components/unit-slider/unit-slider.stories.d.ts.map +1 -1
  272. package/dist/components/unit-table/unit-table.d.ts +1 -1
  273. package/dist/components/unit-table/unit-table.d.ts.map +1 -1
  274. package/dist/components/unit-table/unit-table.stories.d.ts.map +1 -1
  275. package/dist/components/unit-table/unit-table.test-case.stories.d.ts.map +1 -1
  276. package/dist/components/usage-tracker/usage-tracker.d.ts +1 -1
  277. package/dist/components/usage-tracker/usage-tracker.d.ts.map +1 -1
  278. package/dist/helpers/check-conversion/check-conversion.d.ts +1 -1
  279. package/dist/helpers/check-conversion/check-conversion.d.ts.map +1 -1
  280. package/dist/helpers/convert-unit/convert-unit.d.ts.map +1 -1
  281. package/dist/helpers/floating-layer/constants.d.ts.map +1 -1
  282. package/dist/helpers/floating-layer/hooks/use-floating-layer.d.ts.map +1 -1
  283. package/dist/helpers/get-preferred-unit.d.ts.map +1 -1
  284. package/dist/helpers/helpers.d.ts.map +1 -1
  285. package/dist/helpers/initialize-context.d.ts.map +1 -1
  286. package/dist/helpers/types.d.ts.map +1 -1
  287. package/dist/hooks/use-keyboard-event.d.ts.map +1 -1
  288. package/dist/hooks/use-window-width.d.ts.map +1 -1
  289. package/dist/index.d.ts +3 -3
  290. package/dist/index.d.ts.map +1 -1
  291. package/dist/index.js +666 -666
  292. package/dist/translations/get-translations.d.ts.map +1 -1
  293. package/dist/translations/initialize-gui-library.d.ts.map +1 -1
  294. package/dist/typings/common-type-definitions.d.ts.map +1 -1
  295. package/package.json +3 -3
  296. package/dist/helpers/cosmetic-rounding/cosmetic-rounding.d.ts +0 -3
  297. package/dist/helpers/cosmetic-rounding/cosmetic-rounding.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { parseColor as Fn } from "react-aria-components/ColorPicker";
13
13
  import { Dialog as In, Modal as Ln, ModalOverlay as Rn } from "react-aria-components/Modal";
14
14
  import { Heading as zn } from "react-aria-components/Heading";
15
15
  import { Resizable as Bn } from "react-resizable";
16
- import { ALT_UNITS as Vn, KNOWN_UNITS as Hn, altUnitsList as Un, cleanNumStr as Wn, convertAndGetValue as Gn, convertSamePrecision as Kn, getAltUnitsListByQuantity as qn, getUnit as Jn, getUnitsForQuantity as Yn, getValue as Xn, isNumeric as Zn, isScientificStringNum as Qn, isValidNum as $n, isValueWithUnit as er, label as tr, roundByMagnitude as nr, roundByMagnitudeToFixed as rr, roundToFixed as ir, roundToPrecision as ar, split as or, stripLeadingZeros as sr, toNum as cr, toString as lr, unitFromQuantity as ur, validateNumber as dr, withPrettyUnitLabel as fr, withUnit as pr } from "@oliasoft-open-source/units";
16
+ import { ALT_UNITS as Vn, KNOWN_UNITS as Hn, altUnitsList as Un, cleanNumStr as Wn, convertAndGetValue as Gn, convertSamePrecision as Kn, getAltUnitsListByQuantity as qn, getUnit as Jn, getUnitsForQuantity as Yn, getValue as Xn, isNumeric as Zn, isScientificStringNum as Qn, isValidNum as $n, isValueWithUnit as er, label as tr, roundByMagnitude as nr, roundByMagnitudeToFixed as rr, roundCosmetic as ir, roundToFixed as ar, split as or, stripLeadingZeros as sr, toNum as cr, toString as lr, unitFromQuantity as ur, validateNumber as dr, withPrettyUnitLabel as fr, withUnit as pr } from "@oliasoft-open-source/units";
17
17
  import { List as mr } from "react-window";
18
18
  import { SortableContext as hr, useSortable as gr, verticalListSortingStrategy as _r } from "@dnd-kit/sortable";
19
19
  import { CSS as vr } from "@dnd-kit/utilities";
@@ -3465,7 +3465,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3465
3465
  tabIndex: e.disabled ? -1 : 0,
3466
3466
  tooltip: e.tooltip,
3467
3467
  type: r
3468
- }), Hc = 14, Uc = (e) => String(lr(e)), Wc = (e) => Qn(e) ? e : Uc(ar(cr(e), Hc)), Gc = (e) => e ? typeof e == "string" ? e : an(e) ? e[0] : e.fieldName : "", Kc = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: g, tooltip: _ = null, warning: v = !1, validationCallback: b = () => {}, allowEmpty: x = !1, isInTable: S, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
3468
+ }), Hc = (e) => e ? typeof e == "string" ? e : an(e) ? e[0] : e.fieldName : "", Uc = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: g, tooltip: _ = null, warning: v = !1, validationCallback: b = () => {}, allowEmpty: x = !1, isInTable: S, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
3469
3469
  let k = (e) => {
3470
3470
  let n = dr(e), r = t && mc(e);
3471
3471
  return [Infinity, -Infinity].includes(Number(e)) || r ? {
@@ -3479,10 +3479,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3479
3479
  }, A = (e) => {
3480
3480
  var t;
3481
3481
  let n = !!(e != null && e.endsWith("0"));
3482
- return Uc(w && e && !n && (t = k(e)) != null && t.valid ? Wc(e) : e);
3483
- }, j = m(null), [M, N] = h(A(Uc(s))), [P, F] = h(!1), I = Gc(e), { valid: L, errors: R } = k(M), z = R && R.length && !D ? R[0] : null;
3482
+ return lr(w && e && !n && (t = k(e)) != null && t.valid ? ir(e) : e);
3483
+ }, j = m(null), [M, N] = h(A(lr(s))), [P, F] = h(!1), I = Hc(e), { valid: L, errors: R } = k(M), z = R && R.length && !D ? R[0] : null;
3484
3484
  l(() => {
3485
- let e = A(Uc(s));
3485
+ let e = A(lr(s));
3486
3486
  cr(M) !== cr(e) && N(e);
3487
3487
  }, [
3488
3488
  s,
@@ -3502,7 +3502,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3502
3502
  ...e,
3503
3503
  target: {
3504
3504
  ...e.target,
3505
- value: sr(Uc(a)),
3505
+ value: sr(lr(a)),
3506
3506
  name: I
3507
3507
  }
3508
3508
  });
@@ -3511,7 +3511,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3511
3511
  if (j && j != null && j.current && T && P) {
3512
3512
  let e = j.current;
3513
3513
  e && !f && setTimeout(() => {
3514
- let { length: t } = Uc(M);
3514
+ let { length: t } = lr(M);
3515
3515
  e.setSelectionRange(t, t);
3516
3516
  }, 0);
3517
3517
  }
@@ -3521,7 +3521,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3521
3521
  testId: g,
3522
3522
  disabled: n,
3523
3523
  placeholder: t,
3524
- value: T && !P && L ? E ? Uc(E(M)) : ((e) => S ? ir(e, 2) : nr(e, 4))(s) : M,
3524
+ value: T && !P && L ? E ? lr(E(M)) : ((e) => S ? ar(e, 2) : nr(e, 4))(s) : M,
3525
3525
  onChange: ee,
3526
3526
  onFocus: (e) => {
3527
3527
  F(!0), u(e);
@@ -3544,9 +3544,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3544
3544
  tooltip: _,
3545
3545
  ref: j
3546
3546
  }, I);
3547
- }, qc = ({ cell: e, columnAlignment: t, testId: n }) => {
3547
+ }, Wc = ({ cell: e, columnAlignment: t, testId: n }) => {
3548
3548
  var r;
3549
- return /* @__PURE__ */ y(Kc, {
3549
+ return /* @__PURE__ */ y(Uc, {
3550
3550
  name: e.name,
3551
3551
  value: e.value,
3552
3552
  onChange: (t) => {
@@ -3572,7 +3572,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3572
3572
  roundDisplayValue: e.roundDisplayValue,
3573
3573
  disableValidationOnFocus: e.disableValidationOnFocus
3574
3574
  });
3575
- }, Jc = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ y(wc, {
3575
+ }, Gc = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ y(wc, {
3576
3576
  name: e.name,
3577
3577
  borderRadius: 0,
3578
3578
  options: e.options,
@@ -3598,13 +3598,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3598
3598
  right: t === ii.RIGHT,
3599
3599
  testId: n,
3600
3600
  tabIndex: e.disabled ? -1 : 0
3601
- }), Yc = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ y("div", {
3601
+ }), Kc = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ y("div", {
3602
3602
  className: _(X.inputWrapper, e.type === "NumberInput" ? X.numberInputWrapper : ""),
3603
3603
  children: e.type === "Input" ? /* @__PURE__ */ y(Vc, {
3604
3604
  cell: e,
3605
3605
  columnAlignment: t,
3606
3606
  testId: n
3607
- }) : e.type === "NumberInput" ? /* @__PURE__ */ y(qc, {
3607
+ }) : e.type === "NumberInput" ? /* @__PURE__ */ y(Wc, {
3608
3608
  cell: e,
3609
3609
  columnAlignment: t,
3610
3610
  testId: n
@@ -3612,12 +3612,12 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3612
3612
  cell: e,
3613
3613
  testId: n,
3614
3614
  type: "date"
3615
- }) : e.type === "Select" ? /* @__PURE__ */ y(Jc, {
3615
+ }) : e.type === "Select" ? /* @__PURE__ */ y(Gc, {
3616
3616
  cell: e,
3617
3617
  columnAlignment: t,
3618
3618
  testId: n
3619
3619
  }) : null
3620
- }), Xc = ({ cell: e, testId: t }) => {
3620
+ }), qc = ({ cell: e, testId: t }) => {
3621
3621
  let n = c(U), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, s = (e) => J(e);
3622
3622
  return /* @__PURE__ */ y("div", {
3623
3623
  className: X.inputWrapper,
@@ -3643,7 +3643,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3643
3643
  })
3644
3644
  })
3645
3645
  });
3646
- }, Zc = ({ cell: e, testId: t }) => /* @__PURE__ */ y("div", {
3646
+ }, Jc = ({ cell: e, testId: t }) => /* @__PURE__ */ y("div", {
3647
3647
  className: e.label ? "" : X.standaloneCheckbox,
3648
3648
  children: /* @__PURE__ */ y(G, {
3649
3649
  text: e.tooltip,
@@ -3659,7 +3659,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3659
3659
  indeterminate: e.indeterminate
3660
3660
  })
3661
3661
  })
3662
- }), Qc = {
3662
+ }), Yc = {
3663
3663
  container: "_container_3cdfx_1",
3664
3664
  small: "_small_3cdfx_9",
3665
3665
  vertical: "_vertical_3cdfx_12",
@@ -3675,17 +3675,17 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3675
3675
  markActive: "_markActive_3cdfx_146",
3676
3676
  sliderDisabled: "_sliderDisabled_3cdfx_149",
3677
3677
  label: "_label_3cdfx_161"
3678
- }, $c = (e, t) => vn(an(e) ? e : [e]).slice(0, t ? 2 : 1), el = (e, t) => t ? e : e[0], tl = br((e) => e.map(({ label: e, tooltip: t, value: n }) => ({
3678
+ }, Xc = (e, t) => vn(an(e) ? e : [e]).slice(0, t ? 2 : 1), Zc = (e, t) => t ? e : e[0], Qc = br((e) => e.map(({ label: e, tooltip: t, value: n }) => ({
3679
3679
  label: e,
3680
3680
  tooltip: t,
3681
3681
  value: Number(n)
3682
- })), xr), nl = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", testId: i, value: a, min: o, max: s, step: l = 1, marks: u = [], showArrows: d = !1, showTooltip: p = !1, tooltipFormatter: m = (e) => e, disabled: g = !1, range: x = !1, small: S = !1, vertical: C = {
3682
+ })), xr), $c = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", testId: i, value: a, min: o, max: s, step: l = 1, marks: u = [], showArrows: d = !1, showTooltip: p = !1, tooltipFormatter: m = (e) => e, disabled: g = !1, range: x = !1, small: S = !1, vertical: C = {
3683
3683
  enabled: !1,
3684
3684
  width: "100px",
3685
3685
  height: "400px"
3686
3686
  }, onChange: w, onChangeComplete: T }) => {
3687
- let E = c(U), D = g || E, [O, k] = h(null), A = tl(u), j = f(() => $c(a, x), [x, a]), M = (n) => {
3688
- let r = el(n, x);
3687
+ let E = c(U), D = g || E, [O, k] = h(null), A = Qc(u), j = f(() => Xc(a, x), [x, a]), M = (n) => {
3688
+ let r = Zc(n, x);
3689
3689
  return { target: {
3690
3690
  name: e == null ? "" : e,
3691
3691
  value: r,
@@ -3698,7 +3698,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3698
3698
  }, F = (e) => {
3699
3699
  N(e), P(e);
3700
3700
  }, I = () => /* @__PURE__ */ y("div", {
3701
- className: Qc.button,
3701
+ className: Yc.button,
3702
3702
  children: /* @__PURE__ */ y(K, {
3703
3703
  basic: !0,
3704
3704
  small: !0,
@@ -3710,7 +3710,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3710
3710
  icon: H.FAST_BACKWARD
3711
3711
  })
3712
3712
  }), L = () => /* @__PURE__ */ y("div", {
3713
- className: Qc.button,
3713
+ className: Yc.button,
3714
3714
  children: /* @__PURE__ */ y(K, {
3715
3715
  basic: !0,
3716
3716
  small: !0,
@@ -3728,7 +3728,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3728
3728
  if (i) return x ? `${i}-handle-${e}` : `${i}-handle`;
3729
3729
  }, te = (e) => x ? j[0] <= e && e <= j[1] : j[0] >= e, ne = (e) => x ? Math.abs(e - j[0]) <= Math.abs(e - j[1]) ? [Qt(e, o, j[1]), j[1]] : [j[0], Qt(e, j[0], s)] : [Qt(e, o, s)];
3730
3730
  return /* @__PURE__ */ b("div", {
3731
- className: _(Qc.container, S ? Qc.small : "", C.enabled ? Qc.vertical : ""),
3731
+ className: _(Yc.container, S ? Yc.small : "", C.enabled ? Yc.vertical : ""),
3732
3732
  style: C.enabled ? {
3733
3733
  width: C.width,
3734
3734
  height: C.height
@@ -3736,7 +3736,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3736
3736
  children: [
3737
3737
  d && (C.enabled ? /* @__PURE__ */ y(L, {}) : /* @__PURE__ */ y(I, {})),
3738
3738
  /* @__PURE__ */ b(yr.Root, {
3739
- className: _(Qc.slider, D && Qc.sliderDisabled, d && Qc.hasArrows),
3739
+ className: _(Yc.slider, D && Yc.sliderDisabled, d && Yc.hasArrows),
3740
3740
  "data-testid": i,
3741
3741
  disabled: D,
3742
3742
  max: s,
@@ -3751,14 +3751,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3751
3751
  step: l,
3752
3752
  value: j,
3753
3753
  children: [/* @__PURE__ */ b(yr.Track, {
3754
- className: Qc.track,
3755
- children: [/* @__PURE__ */ y(yr.Range, { className: Qc.range }), A.length > 0 && /* @__PURE__ */ y("span", {
3756
- className: Qc.marks,
3754
+ className: Yc.track,
3755
+ children: [/* @__PURE__ */ y(yr.Range, { className: Yc.range }), A.length > 0 && /* @__PURE__ */ y("span", {
3756
+ className: Yc.marks,
3757
3757
  children: A.map(({ label: e, tooltip: t, value: n }) => {
3758
3758
  let r = Number(n), i = te(r), a = { [C.enabled ? "bottom" : "left"]: R(r) };
3759
3759
  return /* @__PURE__ */ y("button", {
3760
3760
  "aria-label": String(e == null ? n : e),
3761
- className: _(Qc.mark, i && Qc.markActive),
3761
+ className: _(Yc.mark, i && Yc.markActive),
3762
3762
  disabled: D,
3763
3763
  onClick: () => F(ne(r)),
3764
3764
  style: a,
@@ -3769,7 +3769,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3769
3769
  t ? ": " : "",
3770
3770
  e == null ? n : e
3771
3771
  ] }),
3772
- children: /* @__PURE__ */ y("span", { className: Qc.dot })
3772
+ children: /* @__PURE__ */ y("span", { className: Yc.dot })
3773
3773
  })
3774
3774
  }, String(n));
3775
3775
  })
@@ -3778,7 +3778,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3778
3778
  var i;
3779
3779
  return /* @__PURE__ */ y(yr.Thumb, {
3780
3780
  "aria-label": String((i = t == null ? e : t) == null ? "Slider" : i),
3781
- className: Qc.thumb,
3781
+ className: Yc.thumb,
3782
3782
  "data-testid": ee(r),
3783
3783
  onKeyDown: () => k(r),
3784
3784
  onKeyUp: () => k(null),
@@ -3787,7 +3787,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3787
3787
  style: z(n),
3788
3788
  children: p && O === r && /* @__PURE__ */ y(G, {
3789
3789
  display: "block",
3790
- text: m(el(j, x)),
3790
+ text: m(Zc(j, x)),
3791
3791
  forceOpen: !0,
3792
3792
  updateOnAnimationFrame: !0,
3793
3793
  triggerStyle: {
@@ -3800,15 +3800,15 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3800
3800
  }),
3801
3801
  d && (C.enabled ? /* @__PURE__ */ y(I, {}) : /* @__PURE__ */ y(L, {})),
3802
3802
  t && /* @__PURE__ */ y("label", {
3803
- className: Qc.label,
3803
+ className: Yc.label,
3804
3804
  style: { width: r },
3805
3805
  children: t
3806
3806
  })
3807
3807
  ]
3808
3808
  });
3809
- }, rl = ({ cell: e }) => /* @__PURE__ */ y("div", {
3809
+ }, el = ({ cell: e }) => /* @__PURE__ */ y("div", {
3810
3810
  className: X.inputWrapper,
3811
- children: /* @__PURE__ */ y(nl, {
3811
+ children: /* @__PURE__ */ y($c, {
3812
3812
  label: e.label,
3813
3813
  testId: e.testId,
3814
3814
  value: e.value,
@@ -3822,7 +3822,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3822
3822
  tooltipFormatter: e.tooltipFormatter,
3823
3823
  disabled: e.disabled
3824
3824
  })
3825
- }), il = ({ cell: e }) => {
3825
+ }), tl = ({ cell: e }) => {
3826
3826
  let { tooltip: t, icon: n } = e;
3827
3827
  return /* @__PURE__ */ y("div", {
3828
3828
  className: X.iconCellWrapper,
@@ -3834,7 +3834,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3834
3834
  children: /* @__PURE__ */ y(W, { icon: n })
3835
3835
  })
3836
3836
  });
3837
- }, al = ({ cell: e }) => /* @__PURE__ */ y(Ma, { actions: e.actions }), ol = ({ cell: e }) => {
3837
+ }, nl = ({ cell: e }) => /* @__PURE__ */ y(Ma, { actions: e.actions }), rl = ({ cell: e }) => {
3838
3838
  let { helpIcon: t } = e;
3839
3839
  return t ? /* @__PURE__ */ y("div", {
3840
3840
  className: X.icon,
@@ -3843,7 +3843,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3843
3843
  text: t.tooltip
3844
3844
  })
3845
3845
  }) : null;
3846
- }, sl = ({ cell: e }) => {
3846
+ }, il = ({ cell: e }) => {
3847
3847
  let { libraryIcon: t } = e;
3848
3848
  return t ? /* @__PURE__ */ y("div", {
3849
3849
  className: X.icon,
@@ -3853,7 +3853,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3853
3853
  icon: H.LIBRARY
3854
3854
  })
3855
3855
  }) : null;
3856
- }, cl = ({ cell: e }) => {
3856
+ }, al = ({ cell: e }) => {
3857
3857
  let { hasSort: t, sort: n, sortPriority: r } = e;
3858
3858
  return t ? /* @__PURE__ */ b("span", {
3859
3859
  className: X.sortingCellIcon,
@@ -3868,7 +3868,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3868
3868
  children: /* @__PURE__ */ y(W, { icon: H.SORT_DESCENDING })
3869
3869
  }), r && n ? /* @__PURE__ */ y("sup", { children: r }) : null]
3870
3870
  }) : null;
3871
- }, ll = ({ cell: e, isHeader: t, testId: n }) => {
3871
+ }, ol = ({ cell: e, isHeader: t, testId: n }) => {
3872
3872
  let { error: r, warning: i, tooltip: a, maxTooltipWidth: o, hasSort: s, onSort: c, type: l } = e, u = /* @__PURE__ */ b("div", {
3873
3873
  className: _(X.staticCellContent, l === "Unit" ? X.unit : ""),
3874
3874
  onClick: s ? (e) => c && c(e) : () => {},
@@ -3876,9 +3876,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3876
3876
  "data-warning": i || null,
3877
3877
  "data-testid": n,
3878
3878
  children: [e.value, t ? /* @__PURE__ */ b(v, { children: [
3879
- /* @__PURE__ */ y(ol, { cell: e }),
3880
- /* @__PURE__ */ y(sl, { cell: e }),
3881
- /* @__PURE__ */ y(cl, { cell: e })
3879
+ /* @__PURE__ */ y(rl, { cell: e }),
3880
+ /* @__PURE__ */ y(il, { cell: e }),
3881
+ /* @__PURE__ */ y(al, { cell: e })
3882
3882
  ] }) : null]
3883
3883
  });
3884
3884
  return /* @__PURE__ */ y("div", {
@@ -3893,7 +3893,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3893
3893
  children: u
3894
3894
  })
3895
3895
  });
3896
- }, ul = ({ cell: e, testId: t }) => {
3896
+ }, sl = ({ cell: e, testId: t }) => {
3897
3897
  let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
3898
3898
  return /* @__PURE__ */ y(Ua, {
3899
3899
  content: n,
@@ -3902,13 +3902,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3902
3902
  disabled: a,
3903
3903
  children: /* @__PURE__ */ y("div", {
3904
3904
  className: X.popover,
3905
- children: /* @__PURE__ */ y(ll, {
3905
+ children: /* @__PURE__ */ y(ol, {
3906
3906
  cell: e,
3907
3907
  testId: t
3908
3908
  })
3909
3909
  })
3910
3910
  });
3911
- }, dl = {
3911
+ }, cl = {
3912
3912
  inputInTable: "_inputInTable_abetp_1",
3913
3913
  inputHover: "_inputHover_abetp_13",
3914
3914
  inputFocus: "_inputFocus_abetp_18",
@@ -3928,18 +3928,18 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3928
3928
  control: "_control_abetp_25",
3929
3929
  labelText: "_labelText_abetp_151",
3930
3930
  isInTable: "_isInTable_abetp_214"
3931
- }, fl = ({ name: e, label: t, value: n, selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = oi.CAPITALIZE }) => {
3931
+ }, ll = ({ name: e, label: t, value: n, selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = oi.CAPITALIZE }) => {
3932
3932
  var p;
3933
3933
  let m = c(Er) != null, h = u || d, g = n.toString(), v = /* @__PURE__ */ b(wr, {
3934
3934
  value: g,
3935
3935
  isDisabled: i,
3936
- className: dl.radioContainer,
3936
+ className: cl.radioContainer,
3937
3937
  "data-testid": l ? `${l}-field` : void 0,
3938
3938
  children: [/* @__PURE__ */ b(Cr, {
3939
- className: _(dl.radio, a && dl.small, s && dl.noMargin, !t && dl.noLabel),
3939
+ className: _(cl.radio, a && cl.small, s && cl.noMargin, !t && cl.noLabel),
3940
3940
  "data-testid": l,
3941
- children: [/* @__PURE__ */ y("span", { className: dl.control }), t && /* @__PURE__ */ y("span", {
3942
- className: dl.labelText,
3941
+ children: [/* @__PURE__ */ y("span", { className: cl.control }), t && /* @__PURE__ */ y("span", {
3942
+ className: cl.labelText,
3943
3943
  style: { textTransform: f },
3944
3944
  children: t
3945
3945
  })]
@@ -3961,10 +3961,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3961
3961
  } });
3962
3962
  },
3963
3963
  isDisabled: i,
3964
- className: dl.radioGroupStandalone,
3964
+ className: cl.radioGroupStandalone,
3965
3965
  children: v
3966
3966
  });
3967
- }, pl = ({ cell: e, testId: t }) => /* @__PURE__ */ y(fl, {
3967
+ }, ul = ({ cell: e, testId: t }) => /* @__PURE__ */ y(ll, {
3968
3968
  selected: e.selected,
3969
3969
  name: e.name,
3970
3970
  value: e.value,
@@ -3972,42 +3972,42 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3972
3972
  disabled: e.disabled,
3973
3973
  onChange: (t) => e.onChange(t),
3974
3974
  testId: t
3975
- }), ml = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3975
+ }), dl = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3976
3976
  if (!e) return null;
3977
3977
  switch (e.type) {
3978
3978
  case "Input":
3979
3979
  case "NumberInput":
3980
3980
  case "DateInput":
3981
- case "Select": return /* @__PURE__ */ y(Yc, {
3981
+ case "Select": return /* @__PURE__ */ y(Kc, {
3982
3982
  cell: e,
3983
3983
  columnAlignment: n,
3984
3984
  testId: r
3985
3985
  });
3986
- case "Link": return /* @__PURE__ */ y(Xc, {
3986
+ case "Link": return /* @__PURE__ */ y(qc, {
3987
3987
  cell: e,
3988
3988
  testId: r
3989
3989
  });
3990
- case "CheckBox": return /* @__PURE__ */ y(Zc, {
3990
+ case "CheckBox": return /* @__PURE__ */ y(Jc, {
3991
3991
  cell: e,
3992
3992
  testId: r
3993
3993
  });
3994
- case "Radio": return /* @__PURE__ */ y(pl, {
3994
+ case "Radio": return /* @__PURE__ */ y(ul, {
3995
3995
  cell: e,
3996
3996
  testId: r
3997
3997
  });
3998
- case "Slider": return /* @__PURE__ */ y(rl, { cell: e });
3999
- case "Icon": return /* @__PURE__ */ y(il, { cell: e });
4000
- case "Actions": return /* @__PURE__ */ y(al, { cell: e });
4001
- case "Popover": return /* @__PURE__ */ y(ul, { cell: e });
4002
- default: return /* @__PURE__ */ y(ll, {
3998
+ case "Slider": return /* @__PURE__ */ y(el, { cell: e });
3999
+ case "Icon": return /* @__PURE__ */ y(tl, { cell: e });
4000
+ case "Actions": return /* @__PURE__ */ y(nl, { cell: e });
4001
+ case "Popover": return /* @__PURE__ */ y(sl, { cell: e });
4002
+ default: return /* @__PURE__ */ y(ol, {
4003
4003
  cell: e,
4004
4004
  isHeader: t,
4005
4005
  testId: r
4006
4006
  });
4007
4007
  }
4008
- }, hl = /* @__PURE__ */ function(e) {
4008
+ }, fl = /* @__PURE__ */ function(e) {
4009
4009
  return e.INPUT = "Input", e.NUMBER_INPUT = "NumberInput", e.SELECT = "Select", e.POPOVER = "Popover", e.SLIDER = "Slider", e.CHECKBOX = "CheckBox", e.RADIO = "Radio", e.ACTIONS = "Actions", e.AUTO_UNIT = "AutoUnit", e.UNIT = "Unit", e.STATIC = "Static", e;
4010
- }({}), gl = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = ii.LEFT, width: i, testId: a }) => {
4010
+ }({}), pl = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = ii.LEFT, width: i, testId: a }) => {
4011
4011
  var o;
4012
4012
  if (!e) return null;
4013
4013
  let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = m(null), p = {
@@ -4015,7 +4015,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4015
4015
  headerAlignment: n,
4016
4016
  textAlign: d,
4017
4017
  isHeader: t
4018
- }, h = zc(p, X), g = zc(p, X, !0), v = e.type === hl.INPUT || e.type === hl.NUMBER_INPUT || e.type === hl.SELECT || e.type === hl.POPOVER ? X.inputCell : e.type === hl.SLIDER ? X.sliderCell : e.type === hl.CHECKBOX || e.type === hl.RADIO ? X.checkBoxCell : e.type === hl.ACTIONS ? X.actionsCell : X.staticCell, b = _(X.cell, v, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), x = (o = u == null ? i : u) == null ? void 0 : o, S = e.type === hl.STATIC || !e.type, C = {
4018
+ }, h = zc(p, X), g = zc(p, X, !0), v = e.type === fl.INPUT || e.type === fl.NUMBER_INPUT || e.type === fl.SELECT || e.type === fl.POPOVER ? X.inputCell : e.type === fl.SLIDER ? X.sliderCell : e.type === fl.CHECKBOX || e.type === fl.RADIO ? X.checkBoxCell : e.type === fl.ACTIONS ? X.actionsCell : X.staticCell, b = _(X.cell, v, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), x = (o = u == null ? i : u) == null ? void 0 : o, S = e.type === fl.STATIC || !e.type, C = {
4019
4019
  width: x,
4020
4020
  minWidth: x,
4021
4021
  textTransform: t && S ? oi.CAPITALIZE : void 0,
@@ -4027,17 +4027,17 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4027
4027
  style: C,
4028
4028
  colSpan: c,
4029
4029
  rowSpan: l,
4030
- children: /* @__PURE__ */ y(ml, {
4030
+ children: /* @__PURE__ */ y(dl, {
4031
4031
  cell: e,
4032
4032
  columnAlignment: g == null ? ii.RIGHT : g,
4033
4033
  isHeader: t,
4034
4034
  testId: a
4035
4035
  })
4036
4036
  });
4037
- }, _l = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
4037
+ }, ml = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
4038
4038
  let p = Bc(a, n, t), { onRowClick: m, onRowFocus: h, onRowMouseEnter: g, onRowMouseLeave: x, expandedContent: S, error: C, warning: w, active: T } = e, E = e.cells.map((e, r) => {
4039
4039
  let i = `${+!n}_${t}_${r}`;
4040
- return /* @__PURE__ */ y(gl, {
4040
+ return /* @__PURE__ */ y(pl, {
4041
4041
  cell: e,
4042
4042
  isHeader: n,
4043
4043
  columnAlignment: o[r],
@@ -4045,9 +4045,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4045
4045
  width: l ? l[r] : void 0,
4046
4046
  testId: e.testId
4047
4047
  }, i);
4048
- }), D = s && /* @__PURE__ */ y(gl, {
4048
+ }), D = s && /* @__PURE__ */ y(pl, {
4049
4049
  cell: {
4050
- type: hl.ACTIONS,
4050
+ type: fl.ACTIONS,
4051
4051
  actions: e.actions
4052
4052
  },
4053
4053
  isHeader: n
@@ -4108,7 +4108,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4108
4108
  flush: S.flush === !0,
4109
4109
  children: S.content
4110
4110
  }, `${t}_expanded_content`) : null] });
4111
- }, vl = (e) => {
4111
+ }, hl = (e) => {
4112
4112
  let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [d, p] = h(null), [m, g] = h(!1), v = f(() => l.map((e, t) => t.toString()), [l]);
4113
4113
  return a ? /* @__PURE__ */ b(Or, {
4114
4114
  collisionDetection: Ar,
@@ -4143,7 +4143,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4143
4143
  dropAnimation: null,
4144
4144
  children: /* @__PURE__ */ y("table", {
4145
4145
  className: _(hs.table, hs.dragOverlay),
4146
- children: /* @__PURE__ */ y("tbody", { children: /* @__PURE__ */ y(_l, {
4146
+ children: /* @__PURE__ */ y("tbody", { children: /* @__PURE__ */ y(ml, {
4147
4147
  rowIndex: Number(d),
4148
4148
  row: l[Number(d)],
4149
4149
  columnCount: i,
@@ -4163,7 +4163,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4163
4163
  })
4164
4164
  }), document.body)]
4165
4165
  }) : t({});
4166
- }, yl = ({ table: e, children: t }) => {
4166
+ }, gl = ({ table: e, children: t }) => {
4167
4167
  var n, r, i;
4168
4168
  let a = m(null), o = jr({
4169
4169
  count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
@@ -4186,7 +4186,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4186
4186
  })()
4187
4187
  })
4188
4188
  });
4189
- }, bl = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (l(() => {
4189
+ }, _l = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (l(() => {
4190
4190
  if (t && !(e == null || e < 0)) {
4191
4191
  if (n && r) r.scrollToIndex(e, {
4192
4192
  behavior: "auto",
@@ -4205,11 +4205,11 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4205
4205
  t,
4206
4206
  n,
4207
4207
  r
4208
- ]), null), xl = ({ table: e, children: t }) => {
4208
+ ]), null), vl = ({ table: e, children: t }) => {
4209
4209
  let { infiniteScroll: n = !1, triggerScrollToActiveRow: r = !1, rows: i } = e, a = f(() => typeof e.activeRowIndex == "number" ? e.activeRowIndex : Array.isArray(i) && i.length ? i.findIndex((e) => e && e.active) : -1, [i, e.activeRowIndex]);
4210
- return n ? /* @__PURE__ */ y(yl, {
4210
+ return n ? /* @__PURE__ */ y(gl, {
4211
4211
  table: e,
4212
- children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(bl, {
4212
+ children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(_l, {
4213
4213
  isVirtualized: !0,
4214
4214
  virtualizer: e,
4215
4215
  activeIndex: a,
@@ -4221,13 +4221,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4221
4221
  }) : /* @__PURE__ */ b("div", {
4222
4222
  id: "scrollWrapper",
4223
4223
  className: hs.scroll,
4224
- children: [/* @__PURE__ */ y(bl, {
4224
+ children: [/* @__PURE__ */ y(_l, {
4225
4225
  isVirtualized: !1,
4226
4226
  activeIndex: a,
4227
4227
  triggerScrollToActiveRow: r
4228
4228
  }), t({})]
4229
4229
  });
4230
- }, Sl = (e) => {
4230
+ }, yl = (e) => {
4231
4231
  var t, n, r, i, a;
4232
4232
  let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: h, actionsRight: g, columnHeaderAlignments: v, columnAlignment: x, striped: S = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = m(null), j = rn(e, "table.headers", []), M = Pc(p, j), N = Ic(p, j), P = M + +!!N, F = d ? (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value) : !0, I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, L = {
4233
4233
  cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
@@ -4266,7 +4266,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4266
4266
  name: f,
4267
4267
  testId: C && `${C}-title`
4268
4268
  }),
4269
- /* @__PURE__ */ y(vl, {
4269
+ /* @__PURE__ */ y(hl, {
4270
4270
  colSpan: P,
4271
4271
  columnAlignment: x,
4272
4272
  columnCount: M,
@@ -4276,13 +4276,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4276
4276
  rows: R,
4277
4277
  tbodyRef: A,
4278
4278
  canListReorder: s,
4279
- children: ({ dropDisabled: e }) => /* @__PURE__ */ y(xl, {
4279
+ children: ({ dropDisabled: e }) => /* @__PURE__ */ y(vl, {
4280
4280
  table: z,
4281
4281
  children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ b("table", {
4282
4282
  className: _(hs.table, S ? hs.striped : ""),
4283
4283
  "data-testid": C,
4284
4284
  style: n,
4285
- children: [/* @__PURE__ */ y("thead", { children: j.map((e, t) => /* @__PURE__ */ y(_l, {
4285
+ children: [/* @__PURE__ */ y("thead", { children: j.map((e, t) => /* @__PURE__ */ y(ml, {
4286
4286
  rowIndex: t,
4287
4287
  isHeader: !0,
4288
4288
  row: e,
@@ -4297,7 +4297,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4297
4297
  ref: A,
4298
4298
  children: t ? t.getVirtualItems().map((t) => {
4299
4299
  let n = t.index, r = R[n];
4300
- return /* @__PURE__ */ y(_l, {
4300
+ return /* @__PURE__ */ y(ml, {
4301
4301
  rowIndex: n,
4302
4302
  row: c ? c({
4303
4303
  row: r,
@@ -4312,7 +4312,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4312
4312
  height: t.size,
4313
4313
  dropDisabled: e
4314
4314
  }, `1_${n}`);
4315
- }) : R.map((t, n) => /* @__PURE__ */ y(_l, {
4315
+ }) : R.map((t, n) => /* @__PURE__ */ y(ml, {
4316
4316
  rowIndex: n,
4317
4317
  row: c ? c({
4318
4318
  row: t,
@@ -4337,14 +4337,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4337
4337
  })
4338
4338
  ]
4339
4339
  });
4340
- }, Cl = "blank", wl = 1e4, Tl = (e, t, n, r) => {
4340
+ }, bl = "blank", xl = 1e4, Sl = (e, t, n, r) => {
4341
4341
  let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
4342
4342
  return {
4343
4343
  updatedErrors: o,
4344
4344
  isValid: o.length === 0
4345
4345
  };
4346
- }, El = 20, Dl = 1, Ol = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4347
- let i = f(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = h(El), [c, u] = h(Dl), d = m([]), p = (c - 1) * a, g = a === 0 ? t.rows.length : p + a, [_, v] = h([]), b = f(() => {
4346
+ }, Cl = 20, wl = 1, Tl = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4347
+ let i = f(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = h(Cl), [c, u] = h(wl), d = m([]), p = (c - 1) * a, g = a === 0 ? t.rows.length : p + a, [_, v] = h([]), b = f(() => {
4348
4348
  let n = e.filter((e) => !e.optionalColumn);
4349
4349
  return t.fields.length === n.length ? n : e;
4350
4350
  }, [e, t.fields.length]), x = s((e, r) => (!d.current.length && t.rows.length && (d.current = t.rows[0].map((e) => hc(e) ? "NumberInput" : "Input")), {
@@ -4358,7 +4358,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4358
4358
  disableValidationOnFocus: !0,
4359
4359
  error: y,
4360
4360
  validationCallback: (e, i) => {
4361
- let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Tl(t.errors, a, e, i);
4361
+ let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Sl(t.errors, a, e, i);
4362
4362
  n({ parsedResult: {
4363
4363
  ...t,
4364
4364
  errors: o,
@@ -4367,7 +4367,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4367
4367
  },
4368
4368
  onChange: (e) => {
4369
4369
  var i;
4370
- let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = Tl(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
4370
+ let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = Sl(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
4371
4371
  n({ parsedResult: {
4372
4372
  ...t,
4373
4373
  rows: d,
@@ -4409,7 +4409,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4409
4409
  ]);
4410
4410
  let S = f(() => t.fields.map((e, r) => {
4411
4411
  var a, o, s;
4412
- let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => yn(e) === Cl);
4412
+ let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => yn(e) === bl);
4413
4413
  if (!l.length || u) return {};
4414
4414
  let d = t == null || (a = t.units) == null ? void 0 : a[r], f = yn(d), p = l != null && l.some((e) => yn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
4415
4415
  return {
@@ -4447,7 +4447,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4447
4447
  p,
4448
4448
  g
4449
4449
  ]);
4450
- return /* @__PURE__ */ y(Sl, {
4450
+ return /* @__PURE__ */ y(yl, {
4451
4451
  beforeRenderRow: s(({ rowIndex: e }) => {
4452
4452
  let n = p + e, r = t.rows[n];
4453
4453
  return r ? x(r, n) : {
@@ -4520,7 +4520,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4520
4520
  } }
4521
4521
  }
4522
4522
  });
4523
- }, kl = { listStyle: "_listStyle_yjfjw_1" }, Al = ({ errors: e, t }) => {
4523
+ }, El = { listStyle: "_listStyle_yjfjw_1" }, Dl = ({ errors: e, t }) => {
4524
4524
  var n;
4525
4525
  let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
4526
4526
  let n = (e) => {
@@ -4536,18 +4536,18 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4536
4536
  content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
4537
4537
  type: "Error",
4538
4538
  details: /* @__PURE__ */ y("ul", {
4539
- className: kl.listStyle,
4539
+ className: El.listStyle,
4540
4540
  children: r.map((e, t) => /* @__PURE__ */ y("li", { children: e }, t))
4541
4541
  })
4542
4542
  };
4543
- }, jl = ({ errors: e, t }) => e.length ? /* @__PURE__ */ y(ms, { message: Al({
4543
+ }, Ol = ({ errors: e, t }) => e.length ? /* @__PURE__ */ y(ms, { message: Dl({
4544
4544
  errors: e,
4545
4545
  t
4546
- }) }) : null, Ml = {
4546
+ }) }) : null, kl = {
4547
4547
  empty: "_empty_fe425_1",
4548
4548
  text: "_text_fe425_11"
4549
- }, Nl = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ b("div", {
4550
- className: Ml.empty,
4549
+ }, Al = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ b("div", {
4550
+ className: kl.empty,
4551
4551
  style: {
4552
4552
  width: e,
4553
4553
  height: t
@@ -4583,7 +4583,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4583
4583
  })
4584
4584
  }),
4585
4585
  n !== "" && /* @__PURE__ */ y("div", {
4586
- className: Ml.text,
4586
+ className: kl.text,
4587
4587
  children: /* @__PURE__ */ y(_o, {
4588
4588
  faint: !0,
4589
4589
  children: n
@@ -4591,52 +4591,52 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4591
4591
  }),
4592
4592
  r
4593
4593
  ]
4594
- }), Pl = (e) => {
4594
+ }), jl = (e) => {
4595
4595
  var t;
4596
4596
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4597
4597
  let t = e == null ? void 0 : e.match(/[.,]/g);
4598
4598
  return t && t.length > 1;
4599
4599
  });
4600
- }, Fl = (e) => {
4600
+ }, Ml = (e) => {
4601
4601
  var t;
4602
4602
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4603
4603
  var t;
4604
4604
  return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
4605
4605
  });
4606
- }, Il = (e, t, n) => e >= t - n, Ll = (e) => !!e && e !== "blank" && e.trim() !== "", Rl = (e, t, n, r, i, a, o) => {
4606
+ }, Nl = (e, t, n) => e >= t - n, Pl = (e) => !!e && e !== "blank" && e.trim() !== "", Fl = (e, t, n, r, i, a, o) => {
4607
4607
  let s = [], c = r.filter((e) => e.optionalColumn).length, l = r.length, u = c ? `${l - c} or ${l}` : `${l}`, d = i && a ? 2 : i || a ? 1 : 0;
4608
- if (i && !Il(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4608
+ if (i && !Nl(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4609
4609
  var f, p;
4610
4610
  let e = r.filter((e) => {
4611
4611
  var t;
4612
- return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(Ll));
4612
+ return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(Pl));
4613
4613
  }).length;
4614
- Il(t == null || (f = t.filter(Ll)) == null ? void 0 : f.length, e, r == null || (p = r.filter((e) => (e == null ? void 0 : e.optionalColumn) || !Array.isArray(e == null ? void 0 : e.validUnits) || e.validUnits.includes("blank"))) == null ? void 0 : p.length) || s.push(o("incorrectNumberOfUnitHeaderColumns", { expectedLengthMessage: u }));
4614
+ Nl(t == null || (f = t.filter(Pl)) == null ? void 0 : f.length, e, r == null || (p = r.filter((e) => (e == null ? void 0 : e.optionalColumn) || !Array.isArray(e == null ? void 0 : e.validUnits) || e.validUnits.includes("blank"))) == null ? void 0 : p.length) || s.push(o("incorrectNumberOfUnitHeaderColumns", { expectedLengthMessage: u }));
4615
4615
  }
4616
4616
  return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
4617
4617
  expectedLengthMessage: u,
4618
4618
  dataRowStartIndex: d
4619
4619
  })) : n.forEach((e, t) => {
4620
- Il(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4620
+ Nl(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4621
4621
  expectedLengthMessage: u,
4622
4622
  dataRowStartIndex: d + t
4623
4623
  }));
4624
4624
  }), s;
4625
- }, zl = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Bl = ({ value: e, defaultAllowedValues: t }) => {
4625
+ }, Il = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Ll = ({ value: e, defaultAllowedValues: t }) => {
4626
4626
  var n;
4627
- let r = zl(e);
4628
- return (n = t == null ? void 0 : t.some((e) => zl(e).includes(r) || r.includes(zl(e)))) == null ? !1 : n;
4629
- }, Vl = ({ value: e, defaultAllowedValues: t }) => {
4627
+ let r = Il(e);
4628
+ return (n = t == null ? void 0 : t.some((e) => Il(e).includes(r) || r.includes(Il(e)))) == null ? !1 : n;
4629
+ }, Rl = ({ value: e, defaultAllowedValues: t }) => {
4630
4630
  var n;
4631
4631
  return (n = t == null ? void 0 : t.includes(e)) == null ? !1 : n;
4632
- }, Hl = (e, t, n, r, i, a) => {
4632
+ }, zl = (e, t, n, r, i, a) => {
4633
4633
  let o = [];
4634
4634
  if (r) {
4635
4635
  let r = n.map((e) => e.fieldName).filter(Boolean);
4636
4636
  e.forEach((i, s) => {
4637
4637
  var c, l;
4638
4638
  let u = n[s];
4639
- if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Bl : c)({
4639
+ if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Ll : c)({
4640
4640
  value: i,
4641
4641
  defaultAllowedValues: r,
4642
4642
  columnIndex: s,
@@ -4658,7 +4658,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4658
4658
  var l, u;
4659
4659
  let d = n[c];
4660
4660
  if (!d || d != null && d.optionalColumn) return;
4661
- let f = (l = d.unitsValidator) == null ? Vl : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4661
+ let f = (l = d.unitsValidator) == null ? Rl : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4662
4662
  f({
4663
4663
  value: r,
4664
4664
  defaultAllowedValues: p,
@@ -4674,7 +4674,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4674
4674
  });
4675
4675
  }
4676
4676
  return o;
4677
- }, Ul = (e, t, n) => {
4677
+ }, Bl = (e, t, n) => {
4678
4678
  let r = [];
4679
4679
  return e.forEach((e, i) => {
4680
4680
  e.forEach((e, a) => {
@@ -4687,91 +4687,91 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4687
4687
  })}`);
4688
4688
  });
4689
4689
  }), r;
4690
- }, Wl = (e, t, n, r, i, a, o) => {
4691
- let s = Rl(e, t, n, r, i, a, o);
4692
- return s.length === 0 && (s = s.concat(Hl(e, t, r, i, a, o), Ul(n, r, o))), {
4690
+ }, Vl = (e, t, n, r, i, a, o) => {
4691
+ let s = Fl(e, t, n, r, i, a, o);
4692
+ return s.length === 0 && (s = s.concat(zl(e, t, r, i, a, o), Bl(n, r, o))), {
4693
4693
  isValid: s.length === 0,
4694
4694
  errors: s
4695
4695
  };
4696
- }, Gl = (e, t, n) => {
4696
+ }, Hl = (e, t, n) => {
4697
4697
  var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
4698
4698
  let _ = (e) => e.replace(/,/g, "."), v = (r = (i = e[0]) == null ? void 0 : i.some((e) => isNaN(Number(_(e))))) == null ? !1 : r, y = (a = (o = e[1]) == null ? void 0 : o.some((e) => isNaN(Number(_(e))))) == null ? !1 : a, b = (s = (c = e[0]) == null ? void 0 : c.some((e) => t.includes(e))) == null ? !1 : s, x = (l = (u = e[0]) == null ? void 0 : u.some((e) => n.includes(e))) == null ? !1 : l, S = (d = (f = e[1]) == null ? void 0 : f.some((e) => n.includes(e))) == null ? !1 : d, C = (p = (m = e[0]) == null ? void 0 : m.some((e) => !isNaN(Number(_(e))))) == null ? !1 : p, w = (h = (g = e[1]) == null ? void 0 : g.some((e) => !isNaN(Number(_(e))))) == null ? !1 : h;
4699
4699
  return {
4700
4700
  hasFieldNameHeader: b || v && !x && !C || v && y && !C,
4701
4701
  hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
4702
4702
  };
4703
- }, Kl = (e, { validationRules: t }) => {
4703
+ }, Ul = (e, { validationRules: t }) => {
4704
4704
  var n, r, i;
4705
4705
  let a = (t == null ? void 0 : t.length) === ((n = e == null || (r = e[0]) == null ? void 0 : r.length) == null ? 0 : n) ? t : t == null ? void 0 : t.filter((e) => !(e != null && e.optionalColumn)), o = a == null ? void 0 : a.map((e) => e == null ? void 0 : e.fieldName), s = (e) => Array.isArray(e) && e.length ? e[0] : "", c = a == null ? void 0 : a.map((e) => {
4706
4706
  var t;
4707
4707
  return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
4708
- }), { hasFieldNameHeader: l, hasUnitHeader: u } = Gl(e, o, a == null || (i = a.map((e) => e == null ? void 0 : e.validUnits)) == null || (i = i.filter((e) => !!e)) == null ? void 0 : i.flat());
4708
+ }), { hasFieldNameHeader: l, hasUnitHeader: u } = Hl(e, o, a == null || (i = a.map((e) => e == null ? void 0 : e.validUnits)) == null || (i = i.filter((e) => !!e)) == null ? void 0 : i.flat());
4709
4709
  return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
4710
4710
  hasFieldNameHeader: l,
4711
4711
  hasUnitHeader: u
4712
4712
  };
4713
- }, ql = (e) => Math.round(e * 100) / 100, Jl = (e) => e.join(", ").replace(/,\s*$/, ""), Yl = {
4713
+ }, Wl = (e) => Math.round(e * 100) / 100, Gl = (e) => e.join(", ").replace(/,\s*$/, ""), Kl = {
4714
4714
  skipEmptyLines: !0,
4715
4715
  delimiter: (e) => {
4716
4716
  var t, n;
4717
4717
  let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
4718
4718
  return i === 0 && a === 0 ? "," : i > a ? " " : ";";
4719
4719
  }
4720
- }, Xl = [
4720
+ }, ql = [
4721
4721
  "text/csv",
4722
4722
  "text/plain",
4723
4723
  "application/json",
4724
4724
  "application/vnd.ms-excel"
4725
- ], Zl = (e) => Xl.includes(e.type), Ql = (e) => e instanceof File, $l = (e) => e.trim().startsWith("["), eu = (e) => {
4725
+ ], Jl = (e) => ql.includes(e.type), Yl = (e) => e instanceof File, Xl = (e) => e.trim().startsWith("["), Zl = (e) => {
4726
4726
  try {
4727
4727
  var t;
4728
4728
  return !!((t = JSON.parse(e)) != null && t.path);
4729
4729
  } catch {
4730
4730
  return !1;
4731
4731
  }
4732
- }, tu = (e) => new Promise((t, n) => {
4732
+ }, Ql = (e) => new Promise((t, n) => {
4733
4733
  let r = new FileReader();
4734
4734
  r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
4735
- }), nu = async (e, t, n) => {
4735
+ }), $l = async (e, t, n) => {
4736
4736
  try {
4737
- return lu({
4737
+ return ou({
4738
4738
  data: JSON.parse(e),
4739
4739
  errors: []
4740
4740
  }, t, n);
4741
4741
  } catch (e) {
4742
4742
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4743
4743
  }
4744
- }, ru = async (e, t, n) => {
4744
+ }, eu = async (e, t, n) => {
4745
4745
  try {
4746
4746
  let r = JSON.parse(e).path.map((e) => [
4747
- ql(e.md),
4748
- ql(e.inclination),
4749
- ql(e.gridAzimuth)
4747
+ Wl(e.md),
4748
+ Wl(e.inclination),
4749
+ Wl(e.gridAzimuth)
4750
4750
  ]);
4751
4751
  return r.unshift([
4752
4752
  "m",
4753
4753
  "deg",
4754
4754
  "deg"
4755
- ]), lu({
4755
+ ]), ou({
4756
4756
  data: r,
4757
4757
  errors: []
4758
4758
  }, t, n);
4759
4759
  } catch (e) {
4760
4760
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4761
4761
  }
4762
- }, iu = (e) => e.replace(",", "."), au = (e) => e.map((e) => e.map((e) => iu(e))), ou = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4762
+ }, tu = (e) => e.replace(",", "."), nu = (e) => e.map((e) => e.map((e) => tu(e))), ru = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4763
4763
  Nr.parse(e, {
4764
- ...Yl,
4764
+ ...Kl,
4765
4765
  preview: t,
4766
4766
  complete: (e) => {
4767
- let a = lu(e, {
4767
+ let a = ou(e, {
4768
4768
  importLimit: t,
4769
4769
  ...n
4770
4770
  }, r);
4771
- a.rows = au(a.rows), i(a);
4771
+ a.rows = nu(a.rows), i(a);
4772
4772
  }
4773
4773
  });
4774
- }), su = async (e, t, n) => {
4774
+ }), iu = async (e, t, n) => {
4775
4775
  let r = {
4776
4776
  isValid: !1,
4777
4777
  fields: [],
@@ -4780,13 +4780,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4780
4780
  errors: []
4781
4781
  };
4782
4782
  try {
4783
- if (Ql(e) && !Zl(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Jl(Array.from(Xl))}`), r;
4784
- let i = Ql(e) ? await tu(e) : e;
4785
- return $l(i) ? await nu(i, t, n) : eu(i) ? await ru(i, t, n) : await ou(e, t, n);
4783
+ if (Yl(e) && !Jl(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Gl(Array.from(ql))}`), r;
4784
+ let i = Yl(e) ? await Ql(e) : e;
4785
+ return Xl(i) ? await $l(i, t, n) : Zl(i) ? await eu(i, t, n) : await ru(e, t, n);
4786
4786
  } catch (e) {
4787
4787
  return r.errors.push(e.message), r;
4788
4788
  }
4789
- }, cu = (e, t, n, r) => {
4789
+ }, au = (e, t, n, r) => {
4790
4790
  var i;
4791
4791
  let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
4792
4792
  e,
@@ -4798,7 +4798,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4798
4798
  header: !0,
4799
4799
  delimiter: a
4800
4800
  });
4801
- }, lu = (e, t, n) => {
4801
+ }, ou = (e, t, n) => {
4802
4802
  let { data: r, errors: i } = e, a = {
4803
4803
  isValid: !1,
4804
4804
  fields: [],
@@ -4807,15 +4807,15 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4807
4807
  errors: i.map((e) => e.message)
4808
4808
  };
4809
4809
  if (i.length > 0) return a;
4810
- let { hasFieldNameHeader: o, hasUnitHeader: s } = Kl(r, t);
4810
+ let { hasFieldNameHeader: o, hasUnitHeader: s } = Ul(r, t);
4811
4811
  a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
4812
4812
  let { validationRules: c } = t;
4813
4813
  if (c.length) {
4814
- let { isValid: e, errors: t } = Wl(a.fields, a.units, a.rows, c, o, s, n);
4814
+ let { isValid: e, errors: t } = Vl(a.fields, a.units, a.rows, c, o, s, n);
4815
4815
  a.errors.push(...t), a.isValid = e && t.length === 0;
4816
4816
  } else a.isValid = a.errors.length === 0;
4817
4817
  return a;
4818
- }, uu = ({ id: e, message: t = {
4818
+ }, su = ({ id: e, message: t = {
4819
4819
  type: cs.INFO,
4820
4820
  content: ""
4821
4821
  }, autoClose: n = 6e3, onClose: r }) => {
@@ -4856,13 +4856,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4856
4856
  transition: Pr,
4857
4857
  type: s
4858
4858
  });
4859
- }, du = (e) => {
4859
+ }, cu = (e) => {
4860
4860
  Ir.dismiss(e);
4861
- }, fu = (e, t) => {
4861
+ }, lu = (e, t) => {
4862
4862
  t(() => {
4863
- uu({ ...e });
4863
+ su({ ...e });
4864
4864
  });
4865
- }, pu = {
4865
+ }, uu = {
4866
4866
  inputInTable: "_inputInTable_h6wco_1",
4867
4867
  inputHover: "_inputHover_h6wco_13",
4868
4868
  inputFocus: "_inputFocus_h6wco_18",
@@ -4878,7 +4878,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4878
4878
  control: "_control_h6wco_25",
4879
4879
  labelText: "_labelText_h6wco_137",
4880
4880
  noMargin: "_noMargin_h6wco_201"
4881
- }, mu = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = oi.CAPITALIZE }) => {
4881
+ }, du = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = oi.CAPITALIZE }) => {
4882
4882
  let p = c(U), m = u || d;
4883
4883
  return /* @__PURE__ */ b(Rr, {
4884
4884
  name: e,
@@ -4891,14 +4891,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4891
4891
  value: t
4892
4892
  } });
4893
4893
  },
4894
- className: _(pu.toggleContainer, s && pu.noMargin),
4894
+ className: _(uu.toggleContainer, s && uu.noMargin),
4895
4895
  style: { display: i },
4896
4896
  "data-testid": l ? `${l}-field` : void 0,
4897
4897
  children: [/* @__PURE__ */ b(Lr, {
4898
- className: _(pu.toggle, a && pu.small, !t && pu.noLabel),
4898
+ className: _(uu.toggle, a && uu.small, !t && uu.noLabel),
4899
4899
  "data-testid": l,
4900
- children: [/* @__PURE__ */ y("span", { className: pu.control }), t && /* @__PURE__ */ y("span", {
4901
- className: pu.labelText,
4900
+ children: [/* @__PURE__ */ y("span", { className: uu.control }), t && /* @__PURE__ */ y("span", {
4901
+ className: uu.labelText,
4902
4902
  style: { textTransform: f },
4903
4903
  children: t
4904
4904
  })]
@@ -4907,7 +4907,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4907
4907
  onClick: d
4908
4908
  })]
4909
4909
  });
4910
- }, hu = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: o = [], onCompleteImport: c = () => {}, prevalidationConfig: l, t: u, loading: d, startTransition: f, testId: p }) => {
4910
+ }, fu = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: o = [], onCompleteImport: c = () => {}, prevalidationConfig: l, t: u, loading: d, startTransition: f, testId: p }) => {
4911
4911
  let { modalVisibility: { reviewPasteModal: g, pasteModalHelpVisible: _, helpModal: x } } = t, { warningMessage: S, actionButtonLabel: C, changeRulesAction: w, checkPrevalidationNeed: T } = l == null ? {} : l, E = m(null), [D, O] = h(!1), [k, A] = h({
4912
4912
  pastedText: "",
4913
4913
  parsedResult: {
@@ -4930,8 +4930,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4930
4930
  var n, r, i;
4931
4931
  let t = Mr(I == null || (n = I.rows) == null ? void 0 : n.map(([e, t]) => [Number(e), Number(t)]), .001).map(([e, t]) => [e.toString(), t.toString()]), a = {
4932
4932
  validationRules: o,
4933
- importLimit: (r = e.importLimit) == null ? wl : r
4934
- }, s = cu(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
4933
+ importLimit: (r = e.importLimit) == null ? xl : r
4934
+ }, s = au(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
4935
4935
  f(() => A({
4936
4936
  parsedResult: {
4937
4937
  ...I,
@@ -4961,17 +4961,17 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4961
4961
  }, N = () => {
4962
4962
  r("helpModal", !x);
4963
4963
  }, P = () => {
4964
- n(k), c(k.parsedResult), i(), fu({ message: {
4964
+ n(k), c(k.parsedResult), i(), lu({ message: {
4965
4965
  type: "Success",
4966
4966
  content: u("pasteSuccessful")
4967
4967
  } }, f);
4968
- }, { pastedText: F, parsedResult: I } = k, L = T && T(I), { isValid: R, errors: z } = I, ee = z.length, te = F === "", ne = Fl(F), re = Pl(F), B = /* @__PURE__ */ b(v, { children: [
4968
+ }, { pastedText: F, parsedResult: I } = k, L = T && T(I), { isValid: R, errors: z } = I, ee = z.length, te = F === "", ne = Ml(F), re = jl(F), B = /* @__PURE__ */ b(v, { children: [
4969
4969
  /* @__PURE__ */ b("div", {
4970
4970
  className: os.headerContainer,
4971
4971
  children: [
4972
4972
  /* @__PURE__ */ y(G, {
4973
4973
  text: u("downsampleTooltip"),
4974
- children: /* @__PURE__ */ y(mu, {
4974
+ children: /* @__PURE__ */ y(du, {
4975
4975
  label: u("downsampled"),
4976
4976
  checked: D,
4977
4977
  onChange: () => j(!D),
@@ -5004,7 +5004,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5004
5004
  }),
5005
5005
  te ? /* @__PURE__ */ y("div", {
5006
5006
  className: os.resultContainer,
5007
- children: /* @__PURE__ */ y(Nl, {
5007
+ children: /* @__PURE__ */ y(Al, {
5008
5008
  text: null,
5009
5009
  children: /* @__PURE__ */ b("div", {
5010
5010
  className: os.emptyState,
@@ -5040,7 +5040,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5040
5040
  }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("div", {
5041
5041
  className: os.messagesContainer,
5042
5042
  children: [
5043
- ee ? /* @__PURE__ */ y(jl, {
5043
+ ee ? /* @__PURE__ */ y(Ol, {
5044
5044
  errors: z,
5045
5045
  t: u
5046
5046
  }) : null,
@@ -5063,7 +5063,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5063
5063
  type: "Warning"
5064
5064
  } })
5065
5065
  ]
5066
- }), /* @__PURE__ */ y(Ol, {
5066
+ }), /* @__PURE__ */ y(Tl, {
5067
5067
  validationRules: o,
5068
5068
  parsedResult: I,
5069
5069
  updateState: (e) => A((t) => ({
@@ -5105,7 +5105,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5105
5105
  onClose: i
5106
5106
  } })
5107
5107
  });
5108
- }, gu = ({ modals: e = [], modalVisibility: n, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ y(v, { children: e.map(({ name: e, component: a, props: o = {} }) => {
5108
+ }, pu = ({ modals: e = [], modalVisibility: n, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ y(v, { children: e.map(({ name: e, component: a, props: o = {} }) => {
5109
5109
  var s;
5110
5110
  return /* @__PURE__ */ y(t, { children: /* @__PURE__ */ y(a, {
5111
5111
  testId: `${i}-modal-render-${e}`,
@@ -5113,7 +5113,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5113
5113
  onClose: () => r({ name: e }),
5114
5114
  ...o
5115
5115
  }) }, e);
5116
- }) }) : null, _u = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ y(Aa, {
5116
+ }) }) : null, mu = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ y(Aa, {
5117
5117
  loading: !0,
5118
5118
  menu: {
5119
5119
  component: /* @__PURE__ */ y(K, {
@@ -5129,18 +5129,18 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5129
5129
  sections: e
5130
5130
  },
5131
5131
  testId: n
5132
- }), vu = (e, t, n) => s(async () => {
5132
+ }), hu = (e, t, n) => s(async () => {
5133
5133
  if (n) try {
5134
5134
  return await n();
5135
5135
  } catch (t) {
5136
- console.error("beforeExportData failed", t), uu({ message: {
5136
+ console.error("beforeExportData failed", t), su({ message: {
5137
5137
  type: "Error",
5138
5138
  content: e("unableToPrepareExportData")
5139
5139
  } });
5140
5140
  return;
5141
5141
  }
5142
5142
  return t;
5143
- }, [t, n]), yu = {
5143
+ }, [t, n]), gu = {
5144
5144
  cancel: "Cancel",
5145
5145
  chooseFile: "Choose file",
5146
5146
  copyDecimalComma: "Copy (decimal comma)",
@@ -5199,26 +5199,26 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5199
5199
  smartUpload_description: "Upload image and extract table content using a LLM",
5200
5200
  smartUpload_smartUpload: "Smart Upload",
5201
5201
  toUploadOrImportFromClipboardMessage: "To upload or import from clipboard please select your preferred unit in the table header and upload or paste numbers only for Depth, Inc, Azi. Follow example below"
5202
- }, bu = (e, t = {}) => e == null ? void 0 : e.replace(/\{\{(\w+)\}\}/g, (e, n) => (t == null ? void 0 : t[n]) === void 0 ? "" : String(t == null ? void 0 : t[n])), xu = (e) => f(() => {
5203
- let t = Object.keys(yu).reduce((t, n) => {
5204
- let r = yu == null ? void 0 : yu[n], i = e == null ? void 0 : e[n];
5202
+ }, _u = (e, t = {}) => e == null ? void 0 : e.replace(/\{\{(\w+)\}\}/g, (e, n) => (t == null ? void 0 : t[n]) === void 0 ? "" : String(t == null ? void 0 : t[n])), vu = (e) => f(() => {
5203
+ let t = Object.keys(gu).reduce((t, n) => {
5204
+ let r = gu == null ? void 0 : gu[n], i = e == null ? void 0 : e[n];
5205
5205
  return t[n] = i == null ? r : i, t;
5206
5206
  }, {});
5207
5207
  return (e, n) => {
5208
5208
  let r = t[e];
5209
- return n ? bu(r, n) : r;
5209
+ return n ? _u(r, n) : r;
5210
5210
  };
5211
- }, [e]), Su = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, Cu = (e) => {
5211
+ }, [e]), yu = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, bu = (e) => {
5212
5212
  var t;
5213
5213
  return {
5214
5214
  ...e,
5215
5215
  rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
5216
5216
  let t = String(e == null ? "" : e);
5217
- return Su.test(t) ? Wn(t) : t;
5217
+ return yu.test(t) ? Wn(t) : t;
5218
5218
  }))
5219
5219
  };
5220
- }, wu = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
5221
- let { exportData: a, beforeExportData: o, importLimit: c = wl, validationRules: l = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = xu(u), v = vu(_, a, o), y = s((e) => {
5220
+ }, xu = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
5221
+ let { exportData: a, beforeExportData: o, importLimit: c = xl, validationRules: l = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = vu(u), v = hu(_, a, o), y = s((e) => {
5222
5222
  n((t) => ({
5223
5223
  ...t,
5224
5224
  ...e
@@ -5262,9 +5262,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5262
5262
  let t = {
5263
5263
  validationRules: l,
5264
5264
  importLimit: c
5265
- }, n = Cu(await su(e, t, _));
5265
+ }, n = bu(await iu(e, t, _));
5266
5266
  if (g && g(h)) {
5267
- let { fields: e, units: r, rows: a } = n, o = cu(e, r == null ? [] : r, a, t);
5267
+ let { fields: e, units: r, rows: a } = n, o = au(e, r == null ? [] : r, a, t);
5268
5268
  return i(() => y({
5269
5269
  pastedText: o,
5270
5270
  parsedResult: h
@@ -5290,20 +5290,20 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5290
5290
  let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
5291
5291
  try {
5292
5292
  if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
5293
- fu({ message: {
5293
+ lu({ message: {
5294
5294
  type: "Error",
5295
5295
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
5296
5296
  } }, i);
5297
5297
  return;
5298
5298
  }
5299
- let e = Cu(await su(r, {
5299
+ let e = bu(await iu(r, {
5300
5300
  validationRules: l,
5301
5301
  importLimit: c
5302
5302
  }, _));
5303
- return e != null && e.isValid || fu({ message: {
5303
+ return e != null && e.isValid || lu({ message: {
5304
5304
  type: "Error",
5305
5305
  content: _("clipboardReadFailed")
5306
- } }, i), n && fu({ message: {
5306
+ } }, i), n && lu({ message: {
5307
5307
  type: "Success",
5308
5308
  content: _("pasteSuccessful")
5309
5309
  } }, i), {
@@ -5311,7 +5311,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5311
5311
  parsedResult: e
5312
5312
  };
5313
5313
  } catch (e) {
5314
- fu({ message: {
5314
+ lu({ message: {
5315
5315
  type: "Error",
5316
5316
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
5317
5317
  details: e.message
@@ -5324,10 +5324,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5324
5324
  let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
5325
5325
  if (!n) return;
5326
5326
  let r = await C(await n.text());
5327
- r.isValid ? (f || fu({ message: {
5327
+ r.isValid ? (f || lu({ message: {
5328
5328
  type: "Success",
5329
5329
  content: _("pasteSuccessful")
5330
- } }, i), i(() => d(r))) : fu({ message: {
5330
+ } }, i), i(() => d(r))) : lu({ message: {
5331
5331
  type: "Error",
5332
5332
  content: _("fileParsingFailed")
5333
5333
  } }, i);
@@ -5341,7 +5341,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5341
5341
  try {
5342
5342
  let t = await navigator.clipboard.readText();
5343
5343
  if (!t) {
5344
- fu({ message: {
5344
+ lu({ message: {
5345
5345
  type: "Error",
5346
5346
  content: _("clipboardIsEmpty")
5347
5347
  } }, i);
@@ -5349,18 +5349,18 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5349
5349
  }
5350
5350
  let n = await C(t);
5351
5351
  if (!n.isValid) {
5352
- fu({ message: {
5352
+ lu({ message: {
5353
5353
  type: "Error",
5354
5354
  content: _("clipboardReadFailed")
5355
5355
  } }, i);
5356
5356
  return;
5357
5357
  }
5358
- f || fu({ message: {
5358
+ f || lu({ message: {
5359
5359
  type: "Success",
5360
5360
  content: _("pasteSuccessful")
5361
5361
  } }, i), e && i(() => d(n));
5362
5362
  } catch {
5363
- fu({ message: {
5363
+ lu({ message: {
5364
5364
  type: "Error",
5365
5365
  content: _("clipboardReadNotAllowed")
5366
5366
  } }, i);
@@ -5375,14 +5375,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5375
5375
  onClickCopyClipboard: s(async (e) => {
5376
5376
  let t = await v();
5377
5377
  if (!t) return;
5378
- let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : Cl).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = cu(n, o, a.map((t) => t.map((t) => zr(t) ? "" : s(t.toString(), e))), { delimiter: " " });
5378
+ let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : bl).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = au(n, o, a.map((t) => t.map((t) => zr(t) ? "" : s(t.toString(), e))), { delimiter: " " });
5379
5379
  try {
5380
- await navigator.clipboard.writeText(c), fu({ message: {
5380
+ await navigator.clipboard.writeText(c), lu({ message: {
5381
5381
  type: "Success",
5382
5382
  content: _("copiedToClipboard")
5383
5383
  } }, i);
5384
5384
  } catch (e) {
5385
- fu({ message: {
5385
+ lu({ message: {
5386
5386
  type: "Error",
5387
5387
  content: _("unableToCopyToClipboard"),
5388
5388
  details: e.message
@@ -5392,14 +5392,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5392
5392
  onSmartUploadResult: s((e) => {
5393
5393
  let t = pn(e) && mn(e.errorMessage) ? e.errorMessage : void 0;
5394
5394
  if (t) {
5395
- fu({ message: {
5395
+ lu({ message: {
5396
5396
  type: "Error",
5397
5397
  content: t || "Smart upload failed."
5398
5398
  } }, i);
5399
5399
  return;
5400
5400
  }
5401
5401
  if (!an(e) || e.length < 2 || !nn(e, (e) => pn(e) && nn(Sn(e), mn))) {
5402
- fu({ message: {
5402
+ lu({ message: {
5403
5403
  type: "Error",
5404
5404
  content: "Smart upload returned unexpected format.",
5405
5405
  details: JSON.stringify(e)
@@ -5431,14 +5431,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5431
5431
  ]),
5432
5432
  deleteAllRows: x
5433
5433
  };
5434
- }, Tu = (e, t) => {
5434
+ }, Su = (e, t) => {
5435
5435
  var n, r;
5436
- let { fields: i, rows: a } = e, o = cu(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
5436
+ let { fields: i, rows: a } = e, o = au(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
5437
5437
  c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
5438
- }, Eu = (e) => fn(e) && "modalKey" in e, Du = (e, t, n) => en(e, (e) => {
5438
+ }, Cu = (e) => fn(e) && "modalKey" in e, wu = (e, t, n) => en(e, (e) => {
5439
5439
  if (an(e) || !pn(e)) return;
5440
5440
  let { modalKey: r } = e == null ? {} : e;
5441
- if (Eu(e) && typeof e.onClick != "function") {
5441
+ if (Cu(e) && typeof e.onClick != "function") {
5442
5442
  let i = () => {
5443
5443
  var e;
5444
5444
  n(r, !((e = t.modalVisibility) != null && e[r]));
@@ -5448,7 +5448,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5448
5448
  onClick: i
5449
5449
  };
5450
5450
  }
5451
- }), Ou = (e, t, n) => Du(e, t, n), ku = {
5451
+ }), Tu = (e, t, n) => wu(e, t, n), Eu = {
5452
5452
  pastedText: "",
5453
5453
  parsedResult: {
5454
5454
  isValid: !1,
@@ -5463,9 +5463,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5463
5463
  reviewPasteModal: !1,
5464
5464
  helpModal: !1
5465
5465
  }
5466
- }, Au = ({ config: e, smartUploadConfig: t, testId: n }) => {
5466
+ }, Du = ({ config: e, smartUploadConfig: t, testId: n }) => {
5467
5467
  var r, i, a, o;
5468
- let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: _ = !0, showDeleteOptions: v = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = h(ku), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = xu(f), L = vu(I, s, c), [R, z] = g(), ee = wu({
5468
+ let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: _ = !0, showDeleteOptions: v = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = h(Eu), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = vu(f), L = hu(I, s, c), [R, z] = g(), ee = xu({
5469
5469
  config: e,
5470
5470
  state: E,
5471
5471
  setState: D,
@@ -5500,14 +5500,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5500
5500
  onClick: () => B("smartUploadModal", !O),
5501
5501
  testId: `${n}-smart-upload`
5502
5502
  }] : [],
5503
- ...Ou((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, B)
5503
+ ...Tu((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, B)
5504
5504
  ] : [], ue = [
5505
5505
  {
5506
5506
  type: "Option",
5507
5507
  label: I("downloadFile"),
5508
5508
  onClick: async () => {
5509
5509
  let e = await L();
5510
- e && e && Tu(e, d);
5510
+ e && e && Su(e, d);
5511
5511
  }
5512
5512
  },
5513
5513
  ...p ? [{
@@ -5532,20 +5532,20 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5532
5532
  }]
5533
5533
  }
5534
5534
  }],
5535
- ...Ou((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, B)
5535
+ ...Tu((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, B)
5536
5536
  ], de = v ? [{
5537
5537
  type: "Option",
5538
5538
  label: I("deleteAllRows"),
5539
5539
  onClick: () => ce(),
5540
5540
  testId: `${n}-delete-all-rows`
5541
- }, ...Ou((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, B)] : [], fe = x ? [
5541
+ }, ...Tu((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, B)] : [], fe = x ? [
5542
5542
  { type: "Divider" },
5543
5543
  {
5544
5544
  type: "Option",
5545
5545
  label: I("help"),
5546
5546
  onClick: () => B("helpModal", !A)
5547
5547
  },
5548
- ...Ou((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, B)
5548
+ ...Tu((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, B)
5549
5549
  ] : [], pe = [
5550
5550
  ...le.length ? [{
5551
5551
  section: [...le, ...fe],
@@ -5571,13 +5571,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5571
5571
  small: !0,
5572
5572
  dark: !0
5573
5573
  }),
5574
- pe.map((e, t) => /* @__PURE__ */ y(_u, {
5574
+ pe.map((e, t) => /* @__PURE__ */ y(mu, {
5575
5575
  sections: e.section,
5576
5576
  iconName: e.iconName,
5577
5577
  tooltip: e.tooltip,
5578
5578
  testId: `data-${e == null ? void 0 : e.name}-menu`
5579
5579
  }, t)),
5580
- k && /* @__PURE__ */ y(hu, {
5580
+ k && /* @__PURE__ */ y(fu, {
5581
5581
  config: e,
5582
5582
  state: E,
5583
5583
  updateState: ne,
@@ -5613,14 +5613,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5613
5613
  cancelText: I("cancel"),
5614
5614
  testId: n
5615
5615
  }),
5616
- /* @__PURE__ */ y(gu, {
5616
+ /* @__PURE__ */ y(pu, {
5617
5617
  modals: C,
5618
5618
  modalVisibility: E == null ? void 0 : E.modalVisibility,
5619
5619
  onCloseModal: re,
5620
5620
  testId: n
5621
5621
  })
5622
5622
  ] });
5623
- }, ju = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = gn, ...o }) => {
5623
+ }, Ou = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = gn, ...o }) => {
5624
5624
  let s = c(U), l = m(null), u = () => {
5625
5625
  var e;
5626
5626
  i || s || (e = l.current) == null || e.click();
@@ -5648,12 +5648,12 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5648
5648
  multiple: n,
5649
5649
  onChange: d
5650
5650
  })] });
5651
- }, Mu = {
5651
+ }, ku = {
5652
5652
  label: "_label_uxk69_1",
5653
5653
  labelLeft: "_labelLeft_uxk69_5",
5654
5654
  icons: "_icons_uxk69_13",
5655
5655
  small: "_small_uxk69_27"
5656
- }, Nu = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5656
+ }, Au = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5657
5657
  visible: !1,
5658
5658
  active: !1,
5659
5659
  onClick: () => {},
@@ -5662,14 +5662,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5662
5662
  }, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = oi.CAPITALIZE }) => {
5663
5663
  var d;
5664
5664
  return /* @__PURE__ */ y("div", {
5665
- className: _(Mu.label, c ? Mu.labelLeft : "", l ? Mu.small : ""),
5665
+ className: _(ku.label, c ? ku.labelLeft : "", l ? ku.small : ""),
5666
5666
  children: /* @__PURE__ */ b("label", {
5667
5667
  style: {
5668
5668
  textTransform: u,
5669
5669
  width: t || ""
5670
5670
  },
5671
5671
  children: [e, /* @__PURE__ */ b("div", {
5672
- className: Mu.icons,
5672
+ className: ku.icons,
5673
5673
  children: [
5674
5674
  (n || i) && /* @__PURE__ */ y(Wi, {
5675
5675
  text: n,
@@ -5695,23 +5695,23 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5695
5695
  })]
5696
5696
  })
5697
5697
  });
5698
- }, Pu = {
5698
+ }, ju = {
5699
5699
  field: "_field_1xoss_1",
5700
5700
  labelLeft: "_labelLeft_1xoss_5",
5701
5701
  fieldInput: "_fieldInput_1xoss_9",
5702
5702
  formRow: "_formRow_1xoss_12",
5703
5703
  "form-row": "_form-row_1xoss_13",
5704
5704
  button: "_button_1xoss_22"
5705
- }, Fu = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5705
+ }, Mu = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5706
5706
  visible: !1,
5707
5707
  active: !1,
5708
5708
  onClick: () => {},
5709
5709
  tooltip: "",
5710
5710
  testId: void 0
5711
5711
  }, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = oi.CAPITALIZE }) => /* @__PURE__ */ b("div", {
5712
- className: _(Pu.field, t ? Pu.labelLeft : ""),
5712
+ className: _(ju.field, t ? ju.labelLeft : ""),
5713
5713
  "data-testid": d,
5714
- children: [(e || t) && /* @__PURE__ */ y(Nu, {
5714
+ children: [(e || t) && /* @__PURE__ */ y(Au, {
5715
5715
  label: e,
5716
5716
  width: n,
5717
5717
  helpText: i,
@@ -5724,10 +5724,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5724
5724
  small: u,
5725
5725
  textTransform: f
5726
5726
  }), /* @__PURE__ */ y("div", {
5727
- className: Pu.fieldInput,
5727
+ className: ju.fieldInput,
5728
5728
  children: r
5729
5729
  })]
5730
- }), Iu = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ y("div", {
5730
+ }), Nu = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ y("div", {
5731
5731
  style: {
5732
5732
  display: "flex",
5733
5733
  flexDirection: n,
@@ -5739,8 +5739,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5739
5739
  gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
5740
5740
  },
5741
5741
  children: a
5742
- }), Lu = { formRow: "_formRow_odewu_1" }, Ru = ({ children: e }) => /* @__PURE__ */ y("div", {
5743
- className: Lu.formRow,
5742
+ }), Pu = { formRow: "_formRow_odewu_1" }, Fu = ({ children: e }) => /* @__PURE__ */ y("div", {
5743
+ className: Pu.formRow,
5744
5744
  children: e
5745
5745
  }), Z = {
5746
5746
  inputInTable: "_inputInTable_15rr3_1",
@@ -5786,15 +5786,15 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5786
5786
  hideScrollbar: "_hideScrollbar_15rr3_71",
5787
5787
  noPointerEvents: "_noPointerEvents_15rr3_313",
5788
5788
  virtualRows: "_virtualRows_15rr3_316"
5789
- }, zu = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ y("a", {
5789
+ }, Iu = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ y("a", {
5790
5790
  className: Z.toggleNarrow,
5791
5791
  onClick: t,
5792
5792
  children: /* @__PURE__ */ y(W, { icon: H.CHEVRON_LEFT })
5793
- }) : null, Bu = i(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ b("div", {
5793
+ }) : null, Lu = i(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ b("div", {
5794
5794
  ref: a,
5795
5795
  className: _(Z.header, i ? Z.stickyHeader : ""),
5796
5796
  children: [
5797
- /* @__PURE__ */ y(zu, {
5797
+ /* @__PURE__ */ y(Iu, {
5798
5798
  toggleNarrow: n,
5799
5799
  onClickToggleNarrow: r
5800
5800
  }),
@@ -5814,14 +5814,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5814
5814
  })
5815
5815
  })
5816
5816
  ]
5817
- })), Vu = ({ label: e }) => e ? /* @__PURE__ */ y("span", {
5817
+ })), Ru = ({ label: e }) => e ? /* @__PURE__ */ y("span", {
5818
5818
  className: Z.label,
5819
5819
  children: /* @__PURE__ */ y(va, {
5820
5820
  color: e.color,
5821
5821
  title: e.value,
5822
5822
  small: e.small
5823
5823
  })
5824
- }) : null, Hu = ({ name: e, icon: t, testId: n }) => {
5824
+ }) : null, zu = ({ name: e, icon: t, testId: n }) => {
5825
5825
  let r = t && /* @__PURE__ */ y(W, {
5826
5826
  icon: t.icon,
5827
5827
  color: t.color || "#db2828"
@@ -5841,8 +5841,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5841
5841
  children: r
5842
5842
  })]
5843
5843
  });
5844
- }, Uu = ({ item: e }) => {
5845
- let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ y(Hu, {
5844
+ }, Bu = ({ item: e }) => {
5845
+ let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ y(zu, {
5846
5846
  name: t,
5847
5847
  icon: n,
5848
5848
  testId: o && `${o}-name`
@@ -5868,10 +5868,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5868
5868
  })
5869
5869
  ]
5870
5870
  });
5871
- }, Wu = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ y(va, {
5871
+ }, Vu = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ y(va, {
5872
5872
  color: "rgba(0,0,0,0.25)",
5873
5873
  title: e.metaCount
5874
- }), Gu = ({ item: e, expanding: t }) => /* @__PURE__ */ y(Ci, {
5874
+ }), Hu = ({ item: e, expanding: t }) => /* @__PURE__ */ y(Ci, {
5875
5875
  expanded: !!t && !!e.active && !!e.content,
5876
5876
  children: /* @__PURE__ */ y("div", {
5877
5877
  className: Z.itemContent,
@@ -5880,7 +5880,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5880
5880
  },
5881
5881
  children: e.content
5882
5882
  })
5883
- }), Ku = i(({ item: e, index: t }, n) => {
5883
+ }), Uu = i(({ item: e, index: t }, n) => {
5884
5884
  var r;
5885
5885
  let i = c(U), { actions: a, disabled: o, expanded: s, onClick: l, title: u, name: d, icon: f, testId: p } = e;
5886
5886
  return /* @__PURE__ */ y("div", {
@@ -5900,13 +5900,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5900
5900
  className: _(Z.expandIcon, s && Z.expanded),
5901
5901
  children: /* @__PURE__ */ y(W, { icon: H.CHEVRON_RIGHT })
5902
5902
  }),
5903
- /* @__PURE__ */ y(Hu, {
5903
+ /* @__PURE__ */ y(zu, {
5904
5904
  name: d,
5905
5905
  icon: f
5906
5906
  }),
5907
5907
  /* @__PURE__ */ b("div", {
5908
5908
  className: Z.right,
5909
- children: [/* @__PURE__ */ y(Wu, { item: e }), !(o || i) && a && /* @__PURE__ */ y("div", {
5909
+ children: [/* @__PURE__ */ y(Vu, { item: e }), !(o || i) && a && /* @__PURE__ */ y("div", {
5910
5910
  className: Z.actions,
5911
5911
  children: /* @__PURE__ */ y(Ma, { actions: (r = e.actions) == null ? [] : r })
5912
5912
  })]
@@ -5914,7 +5914,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5914
5914
  ]
5915
5915
  }) })
5916
5916
  });
5917
- }), qu = i(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
5917
+ }), Wu = i(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
5918
5918
  let o = c(U), s = (e, t, s, c, l, u) => {
5919
5919
  let d = t.actions && t.actions.find((e) => {
5920
5920
  var t;
@@ -5950,24 +5950,24 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5950
5950
  className: Z.indentIcon,
5951
5951
  children: /* @__PURE__ */ y(W, { icon: H.INDENT })
5952
5952
  }) : null,
5953
- /* @__PURE__ */ y(Vu, { label: t.label }),
5954
- /* @__PURE__ */ y(Uu, { item: t }),
5953
+ /* @__PURE__ */ y(Ru, { label: t.label }),
5954
+ /* @__PURE__ */ y(Bu, { item: t }),
5955
5955
  /* @__PURE__ */ b("div", {
5956
5956
  className: Z.right,
5957
- children: [/* @__PURE__ */ y(Wu, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ y("div", {
5957
+ children: [/* @__PURE__ */ y(Vu, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ y("div", {
5958
5958
  className: Z.actions,
5959
5959
  children: /* @__PURE__ */ y(Ma, { actions: t.actions })
5960
5960
  })]
5961
5961
  })
5962
5962
  ]
5963
- }), /* @__PURE__ */ y(Gu, {
5963
+ }), /* @__PURE__ */ y(Hu, {
5964
5964
  item: t,
5965
5965
  expanding: n
5966
5966
  })]
5967
5967
  })
5968
5968
  }, e);
5969
5969
  };
5970
- return e.type === "Heading" ? /* @__PURE__ */ y(Ku, {
5970
+ return e.type === "Heading" ? /* @__PURE__ */ y(Uu, {
5971
5971
  ref: a,
5972
5972
  item: e,
5973
5973
  index: t
@@ -5982,7 +5982,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5982
5982
  opacity: +!c
5983
5983
  }, n, r, i);
5984
5984
  })(t, e) : s(t, e);
5985
- }), Ju = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5985
+ }), Gu = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5986
5986
  let [i, a] = h(null), o = (e) => {
5987
5987
  a(e.active.id);
5988
5988
  }, s = (e) => {
@@ -6005,7 +6005,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6005
6005
  dropAnimation: null,
6006
6006
  children: /* @__PURE__ */ y("div", {
6007
6007
  className: Z.dragOverlay,
6008
- children: /* @__PURE__ */ y(qu, {
6008
+ children: /* @__PURE__ */ y(Wu, {
6009
6009
  draggable: t,
6010
6010
  item: n.items[Number(i)],
6011
6011
  index: Number(i)
@@ -6013,7 +6013,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6013
6013
  })
6014
6014
  }), document.body)]
6015
6015
  }) : e;
6016
- }, Yu = ({ items: e, scrollDetails: t, children: n }) => {
6016
+ }, Ku = ({ items: e, scrollDetails: t, children: n }) => {
6017
6017
  let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: o } = t, c = m(null), u = jr({
6018
6018
  count: e.length,
6019
6019
  getScrollElement: () => c.current,
@@ -6043,9 +6043,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6043
6043
  children: n({ virtualizer: u })
6044
6044
  })
6045
6045
  });
6046
- }, Xu = ({ items: e, scrollDetails: t, children: n }) => {
6046
+ }, qu = ({ items: e, scrollDetails: t, children: n }) => {
6047
6047
  let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
6048
- return a ? /* @__PURE__ */ y(Yu, {
6048
+ return a ? /* @__PURE__ */ y(Ku, {
6049
6049
  items: e,
6050
6050
  scrollDetails: t,
6051
6051
  children: ({ virtualizer: e }) => n({ virtualizer: e })
@@ -6056,7 +6056,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6056
6056
  children: n({})
6057
6057
  })
6058
6058
  });
6059
- }, Zu = ({ list: e, bordered: t = !1, expanding: n = !1, narrow: r = !1, toggleNarrow: i = !1, onToggleNarrow: a = () => {}, invokeEditOnRowClick: o = !0, noHeader: s = !1, stickyHeader: c, draggable: l = !1, onListReorder: u = () => {}, marginBottom: d = 0, height: f, testId: p, scrollDetails: m = {
6059
+ }, Ju = ({ list: e, bordered: t = !1, expanding: n = !1, narrow: r = !1, toggleNarrow: i = !1, onToggleNarrow: a = () => {}, invokeEditOnRowClick: o = !0, noHeader: s = !1, stickyHeader: c, draggable: l = !1, onListReorder: u = () => {}, marginBottom: d = 0, height: f, testId: p, scrollDetails: m = {
6060
6060
  scrollable: !1,
6061
6061
  hideScrollbar: !1,
6062
6062
  triggerScrollToActiveItem: !1,
@@ -6069,17 +6069,17 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6069
6069
  marginBottom: d
6070
6070
  },
6071
6071
  id: "scrollableDiv",
6072
- children: [!s && /* @__PURE__ */ y(Bu, {
6072
+ children: [!s && /* @__PURE__ */ y(Lu, {
6073
6073
  name: e.name,
6074
6074
  actions: e.actions,
6075
6075
  toggleNarrow: i,
6076
6076
  onToggleNarrow: a,
6077
6077
  stickyHeader: c
6078
- }), /* @__PURE__ */ y(Ju, {
6078
+ }), /* @__PURE__ */ y(Gu, {
6079
6079
  draggable: l,
6080
6080
  list: e,
6081
6081
  onListReorder: u,
6082
- children: /* @__PURE__ */ y(Xu, {
6082
+ children: /* @__PURE__ */ y(qu, {
6083
6083
  items: e.items,
6084
6084
  scrollDetails: m,
6085
6085
  children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ y("div", {
@@ -6087,14 +6087,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6087
6087
  className: Z.virtualRow,
6088
6088
  style: { transform: `translateY(${r.start}px)` },
6089
6089
  ref: t.measureElement,
6090
- children: /* @__PURE__ */ y(qu, {
6090
+ children: /* @__PURE__ */ y(Wu, {
6091
6091
  index: r.index,
6092
6092
  draggable: l,
6093
6093
  item: e.items[r.index],
6094
6094
  expanding: n,
6095
6095
  invokeEditOnRowClick: o
6096
6096
  })
6097
- }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(qu, {
6097
+ }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(Wu, {
6098
6098
  index: t,
6099
6099
  draggable: l,
6100
6100
  item: e,
@@ -6103,7 +6103,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6103
6103
  }) }, t))
6104
6104
  })
6105
6105
  })]
6106
- }), Qu = {
6106
+ }), Yu = {
6107
6107
  loader: "_loader_477i5_1",
6108
6108
  fullViewPortSize: "_fullViewPortSize_477i5_7",
6109
6109
  cover: "_cover_477i5_14",
@@ -6111,33 +6111,33 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6111
6111
  content: "_content_477i5_44",
6112
6112
  text: "_text_477i5_49",
6113
6113
  details: "_details_477i5_53"
6114
- }, $u = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = si.DARK, testId: c = null }) => {
6114
+ }, Xu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = si.DARK, testId: c = null }) => {
6115
6115
  let l = s === si.DARK ? si.WHITE : si.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
6116
6116
  return /* @__PURE__ */ y("div", {
6117
- className: _(Qu.loader, a ? Qu.cover : "", { [Qu.fullViewPortSize]: i }),
6117
+ className: _(Yu.loader, a ? Yu.cover : "", { [Yu.fullViewPortSize]: i }),
6118
6118
  style: {
6119
6119
  width: e,
6120
6120
  height: t
6121
6121
  },
6122
6122
  "data-testid": c,
6123
6123
  children: /* @__PURE__ */ y("div", {
6124
- className: Qu.dimmer,
6124
+ className: Yu.dimmer,
6125
6125
  style: {
6126
6126
  background: u,
6127
6127
  color: l
6128
6128
  },
6129
6129
  children: /* @__PURE__ */ b("div", {
6130
- className: Qu.content,
6130
+ className: Yu.content,
6131
6131
  "data-testid": c && `${c}-content`,
6132
6132
  children: [
6133
6133
  o,
6134
6134
  n && /* @__PURE__ */ y("div", {
6135
- className: Qu.text,
6135
+ className: Yu.text,
6136
6136
  "data-testid": c && `${c}-text`,
6137
6137
  children: n
6138
6138
  }),
6139
6139
  r && /* @__PURE__ */ y("div", {
6140
- className: Qu.details,
6140
+ className: Yu.details,
6141
6141
  "data-testid": c && `${c}-details`,
6142
6142
  children: r
6143
6143
  })
@@ -6145,15 +6145,15 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6145
6145
  })
6146
6146
  })
6147
6147
  });
6148
- }, ed = {
6148
+ }, Zu = {
6149
6149
  menu: "_menu_12x4u_1",
6150
6150
  header: "_header_12x4u_11",
6151
6151
  item: "_item_12x4u_27",
6152
6152
  heading: "_heading_12x4u_32"
6153
- }, td = ({ option: e, onChange: t }) => {
6153
+ }, Qu = ({ option: e, onChange: t }) => {
6154
6154
  let { key: n, selected: r, label: i, disabled: a, testId: o, helpText: s, onClickHelp: c, textTransform: l } = e;
6155
6155
  return /* @__PURE__ */ y("div", {
6156
- className: ed.item,
6156
+ className: Zu.item,
6157
6157
  children: /* @__PURE__ */ y(Gi, {
6158
6158
  label: i,
6159
6159
  noMargin: !0,
@@ -6166,21 +6166,21 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6166
6166
  textTransform: l
6167
6167
  })
6168
6168
  }, n);
6169
- }, nd = ({ label: e }) => /* @__PURE__ */ y("div", {
6170
- className: ed.heading,
6169
+ }, $u = ({ label: e }) => /* @__PURE__ */ y("div", {
6170
+ className: Zu.heading,
6171
6171
  children: e
6172
- }), rd = /* @__PURE__ */ function(e) {
6172
+ }), ed = /* @__PURE__ */ function(e) {
6173
6173
  return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
6174
- }({}), id = (e) => e.type !== rd.HEADING && e.type !== rd.DIVIDER && !e.disabled, ad = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ b("div", {
6175
- className: _("menu", ed.menu),
6174
+ }({}), td = (e) => e.type !== ed.HEADING && e.type !== ed.DIVIDER && !e.disabled, nd = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ b("div", {
6175
+ className: _("menu", Zu.menu),
6176
6176
  style: { maxHeight: r },
6177
6177
  "data-testid": i ? `${i}-option-dropdown-layer` : void 0,
6178
6178
  children: [n && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("div", {
6179
- className: ed.header,
6179
+ className: Zu.header,
6180
6180
  children: [
6181
6181
  /* @__PURE__ */ y("a", {
6182
6182
  onClick: (n) => {
6183
- t(n, e.map((e) => id(e) ? {
6183
+ t(n, e.map((e) => td(e) ? {
6184
6184
  ...e,
6185
6185
  selected: !0
6186
6186
  } : e));
@@ -6189,7 +6189,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6189
6189
  }),
6190
6190
  /* @__PURE__ */ y("a", {
6191
6191
  onClick: (n) => {
6192
- t(n, e.map((e) => id(e) ? {
6192
+ t(n, e.map((e) => td(e) ? {
6193
6193
  ...e,
6194
6194
  selected: !1
6195
6195
  } : e));
@@ -6198,7 +6198,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6198
6198
  }),
6199
6199
  /* @__PURE__ */ y("a", {
6200
6200
  onClick: (n) => {
6201
- t(n, e.map((e) => id(e) ? {
6201
+ t(n, e.map((e) => td(e) ? {
6202
6202
  ...e,
6203
6203
  selected: !e.selected
6204
6204
  } : e));
@@ -6208,19 +6208,19 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6208
6208
  ]
6209
6209
  }), /* @__PURE__ */ y(yo, { margin: 0 })] }), e.map((n, r) => {
6210
6210
  switch (n.type) {
6211
- case rd.HEADING:
6211
+ case ed.HEADING:
6212
6212
  var i;
6213
- return /* @__PURE__ */ y(nd, { label: n.label }, (i = n.key) == null ? r : i);
6214
- case rd.DIVIDER:
6213
+ return /* @__PURE__ */ y($u, { label: n.label }, (i = n.key) == null ? r : i);
6214
+ case ed.DIVIDER:
6215
6215
  var a;
6216
6216
  return /* @__PURE__ */ y(yo, { margin: 0 }, (a = n.key) == null ? r : a);
6217
6217
  default:
6218
6218
  var o;
6219
- return /* @__PURE__ */ y(td, {
6219
+ return /* @__PURE__ */ y(Qu, {
6220
6220
  option: n,
6221
6221
  onChange: (r) => {
6222
6222
  let { value: i } = n;
6223
- t(r, e.map((e) => e.type === rd.HEADING || e.type === rd.DIVIDER || e.value !== i ? e : {
6223
+ t(r, e.map((e) => e.type === ed.HEADING || e.type === ed.DIVIDER || e.value !== i ? e : {
6224
6224
  ...e,
6225
6225
  selected: !e.selected
6226
6226
  }));
@@ -6228,7 +6228,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6228
6228
  }, (o = n.key) == null ? r : o);
6229
6229
  }
6230
6230
  })]
6231
- }), od = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ y(Aa, {
6231
+ }), rd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ y(Aa, {
6232
6232
  testId: c,
6233
6233
  disabled: t,
6234
6234
  menu: {
@@ -6237,7 +6237,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6237
6237
  label: n,
6238
6238
  trigger: ni.DROP_DOWN_BUTTON,
6239
6239
  possiblePlacements: ["top-start", "bottom-start"],
6240
- sections: /* @__PURE__ */ y(ad, {
6240
+ sections: /* @__PURE__ */ y(nd, {
6241
6241
  testId: c,
6242
6242
  options: r,
6243
6243
  onChangeOptions: (t, n) => {
@@ -6247,13 +6247,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6247
6247
  maxHeight: s
6248
6248
  })
6249
6249
  }
6250
- }), sd = {
6250
+ }), id = {
6251
6251
  page: "_page_beskc_1",
6252
6252
  scroll: "_scroll_beskc_23"
6253
- }, cd = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6253
+ }, ad = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6254
6254
  let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
6255
6255
  return /* @__PURE__ */ y("div", {
6256
- className: _(sd.page, r ? sd.scroll : ""),
6256
+ className: _(id.page, r ? id.scroll : ""),
6257
6257
  style: {
6258
6258
  left: t,
6259
6259
  padding: a,
@@ -6261,17 +6261,17 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6261
6261
  },
6262
6262
  children: e
6263
6263
  });
6264
- }, ld = ({ id: e, children: t }) => {
6264
+ }, od = ({ id: e, children: t }) => {
6265
6265
  let n = document.querySelector(`#${e}`), [r, i] = h(!1);
6266
6266
  return d(() => {
6267
6267
  r || i(!0);
6268
6268
  }, [e]), n ? Dr(t, n) : null;
6269
- }, ud = { printHeader: "_printHeader_o7xxx_1" }, dd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ y("img", {
6269
+ }, sd = { printHeader: "_printHeader_o7xxx_1" }, cd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ y("img", {
6270
6270
  src: e,
6271
6271
  alt: t,
6272
- className: ud.printHeader,
6272
+ className: sd.printHeader,
6273
6273
  style: { width: n }
6274
- }), fd = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, inline: l = !1, testId: u }) => {
6274
+ }), ld = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, inline: l = !1, testId: u }) => {
6275
6275
  var d;
6276
6276
  let f = c(U), { simpleInputs: p, options: m, selectedOptions: h } = Cc(n, r), g = h == null ? void 0 : p ? h : h.value, _ = a || f;
6277
6277
  return /* @__PURE__ */ b(Tr, {
@@ -6288,14 +6288,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6288
6288
  } });
6289
6289
  },
6290
6290
  isDisabled: _,
6291
- className: dl.wrapper,
6291
+ className: cl.wrapper,
6292
6292
  "data-testid": u,
6293
6293
  children: [t && /* @__PURE__ */ y(Sr, {
6294
- className: dl.groupLabel,
6294
+ className: cl.groupLabel,
6295
6295
  children: t
6296
6296
  }), m.map((e) => {
6297
6297
  let t = a || e.disabled || f;
6298
- return /* @__PURE__ */ y(fl, {
6298
+ return /* @__PURE__ */ y(ll, {
6299
6299
  value: e.value,
6300
6300
  label: e.label,
6301
6301
  disabled: t,
@@ -6308,44 +6308,44 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6308
6308
  }, e.value.toString());
6309
6309
  })]
6310
6310
  });
6311
- }, pd = {
6311
+ }, ud = {
6312
6312
  richTextToolbar: "_richTextToolbar_1gbkk_1",
6313
6313
  richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
6314
- }, md = /* @__PURE__ */ function(e) {
6314
+ }, dd = /* @__PURE__ */ function(e) {
6315
6315
  return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e;
6316
- }({}), hd = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6316
+ }({}), fd = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6317
6317
  var r, i, a, o, s;
6318
6318
  let c = [
6319
6319
  {
6320
- icon: md.BOLD,
6320
+ icon: dd.BOLD,
6321
6321
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
6322
6322
  active: (r = e == null ? void 0 : e.isActive("bold")) == null ? !1 : r
6323
6323
  },
6324
6324
  {
6325
- icon: md.ITALIC,
6325
+ icon: dd.ITALIC,
6326
6326
  onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
6327
6327
  active: (i = e == null ? void 0 : e.isActive("italic")) == null ? !1 : i
6328
6328
  },
6329
6329
  {
6330
- icon: md.CODE,
6330
+ icon: dd.CODE,
6331
6331
  onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
6332
6332
  active: (a = e == null ? void 0 : e.isActive("code")) == null ? !1 : a
6333
6333
  },
6334
6334
  {
6335
- icon: md.UL,
6335
+ icon: dd.UL,
6336
6336
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
6337
6337
  active: (o = e == null ? void 0 : e.isActive("bulletList")) == null ? !1 : o
6338
6338
  },
6339
6339
  {
6340
- icon: md.OL,
6340
+ icon: dd.OL,
6341
6341
  onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
6342
6342
  active: (s = e == null ? void 0 : e.isActive("orderedList")) == null ? !1 : s
6343
6343
  }
6344
6344
  ];
6345
6345
  return /* @__PURE__ */ b("div", {
6346
- className: pd.richTextToolbarContainer,
6346
+ className: ud.richTextToolbarContainer,
6347
6347
  children: [/* @__PURE__ */ y("div", {
6348
- className: pd.richTextToolbar,
6348
+ className: ud.richTextToolbar,
6349
6349
  children: c.map((e, n) => /* @__PURE__ */ y(K, {
6350
6350
  small: !0,
6351
6351
  round: !0,
@@ -6358,7 +6358,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6358
6358
  }, n))
6359
6359
  }), n]
6360
6360
  });
6361
- }, gd = {
6361
+ }, pd = {
6362
6362
  inputInTable: "_inputInTable_1kfcu_1",
6363
6363
  inputHover: "_inputHover_1kfcu_13",
6364
6364
  inputFocus: "_inputFocus_1kfcu_18",
@@ -6368,7 +6368,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6368
6368
  inputDisabled: "_inputDisabled_1kfcu_65",
6369
6369
  hideScrollbars: "_hideScrollbars_1kfcu_71",
6370
6370
  richTextInput: "_richTextInput_1kfcu_81"
6371
- }, _d = o(i(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6371
+ }, md = o(i(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6372
6372
  let o = c(U), s = r || o, d = Vr({
6373
6373
  extensions: [
6374
6374
  Hr,
@@ -6395,17 +6395,17 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6395
6395
  clearContent: () => d == null ? void 0 : d.commands.clearContent(!1),
6396
6396
  editor: d
6397
6397
  }), [d]), /* @__PURE__ */ b("div", {
6398
- className: gd.richTextInput,
6399
- children: [/* @__PURE__ */ y(hd, {
6398
+ className: pd.richTextInput,
6399
+ children: [/* @__PURE__ */ y(fd, {
6400
6400
  editor: d,
6401
6401
  disabled: s,
6402
6402
  toolbarComponent: i
6403
6403
  }), /* @__PURE__ */ y(Br, { editor: d })]
6404
6404
  });
6405
- })), vd = { row: "_row_n16je_1" }, yd = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: i = !1, height: o = "auto", marginBottom: s = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
6405
+ })), hd = { row: "_row_n16je_1" }, gd = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: i = !1, height: o = "auto", marginBottom: s = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
6406
6406
  let f = typeof l == "number" ? `${l}px` : l, p = (r === null || r === !1 ? [] : Array.isArray(r) ? r.filter((e) => a(e)) : [r]).map((t, n) => /* @__PURE__ */ y(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
6407
6407
  return /* @__PURE__ */ y("div", {
6408
- className: _(vd.row),
6408
+ className: _(hd.row),
6409
6409
  style: {
6410
6410
  alignItems: t,
6411
6411
  justifyContent: n,
@@ -6421,7 +6421,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6421
6421
  "data-testid": d,
6422
6422
  children: p
6423
6423
  });
6424
- }, bd = {
6424
+ }, _d = {
6425
6425
  inputInTable: "_inputInTable_t1w93_1",
6426
6426
  inputHover: "_inputHover_t1w93_13",
6427
6427
  inputFocus: "_inputFocus_t1w93_18",
@@ -6441,7 +6441,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6441
6441
  experimental: "_experimental_t1w93_159",
6442
6442
  active: "_active_t1w93_163",
6443
6443
  icon: "_icon_t1w93_167"
6444
- }, xd = o(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(G, {
6444
+ }, vd = o(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(G, {
6445
6445
  text: t,
6446
6446
  enabled: !e,
6447
6447
  placement: "right-center",
@@ -6450,7 +6450,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6450
6450
  padding: "var(--padding-sm)",
6451
6451
  display: "block",
6452
6452
  children: /* @__PURE__ */ y("span", {
6453
- className: bd.icon,
6453
+ className: _d.icon,
6454
6454
  children: /* @__PURE__ */ y(va, {
6455
6455
  small: !0,
6456
6456
  title: r ? "!" : void 0,
@@ -6459,18 +6459,18 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6459
6459
  })
6460
6460
  })
6461
6461
  }), /* @__PURE__ */ y("span", {
6462
- className: bd.label,
6462
+ className: _d.label,
6463
6463
  children: t
6464
- })] }), (e, t) => xr(e, t)), Sd = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ y("div", {
6465
- className: bd.list,
6464
+ })] }), (e, t) => xr(e, t)), yd = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ y("div", {
6465
+ className: _d.list,
6466
6466
  children: t.map((t, a) => {
6467
6467
  let o = `${n}_${a}`;
6468
6468
  return /* @__PURE__ */ y("a", {
6469
6469
  href: t.value,
6470
- className: _(bd.item, t.isActive ? bd.active : "", t.isExperimental ? bd.experimental : ""),
6470
+ className: _(_d.item, t.isActive ? _d.active : "", t.isExperimental ? _d.experimental : ""),
6471
6471
  onClick: (e) => r(e, t.value, t.label, t.onClick),
6472
6472
  "data-testid": i,
6473
- children: /* @__PURE__ */ y(xd, {
6473
+ children: /* @__PURE__ */ y(vd, {
6474
6474
  label: t.label,
6475
6475
  icon: t.icon,
6476
6476
  invalid: t.invalid,
@@ -6478,16 +6478,16 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6478
6478
  }, o)
6479
6479
  }, o);
6480
6480
  })
6481
- }), Cd = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ y(v, { children: n.map((n, i) => /* @__PURE__ */ b(e.Fragment, { children: [/* @__PURE__ */ y("h5", {
6482
- className: bd.subtitle,
6481
+ }), bd = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ y(v, { children: n.map((n, i) => /* @__PURE__ */ b(e.Fragment, { children: [/* @__PURE__ */ y("h5", {
6482
+ className: _d.subtitle,
6483
6483
  children: n.heading.toUpperCase()
6484
- }), /* @__PURE__ */ y(Sd, {
6484
+ }), /* @__PURE__ */ y(yd, {
6485
6485
  isOpen: t,
6486
6486
  items: n.items,
6487
6487
  sectionIndex: i,
6488
6488
  onClick: r,
6489
6489
  testId: n.testId
6490
- })] }, i)) }), wd = o(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6490
+ })] }, i)) }), xd = o(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6491
6491
  let [i, a] = h(t), o = (e, t, n, r) => {
6492
6492
  e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), a(!1);
6493
6493
  }, s = e.sections.length > 0;
@@ -6508,13 +6508,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6508
6508
  icon: H.LEFT
6509
6509
  }),
6510
6510
  children: /* @__PURE__ */ y("div", {
6511
- className: _(bd.sidebar, i ? "" : bd.collapsed),
6511
+ className: _(_d.sidebar, i ? "" : _d.collapsed),
6512
6512
  children: s && /* @__PURE__ */ b("div", {
6513
- className: bd.inner,
6513
+ className: _d.inner,
6514
6514
  children: [/* @__PURE__ */ y("h4", {
6515
- className: bd.title,
6515
+ className: _d.title,
6516
6516
  children: e.title
6517
- }), /* @__PURE__ */ y(Cd, {
6517
+ }), /* @__PURE__ */ y(bd, {
6518
6518
  isOpen: i,
6519
6519
  sections: e.sections,
6520
6520
  onClick: o
@@ -6522,18 +6522,18 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6522
6522
  })
6523
6523
  })
6524
6524
  });
6525
- }, (e, t) => xr(e, t)), Td = {
6525
+ }, (e, t) => xr(e, t)), Sd = {
6526
6526
  skeletonContainer: "_skeletonContainer_mcfxp_9",
6527
6527
  skeleton: "_skeleton_mcfxp_9"
6528
- }, Ed = ({ count: e, width: t, height: n }) => /* @__PURE__ */ y(Gr, {
6528
+ }, Cd = ({ count: e, width: t, height: n }) => /* @__PURE__ */ y(Gr, {
6529
6529
  baseColor: "var(--color-skeleton-base)",
6530
6530
  highlightColor: "var(--color-skeleton-highlight)",
6531
- containerClassName: Td.skeletonContainer,
6532
- className: Td.skeleton,
6531
+ containerClassName: Sd.skeletonContainer,
6532
+ className: Sd.skeleton,
6533
6533
  count: e,
6534
6534
  width: t,
6535
6535
  height: n
6536
- }), Dd = {
6536
+ }), wd = {
6537
6537
  wrapper: "_wrapper_j8x9r_1",
6538
6538
  label: "_label_j8x9r_5",
6539
6539
  input: "_input_j8x9r_9",
@@ -6541,38 +6541,38 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6541
6541
  editable: "_editable_j8x9r_22",
6542
6542
  inputControl: "_inputControl_j8x9r_25",
6543
6543
  actions: "_actions_j8x9r_28"
6544
- }, Od = () => {
6544
+ }, Td = () => {
6545
6545
  let e = m(null);
6546
6546
  return d(() => {
6547
6547
  e.current && (e.current(), e.current = null);
6548
6548
  }), (t) => {
6549
6549
  e.current = t;
6550
6550
  };
6551
- }, kd = (e) => {
6551
+ }, Ed = (e) => {
6552
6552
  let t = m(void 0);
6553
6553
  return l(() => {
6554
6554
  t.current = e;
6555
6555
  }, [e]), t.current;
6556
- }, Ad = (e, t) => {
6556
+ }, Dd = (e, t) => {
6557
6557
  let n = t == null ? void 0 : t[e];
6558
6558
  if (!n) {
6559
6559
  var r;
6560
6560
  return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = ur(e)) == null ? "" : r;
6561
6561
  }
6562
6562
  return n;
6563
- }, jd = /* @__PURE__ */ function(e) {
6563
+ }, Od = /* @__PURE__ */ function(e) {
6564
6564
  return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
6565
- }({}), Md = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Nd = (e) => {
6565
+ }({}), kd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Ad = (e) => {
6566
6566
  if (!e) return !1;
6567
6567
  let t = Jn(e);
6568
6568
  return !Hn.includes(t);
6569
- }, Pd = ({ value: e, unitkey: t, toUnit: n }) => {
6569
+ }, jd = ({ value: e, unitkey: t, toUnit: n }) => {
6570
6570
  var r;
6571
6571
  let i = Vn[t];
6572
6572
  if (!i || i.length === 0 || !((r = dr(e)) != null && r.valid) || !i.includes(n)) return !1;
6573
6573
  let a = Jn(String(e));
6574
6574
  return !(a && !i.includes(a));
6575
- }, Fd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
6575
+ }, Md = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
6576
6576
  var o;
6577
6577
  let s = er(e) ? Xn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
6578
6578
  if (i || c) return {
@@ -6592,18 +6592,18 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6592
6592
  value: void 0,
6593
6593
  error: "Source unit is missing"
6594
6594
  };
6595
- if (Md(s)) return {
6595
+ if (kd(s)) return {
6596
6596
  value: void 0,
6597
6597
  error: "Value is invalid for conversion"
6598
6598
  };
6599
6599
  try {
6600
6600
  let e = pr(s, l);
6601
- return Pd({
6601
+ return jd({
6602
6602
  value: e,
6603
6603
  toUnit: n,
6604
6604
  unitkey: t
6605
6605
  }) ? {
6606
- value: Xn(Uc(a ? Kn(e, n) : Gn(e, n))),
6606
+ value: Xn(lr(a ? Kn(e, n) : Gn(e, n))),
6607
6607
  error: null
6608
6608
  } : {
6609
6609
  value: Xn(e),
@@ -6615,13 +6615,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6615
6615
  error: "Conversion not possible"
6616
6616
  };
6617
6617
  }
6618
- }, Id = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
6619
- let a = Xn(e), o = Md(a);
6620
- return !Pd({
6618
+ }, Nd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
6619
+ let a = Xn(e), o = kd(a);
6620
+ return !jd({
6621
6621
  value: e,
6622
6622
  unitkey: n,
6623
6623
  toUnit: t
6624
- }) || Nd(e) || o ? { value: a } : er(e) ? Fd({
6624
+ }) || Ad(e) || o ? { value: a } : er(e) ? Md({
6625
6625
  value: e,
6626
6626
  unitkey: n,
6627
6627
  toUnit: t,
@@ -6629,25 +6629,25 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6629
6629
  doNotConvertValue: i,
6630
6630
  exactPrecision: !0
6631
6631
  }) : { value: e };
6632
- }, Ld = (e) => fn(e) && !an(e) && !ln(e) ? rn(e, "fieldName", "") : typeof e == "string" ? e : "", Rd = (e = "") => Hn == null ? void 0 : Hn.includes(e), zd = (e, t) => {
6632
+ }, Pd = (e) => fn(e) && !an(e) && !ln(e) ? rn(e, "fieldName", "") : typeof e == "string" ? e : "", Fd = (e = "") => Hn == null ? void 0 : Hn.includes(e), Id = (e, t) => {
6633
6633
  let n = Jn(e || "");
6634
- return Rd(t) && Rd(n);
6635
- }, Bd = n(null), Vd = () => c(Bd), Hd = !1, Ud = (e) => {
6636
- Hd || (Hd = !0, Bd = e);
6637
- }, Wd = (e) => Qn(e) ? e : nr(e), Gd = {
6634
+ return Fd(t) && Fd(n);
6635
+ }, Ld = n(null), Rd = () => c(Ld), zd = !1, Bd = (e) => {
6636
+ zd || (zd = !0, Ld = e);
6637
+ }, Vd = (e) => Qn(e) ? e : nr(e), Hd = {
6638
6638
  predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
6639
6639
  inputWrapper: "_inputWrapper_ye9w9_4"
6640
- }, Kd = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: u = "", initUnit: d, noConversion: p = !1, onChange: m = gn, onClick: g = gn, onFocus: x = gn, onSwitchUnit: S = gn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
6640
+ }, Ud = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: u = "", initUnit: d, noConversion: p = !1, onChange: m = gn, onClick: g = gn, onFocus: x = gn, onSwitchUnit: S = gn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
6641
6641
  name: "",
6642
6642
  error: null
6643
6643
  }), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: L = !0, groupOrder: R, tooltip: z = null }) => {
6644
- let ee = Vd(), te = Od();
6644
+ let ee = Rd(), te = Td();
6645
6645
  typeof c == "number" && (c = `${c}`);
6646
- let [ne = "", re = ""] = c === void 0 ? [] : or(c), B = f(() => Ad(u, C || (ee == null ? void 0 : ee.unitTemplate)), [
6646
+ let [ne = "", re = ""] = c === void 0 ? [] : or(c), B = f(() => Dd(u, C || (ee == null ? void 0 : ee.unitTemplate)), [
6647
6647
  u,
6648
6648
  C,
6649
6649
  ee == null ? void 0 : ee.unitTemplate
6650
- ]), ie = zd(c, B), ae = d || B || re, oe = kd(ae), { value: se } = Id({
6650
+ ]), ie = Id(c, B), ae = d || B || re, oe = Ed(ae), { value: se } = Nd({
6651
6651
  value: c,
6652
6652
  toUnit: ae,
6653
6653
  unitkey: u,
@@ -6659,10 +6659,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6659
6659
  } : {
6660
6660
  value: se,
6661
6661
  unit: ae
6662
- }), ue = M || (ce == null ? void 0 : ce.value) === void 0, [de, fe] = h(D ? jd.PREDEFINED : jd.CUSTOM), pe = !!(j || n), me = E && E.find((e) => {
6662
+ }), ue = M || (ce == null ? void 0 : ce.value) === void 0, [de, fe] = h(D ? Od.PREDEFINED : Od.CUSTOM), pe = !!(j || n), me = E && E.find((e) => {
6663
6663
  if (!(e != null && e.value)) return;
6664
6664
  if (k) return k === e.valueKey;
6665
- let t = er(e.value) ? Jn(e.value) : "", { value: n = c } = Fd({
6665
+ let t = er(e.value) ? Jn(e.value) : "", { value: n = c } = Md({
6666
6666
  value: String(c),
6667
6667
  unitkey: u,
6668
6668
  toUnit: t
@@ -6671,7 +6671,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6671
6671
  }), he = () => {
6672
6672
  var e;
6673
6673
  let t = (e = c) == null ? "" : e, n = ce.unit;
6674
- if (!Pd({
6674
+ if (!jd({
6675
6675
  value: t,
6676
6676
  unitkey: u,
6677
6677
  toUnit: n
@@ -6685,7 +6685,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6685
6685
  return null;
6686
6686
  }
6687
6687
  }, ge = (t) => {
6688
- let n = Ld(e), r = t.target, { value: i, selectionStart: a } = r, o = pr(i, (ce == null ? void 0 : ce.unit) || "");
6688
+ let n = Pd(e), r = t.target, { value: i, selectionStart: a } = r, o = pr(i, (ce == null ? void 0 : ce.unit) || "");
6689
6689
  m({ target: {
6690
6690
  value: N ? pr(Gn(o, re), re) : o,
6691
6691
  name: n
@@ -6707,7 +6707,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6707
6707
  if (ae) {
6708
6708
  let e, t = "";
6709
6709
  if (oe !== ae) {
6710
- let { value: n } = Id({
6710
+ let { value: n } = Nd({
6711
6711
  value: c,
6712
6712
  toUnit: ae,
6713
6713
  unitkey: u,
@@ -6716,7 +6716,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6716
6716
  });
6717
6717
  e = n, t = ae;
6718
6718
  } else if (pr(ce.value, ce.unit) !== c) {
6719
- let { value: n } = Id({
6719
+ let { value: n } = Nd({
6720
6720
  value: c,
6721
6721
  toUnit: ce.unit,
6722
6722
  unitkey: u,
@@ -6728,7 +6728,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6728
6728
  e !== void 0 && le({
6729
6729
  value: e,
6730
6730
  unit: t
6731
- }), fe(E && me && O ? jd.PREDEFINED : jd.CUSTOM);
6731
+ }), fe(E && me && O ? Od.PREDEFINED : Od.CUSTOM);
6732
6732
  }
6733
6733
  }, [
6734
6734
  ae,
@@ -6736,14 +6736,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6736
6736
  i,
6737
6737
  O
6738
6738
  ]);
6739
- let ve = he(), ye = tr(ce.unit) || ce.unit || "", be = p || !ve || ve && ve.length === 1, xe = Ld(e), Se, Ce = (t) => {
6739
+ let ve = he(), ye = tr(ce.unit) || ce.unit || "", be = p || !ve || ve && ve.length === 1, xe = Pd(e), Se, Ce = (t) => {
6740
6740
  let r = t != null && t.value ? t.value : "", [i = "", a = ""] = er(r) ? or(r) : [r], o = fr(r);
6741
- if (Pd({
6741
+ if (jd({
6742
6742
  value: r,
6743
6743
  unitkey: u,
6744
6744
  toUnit: a
6745
6745
  })) {
6746
- let { value: e = "" } = Id({
6746
+ let { value: e = "" } = Nd({
6747
6747
  value: r,
6748
6748
  toUnit: B,
6749
6749
  unitkey: u,
@@ -6756,7 +6756,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6756
6756
  type: aa.OPTION,
6757
6757
  inline: !0,
6758
6758
  onClick: () => {
6759
- dr(i).valid && !n && (fe(jd.PREDEFINED), m({ target: {
6759
+ dr(i).valid && !n && (fe(Od.PREDEFINED), m({ target: {
6760
6760
  value: r,
6761
6761
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
6762
6762
  predefinedSelected: !0,
@@ -6768,27 +6768,27 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6768
6768
  height: "0"
6769
6769
  })] }),
6770
6770
  description: o,
6771
- selected: me === t && de === jd.PREDEFINED
6771
+ selected: me === t && de === Od.PREDEFINED
6772
6772
  };
6773
6773
  };
6774
6774
  if (Se = [{
6775
6775
  type: aa.OPTION,
6776
6776
  inline: !0,
6777
6777
  onClick: () => {
6778
- de !== jd.CUSTOM && !n && m({ target: {
6778
+ de !== Od.CUSTOM && !n && m({ target: {
6779
6779
  value: pr(ce.value, ce.unit),
6780
6780
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
6781
6781
  } });
6782
6782
  },
6783
6783
  label: "Custom",
6784
- selected: de === jd.CUSTOM
6784
+ selected: de === Od.CUSTOM
6785
6785
  }], E != null && E.length) {
6786
6786
  let e = E.map(Ce);
6787
6787
  Se = [...Se, ...e];
6788
6788
  }
6789
6789
  let we = (e) => {
6790
6790
  if (er(e)) {
6791
- let t = Jn(e), { value: n } = Id({
6791
+ let t = Jn(e), { value: n } = Nd({
6792
6792
  value: e,
6793
6793
  toUnit: ce.unit,
6794
6794
  unitkey: u,
@@ -6800,7 +6800,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6800
6800
  return e;
6801
6801
  }, Te = !E && (!R || R === V.FIRST) ? V.FIRST : V.MIDDLE, Ee = !R || R === V.LAST ? V.LAST : V.MIDDLE;
6802
6802
  return /* @__PURE__ */ y("div", {
6803
- className: de === jd.PREDEFINED ? _(Gd.predefinedMenuActive) : "",
6803
+ className: de === Od.PREDEFINED ? _(Hd.predefinedMenuActive) : "",
6804
6804
  children: /* @__PURE__ */ b(Io, {
6805
6805
  small: o,
6806
6806
  width: s,
@@ -6815,18 +6815,18 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6815
6815
  trigger: "Component",
6816
6816
  component: /* @__PURE__ */ y(K, {
6817
6817
  groupOrder: "first",
6818
- active: de === jd.PREDEFINED,
6819
- icon: de === jd.PREDEFINED ? "link" : "unlink",
6818
+ active: de === Od.PREDEFINED,
6819
+ icon: de === Od.PREDEFINED ? "link" : "unlink",
6820
6820
  small: o
6821
6821
  }),
6822
6822
  small: o,
6823
6823
  sections: Se
6824
6824
  },
6825
- tooltip: de === jd.PREDEFINED ? me == null ? void 0 : me.label : ""
6825
+ tooltip: de === Od.PREDEFINED ? me == null ? void 0 : me.label : ""
6826
6826
  }),
6827
6827
  /* @__PURE__ */ y("div", {
6828
- className: Gd.inputWrapper,
6829
- children: /* @__PURE__ */ y(Kc, {
6828
+ className: Hd.inputWrapper,
6829
+ children: /* @__PURE__ */ y(Uc, {
6830
6830
  name: xe,
6831
6831
  testId: w,
6832
6832
  disabled: n,
@@ -6867,7 +6867,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6867
6867
  let r = n || t || "", i = $n(e) ? e : "";
6868
6868
  return {
6869
6869
  type: "Option",
6870
- label: P ? Wd(i) : i,
6870
+ label: P ? Vd(i) : i,
6871
6871
  inline: !0,
6872
6872
  onClick: (n) => {
6873
6873
  n.stopPropagation(), _e(e, t);
@@ -6882,10 +6882,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6882
6882
  ]
6883
6883
  })
6884
6884
  });
6885
- }, qd = (e, t) => ({ target: {
6885
+ }, Wd = (e, t) => ({ target: {
6886
6886
  name: e,
6887
6887
  value: t
6888
- } }), Jd = (e) => `Value cannot be less than ${e}`, Yd = (e) => `Value cannot be greater than ${e}`, Xd = ({ name: e = "", value: t, min: n, max: r, label: i, step: a = .01, onChange: o, onChangeComplete: s, preferredUnit: c = "m", enableEditUnitInput: u = !1, disabled: d = !1, showUnitInput: f = !0, showArrows: p = !0, unitkey: m = "length", testId: g, noConversion: v = !1, small: x = !1, marks: S, minErrorMessage: C = Jd, maxErrorMessage: w = Yd }) => {
6888
+ } }), Gd = (e) => `Value cannot be less than ${e}`, Kd = (e) => `Value cannot be greater than ${e}`, qd = ({ name: e = "", value: t, min: n, max: r, label: i, step: a = .01, onChange: o, onChangeComplete: s, preferredUnit: c = "m", enableEditUnitInput: u = !1, disabled: d = !1, showUnitInput: f = !0, showArrows: p = !0, unitkey: m = "length", testId: g, noConversion: v = !1, small: x = !1, marks: S, minErrorMessage: C = Gd, maxErrorMessage: w = Kd }) => {
6889
6889
  let T = pr(t, c), [E, D] = h(T), [O, k] = h(!1);
6890
6890
  l(() => {
6891
6891
  O || D(T);
@@ -6901,11 +6901,11 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6901
6901
  }, I = () => {
6902
6902
  D(T), k(!1);
6903
6903
  }, L = () => {
6904
- P || N === null || (o(qd(e, N)), s == null || s(qd(e, N)), k(!1));
6904
+ P || N === null || (o(Wd(e, N)), s == null || s(Wd(e, N)), k(!1));
6905
6905
  }, R = (e) => {
6906
6906
  e.key === "Enter" && L(), e.key === "Escape" && I();
6907
6907
  }, z = d || O, ee = /* @__PURE__ */ b("div", {
6908
- className: Dd.actions,
6908
+ className: wd.actions,
6909
6909
  children: [/* @__PURE__ */ y(K, {
6910
6910
  icon: "close",
6911
6911
  small: !0,
@@ -6920,18 +6920,18 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6920
6920
  })]
6921
6921
  });
6922
6922
  return /* @__PURE__ */ b("div", {
6923
- className: Dd.wrapper,
6923
+ className: wd.wrapper,
6924
6924
  "data-testid": g && `${g}-wrapper`,
6925
6925
  children: [
6926
6926
  i && /* @__PURE__ */ y("span", {
6927
- className: Dd.label,
6927
+ className: wd.label,
6928
6928
  children: /* @__PURE__ */ y(_o, {
6929
6929
  small: x,
6930
6930
  children: i
6931
6931
  })
6932
6932
  }),
6933
6933
  f && /* @__PURE__ */ y("div", {
6934
- className: _(Dd.input, x && Dd.inputSmall, u && !d && Dd.editable),
6934
+ className: _(wd.input, x && wd.inputSmall, u && !d && wd.editable),
6935
6935
  children: /* @__PURE__ */ y(Ua, {
6936
6936
  content: ee,
6937
6937
  isOpen: O,
@@ -6943,11 +6943,11 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6943
6943
  testId: g && `${g}-edit-popover`,
6944
6944
  toggleOnTriggerClick: !1,
6945
6945
  children: /* @__PURE__ */ y("div", {
6946
- className: Dd.inputControl,
6946
+ className: wd.inputControl,
6947
6947
  "data-testid": g && `${g}-edit-trigger`,
6948
6948
  onClick: F,
6949
6949
  onKeyDown: R,
6950
- children: /* @__PURE__ */ y(Kd, {
6950
+ children: /* @__PURE__ */ y(Ud, {
6951
6951
  name: e,
6952
6952
  value: O ? E : T,
6953
6953
  unitkey: m,
@@ -6963,7 +6963,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6963
6963
  })
6964
6964
  })
6965
6965
  }),
6966
- /* @__PURE__ */ y(nl, {
6966
+ /* @__PURE__ */ y($c, {
6967
6967
  name: e,
6968
6968
  value: t,
6969
6969
  min: n,
@@ -6981,7 +6981,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6981
6981
  })
6982
6982
  ]
6983
6983
  });
6984
- }, Zd = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ y(va, {
6984
+ }, Jd = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ y(va, {
6985
6985
  small: !0,
6986
6986
  margin: "-4px",
6987
6987
  color: "var(--color-text-error)",
@@ -6992,7 +6992,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6992
6992
  margin: "-4px",
6993
6993
  title: n == null ? void 0 : n.toString(),
6994
6994
  children: e
6995
- }) : /* @__PURE__ */ y(v, { children: e }), Qd = {
6995
+ }) : /* @__PURE__ */ y(v, { children: e }), Yd = {
6996
6996
  tabs: "_tabs_1rtn8_1",
6997
6997
  padding: "_padding_1rtn8_7",
6998
6998
  margin: "_margin_1rtn8_11",
@@ -7001,7 +7001,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7001
7001
  left: "_left_1rtn8_64",
7002
7002
  right: "_right_1rtn8_64",
7003
7003
  selectionIndicator: "_selectionIndicator_1rtn8_67"
7004
- }, $d = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = gn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
7004
+ }, Xd = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = gn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
7005
7005
  let l = c(U), { simpleInputs: u, options: d, selectedOptions: f } = Cc(t, n), p = un(f) ? void 0 : u ? f : f.value, m = (e) => {
7006
7006
  var t;
7007
7007
  return (t = e.component) == null ? s : t;
@@ -7022,7 +7022,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7022
7022
  "data-testid": o,
7023
7023
  children: /* @__PURE__ */ y(Jr, {
7024
7024
  "aria-label": e == null ? "Tabs" : e,
7025
- className: _(Qd.tabs, i ? Qd.padding : "", a ? Qd.margin : ""),
7025
+ className: _(Yd.tabs, i ? Yd.padding : "", a ? Yd.margin : ""),
7026
7026
  children: v.map((e) => {
7027
7027
  let { label: t, url: n, to: r, disabled: i, value: a, right: o, invalid: s, badge: c, testId: u } = e, d = h(e), f = m(e);
7028
7028
  return /* @__PURE__ */ b(qr, {
@@ -7030,23 +7030,23 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7030
7030
  ...!d && n ? { href: n } : {},
7031
7031
  shouldSelectOnPressUp: !0,
7032
7032
  isDisabled: i || l,
7033
- className: _(Qd.item, o ? Qd.right : Qd.left),
7033
+ className: _(Yd.item, o ? Yd.right : Yd.left),
7034
7034
  "data-testid": u,
7035
7035
  render: d && f ? (e) => /* @__PURE__ */ y(f, {
7036
7036
  ...e,
7037
7037
  href: r,
7038
7038
  to: r
7039
7039
  }) : void 0,
7040
- children: [/* @__PURE__ */ y(Zd, {
7040
+ children: [/* @__PURE__ */ y(Jd, {
7041
7041
  label: t,
7042
7042
  invalid: s,
7043
7043
  badge: c
7044
- }), /* @__PURE__ */ y(Kr, { className: Qd.selectionIndicator })]
7044
+ }), /* @__PURE__ */ y(Kr, { className: Yd.selectionIndicator })]
7045
7045
  }, a);
7046
7046
  })
7047
7047
  })
7048
7048
  }) : null;
7049
- }, ef = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ y(a, {
7049
+ }, Zd = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ y(a, {
7050
7050
  href: t,
7051
7051
  to: t,
7052
7052
  target: n,
@@ -7056,7 +7056,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7056
7056
  link: !0,
7057
7057
  children: e
7058
7058
  })
7059
- }), tf = {
7059
+ }), Qd = {
7060
7060
  inputInTable: "_inputInTable_qbe2o_1",
7061
7061
  inputHover: "_inputHover_qbe2o_13",
7062
7062
  inputFocus: "_inputFocus_qbe2o_18",
@@ -7068,9 +7068,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7068
7068
  textarea: "_textarea_qbe2o_81",
7069
7069
  small: "_small_qbe2o_120",
7070
7070
  monospace: "_monospace_qbe2o_159"
7071
- }, nf = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = gn, onKeyPress: s = gn, onFocus: l = gn, onBlur: u = gn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: v = !1, small: b = !1, testId: x }) => {
7071
+ }, $d = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = gn, onKeyPress: s = gn, onFocus: l = gn, onBlur: u = gn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: v = !1, small: b = !1, testId: x }) => {
7072
7072
  let S = c(U), C = /* @__PURE__ */ y("textarea", {
7073
- className: _(tf.textarea, f ? tf.error : "", p ? tf.warning : "", v ? tf.monospace : "", b ? tf.small : ""),
7073
+ className: _(Qd.textarea, f ? Qd.error : "", p ? Qd.warning : "", v ? Qd.monospace : "", b ? Qd.small : ""),
7074
7074
  name: e,
7075
7075
  value: t,
7076
7076
  placeholder: n,
@@ -7112,10 +7112,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7112
7112
  menu: "_menu_oyr59_139",
7113
7113
  active: "_active_oyr59_168",
7114
7114
  alert: "_alert_oyr59_193"
7115
- }, rf = ({ warning: e }) => /* @__PURE__ */ y("div", {
7115
+ }, ef = ({ warning: e }) => /* @__PURE__ */ y("div", {
7116
7116
  className: Q.alert,
7117
7117
  children: e
7118
- }), af = ({ icon: e, url: t, onClick: n }) => {
7118
+ }), tf = ({ icon: e, url: t, onClick: n }) => {
7119
7119
  let r = /* @__PURE__ */ y(W, { icon: e });
7120
7120
  return t ? /* @__PURE__ */ y("a", {
7121
7121
  href: t,
@@ -7127,7 +7127,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7127
7127
  className: Q.appSwitcher,
7128
7128
  children: r
7129
7129
  });
7130
- }, of = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
7130
+ }, nf = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
7131
7131
  let a = /* @__PURE__ */ b("div", {
7132
7132
  className: Q.title,
7133
7133
  children: [
@@ -7156,9 +7156,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7156
7156
  children: a
7157
7157
  })
7158
7158
  });
7159
- }, sf = /* @__PURE__ */ function(e) {
7159
+ }, rf = /* @__PURE__ */ function(e) {
7160
7160
  return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
7161
- }({}), cf = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
7161
+ }({}), af = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
7162
7162
  let l = c(U);
7163
7163
  return /* @__PURE__ */ b(s, {
7164
7164
  className: _(Q.link, i ? Q.active : ""),
@@ -7175,11 +7175,11 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7175
7175
  children: e
7176
7176
  })]
7177
7177
  });
7178
- }, lf = ({ element: e }) => {
7178
+ }, of = ({ element: e }) => {
7179
7179
  switch (e.type) {
7180
- case sf.LINK: return /* @__PURE__ */ y("div", {
7180
+ case rf.LINK: return /* @__PURE__ */ y("div", {
7181
7181
  className: Q.item,
7182
- children: /* @__PURE__ */ y(cf, {
7182
+ children: /* @__PURE__ */ y(af, {
7183
7183
  label: e.label,
7184
7184
  url: e.url,
7185
7185
  icon: e.icon,
@@ -7190,7 +7190,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7190
7190
  component: e.component
7191
7191
  })
7192
7192
  });
7193
- case sf.BUTTON: return /* @__PURE__ */ y("div", {
7193
+ case rf.BUTTON: return /* @__PURE__ */ y("div", {
7194
7194
  className: _(Q.item, Q.button),
7195
7195
  children: /* @__PURE__ */ y(K, {
7196
7196
  label: e.label,
@@ -7202,7 +7202,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7202
7202
  testId: e.testId
7203
7203
  })
7204
7204
  });
7205
- case sf.MENU: return /* @__PURE__ */ y("div", {
7205
+ case rf.MENU: return /* @__PURE__ */ y("div", {
7206
7206
  className: _(Q.item, Q.menu),
7207
7207
  children: /* @__PURE__ */ y(Aa, {
7208
7208
  maxHeight: "100%",
@@ -7210,7 +7210,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7210
7210
  trigger: ni.COMPONENT,
7211
7211
  fullHeightTrigger: !0,
7212
7212
  placement: "bottom-start",
7213
- component: /* @__PURE__ */ y(cf, {
7213
+ component: /* @__PURE__ */ y(af, {
7214
7214
  label: e.label,
7215
7215
  icon: e.icon,
7216
7216
  onClick: e.onClick
@@ -7219,50 +7219,50 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7219
7219
  }
7220
7220
  })
7221
7221
  });
7222
- case sf.COMPONENT: return /* @__PURE__ */ y("div", {
7222
+ case rf.COMPONENT: return /* @__PURE__ */ y("div", {
7223
7223
  className: Q.item,
7224
7224
  children: e.component
7225
7225
  });
7226
7226
  default: return null;
7227
7227
  }
7228
- }, uf = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ b("div", { children: [i && /* @__PURE__ */ y(rf, { warning: i }), /* @__PURE__ */ b("div", {
7228
+ }, sf = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ b("div", { children: [i && /* @__PURE__ */ y(ef, { warning: i }), /* @__PURE__ */ b("div", {
7229
7229
  className: _(Q.topbar, o ? Q.fixed : ""),
7230
7230
  style: { height: a },
7231
7231
  children: [
7232
- !!t && /* @__PURE__ */ y(af, {
7232
+ !!t && /* @__PURE__ */ y(tf, {
7233
7233
  icon: t.icon,
7234
7234
  url: t.url,
7235
7235
  onClick: t.onClick
7236
7236
  }),
7237
7237
  /* @__PURE__ */ b("div", {
7238
7238
  className: Q.left,
7239
- children: [e && /* @__PURE__ */ y(of, {
7239
+ children: [e && /* @__PURE__ */ y(nf, {
7240
7240
  label: e.label,
7241
7241
  logo: e.logo,
7242
7242
  url: e.url,
7243
7243
  version: e.version,
7244
7244
  onClick: e.onClick
7245
- }), n.map((e, t) => e ? /* @__PURE__ */ y(lf, { element: e }, t) : null)]
7245
+ }), n.map((e, t) => e ? /* @__PURE__ */ y(of, { element: e }, t) : null)]
7246
7246
  }),
7247
7247
  /* @__PURE__ */ y("div", {
7248
7248
  className: Q.right,
7249
- children: r.map((e, t) => e ? /* @__PURE__ */ y(lf, { element: e }, t) : null)
7249
+ children: r.map((e, t) => e ? /* @__PURE__ */ y(of, { element: e }, t) : null)
7250
7250
  })
7251
7251
  ]
7252
- })] }), df = {
7252
+ })] }), cf = {
7253
7253
  popConfirm: "_popConfirm_1x6ye_1",
7254
7254
  content: "_content_1x6ye_7",
7255
7255
  buttons: "_buttons_1x6ye_13"
7256
- }, ff = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ b("div", {
7257
- className: df.popConfirm,
7256
+ }, lf = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ b("div", {
7257
+ className: cf.popConfirm,
7258
7258
  children: [e && /* @__PURE__ */ y("div", {
7259
- className: df.content,
7259
+ className: cf.content,
7260
7260
  children: /* @__PURE__ */ y(_o, {
7261
7261
  small: !0,
7262
7262
  children: e
7263
7263
  })
7264
7264
  }), /* @__PURE__ */ b("div", {
7265
- className: df.buttons,
7265
+ className: cf.buttons,
7266
7266
  children: [/* @__PURE__ */ y(K, {
7267
7267
  small: !0,
7268
7268
  colored: !0,
@@ -7277,8 +7277,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7277
7277
  testId: `${s}-cancel-button`
7278
7278
  })]
7279
7279
  })]
7280
- }), pf = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, overflowContainer: u = !1, testId: d = void 0 }) => /* @__PURE__ */ y(Ua, {
7281
- content: /* @__PURE__ */ y(ff, {
7280
+ }), uf = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, overflowContainer: u = !1, testId: d = void 0 }) => /* @__PURE__ */ y(Ua, {
7281
+ content: /* @__PURE__ */ y(lf, {
7282
7282
  title: i,
7283
7283
  okText: s,
7284
7284
  onClickOk: c,
@@ -7293,14 +7293,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7293
7293
  overflowContainer: u,
7294
7294
  testId: d,
7295
7295
  children: e
7296
- }), mf = {
7296
+ }), df = {
7297
7297
  tree: "_tree_coxxe_1",
7298
7298
  toggle: "_toggle_coxxe_8",
7299
7299
  dropTarget: "_dropTarget_coxxe_15",
7300
7300
  placeholder: "_placeholder_coxxe_30",
7301
7301
  draggingSource: "_draggingSource_coxxe_36",
7302
7302
  placeholderContainer: "_placeholderContainer_coxxe_39"
7303
- }, hf = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
7303
+ }, ff = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
7304
7304
  let { id: l, data: u } = t, { active: d, disabled: f, testId: p, onClick: m, actions: h = [] } = u, [g, v] = e.useState(!1), [x, S] = e.useState(0), C = (e) => {
7305
7305
  e.stopPropagation(), i(l);
7306
7306
  }, w = (e) => {
@@ -7327,7 +7327,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7327
7327
  className: _(Z.itemHeader, g ? Z.noPointerEvents : ""),
7328
7328
  children: [
7329
7329
  a && /* @__PURE__ */ y("div", {
7330
- className: mf.toggle,
7330
+ className: df.toggle,
7331
7331
  children: /* @__PURE__ */ y(K, {
7332
7332
  basic: !0,
7333
7333
  colored: r ? !0 : ri.MUTED,
@@ -7341,10 +7341,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7341
7341
  className: Z.drag,
7342
7342
  children: /* @__PURE__ */ y(W, { icon: H.DRAG })
7343
7343
  }),
7344
- /* @__PURE__ */ y(Uu, { item: u }),
7344
+ /* @__PURE__ */ y(Bu, { item: u }),
7345
7345
  /* @__PURE__ */ b("div", {
7346
7346
  className: Z.right,
7347
- children: [/* @__PURE__ */ y(Wu, { item: u }), !f && h.length > 0 && /* @__PURE__ */ y("div", {
7347
+ children: [/* @__PURE__ */ y(Vu, { item: u }), !f && h.length > 0 && /* @__PURE__ */ y("div", {
7348
7348
  className: Z.actions,
7349
7349
  children: /* @__PURE__ */ y(Ma, { actions: h })
7350
7350
  })]
@@ -7352,10 +7352,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7352
7352
  ]
7353
7353
  })
7354
7354
  });
7355
- }, gf = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ y("div", {
7356
- className: mf.placeholder,
7355
+ }, pf = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ y("div", {
7356
+ className: df.placeholder,
7357
7357
  style: { left: `calc(${t} * ${e})` }
7358
- }), _f = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: c, itemHasChild: u, onItemToggle: d, icons: f, allowParentReassignment: p, stickyHeader: h, height: g, render: _, placeholderIndent: v }) => {
7358
+ }), mf = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: c, itemHasChild: u, onItemToggle: d, icons: f, allowParentReassignment: p, stickyHeader: h, height: g, render: _, placeholderIndent: v }) => {
7359
7359
  var x;
7360
7360
  let S = c == null ? m(null) : c, C = (e) => {
7361
7361
  i && i(e);
@@ -7413,7 +7413,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7413
7413
  "data-testid": a,
7414
7414
  className: Z.list,
7415
7415
  style: { height: g },
7416
- children: [e.name && !e.noHeader && /* @__PURE__ */ y(Bu, {
7416
+ children: [e.name && !e.noHeader && /* @__PURE__ */ y(Lu, {
7417
7417
  name: e.name,
7418
7418
  actions: e.actions,
7419
7419
  stickyHeader: h
@@ -7440,7 +7440,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7440
7440
  hasChild: r,
7441
7441
  isOpen: a,
7442
7442
  onToggle: o
7443
- }) : /* @__PURE__ */ y(hf, {
7443
+ }) : /* @__PURE__ */ y(ff, {
7444
7444
  hasChild: u ? u(e) : r,
7445
7445
  node: e,
7446
7446
  depth: t,
@@ -7456,7 +7456,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7456
7456
  onDrop: A,
7457
7457
  onChangeOpen: C,
7458
7458
  dropTargetOffset: 10,
7459
- placeholderRender: (e, { depth: t }) => /* @__PURE__ */ y(gf, {
7459
+ placeholderRender: (e, { depth: t }) => /* @__PURE__ */ y(pf, {
7460
7460
  depth: t,
7461
7461
  indent: v
7462
7462
  }),
@@ -7464,17 +7464,17 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7464
7464
  listComponent: "div",
7465
7465
  listItemComponent: "div",
7466
7466
  classes: {
7467
- root: mf.tree,
7468
- draggingSource: mf.draggingSource,
7469
- dropTarget: mf.dropTarget,
7470
- placeholder: mf.placeholderContainer
7467
+ root: df.tree,
7468
+ draggingSource: df.draggingSource,
7469
+ dropTarget: df.dropTarget,
7470
+ placeholder: df.placeholderContainer
7471
7471
  },
7472
7472
  initialOpen: o,
7473
7473
  enableAnimateExpand: !0
7474
7474
  })
7475
7475
  })]
7476
7476
  });
7477
- }, vf = {
7477
+ }, hf = {
7478
7478
  treeTable: "_treeTable_1ywvy_1",
7479
7479
  treeTableHeader: "_treeTableHeader_1ywvy_22",
7480
7480
  folderCell: "_folderCell_1ywvy_30",
@@ -7482,48 +7482,48 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7482
7482
  drag: "_drag_1ywvy_31",
7483
7483
  folder: "_folder_1ywvy_30",
7484
7484
  active: "_active_1ywvy_61"
7485
- }, yf = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...yf(e, t.id)]), bf = (e, t) => {
7485
+ }, gf = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...gf(e, t.id)]), _f = (e, t) => {
7486
7486
  let n = new Set(t);
7487
7487
  return e.filter((e) => !n.has(e.id)).map((e) => e.id);
7488
- }, xf = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), Sf = (e, t, n, r = []) => {
7488
+ }, vf = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), yf = (e, t, n, r = []) => {
7489
7489
  let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
7490
7490
  if (o.length === 0) return {
7491
7491
  checked: i.has(t),
7492
7492
  indeterminate: !1
7493
7493
  };
7494
- let s = o.map((t) => Sf(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
7494
+ let s = o.map((t) => yf(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
7495
7495
  return {
7496
7496
  checked: u,
7497
7497
  indeterminate: c + l > 0 && !u
7498
7498
  };
7499
- }, Cf = (e, t, n = []) => {
7500
- let r = bf(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
7499
+ }, bf = (e, t, n = []) => {
7500
+ let r = _f(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
7501
7501
  return {
7502
7502
  checked: r.length > 0 && a === r.length,
7503
7503
  indeterminate: a > 0 && a < r.length
7504
7504
  };
7505
- }, wf = n(null), Tf = () => c(wf), Ef = ({ children: e, rowCheckboxes: t, rows: n }) => {
7505
+ }, xf = n(null), Sf = () => c(xf), Cf = ({ children: e, rowCheckboxes: t, rows: n }) => {
7506
7506
  let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: c } = t == null ? {} : t, l = f(() => new Set(a), [a]), u = f(() => {
7507
7507
  if (!r) return null;
7508
7508
  let e = /* @__PURE__ */ new Map();
7509
- for (let t of n) e.set(t.id, Sf(n, t.id, i, a));
7509
+ for (let t of n) e.set(t.id, yf(n, t.id, i, a));
7510
7510
  return e;
7511
7511
  }, [
7512
7512
  i,
7513
7513
  a,
7514
7514
  r,
7515
7515
  n
7516
- ]), d = f(() => r ? Cf(n, i, a) : void 0, [
7516
+ ]), d = f(() => r ? bf(n, i, a) : void 0, [
7517
7517
  i,
7518
7518
  a,
7519
7519
  r,
7520
7520
  n
7521
7521
  ]), p = s((e) => u == null ? void 0 : u.get(e), [u]), m = s((e) => l.has(e), [l]), h = s((e) => o == null ? void 0 : o(e), [o]), g = s((e) => {
7522
7522
  if (!r || l.has(e)) return;
7523
- let t = yf(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = Sf(n, e, i, a);
7523
+ let t = gf(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = yf(n, e, i, a);
7524
7524
  if (u) {
7525
7525
  let e = new Set(s);
7526
- c == null || c(xf(i, e, l));
7526
+ c == null || c(vf(i, e, l));
7527
7527
  } else c == null || c([...new Set([...i, ...o])]);
7528
7528
  }, [
7529
7529
  i,
@@ -7534,7 +7534,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7534
7534
  n
7535
7535
  ]), _ = s(() => {
7536
7536
  if (!r) return;
7537
- let e = bf(n, a), { checked: t } = Cf(n, i, a);
7537
+ let e = _f(n, a), { checked: t } = bf(n, i, a);
7538
7538
  t ? c == null || c(i.filter((e) => l.has(e))) : c == null || c([...new Set([...i, ...e])]);
7539
7539
  }, [
7540
7540
  i,
@@ -7560,12 +7560,12 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7560
7560
  _,
7561
7561
  g
7562
7562
  ]);
7563
- return /* @__PURE__ */ y(wf.Provider, {
7563
+ return /* @__PURE__ */ y(xf.Provider, {
7564
7564
  value: v,
7565
7565
  children: e
7566
7566
  });
7567
- }, Df = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
7568
- let h = Tf(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, v = g == null ? void 0 : g.checked, x = g == null ? void 0 : g.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
7567
+ }, wf = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
7568
+ let h = Sf(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, v = g == null ? void 0 : g.checked, x = g == null ? void 0 : g.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
7569
7569
  let r = t ? t[e] : void 0;
7570
7570
  return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
7571
7571
  };
@@ -7578,12 +7578,12 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7578
7578
  onDragLeave: f,
7579
7579
  children: /* @__PURE__ */ y("tbody", { children: /* @__PURE__ */ b("tr", {
7580
7580
  onClick: j,
7581
- className: _(vf.treeTableRow, A ? vf.active : void 0),
7581
+ className: _(hf.treeTableRow, A ? hf.active : void 0),
7582
7582
  children: [
7583
- C && /* @__PURE__ */ y(gl, {
7583
+ C && /* @__PURE__ */ y(pl, {
7584
7584
  isHeader: !1,
7585
7585
  cell: {
7586
- type: hl.CHECKBOX,
7586
+ type: fl.CHECKBOX,
7587
7587
  checked: v,
7588
7588
  disabled: S,
7589
7589
  indeterminate: x,
@@ -7592,19 +7592,19 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7592
7592
  }
7593
7593
  }),
7594
7594
  r && /* @__PURE__ */ y("td", {
7595
- className: vf.dragCell,
7595
+ className: hf.dragCell,
7596
7596
  children: /* @__PURE__ */ y("div", {
7597
- className: vf.drag,
7597
+ className: hf.drag,
7598
7598
  onClick: (e) => e.stopPropagation(),
7599
7599
  ref: i,
7600
7600
  children: /* @__PURE__ */ y(W, { icon: H.DRAG })
7601
7601
  })
7602
7602
  }),
7603
- Array.from({ length: n }).map((e, t) => /* @__PURE__ */ y("td", { className: vf.folderCell }, t)),
7603
+ Array.from({ length: n }).map((e, t) => /* @__PURE__ */ y("td", { className: hf.folderCell }, t)),
7604
7604
  M && /* @__PURE__ */ y("td", {
7605
- className: vf.folderCell,
7605
+ className: hf.folderCell,
7606
7606
  children: /* @__PURE__ */ y("div", {
7607
- className: vf.folder,
7607
+ className: hf.folder,
7608
7608
  onClick: () => m(E),
7609
7609
  onMouseDown: (e) => e.stopPropagation(),
7610
7610
  children: /* @__PURE__ */ y(K, {
@@ -7617,69 +7617,69 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7617
7617
  })
7618
7618
  })
7619
7619
  }),
7620
- D.map((t, n) => /* @__PURE__ */ y(gl, {
7620
+ D.map((t, n) => /* @__PURE__ */ y(pl, {
7621
7621
  isHeader: !1,
7622
7622
  cell: t,
7623
7623
  width: N(n),
7624
7624
  columnAlignment: e ? e[n] : null
7625
7625
  }, n)),
7626
- o && /* @__PURE__ */ y(gl, {
7626
+ o && /* @__PURE__ */ y(pl, {
7627
7627
  isHeader: !1,
7628
7628
  cell: {
7629
- type: hl.ACTIONS,
7629
+ type: fl.ACTIONS,
7630
7630
  actions: k
7631
7631
  }
7632
7632
  })
7633
7633
  ]
7634
7634
  }) })
7635
7635
  });
7636
- }, Of = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
7637
- let a = Tf(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
7636
+ }, Tf = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
7637
+ let a = Sf(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
7638
7638
  return /* @__PURE__ */ y("table", {
7639
- className: _(hs.table, vf.treeTableHeader),
7639
+ className: _(hs.table, hf.treeTableHeader),
7640
7640
  children: /* @__PURE__ */ y("thead", { children: i.map((i, c) => /* @__PURE__ */ b("tr", { children: [
7641
- s && c === 0 ? /* @__PURE__ */ y(gl, {
7641
+ s && c === 0 ? /* @__PURE__ */ y(pl, {
7642
7642
  isHeader: !0,
7643
7643
  cell: {
7644
- type: hl.CHECKBOX,
7644
+ type: fl.CHECKBOX,
7645
7645
  checked: o.checked,
7646
7646
  indeterminate: o.indeterminate,
7647
7647
  onChange: a.toggleHeaderCheck
7648
7648
  }
7649
7649
  }) : s ? /* @__PURE__ */ y("td", {}) : null,
7650
- n && /* @__PURE__ */ y("th", { className: vf.dragCell }),
7651
- i.cells.map((n, r) => /* @__PURE__ */ y(gl, {
7650
+ n && /* @__PURE__ */ y("th", { className: hf.dragCell }),
7651
+ i.cells.map((n, r) => /* @__PURE__ */ y(pl, {
7652
7652
  isHeader: !0,
7653
7653
  cell: n,
7654
7654
  width: t ? t[r] : void 0,
7655
7655
  columnAlignment: e ? e[r] : void 0
7656
7656
  }, r)),
7657
- r && /* @__PURE__ */ y(gl, {
7657
+ r && /* @__PURE__ */ y(pl, {
7658
7658
  isHeader: !0,
7659
7659
  cell: {
7660
- type: hl.ACTIONS,
7660
+ type: fl.ACTIONS,
7661
7661
  actions: i.actions,
7662
7662
  width: 31
7663
7663
  }
7664
7664
  })
7665
7665
  ] }, c)) })
7666
7666
  });
7667
- }, kf = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
7667
+ }, Ef = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
7668
7668
  let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, x = Ic(v, _ == null ? [] : _);
7669
- return /* @__PURE__ */ y(Ef, {
7669
+ return /* @__PURE__ */ y(Cf, {
7670
7670
  rowCheckboxes: u,
7671
7671
  rows: v,
7672
7672
  children: /* @__PURE__ */ b("div", {
7673
- className: vf.treeTable,
7673
+ className: hf.treeTable,
7674
7674
  "data-testid": f,
7675
7675
  style: { width: g },
7676
- children: [!!_ && /* @__PURE__ */ y(Of, {
7676
+ children: [!!_ && /* @__PURE__ */ y(Tf, {
7677
7677
  columnAlignment: m,
7678
7678
  columnWidths: h,
7679
7679
  draggable: r,
7680
7680
  hasRowActions: x,
7681
7681
  headers: _
7682
- }), /* @__PURE__ */ y(_f, {
7682
+ }), /* @__PURE__ */ y(mf, {
7683
7683
  allowParentReassignment: e,
7684
7684
  autoOpenActiveItems: t,
7685
7685
  canDrop: n,
@@ -7695,7 +7695,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7695
7695
  onItemToggle: s,
7696
7696
  onListReorder: c,
7697
7697
  placeholderIndent: "var(--size)",
7698
- render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ y(Df, {
7698
+ render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ y(wf, {
7699
7699
  node: e,
7700
7700
  columnAlignment: m,
7701
7701
  columnWidths: h,
@@ -7712,10 +7712,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7712
7712
  })]
7713
7713
  })
7714
7714
  });
7715
- }, Af = Object.freeze({
7715
+ }, Df = Object.freeze({
7716
7716
  Translations: "translations",
7717
7717
  LanguageKey: "languageKey"
7718
- }), jf = {
7718
+ }), Of = {
7719
7719
  unified: "Unified",
7720
7720
  split: "Split",
7721
7721
  changesTooLarge: "Changes are too large to be shown",
@@ -7737,30 +7737,30 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7737
7737
  pluralChanges: "changes",
7738
7738
  showAll: "Show all",
7739
7739
  unknown: "Unknown"
7740
- }, Mf = (e) => Object.keys(jf).reduce((t, n) => ({
7740
+ }, kf = (e) => Object.keys(Of).reduce((t, n) => ({
7741
7741
  ...t,
7742
- [n]: (e == null ? void 0 : e[n]) || (jf == null ? void 0 : jf[n])
7743
- }), {}), Nf = {
7744
- [Af.Translations]: Mf(),
7745
- [Af.LanguageKey]: "en"
7746
- }, Pf = (e) => e ? Nf[e] : Nf, Ff = (e, t) => {
7747
- Nf[e] = t;
7748
- }, If = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
7742
+ [n]: (e == null ? void 0 : e[n]) || (Of == null ? void 0 : Of[n])
7743
+ }), {}), Af = {
7744
+ [Df.Translations]: kf(),
7745
+ [Df.LanguageKey]: "en"
7746
+ }, jf = (e) => e ? Af[e] : Af, Mf = (e, t) => {
7747
+ Af[e] = t;
7748
+ }, Nf = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
7749
7749
  var a;
7750
- let { unitTemplate: o = null } = (a = Vd()) == null ? {} : a;
7751
- return e[n] = r == null ? Ad(n, o) : r, t[n] = i, {
7750
+ let { unitTemplate: o = null } = (a = Rd()) == null ? {} : a;
7751
+ return e[n] = r == null ? Dd(n, o) : r, t[n] = i, {
7752
7752
  preferredUnits: e,
7753
7753
  storageUnits: t
7754
7754
  };
7755
7755
  }, {
7756
7756
  preferredUnits: {},
7757
7757
  storageUnits: {}
7758
- }), Lf = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
7758
+ }), Pf = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
7759
7759
  ...e,
7760
7760
  cells: e.cells.map((e, s) => {
7761
7761
  if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
7762
- let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } = Fd({
7763
- value: Uc(l),
7762
+ let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } = Md({
7763
+ value: lr(l),
7764
7764
  unitkey: c,
7765
7765
  toUnit: f,
7766
7766
  fromUnit: p
@@ -7773,7 +7773,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7773
7773
  roundDisplayValue: d,
7774
7774
  selectOnFocus: !0,
7775
7775
  onChange: (n) => {
7776
- let { value: r } = n.target, a = i ? p : f, { value: o = r } = Fd({
7776
+ let { value: r } = n.target, a = i ? p : f, { value: o = r } = Md({
7777
7777
  value: String(r),
7778
7778
  unitkey: c,
7779
7779
  toUnit: a,
@@ -7797,17 +7797,17 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7797
7797
  }
7798
7798
  return e;
7799
7799
  })
7800
- }), Rf = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7801
- let { translations: i } = Pf();
7800
+ }), Ff = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7801
+ let { translations: i } = jf();
7802
7802
  return e ? e.map((e) => ({
7803
7803
  ...e,
7804
7804
  cells: e.cells.map((e) => {
7805
- if (e.type === hl.AUTO_UNIT) {
7805
+ if (e.type === fl.AUTO_UNIT) {
7806
7806
  var a;
7807
7807
  let { testId: o, unitKey: s, disabled: c = !1, error: l } = e, u = n[s];
7808
7808
  return {
7809
7809
  value: u && t[s],
7810
- type: hl.SELECT,
7810
+ type: fl.SELECT,
7811
7811
  error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
7812
7812
  disabled: c || !u,
7813
7813
  searchable: !1,
@@ -7827,8 +7827,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7827
7827
  return e;
7828
7828
  })
7829
7829
  })) : [];
7830
- }, zf = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: c }) => {
7831
- let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = If(t), m = kd(p), [g, _] = h(p), v = ({ unitKey: e, value: n }) => {
7830
+ }, If = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: c }) => {
7831
+ let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Nf(t), m = Ed(p), [g, _] = h(p), v = ({ unitKey: e, value: n }) => {
7832
7832
  _({
7833
7833
  ...g,
7834
7834
  [e]: n
@@ -7839,7 +7839,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7839
7839
  newUnit: n,
7840
7840
  unitKey: e
7841
7841
  });
7842
- }, b = s(({ row: e, rowIndex: t }) => Lf({
7842
+ }, b = s(({ row: e, rowIndex: t }) => Pf({
7843
7843
  row: c ? c({
7844
7844
  row: e,
7845
7845
  rowIndex: t
@@ -7865,10 +7865,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7865
7865
  value: n
7866
7866
  });
7867
7867
  });
7868
- }, [t]), /* @__PURE__ */ y(Sl, {
7868
+ }, [t]), /* @__PURE__ */ y(yl, {
7869
7869
  table: {
7870
7870
  ...d,
7871
- headers: Rf({
7871
+ headers: Ff({
7872
7872
  headers: e.headers,
7873
7873
  selectedUnits: g,
7874
7874
  storageUnits: f,
@@ -7879,8 +7879,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7879
7879
  canListReorder: o,
7880
7880
  beforeRenderRow: b
7881
7881
  });
7882
- }, Bf = { settingField: "_settingField_1x02n_1" }, Vf = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
7883
- let { translations: d } = Pf(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ b(e.Fragment, { children: [t, /* @__PURE__ */ y("br", {})] }, n)), p = [
7882
+ }, Lf = { settingField: "_settingField_1x02n_1" }, Rf = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
7883
+ let { translations: d } = jf(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ b(e.Fragment, { children: [t, /* @__PURE__ */ y("br", {})] }, n)), p = [
7884
7884
  ...r ? [] : [{
7885
7885
  label: d == null ? void 0 : d.allUsers,
7886
7886
  value: !1
@@ -7895,14 +7895,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7895
7895
  }] : []
7896
7896
  ], m = a !== void 0 && o !== void 0 && !cn(a, o);
7897
7897
  return /* @__PURE__ */ b("div", {
7898
- className: Bf.settingField,
7898
+ className: Lf.settingField,
7899
7899
  "data-testid": u,
7900
- children: [/* @__PURE__ */ b(Iu, {
7900
+ children: [/* @__PURE__ */ b(Nu, {
7901
7901
  justifyContent: "space-between",
7902
7902
  wrap: !1,
7903
7903
  children: [i, !s && /* @__PURE__ */ y("div", {
7904
7904
  style: { flexShrink: 0 },
7905
- children: /* @__PURE__ */ b(Iu, {
7905
+ children: /* @__PURE__ */ b(Nu, {
7906
7906
  gap: "8px",
7907
7907
  alignItems: "center",
7908
7908
  children: [m && /* @__PURE__ */ y(Wi, {
@@ -7927,19 +7927,19 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7927
7927
  children: f(t)
7928
7928
  })]
7929
7929
  });
7930
- }, Hf = (e, t) => {
7930
+ }, zf = (e, t) => {
7931
7931
  let n = e.replace(/\r\n/g, "\n").split("\n"), r = t.replace(/\r\n/g, "\n").split("\n"), i = r.length - n.length, a = n.length - r.length;
7932
7932
  return {
7933
7933
  added: Math.max(0, i),
7934
7934
  removed: Math.max(0, a)
7935
7935
  };
7936
- }, Uf = "split", Wf = "unified", Gf = ({ oldJson: e, newJson: t, viewType: n = Uf }) => {
7936
+ }, Bf = "split", Vf = "unified", Hf = ({ oldJson: e, newJson: t, viewType: n = Bf }) => {
7937
7937
  var r, i;
7938
- let { translations: a } = Pf(), [o, s] = h(n), c = [{
7939
- value: Uf,
7938
+ let { translations: a } = jf(), [o, s] = h(n), c = [{
7939
+ value: Bf,
7940
7940
  label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
7941
7941
  }, {
7942
- value: Wf,
7942
+ value: Vf,
7943
7943
  label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
7944
7944
  }];
7945
7945
  l(() => {
@@ -7947,10 +7947,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7947
7947
  }, [n]);
7948
7948
  let u = ({ target: { value: e } }) => {
7949
7949
  s(e);
7950
- }, { added: d, removed: f } = Hf(e, t), p = d + f > 3500;
7950
+ }, { added: d, removed: f } = zf(e, t), p = d + f > 3500;
7951
7951
  return /* @__PURE__ */ y(v, { children: /* @__PURE__ */ y(Ba, {
7952
7952
  bordered: !0,
7953
- heading: /* @__PURE__ */ b(Iu, {
7953
+ heading: /* @__PURE__ */ b(Nu, {
7954
7954
  gap: !0,
7955
7955
  children: [/* @__PURE__ */ y(Co, { children: /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b(_o, {
7956
7956
  success: !0,
@@ -7962,7 +7962,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7962
7962
  }), /* @__PURE__ */ b(_o, {
7963
7963
  error: !0,
7964
7964
  children: ["-", f]
7965
- })] }) }), !p && /* @__PURE__ */ y(fd, {
7965
+ })] }) }), !p && /* @__PURE__ */ y(ld, {
7966
7966
  name: "viewType",
7967
7967
  options: c,
7968
7968
  value: o,
@@ -7980,14 +7980,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7980
7980
  }) : /* @__PURE__ */ y(ei, {
7981
7981
  oldValue: e,
7982
7982
  newValue: t,
7983
- splitView: o === Uf,
7983
+ splitView: o === Bf,
7984
7984
  compareMethod: ti.WORDS
7985
7985
  })
7986
7986
  }) });
7987
7987
  };
7988
7988
  //#endregion
7989
7989
  //#region src/helpers/date.ts
7990
- function Kf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
7990
+ function Uf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
7991
7991
  return e ? new Date(e).toLocaleString(a, {
7992
7992
  year: "numeric",
7993
7993
  month: "short",
@@ -8001,28 +8001,28 @@ function Kf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
8001
8001
  }
8002
8002
  //#endregion
8003
8003
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
8004
- function qf(e) {
8004
+ function Wf(e) {
8005
8005
  var t;
8006
8006
  let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
8007
8007
  if (!n) throw Error("Invalid RegExp");
8008
8008
  return new RegExp((t = n[1]) == null ? "" : t, n[2]);
8009
8009
  }
8010
- function Jf(e) {
8010
+ function Gf(e) {
8011
8011
  if (typeof e != "object") return e;
8012
8012
  if (e === null) return null;
8013
- if (Array.isArray(e)) return e.map(Jf);
8013
+ if (Array.isArray(e)) return e.map(Gf);
8014
8014
  if (e instanceof Date) return new Date(e.getTime());
8015
- if (e instanceof RegExp) return qf(e);
8015
+ if (e instanceof RegExp) return Wf(e);
8016
8016
  let t = {};
8017
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Jf(e[n]));
8017
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Gf(e[n]));
8018
8018
  return t;
8019
8019
  }
8020
8020
  //#endregion
8021
8021
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
8022
- function Yf(e, t) {
8022
+ function Kf(e, t) {
8023
8023
  if (e.length === 0) throw Error(t || "Expected a non-empty array");
8024
8024
  }
8025
- var Xf = (e) => e[e.length - 1], Zf = class {
8025
+ var qf = (e) => e[e.length - 1], Jf = class {
8026
8026
  setResult(e) {
8027
8027
  return this.result = e, this.hasResult = !0, this;
8028
8028
  }
@@ -8030,16 +8030,16 @@ var Xf = (e) => e[e.length - 1], Zf = class {
8030
8030
  return this.exiting = !0, this;
8031
8031
  }
8032
8032
  push(e, t) {
8033
- return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Yf(this.children), Xf(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8033
+ return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Kf(this.children), qf(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8034
8034
  }
8035
- }, Qf = class extends Zf {
8035
+ }, Yf = class extends Jf {
8036
8036
  constructor(e, t) {
8037
8037
  super(), this.left = e, this.right = t, this.pipe = "diff";
8038
8038
  }
8039
8039
  prepareDeltaResult(e) {
8040
8040
  var t, n, r, i;
8041
8041
  if (typeof e == "object" && ((t = this.options) != null && t.omitRemovedValues && Array.isArray(e) && e.length > 1 && (e.length === 2 || e[2] === 0 || e[2] === 3) && (e[0] = 0), (n = this.options) != null && n.cloneDiffValues)) {
8042
- let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Jf;
8042
+ let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Gf;
8043
8043
  typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
8044
8044
  }
8045
8045
  return e;
@@ -8047,15 +8047,15 @@ var Xf = (e) => e[e.length - 1], Zf = class {
8047
8047
  setResult(e) {
8048
8048
  return this.prepareDeltaResult(e), super.setResult(e);
8049
8049
  }
8050
- }, $f = class extends Zf {
8050
+ }, Xf = class extends Jf {
8051
8051
  constructor(e, t) {
8052
8052
  super(), this.left = e, this.delta = t, this.pipe = "patch";
8053
8053
  }
8054
- }, ep = class extends Zf {
8054
+ }, Zf = class extends Jf {
8055
8055
  constructor(e) {
8056
8056
  super(), this.delta = e, this.pipe = "reverse";
8057
8057
  }
8058
- }, tp = class {
8058
+ }, Qf = class {
8059
8059
  constructor(e) {
8060
8060
  this.name = e, this.filters = [];
8061
8061
  }
@@ -8119,7 +8119,7 @@ var Xf = (e) => e[e.length - 1], Zf = class {
8119
8119
  }
8120
8120
  }), this);
8121
8121
  }
8122
- }, np = class {
8122
+ }, $f = class {
8123
8123
  constructor(e) {
8124
8124
  this.selfOptions = e || {}, this.pipes = {};
8125
8125
  }
@@ -8146,7 +8146,7 @@ var Xf = (e) => e[e.length - 1], Zf = class {
8146
8146
  for (; r;) n.nextAfterChildren !== void 0 && (n.next = n.nextAfterChildren, n.nextAfterChildren = null), typeof r == "string" && (r = this.pipe(r)), r.process(n), i = r, r = null, n && n.next && (n = n.next, r = n.pipe || i);
8147
8147
  return n.hasResult ? n.result : void 0;
8148
8148
  }
8149
- }, rp = (e, t, n, r) => e[n] === t[r], ip = (e, t, n, r) => {
8149
+ }, ep = (e, t, n, r) => e[n] === t[r], tp = (e, t, n, r) => {
8150
8150
  var i, a, o;
8151
8151
  let s = e.length, c = t.length, l, u, d = Array(s + 1);
8152
8152
  for (l = 0; l < s + 1; l++) {
@@ -8162,7 +8162,7 @@ var Xf = (e) => e[e.length - 1], Zf = class {
8162
8162
  for (u = 1; u < c + 1; u++) n(e, t, l - 1, u - 1, r) ? s[u] = ((i = f[u - 1]) == null ? 0 : i) + 1 : s[u] = Math.max((a = f[u]) == null ? 0 : a, (o = s[u - 1]) == null ? 0 : o);
8163
8163
  }
8164
8164
  return d;
8165
- }, ap = (e, t, n, r) => {
8165
+ }, np = (e, t, n, r) => {
8166
8166
  let i = t.length, a = n.length, o = {
8167
8167
  sequence: [],
8168
8168
  indices1: [],
@@ -8184,11 +8184,11 @@ var Xf = (e) => e[e.length - 1], Zf = class {
8184
8184
  }
8185
8185
  }
8186
8186
  return o;
8187
- }, op = { get: (e, t, n, r) => {
8187
+ }, rp = { get: (e, t, n, r) => {
8188
8188
  let i = r || {};
8189
- return ap(ip(e, t, n || rp, i), e, t, i);
8190
- } }, sp = 3;
8191
- function cp(e, t, n, r) {
8189
+ return np(tp(e, t, n || ep, i), e, t, i);
8190
+ } }, ip = 3;
8191
+ function ap(e, t, n, r) {
8192
8192
  for (let i = 0; i < n; i++) {
8193
8193
  let n = e[i];
8194
8194
  for (let e = 0; e < r; e++) {
@@ -8198,7 +8198,7 @@ function cp(e, t, n, r) {
8198
8198
  }
8199
8199
  return !1;
8200
8200
  }
8201
- function lp(e, t, n, r, i) {
8201
+ function op(e, t, n, r, i) {
8202
8202
  let a = e[n], o = t[r];
8203
8203
  if (a === o) return !0;
8204
8204
  if (typeof a != "object" || typeof o != "object") return !1;
@@ -8211,15 +8211,15 @@ function lp(e, t, n, r, i) {
8211
8211
  let l = i.hashCache2[r];
8212
8212
  return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
8213
8213
  }
8214
- var up = function(e) {
8214
+ var sp = function(e) {
8215
8215
  var t, n, r, i, a;
8216
8216
  if (!e.leftIsArray) return;
8217
8217
  let o = {
8218
8218
  objectHash: (t = e.options) == null ? void 0 : t.objectHash,
8219
8219
  matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
8220
8220
  }, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
8221
- for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !cp(f, p, m, h)); s < m && s < h && lp(f, p, s, s, o);) l = s, g = new Qf(f[l], p[l]), e.push(g, l), s++;
8222
- for (; c + s < m && c + s < h && lp(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Qf(f[u], p[d]), e.push(g, d), c++;
8221
+ for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !ap(f, p, m, h)); s < m && s < h && op(f, p, s, s, o);) l = s, g = new Yf(f[l], p[l]), e.push(g, l), s++;
8222
+ for (; c + s < m && c + s < h && op(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Yf(f[u], p[d]), e.push(g, d), c++;
8223
8223
  let _;
8224
8224
  if (s + c === m) {
8225
8225
  if (m === h) {
@@ -8243,7 +8243,7 @@ var up = function(e) {
8243
8243
  return;
8244
8244
  }
8245
8245
  o.hashCache1 = void 0, o.hashCache2 = void 0;
8246
- let v = f.slice(s, m - c), y = p.slice(s, h - c), b = op.get(v, y, lp, o), x = [];
8246
+ let v = f.slice(s, m - c), y = p.slice(s, h - c), b = rp.get(v, y, op, o), x = [];
8247
8247
  for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
8248
8248
  let t = `_${l}`;
8249
8249
  _[t] = [
@@ -8264,8 +8264,8 @@ var up = function(e) {
8264
8264
  if (S && w > 0) for (let n = 0; n < w; n++) {
8265
8265
  u = x[n];
8266
8266
  let r = u === void 0 ? void 0 : _[`_${u}`];
8267
- if (u !== void 0 && r && lp(v, y, u - s, l - s, o)) {
8268
- r.splice(1, 2, l, sp), r.splice(1, 2, l, sp), C || (r[0] = ""), d = l, g = new Qf(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8267
+ if (u !== void 0 && r && op(v, y, u - s, l - s, o)) {
8268
+ r.splice(1, 2, l, ip), r.splice(1, 2, l, ip), C || (r[0] = ""), d = l, g = new Yf(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8269
8269
  break;
8270
8270
  }
8271
8271
  }
@@ -8273,20 +8273,20 @@ var up = function(e) {
8273
8273
  } else {
8274
8274
  if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
8275
8275
  if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
8276
- d = b.indices2[t] + s, g = new Qf(f[u], p[d]), e.push(g, d);
8276
+ d = b.indices2[t] + s, g = new Yf(f[u], p[d]), e.push(g, d);
8277
8277
  }
8278
8278
  }
8279
8279
  e.setResult(_).exit();
8280
8280
  };
8281
- up.filterName = "arrays";
8282
- var dp = {
8281
+ sp.filterName = "arrays";
8282
+ var cp = {
8283
8283
  numerically(e, t) {
8284
8284
  return e - t;
8285
8285
  },
8286
8286
  numericallyBy(e) {
8287
8287
  return (t, n) => t[e] - n[e];
8288
8288
  }
8289
- }, fp = function(e) {
8289
+ }, lp = function(e) {
8290
8290
  var t;
8291
8291
  if (!e.nested) return;
8292
8292
  let n = e.delta;
@@ -8294,7 +8294,7 @@ var dp = {
8294
8294
  let r, i, a = n, o = e.left, s = [], c = [], l = [];
8295
8295
  for (r in a) if (r !== "_t") if (r[0] === "_") {
8296
8296
  let e = r;
8297
- if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === sp)) s.push(Number.parseInt(r.slice(1), 10));
8297
+ if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === ip)) s.push(Number.parseInt(r.slice(1), 10));
8298
8298
  else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${(t = a[e]) == null ? void 0 : t[2]}`);
8299
8299
  } else {
8300
8300
  let e = r;
@@ -8306,15 +8306,15 @@ var dp = {
8306
8306
  delta: a[e]
8307
8307
  });
8308
8308
  }
8309
- for (s = s.sort(dp.numerically), r = s.length - 1; r >= 0; r--) {
8309
+ for (s = s.sort(cp.numerically), r = s.length - 1; r >= 0; r--) {
8310
8310
  if (i = s[r], i === void 0) continue;
8311
8311
  let e = a[`_${i}`], t = o.splice(i, 1)[0];
8312
- (e == null ? void 0 : e[2]) === sp && c.push({
8312
+ (e == null ? void 0 : e[2]) === ip && c.push({
8313
8313
  index: e[1],
8314
8314
  value: t
8315
8315
  });
8316
8316
  }
8317
- c = c.sort(dp.numericallyBy("index"));
8317
+ c = c.sort(cp.numericallyBy("index"));
8318
8318
  let u = c.length;
8319
8319
  for (r = 0; r < u; r++) {
8320
8320
  let e = c[r];
@@ -8324,7 +8324,7 @@ var dp = {
8324
8324
  if (d > 0) for (r = 0; r < d; r++) {
8325
8325
  let t = l[r];
8326
8326
  if (t === void 0) continue;
8327
- let n = new $f(o[t.index], t.delta);
8327
+ let n = new Xf(o[t.index], t.delta);
8328
8328
  e.push(n, t.index);
8329
8329
  }
8330
8330
  if (!e.children) {
@@ -8333,8 +8333,8 @@ var dp = {
8333
8333
  }
8334
8334
  e.exit();
8335
8335
  };
8336
- fp.filterName = "arrays";
8337
- var pp = function(e) {
8336
+ lp.filterName = "arrays";
8337
+ var up = function(e) {
8338
8338
  if (!e || !e.children || e.delta._t !== "a") return;
8339
8339
  let t = e.left, n = e.children.length;
8340
8340
  for (let r = 0; r < n; r++) {
@@ -8345,16 +8345,16 @@ var pp = function(e) {
8345
8345
  }
8346
8346
  e.setResult(t).exit();
8347
8347
  };
8348
- pp.filterName = "arraysCollectChildren";
8349
- var mp = function(e) {
8348
+ up.filterName = "arraysCollectChildren";
8349
+ var dp = function(e) {
8350
8350
  if (!e.nested) {
8351
8351
  let t = e.delta;
8352
- if (t[2] === sp) {
8352
+ if (t[2] === ip) {
8353
8353
  let n = t;
8354
8354
  e.newName = `_${n[1]}`, e.setResult([
8355
8355
  n[0],
8356
8356
  Number.parseInt(e.childName.substring(1), 10),
8357
- sp
8357
+ ip
8358
8358
  ]).exit();
8359
8359
  }
8360
8360
  return;
@@ -8364,26 +8364,26 @@ var mp = function(e) {
8364
8364
  let n = t;
8365
8365
  for (let t in n) {
8366
8366
  if (t === "_t") continue;
8367
- let r = new ep(n[t]);
8367
+ let r = new Zf(n[t]);
8368
8368
  e.push(r, t);
8369
8369
  }
8370
8370
  e.exit();
8371
8371
  };
8372
- mp.filterName = "arrays";
8373
- var hp = (e, t, n) => {
8372
+ dp.filterName = "arrays";
8373
+ var fp = (e, t, n) => {
8374
8374
  if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
8375
8375
  if (Array.isArray(n) && n[2] === 0) return `_${t}`;
8376
8376
  let r = +t;
8377
8377
  for (let n in e) {
8378
8378
  let i = e[n];
8379
- if (Array.isArray(i)) if (i[2] === sp) {
8379
+ if (Array.isArray(i)) if (i[2] === ip) {
8380
8380
  let e = Number.parseInt(n.substring(1), 10), a = i[1];
8381
8381
  if (a === +t) return e;
8382
8382
  e <= r && a > r ? r++ : e >= r && a < r && r--;
8383
8383
  } else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
8384
8384
  }
8385
8385
  return r;
8386
- }, gp = (e) => {
8386
+ }, pp = (e) => {
8387
8387
  if (!e || !e.children) return;
8388
8388
  let t = e.delta;
8389
8389
  if (t._t !== "a") return;
@@ -8394,22 +8394,22 @@ var hp = (e, t, n) => {
8394
8394
  let a = r.newName;
8395
8395
  if (a === void 0) {
8396
8396
  if (r.childName === void 0) throw Error("child.childName is undefined");
8397
- a = hp(n, r.childName, r.result);
8397
+ a = fp(n, r.childName, r.result);
8398
8398
  }
8399
8399
  i[a] !== r.result && (i[a] = r.result);
8400
8400
  }
8401
8401
  e.setResult(i).exit();
8402
8402
  };
8403
- gp.filterName = "arraysCollectChildren";
8403
+ pp.filterName = "arraysCollectChildren";
8404
8404
  //#endregion
8405
8405
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
8406
- var _p = function(e) {
8406
+ var mp = function(e) {
8407
8407
  e.left instanceof Date ? (e.right instanceof Date && e.left.getTime() === e.right.getTime() ? e.setResult(void 0) : e.setResult([e.left, e.right]), e.exit()) : e.right instanceof Date && e.setResult([e.left, e.right]).exit();
8408
8408
  };
8409
- _p.filterName = "dates";
8409
+ mp.filterName = "dates";
8410
8410
  //#endregion
8411
8411
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
8412
- var vp = new Set(["__proto__"]), yp = (e) => {
8412
+ var hp = new Set(["__proto__"]), gp = (e) => {
8413
8413
  if (!e || !e.children) return;
8414
8414
  let t = e.children.length, n = e.result;
8415
8415
  for (let r = 0; r < t; r++) {
@@ -8421,18 +8421,18 @@ var vp = new Set(["__proto__"]), yp = (e) => {
8421
8421
  }
8422
8422
  n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
8423
8423
  };
8424
- yp.filterName = "collectChildren";
8425
- var bp = (e) => {
8424
+ gp.filterName = "collectChildren";
8425
+ var _p = (e) => {
8426
8426
  var t;
8427
8427
  if (e.leftIsArray || e.leftType !== "object") return;
8428
8428
  let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
8429
8429
  for (let t in n) {
8430
8430
  if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
8431
- let a = new Qf(n[t], r[t]);
8431
+ let a = new Yf(n[t], r[t]);
8432
8432
  e.push(a, t);
8433
8433
  }
8434
8434
  for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
8435
- let n = new Qf(void 0, r[t]);
8435
+ let n = new Yf(void 0, r[t]);
8436
8436
  e.push(n, t);
8437
8437
  }
8438
8438
  if (!e.children || e.children.length === 0) {
@@ -8441,15 +8441,15 @@ var bp = (e) => {
8441
8441
  }
8442
8442
  e.exit();
8443
8443
  };
8444
- bp.filterName = "objects";
8445
- var xp = function(e) {
8444
+ _p.filterName = "objects";
8445
+ var vp = function(e) {
8446
8446
  if (!e.nested) return;
8447
8447
  let t = e.delta;
8448
8448
  if (t._t) return;
8449
8449
  let n = t, r = !1;
8450
8450
  for (let t in n) {
8451
- if (vp.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8452
- let i = e.left, a = new $f(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8451
+ if (hp.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8452
+ let i = e.left, a = new Xf(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8453
8453
  e.push(a, t), r = !0;
8454
8454
  }
8455
8455
  if (!r) {
@@ -8458,8 +8458,8 @@ var xp = function(e) {
8458
8458
  }
8459
8459
  e.exit();
8460
8460
  };
8461
- xp.filterName = "objects";
8462
- var Sp = function(e) {
8461
+ vp.filterName = "objects";
8462
+ var yp = function(e) {
8463
8463
  if (!e || !e.children || e.delta._t) return;
8464
8464
  if (e.left === null || typeof e.left != "object") {
8465
8465
  e.setResult(e.left).exit();
@@ -8470,17 +8470,17 @@ var Sp = function(e) {
8470
8470
  let n = e.children[r];
8471
8471
  if (n === void 0) continue;
8472
8472
  let i = n.childName;
8473
- vp.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8473
+ hp.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8474
8474
  }
8475
8475
  e.setResult(t).exit();
8476
8476
  };
8477
- Sp.filterName = "collectChildren";
8478
- var Cp = function(e) {
8477
+ yp.filterName = "collectChildren";
8478
+ var bp = function(e) {
8479
8479
  if (!e.nested || e.delta._t) return;
8480
8480
  let t = e.delta, n = !1;
8481
8481
  for (let r in t) {
8482
- if (vp.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8483
- let i = new ep(t[r]);
8482
+ if (hp.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8483
+ let i = new Zf(t[r]);
8484
8484
  e.push(i, r), n = !0;
8485
8485
  }
8486
8486
  if (!n) {
@@ -8489,25 +8489,25 @@ var Cp = function(e) {
8489
8489
  }
8490
8490
  e.exit();
8491
8491
  };
8492
- Cp.filterName = "objects";
8493
- var wp = (e) => {
8492
+ bp.filterName = "objects";
8493
+ var xp = (e) => {
8494
8494
  if (!e || !e.children || e.delta._t) return;
8495
8495
  let t = e.children.length, n = {};
8496
8496
  for (let r = 0; r < t; r++) {
8497
8497
  let t = e.children[r];
8498
8498
  if (t === void 0) continue;
8499
8499
  let i = t.childName;
8500
- vp.has(i) || n[i] !== t.result && (n[i] = t.result);
8500
+ hp.has(i) || n[i] !== t.result && (n[i] = t.result);
8501
8501
  }
8502
8502
  e.setResult(n).exit();
8503
8503
  };
8504
- wp.filterName = "collectChildren";
8504
+ xp.filterName = "collectChildren";
8505
8505
  //#endregion
8506
8506
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
8507
- var Tp = 2, Ep = 60, Dp = null;
8508
- function Op(e, t) {
8507
+ var Sp = 2, Cp = 60, wp = null;
8508
+ function Tp(e, t) {
8509
8509
  var n;
8510
- if (!Dp) {
8510
+ if (!wp) {
8511
8511
  let r;
8512
8512
  if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
8513
8513
  else {
@@ -8515,7 +8515,7 @@ function Op(e, t) {
8515
8515
  let e = /* @__PURE__ */ Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");
8516
8516
  throw e.diff_match_patch_not_found = !0, e;
8517
8517
  }
8518
- Dp = {
8518
+ wp = {
8519
8519
  diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
8520
8520
  patch: (e, t) => {
8521
8521
  let n = r.patch_apply(r.patch_fromText(t), e);
@@ -8527,17 +8527,17 @@ function Op(e, t) {
8527
8527
  }
8528
8528
  };
8529
8529
  }
8530
- return Dp;
8530
+ return wp;
8531
8531
  }
8532
- var kp = function(e) {
8532
+ var Ep = function(e) {
8533
8533
  var t, n;
8534
8534
  if (e.leftType !== "string") return;
8535
- let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Ep;
8535
+ let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Cp;
8536
8536
  if (r.length < a || i.length < a) {
8537
8537
  e.setResult([r, i]).exit();
8538
8538
  return;
8539
8539
  }
8540
- let o = Op(e.options);
8540
+ let o = Tp(e.options);
8541
8541
  if (!o) {
8542
8542
  e.setResult([r, i]).exit();
8543
8543
  return;
@@ -8546,19 +8546,19 @@ var kp = function(e) {
8546
8546
  e.setResult([
8547
8547
  s(r, i),
8548
8548
  0,
8549
- Tp
8549
+ Sp
8550
8550
  ]).exit();
8551
8551
  };
8552
- kp.filterName = "texts";
8553
- var Ap = function(e) {
8552
+ Ep.filterName = "texts";
8553
+ var Dp = function(e) {
8554
8554
  if (e.nested) return;
8555
8555
  let t = e.delta;
8556
- if (t[2] !== Tp) return;
8557
- let n = t, r = Op(e.options, !0).patch;
8556
+ if (t[2] !== Sp) return;
8557
+ let n = t, r = Tp(e.options, !0).patch;
8558
8558
  e.setResult(r(e.left, n[0])).exit();
8559
8559
  };
8560
- Ap.filterName = "texts";
8561
- var jp = (e) => {
8560
+ Dp.filterName = "texts";
8561
+ var Op = (e) => {
8562
8562
  var t, n, r;
8563
8563
  let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
8564
8564
  for (let e = 0; e < a.length; e++) {
@@ -8579,21 +8579,21 @@ var jp = (e) => {
8579
8579
  } else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
8580
8580
  }
8581
8581
  return a.join("\n");
8582
- }, Mp = function(e) {
8582
+ }, kp = function(e) {
8583
8583
  if (e.nested) return;
8584
8584
  let t = e.delta;
8585
- if (t[2] !== Tp) return;
8585
+ if (t[2] !== Sp) return;
8586
8586
  let n = t;
8587
8587
  e.setResult([
8588
- jp(n[0]),
8588
+ Op(n[0]),
8589
8589
  0,
8590
- Tp
8590
+ Sp
8591
8591
  ]).exit();
8592
8592
  };
8593
- Mp.filterName = "texts";
8593
+ kp.filterName = "texts";
8594
8594
  //#endregion
8595
8595
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
8596
- var Np = function(e) {
8596
+ var Ap = function(e) {
8597
8597
  if (e.left === e.right) {
8598
8598
  e.setResult(void 0).exit();
8599
8599
  return;
@@ -8626,8 +8626,8 @@ var Np = function(e) {
8626
8626
  }
8627
8627
  e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
8628
8628
  };
8629
- Np.filterName = "trivial";
8630
- var Pp = function(e) {
8629
+ Ap.filterName = "trivial";
8630
+ var jp = function(e) {
8631
8631
  if (e.delta === void 0) {
8632
8632
  e.setResult(e.left).exit();
8633
8633
  return;
@@ -8651,8 +8651,8 @@ var Pp = function(e) {
8651
8651
  }
8652
8652
  t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
8653
8653
  };
8654
- Pp.filterName = "trivial";
8655
- var Fp = function(e) {
8654
+ jp.filterName = "trivial";
8655
+ var Mp = function(e) {
8656
8656
  if (e.delta === void 0) {
8657
8657
  e.setResult(e.delta).exit();
8658
8658
  return;
@@ -8673,36 +8673,36 @@ var Fp = function(e) {
8673
8673
  }
8674
8674
  t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
8675
8675
  };
8676
- Fp.filterName = "trivial";
8676
+ Mp.filterName = "trivial";
8677
8677
  //#endregion
8678
8678
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
8679
- var Ip = class {
8679
+ var Np = class {
8680
8680
  constructor(e) {
8681
- this.processor = new np(e), this.processor.pipe(new tp("diff").append(yp, Np, _p, kp, bp, up).shouldHaveResult()), this.processor.pipe(new tp("patch").append(Sp, pp, Pp, Ap, xp, fp).shouldHaveResult()), this.processor.pipe(new tp("reverse").append(wp, gp, Fp, Mp, Cp, mp).shouldHaveResult());
8681
+ this.processor = new $f(e), this.processor.pipe(new Qf("diff").append(gp, Ap, mp, Ep, _p, sp).shouldHaveResult()), this.processor.pipe(new Qf("patch").append(yp, up, jp, Dp, vp, lp).shouldHaveResult()), this.processor.pipe(new Qf("reverse").append(xp, pp, Mp, kp, bp, dp).shouldHaveResult());
8682
8682
  }
8683
8683
  options(e) {
8684
8684
  return this.processor.options(e);
8685
8685
  }
8686
8686
  diff(e, t) {
8687
- return this.processor.process(new Qf(e, t));
8687
+ return this.processor.process(new Yf(e, t));
8688
8688
  }
8689
8689
  patch(e, t) {
8690
- return this.processor.process(new $f(e, t));
8690
+ return this.processor.process(new Xf(e, t));
8691
8691
  }
8692
8692
  reverse(e) {
8693
- return this.processor.process(new ep(e));
8693
+ return this.processor.process(new Zf(e));
8694
8694
  }
8695
8695
  unpatch(e, t) {
8696
8696
  return this.patch(e, this.reverse(t));
8697
8697
  }
8698
8698
  clone(e) {
8699
- return Jf(e);
8699
+ return Gf(e);
8700
8700
  }
8701
8701
  };
8702
8702
  //#endregion
8703
8703
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
8704
- function Lp(e) {
8705
- return new Ip(e);
8704
+ function Pp(e) {
8705
+ return new Np(e);
8706
8706
  }
8707
8707
  //#endregion
8708
8708
  //#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
@@ -9275,46 +9275,46 @@ $.Diff = function(e, t) {
9275
9275
  };
9276
9276
  //#endregion
9277
9277
  //#region src/components/audit-log/create-diff-patcher.tsx
9278
- var Rp = (e = {}) => Lp({
9278
+ var Fp = (e = {}) => Pp({
9279
9279
  ...e,
9280
9280
  textDiff: {
9281
9281
  diffMatchPatch: $,
9282
9282
  minLength: 120
9283
9283
  },
9284
9284
  cloneDiffValues: !0
9285
- }), zp = ["user", "unittemplate"], Bp = Rp(), Vp = (e, t, n) => {
9285
+ }), Ip = ["user", "unittemplate"], Lp = Fp(), Rp = (e, t, n) => {
9286
9286
  let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
9287
9287
  for (let e = t.length - 1; e >= 0; e--) {
9288
9288
  let n = r[t[e]];
9289
9289
  if (n) return n;
9290
9290
  }
9291
9291
  return n || "";
9292
- }, Hp = (e) => {
9292
+ }, zp = (e) => {
9293
9293
  let t = (e) => er(e) ? fr(e) : String(e);
9294
9294
  return Array.isArray(e) ? e.length === 0 ? "" : e.some((e) => e && typeof e == "object") ? "Multiple changes..." : e.map(t).join(", ") : e && typeof e == "object" ? Object.keys(e).length === 0 ? "" : "Multiple changes..." : t(e);
9295
- }, Up = (e) => {
9295
+ }, Bp = (e) => {
9296
9296
  switch (e.length) {
9297
9297
  case 1: {
9298
9298
  let [t] = e;
9299
9299
  return {
9300
9300
  type: "created",
9301
9301
  before: "",
9302
- after: Hp(t)
9302
+ after: zp(t)
9303
9303
  };
9304
9304
  }
9305
9305
  case 2: {
9306
9306
  let [t, n] = e;
9307
9307
  return {
9308
9308
  type: "modified",
9309
- before: Hp(t),
9310
- after: Hp(n)
9309
+ before: zp(t),
9310
+ after: zp(n)
9311
9311
  };
9312
9312
  }
9313
9313
  case 3: {
9314
9314
  let [t] = e;
9315
9315
  return {
9316
9316
  type: "deleted",
9317
- before: Hp(t),
9317
+ before: zp(t),
9318
9318
  after: ""
9319
9319
  };
9320
9320
  }
@@ -9324,15 +9324,15 @@ var Rp = (e = {}) => Lp({
9324
9324
  after: ""
9325
9325
  };
9326
9326
  }
9327
- }, Wp = (e) => Array.isArray(e), Gp = (e, t) => t ? Wp(t) ? t.length === 0 ? e : t.reduce((e, t) => Bp.unpatch($t(e), $t(t)), $t(e)) : Bp.unpatch($t(e), $t(t)) : e, Kp = (e) => e.createdAt || e.date, qp = (e, t, n) => {
9328
- let r = Kp(e);
9327
+ }, Vp = (e) => Array.isArray(e), Hp = (e, t) => t ? Vp(t) ? t.length === 0 ? e : t.reduce((e, t) => Lp.unpatch($t(e), $t(t)), $t(e)) : Lp.unpatch($t(e), $t(t)) : e, Up = (e) => e.createdAt || e.date, Wp = (e, t, n) => {
9328
+ let r = Up(e);
9329
9329
  if (!r) return {
9330
9330
  oldJson: "",
9331
9331
  newJson: "",
9332
9332
  error: `Cannot create comparison view: missing date for audit log ${e.id}`
9333
9333
  };
9334
9334
  let i = t.filter((e) => {
9335
- let t = Kp(e);
9335
+ let t = Up(e);
9336
9336
  return !!(e.diffs && t && t >= r);
9337
9337
  }), a = Array.from({ length: i.length + 1 });
9338
9338
  a[0] = $t(n);
@@ -9345,7 +9345,7 @@ var Rp = (e = {}) => Lp({
9345
9345
  a[e + 1] = a[e];
9346
9346
  continue;
9347
9347
  }
9348
- a[e + 1] = Gp(a[e], t);
9348
+ a[e + 1] = Hp(a[e], t);
9349
9349
  }
9350
9350
  let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
9351
9351
  o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
@@ -9360,10 +9360,10 @@ var Rp = (e = {}) => Lp({
9360
9360
  oldJson: o,
9361
9361
  newJson: s
9362
9362
  };
9363
- }, Jp = (e, t, n = {}, r = []) => {
9363
+ }, Gp = (e, t, n = {}, r = []) => {
9364
9364
  var i;
9365
9365
  if (!e) return;
9366
- let a = [...zp, ...(i = n.hiddenKeys) == null ? [] : i];
9366
+ let a = [...Ip, ...(i = n.hiddenKeys) == null ? [] : i];
9367
9367
  Object.keys(e).forEach((i) => {
9368
9368
  var o;
9369
9369
  let s = e[i];
@@ -9376,12 +9376,12 @@ var Rp = (e = {}) => Lp({
9376
9376
  an(s) ? t.push({
9377
9377
  deltaFormat: [...s],
9378
9378
  path: c
9379
- }) : fn(s) && Jp(s, t, n, c);
9379
+ }) : fn(s) && Gp(s, t, n, c);
9380
9380
  });
9381
- }, Yp = (e, t = {}) => {
9381
+ }, Kp = (e, t = {}) => {
9382
9382
  let n = [];
9383
- return e ? (Jp(e, n, t), n) : [];
9384
- }, Xp = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Zp = (e) => {
9383
+ return e ? (Gp(e, n, t), n) : [];
9384
+ }, qp = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Jp = (e) => {
9385
9385
  if (e == null || e === "") return "empty";
9386
9386
  if (typeof e == "boolean") return e ? "true" : "false";
9387
9387
  if (typeof e == "string") return e;
@@ -9392,32 +9392,32 @@ var Rp = (e = {}) => Lp({
9392
9392
  } catch {
9393
9393
  return String(e);
9394
9394
  }
9395
- }, Qp = (e, t = e.length - 1) => {
9395
+ }, Yp = (e, t = e.length - 1) => {
9396
9396
  if (t >= e.length) return "Value";
9397
9397
  let n = e[t];
9398
- return !n || Zn(n) ? Qp(e, t - 1) : Xp(n);
9399
- }, $p = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9400
- let o = Zp(r), s = Zp(i), c = a ? ` in ${a}` : "";
9398
+ return !n || Zn(n) ? Yp(e, t - 1) : qp(n);
9399
+ }, Xp = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9400
+ let o = Jp(r), s = Jp(i), c = a ? ` in ${a}` : "";
9401
9401
  switch (t) {
9402
9402
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
9403
9403
  case "created": return `${e} created ${s}${c}.`;
9404
9404
  case "deleted": return `${e} deleted ${o}${c}.`;
9405
9405
  default: return `${e} changed ${n}${c}.`;
9406
9406
  }
9407
- }, em = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ y(Sl, { table: {
9407
+ }, Zp = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ y(yl, { table: {
9408
9408
  headers: [{ cells: [{ value: "Changes" }] }],
9409
9409
  rows: n.map((n) => {
9410
- let { deltaFormat: i, path: a } = n, o = Vp(e, a, r), { type: s, before: c, after: l } = Up(i);
9411
- return { cells: [{ value: $p({
9410
+ let { deltaFormat: i, path: a } = n, o = Rp(e, a, r), { type: s, before: c, after: l } = Bp(i);
9411
+ return { cells: [{ value: Xp({
9412
9412
  userName: t,
9413
9413
  type: s,
9414
- property: Qp(a),
9414
+ property: Yp(a),
9415
9415
  before: c,
9416
9416
  after: l,
9417
9417
  sectionName: o
9418
9418
  }) }] };
9419
9419
  })
9420
- } }), tm = Object.freeze({
9420
+ } }), Qp = Object.freeze({
9421
9421
  summary: {
9422
9422
  label: "Summary",
9423
9423
  value: "summary"
@@ -9426,33 +9426,33 @@ var Rp = (e = {}) => Lp({
9426
9426
  label: "Compare",
9427
9427
  value: "compare"
9428
9428
  }
9429
- }), nm = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9430
- let c = [tm.summary, tm.compare].map(({ label: e, value: t }) => ({
9429
+ }), $p = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9430
+ let c = [Qp.summary, Qp.compare].map(({ label: e, value: t }) => ({
9431
9431
  label: e,
9432
9432
  value: t
9433
9433
  })), [l, u] = h(c[0]), { diffs: d = void 0 } = e || {};
9434
9434
  if (!d) return null;
9435
- let { oldJson: f, newJson: p, error: m } = qp(e, t, n);
9435
+ let { oldJson: f, newJson: p, error: m } = Wp(e, t, n);
9436
9436
  return /* @__PURE__ */ y(Jo, {
9437
9437
  visible: r,
9438
9438
  centered: !0,
9439
9439
  children: /* @__PURE__ */ y(Eo, { dialog: {
9440
9440
  scroll: !0,
9441
9441
  heading: "Comparison view",
9442
- content: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y($d, {
9442
+ content: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Xd, {
9443
9443
  name: "ViewTab",
9444
9444
  onChange: (e) => u(c.find((t) => t.value === e.target.value)),
9445
9445
  options: c,
9446
9446
  value: l
9447
- }), l.value === "summary" ? /* @__PURE__ */ y(em, {
9447
+ }), l.value === "summary" ? /* @__PURE__ */ y(Zp, {
9448
9448
  userName: e.userName,
9449
9449
  sectionNames: a,
9450
- diffs: Yp(d, i),
9450
+ diffs: Kp(d, i),
9451
9451
  defaultSectionName: o
9452
9452
  }) : m ? /* @__PURE__ */ y("div", {
9453
9453
  style: { padding: 16 },
9454
9454
  children: m
9455
- }) : /* @__PURE__ */ y(Gf, {
9455
+ }) : /* @__PURE__ */ y(Hf, {
9456
9456
  oldJson: f,
9457
9457
  newJson: p
9458
9458
  })] }),
@@ -9465,7 +9465,7 @@ var Rp = (e = {}) => Lp({
9465
9465
  height: "90vh"
9466
9466
  } })
9467
9467
  });
9468
- }, rm = [
9468
+ }, em = [
9469
9469
  {
9470
9470
  label: "10 / page",
9471
9471
  value: 10
@@ -9478,8 +9478,8 @@ var Rp = (e = {}) => Lp({
9478
9478
  label: "50 / page",
9479
9479
  value: 50
9480
9480
  }
9481
- ], im = (e, t = {}) => {
9482
- let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Yp(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9481
+ ], tm = (e, t = {}) => {
9482
+ let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Kp(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9483
9483
  if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
9484
9484
  switch (a) {
9485
9485
  case "Created": return `Created by ${r}`;
@@ -9489,7 +9489,7 @@ var Rp = (e = {}) => Lp({
9489
9489
  case "Updated": return `Updated by ${r} (${c})`;
9490
9490
  default: return `Change by ${r}`;
9491
9491
  }
9492
- }, am = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: m, isLogDisabled: g }) => {
9492
+ }, nm = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: m, isLogDisabled: g }) => {
9493
9493
  let [_, x] = h(!1), [S, C] = h(null), w = (e) => {
9494
9494
  if (e.snapshot) {
9495
9495
  f == null || f(e.snapshot, e);
@@ -9508,7 +9508,7 @@ var Rp = (e = {}) => Lp({
9508
9508
  return {
9509
9509
  cells: [
9510
9510
  {
9511
- value: e.snapshot ? `Snapshot: ${e.snapshot}` : im(e, l),
9511
+ value: e.snapshot ? `Snapshot: ${e.snapshot}` : tm(e, l),
9512
9512
  type: "Link",
9513
9513
  disabled: n,
9514
9514
  onClick: n ? void 0 : () => w(e),
@@ -9527,8 +9527,8 @@ var Rp = (e = {}) => Lp({
9527
9527
  type: "Static"
9528
9528
  },
9529
9529
  {
9530
- value: Kf({
9531
- date: Kp(e),
9530
+ value: Uf({
9531
+ date: Up(e),
9532
9532
  showTime: !0
9533
9533
  }),
9534
9534
  type: "Static"
@@ -9538,12 +9538,12 @@ var Rp = (e = {}) => Lp({
9538
9538
  };
9539
9539
  });
9540
9540
  return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Ba, {
9541
- heading: /* @__PURE__ */ b(Iu, {
9541
+ heading: /* @__PURE__ */ b(Nu, {
9542
9542
  gap: !0,
9543
9543
  wrap: !0,
9544
9544
  children: [/* @__PURE__ */ y(Co, { children: "Changes" }), c.map((e) => {
9545
9545
  var t;
9546
- return /* @__PURE__ */ y(mu, {
9546
+ return /* @__PURE__ */ y(du, {
9547
9547
  small: (t = e.small) == null ? !0 : t,
9548
9548
  checked: e.checked,
9549
9549
  onChange: e.onChange,
@@ -9553,11 +9553,11 @@ var Rp = (e = {}) => Lp({
9553
9553
  })]
9554
9554
  }),
9555
9555
  padding: !1,
9556
- children: r ? /* @__PURE__ */ y($u, {
9556
+ children: r ? /* @__PURE__ */ y(Xu, {
9557
9557
  height: "100px",
9558
9558
  theme: si.WHITE,
9559
9559
  children: /* @__PURE__ */ y(Qi, { dark: !0 })
9560
- }) : /* @__PURE__ */ y(Sl, { table: {
9560
+ }) : /* @__PURE__ */ y(yl, { table: {
9561
9561
  headers: T,
9562
9562
  testId: "auditlog-table",
9563
9563
  rows: E,
@@ -9571,14 +9571,14 @@ var Rp = (e = {}) => Lp({
9571
9571
  onChange: (e) => {
9572
9572
  u(Number(e.target.value));
9573
9573
  },
9574
- options: rm,
9574
+ options: em,
9575
9575
  value: a
9576
9576
  },
9577
9577
  onSelectPage: (e) => d(e),
9578
9578
  small: !0
9579
9579
  } }
9580
9580
  } })
9581
- }), _ && S && S.diffs && /* @__PURE__ */ y(nm, {
9581
+ }), _ && S && S.diffs && /* @__PURE__ */ y($p, {
9582
9582
  sectionNames: o,
9583
9583
  isOpen: _,
9584
9584
  onClose: () => x(!1),
@@ -9588,7 +9588,7 @@ var Rp = (e = {}) => Lp({
9588
9588
  data: t,
9589
9589
  transformDiffsConfig: l
9590
9590
  })] });
9591
- }, om = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9591
+ }, rm = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9592
9592
  let i = window.location.href, a = m(i);
9593
9593
  return l(() => {
9594
9594
  a.current = i;
@@ -9611,10 +9611,10 @@ var Rp = (e = {}) => Lp({
9611
9611
  });
9612
9612
  };
9613
9613
  }, [e, t]), null;
9614
- }, sm = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, cm = (e) => {
9615
- Ff(Af.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9616
- e === Af.Translations ? Ff(e, Mf(t)) : Ff(e, sm(t) ? t : { ...t });
9614
+ }, im = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, am = (e) => {
9615
+ Mf(Df.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9616
+ e === Df.Translations ? Mf(e, kf(t)) : Mf(e, im(t) ? t : { ...t });
9617
9617
  });
9618
9618
  };
9619
9619
  //#endregion
9620
- export { Ei as Accordion, Yi as AccordionWithDefaultToggle, Ma as Actions, ii as Align, am as AuditLog, va as Badge, Ia as Breadcrumb, Pa as BreadcrumbLinkType, K as Button, Ra as ButtonGroup, ai as ButtonPosition, $i as ButtonType, Ba as Card, Gi as CheckBox, bi as Chevron, Ci as Collapse, ri as Color, co as ColorInput, so as ColorInputPopover, mo as Column, Eo as Dialog, Gf as DiffViewer, U as DisabledContext, yo as Divider, No as Drawer, sf as ElementType, Nl as Empty, Fu as Field, ju as FileButton, Uo as FileInput, Iu as Flex, Ru as FormRow, qa as Grid, V as GroupOrder, Co as Heading, Wi as HelpIcon, W as Icon, H as IconType, Ro as Input, Io as InputGroup, Ac as InputGroupAddon, Bo as InputReaderMethods, ci as InputType, Nu as Label, Zu as List, Bu as ListHeading, Ku as ListSubheading, $u as Loader, Aa as Menu, oa as MenuCarat, aa as MenuType, ms as Message, cs as MessageType, Jo as Modal, bs as NativeSelect, Kc as NumberInput, od as OptionDropdown, cd as Page, jc as Pagination, pf as PopConfirm, Ua as Popover, ld as Portal, dd as PrintHeader, Zo as ProgressBar, fd as RadioButton, _d as RichTextInput, yd as Row, wc as Select, Vf as SettingField, wd as SideBar, Ed as Skeleton, nl as Slider, ns as SmartUploadModal, Wo as Spacer, Qi as Spinner, Sl as Table, Au as TableImportExport, $d as Tabs, _o as Text, nf as TextArea, ef as TextLink, oi as TextTransform, si as Theme, Fr as Toaster, mu as Toggle, G as Tooltip, uf as TopBar, _f as Tree, kf as TreeTable, ni as TriggerType, Kd as UnitInput, Xd as UnitSlider, zf as UnitTable, om as UsageTracker, du as dismissToast, Ud as initializeContext, cm as initializeGuiLibrary, Vo as readFile, uu as toast, xs as useFocus, Go as useKeyboardEvent, ws as useWindowWidth };
9620
+ export { Ei as Accordion, Yi as AccordionWithDefaultToggle, Ma as Actions, ii as Align, nm as AuditLog, va as Badge, Ia as Breadcrumb, Pa as BreadcrumbLinkType, K as Button, Ra as ButtonGroup, ai as ButtonPosition, $i as ButtonType, Ba as Card, Gi as CheckBox, bi as Chevron, Ci as Collapse, ri as Color, co as ColorInput, so as ColorInputPopover, mo as Column, Eo as Dialog, Hf as DiffViewer, U as DisabledContext, yo as Divider, No as Drawer, rf as ElementType, Al as Empty, Mu as Field, Ou as FileButton, Uo as FileInput, Nu as Flex, Fu as FormRow, qa as Grid, V as GroupOrder, Co as Heading, Wi as HelpIcon, W as Icon, H as IconType, Ro as Input, Io as InputGroup, Ac as InputGroupAddon, Bo as InputReaderMethods, ci as InputType, Au as Label, Ju as List, Lu as ListHeading, Uu as ListSubheading, Xu as Loader, Aa as Menu, oa as MenuCarat, aa as MenuType, ms as Message, cs as MessageType, Jo as Modal, bs as NativeSelect, Uc as NumberInput, rd as OptionDropdown, ad as Page, jc as Pagination, uf as PopConfirm, Ua as Popover, od as Portal, cd as PrintHeader, Zo as ProgressBar, ld as RadioButton, md as RichTextInput, gd as Row, wc as Select, Rf as SettingField, xd as SideBar, Cd as Skeleton, $c as Slider, ns as SmartUploadModal, Wo as Spacer, Qi as Spinner, yl as Table, Du as TableImportExport, Xd as Tabs, _o as Text, $d as TextArea, Zd as TextLink, oi as TextTransform, si as Theme, Fr as Toaster, du as Toggle, G as Tooltip, sf as TopBar, mf as Tree, Ef as TreeTable, ni as TriggerType, Ud as UnitInput, qd as UnitSlider, If as UnitTable, rm as UsageTracker, cu as dismissToast, Bd as initializeContext, am as initializeGuiLibrary, Vo as readFile, su as toast, xs as useFocus, Go as useKeyboardEvent, ws as useWindowWidth };