@oracle/oraclejet-preact 19.0.2 → 19.0.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 (613) hide show
  1. package/amd/ActionCard-eb924a00.js +1 -1
  2. package/amd/{BarChart-8521c53a.js → BarChart-d94f9c56.js} +2 -2
  3. package/amd/{BarChart-8521c53a.js.map → BarChart-d94f9c56.js.map} +1 -1
  4. package/amd/{BaseButton-d69319ea.js → BaseButton-2c9850cb.js} +2 -2
  5. package/amd/{BaseButton-d69319ea.js.map → BaseButton-2c9850cb.js.map} +1 -1
  6. package/amd/BaseCardView-bc694015.js +1 -1
  7. package/amd/{BaseCardViewSelectionTest-4fae7370.js → BaseCardViewSelectionTest-edac2bbb.js} +2 -2
  8. package/amd/{BaseCardViewSelectionTest-4fae7370.js.map → BaseCardViewSelectionTest-edac2bbb.js.map} +1 -1
  9. package/amd/BaseNavigationListItem-cb5c260b.js +1 -1
  10. package/amd/BaseRichSelection-7f20b3af.js +1 -1
  11. package/amd/BaseSwatchView-4d204ce0.js +1 -1
  12. package/amd/BaseTabBarItem-cdec0e90.js +1 -1
  13. package/amd/Button-bd886c04.js +2 -0
  14. package/amd/{Button-d6bbc57f.js.map → Button-bd886c04.js.map} +1 -1
  15. package/amd/ButtonSet-ce95318d.js +1 -1
  16. package/amd/ButtonSetButton-af5f14b6.js +1 -1
  17. package/amd/ButtonSetIconButton-f3c6a05e.js +1 -1
  18. package/amd/Card-b62c2442.js +2 -0
  19. package/amd/{Card-6e7189a3.js.map → Card-b62c2442.js.map} +1 -1
  20. package/amd/{Center-50b6397c.js → Center-45b0c778.js} +2 -2
  21. package/amd/{Center-50b6397c.js.map → Center-45b0c778.js.map} +1 -1
  22. package/amd/{Chart-061335fe.js → Chart-3108fa88.js} +2 -2
  23. package/amd/{Chart-061335fe.js.map → Chart-3108fa88.js.map} +1 -1
  24. package/amd/Checkbox-8160d2e6.js +1 -1
  25. package/amd/CheckboxControl-c5240f9a.js +1 -1
  26. package/amd/CheckboxRadioField-18bf3cc2.js +1 -1
  27. package/amd/CheckboxRadioLabelValueLayout-edb44215.js +1 -1
  28. package/amd/Chip-b62a8126.js +1 -1
  29. package/amd/ClearIcon-13bd61d3.js +1 -1
  30. package/amd/CollapseIcon-8d26ba2a.js +1 -1
  31. package/amd/Collapsible-bf6945f6.js +1 -1
  32. package/amd/ColorPalette-b26f3861.js +1 -1
  33. package/amd/ColorPicker-8ef0b6e0.js +2 -0
  34. package/amd/{ColorPicker-d578df9c.js.map → ColorPicker-8ef0b6e0.js.map} +1 -1
  35. package/amd/ColorSwatch-57d78771.js +1 -1
  36. package/amd/{ComboChart-f3876b51.js → ComboChart-e61b5581.js} +2 -2
  37. package/amd/{ComboChart-f3876b51.js.map → ComboChart-e61b5581.js.map} +1 -1
  38. package/amd/CompactHelpSource-103a8263.js +1 -1
  39. package/amd/{CompactLabelAssistance-deb90940.js → CompactLabelAssistance-7ec99e08.js} +2 -2
  40. package/amd/{CompactLabelAssistance-deb90940.js.map → CompactLabelAssistance-7ec99e08.js.map} +1 -1
  41. package/amd/CompactUserAssistance-5ef03b0a.js +1 -1
  42. package/amd/ComponentMessageContainer-7d775a43.js +1 -1
  43. package/amd/ConveyorBelt-b9ab13cc.js +1 -1
  44. package/amd/{DatePicker-a07542a8.js → DatePicker-266c4b4e.js} +2 -2
  45. package/amd/{DatePicker-a07542a8.js.map → DatePicker-266c4b4e.js.map} +1 -1
  46. package/amd/DatePickerHeader-25b87f04.js +1 -1
  47. package/amd/Diagram-461719eb.js +1 -1
  48. package/amd/{Dialog-304ce274.js → Dialog-2e5ca26a.js} +2 -2
  49. package/amd/{Dialog-304ce274.js.map → Dialog-2e5ca26a.js.map} +1 -1
  50. package/amd/DirectionalCollapseArrowIcon-6777ae07.js +1 -1
  51. package/amd/DirectionalExpandArrowIcon-21d0b1d5.js +1 -1
  52. package/amd/{DragHandle-9d141cf3.js → DragHandle-68918f40.js} +2 -2
  53. package/amd/{DragHandle-9d141cf3.js.map → DragHandle-68918f40.js.map} +1 -1
  54. package/amd/{DrawerPopup-2b59d7f3.js → DrawerPopup-8d62ed90.js} +2 -2
  55. package/amd/{DrawerPopup-2b59d7f3.js.map → DrawerPopup-8d62ed90.js.map} +1 -1
  56. package/amd/{Dropdown-c119d072.js → Dropdown-9d52501e.js} +2 -2
  57. package/amd/{Dropdown-c119d072.js.map → Dropdown-9d52501e.js.map} +1 -1
  58. package/amd/{EmbeddedIconButton-23c53268.js → EmbeddedIconButton-7a2a1a8c.js} +2 -2
  59. package/amd/{EmbeddedIconButton-23c53268.js.map → EmbeddedIconButton-7a2a1a8c.js.map} +1 -1
  60. package/amd/{EnvironmentProvider-d538fcb2.js → EnvironmentProvider-fb09fcfb.js} +2 -2
  61. package/amd/{EnvironmentProvider-d538fcb2.js.map → EnvironmentProvider-fb09fcfb.js.map} +1 -1
  62. package/amd/ExpandableList-08269646.js +1 -1
  63. package/amd/Expander-9efeb845.js +1 -1
  64. package/amd/FilePicker-e5a20eaa.js +1 -1
  65. package/amd/FlatTreeView-6545afce.js +1 -1
  66. package/amd/{Flex-07d2aa5b.js → Flex-4bc3a394.js} +2 -2
  67. package/amd/{Flex-07d2aa5b.js.map → Flex-4bc3a394.js.map} +1 -1
  68. package/amd/{Floating-8192acb2.js → Floating-366a30f8.js} +2 -2
  69. package/amd/{Floating-8192acb2.js.map → Floating-366a30f8.js.map} +1 -1
  70. package/amd/FormLayout-ce4e956c.js +1 -1
  71. package/amd/Gantt-ad770490.js +1 -1
  72. package/amd/{Grid-d415ba8d.js → Grid-2ddec30a.js} +2 -2
  73. package/amd/{Grid-d415ba8d.js.map → Grid-2ddec30a.js.map} +1 -1
  74. package/amd/{Gridlines-c6c1fbb5.js → Gridlines-545ae30a.js} +2 -2
  75. package/amd/{Gridlines-c6c1fbb5.js.map → Gridlines-545ae30a.js.map} +1 -1
  76. package/amd/GroupLoadingIndicator-87f32efc.js +1 -1
  77. package/amd/{HighlightText-ecd2e5ce.js → HighlightText-ace1b6c4.js} +2 -2
  78. package/amd/{HighlightText-ecd2e5ce.js.map → HighlightText-ace1b6c4.js.map} +1 -1
  79. package/amd/Icon-865b3c78.js +1 -1
  80. package/amd/IconButton-232d63fc.js +1 -1
  81. package/amd/IconMenuButton-eef4b2da.js +1 -1
  82. package/amd/IconProgressButton-f9cdb23a.js +1 -1
  83. package/amd/IconSwitchButton-5be99684.js +1 -1
  84. package/amd/IconToggleButton-b783604a.js +1 -1
  85. package/amd/{IconUserAssistance-0c55d53f.js → IconUserAssistance-af9839fb.js} +2 -2
  86. package/amd/{IconUserAssistance-0c55d53f.js.map → IconUserAssistance-af9839fb.js.map} +1 -1
  87. package/amd/Indexer-bbb763a7.js +1 -1
  88. package/amd/InlineHelpSource-34ec0779.js +1 -1
  89. package/amd/InlineSelectSingle-bebf92d3.js +1 -1
  90. package/amd/InlineUserAssistance-e406e352.js +1 -1
  91. package/amd/{InputColor-192a309b.js → InputColor-5315b76a.js} +2 -2
  92. package/amd/{InputColor-192a309b.js.map → InputColor-5315b76a.js.map} +1 -1
  93. package/amd/InputDateMask-2fdb6f26.js +1 -1
  94. package/amd/InputDatePicker-a1eea599.js +1 -1
  95. package/amd/InputPassword-72147893.js +1 -1
  96. package/amd/InputSensitiveText-28cebe14.js +1 -1
  97. package/amd/InputText-83b55089.js +1 -1
  98. package/amd/Label-3c17bcc9.js +1 -1
  99. package/amd/LabelValueLayout-39dc1be3.js +1 -1
  100. package/amd/Layer-dc3c1ac9.js +2 -0
  101. package/amd/{Layer-c91c7141.js.map → Layer-dc3c1ac9.js.map} +1 -1
  102. package/amd/{LayerHost-daf96749.js → LayerHost-7d4aa6d3.js} +2 -2
  103. package/amd/{LayerHost-daf96749.js.map → LayerHost-7d4aa6d3.js.map} +1 -1
  104. package/amd/{LayerManager-8bad71b0.js → LayerManager-4983f21c.js} +2 -2
  105. package/amd/{LayerManager-8bad71b0.js.map → LayerManager-4983f21c.js.map} +1 -1
  106. package/amd/Legend-a8e9f523.js +1 -1
  107. package/amd/{LineAreaChart-07848f77.js → LineAreaChart-f8aefe07.js} +2 -2
  108. package/amd/{LineAreaChart-07848f77.js.map → LineAreaChart-f8aefe07.js.map} +1 -1
  109. package/amd/Link-c772dbef.js +1 -1
  110. package/amd/List-5b5b3bd7.js +1 -1
  111. package/amd/{ListItemLayout-50d0c8fa.js → ListItemLayout-83b78862.js} +2 -2
  112. package/amd/{ListItemLayout-50d0c8fa.js.map → ListItemLayout-83b78862.js.map} +1 -1
  113. package/amd/ListView-02b5ba6d.js +1 -1
  114. package/amd/LiveRegion-4b9317e5.js +2 -0
  115. package/amd/{LiveRegion-ef77cf92.js.map → LiveRegion-4b9317e5.js.map} +1 -1
  116. package/amd/{MaxLengthLiveRegion-04832e9d.js → MaxLengthLiveRegion-1f30f975.js} +2 -2
  117. package/amd/{MaxLengthLiveRegion-04832e9d.js.map → MaxLengthLiveRegion-1f30f975.js.map} +1 -1
  118. package/amd/Menu-45a26116.js +1 -1
  119. package/amd/MenuButton-0a9c6e8e.js +1 -1
  120. package/amd/MenuItem-ff1cd14d.js +1 -1
  121. package/amd/Message-d715942d.js +1 -1
  122. package/amd/{MessageLayer-5a8ba5af.js → MessageLayer-8df59ea9.js} +2 -2
  123. package/amd/{MessageLayer-5a8ba5af.js.map → MessageLayer-8df59ea9.js.map} +1 -1
  124. package/amd/MessageToast-44f7b49d.js +1 -1
  125. package/amd/MessagesManager-1a6283c1.js +1 -1
  126. package/amd/MeterBar-e417440c.js +1 -1
  127. package/amd/MeterCircle-d2ac0a67.js +1 -1
  128. package/amd/{Modal-1b3cd230.js → Modal-8d647f76.js} +2 -2
  129. package/amd/{Modal-1b3cd230.js.map → Modal-8d647f76.js.map} +1 -1
  130. package/amd/{MonthView-e2744696.js → MonthView-48d59de4.js} +2 -2
  131. package/amd/{MonthView-e2744696.js.map → MonthView-48d59de4.js.map} +1 -1
  132. package/amd/NavigationListItem-73686e95.js +1 -1
  133. package/amd/NavigationListLinkItem-87d5ca3d.js +1 -1
  134. package/amd/NumberInputText-01c1859f.js +1 -1
  135. package/amd/OverflowTabBarItem-b75ebe9b.js +1 -1
  136. package/amd/PRIVATE_BaseCardView.js +1 -1
  137. package/amd/PRIVATE_BaseSwatchView.js +1 -1
  138. package/amd/PRIVATE_Chart.js +1 -1
  139. package/amd/PRIVATE_CheckboxControl.js +1 -1
  140. package/amd/PRIVATE_CheckboxRadioField.js +1 -1
  141. package/amd/PRIVATE_ClearIcon.js +1 -1
  142. package/amd/PRIVATE_ContainerDiagram.js +1 -1
  143. package/amd/PRIVATE_DatePickerHeader.js +1 -1
  144. package/amd/PRIVATE_DatePickerLayout.js +1 -1
  145. package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
  146. package/amd/PRIVATE_Expander.js +1 -1
  147. package/amd/PRIVATE_FormControls.js +1 -1
  148. package/amd/PRIVATE_IconSwitchButton.js +1 -1
  149. package/amd/PRIVATE_Icons/CheckboxCrossed.js +1 -1
  150. package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
  151. package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
  152. package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
  153. package/amd/PRIVATE_Icons/DragV.js +1 -1
  154. package/amd/PRIVATE_Icons/None.js +1 -1
  155. package/amd/PRIVATE_List.js +1 -1
  156. package/amd/PRIVATE_Message.js +1 -1
  157. package/amd/PRIVATE_MessageLayer.js +1 -1
  158. package/amd/PRIVATE_MonthView.js +1 -1
  159. package/amd/PRIVATE_MonthYearGridView.js +1 -1
  160. package/amd/PRIVATE_PlotArea.js +1 -1
  161. package/amd/PRIVATE_RevealToggleIcon.js +1 -1
  162. package/amd/PRIVATE_RichSelectionCommon.js +1 -1
  163. package/amd/PRIVATE_SelectCommon.js +1 -1
  164. package/amd/PRIVATE_StyledCard.js +1 -1
  165. package/amd/PRIVATE_StyledCheckbox.js +1 -1
  166. package/amd/PRIVATE_SwatchFlexView.js +1 -1
  167. package/amd/PRIVATE_Table.js +1 -1
  168. package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
  169. package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
  170. package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
  171. package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
  172. package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
  173. package/amd/PRIVATE_ThemedIcons/CheckboxCrossedIcon.js +1 -1
  174. package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
  175. package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
  176. package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
  177. package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
  178. package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
  179. package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
  180. package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
  181. package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
  182. package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
  183. package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
  184. package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
  185. package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
  186. package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
  187. package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
  188. package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
  189. package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
  190. package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
  191. package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
  192. package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
  193. package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
  194. package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
  195. package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
  196. package/amd/PRIVATE_ThemedIcons/None.js +1 -1
  197. package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
  198. package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
  199. package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
  200. package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
  201. package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
  202. package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
  203. package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
  204. package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
  205. package/amd/PRIVATE_TimeComponent.js +1 -1
  206. package/amd/PRIVATE_VisOverview.js +1 -1
  207. package/amd/PRIVATE_VisTabularDatatip.js +1 -1
  208. package/amd/PictoChart-34f56e1c.js +1 -1
  209. package/amd/PieChart-c934e8f0.js +1 -1
  210. package/amd/{Popup-695781d6.js → Popup-062b66ff.js} +2 -2
  211. package/amd/{Popup-695781d6.js.map → Popup-062b66ff.js.map} +1 -1
  212. package/amd/{ProgressBar-70983add.js → ProgressBar-9aed0a47.js} +2 -2
  213. package/amd/{ProgressBar-70983add.js.map → ProgressBar-9aed0a47.js.map} +1 -1
  214. package/amd/ProgressButton-e6a1d457.js +1 -1
  215. package/amd/ProgressButtonLabelLayout-0931b1d5.js +1 -1
  216. package/amd/{ProgressCircle-551b98ed.js → ProgressCircle-0001dec1.js} +2 -2
  217. package/amd/{ProgressCircle-551b98ed.js.map → ProgressCircle-0001dec1.js.map} +1 -1
  218. package/amd/RadioItem-49626d64.js +1 -1
  219. package/amd/RatingGauge-e7a36731.js +1 -1
  220. package/amd/ReadonlyTextFieldInput-e5723c48.js +1 -1
  221. package/amd/RemovableTabBarItem-c7dd457b.js +1 -1
  222. package/amd/ReorderableTabBar-5d664f67.js +1 -1
  223. package/amd/RevealToggleIcon-28c5efc5.js +1 -1
  224. package/amd/{ScatterChart-292935ff.js → ScatterChart-1999acf0.js} +2 -2
  225. package/amd/{ScatterChart-292935ff.js.map → ScatterChart-1999acf0.js.map} +1 -1
  226. package/amd/SectionalLegend-a37ee0ec.js +1 -1
  227. package/amd/SectionedContent-bae8af88.js +2 -0
  228. package/amd/{SectionedContent-054e2fc2.js.map → SectionedContent-bae8af88.js.map} +1 -1
  229. package/amd/SelectMobileFieldInput-3650e1fe.js +1 -1
  230. package/amd/SelectMultiple-8dce10da.js +1 -1
  231. package/amd/SelectSingle-6d1f640f.js +1 -1
  232. package/amd/SelectionCard-e5665725.js +2 -0
  233. package/amd/{SelectionCard-601660df.js.map → SelectionCard-e5665725.js.map} +1 -1
  234. package/amd/Selector-470f114d.js +1 -1
  235. package/amd/{SelectorAll-82589ce2.js → SelectorAll-ac6005c5.js} +2 -2
  236. package/amd/{SelectorAll-82589ce2.js.map → SelectorAll-ac6005c5.js.map} +1 -1
  237. package/amd/{Sheet-c7f3fe2d.js → Sheet-fdd314ac.js} +2 -2
  238. package/amd/{Sheet-c7f3fe2d.js.map → Sheet-fdd314ac.js.map} +1 -1
  239. package/amd/SortControl-6d8e62c0.js +1 -1
  240. package/amd/SplitMenuButton-ba7fc113.js +1 -1
  241. package/amd/{StyledCard-8dbd5d58.js → StyledCard-f72bdcc4.js} +2 -2
  242. package/amd/{StyledCard-8dbd5d58.js.map → StyledCard-f72bdcc4.js.map} +1 -1
  243. package/amd/{StyledLabelValueLayout-5737d116.js → StyledLabelValueLayout-5a476d38.js} +2 -2
  244. package/amd/{StyledLabelValueLayout-5737d116.js.map → StyledLabelValueLayout-5a476d38.js.map} +1 -1
  245. package/amd/StyledTextField-5e554e5b.js +1 -1
  246. package/amd/Submenu-d0c548f0.js +1 -1
  247. package/amd/TabBar-fa06f492.js +1 -1
  248. package/amd/TabBarContextMenu-cad0a362.js +1 -1
  249. package/amd/TabBarLayout-9f802535.js +1 -1
  250. package/amd/TabBarMixed-2d5bc172.js +1 -1
  251. package/amd/TabBarMixedSeparator-4c6ad368.js +2 -0
  252. package/amd/{TabBarMixedSeparator-07022bdc.js.map → TabBarMixedSeparator-4c6ad368.js.map} +1 -1
  253. package/amd/Table-d0cc2468.js +1 -1
  254. package/amd/TagCloud-ccd75f37.js +1 -1
  255. package/amd/TextArea-ddd1d6b9.js +1 -1
  256. package/amd/TextAreaAutosize-3cf8e06c.js +1 -1
  257. package/amd/TextField-51b63f5f.js +1 -1
  258. package/amd/TextFieldInput-eb40adaa.js +1 -1
  259. package/amd/Theme-redwood/theme.css +194 -194
  260. package/amd/Theme-stable/theme.css +238 -238
  261. package/amd/TimeComponentCanvas2D-02d13a18.js +1 -1
  262. package/amd/ToggleButton-9201e07b.js +1 -1
  263. package/amd/Toolbar-4b2c5d5e.js +1 -1
  264. package/amd/TruncatingBadge-2d00ef48.js +1 -1
  265. package/amd/TruncatingText-459021db.js +1 -1
  266. package/amd/UNSAFE_ActionCard.js +1 -1
  267. package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
  268. package/amd/UNSAFE_BarChart.js +1 -1
  269. package/amd/UNSAFE_BareButton.js +1 -1
  270. package/amd/UNSAFE_BaseButton.js +1 -1
  271. package/amd/UNSAFE_Button.js +1 -1
  272. package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  273. package/amd/UNSAFE_ButtonSet.js +1 -1
  274. package/amd/UNSAFE_ButtonSetButton.js +1 -1
  275. package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
  276. package/amd/UNSAFE_ButtonSetItem.js +1 -1
  277. package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
  278. package/amd/UNSAFE_ButtonSetSingle.js +1 -1
  279. package/amd/UNSAFE_Card.js +1 -1
  280. package/amd/UNSAFE_CardFlexView.js +1 -1
  281. package/amd/UNSAFE_CardGridView.js +1 -1
  282. package/amd/UNSAFE_Center.js +1 -1
  283. package/amd/UNSAFE_Checkbox.js +1 -1
  284. package/amd/UNSAFE_CheckboxItem.js +1 -1
  285. package/amd/UNSAFE_CheckboxRadioField.js +1 -1
  286. package/amd/UNSAFE_CheckboxSet.js +1 -1
  287. package/amd/UNSAFE_Chip.js +1 -1
  288. package/amd/UNSAFE_Collapsible.js +1 -1
  289. package/amd/UNSAFE_ColorPalette.js +1 -1
  290. package/amd/UNSAFE_ColorPicker.js +1 -1
  291. package/amd/UNSAFE_ColorSwatch.js +1 -1
  292. package/amd/UNSAFE_ComboChart.js +1 -1
  293. package/amd/UNSAFE_ComponentMessage.js +1 -1
  294. package/amd/UNSAFE_ConveyorBelt.js +1 -1
  295. package/amd/UNSAFE_DatePicker.js +1 -1
  296. package/amd/UNSAFE_Diagram.js +1 -1
  297. package/amd/UNSAFE_Dialog.js +1 -1
  298. package/amd/UNSAFE_DragHandle.js +1 -1
  299. package/amd/UNSAFE_DrawerLayout.js +1 -1
  300. package/amd/UNSAFE_DrawerPopup.js +1 -1
  301. package/amd/UNSAFE_Dropdown.js +1 -1
  302. package/amd/UNSAFE_Environment.js +1 -1
  303. package/amd/UNSAFE_ExpandableList.js +1 -1
  304. package/amd/UNSAFE_FilePicker.js +1 -1
  305. package/amd/UNSAFE_FlatTreeView.js +1 -1
  306. package/amd/UNSAFE_Flex.js +1 -1
  307. package/amd/UNSAFE_Floating.js +1 -1
  308. package/amd/UNSAFE_FormLayout.js +1 -1
  309. package/amd/UNSAFE_Gantt.js +1 -1
  310. package/amd/UNSAFE_Grid.js +1 -1
  311. package/amd/UNSAFE_HighlightText.js +1 -1
  312. package/amd/UNSAFE_Icon.js +1 -1
  313. package/amd/UNSAFE_IconButton.js +1 -1
  314. package/amd/UNSAFE_IconMenuButton.js +1 -1
  315. package/amd/UNSAFE_IconProgressButton.js +1 -1
  316. package/amd/UNSAFE_IconToggleButton.js +1 -1
  317. package/amd/UNSAFE_Indexer.js +1 -1
  318. package/amd/UNSAFE_InlineSelectSingle.js +1 -1
  319. package/amd/UNSAFE_InputColor.js +1 -1
  320. package/amd/UNSAFE_InputDateMask.js +1 -1
  321. package/amd/UNSAFE_InputDatePicker.js +1 -1
  322. package/amd/UNSAFE_InputPassword.js +1 -1
  323. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  324. package/amd/UNSAFE_InputText.js +1 -1
  325. package/amd/UNSAFE_InputTimeMask.js +1 -1
  326. package/amd/UNSAFE_Label.js +1 -1
  327. package/amd/UNSAFE_LabelValueLayout.js +1 -1
  328. package/amd/UNSAFE_LabelledLink.js +1 -1
  329. package/amd/UNSAFE_Layer.js +1 -1
  330. package/amd/UNSAFE_Legend.js +1 -1
  331. package/amd/UNSAFE_LineAreaChart.js +1 -1
  332. package/amd/UNSAFE_Link.js +1 -1
  333. package/amd/UNSAFE_ListItemLayout.js +1 -1
  334. package/amd/UNSAFE_ListView.js +1 -1
  335. package/amd/UNSAFE_LiveRegion.js +1 -1
  336. package/amd/UNSAFE_Menu.js +1 -1
  337. package/amd/UNSAFE_MenuButton.js +1 -1
  338. package/amd/UNSAFE_MessageBanner.js +1 -1
  339. package/amd/UNSAFE_MessageToast.js +1 -1
  340. package/amd/UNSAFE_MeterBar.js +1 -1
  341. package/amd/UNSAFE_MeterCircle.js +1 -1
  342. package/amd/UNSAFE_Modal.js +1 -1
  343. package/amd/UNSAFE_NavigationList.js +1 -1
  344. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  345. package/amd/UNSAFE_NumberInputText.js +1 -1
  346. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  347. package/amd/UNSAFE_PictoChart.js +1 -1
  348. package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
  349. package/amd/UNSAFE_PieChart.js +1 -1
  350. package/amd/UNSAFE_Popup.js +1 -1
  351. package/amd/UNSAFE_ProgressBar.js +1 -1
  352. package/amd/UNSAFE_ProgressButton.js +1 -1
  353. package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
  354. package/amd/UNSAFE_ProgressCircle.js +1 -1
  355. package/amd/UNSAFE_RadioItem.js +1 -1
  356. package/amd/UNSAFE_RadioSet.js +1 -1
  357. package/amd/UNSAFE_RatingGauge.js +1 -1
  358. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  359. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  360. package/amd/UNSAFE_RichRadioSet.js +1 -1
  361. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  362. package/amd/UNSAFE_ScatterChart.js +1 -1
  363. package/amd/UNSAFE_SectionalLegend.js +1 -1
  364. package/amd/UNSAFE_SelectMultiple.js +1 -1
  365. package/amd/UNSAFE_SelectSingle.js +1 -1
  366. package/amd/UNSAFE_SelectionCard.js +1 -1
  367. package/amd/UNSAFE_Selector.js +1 -1
  368. package/amd/UNSAFE_SelectorAll.js +1 -1
  369. package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
  370. package/amd/UNSAFE_Sheet.js +1 -1
  371. package/amd/UNSAFE_SortControl.js +1 -1
  372. package/amd/UNSAFE_SplitMenuButton.js +1 -1
  373. package/amd/UNSAFE_TabBar.js +1 -1
  374. package/amd/UNSAFE_TabBarCommon.js +1 -1
  375. package/amd/UNSAFE_TabBarMixed.js +1 -1
  376. package/amd/UNSAFE_TableView.js +1 -1
  377. package/amd/UNSAFE_TagCloud.js +1 -1
  378. package/amd/UNSAFE_TextArea.js +1 -1
  379. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  380. package/amd/UNSAFE_TextField.js +1 -1
  381. package/amd/UNSAFE_ToggleButton.js +1 -1
  382. package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  383. package/amd/UNSAFE_Toolbar.js +1 -1
  384. package/amd/UNSAFE_Train.js +1 -1
  385. package/amd/UNSAFE_TruncatingBadge.js +1 -1
  386. package/amd/UNSAFE_TruncatingText.js +1 -1
  387. package/amd/UNSAFE_UserAssistance.js +1 -1
  388. package/amd/UNSAFE_View.js +1 -1
  389. package/amd/UNSAFE_VirtualizedListView.js +1 -1
  390. package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
  391. package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
  392. package/amd/UNSAFE_VisStatusMessage.js +1 -1
  393. package/amd/UNSAFE_WindowOverlay.js +1 -1
  394. package/amd/{View-ab4d3a33.js → View-5520bcf5.js} +2 -2
  395. package/amd/{View-ab4d3a33.js.map → View-5520bcf5.js.map} +1 -1
  396. package/amd/{VisNoData-adbb8750.js → VisNoData-d70d0d82.js} +2 -2
  397. package/amd/{VisNoData-adbb8750.js.map → VisNoData-d70d0d82.js.map} +1 -1
  398. package/amd/{VisProgressiveLoader-e5f7abe1.js → VisProgressiveLoader-07978120.js} +2 -2
  399. package/amd/{VisProgressiveLoader-e5f7abe1.js.map → VisProgressiveLoader-07978120.js.map} +1 -1
  400. package/amd/{VisTabularDatatip-e95bbf79.js → VisTabularDatatip-ab3b0b91.js} +2 -2
  401. package/amd/{VisTabularDatatip-e95bbf79.js.map → VisTabularDatatip-ab3b0b91.js.map} +1 -1
  402. package/amd/{WindowOverlay-69da5337.js → WindowOverlay-bd810e3b.js} +2 -2
  403. package/amd/{WindowOverlay-69da5337.js.map → WindowOverlay-bd810e3b.js.map} +1 -1
  404. package/amd/{YearsGridView-855ba9af.js → YearsGridView-eae67964.js} +2 -2
  405. package/amd/{YearsGridView-855ba9af.js.map → YearsGridView-eae67964.js.map} +1 -1
  406. package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
  407. package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
  408. package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
  409. package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
  410. package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
  411. package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
  412. package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
  413. package/amd/hooks/PRIVATE_useCssVars.js +1 -1
  414. package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
  415. package/amd/hooks/PRIVATE_useDatatip.js +1 -1
  416. package/amd/hooks/PRIVATE_useFloating.js +1 -1
  417. package/amd/hooks/PRIVATE_useListCommon.js +1 -1
  418. package/amd/hooks/PRIVATE_useOutsideMousedown.js +1 -1
  419. package/amd/hooks/PRIVATE_useReorderable.js +1 -1
  420. package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
  421. package/amd/hooks/PRIVATE_useSelection.js +1 -1
  422. package/amd/hooks/PRIVATE_useTabBar.js +1 -1
  423. package/amd/hooks/PRIVATE_useTooltipOnTruncation.js +1 -1
  424. package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
  425. package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
  426. package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
  427. package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
  428. package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
  429. package/amd/hooks/UNSAFE_useBareButton.js +1 -1
  430. package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
  431. package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
  432. package/amd/hooks/UNSAFE_useDensity.js +1 -1
  433. package/amd/hooks/UNSAFE_useHiddenTestMethod.js +1 -1
  434. package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
  435. package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
  436. package/amd/hooks/UNSAFE_useScale.js +1 -1
  437. package/amd/hooks/UNSAFE_useTestId.js +1 -1
  438. package/amd/hooks/UNSAFE_useTheme.js +1 -1
  439. package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
  440. package/amd/hooks/UNSAFE_useTooltip.js +1 -1
  441. package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
  442. package/amd/hooks/UNSAFE_useUser.js +1 -1
  443. package/amd/{index-c11efa38.js → index-89934afc.js} +2 -2
  444. package/amd/index-89934afc.js.map +1 -0
  445. package/amd/listViewSelectionTests-a58ee4c0.js +1 -1
  446. package/amd/popupUtils-e19b93b5.js +2 -0
  447. package/amd/{popupUtils-019ff48f.js.map → popupUtils-e19b93b5.js.map} +1 -1
  448. package/amd/{render-7cdd2fd1.js → render-88108768.js} +2 -2
  449. package/amd/{render-7cdd2fd1.js.map → render-88108768.js.map} +1 -1
  450. package/amd/{tabbableUtils-b1a61a1b.js → tabbableUtils-147c1073.js} +2 -2
  451. package/amd/{tabbableUtils-b1a61a1b.js.map → tabbableUtils-147c1073.js.map} +1 -1
  452. package/amd/{testData-c9985c4d.js → testData-845e2489.js} +2 -2
  453. package/amd/{testData-c9985c4d.js.map → testData-845e2489.js.map} +1 -1
  454. package/amd/{tooltipUtils-ae57629b.js → tooltipUtils-3c8a0253.js} +2 -2
  455. package/amd/{tooltipUtils-ae57629b.js.map → tooltipUtils-3c8a0253.js.map} +1 -1
  456. package/amd/useBareButton-3f7e0c0c.js +1 -1
  457. package/amd/useCellNavigation-43a992b6.js +1 -1
  458. package/amd/useChartContextMenu-59688a67.js +1 -1
  459. package/amd/{useChartDatatip-7beb4b24.js → useChartDatatip-cdfc4089.js} +2 -2
  460. package/amd/{useChartDatatip-7beb4b24.js.map → useChartDatatip-cdfc4089.js.map} +1 -1
  461. package/amd/{useColorScheme-3022ec9a.js → useColorScheme-f2a81610.js} +2 -2
  462. package/amd/{useColorScheme-3022ec9a.js.map → useColorScheme-f2a81610.js.map} +1 -1
  463. package/amd/useContextMenu-4bd1c23a.js +1 -1
  464. package/amd/useCssVars-d782da3d.js +2 -0
  465. package/amd/{useCssVars-5b3bc31e.js.map → useCssVars-d782da3d.js.map} +1 -1
  466. package/amd/{useCurrentBgColor-11b82a49.js → useCurrentBgColor-4326d3d6.js} +2 -2
  467. package/amd/{useCurrentBgColor-11b82a49.js.map → useCurrentBgColor-4326d3d6.js.map} +1 -1
  468. package/amd/useCurrentKey-2f1ca19e.js +2 -0
  469. package/amd/{useCurrentKey-8e979c7a.js.map → useCurrentKey-2f1ca19e.js.map} +1 -1
  470. package/amd/{useDatatip-be0adcf0.js → useDatatip-36aa820b.js} +2 -2
  471. package/amd/{useDatatip-be0adcf0.js.map → useDatatip-36aa820b.js.map} +1 -1
  472. package/amd/{useDensity-cb21e58e.js → useDensity-bee3cef4.js} +2 -2
  473. package/amd/{useDensity-cb21e58e.js.map → useDensity-bee3cef4.js.map} +1 -1
  474. package/amd/useDisplayValue-fa0fbc23.js +1 -1
  475. package/amd/{useExpandCollapse-99ff9bec.js → useExpandCollapse-4478c2eb.js} +2 -2
  476. package/amd/{useExpandCollapse-99ff9bec.js.map → useExpandCollapse-4478c2eb.js.map} +1 -1
  477. package/amd/{useFloating-25daefd7.js → useFloating-0df4b3d3.js} +2 -2
  478. package/amd/{useFloating-25daefd7.js.map → useFloating-0df4b3d3.js.map} +1 -1
  479. package/amd/{useHiddenTestMethod-90b5bff5.js → useHiddenTestMethod-2f1d2e7e.js} +2 -2
  480. package/amd/{useHiddenTestMethod-90b5bff5.js.map → useHiddenTestMethod-2f1d2e7e.js.map} +1 -1
  481. package/amd/useKeyboardEvents-a684ba76.js +2 -0
  482. package/amd/{useKeyboardEvents-e4599671.js.map → useKeyboardEvents-a684ba76.js.map} +1 -1
  483. package/amd/useLegendContextMenu-acabb503.js +1 -1
  484. package/amd/useMeterDatatip-b7dc96a3.js +2 -0
  485. package/amd/{useMeterDatatip-934d034d.js.map → useMeterDatatip-b7dc96a3.js.map} +1 -1
  486. package/amd/useNavigation-a6a2218f.js +1 -1
  487. package/amd/{useOutsideClick-1b59c507.js → useOutsideClick-9c4ceb18.js} +2 -2
  488. package/amd/{useOutsideClick-1b59c507.js.map → useOutsideClick-9c4ceb18.js.map} +1 -1
  489. package/amd/{useOutsideMousedown-ce3f7207.js → useOutsideMousedown-b0021878.js} +2 -2
  490. package/amd/{useOutsideMousedown-ce3f7207.js.map → useOutsideMousedown-b0021878.js.map} +1 -1
  491. package/amd/{usePopupAnimation-f8e212f7.js → usePopupAnimation-9f80595b.js} +2 -2
  492. package/amd/{usePopupAnimation-f8e212f7.js.map → usePopupAnimation-9f80595b.js.map} +1 -1
  493. package/amd/usePrefixSuffix-66563417.js +2 -0
  494. package/amd/{usePrefixSuffix-b26030fe.js.map → usePrefixSuffix-66563417.js.map} +1 -1
  495. package/amd/{useReorderableItem-13c24764.js → useReorderableItem-013ac2e8.js} +2 -2
  496. package/amd/{useReorderableItem-13c24764.js.map → useReorderableItem-013ac2e8.js.map} +1 -1
  497. package/amd/{useRovingTabIndexContainer-be2d51cf.js → useRovingTabIndexContainer-b11a404b.js} +2 -2
  498. package/amd/{useRovingTabIndexContainer-be2d51cf.js.map → useRovingTabIndexContainer-b11a404b.js.map} +1 -1
  499. package/amd/{useScale-fa445112.js → useScale-5d246769.js} +2 -2
  500. package/amd/{useScale-fa445112.js.map → useScale-5d246769.js.map} +1 -1
  501. package/amd/useSelectCommon-f04454d2.js +1 -1
  502. package/amd/{useSelectDrill-3b31318e.js → useSelectDrill-05d4e28f.js} +2 -2
  503. package/amd/{useSelectDrill-3b31318e.js.map → useSelectDrill-05d4e28f.js.map} +1 -1
  504. package/amd/{useSelection-d2a32b37.js → useSelection-87a6bea9.js} +2 -2
  505. package/amd/{useSelection-d2a32b37.js.map → useSelection-87a6bea9.js.map} +1 -1
  506. package/amd/useSelection-bb7d04ee.js +2 -0
  507. package/amd/{useSelection-7638353f.js.map → useSelection-bb7d04ee.js.map} +1 -1
  508. package/amd/useTabBar-ce36c510.js +1 -1
  509. package/amd/{useTestId-9afc201a.js → useTestId-a2e433c2.js} +2 -2
  510. package/amd/{useTestId-9afc201a.js.map → useTestId-a2e433c2.js.map} +1 -1
  511. package/amd/{useTheme-0ee6fb01.js → useTheme-af7bfac1.js} +2 -2
  512. package/amd/{useTheme-0ee6fb01.js.map → useTheme-af7bfac1.js.map} +1 -1
  513. package/amd/useThemeInterpolations-1dff2f9d.js +2 -0
  514. package/amd/{useThemeInterpolations-14ffb628.js.map → useThemeInterpolations-1dff2f9d.js.map} +1 -1
  515. package/amd/useTooltip-e14d62f1.js +2 -0
  516. package/amd/{useTooltip-75a63697.js.map → useTooltip-e14d62f1.js.map} +1 -1
  517. package/amd/{useTooltipControlled-558b2a13.js → useTooltipControlled-f7e07ed4.js} +2 -2
  518. package/amd/{useTooltipControlled-558b2a13.js.map → useTooltipControlled-f7e07ed4.js.map} +1 -1
  519. package/amd/{useTooltipOnTruncation-7c9b6e6b.js → useTooltipOnTruncation-e6d20cc0.js} +2 -2
  520. package/amd/{useTooltipOnTruncation-7c9b6e6b.js.map → useTooltipOnTruncation-e6d20cc0.js.map} +1 -1
  521. package/amd/{useTranslationBundle-8e42d505.js → useTranslationBundle-27bf6340.js} +2 -2
  522. package/amd/{useTranslationBundle-8e42d505.js.map → useTranslationBundle-27bf6340.js.map} +1 -1
  523. package/amd/{useUser-12ec03f1.js → useUser-988f7da2.js} +2 -2
  524. package/amd/{useUser-12ec03f1.js.map → useUser-988f7da2.js.map} +1 -1
  525. package/amd/useVisDragModeControls-4fcf2261.js +1 -1
  526. package/amd/{useVisEvents-e7b8669b.js → useVisEvents-3839d74f.js} +2 -2
  527. package/amd/{useVisEvents-e7b8669b.js.map → useVisEvents-3839d74f.js.map} +1 -1
  528. package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
  529. package/amd/utils/PRIVATE_visTestUtils.js +1 -1
  530. package/amd/utils/UNSAFE_popupUtils.js +1 -1
  531. package/amd/{withDirectionIcon-170ce869.js → withDirectionIcon-2bb38763.js} +2 -2
  532. package/amd/{withDirectionIcon-170ce869.js.map → withDirectionIcon-2bb38763.js.map} +1 -1
  533. package/amd/withThemeProps-0ef51fd1.js +1 -1
  534. package/cjs/TextArea-8608dba1.js +187 -0
  535. package/cjs/TextArea-8608dba1.js.map +1 -0
  536. package/cjs/Theme-redwood/theme.css +222 -222
  537. package/cjs/Theme-stable/theme.css +174 -174
  538. package/cjs/UNSAFE_TextArea.js +106 -216
  539. package/cjs/UNSAFE_TextArea.js.map +1 -1
  540. package/cjs/UNSAFE_TextAreaAutosize.js +2 -2
  541. package/cjs/UNSAFE_TextAreaAutosize.js.map +1 -1
  542. package/es/CheckboxSet-751d4298.js +49 -0
  543. package/es/CheckboxSet-751d4298.js.map +1 -0
  544. package/es/{ColorPicker-94212b50.js → ColorPicker-c603ebc6.js} +2 -2
  545. package/es/{ColorPicker-94212b50.js.map → ColorPicker-c603ebc6.js.map} +1 -1
  546. package/es/FormLayoutVariants.styles.css +14 -14
  547. package/es/FormLayoutVariants.styles2.css +14 -14
  548. package/es/ProgressBarVariants.styles.css +1 -1
  549. package/es/ProgressBarVariants.styles2.css +1 -1
  550. package/es/SegmentStyles.styles.css +8 -11
  551. package/es/SegmentStyles.styles2.css +11 -8
  552. package/es/SplitMenuButtonTheme.styles.css +4 -4
  553. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  554. package/es/TextArea-273e8ce4.js +184 -0
  555. package/es/TextArea-273e8ce4.js.map +1 -0
  556. package/es/Theme-redwood/theme.css +373 -373
  557. package/es/Theme-stable/theme.css +467 -467
  558. package/es/UNSAFE_CheckboxItem.js +101 -47
  559. package/es/UNSAFE_CheckboxItem.js.map +1 -1
  560. package/es/UNSAFE_CheckboxSet.js +10 -44
  561. package/es/UNSAFE_CheckboxSet.js.map +1 -1
  562. package/es/UNSAFE_ColorPicker.js +25 -25
  563. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutTheme.js +1 -1
  564. package/es/UNSAFE_FormLayout/themes/redwood/FormLayoutVariants.css.js +1 -1
  565. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutTheme.js +1 -1
  566. package/es/UNSAFE_FormLayout/themes/stable/FormLayoutVariants.css.js +1 -1
  567. package/es/UNSAFE_FormLayout.js +1 -1
  568. package/es/UNSAFE_InputColor.js +2 -2
  569. package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
  570. package/es/UNSAFE_InputDateMask.js +1 -1
  571. package/es/UNSAFE_InputDatePicker.js +92 -92
  572. package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
  573. package/es/UNSAFE_InputTimeMask.js +1 -1
  574. package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarTheme.js +1 -1
  575. package/es/UNSAFE_ProgressBar/themes/redwood/ProgressBarVariants.css.js +1 -1
  576. package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarTheme.js +1 -1
  577. package/es/UNSAFE_ProgressBar/themes/stable/ProgressBarVariants.css.js +1 -1
  578. package/es/UNSAFE_ProgressBar.js +1 -1
  579. package/es/UNSAFE_RichCheckboxSet.js +29 -25
  580. package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
  581. package/es/UNSAFE_RichSelectionItem.js +172 -29
  582. package/es/UNSAFE_RichSelectionItem.js.map +1 -1
  583. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  584. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  585. package/es/UNSAFE_SplitMenuButton.js +1 -1
  586. package/es/UNSAFE_TextArea.js +104 -219
  587. package/es/UNSAFE_TextArea.js.map +1 -1
  588. package/es/UNSAFE_TextAreaAutosize.js +1 -1
  589. package/package.json +2 -2
  590. package/amd/Button-d6bbc57f.js +0 -2
  591. package/amd/Card-6e7189a3.js +0 -2
  592. package/amd/ColorPicker-d578df9c.js +0 -2
  593. package/amd/Layer-c91c7141.js +0 -2
  594. package/amd/LiveRegion-ef77cf92.js +0 -2
  595. package/amd/SectionedContent-054e2fc2.js +0 -2
  596. package/amd/SelectionCard-601660df.js +0 -2
  597. package/amd/TabBarMixedSeparator-07022bdc.js +0 -2
  598. package/amd/index-c11efa38.js.map +0 -1
  599. package/amd/popupUtils-019ff48f.js +0 -2
  600. package/amd/useCssVars-5b3bc31e.js +0 -2
  601. package/amd/useCurrentKey-8e979c7a.js +0 -2
  602. package/amd/useKeyboardEvents-e4599671.js +0 -2
  603. package/amd/useMeterDatatip-934d034d.js +0 -2
  604. package/amd/usePrefixSuffix-b26030fe.js +0 -2
  605. package/amd/useSelection-7638353f.js +0 -2
  606. package/amd/useThemeInterpolations-14ffb628.js +0 -2
  607. package/amd/useTooltip-75a63697.js +0 -2
  608. package/cjs/MaxLengthCounter-39055ba1.js +0 -27
  609. package/cjs/MaxLengthCounter-39055ba1.js.map +0 -1
  610. package/es/CheckboxSetContext-1be56556.js +0 -9
  611. package/es/CheckboxSetContext-1be56556.js.map +0 -1
  612. package/es/MaxLengthCounter-d622f964.js +0 -25
  613. package/es/MaxLengthCounter-d622f964.js.map +0 -1
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './classNames-08d99695', './PRIVATE_TimeComponent/themes/TimeComponentStyles.css', './UNSAFE_Gantt/themes/GanttStyles.css', './size-0127b66b', './useTestId-9afc201a', './TrackResizeContainer-a4999df9', './Text-9e32c423', './accUtils-acd70e81', './TimeComponentCanvas2D-02d13a18', './useUser-12ec03f1', './Layer-c91c7141', 'preact/compat', './LayerHost-daf96749', './Floating-8192acb2', './hooks/PRIVATE_useDatatip/themes/useDatatip.css', './useId-c9578d26', './datatipUtils-6846028e', './layoutUtils-641af87a', './mergeProps-bcfa6a92', './usePinch-fc8ed928', './useSelection-7638353f', './VisTabularDatatip-e95bbf79', './useTranslationBundle-8e42d505', './lineUtils-81206f70', './useCssVars-5b3bc31e', './useTextDimensions-f254e8f5', './themeContract.css-2e4b066d', './utils-ad4761c9', './eventsUtils-5fb81c3e'], (function(e,t,o,i,r,a,n,s,d,l,c,h,u,m,g,w,p,b,x,f,v,y,T,k,A,R,j,S,C,I,P,L){"use strict";function O({innerRef:e,width:o,height:d,testId:l,children:c,...h}){const u=s.useTestId(l);return t.jsx("div",{ref:e,tabIndex:0,...u,...h,class:i.classNames([r.styles.baseStyle,a.styles.baseStyle]),style:{width:o&&n.sizeToCSS(o),height:d&&n.sizeToCSS(d)},children:c})}function E({rowAxisTopGap:e="0",rowAxisBottomGap:o="0",resolvedRowAxisWidth:i,resolvedRowAxisMaxWidth:r,rowAxis:n,ganttView:s}){const l="%"===i.suffix,c="%"===r.suffix;return l||c?t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:(d,h)=>t.jsxs("div",{class:a.rowAxisLayoutStyles.base,style:{gridTemplateRows:`${e} minmax(0, 1fr) ${o}`},children:[t.jsx("div",{class:a.rowAxisLayoutStyles.rowAxis,children:n(l?d*(i.value/100):i.value,c?d*(r.value/100):r.value)}),t.jsx("div",{class:a.rowAxisLayoutStyles.ganttView,children:s})]})}):t.jsxs("div",{class:a.rowAxisLayoutStyles.base,style:{gridTemplateRows:`${e} minmax(0, 1fr) ${o}`},children:[t.jsx("div",{class:a.rowAxisLayoutStyles.rowAxis,children:n(i.value,r.value)}),t.jsx("div",{class:a.rowAxisLayoutStyles.ganttView,children:s})]})}const D=({maxWidth:e,maxHeight:o,data:{label:i="",labelStyle:r}})=>t.jsx("div",{style:{width:e>-1?e:void 0,height:o,display:"flex",alignItems:"center",...r},children:t.jsx(l.Text,{size:"md",variant:r?.color?"inherit":"primary",truncation:"ellipsis",children:i})}),M=(e,t,o)=>({maxWidth:o,maxHeight:e.height,data:t[e.index]});class V{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,t){let o=this.length++;for(;o>0;){const e=o-1>>1,i=this.values[e];if(t>=i)break;this.ids[o]=this.ids[e],this.values[o]=i,o=e}this.ids[o]=e,this.values[o]=t}pop(){if(0===this.length)return;const e=this.ids[0];if(this.length--,this.length>0){const e=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],o=this.length>>1;let i=0;for(;i<o;){let e=1+(i<<1);const o=e+1;let r=this.ids[e],a=this.values[e];const n=this.values[o];if(o<this.length&&n<a&&(e=o,r=this.ids[o],a=n),a>=t)break;this.ids[i]=r,this.values[i]=a,i=e}this.ids[i]=e,this.values[i]=t}return e}peek(){if(0!==this.length)return this.ids[0]}peekValue(){if(0!==this.length)return this.values[0]}shrink(){this.ids.length=this.values.length=this.length}}const z=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class B{static from(e){if(!e||void 0===e.byteLength||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[t,o]=new Uint8Array(e,0,2);if(251!==t)throw new Error("Data does not appear to be in a Flatbush format.");const i=o>>4;if(3!==i)throw new Error(`Got v${i} data when expected v3.`);const r=z[15&o];if(!r)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,2,1),[n]=new Uint32Array(e,4,1);return new B(n,a,r,void 0,e)}constructor(e,t=16,o=Float64Array,i=ArrayBuffer,r){if(void 0===e)throw new Error("Missing required argument: numItems.");if(isNaN(e)||e<=0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535);let a=e,n=a;this._levelBounds=[4*a];do{a=Math.ceil(a/this.nodeSize),n+=a,this._levelBounds.push(4*n)}while(1!==a);this.ArrayType=o,this.IndexArrayType=n<16384?Uint16Array:Uint32Array;const s=z.indexOf(this.ArrayType),d=4*n*this.ArrayType.BYTES_PER_ELEMENT;if(s<0)throw new Error(`Unexpected typed array class: ${o}.`);r&&void 0!==r.byteLength&&!r.buffer?(this.data=r,this._boxes=new this.ArrayType(this.data,8,4*n),this._indices=new this.IndexArrayType(this.data,8+d,n),this._pos=4*n,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new i(8+d+n*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*n),this._indices=new this.IndexArrayType(this.data,8+d,n),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+s]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e),this._queue=new V}add(e,t,o,i){const r=this._pos>>2,a=this._boxes;return this._indices[r]=r,a[this._pos++]=e,a[this._pos++]=t,a[this._pos++]=o,a[this._pos++]=i,e<this.minX&&(this.minX=e),t<this.minY&&(this.minY=t),o>this.maxX&&(this.maxX=o),i>this.maxY&&(this.maxY=i),r}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const e=this._boxes;if(this.numItems<=this.nodeSize)return e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,void(e[this._pos++]=this.maxY);const t=this.maxX-this.minX||1,o=this.maxY-this.minY||1,i=new Uint32Array(this.numItems);for(let r=0,a=0;r<this.numItems;r++){const n=e[a++],s=e[a++],d=e[a++],l=e[a++],c=Math.floor(65535*((n+d)/2-this.minX)/t),h=Math.floor(65535*((s+l)/2-this.minY)/o);i[r]=W(c,h)}H(i,e,this._indices,0,this.numItems-1,this.nodeSize);for(let t=0,o=0;t<this._levelBounds.length-1;t++){const i=this._levelBounds[t];for(;o<i;){const t=o;let r=e[o++],a=e[o++],n=e[o++],s=e[o++];for(let t=1;t<this.nodeSize&&o<i;t++)r=Math.min(r,e[o++]),a=Math.min(a,e[o++]),n=Math.max(n,e[o++]),s=Math.max(s,e[o++]);this._indices[this._pos>>2]=t,e[this._pos++]=r,e[this._pos++]=a,e[this._pos++]=n,e[this._pos++]=s}}}search(e,t,o,i,r){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let a=this._boxes.length-4;const n=[],s=[];for(;void 0!==a;){const d=Math.min(a+4*this.nodeSize,F(a,this._levelBounds));for(let l=a;l<d;l+=4){if(o<this._boxes[l])continue;if(i<this._boxes[l+1])continue;if(e>this._boxes[l+2])continue;if(t>this._boxes[l+3])continue;const d=0|this._indices[l>>2];a>=4*this.numItems?n.push(d):(void 0===r||r(d))&&s.push(d)}a=n.pop()}return s}neighbors(e,t,o=1/0,i=1/0,r){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let a=this._boxes.length-4;const n=this._queue,s=[],d=i*i;e:for(;void 0!==a;){const i=Math.min(a+4*this.nodeSize,F(a,this._levelBounds));for(let o=a;o<i;o+=4){const i=0|this._indices[o>>2],s=_(e,this._boxes[o],this._boxes[o+2]),l=_(t,this._boxes[o+1],this._boxes[o+3]),c=s*s+l*l;c>d||(a>=4*this.numItems?n.push(i<<1,c):(void 0===r||r(i))&&n.push(1+(i<<1),c))}for(;n.length&&1&n.peek();){if(n.peekValue()>d)break e;if(s.push(n.pop()>>1),s.length===o)break e}a=n.length?n.pop()>>1:void 0}return n.clear(),s}}function _(e,t,o){return e<t?t-e:e<=o?0:e-o}function F(e,t){let o=0,i=t.length-1;for(;o<i;){const r=o+i>>1;t[r]>e?i=r:o=r+1}return t[o]}function H(e,t,o,i,r,a){if(Math.floor(i/a)>=Math.floor(r/a))return;const n=e[i+r>>1];let s=i-1,d=r+1;for(;;){do{s++}while(e[s]<n);do{d--}while(e[d]>n);if(s>=d)break;U(e,t,o,s,d)}H(e,t,o,i,d,a),H(e,t,o,d+1,r,a)}function U(e,t,o,i,r){const a=e[i];e[i]=e[r],e[r]=a;const n=4*i,s=4*r,d=t[n],l=t[n+1],c=t[n+2],h=t[n+3];t[n]=t[s],t[n+1]=t[s+1],t[n+2]=t[s+2],t[n+3]=t[s+3],t[s]=d,t[s+1]=l,t[s+2]=c,t[s+3]=h;const u=o[i];o[i]=o[r],o[r]=u}function W(e,t){let o=e^t,i=65535^o,r=65535^(e|t),a=e&(65535^t),n=o|i>>1,s=o>>1^o,d=r>>1^i&a>>1^r,l=o&r>>1^a>>1^a;o=n,i=s,r=d,a=l,n=o&o>>2^i&i>>2,s=o&i>>2^i&(o^i)>>2,d^=o&r>>2^i&a>>2,l^=i&r>>2^(o^i)&a>>2,o=n,i=s,r=d,a=l,n=o&o>>4^i&i>>4,s=o&i>>4^i&(o^i)>>4,d^=o&r>>4^i&a>>4,l^=i&r>>4^(o^i)&a>>4,o=n,i=s,r=d,a=l,d^=o&r>>8^i&a>>8,l^=i&r>>8^(o^i)&a>>8,o=d^d>>1,i=l^l>>1;let c=e^t,h=i|65535^(c|o);return c=16711935&(c|c<<8),c=252645135&(c|c<<4),c=858993459&(c|c<<2),c=1431655765&(c|c<<1),h=16711935&(h|h<<8),h=252645135&(h|h<<4),h=858993459&(h|h<<2),h=1431655765&(h|h<<1),(h<<1|c)>>>0}const Z=e=>{const t=e.map((e=>e.taskObjs.length)).reduce(((e,t)=>e+t),0),o=new B(t);return e.forEach((e=>e.taskObjs.forEach((({overallStartTime:e,overallEndTime:t,y:i,height:r})=>{o.add(e,i,t,i+r)})))),o.finish(),o},Y=(e,t,o,i,r=!0)=>r?e<=i&&o<=t:e<i&&o<t,X=(e,t)=>Y(e.overallStartTime,e.overallEndTime,t.overallStartTime,t.overallEndTime,!1),G=(e,t,o)=>{const i=((e,t,o)=>{if(0===e.length)return 0;let i=0,r=e.length;for(;i<r;){const o=Math.floor((i+r)/2);e[o]<t?i=o+1:r=o}if(i<e.length&&(e[i]===t||"successor"===o))return i;return i>0?i-1:0})(e,t,"predecessor");let r=i;for(let t=i;t<e.length&&e[t]<=o;t++)r=t;return{minRowInd:i,maxRowInd:r}},K=e=>({start:e.start?e.start:e.end,end:e.end?e.end:e.start}),N=e=>!(!e||"none"===e),$=(e,t,o,i)=>{const r=N(i.selectionMode),a=new Set(i.selectedIds);let n=0;const s=e.map(((i,s)=>{const d=i.tasks.map(((e,o)=>{const{start:i,end:n}=K(e),d=h.parseDate(i),l=h.parseDate(n);return{id:e.id,renderIndex:0,index:o,rowIndex:s,y:-1,startTime:d,endTime:l,overallStartTime:d,overallEndTime:l,rowLevel:0,height:void 0!==e.height?e.height:t.taskHeight,borderRadius:void 0!==e.borderRadius?e.borderRadius.toString():t.taskBorderRadius,fill:e.color?e.color:t.taskBgColor,stroke:t.taskBorderColor,strokeWidth:1,isSelectable:r,isSelected:a.has(e.id),selectionEffect:{stroke:t.taskEffectBorderColor,strokeWidth:2,padding:2},hoverEffect:{stroke:t.taskEffectBorderColor,strokeWidth:1,padding:0,shadow:{...t.taskEffectBoxShadow}},focusEffect:{stroke:t.taskEffectBorderColor,strokeWidth:1,padding:2}}}));d.sort(((e,t)=>e.startTime-t.startTime)),d.forEach(((e,t)=>e.renderIndex=t));const l=(({rowHeight:e,rowY:t,taskObjs:o,resolvedVars:i})=>{if(0===o.length)return(e=>e.rowPaddingTop+e.taskHeight+e.rowPaddingBottom)(i);o[0].rowLevel=0,o[0].y=0;const r=[[o[0]]],a=[o[0]];for(let e=1;e<o.length;e++){const t=o[e],i="stack",n=o[e-1];X(t,n)?r[r.length-1].push(t):r.push([t]);let s,d=0;switch(i){case"stack":{let e=!0;for(let o=0;o<a.length;o++){if(s=void 0,!X(t,a[o])){s=a[o],a[o]=t,e=!1;break}d+=1}e&&a.push(t),t.y=0,s&&(t.previousAdjacentTaskObj=s,s.nextAdjacentTaskObj=t);break}default:return i}t.rowLevel=d}const n=i.rowPaddingTop,s=i.rowPaddingBottom,d=a.map((()=>0));if(void 0===e){o.forEach((e=>{e.height>d[e.rowLevel]&&(d[e.rowLevel]=e.height)}));const e=d.map((e=>e+n+s)).reduce(((e,t,o)=>(e.push((e[o-1]||0)+t),e)),[]);o.forEach((t=>{t.y+=(e[t.rowLevel-1]||0)+n}))}const l=r.map((e=>{let t=0;return e.forEach((e=>{const o=e.y+e.height;o>t&&(t=o)})),t}));let c;return void 0===e?(c=l.reduce(((e,t)=>Math.max(e,t)))+n,r.forEach((e=>{e.forEach((e=>{const o=d[e.rowLevel];e.y+=(o-e.height)/2+t}))}))):(c=e,r.forEach(((e,o)=>{const i=l[o];let r=Number.MAX_VALUE;e.forEach((e=>{e.y+=Math.floor((c-e.height)/2),e.y<r&&(r=e.y)}));const a=Math.floor((c-i)/2)-r;e.forEach((e=>{e.y+=t+a}))}))),c})({rowHeight:i.height,rowY:n,taskObjs:d,resolvedVars:t});((e,t)=>{e.forEach((e=>{const{index:o,rowIndex:i}=e,r=t[i].tasks[o].label;r&&(e.labelObj={startTime:e.startTime,endTime:e.endTime,label:r,isInner:!0,position:"center"})}))})(d,e);const c={id:i.id,y:n,height:l,index:s,isSelected:d.some((e=>e.isSelected)),taskObjs:d},u="on"===o.horizontal?1:0;return n+=l+u,c})),d=s[s.length-1],l=d?d.y+d.height:0,c=new Map;s.forEach((e=>e.taskObjs.forEach((e=>c.set(e.id,e)))));const u=new Map;s.forEach((e=>u.set(e.id,e)));const m=(e=>({tasks:Z(e)}))(s);return{rowData:e,rowObjs:s,rowPadding:t.rowPaddingTop,totalRowsHeight:l,gridlines:o,spatialIndex:m,idRowObjMap:u,idTaskObjMap:c,getTaskDataById:t=>{const o=c.get(t);return o&&e[o.rowIndex].tasks[o.index]}}},q=(e,t,o,i,r,a)=>{const n=h.getTimePosition(e.startTime,t,o,i,a),s=h.getTimePosition(e.endTime,t,o,i,a);return{...e,x:a?s:n,y:e.y-r,width:a?n-s:s-n}},J=(e,t,o,i,r,a,n)=>{const s=i,d=i+a,l=e.rowObjs.map((e=>e.y)),{minRowInd:c,maxRowInd:u}=G(l,s,d),m=[];for(let a=c;a<=u;a++){const s=e.rowObjs[a],d=s.taskObjs.filter((({overallStartTime:e,overallEndTime:i})=>Y(e,i,t,o))).map((e=>q(e,t,o,r,i,n))),l={...s,y:s.y-i,taskObjs:d};m.push(l)}const g=[];m.forEach((i=>{i.taskObjs.forEach((({index:i,rowIndex:a,labelObj:s,y:d,height:l})=>{const c=((e,t,o,i,r,a,n,s)=>{if(!e)return;const d=h.getTimePosition(e.startTime,r,a,n,s),l=h.getTimePosition(e.endTime,r,a,n,s);let c;switch(e.position){case"center":c="center";break;case"start":c=s?"right":"left";break;case"end":c=s?"left":"right";break;default:return e.position}return{x:s?l:d,y:o,width:s?d-l:l-d,height:i,label:e.label,isInner:e.isInner,textAlign:c,labelStyle:t}})(s,e.rowData[a].tasks[i].labelStyle,d,l,t,o,r,n);c&&g.push(c)}))}));const w="on"===e.gridlines.horizontal?m.map((({y:e,height:t})=>e+t+.5)):void 0,p=new Map;return m.forEach((e=>e.taskObjs.forEach((e=>p.set(e.id,e))))),{spatialIndex:e.spatialIndex,gridlines:e.gridlines,horizontalGridlinesPos:w,rowData:e.rowData,allRowObjs:e.rowObjs,allIdTaskObjMap:e.idTaskObjMap,allIdRowObjMap:e.idRowObjMap,rowPadding:e.rowPadding,rowObjs:m,taskLabelObjs:g,idTaskObjMap:p,getTaskDataById:e.getTaskDataById}},Q=(e,t,o,i)=>{const r=t[e.rowIndex].tasks[e.index],a=void 0!==r.accessibleLabel?r.accessibleLabel:((e,t,o,i)=>{const r=t[e.rowIndex],a=r.tasks[e.index],{start:n,end:s}=K(a),d=n===s,l=[];if(r.label){const e=i.vis_labelAndValue({LABEL:i.gantt_labelRow(),VALUE:r.label});l.push(e)}if(d){const e=i.vis_labelAndValue({LABEL:i.gantt_labelDate(),VALUE:o(n)});l.push(e)}else{const e=i.vis_labelAndValue({LABEL:i.gantt_labelStart(),VALUE:o(n)}),t=i.vis_labelAndValue({LABEL:i.gantt_labelEnd(),VALUE:o(s)});l.push(e),l.push(t)}if(a.label){const e=i.vis_labelAndValue({LABEL:i.gantt_labelLabel(),VALUE:a.label});l.push(e)}return l.join("; ")})(e,t,o,i);return c.generateAriaLabel(i,a,{isSelected:e.isSelected})};function ee({rowObj:e,rowData:o,isRowSelected:r,isFocused:n,isHorizontalGridlinesVisible:s,ariaActive:d,children:l}){const c=((e,t)=>{const o=t[e.index];return o.accessibleLabel||o.label})(e,o);return t.jsx("div",{id:d?.dataId===e.id?d.ariaId:void 0,"data-oj-private-row-index":e.index,role:"row","aria-label":c,class:i.classNames([a.rowAxisStyles.labelContainer,r&&a.rowBackgroundStyles.selected,n&&a.rowAxisStyles.labelContainerFocused,s&&a.rowAxisStyles.withLabelSeparatorBottom]),children:t.jsx("div",{role:"rowheader",children:l})},e.id)}function te({content:e,placement:i="top-end-corner",offset:r,borderColor:a,anchor:n,targetFocusRef:s}){const d=o.useRef(x.useId()),[l,c]=o.useState({x:0,y:0}),h=r||{mainAxis:f.DATATIP_OFFSET,crossAxis:-1*f.DATATIP_OFFSET},u=o.useRef(null),g="element"===n?u:{current:l};return{datatipContent:null!=e?t.jsx(m.Layer,{children:t.jsx(p.Floating,{anchorRef:g,placement:i,offsetValue:h,flipOptions:{crossAxis:!0,mainAxis:!0},shiftOptions:{crossAxis:!1,mainAxis:!1},children:t.jsx("div",{id:d.current,className:b.styles.visDatatipStyle,style:{borderColor:a},children:e})})}):null,datatipProps:{"aria-describedby":d.current,onPointerEnter:e=>{e.eventPhase!==Event.AT_TARGET&&e.eventPhase!==Event.BUBBLING_PHASE||(u.current=e.currentTarget)},onPointerLeave:()=>{c({x:-1e4,y:-1e4})},onPointerMove:e=>{c({x:e.clientX,y:e.clientY})},onFocus:e=>{e.eventPhase!==Event.AT_TARGET&&e.eventPhase!==Event.BUBBLING_PHASE||(u.current=e.target)},onShowFocusDatatip:()=>{u.current=s.current}}}}const oe=({rowObjs:e,hoverProps:t})=>({onPointerMove:o=>{const i=(t=>{const{clientX:o,clientY:i}=t,r=document.elementsFromPoint(o,i);for(let t=0;t<r.length;t++){const o=r[t].dataset.ojRowIndex;if(o)return e[Number(o)].id}})(o);i!==t.hoveredRowLabelId&&t.onRowLabelHoverChange({id:i})}});function ie({innerRef:e,scrollPosition:o,resolvedWidth:r,resolvedMaxWidth:n,currentRowLabel:s,currentRowLabelInteraction:d,hoveredRowLabelId:l,onRowLabelHoverChange:c,layoutObj:{labelPaddingInlineStart:h,labelPaddingInlineEnd:m,rowData:g,rowObjs:w,idRowObjMap:p,isHorizontalGridlinesVisible:b},ariaActive:x,children:f}){const T=r!==1/0?r:void 0,k=n!==1/0?n:void 0,A=Math.min(r,n),R=A===1/0?-1:A-(h+m),j=oe({rowObjs:w,hoverProps:{hoveredRowLabelId:l,onRowLabelHoverChange:c}}),{datatipContent:S,datatipProps:C}=(({targetRef:e,rowData:t,hoveredRowObj:o,focusedRowObj:i,currentRowLabelInteraction:r,rowAxisRegion:a})=>{const{direction:n}=u.useUser(),s="rtl"===n,d={hover:{rowObj:o,anchor:"pointer"},focus:{rowObj:i,anchor:"element"},none:{rowObj:void 0,anchor:"pointer"}},{anchor:l,rowObj:c}=d[r],h=c?t[c.index].accessibleLabel:void 0,m=c&&"element"===l?{x:0,y:c.y+a.y,width:a.w,height:c.height}:void 0;return te({content:h,anchor:l,placement:"top-start",offset:v.calculateOffset(s,a.w,m),targetFocusRef:e})})({rowData:g,hoveredRowObj:l&&p.get(l),focusedRowObj:s?.isFocused?p.get(s.id):void 0,currentRowLabelInteraction:d,rowAxisRegion:{x:0,y:-o,w:2*(h+m),h:-1},targetRef:e});return t.jsxs("div",{ref:e,...y.mergeProps(j,C),class:i.classNames([a.rowAxisStyles.base,b&&a.rowAxisStyles.withSeparatorTop]),style:{width:T,maxWidth:k},children:[t.jsx("div",{role:"grid",class:a.rowAxisStyles.contentContainer,style:{top:-o},children:w.map((e=>t.jsx(ee,{ariaActive:x,rowObj:e,rowData:g,isRowSelected:e.isSelected,isFocused:!!s?.isFocused&&s.id===e.id,isHorizontalGridlinesVisible:b,children:f(M(e,g,R))})))}),S]})}const re=(e,t,o,i,r)=>{const a=((e,t,o)=>{const i=t.max-o.max,r=t.min-o.min,a=e*(t.max-t.min),n=Math.max(i,Math.min(a,r));return{min:Math.max(0,t.min-n),max:t.max-n}})(e,t,i),{min:n,max:s}=o,d=a.min!==n||a.max!==s;return d&&r(a),{newRange:a,isRangeChanged:d}},ae=({rowObjs:e})=>{if(0!==e.length&&0!==e[0].taskObjs.length)return{id:e[0].taskObjs[0].id,isFocused:!0}},ne=(e,{rowObjs:t,idTaskObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="next"===i?1:-1,{rowIndex:n,renderIndex:s}=r,d=t[n].taskObjs[s+a];if(d)return d.id;const l=t[n+a];if(l){const e="next"===i?l.taskObjs[0]:l.taskObjs[l.taskObjs.length-1];if(e)return e.id}},se=(e,{rowObjs:t,idTaskObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="down"===i?1:-1,{rowIndex:n}=r,s=t[n+a];if(!s)return;const d=s.taskObjs[0];return d?d.id:void 0},de=(e,t)=>ne(e,t,"next"),le=(e,t)=>ne(e,t,"prev"),ce=(e,{rowObjs:t,idRowObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="down"===i?1:-1,{index:n}=r,s=t[n+a];return s?s.id:void 0},he=(e,t,o,i="auto",r="auto",a=0)=>{const n=Math.min(e.x-t.x-a,0),s=Math.max(0,e.x+e.w-(t.x+t.w)+a),d=o?s:n,l=o?n:s;let c=0;switch(i){case"start":c=d;break;case"end":c=l;break;case"auto":c=(o?l<0:l>0)?l:d;break;default:return i}const h=Math.min(e.y-t.y-a,0),u=Math.max(0,e.y+e.h-(t.y+t.h)+a);let m=0;switch(r){case"top":m=h;break;case"bottom":m=u;break;case"auto":m=h<0?h:u;break;default:return r}return{dx:-c,dy:-m}},ue=({viewportLayout:e,dataBodyWidth:t,dataBodyHeight:i,viewportStartTime:r,viewportEndTime:a,scrollPosition:n,...s})=>{const{direction:d}=u.useUser(),l="rtl"===d,c=(({getRangeX:e,getRangeY:t,globalRangeX:i,globalRangeY:r,onRangeXChange:a,onRangeYChange:n,isDisabled:s=!1})=>{const d=o.useRef({min:0,max:0}),l=o.useRef({min:0,max:0});return s?{}:{onKbPanHorizontal:t=>{const{detail:{rangeRatio:o}}=t,{newRange:r}=re(o,e(),d.current,i,a);d.current=r},onKbPanVertical:e=>{const{detail:{rangeRatio:o}}=e,{newRange:i}=re(o,t(),l.current,r,n);l.current=i}}})(s),h=o.useRef({min:0,max:0}),m=o.useRef({min:0,max:0}),g=(e=0,o=0)=>{if(0!==e){const{newRange:o}=re(e/t,s.getRangeX(),h.current,s.globalRangeX,s.onRangeXChange);h.current=o}if(0!==o){const{newRange:e}=re(o/i,s.getRangeY(),m.current,s.globalRangeY,s.onRangeYChange);m.current=e}};return s.isDisabled?{}:{...c,onKbPanTaskIntoView:o=>{let s=e.idTaskObjMap.get(o.detail.id);if(!s){const i=e.allIdTaskObjMap.get(o.detail.id);if(!i)return;s=q(i,r,a,t,n,l)}const{x:d,y:c,width:h,height:u}=s,m={x:d,y:c,w:h,h:u},w={x:0,y:0,w:t,h:i},p=e.rowPadding,{dx:b,dy:x}=he(m,w,l,"auto","auto",p);g(b,x)},onKbPanRowIntoView:o=>{const r=e.allIdRowObjMap.get(o.detail.id);if(!r)return;const a={x:0,y:r.y-n,w:t,h:r.height},s={x:0,y:0,w:t,h:i},d=e.rowPadding,{dy:c}=he(a,s,l,"auto","auto",d);g(0,c)}}},me=({captureTargetRef:e,width:t,height:i,viewportStartTime:r,viewportEndTime:a,majorAxisScale:n,minorAxisScale:s,startTime:d,endTime:l,zoomParameters:c,scrollPosition:m,dataBodyHeight:g,totalRowsHeight:w,viewportLayout:p,onViewportChange:b,onScrollPositionChange:x,onCursorChange:f,isPanDisabled:v,isZoomDisabled:k})=>{const A={captureTargetRef:e,width:t,height:i,getRangeX:()=>({min:r,max:a}),getRangeY:()=>({min:m,max:m+g}),globalRangeX:{min:d,max:l},globalRangeY:{min:0,max:w},onRangeXChange:e=>{b?.({viewportStart:h.getISOString(e.min),viewportEnd:h.getISOString(e.max),majorAxisScale:n,minorAxisScale:s})},onRangeYChange:e=>{x?.({y:e.min})},isDisabled:v},{getZoomOrderViewDurationThresholds:R,...j}=c,S={captureTargetRef:e,width:t,...j,zoomOrderViewDurationThresholds:R(t),onViewportChange:b,isDisabled:k},C=(({captureTargetRef:e,width:t,height:i,getRangeX:r,getRangeY:a,globalRangeX:n,globalRangeY:s,onRangeXChange:d,onRangeYChange:l,onDragPanStart:c,onDragPanEnd:m,isDisabled:g=!1})=>{const{direction:w}=u.useUser(),p=o.useRef({min:0,max:0}),b=o.useRef({min:0,max:0}),x=o.useRef({min:0,max:0}),f=o.useRef({min:0,max:0}),v=o.useRef(!1),y=h.useDrag({captureTargetRef:e,onDragStart:()=>{x.current=r(),f.current=a(),c&&c()},onDragMove:({dx:e,dy:o})=>{v.current=!0;const{newRange:r}=re(("rtl"===w?-1:1)*e/t,x.current,p.current,n,d);p.current=r;const{newRange:a}=re(o/i,f.current,b.current,s,l);b.current=a},onDragEnd:({originalEvent:e})=>{v.current&&e.preventDefault(),v.current=!1,m&&m()},isDisabled:g});return g?{}:y})({...A,onDragPanStart:()=>f?.({cursor:"grabbing"}),onDragPanEnd:()=>f?.({cursor:"grabbingUnset"})}),I=(({width:e,height:t,getRangeX:i,getRangeY:r,globalRangeX:a,globalRangeY:n,onRangeXChange:s,onRangeYChange:d,isDisabled:l=!1})=>{const{direction:c}=u.useUser(),m=o.useRef({min:0,max:0}),g=o.useRef({min:0,max:0}),w=h.useWheel({onWheel:({deltaX:o,deltaY:l,ctrlKey:h})=>{if(h)return;const{newRange:u}=re(("rtl"===c?-1:1)*o/e,i(),m.current,a,s);m.current=u;const{newRange:w}=re(l/t,r(),g.current,n,d);g.current=w},isDisabled:l});return l?{}:w})(A),P=ue({...A,viewportLayout:p,dataBodyWidth:t,dataBodyHeight:g,viewportStartTime:r,viewportEndTime:a,scrollPosition:m}),L=(({captureTargetRef:e,width:t,startTime:o,endTime:i,viewportStartTime:r,viewportEndTime:a,majorAxisZoomOrder:n,majorAxisZoomOrderIndex:s,minorAxisZoomOrder:d,minorAxisZoomOrderIndex:l,zoomOrderViewDurationThresholds:c,minZoomViewportDuration:m,maxZoomViewportDuration:g,onViewportChange:w,isDisabled:p=!1})=>{const{direction:b}=u.useUser(),x="rtl"===b,f=T.usePinch({captureTargetRef:e,onPinchZoomChange:({origin:{x:e},delta:u})=>{const p=h.getPositionTime(e,r,a,t,x);h.zoomTime(p,r,a,o,i,h.getGestureZoomFactor(u),m,g,c,d,l,n,s,w)},isDisabled:p});return p?{}:f})(S),O=(({width:e,startTime:t,endTime:o,viewportStartTime:i,viewportEndTime:r,majorAxisZoomOrder:a,majorAxisZoomOrderIndex:n,minorAxisZoomOrder:s,minorAxisZoomOrderIndex:d,zoomOrderViewDurationThresholds:l,minZoomViewportDuration:c,maxZoomViewportDuration:m,onViewportChange:g,isDisabled:w=!1})=>{const{direction:p}=u.useUser(),b="rtl"===p,x=h.useWheel({onWheel:({x:u,deltaY:w,ctrlKey:p})=>{if(!p)return;const x=h.getPositionTime(u,i,r,e,b);h.zoomTime(x,i,r,t,o,h.getGestureZoomFactor(w),c,m,l,s,d,a,n,g)},isDisabled:w});return w?{}:x})(S),E=(({startTime:e,endTime:t,viewportStartTime:o,viewportEndTime:i,majorAxisZoomOrder:r,majorAxisZoomOrderIndex:a,minorAxisZoomOrder:n,minorAxisZoomOrderIndex:s,zoomOrderViewDurationThresholds:d,minZoomViewportDuration:l,maxZoomViewportDuration:c,onViewportChange:u,isDisabled:m=!1})=>m?{}:{onKbZoomIn:m=>{const g=o+(i-o)/2;h.zoomTime(g,o,i,e,t,m.detail.zoomFactor,l,c,d,n,s,r,a,u)},onKbZoomOut:m=>{const g=o+(i-o)/2;h.zoomTime(g,o,i,e,t,m.detail.zoomFactor,l,c,d,n,s,r,a,u)}})(S);return{gestureProps:y.mergeProps(C,I,P,L,O,E)}},ge=({targetRef:e,datatip:o,rowData:i,dateFormatter:r,hoveredTaskObj:a,focusedTaskObj:n,currentTaskInteraction:s,dataBodyRegion:d})=>{const{direction:l}=u.useUser(),c="rtl"===l,h=R.useTranslationBundle("@oracle/oraclejet-preact"),m={hover:{taskObj:a,anchor:"pointer"},focus:{taskObj:n,anchor:"element"},none:{taskObj:void 0,anchor:"pointer"}},{anchor:g,taskObj:w}=m[s],p=o??(e=>{const{translations:o,dateFormatter:i}=e;return({data:e,rowData:r})=>{if(void 0!==e.accessibleLabel)return{content:e.accessibleLabel};const{start:a,end:n}=K(e),s=a===n,d=[];return r.label&&d.push({key:o.gantt_labelRow(),value:r.label}),s?d.push({key:o.gantt_labelDate(),value:i(a)}):(d.push({key:o.gantt_labelStart(),value:i(a)}),d.push({key:o.gantt_labelEnd(),value:i(n)})),e.label&&d.push({key:o.gantt_labelLabel(),value:e.label}),{content:t.jsx(A.VisTabularDatatip,{tableData:d})}}})({translations:h,dateFormatter:r,isRTL:c}),{content:b,borderColor:x}=w?p(((e,t)=>{const{index:o,rowIndex:i}=t;return{data:e[i].tasks[o],rowData:e[i]}})(i,w)):{content:void 0,borderColor:void 0},f=w&&"element"===g?{x:w.x,y:w.y+d.y,width:w.width,height:w.height}:void 0;return te({content:b,anchor:g,placement:"top-start",offset:v.calculateOffset(c,d.w,f),borderColor:x,targetFocusRef:e})};function we({innerRef:e,isRTL:r,scrollPosition:n,onScrollPositionChange:s,isViewportDefined:l,onViewportChange:c,zoomParameters:u,zooming:m,selectedIds:g,selectionMode:w,onSelectionChange:p,hoveredTaskId:b,onTaskHoverChange:x,currentTask:f,onCurrentTaskChange:v,currentTaskInteraction:T,ariaActive:A,getTimeAxesLayout:R,getResolvedViewportLayout:j,rowDataLayout:S,rowAxisSeparator:C,datatip:I,majorAxis:P,minorAxis:L,dataBody:O}){return l?t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:function(d,l){const E=R(d),{position:D,majorAxis:M,minorAxis:V,viewportStartTime:z,viewportEndTime:B,startTime:_,endTime:F}=E,H=M&&M.zoomOrder[M.zoomOrderIndex],U=V.zoomOrder[V.zoomOrderIndex],W=M?M.height:0,{height:Z}=V,Y=l-(W+Z),X=j(S,z,B,n,d,Y,r),G=((e,t)=>{const o=e.selectionProps.selectedIds||[],i=[];o.forEach((e=>{const o=t.get(e);o&&i.push(o)}));const r=N(e.selectionProps.selectionMode)?e.hoverProps.hoveredTaskId:void 0,a=void 0!==r?t.get(r):void 0,n=e.currentProps.currentTask,s=!0===n?.isFocused,d=n?.id,l=s&&void 0!==d?t.get(d):void 0;return{selectedTaskObjs:i,hoveredTaskObj:a,focusedTaskObj:l}})({selectionProps:{selectedIds:g,selectionMode:w},hoverProps:{hoveredTaskId:b},currentProps:{currentTask:f}},X.idTaskObjMap),K=h.getDefaultDateFormatter(U,z),$=M&&P(M),q=L(V),J=O({width:d,height:Y,viewportLayout:X,minorAxisLayout:V,effectsLayout:G,dateFormatter:K,ariaActiveTask:A}),Q={top:{components:[$,q,J],dataBodyPos:l-Y},bottom:{components:[J,q,$],dataBodyPos:0}},[ee,te]=o.useState(),oe=e=>te((t=>void 0===t?e.cursor:"grabbing"===t&&"grabbingUnset"!==e.cursor?"grabbing":"grabbingUnset"!==e.cursor&&"pointerUnset"!==e.cursor?e.cursor:void 0)),{gestureProps:ie}=me({captureTargetRef:e,width:d,height:l,viewportStartTime:z,viewportEndTime:B,majorAxisScale:H,minorAxisScale:U,startTime:_,endTime:F,zoomParameters:u,scrollPosition:n,dataBodyHeight:Y,totalRowsHeight:S.totalRowsHeight,viewportLayout:X,onViewportChange:e=>{c&&(c(e),x({id:void 0}))},onScrollPositionChange:e=>{s&&(s(e),x({id:void 0}))},onCursorChange:oe,isPanDisabled:!1,isZoomDisabled:"off"===m}),re={x:0,y:Q[D].dataBodyPos,w:d,h:Y},{gestureProps:ae,selectionContent:ne}=(({viewportLayout:e,viewportYOffset:t,dataBodyRegion:o,viewportStartTime:i,viewportEndTime:r,width:a,isRTL:n,selectionProps:s,hoverProps:d,currentProps:l,onCursorChange:c})=>{const{x:u,y:m,w:g,h:w}=o,p=N(s.selectionMode),b=o=>{const s=e.allRowObjs,d=e.spatialIndex,{offsetX:l,offsetY:c}=o;if(l<u||l>u+g||c<m||c>m+w)return;const p={time:h.getPositionTime(l,i,r,a,n),y:c+t},b=((e,t,{time:o,y:i})=>{const r=t.search(o,i,o,i);if(0===r.length)return;let a=r[0];for(let t=0;t<e.length;t++){const o=e[t];for(let e=0;e<o.taskObjs.length;e++){if(0===a)return{rowIndex:t,taskIndex:e};a-=1}}})(s,d.tasks,p);if(!b)return;const{rowIndex:x,taskIndex:f}=b;return s[x].taskObjs[f].id},x={onPointerMove:e=>{const t=b(e);t!==d.hoveredTaskId&&d.onTaskHoverChange({id:t}),p&&c?.({cursor:void 0!==t?"pointer":"pointerUnset"})}},f={onPointerUp:e=>{const t=b(e);void 0!==t&&(p&&c?.({cursor:"pointer"}),t!==l?.currentTask?.id&&l.onCurrentTaskChange({id:t,isFocused:!1}))}},{selectionProps:{onKeyUp:v,...T},selectionContent:A}=k.useSelection({idExtracter:b,selection:s.selectedIds,selectionMode:s.selectionMode,onChange:s.onSelectionChange,getDataById:e.getTaskDataById});return{gestureProps:y.mergeProps(x,f,T),selectionContent:A}})({viewportLayout:X,viewportYOffset:n-Q[D].dataBodyPos,dataBodyRegion:re,viewportStartTime:z,viewportEndTime:B,width:d,isRTL:r,selectionProps:{selectedIds:g,selectionMode:w,onSelectionChange:p},hoverProps:{hoveredTaskId:b,onTaskHoverChange:x},currentProps:{currentTask:f,onCurrentTaskChange:v},onCursorChange:oe}),{datatipContent:se,datatipProps:de}=ge({datatip:I,rowData:X.rowData,dateFormatter:K,hoveredTaskObj:b&&X.idTaskObjMap.get(b),focusedTaskObj:G.focusedTaskObj,currentTaskInteraction:T,dataBodyRegion:re,targetRef:e}),le=y.mergeProps(ie,ae,de);return t.jsxs("div",{ref:e,...le,class:i.classNames([a.timeAxisDataBodyStyles.base,a.timeAxisDataBodyStyles.pannable,r?C&&a.timeAxisDataBodyStyles.withRowAxisSeparatorRight:C&&a.timeAxisDataBodyStyles.withRowAxisSeparatorLeft]),style:{cursor:ee},children:[Q[D].components,se,ne]})}}):t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:e=>{const t=R(e),{majorAxis:o,minorAxis:i,viewportStartTime:r,viewportEndTime:a}=t,n=o&&o.zoomOrder[o.zoomOrderIndex],s=i.zoomOrder[i.zoomOrderIndex];return c?.({viewportStart:h.getISOString(r),viewportEnd:h.getISOString(a),majorAxisScale:n,minorAxisScale:s}),null}})}function pe({width:e,height:o,positions:i}){const r=i.map((t=>`M0,${t} H${e}`)).join(" ");return t.jsx("svg",{width:e,height:o,children:t.jsx("path",{class:a.horizontalGridlinesStyles.base,d:r})})}function be({width:e,height:i,rowData:r,dateFormatter:a,ariaActiveId:n,ariaActiveTaskObj:s}){const d=R.useTranslationBundle("@oracle/oraclejet-preact"),l=o.useRef(0),c=o.useMemo((()=>{const e=0===l.current?[n,v.getRandomId()]:[v.getRandomId(),n];return l.current=Math.abs(l.current-1),e}),[n]),h=s&&Q(s,r,a,d);return t.jsxs("div",{style:{width:e,height:i},children:[t.jsx("div",{role:"img",id:c[0],"aria-label":h}),t.jsx("div",{role:"img",id:c[1],"aria-label":h})]})}function xe({width:e,height:o,rowData:i,dateFormatter:r,layoutObjs:n}){const s=R.useTranslationBundle("@oracle/oraclejet-preact"),d=[];return n.forEach((e=>{e.taskObjs.forEach((e=>{const o=Q(e,i,r,s);d.push(t.jsx("div",{role:"img","aria-label":o,class:a.taskMobileAccStyles.content,style:{width:e.width,height:e.height,top:e.y,left:e.x}}))}))})),t.jsx("div",{class:a.taskMobileAccStyles.base,style:{width:e,height:o},children:d})}function fe({width:e,height:o,rowData:i,dateFormatter:r,ariaActiveId:a,ariaActiveTaskObj:n,layoutObjs:s}){return c.supportsMobileScreenReader?t.jsx(xe,{width:e,height:o,layoutObjs:s,rowData:i,dateFormatter:r}):t.jsx(be,{width:e,height:o,rowData:i,dateFormatter:r,ariaActiveId:a,ariaActiveTaskObj:n})}function ve({width:e,height:o,layoutObjs:i}){const r=i.filter((e=>e.isSelected)),n=r.map((({y:t,height:o})=>`M1,${t} H${e-1} V${t+o} H1 Z`)).join(" ");return r.length>0?t.jsx("svg",{width:e,height:o,children:t.jsx("path",{class:a.rowBackgroundStyles.selected,d:n})}):null}const ye=(e,t)=>{const{x:o,y:i,width:r,height:a,borderRadius:n,stroke:s,strokeWidth:d,padding:l}=t,c=o-l,h=i-l,u=r+2*l,m=a+2*l,g=j.rectangleWithBorderRadius(c,h,u,m,n,Math.min(u,m),"0"),w=new Path2D(g);e.strokeStyle=s,e.lineWidth=d,e.stroke(w)},Te=(e,t,o)=>{const i="hovered"===o,{x:r,y:a,width:n,height:s,borderRadius:d,fill:l,stroke:c,strokeWidth:h}=t,u=j.rectangleWithBorderRadius(r,a,n,s,d,Math.min(n,s),"0"),m=new Path2D(u);switch(i&&((e,t)=>{e.shadowColor=t.shadowColor,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY,e.shadowBlur=t.shadowBlur})(e,t.hoverEffect.shadow),e.fillStyle="#ffffff",e.fill(m),i&&(e=>{e.shadowColor="transparent",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0})(e),e.strokeStyle=c,e.fillStyle=l,e.lineWidth=h,e.fill(m),e.stroke(m),o){case"selected":ye(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.selectionEffect});break;case"hovered":ye(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.hoverEffect});break;case"focused":ye(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.focusEffect});break;case void 0:break;default:return o}};function ke({width:e,height:o,layoutObj:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i&&Te(e,i,"focused")}})}function Ae({width:e,height:o,layoutObj:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i&&Te(e,i,"hovered")}})}function Re({width:e,height:o,layoutObjs:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i.forEach((t=>Te(e,t,"selected")))}})}function je({width:e,height:o,layoutObjs:{selectedTaskObjs:i,hoveredTaskObj:r,focusedTaskObj:a}}){return t.jsxs(h.TimeComponentLayersStack,{width:`${e}px`,height:`${o}px`,children:[t.jsx(ke,{width:e,height:o,layoutObj:a}),t.jsx(Re,{width:e,height:o,layoutObjs:i}),t.jsx(Ae,{width:e,height:o,layoutObj:r})]})}function Se({x:e,y:o,width:r,height:n,label:s,isInner:d,textAlign:c,labelStyle:h}){return t.jsx("div",{"aria-hidden":"true",class:i.classNames([a.taskLabelLayerStyles.label,d&&a.taskLabelLayerStyles.innerLabel]),style:{left:e,top:o,width:r,height:n,textAlign:c,...h},children:t.jsx(l.Text,{variant:h?.color?"inherit":"primary",truncation:"ellipsis",size:"md",weight:"inherit",children:s})})}function Ce({width:e,height:o,layoutObjs:i}){return t.jsx("div",{class:a.taskLabelLayerStyles.base,style:{width:e,height:o},children:i.map((e=>t.jsx(Se,{...e})))})}function Ie({width:e,height:o,layoutObjs:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i.forEach((t=>{t.taskObjs.forEach((t=>Te(e,t)))}))}})}function Pe({width:e,height:o,minorAxisLayout:{minorGridTicksPos:i,majorGridTicksPos:r},viewportLayout:{gridlines:a,rowData:n,rowObjs:s,taskLabelObjs:d,horizontalGridlinesPos:l,idTaskObjMap:c},effectsLayout:u,dateFormatter:m,ariaActiveTask:g}){return t.jsxs(h.TimeComponentLayersStack,{width:`${e}px`,height:`${o}px`,children:[t.jsx(ve,{width:e,height:o,layoutObjs:s}),"on"===a.vertical&&t.jsx(h.TimeComponentVerticalGridlines,{width:e,height:o,positions:i,variant:"minor"}),"on"===a.vertical&&r&&t.jsx(h.TimeComponentVerticalGridlines,{width:e,height:o,positions:r,variant:"major"}),l&&t.jsx(pe,{width:e,height:o,positions:l}),t.jsx(fe,{width:e,height:o,layoutObjs:s,rowData:n,dateFormatter:m,ariaActiveId:g?.ariaId,ariaActiveTaskObj:g&&c.get(g.dataId)}),t.jsx(Ie,{width:e,height:o,layoutObjs:s}),t.jsx(je,{width:e,height:o,layoutObjs:u}),t.jsx(Ce,{width:e,height:o,layoutObjs:d})]})}function Le({visRef:e,overlayControlsContainerRef:o,panZoomLayout:i,getTimeAxesLayout:r,getHorizontalScrollbarLayout:a,onHorizontalScrollChange:n,getVerticalScrollbarLayout:s,onVerticalScrollChange:d,rowAxisSeparator:l=!1,zoomParameters:c,zooming:u="on",isViewportDefined:m,onViewportChange:g,getResolvedViewportLayout:w,datatip:p,rowDataLayout:b,isRTL:x,scrollPosition:f,onScrollPositionChange:v,selectedIds:y,selectionMode:T,onSelectionChange:k,hoveredTaskId:A,onTaskHoverChange:R,currentTask:j,onCurrentTaskChange:S,currentTaskInteraction:C,ariaActive:I,width:P,height:L}){return t.jsx(h.TimeComponentPanZoomLayout,{overlayControlsContainerRef:o,...i,width:P,height:L,overlayControls:"on"===u&&c&&m?t.jsx(h.TimeComponentZoomControls,{position:i.overlayControlsPosition,zoomParameters:c,onViewportChange:g}):void 0,verticalControl:t.jsx(h.TimeComponentVerticalScrollbarContainer,{getLayout:s,onRangeChange:d,children:e=>t.jsx(h.TimeComponentVerticalScrollbar,{...e})}),horizontalControl:t.jsx(h.TimeComponentHorizontalScrollbarContainer,{getLayout:a,onRangeChange:n,children:e=>t.jsx(h.TimeComponentHorizontalScrollbar,{...e})}),vis:t.jsx(we,{innerRef:e,isRTL:x,scrollPosition:f,onScrollPositionChange:v,isViewportDefined:m,onViewportChange:g,zoomParameters:c,zooming:u,rowAxisSeparator:l,selectedIds:y,selectionMode:T,onSelectionChange:k,hoveredTaskId:A,onTaskHoverChange:R,currentTask:j,onCurrentTaskChange:S,currentTaskInteraction:C,ariaActive:I,getTimeAxesLayout:r,getResolvedViewportLayout:w,rowDataLayout:b,datatip:p,majorAxis:e=>t.jsx(h.TimeComponentHorizontalTimeAxis,{...e}),minorAxis:e=>t.jsx(h.TimeComponentHorizontalTimeAxis,{...e}),dataBody:e=>t.jsx(Pe,{...e})})})}const Oe=(e,t,o)=>t.map((t=>e(t,o))),Ee=e=>void 0===e?"0px":void 0!==e.height?`${e.height}px`:r.bridgeValues.horizontalTimeAxisHeight,De=(e,t)=>{const o=((e,t)=>void 0===t?0:void 0!==t.height?t.height:e)(e,t),{scale:i,zoomOrder:r=[t.scale]}=t;return{height:o,zoomOrder:r,zoomOrderIndex:r.indexOf(i)}},Me=(e,t)=>Date.parse(e.getPreviousDate(new Date(t).toISOString())),Ve=(e,t)=>Date.parse(e.getNextDate(new Date(t).toISOString())),ze=(e,t,o)=>{const i=[Me(e,t)];for(;i[i.length-1]<o;)i.push(Ve(e,i[i.length-1]));return i},Be=(e,t)=>{const{type:o,params:i}=t;switch(o){case"exact":{const t=new Map,o=ze(e,i.startTime,i.endTime);for(let e=0;e<o.length-1;e++)t.set(o[e],o[e+1]);return{intervals:t,numIntervals:t.size}}case"approximate":{const{startTime:t,endTime:o,numSections:r,numIntervalsPerSection:a}=i,n=((e,t,o,i,r)=>{const a=new Map,n=Math.floor((o-t)/i);for(let s=0;s<i;s++){const i=t+n*s,d=Math.min(t+n*(s+1),o);let l=Me(e,i);for(let t=0;t<r&&!(l>=d);t++){const t=Ve(e,l);a.set(l,t),l=t}l=Me(e,d-1),a.set(l,Ve(e,l))}return a})(e,t,o,r,a),s=[...n.keys()],d=s.reduce(((e,t)=>e+(n.get(t)-Number(t))),0)/s.length;return{intervals:n,numIntervals:(o-t)/d}}default:return o}},_e=(e,t)=>e.formatter(new Date(t).toISOString()),Fe=(e,t,o)=>{const i=ze(e,t,o),r=i.slice(0,i.length-1).map((t=>_e(e,t)));return{ticks:i,labels:r}},He=(e,t,o,i,r="start",a,n,s,d,l,c,u,m,g)=>{const w=t+o,p=c,b=u,x=a.slice(0,a.length-1),f=n.map((e=>h.getTimePosition(e,p,b,m,g))),v=a.map((e=>h.getTimePosition(e,p,b,m,g))),y=v.slice(1).map(((e,t)=>g?v[t]-e:e-v[t])),T=a[0]<d;T&&(v[0]=0,y[0]=v[1]),a[a.length-1]>l&&(v[v.length-1]=g?0:m,y[y.length-1]=g?v[v.length-2]-v[v.length-1]:v[v.length-1]-v[v.length-2]);const k=v.slice(0,v.length-1).map(((e,t)=>g?e-y[t]:e)),A=Oe(e,s,i).map((({width:e},t)=>Math.floor(e)-Math.floor(y[t]-w)>0));return{font:i,labelPosition:r,labels:s,labelTicks:x,labelPositions:k,isLabelTruncated:A,isIntervalStartTruncated:T,intervalWidths:y,gridTicksPos:f,isRTL:g}},Ue=(e,t,o,i,r,a,n,s)=>{const{zoomOrderMinLengthFactor:d,maxNumIntervals:l}=((e,t,o,i,r,a,n)=>{const s=t+o,d=a.map((e=>Be(e,n))),l=Math.max(...d.map((({numIntervals:e})=>e)));return{zoomOrderMinLengthFactor:d.map((({intervals:t},o)=>{const n=a[o],d=[...t.keys()],l=d.map((e=>_e(n,t.get(e)))),c=d.map((e=>t.get(e)-e)),h=Oe(e,l,r),u=Math.min(...c.map(((e,t)=>e/Math.max(i,h[t].width+s))));return u})),maxNumIntervals:l}})(e,t,o,i,r,s,{type:"approximate",params:{numSections:4,numIntervalsPerSection:10,startTime:a,endTime:n}});return{getZoomOrderViewDurationThresholds:e=>d.map((t=>e*t)),minorAxisZoomOrder:s,minZoomViewportDuration:(n-a)/l,maxZoomViewportDuration:n-a,startTime:a,endTime:n}},We=(e,t,o,i,r,a,n,s,d,l,c,h,u,m)=>g=>{const{zoomOrder:w,zoomOrderIndex:p}=c,b=a(g),{viewportStartTime:x,viewportEndTime:f}=((e,t,o,i,r)=>void 0!==i&&void 0!==r?{viewportStartTime:i,viewportEndTime:r}:void 0!==i&&void 0===r?{viewportStartTime:i,viewportEndTime:Math.min(o,i+e)}:void 0===i&&void 0!==r?{viewportStartTime:Math.max(t,r-e),viewportEndTime:r}:{viewportStartTime:t,viewportEndTime:Math.min(o,t+e)})(b[p],s,d,u,m),{majorAxisLayout:v,minorAxisLayout:y}=((e,t,o,i,r,a,n,s,d,l,c,h,u)=>{const m=u?Fe(u,s,d):{ticks:[],labels:[]},g=Fe(h,s,d),{ticks:w,labels:p}=m,{ticks:b,labels:x}=g,f=new Set(w),v=new Set(b),y=0===w.filter((e=>e>s&&e<d&&!v.has(e))).length,T=y?b.filter((e=>!f.has(e))):b,k=u&&He(e,t,o,i,u.labelPosition,w,w,p,a,n,s,d,l,c),A=He(e,t,o,r,h.labelPosition,b,T,x,a,n,s,d,l,c);return{minorAxisLayout:{majorGridTicksPos:y&&k?k.gridTicksPos:void 0,minorGridTicksPos:A.gridTicksPos,variant:"minor",...A},majorAxisLayout:k&&{majorGridTicksPos:k.gridTicksPos,minorGridTicksPos:void 0,variant:"major",...k}}})(e,t,o,i,r,s,d,x,f,g,l,w[p],h&&h.zoomOrder[h.zoomOrderIndex]);return{position:n,startTime:s,endTime:d,viewportStartTime:x,viewportEndTime:f,width:g,majorAxis:v&&{width:g,...h,...v},minorAxis:{width:g,...c,...y}}},Ze=[{tokenVar:r.bridgeValues.horizontalTimeAxisHeight,key:"defaultTimeAxisHeight",cssProp:"height"},{tokenVar:r.bridgeValues.horizontalTimeAxisLabelPaddingInlineStart,key:"timeAxisLabelPaddingInlineStart",cssProp:"margin-inline-start"},{tokenVar:r.bridgeValues.horizontalTimeAxisLabelPaddingInlineEnd,key:"timeAxisLabelPaddingInlineEnd",cssProp:"margin-inline-end"},{tokenVar:P.xUnits(12.5),key:"timeAxisLabelMinWidth",cssProp:"min-width"},{tokenVar:I.typographyVars.body.md.fontSize,key:"majorAxisFontSize",cssProp:"font-size"},{tokenVar:I.typographyVars.body.sm.fontSize,key:"minorAxisFontSize",cssProp:"margin-block-start"},{tokenVar:I.typographyVars.body.md.fontWeight.semibold,key:"majorAxisFontWeight"},{tokenVar:I.typographyVars.body.sm.fontWeight.regular,key:"minorAxisFontWeight"}],Ye=e=>"0"===e?0:Number(e.substring(0,e.length-2)),Xe=[{tokenVar:a.bridgeValues.rowLabelPaddingInlineStart,key:"rowLabelPaddingInlineStart",cssProp:"padding-inline-start"},{tokenVar:a.bridgeValues.rowLabelPaddingInlineStart,key:"rowLabelPaddingInlineEnd",cssProp:"padding-inline-end"},{tokenVar:P.xUnits(3),key:"rowPaddingTop",cssProp:"padding-top"},{tokenVar:P.xUnits(3),key:"rowPaddingBottom",cssProp:"padding-bottom"},{tokenVar:P.xUnits(6),key:"taskHeight",cssProp:"min-height"},{tokenVar:P.xUnits(1),key:"taskBorderRadius",cssProp:"border-radius"},{tokenVar:a.bridgeValues.taskBgColor,key:"taskBgColor",cssProp:"background-color"},{tokenVar:a.bridgeValues.taskBorderColor,key:"taskBorderColor",cssProp:"border-color"},{tokenVar:a.bridgeValues.taskEffectBorderColor,key:"taskEffectBorderColor",cssProp:"outline-color"},{tokenVar:I.baseVars.boxShadow.md,key:"taskEffectBoxShadow",cssProp:"box-shadow"}],Ge=e=>{const[t,o,i,r,...a]=e.split(" ").reverse();return{shadowColor:a.reverse().join(" "),shadowOffsetX:Ye(r??"0"),shadowOffsetY:Ye(i??"0"),shadowBlur:Ye(o??"0")}},Ke=e=>e.endsWith("px")?{value:Number(e.substring(0,e.length-2)),suffix:"px"}:e.endsWith("%")?{value:Number(e.substring(0,e.length-1)),suffix:"%"}:{value:1/0,suffix:void 0},Ne=Ze.concat(Xe),$e=({rowAxis:e,gridlines:{horizontal:o="off",vertical:i="on"}={horizontal:"off",vertical:"on"},axisPosition:a="top",minorAxis:n,majorAxis:s,start:d,end:l,viewportStart:c,viewportEnd:m,onViewportChange:g,scrollPosition:{y:w=0}={y:0},onScrollPositionChange:p,rows:b,selectedIds:x,selectionMode:f="none"})=>{const{direction:v}=u.useUser(),{resolvedVars:y,cssContent:T}=S.useCssVars(Ne),{textMeasureContent:k,getTextDimensions:A}=C.useTextDimensions(),R="rtl"===v,j=t.jsxs(t.Fragment,{children:[k,T]}),{startTime:I,endTime:L,viewportStartTime:O,viewportEndTime:E,isValidTimeConfig:M}=((e,t,o,i)=>{const r=h.parseDate(e),a=h.parseDate(t),n=o?h.parseDate(o):void 0,s=i?h.parseDate(i):void 0,d=((e,t,o,i)=>t>e&&(void 0===o||void 0===i||i>o)&&(void 0===o||o>=e&&o<t)&&(void 0===i||i>e&&i<=t))(r,a,n,s);return{startTime:r,endTime:a,viewportStartTime:n,viewportEndTime:s,isValidTimeConfig:d}})(d,l,c,m);if(!A||0===Object.keys(y).length)return{isRTL:R,layoutContent:j,isValidConfig:M,isReady:!1};if(!M)return{isRTL:R,layoutContent:j,isValidConfig:M,isReady:!0};const V=void 0===e?"off":"on",z="on"===e?{}:e,B=z?.width??"max-content",_=z?.maxWidth??"none",F=z?.labelRenderer??D,H=((e,t,o)=>{const i=Ee(t);return{position:e,height:`calc(${Ee(o)} + ${i})`}})(a,n,s),U={top:{overlayControlsPosition:"topEnd",verticalControlTopGap:(W=H).height,verticalControlBottomGap:"0"},bottom:{overlayControlsPosition:"bottomEnd",verticalControlTopGap:"0",verticalControlBottomGap:W.height}}[W.position];var W;const Z="on"===V?((e,t)=>{const o=`${P.xUnits(1)} + ${r.bridgeValues.horizontalScrollbarHeight}`,i={top:{rowAxisTopGap:e.height,rowAxisBottomGap:`calc(${o})`},bottom:{rowAxisTopGap:"0",rowAxisBottomGap:`calc(${e.height} + ${o})`}},a=Ke(t.width),n=Ke(t.maxWidth);return{...i[e.position],resolvedRowAxisWidth:a,resolvedRowAxisMaxWidth:n,label:t.label}})(H,{width:B,maxWidth:_,label:F}):void 0,Y=(e=>({defaultTimeAxisHeight:Ye(e.defaultTimeAxisHeight),timeAxisLabelPaddingInlineStart:Ye(e.timeAxisLabelPaddingInlineStart),timeAxisLabelPaddingInlineEnd:Ye(e.timeAxisLabelPaddingInlineEnd),timeAxisLabelMinWidth:Ye(e.timeAxisLabelMinWidth),majorAxisFont:{fontSize:e.majorAxisFontSize,fontWeight:e.majorAxisFontWeight},minorAxisFont:{fontSize:e.minorAxisFontSize,fontWeight:e.minorAxisFontWeight}}))(y),X=s&&De(Y.defaultTimeAxisHeight,s),G=De(Y.defaultTimeAxisHeight,n),K=Ue(A,Y.timeAxisLabelPaddingInlineStart,Y.timeAxisLabelPaddingInlineEnd,Y.timeAxisLabelMinWidth,Y.minorAxisFont,I,L,G.zoomOrder),N=We(A,Y.timeAxisLabelPaddingInlineStart,Y.timeAxisLabelPaddingInlineEnd,Y.majorAxisFont,Y.minorAxisFont,K.getZoomOrderViewDurationThresholds,a,I,L,R,G,X,O,E),q=(e=>({rowPaddingTop:Ye(e.rowPaddingTop),rowPaddingBottom:Ye(e.rowPaddingBottom)}))(y),Q=(e=>({taskHeight:Ye(e.taskHeight),taskBorderRadius:e.taskBorderRadius,taskBgColor:e.taskBgColor,taskBorderColor:e.taskBorderColor,taskEffectBorderColor:e.taskEffectBorderColor,taskEffectBoxShadow:Ge(e.taskEffectBoxShadow)}))(y),ee=$(b,{...q,...Q},{horizontal:o,vertical:i},{selectedIds:x,selectionMode:f}),te=(e=>({rowLabelPaddingInlineStart:Ye(e.rowLabelPaddingInlineStart),rowLabelPaddingInlineEnd:Ye(e.rowLabelPaddingInlineEnd)}))(y),oe={labelPaddingInlineStart:te.rowLabelPaddingInlineStart,labelPaddingInlineEnd:te.rowLabelPaddingInlineEnd,rowData:ee.rowData,rowObjs:ee.rowObjs,idRowObjMap:ee.idRowObjMap,isHorizontalGridlinesVisible:"on"===o},ie=((e,t,o,i,r)=>a=>{const n=t-e,s=i-o,d=a*n/s,l=a*(e-o)/s,c=r?a-l-d:l;return{thumbWidth:d,thumbLeft:r?void 0:l,thumbRight:r?l:void 0,draggableRegion:{xMin:c,xMax:c+d,yMin:-1/0,yMax:1/0},getNewRange:e=>{const t=r?Math.max(0,a-e-d):e,l=Math.min(o+t/a*s,i-n);return{newMin:l,newMax:l+n}}}})(O??I,E??L,I,L,R),re=(ae=w,ne=void 0,se=0,de=ee.totalRowsHeight,e=>{const t=(ne??e+ae)-ae,o=de-se,i=Math.min(e,e*t/o),r=Math.max(0,e*(ae-se)/o);return{thumbHeight:i,thumbTop:r,draggableRegion:{xMin:-1/0,xMax:1/0,yMin:r,yMax:r+i},getNewRange:i=>{const r=Math.max(0,Math.min(se+i/e*o,de-t));return{newMin:r,newMax:r+t}}}});var ae,ne,se,de;return{scrollPosition:w,panZoomLayout:U,withRowAxisLayout:Z,getTimeAxesLayout:N,zoomParameters:void 0!==O&&void 0!==E?{viewportStartTime:O,viewportEndTime:E,minorAxisZoomOrderIndex:G.zoomOrderIndex,majorAxisZoomOrder:X?.zoomOrder,majorAxisZoomOrderIndex:X?.zoomOrderIndex,...K}:void 0,rowDataLayout:ee,rowAxisLayout:oe,getResolvedViewportLayout:J,getHorizontalScrollbarLayout:ie,onHorizontalScrollChange:(e,t)=>{g?.({viewportStart:h.getISOString(e),viewportEnd:h.getISOString(t),majorAxisScale:s?.scale,minorAxisScale:n.scale})},getVerticalScrollbarLayout:re,onVerticalScrollChange:e=>{p?.({y:e})},isRTL:R,layoutContent:j,isValidConfig:M,isReady:!0}},qe=({visRef:e,isDisabled:t=!1})=>t?{}:{onKeyDown:t=>{switch(t.key){case"=":case"+":{const o=new CustomEvent("KbZoomIn",{detail:{zoomFactor:h.DEFAULT_ZOOM_IN_FACTOR}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"-":case"_":{const o=new CustomEvent("KbZoomIn",{detail:{zoomFactor:h.DEFAULT_ZOOM_OUT_FACTOR}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"PageUp":{const o=t.shiftKey?new CustomEvent("KbPanHorizontal",{detail:{rangeRatio:.25}}):new CustomEvent("KbPanVertical",{detail:{rangeRatio:.25}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"PageDown":{const o=t.shiftKey?new CustomEvent("KbPanHorizontal",{detail:{rangeRatio:-.25}}):new CustomEvent("KbPanVertical",{detail:{rangeRatio:-.25}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}}}},Je=({rowDataLayout:e,currentTask:t,onCurrentTaskChange:o,isRTL:i,isDisabled:r=!1})=>r?{}:{onKeyDown:r=>{switch(r.key){case"ArrowRight":{const a=t&&(i?le(t.id,e):de(t.id,e));void 0!==a&&o({id:a,isFocused:!0}),L.cancelEvent(r);break}case"ArrowLeft":{const a=t&&(i?de(t.id,e):le(t.id,e));void 0!==a&&o({id:a,isFocused:!0}),L.cancelEvent(r);break}case"ArrowUp":{const i=t&&((e,t)=>se(e,t,"up"))(t.id,e);void 0!==i&&o({id:i,isFocused:!0}),L.cancelEvent(r);break}case"ArrowDown":{const i=t&&((e,t)=>se(e,t,"down"))(t.id,e);void 0!==i&&o({id:i,isFocused:!0}),L.cancelEvent(r);break}}}},Qe=({rowDataLayout:e,currentRowLabel:t,onCurrentRowLabelChange:o,isDisabled:i=!1})=>i?{}:{onKeyDown:i=>{switch(i.key){case"ArrowUp":{const r=t&&((e,t)=>ce(e,t,"up"))(t.id,e);void 0!==r&&o({id:r,isFocused:!0}),L.cancelEvent(i);break}case"ArrowDown":{const r=t&&((e,t)=>ce(e,t,"down"))(t.id,e);void 0!==r&&o({id:r,isFocused:!0}),L.cancelEvent(i);break}}}},et=({visRef:e,rowAxisRef:t,rowDataLayout:i,navigationModes:r,selectionProps:a,isRTL:n,isDisabled:s=!1})=>{const d=o.useRef("tasks"),{onKeyUp:l}=k.useSelection({idExtracter:e=>{if("tasks"===d.current&&"keyup"===e.type)return r.tasks.currentItem?.id},selection:a.selectedIds,selectionMode:a.selectionMode,onChange:a.onSelectionChange,getDataById:i?.getTaskDataById||(()=>{})}).selectionProps,c="tasks"===d.current?{onKeyUp:l}:{},h=qe({visRef:e,isDisabled:s}),u=Je({rowDataLayout:i,currentTask:r.tasks.currentItem,onCurrentTaskChange:r.tasks.onCurrentItemChange,isRTL:n}),m=Qe({rowDataLayout:i,currentRowLabel:r.rowLabels.currentItem,onCurrentRowLabelChange:r.rowLabels.onCurrentItemChange}),g={onFocus:()=>{const o=new Event("ShowFocusDatatip");e.current?.dispatchEvent(o),t.current?.dispatchEvent(o)}};return s?{}:y.mergeProps(h,g,{onKeyDown:e=>{let t=!1;const o=e=>{const{onCurrentItemChange:t}=r[e.type];t({id:e.id,isFocused:!0})},a=e=>{const{currentItem:t,onCurrentItemChange:o}=r[e];t&&o({id:t.id,isFocused:!1})},s=()=>{const n=((e,t)=>{const o=t.idTaskObjMap.get(e),{rowIndex:i}=o;return t.rowObjs[i].id})(r.tasks.currentItem.id,i);o({id:n,type:"rowLabels"}),a("tasks"),d.current="rowLabels",t=!0,L.cancelEvent(e)},l=()=>{const n=((e,t,o)=>{if(void 0!==o){const i=t.idTaskObjMap.get(o);if(i){const{rowIndex:r}=i;if(t.rowObjs[r].id===e)return o}}const i=t.idRowObjMap.get(e),r=i?.taskObjs[0];if(r)return r.id;const a=ae(t);return a?.id})(r.rowLabels.currentItem.id,i,r.tasks.currentItem?.id);void 0!==n&&o({id:n,type:"tasks"}),a("rowLabels"),d.current="tasks",t=!0,L.cancelEvent(e)};switch(e.key){case"Tab":a(d.current);break;case"ArrowLeft":e.altKey&&(n||"tasks"!==d.current?n&&"rowLabels"===d.current&&l():s());break;case"ArrowRight":e.altKey&&(n||"rowLabels"!==d.current?n&&"tasks"===d.current&&s():l())}if(!t)switch(d.current){case"tasks":u.onKeyDown?.(e);break;case"rowLabels":m.onKeyDown?.(e);break;default:return d.current}},onKeyUp:e=>{switch(e.key){case"Tab":{const{currentItem:t,onCurrentItemChange:o}=r[d.current],a=t||ae(i);a&&o({id:a.id,isFocused:!0}),L.cancelEvent(e);break}}}},c)};e.Gantt=function({width:e,height:i,testId:r,...a}){const n=o.useRef(null),{scrollPosition:s,panZoomLayout:d,withRowAxisLayout:l,getTimeAxesLayout:c,zoomParameters:h,rowDataLayout:u,rowAxisLayout:m,getResolvedViewportLayout:g,getHorizontalScrollbarLayout:w,onHorizontalScrollChange:p,getVerticalScrollbarLayout:b,onVerticalScrollChange:x,isRTL:f,layoutContent:T,isValidConfig:k,isReady:A}=$e(a),R={"aria-label":a["aria-label"],"aria-describedby":a["aria-describedby"],"aria-labelledby":a["aria-labelledby"],role:"application"},j=void 0!==a.viewportStart&&void 0!==a.viewportEnd,[S,C]=o.useState(),[I,P]=o.useState("none"),[L,D]=o.useState(),[M,V]=o.useState("none"),[z,B]=o.useState(),_=e=>{void 0!==e.id&&C({dataId:e.id,ariaId:v.getRandomId(),type:"rowLabel"}),V(void 0!==e.id?"hover":"none"),B(e.id)},[F,H]=o.useState(),U=e=>{if(e.isFocused){const t=new CustomEvent("KbPanTaskIntoView",{detail:{id:e.id}});Y.current?.dispatchEvent(t),C({dataId:e.id,ariaId:v.getRandomId(),type:"task"}),P("focus")}H(e)},[W,Z]=o.useState(),Y=o.useRef(null),X=o.useRef(null),G=o.useRef(null),K=(({rootRef:e,overlayControlsContainerRef:t,isDisabled:i=!1})=>{const r=o.useRef(!1),a=()=>{const e=new Event("ControlsShow");t.current?.dispatchEvent(e)},n=()=>{const e=new Event("ControlsHide");t.current?.dispatchEvent(e)};return i?{}:{onFocus:()=>{r.current=!0,a()},onBlur:t=>{t.relatedTarget&&e.current?.contains(t.relatedTarget)||(r.current=!1,n())},onPointerDown:t=>{"mouse"!==t.pointerType&&e.current?.focus()},onPointerOver:e=>{"mouse"===e.pointerType&&a()},onPointerOut:e=>{"mouse"===e.pointerType&&(r.current||n())}}})({rootRef:n,overlayControlsContainerRef:G,isDisabled:!j}),N=et({visRef:Y,rowAxisRef:X,navigationModes:{tasks:{currentItem:F,onCurrentItemChange:U},rowLabels:{currentItem:W,onCurrentItemChange:e=>{if(e.isFocused){const t=new CustomEvent("KbPanRowIntoView",{detail:{id:e.id}});Y.current?.dispatchEvent(t),C({dataId:e.id,ariaId:v.getRandomId(),type:"rowLabel"}),V("focus")}Z(e)}}},rowDataLayout:u,selectionProps:{selectedIds:a.selectedIds,selectionMode:a.selectionMode,onSelectionChange:a.onSelectionChange},isRTL:f,isDisabled:!j});if(!A||!k)return t.jsx(O,{innerRef:n,width:e,height:i,...R,children:T});const $=t.jsx(Le,{visRef:Y,overlayControlsContainerRef:G,isRTL:f,isViewportDefined:j,scrollPosition:s,onScrollPositionChange:a.onScrollPositionChange,onViewportChange:a.onViewportChange,rowAxisSeparator:!!l,zoomParameters:h,zooming:a.zooming,panZoomLayout:d,getTimeAxesLayout:c,getHorizontalScrollbarLayout:w,onHorizontalScrollChange:p,getVerticalScrollbarLayout:b,onVerticalScrollChange:x,getResolvedViewportLayout:g,rowDataLayout:u,datatip:a.datatip,selectedIds:a.selectedIds,selectionMode:a.selectionMode,onSelectionChange:a.onSelectionChange,hoveredTaskId:L,onTaskHoverChange:e=>{void 0!==e.id&&C({dataId:e.id,ariaId:v.getRandomId(),type:"task"}),P(void 0!==e.id?"hover":"none"),D(e.id)},currentTask:F,onCurrentTaskChange:U,currentTaskInteraction:I,ariaActive:"task"===S?.type?S:void 0}),q=l&&t.jsx(E,{...l,rowAxis:(e,o)=>t.jsx(ie,{innerRef:X,resolvedWidth:e,resolvedMaxWidth:o,currentRowLabel:W,hoveredRowLabelId:z,onRowLabelHoverChange:_,currentRowLabelInteraction:M,ariaActive:"rowLabel"===S?.type?S:void 0,layoutObj:m,scrollPosition:s,children:l.label}),ganttView:$});return t.jsxs(O,{innerRef:n,width:e,height:i,testId:r,...R,...y.mergeProps(N,K),"aria-activedescendant":S?.ariaId,children:[q||$,T]})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './classNames-08d99695', './PRIVATE_TimeComponent/themes/TimeComponentStyles.css', './UNSAFE_Gantt/themes/GanttStyles.css', './size-0127b66b', './useTestId-a2e433c2', './TrackResizeContainer-a4999df9', './Text-9e32c423', './accUtils-acd70e81', './TimeComponentCanvas2D-02d13a18', './useUser-988f7da2', './Layer-dc3c1ac9', 'preact/compat', './LayerHost-7d4aa6d3', './Floating-366a30f8', './hooks/PRIVATE_useDatatip/themes/useDatatip.css', './useId-c9578d26', './datatipUtils-6846028e', './layoutUtils-641af87a', './mergeProps-bcfa6a92', './usePinch-fc8ed928', './useSelection-bb7d04ee', './VisTabularDatatip-ab3b0b91', './useTranslationBundle-27bf6340', './lineUtils-81206f70', './useCssVars-d782da3d', './useTextDimensions-f254e8f5', './themeContract.css-2e4b066d', './utils-ad4761c9', './eventsUtils-5fb81c3e'], (function(e,t,o,i,r,a,n,s,d,l,c,h,u,m,g,w,p,b,x,f,v,y,T,k,A,R,j,S,C,I,P,L){"use strict";function O({innerRef:e,width:o,height:d,testId:l,children:c,...h}){const u=s.useTestId(l);return t.jsx("div",{ref:e,tabIndex:0,...u,...h,class:i.classNames([r.styles.baseStyle,a.styles.baseStyle]),style:{width:o&&n.sizeToCSS(o),height:d&&n.sizeToCSS(d)},children:c})}function E({rowAxisTopGap:e="0",rowAxisBottomGap:o="0",resolvedRowAxisWidth:i,resolvedRowAxisMaxWidth:r,rowAxis:n,ganttView:s}){const l="%"===i.suffix,c="%"===r.suffix;return l||c?t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:(d,h)=>t.jsxs("div",{class:a.rowAxisLayoutStyles.base,style:{gridTemplateRows:`${e} minmax(0, 1fr) ${o}`},children:[t.jsx("div",{class:a.rowAxisLayoutStyles.rowAxis,children:n(l?d*(i.value/100):i.value,c?d*(r.value/100):r.value)}),t.jsx("div",{class:a.rowAxisLayoutStyles.ganttView,children:s})]})}):t.jsxs("div",{class:a.rowAxisLayoutStyles.base,style:{gridTemplateRows:`${e} minmax(0, 1fr) ${o}`},children:[t.jsx("div",{class:a.rowAxisLayoutStyles.rowAxis,children:n(i.value,r.value)}),t.jsx("div",{class:a.rowAxisLayoutStyles.ganttView,children:s})]})}const D=({maxWidth:e,maxHeight:o,data:{label:i="",labelStyle:r}})=>t.jsx("div",{style:{width:e>-1?e:void 0,height:o,display:"flex",alignItems:"center",...r},children:t.jsx(l.Text,{size:"md",variant:r?.color?"inherit":"primary",truncation:"ellipsis",children:i})}),M=(e,t,o)=>({maxWidth:o,maxHeight:e.height,data:t[e.index]});class V{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,t){let o=this.length++;for(;o>0;){const e=o-1>>1,i=this.values[e];if(t>=i)break;this.ids[o]=this.ids[e],this.values[o]=i,o=e}this.ids[o]=e,this.values[o]=t}pop(){if(0===this.length)return;const e=this.ids[0];if(this.length--,this.length>0){const e=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],o=this.length>>1;let i=0;for(;i<o;){let e=1+(i<<1);const o=e+1;let r=this.ids[e],a=this.values[e];const n=this.values[o];if(o<this.length&&n<a&&(e=o,r=this.ids[o],a=n),a>=t)break;this.ids[i]=r,this.values[i]=a,i=e}this.ids[i]=e,this.values[i]=t}return e}peek(){if(0!==this.length)return this.ids[0]}peekValue(){if(0!==this.length)return this.values[0]}shrink(){this.ids.length=this.values.length=this.length}}const z=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class B{static from(e){if(!e||void 0===e.byteLength||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[t,o]=new Uint8Array(e,0,2);if(251!==t)throw new Error("Data does not appear to be in a Flatbush format.");const i=o>>4;if(3!==i)throw new Error(`Got v${i} data when expected v3.`);const r=z[15&o];if(!r)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,2,1),[n]=new Uint32Array(e,4,1);return new B(n,a,r,void 0,e)}constructor(e,t=16,o=Float64Array,i=ArrayBuffer,r){if(void 0===e)throw new Error("Missing required argument: numItems.");if(isNaN(e)||e<=0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535);let a=e,n=a;this._levelBounds=[4*a];do{a=Math.ceil(a/this.nodeSize),n+=a,this._levelBounds.push(4*n)}while(1!==a);this.ArrayType=o,this.IndexArrayType=n<16384?Uint16Array:Uint32Array;const s=z.indexOf(this.ArrayType),d=4*n*this.ArrayType.BYTES_PER_ELEMENT;if(s<0)throw new Error(`Unexpected typed array class: ${o}.`);r&&void 0!==r.byteLength&&!r.buffer?(this.data=r,this._boxes=new this.ArrayType(this.data,8,4*n),this._indices=new this.IndexArrayType(this.data,8+d,n),this._pos=4*n,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new i(8+d+n*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*n),this._indices=new this.IndexArrayType(this.data,8+d,n),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+s]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e),this._queue=new V}add(e,t,o,i){const r=this._pos>>2,a=this._boxes;return this._indices[r]=r,a[this._pos++]=e,a[this._pos++]=t,a[this._pos++]=o,a[this._pos++]=i,e<this.minX&&(this.minX=e),t<this.minY&&(this.minY=t),o>this.maxX&&(this.maxX=o),i>this.maxY&&(this.maxY=i),r}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const e=this._boxes;if(this.numItems<=this.nodeSize)return e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,void(e[this._pos++]=this.maxY);const t=this.maxX-this.minX||1,o=this.maxY-this.minY||1,i=new Uint32Array(this.numItems);for(let r=0,a=0;r<this.numItems;r++){const n=e[a++],s=e[a++],d=e[a++],l=e[a++],c=Math.floor(65535*((n+d)/2-this.minX)/t),h=Math.floor(65535*((s+l)/2-this.minY)/o);i[r]=W(c,h)}H(i,e,this._indices,0,this.numItems-1,this.nodeSize);for(let t=0,o=0;t<this._levelBounds.length-1;t++){const i=this._levelBounds[t];for(;o<i;){const t=o;let r=e[o++],a=e[o++],n=e[o++],s=e[o++];for(let t=1;t<this.nodeSize&&o<i;t++)r=Math.min(r,e[o++]),a=Math.min(a,e[o++]),n=Math.max(n,e[o++]),s=Math.max(s,e[o++]);this._indices[this._pos>>2]=t,e[this._pos++]=r,e[this._pos++]=a,e[this._pos++]=n,e[this._pos++]=s}}}search(e,t,o,i,r){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let a=this._boxes.length-4;const n=[],s=[];for(;void 0!==a;){const d=Math.min(a+4*this.nodeSize,F(a,this._levelBounds));for(let l=a;l<d;l+=4){if(o<this._boxes[l])continue;if(i<this._boxes[l+1])continue;if(e>this._boxes[l+2])continue;if(t>this._boxes[l+3])continue;const d=0|this._indices[l>>2];a>=4*this.numItems?n.push(d):(void 0===r||r(d))&&s.push(d)}a=n.pop()}return s}neighbors(e,t,o=1/0,i=1/0,r){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let a=this._boxes.length-4;const n=this._queue,s=[],d=i*i;e:for(;void 0!==a;){const i=Math.min(a+4*this.nodeSize,F(a,this._levelBounds));for(let o=a;o<i;o+=4){const i=0|this._indices[o>>2],s=_(e,this._boxes[o],this._boxes[o+2]),l=_(t,this._boxes[o+1],this._boxes[o+3]),c=s*s+l*l;c>d||(a>=4*this.numItems?n.push(i<<1,c):(void 0===r||r(i))&&n.push(1+(i<<1),c))}for(;n.length&&1&n.peek();){if(n.peekValue()>d)break e;if(s.push(n.pop()>>1),s.length===o)break e}a=n.length?n.pop()>>1:void 0}return n.clear(),s}}function _(e,t,o){return e<t?t-e:e<=o?0:e-o}function F(e,t){let o=0,i=t.length-1;for(;o<i;){const r=o+i>>1;t[r]>e?i=r:o=r+1}return t[o]}function H(e,t,o,i,r,a){if(Math.floor(i/a)>=Math.floor(r/a))return;const n=e[i+r>>1];let s=i-1,d=r+1;for(;;){do{s++}while(e[s]<n);do{d--}while(e[d]>n);if(s>=d)break;U(e,t,o,s,d)}H(e,t,o,i,d,a),H(e,t,o,d+1,r,a)}function U(e,t,o,i,r){const a=e[i];e[i]=e[r],e[r]=a;const n=4*i,s=4*r,d=t[n],l=t[n+1],c=t[n+2],h=t[n+3];t[n]=t[s],t[n+1]=t[s+1],t[n+2]=t[s+2],t[n+3]=t[s+3],t[s]=d,t[s+1]=l,t[s+2]=c,t[s+3]=h;const u=o[i];o[i]=o[r],o[r]=u}function W(e,t){let o=e^t,i=65535^o,r=65535^(e|t),a=e&(65535^t),n=o|i>>1,s=o>>1^o,d=r>>1^i&a>>1^r,l=o&r>>1^a>>1^a;o=n,i=s,r=d,a=l,n=o&o>>2^i&i>>2,s=o&i>>2^i&(o^i)>>2,d^=o&r>>2^i&a>>2,l^=i&r>>2^(o^i)&a>>2,o=n,i=s,r=d,a=l,n=o&o>>4^i&i>>4,s=o&i>>4^i&(o^i)>>4,d^=o&r>>4^i&a>>4,l^=i&r>>4^(o^i)&a>>4,o=n,i=s,r=d,a=l,d^=o&r>>8^i&a>>8,l^=i&r>>8^(o^i)&a>>8,o=d^d>>1,i=l^l>>1;let c=e^t,h=i|65535^(c|o);return c=16711935&(c|c<<8),c=252645135&(c|c<<4),c=858993459&(c|c<<2),c=1431655765&(c|c<<1),h=16711935&(h|h<<8),h=252645135&(h|h<<4),h=858993459&(h|h<<2),h=1431655765&(h|h<<1),(h<<1|c)>>>0}const Z=e=>{const t=e.map((e=>e.taskObjs.length)).reduce(((e,t)=>e+t),0),o=new B(t);return e.forEach((e=>e.taskObjs.forEach((({overallStartTime:e,overallEndTime:t,y:i,height:r})=>{o.add(e,i,t,i+r)})))),o.finish(),o},Y=(e,t,o,i,r=!0)=>r?e<=i&&o<=t:e<i&&o<t,X=(e,t)=>Y(e.overallStartTime,e.overallEndTime,t.overallStartTime,t.overallEndTime,!1),G=(e,t,o)=>{const i=((e,t,o)=>{if(0===e.length)return 0;let i=0,r=e.length;for(;i<r;){const o=Math.floor((i+r)/2);e[o]<t?i=o+1:r=o}if(i<e.length&&(e[i]===t||"successor"===o))return i;return i>0?i-1:0})(e,t,"predecessor");let r=i;for(let t=i;t<e.length&&e[t]<=o;t++)r=t;return{minRowInd:i,maxRowInd:r}},K=e=>({start:e.start?e.start:e.end,end:e.end?e.end:e.start}),N=e=>!(!e||"none"===e),$=(e,t,o,i)=>{const r=N(i.selectionMode),a=new Set(i.selectedIds);let n=0;const s=e.map(((i,s)=>{const d=i.tasks.map(((e,o)=>{const{start:i,end:n}=K(e),d=h.parseDate(i),l=h.parseDate(n);return{id:e.id,renderIndex:0,index:o,rowIndex:s,y:-1,startTime:d,endTime:l,overallStartTime:d,overallEndTime:l,rowLevel:0,height:void 0!==e.height?e.height:t.taskHeight,borderRadius:void 0!==e.borderRadius?e.borderRadius.toString():t.taskBorderRadius,fill:e.color?e.color:t.taskBgColor,stroke:t.taskBorderColor,strokeWidth:1,isSelectable:r,isSelected:a.has(e.id),selectionEffect:{stroke:t.taskEffectBorderColor,strokeWidth:2,padding:2},hoverEffect:{stroke:t.taskEffectBorderColor,strokeWidth:1,padding:0,shadow:{...t.taskEffectBoxShadow}},focusEffect:{stroke:t.taskEffectBorderColor,strokeWidth:1,padding:2}}}));d.sort(((e,t)=>e.startTime-t.startTime)),d.forEach(((e,t)=>e.renderIndex=t));const l=(({rowHeight:e,rowY:t,taskObjs:o,resolvedVars:i})=>{if(0===o.length)return(e=>e.rowPaddingTop+e.taskHeight+e.rowPaddingBottom)(i);o[0].rowLevel=0,o[0].y=0;const r=[[o[0]]],a=[o[0]];for(let e=1;e<o.length;e++){const t=o[e],i="stack",n=o[e-1];X(t,n)?r[r.length-1].push(t):r.push([t]);let s,d=0;switch(i){case"stack":{let e=!0;for(let o=0;o<a.length;o++){if(s=void 0,!X(t,a[o])){s=a[o],a[o]=t,e=!1;break}d+=1}e&&a.push(t),t.y=0,s&&(t.previousAdjacentTaskObj=s,s.nextAdjacentTaskObj=t);break}default:return i}t.rowLevel=d}const n=i.rowPaddingTop,s=i.rowPaddingBottom,d=a.map((()=>0));if(void 0===e){o.forEach((e=>{e.height>d[e.rowLevel]&&(d[e.rowLevel]=e.height)}));const e=d.map((e=>e+n+s)).reduce(((e,t,o)=>(e.push((e[o-1]||0)+t),e)),[]);o.forEach((t=>{t.y+=(e[t.rowLevel-1]||0)+n}))}const l=r.map((e=>{let t=0;return e.forEach((e=>{const o=e.y+e.height;o>t&&(t=o)})),t}));let c;return void 0===e?(c=l.reduce(((e,t)=>Math.max(e,t)))+n,r.forEach((e=>{e.forEach((e=>{const o=d[e.rowLevel];e.y+=(o-e.height)/2+t}))}))):(c=e,r.forEach(((e,o)=>{const i=l[o];let r=Number.MAX_VALUE;e.forEach((e=>{e.y+=Math.floor((c-e.height)/2),e.y<r&&(r=e.y)}));const a=Math.floor((c-i)/2)-r;e.forEach((e=>{e.y+=t+a}))}))),c})({rowHeight:i.height,rowY:n,taskObjs:d,resolvedVars:t});((e,t)=>{e.forEach((e=>{const{index:o,rowIndex:i}=e,r=t[i].tasks[o].label;r&&(e.labelObj={startTime:e.startTime,endTime:e.endTime,label:r,isInner:!0,position:"center"})}))})(d,e);const c={id:i.id,y:n,height:l,index:s,isSelected:d.some((e=>e.isSelected)),taskObjs:d},u="on"===o.horizontal?1:0;return n+=l+u,c})),d=s[s.length-1],l=d?d.y+d.height:0,c=new Map;s.forEach((e=>e.taskObjs.forEach((e=>c.set(e.id,e)))));const u=new Map;s.forEach((e=>u.set(e.id,e)));const m=(e=>({tasks:Z(e)}))(s);return{rowData:e,rowObjs:s,rowPadding:t.rowPaddingTop,totalRowsHeight:l,gridlines:o,spatialIndex:m,idRowObjMap:u,idTaskObjMap:c,getTaskDataById:t=>{const o=c.get(t);return o&&e[o.rowIndex].tasks[o.index]}}},q=(e,t,o,i,r,a)=>{const n=h.getTimePosition(e.startTime,t,o,i,a),s=h.getTimePosition(e.endTime,t,o,i,a);return{...e,x:a?s:n,y:e.y-r,width:a?n-s:s-n}},J=(e,t,o,i,r,a,n)=>{const s=i,d=i+a,l=e.rowObjs.map((e=>e.y)),{minRowInd:c,maxRowInd:u}=G(l,s,d),m=[];for(let a=c;a<=u;a++){const s=e.rowObjs[a],d=s.taskObjs.filter((({overallStartTime:e,overallEndTime:i})=>Y(e,i,t,o))).map((e=>q(e,t,o,r,i,n))),l={...s,y:s.y-i,taskObjs:d};m.push(l)}const g=[];m.forEach((i=>{i.taskObjs.forEach((({index:i,rowIndex:a,labelObj:s,y:d,height:l})=>{const c=((e,t,o,i,r,a,n,s)=>{if(!e)return;const d=h.getTimePosition(e.startTime,r,a,n,s),l=h.getTimePosition(e.endTime,r,a,n,s);let c;switch(e.position){case"center":c="center";break;case"start":c=s?"right":"left";break;case"end":c=s?"left":"right";break;default:return e.position}return{x:s?l:d,y:o,width:s?d-l:l-d,height:i,label:e.label,isInner:e.isInner,textAlign:c,labelStyle:t}})(s,e.rowData[a].tasks[i].labelStyle,d,l,t,o,r,n);c&&g.push(c)}))}));const w="on"===e.gridlines.horizontal?m.map((({y:e,height:t})=>e+t+.5)):void 0,p=new Map;return m.forEach((e=>e.taskObjs.forEach((e=>p.set(e.id,e))))),{spatialIndex:e.spatialIndex,gridlines:e.gridlines,horizontalGridlinesPos:w,rowData:e.rowData,allRowObjs:e.rowObjs,allIdTaskObjMap:e.idTaskObjMap,allIdRowObjMap:e.idRowObjMap,rowPadding:e.rowPadding,rowObjs:m,taskLabelObjs:g,idTaskObjMap:p,getTaskDataById:e.getTaskDataById}},Q=(e,t,o,i)=>{const r=t[e.rowIndex].tasks[e.index],a=void 0!==r.accessibleLabel?r.accessibleLabel:((e,t,o,i)=>{const r=t[e.rowIndex],a=r.tasks[e.index],{start:n,end:s}=K(a),d=n===s,l=[];if(r.label){const e=i.vis_labelAndValue({LABEL:i.gantt_labelRow(),VALUE:r.label});l.push(e)}if(d){const e=i.vis_labelAndValue({LABEL:i.gantt_labelDate(),VALUE:o(n)});l.push(e)}else{const e=i.vis_labelAndValue({LABEL:i.gantt_labelStart(),VALUE:o(n)}),t=i.vis_labelAndValue({LABEL:i.gantt_labelEnd(),VALUE:o(s)});l.push(e),l.push(t)}if(a.label){const e=i.vis_labelAndValue({LABEL:i.gantt_labelLabel(),VALUE:a.label});l.push(e)}return l.join("; ")})(e,t,o,i);return c.generateAriaLabel(i,a,{isSelected:e.isSelected})};function ee({rowObj:e,rowData:o,isRowSelected:r,isFocused:n,isHorizontalGridlinesVisible:s,ariaActive:d,children:l}){const c=((e,t)=>{const o=t[e.index];return o.accessibleLabel||o.label})(e,o);return t.jsx("div",{id:d?.dataId===e.id?d.ariaId:void 0,"data-oj-private-row-index":e.index,role:"row","aria-label":c,class:i.classNames([a.rowAxisStyles.labelContainer,r&&a.rowBackgroundStyles.selected,n&&a.rowAxisStyles.labelContainerFocused,s&&a.rowAxisStyles.withLabelSeparatorBottom]),children:t.jsx("div",{role:"rowheader",children:l})},e.id)}function te({content:e,placement:i="top-end-corner",offset:r,borderColor:a,anchor:n,targetFocusRef:s}){const d=o.useRef(x.useId()),[l,c]=o.useState({x:0,y:0}),h=r||{mainAxis:f.DATATIP_OFFSET,crossAxis:-1*f.DATATIP_OFFSET},u=o.useRef(null),g="element"===n?u:{current:l};return{datatipContent:null!=e?t.jsx(m.Layer,{children:t.jsx(p.Floating,{anchorRef:g,placement:i,offsetValue:h,flipOptions:{crossAxis:!0,mainAxis:!0},shiftOptions:{crossAxis:!1,mainAxis:!1},children:t.jsx("div",{id:d.current,className:b.styles.visDatatipStyle,style:{borderColor:a},children:e})})}):null,datatipProps:{"aria-describedby":d.current,onPointerEnter:e=>{e.eventPhase!==Event.AT_TARGET&&e.eventPhase!==Event.BUBBLING_PHASE||(u.current=e.currentTarget)},onPointerLeave:()=>{c({x:-1e4,y:-1e4})},onPointerMove:e=>{c({x:e.clientX,y:e.clientY})},onFocus:e=>{e.eventPhase!==Event.AT_TARGET&&e.eventPhase!==Event.BUBBLING_PHASE||(u.current=e.target)},onShowFocusDatatip:()=>{u.current=s.current}}}}const oe=({rowObjs:e,hoverProps:t})=>({onPointerMove:o=>{const i=(t=>{const{clientX:o,clientY:i}=t,r=document.elementsFromPoint(o,i);for(let t=0;t<r.length;t++){const o=r[t].dataset.ojRowIndex;if(o)return e[Number(o)].id}})(o);i!==t.hoveredRowLabelId&&t.onRowLabelHoverChange({id:i})}});function ie({innerRef:e,scrollPosition:o,resolvedWidth:r,resolvedMaxWidth:n,currentRowLabel:s,currentRowLabelInteraction:d,hoveredRowLabelId:l,onRowLabelHoverChange:c,layoutObj:{labelPaddingInlineStart:h,labelPaddingInlineEnd:m,rowData:g,rowObjs:w,idRowObjMap:p,isHorizontalGridlinesVisible:b},ariaActive:x,children:f}){const T=r!==1/0?r:void 0,k=n!==1/0?n:void 0,A=Math.min(r,n),R=A===1/0?-1:A-(h+m),j=oe({rowObjs:w,hoverProps:{hoveredRowLabelId:l,onRowLabelHoverChange:c}}),{datatipContent:S,datatipProps:C}=(({targetRef:e,rowData:t,hoveredRowObj:o,focusedRowObj:i,currentRowLabelInteraction:r,rowAxisRegion:a})=>{const{direction:n}=u.useUser(),s="rtl"===n,d={hover:{rowObj:o,anchor:"pointer"},focus:{rowObj:i,anchor:"element"},none:{rowObj:void 0,anchor:"pointer"}},{anchor:l,rowObj:c}=d[r],h=c?t[c.index].accessibleLabel:void 0,m=c&&"element"===l?{x:0,y:c.y+a.y,width:a.w,height:c.height}:void 0;return te({content:h,anchor:l,placement:"top-start",offset:v.calculateOffset(s,a.w,m),targetFocusRef:e})})({rowData:g,hoveredRowObj:l&&p.get(l),focusedRowObj:s?.isFocused?p.get(s.id):void 0,currentRowLabelInteraction:d,rowAxisRegion:{x:0,y:-o,w:2*(h+m),h:-1},targetRef:e});return t.jsxs("div",{ref:e,...y.mergeProps(j,C),class:i.classNames([a.rowAxisStyles.base,b&&a.rowAxisStyles.withSeparatorTop]),style:{width:T,maxWidth:k},children:[t.jsx("div",{role:"grid",class:a.rowAxisStyles.contentContainer,style:{top:-o},children:w.map((e=>t.jsx(ee,{ariaActive:x,rowObj:e,rowData:g,isRowSelected:e.isSelected,isFocused:!!s?.isFocused&&s.id===e.id,isHorizontalGridlinesVisible:b,children:f(M(e,g,R))})))}),S]})}const re=(e,t,o,i,r)=>{const a=((e,t,o)=>{const i=t.max-o.max,r=t.min-o.min,a=e*(t.max-t.min),n=Math.max(i,Math.min(a,r));return{min:Math.max(0,t.min-n),max:t.max-n}})(e,t,i),{min:n,max:s}=o,d=a.min!==n||a.max!==s;return d&&r(a),{newRange:a,isRangeChanged:d}},ae=({rowObjs:e})=>{if(0!==e.length&&0!==e[0].taskObjs.length)return{id:e[0].taskObjs[0].id,isFocused:!0}},ne=(e,{rowObjs:t,idTaskObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="next"===i?1:-1,{rowIndex:n,renderIndex:s}=r,d=t[n].taskObjs[s+a];if(d)return d.id;const l=t[n+a];if(l){const e="next"===i?l.taskObjs[0]:l.taskObjs[l.taskObjs.length-1];if(e)return e.id}},se=(e,{rowObjs:t,idTaskObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="down"===i?1:-1,{rowIndex:n}=r,s=t[n+a];if(!s)return;const d=s.taskObjs[0];return d?d.id:void 0},de=(e,t)=>ne(e,t,"next"),le=(e,t)=>ne(e,t,"prev"),ce=(e,{rowObjs:t,idRowObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="down"===i?1:-1,{index:n}=r,s=t[n+a];return s?s.id:void 0},he=(e,t,o,i="auto",r="auto",a=0)=>{const n=Math.min(e.x-t.x-a,0),s=Math.max(0,e.x+e.w-(t.x+t.w)+a),d=o?s:n,l=o?n:s;let c=0;switch(i){case"start":c=d;break;case"end":c=l;break;case"auto":c=(o?l<0:l>0)?l:d;break;default:return i}const h=Math.min(e.y-t.y-a,0),u=Math.max(0,e.y+e.h-(t.y+t.h)+a);let m=0;switch(r){case"top":m=h;break;case"bottom":m=u;break;case"auto":m=h<0?h:u;break;default:return r}return{dx:-c,dy:-m}},ue=({viewportLayout:e,dataBodyWidth:t,dataBodyHeight:i,viewportStartTime:r,viewportEndTime:a,scrollPosition:n,...s})=>{const{direction:d}=u.useUser(),l="rtl"===d,c=(({getRangeX:e,getRangeY:t,globalRangeX:i,globalRangeY:r,onRangeXChange:a,onRangeYChange:n,isDisabled:s=!1})=>{const d=o.useRef({min:0,max:0}),l=o.useRef({min:0,max:0});return s?{}:{onKbPanHorizontal:t=>{const{detail:{rangeRatio:o}}=t,{newRange:r}=re(o,e(),d.current,i,a);d.current=r},onKbPanVertical:e=>{const{detail:{rangeRatio:o}}=e,{newRange:i}=re(o,t(),l.current,r,n);l.current=i}}})(s),h=o.useRef({min:0,max:0}),m=o.useRef({min:0,max:0}),g=(e=0,o=0)=>{if(0!==e){const{newRange:o}=re(e/t,s.getRangeX(),h.current,s.globalRangeX,s.onRangeXChange);h.current=o}if(0!==o){const{newRange:e}=re(o/i,s.getRangeY(),m.current,s.globalRangeY,s.onRangeYChange);m.current=e}};return s.isDisabled?{}:{...c,onKbPanTaskIntoView:o=>{let s=e.idTaskObjMap.get(o.detail.id);if(!s){const i=e.allIdTaskObjMap.get(o.detail.id);if(!i)return;s=q(i,r,a,t,n,l)}const{x:d,y:c,width:h,height:u}=s,m={x:d,y:c,w:h,h:u},w={x:0,y:0,w:t,h:i},p=e.rowPadding,{dx:b,dy:x}=he(m,w,l,"auto","auto",p);g(b,x)},onKbPanRowIntoView:o=>{const r=e.allIdRowObjMap.get(o.detail.id);if(!r)return;const a={x:0,y:r.y-n,w:t,h:r.height},s={x:0,y:0,w:t,h:i},d=e.rowPadding,{dy:c}=he(a,s,l,"auto","auto",d);g(0,c)}}},me=({captureTargetRef:e,width:t,height:i,viewportStartTime:r,viewportEndTime:a,majorAxisScale:n,minorAxisScale:s,startTime:d,endTime:l,zoomParameters:c,scrollPosition:m,dataBodyHeight:g,totalRowsHeight:w,viewportLayout:p,onViewportChange:b,onScrollPositionChange:x,onCursorChange:f,isPanDisabled:v,isZoomDisabled:k})=>{const A={captureTargetRef:e,width:t,height:i,getRangeX:()=>({min:r,max:a}),getRangeY:()=>({min:m,max:m+g}),globalRangeX:{min:d,max:l},globalRangeY:{min:0,max:w},onRangeXChange:e=>{b?.({viewportStart:h.getISOString(e.min),viewportEnd:h.getISOString(e.max),majorAxisScale:n,minorAxisScale:s})},onRangeYChange:e=>{x?.({y:e.min})},isDisabled:v},{getZoomOrderViewDurationThresholds:R,...j}=c,S={captureTargetRef:e,width:t,...j,zoomOrderViewDurationThresholds:R(t),onViewportChange:b,isDisabled:k},C=(({captureTargetRef:e,width:t,height:i,getRangeX:r,getRangeY:a,globalRangeX:n,globalRangeY:s,onRangeXChange:d,onRangeYChange:l,onDragPanStart:c,onDragPanEnd:m,isDisabled:g=!1})=>{const{direction:w}=u.useUser(),p=o.useRef({min:0,max:0}),b=o.useRef({min:0,max:0}),x=o.useRef({min:0,max:0}),f=o.useRef({min:0,max:0}),v=o.useRef(!1),y=h.useDrag({captureTargetRef:e,onDragStart:()=>{x.current=r(),f.current=a(),c&&c()},onDragMove:({dx:e,dy:o})=>{v.current=!0;const{newRange:r}=re(("rtl"===w?-1:1)*e/t,x.current,p.current,n,d);p.current=r;const{newRange:a}=re(o/i,f.current,b.current,s,l);b.current=a},onDragEnd:({originalEvent:e})=>{v.current&&e.preventDefault(),v.current=!1,m&&m()},isDisabled:g});return g?{}:y})({...A,onDragPanStart:()=>f?.({cursor:"grabbing"}),onDragPanEnd:()=>f?.({cursor:"grabbingUnset"})}),I=(({width:e,height:t,getRangeX:i,getRangeY:r,globalRangeX:a,globalRangeY:n,onRangeXChange:s,onRangeYChange:d,isDisabled:l=!1})=>{const{direction:c}=u.useUser(),m=o.useRef({min:0,max:0}),g=o.useRef({min:0,max:0}),w=h.useWheel({onWheel:({deltaX:o,deltaY:l,ctrlKey:h})=>{if(h)return;const{newRange:u}=re(("rtl"===c?-1:1)*o/e,i(),m.current,a,s);m.current=u;const{newRange:w}=re(l/t,r(),g.current,n,d);g.current=w},isDisabled:l});return l?{}:w})(A),P=ue({...A,viewportLayout:p,dataBodyWidth:t,dataBodyHeight:g,viewportStartTime:r,viewportEndTime:a,scrollPosition:m}),L=(({captureTargetRef:e,width:t,startTime:o,endTime:i,viewportStartTime:r,viewportEndTime:a,majorAxisZoomOrder:n,majorAxisZoomOrderIndex:s,minorAxisZoomOrder:d,minorAxisZoomOrderIndex:l,zoomOrderViewDurationThresholds:c,minZoomViewportDuration:m,maxZoomViewportDuration:g,onViewportChange:w,isDisabled:p=!1})=>{const{direction:b}=u.useUser(),x="rtl"===b,f=T.usePinch({captureTargetRef:e,onPinchZoomChange:({origin:{x:e},delta:u})=>{const p=h.getPositionTime(e,r,a,t,x);h.zoomTime(p,r,a,o,i,h.getGestureZoomFactor(u),m,g,c,d,l,n,s,w)},isDisabled:p});return p?{}:f})(S),O=(({width:e,startTime:t,endTime:o,viewportStartTime:i,viewportEndTime:r,majorAxisZoomOrder:a,majorAxisZoomOrderIndex:n,minorAxisZoomOrder:s,minorAxisZoomOrderIndex:d,zoomOrderViewDurationThresholds:l,minZoomViewportDuration:c,maxZoomViewportDuration:m,onViewportChange:g,isDisabled:w=!1})=>{const{direction:p}=u.useUser(),b="rtl"===p,x=h.useWheel({onWheel:({x:u,deltaY:w,ctrlKey:p})=>{if(!p)return;const x=h.getPositionTime(u,i,r,e,b);h.zoomTime(x,i,r,t,o,h.getGestureZoomFactor(w),c,m,l,s,d,a,n,g)},isDisabled:w});return w?{}:x})(S),E=(({startTime:e,endTime:t,viewportStartTime:o,viewportEndTime:i,majorAxisZoomOrder:r,majorAxisZoomOrderIndex:a,minorAxisZoomOrder:n,minorAxisZoomOrderIndex:s,zoomOrderViewDurationThresholds:d,minZoomViewportDuration:l,maxZoomViewportDuration:c,onViewportChange:u,isDisabled:m=!1})=>m?{}:{onKbZoomIn:m=>{const g=o+(i-o)/2;h.zoomTime(g,o,i,e,t,m.detail.zoomFactor,l,c,d,n,s,r,a,u)},onKbZoomOut:m=>{const g=o+(i-o)/2;h.zoomTime(g,o,i,e,t,m.detail.zoomFactor,l,c,d,n,s,r,a,u)}})(S);return{gestureProps:y.mergeProps(C,I,P,L,O,E)}},ge=({targetRef:e,datatip:o,rowData:i,dateFormatter:r,hoveredTaskObj:a,focusedTaskObj:n,currentTaskInteraction:s,dataBodyRegion:d})=>{const{direction:l}=u.useUser(),c="rtl"===l,h=R.useTranslationBundle("@oracle/oraclejet-preact"),m={hover:{taskObj:a,anchor:"pointer"},focus:{taskObj:n,anchor:"element"},none:{taskObj:void 0,anchor:"pointer"}},{anchor:g,taskObj:w}=m[s],p=o??(e=>{const{translations:o,dateFormatter:i}=e;return({data:e,rowData:r})=>{if(void 0!==e.accessibleLabel)return{content:e.accessibleLabel};const{start:a,end:n}=K(e),s=a===n,d=[];return r.label&&d.push({key:o.gantt_labelRow(),value:r.label}),s?d.push({key:o.gantt_labelDate(),value:i(a)}):(d.push({key:o.gantt_labelStart(),value:i(a)}),d.push({key:o.gantt_labelEnd(),value:i(n)})),e.label&&d.push({key:o.gantt_labelLabel(),value:e.label}),{content:t.jsx(A.VisTabularDatatip,{tableData:d})}}})({translations:h,dateFormatter:r,isRTL:c}),{content:b,borderColor:x}=w?p(((e,t)=>{const{index:o,rowIndex:i}=t;return{data:e[i].tasks[o],rowData:e[i]}})(i,w)):{content:void 0,borderColor:void 0},f=w&&"element"===g?{x:w.x,y:w.y+d.y,width:w.width,height:w.height}:void 0;return te({content:b,anchor:g,placement:"top-start",offset:v.calculateOffset(c,d.w,f),borderColor:x,targetFocusRef:e})};function we({innerRef:e,isRTL:r,scrollPosition:n,onScrollPositionChange:s,isViewportDefined:l,onViewportChange:c,zoomParameters:u,zooming:m,selectedIds:g,selectionMode:w,onSelectionChange:p,hoveredTaskId:b,onTaskHoverChange:x,currentTask:f,onCurrentTaskChange:v,currentTaskInteraction:T,ariaActive:A,getTimeAxesLayout:R,getResolvedViewportLayout:j,rowDataLayout:S,rowAxisSeparator:C,datatip:I,majorAxis:P,minorAxis:L,dataBody:O}){return l?t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:function(d,l){const E=R(d),{position:D,majorAxis:M,minorAxis:V,viewportStartTime:z,viewportEndTime:B,startTime:_,endTime:F}=E,H=M&&M.zoomOrder[M.zoomOrderIndex],U=V.zoomOrder[V.zoomOrderIndex],W=M?M.height:0,{height:Z}=V,Y=l-(W+Z),X=j(S,z,B,n,d,Y,r),G=((e,t)=>{const o=e.selectionProps.selectedIds||[],i=[];o.forEach((e=>{const o=t.get(e);o&&i.push(o)}));const r=N(e.selectionProps.selectionMode)?e.hoverProps.hoveredTaskId:void 0,a=void 0!==r?t.get(r):void 0,n=e.currentProps.currentTask,s=!0===n?.isFocused,d=n?.id,l=s&&void 0!==d?t.get(d):void 0;return{selectedTaskObjs:i,hoveredTaskObj:a,focusedTaskObj:l}})({selectionProps:{selectedIds:g,selectionMode:w},hoverProps:{hoveredTaskId:b},currentProps:{currentTask:f}},X.idTaskObjMap),K=h.getDefaultDateFormatter(U,z),$=M&&P(M),q=L(V),J=O({width:d,height:Y,viewportLayout:X,minorAxisLayout:V,effectsLayout:G,dateFormatter:K,ariaActiveTask:A}),Q={top:{components:[$,q,J],dataBodyPos:l-Y},bottom:{components:[J,q,$],dataBodyPos:0}},[ee,te]=o.useState(),oe=e=>te((t=>void 0===t?e.cursor:"grabbing"===t&&"grabbingUnset"!==e.cursor?"grabbing":"grabbingUnset"!==e.cursor&&"pointerUnset"!==e.cursor?e.cursor:void 0)),{gestureProps:ie}=me({captureTargetRef:e,width:d,height:l,viewportStartTime:z,viewportEndTime:B,majorAxisScale:H,minorAxisScale:U,startTime:_,endTime:F,zoomParameters:u,scrollPosition:n,dataBodyHeight:Y,totalRowsHeight:S.totalRowsHeight,viewportLayout:X,onViewportChange:e=>{c&&(c(e),x({id:void 0}))},onScrollPositionChange:e=>{s&&(s(e),x({id:void 0}))},onCursorChange:oe,isPanDisabled:!1,isZoomDisabled:"off"===m}),re={x:0,y:Q[D].dataBodyPos,w:d,h:Y},{gestureProps:ae,selectionContent:ne}=(({viewportLayout:e,viewportYOffset:t,dataBodyRegion:o,viewportStartTime:i,viewportEndTime:r,width:a,isRTL:n,selectionProps:s,hoverProps:d,currentProps:l,onCursorChange:c})=>{const{x:u,y:m,w:g,h:w}=o,p=N(s.selectionMode),b=o=>{const s=e.allRowObjs,d=e.spatialIndex,{offsetX:l,offsetY:c}=o;if(l<u||l>u+g||c<m||c>m+w)return;const p={time:h.getPositionTime(l,i,r,a,n),y:c+t},b=((e,t,{time:o,y:i})=>{const r=t.search(o,i,o,i);if(0===r.length)return;let a=r[0];for(let t=0;t<e.length;t++){const o=e[t];for(let e=0;e<o.taskObjs.length;e++){if(0===a)return{rowIndex:t,taskIndex:e};a-=1}}})(s,d.tasks,p);if(!b)return;const{rowIndex:x,taskIndex:f}=b;return s[x].taskObjs[f].id},x={onPointerMove:e=>{const t=b(e);t!==d.hoveredTaskId&&d.onTaskHoverChange({id:t}),p&&c?.({cursor:void 0!==t?"pointer":"pointerUnset"})}},f={onPointerUp:e=>{const t=b(e);void 0!==t&&(p&&c?.({cursor:"pointer"}),t!==l?.currentTask?.id&&l.onCurrentTaskChange({id:t,isFocused:!1}))}},{selectionProps:{onKeyUp:v,...T},selectionContent:A}=k.useSelection({idExtracter:b,selection:s.selectedIds,selectionMode:s.selectionMode,onChange:s.onSelectionChange,getDataById:e.getTaskDataById});return{gestureProps:y.mergeProps(x,f,T),selectionContent:A}})({viewportLayout:X,viewportYOffset:n-Q[D].dataBodyPos,dataBodyRegion:re,viewportStartTime:z,viewportEndTime:B,width:d,isRTL:r,selectionProps:{selectedIds:g,selectionMode:w,onSelectionChange:p},hoverProps:{hoveredTaskId:b,onTaskHoverChange:x},currentProps:{currentTask:f,onCurrentTaskChange:v},onCursorChange:oe}),{datatipContent:se,datatipProps:de}=ge({datatip:I,rowData:X.rowData,dateFormatter:K,hoveredTaskObj:b&&X.idTaskObjMap.get(b),focusedTaskObj:G.focusedTaskObj,currentTaskInteraction:T,dataBodyRegion:re,targetRef:e}),le=y.mergeProps(ie,ae,de);return t.jsxs("div",{ref:e,...le,class:i.classNames([a.timeAxisDataBodyStyles.base,a.timeAxisDataBodyStyles.pannable,r?C&&a.timeAxisDataBodyStyles.withRowAxisSeparatorRight:C&&a.timeAxisDataBodyStyles.withRowAxisSeparatorLeft]),style:{cursor:ee},children:[Q[D].components,se,ne]})}}):t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:e=>{const t=R(e),{majorAxis:o,minorAxis:i,viewportStartTime:r,viewportEndTime:a}=t,n=o&&o.zoomOrder[o.zoomOrderIndex],s=i.zoomOrder[i.zoomOrderIndex];return c?.({viewportStart:h.getISOString(r),viewportEnd:h.getISOString(a),majorAxisScale:n,minorAxisScale:s}),null}})}function pe({width:e,height:o,positions:i}){const r=i.map((t=>`M0,${t} H${e}`)).join(" ");return t.jsx("svg",{width:e,height:o,children:t.jsx("path",{class:a.horizontalGridlinesStyles.base,d:r})})}function be({width:e,height:i,rowData:r,dateFormatter:a,ariaActiveId:n,ariaActiveTaskObj:s}){const d=R.useTranslationBundle("@oracle/oraclejet-preact"),l=o.useRef(0),c=o.useMemo((()=>{const e=0===l.current?[n,v.getRandomId()]:[v.getRandomId(),n];return l.current=Math.abs(l.current-1),e}),[n]),h=s&&Q(s,r,a,d);return t.jsxs("div",{style:{width:e,height:i},children:[t.jsx("div",{role:"img",id:c[0],"aria-label":h}),t.jsx("div",{role:"img",id:c[1],"aria-label":h})]})}function xe({width:e,height:o,rowData:i,dateFormatter:r,layoutObjs:n}){const s=R.useTranslationBundle("@oracle/oraclejet-preact"),d=[];return n.forEach((e=>{e.taskObjs.forEach((e=>{const o=Q(e,i,r,s);d.push(t.jsx("div",{role:"img","aria-label":o,class:a.taskMobileAccStyles.content,style:{width:e.width,height:e.height,top:e.y,left:e.x}}))}))})),t.jsx("div",{class:a.taskMobileAccStyles.base,style:{width:e,height:o},children:d})}function fe({width:e,height:o,rowData:i,dateFormatter:r,ariaActiveId:a,ariaActiveTaskObj:n,layoutObjs:s}){return c.supportsMobileScreenReader?t.jsx(xe,{width:e,height:o,layoutObjs:s,rowData:i,dateFormatter:r}):t.jsx(be,{width:e,height:o,rowData:i,dateFormatter:r,ariaActiveId:a,ariaActiveTaskObj:n})}function ve({width:e,height:o,layoutObjs:i}){const r=i.filter((e=>e.isSelected)),n=r.map((({y:t,height:o})=>`M1,${t} H${e-1} V${t+o} H1 Z`)).join(" ");return r.length>0?t.jsx("svg",{width:e,height:o,children:t.jsx("path",{class:a.rowBackgroundStyles.selected,d:n})}):null}const ye=(e,t)=>{const{x:o,y:i,width:r,height:a,borderRadius:n,stroke:s,strokeWidth:d,padding:l}=t,c=o-l,h=i-l,u=r+2*l,m=a+2*l,g=j.rectangleWithBorderRadius(c,h,u,m,n,Math.min(u,m),"0"),w=new Path2D(g);e.strokeStyle=s,e.lineWidth=d,e.stroke(w)},Te=(e,t,o)=>{const i="hovered"===o,{x:r,y:a,width:n,height:s,borderRadius:d,fill:l,stroke:c,strokeWidth:h}=t,u=j.rectangleWithBorderRadius(r,a,n,s,d,Math.min(n,s),"0"),m=new Path2D(u);switch(i&&((e,t)=>{e.shadowColor=t.shadowColor,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY,e.shadowBlur=t.shadowBlur})(e,t.hoverEffect.shadow),e.fillStyle="#ffffff",e.fill(m),i&&(e=>{e.shadowColor="transparent",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0})(e),e.strokeStyle=c,e.fillStyle=l,e.lineWidth=h,e.fill(m),e.stroke(m),o){case"selected":ye(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.selectionEffect});break;case"hovered":ye(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.hoverEffect});break;case"focused":ye(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.focusEffect});break;case void 0:break;default:return o}};function ke({width:e,height:o,layoutObj:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i&&Te(e,i,"focused")}})}function Ae({width:e,height:o,layoutObj:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i&&Te(e,i,"hovered")}})}function Re({width:e,height:o,layoutObjs:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i.forEach((t=>Te(e,t,"selected")))}})}function je({width:e,height:o,layoutObjs:{selectedTaskObjs:i,hoveredTaskObj:r,focusedTaskObj:a}}){return t.jsxs(h.TimeComponentLayersStack,{width:`${e}px`,height:`${o}px`,children:[t.jsx(ke,{width:e,height:o,layoutObj:a}),t.jsx(Re,{width:e,height:o,layoutObjs:i}),t.jsx(Ae,{width:e,height:o,layoutObj:r})]})}function Se({x:e,y:o,width:r,height:n,label:s,isInner:d,textAlign:c,labelStyle:h}){return t.jsx("div",{"aria-hidden":"true",class:i.classNames([a.taskLabelLayerStyles.label,d&&a.taskLabelLayerStyles.innerLabel]),style:{left:e,top:o,width:r,height:n,textAlign:c,...h},children:t.jsx(l.Text,{variant:h?.color?"inherit":"primary",truncation:"ellipsis",size:"md",weight:"inherit",children:s})})}function Ce({width:e,height:o,layoutObjs:i}){return t.jsx("div",{class:a.taskLabelLayerStyles.base,style:{width:e,height:o},children:i.map((e=>t.jsx(Se,{...e})))})}function Ie({width:e,height:o,layoutObjs:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i.forEach((t=>{t.taskObjs.forEach((t=>Te(e,t)))}))}})}function Pe({width:e,height:o,minorAxisLayout:{minorGridTicksPos:i,majorGridTicksPos:r},viewportLayout:{gridlines:a,rowData:n,rowObjs:s,taskLabelObjs:d,horizontalGridlinesPos:l,idTaskObjMap:c},effectsLayout:u,dateFormatter:m,ariaActiveTask:g}){return t.jsxs(h.TimeComponentLayersStack,{width:`${e}px`,height:`${o}px`,children:[t.jsx(ve,{width:e,height:o,layoutObjs:s}),"on"===a.vertical&&t.jsx(h.TimeComponentVerticalGridlines,{width:e,height:o,positions:i,variant:"minor"}),"on"===a.vertical&&r&&t.jsx(h.TimeComponentVerticalGridlines,{width:e,height:o,positions:r,variant:"major"}),l&&t.jsx(pe,{width:e,height:o,positions:l}),t.jsx(fe,{width:e,height:o,layoutObjs:s,rowData:n,dateFormatter:m,ariaActiveId:g?.ariaId,ariaActiveTaskObj:g&&c.get(g.dataId)}),t.jsx(Ie,{width:e,height:o,layoutObjs:s}),t.jsx(je,{width:e,height:o,layoutObjs:u}),t.jsx(Ce,{width:e,height:o,layoutObjs:d})]})}function Le({visRef:e,overlayControlsContainerRef:o,panZoomLayout:i,getTimeAxesLayout:r,getHorizontalScrollbarLayout:a,onHorizontalScrollChange:n,getVerticalScrollbarLayout:s,onVerticalScrollChange:d,rowAxisSeparator:l=!1,zoomParameters:c,zooming:u="on",isViewportDefined:m,onViewportChange:g,getResolvedViewportLayout:w,datatip:p,rowDataLayout:b,isRTL:x,scrollPosition:f,onScrollPositionChange:v,selectedIds:y,selectionMode:T,onSelectionChange:k,hoveredTaskId:A,onTaskHoverChange:R,currentTask:j,onCurrentTaskChange:S,currentTaskInteraction:C,ariaActive:I,width:P,height:L}){return t.jsx(h.TimeComponentPanZoomLayout,{overlayControlsContainerRef:o,...i,width:P,height:L,overlayControls:"on"===u&&c&&m?t.jsx(h.TimeComponentZoomControls,{position:i.overlayControlsPosition,zoomParameters:c,onViewportChange:g}):void 0,verticalControl:t.jsx(h.TimeComponentVerticalScrollbarContainer,{getLayout:s,onRangeChange:d,children:e=>t.jsx(h.TimeComponentVerticalScrollbar,{...e})}),horizontalControl:t.jsx(h.TimeComponentHorizontalScrollbarContainer,{getLayout:a,onRangeChange:n,children:e=>t.jsx(h.TimeComponentHorizontalScrollbar,{...e})}),vis:t.jsx(we,{innerRef:e,isRTL:x,scrollPosition:f,onScrollPositionChange:v,isViewportDefined:m,onViewportChange:g,zoomParameters:c,zooming:u,rowAxisSeparator:l,selectedIds:y,selectionMode:T,onSelectionChange:k,hoveredTaskId:A,onTaskHoverChange:R,currentTask:j,onCurrentTaskChange:S,currentTaskInteraction:C,ariaActive:I,getTimeAxesLayout:r,getResolvedViewportLayout:w,rowDataLayout:b,datatip:p,majorAxis:e=>t.jsx(h.TimeComponentHorizontalTimeAxis,{...e}),minorAxis:e=>t.jsx(h.TimeComponentHorizontalTimeAxis,{...e}),dataBody:e=>t.jsx(Pe,{...e})})})}const Oe=(e,t,o)=>t.map((t=>e(t,o))),Ee=e=>void 0===e?"0px":void 0!==e.height?`${e.height}px`:r.bridgeValues.horizontalTimeAxisHeight,De=(e,t)=>{const o=((e,t)=>void 0===t?0:void 0!==t.height?t.height:e)(e,t),{scale:i,zoomOrder:r=[t.scale]}=t;return{height:o,zoomOrder:r,zoomOrderIndex:r.indexOf(i)}},Me=(e,t)=>Date.parse(e.getPreviousDate(new Date(t).toISOString())),Ve=(e,t)=>Date.parse(e.getNextDate(new Date(t).toISOString())),ze=(e,t,o)=>{const i=[Me(e,t)];for(;i[i.length-1]<o;)i.push(Ve(e,i[i.length-1]));return i},Be=(e,t)=>{const{type:o,params:i}=t;switch(o){case"exact":{const t=new Map,o=ze(e,i.startTime,i.endTime);for(let e=0;e<o.length-1;e++)t.set(o[e],o[e+1]);return{intervals:t,numIntervals:t.size}}case"approximate":{const{startTime:t,endTime:o,numSections:r,numIntervalsPerSection:a}=i,n=((e,t,o,i,r)=>{const a=new Map,n=Math.floor((o-t)/i);for(let s=0;s<i;s++){const i=t+n*s,d=Math.min(t+n*(s+1),o);let l=Me(e,i);for(let t=0;t<r&&!(l>=d);t++){const t=Ve(e,l);a.set(l,t),l=t}l=Me(e,d-1),a.set(l,Ve(e,l))}return a})(e,t,o,r,a),s=[...n.keys()],d=s.reduce(((e,t)=>e+(n.get(t)-Number(t))),0)/s.length;return{intervals:n,numIntervals:(o-t)/d}}default:return o}},_e=(e,t)=>e.formatter(new Date(t).toISOString()),Fe=(e,t,o)=>{const i=ze(e,t,o),r=i.slice(0,i.length-1).map((t=>_e(e,t)));return{ticks:i,labels:r}},He=(e,t,o,i,r="start",a,n,s,d,l,c,u,m,g)=>{const w=t+o,p=c,b=u,x=a.slice(0,a.length-1),f=n.map((e=>h.getTimePosition(e,p,b,m,g))),v=a.map((e=>h.getTimePosition(e,p,b,m,g))),y=v.slice(1).map(((e,t)=>g?v[t]-e:e-v[t])),T=a[0]<d;T&&(v[0]=0,y[0]=v[1]),a[a.length-1]>l&&(v[v.length-1]=g?0:m,y[y.length-1]=g?v[v.length-2]-v[v.length-1]:v[v.length-1]-v[v.length-2]);const k=v.slice(0,v.length-1).map(((e,t)=>g?e-y[t]:e)),A=Oe(e,s,i).map((({width:e},t)=>Math.floor(e)-Math.floor(y[t]-w)>0));return{font:i,labelPosition:r,labels:s,labelTicks:x,labelPositions:k,isLabelTruncated:A,isIntervalStartTruncated:T,intervalWidths:y,gridTicksPos:f,isRTL:g}},Ue=(e,t,o,i,r,a,n,s)=>{const{zoomOrderMinLengthFactor:d,maxNumIntervals:l}=((e,t,o,i,r,a,n)=>{const s=t+o,d=a.map((e=>Be(e,n))),l=Math.max(...d.map((({numIntervals:e})=>e)));return{zoomOrderMinLengthFactor:d.map((({intervals:t},o)=>{const n=a[o],d=[...t.keys()],l=d.map((e=>_e(n,t.get(e)))),c=d.map((e=>t.get(e)-e)),h=Oe(e,l,r),u=Math.min(...c.map(((e,t)=>e/Math.max(i,h[t].width+s))));return u})),maxNumIntervals:l}})(e,t,o,i,r,s,{type:"approximate",params:{numSections:4,numIntervalsPerSection:10,startTime:a,endTime:n}});return{getZoomOrderViewDurationThresholds:e=>d.map((t=>e*t)),minorAxisZoomOrder:s,minZoomViewportDuration:(n-a)/l,maxZoomViewportDuration:n-a,startTime:a,endTime:n}},We=(e,t,o,i,r,a,n,s,d,l,c,h,u,m)=>g=>{const{zoomOrder:w,zoomOrderIndex:p}=c,b=a(g),{viewportStartTime:x,viewportEndTime:f}=((e,t,o,i,r)=>void 0!==i&&void 0!==r?{viewportStartTime:i,viewportEndTime:r}:void 0!==i&&void 0===r?{viewportStartTime:i,viewportEndTime:Math.min(o,i+e)}:void 0===i&&void 0!==r?{viewportStartTime:Math.max(t,r-e),viewportEndTime:r}:{viewportStartTime:t,viewportEndTime:Math.min(o,t+e)})(b[p],s,d,u,m),{majorAxisLayout:v,minorAxisLayout:y}=((e,t,o,i,r,a,n,s,d,l,c,h,u)=>{const m=u?Fe(u,s,d):{ticks:[],labels:[]},g=Fe(h,s,d),{ticks:w,labels:p}=m,{ticks:b,labels:x}=g,f=new Set(w),v=new Set(b),y=0===w.filter((e=>e>s&&e<d&&!v.has(e))).length,T=y?b.filter((e=>!f.has(e))):b,k=u&&He(e,t,o,i,u.labelPosition,w,w,p,a,n,s,d,l,c),A=He(e,t,o,r,h.labelPosition,b,T,x,a,n,s,d,l,c);return{minorAxisLayout:{majorGridTicksPos:y&&k?k.gridTicksPos:void 0,minorGridTicksPos:A.gridTicksPos,variant:"minor",...A},majorAxisLayout:k&&{majorGridTicksPos:k.gridTicksPos,minorGridTicksPos:void 0,variant:"major",...k}}})(e,t,o,i,r,s,d,x,f,g,l,w[p],h&&h.zoomOrder[h.zoomOrderIndex]);return{position:n,startTime:s,endTime:d,viewportStartTime:x,viewportEndTime:f,width:g,majorAxis:v&&{width:g,...h,...v},minorAxis:{width:g,...c,...y}}},Ze=[{tokenVar:r.bridgeValues.horizontalTimeAxisHeight,key:"defaultTimeAxisHeight",cssProp:"height"},{tokenVar:r.bridgeValues.horizontalTimeAxisLabelPaddingInlineStart,key:"timeAxisLabelPaddingInlineStart",cssProp:"margin-inline-start"},{tokenVar:r.bridgeValues.horizontalTimeAxisLabelPaddingInlineEnd,key:"timeAxisLabelPaddingInlineEnd",cssProp:"margin-inline-end"},{tokenVar:P.xUnits(12.5),key:"timeAxisLabelMinWidth",cssProp:"min-width"},{tokenVar:I.typographyVars.body.md.fontSize,key:"majorAxisFontSize",cssProp:"font-size"},{tokenVar:I.typographyVars.body.sm.fontSize,key:"minorAxisFontSize",cssProp:"margin-block-start"},{tokenVar:I.typographyVars.body.md.fontWeight.semibold,key:"majorAxisFontWeight"},{tokenVar:I.typographyVars.body.sm.fontWeight.regular,key:"minorAxisFontWeight"}],Ye=e=>"0"===e?0:Number(e.substring(0,e.length-2)),Xe=[{tokenVar:a.bridgeValues.rowLabelPaddingInlineStart,key:"rowLabelPaddingInlineStart",cssProp:"padding-inline-start"},{tokenVar:a.bridgeValues.rowLabelPaddingInlineStart,key:"rowLabelPaddingInlineEnd",cssProp:"padding-inline-end"},{tokenVar:P.xUnits(3),key:"rowPaddingTop",cssProp:"padding-top"},{tokenVar:P.xUnits(3),key:"rowPaddingBottom",cssProp:"padding-bottom"},{tokenVar:P.xUnits(6),key:"taskHeight",cssProp:"min-height"},{tokenVar:P.xUnits(1),key:"taskBorderRadius",cssProp:"border-radius"},{tokenVar:a.bridgeValues.taskBgColor,key:"taskBgColor",cssProp:"background-color"},{tokenVar:a.bridgeValues.taskBorderColor,key:"taskBorderColor",cssProp:"border-color"},{tokenVar:a.bridgeValues.taskEffectBorderColor,key:"taskEffectBorderColor",cssProp:"outline-color"},{tokenVar:I.baseVars.boxShadow.md,key:"taskEffectBoxShadow",cssProp:"box-shadow"}],Ge=e=>{const[t,o,i,r,...a]=e.split(" ").reverse();return{shadowColor:a.reverse().join(" "),shadowOffsetX:Ye(r??"0"),shadowOffsetY:Ye(i??"0"),shadowBlur:Ye(o??"0")}},Ke=e=>e.endsWith("px")?{value:Number(e.substring(0,e.length-2)),suffix:"px"}:e.endsWith("%")?{value:Number(e.substring(0,e.length-1)),suffix:"%"}:{value:1/0,suffix:void 0},Ne=Ze.concat(Xe),$e=({rowAxis:e,gridlines:{horizontal:o="off",vertical:i="on"}={horizontal:"off",vertical:"on"},axisPosition:a="top",minorAxis:n,majorAxis:s,start:d,end:l,viewportStart:c,viewportEnd:m,onViewportChange:g,scrollPosition:{y:w=0}={y:0},onScrollPositionChange:p,rows:b,selectedIds:x,selectionMode:f="none"})=>{const{direction:v}=u.useUser(),{resolvedVars:y,cssContent:T}=S.useCssVars(Ne),{textMeasureContent:k,getTextDimensions:A}=C.useTextDimensions(),R="rtl"===v,j=t.jsxs(t.Fragment,{children:[k,T]}),{startTime:I,endTime:L,viewportStartTime:O,viewportEndTime:E,isValidTimeConfig:M}=((e,t,o,i)=>{const r=h.parseDate(e),a=h.parseDate(t),n=o?h.parseDate(o):void 0,s=i?h.parseDate(i):void 0,d=((e,t,o,i)=>t>e&&(void 0===o||void 0===i||i>o)&&(void 0===o||o>=e&&o<t)&&(void 0===i||i>e&&i<=t))(r,a,n,s);return{startTime:r,endTime:a,viewportStartTime:n,viewportEndTime:s,isValidTimeConfig:d}})(d,l,c,m);if(!A||0===Object.keys(y).length)return{isRTL:R,layoutContent:j,isValidConfig:M,isReady:!1};if(!M)return{isRTL:R,layoutContent:j,isValidConfig:M,isReady:!0};const V=void 0===e?"off":"on",z="on"===e?{}:e,B=z?.width??"max-content",_=z?.maxWidth??"none",F=z?.labelRenderer??D,H=((e,t,o)=>{const i=Ee(t);return{position:e,height:`calc(${Ee(o)} + ${i})`}})(a,n,s),U={top:{overlayControlsPosition:"topEnd",verticalControlTopGap:(W=H).height,verticalControlBottomGap:"0"},bottom:{overlayControlsPosition:"bottomEnd",verticalControlTopGap:"0",verticalControlBottomGap:W.height}}[W.position];var W;const Z="on"===V?((e,t)=>{const o=`${P.xUnits(1)} + ${r.bridgeValues.horizontalScrollbarHeight}`,i={top:{rowAxisTopGap:e.height,rowAxisBottomGap:`calc(${o})`},bottom:{rowAxisTopGap:"0",rowAxisBottomGap:`calc(${e.height} + ${o})`}},a=Ke(t.width),n=Ke(t.maxWidth);return{...i[e.position],resolvedRowAxisWidth:a,resolvedRowAxisMaxWidth:n,label:t.label}})(H,{width:B,maxWidth:_,label:F}):void 0,Y=(e=>({defaultTimeAxisHeight:Ye(e.defaultTimeAxisHeight),timeAxisLabelPaddingInlineStart:Ye(e.timeAxisLabelPaddingInlineStart),timeAxisLabelPaddingInlineEnd:Ye(e.timeAxisLabelPaddingInlineEnd),timeAxisLabelMinWidth:Ye(e.timeAxisLabelMinWidth),majorAxisFont:{fontSize:e.majorAxisFontSize,fontWeight:e.majorAxisFontWeight},minorAxisFont:{fontSize:e.minorAxisFontSize,fontWeight:e.minorAxisFontWeight}}))(y),X=s&&De(Y.defaultTimeAxisHeight,s),G=De(Y.defaultTimeAxisHeight,n),K=Ue(A,Y.timeAxisLabelPaddingInlineStart,Y.timeAxisLabelPaddingInlineEnd,Y.timeAxisLabelMinWidth,Y.minorAxisFont,I,L,G.zoomOrder),N=We(A,Y.timeAxisLabelPaddingInlineStart,Y.timeAxisLabelPaddingInlineEnd,Y.majorAxisFont,Y.minorAxisFont,K.getZoomOrderViewDurationThresholds,a,I,L,R,G,X,O,E),q=(e=>({rowPaddingTop:Ye(e.rowPaddingTop),rowPaddingBottom:Ye(e.rowPaddingBottom)}))(y),Q=(e=>({taskHeight:Ye(e.taskHeight),taskBorderRadius:e.taskBorderRadius,taskBgColor:e.taskBgColor,taskBorderColor:e.taskBorderColor,taskEffectBorderColor:e.taskEffectBorderColor,taskEffectBoxShadow:Ge(e.taskEffectBoxShadow)}))(y),ee=$(b,{...q,...Q},{horizontal:o,vertical:i},{selectedIds:x,selectionMode:f}),te=(e=>({rowLabelPaddingInlineStart:Ye(e.rowLabelPaddingInlineStart),rowLabelPaddingInlineEnd:Ye(e.rowLabelPaddingInlineEnd)}))(y),oe={labelPaddingInlineStart:te.rowLabelPaddingInlineStart,labelPaddingInlineEnd:te.rowLabelPaddingInlineEnd,rowData:ee.rowData,rowObjs:ee.rowObjs,idRowObjMap:ee.idRowObjMap,isHorizontalGridlinesVisible:"on"===o},ie=((e,t,o,i,r)=>a=>{const n=t-e,s=i-o,d=a*n/s,l=a*(e-o)/s,c=r?a-l-d:l;return{thumbWidth:d,thumbLeft:r?void 0:l,thumbRight:r?l:void 0,draggableRegion:{xMin:c,xMax:c+d,yMin:-1/0,yMax:1/0},getNewRange:e=>{const t=r?Math.max(0,a-e-d):e,l=Math.min(o+t/a*s,i-n);return{newMin:l,newMax:l+n}}}})(O??I,E??L,I,L,R),re=(ae=w,ne=void 0,se=0,de=ee.totalRowsHeight,e=>{const t=(ne??e+ae)-ae,o=de-se,i=Math.min(e,e*t/o),r=Math.max(0,e*(ae-se)/o);return{thumbHeight:i,thumbTop:r,draggableRegion:{xMin:-1/0,xMax:1/0,yMin:r,yMax:r+i},getNewRange:i=>{const r=Math.max(0,Math.min(se+i/e*o,de-t));return{newMin:r,newMax:r+t}}}});var ae,ne,se,de;return{scrollPosition:w,panZoomLayout:U,withRowAxisLayout:Z,getTimeAxesLayout:N,zoomParameters:void 0!==O&&void 0!==E?{viewportStartTime:O,viewportEndTime:E,minorAxisZoomOrderIndex:G.zoomOrderIndex,majorAxisZoomOrder:X?.zoomOrder,majorAxisZoomOrderIndex:X?.zoomOrderIndex,...K}:void 0,rowDataLayout:ee,rowAxisLayout:oe,getResolvedViewportLayout:J,getHorizontalScrollbarLayout:ie,onHorizontalScrollChange:(e,t)=>{g?.({viewportStart:h.getISOString(e),viewportEnd:h.getISOString(t),majorAxisScale:s?.scale,minorAxisScale:n.scale})},getVerticalScrollbarLayout:re,onVerticalScrollChange:e=>{p?.({y:e})},isRTL:R,layoutContent:j,isValidConfig:M,isReady:!0}},qe=({visRef:e,isDisabled:t=!1})=>t?{}:{onKeyDown:t=>{switch(t.key){case"=":case"+":{const o=new CustomEvent("KbZoomIn",{detail:{zoomFactor:h.DEFAULT_ZOOM_IN_FACTOR}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"-":case"_":{const o=new CustomEvent("KbZoomIn",{detail:{zoomFactor:h.DEFAULT_ZOOM_OUT_FACTOR}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"PageUp":{const o=t.shiftKey?new CustomEvent("KbPanHorizontal",{detail:{rangeRatio:.25}}):new CustomEvent("KbPanVertical",{detail:{rangeRatio:.25}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"PageDown":{const o=t.shiftKey?new CustomEvent("KbPanHorizontal",{detail:{rangeRatio:-.25}}):new CustomEvent("KbPanVertical",{detail:{rangeRatio:-.25}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}}}},Je=({rowDataLayout:e,currentTask:t,onCurrentTaskChange:o,isRTL:i,isDisabled:r=!1})=>r?{}:{onKeyDown:r=>{switch(r.key){case"ArrowRight":{const a=t&&(i?le(t.id,e):de(t.id,e));void 0!==a&&o({id:a,isFocused:!0}),L.cancelEvent(r);break}case"ArrowLeft":{const a=t&&(i?de(t.id,e):le(t.id,e));void 0!==a&&o({id:a,isFocused:!0}),L.cancelEvent(r);break}case"ArrowUp":{const i=t&&((e,t)=>se(e,t,"up"))(t.id,e);void 0!==i&&o({id:i,isFocused:!0}),L.cancelEvent(r);break}case"ArrowDown":{const i=t&&((e,t)=>se(e,t,"down"))(t.id,e);void 0!==i&&o({id:i,isFocused:!0}),L.cancelEvent(r);break}}}},Qe=({rowDataLayout:e,currentRowLabel:t,onCurrentRowLabelChange:o,isDisabled:i=!1})=>i?{}:{onKeyDown:i=>{switch(i.key){case"ArrowUp":{const r=t&&((e,t)=>ce(e,t,"up"))(t.id,e);void 0!==r&&o({id:r,isFocused:!0}),L.cancelEvent(i);break}case"ArrowDown":{const r=t&&((e,t)=>ce(e,t,"down"))(t.id,e);void 0!==r&&o({id:r,isFocused:!0}),L.cancelEvent(i);break}}}},et=({visRef:e,rowAxisRef:t,rowDataLayout:i,navigationModes:r,selectionProps:a,isRTL:n,isDisabled:s=!1})=>{const d=o.useRef("tasks"),{onKeyUp:l}=k.useSelection({idExtracter:e=>{if("tasks"===d.current&&"keyup"===e.type)return r.tasks.currentItem?.id},selection:a.selectedIds,selectionMode:a.selectionMode,onChange:a.onSelectionChange,getDataById:i?.getTaskDataById||(()=>{})}).selectionProps,c="tasks"===d.current?{onKeyUp:l}:{},h=qe({visRef:e,isDisabled:s}),u=Je({rowDataLayout:i,currentTask:r.tasks.currentItem,onCurrentTaskChange:r.tasks.onCurrentItemChange,isRTL:n}),m=Qe({rowDataLayout:i,currentRowLabel:r.rowLabels.currentItem,onCurrentRowLabelChange:r.rowLabels.onCurrentItemChange}),g={onFocus:()=>{const o=new Event("ShowFocusDatatip");e.current?.dispatchEvent(o),t.current?.dispatchEvent(o)}};return s?{}:y.mergeProps(h,g,{onKeyDown:e=>{let t=!1;const o=e=>{const{onCurrentItemChange:t}=r[e.type];t({id:e.id,isFocused:!0})},a=e=>{const{currentItem:t,onCurrentItemChange:o}=r[e];t&&o({id:t.id,isFocused:!1})},s=()=>{const n=((e,t)=>{const o=t.idTaskObjMap.get(e),{rowIndex:i}=o;return t.rowObjs[i].id})(r.tasks.currentItem.id,i);o({id:n,type:"rowLabels"}),a("tasks"),d.current="rowLabels",t=!0,L.cancelEvent(e)},l=()=>{const n=((e,t,o)=>{if(void 0!==o){const i=t.idTaskObjMap.get(o);if(i){const{rowIndex:r}=i;if(t.rowObjs[r].id===e)return o}}const i=t.idRowObjMap.get(e),r=i?.taskObjs[0];if(r)return r.id;const a=ae(t);return a?.id})(r.rowLabels.currentItem.id,i,r.tasks.currentItem?.id);void 0!==n&&o({id:n,type:"tasks"}),a("rowLabels"),d.current="tasks",t=!0,L.cancelEvent(e)};switch(e.key){case"Tab":a(d.current);break;case"ArrowLeft":e.altKey&&(n||"tasks"!==d.current?n&&"rowLabels"===d.current&&l():s());break;case"ArrowRight":e.altKey&&(n||"rowLabels"!==d.current?n&&"tasks"===d.current&&s():l())}if(!t)switch(d.current){case"tasks":u.onKeyDown?.(e);break;case"rowLabels":m.onKeyDown?.(e);break;default:return d.current}},onKeyUp:e=>{switch(e.key){case"Tab":{const{currentItem:t,onCurrentItemChange:o}=r[d.current],a=t||ae(i);a&&o({id:a.id,isFocused:!0}),L.cancelEvent(e);break}}}},c)};e.Gantt=function({width:e,height:i,testId:r,...a}){const n=o.useRef(null),{scrollPosition:s,panZoomLayout:d,withRowAxisLayout:l,getTimeAxesLayout:c,zoomParameters:h,rowDataLayout:u,rowAxisLayout:m,getResolvedViewportLayout:g,getHorizontalScrollbarLayout:w,onHorizontalScrollChange:p,getVerticalScrollbarLayout:b,onVerticalScrollChange:x,isRTL:f,layoutContent:T,isValidConfig:k,isReady:A}=$e(a),R={"aria-label":a["aria-label"],"aria-describedby":a["aria-describedby"],"aria-labelledby":a["aria-labelledby"],role:"application"},j=void 0!==a.viewportStart&&void 0!==a.viewportEnd,[S,C]=o.useState(),[I,P]=o.useState("none"),[L,D]=o.useState(),[M,V]=o.useState("none"),[z,B]=o.useState(),_=e=>{void 0!==e.id&&C({dataId:e.id,ariaId:v.getRandomId(),type:"rowLabel"}),V(void 0!==e.id?"hover":"none"),B(e.id)},[F,H]=o.useState(),U=e=>{if(e.isFocused){const t=new CustomEvent("KbPanTaskIntoView",{detail:{id:e.id}});Y.current?.dispatchEvent(t),C({dataId:e.id,ariaId:v.getRandomId(),type:"task"}),P("focus")}H(e)},[W,Z]=o.useState(),Y=o.useRef(null),X=o.useRef(null),G=o.useRef(null),K=(({rootRef:e,overlayControlsContainerRef:t,isDisabled:i=!1})=>{const r=o.useRef(!1),a=()=>{const e=new Event("ControlsShow");t.current?.dispatchEvent(e)},n=()=>{const e=new Event("ControlsHide");t.current?.dispatchEvent(e)};return i?{}:{onFocus:()=>{r.current=!0,a()},onBlur:t=>{t.relatedTarget&&e.current?.contains(t.relatedTarget)||(r.current=!1,n())},onPointerDown:t=>{"mouse"!==t.pointerType&&e.current?.focus()},onPointerOver:e=>{"mouse"===e.pointerType&&a()},onPointerOut:e=>{"mouse"===e.pointerType&&(r.current||n())}}})({rootRef:n,overlayControlsContainerRef:G,isDisabled:!j}),N=et({visRef:Y,rowAxisRef:X,navigationModes:{tasks:{currentItem:F,onCurrentItemChange:U},rowLabels:{currentItem:W,onCurrentItemChange:e=>{if(e.isFocused){const t=new CustomEvent("KbPanRowIntoView",{detail:{id:e.id}});Y.current?.dispatchEvent(t),C({dataId:e.id,ariaId:v.getRandomId(),type:"rowLabel"}),V("focus")}Z(e)}}},rowDataLayout:u,selectionProps:{selectedIds:a.selectedIds,selectionMode:a.selectionMode,onSelectionChange:a.onSelectionChange},isRTL:f,isDisabled:!j});if(!A||!k)return t.jsx(O,{innerRef:n,width:e,height:i,...R,children:T});const $=t.jsx(Le,{visRef:Y,overlayControlsContainerRef:G,isRTL:f,isViewportDefined:j,scrollPosition:s,onScrollPositionChange:a.onScrollPositionChange,onViewportChange:a.onViewportChange,rowAxisSeparator:!!l,zoomParameters:h,zooming:a.zooming,panZoomLayout:d,getTimeAxesLayout:c,getHorizontalScrollbarLayout:w,onHorizontalScrollChange:p,getVerticalScrollbarLayout:b,onVerticalScrollChange:x,getResolvedViewportLayout:g,rowDataLayout:u,datatip:a.datatip,selectedIds:a.selectedIds,selectionMode:a.selectionMode,onSelectionChange:a.onSelectionChange,hoveredTaskId:L,onTaskHoverChange:e=>{void 0!==e.id&&C({dataId:e.id,ariaId:v.getRandomId(),type:"task"}),P(void 0!==e.id?"hover":"none"),D(e.id)},currentTask:F,onCurrentTaskChange:U,currentTaskInteraction:I,ariaActive:"task"===S?.type?S:void 0}),q=l&&t.jsx(E,{...l,rowAxis:(e,o)=>t.jsx(ie,{innerRef:X,resolvedWidth:e,resolvedMaxWidth:o,currentRowLabel:W,hoveredRowLabelId:z,onRowLabelHoverChange:_,currentRowLabelInteraction:M,ariaActive:"rowLabel"===S?.type?S:void 0,layoutObj:m,scrollPosition:s,children:l.label}),ganttView:$});return t.jsxs(O,{innerRef:n,width:e,height:i,testId:r,...R,...y.mergeProps(N,K),"aria-activedescendant":S?.ariaId,children:[q||$,T]})}}));
2
2
  //# sourceMappingURL=Gantt-ad770490.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './grid-767b4587', './boxalignment-6cee1ef3', './mergeInterpolations-9ede4cf7', 'css!./GridStyles.styles.css', './useTestId-9afc201a'], (function(e,s,t,r,i,n,a){"use strict";const l=[...Object.values(t.gridInterpolations),...Object.values(r.boxAlignmentInterpolations)],d=i.mergeInterpolations(l);e.Grid=({"aria-label":e,"aria-hidden":t,children:r,testId:i,role:n,...l})=>{const{class:o,...c}=d(l),b=a.useTestId(i),u={...c};return s.jsx("div",{class:`GridStyles_baseStyles__11rn47i0 ${o||""}`,style:u,role:n,"aria-label":e,"aria-hidden":t,...b,children:r})}}));
2
- //# sourceMappingURL=Grid-d415ba8d.js.map
1
+ define(['exports', 'preact/jsx-runtime', './grid-767b4587', './boxalignment-6cee1ef3', './mergeInterpolations-9ede4cf7', 'css!./GridStyles.styles.css', './useTestId-a2e433c2'], (function(e,s,t,r,i,n,l){"use strict";const a=[...Object.values(t.gridInterpolations),...Object.values(r.boxAlignmentInterpolations)],d=i.mergeInterpolations(a);e.Grid=({"aria-label":e,"aria-hidden":t,children:r,testId:i,role:n,...a})=>{const{class:o,...c}=d(a),b=l.useTestId(i),u={...c};return s.jsx("div",{class:`GridStyles_baseStyles__11rn47i0 ${o||""}`,style:u,role:n,"aria-label":e,"aria-hidden":t,...b,children:r})}}));
2
+ //# sourceMappingURL=Grid-2ddec30a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grid-d415ba8d.js","sources":["../../src/UNSAFE_Grid/Grid.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport type { ComponentChildren, JSX } from 'preact';\n\nimport { gridInterpolations } from '../utils/UNSAFE_interpolations/grid';\nimport type { GridProps } from '../utils/UNSAFE_interpolations/grid';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { baseStyles } from './GridStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\n\ntype Props = GridProps &\n BoxAlignmentProps &\n TestIdProps & {\n /**\n * The aria role for the Grid\n */\n role?: UnpackSignals<JSX.HTMLAttributes>['role'];\n /**\n * aria-label for this Grid\n */\n 'aria-label'?: UnpackSignals<JSX.AriaAttributes>['aria-label'];\n /**\n * aria-hidden for this Grid\n */\n 'aria-hidden'?: UnpackSignals<JSX.AriaAttributes>['aria-hidden'];\n /**\n * The children to put in the grid.\n */\n children?: ComponentChildren;\n };\n\nconst interpolations = [\n ...Object.values(gridInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\n/**\n * An implicit grid. Resize your browser to see how items reflow.\n */\nexport const Grid = ({\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n children,\n testId,\n role,\n ...props\n}: Props) => {\n const { class: cls, ...styles } = styleInterpolations(props);\n const testIdProps = useTestId(testId);\n const allStyles = { ...styles };\n return (\n <div\n class={`${baseStyles} ${cls ? cls : ''}`}\n style={allStyles}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n {...testIdProps}>\n {children}\n </div>\n );\n};\n"],"names":["interpolations","Object","values","gridInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","ariaLabel","ariaHidden","children","testId","role","props","class","cls","styles","testIdProps","useTestId","allStyles","_jsx","style"],"mappings":"4MAuCA,MAAMA,EAAiB,IAClBC,OAAOC,OAAOC,yBACdF,OAAOC,OAAOE,+BAGbC,EAAsBC,EAAAA,oBAA2BN,UAKnC,EAClB,aAAcO,EACd,cAAeC,EACfC,WACAC,SACAC,UACGC,MAEH,MAAQC,MAAOC,KAAQC,GAAWV,EAAoBO,GAChDI,EAAcC,YAAUP,GACxBQ,EAAY,IAAKH,GACvB,OACEI,MAAA,MAAA,CACEN,MAAO,mCAAiBC,GAAY,KACpCM,MAAOF,EACPP,KAAMA,EACM,aAAAJ,EACC,cAAAC,KACTQ,EAAWP,SACdA,GAEH"}
1
+ {"version":3,"file":"Grid-2ddec30a.js","sources":["../../src/UNSAFE_Grid/Grid.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport type { ComponentChildren, JSX } from 'preact';\n\nimport { gridInterpolations } from '../utils/UNSAFE_interpolations/grid';\nimport type { GridProps } from '../utils/UNSAFE_interpolations/grid';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { baseStyles } from './GridStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport type { UnpackSignals } from '@oracle/oraclejet-internal-utilities/attributeUtils';\n\ntype Props = GridProps &\n BoxAlignmentProps &\n TestIdProps & {\n /**\n * The aria role for the Grid\n */\n role?: UnpackSignals<JSX.HTMLAttributes>['role'];\n /**\n * aria-label for this Grid\n */\n 'aria-label'?: UnpackSignals<JSX.AriaAttributes>['aria-label'];\n /**\n * aria-hidden for this Grid\n */\n 'aria-hidden'?: UnpackSignals<JSX.AriaAttributes>['aria-hidden'];\n /**\n * The children to put in the grid.\n */\n children?: ComponentChildren;\n };\n\nconst interpolations = [\n ...Object.values(gridInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\n/**\n * An implicit grid. Resize your browser to see how items reflow.\n */\nexport const Grid = ({\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n children,\n testId,\n role,\n ...props\n}: Props) => {\n const { class: cls, ...styles } = styleInterpolations(props);\n const testIdProps = useTestId(testId);\n const allStyles = { ...styles };\n return (\n <div\n class={`${baseStyles} ${cls ? cls : ''}`}\n style={allStyles}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n {...testIdProps}>\n {children}\n </div>\n );\n};\n"],"names":["interpolations","Object","values","gridInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","ariaLabel","ariaHidden","children","testId","role","props","class","cls","styles","testIdProps","useTestId","allStyles","_jsx","style"],"mappings":"4MAuCA,MAAMA,EAAiB,IAClBC,OAAOC,OAAOC,yBACdF,OAAOC,OAAOE,+BAGbC,EAAsBC,EAAAA,oBAA2BN,UAKnC,EAClB,aAAcO,EACd,cAAeC,EACfC,WACAC,SACAC,UACGC,MAEH,MAAQC,MAAOC,KAAQC,GAAWV,EAAoBO,GAChDI,EAAcC,YAAUP,GACxBQ,EAAY,IAAKH,GACvB,OACEI,MAAA,MAAA,CACEN,MAAO,mCAAiBC,GAAY,KACpCM,MAAOF,EACPP,KAAMA,EACM,aAAAJ,EACC,cAAAC,KACTQ,EAAWP,SACdA,GAEH"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './PRIVATE_PlotArea/themes/PlotAreaStyles.css', './hooks/PRIVATE_useVisDnd/themes/VisDndStyles.css', './classNames-08d99695', './useColorScheme-3022ec9a'], (function(e,s,t,i,l,n){"use strict";function o(e,s,t,i){let l,n,o,r;return"bottom"===s?(l=t?e.x+e.width:e.x,n=t?e.x+e.width:e.x,o=e.y,r=e.y+e.height):(l=e.x,n=e.x+e.width,o=t?e.y:e.y+e.height,r=t?e.y:e.y+e.height),{x1:l,x2:n,y1:o,y2:r,stroke:i?.lineColor,strokeWidth:i?.lineWidth}}function r(e,s,t,i){let l,n,o,r;return"bottom"===s?(l=t?e.x:e.x+e.width,n=t?e.x:e.x+e.width,o=e.y,r=e.y+e.height):(l=e.x,n=e.x+e.width,o=t?e.y+e.height:e.y,r=t?e.y+e.height:e.y),{x1:l,x2:n,y1:o,y2:r,stroke:i?.lineColor,strokeWidth:i?.lineWidth}}function d(e,s,t,i,l){let n,o,r,d;return e?l?(n=s,o=s,r=t,d=i):(n=t,o=i,r=s,d=s):l?(n=t,o=i,r=s,d=s):(n=s,o=s,r=t,d=i),{x1:n,x2:o,y1:r,y2:d}}const y={isRendered:!0},a={isRendered:!1},c={isRendered:!1},h={isRendered:!1},x={isRendered:!1},k={isRendered:!1};e.Gridlines=function({plotArea:e,yMinorTicks:i,xMinorTicks:L,xScale:$,yScale:S,y2Scale:m,isLog:g,yTicks:f,y2Ticks:M,xTicks:T,yAxisPosition:j,isDataXAxis:W,xAxis:R,yAxis:u,y2Axis:A,availSpace:v,xAxisPosition:p,isRtl:C,hasAxisLine:N,y2MinorTicks:P,isSplitDualY:b}){const w="top"===j||"bottom"===j,E=!!A?.isRendered,[D,V]=$.range(),[F,I]=E?m.range():S.range(),O={stroke:W?e?.xMajorTick?.baselineColor:e?.xMajorTick?.lineColor,strokeWidth:W?e?.xMajorTick?.baselineWidth:e?.xMajorTick?.lineWidth},_={stroke:e?.yMajorTick?.baselineColor,strokeWidth:e?.yMajorTick?.baselineWidth},G={stroke:e?.y2MajorTick?.baselineColor,strokeWidth:e?.y2MajorTick?.baselineWidth};let X="",Y="",q="",z="",B="",H="";const J={...y,...e?.yMajorTick},K={...c,...e?.yMinorTick},Q={...h,...e?.y2MinorTick},U={...k,...e?.xMinorTick},Z={...x,...e?.xMajorTick},ee={...a,isRendered:b,...e?.y2MajorTick},se=!0===K?.isRendered||g,te=!0===Q?.isRendered||g,ie=!0===Z?.isRendered||!1===e?.xMajorTick?.isRendered&&W,le=function(e,s,t){return{x1:"right"===s?e.x+e.width:e.x,x2:"left"===s?e.x:e.x+e.width,y1:"bottom"===s?e.y+e.height:e.y,y2:"top"===s?e.y:e.y+e.height,stroke:t?.lineColor,strokeWidth:t?.lineWidth}}(v,p),ne={stroke:e?.xAxisLine?.lineColor,strokeWidth:e?.xAxisLine?.lineWidth},oe={stroke:e?.yAxisLine?.lineColor,strokeWidth:e?.yAxisLine?.lineWidth},re={stroke:e?.y2AxisLine?.lineColor,strokeWidth:e?.y2AxisLine?.lineWidth},de="log"===u?.scale?f[0]:0,ye=d(w,S.transform(de),D,V,!0),ae="log"===A?.scale?M[0]:0,ce=d(w,m.transform(ae),D,V,!0),he="log"===R?.scale?T[0]:0,xe=d(w,$.transform(he),F,I,!1);if(J?.isRendered)for(let e=0;e<f.length;e++){if(0===f[e])continue;let s=S.transform(f[e]);e===f.length-1&&(s+=w?-1:1),X+=w?`M${s},${D}L${s},${V}`:`M${D},${s}L${V},${s}`}if(ee?.isRendered)for(let e=0;e<M.length;e++){if(0===f[e])continue;let s=m.transform(M[e]);e===M.length-1&&(s+=w?-1:1),Y+=w?`M${s},${D}L${s},${V}`:`M${D},${s}L${V},${s}`}if(ie&&T)for(let e=0;e<T.length;e++){const s=$.transform(T[e]);q+=w?`M${F},${s}L${I},${s}`:`M${s},${F}L${s},${I}`}if(se||te)for(let e=0;e<i.length;e++){const s=S.transform(i[e]);z+=w?`M${s},${D}L${s},${V}`:`M${D},${s}L${V},${s}`}if(te)for(let e=0;e<P.length;e++){const s=m.transform(P[e]);H+=w?`M${s},${D}L${s},${V}`:`M${D},${s}L${V},${s}`}if(U.isRendered&&L)for(let e=0;e<L.length;e++){const s=$.transform(L[e]);B+=w?`M${F},${s}L${I},${s}`:`M${s},${F}L${s},${I}`}const ke=n.useColorScheme();let Le;if(b){const e=w?f[f.length-1]:f[0],s=w?M[0]:M[M.length-1];Le=d(w,(S.transform(e)+m.transform(s))/2+.5*(w?-1:1),D,V,!0)}return s.jsxs(s.Fragment,{children:[J?.isRendered&&s.jsx("path",{d:X,className:l.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===J?.lineStyle?t.styles.dashedLine:void 0,"dotted"===J?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:E?ee.lineColor:J.lineColor,strokeWidth:E?ee.lineWidth:J.lineWidth}}),ee?.isRendered&&s.jsx("path",{d:Y,className:l.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===ee?.lineStyle?t.styles.dashedLine:void 0,"dotted"===ee?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:ee.lineColor,strokeWidth:ee.lineWidth}}),ie&&s.jsx("path",{d:q,className:l.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===Z?.lineStyle?t.styles.dashedLine:void 0,"dotted"===Z?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:Z.lineColor,strokeWidth:Z.lineWidth}}),se&&s.jsx("path",{d:z,className:l.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===ke?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===K?.lineStyle?t.styles.dashedLine:void 0,"dotted"===K?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:E?Q.lineColor:K?.lineColor,strokeWidth:E?Q.lineWidth:K?.lineWidth}}),te&&s.jsx("path",{d:H,className:l.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===ke?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===Q?.lineStyle?t.styles.dashedLine:void 0,"dotted"===Q?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:Q?.lineColor,strokeWidth:Q?.lineWidth}}),U.isRendered&&s.jsx("path",{d:B,className:l.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===ke?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===U?.lineStyle?t.styles.dashedLine:void 0,"dotted"===U?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:U?.lineColor,strokeWidth:U?.lineWidth}}),(W&&!1!==e?.y2AxisLine?.isRendered||e?.y2AxisLine?.isRendered)&&s.jsx("line",{...r(v,p,C),class:t.styles.axisLineStyle,style:re}),(W&&!1!==e?.yAxisLine?.isRendered||e?.yAxisLine?.isRendered)&&s.jsx("line",{...o(v,p,C),class:t.styles.axisLineStyle,style:oe}),N&&!1!==e?.xAxisLine?.isRendered&&s.jsx("line",{...le,class:t.styles.axisLineStyle,style:ne}),ee?.isRendered&&s.jsx("line",{...ce,class:t.styles.axisLineStyle,style:G}),J?.isRendered&&s.jsx("line",{...ye,class:t.styles.axisLineStyle,style:_}),Z?.isRendered&&s.jsx("line",{...xe,class:t.styles.axisLineStyle,style:O}),b&&Le?s.jsx("line",{...Le,class:t.styles.axisLineStyle,style:_}):null]})},e.PlotArea=function({color:e,availSpace:n,cursor:o,dragOverStyle:r}){const d=[];switch(r){case"accept":d.push(i.styles.dndDragOverSvgStyle);break;case"reject":d.push(i.styles.dndRejectedStyle),d.push(t.styles.plotAreaStyle);break;case"none":d.push(t.styles.plotAreaStyle)}return s.jsx(s.Fragment,{children:s.jsx("rect",{...n,className:l.classNames(d),style:{fill:"accept"===r?void 0:e,cursor:o}})})}}));
2
- //# sourceMappingURL=Gridlines-c6c1fbb5.js.map
1
+ define(['exports', 'preact/jsx-runtime', './PRIVATE_PlotArea/themes/PlotAreaStyles.css', './hooks/PRIVATE_useVisDnd/themes/VisDndStyles.css', './classNames-08d99695', './useColorScheme-f2a81610'], (function(e,s,t,i,l,n){"use strict";function o(e,s,t,i){let l,n,o,r;return"bottom"===s?(l=t?e.x+e.width:e.x,n=t?e.x+e.width:e.x,o=e.y,r=e.y+e.height):(l=e.x,n=e.x+e.width,o=t?e.y:e.y+e.height,r=t?e.y:e.y+e.height),{x1:l,x2:n,y1:o,y2:r,stroke:i?.lineColor,strokeWidth:i?.lineWidth}}function r(e,s,t,i){let l,n,o,r;return"bottom"===s?(l=t?e.x:e.x+e.width,n=t?e.x:e.x+e.width,o=e.y,r=e.y+e.height):(l=e.x,n=e.x+e.width,o=t?e.y+e.height:e.y,r=t?e.y+e.height:e.y),{x1:l,x2:n,y1:o,y2:r,stroke:i?.lineColor,strokeWidth:i?.lineWidth}}function d(e,s,t,i,l){let n,o,r,d;return e?l?(n=s,o=s,r=t,d=i):(n=t,o=i,r=s,d=s):l?(n=t,o=i,r=s,d=s):(n=s,o=s,r=t,d=i),{x1:n,x2:o,y1:r,y2:d}}const y={isRendered:!0},a={isRendered:!1},h={isRendered:!1},c={isRendered:!1},x={isRendered:!1},k={isRendered:!1};e.Gridlines=function({plotArea:e,yMinorTicks:i,xMinorTicks:L,xScale:$,yScale:S,y2Scale:m,isLog:f,yTicks:g,y2Ticks:M,xTicks:T,yAxisPosition:j,isDataXAxis:W,xAxis:R,yAxis:u,y2Axis:A,availSpace:v,xAxisPosition:p,isRtl:C,hasAxisLine:N,y2MinorTicks:P,isSplitDualY:b}){const w="top"===j||"bottom"===j,E=!!A?.isRendered,[D,V]=$.range(),[F,I]=E?m.range():S.range(),O={stroke:W?e?.xMajorTick?.baselineColor:e?.xMajorTick?.lineColor,strokeWidth:W?e?.xMajorTick?.baselineWidth:e?.xMajorTick?.lineWidth},_={stroke:e?.yMajorTick?.baselineColor,strokeWidth:e?.yMajorTick?.baselineWidth},G={stroke:e?.y2MajorTick?.baselineColor,strokeWidth:e?.y2MajorTick?.baselineWidth};let X="",Y="",q="",z="",B="",H="";const J={...y,...e?.yMajorTick},K={...h,...e?.yMinorTick},Q={...c,...e?.y2MinorTick},U={...k,...e?.xMinorTick},Z={...x,...e?.xMajorTick},ee={...a,isRendered:b,...e?.y2MajorTick},se=!0===K?.isRendered||f,te=!0===Q?.isRendered||f,ie=!0===Z?.isRendered||!1===e?.xMajorTick?.isRendered&&W,le=function(e,s,t){return{x1:"right"===s?e.x+e.width:e.x,x2:"left"===s?e.x:e.x+e.width,y1:"bottom"===s?e.y+e.height:e.y,y2:"top"===s?e.y:e.y+e.height,stroke:t?.lineColor,strokeWidth:t?.lineWidth}}(v,p),ne={stroke:e?.xAxisLine?.lineColor,strokeWidth:e?.xAxisLine?.lineWidth},oe={stroke:e?.yAxisLine?.lineColor,strokeWidth:e?.yAxisLine?.lineWidth},re={stroke:e?.y2AxisLine?.lineColor,strokeWidth:e?.y2AxisLine?.lineWidth},de="log"===u?.scale?g[0]:0,ye=d(w,S.transform(de),D,V,!0),ae="log"===A?.scale?M[0]:0,he=d(w,m.transform(ae),D,V,!0),ce="log"===R?.scale?T[0]:0,xe=d(w,$.transform(ce),F,I,!1);if(J?.isRendered)for(let e=0;e<g.length;e++){if(0===g[e])continue;let s=S.transform(g[e]);e===g.length-1&&(s+=w?-1:1),X+=w?`M${s},${D}L${s},${V}`:`M${D},${s}L${V},${s}`}if(ee?.isRendered)for(let e=0;e<M.length;e++){if(0===g[e])continue;let s=m.transform(M[e]);e===M.length-1&&(s+=w?-1:1),Y+=w?`M${s},${D}L${s},${V}`:`M${D},${s}L${V},${s}`}if(ie&&T)for(let e=0;e<T.length;e++){const s=$.transform(T[e]);q+=w?`M${F},${s}L${I},${s}`:`M${s},${F}L${s},${I}`}if(se||te)for(let e=0;e<i.length;e++){const s=S.transform(i[e]);z+=w?`M${s},${D}L${s},${V}`:`M${D},${s}L${V},${s}`}if(te)for(let e=0;e<P.length;e++){const s=m.transform(P[e]);H+=w?`M${s},${D}L${s},${V}`:`M${D},${s}L${V},${s}`}if(U.isRendered&&L)for(let e=0;e<L.length;e++){const s=$.transform(L[e]);B+=w?`M${F},${s}L${I},${s}`:`M${s},${F}L${s},${I}`}const ke=n.useColorScheme();let Le;if(b){const e=w?g[g.length-1]:g[0],s=w?M[0]:M[M.length-1];Le=d(w,(S.transform(e)+m.transform(s))/2+.5*(w?-1:1),D,V,!0)}return s.jsxs(s.Fragment,{children:[J?.isRendered&&s.jsx("path",{d:X,className:l.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===J?.lineStyle?t.styles.dashedLine:void 0,"dotted"===J?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:E?ee.lineColor:J.lineColor,strokeWidth:E?ee.lineWidth:J.lineWidth}}),ee?.isRendered&&s.jsx("path",{d:Y,className:l.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===ee?.lineStyle?t.styles.dashedLine:void 0,"dotted"===ee?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:ee.lineColor,strokeWidth:ee.lineWidth}}),ie&&s.jsx("path",{d:q,className:l.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===Z?.lineStyle?t.styles.dashedLine:void 0,"dotted"===Z?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:Z.lineColor,strokeWidth:Z.lineWidth}}),se&&s.jsx("path",{d:z,className:l.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===ke?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===K?.lineStyle?t.styles.dashedLine:void 0,"dotted"===K?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:E?Q.lineColor:K?.lineColor,strokeWidth:E?Q.lineWidth:K?.lineWidth}}),te&&s.jsx("path",{d:H,className:l.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===ke?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===Q?.lineStyle?t.styles.dashedLine:void 0,"dotted"===Q?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:Q?.lineColor,strokeWidth:Q?.lineWidth}}),U.isRendered&&s.jsx("path",{d:B,className:l.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===ke?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===U?.lineStyle?t.styles.dashedLine:void 0,"dotted"===U?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:U?.lineColor,strokeWidth:U?.lineWidth}}),(W&&!1!==e?.y2AxisLine?.isRendered||e?.y2AxisLine?.isRendered)&&s.jsx("line",{...r(v,p,C),class:t.styles.axisLineStyle,style:re}),(W&&!1!==e?.yAxisLine?.isRendered||e?.yAxisLine?.isRendered)&&s.jsx("line",{...o(v,p,C),class:t.styles.axisLineStyle,style:oe}),N&&!1!==e?.xAxisLine?.isRendered&&s.jsx("line",{...le,class:t.styles.axisLineStyle,style:ne}),ee?.isRendered&&s.jsx("line",{...he,class:t.styles.axisLineStyle,style:G}),J?.isRendered&&s.jsx("line",{...ye,class:t.styles.axisLineStyle,style:_}),Z?.isRendered&&s.jsx("line",{...xe,class:t.styles.axisLineStyle,style:O}),b&&Le?s.jsx("line",{...Le,class:t.styles.axisLineStyle,style:_}):null]})},e.PlotArea=function({color:e,availSpace:n,cursor:o,dragOverStyle:r}){const d=[];switch(r){case"accept":d.push(i.styles.dndDragOverSvgStyle);break;case"reject":d.push(i.styles.dndRejectedStyle),d.push(t.styles.plotAreaStyle);break;case"none":d.push(t.styles.plotAreaStyle)}return s.jsx(s.Fragment,{children:s.jsx("rect",{...n,className:l.classNames(d),style:{fill:"accept"===r?void 0:e,cursor:o}})})}}));
2
+ //# sourceMappingURL=Gridlines-545ae30a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gridlines-c6c1fbb5.js","sources":["../../src/PRIVATE_PlotArea/utils.ts","../../src/PRIVATE_PlotArea/Gridlines.tsx","../../src/PRIVATE_PlotArea/PlotArea.tsx"],"sourcesContent":["import { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { Dimension } from '../utils/UNSAFE_visTypes/common';\n\nexport function getXAxisLineProps(\n availSpace: Dimension,\n axisPosition: 'left' | 'right' | 'top' | 'bottom',\n axisLine?: {\n lineColor?: ColorProps['color'];\n lineWidth?: number;\n isRendered: boolean;\n }\n) {\n return {\n x1: axisPosition === 'right' ? availSpace.x + availSpace.width : availSpace.x,\n x2: axisPosition === 'left' ? availSpace.x : availSpace.x + availSpace.width,\n y1: axisPosition === 'bottom' ? availSpace.y + availSpace.height : availSpace.y,\n y2: axisPosition === 'top' ? availSpace.y : availSpace.y + availSpace.height,\n stroke: axisLine?.lineColor,\n strokeWidth: axisLine?.lineWidth\n };\n}\n\nexport function getYAxisLineProps(\n availSpace: Dimension,\n axisPosition: 'left' | 'right' | 'top' | 'bottom',\n isRtl?: boolean,\n axisLine?: {\n lineColor?: ColorProps['color'];\n lineWidth?: number;\n isRendered: boolean;\n }\n) {\n let x1, x2, y1, y2: number;\n if (axisPosition === 'bottom') {\n x1 = isRtl ? availSpace.x + availSpace.width : availSpace.x;\n x2 = isRtl ? availSpace.x + availSpace.width : availSpace.x;\n y1 = availSpace.y;\n y2 = availSpace.y + availSpace.height;\n } else {\n x1 = availSpace.x;\n x2 = availSpace.x + availSpace.width;\n y1 = isRtl ? availSpace.y : availSpace.y + availSpace.height;\n y2 = isRtl ? availSpace.y : availSpace.y + availSpace.height;\n }\n return {\n x1,\n x2,\n y1,\n y2,\n stroke: axisLine?.lineColor,\n strokeWidth: axisLine?.lineWidth\n };\n}\n\nexport function getY2AxisLineProps(\n availSpace: Dimension,\n axisPosition: 'left' | 'right' | 'top' | 'bottom',\n isRtl?: boolean,\n axisLine?: {\n lineColor?: ColorProps['color'];\n lineWidth?: number;\n isRendered: boolean;\n }\n) {\n let x1, x2, y1, y2: number;\n if (axisPosition === 'bottom') {\n x1 = isRtl ? availSpace.x : availSpace.x + availSpace.width;\n x2 = isRtl ? availSpace.x : availSpace.x + availSpace.width;\n y1 = availSpace.y;\n y2 = availSpace.y + availSpace.height;\n } else {\n x1 = availSpace.x;\n x2 = availSpace.x + availSpace.width;\n y1 = isRtl ? availSpace.y + availSpace.height : availSpace.y;\n y2 = isRtl ? availSpace.y + availSpace.height : availSpace.y;\n }\n return {\n x1,\n x2,\n y1,\n y2,\n stroke: axisLine?.lineColor,\n strokeWidth: axisLine?.lineWidth\n };\n}\n\nexport function getBaseLineProps(\n availSpace: Dimension,\n coord: number,\n axisPosition: 'left' | 'right' | 'top' | 'bottom'\n) {\n let x1, x2, y1, y2: number;\n if (axisPosition === 'bottom') {\n x1 = availSpace.x;\n x2 = availSpace.x + availSpace.width;\n y1 = coord;\n y2 = coord;\n } else {\n x1 = coord;\n x2 = coord;\n y1 = availSpace.y;\n y2 = availSpace.y + availSpace.height;\n }\n\n return { x1, x2, y1, y2 };\n}\n\nexport function getBaseLineCoords(\n isHoriz: boolean,\n coord: number,\n range1: number,\n range2: number,\n isYAxis: boolean\n) {\n let x1, x2, y1, y2: number;\n if (isHoriz) {\n if (isYAxis) {\n x1 = coord;\n x2 = coord;\n y1 = range1;\n y2 = range2;\n } else {\n x1 = range1;\n x2 = range2;\n y1 = coord;\n y2 = coord;\n }\n } else {\n if (isYAxis) {\n x1 = range1;\n x2 = range2;\n y1 = coord;\n y2 = coord;\n } else {\n x1 = coord;\n x2 = coord;\n y1 = range1;\n y2 = range2;\n }\n }\n\n return { x1, x2, y1, y2 };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { styles } from './themes/PlotAreaStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { ChartPlotArea, DataAxisProps, Scale } from '../utils/UNSAFE_visTypes/chart';\nimport { useColorScheme } from '../hooks/UNSAFE_useColorScheme';\nimport {\n getBaseLineCoords,\n getXAxisLineProps,\n getY2AxisLineProps,\n getYAxisLineProps\n} from './utils';\nimport { Dimension } from '#utils/UNSAFE_visTypes/common';\n\ntype Props = {\n availSpace: Dimension;\n xAxisPosition: 'left' | 'right' | 'top' | 'bottom';\n isRtl?: boolean;\n hasAxisLine: boolean;\n xScale: Scale;\n yScale: Scale;\n y2Scale: Scale;\n isLog: boolean;\n yTicks: number[];\n y2Ticks: number[];\n xTicks: number[];\n yMinorTicks: number[];\n y2MinorTicks: number[];\n xMinorTicks?: number[];\n plotArea?: ChartPlotArea;\n yAxisPosition: 'left' | 'right' | 'top' | 'bottom';\n isDataXAxis?: boolean;\n xAxis?: DataAxisProps;\n yAxis?: DataAxisProps;\n y2Axis?: DataAxisProps;\n isSplitDualY: boolean;\n};\n\nconst TICK_DEFAULT = {\n yMajorTick: {\n isRendered: true\n },\n y2MajorTick: {\n isRendered: false\n },\n yMinorTick: {\n isRendered: false\n },\n y2MinorTick: {\n isRendered: false\n },\n xMajorTick: {\n isRendered: false\n },\n xMinorTick: {\n isRendered: false\n }\n};\n\nexport function Gridlines({\n plotArea,\n yMinorTicks,\n xMinorTicks,\n xScale,\n yScale,\n y2Scale,\n isLog,\n yTicks,\n y2Ticks,\n xTicks,\n yAxisPosition,\n isDataXAxis,\n xAxis,\n yAxis,\n y2Axis,\n availSpace,\n xAxisPosition,\n isRtl,\n hasAxisLine,\n y2MinorTicks,\n isSplitDualY\n}: Props) {\n const isHoriz = yAxisPosition === 'top' || yAxisPosition === 'bottom';\n const hasY2 = !!y2Axis?.isRendered;\n const [x1, x2] = xScale.range();\n const [y1, y2] = hasY2 ? y2Scale.range() : yScale.range();\n\n const xAxisBaselineStyle = {\n stroke: isDataXAxis ? plotArea?.xMajorTick?.baselineColor : plotArea?.xMajorTick?.lineColor,\n strokeWidth: isDataXAxis ? plotArea?.xMajorTick?.baselineWidth : plotArea?.xMajorTick?.lineWidth\n };\n const yAxisBaselineStyle = {\n stroke: plotArea?.yMajorTick?.baselineColor,\n strokeWidth: plotArea?.yMajorTick?.baselineWidth\n };\n const y2AxisBaselineStyle = {\n stroke: plotArea?.y2MajorTick?.baselineColor,\n strokeWidth: plotArea?.y2MajorTick?.baselineWidth\n };\n let yLinesPath = '';\n let y2LinesPath = '';\n let xLinesPath = '';\n let yMinorPath = '';\n let xMinorPath = '';\n let y2MinorPath = '';\n\n const yMajorTick = { ...TICK_DEFAULT.yMajorTick, ...plotArea?.yMajorTick };\n const yMinorTick = { ...TICK_DEFAULT.yMinorTick, ...plotArea?.yMinorTick };\n const y2MinorTick = { ...TICK_DEFAULT.y2MinorTick, ...plotArea?.y2MinorTick };\n const xMinorTick = { ...TICK_DEFAULT.xMinorTick, ...plotArea?.xMinorTick };\n const xMajorTick = { ...TICK_DEFAULT.xMajorTick, ...plotArea?.xMajorTick };\n const y2MajorTick = {\n ...TICK_DEFAULT.y2MajorTick,\n isRendered: isSplitDualY,\n ...plotArea?.y2MajorTick\n };\n const isYMinorRendered = yMinorTick?.isRendered === true || isLog;\n const isY2MinorRendered = y2MinorTick?.isRendered === true || isLog;\n const isXMajorRendered =\n xMajorTick?.isRendered === true || (plotArea?.xMajorTick?.isRendered === false && isDataXAxis);\n\n const xAxisLineProps = getXAxisLineProps(availSpace, xAxisPosition);\n\n const xAxisLineStyle = {\n stroke: plotArea?.xAxisLine?.lineColor,\n strokeWidth: plotArea?.xAxisLine?.lineWidth\n };\n const yAxisLineStyle = {\n stroke: plotArea?.yAxisLine?.lineColor,\n strokeWidth: plotArea?.yAxisLine?.lineWidth\n };\n const y2AxisLineStyle = {\n stroke: plotArea?.y2AxisLine?.lineColor,\n strokeWidth: plotArea?.y2AxisLine?.lineWidth\n };\n\n const yBaseLine = yAxis?.scale === 'log' ? yTicks[0] : 0;\n const yBaseLineCoords = getBaseLineCoords(isHoriz, yScale.transform(yBaseLine), x1, x2, true);\n\n const y2BaseLine = y2Axis?.scale === 'log' ? y2Ticks[0] : 0;\n const y2BaseLineCoords = getBaseLineCoords(isHoriz, y2Scale.transform(y2BaseLine), x1, x2, true);\n\n const xBaseLine = xAxis?.scale === 'log' ? xTicks[0] : 0;\n const xBaseLineCoords = getBaseLineCoords(isHoriz, xScale.transform(xBaseLine), y1, y2, false);\n\n if (yMajorTick?.isRendered) {\n for (let i = 0; i < yTicks.length; i++) {\n if (yTicks[i] === 0) {\n // zero is skipped for majorTick. baseline is rendered at 0\n continue;\n }\n let y = yScale.transform(yTicks[i]);\n // last grid line get's clipped due to plot area clippath. Slightly adjust\n // coord so that it's not clipped.\n if (i === yTicks.length - 1) {\n y += isHoriz ? -1 : 1;\n }\n yLinesPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (y2MajorTick?.isRendered) {\n for (let i = 0; i < y2Ticks.length; i++) {\n if (yTicks[i] === 0) {\n // zero is skipped for majorTick. baseline is rendered at 0\n continue;\n }\n let y = y2Scale.transform(y2Ticks[i]);\n // last grid line get's clipped due to plot area clippath. Slightly adjust\n // coord so that it's not clipped.\n if (i === y2Ticks.length - 1) {\n y += isHoriz ? -1 : 1;\n }\n y2LinesPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (isXMajorRendered) {\n if (xTicks) {\n for (let i = 0; i < xTicks.length; i++) {\n const x = xScale.transform(xTicks[i]);\n xLinesPath += isHoriz ? `M${y1},${x}L${y2},${x}` : `M${x},${y1}L${x},${y2}`;\n }\n }\n }\n\n if (isYMinorRendered || isY2MinorRendered) {\n for (let i = 0; i < yMinorTicks.length; i++) {\n const y = yScale.transform(yMinorTicks[i]);\n yMinorPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (isY2MinorRendered) {\n for (let i = 0; i < y2MinorTicks.length; i++) {\n const y = y2Scale.transform(y2MinorTicks[i]);\n y2MinorPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (xMinorTick.isRendered && xMinorTicks) {\n for (let i = 0; i < xMinorTicks.length; i++) {\n const x = xScale.transform(xMinorTicks[i]);\n xMinorPath += isHoriz ? `M${y1},${x}L${y2},${x}` : `M${x},${y1}L${x},${y2}`;\n }\n }\n\n const colorScheme = useColorScheme();\n\n let splitCoords:\n | {\n x1: number;\n x2: number;\n y1: number;\n y2: number;\n }\n | undefined = undefined;\n if (isSplitDualY) {\n const ySplitCoord = !isHoriz ? yTicks[0] : yTicks[yTicks.length - 1];\n const y2SplitCoord = !isHoriz ? y2Ticks[y2Ticks.length - 1] : y2Ticks[0];\n const splitCoord = (yScale.transform(ySplitCoord) + y2Scale.transform(y2SplitCoord)) / 2;\n splitCoords = getBaseLineCoords(isHoriz, splitCoord + (isHoriz ? -1 : 1) * 0.5, x1, x2, true);\n }\n\n /*\n Render order: \n 1. Gridlines: y and y2 are same because of aligned ticks.\n a. majorTick: y -> x\n b. minorTick y -> x\n 2. Axislines → Baselines, with each in the order: y2 → y → x\n*/\n return (\n <>\n {yMajorTick?.isRendered && (\n <path\n d={yLinesPath}\n className={classNames([\n styles.noPointerEvents,\n styles.majorTickLineStyles,\n yMajorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n yMajorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: hasY2 ? y2MajorTick.lineColor : yMajorTick.lineColor,\n strokeWidth: hasY2 ? y2MajorTick.lineWidth : yMajorTick.lineWidth\n }}\n />\n )}\n {y2MajorTick?.isRendered && (\n <path\n d={y2LinesPath}\n className={classNames([\n styles.noPointerEvents,\n styles.majorTickLineStyles,\n y2MajorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n y2MajorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: y2MajorTick.lineColor,\n strokeWidth: y2MajorTick.lineWidth\n }}\n />\n )}\n {isXMajorRendered && (\n <path\n d={xLinesPath}\n className={classNames([\n styles.noPointerEvents,\n styles.majorTickLineStyles,\n xMajorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n xMajorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: xMajorTick.lineColor,\n strokeWidth: xMajorTick.lineWidth\n }}\n />\n )}\n {isYMinorRendered && (\n <path\n d={yMinorPath}\n className={classNames([\n styles.noPointerEvents,\n styles.minorTickLineStyles,\n colorScheme === 'light'\n ? styles.lightMinorTickLineStroke\n : styles.darkMinorTickLineStroke,\n yMinorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n yMinorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: hasY2 ? y2MinorTick.lineColor : yMinorTick?.lineColor,\n strokeWidth: hasY2 ? y2MinorTick.lineWidth : yMinorTick?.lineWidth\n }}\n />\n )}\n {isY2MinorRendered && (\n <path\n d={y2MinorPath}\n className={classNames([\n styles.noPointerEvents,\n styles.minorTickLineStyles,\n colorScheme === 'light'\n ? styles.lightMinorTickLineStroke\n : styles.darkMinorTickLineStroke,\n y2MinorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n y2MinorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: y2MinorTick?.lineColor,\n strokeWidth: y2MinorTick?.lineWidth\n }}\n />\n )}\n {xMinorTick.isRendered && (\n <path\n d={xMinorPath}\n className={classNames([\n styles.noPointerEvents,\n styles.minorTickLineStyles,\n colorScheme === 'light'\n ? styles.lightMinorTickLineStroke\n : styles.darkMinorTickLineStroke,\n xMinorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n xMinorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: xMinorTick?.lineColor,\n strokeWidth: xMinorTick?.lineWidth\n }}\n />\n )}\n {((isDataXAxis && plotArea?.y2AxisLine?.isRendered !== false) ||\n plotArea?.y2AxisLine?.isRendered) && (\n <line\n {...getY2AxisLineProps(availSpace, xAxisPosition, isRtl)}\n class={styles.axisLineStyle}\n style={y2AxisLineStyle}\n />\n )}\n {((isDataXAxis && plotArea?.yAxisLine?.isRendered !== false) ||\n plotArea?.yAxisLine?.isRendered) && (\n <line\n {...getYAxisLineProps(availSpace, xAxisPosition, isRtl)}\n class={styles.axisLineStyle}\n style={yAxisLineStyle}\n />\n )}\n {hasAxisLine && plotArea?.xAxisLine?.isRendered !== false && (\n <line {...xAxisLineProps} class={styles.axisLineStyle} style={xAxisLineStyle} />\n )}\n {y2MajorTick?.isRendered && (\n <line {...y2BaseLineCoords} class={styles.axisLineStyle} style={y2AxisBaselineStyle} />\n )}\n {yMajorTick?.isRendered && (\n <line {...yBaseLineCoords} class={styles.axisLineStyle} style={yAxisBaselineStyle} />\n )}\n {xMajorTick?.isRendered && (\n <line {...xBaseLineCoords} class={styles.axisLineStyle} style={xAxisBaselineStyle} />\n )}\n {isSplitDualY && splitCoords ? (\n <line {...splitCoords} class={styles.axisLineStyle} style={yAxisBaselineStyle} />\n ) : null}\n </>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { styles } from './themes/PlotAreaStyles.css';\nimport { Dimension } from '../utils/UNSAFE_visTypes/common';\nimport { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { styles as VisStyles } from '#hooks/PRIVATE_useVisDnd/themes/VisDndStyles.css';\nimport { classNames } from '#utils/UNSAFE_classNames';\n\ntype Props = {\n color?: ColorProps['color'];\n availSpace: Dimension;\n cursor?: string;\n dragOverStyle: 'accept' | 'reject' | 'none';\n};\n\nexport function PlotArea({ color, availSpace, cursor, dragOverStyle }: Props) {\n const dragClass = [];\n switch (dragOverStyle) {\n case 'accept':\n dragClass.push(VisStyles.dndDragOverSvgStyle);\n break;\n case 'reject':\n dragClass.push(VisStyles.dndRejectedStyle);\n dragClass.push(styles.plotAreaStyle);\n break;\n case 'none':\n dragClass.push(styles.plotAreaStyle);\n break;\n }\n return (\n <>\n <rect\n {...availSpace}\n className={classNames(dragClass)}\n style={{ fill: dragOverStyle === 'accept' ? undefined : color, cursor }}></rect>\n </>\n );\n}\n"],"names":["getYAxisLineProps","availSpace","axisPosition","isRtl","axisLine","x1","x2","y1","y2","x","width","y","height","stroke","lineColor","strokeWidth","lineWidth","getY2AxisLineProps","getBaseLineCoords","isHoriz","coord","range1","range2","isYAxis","TICK_DEFAULT","isRendered","plotArea","yMinorTicks","xMinorTicks","xScale","yScale","y2Scale","isLog","yTicks","y2Ticks","xTicks","yAxisPosition","isDataXAxis","xAxis","yAxis","y2Axis","xAxisPosition","hasAxisLine","y2MinorTicks","isSplitDualY","hasY2","range","xAxisBaselineStyle","xMajorTick","baselineColor","baselineWidth","yAxisBaselineStyle","yMajorTick","y2AxisBaselineStyle","y2MajorTick","yLinesPath","y2LinesPath","xLinesPath","yMinorPath","xMinorPath","y2MinorPath","yMinorTick","y2MinorTick","xMinorTick","isYMinorRendered","isY2MinorRendered","isXMajorRendered","xAxisLineProps","getXAxisLineProps","xAxisLineStyle","xAxisLine","yAxisLineStyle","yAxisLine","y2AxisLineStyle","y2AxisLine","yBaseLine","scale","yBaseLineCoords","transform","y2BaseLine","y2BaseLineCoords","xBaseLine","xBaseLineCoords","i","length","colorScheme","useColorScheme","splitCoords","ySplitCoord","y2SplitCoord","_jsxs","jsxs","_Fragment","Fragment","children","_jsx","jsx","d","className","classNames","styles","noPointerEvents","majorTickLineStyles","lineStyle","dashedLine","undefined","dottedLine","style","minorTickLineStyles","lightMinorTickLineStroke","darkMinorTickLineStroke","class","axisLineStyle","color","cursor","dragOverStyle","dragClass","push","VisStyles","dndDragOverSvgStyle","dndRejectedStyle","plotAreaStyle","fill"],"mappings":"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"}
1
+ {"version":3,"file":"Gridlines-545ae30a.js","sources":["../../src/PRIVATE_PlotArea/utils.ts","../../src/PRIVATE_PlotArea/Gridlines.tsx","../../src/PRIVATE_PlotArea/PlotArea.tsx"],"sourcesContent":["import { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { Dimension } from '../utils/UNSAFE_visTypes/common';\n\nexport function getXAxisLineProps(\n availSpace: Dimension,\n axisPosition: 'left' | 'right' | 'top' | 'bottom',\n axisLine?: {\n lineColor?: ColorProps['color'];\n lineWidth?: number;\n isRendered: boolean;\n }\n) {\n return {\n x1: axisPosition === 'right' ? availSpace.x + availSpace.width : availSpace.x,\n x2: axisPosition === 'left' ? availSpace.x : availSpace.x + availSpace.width,\n y1: axisPosition === 'bottom' ? availSpace.y + availSpace.height : availSpace.y,\n y2: axisPosition === 'top' ? availSpace.y : availSpace.y + availSpace.height,\n stroke: axisLine?.lineColor,\n strokeWidth: axisLine?.lineWidth\n };\n}\n\nexport function getYAxisLineProps(\n availSpace: Dimension,\n axisPosition: 'left' | 'right' | 'top' | 'bottom',\n isRtl?: boolean,\n axisLine?: {\n lineColor?: ColorProps['color'];\n lineWidth?: number;\n isRendered: boolean;\n }\n) {\n let x1, x2, y1, y2: number;\n if (axisPosition === 'bottom') {\n x1 = isRtl ? availSpace.x + availSpace.width : availSpace.x;\n x2 = isRtl ? availSpace.x + availSpace.width : availSpace.x;\n y1 = availSpace.y;\n y2 = availSpace.y + availSpace.height;\n } else {\n x1 = availSpace.x;\n x2 = availSpace.x + availSpace.width;\n y1 = isRtl ? availSpace.y : availSpace.y + availSpace.height;\n y2 = isRtl ? availSpace.y : availSpace.y + availSpace.height;\n }\n return {\n x1,\n x2,\n y1,\n y2,\n stroke: axisLine?.lineColor,\n strokeWidth: axisLine?.lineWidth\n };\n}\n\nexport function getY2AxisLineProps(\n availSpace: Dimension,\n axisPosition: 'left' | 'right' | 'top' | 'bottom',\n isRtl?: boolean,\n axisLine?: {\n lineColor?: ColorProps['color'];\n lineWidth?: number;\n isRendered: boolean;\n }\n) {\n let x1, x2, y1, y2: number;\n if (axisPosition === 'bottom') {\n x1 = isRtl ? availSpace.x : availSpace.x + availSpace.width;\n x2 = isRtl ? availSpace.x : availSpace.x + availSpace.width;\n y1 = availSpace.y;\n y2 = availSpace.y + availSpace.height;\n } else {\n x1 = availSpace.x;\n x2 = availSpace.x + availSpace.width;\n y1 = isRtl ? availSpace.y + availSpace.height : availSpace.y;\n y2 = isRtl ? availSpace.y + availSpace.height : availSpace.y;\n }\n return {\n x1,\n x2,\n y1,\n y2,\n stroke: axisLine?.lineColor,\n strokeWidth: axisLine?.lineWidth\n };\n}\n\nexport function getBaseLineProps(\n availSpace: Dimension,\n coord: number,\n axisPosition: 'left' | 'right' | 'top' | 'bottom'\n) {\n let x1, x2, y1, y2: number;\n if (axisPosition === 'bottom') {\n x1 = availSpace.x;\n x2 = availSpace.x + availSpace.width;\n y1 = coord;\n y2 = coord;\n } else {\n x1 = coord;\n x2 = coord;\n y1 = availSpace.y;\n y2 = availSpace.y + availSpace.height;\n }\n\n return { x1, x2, y1, y2 };\n}\n\nexport function getBaseLineCoords(\n isHoriz: boolean,\n coord: number,\n range1: number,\n range2: number,\n isYAxis: boolean\n) {\n let x1, x2, y1, y2: number;\n if (isHoriz) {\n if (isYAxis) {\n x1 = coord;\n x2 = coord;\n y1 = range1;\n y2 = range2;\n } else {\n x1 = range1;\n x2 = range2;\n y1 = coord;\n y2 = coord;\n }\n } else {\n if (isYAxis) {\n x1 = range1;\n x2 = range2;\n y1 = coord;\n y2 = coord;\n } else {\n x1 = coord;\n x2 = coord;\n y1 = range1;\n y2 = range2;\n }\n }\n\n return { x1, x2, y1, y2 };\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { styles } from './themes/PlotAreaStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { ChartPlotArea, DataAxisProps, Scale } from '../utils/UNSAFE_visTypes/chart';\nimport { useColorScheme } from '../hooks/UNSAFE_useColorScheme';\nimport {\n getBaseLineCoords,\n getXAxisLineProps,\n getY2AxisLineProps,\n getYAxisLineProps\n} from './utils';\nimport { Dimension } from '#utils/UNSAFE_visTypes/common';\n\ntype Props = {\n availSpace: Dimension;\n xAxisPosition: 'left' | 'right' | 'top' | 'bottom';\n isRtl?: boolean;\n hasAxisLine: boolean;\n xScale: Scale;\n yScale: Scale;\n y2Scale: Scale;\n isLog: boolean;\n yTicks: number[];\n y2Ticks: number[];\n xTicks: number[];\n yMinorTicks: number[];\n y2MinorTicks: number[];\n xMinorTicks?: number[];\n plotArea?: ChartPlotArea;\n yAxisPosition: 'left' | 'right' | 'top' | 'bottom';\n isDataXAxis?: boolean;\n xAxis?: DataAxisProps;\n yAxis?: DataAxisProps;\n y2Axis?: DataAxisProps;\n isSplitDualY: boolean;\n};\n\nconst TICK_DEFAULT = {\n yMajorTick: {\n isRendered: true\n },\n y2MajorTick: {\n isRendered: false\n },\n yMinorTick: {\n isRendered: false\n },\n y2MinorTick: {\n isRendered: false\n },\n xMajorTick: {\n isRendered: false\n },\n xMinorTick: {\n isRendered: false\n }\n};\n\nexport function Gridlines({\n plotArea,\n yMinorTicks,\n xMinorTicks,\n xScale,\n yScale,\n y2Scale,\n isLog,\n yTicks,\n y2Ticks,\n xTicks,\n yAxisPosition,\n isDataXAxis,\n xAxis,\n yAxis,\n y2Axis,\n availSpace,\n xAxisPosition,\n isRtl,\n hasAxisLine,\n y2MinorTicks,\n isSplitDualY\n}: Props) {\n const isHoriz = yAxisPosition === 'top' || yAxisPosition === 'bottom';\n const hasY2 = !!y2Axis?.isRendered;\n const [x1, x2] = xScale.range();\n const [y1, y2] = hasY2 ? y2Scale.range() : yScale.range();\n\n const xAxisBaselineStyle = {\n stroke: isDataXAxis ? plotArea?.xMajorTick?.baselineColor : plotArea?.xMajorTick?.lineColor,\n strokeWidth: isDataXAxis ? plotArea?.xMajorTick?.baselineWidth : plotArea?.xMajorTick?.lineWidth\n };\n const yAxisBaselineStyle = {\n stroke: plotArea?.yMajorTick?.baselineColor,\n strokeWidth: plotArea?.yMajorTick?.baselineWidth\n };\n const y2AxisBaselineStyle = {\n stroke: plotArea?.y2MajorTick?.baselineColor,\n strokeWidth: plotArea?.y2MajorTick?.baselineWidth\n };\n let yLinesPath = '';\n let y2LinesPath = '';\n let xLinesPath = '';\n let yMinorPath = '';\n let xMinorPath = '';\n let y2MinorPath = '';\n\n const yMajorTick = { ...TICK_DEFAULT.yMajorTick, ...plotArea?.yMajorTick };\n const yMinorTick = { ...TICK_DEFAULT.yMinorTick, ...plotArea?.yMinorTick };\n const y2MinorTick = { ...TICK_DEFAULT.y2MinorTick, ...plotArea?.y2MinorTick };\n const xMinorTick = { ...TICK_DEFAULT.xMinorTick, ...plotArea?.xMinorTick };\n const xMajorTick = { ...TICK_DEFAULT.xMajorTick, ...plotArea?.xMajorTick };\n const y2MajorTick = {\n ...TICK_DEFAULT.y2MajorTick,\n isRendered: isSplitDualY,\n ...plotArea?.y2MajorTick\n };\n const isYMinorRendered = yMinorTick?.isRendered === true || isLog;\n const isY2MinorRendered = y2MinorTick?.isRendered === true || isLog;\n const isXMajorRendered =\n xMajorTick?.isRendered === true || (plotArea?.xMajorTick?.isRendered === false && isDataXAxis);\n\n const xAxisLineProps = getXAxisLineProps(availSpace, xAxisPosition);\n\n const xAxisLineStyle = {\n stroke: plotArea?.xAxisLine?.lineColor,\n strokeWidth: plotArea?.xAxisLine?.lineWidth\n };\n const yAxisLineStyle = {\n stroke: plotArea?.yAxisLine?.lineColor,\n strokeWidth: plotArea?.yAxisLine?.lineWidth\n };\n const y2AxisLineStyle = {\n stroke: plotArea?.y2AxisLine?.lineColor,\n strokeWidth: plotArea?.y2AxisLine?.lineWidth\n };\n\n const yBaseLine = yAxis?.scale === 'log' ? yTicks[0] : 0;\n const yBaseLineCoords = getBaseLineCoords(isHoriz, yScale.transform(yBaseLine), x1, x2, true);\n\n const y2BaseLine = y2Axis?.scale === 'log' ? y2Ticks[0] : 0;\n const y2BaseLineCoords = getBaseLineCoords(isHoriz, y2Scale.transform(y2BaseLine), x1, x2, true);\n\n const xBaseLine = xAxis?.scale === 'log' ? xTicks[0] : 0;\n const xBaseLineCoords = getBaseLineCoords(isHoriz, xScale.transform(xBaseLine), y1, y2, false);\n\n if (yMajorTick?.isRendered) {\n for (let i = 0; i < yTicks.length; i++) {\n if (yTicks[i] === 0) {\n // zero is skipped for majorTick. baseline is rendered at 0\n continue;\n }\n let y = yScale.transform(yTicks[i]);\n // last grid line get's clipped due to plot area clippath. Slightly adjust\n // coord so that it's not clipped.\n if (i === yTicks.length - 1) {\n y += isHoriz ? -1 : 1;\n }\n yLinesPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (y2MajorTick?.isRendered) {\n for (let i = 0; i < y2Ticks.length; i++) {\n if (yTicks[i] === 0) {\n // zero is skipped for majorTick. baseline is rendered at 0\n continue;\n }\n let y = y2Scale.transform(y2Ticks[i]);\n // last grid line get's clipped due to plot area clippath. Slightly adjust\n // coord so that it's not clipped.\n if (i === y2Ticks.length - 1) {\n y += isHoriz ? -1 : 1;\n }\n y2LinesPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (isXMajorRendered) {\n if (xTicks) {\n for (let i = 0; i < xTicks.length; i++) {\n const x = xScale.transform(xTicks[i]);\n xLinesPath += isHoriz ? `M${y1},${x}L${y2},${x}` : `M${x},${y1}L${x},${y2}`;\n }\n }\n }\n\n if (isYMinorRendered || isY2MinorRendered) {\n for (let i = 0; i < yMinorTicks.length; i++) {\n const y = yScale.transform(yMinorTicks[i]);\n yMinorPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (isY2MinorRendered) {\n for (let i = 0; i < y2MinorTicks.length; i++) {\n const y = y2Scale.transform(y2MinorTicks[i]);\n y2MinorPath += isHoriz ? `M${y},${x1}L${y},${x2}` : `M${x1},${y}L${x2},${y}`;\n }\n }\n\n if (xMinorTick.isRendered && xMinorTicks) {\n for (let i = 0; i < xMinorTicks.length; i++) {\n const x = xScale.transform(xMinorTicks[i]);\n xMinorPath += isHoriz ? `M${y1},${x}L${y2},${x}` : `M${x},${y1}L${x},${y2}`;\n }\n }\n\n const colorScheme = useColorScheme();\n\n let splitCoords:\n | {\n x1: number;\n x2: number;\n y1: number;\n y2: number;\n }\n | undefined = undefined;\n if (isSplitDualY) {\n const ySplitCoord = !isHoriz ? yTicks[0] : yTicks[yTicks.length - 1];\n const y2SplitCoord = !isHoriz ? y2Ticks[y2Ticks.length - 1] : y2Ticks[0];\n const splitCoord = (yScale.transform(ySplitCoord) + y2Scale.transform(y2SplitCoord)) / 2;\n splitCoords = getBaseLineCoords(isHoriz, splitCoord + (isHoriz ? -1 : 1) * 0.5, x1, x2, true);\n }\n\n /*\n Render order: \n 1. Gridlines: y and y2 are same because of aligned ticks.\n a. majorTick: y -> x\n b. minorTick y -> x\n 2. Axislines → Baselines, with each in the order: y2 → y → x\n*/\n return (\n <>\n {yMajorTick?.isRendered && (\n <path\n d={yLinesPath}\n className={classNames([\n styles.noPointerEvents,\n styles.majorTickLineStyles,\n yMajorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n yMajorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: hasY2 ? y2MajorTick.lineColor : yMajorTick.lineColor,\n strokeWidth: hasY2 ? y2MajorTick.lineWidth : yMajorTick.lineWidth\n }}\n />\n )}\n {y2MajorTick?.isRendered && (\n <path\n d={y2LinesPath}\n className={classNames([\n styles.noPointerEvents,\n styles.majorTickLineStyles,\n y2MajorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n y2MajorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: y2MajorTick.lineColor,\n strokeWidth: y2MajorTick.lineWidth\n }}\n />\n )}\n {isXMajorRendered && (\n <path\n d={xLinesPath}\n className={classNames([\n styles.noPointerEvents,\n styles.majorTickLineStyles,\n xMajorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n xMajorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: xMajorTick.lineColor,\n strokeWidth: xMajorTick.lineWidth\n }}\n />\n )}\n {isYMinorRendered && (\n <path\n d={yMinorPath}\n className={classNames([\n styles.noPointerEvents,\n styles.minorTickLineStyles,\n colorScheme === 'light'\n ? styles.lightMinorTickLineStroke\n : styles.darkMinorTickLineStroke,\n yMinorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n yMinorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: hasY2 ? y2MinorTick.lineColor : yMinorTick?.lineColor,\n strokeWidth: hasY2 ? y2MinorTick.lineWidth : yMinorTick?.lineWidth\n }}\n />\n )}\n {isY2MinorRendered && (\n <path\n d={y2MinorPath}\n className={classNames([\n styles.noPointerEvents,\n styles.minorTickLineStyles,\n colorScheme === 'light'\n ? styles.lightMinorTickLineStroke\n : styles.darkMinorTickLineStroke,\n y2MinorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n y2MinorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: y2MinorTick?.lineColor,\n strokeWidth: y2MinorTick?.lineWidth\n }}\n />\n )}\n {xMinorTick.isRendered && (\n <path\n d={xMinorPath}\n className={classNames([\n styles.noPointerEvents,\n styles.minorTickLineStyles,\n colorScheme === 'light'\n ? styles.lightMinorTickLineStroke\n : styles.darkMinorTickLineStroke,\n xMinorTick?.lineStyle === 'dashed' ? styles.dashedLine : undefined,\n xMinorTick?.lineStyle === 'dotted' ? styles.dottedLine : undefined\n ])}\n style={{\n stroke: xMinorTick?.lineColor,\n strokeWidth: xMinorTick?.lineWidth\n }}\n />\n )}\n {((isDataXAxis && plotArea?.y2AxisLine?.isRendered !== false) ||\n plotArea?.y2AxisLine?.isRendered) && (\n <line\n {...getY2AxisLineProps(availSpace, xAxisPosition, isRtl)}\n class={styles.axisLineStyle}\n style={y2AxisLineStyle}\n />\n )}\n {((isDataXAxis && plotArea?.yAxisLine?.isRendered !== false) ||\n plotArea?.yAxisLine?.isRendered) && (\n <line\n {...getYAxisLineProps(availSpace, xAxisPosition, isRtl)}\n class={styles.axisLineStyle}\n style={yAxisLineStyle}\n />\n )}\n {hasAxisLine && plotArea?.xAxisLine?.isRendered !== false && (\n <line {...xAxisLineProps} class={styles.axisLineStyle} style={xAxisLineStyle} />\n )}\n {y2MajorTick?.isRendered && (\n <line {...y2BaseLineCoords} class={styles.axisLineStyle} style={y2AxisBaselineStyle} />\n )}\n {yMajorTick?.isRendered && (\n <line {...yBaseLineCoords} class={styles.axisLineStyle} style={yAxisBaselineStyle} />\n )}\n {xMajorTick?.isRendered && (\n <line {...xBaseLineCoords} class={styles.axisLineStyle} style={xAxisBaselineStyle} />\n )}\n {isSplitDualY && splitCoords ? (\n <line {...splitCoords} class={styles.axisLineStyle} style={yAxisBaselineStyle} />\n ) : null}\n </>\n );\n}\n","/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { styles } from './themes/PlotAreaStyles.css';\nimport { Dimension } from '../utils/UNSAFE_visTypes/common';\nimport { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { styles as VisStyles } from '#hooks/PRIVATE_useVisDnd/themes/VisDndStyles.css';\nimport { classNames } from '#utils/UNSAFE_classNames';\n\ntype Props = {\n color?: ColorProps['color'];\n availSpace: Dimension;\n cursor?: string;\n dragOverStyle: 'accept' | 'reject' | 'none';\n};\n\nexport function PlotArea({ color, availSpace, cursor, dragOverStyle }: Props) {\n const dragClass = [];\n switch (dragOverStyle) {\n case 'accept':\n dragClass.push(VisStyles.dndDragOverSvgStyle);\n break;\n case 'reject':\n dragClass.push(VisStyles.dndRejectedStyle);\n dragClass.push(styles.plotAreaStyle);\n break;\n case 'none':\n dragClass.push(styles.plotAreaStyle);\n break;\n }\n return (\n <>\n <rect\n {...availSpace}\n className={classNames(dragClass)}\n style={{ fill: dragOverStyle === 'accept' ? undefined : color, cursor }}></rect>\n </>\n );\n}\n"],"names":["getYAxisLineProps","availSpace","axisPosition","isRtl","axisLine","x1","x2","y1","y2","x","width","y","height","stroke","lineColor","strokeWidth","lineWidth","getY2AxisLineProps","getBaseLineCoords","isHoriz","coord","range1","range2","isYAxis","TICK_DEFAULT","isRendered","plotArea","yMinorTicks","xMinorTicks","xScale","yScale","y2Scale","isLog","yTicks","y2Ticks","xTicks","yAxisPosition","isDataXAxis","xAxis","yAxis","y2Axis","xAxisPosition","hasAxisLine","y2MinorTicks","isSplitDualY","hasY2","range","xAxisBaselineStyle","xMajorTick","baselineColor","baselineWidth","yAxisBaselineStyle","yMajorTick","y2AxisBaselineStyle","y2MajorTick","yLinesPath","y2LinesPath","xLinesPath","yMinorPath","xMinorPath","y2MinorPath","yMinorTick","y2MinorTick","xMinorTick","isYMinorRendered","isY2MinorRendered","isXMajorRendered","xAxisLineProps","getXAxisLineProps","xAxisLineStyle","xAxisLine","yAxisLineStyle","yAxisLine","y2AxisLineStyle","y2AxisLine","yBaseLine","scale","yBaseLineCoords","transform","y2BaseLine","y2BaseLineCoords","xBaseLine","xBaseLineCoords","i","length","colorScheme","useColorScheme","splitCoords","ySplitCoord","y2SplitCoord","_jsxs","jsxs","_Fragment","Fragment","children","_jsx","jsx","d","className","classNames","styles","noPointerEvents","majorTickLineStyles","lineStyle","dashedLine","undefined","dottedLine","style","minorTickLineStyles","lightMinorTickLineStroke","darkMinorTickLineStroke","class","axisLineStyle","color","cursor","dragOverStyle","dragClass","push","VisStyles","dndDragOverSvgStyle","dndRejectedStyle","plotAreaStyle","fill"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/hooks', './classNames-08d99695', './keys-4755c121', './useId-c9578d26', './useViewportIntersect-ec96c12e', './TabbableModeContext-a9c97640', './useComponentTheme-5aa41a8f', './useInteractionStyle-15a2bdd0', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './PRIVATE_List/themes/ListStyles.css', './UNSAFE_GroupedList/themes/redwood/GroupedListTheme', './Flex-07d2aa5b', './Skeleton-a7e166a0', './List-5b5b3bd7'], (function(e,i,t,s,o,n,a,d,r,l,c,u,p,b,v,x,y){"use strict";e.GROUP_SELECTOR="[data-oj-listview-group]",e.GroupLoadingIndicator=()=>i.jsx(y.SkeletonContainer,{minimumCount:3,children:e=>{const t={paddingLeft:10*e+"px"};return i.jsxs(v.Flex,{height:"12x",align:"center",children:[i.jsx("span",{style:t}),i.jsx(x.Skeleton,{height:"4x"})]})}}),e.ListGroupHeader=function({ariaDescribedBy:e,children:v,itemKey:x,itemIndex:y,itemDepth:m,isFocused:h,isFocusRingVisible:g,isActive:S,isGridlineVisible:j,isExpandable:I,expandedKeys:f,viewportConfig:E}){const[T,C]=t.useState(!1),{classes:H,styles:L}=r.useComponentTheme(b.GroupedListRedwoodTheme),{interactionProps:R,applyHoverStyle:k,applyPseudoHoverStyle:w,applyActiveStyle:V}=l.useInteractionStyle(),G=[p.listGroupHeaderMultiVariantStyles({expandable:I?"isExpandable":"notExpandable",needsEventsHover:k?"isNeedsEventsHover":"notNeedsEventsHover",pseudoHover:w?"isPseudoHover":"notPseudoHover",active:V||S?"isActive":"notActive",focusRingVisible:g&&h?"isFocusRingVisible":"notFocusRingVisible",gridlineTop:y>0?"visible":"hidden",gridlineBottom:j?"visible":"hidden"})];T&&(G.push(H),G.push(L.stuckHeader));const F=s.classNames(G),N=c.mergeInterpolations([...Object.values(u.flexitemInterpolations)]),{class:P,...A}=N({alignSelf:"center",flex:"1 0 auto"});return a.useViewportIntersect({scroller:()=>I?null:null==E?document.body:E.scroller()},0,1,"[data-oj-key="+x+"]",(()=>{C(!1)}),(e=>{e.boundingClientRect.y!==e.intersectionRect.y&&C(!0)})),i.jsx("div",{id:n.useId(),role:"row","aria-rowindex":y+1,"aria-level":isNaN(m)?void 0:m+1,"data-oj-key":x,"data-oj-listview-group":"",class:F,..."number"==typeof x&&{"data-oj-key-type":"number"},...R,children:i.jsx("div",{id:n.useId(),role:"gridcell","aria-describedby":e,"aria-colindex":1,"aria-expanded":o.containsKey(f,x),style:A,children:i.jsx(d.TabbableModeContext.Provider,{value:{isTabbable:!1},children:v})})})},e.STICKY_SELECTOR="[data-oj-listview-sticky]"}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/hooks', './classNames-08d99695', './keys-4755c121', './useId-c9578d26', './useViewportIntersect-ec96c12e', './TabbableModeContext-a9c97640', './useComponentTheme-5aa41a8f', './useInteractionStyle-15a2bdd0', './mergeInterpolations-9ede4cf7', './flexitem-5db48325', './PRIVATE_List/themes/ListStyles.css', './UNSAFE_GroupedList/themes/redwood/GroupedListTheme', './Flex-4bc3a394', './Skeleton-a7e166a0', './List-5b5b3bd7'], (function(e,i,t,s,o,n,a,r,d,l,c,u,p,b,v,x,y){"use strict";e.GROUP_SELECTOR="[data-oj-listview-group]",e.GroupLoadingIndicator=()=>i.jsx(y.SkeletonContainer,{minimumCount:3,children:e=>{const t={paddingLeft:10*e+"px"};return i.jsxs(v.Flex,{height:"12x",align:"center",children:[i.jsx("span",{style:t}),i.jsx(x.Skeleton,{height:"4x"})]})}}),e.ListGroupHeader=function({ariaDescribedBy:e,children:v,itemKey:x,itemIndex:y,itemDepth:m,isFocused:h,isFocusRingVisible:g,isActive:S,isGridlineVisible:j,isExpandable:I,expandedKeys:f,viewportConfig:E}){const[T,C]=t.useState(!1),{classes:H,styles:L}=d.useComponentTheme(b.GroupedListRedwoodTheme),{interactionProps:R,applyHoverStyle:k,applyPseudoHoverStyle:w,applyActiveStyle:V}=l.useInteractionStyle(),G=[p.listGroupHeaderMultiVariantStyles({expandable:I?"isExpandable":"notExpandable",needsEventsHover:k?"isNeedsEventsHover":"notNeedsEventsHover",pseudoHover:w?"isPseudoHover":"notPseudoHover",active:V||S?"isActive":"notActive",focusRingVisible:g&&h?"isFocusRingVisible":"notFocusRingVisible",gridlineTop:y>0?"visible":"hidden",gridlineBottom:j?"visible":"hidden"})];T&&(G.push(H),G.push(L.stuckHeader));const F=s.classNames(G),N=c.mergeInterpolations([...Object.values(u.flexitemInterpolations)]),{class:P,...A}=N({alignSelf:"center",flex:"1 0 auto"});return a.useViewportIntersect({scroller:()=>I?null:null==E?document.body:E.scroller()},0,1,"[data-oj-key="+x+"]",(()=>{C(!1)}),(e=>{e.boundingClientRect.y!==e.intersectionRect.y&&C(!0)})),i.jsx("div",{id:n.useId(),role:"row","aria-rowindex":y+1,"aria-level":isNaN(m)?void 0:m+1,"data-oj-key":x,"data-oj-listview-group":"",class:F,..."number"==typeof x&&{"data-oj-key-type":"number"},...R,children:i.jsx("div",{id:n.useId(),role:"gridcell","aria-describedby":e,"aria-colindex":1,"aria-expanded":o.containsKey(f,x),style:A,children:i.jsx(r.TabbableModeContext.Provider,{value:{isTabbable:!1},children:v})})})},e.STICKY_SELECTOR="[data-oj-listview-sticky]"}));
2
2
  //# sourceMappingURL=GroupLoadingIndicator-87f32efc.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'css!./HighlightTextStyles.styles.css', './useTestId-9afc201a'], (function(e,t,s,n){"use strict";const i="__@@__",c=`${i}$&${i}`;e.HighlightText=function({children:e="",matchText:s="",testId:l}){const h=n.useTestId(l);if(s.length>0&&e.length>0){const n=s.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),l=e.replace(new RegExp(n,"gi"),c).split(i).map(((e,s)=>s%2==0?e:t.jsx("span",{class:"HighlightTextStyles_highlightStyles__6s5c4p0",children:e})));return t.jsx("span",{...h,children:l})}return t.jsx("span",{...h,children:e})}}));
