@soyfri/shared-library 1.1.12 → 1.1.14

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 (234) hide show
  1. package/cjs/components/DatePicker/DatePicker.cjs +1 -1
  2. package/cjs/components/DateTimePicker/DateTimePicker.cjs +1 -1
  3. package/cjs/components/Flyout/Flyout.cjs +2 -0
  4. package/cjs/components/Flyout/Flyout.cjs.map +1 -0
  5. package/cjs/components/Flyout.cjs +2 -0
  6. package/cjs/components/Flyout.cjs.map +1 -0
  7. package/cjs/components/Input/Input.cjs +1 -1
  8. package/cjs/components/InputGroup/InputGroup.cjs +2 -0
  9. package/cjs/components/InputGroup/InputGroup.cjs.map +1 -0
  10. package/cjs/components/InputGroup.cjs +2 -0
  11. package/cjs/components/InputGroup.cjs.map +1 -0
  12. package/cjs/components/Select/Select.cjs +1 -1
  13. package/cjs/components/Table/Table.cjs +1 -1
  14. package/cjs/components/timeline/Timeline.cjs +2 -0
  15. package/cjs/components/timeline/Timeline.cjs.map +1 -0
  16. package/cjs/components/timeline/TimelineItem.cjs +2 -0
  17. package/cjs/components/timeline/TimelineItem.cjs.map +1 -0
  18. package/cjs/components/timeline.cjs +2 -0
  19. package/cjs/components/timeline.cjs.map +1 -0
  20. package/cjs/node_modules/@mui/icons-material/esm/Check.cjs +2 -0
  21. package/cjs/node_modules/@mui/icons-material/esm/Check.cjs.map +1 -0
  22. package/cjs/node_modules/@mui/icons-material/esm/Close.cjs +2 -0
  23. package/cjs/node_modules/@mui/icons-material/esm/Close.cjs.map +1 -0
  24. package/cjs/node_modules/@mui/lab/esm/Timeline/Timeline.cjs +2 -0
  25. package/cjs/node_modules/@mui/lab/esm/Timeline/Timeline.cjs.map +1 -0
  26. package/cjs/node_modules/@mui/lab/esm/Timeline/TimelineContext.cjs +2 -0
  27. package/cjs/node_modules/@mui/lab/esm/Timeline/TimelineContext.cjs.map +1 -0
  28. package/cjs/node_modules/@mui/lab/esm/Timeline/timelineClasses.cjs +2 -0
  29. package/cjs/node_modules/@mui/lab/esm/Timeline/timelineClasses.cjs.map +1 -0
  30. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.cjs +2 -0
  31. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.cjs.map +1 -0
  32. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.cjs +2 -0
  33. package/cjs/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.cjs.map +1 -0
  34. package/cjs/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.cjs +2 -0
  35. package/cjs/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.cjs.map +1 -0
  36. package/cjs/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.cjs +2 -0
  37. package/cjs/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.cjs.map +1 -0
  38. package/cjs/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.cjs +2 -0
  39. package/cjs/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.cjs.map +1 -0
  40. package/cjs/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.cjs +2 -0
  41. package/cjs/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.cjs.map +1 -0
  42. package/cjs/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.cjs +2 -0
  43. package/cjs/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.cjs.map +1 -0
  44. package/cjs/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.cjs +2 -0
  45. package/cjs/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.cjs.map +1 -0
  46. package/cjs/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.cjs +2 -0
  47. package/cjs/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.cjs.map +1 -0
  48. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.cjs +2 -0
  49. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.cjs.map +1 -0
  50. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.cjs +2 -0
  51. package/cjs/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.cjs.map +1 -0
  52. package/cjs/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.cjs +2 -0
  53. package/cjs/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.cjs.map +1 -0
  54. package/cjs/node_modules/@mui/material/esm/Alert/Alert.cjs +1 -1
  55. package/cjs/node_modules/@mui/material/esm/Alert/Alert.cjs.map +1 -1
  56. package/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.cjs +1 -1
  57. package/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.cjs.map +1 -1
  58. package/cjs/node_modules/@mui/material/esm/Button/Button.cjs +1 -1
  59. package/cjs/node_modules/@mui/material/esm/Button/Button.cjs.map +1 -1
  60. package/cjs/node_modules/@mui/material/esm/Chip/Chip.cjs +1 -1
  61. package/cjs/node_modules/@mui/material/esm/Chip/Chip.cjs.map +1 -1
  62. package/cjs/node_modules/@mui/material/esm/Divider/Divider.cjs +1 -1
  63. package/cjs/node_modules/@mui/material/esm/Divider/Divider.cjs.map +1 -1
  64. package/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.cjs +1 -1
  65. package/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.cjs.map +1 -1
  66. package/cjs/node_modules/@mui/material/esm/IconButton/IconButton.cjs +1 -1
  67. package/cjs/node_modules/@mui/material/esm/IconButton/IconButton.cjs.map +1 -1
  68. package/cjs/node_modules/@mui/material/esm/Input/Input.cjs +1 -1
  69. package/cjs/node_modules/@mui/material/esm/Input/Input.cjs.map +1 -1
  70. package/cjs/node_modules/@mui/material/esm/MenuItem/MenuItem.cjs +1 -1
  71. package/cjs/node_modules/@mui/material/esm/MenuItem/MenuItem.cjs.map +1 -1
  72. package/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.cjs +1 -1
  73. package/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.cjs.map +1 -1
  74. package/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.cjs +1 -1
  75. package/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.cjs.map +1 -1
  76. package/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.cjs +1 -1
  77. package/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.cjs.map +1 -1
  78. package/cjs/node_modules/@mui/material/esm/Paper/Paper.cjs +1 -1
  79. package/cjs/node_modules/@mui/material/esm/Select/SelectInput.cjs +1 -1
  80. package/cjs/node_modules/@mui/material/esm/Select/SelectInput.cjs.map +1 -1
  81. package/cjs/node_modules/@mui/material/esm/styles/createColorScheme.cjs +1 -1
  82. package/cjs/node_modules/@mui/material/esm/styles/createColorScheme.cjs.map +1 -1
  83. package/cjs/node_modules/@mui/material/esm/styles/createPalette.cjs +1 -1
  84. package/cjs/node_modules/@mui/material/esm/styles/createPalette.cjs.map +1 -1
  85. package/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.cjs +1 -1
  86. package/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.cjs.map +1 -1
  87. package/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.cjs +1 -1
  88. package/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.cjs.map +1 -1
  89. package/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.cjs +1 -1
  90. package/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.cjs.map +1 -1
  91. package/cjs/node_modules/@mui/styled-engine/esm/index.cjs +1 -1
  92. package/cjs/node_modules/@mui/styled-engine/esm/index.cjs.map +1 -1
  93. package/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.cjs +1 -1
  94. package/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.cjs.map +1 -1
  95. package/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.cjs +1 -1
  96. package/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.cjs.map +1 -1
  97. package/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.cjs +1 -1
  98. package/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.cjs.map +1 -1
  99. package/cjs/node_modules/@mui/system/esm/createStyled/createStyled.cjs +1 -1
  100. package/cjs/node_modules/@mui/system/esm/createStyled/createStyled.cjs.map +1 -1
  101. package/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.cjs +1 -1
  102. package/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.cjs.map +1 -1
  103. package/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.cjs +1 -1
  104. package/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.cjs.map +1 -1
  105. package/cjs/node_modules/@mui/system/esm/styled/styled.cjs +2 -0
  106. package/cjs/node_modules/@mui/system/esm/styled/styled.cjs.map +1 -0
  107. package/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.cjs +1 -1
  108. package/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.cjs.map +1 -1
  109. package/components/Flyout/index.ts +1 -0
  110. package/components/InputGroup/index.ts +1 -0
  111. package/components/timeline/index.ts +1 -0
  112. package/esm/components/DatePicker/DatePicker.js +1 -1
  113. package/esm/components/DateTimePicker/DateTimePicker.d.ts +1 -0
  114. package/esm/components/DateTimePicker/DateTimePicker.js +1 -1
  115. package/esm/components/Flyout/Flyout.d.ts +13 -0
  116. package/esm/components/Flyout/Flyout.js +2 -0
  117. package/esm/components/Flyout/Flyout.js.map +1 -0
  118. package/esm/components/Flyout/Flyout.stories.d.ts +12 -0
  119. package/esm/components/Flyout/index.d.ts +1 -0
  120. package/esm/components/Flyout.js +2 -0
  121. package/esm/components/Flyout.js.map +1 -0
  122. package/esm/components/Input/Input.d.ts +0 -7
  123. package/esm/components/Input/Input.js +1 -1
  124. package/esm/components/Input/Input.stories.d.ts +1 -0
  125. package/esm/components/InputGroup/InputGroup.d.ts +6 -0
  126. package/esm/components/InputGroup/InputGroup.js +2 -0
  127. package/esm/components/InputGroup/InputGroup.js.map +1 -0
  128. package/esm/components/InputGroup/InputGroup.stories.d.ts +8 -0
  129. package/esm/components/InputGroup/index.d.ts +1 -0
  130. package/esm/components/InputGroup.js +2 -0
  131. package/esm/components/InputGroup.js.map +1 -0
  132. package/esm/components/Select/Select.js +1 -1
  133. package/esm/components/Table/Table.js +1 -1
  134. package/esm/components/timeline/Timeline.d.ts +11 -0
  135. package/esm/components/timeline/Timeline.definition.d.ts +1 -0
  136. package/esm/components/timeline/Timeline.js +2 -0
  137. package/esm/components/timeline/Timeline.js.map +1 -0
  138. package/esm/components/timeline/Timeline.stories.d.ts +6 -0
  139. package/esm/components/timeline/TimelineItem.d.ts +7 -0
  140. package/esm/components/timeline/TimelineItem.js +2 -0
  141. package/esm/components/timeline/TimelineItem.js.map +1 -0
  142. package/esm/components/timeline/index.d.ts +2 -0
  143. package/esm/components/timeline.js +2 -0
  144. package/esm/components/timeline.js.map +1 -0
  145. package/esm/node_modules/@mui/icons-material/esm/Check.js +2 -0
  146. package/esm/node_modules/@mui/icons-material/esm/Check.js.map +1 -0
  147. package/esm/node_modules/@mui/icons-material/esm/Close.js +2 -0
  148. package/esm/node_modules/@mui/icons-material/esm/Close.js.map +1 -0
  149. package/esm/node_modules/@mui/lab/esm/Timeline/Timeline.js +2 -0
  150. package/esm/node_modules/@mui/lab/esm/Timeline/Timeline.js.map +1 -0
  151. package/esm/node_modules/@mui/lab/esm/Timeline/TimelineContext.js +2 -0
  152. package/esm/node_modules/@mui/lab/esm/Timeline/TimelineContext.js.map +1 -0
  153. package/esm/node_modules/@mui/lab/esm/Timeline/timelineClasses.js +2 -0
  154. package/esm/node_modules/@mui/lab/esm/Timeline/timelineClasses.js.map +1 -0
  155. package/esm/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.js +2 -0
  156. package/esm/node_modules/@mui/lab/esm/TimelineConnector/TimelineConnector.js.map +1 -0
  157. package/esm/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.js +2 -0
  158. package/esm/node_modules/@mui/lab/esm/TimelineConnector/timelineConnectorClasses.js.map +1 -0
  159. package/esm/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.js +2 -0
  160. package/esm/node_modules/@mui/lab/esm/TimelineContent/TimelineContent.js.map +1 -0
  161. package/esm/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.js +2 -0
  162. package/esm/node_modules/@mui/lab/esm/TimelineContent/timelineContentClasses.js.map +1 -0
  163. package/esm/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.js +2 -0
  164. package/esm/node_modules/@mui/lab/esm/TimelineDot/TimelineDot.js.map +1 -0
  165. package/esm/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.js +2 -0
  166. package/esm/node_modules/@mui/lab/esm/TimelineDot/timelineDotClasses.js.map +1 -0
  167. package/esm/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.js +2 -0
  168. package/esm/node_modules/@mui/lab/esm/TimelineItem/TimelineItem.js.map +1 -0
  169. package/esm/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.js +2 -0
  170. package/esm/node_modules/@mui/lab/esm/TimelineItem/timelineItemClasses.js.map +1 -0
  171. package/esm/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -0
  172. package/esm/node_modules/@mui/lab/esm/TimelineOppositeContent/timelineOppositeContentClasses.js.map +1 -0
  173. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.js +2 -0
  174. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/TimelineSeparator.js.map +1 -0
  175. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.js +2 -0
  176. package/esm/node_modules/@mui/lab/esm/TimelineSeparator/timelineSeparatorClasses.js.map +1 -0
  177. package/esm/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.js +2 -0
  178. package/esm/node_modules/@mui/lab/esm/internal/convertTimelinePositionToClass.js.map +1 -0
  179. package/esm/node_modules/@mui/material/esm/Alert/Alert.js +1 -1
  180. package/esm/node_modules/@mui/material/esm/Alert/Alert.js.map +1 -1
  181. package/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js +1 -1
  182. package/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js.map +1 -1
  183. package/esm/node_modules/@mui/material/esm/Button/Button.js +1 -1
  184. package/esm/node_modules/@mui/material/esm/Button/Button.js.map +1 -1
  185. package/esm/node_modules/@mui/material/esm/Chip/Chip.js +1 -1
  186. package/esm/node_modules/@mui/material/esm/Chip/Chip.js.map +1 -1
  187. package/esm/node_modules/@mui/material/esm/Divider/Divider.js +1 -1
  188. package/esm/node_modules/@mui/material/esm/Divider/Divider.js.map +1 -1
  189. package/esm/node_modules/@mui/material/esm/FilledInput/FilledInput.js +1 -1
  190. package/esm/node_modules/@mui/material/esm/FilledInput/FilledInput.js.map +1 -1
  191. package/esm/node_modules/@mui/material/esm/IconButton/IconButton.js +1 -1
  192. package/esm/node_modules/@mui/material/esm/IconButton/IconButton.js.map +1 -1
  193. package/esm/node_modules/@mui/material/esm/Input/Input.js +1 -1
  194. package/esm/node_modules/@mui/material/esm/Input/Input.js.map +1 -1
  195. package/esm/node_modules/@mui/material/esm/MenuItem/MenuItem.js +1 -1
  196. package/esm/node_modules/@mui/material/esm/MenuItem/MenuItem.js.map +1 -1
  197. package/esm/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js +1 -1
  198. package/esm/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js.map +1 -1
  199. package/esm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js +1 -1
  200. package/esm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js.map +1 -1
  201. package/esm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js +1 -1
  202. package/esm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js.map +1 -1
  203. package/esm/node_modules/@mui/material/esm/Paper/Paper.js +1 -1
  204. package/esm/node_modules/@mui/material/esm/Select/SelectInput.js +1 -1
  205. package/esm/node_modules/@mui/material/esm/Select/SelectInput.js.map +1 -1
  206. package/esm/node_modules/@mui/material/esm/styles/createColorScheme.js +1 -1
  207. package/esm/node_modules/@mui/material/esm/styles/createColorScheme.js.map +1 -1
  208. package/esm/node_modules/@mui/material/esm/styles/createPalette.js +1 -1
  209. package/esm/node_modules/@mui/material/esm/styles/createPalette.js.map +1 -1
  210. package/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js +1 -1
  211. package/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js.map +1 -1
  212. package/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js +1 -1
  213. package/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js.map +1 -1
  214. package/esm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js +1 -1
  215. package/esm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js.map +1 -1
  216. package/esm/node_modules/@mui/styled-engine/esm/index.js +1 -1
  217. package/esm/node_modules/@mui/styled-engine/esm/index.js.map +1 -1
  218. package/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  219. package/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
  220. package/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  221. package/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  222. package/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +1 -1
  223. package/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +1 -1
  224. package/esm/node_modules/@mui/system/esm/createStyled/createStyled.js +1 -1
  225. package/esm/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -1
  226. package/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js +1 -1
  227. package/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js.map +1 -1
  228. package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -1
  229. package/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -1
  230. package/esm/node_modules/@mui/system/esm/styled/styled.js +2 -0
  231. package/esm/node_modules/@mui/system/esm/styled/styled.js.map +1 -0
  232. package/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +1 -1
  233. package/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -1
  234. package/package.json +17 -1
