@oracle/oraclejet-preact 18.0.8 → 18.0.10

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 (240) hide show
  1. package/amd/BaseNavigationListItem-5765a81f.js +2 -0
  2. package/amd/BaseNavigationListItem-5765a81f.js.map +1 -0
  3. package/amd/CheckboxSet-4582f29e.js +2 -0
  4. package/{cjs/CheckboxSet-1bdbc419.js.map → amd/CheckboxSet-4582f29e.js.map} +1 -1
  5. package/amd/MaxLengthCounter-9a95922c.js +2 -0
  6. package/{es/MaxLengthCounter-181b4fc9.js.map → amd/MaxLengthCounter-9a95922c.js.map} +1 -1
  7. package/amd/NavigationList-f1b80e54.js +2 -0
  8. package/amd/NavigationList-f1b80e54.js.map +1 -0
  9. package/amd/NavigationListItem-12919fe5.js +2 -0
  10. package/amd/NavigationListItem-12919fe5.js.map +1 -0
  11. package/amd/{OverflowTabBar-339f34cf.js → OverflowTabBar-dfcce021.js} +2 -2
  12. package/amd/{OverflowTabBar-339f34cf.js.map → OverflowTabBar-dfcce021.js.map} +1 -1
  13. package/amd/OverflowTabBarItem-17b2920a.js +2 -0
  14. package/amd/{OverflowTabBarItem-c59db4a2.js.map → OverflowTabBarItem-17b2920a.js.map} +1 -1
  15. package/amd/ReadonlyTextFieldVariants.styles.css +20 -20
  16. package/amd/ReadonlyTextFieldVariants.styles2.css +20 -20
  17. package/amd/RemovableNavigationListItem-c486140e.js +2 -0
  18. package/amd/{RemovableNavigationListItem-e01b6693.js.map → RemovableNavigationListItem-c486140e.js.map} +1 -1
  19. package/amd/{ReorderableTabBar-462d357c.js → ReorderableTabBar-b92a434e.js} +2 -2
  20. package/amd/{ReorderableTabBar-462d357c.js.map → ReorderableTabBar-b92a434e.js.map} +1 -1
  21. package/amd/TabBar-93811d2c.js +2 -0
  22. package/amd/{TabBar-d8890a47.js.map → TabBar-93811d2c.js.map} +1 -1
  23. package/amd/TabBarMixed-ad59654b.js +2 -0
  24. package/amd/{TabBarMixed-a75796a6.js.map → TabBarMixed-ad59654b.js.map} +1 -1
  25. package/amd/TextArea-89b9ed65.js +2 -0
  26. package/{es/TextArea-7230675f.js.map → amd/TextArea-89b9ed65.js.map} +1 -1
  27. package/amd/TextAreaAutosize-81449e46.js +2 -0
  28. package/amd/{TextAreaAutosize-9cd2c1e8.js.map → TextAreaAutosize-81449e46.js.map} +1 -1
  29. package/amd/Theme-redwood/theme.css +165 -165
  30. package/amd/Theme-stable/theme.css +347 -347
  31. package/amd/UNSAFE_CheckboxItem.js +1 -1
  32. package/amd/UNSAFE_CheckboxItem.js.map +1 -1
  33. package/amd/UNSAFE_CheckboxSet.js +1 -1
  34. package/amd/UNSAFE_CheckboxSet.js.map +1 -1
  35. package/amd/UNSAFE_InputDateMask.js +1 -1
  36. package/amd/UNSAFE_InputDatePicker.js +1 -1
  37. package/amd/UNSAFE_InputPassword.js +1 -1
  38. package/amd/UNSAFE_InputSensitiveText.js +1 -1
  39. package/amd/UNSAFE_InputSensitiveText.js.map +1 -1
  40. package/amd/UNSAFE_InputText.js +1 -1
  41. package/amd/UNSAFE_InputTimeMask.js +1 -1
  42. package/amd/UNSAFE_InputTimeMask.js.map +1 -1
  43. package/amd/UNSAFE_LabelledLink.js +1 -1
  44. package/amd/UNSAFE_LabelledLink.js.map +1 -1
  45. package/amd/UNSAFE_NavigationList.js +1 -1
  46. package/amd/UNSAFE_NavigationListCommon.js +1 -1
  47. package/amd/UNSAFE_NumberInputText.js +1 -1
  48. package/amd/UNSAFE_OverflowTabBar.js +1 -1
  49. package/amd/UNSAFE_ReorderableTabBar.js +1 -1
  50. package/amd/UNSAFE_RichCheckboxSet.js +1 -1
  51. package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
  52. package/amd/UNSAFE_RichSelectionItem.js +1 -1
  53. package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
  54. package/amd/UNSAFE_SelectMultiple.js +1 -1
  55. package/amd/UNSAFE_SelectSingle.js +1 -1
  56. package/amd/UNSAFE_TabBar.js +1 -1
  57. package/amd/UNSAFE_TabBarCommon.js +1 -1
  58. package/amd/UNSAFE_TabBarMixed.js +1 -1
  59. package/amd/UNSAFE_TextArea.js +1 -1
  60. package/amd/UNSAFE_TextAreaAutosize.js +1 -1
  61. package/amd/UNSAFE_TextField/themes/redwood/ReadonlyTextFieldTheme.js +1 -1
  62. package/amd/UNSAFE_TextField/themes/redwood/ReadonlyTextFieldTheme.js.map +1 -1
  63. package/amd/UNSAFE_TextField/themes/redwood/ReadonlyTextFieldVariants.css.js +1 -1
  64. package/amd/UNSAFE_TextField/themes/stable/ReadonlyTextFieldTheme.js +1 -1
  65. package/amd/UNSAFE_TextField/themes/stable/ReadonlyTextFieldTheme.js.map +1 -1
  66. package/amd/UNSAFE_TextField/themes/stable/ReadonlyTextFieldVariants.css.js +1 -1
  67. package/amd/UNSAFE_TextField.js +1 -1
  68. package/amd/useNavigationListItem-17b77626.js +2 -0
  69. package/amd/useNavigationListItem-17b77626.js.map +1 -0
  70. package/cjs/{BaseCardView-5a45e588.js → BaseCardView-ade994f5.js} +2 -2
  71. package/cjs/{BaseCardView-5a45e588.js.map → BaseCardView-ade994f5.js.map} +1 -1
  72. package/cjs/{CardFlexView-58228ce4.js → CardFlexView-6492d995.js} +2 -2
  73. package/cjs/{CardFlexView-58228ce4.js.map → CardFlexView-6492d995.js.map} +1 -1
  74. package/cjs/{CardGridView-17683602.js → CardGridView-d98aa089.js} +2 -2
  75. package/cjs/{CardGridView-17683602.js.map → CardGridView-d98aa089.js.map} +1 -1
  76. package/cjs/CheckboxSetContext-c62db26d.js +12 -0
  77. package/{amd/CheckboxSetContext-2e486ea8.js.map → cjs/CheckboxSetContext-c62db26d.js.map} +1 -1
  78. package/cjs/ExpandableList-be84ca8e.js +1 -1
  79. package/cjs/GroupLoadingIndicator-5940d185.js +1 -1
  80. package/cjs/{Indexer-b5ca1d0c.js → Indexer-72430806.js} +2 -2
  81. package/cjs/{Indexer-b5ca1d0c.js.map → Indexer-72430806.js.map} +1 -1
  82. package/cjs/{InputDatePicker-4d36637f.js → InputDatePicker-bc2c534a.js} +2 -2
  83. package/cjs/{InputDatePicker-4d36637f.js.map → InputDatePicker-bc2c534a.js.map} +1 -1
  84. package/cjs/{List-877077ab.js → List-0dc2c4c4.js} +4 -3
  85. package/cjs/{List-877077ab.js.map → List-0dc2c4c4.js.map} +1 -1
  86. package/cjs/{ListView-98983aa2.js → ListView-17b8250d.js} +2 -2
  87. package/cjs/{ListView-98983aa2.js.map → ListView-17b8250d.js.map} +1 -1
  88. package/cjs/{LoadMoreCollection-69bc038c.js → LoadMoreCollection-73112ff0.js} +2 -2
  89. package/cjs/{LoadMoreCollection-69bc038c.js.map → LoadMoreCollection-73112ff0.js.map} +1 -1
  90. package/cjs/{NavigationListItem-4c4e804d.js → NavigationListItem-7947af0e.js} +1 -14
  91. package/cjs/{NavigationListItem-4c4e804d.js.map → NavigationListItem-7947af0e.js.map} +1 -1
  92. package/cjs/{OverflowTabBar-428798a0.js → OverflowTabBar-27ad6d1f.js} +2 -2
  93. package/cjs/{OverflowTabBar-428798a0.js.map → OverflowTabBar-27ad6d1f.js.map} +1 -1
  94. package/cjs/{OverflowTabBarItem-3c7adb01.js → OverflowTabBarItem-57537ebe.js} +2 -2
  95. package/cjs/{OverflowTabBarItem-3c7adb01.js.map → OverflowTabBarItem-57537ebe.js.map} +1 -1
  96. package/cjs/PRIVATE_BaseCardView.js +3 -3
  97. package/cjs/PRIVATE_List.js +4 -4
  98. package/cjs/PRIVATE_LoadMoreCollection.js +2 -2
  99. package/cjs/PRIVATE_SelectCommon.js +5 -5
  100. package/cjs/PRIVATE_Table.js +3 -3
  101. package/cjs/PRIVATE_VirtualizedCollection.js +2 -2
  102. package/cjs/{SelectMultiple-94ab1de5.js → SelectMultiple-b1f05b9f.js} +2 -2
  103. package/cjs/{SelectMultiple-94ab1de5.js.map → SelectMultiple-b1f05b9f.js.map} +1 -1
  104. package/cjs/{SelectSingle-52c5cb94.js → SelectSingle-84b0b3eb.js} +2 -2
  105. package/cjs/{SelectSingle-52c5cb94.js.map → SelectSingle-84b0b3eb.js.map} +1 -1
  106. package/cjs/{Table-15a64988.js → Table-90fe7ad8.js} +2 -2
  107. package/cjs/{Table-15a64988.js.map → Table-90fe7ad8.js.map} +1 -1
  108. package/cjs/{TableView-37d6f731.js → TableView-3cc9d3be.js} +2 -2
  109. package/cjs/{TableView-37d6f731.js.map → TableView-3cc9d3be.js.map} +1 -1
  110. package/cjs/Theme-redwood/theme.css +128 -128
  111. package/cjs/Theme-stable/theme.css +197 -197
  112. package/cjs/UNSAFE_CardFlexView.js +4 -4
  113. package/cjs/UNSAFE_CardGridView.js +4 -4
  114. package/cjs/UNSAFE_CheckboxItem.js +30 -81
  115. package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
  116. package/cjs/UNSAFE_CheckboxSet.js +44 -15
  117. package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
  118. package/cjs/UNSAFE_ExpandableList.js +3 -3
  119. package/cjs/UNSAFE_Indexer.js +2 -2
  120. package/cjs/UNSAFE_InputDatePicker.js +90 -90
  121. package/cjs/UNSAFE_ListView.js +5 -5
  122. package/cjs/UNSAFE_NavigationList.js +4 -4
  123. package/cjs/UNSAFE_OverflowTabBar.js +3 -3
  124. package/cjs/UNSAFE_RichCheckboxSet.js +13 -15
  125. package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
  126. package/cjs/UNSAFE_RichSelectionItem.js +44 -181
  127. package/cjs/UNSAFE_RichSelectionItem.js.map +1 -1
  128. package/cjs/UNSAFE_SelectMultiple.js +6 -6
  129. package/cjs/UNSAFE_SelectSingle.js +6 -6
  130. package/cjs/UNSAFE_TabBar.js +2 -2
  131. package/cjs/UNSAFE_TabBarCommon.js +2 -2
  132. package/cjs/UNSAFE_TabBarMixed.js +2 -2
  133. package/cjs/UNSAFE_TableView.js +4 -4
  134. package/cjs/UNSAFE_VirtualizedListView.js +5 -5
  135. package/cjs/{VirtualizedCollection-9e8c48b9.js → VirtualizedCollection-00aedb8b.js} +2 -2
  136. package/cjs/{VirtualizedCollection-9e8c48b9.js.map → VirtualizedCollection-00aedb8b.js.map} +1 -1
  137. package/cjs/{VirtualizedListView-03fa4758.js → VirtualizedListView-9bfaf4e2.js} +2 -2
  138. package/cjs/{VirtualizedListView-03fa4758.js.map → VirtualizedListView-9bfaf4e2.js.map} +1 -1
  139. package/cjs/{useSelectCommon-a0a800fd.js → useSelectCommon-5b46ac60.js} +2 -2
  140. package/cjs/{useSelectCommon-a0a800fd.js.map → useSelectCommon-5b46ac60.js.map} +1 -1
  141. package/es/{BaseCardView-229fa119.js → BaseCardView-c5a8ee6a.js} +2 -2
  142. package/es/{BaseCardView-229fa119.js.map → BaseCardView-c5a8ee6a.js.map} +1 -1
  143. package/es/{CardFlexView-3ef6bf4d.js → CardFlexView-529906e0.js} +2 -2
  144. package/es/{CardFlexView-3ef6bf4d.js.map → CardFlexView-529906e0.js.map} +1 -1
  145. package/es/{CardGridView-e15226c9.js → CardGridView-ec18c929.js} +2 -2
  146. package/es/{CardGridView-e15226c9.js.map → CardGridView-ec18c929.js.map} +1 -1
  147. package/es/ExpandableList-478db30a.js +1 -1
  148. package/es/GroupLoadingIndicator-63035d08.js +1 -1
  149. package/es/{Indexer-eb00ba0b.js → Indexer-ba2c7593.js} +2 -2
  150. package/es/{Indexer-eb00ba0b.js.map → Indexer-ba2c7593.js.map} +1 -1
  151. package/es/LabelledLinkVariants.styles.css +3 -3
  152. package/es/LabelledLinkVariants.styles2.css +3 -3
  153. package/es/{List-e6886091.js → List-97b7be70.js} +4 -3
  154. package/es/{List-e6886091.js.map → List-97b7be70.js.map} +1 -1
  155. package/es/{ListView-137e31fd.js → ListView-936d8a4f.js} +2 -2
  156. package/es/{ListView-137e31fd.js.map → ListView-936d8a4f.js.map} +1 -1
  157. package/es/{LoadMoreCollection-7df1be36.js → LoadMoreCollection-95a49d2a.js} +2 -2
  158. package/es/{LoadMoreCollection-7df1be36.js.map → LoadMoreCollection-95a49d2a.js.map} +1 -1
  159. package/es/MeterCircleVariants.styles.css +8 -8
  160. package/es/MeterCircleVariants.styles2.css +8 -8
  161. package/es/PRIVATE_BaseCardView.js +3 -3
  162. package/es/PRIVATE_List.js +4 -4
  163. package/es/PRIVATE_LoadMoreCollection.js +2 -2
  164. package/es/PRIVATE_SelectCommon.js +5 -5
  165. package/es/PRIVATE_Table.js +3 -3
  166. package/es/PRIVATE_VirtualizedCollection.js +2 -2
  167. package/es/{SelectMultiple-488a49d1.js → SelectMultiple-ad8fc99a.js} +2 -2
  168. package/es/{SelectMultiple-488a49d1.js.map → SelectMultiple-ad8fc99a.js.map} +1 -1
  169. package/es/{SelectSingle-e8b9a33a.js → SelectSingle-abaf271c.js} +2 -2
  170. package/es/{SelectSingle-e8b9a33a.js.map → SelectSingle-abaf271c.js.map} +1 -1
  171. package/es/SplitMenuButtonTheme.styles.css +4 -4
  172. package/es/SplitMenuButtonTheme.styles2.css +4 -4
  173. package/es/TabBarItemVariants.styles.css +3 -3
  174. package/es/TabBarItemVariants.styles2.css +3 -3
  175. package/es/{Table-3cfb9443.js → Table-1ba124ec.js} +2 -2
  176. package/es/{Table-3cfb9443.js.map → Table-1ba124ec.js.map} +1 -1
  177. package/es/{TableView-fd5104cd.js → TableView-20223ba6.js} +2 -2
  178. package/es/{TableView-fd5104cd.js.map → TableView-20223ba6.js.map} +1 -1
  179. package/es/{TextArea-7230675f.js → TextArea-64b4e972.js} +25 -8
  180. package/{amd/TextArea-a7a3d82f.js.map → es/TextArea-64b4e972.js.map} +1 -1
  181. package/es/{TextAreaAutosize-0d293016.js → TextAreaAutosize-4e0f60ef.js} +2 -2
  182. package/es/{TextAreaAutosize-0d293016.js.map → TextAreaAutosize-4e0f60ef.js.map} +1 -1
  183. package/es/Theme-redwood/theme.css +634 -634
  184. package/es/Theme-stable/theme.css +446 -446
  185. package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
  186. package/es/UNSAFE_CardFlexView.js +4 -4
  187. package/es/UNSAFE_CardGridView.js +4 -4
  188. package/es/UNSAFE_ExpandableList.js +3 -3
  189. package/es/UNSAFE_Indexer.js +2 -2
  190. package/es/UNSAFE_LabelledLink/themes/redwood/LabelledLinkTheme.js +1 -1
  191. package/es/UNSAFE_LabelledLink/themes/redwood/LabelledLinkVariants.css.js +1 -1
  192. package/es/UNSAFE_LabelledLink/themes/stable/LabelledLinkTheme.js +1 -1
  193. package/es/UNSAFE_LabelledLink/themes/stable/LabelledLinkVariants.css.js +1 -1
  194. package/es/UNSAFE_LabelledLink.js +1 -1
  195. package/es/UNSAFE_ListView.js +5 -5
  196. package/es/UNSAFE_MeterCircle/themes/redwood/MeterCircleTheme.js +1 -1
  197. package/es/UNSAFE_MeterCircle/themes/redwood/MeterCircleVariants.css.js +1 -1
  198. package/es/UNSAFE_MeterCircle/themes/stable/MeterCircleTheme.js +1 -1
  199. package/es/UNSAFE_MeterCircle/themes/stable/MeterCircleVariants.css.js +1 -1
  200. package/es/UNSAFE_MeterCircle.js +1 -1
  201. package/es/UNSAFE_OverflowTabBar.js +1 -1
  202. package/es/UNSAFE_ReorderableTabBar.js +1 -1
  203. package/es/UNSAFE_SelectMultiple.js +6 -6
  204. package/es/UNSAFE_SelectSingle.js +6 -6
  205. package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
  206. package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
  207. package/es/UNSAFE_SplitMenuButton.js +1 -1
  208. package/es/UNSAFE_TabBar.js +1 -1
  209. package/es/UNSAFE_TabBarCommon/themes/redwood/TabBarItemTheme.js +1 -1
  210. package/es/UNSAFE_TabBarCommon/themes/redwood/TabBarItemVariants.css.js +1 -1
  211. package/es/UNSAFE_TabBarCommon/themes/stable/TabBarItemTheme.js +1 -1
  212. package/es/UNSAFE_TabBarCommon/themes/stable/TabBarItemVariants.css.js +1 -1
  213. package/es/UNSAFE_TabBarCommon.js +1 -1
  214. package/es/UNSAFE_TabBarMixed.js +1 -1
  215. package/es/UNSAFE_TableView.js +4 -4
  216. package/es/UNSAFE_TextArea.js +2 -3
  217. package/es/UNSAFE_TextArea.js.map +1 -1
  218. package/es/UNSAFE_TextAreaAutosize.js +3 -3
  219. package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
  220. package/es/UNSAFE_VirtualizedListView.js +5 -5
  221. package/es/{VirtualizedCollection-f048fbb8.js → VirtualizedCollection-e73890a1.js} +2 -2
  222. package/es/{VirtualizedCollection-f048fbb8.js.map → VirtualizedCollection-e73890a1.js.map} +1 -1
  223. package/es/{VirtualizedListView-0532e46c.js → VirtualizedListView-3ef40bde.js} +2 -2
  224. package/es/{VirtualizedListView-0532e46c.js.map → VirtualizedListView-3ef40bde.js.map} +1 -1
  225. package/es/{useSelectCommon-af8e715e.js → useSelectCommon-1dafa6f9.js} +2 -2
  226. package/es/{useSelectCommon-af8e715e.js.map → useSelectCommon-1dafa6f9.js.map} +1 -1
  227. package/package.json +2 -2
  228. package/amd/BaseNavigationListItem-fe9cb691.js +0 -2
  229. package/amd/BaseNavigationListItem-fe9cb691.js.map +0 -1
  230. package/amd/CheckboxSetContext-2e486ea8.js +0 -2
  231. package/amd/NavigationListItem-044a79fd.js +0 -2
  232. package/amd/NavigationListItem-044a79fd.js.map +0 -1
  233. package/amd/OverflowTabBarItem-c59db4a2.js +0 -2
  234. package/amd/RemovableNavigationListItem-e01b6693.js +0 -2
  235. package/amd/TabBar-d8890a47.js +0 -2
  236. package/amd/TabBarMixed-a75796a6.js +0 -2
  237. package/amd/TextArea-a7a3d82f.js +0 -2
  238. package/amd/TextAreaAutosize-9cd2c1e8.js +0 -2
  239. package/cjs/CheckboxSet-1bdbc419.js +0 -53
  240. package/es/MaxLengthCounter-181b4fc9.js +0 -25