2
- //# sourceMappingURL=HighlightText-ecd2e5ce.js.map
1
+ define(['exports', 'preact/jsx-runtime', 'css!./HighlightTextStyles.styles.css', './useTestId-a2e433c2'], (function(e,t,s,n){"use strict";const i="__@@__",c=`${i}$&${i}`;e.HighlightText=function({children:e="",matchText:s="",testId:l}){const h=n.useTestId(l);if(s.length>0&&e.length>0){const n=s.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),l=e.replace(new RegExp(n,"gi"),c).split(i).map(((e,s)=>s%2==0?e:t.jsx("span",{class:"HighlightTextStyles_highlightStyles__6s5c4p0",children:e})));return t.jsx("span",{...h,children:l})}return t.jsx("span",{...h,children:e})}}));
2
+ //# sourceMappingURL=HighlightText-ace1b6c4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HighlightText-ecd2e5ce.js","sources":["../../src/UNSAFE_HighlightText/HighlightText.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { highlightStyles } from './HighlightTextStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\n\ntype Props = TestIdProps & {\n /**\n * The text string to apply highlighting to.\n */\n children?: string;\n /**\n * The text string to match.\n */\n matchText?: string;\n};\n\nconst HIGHLIGHT_TOKEN = '__@@__';\nconst HIGHLIGHT_PATTERN = `${HIGHLIGHT_TOKEN}$&${HIGHLIGHT_TOKEN}`;\n\n/**\n * Renders a text string with highlighting applied to the given text to match.\n */\nexport function HighlightText({ children = '', matchText = '', testId }: Props) {\n const testIdProps = useTestId(testId);\n if (matchText.length > 0 && children.length > 0) {\n const escapedMatchText = escapeRegExp(matchText);\n const highlightedText = children.replace(new RegExp(escapedMatchText, 'gi'), HIGHLIGHT_PATTERN);\n const tokens = highlightedText.split(HIGHLIGHT_TOKEN);\n const nodes = tokens.map((current, index) =>\n index % 2 == 0 ? current : <span class={highlightStyles}>{current}</span>\n );\n\n return <span {...testIdProps}>{nodes}</span>;\n }\n return <span {...testIdProps}>{children}</span>;\n}\n\nfunction escapeRegExp(str: string) {\n // copied from:\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping\n return str.replace(/[.*+\\-?^${}()|[\\]\\\\]/g, '\\\\$&'); // $& means the whole matched string\n}\n"],"names":["HIGHLIGHT_TOKEN","HIGHLIGHT_PATTERN","children","matchText","testId","testIdProps","useTestId","length","escapedMatchText","replace","nodes","RegExp","split","map","current","index","_jsx","jsx","class"],"mappings":"kIAsBA,MAAMA,EAAkB,SAClBC,EAAoB,GAAGD,MAAoBA,oBAKjC,UAAcE,SAAEA,EAAW,GAAEC,UAAEA,EAAY,GAAEC,OAAEA,IAC7D,MAAMC,EAAcC,YAAUF,GAC9B,GAAID,EAAUI,OAAS,GAAKL,EAASK,OAAS,EAAG,CAC/C,MAAMC,EAAgCL,EAe7BM,QAAQ,wBAAyB,QAZpCC,EAFkBR,EAASO,QAAQ,IAAIE,OAAOH,EAAkB,MAAOP,GAC9CW,MAAMZ,GAChBa,KAAI,CAACC,EAASC,IACjCA,EAAQ,GAAK,EAAID,EAAUE,EAAMC,IAAA,OAAA,CAAAC,qDAAsBhB,SAAGY,MAG5D,OAAOE,EAAAA,IAAU,OAAA,IAAAX,EAAcH,SAAAQ,GAChC,CACD,OAAOM,EAAAA,IAAU,OAAA,IAAAX,EAAcH,SAAAA,GACjC"}
1
+ {"version":3,"file":"HighlightText-ace1b6c4.js","sources":["../../src/UNSAFE_HighlightText/HighlightText.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\n\nimport { highlightStyles } from './HighlightTextStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\n\ntype Props = TestIdProps & {\n /**\n * The text string to apply highlighting to.\n */\n children?: string;\n /**\n * The text string to match.\n */\n matchText?: string;\n};\n\nconst HIGHLIGHT_TOKEN = '__@@__';\nconst HIGHLIGHT_PATTERN = `${HIGHLIGHT_TOKEN}$&${HIGHLIGHT_TOKEN}`;\n\n/**\n * Renders a text string with highlighting applied to the given text to match.\n */\nexport function HighlightText({ children = '', matchText = '', testId }: Props) {\n const testIdProps = useTestId(testId);\n if (matchText.length > 0 && children.length > 0) {\n const escapedMatchText = escapeRegExp(matchText);\n const highlightedText = children.replace(new RegExp(escapedMatchText, 'gi'), HIGHLIGHT_PATTERN);\n const tokens = highlightedText.split(HIGHLIGHT_TOKEN);\n const nodes = tokens.map((current, index) =>\n index % 2 == 0 ? current : <span class={highlightStyles}>{current}</span>\n );\n\n return <span {...testIdProps}>{nodes}</span>;\n }\n return <span {...testIdProps}>{children}</span>;\n}\n\nfunction escapeRegExp(str: string) {\n // copied from:\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping\n return str.replace(/[.*+\\-?^${}()|[\\]\\\\]/g, '\\\\$&'); // $& means the whole matched string\n}\n"],"names":["HIGHLIGHT_TOKEN","HIGHLIGHT_PATTERN","children","matchText","testId","testIdProps","useTestId","length","escapedMatchText","replace","nodes","RegExp","split","map","current","index","_jsx","jsx","class"],"mappings":"kIAsBA,MAAMA,EAAkB,SAClBC,EAAoB,GAAGD,MAAoBA,oBAKjC,UAAcE,SAAEA,EAAW,GAAEC,UAAEA,EAAY,GAAEC,OAAEA,IAC7D,MAAMC,EAAcC,YAAUF,GAC9B,GAAID,EAAUI,OAAS,GAAKL,EAASK,OAAS,EAAG,CAC/C,MAAMC,EAAgCL,EAe7BM,QAAQ,wBAAyB,QAZpCC,EAFkBR,EAASO,QAAQ,IAAIE,OAAOH,EAAkB,MAAOP,GAC9CW,MAAMZ,GAChBa,KAAI,CAACC,EAASC,IACjCA,EAAQ,GAAK,EAAID,EAAUE,EAAMC,IAAA,OAAA,CAAAC,qDAAsBhB,SAAGY,MAG5D,OAAOE,EAAAA,IAAU,OAAA,IAAAX,EAAcH,SAAAQ,GAChC,CACD,OAAOM,EAAAA,IAAU,OAAA,IAAAX,EAAcH,SAAAA,GACjC"}
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', './size-0127b66b', './useTooltip-75a63697', 'preact/hooks', './logger-0f873e29', './LayerHost-daf96749', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', './UNSAFE_Icon/themes/IconStyle.css', './clientHints-6d361eaa'], (function(e,s,t,o,l,i,c,n,r,a,h,b,p,d,m){"use strict";const x=({accessibleLabel:e,...t})=>e?s.jsx(y,{accessibleLabel:e,...t}):s.jsx(u,{...t}),u=e=>s.jsx("svg",{...e}),y=({accessibleLabel:e,children:o,...i})=>{const{tooltipContent:c,tooltipProps:{onFocus:n,onBlur:r,...a}}=l.useTooltip({text:e,anchor:{x:"element",y:"element"}});return s.jsxs(t.Fragment,{children:[s.jsx("svg",{role:"img",...i,...a,"aria-label":e,children:o}),c]})};e.Icon=({size:e="1em",color:t="currentColor",accessibleLabel:l="",viewBox:i="none",children:c})=>{if("safari"===m.getClientHints().browser){const n="1em"===e?e:`${o.sizeToCSS(e)}`;return s.jsx(x,{viewBox:i,accessibleLabel:l,class:d.styles[t],style:{width:n,height:n},children:c})}return s.jsx(x,{height:"1em",width:"1em",viewBox:i,accessibleLabel:l,class:d.styles[t],style:{fontSize:"1em"===e?e:`${o.sizeToCSS(e)}`},children:c})}}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', './size-0127b66b', './useTooltip-e14d62f1', 'preact/hooks', './logger-0f873e29', './LayerHost-7d4aa6d3', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', './UNSAFE_Icon/themes/IconStyle.css', './clientHints-6d361eaa'], (function(e,s,t,o,l,i,c,n,r,a,h,d,p,b,m){"use strict";const x=({accessibleLabel:e,...t})=>e?s.jsx(y,{accessibleLabel:e,...t}):s.jsx(u,{...t}),u=e=>s.jsx("svg",{...e}),y=({accessibleLabel:e,children:o,...i})=>{const{tooltipContent:c,tooltipProps:{onFocus:n,onBlur:r,...a}}=l.useTooltip({text:e,anchor:{x:"element",y:"element"}});return s.jsxs(t.Fragment,{children:[s.jsx("svg",{role:"img",...i,...a,"aria-label":e,children:o}),c]})};e.Icon=({size:e="1em",color:t="currentColor",accessibleLabel:l="",viewBox:i="none",children:c})=>{if("safari"===m.getClientHints().browser){const n="1em"===e?e:`${o.sizeToCSS(e)}`;return s.jsx(x,{viewBox:i,accessibleLabel:l,class:b.styles[t],style:{width:n,height:n},children:c})}return s.jsx(x,{height:"1em",width:"1em",viewBox:i,accessibleLabel:l,class:b.styles[t],style:{fontSize:"1em"===e?e:`${o.sizeToCSS(e)}`},children:c})}}));
2
2
  //# sourceMappingURL=Icon-865b3c78.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-d69319ea', './ButtonLabelLayout-9cc087dc', 'preact/compat', './useTooltip-75a63697', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-daf96749', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', './buttonUtils-cbbb0130'], (function(t,o,e,s,a,i,n,l,r,p,c,u,d,b,m,y){"use strict";const h=i.forwardRef((({variant:t="outlined",isDisabled:i=!1,isRepeat:l=!1,size:p="md",type:c="button",autofocus:u,onAction:d,width:b,tooltip:m,testId:h,...f},B)=>{const{globalEventProps:T,ariaProps:{"aria-label":g,...x}}=y.processGlobals(f),{tooltipContent:w,tooltipProps:I}=n.useTooltip({text:m||g,isDisabled:i}),L={type:"button",buttonType:c};return o.jsxs(e.Fragment,{children:[o.jsx(s.BaseButton,{...r.mergeProps(I,T,x),ref:B,elementDetails:L,isDisabled:i,isRepeat:l,size:p,autofocus:u,variant:t,width:b,styling:["min"],onAction:d,"aria-label":g??m,testId:h,children:o.jsx(a.ButtonLabelLayout,{display:"icons",startIcon:f.children,size:p})}),w]})}));h.displayName="IconButton",t.IconButton=h}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-2c9850cb', './ButtonLabelLayout-9cc087dc', 'preact/compat', './useTooltip-e14d62f1', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-7d4aa6d3', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', './buttonUtils-cbbb0130'], (function(t,o,e,s,a,i,n,l,r,c,p,u,d,b,m,y){"use strict";const h=i.forwardRef((({variant:t="outlined",isDisabled:i=!1,isRepeat:l=!1,size:c="md",type:p="button",autofocus:u,onAction:d,width:b,tooltip:m,testId:h,...f},B)=>{const{globalEventProps:T,ariaProps:{"aria-label":g,...x}}=y.processGlobals(f),{tooltipContent:w,tooltipProps:I}=n.useTooltip({text:m||g,isDisabled:i}),L={type:"button",buttonType:p};return o.jsxs(e.Fragment,{children:[o.jsx(s.BaseButton,{...r.mergeProps(I,T,x),ref:B,elementDetails:L,isDisabled:i,isRepeat:l,size:c,autofocus:u,variant:t,width:b,styling:["min"],onAction:d,"aria-label":g??m,testId:h,children:o.jsx(a.ButtonLabelLayout,{display:"icons",startIcon:f.children,size:c})}),w]})}));h.displayName="IconButton",t.IconButton=h}));