@@ -1 +1 @@
1
- {"version":3,"file":"OutlinedInput.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport NotchedOutline from \"./NotchedOutline.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport outlinedInputClasses, { getOutlinedInputUtilityClass } from \"./outlinedInputClasses.js\";\nimport InputBase, { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseInput } from \"../InputBase/InputBase.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n notchedOutline: ['notchedOutline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getOutlinedInputUtilityClass, classes);\n return {\n ...classes,\n // forward classes to the InputBase\n ...composedClasses\n };\n};\nconst OutlinedInputRoot = styled(InputBaseRoot, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiOutlinedInput',\n slot: 'Root',\n overridesResolver: inputBaseRootOverridesResolver\n})(memoTheme(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n position: 'relative',\n borderRadius: (theme.vars || theme).shape.borderRadius,\n [`&:hover .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.text.primary\n },\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n [`&:hover .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n }\n },\n [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {\n borderWidth: 2\n },\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette[color].main\n }\n }\n })), {\n props: {},\n // to overide the above style\n style: {\n [`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.error.main\n },\n [`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.action.disabled\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.startAdornment,\n style: {\n paddingLeft: 14\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.endAdornment,\n style: {\n paddingRight: 14\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n padding: '16.5px 14px'\n }\n }, {\n props: ({\n ownerState,\n size\n }) => ownerState.multiline && size === 'small',\n style: {\n padding: '8.5px 14px'\n }\n }]\n };\n}));\nconst NotchedOutlineRoot = styled(NotchedOutline, {\n name: 'MuiOutlinedInput',\n slot: 'NotchedOutline'\n})(memoTheme(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n };\n}));\nconst OutlinedInputInput = styled(InputBaseInput, {\n name: 'MuiOutlinedInput',\n slot: 'Input',\n overridesResolver: inputBaseInputOverridesResolver\n})(memoTheme(({\n theme\n}) => ({\n padding: '16.5px 14px',\n ...(!theme.vars && {\n '&:-webkit-autofill': {\n WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',\n WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',\n caretColor: theme.palette.mode === 'light' ? null : '#fff',\n borderRadius: 'inherit'\n }\n }),\n ...(theme.vars && {\n '&:-webkit-autofill': {\n borderRadius: 'inherit'\n },\n [theme.getColorSchemeSelector('dark')]: {\n '&:-webkit-autofill': {\n WebkitBoxShadow: '0 0 0 100px #266798 inset',\n WebkitTextFillColor: '#fff',\n caretColor: '#fff'\n }\n }\n }),\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n padding: '8.5px 14px'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n padding: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.startAdornment,\n style: {\n paddingLeft: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.endAdornment,\n style: {\n paddingRight: 0\n }\n }]\n})));\nconst OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiOutlinedInput'\n });\n const {\n components = {},\n fullWidth = false,\n inputComponent = 'input',\n label,\n multiline = false,\n notched,\n slots = {},\n slotProps = {},\n type = 'text',\n ...other\n } = props;\n const classes = useUtilityClasses(props);\n const muiFormControl = useFormControl();\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']\n });\n const ownerState = {\n ...props,\n color: fcs.color || 'primary',\n disabled: fcs.disabled,\n error: fcs.error,\n focused: fcs.focused,\n formControl: muiFormControl,\n fullWidth,\n hiddenLabel: fcs.hiddenLabel,\n multiline,\n size: fcs.size,\n type\n };\n const RootSlot = slots.root ?? components.Root ?? OutlinedInputRoot;\n const InputSlot = slots.input ?? components.Input ?? OutlinedInputInput;\n const [NotchedSlot, notchedProps] = useSlot('notchedOutline', {\n elementType: NotchedOutlineRoot,\n className: classes.notchedOutline,\n shouldForwardComponentProp: true,\n ownerState,\n externalForwardedProps: {\n slots,\n slotProps\n },\n additionalProps: {\n label: label != null && label !== '' && fcs.required ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [label, \"\\u2009\", '*']\n }) : label\n }\n });\n return /*#__PURE__*/_jsx(InputBase, {\n slots: {\n root: RootSlot,\n input: InputSlot\n },\n slotProps: slotProps,\n renderSuffix: state => /*#__PURE__*/_jsx(NotchedSlot, {\n ...notchedProps,\n notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused)\n }),\n fullWidth: fullWidth,\n inputComponent: inputComponent,\n multiline: multiline,\n ref: ref,\n type: type,\n ...other,\n classes: {\n ...classes,\n notchedOutline: null\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? OutlinedInput.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * This prop helps users to fill forms faster, especially on mobile devices.\n * The name can be confusing, as it's more like an autofill.\n * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n */\n autoComplete: PropTypes.string,\n /**\n * If `true`, the `input` element is focused during the first mount.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Input: PropTypes.elementType,\n Root: PropTypes.elementType\n }),\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the component is disabled.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n disabled: PropTypes.bool,\n /**\n * End `InputAdornment` for this component.\n */\n endAdornment: PropTypes.node,\n /**\n * If `true`, the `input` will indicate an error.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n error: PropTypes.bool,\n /**\n * If `true`, the `input` will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * The component used for the `input` element.\n * Either a string to use a HTML element or a component.\n * @default 'input'\n */\n inputComponent: PropTypes.elementType,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.\n * @default {}\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label of the `input`. It is only used for layout. The actual labelling\n * is handled by `InputLabel`.\n */\n label: PropTypes.node,\n /**\n * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n * FormControl.\n * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n */\n margin: PropTypes.oneOf(['dense', 'none']),\n /**\n * Maximum number of rows to display when multiline option is set to true.\n */\n maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Minimum number of rows to display when multiline option is set to true.\n */\n minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.\n * @default false\n */\n multiline: PropTypes.bool,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n /**\n * If `true`, the outline is notched to accommodate the label.\n */\n notched: PropTypes.bool,\n /**\n * Callback fired when the value is changed.\n *\n * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder: PropTypes.string,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, the `input` element is required.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n required: PropTypes.bool,\n /**\n * Number of rows to display when multiline option is set to true.\n */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.object,\n notchedOutline: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n notchedOutline: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * Start `InputAdornment` for this component.\n */\n startAdornment: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).\n * @default 'text'\n */\n type: PropTypes.string,\n /**\n * The value of the `input` element, required for a controlled component.\n */\n value: PropTypes.any\n} : void 0;\nOutlinedInput.muiName = 'Input';\nexport default OutlinedInput;"],"names":["OutlinedInputRoot","styled","default","InputBaseRoot","shouldForwardProp","prop","rootShouldForwardProp","name","slot","overridesResolver","inputBaseRootOverridesResolver","memoTheme","theme","borderColor","palette","mode","position","borderRadius","vars","shape","outlinedInputClasses","notchedOutline","text","primary","common","onBackgroundChannel","focused","borderWidth","variants","Object","entries","filter","createSimplePaletteValueFilter","map","color","props","style","main","error","disabled","action","ownerState","startAdornment","paddingLeft","endAdornment","paddingRight","multiline","padding","size","NotchedOutlineRoot","NotchedOutline","OutlinedInputInput","InputBaseInput","inputBaseInputOverridesResolver","WebkitBoxShadow","WebkitTextFillColor","caretColor","getColorSchemeSelector","OutlinedInput","React","forwardRef","inProps","ref","useDefaultProps","components","fullWidth","inputComponent","label","notched","slots","slotProps","type","other","classes","composedClasses","composeClasses","root","input","getOutlinedInputUtilityClass","useUtilityClasses","muiFormControl","useFormControl","fcs","formControlState","states","formControl","hiddenLabel","RootSlot","Root","InputSlot","Input","NotchedSlot","notchedProps","useSlot","elementType","className","shouldForwardComponentProp","externalForwardedProps","additionalProps","required","_jsxs","Fragment","children","_jsx","InputBase","renderSuffix","state","jsxRuntimeExports","jsx","Boolean","filled","process","env","NODE_ENV","propTypes","autoComplete","PropTypes","string","autoFocus","bool","object","oneOfType","oneOf","defaultValue","any","node","id","inputProps","inputRef","refType","margin","maxRows","number","minRows","onChange","func","placeholder","readOnly","rows","sx","arrayOf","value","muiName"],"mappings":"8+BAkBA,MAgBMA,EAAoBC,EAAMC,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gB+F,EAAUK,UAAU,CAACL,EAAUmB,KAAMnB,EAAUI,SAC/D5C,KAAMwC,EAAUI,SAMlBnD,MAAO+C,EAAUjG,MAAM,CACrB0D,MAAOuC,EAAUtB,YACjBzE,eAAgB+F,EAAUtB,YAC1BlB,KAAMwC,EAAUtB,cAKlBpD,eAAgB0E,EAAUS,KAI1Bc,GAAIvB,EAAUK,UAAU,CAACL,EAAUwB,QAAQxB,EAAUK,UAAU,CAACL,EAAUmB,KAAMnB,EAAUI,OAAQJ,EAAUG,QAASH,EAAUmB,KAAMnB,EAAUI,SAK/IjD,KAAM6C,EAAUC,OAIhBwB,MAAOzB,EAAUQ,MAEnBlE,EAAcoF,QAAU","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"OutlinedInput.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport NotchedOutline from \"./NotchedOutline.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport outlinedInputClasses, { getOutlinedInputUtilityClass } from \"./outlinedInputClasses.js\";\nimport InputBase, { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseInput } from \"../InputBase/InputBase.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n notchedOutline: ['notchedOutline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getOutlinedInputUtilityClass, classes);\n return {\n ...classes,\n // forward classes to the InputBase\n ...composedClasses\n };\n};\nconst OutlinedInputRoot = styled(InputBaseRoot, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiOutlinedInput',\n slot: 'Root',\n overridesResolver: inputBaseRootOverridesResolver\n})(memoTheme(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n position: 'relative',\n borderRadius: (theme.vars || theme).shape.borderRadius,\n [`&:hover .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.text.primary\n },\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n [`&:hover .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, 0.23) : borderColor\n }\n },\n [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {\n borderWidth: 2\n },\n variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette[color].main\n }\n }\n })), {\n props: {},\n // to overide the above style\n style: {\n [`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.error.main\n },\n [`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.action.disabled\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.startAdornment,\n style: {\n paddingLeft: 14\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.endAdornment,\n style: {\n paddingRight: 14\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n padding: '16.5px 14px'\n }\n }, {\n props: ({\n ownerState,\n size\n }) => ownerState.multiline && size === 'small',\n style: {\n padding: '8.5px 14px'\n }\n }]\n };\n}));\nconst NotchedOutlineRoot = styled(NotchedOutline, {\n name: 'MuiOutlinedInput',\n slot: 'NotchedOutline'\n})(memoTheme(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n borderColor: theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, 0.23) : borderColor\n };\n}));\nconst OutlinedInputInput = styled(InputBaseInput, {\n name: 'MuiOutlinedInput',\n slot: 'Input',\n overridesResolver: inputBaseInputOverridesResolver\n})(memoTheme(({\n theme\n}) => ({\n padding: '16.5px 14px',\n ...(!theme.vars && {\n '&:-webkit-autofill': {\n WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',\n WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',\n caretColor: theme.palette.mode === 'light' ? null : '#fff',\n borderRadius: 'inherit'\n }\n }),\n ...(theme.vars && {\n '&:-webkit-autofill': {\n borderRadius: 'inherit'\n },\n [theme.getColorSchemeSelector('dark')]: {\n '&:-webkit-autofill': {\n WebkitBoxShadow: '0 0 0 100px #266798 inset',\n WebkitTextFillColor: '#fff',\n caretColor: '#fff'\n }\n }\n }),\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n padding: '8.5px 14px'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.multiline,\n style: {\n padding: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.startAdornment,\n style: {\n paddingLeft: 0\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.endAdornment,\n style: {\n paddingRight: 0\n }\n }]\n})));\nconst OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiOutlinedInput'\n });\n const {\n components = {},\n fullWidth = false,\n inputComponent = 'input',\n label,\n multiline = false,\n notched,\n slots = {},\n slotProps = {},\n type = 'text',\n ...other\n } = props;\n const classes = useUtilityClasses(props);\n const muiFormControl = useFormControl();\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']\n });\n const ownerState = {\n ...props,\n color: fcs.color || 'primary',\n disabled: fcs.disabled,\n error: fcs.error,\n focused: fcs.focused,\n formControl: muiFormControl,\n fullWidth,\n hiddenLabel: fcs.hiddenLabel,\n multiline,\n size: fcs.size,\n type\n };\n const RootSlot = slots.root ?? components.Root ?? OutlinedInputRoot;\n const InputSlot = slots.input ?? components.Input ?? OutlinedInputInput;\n const [NotchedSlot, notchedProps] = useSlot('notchedOutline', {\n elementType: NotchedOutlineRoot,\n className: classes.notchedOutline,\n shouldForwardComponentProp: true,\n ownerState,\n externalForwardedProps: {\n slots,\n slotProps\n },\n additionalProps: {\n label: label != null && label !== '' && fcs.required ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [label, \"\\u2009\", '*']\n }) : label\n }\n });\n return /*#__PURE__*/_jsx(InputBase, {\n slots: {\n root: RootSlot,\n input: InputSlot\n },\n slotProps: slotProps,\n renderSuffix: state => /*#__PURE__*/_jsx(NotchedSlot, {\n ...notchedProps,\n notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused)\n }),\n fullWidth: fullWidth,\n inputComponent: inputComponent,\n multiline: multiline,\n ref: ref,\n type: type,\n ...other,\n classes: {\n ...classes,\n notchedOutline: null\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? OutlinedInput.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * This prop helps users to fill forms faster, especially on mobile devices.\n * The name can be confusing, as it's more like an autofill.\n * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n */\n autoComplete: PropTypes.string,\n /**\n * If `true`, the `input` element is focused during the first mount.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Input: PropTypes.elementType,\n Root: PropTypes.elementType\n }),\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the component is disabled.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n disabled: PropTypes.bool,\n /**\n * End `InputAdornment` for this component.\n */\n endAdornment: PropTypes.node,\n /**\n * If `true`, the `input` will indicate an error.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n error: PropTypes.bool,\n /**\n * If `true`, the `input` will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * The component used for the `input` element.\n * Either a string to use a HTML element or a component.\n * @default 'input'\n */\n inputComponent: PropTypes.elementType,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.\n * @default {}\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label of the `input`. It is only used for layout. The actual labelling\n * is handled by `InputLabel`.\n */\n label: PropTypes.node,\n /**\n * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n * FormControl.\n * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n */\n margin: PropTypes.oneOf(['dense', 'none']),\n /**\n * Maximum number of rows to display when multiline option is set to true.\n */\n maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * Minimum number of rows to display when multiline option is set to true.\n */\n minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.\n * @default false\n */\n multiline: PropTypes.bool,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n /**\n * If `true`, the outline is notched to accommodate the label.\n */\n notched: PropTypes.bool,\n /**\n * Callback fired when the value is changed.\n *\n * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n */\n onChange: PropTypes.func,\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder: PropTypes.string,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, the `input` element is required.\n * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n */\n required: PropTypes.bool,\n /**\n * Number of rows to display when multiline option is set to true.\n */\n rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n input: PropTypes.object,\n notchedOutline: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n input: PropTypes.elementType,\n notchedOutline: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * Start `InputAdornment` for this component.\n */\n startAdornment: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).\n * @default 'text'\n */\n type: PropTypes.string,\n /**\n * The value of the `input` element, required for a controlled component.\n */\n value: PropTypes.any\n} : void 0;\nOutlinedInput.muiName = 'Input';\nexport default OutlinedInput;"],"names":["OutlinedInputRoot","styled","default","InputBaseRoot","shouldForwardProp","prop","rootShouldForwardProp","name","slot","overridesResolver","inputBaseRootOverridesResolver","memoTheme","theme","borderColor","palette","mode","position","borderRadius","vars","shape","outlinedInputClasses","notchedOutline","text","primary","alpha","common","onBackground","focused","borderWidth","variants","Object","entries","filter","createSimplePaletteValueFilter","map","color","props","style","main","error","disabled","action","ownerState","startAdornment","paddingLeft","endAdornment","paddingRight","multiline","padding","size","NotchedOutlineRoot","NotchedOutline","OutlinedInputInput","InputBaseInput","inputBaseInputOverridesResolver","WebkitBoxShadow","WebkitTextFillColor","caretColor","getColorSchemeSelector","OutlinedInput","React","forwardRef","inProps","ref","useDefaultProps","components","fullWidth","inputComponent","label","notched","slots","slotProps","type","other","classes","composedClasses","composeClasses","root","input","getOutlinedInputUtilityClass","useUtilityClasses","muiFormControl","useFormControl","fcs","formControlState","states","formControl","hiddenLabel","RootSlot","Root","InputSlot","Input","NotchedSlot","notchedProps","useSlot","elementType","className","shouldForwardComponentProp","externalForwardedProps","additionalProps","required","_jsxs","Fragment","children","_jsx","InputBase","renderSuffix","state","jsxRuntimeExports","jsx","Boolean","filled","process","env","NODE_ENV","propTypes","autoComplete","PropTypes","string","autoFocus","bool","object","oneOfType","oneOf","defaultValue","any","node","id","inputProps","inputRef","refType","margin","maxRows","number","minRows","onChange","func","placeholder","readOnly","rows","sx","arrayOf","value","muiName"],"mappings":"8+BAkBA,MAgBMA,EAAoBC,EAAMC,QAACC,gBAAe,CAC9CC,kBAAmBC,GAAQC,EAAsBD,IAA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mB,KAAMnB,EAAUI,SAC/D5C,KAAMwC,EAAUI,SAMlBnD,MAAO+C,EAAUlG,MAAM,CACrB2D,MAAOuC,EAAUtB,YACjB1E,eAAgBgG,EAAUtB,YAC1BlB,KAAMwC,EAAUtB,cAKlBpD,eAAgB0E,EAAUS,KAI1Bc,GAAIvB,EAAUK,UAAU,CAACL,EAAUwB,QAAQxB,EAAUK,UAAU,CAACL,EAAUmB,KAAMnB,EAAUI,OAAQJ,EAAUG,QAASH,EAAUmB,KAAMnB,EAAUI,SAK/IjD,KAAM6C,EAAUC,OAIhBwB,MAAOzB,EAAUQ,MAEnBlE,EAAcoF,QAAU","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react"),r=require("../../../../../_virtual/index.cjs"),a=require("../../../../clsx/dist/clsx.cjs"),t=require("../styles/useTheme.cjs"),o=require("../../../../../_virtual/jsx-runtime.cjs"),s=require("../styles/styled.cjs"),n=require("../utils/memoTheme.cjs"),i=require("../styles/getOverlayAlpha.cjs"),l=require("./paperClasses.cjs"),u=require("../DefaultPropsProvider/DefaultPropsProvider.cjs"),c=require("../../../system/esm/colorManipulator/colorManipulator.cjs"),p=require("../../../utils/esm/composeClasses/composeClasses.cjs"),v=require("../../../utils/esm/chainPropTypes/chainPropTypes.cjs"),d=require("../../../utils/esm/integerPropType/integerPropType.cjs");function f(e){var r=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,t.get?t:{enumerable:!0,get:function(){return e[a]}})}})),r.default=e,Object.freeze(r)}var m=f(e);const y=s.default("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,r[a.variant],!a.square&&r.rounded,"elevation"===a.variant&&r[`elevation${a.elevation}`]]}})(n((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]})))),h=m.forwardRef((function(e,r){const s=u.useDefaultProps({props:e,name:"MuiPaper"}),n=t(),{className:v,component:d="div",elevation:f=1,square:m=!1,variant:h="elevation",...j}=s,b={...s,component:d,elevation:f,square:m,variant:h},P=(e=>{const{square:r,elevation:a,variant:t,classes:o}=e;return p({root:["root",t,!r&&"rounded","elevation"===t&&`elevation${a}`]},l.getPaperUtilityClass,o)})(b);return"production"!==process.env.NODE_ENV&&void 0===n.shadows[f]&&console.error([`MUI: The elevation provided <Paper elevation={${f}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${f}]\` is defined.`].join("\n")),o.jsxRuntimeExports.jsx(y,{as:d,ownerState:b,className:a.clsx(P.root,v),ref:r,...j,style:{..."elevation"===h&&{"--Paper-shadow":(n.vars||n).shadows[f],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[f]},...!n.vars&&"dark"===n.palette.mode&&{"--Paper-overlay":`linear-gradient(${c.alpha("#fff",i(f))}, ${c.alpha("#fff",i(f))})`}},...j.style}})}));"production"!==process.env.NODE_ENV&&(h.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:v(d.default,(e=>{const{elevation:r,variant:a}=e;return r>0&&"outlined"===a?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${a}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null})),square:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["elevation","outlined"]),r.string])}),module.exports=h;
1
+ "use strict";var e=require("react"),r=require("../../../../../_virtual/index.cjs"),a=require("../../../../clsx/dist/clsx.cjs"),t=require("../styles/useTheme.cjs"),o=require("../../../../../_virtual/jsx-runtime.cjs"),s=require("../styles/styled.cjs"),n=require("../utils/memoTheme.cjs"),i=require("../styles/getOverlayAlpha.cjs"),l=require("./paperClasses.cjs"),u=require("../DefaultPropsProvider/DefaultPropsProvider.cjs"),c=require("../../../utils/esm/composeClasses/composeClasses.cjs"),p=require("../../../utils/esm/chainPropTypes/chainPropTypes.cjs"),v=require("../../../utils/esm/integerPropType/integerPropType.cjs"),d=require("../../../system/esm/colorManipulator/colorManipulator.cjs");function f(e){var r=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,t.get?t:{enumerable:!0,get:function(){return e[a]}})}})),r.default=e,Object.freeze(r)}var m=f(e);const y=s.default("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,r[a.variant],!a.square&&r.rounded,"elevation"===a.variant&&r[`elevation${a.elevation}`]]}})(n((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]})))),h=m.forwardRef((function(e,r){const s=u.useDefaultProps({props:e,name:"MuiPaper"}),n=t(),{className:p,component:v="div",elevation:f=1,square:m=!1,variant:h="elevation",...j}=s,b={...s,component:v,elevation:f,square:m,variant:h},P=(e=>{const{square:r,elevation:a,variant:t,classes:o}=e;return c({root:["root",t,!r&&"rounded","elevation"===t&&`elevation${a}`]},l.getPaperUtilityClass,o)})(b);return"production"!==process.env.NODE_ENV&&void 0===n.shadows[f]&&console.error([`MUI: The elevation provided <Paper elevation={${f}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${f}]\` is defined.`].join("\n")),o.jsxRuntimeExports.jsx(y,{as:v,ownerState:b,className:a.clsx(P.root,p),ref:r,...j,style:{..."elevation"===h&&{"--Paper-shadow":(n.vars||n).shadows[f],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[f]},...!n.vars&&"dark"===n.palette.mode&&{"--Paper-overlay":`linear-gradient(${d.alpha("#fff",i(f))}, ${d.alpha("#fff",i(f))})`}},...j.style}})}));"production"!==process.env.NODE_ENV&&(h.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:p(v.default,(e=>{const{elevation:r,variant:a}=e;return r>0&&"outlined"===a?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${a}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null})),square:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["elevation","outlined"]),r.string])}),module.exports=h;
2
2
  //# sourceMappingURL=Paper.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react"),r=require("../../../../../_virtual/index3.cjs"),t=require("../../../../../_virtual/index.cjs"),n=require("../../../../clsx/dist/clsx.cjs"),o=require("../Menu/Menu.cjs"),l=require("../NativeSelect/NativeSelectInput.cjs"),a=require("../InputBase/utils.cjs"),s=require("../styles/slotShouldForwardProp.cjs"),i=require("./selectClasses.cjs"),u=require("../../../../../_virtual/jsx-runtime.cjs"),c=require("../../../utils/esm/useControlled/useControlled.cjs"),p=require("../../../utils/esm/useForkRef/useForkRef.cjs"),d=require("../../../utils/esm/ownerDocument/ownerDocument.cjs"),f=require("../../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.cjs"),v=require("../../../utils/esm/useId/useId.cjs"),m=require("../styles/styled.cjs"),b=require("../../../utils/esm/capitalize/capitalize.cjs"),y=require("../../../utils/esm/composeClasses/composeClasses.cjs"),h=require("../../../utils/esm/refType/refType.cjs");function j(e){var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var x,g=j(e);const E=m.default(l.StyledSelectSelect,{name:"MuiSelect",slot:"Select",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[{[`&.${i.default.select}`]:r.select},{[`&.${i.default.select}`]:r[t.variant]},{[`&.${i.default.error}`]:r.error},{[`&.${i.default.multiple}`]:r.multiple}]}})({[`&.${i.default.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),S=m.default(l.StyledSelectIcon,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.icon,t.variant&&r[`icon${b(t.variant)}`],t.open&&r.iconOpen]}})({}),w=m.default("input",{shouldForwardProp:e=>s(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function O(e,r){return"object"==typeof r&&null!==r?e===r:String(e)===String(r)}function q(e){return null==e||"string"==typeof e&&!e.trim()}const I=g.forwardRef((function(e,t){const{"aria-describedby":l,"aria-label":s,autoFocus:m,autoWidth:h,children:j,className:I,defaultOpen:C,defaultValue:N,disabled:R,displayEmpty:M,error:P=!1,IconComponent:D,inputRef:F,labelId:$,MenuProps:k={},multiple:A,name:T,onBlur:V,onChange:U,onClose:W,onFocus:_,onOpen:z,open:B,readOnly:K,renderValue:L,required:H,SelectDisplayProps:Y={},tabIndex:G,type:J,value:Q,variant:X="standard",...Z}=e,[ee,re]=c({controlled:Q,default:N,name:"Select"}),[te,ne]=c({controlled:B,default:C,name:"Select"}),oe=g.useRef(null),le=g.useRef(null),[ae,se]=g.useState(null),{current:ie}=g.useRef(null!=B),[ue,ce]=g.useState(),pe=p(t,F),de=g.useCallback((e=>{le.current=e,e&&se(e)}),[]),fe=ae?.parentNode;g.useImperativeHandle(pe,(()=>({focus:()=>{le.current.focus()},node:oe.current,value:ee})),[ee]),g.useEffect((()=>{C&&te&&ae&&!ie&&(ce(h?null:fe.clientWidth),le.current.focus())}),[ae,h]),g.useEffect((()=>{m&&le.current.focus()}),[m]),g.useEffect((()=>{if(!$)return;const e=d(le.current).getElementById($);if(e){const r=()=>{getSelection().isCollapsed&&le.current.focus()};return e.addEventListener("click",r),()=>{e.removeEventListener("click",r)}}}),[$]);const ve=(e,r)=>{e?z&&z(r):W&&W(r),ie||(ce(h?null:fe.clientWidth),ne(e))},me=g.Children.toArray(j),be=e=>r=>{let t;if(r.currentTarget.hasAttribute("tabindex")){if(A){t=Array.isArray(ee)?ee.slice():[];const r=ee.indexOf(e.props.value);-1===r?t.push(e.props.value):t.splice(r,1)}else t=e.props.value;if(e.props.onClick&&e.props.onClick(r),ee!==t&&(re(t),U)){const n=r.nativeEvent||r,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:T}}),U(o,e)}A||ve(!1,r)}},ye=null!==ae&&te;let he,je;delete Z["aria-invalid"];const xe=[];let ge=!1,Ee=!1;(a.isFilled({value:ee})||M)&&(L?he=L(ee):ge=!0);const Se=me.map((e=>{if(!g.isValidElement(e))return null;let t;if("production"!==process.env.NODE_ENV&&r.reactIsExports.isFragment(e)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),A){if(!Array.isArray(ee))throw new Error("production"!==process.env.NODE_ENV?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":f(2));t=ee.some((r=>O(r,e.props.value))),t&&ge&&xe.push(e.props.children)}else t=O(ee,e.props.value),t&&ge&&(je=e.props.children);return t&&(Ee=!0),g.cloneElement(e,{"aria-selected":t?"true":"false",onClick:be(e),onKeyUp:r=>{" "===r.key&&r.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(r)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));"production"!==process.env.NODE_ENV&&g.useEffect((()=>{if(!Ee&&!A&&""!==ee){const e=me.map((e=>e.props.value));console.warn([`MUI: You have provided an out-of-range value \`${ee}\` for the select ${T?`(name="${T}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${e.filter((e=>null!=e)).map((e=>`\`${e}\``)).join(", ")||'""'}.`].join("\n"))}}),[Ee,me,A,T,ee]),ge&&(he=A?0===xe.length?null:xe.reduce(((e,r,t)=>(e.push(r),t<xe.length-1&&e.push(", "),e)),[]):je);let we,Oe=ue;!h&&ie&&ae&&(Oe=fe.clientWidth),we=void 0!==G?G:R?null:0;const qe=Y.id||(T?`mui-component-select-${T}`:void 0),Ie={...e,variant:X,value:ee,open:ye,error:P},Ce=(e=>{const{classes:r,variant:t,disabled:n,multiple:o,open:l,error:a}=e,s={select:["select",t,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${b(t)}`,l&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return y(s,i.getSelectUtilityClasses,r)})(Ie),Ne={...k.PaperProps,...k.slotProps?.paper},Re=v();return u.jsxRuntimeExports.jsxs(g.Fragment,{children:[u.jsxRuntimeExports.jsx(E,{as:"div",ref:de,tabIndex:we,role:"combobox","aria-controls":ye?Re:void 0,"aria-disabled":R?"true":void 0,"aria-expanded":ye?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[$,qe].filter(Boolean).join(" ")||void 0,"aria-describedby":l,"aria-required":H?"true":void 0,"aria-invalid":P?"true":void 0,onKeyDown:e=>{if(!K){[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),ve(!0,e))}},onMouseDown:R||K?null:e=>{0===e.button&&(e.preventDefault(),le.current.focus(),ve(!0,e))},onBlur:e=>{!ye&&V&&(Object.defineProperty(e,"target",{writable:!0,value:{value:ee,name:T}}),V(e))},onFocus:_,...Y,ownerState:Ie,className:n.clsx(Y.className,Ce.select,I),id:qe,children:q(he)?x||(x=u.jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):he}),u.jsxRuntimeExports.jsx(w,{"aria-invalid":P,value:Array.isArray(ee)?ee.join(","):ee,name:T,ref:oe,"aria-hidden":!0,onChange:e=>{const r=me.find((r=>r.props.value===e.target.value));void 0!==r&&(re(r.props.value),U&&U(e,r))},tabIndex:-1,disabled:R,className:Ce.nativeInput,autoFocus:m,required:H,...Z,ownerState:Ie}),u.jsxRuntimeExports.jsx(S,{as:D,className:Ce.icon,ownerState:Ie}),u.jsxRuntimeExports.jsx(o.default,{id:`menu-${T||""}`,anchorEl:fe,open:ye,onClose:e=>{ve(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...k,slotProps:{...k.slotProps,list:{"aria-labelledby":$,role:"listbox","aria-multiselectable":A?"true":void 0,disableListWrap:!0,id:Re,...k.MenuListProps},paper:{...Ne,style:{minWidth:Oe,...null!=Ne?Ne.style:null}}},children:Se})]})}));"production"!==process.env.NODE_ENV&&(I.propTypes={"aria-describedby":t.string,"aria-label":t.string,autoFocus:t.bool,autoWidth:t.bool,children:t.node,classes:t.object,className:t.string,defaultOpen:t.bool,defaultValue:t.any,disabled:t.bool,displayEmpty:t.bool,error:t.bool,IconComponent:t.elementType.isRequired,inputRef:h,labelId:t.string,MenuProps:t.object,multiple:t.bool,name:t.string,onBlur:t.func,onChange:t.func,onClose:t.func,onFocus:t.func,onOpen:t.func,open:t.bool,readOnly:t.bool,renderValue:t.func,required:t.bool,SelectDisplayProps:t.object,tabIndex:t.oneOfType([t.number,t.string]),type:t.any,value:t.any,variant:t.oneOf(["standard","outlined","filled"])}),module.exports=I;
1
+ "use strict";var e=require("react"),t=require("../../../../../_virtual/index3.cjs"),r=require("../../../../../_virtual/index.cjs"),o=require("../../../../clsx/dist/clsx.cjs"),n=require("../Menu/Menu.cjs"),l=require("../NativeSelect/NativeSelectInput.cjs"),s=require("../InputBase/utils.cjs"),a=require("../styles/slotShouldForwardProp.cjs"),i=require("./selectClasses.cjs"),u=require("../../../../../_virtual/jsx-runtime.cjs"),c=require("../../../utils/esm/useControlled/useControlled.cjs"),p=require("../../../utils/esm/useForkRef/useForkRef.cjs"),d=require("../../../utils/esm/ownerDocument/ownerDocument.cjs"),f=require("../../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.cjs"),v=require("../../../utils/esm/useId/useId.cjs"),m=require("../styles/styled.cjs"),b=require("../../../utils/esm/capitalize/capitalize.cjs"),y=require("../../../utils/esm/composeClasses/composeClasses.cjs"),h=require("../../../utils/esm/refType/refType.cjs");function j(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var x,g=j(e);const E=m.default(l.StyledSelectSelect,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${i.default.select}`]:t.select},{[`&.${i.default.select}`]:t[r.variant]},{[`&.${i.default.error}`]:t.error},{[`&.${i.default.multiple}`]:t.multiple}]}})({[`&.${i.default.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),S=m.default(l.StyledSelectIcon,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${b(r.variant)}`],r.open&&t.iconOpen]}})({}),w=m.default("input",{shouldForwardProp:e=>a(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function O(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function q(e){return null==e||"string"==typeof e&&!e.trim()}const I=g.forwardRef((function(e,r){const{"aria-describedby":l,"aria-label":a,autoFocus:m,autoWidth:h,children:j,className:I,defaultOpen:C,defaultValue:P,disabled:N,displayEmpty:R,error:M=!1,IconComponent:D,inputRef:F,labelId:$,MenuProps:k={},multiple:A,name:T,onBlur:V,onChange:U,onClose:W,onFocus:_,onOpen:z,open:B,readOnly:K,renderValue:L,required:H,SelectDisplayProps:Y={},tabIndex:G,type:J,value:Q,variant:X="standard",...Z}=e,[ee,te]=c({controlled:Q,default:P,name:"Select"}),[re,oe]=c({controlled:B,default:C,name:"Select"}),ne=g.useRef(null),le=g.useRef(null),[se,ae]=g.useState(null),{current:ie}=g.useRef(null!=B),[ue,ce]=g.useState(),pe=p(r,F),de=g.useCallback((e=>{le.current=e,e&&ae(e)}),[]),fe=se?.parentNode;g.useImperativeHandle(pe,(()=>({focus:()=>{le.current.focus()},node:ne.current,value:ee})),[ee]),g.useEffect((()=>{C&&re&&se&&!ie&&(ce(h?null:fe.clientWidth),le.current.focus())}),[se,h]),g.useEffect((()=>{m&&le.current.focus()}),[m]),g.useEffect((()=>{if(!$)return;const e=d(le.current).getElementById($);if(e){const t=()=>{getSelection().isCollapsed&&le.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[$]);const ve=(e,t)=>{e?z&&z(t):W&&W(t),ie||(ce(h?null:fe.clientWidth),oe(e))},me=g.Children.toArray(j),be=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(A){r=Array.isArray(ee)?ee.slice():[];const t=ee.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),ee!==r&&(te(r),U)){const o=t.nativeEvent||t,n=new o.constructor(o.type,o);Object.defineProperty(n,"target",{writable:!0,value:{value:r,name:T}}),U(n,e)}A||ve(!1,t)}},ye=null!==se&&re;let he,je;delete Z["aria-invalid"];const xe=[];let ge=!1,Ee=!1;(s.isFilled({value:ee})||R)&&(L?he=L(ee):ge=!0);const Se=me.map((e=>{if(!g.isValidElement(e))return null;let r;if("production"!==process.env.NODE_ENV&&t.reactIsExports.isFragment(e)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),A){if(!Array.isArray(ee))throw new Error("production"!==process.env.NODE_ENV?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":f(2));r=ee.some((t=>O(t,e.props.value))),r&&ge&&xe.push(e.props.children)}else r=O(ee,e.props.value),r&&ge&&(je=e.props.children);return r&&(Ee=!0),g.cloneElement(e,{"aria-selected":r?"true":"false",onClick:be(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:r,value:void 0,"data-value":e.props.value})}));"production"!==process.env.NODE_ENV&&g.useEffect((()=>{if(!Ee&&!A&&""!==ee){const e=me.map((e=>e.props.value));console.warn([`MUI: You have provided an out-of-range value \`${ee}\` for the select ${T?`(name="${T}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${e.filter((e=>null!=e)).map((e=>`\`${e}\``)).join(", ")||'""'}.`].join("\n"))}}),[Ee,me,A,T,ee]),ge&&(he=A?0===xe.length?null:xe.reduce(((e,t,r)=>(e.push(t),r<xe.length-1&&e.push(", "),e)),[]):je);let we,Oe=ue;!h&&ie&&se&&(Oe=fe.clientWidth),we=void 0!==G?G:N?null:0;const qe=Y.id||(T?`mui-component-select-${T}`:void 0),Ie={...e,variant:X,value:ee,open:ye,error:M},Ce=(e=>{const{classes:t,variant:r,disabled:o,multiple:n,open:l,error:s}=e,a={select:["select",r,o&&"disabled",n&&"multiple",s&&"error"],icon:["icon",`icon${b(r)}`,l&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return y(a,i.getSelectUtilityClasses,t)})(Ie),Pe={...k.PaperProps,..."function"==typeof k.slotProps?.paper?k.slotProps.paper(Ie):k.slotProps?.paper},Ne={...k.MenuListProps,..."function"==typeof k.slotProps?.list?k.slotProps.list(Ie):k.slotProps?.list},Re=v();return u.jsxRuntimeExports.jsxs(g.Fragment,{children:[u.jsxRuntimeExports.jsx(E,{as:"div",ref:de,tabIndex:we,role:"combobox","aria-controls":ye?Re:void 0,"aria-disabled":N?"true":void 0,"aria-expanded":ye?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[$,qe].filter(Boolean).join(" ")||void 0,"aria-describedby":l,"aria-required":H?"true":void 0,"aria-invalid":M?"true":void 0,onKeyDown:e=>{if(!K){[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),ve(!0,e))}},onMouseDown:N||K?null:e=>{0===e.button&&(e.preventDefault(),le.current.focus(),ve(!0,e))},onBlur:e=>{!ye&&V&&(Object.defineProperty(e,"target",{writable:!0,value:{value:ee,name:T}}),V(e))},onFocus:_,...Y,ownerState:Ie,className:o.clsx(Y.className,Ce.select,I),id:qe,children:q(he)?x||(x=u.jsxRuntimeExports.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):he}),u.jsxRuntimeExports.jsx(w,{"aria-invalid":M,value:Array.isArray(ee)?ee.join(","):ee,name:T,ref:ne,"aria-hidden":!0,onChange:e=>{const t=me.find((t=>t.props.value===e.target.value));void 0!==t&&(te(t.props.value),U&&U(e,t))},tabIndex:-1,disabled:N,className:Ce.nativeInput,autoFocus:m,required:H,...Z,ownerState:Ie}),u.jsxRuntimeExports.jsx(S,{as:D,className:Ce.icon,ownerState:Ie}),u.jsxRuntimeExports.jsx(n.default,{id:`menu-${T||""}`,anchorEl:fe,open:ye,onClose:e=>{ve(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...k,slotProps:{...k.slotProps,list:{"aria-labelledby":$,role:"listbox","aria-multiselectable":A?"true":void 0,disableListWrap:!0,id:Re,...Ne},paper:{...Pe,style:{minWidth:Oe,...null!=Pe?Pe.style:null}}},children:Se})]})}));"production"!==process.env.NODE_ENV&&(I.propTypes={"aria-describedby":r.string,"aria-label":r.string,autoFocus:r.bool,autoWidth:r.bool,children:r.node,classes:r.object,className:r.string,defaultOpen:r.bool,defaultValue:r.any,disabled:r.bool,displayEmpty:r.bool,error:r.bool,IconComponent:r.elementType.isRequired,inputRef:h,labelId:r.string,MenuProps:r.object,multiple:r.bool,name:r.string,onBlur:r.func,onChange:r.func,onClose:r.func,onFocus:r.func,onOpen:r.func,open:r.bool,readOnly:r.bool,renderValue:r.func,required:r.bool,SelectDisplayProps:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.any,value:r.any,variant:r.oneOf(["standard","outlined","filled"])}),module.exports=I;
2
2
  //# sourceMappingURL=SelectInput.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInput.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/Select/SelectInput.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nvar _span;\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport refType from '@mui/utils/refType';\nimport ownerDocument from \"../utils/ownerDocument.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport Menu from \"../Menu/Menu.js\";\nimport { StyledSelectSelect, StyledSelectIcon } from \"../NativeSelect/NativeSelectInput.js\";\nimport { isFilled } from \"../InputBase/utils.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport slotShouldForwardProp from \"../styles/slotShouldForwardProp.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport selectClasses, { getSelectUtilityClasses } from \"./selectClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SelectSelect = styled(StyledSelectSelect, {\n name: 'MuiSelect',\n slot: 'Select',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [\n // Win specificity over the input base\n {\n [`&.${selectClasses.select}`]: styles.select\n }, {\n [`&.${selectClasses.select}`]: styles[ownerState.variant]\n }, {\n [`&.${selectClasses.error}`]: styles.error\n }, {\n [`&.${selectClasses.multiple}`]: styles.multiple\n }];\n }\n})({\n // Win specificity over the input base\n [`&.${selectClasses.select}`]: {\n height: 'auto',\n // Resets for multiple select with chips\n minHeight: '1.4375em',\n // Required for select\\text-field height consistency\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n overflow: 'hidden'\n }\n});\nconst SelectIcon = styled(StyledSelectIcon, {\n name: 'MuiSelect',\n slot: 'Icon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.icon, ownerState.variant && styles[`icon${capitalize(ownerState.variant)}`], ownerState.open && styles.iconOpen];\n }\n})({});\nconst SelectNativeInput = styled('input', {\n shouldForwardProp: prop => slotShouldForwardProp(prop) && prop !== 'classes',\n name: 'MuiSelect',\n slot: 'NativeInput'\n})({\n bottom: 0,\n left: 0,\n position: 'absolute',\n opacity: 0,\n pointerEvents: 'none',\n width: '100%',\n boxSizing: 'border-box'\n});\nfunction areEqualValues(a, b) {\n if (typeof b === 'object' && b !== null) {\n return a === b;\n }\n\n // The value could be a number, the DOM will stringify it anyway.\n return String(a) === String(b);\n}\nfunction isEmpty(display) {\n return display == null || typeof display === 'string' && !display.trim();\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n disabled,\n multiple,\n open,\n error\n } = ownerState;\n const slots = {\n select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],\n icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled'],\n nativeInput: ['nativeInput']\n };\n return composeClasses(slots, getSelectUtilityClasses, classes);\n};\n\n/**\n * @ignore - internal component.\n */\nconst SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {\n const {\n 'aria-describedby': ariaDescribedby,\n 'aria-label': ariaLabel,\n autoFocus,\n autoWidth,\n children,\n className,\n defaultOpen,\n defaultValue,\n disabled,\n displayEmpty,\n error = false,\n IconComponent,\n inputRef: inputRefProp,\n labelId,\n MenuProps = {},\n multiple,\n name,\n onBlur,\n onChange,\n onClose,\n onFocus,\n onOpen,\n open: openProp,\n readOnly,\n renderValue,\n required,\n SelectDisplayProps = {},\n tabIndex: tabIndexProp,\n // catching `type` from Input which makes no sense for SelectInput\n type,\n value: valueProp,\n variant = 'standard',\n ...other\n } = props;\n const [value, setValueState] = useControlled({\n controlled: valueProp,\n default: defaultValue,\n name: 'Select'\n });\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: defaultOpen,\n name: 'Select'\n });\n const inputRef = React.useRef(null);\n const displayRef = React.useRef(null);\n const [displayNode, setDisplayNode] = React.useState(null);\n const {\n current: isOpenControlled\n } = React.useRef(openProp != null);\n const [menuMinWidthState, setMenuMinWidthState] = React.useState();\n const handleRef = useForkRef(ref, inputRefProp);\n const handleDisplayRef = React.useCallback(node => {\n displayRef.current = node;\n if (node) {\n setDisplayNode(node);\n }\n }, []);\n const anchorElement = displayNode?.parentNode;\n React.useImperativeHandle(handleRef, () => ({\n focus: () => {\n displayRef.current.focus();\n },\n node: inputRef.current,\n value\n }), [value]);\n\n // Resize menu on `defaultOpen` automatic toggle.\n React.useEffect(() => {\n if (defaultOpen && openState && displayNode && !isOpenControlled) {\n setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);\n displayRef.current.focus();\n }\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [displayNode, autoWidth]);\n // `isOpenControlled` is ignored because the component should never switch between controlled and uncontrolled modes.\n // `defaultOpen` and `openState` are ignored to avoid unnecessary callbacks.\n React.useEffect(() => {\n if (autoFocus) {\n displayRef.current.focus();\n }\n }, [autoFocus]);\n React.useEffect(() => {\n if (!labelId) {\n return undefined;\n }\n const label = ownerDocument(displayRef.current).getElementById(labelId);\n if (label) {\n const handler = () => {\n if (getSelection().isCollapsed) {\n displayRef.current.focus();\n }\n };\n label.addEventListener('click', handler);\n return () => {\n label.removeEventListener('click', handler);\n };\n }\n return undefined;\n }, [labelId]);\n const update = (open, event) => {\n if (open) {\n if (onOpen) {\n onOpen(event);\n }\n } else if (onClose) {\n onClose(event);\n }\n if (!isOpenControlled) {\n setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);\n setOpenState(open);\n }\n };\n const handleMouseDown = event => {\n // Ignore everything but left-click\n if (event.button !== 0) {\n return;\n }\n // Hijack the default focus behavior.\n event.preventDefault();\n displayRef.current.focus();\n update(true, event);\n };\n const handleClose = event => {\n update(false, event);\n };\n const childrenArray = React.Children.toArray(children);\n\n // Support autofill.\n const handleChange = event => {\n const child = childrenArray.find(childItem => childItem.props.value === event.target.value);\n if (child === undefined) {\n return;\n }\n setValueState(child.props.value);\n if (onChange) {\n onChange(event, child);\n }\n };\n const handleItemClick = child => event => {\n let newValue;\n\n // We use the tabindex attribute to signal the available options.\n if (!event.currentTarget.hasAttribute('tabindex')) {\n return;\n }\n if (multiple) {\n newValue = Array.isArray(value) ? value.slice() : [];\n const itemIndex = value.indexOf(child.props.value);\n if (itemIndex === -1) {\n newValue.push(child.props.value);\n } else {\n newValue.splice(itemIndex, 1);\n }\n } else {\n newValue = child.props.value;\n }\n if (child.props.onClick) {\n child.props.onClick(event);\n }\n if (value !== newValue) {\n setValueState(newValue);\n if (onChange) {\n // Redefine target to allow name and value to be read.\n // This allows seamless integration with the most popular form libraries.\n // https://github.com/mui/material-ui/issues/13485#issuecomment-676048492\n // Clone the event to not override `target` of the original event.\n const nativeEvent = event.nativeEvent || event;\n const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);\n Object.defineProperty(clonedEvent, 'target', {\n writable: true,\n value: {\n value: newValue,\n name\n }\n });\n onChange(clonedEvent, child);\n }\n }\n if (!multiple) {\n update(false, event);\n }\n };\n const handleKeyDown = event => {\n if (!readOnly) {\n const validKeys = [' ', 'ArrowUp', 'ArrowDown',\n // The native select doesn't respond to enter on macOS, but it's recommended by\n // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/\n 'Enter'];\n if (validKeys.includes(event.key)) {\n event.preventDefault();\n update(true, event);\n }\n }\n };\n const open = displayNode !== null && openState;\n const handleBlur = event => {\n // if open event.stopImmediatePropagation\n if (!open && onBlur) {\n // Preact support, target is read only property on a native event.\n Object.defineProperty(event, 'target', {\n writable: true,\n value: {\n value,\n name\n }\n });\n onBlur(event);\n }\n };\n delete other['aria-invalid'];\n let display;\n let displaySingle;\n const displayMultiple = [];\n let computeDisplay = false;\n let foundMatch = false;\n\n // No need to display any value if the field is empty.\n if (isFilled({\n value\n }) || displayEmpty) {\n if (renderValue) {\n display = renderValue(value);\n } else {\n computeDisplay = true;\n }\n }\n const items = childrenArray.map(child => {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return null;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"MUI: The Select component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n let selected;\n if (multiple) {\n if (!Array.isArray(value)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: The `value` prop must be an array ' + 'when using the `Select` component with `multiple`.' : _formatErrorMessage(2));\n }\n selected = value.some(v => areEqualValues(v, child.props.value));\n if (selected && computeDisplay) {\n displayMultiple.push(child.props.children);\n }\n } else {\n selected = areEqualValues(value, child.props.value);\n if (selected && computeDisplay) {\n displaySingle = child.props.children;\n }\n }\n if (selected) {\n foundMatch = true;\n }\n return /*#__PURE__*/React.cloneElement(child, {\n 'aria-selected': selected ? 'true' : 'false',\n onClick: handleItemClick(child),\n onKeyUp: event => {\n if (event.key === ' ') {\n // otherwise our MenuItems dispatches a click event\n // it's not behavior of the native <option> and causes\n // the select to close immediately since we open on space keydown\n event.preventDefault();\n }\n if (child.props.onKeyUp) {\n child.props.onKeyUp(event);\n }\n },\n role: 'option',\n selected,\n value: undefined,\n // The value is most likely not a valid HTML attribute.\n 'data-value': child.props.value // Instead, we provide it as a data attribute.\n });\n });\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!foundMatch && !multiple && value !== '') {\n const values = childrenArray.map(child => child.props.value);\n console.warn([`MUI: You have provided an out-of-range value \\`${value}\\` for the select ${name ? `(name=\"${name}\") ` : ''}component.`, \"Consider providing a value that matches one of the available options or ''.\", `The available values are ${values.filter(x => x != null).map(x => `\\`${x}\\``).join(', ') || '\"\"'}.`].join('\\n'));\n }\n }, [foundMatch, childrenArray, multiple, name, value]);\n }\n if (computeDisplay) {\n if (multiple) {\n if (displayMultiple.length === 0) {\n display = null;\n } else {\n display = displayMultiple.reduce((output, child, index) => {\n output.push(child);\n if (index < displayMultiple.length - 1) {\n output.push(', ');\n }\n return output;\n }, []);\n }\n } else {\n display = displaySingle;\n }\n }\n\n // Avoid performing a layout computation in the render method.\n let menuMinWidth = menuMinWidthState;\n if (!autoWidth && isOpenControlled && displayNode) {\n menuMinWidth = anchorElement.clientWidth;\n }\n let tabIndex;\n if (typeof tabIndexProp !== 'undefined') {\n tabIndex = tabIndexProp;\n } else {\n tabIndex = disabled ? null : 0;\n }\n const buttonId = SelectDisplayProps.id || (name ? `mui-component-select-${name}` : undefined);\n const ownerState = {\n ...props,\n variant,\n value,\n open,\n error\n };\n const classes = useUtilityClasses(ownerState);\n const paperProps = {\n ...MenuProps.PaperProps,\n ...MenuProps.slotProps?.paper\n };\n const listboxId = useId();\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(SelectSelect, {\n as: \"div\",\n ref: handleDisplayRef,\n tabIndex: tabIndex,\n role: \"combobox\",\n \"aria-controls\": open ? listboxId : undefined,\n \"aria-disabled\": disabled ? 'true' : undefined,\n \"aria-expanded\": open ? 'true' : 'false',\n \"aria-haspopup\": \"listbox\",\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": [labelId, buttonId].filter(Boolean).join(' ') || undefined,\n \"aria-describedby\": ariaDescribedby,\n \"aria-required\": required ? 'true' : undefined,\n \"aria-invalid\": error ? 'true' : undefined,\n onKeyDown: handleKeyDown,\n onMouseDown: disabled || readOnly ? null : handleMouseDown,\n onBlur: handleBlur,\n onFocus: onFocus,\n ...SelectDisplayProps,\n ownerState: ownerState,\n className: clsx(SelectDisplayProps.className, classes.select, className)\n // The id is required for proper a11y\n ,\n id: buttonId,\n children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue\n _span || (_span = /*#__PURE__*/_jsx(\"span\", {\n className: \"notranslate\",\n \"aria-hidden\": true,\n children: \"\\u200B\"\n })) : display\n }), /*#__PURE__*/_jsx(SelectNativeInput, {\n \"aria-invalid\": error,\n value: Array.isArray(value) ? value.join(',') : value,\n name: name,\n ref: inputRef,\n \"aria-hidden\": true,\n onChange: handleChange,\n tabIndex: -1,\n disabled: disabled,\n className: classes.nativeInput,\n autoFocus: autoFocus,\n required: required,\n ...other,\n ownerState: ownerState\n }), /*#__PURE__*/_jsx(SelectIcon, {\n as: IconComponent,\n className: classes.icon,\n ownerState: ownerState\n }), /*#__PURE__*/_jsx(Menu, {\n id: `menu-${name || ''}`,\n anchorEl: anchorElement,\n open: open,\n onClose: handleClose,\n anchorOrigin: {\n vertical: 'bottom',\n horizontal: 'center'\n },\n transformOrigin: {\n vertical: 'top',\n horizontal: 'center'\n },\n ...MenuProps,\n slotProps: {\n ...MenuProps.slotProps,\n list: {\n 'aria-labelledby': labelId,\n role: 'listbox',\n 'aria-multiselectable': multiple ? 'true' : undefined,\n disableListWrap: true,\n id: listboxId,\n ...MenuProps.MenuListProps\n },\n paper: {\n ...paperProps,\n style: {\n minWidth: menuMinWidth,\n ...(paperProps != null ? paperProps.style : null)\n }\n }\n },\n children: items\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SelectInput.propTypes = {\n /**\n * @ignore\n */\n 'aria-describedby': PropTypes.string,\n /**\n * @ignore\n */\n 'aria-label': PropTypes.string,\n /**\n * @ignore\n */\n autoFocus: PropTypes.bool,\n /**\n * If `true`, the width of the popover will automatically be set according to the items inside the\n * menu, otherwise it will be at least the width of the select input.\n */\n autoWidth: PropTypes.bool,\n /**\n * The option elements to populate the select with.\n * Can be some `<MenuItem>` elements.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The CSS class name of the select element.\n */\n className: PropTypes.string,\n /**\n * If `true`, the component is toggled on mount. Use when the component open state is not controlled.\n * You can only use it when the `native` prop is `false` (default).\n */\n defaultOpen: PropTypes.bool,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the select is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the selected item is displayed even if its value is empty.\n */\n displayEmpty: PropTypes.bool,\n /**\n * If `true`, the `select input` will indicate an error.\n */\n error: PropTypes.bool,\n /**\n * The icon that displays the arrow.\n */\n IconComponent: PropTypes.elementType.isRequired,\n /**\n * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`\n * Equivalent to `ref`\n */\n inputRef: refType,\n /**\n * The ID of an element that acts as an additional label. The Select will\n * be labelled by the additional label and the selected value.\n */\n labelId: PropTypes.string,\n /**\n * Props applied to the [`Menu`](/material-ui/api/menu/) element.\n */\n MenuProps: PropTypes.object,\n /**\n * If `true`, `value` must be an array and the menu will support multiple selections.\n */\n multiple: PropTypes.bool,\n /**\n * Name attribute of the `select` or hidden `input` element.\n */\n name: PropTypes.string,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * Callback fired when a menu item is selected.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (any).\n * @param {object} [child] The react element that was selected.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the component requests to be closed.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * Callback fired when the component requests to be opened.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * @ignore\n */\n readOnly: PropTypes.bool,\n /**\n * Render the selected value.\n *\n * @param {any} value The `value` provided to the component.\n * @returns {ReactNode}\n */\n renderValue: PropTypes.func,\n /**\n * If `true`, the component is required.\n */\n required: PropTypes.bool,\n /**\n * Props applied to the clickable div element.\n */\n SelectDisplayProps: PropTypes.object,\n /**\n * @ignore\n */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * @ignore\n */\n type: PropTypes.any,\n /**\n * The input value.\n */\n value: PropTypes.any,\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['standard', 'outlined', 'filled'])\n} : void 0;\nexport default SelectInput;"],"names":["_span","SelectSelect","styled","default","StyledSelectSelect","name","slot","overridesResolver","props","styles","ownerState","selectClasses","select","variant","error","multiple","height","minHeight","textOverflow","whiteSpace","overflow","SelectIcon","StyledSelectIcon","icon","capitalize","open","iconOpen","SelectNativeInput","shouldForwardProp","prop","slotShouldForwardProp","bottom","left","position","opacity","pointerEvents","width","boxSizing","areEqualValues","a","b","String","isEmpty","display","trim","SelectInput","React","forwardRef","ref","ariaDescribedby","ariaLabel","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","inputRefProp","labelId","MenuProps","onBlur","onChange","onClose","onFocus","onOpen","openProp","readOnly","renderValue","required","SelectDisplayProps","tabIndex","tabIndexProp","type","value","valueProp","other","setValueState","useControlled","controlled","openState","setOpenState","useRef","displayRef","displayNode","setDisplayNode","useState","current","isOpenControlled","menuMinWidthState","setMenuMinWidthState","handleRef","useForkRef","handleDisplayRef","useCallback","node","anchorElement","parentNode","useImperativeHandle","focus","useEffect","clientWidth","label","ownerDocument","getElementById","handler","getSelection","isCollapsed","addEventListener","removeEventListener","update","event","childrenArray","Children","toArray","handleItemClick","child","newValue","currentTarget","hasAttribute","Array","isArray","slice","itemIndex","indexOf","push","splice","onClick","nativeEvent","clonedEvent","constructor","Object","defineProperty","writable","displaySingle","displayMultiple","computeDisplay","foundMatch","isFilled","items","map","isValidElement","selected","process","env","NODE_ENV","isFragment","console","join","Error","_formatErrorMessage","some","v","cloneElement","onKeyUp","key","preventDefault","role","undefined","values","warn","filter","x","length","reduce","output","index","menuMinWidth","buttonId","id","classes","slots","nativeInput","composeClasses","getSelectUtilityClasses","useUtilityClasses","paperProps","PaperProps","slotProps","paper","listboxId","useId","_jsxs","jsxRuntimeExports","jsxs","Fragment","_jsx","jsx","as","Boolean","onKeyDown","includes","onMouseDown","button","clsx","find","childItem","target","Menu","anchorEl","anchorOrigin","vertical","horizontal","transformOrigin","list","disableListWrap","MenuListProps","style","minWidth","propTypes","PropTypes","string","bool","object","any","elementType","isRequired","refType","func","oneOfType","number","oneOf"],"mappings":"8rCAGIA,SAmBJ,MAAMC,EAAeC,EAAMC,QAACC,qBAAoB,CAC9CC,KAAM,YACNC,KAAM,SACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAEP,CACE,CAAC,KAAKG,EAAAA,QAAcC,UAAWH,EAAOG,QACrC,CACD,CAAC,KAAKD,UAAcC,UAAWH,EAAOC,EAAWG,UAChD,CACD,CAAC,KAAKF,EAAAA,QAAcG,SAAUL,EAAOK,OACpC,CACD,CAAC,KAAKH,EAAAA,QAAcI,YAAaN,EAAOM,aAhBzBb,CAmBlB,CAED,CAAC,KAAKS,UAAcC,UAAW,CAC7BI,OAAQ,OAERC,UAAW,WAEXC,aAAc,WACdC,WAAY,SACZC,SAAU,YAGRC,EAAanB,EAAMC,QAACmB,mBAAkB,CAC1CjB,KAAM,YACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOc,KAAMb,EAAWG,SAAWJ,EAAO,OAAOe,EAAWd,EAAWG,Y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EAAUC,OAI9B,aAAcD,EAAUC,OAIxBnK,UAAWkK,EAAUE,KAKrBnK,UAAWiK,EAAUE,KAKrBlK,SAAUgK,EAAUnH,KAIpB2E,QAASwC,EAAUG,OAInBlK,UAAW+J,EAAUC,OAKrB/J,YAAa8J,EAAUE,KAIvB/J,aAAc6J,EAAUI,IAIxBhK,SAAU4J,EAAUE,KAIpB7J,aAAc2J,EAAUE,KAIxBzM,MAAOuM,EAAUE,KAIjB5J,cAAe0J,EAAUK,YAAYC,WAKrC/J,SAAUgK,EAKV9J,QAASuJ,EAAUC,OAInBvJ,UAAWsJ,EAAUG,OAIrBzM,SAAUsM,EAAUE,KAIpBlN,KAAMgN,EAAUC,OAIhBtJ,OAAQqJ,EAAUQ,KAQlB5J,SAAUoJ,EAAUQ,KAOpB3J,QAASmJ,EAAUQ,KAInB1J,QAASkJ,EAAUQ,KAOnBzJ,OAAQiJ,EAAUQ,KAIlBpM,KAAM4L,EAAUE,KAIhBjJ,SAAU+I,EAAUE,KAOpBhJ,YAAa8I,EAAUQ,KAIvBrJ,SAAU6I,EAAUE,KAIpB9I,mBAAoB4I,EAAUG,OAI9B9I,SAAU2I,EAAUS,UAAU,CAACT,EAAUU,OAAQV,EAAUC,SAI3D1I,KAAMyI,EAAUI,IAIhB5I,MAAOwI,EAAUI,IAIjB5M,QAASwM,EAAUW,MAAM,CAAC,WAAY,WAAY","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"SelectInput.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/Select/SelectInput.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nvar _span;\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport refType from '@mui/utils/refType';\nimport ownerDocument from \"../utils/ownerDocument.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport Menu from \"../Menu/Menu.js\";\nimport { StyledSelectSelect, StyledSelectIcon } from \"../NativeSelect/NativeSelectInput.js\";\nimport { isFilled } from \"../InputBase/utils.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport slotShouldForwardProp from \"../styles/slotShouldForwardProp.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport selectClasses, { getSelectUtilityClasses } from \"./selectClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SelectSelect = styled(StyledSelectSelect, {\n name: 'MuiSelect',\n slot: 'Select',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [\n // Win specificity over the input base\n {\n [`&.${selectClasses.select}`]: styles.select\n }, {\n [`&.${selectClasses.select}`]: styles[ownerState.variant]\n }, {\n [`&.${selectClasses.error}`]: styles.error\n }, {\n [`&.${selectClasses.multiple}`]: styles.multiple\n }];\n }\n})({\n // Win specificity over the input base\n [`&.${selectClasses.select}`]: {\n height: 'auto',\n // Resets for multiple select with chips\n minHeight: '1.4375em',\n // Required for select\\text-field height consistency\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n overflow: 'hidden'\n }\n});\nconst SelectIcon = styled(StyledSelectIcon, {\n name: 'MuiSelect',\n slot: 'Icon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.icon, ownerState.variant && styles[`icon${capitalize(ownerState.variant)}`], ownerState.open && styles.iconOpen];\n }\n})({});\nconst SelectNativeInput = styled('input', {\n shouldForwardProp: prop => slotShouldForwardProp(prop) && prop !== 'classes',\n name: 'MuiSelect',\n slot: 'NativeInput'\n})({\n bottom: 0,\n left: 0,\n position: 'absolute',\n opacity: 0,\n pointerEvents: 'none',\n width: '100%',\n boxSizing: 'border-box'\n});\nfunction areEqualValues(a, b) {\n if (typeof b === 'object' && b !== null) {\n return a === b;\n }\n\n // The value could be a number, the DOM will stringify it anyway.\n return String(a) === String(b);\n}\nfunction isEmpty(display) {\n return display == null || typeof display === 'string' && !display.trim();\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n variant,\n disabled,\n multiple,\n open,\n error\n } = ownerState;\n const slots = {\n select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],\n icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled'],\n nativeInput: ['nativeInput']\n };\n return composeClasses(slots, getSelectUtilityClasses, classes);\n};\n\n/**\n * @ignore - internal component.\n */\nconst SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {\n const {\n 'aria-describedby': ariaDescribedby,\n 'aria-label': ariaLabel,\n autoFocus,\n autoWidth,\n children,\n className,\n defaultOpen,\n defaultValue,\n disabled,\n displayEmpty,\n error = false,\n IconComponent,\n inputRef: inputRefProp,\n labelId,\n MenuProps = {},\n multiple,\n name,\n onBlur,\n onChange,\n onClose,\n onFocus,\n onOpen,\n open: openProp,\n readOnly,\n renderValue,\n required,\n SelectDisplayProps = {},\n tabIndex: tabIndexProp,\n // catching `type` from Input which makes no sense for SelectInput\n type,\n value: valueProp,\n variant = 'standard',\n ...other\n } = props;\n const [value, setValueState] = useControlled({\n controlled: valueProp,\n default: defaultValue,\n name: 'Select'\n });\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: defaultOpen,\n name: 'Select'\n });\n const inputRef = React.useRef(null);\n const displayRef = React.useRef(null);\n const [displayNode, setDisplayNode] = React.useState(null);\n const {\n current: isOpenControlled\n } = React.useRef(openProp != null);\n const [menuMinWidthState, setMenuMinWidthState] = React.useState();\n const handleRef = useForkRef(ref, inputRefProp);\n const handleDisplayRef = React.useCallback(node => {\n displayRef.current = node;\n if (node) {\n setDisplayNode(node);\n }\n }, []);\n const anchorElement = displayNode?.parentNode;\n React.useImperativeHandle(handleRef, () => ({\n focus: () => {\n displayRef.current.focus();\n },\n node: inputRef.current,\n value\n }), [value]);\n\n // Resize menu on `defaultOpen` automatic toggle.\n React.useEffect(() => {\n if (defaultOpen && openState && displayNode && !isOpenControlled) {\n setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);\n displayRef.current.focus();\n }\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [displayNode, autoWidth]);\n // `isOpenControlled` is ignored because the component should never switch between controlled and uncontrolled modes.\n // `defaultOpen` and `openState` are ignored to avoid unnecessary callbacks.\n React.useEffect(() => {\n if (autoFocus) {\n displayRef.current.focus();\n }\n }, [autoFocus]);\n React.useEffect(() => {\n if (!labelId) {\n return undefined;\n }\n const label = ownerDocument(displayRef.current).getElementById(labelId);\n if (label) {\n const handler = () => {\n if (getSelection().isCollapsed) {\n displayRef.current.focus();\n }\n };\n label.addEventListener('click', handler);\n return () => {\n label.removeEventListener('click', handler);\n };\n }\n return undefined;\n }, [labelId]);\n const update = (open, event) => {\n if (open) {\n if (onOpen) {\n onOpen(event);\n }\n } else if (onClose) {\n onClose(event);\n }\n if (!isOpenControlled) {\n setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);\n setOpenState(open);\n }\n };\n const handleMouseDown = event => {\n // Ignore everything but left-click\n if (event.button !== 0) {\n return;\n }\n // Hijack the default focus behavior.\n event.preventDefault();\n displayRef.current.focus();\n update(true, event);\n };\n const handleClose = event => {\n update(false, event);\n };\n const childrenArray = React.Children.toArray(children);\n\n // Support autofill.\n const handleChange = event => {\n const child = childrenArray.find(childItem => childItem.props.value === event.target.value);\n if (child === undefined) {\n return;\n }\n setValueState(child.props.value);\n if (onChange) {\n onChange(event, child);\n }\n };\n const handleItemClick = child => event => {\n let newValue;\n\n // We use the tabindex attribute to signal the available options.\n if (!event.currentTarget.hasAttribute('tabindex')) {\n return;\n }\n if (multiple) {\n newValue = Array.isArray(value) ? value.slice() : [];\n const itemIndex = value.indexOf(child.props.value);\n if (itemIndex === -1) {\n newValue.push(child.props.value);\n } else {\n newValue.splice(itemIndex, 1);\n }\n } else {\n newValue = child.props.value;\n }\n if (child.props.onClick) {\n child.props.onClick(event);\n }\n if (value !== newValue) {\n setValueState(newValue);\n if (onChange) {\n // Redefine target to allow name and value to be read.\n // This allows seamless integration with the most popular form libraries.\n // https://github.com/mui/material-ui/issues/13485#issuecomment-676048492\n // Clone the event to not override `target` of the original event.\n const nativeEvent = event.nativeEvent || event;\n const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);\n Object.defineProperty(clonedEvent, 'target', {\n writable: true,\n value: {\n value: newValue,\n name\n }\n });\n onChange(clonedEvent, child);\n }\n }\n if (!multiple) {\n update(false, event);\n }\n };\n const handleKeyDown = event => {\n if (!readOnly) {\n const validKeys = [' ', 'ArrowUp', 'ArrowDown',\n // The native select doesn't respond to enter on macOS, but it's recommended by\n // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/\n 'Enter'];\n if (validKeys.includes(event.key)) {\n event.preventDefault();\n update(true, event);\n }\n }\n };\n const open = displayNode !== null && openState;\n const handleBlur = event => {\n // if open event.stopImmediatePropagation\n if (!open && onBlur) {\n // Preact support, target is read only property on a native event.\n Object.defineProperty(event, 'target', {\n writable: true,\n value: {\n value,\n name\n }\n });\n onBlur(event);\n }\n };\n delete other['aria-invalid'];\n let display;\n let displaySingle;\n const displayMultiple = [];\n let computeDisplay = false;\n let foundMatch = false;\n\n // No need to display any value if the field is empty.\n if (isFilled({\n value\n }) || displayEmpty) {\n if (renderValue) {\n display = renderValue(value);\n } else {\n computeDisplay = true;\n }\n }\n const items = childrenArray.map(child => {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return null;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"MUI: The Select component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n let selected;\n if (multiple) {\n if (!Array.isArray(value)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: The `value` prop must be an array ' + 'when using the `Select` component with `multiple`.' : _formatErrorMessage(2));\n }\n selected = value.some(v => areEqualValues(v, child.props.value));\n if (selected && computeDisplay) {\n displayMultiple.push(child.props.children);\n }\n } else {\n selected = areEqualValues(value, child.props.value);\n if (selected && computeDisplay) {\n displaySingle = child.props.children;\n }\n }\n if (selected) {\n foundMatch = true;\n }\n return /*#__PURE__*/React.cloneElement(child, {\n 'aria-selected': selected ? 'true' : 'false',\n onClick: handleItemClick(child),\n onKeyUp: event => {\n if (event.key === ' ') {\n // otherwise our MenuItems dispatches a click event\n // it's not behavior of the native <option> and causes\n // the select to close immediately since we open on space keydown\n event.preventDefault();\n }\n if (child.props.onKeyUp) {\n child.props.onKeyUp(event);\n }\n },\n role: 'option',\n selected,\n value: undefined,\n // The value is most likely not a valid HTML attribute.\n 'data-value': child.props.value // Instead, we provide it as a data attribute.\n });\n });\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!foundMatch && !multiple && value !== '') {\n const values = childrenArray.map(child => child.props.value);\n console.warn([`MUI: You have provided an out-of-range value \\`${value}\\` for the select ${name ? `(name=\"${name}\") ` : ''}component.`, \"Consider providing a value that matches one of the available options or ''.\", `The available values are ${values.filter(x => x != null).map(x => `\\`${x}\\``).join(', ') || '\"\"'}.`].join('\\n'));\n }\n }, [foundMatch, childrenArray, multiple, name, value]);\n }\n if (computeDisplay) {\n if (multiple) {\n if (displayMultiple.length === 0) {\n display = null;\n } else {\n display = displayMultiple.reduce((output, child, index) => {\n output.push(child);\n if (index < displayMultiple.length - 1) {\n output.push(', ');\n }\n return output;\n }, []);\n }\n } else {\n display = displaySingle;\n }\n }\n\n // Avoid performing a layout computation in the render method.\n let menuMinWidth = menuMinWidthState;\n if (!autoWidth && isOpenControlled && displayNode) {\n menuMinWidth = anchorElement.clientWidth;\n }\n let tabIndex;\n if (typeof tabIndexProp !== 'undefined') {\n tabIndex = tabIndexProp;\n } else {\n tabIndex = disabled ? null : 0;\n }\n const buttonId = SelectDisplayProps.id || (name ? `mui-component-select-${name}` : undefined);\n const ownerState = {\n ...props,\n variant,\n value,\n open,\n error\n };\n const classes = useUtilityClasses(ownerState);\n const paperProps = {\n ...MenuProps.PaperProps,\n ...(typeof MenuProps.slotProps?.paper === 'function' ? MenuProps.slotProps.paper(ownerState) : MenuProps.slotProps?.paper)\n };\n const listProps = {\n ...MenuProps.MenuListProps,\n ...(typeof MenuProps.slotProps?.list === 'function' ? MenuProps.slotProps.list(ownerState) : MenuProps.slotProps?.list)\n };\n const listboxId = useId();\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(SelectSelect, {\n as: \"div\",\n ref: handleDisplayRef,\n tabIndex: tabIndex,\n role: \"combobox\",\n \"aria-controls\": open ? listboxId : undefined,\n \"aria-disabled\": disabled ? 'true' : undefined,\n \"aria-expanded\": open ? 'true' : 'false',\n \"aria-haspopup\": \"listbox\",\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": [labelId, buttonId].filter(Boolean).join(' ') || undefined,\n \"aria-describedby\": ariaDescribedby,\n \"aria-required\": required ? 'true' : undefined,\n \"aria-invalid\": error ? 'true' : undefined,\n onKeyDown: handleKeyDown,\n onMouseDown: disabled || readOnly ? null : handleMouseDown,\n onBlur: handleBlur,\n onFocus: onFocus,\n ...SelectDisplayProps,\n ownerState: ownerState,\n className: clsx(SelectDisplayProps.className, classes.select, className)\n // The id is required for proper a11y\n ,\n id: buttonId,\n children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue\n _span || (_span = /*#__PURE__*/_jsx(\"span\", {\n className: \"notranslate\",\n \"aria-hidden\": true,\n children: \"\\u200B\"\n })) : display\n }), /*#__PURE__*/_jsx(SelectNativeInput, {\n \"aria-invalid\": error,\n value: Array.isArray(value) ? value.join(',') : value,\n name: name,\n ref: inputRef,\n \"aria-hidden\": true,\n onChange: handleChange,\n tabIndex: -1,\n disabled: disabled,\n className: classes.nativeInput,\n autoFocus: autoFocus,\n required: required,\n ...other,\n ownerState: ownerState\n }), /*#__PURE__*/_jsx(SelectIcon, {\n as: IconComponent,\n className: classes.icon,\n ownerState: ownerState\n }), /*#__PURE__*/_jsx(Menu, {\n id: `menu-${name || ''}`,\n anchorEl: anchorElement,\n open: open,\n onClose: handleClose,\n anchorOrigin: {\n vertical: 'bottom',\n horizontal: 'center'\n },\n transformOrigin: {\n vertical: 'top',\n horizontal: 'center'\n },\n ...MenuProps,\n slotProps: {\n ...MenuProps.slotProps,\n list: {\n 'aria-labelledby': labelId,\n role: 'listbox',\n 'aria-multiselectable': multiple ? 'true' : undefined,\n disableListWrap: true,\n id: listboxId,\n ...listProps\n },\n paper: {\n ...paperProps,\n style: {\n minWidth: menuMinWidth,\n ...(paperProps != null ? paperProps.style : null)\n }\n }\n },\n children: items\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SelectInput.propTypes = {\n /**\n * @ignore\n */\n 'aria-describedby': PropTypes.string,\n /**\n * @ignore\n */\n 'aria-label': PropTypes.string,\n /**\n * @ignore\n */\n autoFocus: PropTypes.bool,\n /**\n * If `true`, the width of the popover will automatically be set according to the items inside the\n * menu, otherwise it will be at least the width of the select input.\n */\n autoWidth: PropTypes.bool,\n /**\n * The option elements to populate the select with.\n * Can be some `<MenuItem>` elements.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The CSS class name of the select element.\n */\n className: PropTypes.string,\n /**\n * If `true`, the component is toggled on mount. Use when the component open state is not controlled.\n * You can only use it when the `native` prop is `false` (default).\n */\n defaultOpen: PropTypes.bool,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.any,\n /**\n * If `true`, the select is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the selected item is displayed even if its value is empty.\n */\n displayEmpty: PropTypes.bool,\n /**\n * If `true`, the `select input` will indicate an error.\n */\n error: PropTypes.bool,\n /**\n * The icon that displays the arrow.\n */\n IconComponent: PropTypes.elementType.isRequired,\n /**\n * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`\n * Equivalent to `ref`\n */\n inputRef: refType,\n /**\n * The ID of an element that acts as an additional label. The Select will\n * be labelled by the additional label and the selected value.\n */\n labelId: PropTypes.string,\n /**\n * Props applied to the [`Menu`](/material-ui/api/menu/) element.\n */\n MenuProps: PropTypes.object,\n /**\n * If `true`, `value` must be an array and the menu will support multiple selections.\n */\n multiple: PropTypes.bool,\n /**\n * Name attribute of the `select` or hidden `input` element.\n */\n name: PropTypes.string,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * Callback fired when a menu item is selected.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (any).\n * @param {object} [child] The react element that was selected.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the component requests to be closed.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * Callback fired when the component requests to be opened.\n * Use in controlled mode (see open).\n *\n * @param {object} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * @ignore\n */\n readOnly: PropTypes.bool,\n /**\n * Render the selected value.\n *\n * @param {any} value The `value` provided to the component.\n * @returns {ReactNode}\n */\n renderValue: PropTypes.func,\n /**\n * If `true`, the component is required.\n */\n required: PropTypes.bool,\n /**\n * Props applied to the clickable div element.\n */\n SelectDisplayProps: PropTypes.object,\n /**\n * @ignore\n */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /**\n * @ignore\n */\n type: PropTypes.any,\n /**\n * The input value.\n */\n value: PropTypes.any,\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['standard', 'outlined', 'filled'])\n} : void 0;\nexport default SelectInput;"],"names":["_span","SelectSelect","styled","default","StyledSelectSelect","name","slot","overridesResolver","props","styles","ownerState","selectClasses","select","variant","error","multiple","height","minHeight","textOverflow","whiteSpace","overflow","SelectIcon","StyledSelectIcon","icon","capitalize","open","iconOpen","SelectNativeInput","shouldForwardProp","prop","slotShouldForwardProp","bottom","left","position","opacity","pointerEvents","width","boxSizing","areEqualValues","a","b","String","isEmpty","display","trim","SelectInput","React","forwardRef","ref","ariaDescribedby","ariaLabel","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","inputRefProp","labelId","MenuProps","onBlur","onChange","onClose","onFocus","onOpen","openProp","readOnly","renderValue","required","SelectDisplayProps","tabIndex","tabIndexProp","type","value","valueProp","other","setValueState","useControlled","controlled","openState","setOpenState","useRef","displayRef","displayNode","setDisplayNode","useState","current","isOpenControlled","menuMinWidthState","setMenuMinWidthState","handleRef","useForkRef","handleDisplayRef","useCallback","node","anchorElement","parentNode","useImperativeHandle","focus","useEffect","clientWidth","label","ownerDocument","getElementById","handler","getSelection","isCollapsed","addEventListener","removeEventListener","update","event","childrenArray","Children","toArray","handleItemClick","child","newValue","currentTarget","hasAttribute","Array","isArray","slice","itemIndex","indexOf","push","splice","onClick","nativeEvent","clonedEvent","constructor","Object","defineProperty","writable","displaySingle","displayMultiple","computeDisplay","foundMatch","isFilled","items","map","isValidElement","selected","process","env","NODE_ENV","isFragment","console","join","Error","_formatErrorMessage","some","v","cloneElement","onKeyUp","key","preventDefault","role","undefined","values","warn","filter","x","length","reduce","output","index","menuMinWidth","buttonId","id","classes","slots","nativeInput","composeClasses","getSelectUtilityClasses","useUtilityClasses","paperProps","PaperProps","slotProps","paper","listProps","MenuListProps","list","listboxId","useId","_jsxs","jsxRuntimeExports","jsxs","Fragment","_jsx","jsx","as","Boolean","onKeyDown","includes","onMouseDown","button","clsx","find","childItem","target","Menu","anchorEl","anchorOrigin","vertical","horizontal","transformOrigin","disableListWrap","style","minWidth","propTypes","PropTypes","string","bool","object","any","elementType","isRequired","refType","func","oneOfType","number","oneOf"],"mappings":"8rCAGIA,SAmBJ,MAAMC,EAAeC,EAAMC,QAACC,qBAAoB,CAC9CC,KAAM,YACNC,KAAM,SACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAEP,CACE,CAAC,KAAKG,EAAAA,QAAcC,UAAWH,EAAOG,QACrC,CACD,CAAC,KAAKD,UAAcC,UAAWH,EAAOC,EAAWG,UAChD,CACD,CAAC,KAAKF,EAAAA,QAAcG,SAAUL,EAAOK,OACpC,CACD,CAAC,KAAKH,EAAAA,QAAcI,YAAaN,EAAOM,aAhBzBb,CAmBlB,CAED,CAAC,KAAKS,UAAcC,UAAW,CAC7BI,OAAQ,OAERC,UAAW,WAEXC,aAAc,WACdC,WAAY,SACZC,SAAU,YAGRC,EAAanB,EAAMC,QAACmB,mBAAkB,CAC1CjB,KAAM,YACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOc,KAAMb,EAAWG,SAAWJ,EAAO,OAAOe,EAAWd,EAAWG,YAAaH,EAAWe,MAAQhB,EAAOiB,YAPvGxB,CAShB,CAAA,GACGyB,EAAoBzB,EAAMC,QAAC,QAAS,CACxCyB,kBAAmBC,GAAQC,EAAsBD,IAAkB,YAATA,EAC1DxB,KAAM,YACNC,KAAM,eAHkBJ,CAIvB,CACD6B,OAAQ,EACRC,KAAM,EACNC,SAAU,WACVC,QAAS,EACTC,cAAe,OACfC,MAAO,OACPC,UAAW,eAEb,SAASC,EAAeC,EAAGC,GACzB,MAAiB,iBAANA,GAAwB,OAANA,EACpBD,IAAMC,EAIRC,OAAOF,KAAOE,OAAOD,EAC9B,CACA,SAASE,EAAQC,GACf,OAAkB,MAAXA,GAAsC,iBAAZA,IAAyBA,EAAQC,MACpE,CACA,MAoBMC,EAA2BC,EAAMC,YAAW,SAAqBvC,EAAOwC,GAC5E,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EAKV/J,QAASwJ,EAAUC,OAInBxJ,UAAWuJ,EAAUG,OAIrB1M,SAAUuM,EAAUE,KAIpBnN,KAAMiN,EAAUC,OAIhBvJ,OAAQsJ,EAAUQ,KAQlB7J,SAAUqJ,EAAUQ,KAOpB5J,QAASoJ,EAAUQ,KAInB3J,QAASmJ,EAAUQ,KAOnB1J,OAAQkJ,EAAUQ,KAIlBrM,KAAM6L,EAAUE,KAIhBlJ,SAAUgJ,EAAUE,KAOpBjJ,YAAa+I,EAAUQ,KAIvBtJ,SAAU8I,EAAUE,KAIpB/I,mBAAoB6I,EAAUG,OAI9B/I,SAAU4I,EAAUS,UAAU,CAACT,EAAUU,OAAQV,EAAUC,SAI3D3I,KAAM0I,EAAUI,IAIhB7I,MAAOyI,EAAUI,IAIjB7M,QAASyM,EAAUW,MAAM,CAAC,WAAY,WAAY","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./createPalette.cjs"),r=require("./getOverlayAlpha.cjs");const t=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const a=r(t);return`linear-gradient(rgba(255 255 255 / ${a}), rgba(255 255 255 / ${a}))`}));function a(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function n(e){return"dark"===e?t:[]}exports.default=function(r){const{palette:t={mode:"light"},opacity:o,overlays:i,...c}=r,l=e.default(t);return{palette:l,opacity:{...a(l.mode),...o},overlays:i||n(l.mode),...c}},exports.getOpacity=a,exports.getOverlays=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./createPalette.cjs"),r=require("./getOverlayAlpha.cjs");const t=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const a=r(t);return`linear-gradient(rgba(255 255 255 / ${a}), rgba(255 255 255 / ${a}))`}));function a(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function o(e){return"dark"===e?t:[]}exports.default=function(r){const{palette:t={mode:"light"},opacity:c,overlays:n,colorSpace:i,...l}=r,s=e.default({...t,colorSpace:i});return{palette:s,opacity:{...a(s.mode),...c},overlays:n||o(s.mode),...l}},exports.getOpacity=a,exports.getOverlays=o;
2
2
  //# sourceMappingURL=createColorScheme.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"createColorScheme.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/styles/createColorScheme.js"],"sourcesContent":["import createPalette from \"./createPalette.js\";\nimport getOverlayAlpha from \"./getOverlayAlpha.js\";\nconst defaultDarkOverlays = [...Array(25)].map((_, index) => {\n if (index === 0) {\n return 'none';\n }\n const overlay = getOverlayAlpha(index);\n return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;\n});\nexport function getOpacity(mode) {\n return {\n inputPlaceholder: mode === 'dark' ? 0.5 : 0.42,\n inputUnderline: mode === 'dark' ? 0.7 : 0.42,\n switchTrackDisabled: mode === 'dark' ? 0.2 : 0.12,\n switchTrack: mode === 'dark' ? 0.3 : 0.38\n };\n}\nexport function getOverlays(mode) {\n return mode === 'dark' ? defaultDarkOverlays : [];\n}\nexport default function createColorScheme(options) {\n const {\n palette: paletteInput = {\n mode: 'light'\n },\n // need to cast to avoid module augmentation test\n opacity,\n overlays,\n ...rest\n } = options;\n const palette = createPalette(paletteInput);\n return {\n palette,\n opacity: {\n ...getOpacity(palette.mode),\n ...opacity\n },\n overlays: overlays || getOverlays(palette.mode),\n ...rest\n };\n}"],"names":["defaultDarkOverlays","Array","map","_","index","overlay","getOverlayAlpha","getOpacity","mode","inputPlaceholder","inputUnderline","switchTrackDisabled","switchTrack","getOverlays","options","palette","paletteInput","opacity","overlays","rest","createPalette","default"],"mappings":"4IAEA,MAAMA,EAAsB,IAAIC,MAAM,KAAKC,KAAI,CAACC,EAAGC,KACjD,GAAc,IAAVA,EACF,MAAO,OAET,MAAMC,EAAUC,EAAgBF,GAChC,MAAO,sCAAsCC,0BAAgCA,SAExE,SAASE,EAAWC,GACzB,MAAO,CACLC,iBAA2B,SAATD,EAAkB,GAAM,IAC1CE,eAAyB,SAATF,EAAkB,GAAM,IACxCG,oBAA8B,SAATH,EAAkB,GAAM,IAC7CI,YAAsB,SAATJ,EAAkB,GAAM,IAEzC,CACO,SAASK,EAAYL,GAC1B,MAAgB,SAATA,EAAkBR,EAAsB,EACjD,iBACe,SAA2Bc,GACxC,MACEC,QAASC,EAAe,CACtBR,KAAM,SACPS,QAEDA,EAAOC,SACPA,KACGC,GACDL,EACEC,EAAUK,EAAaC,QAACL,GAC9B,MAAO,CACLD,UACAE,QAAS,IACJV,EAAWQ,EAAQP,SACnBS,GAELC,SAAUA,GAAYL,EAAYE,EAAQP,SACvCW,EAEP","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"createColorScheme.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/styles/createColorScheme.js"],"sourcesContent":["import createPalette from \"./createPalette.js\";\nimport getOverlayAlpha from \"./getOverlayAlpha.js\";\nconst defaultDarkOverlays = [...Array(25)].map((_, index) => {\n if (index === 0) {\n return 'none';\n }\n const overlay = getOverlayAlpha(index);\n return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;\n});\nexport function getOpacity(mode) {\n return {\n inputPlaceholder: mode === 'dark' ? 0.5 : 0.42,\n inputUnderline: mode === 'dark' ? 0.7 : 0.42,\n switchTrackDisabled: mode === 'dark' ? 0.2 : 0.12,\n switchTrack: mode === 'dark' ? 0.3 : 0.38\n };\n}\nexport function getOverlays(mode) {\n return mode === 'dark' ? defaultDarkOverlays : [];\n}\nexport default function createColorScheme(options) {\n const {\n palette: paletteInput = {\n mode: 'light'\n },\n // need to cast to avoid module augmentation test\n opacity,\n overlays,\n colorSpace,\n ...rest\n } = options;\n // need to cast because `colorSpace` is considered internal at the moment.\n const palette = createPalette({\n ...paletteInput,\n colorSpace\n });\n return {\n palette,\n opacity: {\n ...getOpacity(palette.mode),\n ...opacity\n },\n overlays: overlays || getOverlays(palette.mode),\n ...rest\n };\n}"],"names":["defaultDarkOverlays","Array","map","_","index","overlay","getOverlayAlpha","getOpacity","mode","inputPlaceholder","inputUnderline","switchTrackDisabled","switchTrack","getOverlays","options","palette","paletteInput","opacity","overlays","colorSpace","rest","createPalette"],"mappings":"4IAEA,MAAMA,EAAsB,IAAIC,MAAM,KAAKC,KAAI,CAACC,EAAGC,KACjD,GAAc,IAAVA,EACF,MAAO,OAET,MAAMC,EAAUC,EAAgBF,GAChC,MAAO,sCAAsCC,0BAAgCA,SAExE,SAASE,EAAWC,GACzB,MAAO,CACLC,iBAA2B,SAATD,EAAkB,GAAM,IAC1CE,eAAyB,SAATF,EAAkB,GAAM,IACxCG,oBAA8B,SAATH,EAAkB,GAAM,IAC7CI,YAAsB,SAATJ,EAAkB,GAAM,IAEzC,CACO,SAASK,EAAYL,GAC1B,MAAgB,SAATA,EAAkBR,EAAsB,EACjD,iBACe,SAA2Bc,GACxC,MACEC,QAASC,EAAe,CACtBR,KAAM,SACPS,QAEDA,EAAOC,SACPA,EAAQC,WACRA,KACGC,GACDN,EAEEC,EAAUM,EAAAA,QAAc,IACzBL,EACHG,eAEF,MAAO,CACLJ,UACAE,QAAS,IACJV,EAAWQ,EAAQP,SACnBS,GAELC,SAAUA,GAAYL,EAAYE,EAAQP,SACvCY,EAEP","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../colors/common.cjs"),e=require("../colors/grey.cjs"),t=require("../colors/purple.cjs"),o=require("../colors/red.cjs"),a=require("../colors/orange.cjs"),i=require("../colors/blue.cjs"),n=require("../colors/lightBlue.cjs"),c=require("../colors/green.cjs"),s=require("../../../utils/esm/deepmerge/deepmerge.cjs"),d=require("../../../system/esm/colorManipulator/colorManipulator.cjs"),l=require("../../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.cjs");function g(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:r.white,default:r.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const u=g();function m(){return{text:{primary:r.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:r.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const h=m();function p(r,e,t,o){const a=o.light||o,i=o.dark||1.5*o;r[e]||(r.hasOwnProperty(t)?r[e]=r[t]:"light"===e?r.light=d.lighten(r.main,a):"dark"===e&&(r.dark=d.darken(r.main,i)))}exports.dark=h,exports.default=function(f){const{mode:y="light",contrastThreshold:b=3,tonalOffset:k=.2,...v}=f,O=f.primary||function(r="light"){return"dark"===r?{main:i[200],light:i[50],dark:i[400]}:{main:i[700],light:i[400],dark:i[800]}}(y),w=f.secondary||function(r="light"){return"dark"===r?{main:t[200],light:t[50],dark:t[400]}:{main:t[500],light:t[300],dark:t[700]}}(y),j=f.error||function(r="light"){return"dark"===r?{main:o[500],light:o[300],dark:o[700]}:{main:o[700],light:o[400],dark:o[800]}}(y),E=f.info||function(r="light"){return"dark"===r?{main:n[400],light:n[300],dark:n[700]}:{main:n[700],light:n[500],dark:n[900]}}(y),T=f.success||function(r="light"){return"dark"===r?{main:c[400],light:c[300],dark:c[700]}:{main:c[800],light:c[500],dark:c[900]}}(y),x=f.warning||function(r="light"){return"dark"===r?{main:a[400],light:a[300],dark:a[700]}:{main:"#ed6c02",light:a[500],dark:a[900]}}(y);function $(r){const e=d.getContrastRatio(r,h.text.primary)>=b?h.text.primary:u.text.primary;if("production"!==process.env.NODE_ENV){const t=d.getContrastRatio(r,e);t<3&&console.error([`MUI: The contrast ratio of ${t}:1 for ${e} on ${r}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return e}const q=({color:r,name:e,mainShade:t=500,lightShade:o=300,darkShade:a=700})=>{if(!(r={...r}).main&&r[t]&&(r.main=r[t]),!r.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${e?` (${e})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${t}\` property.`:l(11,e?` (${e})`:"",t));if("string"!=typeof r.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${e?` (${e})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(r.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:l(12,e?` (${e})`:"",JSON.stringify(r.main)));return p(r,"light",o,k),p(r,"dark",a,k),r.contrastText||(r.contrastText=$(r.main)),r};let M;return"light"===y?M=g():"dark"===y&&(M=m()),"production"!==process.env.NODE_ENV&&(M||console.error(`MUI: The palette mode \`${y}\` is not supported.`)),s.default({common:{...r},mode:y,primary:q({color:O,name:"primary"}),secondary:q({color:w,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:q({color:j,name:"error"}),warning:q({color:x,name:"warning"}),info:q({color:E,name:"info"}),success:q({color:T,name:"success"}),grey:e,contrastThreshold:b,getContrastText:$,augmentColor:q,tonalOffset:k,...M},v)},exports.light=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../colors/common.cjs"),e=require("../colors/grey.cjs"),o=require("../colors/purple.cjs"),t=require("../colors/red.cjs"),a=require("../colors/orange.cjs"),i=require("../colors/blue.cjs"),n=require("../colors/lightBlue.cjs"),c=require("../colors/green.cjs"),s=require("../../../utils/esm/deepmerge/deepmerge.cjs"),l=require("../../../system/esm/colorManipulator/colorManipulator.cjs"),d=require("../../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.cjs");function g(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:r.white,default:r.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const u=g();function m(){return{text:{primary:r.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:r.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const h=m();function p(r,e,o,t){const a=t.light||t,i=t.dark||1.5*t;r[e]||(r.hasOwnProperty(o)?r[e]=r[o]:"light"===e?r.light=l.lighten(r.main,a):"dark"===e&&(r.dark=l.darken(r.main,i)))}function f(r,e,o,t,a){const i=a.light||a,n=a.dark||1.5*a;e[o]||(e.hasOwnProperty(t)?e[o]=e[t]:"light"===o?e.light=`color-mix(in ${r}, ${e.main}, #fff ${(100*i).toFixed(0)}%)`:"dark"===o&&(e.dark=`color-mix(in ${r}, ${e.main}, #000 ${(100*n).toFixed(0)}%)`))}function y(r){return`oklch(from ${r} var(--__l) 0 h / var(--__a))`}exports.contrastColor=y,exports.dark=h,exports.default=function(b){const{mode:k="light",contrastThreshold:v=3,tonalOffset:O=.2,colorSpace:w,...$}=b,x=b.primary||function(r="light"){return"dark"===r?{main:i[200],light:i[50],dark:i[400]}:{main:i[700],light:i[400],dark:i[800]}}(k),j=b.secondary||function(r="light"){return"dark"===r?{main:o[200],light:o[50],dark:o[400]}:{main:o[500],light:o[300],dark:o[700]}}(k),E=b.error||function(r="light"){return"dark"===r?{main:t[500],light:t[300],dark:t[700]}:{main:t[700],light:t[400],dark:t[800]}}(k),T=b.info||function(r="light"){return"dark"===r?{main:n[400],light:n[300],dark:n[700]}:{main:n[700],light:n[500],dark:n[900]}}(k),q=b.success||function(r="light"){return"dark"===r?{main:c[400],light:c[300],dark:c[700]}:{main:c[800],light:c[500],dark:c[900]}}(k),M=b.warning||function(r="light"){return"dark"===r?{main:a[400],light:a[300],dark:a[700]}:{main:"#ed6c02",light:a[500],dark:a[900]}}(k);function C(r){if(w)return y(r);const e=l.getContrastRatio(r,h.text.primary)>=v?h.text.primary:u.text.primary;if("production"!==process.env.NODE_ENV){const o=l.getContrastRatio(r,e);o<3&&console.error([`MUI: The contrast ratio of ${o}:1 for ${e} on ${r}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return e}const N=({color:r,name:e,mainShade:o=500,lightShade:t=300,darkShade:a=700})=>{if(!(r={...r}).main&&r[o]&&(r.main=r[o]),!r.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${e?` (${e})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${o}\` property.`:d(11,e?` (${e})`:"",o));if("string"!=typeof r.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${e?` (${e})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(r.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:d(12,e?` (${e})`:"",JSON.stringify(r.main)));return w?(f(w,r,"light",t,O),f(w,r,"dark",a,O)):(p(r,"light",t,O),p(r,"dark",a,O)),r.contrastText||(r.contrastText=C(r.main)),r};let _;return"light"===k?_=g():"dark"===k&&(_=m()),"production"!==process.env.NODE_ENV&&(_||console.error(`MUI: The palette mode \`${k}\` is not supported.`)),s.default({common:{...r},mode:k,primary:N({color:x,name:"primary"}),secondary:N({color:j,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:N({color:E,name:"error"}),warning:N({color:M,name:"warning"}),info:N({color:T,name:"info"}),success:N({color:q,name:"success"}),grey:e,contrastThreshold:v,getContrastText:C,augmentColor:N,tonalOffset:O,..._},$)},exports.light=u;
2
2
  //# sourceMappingURL=createPalette.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"createPalette.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/styles/createPalette.js"],"sourcesContent":["import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { darken, getContrastRatio, lighten } from '@mui/system/colorManipulator';\nimport common from \"../colors/common.js\";\nimport grey from \"../colors/grey.js\";\nimport purple from \"../colors/purple.js\";\nimport red from \"../colors/red.js\";\nimport orange from \"../colors/orange.js\";\nimport blue from \"../colors/blue.js\";\nimport lightBlue from \"../colors/lightBlue.js\";\nimport green from \"../colors/green.js\";\nfunction getLight() {\n return {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n };\n}\nexport const light = getLight();\nfunction getDark() {\n return {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n };\n}\nexport const dark = getDark();\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2,\n ...other\n } = palette;\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = {\n ...color\n };\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `The color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\\n` + '\\n' + 'Did you intend to use one of the following approaches?\\n' + '\\n' + 'import { green } from \"@mui/material/colors\";\\n' + '\\n' + 'const theme1 = createTheme({ palette: {\\n' + ' primary: green,\\n' + '} });\\n' + '\\n' + 'const theme2 = createTheme({ palette: {\\n' + ' primary: { main: green[500] },\\n' + '} });' : _formatErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n let modeHydrated;\n if (mode === 'light') {\n modeHydrated = getLight();\n } else if (mode === 'dark') {\n modeHydrated = getDark();\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!modeHydrated) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge({\n // A collection of common colors.\n common: {\n ...common\n },\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset,\n // The light and dark mode object.\n ...modeHydrated\n }, other);\n return paletteOutput;\n}"],"names":["getLight","text","primary","secondary","disabled","divider","background","paper","common","white","default","action","active","hover","hoverOpacity","selected","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity","light","getDark","icon","dark","addLightOrDark","intent","direction","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","hasOwnProperty","lighten","main","darken","palette","mode","contrastThreshold","other","blue","getDefaultPrimary","purple","getDefaultSecondary","error","red","getDefaultError","info","lightBlue","getDefaultInfo","success","green","getDefaultSuccess","warning","orange","getDefaultWarning","getContrastText","contrastText","getContrastRatio","process","env","NODE_ENV","contrast","console","join","augmentColor","color","name","mainShade","lightShade","darkShade","Error","_formatErrorMessage","JSON","stringify","modeHydrated","deepmerge","grey"],"mappings":"kiBAWA,SAASA,IACP,MAAO,CAELC,KAAM,CAEJC,QAAS,sBAETC,UAAW,qBAEXC,SAAU,uBAGZC,QAAS,sBAGTC,WAAY,CACVC,MAAOC,EAAOC,MACdC,QAASF,EAAOC,OAGlBE,OAAQ,CAENC,OAAQ,sBAERC,MAAO,sBACPC,aAAc,IAEdC,SAAU,sBACVC,gBAAiB,IAEjBZ,SAAU,sBAEVa,mBAAoB,sBACpBC,gBAAiB,IACjBC,MAAO,sBACPC,aAAc,IACdC,iBAAkB,KAGxB,CACY,MAACC,EAAQtB,IACrB,SAASuB,IACP,MAAO,CACLtB,KAAM,CACJC,QAASM,EAAOC,MAChBN,UAAW,2BACXC,SAAU,2BACVoB,KAAM,4BAERnB,QAAS,4BACTC,WAAY,CACVC,MAAO,UACPG,QAAS,WAEXC,OAAQ,CACNC,OAAQJ,EAAOC,MACfI,MAAO,4BACPC,aAAc,IACdC,SAAU,4BACVC,gBAAiB,IACjBZ,SAAU,2BACVa,mBAAoB,4BACpBC,gBAAiB,IACjBC,MAAO,4BACPC,aAAc,IACdC,iBAAkB,KAGxB,CACY,MAAC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IC,IAE/R,GAA0B,iBAAfF,EAAMhC,KACf,MAAM,IAAIqC,MAA+B,eAAzBZ,QAAQC,IAAIC,SAA4B,iBAAiBM,EAAO,KAAKA,KAAU,4FAAiGM,KAAKC,UAAUR,EAAMhC,oSAAkWsC,EAAoB,GAAIL,EAAO,KAAKA,KAAU,GAAIM,KAAKC,UAAUR,EAAMhC,QAOhoB,OALAT,EAAeyC,EAAO,QAASG,EAAYxC,GAC3CJ,EAAeyC,EAAO,OAAQI,EAAWzC,GACpCqC,EAAMT,eACTS,EAAMT,aAAeD,EAAgBU,EAAMhC,OAEtCgC,GAET,IAAIS,EAoEJ,MAnEa,UAATtC,EACFsC,EAAe5E,IACG,SAATsC,IACTsC,EAAerD,KAEY,eAAzBqC,QAAQC,IAAIC,WACTc,GACHZ,QAAQnB,MAAM,2BAA2BP,0BAGvBuC,EAAAA,QAAU,CAE9BrE,OAAQ,IACHA,GAIL8B,OAEApC,QAASgE,EAAa,CACpBC,MAAOjE,EACPkE,KAAM,YAGRjE,UAAW+D,EAAa,CACtBC,MAAOhE,EACPiE,KAAM,YACNC,UAAW,OACXC,WAAY,OACZC,UAAW,SAGb1B,MAAOqB,EAAa,CAClBC,MAAOtB,EACPuB,KAAM,UAGRd,QAASY,EAAa,CACpBC,MAAOb,EACPc,KAAM,YAGRpB,KAAMkB,EAAa,CACjBC,MAAOnB,EACPoB,KAAM,SAGRjB,QAASe,EAAa,CACpBC,MAAOhB,EACPiB,KAAM,YAGRU,OAGAvC,oBAEAkB,kBAEAS,eAIApC,iBAEG8C,GACFpC,EAEL","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"createPalette.cjs","sources":["../../../../../../../node_modules/@mui/material/esm/styles/createPalette.js"],"sourcesContent":["import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { darken, getContrastRatio, lighten } from '@mui/system/colorManipulator';\nimport common from \"../colors/common.js\";\nimport grey from \"../colors/grey.js\";\nimport purple from \"../colors/purple.js\";\nimport red from \"../colors/red.js\";\nimport orange from \"../colors/orange.js\";\nimport blue from \"../colors/blue.js\";\nimport lightBlue from \"../colors/lightBlue.js\";\nimport green from \"../colors/green.js\";\nfunction getLight() {\n return {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n };\n}\nexport const light = getLight();\nfunction getDark() {\n return {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n };\n}\nexport const dark = getDark();\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction mixLightOrDark(colorSpace, intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = `color-mix(in ${colorSpace}, ${intent.main}, #fff ${(tonalOffsetLight * 100).toFixed(0)}%)`;\n } else if (direction === 'dark') {\n intent.dark = `color-mix(in ${colorSpace}, ${intent.main}, #000 ${(tonalOffsetDark * 100).toFixed(0)}%)`;\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\n\n// Use the same name as the experimental CSS `contrast-color` function.\nexport function contrastColor(background) {\n return `oklch(from ${background} var(--__l) 0 h / var(--__a))`;\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2,\n colorSpace,\n ...other\n } = palette;\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n if (colorSpace) {\n return contrastColor(background);\n }\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = {\n ...color\n };\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `The color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\\n` + '\\n' + 'Did you intend to use one of the following approaches?\\n' + '\\n' + 'import { green } from \"@mui/material/colors\";\\n' + '\\n' + 'const theme1 = createTheme({ palette: {\\n' + ' primary: green,\\n' + '} });\\n' + '\\n' + 'const theme2 = createTheme({ palette: {\\n' + ' primary: { main: green[500] },\\n' + '} });' : _formatErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n if (colorSpace) {\n mixLightOrDark(colorSpace, color, 'light', lightShade, tonalOffset);\n mixLightOrDark(colorSpace, color, 'dark', darkShade, tonalOffset);\n } else {\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n }\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n let modeHydrated;\n if (mode === 'light') {\n modeHydrated = getLight();\n } else if (mode === 'dark') {\n modeHydrated = getDark();\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!modeHydrated) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge({\n // A collection of common colors.\n common: {\n ...common\n },\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset,\n // The light and dark mode object.\n ...modeHydrated\n }, other);\n return paletteOutput;\n}"],"names":["getLight","text","primary","secondary","disabled","divider","background","paper","common","white","default","action","active","hover","hoverOpacity","selected","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity","light","getDark","icon","dark","addLightOrDark","intent","direction","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","hasOwnProperty","lighten","main","darken","mixLightOrDark","colorSpace","toFixed","contrastColor","palette","mode","contrastThreshold","other","blue","getDefaultPrimary","purple","getDefaultSecondary","error","red","getDefaultError","info","lightBlue","getDefaultInfo","success","green","getDefaultSuccess","warning","orange","getDefaultWarning","getContrastText","contrastText","getContrastRatio","process","env","NODE_ENV","contrast","console","join","augmentColor","color","name","mainShade","lightShade","darkShade","Error","_formatErrorMessage","JSON","stringify","modeHydrated","deepmerge","grey"],"mappings":"kiBAWA,SAASA,IACP,MAAO,CAELC,KAAM,CAEJC,QAAS,sBAETC,UAAW,qBAEXC,SAAU,uBAGZC,QAAS,sBAGTC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AAoB,GAAIL,EAAO,KAAKA,KAAU,GAAIM,KAAKC,UAAUR,EAAMpC,QAYhoB,OAVIG,GACFD,EAAeC,EAAYiC,EAAO,QAASG,EAAY5C,GACvDO,EAAeC,EAAYiC,EAAO,OAAQI,EAAW7C,KAErDJ,EAAe6C,EAAO,QAASG,EAAY5C,GAC3CJ,EAAe6C,EAAO,OAAQI,EAAW7C,IAEtCyC,EAAMT,eACTS,EAAMT,aAAeD,EAAgBU,EAAMpC,OAEtCoC,GAET,IAAIS,EAoEJ,MAnEa,UAATtC,EACFsC,EAAehF,IACG,SAAT0C,IACTsC,EAAezD,KAEY,eAAzByC,QAAQC,IAAIC,WACTc,GACHZ,QAAQnB,MAAM,2BAA2BP,0BAGvBuC,EAAAA,QAAU,CAE9BzE,OAAQ,IACHA,GAILkC,OAEAxC,QAASoE,EAAa,CACpBC,MAAOrE,EACPsE,KAAM,YAGRrE,UAAWmE,EAAa,CACtBC,MAAOpE,EACPqE,KAAM,YACNC,UAAW,OACXC,WAAY,OACZC,UAAW,SAGb1B,MAAOqB,EAAa,CAClBC,MAAOtB,EACPuB,KAAM,UAGRd,QAASY,EAAa,CACpBC,MAAOb,EACPc,KAAM,YAGRpB,KAAMkB,EAAa,CACjBC,MAAOnB,EACPoB,KAAM,SAGRjB,QAASe,EAAa,CACpBC,MAAOhB,EACPiB,KAAM,YAGRU,OAGAvC,oBAEAkB,kBAEAS,eAIAxC,iBAEGkD,GACFpC,EAEL","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./createMixins.cjs"),s=require("./createPalette.cjs"),t=require("./createTypography.cjs"),r=require("./shadows.cjs"),i=require("./createTransitions.cjs"),n=require("./zIndex.cjs"),o=require("./stringifyTheme.cjs"),a=require("../../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.cjs"),c=require("../../../system/esm/createTheme/createTheme.cjs"),u=require("../../../utils/esm/deepmerge/deepmerge.cjs"),l=require("../../../system/esm/styleFunctionSx/defaultSxConfig.cjs"),d=require("../../../system/esm/styleFunctionSx/styleFunctionSx.cjs"),m=require("../../../utils/esm/generateUtilityClass/generateUtilityClass.cjs");module.exports=function(f={},...p){const{breakpoints:h,mixins:y={},spacing:g,palette:j={},transitions:x={},typography:q={},shape:v,...b}=f;if(f.vars&&void 0===f.generateThemeVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":a(20));const S=s.default(j),E=c(f);let M=u.default(E,{mixins:e(E.breakpoints,y),palette:S,shadows:r.slice(),typography:t(S,q),transitions:i.default(x),zIndex:{...n}});if(M=u.default(M,b),M=p.reduce(((e,s)=>u.default(e,s)),M),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],s=(s,t)=>{let r;for(r in s){const i=s[r];if(e.includes(r)&&Object.keys(i).length>0){if("production"!==process.env.NODE_ENV){const e=m.default("",r);console.error([`MUI: The \`${t}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(s,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}s[r]={}}}};Object.keys(M.components).forEach((e=>{const t=M.components[e].styleOverrides;t&&e.startsWith("Mui")&&s(t,e)}))}return M.unstable_sxConfig={...l,...b?.unstable_sxConfig},M.unstable_sx=function(e){return d.default({sx:e,theme:this})},M.toRuntimeSource=o.stringifyTheme,M};
1
+ "use strict";var e=require("./createMixins.cjs"),t=require("./createPalette.cjs"),r=require("./createTypography.cjs"),s=require("./shadows.cjs"),i=require("./createTransitions.cjs"),o=require("./zIndex.cjs"),n=require("./stringifyTheme.cjs"),a=require("../../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.cjs"),c=require("../../../system/esm/createTheme/createTheme.cjs"),l=require("../../../utils/esm/deepmerge/deepmerge.cjs"),u=require("../../../system/esm/styleFunctionSx/defaultSxConfig.cjs"),p=require("../../../system/esm/styleFunctionSx/styleFunctionSx.cjs"),f=require("../../../utils/esm/generateUtilityClass/generateUtilityClass.cjs"),d=require("../../../system/esm/colorManipulator/colorManipulator.cjs");function m(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function h(e){Object.assign(e,{alpha(t,r){const s=this||e;return s.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof r?`calc(${r})`:r})`:s.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof r?`calc(${r})`:r})`:d.alpha(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let e=0;e<t.length;e+=1)r+=+t[e];return r})(r))},lighten(t,r){const s=this||e;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${t}, #fff ${m(r)})`:d.lighten(t,r)},darken(t,r){const s=this||e;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${t}, #000 ${m(r)})`:d.darken(t,r)}})}module.exports=function(d={},...m){const{breakpoints:g,mixins:y={},spacing:x,palette:$={},transitions:j={},typography:S={},shape:b,colorSpace:v,...q}=d;if(d.vars&&void 0===d.generateThemeVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":a(20));const N=t.default({...$,colorSpace:v}),E=c(d);let M=l.default(E,{mixins:e(E.breakpoints,y),palette:N,shadows:s.slice(),typography:r(N,S),transitions:i.default(j),zIndex:{...o}});if(M=l.default(M,q),M=m.reduce(((e,t)=>l.default(e,t)),M),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let s;for(s in t){const i=t[s];if(e.includes(s)&&Object.keys(i).length>0){if("production"!==process.env.NODE_ENV){const e=f.default("",s);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${s}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[s]={}}}};Object.keys(M.components).forEach((e=>{const r=M.components[e].styleOverrides;r&&e.startsWith("Mui")&&t(r,e)}))}return M.unstable_sxConfig={...u,...q?.unstable_sxConfig},M.unstable_sx=function(e){return p.default({sx:e,theme:this})},M.toRuntimeSource=n.stringifyTheme,h(M),M};
2
2
  //# sourceMappingURL=createThemeNoVars.cjs.map