@solostylist/ui-kit 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/{gradients-mQAYCK0_.js → gradients-DSnBONEQ.js} +1 -1
  2. package/dist/main.js +1 -1
  3. package/dist/palettes/index.js +1 -1
  4. package/dist/{palettes-B1FcGUYs.js → palettes-CJLuEy1m.js} +163 -163
  5. package/dist/s-accordion/index.js +1 -1
  6. package/dist/s-accordion/s-accordion.js +70 -2
  7. package/dist/s-action-overlay/s-action-overlay.js +21 -21
  8. package/dist/s-animated-gradient-text/s-animated-gradient-text.js +18 -19
  9. package/dist/s-announcement-bar/s-announcement-bar.js +50 -53
  10. package/dist/s-autocomplete/s-autocomplete.js +1 -1
  11. package/dist/s-avatar/s-avatar.js +17 -17
  12. package/dist/s-blur-text/s-blur-text.js +16 -16
  13. package/dist/s-brand-logo/index.js +1 -1
  14. package/dist/s-brand-logo/s-brand-logo.js +1 -1
  15. package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
  16. package/dist/s-carousel/index.js +1 -1
  17. package/dist/s-carousel/s-carousel.js +186 -2
  18. package/dist/s-category-card/s-category-card.js +22 -22
  19. package/dist/s-chat-input/index.js +1 -1
  20. package/dist/s-chat-input/s-chat-input.js +398 -2
  21. package/dist/s-chat-message/index.js +1 -1
  22. package/dist/s-chat-message/s-chat-message.js +314 -2
  23. package/dist/s-checkbox/s-checkbox.js +18 -19
  24. package/dist/s-chips/index.js +1 -1
  25. package/dist/s-chips/s-chips.js +174 -2
  26. package/dist/s-code-block/index.js +1 -1
  27. package/dist/s-code-block/s-code-block.js +103 -2
  28. package/dist/s-comment-message/index.js +1 -1
  29. package/dist/s-comment-message/s-comment-message.js +189 -2
  30. package/dist/s-copyable-text/s-copyable-text.js +18 -18
  31. package/dist/s-countdown/s-count-box.js +18 -18
  32. package/dist/s-data-table/index.js +1 -1
  33. package/dist/s-data-table/s-data-table.js +213 -2
  34. package/dist/s-date-picker/index.js +1 -1
  35. package/dist/s-date-picker/s-date-picker.js +106 -2
  36. package/dist/s-datetime-picker/index.js +1 -1
  37. package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
  38. package/dist/s-dialog/index.js +1 -1
  39. package/dist/s-dialog/s-dialog.js +80 -2
  40. package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
  41. package/dist/s-dialog-message/s-dialog-message.js +31 -32
  42. package/dist/s-drawer/index.js +1 -1
  43. package/dist/s-drawer/s-drawer.js +139 -2
  44. package/dist/s-empty/s-empty.js +13 -14
  45. package/dist/s-file-dropzone/index.js +1 -1
  46. package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
  47. package/dist/s-file-icon/s-file-icon.js +87 -88
  48. package/dist/s-flex-box/s-flex-box.js +11 -12
  49. package/dist/s-form/s-form.js +15 -15
  50. package/dist/s-gallery/s-gallery.js +1 -1
  51. package/dist/s-glow-button/s-glow-button.js +9 -10
  52. package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.js +23 -24
  53. package/dist/s-icon-button/s-icon-button.js +13 -14
  54. package/dist/s-image-comparison/s-image-comparison.js +29 -31
  55. package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
  56. package/dist/s-image-viewer/index.js +3 -3
  57. package/dist/s-image-viewer/s-image-viewer.js +266 -2
  58. package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
  59. package/dist/s-interactive-card/s-interactive-card.js +39 -41
  60. package/dist/s-label/s-label.js +25 -26
  61. package/dist/s-language-switcher/index.js +2 -2
  62. package/dist/s-language-switcher/s-language-switcher.js +145 -2
  63. package/dist/s-lazy-image/s-lazy-image.js +17 -18
  64. package/dist/s-link/index.js +1 -1
  65. package/dist/s-link/s-link.js +5 -2
  66. package/dist/s-list-action-item/s-list-action-item.js +38 -39
  67. package/dist/s-localization-provider/index.js +1 -1
  68. package/dist/s-localization-provider/s-localization-provider.js +12 -2
  69. package/dist/s-mega-menu/mega-menu-panel.js +132 -134
  70. package/dist/s-mega-menu/mega-menu-trigger.js +49 -2
  71. package/dist/s-mega-menu/s-mega-menu.js +80 -83
  72. package/dist/s-mobile-dock/index.js +1 -1
  73. package/dist/s-mobile-dock/s-mobile-dock.js +145 -2
  74. package/dist/s-nav-item/s-nav-item.js +19 -20
  75. package/dist/s-nav-items/s-nav-items.js +51 -52
  76. package/dist/s-no-ssr/index.js +1 -1
  77. package/dist/s-no-ssr/s-no-ssr.js +5 -2
  78. package/dist/s-number-range/index.js +1 -1
  79. package/dist/s-number-range/s-number-range.js +250 -2
  80. package/dist/s-pagination/index.js +1 -1
  81. package/dist/s-pagination/s-pagination.js +85 -2
  82. package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
  83. package/dist/s-popover/s-popover-content.js +11 -12
  84. package/dist/s-popover/s-popover.js +22 -24
  85. package/dist/s-product-card/s-product-card.js +177 -180
  86. package/dist/s-product-gallery/index.js +1 -1
  87. package/dist/s-product-gallery/s-product-gallery.js +427 -2
  88. package/dist/s-quantity-input/s-quantity-input.js +24 -24
  89. package/dist/s-review/index.js +1 -1
  90. package/dist/s-review/s-review.js +272 -2
  91. package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
  92. package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
  93. package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
  94. package/dist/s-segmented-control/s-segmented-control.js +64 -68
  95. package/dist/s-select/index.js +1 -1
  96. package/dist/s-select/s-select.js +201 -2
  97. package/dist/s-select-list/s-select-list.js +47 -50
  98. package/dist/s-skeleton/s-skeleton.js +12 -13
  99. package/dist/s-snackbar-message/index.js +2 -2
  100. package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
  101. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
  102. package/dist/s-status-illustration/s-status-illustration.js +74 -74
  103. package/dist/s-stepper/index.js +1 -1
  104. package/dist/s-stepper/s-stepper.js +102 -2
  105. package/dist/s-stripe/s-stripe.js +11 -12
  106. package/dist/s-stripe/stripe-input.js +3 -2
  107. package/dist/s-swatch/s-swatch.js +34 -35
  108. package/dist/s-switch/index.js +1 -1
  109. package/dist/s-switch/s-switch.js +48 -2
  110. package/dist/s-tabs/s-tabs.js +48 -50
  111. package/dist/s-text-editor/index.js +1 -1
  112. package/dist/s-text-editor/s-text-editor-toolbar.js +213 -2
  113. package/dist/s-text-editor/s-text-editor.js +25 -26
  114. package/dist/s-text-field/index.js +1 -1
  115. package/dist/s-text-field/s-text-field.js +52 -2
  116. package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
  117. package/dist/s-text-truncation/s-text-truncation.js +20 -20
  118. package/dist/s-theme-demo/s-theme-demo.js +8 -8
  119. package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
  120. package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
  121. package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
  122. package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
  123. package/dist/s-theme-provider/s-theme-provider.js +1 -1
  124. package/dist/s-theme-switch/index.js +1 -1
  125. package/dist/s-theme-switch/s-theme-switch.js +60 -2
  126. package/dist/s-tip/index.js +1 -1
  127. package/dist/s-tip/s-tip.js +61 -2
  128. package/dist/s-tool-bar/s-tool-bar.js +28 -28
  129. package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
  130. package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
  131. package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
  132. package/dist/s-tool-item/s-tool-item.js +22 -22
  133. package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
  134. package/dist/s-zoom-image/s-zoom-image.js +18 -19
  135. package/dist/theme/components/autocomplete.js +43 -2
  136. package/dist/theme/components/avatar.js +9 -2
  137. package/dist/theme/components/card.js +3 -3
  138. package/dist/theme/components/checkbox.js +90 -2
  139. package/dist/theme/components/chip.js +3 -3
  140. package/dist/theme/components/components.js +20 -20
  141. package/dist/theme/components/date-calendar.js +1 -0
  142. package/dist/theme/components/day-calendar.js +1 -0
  143. package/dist/theme/components/drawer.js +1 -1
  144. package/dist/theme/components/field-label-styles.js +19 -2
  145. package/dist/theme/components/form-label.js +1 -1
  146. package/dist/theme/components/list-item-button.js +1 -1
  147. package/dist/theme/components/list-item.js +7 -7
  148. package/dist/theme/components/month-calendar.js +14 -13
  149. package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
  150. package/dist/theme/components/outlined-input.js +6 -6
  151. package/dist/theme/components/picker-day.js +1 -0
  152. package/dist/theme/components/pickers-arrow-switcher.js +1 -0
  153. package/dist/theme/components/pickers-calendar-header.js +3 -2
  154. package/dist/theme/components/select.js +6 -6
  155. package/dist/theme/components/switch.js +1 -1
  156. package/dist/theme/components/table-pagination.js +1 -1
  157. package/dist/theme/components/toggle-button.js +93 -2
  158. package/dist/theme/components/year-calendar.js +14 -13
  159. package/dist/theme/theme-primitives.js +2 -2
  160. package/dist/{theme-primitives-CXtaMdVj.js → theme-primitives-CRfnMsNy.js} +108 -109
  161. package/dist/utils/dayjs.js +9 -146
  162. package/package.json +7 -2
  163. package/dist/Add-CEnTWsXs.js +0 -6
  164. package/dist/ArrowUpward-udL1ltj2.js +0 -6
  165. package/dist/Box-9oeZgA1U.js +0 -46
  166. package/dist/Button-DaLr1m20.js +0 -534
  167. package/dist/ButtonBase-DovDC6-1.js +0 -700
  168. package/dist/Checkbox-C-Xjbzzh.js +0 -152
  169. package/dist/ChevronRight-DsPfsFKB.js +0 -6
  170. package/dist/Close-CIYOM-Sc.js +0 -6
  171. package/dist/Collapse-DPUr1cbP.js +0 -266
  172. package/dist/ContentCopy-Hlh3azVb.js +0 -6
  173. package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
  174. package/dist/DialogContent-b3xbJVC6.js +0 -450
  175. package/dist/Download-D9PkFi7a.js +0 -6
  176. package/dist/ExpandMore-sOgvEha9.js +0 -6
  177. package/dist/Favorite-BP343hjM.js +0 -6
  178. package/dist/FavoriteBorder-D15j9xEL.js +0 -6
  179. package/dist/FormControl-DwMfZCiz.js +0 -215
  180. package/dist/FormControlLabel-Ihga1FTB.js +0 -173
  181. package/dist/Grow-BQR7x52V.js +0 -121
  182. package/dist/IconButton-CE-4GamO.js +0 -448
  183. package/dist/InfoOutlined-lpvhO6P8.js +0 -6
  184. package/dist/List-RNcZhRdr.js +0 -105
  185. package/dist/Menu-CnyB4SDS.js +0 -180
  186. package/dist/MenuItem-Ck30dBOR.js +0 -224
  187. package/dist/MenuList-Cc98uWXq.js +0 -160
  188. package/dist/Modal-CD2EBfU8.js +0 -702
  189. package/dist/Paper-_3qggtBp.js +0 -115
  190. package/dist/Popover-BFdKSYI5.js +0 -340
  191. package/dist/Popper-DYNAMSDd.js +0 -1351
  192. package/dist/Portal-i_wgIe9-.js +0 -49
  193. package/dist/Remove-DDEn8ek8.js +0 -6
  194. package/dist/RtlProvider-B7uVJXUY.js +0 -19
  195. package/dist/Skeleton-iZFynl7z.js +0 -220
  196. package/dist/Stack-C0LGzM4c.js +0 -158
  197. package/dist/SwitchBase-CjWtDdmE.js +0 -198
  198. package/dist/Tooltip-B1sn94L0.js +0 -448
  199. package/dist/Typography-_P0svrkO.js +0 -168
  200. package/dist/UnfoldMoreRounded-CuCrdxoy.js +0 -6
  201. package/dist/appendOwnerState-CFQTq3pb.js +0 -17
  202. package/dist/assets/stripe-input.css +0 -1
  203. package/dist/autocomplete-BgARERpp.js +0 -43
  204. package/dist/avatar-XNOdbbRz.js +0 -10
  205. package/dist/buttonBaseClasses-B90LjsNK.js +0 -13
  206. package/dist/capitalize-C0baBJCm.js +0 -5
  207. package/dist/chainPropTypes-CkMRtDjQ.js +0 -8
  208. package/dist/checkbox-D1U_JKqs.js +0 -88
  209. package/dist/checkboxClasses-B1up2lUn.js +0 -18
  210. package/dist/chunk-C_CI6nMA.js +0 -13
  211. package/dist/clsx-DGZSe4Nt.js +0 -16
  212. package/dist/colorManipulator-DmUjcif3.js +0 -129
  213. package/dist/contains-DnqPQsQU.js +0 -16
  214. package/dist/createSimplePaletteValueFilter-DFvyXHoZ.js +0 -14
  215. package/dist/createSvgIcon-3y-gS0r1.js +0 -155
  216. package/dist/createTheme-xB2Em0Na.js +0 -1869
  217. package/dist/defaultTheme-BaGcIzCh.js +0 -210
  218. package/dist/elementAcceptingRef-pKEY6jPR.js +0 -25
  219. package/dist/elementTypeAcceptingRef-xl_04Y5-.js +0 -19
  220. package/dist/exactProp-C_IsucXf.js +0 -13
  221. package/dist/extends-DXMyyJCW.js +0 -12
  222. package/dist/field-label-styles-4praXMaE.js +0 -50
  223. package/dist/formLabelClasses-AuZHWfTs.js +0 -18
  224. package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
  225. package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
  226. package/dist/getActiveElement-BfBkhgy6.js +0 -8
  227. package/dist/iconButtonClasses-CVVRFXRo.js +0 -27
  228. package/dist/inputAdornmentClasses-BbB8s-Z4.js +0 -19
  229. package/dist/inputBaseClasses-Ce_jjdp9.js +0 -25
  230. package/dist/integerPropType-CCkQD1JY.js +0 -27
  231. package/dist/isEventHandler-QShLXBxE.js +0 -7
  232. package/dist/isFocusVisible-4OIE8TST.js +0 -11
  233. package/dist/isLayoutSupported-Btg2X3QE.js +0 -6
  234. package/dist/isMuiElement-CPjhi284.js +0 -10
  235. package/dist/mega-menu-trigger-BcOo8I5_.js +0 -53
  236. package/dist/memoTheme-qFyKAk7y.js +0 -15
  237. package/dist/mergeSlotProps-DC8r4QzS.js +0 -45
  238. package/dist/monthCalendarClasses-b964KRbc.js +0 -14
  239. package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +0 -12
  240. package/dist/outlinedInputClasses-ci1zDasn.js +0 -17
  241. package/dist/ownerDocument-CJjQZweZ.js +0 -6
  242. package/dist/ownerDocument-pYjJiXem.js +0 -5
  243. package/dist/ownerWindow-SSeeoqPT.js +0 -18
  244. package/dist/pickersCalendarHeaderClasses-BAiPN_oY.js +0 -12
  245. package/dist/prop-types-BzYPyWN7.js +0 -516
  246. package/dist/refType-j5S9pc_e.js +0 -6
  247. package/dist/resolveProps-7jIA45vn.js +0 -30
  248. package/dist/s-accordion-1oLxQhod.js +0 -487
  249. package/dist/s-carousel-CAyAl3ka.js +0 -1355
  250. package/dist/s-chat-input-T3gyan60.js +0 -419
  251. package/dist/s-chat-message-NFTpNgt5.js +0 -315
  252. package/dist/s-chips-Dqq1fgz-.js +0 -176
  253. package/dist/s-code-block-DyDtctGG.js +0 -658
  254. package/dist/s-comment-message-DpCVBKiE.js +0 -192
  255. package/dist/s-data-table-D4V58HFR.js +0 -805
  256. package/dist/s-date-picker-BFIQOA8C.js +0 -657
  257. package/dist/s-datetime-picker-zfg7BEOW.js +0 -3886
  258. package/dist/s-dialog-BNlXsVVP.js +0 -123
  259. package/dist/s-drawer-4h5ZyoM8.js +0 -562
  260. package/dist/s-file-dropzone-Cfzv1Cm8.js +0 -422
  261. package/dist/s-image-viewer-CjK67-rs.js +0 -269
  262. package/dist/s-language-switcher-PaMgHWc2.js +0 -246
  263. package/dist/s-link-Db1aabHh.js +0 -235
  264. package/dist/s-localization-provider-CeyB_SGz.js +0 -519
  265. package/dist/s-mobile-dock-8F3UWAb8.js +0 -615
  266. package/dist/s-no-ssr-DH57_uP_.js +0 -25
  267. package/dist/s-number-range-Low5QjuD.js +0 -253
  268. package/dist/s-pagination-s46hBifh.js +0 -606
  269. package/dist/s-product-gallery-Dj9eGg5i.js +0 -430
  270. package/dist/s-review--Q2C0ngO.js +0 -272
  271. package/dist/s-select-CtVKEOZ5.js +0 -204
  272. package/dist/s-snackbar-message-DsfJlDYd.js +0 -810
  273. package/dist/s-stepper-BtODHVro.js +0 -892
  274. package/dist/s-switch-BCeBoxWf.js +0 -307
  275. package/dist/s-text-editor-toolbar-D5eQ-jCs.js +0 -2124
  276. package/dist/s-text-field-HYyDf1Jo.js +0 -51
  277. package/dist/s-theme-switch-BFWpADh3.js +0 -60
  278. package/dist/s-tip-jbL7vtoU.js +0 -62
  279. package/dist/selectClasses-CPxME5jE.js +0 -22
  280. package/dist/setRef-BWPyWnrr.js +0 -6
  281. package/dist/styled-Bog8QCl3.js +0 -163
  282. package/dist/svgIconClasses-1kWGzgux.js +0 -20
  283. package/dist/switchClasses-BtweO7PC.js +0 -23
  284. package/dist/theme-demo-components-section-C7l_2KAo.js +0 -267
  285. package/dist/toggle-button-BsGb-tOr.js +0 -104
  286. package/dist/tool-bar-action-buttons-v1koaasr.js +0 -54
  287. package/dist/tool-bar-image-input-DtXTyEe1.js +0 -148
  288. package/dist/typographyClasses-BH_-zLwg.js +0 -31
  289. package/dist/unsupportedProp-whMV_uOi.js +0 -11
  290. package/dist/useControlled-DqNPBJNp.js +0 -5
  291. package/dist/useControlled-uxVKygk1.js +0 -29
  292. package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
  293. package/dist/useEnhancedEffect-dBFfkm1e.js +0 -5
  294. package/dist/useEventCallback-DGCsaRIu.js +0 -5
  295. package/dist/useEventCallback-DhCPBxRG.js +0 -11
  296. package/dist/useForkRef-BuNFTXxE.js +0 -29
  297. package/dist/useFormControl-gXwNeUM1.js +0 -18
  298. package/dist/useMobilePicker-CdrT935R.js +0 -7584
  299. package/dist/useRovingTabIndex-DPlW997R.js +0 -242
  300. package/dist/useSlot-BG8ReOxN.js +0 -83
  301. package/dist/useSlotProps-BOO3qaI9.js +0 -16
  302. package/dist/useTheme-BIWMbX3i.js +0 -9
  303. package/dist/useThemeProps-Dw9dmKyT.js +0 -29
  304. package/dist/useTimeout-CoK-Khfm.js +0 -49
  305. package/dist/utils-Bfqbev5I.js +0 -248
  306. package/dist/warning-D5YhCbje.js +0 -99
  307. package/dist/yearCalendarClasses-D9k_KT38.js +0 -14
  308. /package/dist/{colors-Bik9qOU9.js → colors-CNjL5fhq.js} +0 -0
  309. /package/dist/{s-brand-logo-D7Jovf5K.js → s-brand-logo-CErW9Slg.js} +0 -0
  310. /package/dist/{utils-DOY6v6ln.js → utils-CMeAWSRO.js} +0 -0