@@ -1 +1 @@
1
- {"version":3,"file":"UNSAFE_InputSensitiveText.js","sources":["../../src/UNSAFE_InputSensitiveText/InputSensitiveText.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 { ComponentProps, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { useCallback, useImperativeHandle, useRef } from 'preact/hooks';\nimport { FocusableHandle, useFocusableTextField } from '#hooks/UNSAFE_useFocusableTextField';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useTextField } from '#hooks/UNSAFE_useTextField';\nimport { useHover } from '#hooks/UNSAFE_useHover';\nimport { CountUnit, useLengthFilter } from '#hooks/UNSAFE_useLengthFilter';\nimport { Label } from '#UNSAFE_Label';\nimport {\n MaxLengthLiveRegion,\n ObfuscatedTextFieldInput,\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '#UNSAFE_TextField';\nimport {\n CompactUserAssistance,\n InlineUserAssistance,\n UserAssistanceDensityType\n} from '#UNSAFE_UserAssistance';\nimport { RevealToggleIcon } from '#PRIVATE_RevealToggleIcon';\nimport { useClearIcon } from '#hooks/UNSAFE_useClearIcon';\nimport { beforeVNode } from '#utils/UNSAFE_componentUtils';\nimport { ClearIcon } from '#PRIVATE_ClearIcon/ClearIcon';\nimport { Size } from '#utils/UNSAFE_size';\nimport { useToggle } from '#hooks/UNSAFE_useToggle';\nimport { useCurrentValueReducer } from '#hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { SelectableHandle, useSelectableTextField } from '#hooks/UNSAFE_useSelectableTextField';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n 'aria-describedby'?: TextFieldInputProps['aria-describedby'];\n\n /**\n * Text to provide guidance to help the user understand what to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component; it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * Specifies whether the clear icon should be shown.\n * <ul>\n * <li><code>'always'</code>: The clear icon is always visible.</li>\n * <li><code>'conditionally'</code>: The clear icon is visible under the following conditions:\n * if the component has a non-empty value, and it either has focus or the mouse is over the field.</li>\n * <li><code>'never'</code>: The clear icon is never visible.</li>\n * </ul>\n */\n hasClearIcon?: 'always' | 'conditionally' | 'never';\n /**\n * Specifies whether the reveal toggle should be shown.\n * <ul>\n * <li><code>'always'</code>: The reveal toggle is always visible and the user can click on it to reveal the password in plain text.\n * When the user leaves the field, the password is automatically masked.</li>\n * <li><code>'never'</code>: The reveal toggle is never visible and the user can never reveal the password in plain text.</li>\n * </ul>\n */\n hasRevealToggle?: 'always' | 'never';\n\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field. If the labelEdge is 'none',\n * the labelHint is hidden from the user but is still accessible.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Specifies the maximum number of characters that can be entered in the input field.\n */\n maxLength?: number;\n /**\n * Specifies how the input text characters are to be counted when `maxLength` is specified.\n */\n maxLengthUnit?: CountUnit;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * A label that describes what type of data is hidden.\n * This label becomes the aria-label of the reveal toggle icon button to make the button accessible.\n * Example: \"Credit Card Number hidden\"\n */\n revealToggleLabel?: string;\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'compact'</code>: Messages, help, hints, and required will not be shown inline; they will show in a mode that keeps the screen more compact, like a popup for the messages, and a required icon to indicate Required. </li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * The current display value of the component.\n */\n value?: TextFieldInputProps['value'];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * The type of virtual keyboard to display for entering a value on mobile browsers.\n * This property has no effect on desktop browsers.\n */\n virtualKeyboard?: 'auto' | 'email' | 'number' | 'search' | 'tel' | 'text' | 'url';\n /**\n * Callback invoked when the user commits the entered value by either blurring or pressing Enter.\n *\n */\n onCommit?: TextFieldInputProps['onCommit'];\n\n /**\n * Callback invoked each time the user changes the value of the field. For example, if the user\n * types 'abcd', this callback will be called four times with the value as 'a', 'ab', 'abc' and 'abcd'\n * respectively.\n */\n onInput: TextFieldInputProps['onInput'];\n} & TestIdProps;\n\ntype FocusSelectHandle = FocusableHandle & SelectableHandle;\n\n/**\n * An InputSensitiveText allows you to enter/edit sensitive data, obfuscating the input as the user types.\n * The obfuscation can be toggled off and on via a reveal toggle button.\n * Examples: Credit Card Number, Social Security Number, etc.\n */\nexport const InputSensitiveText = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n assistiveText,\n autoFocus = false,\n columnSpan,\n hasClearIcon = 'never',\n hasRevealToggle = 'always',\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n maxLength,\n maxLengthUnit,\n messages,\n placeholder,\n revealToggleLabel,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n virtualKeyboard,\n onInput,\n onCommit,\n testId\n }: Props,\n ref?: Ref<FocusSelectHandle>\n ) => {\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput, dispatch]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit, dispatch]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n const maxLengthDescribedByIdRef = useRef<string>(useId());\n // The enabledAriaDescribedBy includes the maxLengthDescribedById in addition to what was passed in to aria-describedby.\n // We don't need to announce the max length message for readonly, as it only applies when editing the value.\n const enabledAriaDescribedBy = ariaDescribedBy\n ? `${ariaDescribedBy} ${maxLengthDescribedByIdRef.current}`\n : maxLengthDescribedByIdRef.current;\n const {\n bool: isRevealed,\n setFalse: setRevealedFalse,\n setTrue: setRevealedTrue\n } = useToggle(false);\n const enabledElementRef = useRef<HTMLInputElement>(null);\n const readonlyElementRef = useRef<HTMLInputElement>(null);\n const {\n focusProps,\n isFocused,\n methods: focusMethods\n } = useFocusableTextField<HTMLInputElement, HTMLInputElement>({\n isDisabled,\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n onBlurWithin: setRevealedFalse\n });\n\n const { methods: selectMethods } = useSelectableTextField<HTMLInputElement>(enabledElementRef);\n\n useImperativeHandle(ref!, () => mergeProps(focusMethods, selectMethods), [\n focusMethods,\n selectMethods\n ]);\n\n const { hoverProps, isHover } = useHover({ isDisabled: isReadonly || isDisabled || false });\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy: isReadonly || isDisabled ? ariaDescribedBy : enabledAriaDescribedBy,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isFocused,\n isReadonly,\n isRequiredShown,\n labelEdge,\n messages,\n styleVariant: variant,\n userAssistanceDensity,\n value\n });\n\n // Callback on the RevealToggleButton.\n // When the user clicks on the reveal button,\n // toggle revealing/masking password\n const onRevealIconToggle = useCallback(() => {\n isRevealed ? setRevealedFalse() : setRevealedTrue();\n }, [isRevealed, setRevealedFalse, setRevealedTrue]);\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n // I'm using || and not ?? here because if they provide an empty string for the label, we want\n // to use our translated string, as an empty string would be an accessibility violation.\n const revealToggleAriaLabel = revealToggleLabel || translations.inputSensitiveText_hidden();\n\n // When hasRevealToggle === 'always', we still don't render the revealToggleButton when:\n // - isDisabled is true\n // - isReadonly is true and the value is empty or undefined.\n const revealToggleIcon =\n !isDisabled && (!isReadonly || !!value) && hasRevealToggle === 'always' ? (\n <RevealToggleIcon\n onToggle={onRevealIconToggle}\n isRevealed={isRevealed}\n accessibleLabel={revealToggleAriaLabel}\n />\n ) : null;\n const onClickClearIcon = useCallback(() => {\n // Clicking the clear icon should put the focus on the input field\n enabledElementRef.current?.focus();\n // Send an event to clear the field's value\n onInputAndDispatch?.({ previousValue: value, value: '' });\n }, [onInputAndDispatch, value, enabledElementRef]);\n\n const maybeClearIcon = useClearIcon({\n clearIcon: <ClearIcon onClick={onClickClearIcon} testId={`${testId}_clearicon`} />,\n display: hasClearIcon,\n hasValue: formFieldContext.hasValue,\n isFocused,\n isEnabled: !isReadonly && !isDisabled,\n isHover\n });\n const endContentCombined = beforeVNode(revealToggleIcon, maybeClearIcon);\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n const isInlineDensity =\n userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';\n\n const inlineUserAssistance = isInlineDensity ? (\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : undefined;\n\n const anchorRef = useRef<HTMLDivElement>(null);\n\n const compactUserAssistance =\n userAssistanceDensity === 'compact' ? (\n <CompactUserAssistance\n anchorRef={anchorRef}\n messages={messages}\n assistiveText={assistiveText}\n {...userAssistanceProps}\n />\n ) : undefined;\n\n const obfuscationChar = '•';\n\n if (isReadonly) {\n const mainContent = (\n <ReadonlyTextFieldInput\n aria-describedby={inputProps['aria-describedby']}\n aria-label={ariaLabel}\n aria-labelledby={labelProps.id}\n as=\"input\"\n autoFocus={autoFocus}\n elementRef={readonlyElementRef}\n textAlign={textAlign}\n type={'text'}\n value={isRevealed ? value : obfuscationChar.repeat(value ? value.length : 0)}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n );\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n endContent={revealToggleIcon}\n mainContent={mainContent}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n ref={anchorRef}\n testId={testId}\n {...fieldLabelProps}></ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n const hasMaxLength = maxLength !== undefined;\n const mainContent = (\n <>\n <ObfuscatedTextFieldInput\n aria-label={ariaLabel}\n autoFocus={autoFocus}\n character={obfuscationChar}\n currentCommitValue={currentCommitValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n inputRef={enabledElementRef}\n isRequired={isRequired}\n onInput={onFilteredInput}\n onCommit={onCommitAndDispatch}\n placeholder={placeholder}\n textAlign={textAlign}\n type={isMobile() ? virtualKeyboard : undefined}\n value={value}\n isRevealed={isRevealed}\n hasEndContent={!!(maybeClearIcon || revealToggleIcon)}\n {...inputProps}\n />\n {hasMaxLength && (\n <HiddenAccessible id={maxLengthDescribedByIdRef.current}>\n {translations.formControl_maxLength({\n MAX_LENGTH: `${maxLength}`\n })}\n </HiddenAccessible>\n )}\n {hasMaxLength && isFocused && (\n <MaxLengthLiveRegion\n maxLength={maxLength}\n valueLength={valueLength}\n testId={testId + '_remainingChars'}\n />\n )}\n </>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n columnSpan={columnSpan}\n endContent={endContentCombined}\n inlineUserAssistance={inlineUserAssistance}\n compactUserAssistance={compactUserAssistance}\n mainContent={mainContent}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n mainFieldRef={anchorRef}\n testId={testId}\n {...textFieldProps}\n {...fieldLabelProps}\n {...hoverProps}\n />\n </FormFieldContext.Provider>\n );\n }\n);\n\n/**\n * Helper function to determine whether the current device is a mobile device\n * @returns true if running on a mobile device, false otherwise\n */\nfunction isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\n"],"names":["InputSensitiveText","forwardRef","ariaDescribedBy","assistiveText","autoFocus","columnSpan","hasClearIcon","hasRevealToggle","helpSourceLink","helpSourceText","isDisabled","propIsDisabled","isReadonly","propIsReadonly","isRequired","isRequiredShown","label","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","maxLength","maxLengthUnit","messages","placeholder","revealToggleLabel","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","value","variant","virtualKeyboard","onInput","onCommit","testId","ref","currentCommitValue","dispatch","useCurrentValueReducer","onInputAndDispatch","useCallback","detail","type","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","maxLengthDescribedByIdRef","useRef","useId","enabledAriaDescribedBy","current","bool","isRevealed","setFalse","setRevealedFalse","setTrue","setRevealedTrue","useToggle","enabledElementRef","readonlyElementRef","focusProps","isFocused","methods","focusMethods","useFocusableTextField","onBlurWithin","selectMethods","useSelectableTextField","useImperativeHandle","mergeProps","hoverProps","isHover","useHover","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","styleVariant","onRevealIconToggle","translations","useTranslationBundle","revealToggleAriaLabel","inputSensitiveText_hidden","revealToggleIcon","_jsx","RevealToggleIcon","onToggle","accessibleLabel","onClickClearIcon","focus","previousValue","maybeClearIcon","useClearIcon","clearIcon","jsx","ClearIcon","onClick","display","hasValue","isEnabled","endContentCombined","beforeVNode","valueLength","onFilteredInput","useLengthFilter","labelComp","Label","undefined","fieldLabelProps","ariaLabel","inlineUserAssistance","InlineUserAssistance","anchorRef","compactUserAssistance","CompactUserAssistance","mainContent","ReadonlyTextFieldInput","id","as","elementRef","repeat","length","hasEmptyLabel","hasInsideLabel","FormFieldContext","Provider","children","ReadonlyTextField","role","endContent","onBlur","onFocusOut","onFocus","onFocusIn","hasMaxLength","_jsxs","_Fragment","ObfuscatedTextFieldInput","character","inputRef","isMobile","hasEndContent","HiddenAccessible","formControl_maxLength","MAX_LENGTH","MaxLengthLiveRegion","TextField","mainFieldRef","deviceType","getClientHints"],"mappings":"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"}
1
+ {"version":3,"file":"UNSAFE_InputSensitiveText.js","sources":["../../src/UNSAFE_InputSensitiveText/InputSensitiveText.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 { ComponentProps, Ref } from 'preact';\nimport { forwardRef } from 'preact/compat';\nimport { useCallback, useImperativeHandle, useRef } from 'preact/hooks';\nimport { FocusableHandle, useFocusableTextField } from '#hooks/UNSAFE_useFocusableTextField';\nimport { useFormContext } from '#hooks/UNSAFE_useFormContext';\nimport { FormFieldContext } from '#hooks/UNSAFE_useFormFieldContext';\nimport { useTextField } from '#hooks/UNSAFE_useTextField';\nimport { useHover } from '#hooks/UNSAFE_useHover';\nimport { CountUnit, useLengthFilter } from '#hooks/UNSAFE_useLengthFilter';\nimport { Label } from '#UNSAFE_Label';\nimport {\n MaxLengthLiveRegion,\n ObfuscatedTextFieldInput,\n ReadonlyTextField,\n ReadonlyTextFieldInput,\n TextField,\n TextFieldInput\n} from '#UNSAFE_TextField';\nimport {\n CompactUserAssistance,\n InlineUserAssistance,\n UserAssistanceDensityType\n} from '#UNSAFE_UserAssistance';\nimport { RevealToggleIcon } from '#PRIVATE_RevealToggleIcon';\nimport { useClearIcon } from '#hooks/UNSAFE_useClearIcon';\nimport { beforeVNode } from '#utils/UNSAFE_componentUtils';\nimport { ClearIcon } from '#PRIVATE_ClearIcon/ClearIcon';\nimport { Size } from '#utils/UNSAFE_size';\nimport { useToggle } from '#hooks/UNSAFE_useToggle';\nimport { useCurrentValueReducer } from '#hooks/UNSAFE_useCurrentValueReducer';\nimport { ValueUpdateDetail } from '#utils/UNSAFE_valueUpdateDetail';\nimport type { TestIdProps } from '#hooks/UNSAFE_useTestId';\nimport { LayoutColumnSpan } from '#utils/UNSAFE_styles/Layout';\nimport { useTranslationBundle } from '#hooks/UNSAFE_useTranslationBundle';\nimport { BundleType } from '#resources/nls/bundle';\nimport { getClientHints } from '#utils/PRIVATE_clientHints';\nimport { HiddenAccessible } from '#UNSAFE_HiddenAccessible';\nimport { useId } from '#hooks/UNSAFE_useId';\nimport { SelectableHandle, useSelectableTextField } from '#hooks/UNSAFE_useSelectableTextField';\nimport { mergeProps } from '#utils/UNSAFE_mergeProps';\n\ntype TextFieldInputProps = ComponentProps<typeof TextFieldInput>;\ntype InlineUserAssistanceProps = ComponentProps<typeof InlineUserAssistance>;\n\ntype Props = {\n /**\n * The ID of an element (or space separated IDs of multiple elements) that\n * describes the input.\n */\n 'aria-describedby'?: TextFieldInputProps['aria-describedby'];\n\n /**\n * Text to provide guidance to help the user understand what to enter.\n */\n assistiveText?: InlineUserAssistanceProps['assistiveText'];\n /**\n * Autofocus specifies whether the component will get focus when the page is loaded.\n * If it is set to true then the associated component will get input focus when the page is loaded.\n * Setting this property doesn't set the focus to the component; it tells the browser to focus\n * to it when the element is inserted in the document.\n */\n autoFocus?: TextFieldInputProps['autoFocus'];\n /**\n * Specifies how many columns to span in a FormLayout with direction === 'row'\n */\n columnSpan?: LayoutColumnSpan;\n /**\n * Specifies whether the clear icon should be shown.\n * <ul>\n * <li><code>'always'</code>: The clear icon is always visible.</li>\n * <li><code>'conditionally'</code>: The clear icon is visible under the following conditions:\n * if the component has a non-empty value, and it either has focus or the mouse is over the field.</li>\n * <li><code>'never'</code>: The clear icon is never visible.</li>\n * </ul>\n */\n hasClearIcon?: 'always' | 'conditionally' | 'never';\n /**\n * Specifies whether the reveal toggle should be shown.\n * <ul>\n * <li><code>'always'</code>: The reveal toggle is always visible and the user can click on it to reveal the password in plain text.\n * When the user leaves the field, the password is automatically masked.</li>\n * <li><code>'never'</code>: The reveal toggle is never visible and the user can never reveal the password in plain text.</li>\n * </ul>\n */\n hasRevealToggle?: 'always' | 'never';\n\n /**\n * Help source URL associated with the component.\n */\n helpSourceLink?: InlineUserAssistanceProps['helpSourceLink'];\n /**\n * Custom text to be rendered for the <code>helpSourceLink</code>.\n */\n helpSourceText?: InlineUserAssistanceProps['helpSourceText'];\n /**\n * Specifies whether the component is disabled.\n */\n isDisabled?: boolean;\n /**\n * Specifies whether the component is readonly.\n */\n isReadonly?: boolean;\n /**\n * Specifies for accessibility purposes whether a value is required.\n *\n * Setting this property to <code>false</code> means that a value is not required to be\n * committed by the user. Setting this property to <code>true</code> means that a value\n * is required to be committed by the user.\n */\n isRequired?: TextFieldInputProps['isRequired'];\n /**\n * Specifies whether to show an indicator on screen that a value is required, for example\n * before the user has committed a value.\n */\n isRequiredShown?: InlineUserAssistanceProps['isRequiredShown'];\n /**\n * Specifies the label associated with the field.\n */\n label: string;\n /**\n * Specifies where the label is positioned relative to the field. If the labelEdge is 'none',\n * the labelHint is hidden from the user but is still accessible.\n */\n labelEdge?: 'inside' | 'start' | 'top' | 'none';\n /**\n * Specifies the width of the label when <code>labelEdge</code> is <code>\"start\"</code>\n */\n labelStartWidth?: Size;\n /**\n * Specifies the maximum number of characters that can be entered in the input field.\n */\n maxLength?: number;\n /**\n * Specifies how the input text characters are to be counted when `maxLength` is specified.\n */\n maxLengthUnit?: CountUnit;\n /**\n * Messages to show on screen that are associated with the component.\n */\n messages?: InlineUserAssistanceProps['messages'];\n /**\n * A short hint to display before the user enters a value.\n */\n placeholder?: TextFieldInputProps['placeholder'];\n /**\n * A label that describes what type of data is hidden.\n * This label becomes the aria-label of the reveal toggle icon button to make the button accessible.\n * Example: \"Credit Card Number hidden\"\n */\n revealToggleLabel?: string;\n /**\n * Specifies how to align text within the field.\n */\n textAlign?: TextFieldInputProps['textAlign'];\n /**\n * Specifies the density of the user assistance presentation. It can be set to:\n * <ul>\n * <li><code>'efficient'</code>: Show inline and reserve space to prevent layout reflow when user\n * assistance text is displayed.</li>\n * <li><code>'reflow'</code>: Show inline. Layout will reflow when text is displayed.</li>\n * <li><code>'compact'</code>: Messages, help, hints, and required will not be shown inline; they will show in a mode that keeps the screen more compact, like a popup for the messages, and a required icon to indicate Required. </li>\n * </ul>\n */\n userAssistanceDensity?: UserAssistanceDensityType;\n /**\n * The current display value of the component.\n */\n value?: TextFieldInputProps['value'];\n /**\n * The style variant of the component.\n */\n variant?: TextFieldInputProps['variant'];\n /**\n * The type of virtual keyboard to display for entering a value on mobile browsers.\n * This property has no effect on desktop browsers.\n */\n virtualKeyboard?: 'auto' | 'email' | 'number' | 'search' | 'tel' | 'text' | 'url';\n /**\n * Callback invoked when the user commits the entered value by either blurring or pressing Enter.\n *\n */\n onCommit?: TextFieldInputProps['onCommit'];\n\n /**\n * Callback invoked each time the user changes the value of the field. For example, if the user\n * types 'abcd', this callback will be called four times with the value as 'a', 'ab', 'abc' and 'abcd'\n * respectively.\n */\n onInput: TextFieldInputProps['onInput'];\n} & TestIdProps;\n\ntype FocusSelectHandle = FocusableHandle & SelectableHandle;\n\n/**\n * An InputSensitiveText allows you to enter/edit sensitive data, obfuscating the input as the user types.\n * The obfuscation can be toggled off and on via a reveal toggle button.\n * Examples: Credit Card Number, Social Security Number, etc.\n */\nexport const InputSensitiveText = forwardRef(\n (\n {\n 'aria-describedby': ariaDescribedBy,\n assistiveText,\n autoFocus = false,\n columnSpan,\n hasClearIcon = 'never',\n hasRevealToggle = 'always',\n helpSourceLink,\n helpSourceText,\n isDisabled: propIsDisabled,\n isReadonly: propIsReadonly,\n isRequired = false,\n isRequiredShown,\n label,\n labelEdge: propLabelEdge,\n labelStartWidth: propLabelStartWidth,\n maxLength,\n maxLengthUnit,\n messages,\n placeholder,\n revealToggleLabel,\n textAlign: propTextAlign,\n userAssistanceDensity: propUserAssistanceDensity,\n value,\n variant = 'default',\n virtualKeyboard,\n onInput,\n onCommit,\n testId\n }: Props,\n ref?: Ref<FocusSelectHandle>\n ) => {\n const { currentCommitValue, dispatch } = useCurrentValueReducer({ value });\n const onInputAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'input', payload: detail.value });\n onInput?.(detail);\n },\n [onInput, dispatch]\n );\n const onCommitAndDispatch = useCallback(\n (detail: ValueUpdateDetail<string>) => {\n // Should dispatch happen first? This will queue up a re-render, ordering should not cause issues (this is async)\n dispatch({ type: 'commit', payload: detail.value });\n onCommit?.(detail);\n },\n [onCommit, dispatch]\n );\n const {\n isDisabled: isFormDisabled,\n isReadonly: isFormReadonly,\n labelEdge: formLabelEdge,\n labelStartWidth: formLabelStartWidth,\n textAlign: formTextAlign,\n userAssistanceDensity: formUserAssistanceDensity\n } = useFormContext();\n // default to FormContext values if component properties are not specified\n const isDisabled = propIsDisabled ?? isFormDisabled;\n const isReadonly = propIsReadonly ?? isFormReadonly;\n const labelEdge = propLabelEdge ?? formLabelEdge;\n const labelStartWidth = propLabelStartWidth ?? formLabelStartWidth;\n const textAlign = propTextAlign ?? formTextAlign;\n const userAssistanceDensity = propUserAssistanceDensity ?? formUserAssistanceDensity;\n const maxLengthDescribedByIdRef = useRef<string>(useId());\n // The enabledAriaDescribedBy includes the maxLengthDescribedById in addition to what was passed in to aria-describedby.\n // We don't need to announce the max length message for readonly, as it only applies when editing the value.\n const enabledAriaDescribedBy = ariaDescribedBy\n ? `${ariaDescribedBy} ${maxLengthDescribedByIdRef.current}`\n : maxLengthDescribedByIdRef.current;\n const {\n bool: isRevealed,\n setFalse: setRevealedFalse,\n setTrue: setRevealedTrue\n } = useToggle(false);\n const enabledElementRef = useRef<HTMLInputElement>(null);\n const readonlyElementRef = useRef<HTMLInputElement>(null);\n const {\n focusProps,\n isFocused,\n methods: focusMethods\n } = useFocusableTextField<HTMLInputElement, HTMLInputElement>({\n isDisabled,\n isReadonly,\n enabledElementRef,\n readonlyElementRef,\n onBlurWithin: setRevealedFalse\n });\n\n const { methods: selectMethods } = useSelectableTextField<HTMLInputElement>(enabledElementRef);\n\n useImperativeHandle(ref!, () => mergeProps(focusMethods, selectMethods), [\n focusMethods,\n selectMethods\n ]);\n\n const { hoverProps, isHover } = useHover({ isDisabled: isReadonly || isDisabled || false });\n const { formFieldContext, inputProps, labelProps, textFieldProps, userAssistanceProps } =\n useTextField({\n ariaDescribedBy: isReadonly || isDisabled ? ariaDescribedBy : enabledAriaDescribedBy,\n helpSourceLink,\n helpSourceText,\n isDisabled,\n isFocused,\n isReadonly,\n isRequiredShown,\n labelEdge,\n messages,\n styleVariant: variant,\n userAssistanceDensity,\n value\n });\n\n // Callback on the RevealToggleButton.\n // When the user clicks on the reveal button,\n // toggle revealing/masking password\n const onRevealIconToggle = useCallback(() => {\n isRevealed ? setRevealedFalse() : setRevealedTrue();\n }, [isRevealed, setRevealedFalse, setRevealedTrue]);\n\n const translations = useTranslationBundle<BundleType>('@oracle/oraclejet-preact');\n // I'm using || and not ?? here because if they provide an empty string for the label, we want\n // to use our translated string, as an empty string would be an accessibility violation.\n const revealToggleAriaLabel = revealToggleLabel || translations.inputSensitiveText_hidden();\n\n // When hasRevealToggle === 'always', we still don't render the revealToggleButton when:\n // - isDisabled is true\n // - isReadonly is true and the value is empty or undefined.\n const revealToggleIcon =\n !isDisabled && (!isReadonly || !!value) && hasRevealToggle === 'always' ? (\n <RevealToggleIcon\n onToggle={onRevealIconToggle}\n isRevealed={isRevealed}\n accessibleLabel={revealToggleAriaLabel}\n />\n ) : null;\n const onClickClearIcon = useCallback(() => {\n // Clicking the clear icon should put the focus on the input field\n enabledElementRef.current?.focus();\n // Send an event to clear the field's value\n onInputAndDispatch?.({ previousValue: value, value: '' });\n }, [onInputAndDispatch, value, enabledElementRef]);\n\n const maybeClearIcon = useClearIcon({\n clearIcon: <ClearIcon onClick={onClickClearIcon} testId={`${testId}_clearicon`} />,\n display: hasClearIcon,\n hasValue: formFieldContext.hasValue,\n isFocused,\n isEnabled: !isReadonly && !isDisabled,\n isHover\n });\n const endContentCombined = beforeVNode(revealToggleIcon, maybeClearIcon);\n\n // Handle length filter for user-typed inputs and controlled inputs\n const { valueLength, onFilteredInput } = useLengthFilter({\n maxLength,\n maxLengthUnit,\n value,\n onInput: onInputAndDispatch,\n onCommit: onCommitAndDispatch\n });\n\n const labelComp = labelEdge !== 'none' ? <Label {...labelProps}>{label}</Label> : undefined;\n\n const fieldLabelProps = {\n label: labelEdge !== 'none' ? labelComp : undefined,\n labelEdge: labelEdge !== 'none' ? labelEdge : undefined,\n labelStartWidth: labelEdge !== 'none' ? labelStartWidth : undefined\n };\n\n const ariaLabel = labelEdge === 'none' ? label : undefined;\n const isInlineDensity =\n userAssistanceDensity === 'efficient' || userAssistanceDensity === 'reflow';\n\n const inlineUserAssistance = isInlineDensity ? (\n isDisabled || isReadonly ? (\n // save space for user assistance if density is 'efficient', even though we don't\n // render user assistance for disabled or readonly fields\n userAssistanceDensity !== 'efficient' ? undefined : (\n <InlineUserAssistance\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : (\n <InlineUserAssistance\n assistiveText={assistiveText}\n helpSourceLink={helpSourceLink}\n helpSourceText={helpSourceText}\n messages={messages}\n isRequiredShown={isRequiredShown}\n userAssistanceDensity={userAssistanceDensity}\n {...userAssistanceProps}\n />\n )\n ) : undefined;\n\n const anchorRef = useRef<HTMLDivElement>(null);\n\n const compactUserAssistance =\n userAssistanceDensity === 'compact' ? (\n <CompactUserAssistance\n anchorRef={anchorRef}\n messages={messages}\n assistiveText={assistiveText}\n {...userAssistanceProps}\n />\n ) : undefined;\n\n const obfuscationChar = '•';\n\n if (isReadonly) {\n const mainContent = (\n <ReadonlyTextFieldInput\n aria-describedby={inputProps['aria-describedby']}\n aria-label={ariaLabel}\n aria-labelledby={labelProps.id}\n as=\"input\"\n autoFocus={autoFocus}\n elementRef={readonlyElementRef}\n textAlign={textAlign}\n type={'text'}\n value={isRevealed ? value : obfuscationChar.repeat(value ? value.length : 0)}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={label !== undefined && labelEdge === 'inside'}\n />\n );\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <ReadonlyTextField\n role=\"presentation\"\n columnSpan={columnSpan}\n compactUserAssistance={compactUserAssistance}\n inlineUserAssistance={inlineUserAssistance}\n endContent={revealToggleIcon}\n mainContent={mainContent}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n ref={anchorRef}\n testId={testId}\n {...fieldLabelProps}></ReadonlyTextField>\n </FormFieldContext.Provider>\n );\n }\n const hasMaxLength = maxLength !== undefined;\n const mainContent = (\n <>\n <ObfuscatedTextFieldInput\n aria-label={ariaLabel}\n autoFocus={autoFocus}\n character={obfuscationChar}\n currentCommitValue={currentCommitValue}\n hasEmptyLabel={label === '' && labelEdge === 'none'}\n hasInsideLabel={labelComp !== undefined && labelEdge === 'inside'}\n inputRef={enabledElementRef}\n isRequired={isRequired}\n onInput={onFilteredInput}\n onCommit={onCommitAndDispatch}\n placeholder={placeholder}\n textAlign={textAlign}\n type={isMobile() ? virtualKeyboard : undefined}\n value={value}\n isRevealed={isRevealed}\n hasEndContent={!!(maybeClearIcon || revealToggleIcon)}\n {...inputProps}\n />\n {hasMaxLength && (\n <HiddenAccessible id={maxLengthDescribedByIdRef.current}>\n {translations.formControl_maxLength({\n MAX_LENGTH: `${maxLength}`\n })}\n </HiddenAccessible>\n )}\n {hasMaxLength && isFocused && (\n <MaxLengthLiveRegion\n maxLength={maxLength}\n valueLength={valueLength}\n testId={testId + '_remainingChars'}\n />\n )}\n </>\n );\n\n return (\n <FormFieldContext.Provider value={formFieldContext}>\n <TextField\n columnSpan={columnSpan}\n endContent={endContentCombined}\n inlineUserAssistance={inlineUserAssistance}\n compactUserAssistance={compactUserAssistance}\n mainContent={mainContent}\n onBlur={focusProps.onFocusOut}\n onFocus={focusProps.onFocusIn}\n mainFieldRef={anchorRef}\n testId={testId}\n {...textFieldProps}\n {...fieldLabelProps}\n {...hoverProps}\n />\n </FormFieldContext.Provider>\n );\n }\n);\n\n/**\n * Helper function to determine whether the current device is a mobile device\n * @returns true if running on a mobile device, false otherwise\n */\nfunction isMobile() {\n const deviceType = getClientHints().deviceType;\n return deviceType === 'phone' || deviceType === 'tablet';\n}\n"],"names":["InputSensitiveText","forwardRef","ariaDescribedBy","assistiveText","autoFocus","columnSpan","hasClearIcon","hasRevealToggle","helpSourceLink","helpSourceText","isDisabled","propIsDisabled","isReadonly","propIsReadonly","isRequired","isRequiredShown","label","labelEdge","propLabelEdge","labelStartWidth","propLabelStartWidth","maxLength","maxLengthUnit","messages","placeholder","revealToggleLabel","textAlign","propTextAlign","userAssistanceDensity","propUserAssistanceDensity","value","variant","virtualKeyboard","onInput","onCommit","testId","ref","currentCommitValue","dispatch","useCurrentValueReducer","onInputAndDispatch","useCallback","detail","type","payload","onCommitAndDispatch","isFormDisabled","isFormReadonly","formLabelEdge","formLabelStartWidth","formTextAlign","formUserAssistanceDensity","useFormContext","maxLengthDescribedByIdRef","useRef","useId","enabledAriaDescribedBy","current","bool","isRevealed","setFalse","setRevealedFalse","setTrue","setRevealedTrue","useToggle","enabledElementRef","readonlyElementRef","focusProps","isFocused","methods","focusMethods","useFocusableTextField","onBlurWithin","selectMethods","useSelectableTextField","useImperativeHandle","mergeProps","hoverProps","isHover","useHover","formFieldContext","inputProps","labelProps","textFieldProps","userAssistanceProps","useTextField","styleVariant","onRevealIconToggle","translations","useTranslationBundle","revealToggleAriaLabel","inputSensitiveText_hidden","revealToggleIcon","_jsx","RevealToggleIcon","onToggle","accessibleLabel","onClickClearIcon","focus","previousValue","maybeClearIcon","useClearIcon","clearIcon","jsx","ClearIcon","onClick","display","hasValue","isEnabled","endContentCombined","beforeVNode","valueLength","onFilteredInput","useLengthFilter","labelComp","Label","undefined","fieldLabelProps","ariaLabel","inlineUserAssistance","InlineUserAssistance","anchorRef","compactUserAssistance","CompactUserAssistance","mainContent","ReadonlyTextFieldInput","id","as","elementRef","repeat","length","hasEmptyLabel","hasInsideLabel","FormFieldContext","Provider","children","ReadonlyTextField","role","endContent","onBlur","onFocusOut","onFocus","onFocusIn","hasMaxLength","_jsxs","_Fragment","ObfuscatedTextFieldInput","character","inputRef","isMobile","hasEndContent","HiddenAccessible","formControl_maxLength","MAX_LENGTH","MaxLengthLiveRegion","TextField","mainFieldRef","deviceType","getClientHints"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- define(['exports', './InputText-57f60b6f', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './useClearIcon-05225968', './useToggle-a29f97af', './useFocusableTextField-8b755b15', './useFocusWithin-5a504fca', './FormContext-5130e198', 'preact', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useHover-7964884c', './useLengthFilter-ed8959a4', './lengthFilter-d560aa86', './useTextField-e6877c79', './useMessageSeverity-1d69e1ae', './stringUtils-0ae982c2', './useFormFieldContextProps-4e36b4c3', './useId-c9578d26', './Label-3912beb2', './useFormFieldContext-8196183c', './classNames-08d99695', './useComponentTheme-5aa41a8f', './logger-0f873e29', './TabbableModeContext-a9c97640', './LayerHost-e95c5f30', './Common/themes/redwood/theme', './Common/themes/themeContract.css', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', './Flex-56ecdf4c', './useTestId-3a316499', './boxalignment-905057dc', './size-a75b3f13', './utils-5077c092', './colorUtils-7c069766', './_curry1-df649359', './arrayUtils-6ee96a35', 'css!./boxalignment.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', './dimensions-60420dbb', './flexbox-8521f6aa', 'css!./flexbox.styles.css', './flexitem-5db48325', 'css!./flexitem.styles.css', './mergeInterpolations-9ede4cf7', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', 'css!./FlexStyles.styles.css', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'css!./MessageBannerVariants.styles.css', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./TooltipContentVariants.styles.css', './tooltipUtils-69ce0a2d', './EnvironmentProvider-8f6fc388', './LayerManager-76fcfb58', './Floating-1ec5ec2a', './useFloating-acd30a55', './useUser-85c781ea', './positionUtils-6e4daa31', './refUtils-d354a169', './useOutsideClick-f99b7a84', './Layer-447c68e6', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useThemeInterpolations-6b2de213', './useColorScheme-10dc88de', './useScale-37d42c9d', './theme-a8f3d819', './Theme-d945adae', './useDensity-c83df7b4', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_Floating/themes/FloatingContract.css', 'css!./IconStyle.styles.css', './IconButton-ae9a01ce', './BaseButton-19a622bc', './usePress-949a0d03', './usePressClick-b7b38da2', './useActive-bb5dc069', './useTabbableMode-dc440317', './clientHints-4f5a07b0', './mergeProps-bcfa6a92', './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme', './UNSAFE_BaseButton/themes/BaseButtonStyles.css', 'css!./BaseButtonStyles.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css', 'module', './ButtonLabelLayout-2e0e8d09', './Text-cd61a065', './UNSAFE_Text/themes/TextStyles.css', 'css!./TextStyles.styles.css', './useButtonLabelLayoutTheme-3237026f', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme', './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css', 'css!./ButtonLabelLayoutStyles.styles.css', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css', 'module', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css', 'css!./ButtonLabelLayoutVariants.styles.css', './useTooltip-7b11fd35', './useTooltipControlled-52183a08', './useFocus-4194fc59', './useTouch-37489bb5', './useAnimation-5a74955f', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', './buttonUtils-97878e90', './id-c70ab33c', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './getLocale-ae79e654', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './InputGroupContext-372087af', './Popup-d51bf3f4', './tabbableUtils-85aa6918', './head-9cb1a3da', './_arity-5a5f5f71', './_isArray-32602db6', './_isString-d0ada3cb', './FocusTrap-60520575', './FocusTracker-2ac5bbfe', './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css', 'css!./FocusTrackerStyles.styles.css', './Modal-d6b2e905', './UNSAFE_Modal/themes/ModalStyles.css', 'css!./ModalStyles.styles.css', './WindowOverlay-a2d80d55', './UNSAFE_WindowOverlay/themes/WindowOverlayStyles.css', 'css!./WindowOverlayStyles.styles.css', './UNSAFE_WindowOverlay/themes/WindowOverlayContract.css', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayTheme', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.css', 'module', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayVariants.css', './usePopupAnimation-f679a4b0', './useAnimationStatus-86746674', './popupAnimationUtils-49b93365', './UNSAFE_Popup/themes/PopupContract.css', './UNSAFE_Popup/themes/redwood/PopupTheme', './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', 'css!./PopupStyles.styles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./SeparatorStyles.styles.css', './CompactLabelAssistance-44ba87b0', './useTranslationBundle-516b1b83', './CompactHelpSource-74498e92', './Help-000f2775', './Icon-2d38c876', './UNSAFE_Icon/themes/IconStyle.css', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './UNSAFE_Label/themes/redwood/LabelTheme', './UNSAFE_Label/themes/LabelStyles.css', 'css!./LabelStyles.styles.css', './UNSAFE_Label/themes/redwood/LabelBaseTheme.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './UNSAFE_TextField/themes/redwood/TextFieldTheme', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldBaseTheme.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', 'css!./TextFieldVariants.styles.css', './PrefixSuffix-0efb3bc6', './UNSAFE_PrefixSuffix/themes/PrefixSuffixStyles.css', 'css!./PrefixSuffixStyles.styles.css', './usePrefixSuffix-09bd5925', './HiddenAccessible-037ef42d', './keyboardUtils-fbb389f8', './TextFieldInput-ba4e508c', './useAccessibleContext-23e8a333', './useTextFieldInputHandlers-390330d9', './textAlign-ef924afd', 'css!./text.styles.css', './TextFieldUtils-f3868e96', './UNSAFE_TextField/themes/redwood/TextFieldInputTheme', './UNSAFE_TextField/themes/TextFieldInputStyles.css', 'css!./TextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputVariants.css', 'css!./TextFieldInputVariants.styles.css', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-608bddc1', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme', './UNSAFE_TextField/themes/ReadonlyTextFieldInputStyles.css', 'css!./ReadonlyTextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputVariants.css', './StyledTextField-b4278437', './LabelValueLayout-194e64d9', 'css!./LabelValueLayoutStyles.styles.css', './UNSAFE_RadioItem/themes/redwood/RadioTheme', './UNSAFE_RadioItem/themes/RadioStyles.css', 'css!./RadioStyles.styles.css', './UNSAFE_RadioItem/themes/redwood/RadioBaseTheme.css', 'module', './UNSAFE_RadioItem/themes/redwood/RadioVariants.css', './UNSAFE_TextField/themes/redwood/FormLayoutTheme', './UNSAFE_TextField/themes/FormLayoutStyles.css', './UNSAFE_TextField/themes/redwood/FormLayoutBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxTheme', './UNSAFE_Checkbox/themes/CheckboxStyles.css', 'css!./CheckboxStyles.styles.css', './UNSAFE_Checkbox/themes/redwood/CheckboxBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css', 'css!./CheckboxVariants.styles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonTheme', './UNSAFE_Skeleton/themes/SkeletonStyles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.css', 'module', './UNSAFE_Skeleton/themes/redwood/SkeletonVariants.css', './LayoutStyles.css-c8bc984d', 'css!./LayoutStyles.styles.css', './useInputGroupContext-e6e19f4f', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldTheme', './UNSAFE_TextField/themes/ReadonlyTextFieldStyles.css', 'css!./ReadonlyTextFieldStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldVariants.css', 'css!./ReadonlyTextFieldVariants.styles2.css', './TextField-1021f00b', './MaxLengthLiveRegion-8954fc30', './useDebounce-8b4d8cfb', './LiveRegion-8142ed0d', 'css!./LiveRegionStyles.styles.css', './InlineUserAssistance-4656c2a6', './ComponentMessageContainer-8028ba70', './MessagesManager-d5686336', './SuccessS-c5d520d2', './ErrorS-d2efaf06', './InformationS-2f6b535d', './WarningS-2b4729ba', './PRIVATE_Message/themes/MessageStyles.css', './soundUtils-f6535f03', './useMessagesContext-1395a997', './Transition-04efcc49', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageTheme', './UNSAFE_ComponentMessage/themes/ComponentMessageStyles.css', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.css', './InlineHelp-a169f974', './InlineHelpSource-85961e81', './CompactUserAssistance-3370a318', './Separator-181f7541', './componentUtils-c14d7fce', './ClearIcon-de20285c', './DeleteCircleS-c758067a', './useCurrentValueReducer-faded381', './useSelectableTextField-900d2860'], (function(e,s,t,o,a,l,d,n,c,i,r,m,y,S,F,u,h,T,b,U,A,x,p,_,E,N,f,w,B,g,L,C,I,k,M,R,V,v,P,O,W,H,D,j,G,z,K,q,J,Q,X,Y,Z,$,ee,se,te,oe,ae,le,de,ne,ce,ie,re,me,ye,Se,Fe,ue,he,Te,be,Ue,Ae,xe,pe,_e,Ee,Ne,fe,we,Be,ge,Le,Ce,Ie,ke,Me,Re,Ve,ve,Pe,Oe,We,He,De,je,Ge,ze,Ke,qe,Je,Qe,Xe,Ye,Ze,$e,es,ss,ts,os,as,ls,ds,ns,cs,is,rs,ms,ys,Ss,Fs,us,hs,Ts,bs,Us,As,xs,ps,_s,Es,Ns,fs,ws,Bs,gs,Ls,Cs,Is,ks,Ms,Rs,Vs,vs,Ps,Os,Ws,Hs,Ds,js,Gs,zs,Ks,qs,Js,Qs,Xs,Ys,Zs,$s,et,st,tt,ot,at,lt,dt,nt,ct,it,rt,mt,yt,St,Ft,ut,ht,Tt,bt,Ut,At,xt,pt,_t,Et,Nt,ft,wt,Bt,gt,Lt,Ct,It,kt,Mt,Rt,Vt,vt,Pt,Ot,Wt,Ht,Dt,jt,Gt,zt,Kt,qt,Jt,Qt,Xt,Yt,Zt,$t,eo,so,to,oo,ao,lo,no,co,io,ro,mo,yo,So,Fo,uo,ho,To,bo,Uo,Ao,xo,po,_o,Eo,No,fo,wo,Bo,go,Lo,Co,Io,ko,Mo,Ro,Vo,vo,Po,Oo,Wo,Ho,Do,jo,Go,zo,Ko,qo,Jo,Qo,Xo,Yo,Zo,$o,ea,sa,ta,oa,aa,la,da){"use strict";e.InputText=s.InputText,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', './InputText-57f60b6f', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './useClearIcon-05225968', './useToggle-a29f97af', './useFocusableTextField-8b755b15', './useFocusWithin-5a504fca', './FormContext-5130e198', 'preact', './useFormContext-30acdd33', './FormFieldContext-3c44aaaa', './useHover-7964884c', './useLengthFilter-ed8959a4', './lengthFilter-d560aa86', './useTextField-e6877c79', './useMessageSeverity-1d69e1ae', './stringUtils-0ae982c2', './useFormFieldContextProps-4e36b4c3', './useId-c9578d26', './Label-3912beb2', './useFormFieldContext-8196183c', './classNames-08d99695', './useComponentTheme-5aa41a8f', './logger-0f873e29', './TabbableModeContext-a9c97640', './LayerHost-e95c5f30', './Common/themes/redwood/theme', './Common/themes/themeContract.css', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', './Flex-56ecdf4c', './useTestId-3a316499', './boxalignment-905057dc', './size-a75b3f13', './utils-5077c092', './colorUtils-7c069766', './_curry1-df649359', './arrayUtils-6ee96a35', 'css!./boxalignment.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', './dimensions-60420dbb', './flexbox-8521f6aa', 'css!./flexbox.styles.css', './flexitem-5db48325', 'css!./flexitem.styles.css', './mergeInterpolations-9ede4cf7', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', 'css!./FlexStyles.styles.css', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'css!./MessageBannerVariants.styles.css', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', 'css!./TooltipContentVariants.styles.css', './tooltipUtils-69ce0a2d', './EnvironmentProvider-8f6fc388', './LayerManager-76fcfb58', './Floating-1ec5ec2a', './useFloating-acd30a55', './useUser-85c781ea', './positionUtils-6e4daa31', './refUtils-d354a169', './useOutsideClick-f99b7a84', './Layer-447c68e6', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useThemeInterpolations-6b2de213', './useColorScheme-10dc88de', './useScale-37d42c9d', './theme-a8f3d819', './Theme-d945adae', './useDensity-c83df7b4', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_Floating/themes/FloatingContract.css', 'css!./IconStyle.styles.css', './IconButton-ae9a01ce', './BaseButton-19a622bc', './usePress-949a0d03', './usePressClick-b7b38da2', './useActive-bb5dc069', './useTabbableMode-dc440317', './clientHints-4f5a07b0', './mergeProps-bcfa6a92', './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme', './UNSAFE_BaseButton/themes/BaseButtonStyles.css', 'css!./BaseButtonStyles.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css', 'module', './ButtonLabelLayout-2e0e8d09', './Text-cd61a065', './UNSAFE_Text/themes/TextStyles.css', 'css!./TextStyles.styles.css', './useButtonLabelLayoutTheme-3237026f', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme', './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css', 'css!./ButtonLabelLayoutStyles.styles.css', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css', 'module', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css', 'css!./ButtonLabelLayoutVariants.styles.css', './useTooltip-7b11fd35', './useTooltipControlled-52183a08', './useFocus-4194fc59', './useTouch-37489bb5', './useAnimation-5a74955f', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', './buttonUtils-97878e90', './id-c70ab33c', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './getLocale-ae79e654', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./HiddenAccessibleStyles.styles.css', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './InputGroupContext-372087af', './Popup-d51bf3f4', './tabbableUtils-85aa6918', './head-9cb1a3da', './_arity-5a5f5f71', './_isArray-32602db6', './_isString-d0ada3cb', './FocusTrap-60520575', './FocusTracker-2ac5bbfe', './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css', 'css!./FocusTrackerStyles.styles.css', './Modal-d6b2e905', './UNSAFE_Modal/themes/ModalStyles.css', 'css!./ModalStyles.styles.css', './WindowOverlay-a2d80d55', './UNSAFE_WindowOverlay/themes/WindowOverlayStyles.css', 'css!./WindowOverlayStyles.styles.css', './UNSAFE_WindowOverlay/themes/WindowOverlayContract.css', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayTheme', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.css', 'module', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayVariants.css', './usePopupAnimation-f679a4b0', './useAnimationStatus-86746674', './popupAnimationUtils-49b93365', './UNSAFE_Popup/themes/PopupContract.css', './UNSAFE_Popup/themes/redwood/PopupTheme', './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', 'css!./PopupStyles.styles.css', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./SeparatorStyles.styles.css', './CompactLabelAssistance-44ba87b0', './useTranslationBundle-516b1b83', './CompactHelpSource-74498e92', './Help-000f2775', './Icon-2d38c876', './UNSAFE_Icon/themes/IconStyle.css', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './UNSAFE_Label/themes/redwood/LabelTheme', './UNSAFE_Label/themes/LabelStyles.css', 'css!./LabelStyles.styles.css', './UNSAFE_Label/themes/redwood/LabelBaseTheme.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './UNSAFE_TextField/themes/redwood/TextFieldTheme', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldBaseTheme.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', 'css!./TextFieldVariants.styles.css', './PrefixSuffix-0efb3bc6', './UNSAFE_PrefixSuffix/themes/PrefixSuffixStyles.css', 'css!./PrefixSuffixStyles.styles.css', './usePrefixSuffix-09bd5925', './HiddenAccessible-037ef42d', './keyboardUtils-fbb389f8', './TextFieldInput-ba4e508c', './useAccessibleContext-23e8a333', './useTextFieldInputHandlers-390330d9', './textAlign-ef924afd', 'css!./text.styles.css', './TextFieldUtils-f3868e96', './UNSAFE_TextField/themes/redwood/TextFieldInputTheme', './UNSAFE_TextField/themes/TextFieldInputStyles.css', 'css!./TextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputVariants.css', 'css!./TextFieldInputVariants.styles.css', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-608bddc1', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme', './UNSAFE_TextField/themes/ReadonlyTextFieldInputStyles.css', 'css!./ReadonlyTextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputVariants.css', './StyledTextField-b4278437', './LabelValueLayout-194e64d9', 'css!./LabelValueLayoutStyles.styles.css', './UNSAFE_RadioItem/themes/redwood/RadioTheme', './UNSAFE_RadioItem/themes/RadioStyles.css', 'css!./RadioStyles.styles.css', './UNSAFE_RadioItem/themes/redwood/RadioBaseTheme.css', 'module', './UNSAFE_RadioItem/themes/redwood/RadioVariants.css', './UNSAFE_TextField/themes/redwood/FormLayoutTheme', './UNSAFE_TextField/themes/FormLayoutStyles.css', './UNSAFE_TextField/themes/redwood/FormLayoutBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxTheme', './UNSAFE_Checkbox/themes/CheckboxStyles.css', 'css!./CheckboxStyles.styles.css', './UNSAFE_Checkbox/themes/redwood/CheckboxBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css', 'css!./CheckboxVariants.styles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonTheme', './UNSAFE_Skeleton/themes/SkeletonStyles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.css', 'module', './UNSAFE_Skeleton/themes/redwood/SkeletonVariants.css', './LayoutStyles.css-c8bc984d', 'css!./LayoutStyles.styles.css', './useInputGroupContext-e6e19f4f', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldTheme', './UNSAFE_TextField/themes/ReadonlyTextFieldStyles.css', 'css!./ReadonlyTextFieldStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldVariants.css', 'css!./ReadonlyTextFieldVariants.styles.css', './TextField-1021f00b', './MaxLengthLiveRegion-8954fc30', './useDebounce-8b4d8cfb', './LiveRegion-8142ed0d', 'css!./LiveRegionStyles.styles.css', './InlineUserAssistance-4656c2a6', './ComponentMessageContainer-8028ba70', './MessagesManager-d5686336', './SuccessS-c5d520d2', './ErrorS-d2efaf06', './InformationS-2f6b535d', './WarningS-2b4729ba', './PRIVATE_Message/themes/MessageStyles.css', './soundUtils-f6535f03', './useMessagesContext-1395a997', './Transition-04efcc49', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageTheme', './UNSAFE_ComponentMessage/themes/ComponentMessageStyles.css', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.css', './InlineHelp-a169f974', './InlineHelpSource-85961e81', './CompactUserAssistance-3370a318', './Separator-181f7541', './componentUtils-c14d7fce', './ClearIcon-de20285c', './DeleteCircleS-c758067a', './useCurrentValueReducer-faded381', './useSelectableTextField-900d2860'], (function(e,s,t,o,a,l,d,n,c,i,r,m,y,S,F,u,h,T,b,U,A,x,p,_,E,N,f,w,B,g,L,C,I,k,M,R,V,v,P,O,W,H,D,j,G,z,K,q,J,Q,X,Y,Z,$,ee,se,te,oe,ae,le,de,ne,ce,ie,re,me,ye,Se,Fe,ue,he,Te,be,Ue,Ae,xe,pe,_e,Ee,Ne,fe,we,Be,ge,Le,Ce,Ie,ke,Me,Re,Ve,ve,Pe,Oe,We,He,De,je,Ge,ze,Ke,qe,Je,Qe,Xe,Ye,Ze,$e,es,ss,ts,os,as,ls,ds,ns,cs,is,rs,ms,ys,Ss,Fs,us,hs,Ts,bs,Us,As,xs,ps,_s,Es,Ns,fs,ws,Bs,gs,Ls,Cs,Is,ks,Ms,Rs,Vs,vs,Ps,Os,Ws,Hs,Ds,js,Gs,zs,Ks,qs,Js,Qs,Xs,Ys,Zs,$s,et,st,tt,ot,at,lt,dt,nt,ct,it,rt,mt,yt,St,Ft,ut,ht,Tt,bt,Ut,At,xt,pt,_t,Et,Nt,ft,wt,Bt,gt,Lt,Ct,It,kt,Mt,Rt,Vt,vt,Pt,Ot,Wt,Ht,Dt,jt,Gt,zt,Kt,qt,Jt,Qt,Xt,Yt,Zt,$t,eo,so,to,oo,ao,lo,no,co,io,ro,mo,yo,So,Fo,uo,ho,To,bo,Uo,Ao,xo,po,_o,Eo,No,fo,wo,Bo,go,Lo,Co,Io,ko,Mo,Ro,Vo,vo,Po,Oo,Wo,Ho,Do,jo,Go,zo,Ko,qo,Jo,Qo,Xo,Yo,Zo,$o,ea,sa,ta,oa,aa,la,da){"use strict";e.InputText=s.InputText,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=UNSAFE_InputText.js.map
@@ -1,2 +1,2 @@
1
- define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './logger-0f873e29', './TabbableModeContext-a9c97640', './LayerHost-e95c5f30', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-4656c2a6', './CompactUserAssistance-3370a318', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-69ce0a2d', 'preact', 'css!./IconStyle.styles.css', './Popup-d51bf3f4', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'css!./HiddenAccessibleStyles.styles.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './classNames-08d99695', './keyboardUtils-fbb389f8', './getFormatParse-c1655d39', './maskUtils-33317129', './UNSAFE_InputTimeMask/themes/SegmentStyles.css', './clientHints-4f5a07b0', './useTranslationBundle-516b1b83', './timeUtils-542b7a3c', './Flex-56ecdf4c', './HiddenAccessible-037ef42d', './LiveRegion-8142ed0d', './stringUtils-0ae982c2', './useComponentTheme-5aa41a8f', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useUser-85c781ea', './UNSAFE_TextField/themes/redwood/TextFieldInputTheme', './useDoubleTap-b6bf5458', './useTabbableMode-dc440317', './Label-3912beb2', './TextFieldInput-ba4e508c', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-608bddc1', './StyledTextField-b4278437', './TextField-1021f00b', 'css!./LiveRegionStyles.styles.css', './useFocusableTextField-8b755b15', './FormContext-5130e198', './useFormContext-30acdd33', './useTextField-e6877c79', './Common/themes/redwood/theme', './Common/themes/themeContract.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'css!./MessageBannerVariants.styles.css', './IconButton-ae9a01ce', './BaseButton-19a622bc', './usePress-949a0d03', './usePressClick-b7b38da2', './useHover-7964884c', './useToggle-a29f97af', './useActive-bb5dc069', './useColorScheme-10dc88de', './dimensions-60420dbb', './size-a75b3f13', './utils-5077c092', './colorUtils-7c069766', './_curry1-df649359', './mergeInterpolations-9ede4cf7', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', './mergeProps-bcfa6a92', './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme', './UNSAFE_BaseButton/themes/BaseButtonStyles.css', 'css!./BaseButtonStyles.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css', 'module', './useTestId-3a316499', './ButtonLabelLayout-2e0e8d09', './Text-cd61a065', './UNSAFE_Text/themes/TextStyles.css', 'css!./TextStyles.styles.css', './useButtonLabelLayoutTheme-3237026f', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme', './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css', 'css!./ButtonLabelLayoutStyles.styles.css', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css', 'module', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css', 'css!./ButtonLabelLayoutVariants.styles.css', './useTooltip-7b11fd35', './useTooltipControlled-52183a08', './useId-c9578d26', './useFocus-4194fc59', './useTouch-37489bb5', './useAnimation-5a74955f', './useThemeInterpolations-6b2de213', './useScale-37d42c9d', './theme-a8f3d819', './Theme-d945adae', './useDensity-c83df7b4', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'css!./TooltipContentVariants.styles.css', './buttonUtils-97878e90', './id-c70ab33c', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './getLocale-ae79e654', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './ComponentMessageContainer-8028ba70', './MessagesManager-d5686336', './SuccessS-c5d520d2', './Icon-2d38c876', './UNSAFE_Icon/themes/IconStyle.css', './ErrorS-d2efaf06', './InformationS-2f6b535d', './WarningS-2b4729ba', './PRIVATE_Message/themes/MessageStyles.css', './soundUtils-f6535f03', './useMessagesContext-1395a997', './Transition-04efcc49', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageTheme', './UNSAFE_ComponentMessage/themes/ComponentMessageStyles.css', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.css', './InlineHelp-a169f974', './InlineHelpSource-85961e81', './useInputGroupContext-e6e19f4f', './Separator-181f7541', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./SeparatorStyles.styles.css', './CompactHelpSource-74498e92', './Help-000f2775', './useFocusWithin-5a504fca', './UNSAFE_Label/themes/redwood/LabelTheme', './UNSAFE_Label/themes/LabelStyles.css', './UNSAFE_Label/themes/redwood/LabelBaseTheme.css', './EnvironmentProvider-8f6fc388', './LayerManager-76fcfb58', './Floating-1ec5ec2a', './useFloating-acd30a55', './positionUtils-6e4daa31', './refUtils-d354a169', './useOutsideClick-f99b7a84', './arrayUtils-6ee96a35', './Layer-447c68e6', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_Floating/themes/FloatingContract.css', './tabbableUtils-85aa6918', './head-9cb1a3da', './_arity-5a5f5f71', './_isArray-32602db6', './_isString-d0ada3cb', './FocusTrap-60520575', './FocusTracker-2ac5bbfe', './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css', 'css!./FocusTrackerStyles.styles.css', './Modal-d6b2e905', './UNSAFE_Modal/themes/ModalStyles.css', 'css!./ModalStyles.styles.css', './WindowOverlay-a2d80d55', './UNSAFE_WindowOverlay/themes/WindowOverlayStyles.css', 'css!./WindowOverlayStyles.styles.css', './UNSAFE_WindowOverlay/themes/WindowOverlayContract.css', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayTheme', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.css', 'module', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayVariants.css', './usePopupAnimation-f679a4b0', './useAnimationStatus-86746674', './popupAnimationUtils-49b93365', './UNSAFE_Popup/themes/PopupContract.css', './UNSAFE_Popup/themes/redwood/PopupTheme', './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css', 'css!./PopupStyles.styles.css', './types-2446783b', './calendarDateUtils-1783eb17', 'css!./SegmentStyles.styles2.css', './boxalignment-905057dc', 'css!./boxalignment.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', './flexbox-8521f6aa', 'css!./flexbox.styles.css', './flexitem-5db48325', 'css!./flexitem.styles.css', 'css!./FlexStyles.styles.css', './UNSAFE_TextField/themes/TextFieldInputStyles.css', 'css!./TextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputVariants.css', 'css!./TextFieldInputVariants.styles.css', './CompactLabelAssistance-44ba87b0', './UNSAFE_TextField/themes/redwood/TextFieldTheme', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldBaseTheme.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', 'css!./TextFieldVariants.styles.css', './useAccessibleContext-23e8a333', './useTextFieldInputHandlers-390330d9', './textAlign-ef924afd', 'css!./text.styles.css', './TextFieldUtils-f3868e96', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme', './UNSAFE_TextField/themes/ReadonlyTextFieldInputStyles.css', 'css!./ReadonlyTextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputVariants.css', './LabelValueLayout-194e64d9', 'css!./LabelValueLayoutStyles.styles.css', './UNSAFE_RadioItem/themes/redwood/RadioTheme', './UNSAFE_RadioItem/themes/RadioStyles.css', 'css!./RadioStyles.styles.css', './UNSAFE_RadioItem/themes/redwood/RadioBaseTheme.css', 'module', './UNSAFE_RadioItem/themes/redwood/RadioVariants.css', './UNSAFE_TextField/themes/redwood/FormLayoutTheme', './UNSAFE_TextField/themes/FormLayoutStyles.css', './UNSAFE_TextField/themes/redwood/FormLayoutBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxTheme', './UNSAFE_Checkbox/themes/CheckboxStyles.css', 'css!./CheckboxStyles.styles.css', './UNSAFE_Checkbox/themes/redwood/CheckboxBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css', 'css!./CheckboxVariants.styles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonTheme', './UNSAFE_Skeleton/themes/SkeletonStyles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.css', 'module', './UNSAFE_Skeleton/themes/redwood/SkeletonVariants.css', './LayoutStyles.css-c8bc984d', 'css!./LayoutStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldTheme', './UNSAFE_TextField/themes/ReadonlyTextFieldStyles.css', 'css!./ReadonlyTextFieldStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldVariants.css', 'css!./ReadonlyTextFieldVariants.styles2.css', './useMessageSeverity-1d69e1ae', './useFormFieldContextProps-4e36b4c3'], (function(e,t,s,a,o,i,n,r,l,d,c,u,m,y,p,h,S,b,F,T,g,f,v,x,A,w,C,U,E,k,_,L,N,P,B,R,I,M,D,H,V,j,O,W,Z,q,$,K,z,G,J,Q,X,Y,ee,te,se,ae,oe,ie,ne,re,le,de,ce,ue,me,ye,pe,he,Se,be,Fe,Te,ge,fe,ve,xe,Ae,we,Ce,Ue,Ee,ke,_e,Le,Ne,Pe,Be,Re,Ie,Me,De,He,Ve,je,Oe,We,Ze,qe,$e,Ke,ze,Ge,Je,Qe,Xe,Ye,et,tt,st,at,ot,it,nt,rt,lt,dt,ct,ut,mt,yt,pt,ht,St,bt,Ft,Tt,gt,ft,vt,xt,At,wt,Ct,Ut,Et,kt,_t,Lt,Nt,Pt,Bt,Rt,It,Mt,Dt,Ht,Vt,jt,Ot,Wt,Zt,qt,$t,Kt,zt,Gt,Jt,Qt,Xt,Yt,es,ts,ss,as,os,is,ns,rs,ls,ds,cs,us,ms,ys,ps,hs,Ss,bs,Fs,Ts,gs,fs,vs,xs,As,ws,Cs,Us,Es,ks,_s,Ls,Ns,Ps,Bs,Rs,Is,Ms,Ds,Hs,Vs,js,Os,Ws,Zs,qs,$s,Ks,zs,Gs,Js,Qs,Xs,Ys,ea,ta,sa,aa,oa,ia,na,ra,la,da,ca,ua,ma,ya,pa,ha,Sa,ba,Fa,Ta,ga,fa,va,xa,Aa,wa,Ca,Ua,Ea,ka,_a,La,Na,Pa,Ba,Ra,Ia,Ma,Da,Ha,Va,ja,Oa,Wa,Za,qa,$a,Ka,za,Ga,Ja,Qa,Xa){"use strict";const Ya=e=>{e.preventDefault()},eo=()=>"ios"===L.getClientHints().platform,to=({amPm:e,"aria-label":s,"aria-valuemax":o,"aria-valuemin":i,"aria-valuenow":n,"aria-valuetext":r,inputRef:l,isDisabled:d,isHidden:c,isHighlighted:u,isInvalid:m,isRequired:y,isSelected:p,onChange:h,placeholder:S,text:b,type:F})=>{const T=b&&b.length>0,g=C.classNames([_.segmentStyles.base,p&&_.segmentStyles.selected,u&&_.segmentStyles.highlighted]),f=C.classNames([_.segmentStyles.placeholder,c||T?_.segmentStyles.hidden:_.segmentStyles.notHidden]),v=N.useTranslationBundle("@oracle/oraclejet-preact").formControl_empty_segment(),x=a.useRef(null),A=l??x,w=a.useRef(null),E=a.useCallback((t=>{if(!0!==d&&"Tab"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key&&"Enter"!==t.key&&!U.isSelectAll(t)){if(u){if(U.isBackspaceOrDelete(t)||"Backspace"===t.key)return}else if(k.isNumberOnlyString(t.key))"dayPeriod"!==F&&h?.({actionType:"updateSegment",data:{type:F,text:t.key}});else if(U.isBackspaceOrDelete(t)||"Backspace"===t.key)h?.({actionType:"clearSegment",data:{type:F}});else if("ArrowUp"===t.key)h?.({actionType:"step",data:{direction:"increase",type:F}});else if("ArrowDown"===t.key)h?.({actionType:"step",data:{direction:"decrease",type:F}});else if("PageUp"===t.key)h?.({actionType:"page",data:{direction:"increase",type:F}});else if("PageDown"===t.key)h?.({actionType:"page",data:{direction:"decrease",type:F}});else if("Home"===t.key)h?.({actionType:"goToHome",data:{type:F}});else if("End"===t.key)h?.({actionType:"goToEnd",data:{type:F}});else if("dayPeriod"===F&&void 0!==e&&so(t.key,t)){w.current=null!==w.current?w.current+t.key:t.key;const s=P.getAmPmMatchType(e,w.current);if("am"===s||"pm"===s){const e="am"===s?P.AM_VALUE:P.PM_VALUE;h?.({actionType:"updateDayPeriodSegment",data:{type:F,"aria-valuenow":e}})}"both"!==s&&(w.current=null)}t.preventDefault(),t.stopPropagation()}}),[e,d,u,h,F]);a.useEffect((()=>{p?A.current?.focus():"dayPeriod"===F&&(w.current=null)}),[p,A,F]);const L=void 0===r?v:n?.toString()===r?void 0:r,B={"data-segment":[F]};return t.jsx("div",{children:t.jsxs("div",{ref:A,role:eo()?"textbox":"spinbutton","aria-disabled":d,"aria-invalid":m||void 0,"aria-label":s,"aria-required":y,"aria-valuemin":eo()?void 0:i,"aria-valuemax":eo()?void 0:o,"aria-valuenow":eo()?void 0:n,"aria-valuetext":eo()?void 0:L,autocapitalize:"off",autocorrect:"off",class:g,contentEditable:!d,...B,enterkeyhint:d?void 0:"done",inputMode:d?"none":"dayPeriod"!==F?"numeric":"text",onCut:Ya,onKeyDown:E,onPaste:Ya,spellcheck:!1,tabIndex:p?0:-1,children:[t.jsx("span",{"aria-hidden":"true",class:f,...B,children:S}),b]})})},so=(e,t)=>{const s=/^\p{L}$/u.test(e),a=U.isControlOrFunctionKey(t);return s&&!a},ao=(e,t)=>{if("reset"===t.actionType)return t.data;const s=t.data?.type,a=no(e.segments,s);switch(t.actionType){case"clearTime":{const t=Fo(ho(e.segments),e.orderedSegments);return Uo(e,t,!1)}case"clearSegment":{const t=po(a);return yo(e,s,t)}case"deselectAndComplete":{let t=wo(e.segments);return t=xo(t),Uo(e,t,!1)}case"commitOnEnter":{const t=wo(e.segments);return{...Uo(e,t,!1),committing:!0}}case"commitOnBlur":{let t=wo(e.segments);t=xo(t);return{...Uo(e,t,!1),committing:!0}}case"committed":return{...e,committing:!1};case"goToEnd":{const t=Lo(s,a);return yo(e,s,t,!1)}case"goToHome":{const t=_o(s,a);return yo(e,s,t,!1)}case"page":{const o=t.data?.direction;if(void 0===o)return e;const i=No(s,a,"page",o);return yo(e,s,i,!1)}case"selectTime":return Co(e);case"selectFirst":{const t=Fo(e.segments,e.orderedSegments);return Uo(e,t,!1)}case"selectNext":{const t=Ao(e.segments,!0),s=fo(t,e.orderedSegments);return Uo(e,s,!1)}case"selectPrevious":{const t=vo(e.segments,e.orderedSegments);return Uo(e,t,!1)}case"selectSegment":{const t=bo(e.segments,s);return Uo(e,t,!1)}case"step":{const o=t.data?.direction;if(void 0===o)return e;const i=No(s,a,"step",o);return yo(e,s,i,!1)}case"updateDayPeriodSegment":if("dayPeriod"===s){const o=t.data?.["aria-valuenow"];if(12===o||0===o){const t=ko(s,o,a);return yo(e,s,t,!1)}}return e;case"updateSegment":{const o=So(s,a,t);return yo(e,s,o)}default:throw new Error("Unknown action type")}},oo=e=>+e,io=e=>e.toString(),no=(e,t)=>e.find((e=>e.type===t)),ro=e=>e.every((e=>e.text&&e.text.length>0)),lo=e=>e.some((e=>void 0!==e["aria-valuenow"])),co=e=>{if(!lo(e))return;const t=e.find((e=>"dayPeriod"===e.type))?.["aria-valuenow"],s=e.find((e=>"hour"===e.type))?.["aria-valuenow"];let a=s;void 0!==t&&void 0!==s&&(a=Bo(t,s));const o=e.filter((e=>"dayPeriod"!==e.type)).reduce(((e,t)=>{const s="hour"===t.type?a:t["aria-valuenow"];return void 0!==s&&(e[t.type]=s),e}),{});return 0===Object.entries(o).length?void 0:o},uo=e=>[...e.orderedSegments],mo=e=>e.map((e=>{if(void 0!==e["aria-valuenow"])return e;let t,s;return"millisecond"===e.type?(t="000",s=0):["minute","second"].includes(e.type)?(t="00",s=0):"dayPeriod"===e.type&&(t=e.amPm?.am,s=0),void 0!==t?{...e,"aria-valuenow":s,text:t,isComplete:!0,"aria-valuetext":t}:e})),yo=(e,t,s,a=!0)=>{const o=((e,t,s,a,o)=>{const i=((e,t,s)=>e.map((e=>e.type===t?s:e)))(e,s,a);let n=i;return"hour"===s&&a.isComplete&&(n=mo(n)),n=a.isComplete&&o?fo(n,t):n,n})(e.segments,e.orderedSegments,t,s,a);return((e,t)=>({committing:e.committing,currentTime:co(t),isCompleteTime:ro(t),isTimeSelected:e.isTimeSelected,isPartialTime:lo(t),orderedSegments:uo(e),segments:t}))(e,o)},po=e=>({...e,"aria-valuetext":void 0,"aria-valuenow":void 0,digitCount:0,text:void 0,isComplete:!1}),ho=e=>e.map((e=>({...po(e)}))),So=(e,t,s)=>{const a=s.data?.text,o=t["aria-valuemax"],i=t["aria-valuemin"],n=0===i,r=n,l=t.isComplete;let d=t.digitCount||0;const c="millisecond"===e?3:2;if(!n&&"0"===a&&(l||void 0===t.text||""===t.text))return{...t,digitCount:1};let u=t.text||"";u=l?a:(t.text??"")+a,r&&u.length>c?u=u.slice(u.length-c):r&&(u=u.padStart(c,"0")),d+=1;var m,y;const p=(m=oo(u),y=o,m>=i&&m<=y)?u:r?a.padStart(c,"0"):a,h=oo(p),S=((e,t,s,a)=>s>=a||oo(io(e)+"0")>t)(h,o,d,c);return d=S?0:d,{...t,"aria-valuetext":p,"aria-valuenow":h,digitCount:d,text:p,isComplete:S}},bo=(e,t)=>e.map((e=>({...e,isSelected:e.type===t}))),Fo=(e,t)=>bo(e,t[0]),To=(e,t)=>{const s=e.find((e=>!0===e.isSelected));return void 0===s?-1:t.findIndex((e=>e===s.type))},go=e=>e.map((e=>e.isSelected?{...e,isComplete:!0,digitCount:0}:e)),fo=(e,t)=>{const s=To(e,t);return s===t.length-1?e:bo(go(e),t[s+1])},vo=(e,t)=>{const s=To(e,t);return 0===s?e:-1===s?Fo(e,t):bo(go(e),t[s-1])},xo=e=>e.map((e=>({...e,isSelected:!1,isComplete:!!e.text}))),Ao=(e,t)=>{const s=e.find((e=>"hour"===e.type));return(!t||s?.isSelected)&&void 0!==s?.text?mo(e):e},wo=e=>(e=>{const t=e.find((e=>"dayPeriod"===e.type)),s=e.find((e=>"hour"===e.type));return void 0===s?.text&&void 0!==t?.text?e.map((e=>"dayPeriod"===e.type?po(e):{...e})):e})(Ao(e)),Co=e=>e.isCompleteTime?Uo(e,e.segments.map((e=>({...e,isSelected:!1}))),!0):e,Uo=(e,t,s)=>({committing:e.committing,currentTime:co(t),isCompleteTime:ro(t),isTimeSelected:s,isPartialTime:lo(t),orderedSegments:uo(e),segments:t}),Eo=(e,t,s,a,o)=>{const i=a-s+1;if(0===s){if("increase"===o){return(e+t)%i}return(e-t+i)%i}if("increase"===o){return(e+t-s)%i+s}return(e-t-s+i)%i+s},ko=(e,t,s)=>{const a=1===s["aria-valuemin"],o=Po(t,s,e,!a);return{...s,"aria-valuetext":o,"aria-valuenow":t,text:o,isComplete:!0}},_o=(e,t)=>{const s=(e=>e["aria-valuemin"])(t);return ko(e,s,t)},Lo=(e,t)=>{const s=(e=>e["aria-valuemax"])(t);return ko(e,s,t)},No=(e,t,s,a)=>{const o="hour"===e&&1===t["aria-valuemin"]?12:t["aria-valuemin"],i=t["aria-valuenow"],n=t["aria-valuemin"],r=t["aria-valuemax"];let l;return l="dayPeriod"===e?0===i?12:0:void 0===i?o??n:"page"===s?((e,t,s,a,o)=>{let i;return i="minute"===o||"second"==o?10:"millisecond"===o?100:2,Eo(e,i,s,a,t)})(i,a,n,r,e):((e,t,s,a)=>Eo(e,1,s,a,t))(i,a,n,r),ko(e,l,t)},Po=(e,t,s,a)=>{if("dayPeriod"===s){const s=t.amPm?.am,a=t.amPm?.pm;return e<12?s:a}const o=io(e);if(!a)return io(e);const i="millisecond"===s?3:2;return o.padStart(i,"0")},Bo=(e,t)=>0===e&&12===t?0:12===e&&12===t?12:12===e?t+12:t,Ro=e=>{const{ariaLabels:t,currentValue:s,granularity:a,hasLeadingZeroForHour:o,locale:i,timeMasks:n}=e,r=n.filter((({type:e})=>"literal"!==e)).map((({type:e})=>e)),l=s?.minute,d=s?.second,c=s?.millisecond,u=n.some((e=>"dayPeriod"===e.type)),m=void 0!==s?.hour,y=m?P.getHourValueStr(s.hour,u,o):void 0,p=void 0!==y?oo(y):void 0,h=u&&m?P.getDayPeriodValueStr(i,s.hour):void 0,S=void 0!==h?P.getDayPeriodValueFromHour(s.hour):void 0,b=void 0===s?.minute?void 0:P.padWithZero(s.minute,2),F=void 0===s?.second?void 0:P.padWithZero(s.second,2),T=void 0===s?.millisecond?void 0:P.padWithZero(s.millisecond,3),g=void 0!==p&&void 0!==l&&("second"!==a||void 0!==d)&&("millisecond"!==a||void 0!==d&&void 0!==c)&&(!u||void 0!==S),f=void 0!==p||void 0!==l||("second"===a||"millisecond"===a)&&void 0!==d||"millisecond"===a&&void 0!==c,v=[{type:"second","aria-label":t.second,"aria-valuemin":0,"aria-valuemax":59,"aria-valuenow":d,"aria-valuetext":F,isComplete:void 0!==d,isSelected:!1,text:F}],x=[{type:"millisecond","aria-label":t.millisecond,"aria-valuemin":0,"aria-valuemax":999,"aria-valuenow":c,"aria-valuetext":T,isComplete:void 0!==T,isSelected:!1,text:T}],A=[{type:"dayPeriod",amPm:P.getAmPmStringsForLocale(i),"aria-label":t.dayPeriod,"aria-valuemin":P.AM_VALUE,"aria-valuemax":P.PM_VALUE,"aria-valuenow":S,"aria-valuetext":h,isComplete:void 0!==h,isSelected:!1,text:h}];return{committing:!1,currentTime:s,isCompleteTime:g,isTimeSelected:!1,isPartialTime:f,orderedSegments:r,segments:[{type:"hour","aria-label":t.hour,"aria-valuemin":u?1:0,"aria-valuemax":u?12:23,"aria-valuenow":p,"aria-valuetext":y,isComplete:void 0!==p,isSelected:!1,text:y},{type:"minute","aria-label":t.minute,"aria-valuemin":0,"aria-valuemax":59,"aria-valuenow":l,"aria-valuetext":b,isComplete:void 0!==l,isSelected:!1,text:b},..."second"===a||"millisecond"===a?v:[],..."millisecond"===a?x:[],...u?A:[]]}},Io=({isHidden:e,isHighlighted:s,isPlaceholder:a,text:o})=>{const i=C.classNames([_.segmentStyles.literalBase,a&&_.segmentStyles.placeholder,s&&_.segmentStyles.highlighted,e?_.segmentStyles.hidden:_.segmentStyles.notHidden]);return t.jsx("span",{"aria-hidden":"true",class:i,children:o})};const Mo=({timeResetRef:e,direction:t,dispatch:s,groupRef:o,isDisabled:i,isFocused:n,isInputFocused:r,onCommit:l,onInput:d,state:c,value:u})=>{const{tabbableModeProps:{tabIndex:m}}=Z.useTabbableMode(),y=c.segments.some((e=>!!e.isSelected)),p=-1===m||y||i?-1:0,h=a.useRef(c.currentTime),S=a.useRef(c.currentTime),b=a.useRef(!1),F=a.useRef(!!n);e.current&&(h.current=u,S.current=u);const T=a.useCallback((e=>{s(e)}),[s]),g=a.useCallback((e=>{const t=e.target.getAttribute("data-segment");s(t?{actionType:"selectSegment",data:{type:t}}:{actionType:"selectFirst"})}),[s]),f=a.useCallback(((e=!0)=>{c.isCompleteTime&&(s({actionType:"selectTime"}),e&&o?.current?.focus())}),[s,o,c.isCompleteTime]),v=a.useCallback((()=>{f()}),[f]),x=a.useCallback((e=>{e.target.getAttribute("data-segment")&&f(!1)}),[f]),A=W.useDoubleTap({onDoubleTap:x,onSingleTap:g}),w=a.useCallback((e=>{"ltr"===t&&"ArrowLeft"===e.key||"rtl"===t&&"ArrowRight"===e.key?(s({actionType:"selectPrevious"}),e.stopPropagation()):"ltr"===t&&"ArrowRight"===e.key||"rtl"===t&&"ArrowLeft"===e.key?(s({actionType:"selectNext"}),e.stopPropagation()):(U.isBackspaceOrDelete(e)||"Backspace"===e.key)&&c.isTimeSelected?(s({actionType:"clearTime"}),b.current=!0,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):U.isSelectAll(e)?(f(),e.preventDefault(),e.stopPropagation()):"Enter"===e.key&&(s({actionType:"commitOnEnter"}),e.preventDefault(),e.stopPropagation())}),[t,s,f,c.isTimeSelected]);if(F.current&&!n&&s({actionType:"commitOnBlur"}),F.current=!!n,c.committing){if(P.timesAreDifferent(S.current,c.currentTime)){const e=void 0!==c.currentTime?Object.freeze({...c.currentTime}):c.currentTime;l?.({value:e})}s({actionType:"committed"}),S.current=c.currentTime}if(P.timesAreDifferent(h.current,c.currentTime)&&!e.current){const e=void 0!==c.currentTime?Object.freeze({...c.currentTime}):c.currentTime;d({value:e}),h.current=e}e.current=!1;const C=a.useRef(!1),E=a.useRef(),k=a.useCallback((()=>{C.current=!0,clearTimeout(E.current),E.current=setTimeout((()=>{C.current=!1}),200)}),[]),_=a.useRef(!1);!r||_.current||C.current||s({actionType:"selectFirst"}),r||!_.current||C.current||s({actionType:"deselectAndComplete"}),r!==_.current&&(C.current=!1,_.current=!!r);const N=function(){const e=L.getClientHints().deviceType;return"phone"===e||"tablet"===e}()?{...A,onKeyDown:w}:{onClick:g,onDoubleClick:v,onKeyDown:w,onPointerDown:k};return{timeClearedRef:b,timeFieldHandlers:i?{}:N,segmentHandlers:i?{}:{onChange:T},tabIndex:p}},Do=(e,t)=>e.find((e=>e.type===t)),Ho=({"aria-describedby":e,"aria-invalid":s,"aria-label":o,"aria-labelledby":i,baseId:n,fieldRef:r,granularity:l="minute",hasLeadingZeroForHour:d,hasInsideLabel:c,isRequired:u,masks:m,onBlur:y,onCommit:p,onFocus:h,onInput:S,textAlign:b,value:F,variant:T="default"})=>{const{direction:g,locale:f}=j.useUser(),{am:v,pm:x}=a.useMemo((()=>P.getAmPmStringsForLocale(f)),[f]),A=N.useTranslationBundle("@oracle/oraclejet-preact"),w=A.inputTimeMask_time_cleared(),U={hour:A.formControl_hour(),minute:A.formControl_minute(),second:A.formControl_second(),millisecond:A.formControl_millisecond(),dayPeriod:`${v}/${x}`},{isDisabled:E,isFocused:k,isInputFocused:_}=V.useFormFieldContext(),L=void 0!==F,{classes:H}=D.useComponentTheme(O.TextFieldInputRedwoodTheme,{type:"notPassword",styleVariant:T,textarea:"notTextArea",input:"notInput",div:"isDiv",prefix:"noPrefix",suffix:"noSuffix",startContent:"noStartContent",endContent:"noEndContent",insideLabel:c?"hasInsideLabel":"noInsideLabel",value:L?"hasValue":"noValue",focused:k?"isFocused":"notFocused",disabled:E?"isDisabled":"notDisabled"}),W=C.classNames([H]),{state:Z,dispatch:q,timeResetRef:$}=(({ariaLabels:e,granularity:t,hasLeadingZeroForHour:s,locale:o,timeMasks:i,value:n})=>{const[r,l]=a.useReducer(ao,{ariaLabels:e,currentValue:n,hasLeadingZeroForHour:s,granularity:t,locale:o,timeMasks:i},Ro),d=a.useRef(n),c=a.useRef(!1);P.timesAreDifferent(d.current,n)&&(d.current=n,P.timesAreDifferent(n,r.currentTime))&&(l({actionType:"reset",data:Ro({ariaLabels:e,currentValue:n,hasLeadingZeroForHour:s,granularity:t,locale:o,timeMasks:i})}),c.current=!0);return{timeResetRef:c,dispatch:l,state:r}})({ariaLabels:U,timeMasks:m,granularity:l,hasLeadingZeroForHour:d,locale:f,value:F}),{isTimeSelected:K,isPartialTime:z,segments:G}=Z,J={hour:Do(G,"hour"),minute:Do(G,"minute"),second:"second"===l||"millisecond"===l?Do(G,"second"):void 0,millisecond:"millisecond"===l?Do(G,"millisecond"):void 0,dayPeriod:Do(G,"dayPeriod")},Q=a.useRef(null),{timeFieldHandlers:X,timeClearedRef:Y,segmentHandlers:ee,tabIndex:te}=Mo({timeResetRef:$,direction:g,dispatch:q,groupRef:Q,isDisabled:E,isFocused:k,isInputFocused:_,onCommit:p,onInput:S,state:Z,value:F}),se=void 0===F&&c&&!k,ae=Z.isCompleteTime?P.formatTimeFromMasks(f,Z.currentTime,l,m,d):"",oe=`${n}-time`,ie=Z.isCompleteTime?t.jsx(R.HiddenAccessible,{id:oe,children:ae}):void 0,ne=Z.isCompleteTime?M.merge([e,oe]):e,re=Y.current?w:"",le=Z.orderedSegments[0];return t.jsxs("div",{"aria-describedby":ne,"aria-label":o,"aria-labelledby":i,class:W,onFocusIn:h,onFocusOut:y,ref:Q,role:"group",tabIndex:te,...X,children:[t.jsx(B.Flex,{direction:"row",wrap:"nowrap",justify:b,children:m.map((({type:e,value:a})=>{const o="literal"!==e?J[e]:{};return"literal"===e?t.jsx(Io,{isHidden:se,isHighlighted:K,isPlaceholder:!z,text:a}):t.jsx(to,{inputRef:e===le?r:void 0,isDisabled:E,isInvalid:!!s,isHidden:se,isHighlighted:K,isRequired:u,placeholder:a,type:e,...ee,...o})}))}),ie,t.jsx(I.LiveRegion,{children:re})]})},Vo=s.forwardRef((({"aria-describedby":e,assistiveText:s,columnSpan:o,endContent:i,granularity:n="minute",helpSourceLink:r,helpSourceText:l,isHour12:d,isDisabled:m,isReadonly:y,isRequired:p,isRequiredShown:h,label:S,labelEdge:b,labelStartWidth:F,hasLeadingZeroForHour:T,mainFieldRef:g,messages:f,masks:v,testId:x,textAlign:A,userAssistanceDensity:w,value:C,variant:U,onCommit:E,onInput:k},_)=>{const{isDisabled:L,isReadonly:N,labelEdge:B,labelStartWidth:R,textAlign:I,userAssistanceDensity:M}=ee.useFormContext(),D=m??L,V=y??N,O=b??B,W=F??R,Z=A??I,$=w??M,K=a.useRef(null),Q=a.useRef(null),{focusProps:Y,isFocused:se,methods:ae}=X.useFocusableTextField({isDisabled:D,isReadonly:V,enabledElementRef:K,readonlyElementRef:Q});a.useImperativeHandle(_,(()=>ae),[ae]);const oe=se,{baseId:ie,formFieldContext:ne,inputProps:re,labelProps:le,textFieldProps:de,userAssistanceProps:ce}=te.useTextField({ariaDescribedBy:e,helpSourceLink:r,helpSourceText:l,isDisabled:D,isFocused:oe,isReadonly:V,isRequiredShown:h,labelEdge:O,messages:f,styleVariant:U,userAssistanceDensity:$,value:C}),{forId:ue,...me}=le,{id:ye,...pe}=re,he=me.id,Se=a.useCallback((()=>{K.current?.focus()}),[K]),be="none"!==O?t.jsx(q.Label,{...D||V?{}:{onClick:Se},...me,children:S}):void 0,Fe={label:"none"!==O?be:void 0,labelEdge:"none"!==O?O:void 0,labelStartWidth:"none"!==O?W:void 0},Te="none"===O?S:void 0,ge=void 0!==S&&"inside"===O,fe="efficient"===$||"reflow"===$?D||V?"efficient"!==$?void 0:t.jsx(c.InlineUserAssistance,{userAssistanceDensity:$,...ce}):t.jsx(c.InlineUserAssistance,{assistiveText:s,fieldLabel:S,helpSourceLink:r,helpSourceText:l,messages:f,isRequiredShown:h,userAssistanceDensity:$,...ce}):void 0,ve=a.useRef(null),xe=g??ve,Ae="compact"===$?t.jsx(u.CompactUserAssistance,{anchorRef:xe,messages:f,assistiveText:s,...ce}):void 0,{locale:we}=j.useUser();if(jo(v,n,d),void 0!==v&&void 0===d){const e=void 0!==v.find((e=>"dayPeriod"===e.type));d=e}const Ce=a.useMemo((()=>v?P.replaceCustomMasksValuesWithPlaceholders(we,v):P.getTimeMasksFromLocaleAndOptions(we,n,d)),[n,d,we,v]),Ue=T??P.getLeadingZeroForHour(we);if(V)return t.jsx(H.FormFieldContext.Provider,{value:ne,children:t.jsx(G.ReadonlyTextField,{role:"presentation",columnSpan:o,compactUserAssistance:Ae,inlineUserAssistance:fe,onBlur:Y.onFocusOut,onFocus:Y.onFocusIn,ref:xe,testId:x,mainContent:t.jsx(z.ReadonlyTextFieldInput,{"aria-describedby":pe["aria-describedby"],"aria-label":Te,"aria-labelledby":me.id,as:"div",elementRef:Q,textAlign:Z,value:void 0===C?"":P.formatTimeFromMasks(we,C,n,Ce,Ue),hasEmptyLabel:""===S&&"none"===O,hasInsideLabel:ge}),...Fe})});const Ee=t.jsx(Ho,{"aria-label":Te,"aria-labelledby":he,baseId:ie,fieldRef:K,granularity:n,hasInsideLabel:void 0!==be&&"inside"===O,hasLeadingZeroForHour:Ue,isRequired:p,masks:Ce,onCommit:E,onInput:k,textAlign:Z,value:C,...pe});return t.jsx(H.FormFieldContext.Provider,{value:ne,children:t.jsx(J.TextField,{columnSpan:o,compactUserAssistance:Ae,endContent:i,inlineUserAssistance:fe,mainContent:Ee,onBlur:Y.onFocusOut,onFocus:Y.onFocusIn,mainFieldRef:xe,testId:x,...de,...Fe})})})),jo=(e,t,s)=>{if(void 0===e)return;if(void 0!==s){const t=void 0!==e.find((e=>"dayPeriod"===e.type));if(!t&&s)throw new Error("The masks object does not have a dayPeriod property. isHour12 should be set to false to match masks.");if(t&&!s)throw new Error("The masks object does not have a dayPeriod property. isHour12 should be set to true to match masks.")}const a=void 0!==e.find((e=>"second"===e.type)),o=void 0!==e.find((e=>"millisecond"===e.type)),i="Change granularity to match the properties you have in the masks object.";if("second"===t&&!a){throw new Error(`granularity is second, but the masks does not contain the second property. \n ${i}`)}if("second"===t&&o){throw new Error(`granularity is second, but the masks object contains the millisecond property. \n ${i}`)}if(!("millisecond"!==t||a&&o)){throw new Error(`"Granularity is set to millisecond. The masks object should contain both the second and millisecond properties, but one or both are missing." \n ${i}`)}if("minute"===t&&(a||o))throw new Error(`granularity is minute, but the masks object contains the second and/or millisecond property.\n ${i}`)};e.InputTimeMask=Vo,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ define(['exports', 'preact/jsx-runtime', 'preact/compat', 'preact/hooks', './logger-0f873e29', './TabbableModeContext-a9c97640', './LayerHost-e95c5f30', 'css!./UserAssistanceStyles.styles.css', 'module', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceVariants.css', './InlineUserAssistance-4656c2a6', './CompactUserAssistance-3370a318', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-69ce0a2d', 'preact', 'css!./IconStyle.styles.css', './Popup-d51bf3f4', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './InputGroupContext-372087af', 'css!./HiddenAccessibleStyles.styles.css', 'module', './UNSAFE_Popup/themes/redwood/PopupVariants.css', './classNames-08d99695', './keyboardUtils-fbb389f8', './getFormatParse-c1655d39', './maskUtils-33317129', './UNSAFE_InputTimeMask/themes/SegmentStyles.css', './clientHints-4f5a07b0', './useTranslationBundle-516b1b83', './timeUtils-542b7a3c', './Flex-56ecdf4c', './HiddenAccessible-037ef42d', './LiveRegion-8142ed0d', './stringUtils-0ae982c2', './useComponentTheme-5aa41a8f', './FormFieldContext-3c44aaaa', './useFormFieldContext-8196183c', './useUser-85c781ea', './UNSAFE_TextField/themes/redwood/TextFieldInputTheme', './useDoubleTap-b6bf5458', './useTabbableMode-dc440317', './Label-3912beb2', './TextFieldInput-ba4e508c', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './ReadonlyTextFieldInput-608bddc1', './StyledTextField-b4278437', './TextField-1021f00b', 'css!./LiveRegionStyles.styles.css', './useFocusableTextField-8b755b15', './FormContext-5130e198', './useFormContext-30acdd33', './useTextField-e6877c79', './Common/themes/redwood/theme', './Common/themes/themeContract.css', './vanilla-extract-recipes-createRuntimeFn.esm-d881c69a', 'css!./MessageBannerStyles.styles.css', 'module', './UNSAFE_MessageBanner/themes/redwood/MessageBannerVariants.css', 'css!./MessageBannerVariants.styles.css', './IconButton-ae9a01ce', './BaseButton-19a622bc', './usePress-949a0d03', './usePressClick-b7b38da2', './useHover-7964884c', './useToggle-a29f97af', './useActive-bb5dc069', './useColorScheme-10dc88de', './dimensions-60420dbb', './size-a75b3f13', './utils-5077c092', './colorUtils-7c069766', './_curry1-df649359', './mergeInterpolations-9ede4cf7', './mergeDeepWithKey-aaab9019', './_curry3-83878f86', './_curry2-86c52b86', './_isObject-42bafc94', './mergeProps-bcfa6a92', './UNSAFE_BaseButton/themes/redwood/BaseButtonTheme', './UNSAFE_BaseButton/themes/BaseButtonStyles.css', 'css!./BaseButtonStyles.styles.css', './UNSAFE_BaseButton/themes/redwood/BaseButtonVariants.css', 'module', './useTestId-3a316499', './ButtonLabelLayout-2e0e8d09', './Text-cd61a065', './UNSAFE_Text/themes/TextStyles.css', 'css!./TextStyles.styles.css', './useButtonLabelLayoutTheme-3237026f', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutTheme', './UNSAFE_ButtonLabelLayout/themes/ButtonLabelLayoutStyles.css', 'css!./ButtonLabelLayoutStyles.styles.css', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutBaseTheme.css', 'module', './UNSAFE_ButtonLabelLayout/themes/redwood/ButtonLabelLayoutVariants.css', 'css!./ButtonLabelLayoutVariants.styles.css', './useTooltip-7b11fd35', './useTooltipControlled-52183a08', './useId-c9578d26', './useFocus-4194fc59', './useTouch-37489bb5', './useAnimation-5a74955f', './useThemeInterpolations-6b2de213', './useScale-37d42c9d', './theme-a8f3d819', './Theme-d945adae', './useDensity-c83df7b4', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentTheme', './hooks/UNSAFE_useTooltip/themes/TooltipContentStyles.css', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentBaseTheme.css', 'css!./TooltipContentVariants.styles.css', './buttonUtils-97878e90', './id-c70ab33c', 'css!./MessageStyles.styles.css', './MessageFormattingUtils-2e19d8de', './getLocale-ae79e654', './TransitionGroup-3b9d81b6', './MessagesContext-602a69a2', 'css!./ComponentMessageStyles.styles.css', 'module', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageVariants.css', './ComponentMessageContainer-8028ba70', './MessagesManager-d5686336', './SuccessS-c5d520d2', './Icon-2d38c876', './UNSAFE_Icon/themes/IconStyle.css', './ErrorS-d2efaf06', './InformationS-2f6b535d', './WarningS-2b4729ba', './PRIVATE_Message/themes/MessageStyles.css', './soundUtils-f6535f03', './useMessagesContext-1395a997', './Transition-04efcc49', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageTheme', './UNSAFE_ComponentMessage/themes/ComponentMessageStyles.css', './UNSAFE_ComponentMessage/themes/redwood/ComponentMessageBaseTheme.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceTheme', './UNSAFE_UserAssistance/themes/UserAssistanceStyles.css', './UNSAFE_UserAssistance/themes/redwood/UserAssistanceBaseTheme.css', './InlineHelp-a169f974', './InlineHelpSource-85961e81', './useInputGroupContext-e6e19f4f', './Separator-181f7541', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./SeparatorStyles.styles.css', './CompactHelpSource-74498e92', './Help-000f2775', './useFocusWithin-5a504fca', './UNSAFE_Label/themes/redwood/LabelTheme', './UNSAFE_Label/themes/LabelStyles.css', './UNSAFE_Label/themes/redwood/LabelBaseTheme.css', './EnvironmentProvider-8f6fc388', './LayerManager-76fcfb58', './Floating-1ec5ec2a', './useFloating-acd30a55', './positionUtils-6e4daa31', './refUtils-d354a169', './useOutsideClick-f99b7a84', './arrayUtils-6ee96a35', './Layer-447c68e6', './UNSAFE_Layer/themes/LayerStyles.css', 'css!./LayerStyles.styles.css', './useModal-536cb7ff', './UNSAFE_Floating/themes/redwood/FloatingTheme', './UNSAFE_Floating/themes/FloatingStyles.css', 'css!./FloatingStyles.styles.css', './UNSAFE_Floating/themes/redwood/FloatingBaseTheme.css', 'module', './UNSAFE_Floating/themes/redwood/FloatingVariants.css', './vanilla-extract-dynamic.esm-eceadd82', './UNSAFE_Floating/themes/FloatingContract.css', './tabbableUtils-85aa6918', './head-9cb1a3da', './_arity-5a5f5f71', './_isArray-32602db6', './_isString-d0ada3cb', './FocusTrap-60520575', './FocusTracker-2ac5bbfe', './PRIVATE_FocusTracker/themes/FocusTrackerStyles.css', 'css!./FocusTrackerStyles.styles.css', './Modal-d6b2e905', './UNSAFE_Modal/themes/ModalStyles.css', 'css!./ModalStyles.styles.css', './WindowOverlay-a2d80d55', './UNSAFE_WindowOverlay/themes/WindowOverlayStyles.css', 'css!./WindowOverlayStyles.styles.css', './UNSAFE_WindowOverlay/themes/WindowOverlayContract.css', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayTheme', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayBaseTheme.css', 'module', './UNSAFE_WindowOverlay/themes/redwood/WindowOverlayVariants.css', './usePopupAnimation-f679a4b0', './useAnimationStatus-86746674', './popupAnimationUtils-49b93365', './UNSAFE_Popup/themes/PopupContract.css', './UNSAFE_Popup/themes/redwood/PopupTheme', './UNSAFE_Popup/themes/redwood/PopupBaseTheme.css', 'css!./PopupStyles.styles.css', './types-2446783b', './calendarDateUtils-1783eb17', 'css!./SegmentStyles.styles2.css', './boxalignment-905057dc', 'css!./boxalignment.styles.css', './vanilla-extract-sprinkles-createRuntimeSprinkles.esm-84d30764', './flexbox-8521f6aa', 'css!./flexbox.styles.css', './flexitem-5db48325', 'css!./flexitem.styles.css', 'css!./FlexStyles.styles.css', './UNSAFE_TextField/themes/TextFieldInputStyles.css', 'css!./TextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldInputVariants.css', 'css!./TextFieldInputVariants.styles.css', './CompactLabelAssistance-44ba87b0', './UNSAFE_TextField/themes/redwood/TextFieldTheme', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', './UNSAFE_TextField/themes/redwood/TextFieldBaseTheme.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', 'css!./TextFieldVariants.styles.css', './useAccessibleContext-23e8a333', './useTextFieldInputHandlers-390330d9', './textAlign-ef924afd', 'css!./text.styles.css', './TextFieldUtils-f3868e96', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputTheme', './UNSAFE_TextField/themes/ReadonlyTextFieldInputStyles.css', 'css!./ReadonlyTextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputVariants.css', './LabelValueLayout-194e64d9', 'css!./LabelValueLayoutStyles.styles.css', './UNSAFE_RadioItem/themes/redwood/RadioTheme', './UNSAFE_RadioItem/themes/RadioStyles.css', 'css!./RadioStyles.styles.css', './UNSAFE_RadioItem/themes/redwood/RadioBaseTheme.css', 'module', './UNSAFE_RadioItem/themes/redwood/RadioVariants.css', './UNSAFE_TextField/themes/redwood/FormLayoutTheme', './UNSAFE_TextField/themes/FormLayoutStyles.css', './UNSAFE_TextField/themes/redwood/FormLayoutBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxTheme', './UNSAFE_Checkbox/themes/CheckboxStyles.css', 'css!./CheckboxStyles.styles.css', './UNSAFE_Checkbox/themes/redwood/CheckboxBaseTheme.css', 'module', './UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css', 'css!./CheckboxVariants.styles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonTheme', './UNSAFE_Skeleton/themes/SkeletonStyles.css', './UNSAFE_Skeleton/themes/redwood/SkeletonBaseTheme.css', 'module', './UNSAFE_Skeleton/themes/redwood/SkeletonVariants.css', './LayoutStyles.css-c8bc984d', 'css!./LayoutStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldTheme', './UNSAFE_TextField/themes/ReadonlyTextFieldStyles.css', 'css!./ReadonlyTextFieldStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldVariants.css', 'css!./ReadonlyTextFieldVariants.styles.css', './useMessageSeverity-1d69e1ae', './useFormFieldContextProps-4e36b4c3'], (function(e,t,s,a,o,i,n,r,l,d,c,u,m,y,p,h,S,b,F,T,g,f,v,x,A,w,C,U,E,k,_,L,N,P,B,R,I,M,D,H,V,j,O,W,Z,q,$,K,z,G,J,Q,X,Y,ee,te,se,ae,oe,ie,ne,re,le,de,ce,ue,me,ye,pe,he,Se,be,Fe,Te,ge,fe,ve,xe,Ae,we,Ce,Ue,Ee,ke,_e,Le,Ne,Pe,Be,Re,Ie,Me,De,He,Ve,je,Oe,We,Ze,qe,$e,Ke,ze,Ge,Je,Qe,Xe,Ye,et,tt,st,at,ot,it,nt,rt,lt,dt,ct,ut,mt,yt,pt,ht,St,bt,Ft,Tt,gt,ft,vt,xt,At,wt,Ct,Ut,Et,kt,_t,Lt,Nt,Pt,Bt,Rt,It,Mt,Dt,Ht,Vt,jt,Ot,Wt,Zt,qt,$t,Kt,zt,Gt,Jt,Qt,Xt,Yt,es,ts,ss,as,os,is,ns,rs,ls,ds,cs,us,ms,ys,ps,hs,Ss,bs,Fs,Ts,gs,fs,vs,xs,As,ws,Cs,Us,Es,ks,_s,Ls,Ns,Ps,Bs,Rs,Is,Ms,Ds,Hs,Vs,js,Os,Ws,Zs,qs,$s,Ks,zs,Gs,Js,Qs,Xs,Ys,ea,ta,sa,aa,oa,ia,na,ra,la,da,ca,ua,ma,ya,pa,ha,Sa,ba,Fa,Ta,ga,fa,va,xa,Aa,wa,Ca,Ua,Ea,ka,_a,La,Na,Pa,Ba,Ra,Ia,Ma,Da,Ha,Va,ja,Oa,Wa,Za,qa,$a,Ka,za,Ga,Ja,Qa,Xa){"use strict";const Ya=e=>{e.preventDefault()},eo=()=>"ios"===L.getClientHints().platform,to=({amPm:e,"aria-label":s,"aria-valuemax":o,"aria-valuemin":i,"aria-valuenow":n,"aria-valuetext":r,inputRef:l,isDisabled:d,isHidden:c,isHighlighted:u,isInvalid:m,isRequired:y,isSelected:p,onChange:h,placeholder:S,text:b,type:F})=>{const T=b&&b.length>0,g=C.classNames([_.segmentStyles.base,p&&_.segmentStyles.selected,u&&_.segmentStyles.highlighted]),f=C.classNames([_.segmentStyles.placeholder,c||T?_.segmentStyles.hidden:_.segmentStyles.notHidden]),v=N.useTranslationBundle("@oracle/oraclejet-preact").formControl_empty_segment(),x=a.useRef(null),A=l??x,w=a.useRef(null),E=a.useCallback((t=>{if(!0!==d&&"Tab"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key&&"Enter"!==t.key&&!U.isSelectAll(t)){if(u){if(U.isBackspaceOrDelete(t)||"Backspace"===t.key)return}else if(k.isNumberOnlyString(t.key))"dayPeriod"!==F&&h?.({actionType:"updateSegment",data:{type:F,text:t.key}});else if(U.isBackspaceOrDelete(t)||"Backspace"===t.key)h?.({actionType:"clearSegment",data:{type:F}});else if("ArrowUp"===t.key)h?.({actionType:"step",data:{direction:"increase",type:F}});else if("ArrowDown"===t.key)h?.({actionType:"step",data:{direction:"decrease",type:F}});else if("PageUp"===t.key)h?.({actionType:"page",data:{direction:"increase",type:F}});else if("PageDown"===t.key)h?.({actionType:"page",data:{direction:"decrease",type:F}});else if("Home"===t.key)h?.({actionType:"goToHome",data:{type:F}});else if("End"===t.key)h?.({actionType:"goToEnd",data:{type:F}});else if("dayPeriod"===F&&void 0!==e&&so(t.key,t)){w.current=null!==w.current?w.current+t.key:t.key;const s=P.getAmPmMatchType(e,w.current);if("am"===s||"pm"===s){const e="am"===s?P.AM_VALUE:P.PM_VALUE;h?.({actionType:"updateDayPeriodSegment",data:{type:F,"aria-valuenow":e}})}"both"!==s&&(w.current=null)}t.preventDefault(),t.stopPropagation()}}),[e,d,u,h,F]);a.useEffect((()=>{p?A.current?.focus():"dayPeriod"===F&&(w.current=null)}),[p,A,F]);const L=void 0===r?v:n?.toString()===r?void 0:r,B={"data-segment":[F]};return t.jsx("div",{children:t.jsxs("div",{ref:A,role:eo()?"textbox":"spinbutton","aria-disabled":d,"aria-invalid":m||void 0,"aria-label":s,"aria-required":y,"aria-valuemin":eo()?void 0:i,"aria-valuemax":eo()?void 0:o,"aria-valuenow":eo()?void 0:n,"aria-valuetext":eo()?void 0:L,autocapitalize:"off",autocorrect:"off",class:g,contentEditable:!d,...B,enterkeyhint:d?void 0:"done",inputMode:d?"none":"dayPeriod"!==F?"numeric":"text",onCut:Ya,onKeyDown:E,onPaste:Ya,spellcheck:!1,tabIndex:p?0:-1,children:[t.jsx("span",{"aria-hidden":"true",class:f,...B,children:S}),b]})})},so=(e,t)=>{const s=/^\p{L}$/u.test(e),a=U.isControlOrFunctionKey(t);return s&&!a},ao=(e,t)=>{if("reset"===t.actionType)return t.data;const s=t.data?.type,a=no(e.segments,s);switch(t.actionType){case"clearTime":{const t=Fo(ho(e.segments),e.orderedSegments);return Uo(e,t,!1)}case"clearSegment":{const t=po(a);return yo(e,s,t)}case"deselectAndComplete":{let t=wo(e.segments);return t=xo(t),Uo(e,t,!1)}case"commitOnEnter":{const t=wo(e.segments);return{...Uo(e,t,!1),committing:!0}}case"commitOnBlur":{let t=wo(e.segments);t=xo(t);return{...Uo(e,t,!1),committing:!0}}case"committed":return{...e,committing:!1};case"goToEnd":{const t=Lo(s,a);return yo(e,s,t,!1)}case"goToHome":{const t=_o(s,a);return yo(e,s,t,!1)}case"page":{const o=t.data?.direction;if(void 0===o)return e;const i=No(s,a,"page",o);return yo(e,s,i,!1)}case"selectTime":return Co(e);case"selectFirst":{const t=Fo(e.segments,e.orderedSegments);return Uo(e,t,!1)}case"selectNext":{const t=Ao(e.segments,!0),s=fo(t,e.orderedSegments);return Uo(e,s,!1)}case"selectPrevious":{const t=vo(e.segments,e.orderedSegments);return Uo(e,t,!1)}case"selectSegment":{const t=bo(e.segments,s);return Uo(e,t,!1)}case"step":{const o=t.data?.direction;if(void 0===o)return e;const i=No(s,a,"step",o);return yo(e,s,i,!1)}case"updateDayPeriodSegment":if("dayPeriod"===s){const o=t.data?.["aria-valuenow"];if(12===o||0===o){const t=ko(s,o,a);return yo(e,s,t,!1)}}return e;case"updateSegment":{const o=So(s,a,t);return yo(e,s,o)}default:throw new Error("Unknown action type")}},oo=e=>+e,io=e=>e.toString(),no=(e,t)=>e.find((e=>e.type===t)),ro=e=>e.every((e=>e.text&&e.text.length>0)),lo=e=>e.some((e=>void 0!==e["aria-valuenow"])),co=e=>{if(!lo(e))return;const t=e.find((e=>"dayPeriod"===e.type))?.["aria-valuenow"],s=e.find((e=>"hour"===e.type))?.["aria-valuenow"];let a=s;void 0!==t&&void 0!==s&&(a=Bo(t,s));const o=e.filter((e=>"dayPeriod"!==e.type)).reduce(((e,t)=>{const s="hour"===t.type?a:t["aria-valuenow"];return void 0!==s&&(e[t.type]=s),e}),{});return 0===Object.entries(o).length?void 0:o},uo=e=>[...e.orderedSegments],mo=e=>e.map((e=>{if(void 0!==e["aria-valuenow"])return e;let t,s;return"millisecond"===e.type?(t="000",s=0):["minute","second"].includes(e.type)?(t="00",s=0):"dayPeriod"===e.type&&(t=e.amPm?.am,s=0),void 0!==t?{...e,"aria-valuenow":s,text:t,isComplete:!0,"aria-valuetext":t}:e})),yo=(e,t,s,a=!0)=>{const o=((e,t,s,a,o)=>{const i=((e,t,s)=>e.map((e=>e.type===t?s:e)))(e,s,a);let n=i;return"hour"===s&&a.isComplete&&(n=mo(n)),n=a.isComplete&&o?fo(n,t):n,n})(e.segments,e.orderedSegments,t,s,a);return((e,t)=>({committing:e.committing,currentTime:co(t),isCompleteTime:ro(t),isTimeSelected:e.isTimeSelected,isPartialTime:lo(t),orderedSegments:uo(e),segments:t}))(e,o)},po=e=>({...e,"aria-valuetext":void 0,"aria-valuenow":void 0,digitCount:0,text:void 0,isComplete:!1}),ho=e=>e.map((e=>({...po(e)}))),So=(e,t,s)=>{const a=s.data?.text,o=t["aria-valuemax"],i=t["aria-valuemin"],n=0===i,r=n,l=t.isComplete;let d=t.digitCount||0;const c="millisecond"===e?3:2;if(!n&&"0"===a&&(l||void 0===t.text||""===t.text))return{...t,digitCount:1};let u=t.text||"";u=l?a:(t.text??"")+a,r&&u.length>c?u=u.slice(u.length-c):r&&(u=u.padStart(c,"0")),d+=1;var m,y;const p=(m=oo(u),y=o,m>=i&&m<=y)?u:r?a.padStart(c,"0"):a,h=oo(p),S=((e,t,s,a)=>s>=a||oo(io(e)+"0")>t)(h,o,d,c);return d=S?0:d,{...t,"aria-valuetext":p,"aria-valuenow":h,digitCount:d,text:p,isComplete:S}},bo=(e,t)=>e.map((e=>({...e,isSelected:e.type===t}))),Fo=(e,t)=>bo(e,t[0]),To=(e,t)=>{const s=e.find((e=>!0===e.isSelected));return void 0===s?-1:t.findIndex((e=>e===s.type))},go=e=>e.map((e=>e.isSelected?{...e,isComplete:!0,digitCount:0}:e)),fo=(e,t)=>{const s=To(e,t);return s===t.length-1?e:bo(go(e),t[s+1])},vo=(e,t)=>{const s=To(e,t);return 0===s?e:-1===s?Fo(e,t):bo(go(e),t[s-1])},xo=e=>e.map((e=>({...e,isSelected:!1,isComplete:!!e.text}))),Ao=(e,t)=>{const s=e.find((e=>"hour"===e.type));return(!t||s?.isSelected)&&void 0!==s?.text?mo(e):e},wo=e=>(e=>{const t=e.find((e=>"dayPeriod"===e.type)),s=e.find((e=>"hour"===e.type));return void 0===s?.text&&void 0!==t?.text?e.map((e=>"dayPeriod"===e.type?po(e):{...e})):e})(Ao(e)),Co=e=>e.isCompleteTime?Uo(e,e.segments.map((e=>({...e,isSelected:!1}))),!0):e,Uo=(e,t,s)=>({committing:e.committing,currentTime:co(t),isCompleteTime:ro(t),isTimeSelected:s,isPartialTime:lo(t),orderedSegments:uo(e),segments:t}),Eo=(e,t,s,a,o)=>{const i=a-s+1;if(0===s){if("increase"===o){return(e+t)%i}return(e-t+i)%i}if("increase"===o){return(e+t-s)%i+s}return(e-t-s+i)%i+s},ko=(e,t,s)=>{const a=1===s["aria-valuemin"],o=Po(t,s,e,!a);return{...s,"aria-valuetext":o,"aria-valuenow":t,text:o,isComplete:!0}},_o=(e,t)=>{const s=(e=>e["aria-valuemin"])(t);return ko(e,s,t)},Lo=(e,t)=>{const s=(e=>e["aria-valuemax"])(t);return ko(e,s,t)},No=(e,t,s,a)=>{const o="hour"===e&&1===t["aria-valuemin"]?12:t["aria-valuemin"],i=t["aria-valuenow"],n=t["aria-valuemin"],r=t["aria-valuemax"];let l;return l="dayPeriod"===e?0===i?12:0:void 0===i?o??n:"page"===s?((e,t,s,a,o)=>{let i;return i="minute"===o||"second"==o?10:"millisecond"===o?100:2,Eo(e,i,s,a,t)})(i,a,n,r,e):((e,t,s,a)=>Eo(e,1,s,a,t))(i,a,n,r),ko(e,l,t)},Po=(e,t,s,a)=>{if("dayPeriod"===s){const s=t.amPm?.am,a=t.amPm?.pm;return e<12?s:a}const o=io(e);if(!a)return io(e);const i="millisecond"===s?3:2;return o.padStart(i,"0")},Bo=(e,t)=>0===e&&12===t?0:12===e&&12===t?12:12===e?t+12:t,Ro=e=>{const{ariaLabels:t,currentValue:s,granularity:a,hasLeadingZeroForHour:o,locale:i,timeMasks:n}=e,r=n.filter((({type:e})=>"literal"!==e)).map((({type:e})=>e)),l=s?.minute,d=s?.second,c=s?.millisecond,u=n.some((e=>"dayPeriod"===e.type)),m=void 0!==s?.hour,y=m?P.getHourValueStr(s.hour,u,o):void 0,p=void 0!==y?oo(y):void 0,h=u&&m?P.getDayPeriodValueStr(i,s.hour):void 0,S=void 0!==h?P.getDayPeriodValueFromHour(s.hour):void 0,b=void 0===s?.minute?void 0:P.padWithZero(s.minute,2),F=void 0===s?.second?void 0:P.padWithZero(s.second,2),T=void 0===s?.millisecond?void 0:P.padWithZero(s.millisecond,3),g=void 0!==p&&void 0!==l&&("second"!==a||void 0!==d)&&("millisecond"!==a||void 0!==d&&void 0!==c)&&(!u||void 0!==S),f=void 0!==p||void 0!==l||("second"===a||"millisecond"===a)&&void 0!==d||"millisecond"===a&&void 0!==c,v=[{type:"second","aria-label":t.second,"aria-valuemin":0,"aria-valuemax":59,"aria-valuenow":d,"aria-valuetext":F,isComplete:void 0!==d,isSelected:!1,text:F}],x=[{type:"millisecond","aria-label":t.millisecond,"aria-valuemin":0,"aria-valuemax":999,"aria-valuenow":c,"aria-valuetext":T,isComplete:void 0!==T,isSelected:!1,text:T}],A=[{type:"dayPeriod",amPm:P.getAmPmStringsForLocale(i),"aria-label":t.dayPeriod,"aria-valuemin":P.AM_VALUE,"aria-valuemax":P.PM_VALUE,"aria-valuenow":S,"aria-valuetext":h,isComplete:void 0!==h,isSelected:!1,text:h}];return{committing:!1,currentTime:s,isCompleteTime:g,isTimeSelected:!1,isPartialTime:f,orderedSegments:r,segments:[{type:"hour","aria-label":t.hour,"aria-valuemin":u?1:0,"aria-valuemax":u?12:23,"aria-valuenow":p,"aria-valuetext":y,isComplete:void 0!==p,isSelected:!1,text:y},{type:"minute","aria-label":t.minute,"aria-valuemin":0,"aria-valuemax":59,"aria-valuenow":l,"aria-valuetext":b,isComplete:void 0!==l,isSelected:!1,text:b},..."second"===a||"millisecond"===a?v:[],..."millisecond"===a?x:[],...u?A:[]]}},Io=({isHidden:e,isHighlighted:s,isPlaceholder:a,text:o})=>{const i=C.classNames([_.segmentStyles.literalBase,a&&_.segmentStyles.placeholder,s&&_.segmentStyles.highlighted,e?_.segmentStyles.hidden:_.segmentStyles.notHidden]);return t.jsx("span",{"aria-hidden":"true",class:i,children:o})};const Mo=({timeResetRef:e,direction:t,dispatch:s,groupRef:o,isDisabled:i,isFocused:n,isInputFocused:r,onCommit:l,onInput:d,state:c,value:u})=>{const{tabbableModeProps:{tabIndex:m}}=Z.useTabbableMode(),y=c.segments.some((e=>!!e.isSelected)),p=-1===m||y||i?-1:0,h=a.useRef(c.currentTime),S=a.useRef(c.currentTime),b=a.useRef(!1),F=a.useRef(!!n);e.current&&(h.current=u,S.current=u);const T=a.useCallback((e=>{s(e)}),[s]),g=a.useCallback((e=>{const t=e.target.getAttribute("data-segment");s(t?{actionType:"selectSegment",data:{type:t}}:{actionType:"selectFirst"})}),[s]),f=a.useCallback(((e=!0)=>{c.isCompleteTime&&(s({actionType:"selectTime"}),e&&o?.current?.focus())}),[s,o,c.isCompleteTime]),v=a.useCallback((()=>{f()}),[f]),x=a.useCallback((e=>{e.target.getAttribute("data-segment")&&f(!1)}),[f]),A=W.useDoubleTap({onDoubleTap:x,onSingleTap:g}),w=a.useCallback((e=>{"ltr"===t&&"ArrowLeft"===e.key||"rtl"===t&&"ArrowRight"===e.key?(s({actionType:"selectPrevious"}),e.stopPropagation()):"ltr"===t&&"ArrowRight"===e.key||"rtl"===t&&"ArrowLeft"===e.key?(s({actionType:"selectNext"}),e.stopPropagation()):(U.isBackspaceOrDelete(e)||"Backspace"===e.key)&&c.isTimeSelected?(s({actionType:"clearTime"}),b.current=!0,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):U.isSelectAll(e)?(f(),e.preventDefault(),e.stopPropagation()):"Enter"===e.key&&(s({actionType:"commitOnEnter"}),e.preventDefault(),e.stopPropagation())}),[t,s,f,c.isTimeSelected]);if(F.current&&!n&&s({actionType:"commitOnBlur"}),F.current=!!n,c.committing){if(P.timesAreDifferent(S.current,c.currentTime)){const e=void 0!==c.currentTime?Object.freeze({...c.currentTime}):c.currentTime;l?.({value:e})}s({actionType:"committed"}),S.current=c.currentTime}if(P.timesAreDifferent(h.current,c.currentTime)&&!e.current){const e=void 0!==c.currentTime?Object.freeze({...c.currentTime}):c.currentTime;d({value:e}),h.current=e}e.current=!1;const C=a.useRef(!1),E=a.useRef(),k=a.useCallback((()=>{C.current=!0,clearTimeout(E.current),E.current=setTimeout((()=>{C.current=!1}),200)}),[]),_=a.useRef(!1);!r||_.current||C.current||s({actionType:"selectFirst"}),r||!_.current||C.current||s({actionType:"deselectAndComplete"}),r!==_.current&&(C.current=!1,_.current=!!r);const N=function(){const e=L.getClientHints().deviceType;return"phone"===e||"tablet"===e}()?{...A,onKeyDown:w}:{onClick:g,onDoubleClick:v,onKeyDown:w,onPointerDown:k};return{timeClearedRef:b,timeFieldHandlers:i?{}:N,segmentHandlers:i?{}:{onChange:T},tabIndex:p}},Do=(e,t)=>e.find((e=>e.type===t)),Ho=({"aria-describedby":e,"aria-invalid":s,"aria-label":o,"aria-labelledby":i,baseId:n,fieldRef:r,granularity:l="minute",hasLeadingZeroForHour:d,hasInsideLabel:c,isRequired:u,masks:m,onBlur:y,onCommit:p,onFocus:h,onInput:S,textAlign:b,value:F,variant:T="default"})=>{const{direction:g,locale:f}=j.useUser(),{am:v,pm:x}=a.useMemo((()=>P.getAmPmStringsForLocale(f)),[f]),A=N.useTranslationBundle("@oracle/oraclejet-preact"),w=A.inputTimeMask_time_cleared(),U={hour:A.formControl_hour(),minute:A.formControl_minute(),second:A.formControl_second(),millisecond:A.formControl_millisecond(),dayPeriod:`${v}/${x}`},{isDisabled:E,isFocused:k,isInputFocused:_}=V.useFormFieldContext(),L=void 0!==F,{classes:H}=D.useComponentTheme(O.TextFieldInputRedwoodTheme,{type:"notPassword",styleVariant:T,textarea:"notTextArea",input:"notInput",div:"isDiv",prefix:"noPrefix",suffix:"noSuffix",startContent:"noStartContent",endContent:"noEndContent",insideLabel:c?"hasInsideLabel":"noInsideLabel",value:L?"hasValue":"noValue",focused:k?"isFocused":"notFocused",disabled:E?"isDisabled":"notDisabled"}),W=C.classNames([H]),{state:Z,dispatch:q,timeResetRef:$}=(({ariaLabels:e,granularity:t,hasLeadingZeroForHour:s,locale:o,timeMasks:i,value:n})=>{const[r,l]=a.useReducer(ao,{ariaLabels:e,currentValue:n,hasLeadingZeroForHour:s,granularity:t,locale:o,timeMasks:i},Ro),d=a.useRef(n),c=a.useRef(!1);P.timesAreDifferent(d.current,n)&&(d.current=n,P.timesAreDifferent(n,r.currentTime))&&(l({actionType:"reset",data:Ro({ariaLabels:e,currentValue:n,hasLeadingZeroForHour:s,granularity:t,locale:o,timeMasks:i})}),c.current=!0);return{timeResetRef:c,dispatch:l,state:r}})({ariaLabels:U,timeMasks:m,granularity:l,hasLeadingZeroForHour:d,locale:f,value:F}),{isTimeSelected:K,isPartialTime:z,segments:G}=Z,J={hour:Do(G,"hour"),minute:Do(G,"minute"),second:"second"===l||"millisecond"===l?Do(G,"second"):void 0,millisecond:"millisecond"===l?Do(G,"millisecond"):void 0,dayPeriod:Do(G,"dayPeriod")},Q=a.useRef(null),{timeFieldHandlers:X,timeClearedRef:Y,segmentHandlers:ee,tabIndex:te}=Mo({timeResetRef:$,direction:g,dispatch:q,groupRef:Q,isDisabled:E,isFocused:k,isInputFocused:_,onCommit:p,onInput:S,state:Z,value:F}),se=void 0===F&&c&&!k,ae=Z.isCompleteTime?P.formatTimeFromMasks(f,Z.currentTime,l,m,d):"",oe=`${n}-time`,ie=Z.isCompleteTime?t.jsx(R.HiddenAccessible,{id:oe,children:ae}):void 0,ne=Z.isCompleteTime?M.merge([e,oe]):e,re=Y.current?w:"",le=Z.orderedSegments[0];return t.jsxs("div",{"aria-describedby":ne,"aria-label":o,"aria-labelledby":i,class:W,onFocusIn:h,onFocusOut:y,ref:Q,role:"group",tabIndex:te,...X,children:[t.jsx(B.Flex,{direction:"row",wrap:"nowrap",justify:b,children:m.map((({type:e,value:a})=>{const o="literal"!==e?J[e]:{};return"literal"===e?t.jsx(Io,{isHidden:se,isHighlighted:K,isPlaceholder:!z,text:a}):t.jsx(to,{inputRef:e===le?r:void 0,isDisabled:E,isInvalid:!!s,isHidden:se,isHighlighted:K,isRequired:u,placeholder:a,type:e,...ee,...o})}))}),ie,t.jsx(I.LiveRegion,{children:re})]})},Vo=s.forwardRef((({"aria-describedby":e,assistiveText:s,columnSpan:o,endContent:i,granularity:n="minute",helpSourceLink:r,helpSourceText:l,isHour12:d,isDisabled:m,isReadonly:y,isRequired:p,isRequiredShown:h,label:S,labelEdge:b,labelStartWidth:F,hasLeadingZeroForHour:T,mainFieldRef:g,messages:f,masks:v,testId:x,textAlign:A,userAssistanceDensity:w,value:C,variant:U,onCommit:E,onInput:k},_)=>{const{isDisabled:L,isReadonly:N,labelEdge:B,labelStartWidth:R,textAlign:I,userAssistanceDensity:M}=ee.useFormContext(),D=m??L,V=y??N,O=b??B,W=F??R,Z=A??I,$=w??M,K=a.useRef(null),Q=a.useRef(null),{focusProps:Y,isFocused:se,methods:ae}=X.useFocusableTextField({isDisabled:D,isReadonly:V,enabledElementRef:K,readonlyElementRef:Q});a.useImperativeHandle(_,(()=>ae),[ae]);const oe=se,{baseId:ie,formFieldContext:ne,inputProps:re,labelProps:le,textFieldProps:de,userAssistanceProps:ce}=te.useTextField({ariaDescribedBy:e,helpSourceLink:r,helpSourceText:l,isDisabled:D,isFocused:oe,isReadonly:V,isRequiredShown:h,labelEdge:O,messages:f,styleVariant:U,userAssistanceDensity:$,value:C}),{forId:ue,...me}=le,{id:ye,...pe}=re,he=me.id,Se=a.useCallback((()=>{K.current?.focus()}),[K]),be="none"!==O?t.jsx(q.Label,{...D||V?{}:{onClick:Se},...me,children:S}):void 0,Fe={label:"none"!==O?be:void 0,labelEdge:"none"!==O?O:void 0,labelStartWidth:"none"!==O?W:void 0},Te="none"===O?S:void 0,ge=void 0!==S&&"inside"===O,fe="efficient"===$||"reflow"===$?D||V?"efficient"!==$?void 0:t.jsx(c.InlineUserAssistance,{userAssistanceDensity:$,...ce}):t.jsx(c.InlineUserAssistance,{assistiveText:s,fieldLabel:S,helpSourceLink:r,helpSourceText:l,messages:f,isRequiredShown:h,userAssistanceDensity:$,...ce}):void 0,ve=a.useRef(null),xe=g??ve,Ae="compact"===$?t.jsx(u.CompactUserAssistance,{anchorRef:xe,messages:f,assistiveText:s,...ce}):void 0,{locale:we}=j.useUser();if(jo(v,n,d),void 0!==v&&void 0===d){const e=void 0!==v.find((e=>"dayPeriod"===e.type));d=e}const Ce=a.useMemo((()=>v?P.replaceCustomMasksValuesWithPlaceholders(we,v):P.getTimeMasksFromLocaleAndOptions(we,n,d)),[n,d,we,v]),Ue=T??P.getLeadingZeroForHour(we);if(V)return t.jsx(H.FormFieldContext.Provider,{value:ne,children:t.jsx(G.ReadonlyTextField,{role:"presentation",columnSpan:o,compactUserAssistance:Ae,inlineUserAssistance:fe,onBlur:Y.onFocusOut,onFocus:Y.onFocusIn,ref:xe,testId:x,mainContent:t.jsx(z.ReadonlyTextFieldInput,{"aria-describedby":pe["aria-describedby"],"aria-label":Te,"aria-labelledby":me.id,as:"div",elementRef:Q,textAlign:Z,value:void 0===C?"":P.formatTimeFromMasks(we,C,n,Ce,Ue),hasEmptyLabel:""===S&&"none"===O,hasInsideLabel:ge}),...Fe})});const Ee=t.jsx(Ho,{"aria-label":Te,"aria-labelledby":he,baseId:ie,fieldRef:K,granularity:n,hasInsideLabel:void 0!==be&&"inside"===O,hasLeadingZeroForHour:Ue,isRequired:p,masks:Ce,onCommit:E,onInput:k,textAlign:Z,value:C,...pe});return t.jsx(H.FormFieldContext.Provider,{value:ne,children:t.jsx(J.TextField,{columnSpan:o,compactUserAssistance:Ae,endContent:i,inlineUserAssistance:fe,mainContent:Ee,onBlur:Y.onFocusOut,onFocus:Y.onFocusIn,mainFieldRef:xe,testId:x,...de,...Fe})})})),jo=(e,t,s)=>{if(void 0===e)return;if(void 0!==s){const t=void 0!==e.find((e=>"dayPeriod"===e.type));if(!t&&s)throw new Error("The masks object does not have a dayPeriod property. isHour12 should be set to false to match masks.");if(t&&!s)throw new Error("The masks object does not have a dayPeriod property. isHour12 should be set to true to match masks.")}const a=void 0!==e.find((e=>"second"===e.type)),o=void 0!==e.find((e=>"millisecond"===e.type)),i="Change granularity to match the properties you have in the masks object.";if("second"===t&&!a){throw new Error(`granularity is second, but the masks does not contain the second property. \n ${i}`)}if("second"===t&&o){throw new Error(`granularity is second, but the masks object contains the millisecond property. \n ${i}`)}if(!("millisecond"!==t||a&&o)){throw new Error(`"Granularity is set to millisecond. The masks object should contain both the second and millisecond properties, but one or both are missing." \n ${i}`)}if("minute"===t&&(a||o))throw new Error(`granularity is minute, but the masks object contains the second and/or millisecond property.\n ${i}`)};e.InputTimeMask=Vo,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=UNSAFE_InputTimeMask.js.map