2
2
  //# sourceMappingURL=IconButton-232d63fc.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', './ButtonLabelLayout-9cc087dc', './ChevronDown-1d01f028', './Menu-45a26116', './MenuItem-ff1cd14d', 'preact/hooks', 'preact', './useTooltip-75a63697', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-daf96749', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-ae57629b', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Menu/themes/MenuItemStyles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', 'css!./MenuStyles.styles.css', './useMenuAction-26df747b', './BaseButton-d69319ea'], (function(e,t,s,o,n,a,i,r,l,u,c,d,p,y,m,h,b,M,S,f,g,T,I,x,B,w,A){"use strict";const F=p.forwardRef((({children:e,tooltip:a,accessibleLabel:c,variant:d="outlined",isDisabled:p=!1,isMenuOpen:y=!1,isIconOnly:m=!1,onToggleMenu:h,size:b="md",type:M="button",testId:S,width:f,icon:g,"aria-describedby":T},I)=>{const x=i.useRef(null);i.useImperativeHandle(I,(()=>x.current),[x]);const{triggerProps:B,menuProps:F}=w.useMenuAction({isDisabled:p,onToggleMenu:h,isMenuOpen:y,anchorRef:x}),{tooltipContent:j,tooltipProps:v}=l.useTooltip({text:a||c,isDisabled:y||p}),C={type:"button",buttonType:M},D={"aria-describedby":T},N=t.jsx(r.Fragment,{children:t.jsxs(A.BaseButton,{...u.mergeProps(v,B,D),styling:y?["min","active"]:["min"],elementDetails:C,isDisabled:p,variant:d,width:f,size:b,ref:x,"aria-label":c??a,testId:S,children:[t.jsx(s.ButtonLabelLayout,{display:"icons",startIcon:g,endIcon:m?null:t.jsx(o.SvgChevronDown,{}),size:b}),j]})});return p?N:t.jsxs(r.Fragment,{children:[N,t.jsx(n.Menu,{...F,offsetValue:4,"aria-label":c??a,children:e})]})}));F.displayName="IconMenuButton",e.IconMenuButton=F}));