@@ -1,2124 +0,0 @@
1
- import { n as e } from "./chunk-C_CI6nMA.js";
2
- import { f as t } from "./colorManipulator-DmUjcif3.js";
3
- import { t as n } from "./prop-types-BzYPyWN7.js";
4
- import { n as r, r as i, t as a } from "./DefaultPropsProvider-ebWx4_5E.js";
5
- import { g as o, m as s } from "./createTheme-xB2Em0Na.js";
6
- import { t as c } from "./generateUtilityClass-PAIOm1jC.js";
7
- import { t as l } from "./clsx-DGZSe4Nt.js";
8
- import { t as u } from "./generateUtilityClasses-DvX505Gy.js";
9
- import { n as d, r as f, t as p } from "./styled-Bog8QCl3.js";
10
- import { t as m } from "./Stack-C0LGzM4c.js";
11
- import { t as h } from "./useEnhancedEffect-DFq_FMGX.js";
12
- import { i as g, t as _ } from "./IconButton-CE-4GamO.js";
13
- import { t as v } from "./memoTheme-qFyKAk7y.js";
14
- import { toSxArray as y } from "./utils/sx.js";
15
- import { t as b } from "./refType-j5S9pc_e.js";
16
- import { t as x } from "./elementTypeAcceptingRef-xl_04Y5-.js";
17
- import { n as ee, t as te } from "./useForkRef-BuNFTXxE.js";
18
- import { t as S } from "./useEventCallback-DhCPBxRG.js";
19
- import { t as ne } from "./useEventCallback-DGCsaRIu.js";
20
- import { n as re } from "./useTimeout-CoK-Khfm.js";
21
- import { n as ie } from "./appendOwnerState-CFQTq3pb.js";
22
- import { t as ae } from "./useSlot-BG8ReOxN.js";
23
- import { t as C } from "./capitalize-C0baBJCm.js";
24
- import { t as w } from "./createSimplePaletteValueFilter-DFvyXHoZ.js";
25
- import { c as T, l as E } from "./Modal-CD2EBfU8.js";
26
- import { t as D } from "./createSvgIcon-3y-gS0r1.js";
27
- import { r as oe } from "./ownerWindow-SSeeoqPT.js";
28
- import { t as se } from "./ownerDocument-pYjJiXem.js";
29
- import { t as ce } from "./useEnhancedEffect-dBFfkm1e.js";
30
- import { t as le } from "./useControlled-DqNPBJNp.js";
31
- import { n as ue, r as de } from "./useFormControl-gXwNeUM1.js";
32
- import { n as fe } from "./elementAcceptingRef-pKEY6jPR.js";
33
- import { r as pe } from "./MenuList-Cc98uWXq.js";
34
- import { t as me } from "./Menu-CnyB4SDS.js";
35
- import { n as he, t as ge } from "./FormControl-DwMfZCiz.js";
36
- import { n as _e, t as ve } from "./selectClasses-CPxME5jE.js";
37
- import { n as O, t as k } from "./inputBaseClasses-Ce_jjdp9.js";
38
- import { a as ye, n as be, r as A } from "./field-label-styles-4praXMaE.js";
39
- import { n as j, t as M } from "./outlinedInputClasses-ci1zDasn.js";
40
- import { t as N } from "./s-text-field-HYyDf1Jo.js";
41
- import { SPopover as xe } from "./s-popover/s-popover.js";
42
- import { SPopoverContent as Se } from "./s-popover/s-popover-content.js";
43
- import * as P from "react";
44
- import { jsx as F, jsxs as I } from "react/jsx-runtime";
45
- import { MenuItem as L, styled as R, useThemeProps as z } from "@mui/material";
46
- //#region ../../node_modules/@mui/material/Select/utils/getOpenInteractionType.mjs
47
- function B(e) {
48
- return e ? e.type === "mousedown" || e.type === "pointerdown" || e.type === "touchstart" ? "pointer" : e.type === "keydown" || e.type === "click" && e.detail === 0 ? "keyboard" : null : null;
49
- }
50
- //#endregion
51
- //#region ../../node_modules/@mui/material/Select/utils/isEmpty.mjs
52
- function Ce(e) {
53
- return e == null || typeof e == "string" && !e.trim();
54
- }
55
- //#endregion
56
- //#region ../../node_modules/@mui/material/Select/utils/areEqualValues.mjs
57
- function we(e, t) {
58
- return typeof t == "object" && t ? e === t : String(e) === String(t);
59
- }
60
- //#endregion
61
- //#region ../../node_modules/@mui/material/NativeSelect/nativeSelectClasses.mjs
62
- var V = /* @__PURE__ */ e(n(), 1), Te = o();
63
- function Ee(e) {
64
- return c("MuiNativeSelect", e);
65
- }
66
- var H = u("MuiNativeSelect", [
67
- "root",
68
- "select",
69
- "multiple",
70
- "filled",
71
- "outlined",
72
- "standard",
73
- "disabled",
74
- "icon",
75
- "iconOpen",
76
- "iconFilled",
77
- "iconOutlined",
78
- "iconStandard",
79
- "nativeInput",
80
- "error"
81
- ]), De = (e) => {
82
- let { classes: t, variant: n, disabled: r, multiple: a, open: o, error: s } = e;
83
- return i({
84
- select: [
85
- "select",
86
- n,
87
- r && "disabled",
88
- a && "multiple",
89
- s && "error"
90
- ],
91
- icon: [
92
- "icon",
93
- `icon${C(n)}`,
94
- o && "iconOpen",
95
- r && "disabled"
96
- ]
97
- }, Ee, t);
98
- }, U = p("select", { name: "MuiNativeSelect" })(({ theme: e }) => ({
99
- MozAppearance: "none",
100
- WebkitAppearance: "none",
101
- userSelect: "none",
102
- borderRadius: 0,
103
- cursor: "pointer",
104
- "&:focus": { borderRadius: 0 },
105
- [`&.${H.disabled}`]: { cursor: "default" },
106
- "&[multiple]": { height: "auto" },
107
- "&:not([multiple]) option, &:not([multiple]) optgroup": { backgroundColor: (e.vars || e).palette.background.paper },
108
- variants: [
109
- {
110
- props: ({ ownerState: e }) => e.variant !== "filled" && e.variant !== "outlined",
111
- style: { "&&&": {
112
- paddingRight: 24,
113
- minWidth: 16
114
- } }
115
- },
116
- {
117
- props: { variant: "filled" },
118
- style: { "&&&": { paddingRight: 32 } }
119
- },
120
- {
121
- props: { variant: "outlined" },
122
- style: {
123
- borderRadius: (e.vars || e).shape.borderRadius,
124
- "&:focus": { borderRadius: (e.vars || e).shape.borderRadius },
125
- "&&&": { paddingRight: 32 }
126
- }
127
- }
128
- ]
129
- })), W = p(U, {
130
- name: "MuiNativeSelect",
131
- slot: "Select",
132
- shouldForwardProp: d,
133
- overridesResolver: (e, t) => {
134
- let { ownerState: n } = e;
135
- return [
136
- t.select,
137
- t[n.variant],
138
- n.error && t.error,
139
- { [`&.${H.multiple}`]: t.multiple }
140
- ];
141
- }
142
- })({}), Oe = p("svg", { name: "MuiNativeSelect" })(({ theme: e }) => ({
143
- position: "absolute",
144
- right: 0,
145
- top: "calc(50% - .5em)",
146
- pointerEvents: "none",
147
- color: (e.vars || e).palette.action.active,
148
- [`&.${H.disabled}`]: { color: (e.vars || e).palette.action.disabled },
149
- variants: [
150
- {
151
- props: ({ ownerState: e }) => e.open,
152
- style: { transform: "rotate(180deg)" }
153
- },
154
- {
155
- props: { variant: "filled" },
156
- style: { right: 7 }
157
- },
158
- {
159
- props: { variant: "outlined" },
160
- style: { right: 7 }
161
- }
162
- ]
163
- })), ke = p(Oe, {
164
- name: "MuiNativeSelect",
165
- slot: "Icon",
166
- overridesResolver: (e, t) => {
167
- let { ownerState: n } = e;
168
- return [
169
- t.icon,
170
- n.variant && t[`icon${C(n.variant)}`],
171
- n.open && t.iconOpen
172
- ];
173
- }
174
- })({}), Ae = /* @__PURE__ */ P.forwardRef(function(e, t) {
175
- let { className: n, disabled: r, error: i, IconComponent: a, inputRef: o, variant: s = "standard", ...c } = e, u = {
176
- ...e,
177
- disabled: r,
178
- variant: s,
179
- error: i
180
- }, d = De(u);
181
- return /* @__PURE__ */ I(P.Fragment, { children: [/* @__PURE__ */ F(W, {
182
- ownerState: u,
183
- className: l(d.select, n),
184
- disabled: r,
185
- ref: o || t,
186
- ...c
187
- }), e.multiple ? null : /* @__PURE__ */ F(ke, {
188
- as: a,
189
- ownerState: u,
190
- className: d.icon
191
- })] });
192
- });
193
- process.env.NODE_ENV !== "production" && (Ae.propTypes = {
194
- children: V.default.node,
195
- classes: V.default.object,
196
- className: V.default.string,
197
- disabled: V.default.bool,
198
- error: V.default.bool,
199
- IconComponent: V.default.elementType.isRequired,
200
- inputRef: b,
201
- multiple: V.default.bool,
202
- name: V.default.string,
203
- onChange: V.default.func,
204
- value: V.default.any,
205
- variant: V.default.oneOf([
206
- "standard",
207
- "outlined",
208
- "filled"
209
- ])
210
- });
211
- //#endregion
212
- //#region ../../node_modules/@mui/material/Select/SelectInput.mjs
213
- var je, G = 2, Me = 400, Ne = 200;
214
- function Pe(e, t) {
215
- if (!t) return !1;
216
- if (e.composedPath().includes(t) || e.target?.nodeType && t.contains(e.target)) return !0;
217
- let n = t.getBoundingClientRect();
218
- return n.width === 0 && n.height === 0 ? !1 : e.clientX >= n.left - G && e.clientX <= n.right + G && e.clientY >= n.top - G && e.clientY <= n.bottom + G;
219
- }
220
- var Fe = p(U, {
221
- name: "MuiSelect",
222
- slot: "Select",
223
- overridesResolver: (e, t) => {
224
- let { ownerState: n } = e;
225
- return [
226
- { [`&.${_e.select}`]: t.select },
227
- { [`&.${_e.select}`]: t[n.variant] },
228
- { [`&.${_e.error}`]: t.error },
229
- { [`&.${_e.multiple}`]: t.multiple }
230
- ];
231
- }
232
- })({ [`&.${_e.select}`]: {
233
- height: "auto",
234
- minHeight: "1.4375em",
235
- textOverflow: "ellipsis",
236
- whiteSpace: "nowrap",
237
- overflow: "hidden"
238
- } }), Ie = p(Oe, {
239
- name: "MuiSelect",
240
- slot: "Icon",
241
- overridesResolver: (e, t) => {
242
- let { ownerState: n } = e;
243
- return [t.icon, n.open && t.iconOpen];
244
- }
245
- })({}), Le = p("input", {
246
- shouldForwardProp: (e) => f(e) && e !== "classes",
247
- name: "MuiSelect",
248
- slot: "NativeInput"
249
- })({
250
- bottom: 0,
251
- left: 0,
252
- position: "absolute",
253
- opacity: 0,
254
- pointerEvents: "none",
255
- width: "100%",
256
- boxSizing: "border-box"
257
- }), Re = (e) => {
258
- let { classes: t, variant: n, disabled: r, multiple: a, open: o, error: s } = e;
259
- return i({
260
- select: [
261
- "select",
262
- n,
263
- r && "disabled",
264
- a && "multiple",
265
- s && "error"
266
- ],
267
- icon: [
268
- "icon",
269
- o && "iconOpen",
270
- r && "disabled"
271
- ],
272
- nativeInput: ["nativeInput"]
273
- }, ve, t);
274
- }, ze = /* @__PURE__ */ P.forwardRef(function(e, n) {
275
- let { "aria-describedby": r, "aria-label": i, autoFocus: a, autoWidth: o, children: s, className: c, defaultOpen: u, defaultValue: d, disabled: f, displayEmpty: p, error: m = !1, IconComponent: h, inputRef: _, labelId: v, MenuProps: y = {}, multiple: b, name: x, onBlur: ee, onChange: S, onClose: ie, onFocus: ae, onKeyDown: C, onMouseDown: w, onOpen: T, open: E, readOnly: D, renderValue: oe, required: ue, SelectDisplayProps: de = {}, tabIndex: fe, type: ge, value: _e, variant: ve = "standard", ...O } = e, [k, ye] = le({
276
- controlled: _e,
277
- default: d,
278
- name: "Select"
279
- }), [be, A] = le({
280
- controlled: E,
281
- default: u,
282
- name: "Select"
283
- }), j = P.useRef(null), M = P.useRef(null), N = P.useRef(null), xe = P.useRef(!1), Se = P.useRef(!1), L = P.useRef(null), R = P.useRef(!1), z = P.useRef({
284
- allowSelectedMouseUp: !1,
285
- allowUnselectedMouseUp: !1
286
- }), V = re(), Ee = re(), [H, De] = P.useState(null), { current: U } = P.useRef(E != null), [W, Oe] = P.useState(), [ke, Ae] = P.useState(null), G = te(n, _), ze = P.useCallback((e) => {
287
- M.current = e, e && De(e);
288
- }, []), K = H?.parentNode;
289
- P.useImperativeHandle(G, () => ({
290
- focus: () => {
291
- M.current.focus();
292
- },
293
- node: j.current,
294
- value: k
295
- }), [k]);
296
- let q = H !== null && be;
297
- ce(() => {
298
- xe.current = q;
299
- }, [q]);
300
- let Be = P.useCallback(() => {
301
- V.clear(), Ee.clear();
302
- }, [V, Ee]), Ve = P.useCallback(() => {
303
- Be(), R.current = !1, z.current = {
304
- allowSelectedMouseUp: !1,
305
- allowUnselectedMouseUp: !1
306
- };
307
- }, [Be]), J = P.useCallback(() => {
308
- L.current &&= (L.current(), null);
309
- }, []);
310
- P.useEffect(() => {
311
- q || (Ve(), J());
312
- }, [
313
- q,
314
- Ve,
315
- J
316
- ]), P.useEffect(() => () => {
317
- Ve(), J();
318
- }, [Ve, J]), P.useEffect(() => {
319
- if (!q || !K || o || typeof ResizeObserver > "u") return;
320
- let e = new ResizeObserver(() => {
321
- Oe(K.clientWidth);
322
- });
323
- return e.observe(K), () => {
324
- e.disconnect();
325
- };
326
- }, [
327
- q,
328
- K,
329
- o
330
- ]), P.useEffect(() => {
331
- u && be && H && !U && (Oe(o ? null : K.clientWidth), M.current.focus());
332
- }, [H, o]), P.useEffect(() => {
333
- a && M.current.focus();
334
- }, [a]), P.useEffect(() => {
335
- if (!v) return;
336
- let e = se(M.current).getElementById(v);
337
- if (e) {
338
- let t = () => {
339
- getSelection().isCollapsed && M.current.focus();
340
- };
341
- return e.addEventListener("click", t), () => {
342
- e.removeEventListener("click", t);
343
- };
344
- }
345
- }, [v]);
346
- let He = ne((e, t) => {
347
- e || (Ve(), J()), e ? (Ae(B(t)), T && T(t)) : (Ae(null), ie && ie(t)), U || (xe.current = e, Oe(o ? null : K.clientWidth), A(e));
348
- }), Ue = () => {
349
- Ve(), Se.current ? Ee.start(Ne, () => {
350
- z.current.allowUnselectedMouseUp = !0, V.start(Ne, () => {
351
- z.current.allowSelectedMouseUp = !0;
352
- });
353
- }) : V.start(Me, () => {
354
- z.current.allowSelectedMouseUp = !0, z.current.allowUnselectedMouseUp = !0;
355
- });
356
- }, We = (e) => {
357
- if (w?.(e), e.button !== 0) return;
358
- e.preventDefault(), M.current.focus();
359
- let t = se(e.currentTarget);
360
- Ue(), J();
361
- let n = (e) => {
362
- L.current = null, M.current && (Pe(e, M.current) || Pe(e, N.current) || !xe.current && U || He(!1, e));
363
- };
364
- t.addEventListener("mouseup", n, {
365
- capture: !0,
366
- once: !0
367
- }), L.current = () => {
368
- t.removeEventListener("mouseup", n, !0);
369
- }, He(!0, e);
370
- }, Ge = (e) => {
371
- He(!1, e);
372
- }, Y = P.Children.toArray(s), Ke = (e) => {
373
- let t = Y.find((t) => t.props.value === e.target.value);
374
- t !== void 0 && (ye(t.props.value), S && S(e, t));
375
- }, qe = (e) => (t) => {
376
- R.current = !1;
377
- let n;
378
- if (t.currentTarget.hasAttribute("tabindex")) {
379
- if (b) {
380
- n = Array.isArray(k) ? k.slice() : [];
381
- let t = k.indexOf(e.props.value);
382
- t === -1 ? n.push(e.props.value) : n.splice(t, 1);
383
- } else n = e.props.value;
384
- if (e.props.onClick && e.props.onClick(t), k !== n && (ye(n), S)) {
385
- let r = t.nativeEvent || t, i = new r.constructor(r.type, r);
386
- Object.defineProperty(i, "target", {
387
- writable: !0,
388
- value: {
389
- value: n,
390
- name: x
391
- }
392
- }), S(i, e);
393
- }
394
- b || He(!1, t);
395
- }
396
- }, Je = (e, t) => (n) => {
397
- if (e.props.onMouseUp?.(n), R.current) {
398
- R.current = !1;
399
- return;
400
- }
401
- let r = !z.current.allowSelectedMouseUp && t, i = !z.current.allowUnselectedMouseUp && !t;
402
- r || i || n.currentTarget.click();
403
- }, Ye = (e) => {
404
- D || ([
405
- " ",
406
- "ArrowUp",
407
- "ArrowDown",
408
- "Enter"
409
- ].includes(e.key) && (e.preventDefault(), He(!0, e)), C?.(e));
410
- }, Xe = (e) => {
411
- !q && ee && (Object.defineProperty(e, "target", {
412
- writable: !0,
413
- value: {
414
- value: k,
415
- name: x
416
- }
417
- }), ee(e));
418
- };
419
- delete O["aria-invalid"];
420
- let X, Ze, Qe = [], $e = !1, Z = !1;
421
- (he({ value: k }) || p) && (oe ? X = oe(k) : $e = !0);
422
- let et = Y.map((e) => {
423
- if (!/* @__PURE__ */ P.isValidElement(e)) return null;
424
- process.env.NODE_ENV !== "production" && (0, Te.isFragment)(e) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n"));
425
- let n;
426
- if (b) {
427
- if (!Array.isArray(k)) throw Error(process.env.NODE_ENV === "production" ? t(2) : "MUI: The `value` prop must be an array when using the `Select` component with `multiple`.");
428
- n = k.some((t) => we(t, e.props.value)), n && $e && Qe.push(e.props.children);
429
- } else n = we(k, e.props.value), n && $e && (Ze = e.props.children);
430
- return n && (Z = !0), /* @__PURE__ */ P.cloneElement(e, {
431
- "aria-selected": n ? "true" : "false",
432
- onMouseDown: (t) => {
433
- R.current = !0, e.props.onMouseDown?.(t);
434
- },
435
- onPointerDown: (t) => {
436
- R.current = !0, e.props.onPointerDown?.(t);
437
- },
438
- onClick: qe(e),
439
- onMouseUp: Je(e, n),
440
- onKeyUp: (t) => {
441
- t.key === " " && t.preventDefault(), e.props.onKeyUp && e.props.onKeyUp(t);
442
- },
443
- role: "option",
444
- selected: n,
445
- value: void 0,
446
- "data-value": e.props.value
447
- });
448
- });
449
- ce(() => {
450
- Se.current = Z;
451
- }, [Z]), process.env.NODE_ENV !== "production" && P.useEffect(() => {
452
- if (!Z && !b && k !== "") {
453
- let e = Y.map((e) => e.props.value);
454
- console.warn([
455
- `MUI: You have provided an out-of-range value \`${k}\` for the select ${x ? `(name="${x}") ` : ""}component.`,
456
- "Consider providing a value that matches one of the available options or ''.",
457
- `The available values are ${e.filter((e) => e != null).map((e) => `\`${e}\``).join(", ") || "\"\""}.`
458
- ].join("\n"));
459
- }
460
- }, [
461
- Z,
462
- Y,
463
- b,
464
- x,
465
- k
466
- ]), $e && (X = b ? Qe.length === 0 ? null : Qe.reduce((e, t, n) => (e.push(t), n < Qe.length - 1 && e.push(", "), e), []) : Ze);
467
- let Q = W;
468
- !o && U && H && (Q = K.clientWidth);
469
- let tt;
470
- tt = fe === void 0 ? f ? null : 0 : fe;
471
- let nt = de.id || (x ? `mui-component-select-${x}` : void 0), rt = {
472
- ...e,
473
- variant: ve,
474
- value: k,
475
- open: q,
476
- error: m
477
- }, it = Re(rt), at = typeof y.slotProps?.paper == "function" ? y.slotProps.paper(rt) : y.slotProps?.paper, ot = te(at?.ref, N), st = typeof y.slotProps?.list == "function" ? y.slotProps.list(rt) : y.slotProps?.list, ct = g(), lt = g();
478
- return /* @__PURE__ */ I(P.Fragment, { children: [
479
- /* @__PURE__ */ F(Fe, {
480
- as: "div",
481
- ref: ze,
482
- tabIndex: tt,
483
- role: "combobox",
484
- "aria-controls": q ? ct : void 0,
485
- "aria-disabled": f ? "true" : void 0,
486
- "aria-expanded": q ? "true" : "false",
487
- "aria-haspopup": "listbox",
488
- "aria-label": i,
489
- "aria-labelledby": v,
490
- "aria-describedby": r,
491
- "aria-required": ue ? "true" : void 0,
492
- "aria-invalid": m ? "true" : void 0,
493
- onKeyDown: Ye,
494
- onMouseDown: f || D ? null : We,
495
- onBlur: Xe,
496
- onFocus: ae,
497
- ...de,
498
- ownerState: rt,
499
- className: l(de.className, it.select, c),
500
- id: nt,
501
- children: Ce(X) ? je ||= /* @__PURE__ */ F("span", {
502
- className: "notranslate",
503
- "aria-hidden": !0,
504
- children: "​"
505
- }) : X
506
- }),
507
- /* @__PURE__ */ F(Le, {
508
- "aria-invalid": m,
509
- value: Array.isArray(k) ? k.join(",") : k,
510
- name: x,
511
- ref: j,
512
- "aria-hidden": !0,
513
- onChange: Ke,
514
- tabIndex: -1,
515
- disabled: f,
516
- className: it.nativeInput,
517
- autoFocus: a,
518
- required: ue,
519
- ...O,
520
- id: O.id ?? lt,
521
- ownerState: rt
522
- }),
523
- /* @__PURE__ */ F(Ie, {
524
- as: h,
525
- className: it.icon,
526
- ownerState: rt
527
- }),
528
- /* @__PURE__ */ F(pe, {
529
- value: ke,
530
- children: /* @__PURE__ */ F(me, {
531
- id: `menu-${x || ""}`,
532
- anchorEl: K,
533
- open: q,
534
- onClose: Ge,
535
- anchorOrigin: {
536
- vertical: "bottom",
537
- horizontal: "center"
538
- },
539
- transformOrigin: {
540
- vertical: "top",
541
- horizontal: "center"
542
- },
543
- ...y,
544
- slotProps: {
545
- ...y.slotProps,
546
- list: {
547
- "aria-labelledby": v,
548
- role: "listbox",
549
- "aria-multiselectable": b ? "true" : void 0,
550
- disableListWrap: !0,
551
- id: ct,
552
- ...st
553
- },
554
- paper: {
555
- ...at,
556
- ref: ot,
557
- style: {
558
- minWidth: Q,
559
- ...at?.style
560
- }
561
- }
562
- },
563
- children: et
564
- })
565
- })
566
- ] });
567
- });
568
- process.env.NODE_ENV !== "production" && (ze.propTypes = {
569
- "aria-describedby": V.default.string,
570
- "aria-label": V.default.string,
571
- autoFocus: V.default.bool,
572
- autoWidth: V.default.bool,
573
- children: V.default.node,
574
- classes: V.default.object,
575
- className: V.default.string,
576
- defaultOpen: V.default.bool,
577
- defaultValue: V.default.any,
578
- disabled: V.default.bool,
579
- displayEmpty: V.default.bool,
580
- error: V.default.bool,
581
- IconComponent: V.default.elementType.isRequired,
582
- inputRef: b,
583
- labelId: V.default.string,
584
- MenuProps: V.default.object,
585
- multiple: V.default.bool,
586
- name: V.default.string,
587
- onBlur: V.default.func,
588
- onChange: V.default.func,
589
- onClose: V.default.func,
590
- onFocus: V.default.func,
591
- onOpen: V.default.func,
592
- open: V.default.bool,
593
- readOnly: V.default.bool,
594
- renderValue: V.default.func,
595
- required: V.default.bool,
596
- SelectDisplayProps: V.default.object,
597
- tabIndex: V.default.oneOfType([V.default.number, V.default.string]),
598
- type: V.default.any,
599
- value: V.default.any,
600
- variant: V.default.oneOf([
601
- "standard",
602
- "outlined",
603
- "filled"
604
- ])
605
- });
606
- //#endregion
607
- //#region ../../node_modules/@mui/material/internal/svg-icons/ArrowDropDown.mjs
608
- var K = D(/* @__PURE__ */ F("path", { d: "M7 10l5 5 5-5z" }), "ArrowDropDown");
609
- //#endregion
610
- //#region ../../node_modules/@mui/material/TextareaAutosize/TextareaAutosize.mjs
611
- function q(e) {
612
- return parseInt(e, 10) || 0;
613
- }
614
- var Be = { shadow: {
615
- visibility: "hidden",
616
- position: "absolute",
617
- overflow: "hidden",
618
- height: 0,
619
- top: 0,
620
- left: 0,
621
- transform: "translateZ(0)"
622
- } };
623
- function Ve(e) {
624
- for (let t in e) return !1;
625
- return !0;
626
- }
627
- function J(e) {
628
- return Ve(e) || e.outerHeightStyle === 0 && !e.overflowing;
629
- }
630
- var He = /* @__PURE__ */ P.forwardRef(function(e, t) {
631
- let { onChange: n, maxRows: r, minRows: i = 1, style: a, value: o, ...s } = e, { current: c } = P.useRef(o != null), l = P.useRef(null), u = ee(t, l), d = P.useRef(null), f = P.useRef(null), p = P.useCallback(() => {
632
- let t = l.current, n = f.current;
633
- if (!t || !n) return;
634
- let a = T(t).getComputedStyle(t);
635
- if (a.width === "0px") return {
636
- outerHeightStyle: 0,
637
- overflowing: !1
638
- };
639
- n.style.width = a.width, n.value = t.value || e.placeholder || "x", n.value.slice(-1) === "\n" && (n.value += " ");
640
- let o = a.boxSizing, s = q(a.paddingBottom) + q(a.paddingTop), c = q(a.borderBottomWidth) + q(a.borderTopWidth), u = n.scrollHeight;
641
- n.value = "x";
642
- let d = n.scrollHeight, p = u;
643
- return i && (p = Math.max(Number(i) * d, p)), r && (p = Math.min(Number(r) * d, p)), p = Math.max(p, d), {
644
- outerHeightStyle: p + (o === "border-box" ? s + c : 0),
645
- overflowing: Math.abs(p - u) <= 1
646
- };
647
- }, [
648
- r,
649
- i,
650
- e.placeholder
651
- ]), m = S(() => {
652
- let e = l.current, t = p();
653
- if (!e || !t || J(t)) return !1;
654
- let n = t.outerHeightStyle;
655
- return d.current != null && d.current !== n;
656
- }), g = P.useCallback(() => {
657
- let e = l.current, t = p();
658
- if (!e || !t || J(t)) return;
659
- let n = t.outerHeightStyle;
660
- d.current !== n && (d.current = n, e.style.height = `${n}px`), e.style.overflow = t.overflowing ? "hidden" : "";
661
- }, [p]), _ = P.useRef(-1);
662
- return h(() => {
663
- let e = oe(g), t = l?.current;
664
- if (!t) return;
665
- let n = T(t);
666
- n.addEventListener("resize", e);
667
- let r;
668
- return typeof ResizeObserver < "u" && (r = new ResizeObserver(() => {
669
- m() && (r.unobserve(t), cancelAnimationFrame(_.current), g(), _.current = requestAnimationFrame(() => {
670
- r.observe(t);
671
- }));
672
- }), r.observe(t)), () => {
673
- e.clear(), cancelAnimationFrame(_.current), n.removeEventListener("resize", e), r && r.disconnect();
674
- };
675
- }, [
676
- p,
677
- g,
678
- m
679
- ]), h(() => {
680
- g();
681
- }), /* @__PURE__ */ I(P.Fragment, { children: [/* @__PURE__ */ F("textarea", {
682
- value: o,
683
- onChange: (e) => {
684
- c || g();
685
- let t = e.target, r = t.value.length, i = t.value.endsWith("\n"), a = t.selectionStart === r;
686
- i && a && t.setSelectionRange(r, r), n && n(e);
687
- },
688
- ref: u,
689
- rows: i,
690
- style: a,
691
- ...s
692
- }), /* @__PURE__ */ F("textarea", {
693
- "aria-hidden": !0,
694
- className: e.className,
695
- readOnly: !0,
696
- ref: f,
697
- tabIndex: -1,
698
- style: {
699
- ...Be.shadow,
700
- ...a,
701
- paddingTop: 0,
702
- paddingBottom: 0
703
- }
704
- })] });
705
- });
706
- process.env.NODE_ENV !== "production" && (He.propTypes = {
707
- className: V.default.string,
708
- maxRows: V.default.oneOfType([V.default.number, V.default.string]),
709
- minRows: V.default.oneOfType([V.default.number, V.default.string]),
710
- onChange: V.default.func,
711
- placeholder: V.default.string,
712
- style: V.default.object,
713
- value: V.default.oneOfType([
714
- V.default.arrayOf(V.default.string),
715
- V.default.number,
716
- V.default.string
717
- ])
718
- });
719
- //#endregion
720
- //#region ../../node_modules/@mui/material/InputBase/InputBase.mjs
721
- var Ue, We = "mui-auto-fill", Ge = "mui-auto-fill-cancel", Y = (e, t) => {
722
- let { ownerState: n } = e;
723
- return [
724
- t.root,
725
- n.formControl && t.formControl,
726
- n.startAdornment && t.adornedStart,
727
- n.endAdornment && t.adornedEnd,
728
- n.error && t.error,
729
- n.size === "small" && t.sizeSmall,
730
- n.multiline && t.multiline,
731
- n.color && t[`color${C(n.color)}`],
732
- n.fullWidth && t.fullWidth,
733
- n.hiddenLabel && t.hiddenLabel
734
- ];
735
- }, Ke = (e, t) => {
736
- let { ownerState: n } = e;
737
- return [t.input, n.type === "search" && t.inputTypeSearch];
738
- }, qe = (e) => {
739
- let { classes: t, color: n, disabled: r, error: a, endAdornment: o, focused: s, formControl: c, fullWidth: l, hiddenLabel: u, multiline: d, readOnly: f, size: p, startAdornment: m, type: h } = e;
740
- return i({
741
- root: [
742
- "root",
743
- `color${C(n)}`,
744
- r && "disabled",
745
- a && "error",
746
- l && "fullWidth",
747
- s && "focused",
748
- c && "formControl",
749
- p && p !== "medium" && `size${C(p)}`,
750
- d && "multiline",
751
- m && "adornedStart",
752
- o && "adornedEnd",
753
- u && "hiddenLabel",
754
- f && "readOnly"
755
- ],
756
- input: [
757
- "input",
758
- r && "disabled",
759
- h === "search" && "inputTypeSearch",
760
- f && "readOnly"
761
- ]
762
- }, k, t);
763
- }, Je = p("div", {
764
- name: "MuiInputBase",
765
- slot: "Root",
766
- overridesResolver: Y
767
- })(v(({ theme: e }) => ({
768
- ...e.typography.body1,
769
- color: (e.vars || e).palette.text.primary,
770
- lineHeight: "1.4375em",
771
- boxSizing: "border-box",
772
- position: "relative",
773
- cursor: "text",
774
- display: "inline-flex",
775
- alignItems: "center",
776
- [`&.${O.disabled}`]: {
777
- color: (e.vars || e).palette.text.disabled,
778
- cursor: "default"
779
- },
780
- variants: [
781
- {
782
- props: ({ ownerState: e }) => e.multiline,
783
- style: { padding: "4px 0 5px" }
784
- },
785
- {
786
- props: ({ ownerState: e, size: t }) => e.multiline && t === "small",
787
- style: { paddingTop: 1 }
788
- },
789
- {
790
- props: ({ ownerState: e }) => e.fullWidth,
791
- style: { width: "100%" }
792
- }
793
- ]
794
- }))), Ye = p("input", {
795
- name: "MuiInputBase",
796
- slot: "Input",
797
- overridesResolver: Ke
798
- })(v(({ theme: e }) => {
799
- let t = e.palette.mode === "light", n = {
800
- color: "currentColor",
801
- ...e.vars ? { opacity: e.vars.opacity.inputPlaceholder } : { opacity: t ? .42 : .5 },
802
- transition: e.transitions.create("opacity", { duration: e.transitions.duration.shorter })
803
- }, r = { opacity: "0 !important" }, i = e.vars ? { opacity: e.vars.opacity.inputPlaceholder } : { opacity: t ? .42 : .5 };
804
- return {
805
- font: "inherit",
806
- letterSpacing: "inherit",
807
- color: "currentColor",
808
- padding: "4px 0 5px",
809
- border: 0,
810
- boxSizing: "content-box",
811
- background: "none",
812
- height: "1.4375em",
813
- margin: 0,
814
- WebkitTapHighlightColor: "transparent",
815
- display: "block",
816
- minWidth: 0,
817
- width: "100%",
818
- "&::-webkit-input-placeholder": n,
819
- "&::-moz-placeholder": n,
820
- "&::-ms-input-placeholder": n,
821
- "&:focus": { outline: 0 },
822
- "&:invalid": { boxShadow: "none" },
823
- "&::-webkit-search-decoration": { WebkitAppearance: "none" },
824
- [`label[data-shrink=false] + .${O.formControl} &`]: {
825
- "&::-webkit-input-placeholder": r,
826
- "&::-moz-placeholder": r,
827
- "&::-ms-input-placeholder": r,
828
- "&:focus::-webkit-input-placeholder": i,
829
- "&:focus::-moz-placeholder": i,
830
- "&:focus::-ms-input-placeholder": i
831
- },
832
- [`&.${O.disabled}`]: {
833
- opacity: 1,
834
- WebkitTextFillColor: (e.vars || e).palette.text.disabled
835
- },
836
- variants: [
837
- {
838
- props: ({ ownerState: e }) => !e.disableInjectingGlobalStyles,
839
- style: {
840
- animationName: Ge,
841
- animationDuration: "10ms",
842
- "&:-webkit-autofill": {
843
- animationDuration: "5000s",
844
- animationName: We
845
- }
846
- }
847
- },
848
- {
849
- props: { size: "small" },
850
- style: { paddingTop: 1 }
851
- },
852
- {
853
- props: ({ ownerState: e }) => e.multiline,
854
- style: {
855
- height: "auto",
856
- resize: "none",
857
- padding: 0,
858
- paddingTop: 0
859
- }
860
- },
861
- {
862
- props: { type: "search" },
863
- style: { MozAppearance: "textfield" }
864
- }
865
- ]
866
- };
867
- })), Xe = r({
868
- [`@keyframes ${We}`]: { from: { animationName: We } },
869
- [`@keyframes ${Ge}`]: { from: { animationName: Ge } }
870
- }), X = /* @__PURE__ */ P.forwardRef(function(e, n) {
871
- let r = a({
872
- props: e,
873
- name: "MuiInputBase"
874
- }), { "aria-describedby": i, "aria-label": o, autoComplete: s, autoFocus: c, className: u, color: d, defaultValue: f, disabled: p, disableInjectingGlobalStyles: m, endAdornment: h, error: g, fullWidth: _ = !1, id: v, inputComponent: y = "input", inputProps: b = {}, inputRef: x, margin: ee, maxRows: S, minRows: ne, multiline: re = !1, name: ae, onBlur: C, onChange: w, onClick: T, onFocus: D, onKeyDown: oe, onKeyUp: le, placeholder: fe, readOnly: pe, renderSuffix: me, rows: ge, size: _e, slotProps: ve = {}, slots: O = {}, startAdornment: k, type: ye = "text", value: be, ...A } = r, j = b.value == null ? be : b.value, { current: M } = P.useRef(j != null), N = P.useRef(), xe = P.useCallback((e) => {
875
- process.env.NODE_ENV !== "production" && e && e.nodeName !== "INPUT" && !e.focus && console.error([
876
- "MUI: You have provided a `inputComponent` to the input component",
877
- "that does not correctly handle the `ref` prop.",
878
- "Make sure the `ref` prop is called with a HTMLInputElement."
879
- ].join("\n"));
880
- }, []), Se = te(N, x, b.ref, xe), [L, R] = P.useState(!1), [z, B] = ue({
881
- props: r,
882
- states: [
883
- "color",
884
- "disabled",
885
- "error",
886
- "hiddenLabel",
887
- "size",
888
- "required",
889
- "filled"
890
- ]
891
- });
892
- process.env.NODE_ENV !== "production" && P.useEffect(() => {
893
- if (B) return B.registerEffect();
894
- }, [B]), z.focused = B ? B.focused : L, P.useEffect(() => {
895
- !B && p && L && (R(!1), C && C());
896
- }, [
897
- B,
898
- p,
899
- L,
900
- C
901
- ]);
902
- let Ce = B && B.onFilled, we = B && B.onEmpty, V = P.useCallback((e) => {
903
- he(e) ? Ce && Ce() : we && we();
904
- }, [Ce, we]);
905
- ce(() => {
906
- M && V({ value: j });
907
- }, [
908
- j,
909
- V,
910
- M
911
- ]), ce(() => {
912
- if (!c) return;
913
- let e = N.current;
914
- if (!e) return;
915
- let t = se(e), n = E(t), r = n == null || n === t.body || n === t.documentElement;
916
- e === n ? B && B.onFocus ? B.onFocus() : R(!0) : r && e.focus();
917
- }, [c]);
918
- let Te = (e) => {
919
- D && D(e), b.onFocus && b.onFocus(e), B && B.onFocus ? B.onFocus(e) : R(!0);
920
- }, Ee = (e) => {
921
- C && C(e), b.onBlur && b.onBlur(e), B && B.onBlur ? B.onBlur(e) : R(!1);
922
- }, H = (e, ...n) => {
923
- if (!M) {
924
- let n = e.target || N.current;
925
- if (n == null) throw Error(process.env.NODE_ENV === "production" ? t(1) : "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.");
926
- V({ value: n.value });
927
- }
928
- b.onChange && b.onChange(e, ...n), w && w(e, ...n);
929
- };
930
- P.useEffect(() => {
931
- V(N.current);
932
- }, []);
933
- let De = (e) => {
934
- N.current && e.currentTarget === e.target && N.current.focus(), T && T(e);
935
- }, U = y, W = b;
936
- re && U === "input" && (ge ? (process.env.NODE_ENV !== "production" && (ne || S) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), W = {
937
- type: void 0,
938
- minRows: ge,
939
- maxRows: ge,
940
- ...W
941
- }) : W = {
942
- type: void 0,
943
- maxRows: S,
944
- minRows: ne,
945
- ...W
946
- }, U = He);
947
- let Oe = (e) => {
948
- V(e.animationName === Ge ? N.current : { value: "x" });
949
- };
950
- P.useEffect(() => {
951
- B && B.setAdornedStart(!!k);
952
- }, [B, k]);
953
- let ke = {
954
- ...r,
955
- color: z.color || "primary",
956
- disabled: z.disabled,
957
- endAdornment: h,
958
- error: z.error,
959
- focused: z.focused,
960
- formControl: B,
961
- fullWidth: _,
962
- hiddenLabel: z.hiddenLabel,
963
- multiline: re,
964
- size: z.size,
965
- startAdornment: k,
966
- type: ye
967
- }, Ae = qe(ke), je = O.root || Je, G = ve.root || {}, Me = O.input || Ye;
968
- return W = {
969
- ...W,
970
- ...ve.input
971
- }, /* @__PURE__ */ I(P.Fragment, { children: [!m && typeof Xe == "function" && (Ue ||= /* @__PURE__ */ F(Xe, {})), /* @__PURE__ */ I(je, {
972
- ...G,
973
- ref: n,
974
- onClick: De,
975
- ...A,
976
- ...!ie(je) && { ownerState: {
977
- ...ke,
978
- ...G.ownerState
979
- } },
980
- className: l(Ae.root, G.className, u, pe && "MuiInputBase-readOnly"),
981
- children: [
982
- k,
983
- /* @__PURE__ */ F(de.Provider, {
984
- value: null,
985
- children: /* @__PURE__ */ F(Me, {
986
- "aria-invalid": z.error,
987
- "aria-describedby": i,
988
- "aria-label": o,
989
- autoComplete: s,
990
- autoFocus: c,
991
- defaultValue: f,
992
- disabled: z.disabled,
993
- id: v,
994
- onAnimationStart: Oe,
995
- name: ae,
996
- placeholder: fe,
997
- readOnly: pe,
998
- required: z.required,
999
- rows: ge,
1000
- value: j,
1001
- onKeyDown: oe,
1002
- onKeyUp: le,
1003
- type: ye,
1004
- ...W,
1005
- ...!ie(Me) && {
1006
- as: U,
1007
- ownerState: {
1008
- ...ke,
1009
- ...W.ownerState
1010
- }
1011
- },
1012
- ref: Se,
1013
- className: l(Ae.input, W.className, pe && "MuiInputBase-readOnly"),
1014
- onBlur: Ee,
1015
- onChange: H,
1016
- onFocus: Te
1017
- })
1018
- }),
1019
- h,
1020
- me ? me({
1021
- ...z,
1022
- startAdornment: k
1023
- }) : null
1024
- ]
1025
- })] });
1026
- });
1027
- process.env.NODE_ENV !== "production" && (X.propTypes = {
1028
- "aria-describedby": V.default.string,
1029
- "aria-label": V.default.string,
1030
- autoComplete: V.default.string,
1031
- autoFocus: V.default.bool,
1032
- classes: V.default.object,
1033
- className: V.default.string,
1034
- color: V.default.oneOfType([V.default.oneOf([
1035
- "primary",
1036
- "secondary",
1037
- "error",
1038
- "info",
1039
- "success",
1040
- "warning"
1041
- ]), V.default.string]),
1042
- defaultValue: V.default.any,
1043
- disabled: V.default.bool,
1044
- disableInjectingGlobalStyles: V.default.bool,
1045
- endAdornment: V.default.node,
1046
- error: V.default.bool,
1047
- fullWidth: V.default.bool,
1048
- id: V.default.string,
1049
- inputComponent: x,
1050
- inputProps: V.default.object,
1051
- inputRef: b,
1052
- margin: V.default.oneOf(["dense", "none"]),
1053
- maxRows: V.default.oneOfType([V.default.number, V.default.string]),
1054
- minRows: V.default.oneOfType([V.default.number, V.default.string]),
1055
- multiline: V.default.bool,
1056
- name: V.default.string,
1057
- onBlur: V.default.func,
1058
- onChange: V.default.func,
1059
- onClick: V.default.func,
1060
- onFocus: V.default.func,
1061
- onInvalid: V.default.func,
1062
- onKeyDown: V.default.func,
1063
- onKeyUp: V.default.func,
1064
- placeholder: V.default.string,
1065
- readOnly: V.default.bool,
1066
- renderSuffix: V.default.func,
1067
- required: V.default.bool,
1068
- rows: V.default.oneOfType([V.default.number, V.default.string]),
1069
- size: V.default.oneOfType([V.default.oneOf(["medium", "small"]), V.default.string]),
1070
- slotProps: V.default.shape({
1071
- input: V.default.object,
1072
- root: V.default.object
1073
- }),
1074
- slots: V.default.shape({
1075
- input: V.default.elementType,
1076
- root: V.default.elementType
1077
- }),
1078
- startAdornment: V.default.node,
1079
- sx: V.default.oneOfType([
1080
- V.default.arrayOf(V.default.oneOfType([
1081
- V.default.func,
1082
- V.default.object,
1083
- V.default.bool
1084
- ])),
1085
- V.default.func,
1086
- V.default.object
1087
- ]),
1088
- type: V.default.string,
1089
- value: V.default.any
1090
- });
1091
- //#endregion
1092
- //#region ../../node_modules/@mui/material/Input/Input.mjs
1093
- var Ze = (e) => {
1094
- let { classes: t, disableUnderline: n } = e, r = i({
1095
- root: ["root", !n && "underline"],
1096
- input: ["input"]
1097
- }, be, t);
1098
- return {
1099
- ...t,
1100
- ...r
1101
- };
1102
- }, Qe = p(Je, {
1103
- shouldForwardProp: (e) => d(e) || e === "classes",
1104
- name: "MuiInput",
1105
- slot: "Root",
1106
- overridesResolver: (e, t) => {
1107
- let { ownerState: n } = e;
1108
- return [...Y(e, t), !n.disableUnderline && t.underline];
1109
- }
1110
- })(v(({ theme: e }) => {
1111
- let t = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
1112
- return e.vars && (t = e.alpha(e.vars.palette.common.onBackground, e.vars.opacity.inputUnderline)), {
1113
- position: "relative",
1114
- variants: [
1115
- {
1116
- props: ({ ownerState: e }) => e.formControl,
1117
- style: { [`label + &, .${ye.root} + &`]: { marginTop: 16 } }
1118
- },
1119
- {
1120
- props: ({ ownerState: e }) => !e.disableUnderline,
1121
- style: {
1122
- "&::after": {
1123
- left: 0,
1124
- bottom: 0,
1125
- content: "\"\"",
1126
- position: "absolute",
1127
- right: 0,
1128
- transform: "scaleX(0)",
1129
- transition: e.transitions.create("transform", {
1130
- duration: e.transitions.duration.shorter,
1131
- easing: e.transitions.easing.easeOut
1132
- }),
1133
- pointerEvents: "none"
1134
- },
1135
- [`&.${A.focused}:after`]: { transform: "scaleX(1) translateX(0)" },
1136
- [`&.${A.error}`]: { "&::before, &::after": { borderBottomColor: (e.vars || e).palette.error.main } },
1137
- "&::before": {
1138
- borderBottom: `1px solid ${t}`,
1139
- left: 0,
1140
- bottom: 0,
1141
- content: "\"\"",
1142
- position: "absolute",
1143
- right: 0,
1144
- transition: e.transitions.create("border-bottom-color", { duration: e.transitions.duration.shorter }),
1145
- pointerEvents: "none"
1146
- },
1147
- [`&:hover:not(.${A.disabled}, .${A.error}):before`]: {
1148
- borderBottom: `2px solid ${(e.vars || e).palette.text.primary}`,
1149
- "@media (hover: none)": { borderBottom: `1px solid ${t}` }
1150
- },
1151
- [`&.${A.disabled}:before`]: { borderBottomStyle: "dotted" }
1152
- }
1153
- },
1154
- ...Object.entries(e.palette).filter(w()).map(([t]) => ({
1155
- props: {
1156
- color: t,
1157
- disableUnderline: !1
1158
- },
1159
- style: { "&::after": { borderBottom: `2px solid ${(e.vars || e).palette[t].main}` } }
1160
- }))
1161
- ]
1162
- };
1163
- })), $e = p(Ye, {
1164
- name: "MuiInput",
1165
- slot: "Input",
1166
- overridesResolver: Ke
1167
- })({}), Z = /* @__PURE__ */ P.forwardRef(function(e, t) {
1168
- let n = a({
1169
- props: e,
1170
- name: "MuiInput"
1171
- }), { disableUnderline: r = !1, fullWidth: i = !1, inputComponent: o = "input", multiline: c = !1, notched: l, slotProps: u, slots: d = {}, type: f = "text", ...p } = n, m = Ze(n), h = { root: { ownerState: { disableUnderline: r } } }, g = u ? s(u, h) : h;
1172
- return /* @__PURE__ */ F(X, {
1173
- slots: {
1174
- root: d.root ?? Qe,
1175
- input: d.input ?? $e
1176
- },
1177
- slotProps: g,
1178
- fullWidth: i,
1179
- inputComponent: o,
1180
- multiline: c,
1181
- ref: t,
1182
- type: f,
1183
- ...p,
1184
- classes: m
1185
- });
1186
- });
1187
- process.env.NODE_ENV !== "production" && (Z.propTypes = {
1188
- autoComplete: V.default.string,
1189
- autoFocus: V.default.bool,
1190
- classes: V.default.object,
1191
- color: V.default.oneOfType([V.default.oneOf(["primary", "secondary"]), V.default.string]),
1192
- defaultValue: V.default.any,
1193
- disabled: V.default.bool,
1194
- disableUnderline: V.default.bool,
1195
- endAdornment: V.default.node,
1196
- error: V.default.bool,
1197
- fullWidth: V.default.bool,
1198
- id: V.default.string,
1199
- inputComponent: V.default.elementType,
1200
- inputProps: V.default.object,
1201
- inputRef: b,
1202
- margin: V.default.oneOf(["dense", "none"]),
1203
- maxRows: V.default.oneOfType([V.default.number, V.default.string]),
1204
- minRows: V.default.oneOfType([V.default.number, V.default.string]),
1205
- multiline: V.default.bool,
1206
- name: V.default.string,
1207
- notched: V.default.bool,
1208
- onChange: V.default.func,
1209
- placeholder: V.default.string,
1210
- readOnly: V.default.bool,
1211
- required: V.default.bool,
1212
- rows: V.default.oneOfType([V.default.number, V.default.string]),
1213
- slotProps: V.default.shape({
1214
- input: V.default.object,
1215
- root: V.default.object
1216
- }),
1217
- slots: V.default.shape({
1218
- input: V.default.elementType,
1219
- root: V.default.elementType
1220
- }),
1221
- startAdornment: V.default.node,
1222
- sx: V.default.oneOfType([
1223
- V.default.arrayOf(V.default.oneOfType([
1224
- V.default.func,
1225
- V.default.object,
1226
- V.default.bool
1227
- ])),
1228
- V.default.func,
1229
- V.default.object
1230
- ]),
1231
- type: V.default.string,
1232
- value: V.default.any
1233
- }), Z.muiName = "Input";
1234
- //#endregion
1235
- //#region ../../node_modules/@mui/material/FilledInput/filledInputClasses.mjs
1236
- function et(e) {
1237
- return c("MuiFilledInput", e);
1238
- }
1239
- var Q = {
1240
- ...O,
1241
- ...u("MuiFilledInput", [
1242
- "root",
1243
- "underline",
1244
- "input",
1245
- "adornedStart",
1246
- "adornedEnd",
1247
- "sizeSmall",
1248
- "multiline",
1249
- "hiddenLabel"
1250
- ])
1251
- }, tt = (e) => {
1252
- let { classes: t, disableUnderline: n, startAdornment: r, endAdornment: a, size: o, hiddenLabel: s, multiline: c } = e, l = i({
1253
- root: [
1254
- "root",
1255
- !n && "underline",
1256
- r && "adornedStart",
1257
- a && "adornedEnd",
1258
- o === "small" && `size${C(o)}`,
1259
- s && "hiddenLabel",
1260
- c && "multiline"
1261
- ],
1262
- input: ["input"]
1263
- }, et, t);
1264
- return {
1265
- ...t,
1266
- ...l
1267
- };
1268
- }, nt = p(Je, {
1269
- shouldForwardProp: (e) => d(e) || e === "classes",
1270
- name: "MuiFilledInput",
1271
- slot: "Root",
1272
- overridesResolver: (e, t) => {
1273
- let { ownerState: n } = e;
1274
- return [...Y(e, t), !n.disableUnderline && t.underline];
1275
- }
1276
- })(v(({ theme: e }) => {
1277
- let t = e.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", i = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", a = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
1278
- return {
1279
- position: "relative",
1280
- backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : r,
1281
- borderTopLeftRadius: (e.vars || e).shape.borderRadius,
1282
- borderTopRightRadius: (e.vars || e).shape.borderRadius,
1283
- transition: e.transitions.create("background-color", {
1284
- duration: e.transitions.duration.shorter,
1285
- easing: e.transitions.easing.easeOut
1286
- }),
1287
- "&:hover": {
1288
- backgroundColor: e.vars ? e.vars.palette.FilledInput.hoverBg : i,
1289
- "@media (hover: none)": { backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : r }
1290
- },
1291
- [`&.${Q.focused}`]: { backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : r },
1292
- [`&.${Q.disabled}`]: { backgroundColor: e.vars ? e.vars.palette.FilledInput.disabledBg : a },
1293
- variants: [
1294
- {
1295
- props: ({ ownerState: e }) => !e.disableUnderline,
1296
- style: {
1297
- "&::after": {
1298
- left: 0,
1299
- bottom: 0,
1300
- content: "\"\"",
1301
- position: "absolute",
1302
- right: 0,
1303
- transform: "scaleX(0)",
1304
- transition: e.transitions.create("transform", {
1305
- duration: e.transitions.duration.shorter,
1306
- easing: e.transitions.easing.easeOut
1307
- }),
1308
- pointerEvents: "none"
1309
- },
1310
- [`&.${Q.focused}:after`]: { transform: "scaleX(1) translateX(0)" },
1311
- [`&.${Q.error}`]: { "&::before, &::after": { borderBottomColor: (e.vars || e).palette.error.main } },
1312
- "&::before": {
1313
- borderBottom: `1px solid ${e.vars ? e.alpha(e.vars.palette.common.onBackground, e.vars.opacity.inputUnderline) : n}`,
1314
- left: 0,
1315
- bottom: 0,
1316
- content: "\"\"",
1317
- position: "absolute",
1318
- right: 0,
1319
- transition: e.transitions.create("border-bottom-color", { duration: e.transitions.duration.shorter }),
1320
- pointerEvents: "none"
1321
- },
1322
- [`&:hover:not(.${Q.disabled}, .${Q.error}):before`]: { borderBottom: `1px solid ${(e.vars || e).palette.text.primary}` },
1323
- [`&.${Q.disabled}:before`]: { borderBottomStyle: "dotted" }
1324
- }
1325
- },
1326
- ...Object.entries(e.palette).filter(w()).map(([t]) => ({
1327
- props: {
1328
- disableUnderline: !1,
1329
- color: t
1330
- },
1331
- style: { "&::after": { borderBottom: `2px solid ${(e.vars || e).palette[t]?.main}` } }
1332
- })),
1333
- {
1334
- props: ({ ownerState: e }) => e.startAdornment,
1335
- style: { paddingLeft: 12 }
1336
- },
1337
- {
1338
- props: ({ ownerState: e }) => e.endAdornment,
1339
- style: { paddingRight: 12 }
1340
- },
1341
- {
1342
- props: ({ ownerState: e }) => e.multiline,
1343
- style: { padding: "25px 12px 8px" }
1344
- },
1345
- {
1346
- props: ({ ownerState: e, size: t }) => e.multiline && t === "small",
1347
- style: {
1348
- paddingTop: 21,
1349
- paddingBottom: 4
1350
- }
1351
- },
1352
- {
1353
- props: ({ ownerState: e }) => e.multiline && e.hiddenLabel,
1354
- style: {
1355
- paddingTop: 16,
1356
- paddingBottom: 17
1357
- }
1358
- },
1359
- {
1360
- props: ({ ownerState: e }) => e.multiline && e.hiddenLabel && e.size === "small",
1361
- style: {
1362
- paddingTop: 8,
1363
- paddingBottom: 9
1364
- }
1365
- }
1366
- ]
1367
- };
1368
- })), rt = p(Ye, {
1369
- name: "MuiFilledInput",
1370
- slot: "Input",
1371
- overridesResolver: Ke
1372
- })(v(({ theme: e }) => ({
1373
- paddingTop: 25,
1374
- paddingRight: 12,
1375
- paddingBottom: 8,
1376
- paddingLeft: 12,
1377
- "&:-webkit-autofill": {
1378
- ...!e.vars && {
1379
- WebkitBoxShadow: e.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
1380
- WebkitTextFillColor: e.palette.mode === "light" ? null : "#fff",
1381
- caretColor: e.palette.mode === "light" ? null : "#fff"
1382
- },
1383
- borderTopLeftRadius: "inherit",
1384
- borderTopRightRadius: "inherit",
1385
- ...e.vars && e.applyStyles("dark", {
1386
- WebkitBoxShadow: "0 0 0 100px #266798 inset",
1387
- WebkitTextFillColor: "#fff",
1388
- caretColor: "#fff"
1389
- })
1390
- },
1391
- variants: [
1392
- {
1393
- props: { size: "small" },
1394
- style: {
1395
- paddingTop: 21,
1396
- paddingBottom: 4
1397
- }
1398
- },
1399
- {
1400
- props: ({ ownerState: e }) => e.hiddenLabel,
1401
- style: {
1402
- paddingTop: 16,
1403
- paddingBottom: 17
1404
- }
1405
- },
1406
- {
1407
- props: ({ ownerState: e }) => e.startAdornment,
1408
- style: { paddingLeft: 0 }
1409
- },
1410
- {
1411
- props: ({ ownerState: e }) => e.endAdornment,
1412
- style: { paddingRight: 0 }
1413
- },
1414
- {
1415
- props: ({ ownerState: e }) => e.hiddenLabel && e.size === "small",
1416
- style: {
1417
- paddingTop: 8,
1418
- paddingBottom: 9
1419
- }
1420
- },
1421
- {
1422
- props: ({ ownerState: e }) => e.multiline,
1423
- style: {
1424
- paddingTop: 0,
1425
- paddingBottom: 0,
1426
- paddingLeft: 0,
1427
- paddingRight: 0
1428
- }
1429
- }
1430
- ]
1431
- }))), it = /* @__PURE__ */ P.forwardRef(function(e, t) {
1432
- let n = a({
1433
- props: e,
1434
- name: "MuiFilledInput"
1435
- }), { disableUnderline: r = !1, fullWidth: i = !1, hiddenLabel: o, inputComponent: c = "input", multiline: l = !1, notched: u, slotProps: d, slots: f = {}, type: p = "text", ...m } = n, h = {
1436
- ...n,
1437
- disableUnderline: r,
1438
- fullWidth: i,
1439
- inputComponent: c,
1440
- multiline: l,
1441
- type: p
1442
- }, g = tt(n), _ = {
1443
- root: { ownerState: h },
1444
- input: { ownerState: h }
1445
- }, v = d ? s(_, d) : _;
1446
- return /* @__PURE__ */ F(X, {
1447
- slots: {
1448
- root: f.root ?? nt,
1449
- input: f.input ?? rt
1450
- },
1451
- slotProps: v,
1452
- fullWidth: i,
1453
- inputComponent: c,
1454
- multiline: l,
1455
- ref: t,
1456
- type: p,
1457
- ...m,
1458
- classes: g
1459
- });
1460
- });
1461
- process.env.NODE_ENV !== "production" && (it.propTypes = {
1462
- autoComplete: V.default.string,
1463
- autoFocus: V.default.bool,
1464
- classes: V.default.object,
1465
- color: V.default.oneOfType([V.default.oneOf(["primary", "secondary"]), V.default.string]),
1466
- defaultValue: V.default.any,
1467
- disabled: V.default.bool,
1468
- disableUnderline: V.default.bool,
1469
- endAdornment: V.default.node,
1470
- error: V.default.bool,
1471
- fullWidth: V.default.bool,
1472
- hiddenLabel: V.default.bool,
1473
- id: V.default.string,
1474
- inputComponent: V.default.elementType,
1475
- inputProps: V.default.object,
1476
- inputRef: b,
1477
- margin: V.default.oneOf(["dense", "none"]),
1478
- maxRows: V.default.oneOfType([V.default.number, V.default.string]),
1479
- minRows: V.default.oneOfType([V.default.number, V.default.string]),
1480
- multiline: V.default.bool,
1481
- name: V.default.string,
1482
- notched: V.default.bool,
1483
- onChange: V.default.func,
1484
- placeholder: V.default.string,
1485
- readOnly: V.default.bool,
1486
- required: V.default.bool,
1487
- rows: V.default.oneOfType([V.default.number, V.default.string]),
1488
- slotProps: V.default.shape({
1489
- input: V.default.object,
1490
- root: V.default.object
1491
- }),
1492
- slots: V.default.shape({
1493
- input: V.default.elementType,
1494
- root: V.default.elementType
1495
- }),
1496
- startAdornment: V.default.node,
1497
- sx: V.default.oneOfType([
1498
- V.default.arrayOf(V.default.oneOfType([
1499
- V.default.func,
1500
- V.default.object,
1501
- V.default.bool
1502
- ])),
1503
- V.default.func,
1504
- V.default.object
1505
- ]),
1506
- type: V.default.string,
1507
- value: V.default.any
1508
- }), it.muiName = "Input";
1509
- //#endregion
1510
- //#region ../../node_modules/@mui/material/OutlinedInput/NotchedOutline.mjs
1511
- var at, ot = p("fieldset", {
1512
- name: "MuiNotchedOutlined",
1513
- shouldForwardProp: d
1514
- })({
1515
- textAlign: "left",
1516
- position: "absolute",
1517
- bottom: 0,
1518
- right: 0,
1519
- top: -5,
1520
- left: 0,
1521
- margin: 0,
1522
- padding: "0 8px",
1523
- pointerEvents: "none",
1524
- borderRadius: "inherit",
1525
- borderStyle: "solid",
1526
- borderWidth: 1,
1527
- overflow: "hidden",
1528
- minWidth: "0%"
1529
- }), st = p("legend", {
1530
- name: "MuiNotchedOutlined",
1531
- shouldForwardProp: d
1532
- })(v(({ theme: e }) => ({
1533
- float: "unset",
1534
- width: "auto",
1535
- overflow: "hidden",
1536
- variants: [
1537
- {
1538
- props: ({ ownerState: e }) => !e.withLabel,
1539
- style: {
1540
- padding: 0,
1541
- lineHeight: "11px",
1542
- transition: e.transitions.create("width", {
1543
- duration: 150,
1544
- easing: e.transitions.easing.easeOut
1545
- })
1546
- }
1547
- },
1548
- {
1549
- props: ({ ownerState: e }) => e.withLabel,
1550
- style: {
1551
- display: "block",
1552
- padding: 0,
1553
- height: 11,
1554
- fontSize: "0.75em",
1555
- visibility: "hidden",
1556
- maxWidth: .01,
1557
- transition: e.transitions.create("max-width", {
1558
- duration: 50,
1559
- easing: e.transitions.easing.easeOut
1560
- }),
1561
- whiteSpace: "nowrap",
1562
- "& > span": {
1563
- paddingLeft: 5,
1564
- paddingRight: 5,
1565
- display: "inline-block",
1566
- opacity: 0,
1567
- visibility: "visible"
1568
- }
1569
- }
1570
- },
1571
- {
1572
- props: ({ ownerState: e }) => e.withLabel && e.notched,
1573
- style: {
1574
- maxWidth: "100%",
1575
- transition: e.transitions.create("max-width", {
1576
- duration: 100,
1577
- easing: e.transitions.easing.easeOut,
1578
- delay: 50
1579
- })
1580
- }
1581
- }
1582
- ]
1583
- })));
1584
- function ct(e) {
1585
- let { children: t, classes: n, className: r, label: i, notched: a, ...o } = e, s = i != null && i !== "", c = {
1586
- ...e,
1587
- notched: a,
1588
- withLabel: s
1589
- };
1590
- return /* @__PURE__ */ F(ot, {
1591
- "aria-hidden": !0,
1592
- className: r,
1593
- ownerState: c,
1594
- ...o,
1595
- children: /* @__PURE__ */ F(st, {
1596
- ownerState: c,
1597
- children: s ? /* @__PURE__ */ F("span", { children: i }) : at ||= /* @__PURE__ */ F("span", {
1598
- className: "notranslate",
1599
- "aria-hidden": !0,
1600
- children: "​"
1601
- })
1602
- })
1603
- });
1604
- }
1605
- process.env.NODE_ENV !== "production" && (ct.propTypes = {
1606
- children: V.default.node,
1607
- classes: V.default.object,
1608
- className: V.default.string,
1609
- label: V.default.node,
1610
- notched: V.default.bool.isRequired,
1611
- style: V.default.object
1612
- });
1613
- //#endregion
1614
- //#region ../../node_modules/@mui/material/OutlinedInput/OutlinedInput.mjs
1615
- var lt = (e) => {
1616
- let { classes: t } = e, n = i({
1617
- root: ["root"],
1618
- notchedOutline: ["notchedOutline"],
1619
- input: ["input"]
1620
- }, M, t);
1621
- return {
1622
- ...t,
1623
- ...n
1624
- };
1625
- }, ut = p(Je, {
1626
- shouldForwardProp: (e) => d(e) || e === "classes",
1627
- name: "MuiOutlinedInput",
1628
- slot: "Root",
1629
- overridesResolver: Y
1630
- })(v(({ theme: e }) => {
1631
- let t = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
1632
- return {
1633
- position: "relative",
1634
- borderRadius: (e.vars || e).shape.borderRadius,
1635
- [`&:hover .${j.notchedOutline}`]: { borderColor: (e.vars || e).palette.text.primary },
1636
- "@media (hover: none)": { [`&:hover .${j.notchedOutline}`]: { borderColor: e.vars ? e.alpha(e.vars.palette.common.onBackground, .23) : t } },
1637
- [`&.${j.focused} .${j.notchedOutline}`]: { borderWidth: 2 },
1638
- variants: [
1639
- ...Object.entries(e.palette).filter(w()).map(([t]) => ({
1640
- props: { color: t },
1641
- style: { [`&.${j.focused} .${j.notchedOutline}`]: { borderColor: (e.vars || e).palette[t].main } }
1642
- })),
1643
- {
1644
- props: {},
1645
- style: {
1646
- [`&.${j.error} .${j.notchedOutline}`]: { borderColor: (e.vars || e).palette.error.main },
1647
- [`&.${j.disabled} .${j.notchedOutline}`]: { borderColor: (e.vars || e).palette.action.disabled }
1648
- }
1649
- },
1650
- {
1651
- props: ({ ownerState: e }) => e.startAdornment,
1652
- style: { paddingLeft: 14 }
1653
- },
1654
- {
1655
- props: ({ ownerState: e }) => e.endAdornment,
1656
- style: { paddingRight: 14 }
1657
- },
1658
- {
1659
- props: ({ ownerState: e }) => e.multiline,
1660
- style: { padding: "16.5px 14px" }
1661
- },
1662
- {
1663
- props: ({ ownerState: e, size: t }) => e.multiline && t === "small",
1664
- style: { padding: "8.5px 14px" }
1665
- }
1666
- ]
1667
- };
1668
- })), dt = p(ct, {
1669
- name: "MuiOutlinedInput",
1670
- slot: "NotchedOutline"
1671
- })(v(({ theme: e }) => {
1672
- let t = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
1673
- return { borderColor: e.vars ? e.alpha(e.vars.palette.common.onBackground, .23) : t };
1674
- })), ft = p(Ye, {
1675
- name: "MuiOutlinedInput",
1676
- slot: "Input",
1677
- overridesResolver: Ke
1678
- })(v(({ theme: e }) => ({
1679
- padding: "16.5px 14px",
1680
- "&:-webkit-autofill": {
1681
- ...!e.vars && {
1682
- WebkitBoxShadow: e.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
1683
- WebkitTextFillColor: e.palette.mode === "light" ? null : "#fff",
1684
- caretColor: e.palette.mode === "light" ? null : "#fff"
1685
- },
1686
- borderRadius: "inherit",
1687
- ...e.vars && e.applyStyles("dark", {
1688
- WebkitBoxShadow: "0 0 0 100px #266798 inset",
1689
- WebkitTextFillColor: "#fff",
1690
- caretColor: "#fff"
1691
- })
1692
- },
1693
- variants: [
1694
- {
1695
- props: { size: "small" },
1696
- style: { padding: "8.5px 14px" }
1697
- },
1698
- {
1699
- props: ({ ownerState: e }) => e.multiline,
1700
- style: { padding: 0 }
1701
- },
1702
- {
1703
- props: ({ ownerState: e }) => e.startAdornment,
1704
- style: { paddingLeft: 0 }
1705
- },
1706
- {
1707
- props: ({ ownerState: e }) => e.endAdornment,
1708
- style: { paddingRight: 0 }
1709
- }
1710
- ]
1711
- }))), pt = /* @__PURE__ */ P.forwardRef(function(e, t) {
1712
- let n = a({
1713
- props: e,
1714
- name: "MuiOutlinedInput"
1715
- }), { fullWidth: r = !1, inputComponent: i = "input", label: o, multiline: s = !1, notched: c, slots: l = {}, slotProps: u = {}, type: d = "text", ...f } = n, p = lt(n), [m, h] = ue({
1716
- props: n,
1717
- states: [
1718
- "color",
1719
- "disabled",
1720
- "error",
1721
- "focused",
1722
- "hiddenLabel",
1723
- "size",
1724
- "required"
1725
- ]
1726
- }), g = {
1727
- ...n,
1728
- color: m.color || "primary",
1729
- disabled: m.disabled,
1730
- error: m.error,
1731
- focused: m.focused,
1732
- formControl: h,
1733
- fullWidth: r,
1734
- hiddenLabel: m.hiddenLabel,
1735
- multiline: s,
1736
- size: m.size,
1737
- type: d
1738
- }, _ = l.root ?? ut, v = l.input ?? ft, [y, b] = ae("notchedOutline", {
1739
- elementType: dt,
1740
- className: p.notchedOutline,
1741
- shouldForwardComponentProp: !0,
1742
- ownerState: g,
1743
- externalForwardedProps: {
1744
- slots: l,
1745
- slotProps: u
1746
- },
1747
- additionalProps: { label: o != null && o !== "" && m.required ? /* @__PURE__ */ I(P.Fragment, { children: [
1748
- o,
1749
- " ",
1750
- "*"
1751
- ] }) : o }
1752
- });
1753
- return /* @__PURE__ */ F(X, {
1754
- slots: {
1755
- root: _,
1756
- input: v
1757
- },
1758
- slotProps: u,
1759
- renderSuffix: (e) => /* @__PURE__ */ F(y, {
1760
- ...b,
1761
- notched: c === void 0 ? !!(e.startAdornment || e.filled || e.focused) : c
1762
- }),
1763
- fullWidth: r,
1764
- inputComponent: i,
1765
- multiline: s,
1766
- ref: t,
1767
- type: d,
1768
- ...f,
1769
- classes: {
1770
- ...p,
1771
- notchedOutline: null
1772
- }
1773
- });
1774
- });
1775
- process.env.NODE_ENV !== "production" && (pt.propTypes = {
1776
- autoComplete: V.default.string,
1777
- autoFocus: V.default.bool,
1778
- classes: V.default.object,
1779
- color: V.default.oneOfType([V.default.oneOf(["primary", "secondary"]), V.default.string]),
1780
- defaultValue: V.default.any,
1781
- disabled: V.default.bool,
1782
- endAdornment: V.default.node,
1783
- error: V.default.bool,
1784
- fullWidth: V.default.bool,
1785
- id: V.default.string,
1786
- inputComponent: V.default.elementType,
1787
- inputProps: V.default.object,
1788
- inputRef: b,
1789
- label: V.default.node,
1790
- margin: V.default.oneOf(["dense", "none"]),
1791
- maxRows: V.default.oneOfType([V.default.number, V.default.string]),
1792
- minRows: V.default.oneOfType([V.default.number, V.default.string]),
1793
- multiline: V.default.bool,
1794
- name: V.default.string,
1795
- notched: V.default.bool,
1796
- onChange: V.default.func,
1797
- placeholder: V.default.string,
1798
- readOnly: V.default.bool,
1799
- required: V.default.bool,
1800
- rows: V.default.oneOfType([V.default.number, V.default.string]),
1801
- slotProps: V.default.shape({
1802
- input: V.default.object,
1803
- notchedOutline: V.default.oneOfType([V.default.func, V.default.object]),
1804
- root: V.default.object
1805
- }),
1806
- slots: V.default.shape({
1807
- input: V.default.elementType,
1808
- notchedOutline: V.default.elementType,
1809
- root: V.default.elementType
1810
- }),
1811
- startAdornment: V.default.node,
1812
- sx: V.default.oneOfType([
1813
- V.default.arrayOf(V.default.oneOfType([
1814
- V.default.func,
1815
- V.default.object,
1816
- V.default.bool
1817
- ])),
1818
- V.default.func,
1819
- V.default.object
1820
- ]),
1821
- type: V.default.string,
1822
- value: V.default.any
1823
- }), pt.muiName = "Input";
1824
- //#endregion
1825
- //#region ../../node_modules/@mui/material/Select/Select.mjs
1826
- var mt = (e) => {
1827
- let { classes: t } = e, n = i({ root: ["root"] }, ve, t);
1828
- return {
1829
- ...t,
1830
- ...n
1831
- };
1832
- }, ht = {
1833
- name: "MuiSelect",
1834
- slot: "Root",
1835
- shouldForwardProp: (e) => d(e) && e !== "variant"
1836
- }, gt = p(Z, ht)(""), _t = p(pt, ht)(""), vt = p(it, ht)(""), yt = /* @__PURE__ */ P.forwardRef(function(e, t) {
1837
- let n = a({
1838
- name: "MuiSelect",
1839
- props: e
1840
- }), { autoWidth: r = !1, children: i, classes: o = {}, className: c, defaultOpen: u = !1, displayEmpty: d = !1, IconComponent: f = K, id: p, input: m, inputProps: h, label: g, labelId: _, MenuProps: v, multiple: y = !1, native: b = !1, onClose: x, onOpen: ee, open: S, renderValue: ne, SelectDisplayProps: re, variant: ie = "outlined", ...ae } = n, C = b ? Ae : ze, [w] = ue({
1841
- props: n,
1842
- states: ["variant", "error"]
1843
- }), T = w.variant || ie, E = {
1844
- ...n,
1845
- variant: T,
1846
- classes: o
1847
- }, D = mt(E), { root: oe, ...se } = D, ce = m || {
1848
- standard: /* @__PURE__ */ F(gt, { ownerState: E }),
1849
- outlined: /* @__PURE__ */ F(_t, {
1850
- label: g,
1851
- ownerState: E
1852
- }),
1853
- filled: /* @__PURE__ */ F(vt, { ownerState: E })
1854
- }[T], le = te(t, fe(ce));
1855
- return /* @__PURE__ */ F(P.Fragment, { children: /* @__PURE__ */ P.cloneElement(ce, {
1856
- inputComponent: C,
1857
- inputProps: {
1858
- children: i,
1859
- error: w.error,
1860
- IconComponent: f,
1861
- variant: T,
1862
- type: void 0,
1863
- multiple: y,
1864
- ...b ? { id: p } : {
1865
- autoWidth: r,
1866
- defaultOpen: u,
1867
- displayEmpty: d,
1868
- labelId: _,
1869
- MenuProps: v,
1870
- onClose: x,
1871
- onOpen: ee,
1872
- open: S,
1873
- renderValue: ne,
1874
- SelectDisplayProps: {
1875
- id: p,
1876
- ...re
1877
- }
1878
- },
1879
- ...h,
1880
- classes: h ? s(se, h.classes) : se,
1881
- ...m ? m.props.inputProps : {}
1882
- },
1883
- ...(y && b || d) && T === "outlined" ? { notched: !0 } : {},
1884
- ref: le,
1885
- className: l(ce.props.className, c, D.root),
1886
- ...!m && { variant: T },
1887
- ...ae
1888
- }) });
1889
- });
1890
- process.env.NODE_ENV !== "production" && (yt.propTypes = {
1891
- autoWidth: V.default.bool,
1892
- children: V.default.node,
1893
- classes: V.default.object,
1894
- className: V.default.string,
1895
- defaultOpen: V.default.bool,
1896
- defaultValue: V.default.any,
1897
- displayEmpty: V.default.bool,
1898
- IconComponent: V.default.elementType,
1899
- id: V.default.string,
1900
- input: V.default.element,
1901
- inputProps: V.default.object,
1902
- label: V.default.node,
1903
- labelId: V.default.string,
1904
- MenuProps: V.default.object,
1905
- multiple: V.default.bool,
1906
- native: V.default.bool,
1907
- onChange: V.default.func,
1908
- onClose: V.default.func,
1909
- onOpen: V.default.func,
1910
- open: V.default.bool,
1911
- renderValue: V.default.func,
1912
- SelectDisplayProps: V.default.object,
1913
- sx: V.default.oneOfType([
1914
- V.default.arrayOf(V.default.oneOfType([
1915
- V.default.func,
1916
- V.default.object,
1917
- V.default.bool
1918
- ])),
1919
- V.default.func,
1920
- V.default.object
1921
- ]),
1922
- value: V.default.oneOfType([V.default.oneOf([""]), V.default.any]),
1923
- variant: V.default.oneOf([
1924
- "filled",
1925
- "outlined",
1926
- "standard"
1927
- ])
1928
- }), yt.muiName = "Select";
1929
- //#endregion
1930
- //#region ../../node_modules/@mui/icons-material/Code.mjs
1931
- var bt = D(/* @__PURE__ */ F("path", { d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z" }), "Code"), xt = D(/* @__PURE__ */ F("path", { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5" }), "FormatBold"), St = D(/* @__PURE__ */ F("path", { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }), "FormatItalic"), Ct = D(/* @__PURE__ */ F("path", { d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z" }), "FormatListBulleted"), wt = D(/* @__PURE__ */ F("path", { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z" }), "FormatListNumbered"), Tt = D(/* @__PURE__ */ F("path", { d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5" }), "Link"), Et = D(/* @__PURE__ */ F("path", { d: "M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85-.29-.86-1.2-1.28-2.25-1.28-1.86 0-2.34 1.02-2.34 1.7 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92M21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97 0 1-.81 1.67-2.28 1.67-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58.81 2.29 3.29 3.3 5.67 3.3 2.27 0 5.3-.89 5.3-4.05 0-.3-.01-1.16-.48-1.94H21z" }), "StrikethroughS"), Dt = R(m, {
1932
- name: "STextEditorToolbar",
1933
- slot: "Root"
1934
- })({}), Ot = P.forwardRef(function(e, t) {
1935
- let n = z({
1936
- props: e,
1937
- name: "STextEditorToolbar"
1938
- }), { className: r, disabled: i = !1, editor: a, spacing: o = 1, sx: s, ...c } = n, l = {
1939
- ...n,
1940
- disabled: i,
1941
- editorReady: a != null
1942
- }, [u, d] = P.useState(!1), [f, p] = P.useState(null), [h, g] = P.useState("");
1943
- return P.useEffect(() => {
1944
- i && (d(!1), p(null), g(""));
1945
- }, [i]), /* @__PURE__ */ I(P.Fragment, { children: [/* @__PURE__ */ F(Dt, {
1946
- ...c,
1947
- className: ["tiptap-toolbar", r].filter(Boolean).join(" "),
1948
- ownerState: l,
1949
- ref: t,
1950
- spacing: o,
1951
- "aria-disabled": i || void 0,
1952
- sx: [{
1953
- borderBottom: "1px solid",
1954
- borderColor: "divider",
1955
- p: "8px",
1956
- minHeight: "57px"
1957
- }, ...y(s)],
1958
- children: a ? /* @__PURE__ */ I(m, {
1959
- direction: "row",
1960
- spacing: .5,
1961
- sx: {
1962
- alignItems: "center",
1963
- flexWrap: "wrap"
1964
- },
1965
- children: [
1966
- /* @__PURE__ */ I(yt, {
1967
- disabled: i,
1968
- inputProps: { "aria-label": "Text format" },
1969
- onChange: (e) => {
1970
- let t = e.target.value;
1971
- if (t) {
1972
- if (t === "p") {
1973
- a.chain().focus().setParagraph().run();
1974
- return;
1975
- }
1976
- if (t.startsWith("h")) {
1977
- let e = parseInt(t.replace("h", ""));
1978
- !isNaN(e) && e >= 1 && e <= 6 && a.chain().focus().setHeading({ level: e }).run();
1979
- }
1980
- }
1981
- },
1982
- value: kt(a),
1983
- children: [/* @__PURE__ */ F(L, {
1984
- disabled: i || !a.can().chain().focus().setParagraph().run(),
1985
- value: "p",
1986
- children: "Paragraph"
1987
- }), [
1988
- 1,
1989
- 2,
1990
- 3,
1991
- 4,
1992
- 5,
1993
- 6
1994
- ].map((e) => /* @__PURE__ */ I(L, {
1995
- disabled: i || !a.can().chain().focus().setHeading({ level: e }).run(),
1996
- value: `h${e}`,
1997
- children: ["Heading ", e]
1998
- }, e))]
1999
- }),
2000
- /* @__PURE__ */ F($, {
2001
- active: a.isActive("bold"),
2002
- disabled: i || !a.can().chain().focus().toggleBold().run(),
2003
- label: "Bold",
2004
- onClick: () => {
2005
- a.chain().focus().toggleBold().run();
2006
- },
2007
- children: /* @__PURE__ */ F(xt, {})
2008
- }),
2009
- /* @__PURE__ */ F($, {
2010
- active: a.isActive("italic"),
2011
- disabled: i || !a.can().chain().focus().toggleItalic().run(),
2012
- label: "Italic",
2013
- onClick: () => {
2014
- a.chain().focus().toggleItalic().run();
2015
- },
2016
- children: /* @__PURE__ */ F(St, {})
2017
- }),
2018
- /* @__PURE__ */ F($, {
2019
- active: a.isActive("strike"),
2020
- disabled: i || !a.can().chain().focus().toggleStrike().run(),
2021
- label: "Strikethrough",
2022
- onClick: () => {
2023
- a.chain().focus().toggleStrike().run();
2024
- },
2025
- children: /* @__PURE__ */ F(Et, {})
2026
- }),
2027
- /* @__PURE__ */ F($, {
2028
- active: a.isActive("codeBlock"),
2029
- disabled: i || !a.can().chain().focus().toggleCodeBlock().run(),
2030
- label: "Code block",
2031
- onClick: () => {
2032
- a.chain().focus().toggleCodeBlock().run();
2033
- },
2034
- children: /* @__PURE__ */ F(bt, {})
2035
- }),
2036
- /* @__PURE__ */ F($, {
2037
- active: a.isActive("bulletList"),
2038
- disabled: i || !a.can().chain().focus().toggleBulletList().run(),
2039
- label: "Bulleted list",
2040
- onClick: () => {
2041
- a.chain().focus().toggleBulletList().run();
2042
- },
2043
- children: /* @__PURE__ */ F(Ct, {})
2044
- }),
2045
- /* @__PURE__ */ F($, {
2046
- active: a.isActive("orderedList"),
2047
- disabled: i || !a.can().chain().focus().toggleOrderedList().run(),
2048
- label: "Numbered list",
2049
- onClick: () => {
2050
- a.chain().focus().toggleOrderedList().run();
2051
- },
2052
- children: /* @__PURE__ */ F(wt, {})
2053
- }),
2054
- /* @__PURE__ */ F($, {
2055
- disabled: i,
2056
- label: "Set link",
2057
- onClick: (e) => {
2058
- g(a.getAttributes("link").href ?? ""), p(e.currentTarget), d(!0);
2059
- },
2060
- children: /* @__PURE__ */ F(Tt, {})
2061
- }),
2062
- /* @__PURE__ */ F($, {
2063
- active: a.isActive("link"),
2064
- disabled: i || !a.can().chain().focus().unsetLink().run(),
2065
- label: "Remove link",
2066
- onClick: () => {
2067
- a.chain().focus().unsetLink().run();
2068
- },
2069
- children: /* @__PURE__ */ F(Tt, {})
2070
- })
2071
- ]
2072
- }) : null
2073
- }), /* @__PURE__ */ F(xe, {
2074
- anchorEl: f,
2075
- placement: "bottom-start",
2076
- onClose: () => {
2077
- d(!1), p(null), g("");
2078
- },
2079
- open: !i && u,
2080
- children: /* @__PURE__ */ F(Se, { children: /* @__PURE__ */ F(ge, { children: /* @__PURE__ */ F(N, {
2081
- name: "url",
2082
- label: "URL",
2083
- onChange: (e) => {
2084
- g(e.target.value);
2085
- },
2086
- onKeyUp: (e) => {
2087
- if (e.key === "Enter") {
2088
- if (h === "") {
2089
- a?.chain().focus().extendMarkRange("link").unsetLink().run();
2090
- return;
2091
- }
2092
- a?.chain().focus().setLink({ href: h }).run(), d(!1), p(null), g("");
2093
- }
2094
- },
2095
- value: h
2096
- }) }) })
2097
- })] });
2098
- });
2099
- Ot.displayName = "STextEditorToolbar";
2100
- function kt(e) {
2101
- if (e.isActive("paragraph")) return "p";
2102
- for (let t of [
2103
- 1,
2104
- 2,
2105
- 3,
2106
- 4,
2107
- 5,
2108
- 6
2109
- ]) if (e.isActive("heading", { level: t })) return `h${t}`;
2110
- return "p";
2111
- }
2112
- var $ = P.forwardRef(function({ active: e, children: t, disabled: n, label: r, onClick: i }, a) {
2113
- return /* @__PURE__ */ F(_, {
2114
- "aria-label": r,
2115
- "aria-pressed": e,
2116
- color: e ? "primary" : "inherit",
2117
- disabled: n,
2118
- onClick: i,
2119
- ref: a,
2120
- children: t
2121
- });
2122
- });
2123
- //#endregion
2124
- export { Ot as t };