1
+ define(['exports', 'preact/jsx-runtime', './ButtonLabelLayout-9cc087dc', './ChevronDown-1d01f028', './Menu-45a26116', './MenuItem-ff1cd14d', 'preact/hooks', 'preact', './useTooltip-e14d62f1', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-7d4aa6d3', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-3c8a0253', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Menu/themes/MenuItemStyles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', 'css!./MenuStyles.styles.css', './useMenuAction-26df747b', './BaseButton-2c9850cb'], (function(e,t,s,o,n,a,i,r,l,c,u,d,p,y,m,h,b,M,S,f,g,T,I,x,B,w,A){"use strict";const F=p.forwardRef((({children:e,tooltip:a,accessibleLabel:u,variant:d="outlined",isDisabled:p=!1,isMenuOpen:y=!1,isIconOnly:m=!1,onToggleMenu:h,size:b="md",type:M="button",testId:S,width:f,icon:g,"aria-describedby":T},I)=>{const x=i.useRef(null);i.useImperativeHandle(I,(()=>x.current),[x]);const{triggerProps:B,menuProps:F}=w.useMenuAction({isDisabled:p,onToggleMenu:h,isMenuOpen:y,anchorRef:x}),{tooltipContent:j,tooltipProps:v}=l.useTooltip({text:a||u,isDisabled:y||p}),C={type:"button",buttonType:M},D={"aria-describedby":T},N=t.jsx(r.Fragment,{children:t.jsxs(A.BaseButton,{...c.mergeProps(v,B,D),styling:y?["min","active"]:["min"],elementDetails:C,isDisabled:p,variant:d,width:f,size:b,ref:x,"aria-label":u??a,testId:S,children:[t.jsx(s.ButtonLabelLayout,{display:"icons",startIcon:g,endIcon:m?null:t.jsx(o.SvgChevronDown,{}),size:b}),j]})});return p?N:t.jsxs(r.Fragment,{children:[N,t.jsx(n.Menu,{...F,offsetValue:4,"aria-label":u??a,children:e})]})}));F.displayName="IconMenuButton",e.IconMenuButton=F}));
2
2
  //# sourceMappingURL=IconMenuButton-eef4b2da.js.map