@e-llm-studio/instant-learning 0.0.82 → 0.0.84

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 (223) hide show
  1. package/dist/cjs/features/DocumentLearning/DocumentLearning.js +2 -0
  2. package/dist/cjs/features/DocumentLearning/DocumentLearning.js.map +1 -0
  3. package/dist/cjs/features/DocumentLearning/InstantLearning.module.css.js +2 -0
  4. package/dist/cjs/features/DocumentLearning/InstantLearning.module.css.js.map +1 -0
  5. package/dist/cjs/features/DocumentLearning/_components/AudioWaveform.js +2 -0
  6. package/dist/cjs/features/DocumentLearning/_components/AudioWaveform.js.map +1 -0
  7. package/dist/cjs/features/DocumentLearning/_components/BookLearningForm.js +2 -0
  8. package/dist/cjs/features/DocumentLearning/_components/BookLearningForm.js.map +1 -0
  9. package/dist/cjs/features/DocumentLearning/_components/ChatComponent.js +2 -0
  10. package/dist/cjs/features/DocumentLearning/_components/ChatComponent.js.map +1 -0
  11. package/dist/cjs/features/DocumentLearning/_components/ConflictingLearningWarnCard.js +2 -0
  12. package/dist/cjs/features/DocumentLearning/_components/ConflictingLearningWarnCard.js.map +1 -0
  13. package/dist/cjs/features/DocumentLearning/_components/MessageRendering.js +2 -0
  14. package/dist/cjs/features/DocumentLearning/_components/MessageRendering.js.map +1 -0
  15. package/dist/cjs/features/DocumentLearning/_components/MinimizedThinkingSteps.js +2 -0
  16. package/dist/cjs/features/DocumentLearning/_components/MinimizedThinkingSteps.js.map +1 -0
  17. package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowDown.js +2 -0
  18. package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowDown.js.map +1 -0
  19. package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowIconBlue.js +2 -0
  20. package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowIconBlue.js.map +1 -0
  21. package/dist/cjs/features/DocumentLearning/_components/_svg/CompleteIconGreen.js +2 -0
  22. package/dist/cjs/features/DocumentLearning/_components/_svg/CompleteIconGreen.js.map +1 -0
  23. package/dist/cjs/features/DocumentLearning/_components/_svg/NewChatIcon.js +2 -0
  24. package/dist/cjs/features/DocumentLearning/_components/_svg/NewChatIcon.js.map +1 -0
  25. package/dist/cjs/features/InstantLearning/InstantLearning.js +1 -1
  26. package/dist/cjs/features/InstantLearning/_components/ChatComponent.js +1 -1
  27. package/dist/cjs/features/InstantLearning/_components/ConflictingLearningWarnCard.js +1 -1
  28. package/dist/cjs/features/InstantLearning/_components/ConflictingLearningWarnCardDB.js +1 -1
  29. package/dist/cjs/features/InstantLearning/_components/ContextualConflictDBCard.js +1 -1
  30. package/dist/cjs/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
  31. package/dist/cjs/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
  32. package/dist/cjs/features/WtaWnta/WtaWnta.js +1 -1
  33. package/dist/cjs/features/WtaWnta/_components/AgentDetailsForm.js +1 -1
  34. package/dist/cjs/features/WtaWnta/_components/SimilarConflictingCard.js +1 -1
  35. package/dist/cjs/features/WtaWnta/_components/ValidationCard.js +1 -1
  36. package/dist/cjs/index.js +1 -1
  37. package/dist/cjs/node_modules/@mui/material/Box/Box.js +1 -1
  38. package/dist/cjs/node_modules/@mui/material/Box/Box.js.map +1 -1
  39. package/dist/cjs/node_modules/@mui/material/ButtonBase/TouchRipple.js +5 -5
  40. package/dist/cjs/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
  41. package/dist/cjs/node_modules/@mui/material/CircularProgress/CircularProgress.js +5 -5
  42. package/dist/cjs/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
  43. package/dist/cjs/node_modules/@mui/material/Container/Container.js +1 -1
  44. package/dist/cjs/node_modules/@mui/material/Container/Container.js.map +1 -1
  45. package/dist/cjs/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
  46. package/dist/cjs/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
  47. package/dist/cjs/node_modules/@mui/material/Grid/Grid.js +1 -1
  48. package/dist/cjs/node_modules/@mui/material/Grid/Grid.js.map +1 -1
  49. package/dist/cjs/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
  50. package/dist/cjs/node_modules/@mui/material/Hidden/HiddenCss.js.map +1 -1
  51. package/dist/cjs/node_modules/@mui/material/LinearProgress/LinearProgress.js +7 -7
  52. package/dist/cjs/node_modules/@mui/material/LinearProgress/LinearProgress.js.map +1 -1
  53. package/dist/cjs/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
  54. package/dist/cjs/node_modules/@mui/material/Link/getTextDecoration.js.map +1 -1
  55. package/dist/cjs/node_modules/@mui/material/Popper/Popper.js +1 -1
  56. package/dist/cjs/node_modules/@mui/material/Popper/Popper.js.map +1 -1
  57. package/dist/cjs/node_modules/@mui/material/Skeleton/Skeleton.js +5 -5
  58. package/dist/cjs/node_modules/@mui/material/Skeleton/Skeleton.js.map +1 -1
  59. package/dist/cjs/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
  60. package/dist/cjs/node_modules/@mui/material/Snackbar/Snackbar.js.map +1 -1
  61. package/dist/cjs/node_modules/@mui/material/Stack/Stack.js +1 -1
  62. package/dist/cjs/node_modules/@mui/material/Stack/Stack.js.map +1 -1
  63. package/dist/cjs/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
  64. package/dist/cjs/node_modules/@mui/material/ToggleButton/ToggleButton.js.map +1 -1
  65. package/dist/cjs/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
  66. package/dist/cjs/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
  67. package/dist/cjs/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
  68. package/dist/cjs/node_modules/@mui/material/Unstable_Grid2/Grid2.js.map +1 -1
  69. package/dist/cjs/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
  70. package/dist/cjs/node_modules/@mui/material/styles/CssVarsProvider.js.map +1 -1
  71. package/dist/cjs/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
  72. package/dist/cjs/node_modules/@mui/material/styles/ThemeProvider.js.map +1 -1
  73. package/dist/cjs/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
  74. package/dist/cjs/node_modules/@mui/material/styles/experimental_extendTheme.js.map +1 -1
  75. package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +1 -1
  76. package/dist/cjs/node_modules/@mui/material/styles/useTheme.js.map +1 -1
  77. package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  78. package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  79. package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  80. package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
  81. package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
  82. package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
  83. package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.js +1 -1
  84. package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.js.map +1 -1
  85. package/dist/cjs/node_modules/react-hot-toast/dist/index.mjs.js +172 -0
  86. package/dist/cjs/node_modules/react-hot-toast/dist/index.mjs.js.map +1 -0
  87. package/dist/cjs/node_modules/react-hot-toast/node_modules/goober/dist/goober.modern.js +2 -0
  88. package/dist/cjs/node_modules/react-hot-toast/node_modules/goober/dist/goober.modern.js.map +1 -0
  89. package/dist/cjs/utils/bookGenieAPI.js +2 -0
  90. package/dist/cjs/utils/bookGenieAPI.js.map +1 -0
  91. package/dist/features/DocumentLearning/DocumentLearning.js +2 -0
  92. package/dist/features/DocumentLearning/DocumentLearning.js.map +1 -0
  93. package/dist/features/DocumentLearning/InstantLearning.module.css.js +2 -0
  94. package/dist/features/DocumentLearning/InstantLearning.module.css.js.map +1 -0
  95. package/dist/features/DocumentLearning/_components/AudioWaveform.js +2 -0
  96. package/dist/features/DocumentLearning/_components/AudioWaveform.js.map +1 -0
  97. package/dist/features/DocumentLearning/_components/BookLearningForm.js +2 -0
  98. package/dist/features/DocumentLearning/_components/BookLearningForm.js.map +1 -0
  99. package/dist/features/DocumentLearning/_components/ChatComponent.js +2 -0
  100. package/dist/features/DocumentLearning/_components/ChatComponent.js.map +1 -0
  101. package/dist/features/DocumentLearning/_components/ConflictingLearningWarnCard.js +2 -0
  102. package/dist/features/DocumentLearning/_components/ConflictingLearningWarnCard.js.map +1 -0
  103. package/dist/features/DocumentLearning/_components/MessageRendering.js +2 -0
  104. package/dist/features/DocumentLearning/_components/MessageRendering.js.map +1 -0
  105. package/dist/features/DocumentLearning/_components/MinimizedThinkingSteps.js +2 -0
  106. package/dist/features/DocumentLearning/_components/MinimizedThinkingSteps.js.map +1 -0
  107. package/dist/features/DocumentLearning/_components/_svg/ArrowDown.js +2 -0
  108. package/dist/features/DocumentLearning/_components/_svg/ArrowDown.js.map +1 -0
  109. package/dist/features/DocumentLearning/_components/_svg/ArrowIconBlue.js +2 -0
  110. package/dist/features/DocumentLearning/_components/_svg/ArrowIconBlue.js.map +1 -0
  111. package/dist/features/DocumentLearning/_components/_svg/CompleteIconGreen.js +2 -0
  112. package/dist/features/DocumentLearning/_components/_svg/CompleteIconGreen.js.map +1 -0
  113. package/dist/features/DocumentLearning/_components/_svg/NewChatIcon.js +2 -0
  114. package/dist/features/DocumentLearning/_components/_svg/NewChatIcon.js.map +1 -0
  115. package/dist/features/InstantLearning/InstantLearning.js +1 -1
  116. package/dist/features/InstantLearning/_components/ChatComponent.js +1 -1
  117. package/dist/features/InstantLearning/_components/ConflictingLearningWarnCard.js +1 -1
  118. package/dist/features/InstantLearning/_components/ConflictingLearningWarnCardDB.js +1 -1
  119. package/dist/features/InstantLearning/_components/ContextualConflictDBCard.js +1 -1
  120. package/dist/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
  121. package/dist/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
  122. package/dist/features/WtaWnta/WtaWnta.js +1 -1
  123. package/dist/features/WtaWnta/_components/AgentDetailsForm.js +1 -1
  124. package/dist/features/WtaWnta/_components/SimilarConflictingCard.js +1 -1
  125. package/dist/features/WtaWnta/_components/ValidationCard.js +1 -1
  126. package/dist/index.js +1 -1
  127. package/dist/node_modules/@mui/material/Box/Box.js +1 -1
  128. package/dist/node_modules/@mui/material/Box/Box.js.map +1 -1
  129. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js +5 -5
  130. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
  131. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js +5 -5
  132. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
  133. package/dist/node_modules/@mui/material/Container/Container.js +1 -1
  134. package/dist/node_modules/@mui/material/Container/Container.js.map +1 -1
  135. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
  136. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
  137. package/dist/node_modules/@mui/material/Grid/Grid.js +1 -1
  138. package/dist/node_modules/@mui/material/Grid/Grid.js.map +1 -1
  139. package/dist/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
  140. package/dist/node_modules/@mui/material/Hidden/HiddenCss.js.map +1 -1
  141. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js +7 -7
  142. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js.map +1 -1
  143. package/dist/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
  144. package/dist/node_modules/@mui/material/Link/getTextDecoration.js.map +1 -1
  145. package/dist/node_modules/@mui/material/Popper/Popper.js +1 -1
  146. package/dist/node_modules/@mui/material/Popper/Popper.js.map +1 -1
  147. package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +5 -5
  148. package/dist/node_modules/@mui/material/Skeleton/Skeleton.js.map +1 -1
  149. package/dist/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
  150. package/dist/node_modules/@mui/material/Snackbar/Snackbar.js.map +1 -1
  151. package/dist/node_modules/@mui/material/Stack/Stack.js +1 -1
  152. package/dist/node_modules/@mui/material/Stack/Stack.js.map +1 -1
  153. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
  154. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js.map +1 -1
  155. package/dist/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
  156. package/dist/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
  157. package/dist/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
  158. package/dist/node_modules/@mui/material/Unstable_Grid2/Grid2.js.map +1 -1
  159. package/dist/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
  160. package/dist/node_modules/@mui/material/styles/CssVarsProvider.js.map +1 -1
  161. package/dist/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
  162. package/dist/node_modules/@mui/material/styles/ThemeProvider.js.map +1 -1
  163. package/dist/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
  164. package/dist/node_modules/@mui/material/styles/experimental_extendTheme.js.map +1 -1
  165. package/dist/node_modules/@mui/material/styles/useTheme.js +1 -1
  166. package/dist/node_modules/@mui/material/styles/useTheme.js.map +1 -1
  167. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  168. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  169. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  170. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
  171. package/dist/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
  172. package/dist/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
  173. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js +1 -1
  174. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js.map +1 -1
  175. package/dist/node_modules/react-hot-toast/dist/index.mjs.js +172 -0
  176. package/dist/node_modules/react-hot-toast/dist/index.mjs.js.map +1 -0
  177. package/dist/node_modules/react-hot-toast/node_modules/goober/dist/goober.modern.js +2 -0
  178. package/dist/node_modules/react-hot-toast/node_modules/goober/dist/goober.modern.js.map +1 -0
  179. package/dist/types/src/features/DocumentLearning/DocumentLearning.d.ts +21 -0
  180. package/dist/types/src/features/DocumentLearning/DocumentLearning.d.ts.map +1 -0
  181. package/dist/types/src/features/DocumentLearning/_components/AudioWaveform.d.ts +13 -0
  182. package/dist/types/src/features/DocumentLearning/_components/AudioWaveform.d.ts.map +1 -0
  183. package/dist/types/src/features/DocumentLearning/_components/BookLearningForm.d.ts +23 -0
  184. package/dist/types/src/features/DocumentLearning/_components/BookLearningForm.d.ts.map +1 -0
  185. package/dist/types/src/features/DocumentLearning/_components/ChatComponent.d.ts +61 -0
  186. package/dist/types/src/features/DocumentLearning/_components/ChatComponent.d.ts.map +1 -0
  187. package/dist/types/src/features/DocumentLearning/_components/ConflictingLearningWarnCard.d.ts +13 -0
  188. package/dist/types/src/features/DocumentLearning/_components/ConflictingLearningWarnCard.d.ts.map +1 -0
  189. package/dist/types/src/features/DocumentLearning/_components/ConflictingLearningWarnCardDB.d.ts +41 -0
  190. package/dist/types/src/features/DocumentLearning/_components/ConflictingLearningWarnCardDB.d.ts.map +1 -0
  191. package/dist/types/src/features/DocumentLearning/_components/ContextualChatComponent.d.ts +62 -0
  192. package/dist/types/src/features/DocumentLearning/_components/ContextualChatComponent.d.ts.map +1 -0
  193. package/dist/types/src/features/DocumentLearning/_components/ContextualConflictDBCard.d.ts +30 -0
  194. package/dist/types/src/features/DocumentLearning/_components/ContextualConflictDBCard.d.ts.map +1 -0
  195. package/dist/types/src/features/DocumentLearning/_components/ContextualLearningForm.d.ts +1 -0
  196. package/dist/types/src/features/DocumentLearning/_components/ContextualLearningForm.d.ts.map +1 -0
  197. package/dist/types/src/features/DocumentLearning/_components/LearningDetailsForm.d.ts +71 -0
  198. package/dist/types/src/features/DocumentLearning/_components/LearningDetailsForm.d.ts.map +1 -0
  199. package/dist/types/src/features/DocumentLearning/_components/MessageRendering.d.ts +9 -0
  200. package/dist/types/src/features/DocumentLearning/_components/MessageRendering.d.ts.map +1 -0
  201. package/dist/types/src/features/DocumentLearning/_components/MinimizedThinkingSteps.d.ts +3 -0
  202. package/dist/types/src/features/DocumentLearning/_components/MinimizedThinkingSteps.d.ts.map +1 -0
  203. package/dist/types/src/features/DocumentLearning/_components/SimilarLearningCard.d.ts +20 -0
  204. package/dist/types/src/features/DocumentLearning/_components/SimilarLearningCard.d.ts.map +1 -0
  205. package/dist/types/src/features/DocumentLearning/_components/TemplateRetrievalForm.d.ts +50 -0
  206. package/dist/types/src/features/DocumentLearning/_components/TemplateRetrievalForm.d.ts.map +1 -0
  207. package/dist/types/src/features/DocumentLearning/_components/TooltipComponent.d.ts +8 -0
  208. package/dist/types/src/features/DocumentLearning/_components/TooltipComponent.d.ts.map +1 -0
  209. package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowDown.d.ts +3 -0
  210. package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowDown.d.ts.map +1 -0
  211. package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowIconBlue.d.ts +3 -0
  212. package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowIconBlue.d.ts.map +1 -0
  213. package/dist/types/src/features/DocumentLearning/_components/_svg/CompleteIconGreen.d.ts +3 -0
  214. package/dist/types/src/features/DocumentLearning/_components/_svg/CompleteIconGreen.d.ts.map +1 -0
  215. package/dist/types/src/features/DocumentLearning/_components/_svg/NewChatIcon.d.ts +3 -0
  216. package/dist/types/src/features/DocumentLearning/_components/_svg/NewChatIcon.d.ts.map +1 -0
  217. package/dist/types/src/index.d.ts +1 -0
  218. package/dist/types/src/index.d.ts.map +1 -1
  219. package/dist/types/src/utils/bookGenieAPI.d.ts +14 -0
  220. package/dist/types/src/utils/bookGenieAPI.d.ts.map +1 -0
  221. package/dist/utils/bookGenieAPI.js +2 -0
  222. package/dist/utils/bookGenieAPI.js.map +1 -0
  223. package/package.json +2 -1
@@ -1,2 +1,2 @@
1
- import*as s from"react";import"../../../@emotion/styled/dist/emotion-styled.browser.esm.js";import"../../../@emotion/react/dist/emotion-react.browser.esm.js";import"../../styled-engine/StyledEngineProvider/StyledEngineProvider.js";import"../../styled-engine/GlobalStyles/GlobalStyles.js";import"../../system/esm/GlobalStyles/GlobalStyles.js";import"../../system/esm/borders.js";import"../../../../_virtual/index3.js";import"../../system/esm/display.js";import"../../system/esm/flexbox.js";import"../../system/esm/cssGrid.js";import"../../system/esm/palette.js";import"../../system/esm/positions.js";import"../../system/esm/shadows.js";import"../../system/esm/sizing.js";import"../../system/esm/spacing.js";import"../../system/esm/responsivePropType.js";import"../../system/esm/typography.js";import"../../system/esm/styleFunctionSx/styleFunctionSx.js";import"../../system/esm/getThemeValue.js";import"../../system/esm/Box/Box.js";import"../../system/esm/Box/boxClasses.js";import e from"../../system/esm/useTheme.js";import"react/jsx-runtime";import"../../system/esm/createStyled.js";import"../../system/esm/styled.js";import"../../system/esm/ThemeProvider/ThemeProvider.js";import"../../private-theming/ThemeProvider/ThemeProvider.js";import"../../private-theming/useTheme/ThemeContext.js";import"../../system/esm/RtlProvider/index.js";import"../../system/esm/Container/createContainer.js";import"../../system/esm/Container/Container.js";import"../../system/esm/Container/containerClasses.js";import"../../system/esm/Unstable_Grid/Grid.js";import"../../system/esm/Unstable_Grid/createGrid.js";import"../../system/esm/Unstable_Grid/gridClasses.js";import"../../system/esm/Stack/Stack.js";import"../../system/esm/Stack/createStack.js";import"../../system/esm/Stack/stackClasses.js";import t from"./defaultTheme.js";import m from"./identifier.js";function r(){const r=e(t);return"production"!==process.env.NODE_ENV&&s.useDebugValue(r),r[m]||r}export{r as default};
1
+ import*as s from"react";import"../../system/esm/GlobalStyles/GlobalStyles.js";import"../../system/esm/borders.js";import"../../../../_virtual/index3.js";import"../../system/esm/display.js";import"../../system/esm/flexbox.js";import"../../system/esm/cssGrid.js";import"../../system/esm/palette.js";import"../../system/esm/positions.js";import"../../system/esm/shadows.js";import"../../system/esm/sizing.js";import"../../system/esm/spacing.js";import"../../system/esm/responsivePropType.js";import"../../system/esm/typography.js";import"../../system/esm/styleFunctionSx/styleFunctionSx.js";import"../../system/esm/getThemeValue.js";import"../../system/esm/Box/Box.js";import"../../system/esm/Box/boxClasses.js";import e from"../../system/esm/useTheme.js";import"react/jsx-runtime";import"../../system/esm/createStyled.js";import"../../system/esm/styled.js";import"../../system/esm/ThemeProvider/ThemeProvider.js";import"../../private-theming/ThemeProvider/ThemeProvider.js";import"../../private-theming/useTheme/ThemeContext.js";import"../../system/esm/RtlProvider/index.js";import"../../system/esm/Container/createContainer.js";import"../../system/esm/Container/Container.js";import"../../system/esm/Container/containerClasses.js";import"../../system/esm/Unstable_Grid/Grid.js";import"../../system/esm/Unstable_Grid/createGrid.js";import"../../system/esm/Unstable_Grid/gridClasses.js";import"../../system/esm/Stack/Stack.js";import"../../system/esm/Stack/createStack.js";import"../../system/esm/Stack/stackClasses.js";import t from"./defaultTheme.js";import m from"./identifier.js";function r(){const r=e(t);return"production"!==process.env.NODE_ENV&&s.useDebugValue(r),r[m]||r}export{r as default};
2
2
  //# sourceMappingURL=useTheme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.js","sources":["../../../../../node_modules/@mui/material/styles/useTheme.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}"],"names":["useTheme","theme","useThemeSystem","defaultTheme","process","env","NODE_ENV","React","useDebugValue","THEME_ID"],"mappings":"qzDAMe,SAASA,IACtB,MAAMC,EAAQC,EAAeC,GAK7B,MAJ6B,eAAzBC,QAAQC,IAAIC,UAEdC,EAAMC,cAAcP,GAEfA,EAAMQ,IAAaR,CAC5B"}
1
+ {"version":3,"file":"useTheme.js","sources":["../../../../../node_modules/@mui/material/styles/useTheme.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}"],"names":["useTheme","theme","useThemeSystem","defaultTheme","process","env","NODE_ENV","React","useDebugValue","THEME_ID"],"mappings":"6iDAMe,SAASA,IACtB,MAAMC,EAAQC,EAAeC,GAK7B,MAJ6B,eAAzBC,QAAQC,IAAIC,UAEdC,EAAMC,cAAcP,GAEfA,EAAMQ,IAAaR,CAC5B"}
@@ -1,2 +1,2 @@
1
- import"react";import e from"../../../../../_virtual/index3.js";import"../../../../@emotion/styled/dist/emotion-styled.browser.esm.js";import"../../../../@emotion/react/dist/emotion-react.browser.esm.js";import"../../../styled-engine/StyledEngineProvider/StyledEngineProvider.js";import t from"../../../styled-engine/GlobalStyles/GlobalStyles.js";import o from"../useTheme.js";import{jsx as r}from"react/jsx-runtime";function s({styles:e,themeId:s,defaultTheme:i={}}){const n=o(i),m="function"==typeof e?e(s&&n[s]||n):e;return r(t,{styles:m})}"production"!==process.env.NODE_ENV&&(s.propTypes={defaultTheme:e.object,styles:e.oneOfType([e.array,e.func,e.number,e.object,e.string,e.bool]),themeId:e.string});export{s as default};
1
+ import"react";import e from"../../../../../_virtual/index3.js";import t from"../useTheme.js";import{jsx as o}from"react/jsx-runtime";import r from"../../../styled-engine/GlobalStyles/GlobalStyles.js";function s({styles:e,themeId:s,defaultTheme:n={}}){const m=t(n),l="function"==typeof e?e(s&&m[s]||m):e;return o(r,{styles:l})}"production"!==process.env.NODE_ENV&&(s.propTypes={defaultTheme:e.object,styles:e.oneOfType([e.array,e.func,e.number,e.object,e.string,e.bool]),themeId:e.string});export{s as default};
2
2
  //# sourceMappingURL=GlobalStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalStyles.js","sources":["../../../../../../node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as MuiGlobalStyles } from '@mui/styled-engine';\nimport useTheme from '../useTheme';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GlobalStyles({\n styles,\n themeId,\n defaultTheme = {}\n}) {\n const upperTheme = useTheme(defaultTheme);\n const globalStyles = typeof styles === 'function' ? styles(themeId ? upperTheme[themeId] || upperTheme : upperTheme) : styles;\n return /*#__PURE__*/_jsx(MuiGlobalStyles, {\n styles: globalStyles\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n defaultTheme: PropTypes.object,\n /**\n * @ignore\n */\n styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool]),\n /**\n * @ignore\n */\n themeId: PropTypes.string\n} : void 0;\nexport default GlobalStyles;"],"names":["GlobalStyles","styles","themeId","defaultTheme","upperTheme","useTheme","globalStyles","_jsx","MuiGlobalStyles","process","env","NODE_ENV","propTypes","PropTypes","object","oneOfType","array","func","number","string","bool"],"mappings":"gaAOA,SAASA,GAAaC,OACpBA,EAAMC,QACNA,EAAOC,aACPA,EAAe,CAAE,IAEjB,MAAMC,EAAaC,EAASF,GACtBG,EAAiC,mBAAXL,EAAwBA,EAAOC,GAAUE,EAAWF,IAAyBE,GAAcH,EACvH,OAAoBM,EAAKC,EAAiB,CACxCP,OAAQK,GAEZ,CACyB,eAAzBG,QAAQC,IAAIC,WAA4BX,EAAaY,UAAmC,CAQtFT,aAAcU,EAAUC,OAIxBb,OAAQY,EAAgDE,UAAU,CAACF,EAAUG,MAAOH,EAAUI,KAAMJ,EAAUK,OAAQL,EAAUC,OAAQD,EAAUM,OAAQN,EAAUO,OAIpKlB,QAASW,EAAUM"}
1
+ {"version":3,"file":"GlobalStyles.js","sources":["../../../../../../node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as MuiGlobalStyles } from '@mui/styled-engine';\nimport useTheme from '../useTheme';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GlobalStyles({\n styles,\n themeId,\n defaultTheme = {}\n}) {\n const upperTheme = useTheme(defaultTheme);\n const globalStyles = typeof styles === 'function' ? styles(themeId ? upperTheme[themeId] || upperTheme : upperTheme) : styles;\n return /*#__PURE__*/_jsx(MuiGlobalStyles, {\n styles: globalStyles\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n defaultTheme: PropTypes.object,\n /**\n * @ignore\n */\n styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool]),\n /**\n * @ignore\n */\n themeId: PropTypes.string\n} : void 0;\nexport default GlobalStyles;"],"names":["GlobalStyles","styles","themeId","defaultTheme","upperTheme","useTheme","globalStyles","_jsx","MuiGlobalStyles","process","env","NODE_ENV","propTypes","PropTypes","object","oneOfType","array","func","number","string","bool"],"mappings":"wMAOA,SAASA,GAAaC,OACpBA,EAAMC,QACNA,EAAOC,aACPA,EAAe,CAAE,IAEjB,MAAMC,EAAaC,EAASF,GACtBG,EAAiC,mBAAXL,EAAwBA,EAAOC,GAAUE,EAAWF,IAAyBE,GAAcH,EACvH,OAAoBM,EAAKC,EAAiB,CACxCP,OAAQK,GAEZ,CACyB,eAAzBG,QAAQC,IAAIC,WAA4BX,EAAaY,UAAmC,CAQtFT,aAAcU,EAAUC,OAIxBb,OAAQY,EAAgDE,UAAU,CAACF,EAAUG,MAAOH,EAAUI,KAAMJ,EAAUK,OAAQL,EAAUC,OAAQD,EAAUM,OAAQN,EAAUO,OAIpKlB,QAASW,EAAUM"}
@@ -1,2 +1,2 @@
1
- import e from"../../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import r from"../../../../../_virtual/index3.js";import t from"../../../private-theming/ThemeProvider/ThemeProvider.js";import i from"../../../private-theming/useTheme/useTheme.js";import n from"../../../utils/esm/exactProp/exactProp.js";import"../../../../@emotion/styled/dist/emotion-styled.browser.esm.js";import"../../../../@emotion/react/dist/emotion-react.browser.esm.js";import"../../../styled-engine/StyledEngineProvider/StyledEngineProvider.js";import"../../../styled-engine/GlobalStyles/GlobalStyles.js";import s from"../useThemeWithoutDefault.js";import m from"../RtlProvider/index.js";import p from"../DefaultPropsProvider/DefaultPropsProvider.js";import{jsx as d}from"react/jsx-runtime";import{T as c}from"../../../../@emotion/react/dist/emotion-element-f0de968e.browser.esm.js";const u={};function l(r,t,i,n=!1){return o.useMemo((()=>{const o=r&&t[r]||t;if("function"==typeof i){const s=i(o),m=r?e({},t,{[r]:s}):s;return n?()=>m:m}return e({},t,r?{[r]:i}:i)}),[r,t,i,n])}function h(e){const{children:o,theme:r,themeId:n}=e,h=s(u),a=i()||u;"production"!==process.env.NODE_ENV&&(null===h&&"function"==typeof r||n&&h&&!h[n]&&"function"==typeof r)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const f=l(n,h,r),v=l(n,a,r,!0),j="rtl"===f.direction;return d(t,{theme:v,children:d(c.Provider,{value:f,children:d(m,{value:j,children:d(p,{value:null==f?void 0:f.components,children:o})})})})}"production"!==process.env.NODE_ENV&&(h.propTypes={children:r.node,theme:r.oneOfType([r.func,r.object]).isRequired,themeId:r.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(h.propTypes=n(h.propTypes));export{h as default};
1
+ import e from"../../../../@babel/runtime/helpers/esm/extends.js";import*as r from"react";import o from"../../../../../_virtual/index3.js";import t from"../../../private-theming/ThemeProvider/ThemeProvider.js";import i from"../../../private-theming/useTheme/useTheme.js";import n from"../../../utils/esm/exactProp/exactProp.js";import m from"../useThemeWithoutDefault.js";import s from"../RtlProvider/index.js";import p from"../DefaultPropsProvider/DefaultPropsProvider.js";import{jsx as c}from"react/jsx-runtime";import{T as u}from"../../../../@emotion/react/dist/emotion-element-f0de968e.browser.esm.js";const d={};function h(o,t,i,n=!1){return r.useMemo((()=>{const r=o&&t[o]||t;if("function"==typeof i){const m=i(r),s=o?e({},t,{[o]:m}):m;return n?()=>s:s}return e({},t,o?{[o]:i}:i)}),[o,t,i,n])}function f(e){const{children:r,theme:o,themeId:n}=e,f=m(d),a=i()||d;"production"!==process.env.NODE_ENV&&(null===f&&"function"==typeof o||n&&f&&!f[n]&&"function"==typeof o)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const l=h(n,f,o),v=h(n,a,o,!0),j="rtl"===l.direction;return c(t,{theme:v,children:c(u.Provider,{value:l,children:c(s,{value:j,children:c(p,{value:null==l?void 0:l.components,children:r})})})})}"production"!==process.env.NODE_ENV&&(f.propTypes={children:o.node,theme:o.oneOfType([o.func,o.object]).isRequired,themeId:o.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(f.propTypes=n(f.propTypes));export{f as default};
2
2
  //# sourceMappingURL=ThemeProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.js","sources":["../../../../../../node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { ThemeProvider as MuiThemeProvider, useTheme as usePrivateTheme } from '@mui/private-theming';\nimport exactProp from '@mui/utils/exactProp';\nimport { ThemeContext as StyledEngineThemeContext } from '@mui/styled-engine';\nimport useThemeWithoutDefault from '../useThemeWithoutDefault';\nimport RtlProvider from '../RtlProvider';\nimport DefaultPropsProvider from '../DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst EMPTY_THEME = {};\nfunction useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {\n return React.useMemo(() => {\n const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;\n if (typeof localTheme === 'function') {\n const mergedTheme = localTheme(resolvedTheme);\n const result = themeId ? _extends({}, upperTheme, {\n [themeId]: mergedTheme\n }) : mergedTheme;\n // must return a function for the private theme to NOT merge with the upper theme.\n // see the test case \"use provided theme from a callback\" in ThemeProvider.test.js\n if (isPrivate) {\n return () => result;\n }\n return result;\n }\n return themeId ? _extends({}, upperTheme, {\n [themeId]: localTheme\n }) : _extends({}, upperTheme, localTheme);\n }, [themeId, upperTheme, localTheme, isPrivate]);\n}\n\n/**\n * This component makes the `theme` available down the React tree.\n * It should preferably be used at **the root of your component tree**.\n *\n * <ThemeProvider theme={theme}> // existing use case\n * <ThemeProvider theme={{ id: theme }}> // theme scoping\n */\nfunction ThemeProvider(props) {\n const {\n children,\n theme: localTheme,\n themeId\n } = props;\n const upperTheme = useThemeWithoutDefault(EMPTY_THEME);\n const upperPrivateTheme = usePrivateTheme() || EMPTY_THEME;\n if (process.env.NODE_ENV !== 'production') {\n if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {\n console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\\n'));\n }\n }\n const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);\n const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);\n const rtlValue = engineTheme.direction === 'rtl';\n return /*#__PURE__*/_jsx(MuiThemeProvider, {\n theme: privateTheme,\n children: /*#__PURE__*/_jsx(StyledEngineThemeContext.Provider, {\n value: engineTheme,\n children: /*#__PURE__*/_jsx(RtlProvider, {\n value: rtlValue,\n children: /*#__PURE__*/_jsx(DefaultPropsProvider, {\n value: engineTheme == null ? void 0 : engineTheme.components,\n children: children\n })\n })\n })\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.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 * Your component tree.\n */\n children: PropTypes.node,\n /**\n * A theme object. You can provide a function to extend the outer theme.\n */\n theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,\n /**\n * The design system's unique id for getting the corresponded theme when there are multiple design systems.\n */\n themeId: PropTypes.string\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;\n}\nexport default ThemeProvider;"],"names":["EMPTY_THEME","useThemeScoping","themeId","upperTheme","localTheme","isPrivate","React","useMemo","resolvedTheme","mergedTheme","result","_extends","ThemeProvider","props","children","theme","useThemeWithoutDefault","upperPrivateTheme","usePrivateTheme","process","env","NODE_ENV","console","error","join","engineTheme","privateTheme","rtlValue","direction","_jsx","MuiThemeProvider","StyledEngineThemeContext","Provider","value","RtlProvider","DefaultPropsProvider","components","propTypes","PropTypes","node","oneOfType","func","object","isRequired","string","exactProp"],"mappings":"i3BAYA,MAAMA,EAAc,CAAA,EACpB,SAASC,EAAgBC,EAASC,EAAYC,EAAYC,GAAY,GACpE,OAAOC,EAAMC,SAAQ,KACnB,MAAMC,EAAgBN,GAAUC,EAAWD,IAAyBC,EACpE,GAA0B,mBAAfC,EAA2B,CACpC,MAAMK,EAAcL,EAAWI,GACzBE,EAASR,EAAUS,EAAS,CAAA,EAAIR,EAAY,CAChDD,CAACA,GAAUO,IACRA,EAGL,OAAIJ,EACK,IAAMK,EAERA,CACR,CACD,OAAiBC,EAAS,CAAE,EAAER,EAAvBD,EAAmC,CACxCA,CAACA,GAAUE,GACiBA,EAAW,GACxC,CAACF,EAASC,EAAYC,EAAYC,GACvC,CASA,SAASO,EAAcC,GACrB,MAAMC,SACJA,EACAC,MAAOX,EAAUF,QACjBA,GACEW,EACEV,EAAaa,EAAuBhB,GACpCiB,EAAoBC,KAAqBlB,EAClB,eAAzBmB,QAAQC,IAAIC,WACK,OAAflB,GAA6C,mBAAfC,GAA6BF,GAAWC,IAAeA,EAAWD,IAAkC,mBAAfE,IACrHkB,QAAQC,MAAM,CAAC,+EAAgF,qDAAsD,GAAI,sCAAuC,6FAAkGC,KAAK,OAG3S,MAAMC,EAAcxB,EAAgBC,EAASC,EAAYC,GACnDsB,EAAezB,EAAgBC,EAASe,EAAmBb,GAAY,GACvEuB,EAAqC,QAA1BF,EAAYG,UAC7B,OAAoBC,EAAKC,EAAkB,CACzCf,MAAOW,EACPZ,SAAuBe,EAAKE,EAAyBC,SAAU,CAC7DC,MAAOR,EACPX,SAAuBe,EAAKK,EAAa,CACvCD,MAAON,EACPb,SAAuBe,EAAKM,EAAsB,CAChDF,MAAsB,MAAfR,OAAsB,EAASA,EAAYW,WAClDtB,SAAUA,SAKpB,CACyB,eAAzBK,QAAQC,IAAIC,WAA4BT,EAAcyB,UAAmC,CAQvFvB,SAAUwB,EAAUC,KAIpBxB,MAAOuB,EAAUE,UAAU,CAACF,EAAUG,KAAMH,EAAUI,SAASC,WAI/DzC,QAASoC,EAAUM,SAEQ,eAAzBzB,QAAQC,IAAIC,UACW,eAAzBF,QAAQC,IAAIC,WAA4BT,EAAcyB,UAAYQ,EAAUjC,EAAcyB"}
1
+ {"version":3,"file":"ThemeProvider.js","sources":["../../../../../../node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { ThemeProvider as MuiThemeProvider, useTheme as usePrivateTheme } from '@mui/private-theming';\nimport exactProp from '@mui/utils/exactProp';\nimport { ThemeContext as StyledEngineThemeContext } from '@mui/styled-engine';\nimport useThemeWithoutDefault from '../useThemeWithoutDefault';\nimport RtlProvider from '../RtlProvider';\nimport DefaultPropsProvider from '../DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst EMPTY_THEME = {};\nfunction useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {\n return React.useMemo(() => {\n const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;\n if (typeof localTheme === 'function') {\n const mergedTheme = localTheme(resolvedTheme);\n const result = themeId ? _extends({}, upperTheme, {\n [themeId]: mergedTheme\n }) : mergedTheme;\n // must return a function for the private theme to NOT merge with the upper theme.\n // see the test case \"use provided theme from a callback\" in ThemeProvider.test.js\n if (isPrivate) {\n return () => result;\n }\n return result;\n }\n return themeId ? _extends({}, upperTheme, {\n [themeId]: localTheme\n }) : _extends({}, upperTheme, localTheme);\n }, [themeId, upperTheme, localTheme, isPrivate]);\n}\n\n/**\n * This component makes the `theme` available down the React tree.\n * It should preferably be used at **the root of your component tree**.\n *\n * <ThemeProvider theme={theme}> // existing use case\n * <ThemeProvider theme={{ id: theme }}> // theme scoping\n */\nfunction ThemeProvider(props) {\n const {\n children,\n theme: localTheme,\n themeId\n } = props;\n const upperTheme = useThemeWithoutDefault(EMPTY_THEME);\n const upperPrivateTheme = usePrivateTheme() || EMPTY_THEME;\n if (process.env.NODE_ENV !== 'production') {\n if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {\n console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\\n'));\n }\n }\n const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);\n const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);\n const rtlValue = engineTheme.direction === 'rtl';\n return /*#__PURE__*/_jsx(MuiThemeProvider, {\n theme: privateTheme,\n children: /*#__PURE__*/_jsx(StyledEngineThemeContext.Provider, {\n value: engineTheme,\n children: /*#__PURE__*/_jsx(RtlProvider, {\n value: rtlValue,\n children: /*#__PURE__*/_jsx(DefaultPropsProvider, {\n value: engineTheme == null ? void 0 : engineTheme.components,\n children: children\n })\n })\n })\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.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 * Your component tree.\n */\n children: PropTypes.node,\n /**\n * A theme object. You can provide a function to extend the outer theme.\n */\n theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,\n /**\n * The design system's unique id for getting the corresponded theme when there are multiple design systems.\n */\n themeId: PropTypes.string\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;\n}\nexport default ThemeProvider;"],"names":["EMPTY_THEME","useThemeScoping","themeId","upperTheme","localTheme","isPrivate","React","useMemo","resolvedTheme","mergedTheme","result","_extends","ThemeProvider","props","children","theme","useThemeWithoutDefault","upperPrivateTheme","usePrivateTheme","process","env","NODE_ENV","console","error","join","engineTheme","privateTheme","rtlValue","direction","_jsx","MuiThemeProvider","StyledEngineThemeContext","Provider","value","RtlProvider","DefaultPropsProvider","components","propTypes","PropTypes","node","oneOfType","func","object","isRequired","string","exactProp"],"mappings":"6lBAYA,MAAMA,EAAc,CAAA,EACpB,SAASC,EAAgBC,EAASC,EAAYC,EAAYC,GAAY,GACpE,OAAOC,EAAMC,SAAQ,KACnB,MAAMC,EAAgBN,GAAUC,EAAWD,IAAyBC,EACpE,GAA0B,mBAAfC,EAA2B,CACpC,MAAMK,EAAcL,EAAWI,GACzBE,EAASR,EAAUS,EAAS,CAAA,EAAIR,EAAY,CAChDD,CAACA,GAAUO,IACRA,EAGL,OAAIJ,EACK,IAAMK,EAERA,CACR,CACD,OAAiBC,EAAS,CAAE,EAAER,EAAvBD,EAAmC,CACxCA,CAACA,GAAUE,GACiBA,EAAW,GACxC,CAACF,EAASC,EAAYC,EAAYC,GACvC,CASA,SAASO,EAAcC,GACrB,MAAMC,SACJA,EACAC,MAAOX,EAAUF,QACjBA,GACEW,EACEV,EAAaa,EAAuBhB,GACpCiB,EAAoBC,KAAqBlB,EAClB,eAAzBmB,QAAQC,IAAIC,WACK,OAAflB,GAA6C,mBAAfC,GAA6BF,GAAWC,IAAeA,EAAWD,IAAkC,mBAAfE,IACrHkB,QAAQC,MAAM,CAAC,+EAAgF,qDAAsD,GAAI,sCAAuC,6FAAkGC,KAAK,OAG3S,MAAMC,EAAcxB,EAAgBC,EAASC,EAAYC,GACnDsB,EAAezB,EAAgBC,EAASe,EAAmBb,GAAY,GACvEuB,EAAqC,QAA1BF,EAAYG,UAC7B,OAAoBC,EAAKC,EAAkB,CACzCf,MAAOW,EACPZ,SAAuBe,EAAKE,EAAyBC,SAAU,CAC7DC,MAAOR,EACPX,SAAuBe,EAAKK,EAAa,CACvCD,MAAON,EACPb,SAAuBe,EAAKM,EAAsB,CAChDF,MAAsB,MAAfR,OAAsB,EAASA,EAAYW,WAClDtB,SAAUA,SAKpB,CACyB,eAAzBK,QAAQC,IAAIC,WAA4BT,EAAcyB,UAAmC,CAQvFvB,SAAUwB,EAAUC,KAIpBxB,MAAOuB,EAAUE,UAAU,CAACF,EAAUG,KAAMH,EAAUI,SAASC,WAI/DzC,QAASoC,EAAUM,SAEQ,eAAzBzB,QAAQC,IAAIC,UACW,eAAzBF,QAAQC,IAAIC,WAA4BT,EAAcyB,UAAYQ,EAAUjC,EAAcyB"}
@@ -1,2 +1,2 @@
1
- import e from"../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import t from"../../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js";import*as r from"react";import s from"../../../../../_virtual/index3.js";import n from"../../../utils/esm/deepmerge/deepmerge.js";import"../../../../@emotion/styled/dist/emotion-styled.browser.esm.js";import"../../../../@emotion/react/dist/emotion-react.browser.esm.js";import"../../../styled-engine/StyledEngineProvider/StyledEngineProvider.js";import i from"../../../styled-engine/GlobalStyles/GlobalStyles.js";import"../../../private-theming/ThemeProvider/ThemeProvider.js";import m from"../../../private-theming/useTheme/useTheme.js";import c from"../ThemeProvider/ThemeProvider.js";import l,{DEFAULT_ATTRIBUTE as d,DEFAULT_MODE_STORAGE_KEY as a,DEFAULT_COLOR_SCHEME_STORAGE_KEY as h}from"../InitColorSchemeScript/InitColorSchemeScript.js";import u from"./useCurrentColorScheme.js";import{jsxs as S,jsx as p}from"react/jsx-runtime";const f=["colorSchemes","components","generateCssVars","cssVarPrefix"],g="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function y(y){const{themeId:C,theme:b={},attribute:v=d,modeStorageKey:j=a,colorSchemeStorageKey:E=h,defaultMode:x="light",defaultColorScheme:M,disableTransitionOnChange:T=!1,resolveTheme:w,excludeVariablesFromRoot:N}=y;(!b.colorSchemes||"string"==typeof M&&!b.colorSchemes[M]||"object"==typeof M&&!b.colorSchemes[null==M?void 0:M.light]||"object"==typeof M&&!b.colorSchemes[null==M?void 0:M.dark])&&console.error(`MUI: \`${M}\` does not exist in \`theme.colorSchemes\`.`);const P=r.createContext(void 0);"production"!==process.env.NODE_ENV&&(P.displayName="ColorSchemeContext");function k(t){const{children:s,theme:l=b,modeStorageKey:d=j,colorSchemeStorageKey:a=E,attribute:h=v,defaultMode:y=x,defaultColorScheme:k=M,disableTransitionOnChange:V=T,storageWindow:$=("undefined"==typeof window?void 0:window),documentNode:K=("undefined"==typeof document?void 0:document),colorSchemeNode:O=("undefined"==typeof document?void 0:document.documentElement),colorSchemeSelector:I=":root",disableNestedContext:D=!1,disableStyleSheetGeneration:G=!1}=t,W=r.useRef(!1),_=m(),F=r.useContext(P),L=!!F&&!D,R=l[C],U=R||l,{colorSchemes:z={},components:A={},generateCssVars:q=()=>({vars:{},css:{}}),cssVarPrefix:B}=U,H=o(U,f),J=Object.keys(z),Q="string"==typeof k?k:k.light,X="string"==typeof k?k:k.dark,{mode:Y,setMode:Z,systemMode:ee,lightColorScheme:oe,darkColorScheme:te,colorScheme:re,setColorScheme:se}=u({supportedColorSchemes:J,defaultLightColorScheme:Q,defaultDarkColorScheme:X,modeStorageKey:d,colorSchemeStorageKey:a,defaultMode:y,storageWindow:$});let ne=Y,ie=re;L&&(ne=F.mode,ie=F.colorScheme);const me=ie||("dark"===(ne||("system"===y?x:y))?X:Q),{css:ce,vars:le}=q(),de=e({},H,{components:A,colorSchemes:z,cssVarPrefix:B,vars:le,getColorSchemeSelector:e=>`[${h}="${e}"] &`}),ae={},he={};Object.entries(z).forEach((([o,t])=>{const{css:r,vars:s}=q(o);de.vars=n(de.vars,s),o===me&&(Object.keys(t).forEach((o=>{t[o]&&"object"==typeof t[o]?de[o]=e({},de[o],t[o]):de[o]=t[o]})),de.palette&&(de.palette.colorScheme=o));if(o===("string"==typeof k?k:"dark"===y?k.dark:k.light)){if(N){const e={};N(B).forEach((o=>{e[o]=r[o],delete r[o]})),ae[`[${h}="${o}"]`]=e}ae[`${I}, [${h}="${o}"]`]=r}else he[`${":root"===I?"":I}[${h}="${o}"]`]=r})),de.vars=n(de.vars,le),r.useEffect((()=>{ie&&O&&O.setAttribute(h,ie)}),[ie,h,O]),r.useEffect((()=>{let e;if(V&&W.current&&K){const o=K.createElement("style");o.appendChild(K.createTextNode(g)),K.head.appendChild(o),window.getComputedStyle(K.body),e=setTimeout((()=>{K.head.removeChild(o)}),1)}return()=>{clearTimeout(e)}}),[ie,V,K]),r.useEffect((()=>(W.current=!0,()=>{W.current=!1})),[]);const ue=r.useMemo((()=>({allColorSchemes:J,colorScheme:ie,darkColorScheme:te,lightColorScheme:oe,mode:ne,setColorScheme:se,setMode:Z,systemMode:ee})),[J,ie,te,oe,ne,se,Z,ee]);let Se=!0;(G||L&&(null==_?void 0:_.cssVarPrefix)===B)&&(Se=!1);const pe=S(r.Fragment,{children:[Se&&S(r.Fragment,{children:[p(i,{styles:{[I]:ce}}),p(i,{styles:ae}),p(i,{styles:he})]}),p(c,{themeId:R?C:void 0,theme:w?w(de):de,children:s})]});return L?pe:p(P.Provider,{value:ue,children:pe})}"production"!==process.env.NODE_ENV&&(k.propTypes={attribute:s.string,children:s.node,colorSchemeNode:s.any,colorSchemeSelector:s.string,colorSchemeStorageKey:s.string,defaultColorScheme:s.oneOfType([s.string,s.object]),defaultMode:s.string,disableNestedContext:s.bool,disableStyleSheetGeneration:s.bool,disableTransitionOnChange:s.bool,documentNode:s.any,modeStorageKey:s.string,storageWindow:s.any,theme:s.object});const V="string"==typeof M?M:M.light,$="string"==typeof M?M:M.dark;return{CssVarsProvider:k,useColorScheme:()=>{const e=r.useContext(P);if(!e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `useColorScheme` must be called under <CssVarsProvider />":t(19));return e},getInitColorSchemeScript:o=>l(e({attribute:v,colorSchemeStorageKey:E,defaultMode:x,defaultLightColorScheme:V,defaultDarkColorScheme:$,modeStorageKey:j},o))}}export{g as DISABLE_CSS_TRANSITION,y as default};
1
+ import e from"../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import t from"../../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js";import*as r from"react";import s from"../../../../../_virtual/index3.js";import n from"../../../utils/esm/deepmerge/deepmerge.js";import"../../../private-theming/ThemeProvider/ThemeProvider.js";import i from"../../../private-theming/useTheme/useTheme.js";import c from"../ThemeProvider/ThemeProvider.js";import m,{DEFAULT_ATTRIBUTE as l,DEFAULT_MODE_STORAGE_KEY as a,DEFAULT_COLOR_SCHEME_STORAGE_KEY as d}from"../InitColorSchemeScript/InitColorSchemeScript.js";import h from"./useCurrentColorScheme.js";import{jsxs as u,jsx as S}from"react/jsx-runtime";import p from"../../../styled-engine/GlobalStyles/GlobalStyles.js";const f=["colorSchemes","components","generateCssVars","cssVarPrefix"],g="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function y(y){const{themeId:C,theme:b={},attribute:v=l,modeStorageKey:j=a,colorSchemeStorageKey:x=d,defaultMode:E="light",defaultColorScheme:M,disableTransitionOnChange:T=!1,resolveTheme:N,excludeVariablesFromRoot:k}=y;(!b.colorSchemes||"string"==typeof M&&!b.colorSchemes[M]||"object"==typeof M&&!b.colorSchemes[null==M?void 0:M.light]||"object"==typeof M&&!b.colorSchemes[null==M?void 0:M.dark])&&console.error(`MUI: \`${M}\` does not exist in \`theme.colorSchemes\`.`);const w=r.createContext(void 0);"production"!==process.env.NODE_ENV&&(w.displayName="ColorSchemeContext");function P(t){const{children:s,theme:m=b,modeStorageKey:l=j,colorSchemeStorageKey:a=x,attribute:d=v,defaultMode:y=E,defaultColorScheme:P=M,disableTransitionOnChange:V=T,storageWindow:$=("undefined"==typeof window?void 0:window),documentNode:K=("undefined"==typeof document?void 0:document),colorSchemeNode:O=("undefined"==typeof document?void 0:document.documentElement),colorSchemeSelector:I=":root",disableNestedContext:D=!1,disableStyleSheetGeneration:G=!1}=t,W=r.useRef(!1),_=i(),F=r.useContext(w),L=!!F&&!D,R=m[C],U=R||m,{colorSchemes:z={},components:A={},generateCssVars:q=()=>({vars:{},css:{}}),cssVarPrefix:B}=U,H=o(U,f),J=Object.keys(z),Q="string"==typeof P?P:P.light,X="string"==typeof P?P:P.dark,{mode:Y,setMode:Z,systemMode:ee,lightColorScheme:oe,darkColorScheme:te,colorScheme:re,setColorScheme:se}=h({supportedColorSchemes:J,defaultLightColorScheme:Q,defaultDarkColorScheme:X,modeStorageKey:l,colorSchemeStorageKey:a,defaultMode:y,storageWindow:$});let ne=Y,ie=re;L&&(ne=F.mode,ie=F.colorScheme);const ce=ie||("dark"===(ne||("system"===y?E:y))?X:Q),{css:me,vars:le}=q(),ae=e({},H,{components:A,colorSchemes:z,cssVarPrefix:B,vars:le,getColorSchemeSelector:e=>`[${d}="${e}"] &`}),de={},he={};Object.entries(z).forEach((([o,t])=>{const{css:r,vars:s}=q(o);ae.vars=n(ae.vars,s),o===ce&&(Object.keys(t).forEach((o=>{t[o]&&"object"==typeof t[o]?ae[o]=e({},ae[o],t[o]):ae[o]=t[o]})),ae.palette&&(ae.palette.colorScheme=o));if(o===("string"==typeof P?P:"dark"===y?P.dark:P.light)){if(k){const e={};k(B).forEach((o=>{e[o]=r[o],delete r[o]})),de[`[${d}="${o}"]`]=e}de[`${I}, [${d}="${o}"]`]=r}else he[`${":root"===I?"":I}[${d}="${o}"]`]=r})),ae.vars=n(ae.vars,le),r.useEffect((()=>{ie&&O&&O.setAttribute(d,ie)}),[ie,d,O]),r.useEffect((()=>{let e;if(V&&W.current&&K){const o=K.createElement("style");o.appendChild(K.createTextNode(g)),K.head.appendChild(o),window.getComputedStyle(K.body),e=setTimeout((()=>{K.head.removeChild(o)}),1)}return()=>{clearTimeout(e)}}),[ie,V,K]),r.useEffect((()=>(W.current=!0,()=>{W.current=!1})),[]);const ue=r.useMemo((()=>({allColorSchemes:J,colorScheme:ie,darkColorScheme:te,lightColorScheme:oe,mode:ne,setColorScheme:se,setMode:Z,systemMode:ee})),[J,ie,te,oe,ne,se,Z,ee]);let Se=!0;(G||L&&(null==_?void 0:_.cssVarPrefix)===B)&&(Se=!1);const pe=u(r.Fragment,{children:[Se&&u(r.Fragment,{children:[S(p,{styles:{[I]:me}}),S(p,{styles:de}),S(p,{styles:he})]}),S(c,{themeId:R?C:void 0,theme:N?N(ae):ae,children:s})]});return L?pe:S(w.Provider,{value:ue,children:pe})}"production"!==process.env.NODE_ENV&&(P.propTypes={attribute:s.string,children:s.node,colorSchemeNode:s.any,colorSchemeSelector:s.string,colorSchemeStorageKey:s.string,defaultColorScheme:s.oneOfType([s.string,s.object]),defaultMode:s.string,disableNestedContext:s.bool,disableStyleSheetGeneration:s.bool,disableTransitionOnChange:s.bool,documentNode:s.any,modeStorageKey:s.string,storageWindow:s.any,theme:s.object});const V="string"==typeof M?M:M.light,$="string"==typeof M?M:M.dark;return{CssVarsProvider:P,useColorScheme:()=>{const e=r.useContext(w);if(!e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `useColorScheme` must be called under <CssVarsProvider />":t(19));return e},getInitColorSchemeScript:o=>m(e({attribute:v,colorSchemeStorageKey:x,defaultMode:E,defaultLightColorScheme:V,defaultDarkColorScheme:$,modeStorageKey:j},o))}}export{g as DISABLE_CSS_TRANSITION,y as default};
2
2
  //# sourceMappingURL=createCssVarsProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createCssVarsProvider.js","sources":["../../../../../../node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"colorSchemes\", \"components\", \"generateCssVars\", \"cssVarPrefix\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport { GlobalStyles } from '@mui/styled-engine';\nimport { useTheme as muiUseTheme } from '@mui/private-theming';\nimport ThemeProvider from '../ThemeProvider';\nimport InitColorSchemeScript, { DEFAULT_ATTRIBUTE, DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from '../InitColorSchemeScript/InitColorSchemeScript';\nimport useCurrentColorScheme from './useCurrentColorScheme';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';\nexport default function createCssVarsProvider(options) {\n const {\n themeId,\n /**\n * This `theme` object needs to follow a certain structure to\n * be used correctly by the finel `CssVarsProvider`. It should have a\n * `colorSchemes` key with the light and dark (and any other) palette.\n * It should also ideally have a vars object created using `prepareCssVars`.\n */\n theme: defaultTheme = {},\n attribute: defaultAttribute = DEFAULT_ATTRIBUTE,\n modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n defaultMode: designSystemMode = 'light',\n defaultColorScheme: designSystemColorScheme,\n disableTransitionOnChange: designSystemTransitionOnChange = false,\n resolveTheme,\n excludeVariablesFromRoot\n } = options;\n if (!defaultTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !defaultTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {\n console.error(`MUI: \\`${designSystemColorScheme}\\` does not exist in \\`theme.colorSchemes\\`.`);\n }\n const ColorSchemeContext = /*#__PURE__*/React.createContext(undefined);\n if (process.env.NODE_ENV !== 'production') {\n ColorSchemeContext.displayName = 'ColorSchemeContext';\n }\n const useColorScheme = () => {\n const value = React.useContext(ColorSchemeContext);\n if (!value) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`useColorScheme\\` must be called under <CssVarsProvider />` : _formatMuiErrorMessage(19));\n }\n return value;\n };\n function CssVarsProvider(props) {\n const {\n children,\n theme: themeProp = defaultTheme,\n modeStorageKey = defaultModeStorageKey,\n colorSchemeStorageKey = defaultColorSchemeStorageKey,\n attribute = defaultAttribute,\n defaultMode = designSystemMode,\n defaultColorScheme = designSystemColorScheme,\n disableTransitionOnChange = designSystemTransitionOnChange,\n storageWindow = typeof window === 'undefined' ? undefined : window,\n documentNode = typeof document === 'undefined' ? undefined : document,\n colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,\n colorSchemeSelector = ':root',\n disableNestedContext = false,\n disableStyleSheetGeneration = false\n } = props;\n const hasMounted = React.useRef(false);\n const upperTheme = muiUseTheme();\n const ctx = React.useContext(ColorSchemeContext);\n const nested = !!ctx && !disableNestedContext;\n const scopedTheme = themeProp[themeId];\n const _ref = scopedTheme || themeProp,\n {\n colorSchemes = {},\n components = {},\n generateCssVars = () => ({\n vars: {},\n css: {}\n }),\n cssVarPrefix\n } = _ref,\n restThemeProp = _objectWithoutPropertiesLoose(_ref, _excluded);\n const allColorSchemes = Object.keys(colorSchemes);\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n\n // 1. Get the data about the `mode`, `colorScheme`, and setter functions.\n const {\n mode: stateMode,\n setMode,\n systemMode,\n lightColorScheme,\n darkColorScheme,\n colorScheme: stateColorScheme,\n setColorScheme\n } = useCurrentColorScheme({\n supportedColorSchemes: allColorSchemes,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey,\n colorSchemeStorageKey,\n defaultMode,\n storageWindow\n });\n let mode = stateMode;\n let colorScheme = stateColorScheme;\n if (nested) {\n mode = ctx.mode;\n colorScheme = ctx.colorScheme;\n }\n const calculatedMode = (() => {\n if (mode) {\n return mode;\n }\n // This scope occurs on the server\n if (defaultMode === 'system') {\n return designSystemMode;\n }\n return defaultMode;\n })();\n const calculatedColorScheme = (() => {\n if (!colorScheme) {\n // This scope occurs on the server\n if (calculatedMode === 'dark') {\n return defaultDarkColorScheme;\n }\n // use light color scheme, if default mode is 'light' | 'system'\n return defaultLightColorScheme;\n }\n return colorScheme;\n })();\n\n // 2. Create CSS variables and store them in objects (to be generated in stylesheets in the final step)\n const {\n css: rootCss,\n vars: rootVars\n } = generateCssVars();\n\n // 3. Start composing the theme object\n const theme = _extends({}, restThemeProp, {\n components,\n colorSchemes,\n cssVarPrefix,\n vars: rootVars,\n getColorSchemeSelector: targetColorScheme => `[${attribute}=\"${targetColorScheme}\"] &`\n });\n\n // 4. Create color CSS variables and store them in objects (to be generated in stylesheets in the final step)\n // The default color scheme stylesheet is constructed to have the least CSS specificity.\n // The other color schemes uses selector, default as data attribute, to increase the CSS specificity so that they can override the default color scheme stylesheet.\n const defaultColorSchemeStyleSheet = {};\n const otherColorSchemesStyleSheet = {};\n Object.entries(colorSchemes).forEach(([key, scheme]) => {\n const {\n css,\n vars\n } = generateCssVars(key);\n theme.vars = deepmerge(theme.vars, vars);\n if (key === calculatedColorScheme) {\n // 4.1 Merge the selected color scheme to the theme\n Object.keys(scheme).forEach(schemeKey => {\n if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {\n // shallow merge the 1st level structure of the theme.\n theme[schemeKey] = _extends({}, theme[schemeKey], scheme[schemeKey]);\n } else {\n theme[schemeKey] = scheme[schemeKey];\n }\n });\n if (theme.palette) {\n theme.palette.colorScheme = key;\n }\n }\n const resolvedDefaultColorScheme = (() => {\n if (typeof defaultColorScheme === 'string') {\n return defaultColorScheme;\n }\n if (defaultMode === 'dark') {\n return defaultColorScheme.dark;\n }\n return defaultColorScheme.light;\n })();\n if (key === resolvedDefaultColorScheme) {\n if (excludeVariablesFromRoot) {\n const excludedVariables = {};\n excludeVariablesFromRoot(cssVarPrefix).forEach(cssVar => {\n excludedVariables[cssVar] = css[cssVar];\n delete css[cssVar];\n });\n defaultColorSchemeStyleSheet[`[${attribute}=\"${key}\"]`] = excludedVariables;\n }\n defaultColorSchemeStyleSheet[`${colorSchemeSelector}, [${attribute}=\"${key}\"]`] = css;\n } else {\n otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}=\"${key}\"]`] = css;\n }\n });\n theme.vars = deepmerge(theme.vars, rootVars);\n\n // 5. Declaring effects\n // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.\n React.useEffect(() => {\n if (colorScheme && colorSchemeNode) {\n // attaches attribute to <html> because the css variables are attached to :root (html)\n colorSchemeNode.setAttribute(attribute, colorScheme);\n }\n }, [colorScheme, attribute, colorSchemeNode]);\n\n // 5.2 Remove the CSS transition when color scheme changes to create instant experience.\n // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313\n React.useEffect(() => {\n let timer;\n if (disableTransitionOnChange && hasMounted.current && documentNode) {\n const css = documentNode.createElement('style');\n css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));\n documentNode.head.appendChild(css);\n\n // Force browser repaint\n (() => window.getComputedStyle(documentNode.body))();\n timer = setTimeout(() => {\n documentNode.head.removeChild(css);\n }, 1);\n }\n return () => {\n clearTimeout(timer);\n };\n }, [colorScheme, disableTransitionOnChange, documentNode]);\n React.useEffect(() => {\n hasMounted.current = true;\n return () => {\n hasMounted.current = false;\n };\n }, []);\n const contextValue = React.useMemo(() => ({\n allColorSchemes,\n colorScheme,\n darkColorScheme,\n lightColorScheme,\n mode,\n setColorScheme,\n setMode,\n systemMode\n }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode]);\n let shouldGenerateStyleSheet = true;\n if (disableStyleSheetGeneration || nested && (upperTheme == null ? void 0 : upperTheme.cssVarPrefix) === cssVarPrefix) {\n shouldGenerateStyleSheet = false;\n }\n const element = /*#__PURE__*/_jsxs(React.Fragment, {\n children: [shouldGenerateStyleSheet && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(GlobalStyles, {\n styles: {\n [colorSchemeSelector]: rootCss\n }\n }), /*#__PURE__*/_jsx(GlobalStyles, {\n styles: defaultColorSchemeStyleSheet\n }), /*#__PURE__*/_jsx(GlobalStyles, {\n styles: otherColorSchemesStyleSheet\n })]\n }), /*#__PURE__*/_jsx(ThemeProvider, {\n themeId: scopedTheme ? themeId : undefined,\n theme: resolveTheme ? resolveTheme(theme) : theme,\n children: children\n })]\n });\n if (nested) {\n return element;\n }\n return /*#__PURE__*/_jsx(ColorSchemeContext.Provider, {\n value: contextValue,\n children: element\n });\n }\n process.env.NODE_ENV !== \"production\" ? CssVarsProvider.propTypes = {\n /**\n * The body attribute name to attach colorScheme.\n */\n attribute: PropTypes.string,\n /**\n * The component tree.\n */\n children: PropTypes.node,\n /**\n * The node used to attach the color-scheme attribute\n */\n colorSchemeNode: PropTypes.any,\n /**\n * The CSS selector for attaching the generated custom properties\n */\n colorSchemeSelector: PropTypes.string,\n /**\n * localStorage key used to store `colorScheme`\n */\n colorSchemeStorageKey: PropTypes.string,\n /**\n * The initial color scheme used.\n */\n defaultColorScheme: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n /**\n * The initial mode used.\n */\n defaultMode: PropTypes.string,\n /**\n * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.\n */\n disableNestedContext: PropTypes.bool,\n /**\n * If `true`, the style sheet won't be generated.\n *\n * This is useful for controlling nested CssVarsProvider behavior.\n */\n disableStyleSheetGeneration: PropTypes.bool,\n /**\n * Disable CSS transitions when switching between modes or color schemes.\n */\n disableTransitionOnChange: PropTypes.bool,\n /**\n * The document to attach the attribute to.\n */\n documentNode: PropTypes.any,\n /**\n * The key in the local storage used to store current color scheme.\n */\n modeStorageKey: PropTypes.string,\n /**\n * The window that attaches the 'storage' event listener.\n * @default window\n */\n storageWindow: PropTypes.any,\n /**\n * The calculated theme object that will be passed through context.\n */\n theme: PropTypes.object\n } : void 0;\n const defaultLightColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.light;\n const defaultDarkColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.dark;\n const getInitColorSchemeScript = params => InitColorSchemeScript(_extends({\n attribute: defaultAttribute,\n colorSchemeStorageKey: defaultColorSchemeStorageKey,\n defaultMode: designSystemMode,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey: defaultModeStorageKey\n }, params));\n return {\n CssVarsProvider,\n useColorScheme,\n getInitColorSchemeScript\n };\n}"],"names":["_excluded","DISABLE_CSS_TRANSITION","createCssVarsProvider","options","themeId","theme","defaultTheme","attribute","defaultAttribute","DEFAULT_ATTRIBUTE","modeStorageKey","defaultModeStorageKey","DEFAULT_MODE_STORAGE_KEY","colorSchemeStorageKey","defaultColorSchemeStorageKey","DEFAULT_COLOR_SCHEME_STORAGE_KEY","defaultMode","designSystemMode","defaultColorScheme","designSystemColorScheme","disableTransitionOnChange","designSystemTransitionOnChange","resolveTheme","excludeVariablesFromRoot","colorSchemes","light","dark","console","error","ColorSchemeContext","React","createContext","undefined","process","env","NODE_ENV","displayName","CssVarsProvider","props","children","themeProp","storageWindow","window","documentNode","document","colorSchemeNode","documentElement","colorSchemeSelector","disableNestedContext","disableStyleSheetGeneration","hasMounted","useRef","upperTheme","muiUseTheme","ctx","useContext","nested","scopedTheme","_ref","components","generateCssVars","vars","css","cssVarPrefix","restThemeProp","_objectWithoutPropertiesLoose","allColorSchemes","Object","keys","defaultLightColorScheme","defaultDarkColorScheme","mode","stateMode","setMode","systemMode","lightColorScheme","darkColorScheme","colorScheme","stateColorScheme","setColorScheme","useCurrentColorScheme","supportedColorSchemes","calculatedColorScheme","rootCss","rootVars","_extends","getColorSchemeSelector","targetColorScheme","defaultColorSchemeStyleSheet","otherColorSchemesStyleSheet","entries","forEach","key","scheme","deepmerge","schemeKey","palette","excludedVariables","cssVar","useEffect","setAttribute","timer","current","createElement","appendChild","createTextNode","head","getComputedStyle","body","setTimeout","removeChild","clearTimeout","contextValue","useMemo","shouldGenerateStyleSheet","element","_jsxs","Fragment","_jsx","GlobalStyles","styles","ThemeProvider","Provider","value","propTypes","PropTypes","string","node","any","oneOfType","object","bool","useColorScheme","Error","_formatMuiErrorMessage","getInitColorSchemeScript","params","InitColorSchemeScript"],"mappings":"4iCAGA,MAAMA,EAAY,CAAC,eAAgB,aAAc,kBAAmB,gBAWvDC,EAAyB,2JACvB,SAASC,EAAsBC,GAC5C,MAAMC,QACJA,EAOAC,MAAOC,EAAe,CAAE,EACxBC,UAAWC,EAAmBC,EAC9BC,eAAgBC,EAAwBC,EACxCC,sBAAuBC,EAA+BC,EACtDC,YAAaC,EAAmB,QAChCC,mBAAoBC,EACpBC,0BAA2BC,GAAiC,EAAKC,aACjEA,EAAYC,yBACZA,GACEpB,IACCG,EAAakB,cAAmD,iBAA5BL,IAAyCb,EAAakB,aAAaL,IAA+D,iBAA5BA,IAAyCb,EAAakB,aAAwC,MAA3BL,OAAkC,EAASA,EAAwBM,QAA6C,iBAA5BN,IAAyCb,EAAakB,aAAwC,MAA3BL,OAAkC,EAASA,EAAwBO,QAC1aC,QAAQC,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eAAzBlF,QAAQC,IAAIC,WAA4BE,EAAgBuF,UAAY,CAIlErH,UAAWsH,EAAUC,OAIrBvF,SAAUsF,EAAUE,KAIpBlF,gBAAiBgF,EAAUG,IAI3BjF,oBAAqB8E,EAAUC,OAI/BjH,sBAAuBgH,EAAUC,OAIjC5G,mBAAoB2G,EAAUI,UAAU,CAACJ,EAAUC,OAAQD,EAAUK,SAIrElH,YAAa6G,EAAUC,OAIvB9E,qBAAsB6E,EAAUM,KAMhClF,4BAA6B4E,EAAUM,KAIvC/G,0BAA2ByG,EAAUM,KAIrCxF,aAAckF,EAAUG,IAIxBtH,eAAgBmH,EAAUC,OAK1BrF,cAAeoF,EAAUG,IAIzB3H,MAAOwH,EAAUK,SAEnB,MAAM7D,EAA6D,iBAA5BlD,EAAuCA,EAA0BA,EAAwBM,MAC1H6C,EAA4D,iBAA5BnD,EAAuCA,EAA0BA,EAAwBO,KAS/H,MAAO,CACLW,kBACA+F,eA7SqB,KACrB,MAAMT,EAAQ7F,EAAMyB,WAAW1B,GAC/B,IAAK8F,EACH,MAAM,IAAIU,MAA+B,eAAzBpG,QAAQC,IAAIC,SAA4B,iEAAqEmG,EAAuB,KAEtJ,OAAOX,CAAK,EAySZY,yBAX+BC,GAAUC,EAAsBpD,EAAS,CACxE9E,UAAWC,EACXK,sBAAuBC,EACvBE,YAAaC,EACboD,0BACAC,yBACA5D,eAAgBC,GACf6H,IAML"}
1
+ {"version":3,"file":"createCssVarsProvider.js","sources":["../../../../../../node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"colorSchemes\", \"components\", \"generateCssVars\", \"cssVarPrefix\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport { GlobalStyles } from '@mui/styled-engine';\nimport { useTheme as muiUseTheme } from '@mui/private-theming';\nimport ThemeProvider from '../ThemeProvider';\nimport InitColorSchemeScript, { DEFAULT_ATTRIBUTE, DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from '../InitColorSchemeScript/InitColorSchemeScript';\nimport useCurrentColorScheme from './useCurrentColorScheme';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';\nexport default function createCssVarsProvider(options) {\n const {\n themeId,\n /**\n * This `theme` object needs to follow a certain structure to\n * be used correctly by the finel `CssVarsProvider`. It should have a\n * `colorSchemes` key with the light and dark (and any other) palette.\n * It should also ideally have a vars object created using `prepareCssVars`.\n */\n theme: defaultTheme = {},\n attribute: defaultAttribute = DEFAULT_ATTRIBUTE,\n modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n defaultMode: designSystemMode = 'light',\n defaultColorScheme: designSystemColorScheme,\n disableTransitionOnChange: designSystemTransitionOnChange = false,\n resolveTheme,\n excludeVariablesFromRoot\n } = options;\n if (!defaultTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !defaultTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {\n console.error(`MUI: \\`${designSystemColorScheme}\\` does not exist in \\`theme.colorSchemes\\`.`);\n }\n const ColorSchemeContext = /*#__PURE__*/React.createContext(undefined);\n if (process.env.NODE_ENV !== 'production') {\n ColorSchemeContext.displayName = 'ColorSchemeContext';\n }\n const useColorScheme = () => {\n const value = React.useContext(ColorSchemeContext);\n if (!value) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`useColorScheme\\` must be called under <CssVarsProvider />` : _formatMuiErrorMessage(19));\n }\n return value;\n };\n function CssVarsProvider(props) {\n const {\n children,\n theme: themeProp = defaultTheme,\n modeStorageKey = defaultModeStorageKey,\n colorSchemeStorageKey = defaultColorSchemeStorageKey,\n attribute = defaultAttribute,\n defaultMode = designSystemMode,\n defaultColorScheme = designSystemColorScheme,\n disableTransitionOnChange = designSystemTransitionOnChange,\n storageWindow = typeof window === 'undefined' ? undefined : window,\n documentNode = typeof document === 'undefined' ? undefined : document,\n colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,\n colorSchemeSelector = ':root',\n disableNestedContext = false,\n disableStyleSheetGeneration = false\n } = props;\n const hasMounted = React.useRef(false);\n const upperTheme = muiUseTheme();\n const ctx = React.useContext(ColorSchemeContext);\n const nested = !!ctx && !disableNestedContext;\n const scopedTheme = themeProp[themeId];\n const _ref = scopedTheme || themeProp,\n {\n colorSchemes = {},\n components = {},\n generateCssVars = () => ({\n vars: {},\n css: {}\n }),\n cssVarPrefix\n } = _ref,\n restThemeProp = _objectWithoutPropertiesLoose(_ref, _excluded);\n const allColorSchemes = Object.keys(colorSchemes);\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n\n // 1. Get the data about the `mode`, `colorScheme`, and setter functions.\n const {\n mode: stateMode,\n setMode,\n systemMode,\n lightColorScheme,\n darkColorScheme,\n colorScheme: stateColorScheme,\n setColorScheme\n } = useCurrentColorScheme({\n supportedColorSchemes: allColorSchemes,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey,\n colorSchemeStorageKey,\n defaultMode,\n storageWindow\n });\n let mode = stateMode;\n let colorScheme = stateColorScheme;\n if (nested) {\n mode = ctx.mode;\n colorScheme = ctx.colorScheme;\n }\n const calculatedMode = (() => {\n if (mode) {\n return mode;\n }\n // This scope occurs on the server\n if (defaultMode === 'system') {\n return designSystemMode;\n }\n return defaultMode;\n })();\n const calculatedColorScheme = (() => {\n if (!colorScheme) {\n // This scope occurs on the server\n if (calculatedMode === 'dark') {\n return defaultDarkColorScheme;\n }\n // use light color scheme, if default mode is 'light' | 'system'\n return defaultLightColorScheme;\n }\n return colorScheme;\n })();\n\n // 2. Create CSS variables and store them in objects (to be generated in stylesheets in the final step)\n const {\n css: rootCss,\n vars: rootVars\n } = generateCssVars();\n\n // 3. Start composing the theme object\n const theme = _extends({}, restThemeProp, {\n components,\n colorSchemes,\n cssVarPrefix,\n vars: rootVars,\n getColorSchemeSelector: targetColorScheme => `[${attribute}=\"${targetColorScheme}\"] &`\n });\n\n // 4. Create color CSS variables and store them in objects (to be generated in stylesheets in the final step)\n // The default color scheme stylesheet is constructed to have the least CSS specificity.\n // The other color schemes uses selector, default as data attribute, to increase the CSS specificity so that they can override the default color scheme stylesheet.\n const defaultColorSchemeStyleSheet = {};\n const otherColorSchemesStyleSheet = {};\n Object.entries(colorSchemes).forEach(([key, scheme]) => {\n const {\n css,\n vars\n } = generateCssVars(key);\n theme.vars = deepmerge(theme.vars, vars);\n if (key === calculatedColorScheme) {\n // 4.1 Merge the selected color scheme to the theme\n Object.keys(scheme).forEach(schemeKey => {\n if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {\n // shallow merge the 1st level structure of the theme.\n theme[schemeKey] = _extends({}, theme[schemeKey], scheme[schemeKey]);\n } else {\n theme[schemeKey] = scheme[schemeKey];\n }\n });\n if (theme.palette) {\n theme.palette.colorScheme = key;\n }\n }\n const resolvedDefaultColorScheme = (() => {\n if (typeof defaultColorScheme === 'string') {\n return defaultColorScheme;\n }\n if (defaultMode === 'dark') {\n return defaultColorScheme.dark;\n }\n return defaultColorScheme.light;\n })();\n if (key === resolvedDefaultColorScheme) {\n if (excludeVariablesFromRoot) {\n const excludedVariables = {};\n excludeVariablesFromRoot(cssVarPrefix).forEach(cssVar => {\n excludedVariables[cssVar] = css[cssVar];\n delete css[cssVar];\n });\n defaultColorSchemeStyleSheet[`[${attribute}=\"${key}\"]`] = excludedVariables;\n }\n defaultColorSchemeStyleSheet[`${colorSchemeSelector}, [${attribute}=\"${key}\"]`] = css;\n } else {\n otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}=\"${key}\"]`] = css;\n }\n });\n theme.vars = deepmerge(theme.vars, rootVars);\n\n // 5. Declaring effects\n // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.\n React.useEffect(() => {\n if (colorScheme && colorSchemeNode) {\n // attaches attribute to <html> because the css variables are attached to :root (html)\n colorSchemeNode.setAttribute(attribute, colorScheme);\n }\n }, [colorScheme, attribute, colorSchemeNode]);\n\n // 5.2 Remove the CSS transition when color scheme changes to create instant experience.\n // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313\n React.useEffect(() => {\n let timer;\n if (disableTransitionOnChange && hasMounted.current && documentNode) {\n const css = documentNode.createElement('style');\n css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));\n documentNode.head.appendChild(css);\n\n // Force browser repaint\n (() => window.getComputedStyle(documentNode.body))();\n timer = setTimeout(() => {\n documentNode.head.removeChild(css);\n }, 1);\n }\n return () => {\n clearTimeout(timer);\n };\n }, [colorScheme, disableTransitionOnChange, documentNode]);\n React.useEffect(() => {\n hasMounted.current = true;\n return () => {\n hasMounted.current = false;\n };\n }, []);\n const contextValue = React.useMemo(() => ({\n allColorSchemes,\n colorScheme,\n darkColorScheme,\n lightColorScheme,\n mode,\n setColorScheme,\n setMode,\n systemMode\n }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode]);\n let shouldGenerateStyleSheet = true;\n if (disableStyleSheetGeneration || nested && (upperTheme == null ? void 0 : upperTheme.cssVarPrefix) === cssVarPrefix) {\n shouldGenerateStyleSheet = false;\n }\n const element = /*#__PURE__*/_jsxs(React.Fragment, {\n children: [shouldGenerateStyleSheet && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(GlobalStyles, {\n styles: {\n [colorSchemeSelector]: rootCss\n }\n }), /*#__PURE__*/_jsx(GlobalStyles, {\n styles: defaultColorSchemeStyleSheet\n }), /*#__PURE__*/_jsx(GlobalStyles, {\n styles: otherColorSchemesStyleSheet\n })]\n }), /*#__PURE__*/_jsx(ThemeProvider, {\n themeId: scopedTheme ? themeId : undefined,\n theme: resolveTheme ? resolveTheme(theme) : theme,\n children: children\n })]\n });\n if (nested) {\n return element;\n }\n return /*#__PURE__*/_jsx(ColorSchemeContext.Provider, {\n value: contextValue,\n children: element\n });\n }\n process.env.NODE_ENV !== \"production\" ? CssVarsProvider.propTypes = {\n /**\n * The body attribute name to attach colorScheme.\n */\n attribute: PropTypes.string,\n /**\n * The component tree.\n */\n children: PropTypes.node,\n /**\n * The node used to attach the color-scheme attribute\n */\n colorSchemeNode: PropTypes.any,\n /**\n * The CSS selector for attaching the generated custom properties\n */\n colorSchemeSelector: PropTypes.string,\n /**\n * localStorage key used to store `colorScheme`\n */\n colorSchemeStorageKey: PropTypes.string,\n /**\n * The initial color scheme used.\n */\n defaultColorScheme: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n /**\n * The initial mode used.\n */\n defaultMode: PropTypes.string,\n /**\n * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.\n */\n disableNestedContext: PropTypes.bool,\n /**\n * If `true`, the style sheet won't be generated.\n *\n * This is useful for controlling nested CssVarsProvider behavior.\n */\n disableStyleSheetGeneration: PropTypes.bool,\n /**\n * Disable CSS transitions when switching between modes or color schemes.\n */\n disableTransitionOnChange: PropTypes.bool,\n /**\n * The document to attach the attribute to.\n */\n documentNode: PropTypes.any,\n /**\n * The key in the local storage used to store current color scheme.\n */\n modeStorageKey: PropTypes.string,\n /**\n * The window that attaches the 'storage' event listener.\n * @default window\n */\n storageWindow: PropTypes.any,\n /**\n * The calculated theme object that will be passed through context.\n */\n theme: PropTypes.object\n } : void 0;\n const defaultLightColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.light;\n const defaultDarkColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.dark;\n const getInitColorSchemeScript = params => InitColorSchemeScript(_extends({\n attribute: defaultAttribute,\n colorSchemeStorageKey: defaultColorSchemeStorageKey,\n defaultMode: designSystemMode,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey: defaultModeStorageKey\n }, params));\n return {\n CssVarsProvider,\n useColorScheme,\n getInitColorSchemeScript\n };\n}"],"names":["_excluded","DISABLE_CSS_TRANSITION","createCssVarsProvider","options","themeId","theme","defaultTheme","attribute","defaultAttribute","DEFAULT_ATTRIBUTE","modeStorageKey","defaultModeStorageKey","DEFAULT_MODE_STORAGE_KEY","colorSchemeStorageKey","defaultColorSchemeStorageKey","DEFAULT_COLOR_SCHEME_STORAGE_KEY","defaultMode","designSystemMode","defaultColorScheme","designSystemColorScheme","disableTransitionOnChange","designSystemTransitionOnChange","resolveTheme","excludeVariablesFromRoot","colorSchemes","light","dark","console","error","ColorSchemeContext","React","createContext","undefined","process","env","NODE_ENV","displayName","CssVarsProvider","props","children","themeProp","storageWindow","window","documentNode","document","colorSchemeNode","documentElement","colorSchemeSelector","disableNestedContext","disableStyleSheetGeneration","hasMounted","useRef","upperTheme","muiUseTheme","ctx","useContext","nested","scopedTheme","_ref","components","generateCssVars","vars","css","cssVarPrefix","restThemeProp","_objectWithoutPropertiesLoose","allColorSchemes","Object","keys","defaultLightColorScheme","defaultDarkColorScheme","mode","stateMode","setMode","systemMode","lightColorScheme","darkColorScheme","colorScheme","stateColorScheme","setColorScheme","useCurrentColorScheme","supportedColorSchemes","calculatedColorScheme","rootCss","rootVars","_extends","getColorSchemeSelector","targetColorScheme","defaultColorSchemeStyleSheet","otherColorSchemesStyleSheet","entries","forEach","key","scheme","deepmerge","schemeKey","palette","excludedVariables","cssVar","useEffect","setAttribute","timer","current","createElement","appendChild","createTextNode","head","getComputedStyle","body","setTimeout","removeChild","clearTimeout","contextValue","useMemo","shouldGenerateStyleSheet","element","_jsxs","Fragment","_jsx","GlobalStyles","styles","ThemeProvider","Provider","value","propTypes","PropTypes","string","node","any","oneOfType","object","bool","useColorScheme","Error","_formatMuiErrorMessage","getInitColorSchemeScript","params","InitColorSchemeScript"],"mappings":"o1BAGA,MAAMA,EAAY,CAAC,eAAgB,aAAc,kBAAmB,gBAWvDC,EAAyB,2JACvB,SAASC,EAAsBC,GAC5C,MAAMC,QACJA,EAOAC,MAAOC,EAAe,CAAE,EACxBC,UAAWC,EAAmBC,EAC9BC,eAAgBC,EAAwBC,EACxCC,sBAAuBC,EAA+BC,EACtDC,YAAaC,EAAmB,QAChCC,mBAAoBC,EACpBC,0BAA2BC,GAAiC,EAAKC,aACjEA,EAAYC,yBACZA,GACEpB,IACCG,EAAakB,cAAmD,iBAA5BL,IAAyCb,EAAakB,aAAaL,IAA+D,iBAA5BA,IAAyCb,EAAakB,aAAwC,MAA3BL,OAAkC,EAASA,EAAwBM,QAA6C,iBAA5BN,IAAyCb,EAAakB,aAAwC,MAA3BL,OAAkC,EAASA,EAAwBO,QAC1aC,QAAQC,MAAM,UAAUT,iDAE1B,MAAMU,EAAkCC,EAAMC,mBAAcC,GAC/B,eAAzBC,QAAQC,IAAIC,WACdN,EAAmBO,YAAc,sBASnC,SAASC,EAAgBC,GACvB,MAAMC,SACJA,EACAlC,MAAOmC,EAAYlC,EAAYI,eAC/BA,EAAiBC,EAAqBE,sBACtCA,EAAwBC,EAA4BP,UACpDA,EAAYC,EAAgBQ,YAC5BA,EAAcC,EAAgBC,mBAC9BA,EAAqB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AUM,KAMhClF,4BAA6B4E,EAAUM,KAIvC/G,0BAA2ByG,EAAUM,KAIrCxF,aAAckF,EAAUG,IAIxBtH,eAAgBmH,EAAUC,OAK1BrF,cAAeoF,EAAUG,IAIzB3H,MAAOwH,EAAUK,SAEnB,MAAM7D,EAA6D,iBAA5BlD,EAAuCA,EAA0BA,EAAwBM,MAC1H6C,EAA4D,iBAA5BnD,EAAuCA,EAA0BA,EAAwBO,KAS/H,MAAO,CACLW,kBACA+F,eA7SqB,KACrB,MAAMT,EAAQ7F,EAAMyB,WAAW1B,GAC/B,IAAK8F,EACH,MAAM,IAAIU,MAA+B,eAAzBpG,QAAQC,IAAIC,SAA4B,iEAAqEmG,EAAuB,KAEtJ,OAAOX,CAAK,EAySZY,yBAX+BC,GAAUC,EAAsBpD,EAAS,CACxE9E,UAAWC,EACXK,sBAAuBC,EACvBE,YAAaC,EACboD,0BACAC,yBACA5D,eAAgBC,GACf6H,IAML"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import"../../../@emotion/styled/dist/emotion-styled.browser.esm.js";import"../../../@emotion/react/dist/emotion-react.browser.esm.js";import"../../styled-engine/StyledEngineProvider/StyledEngineProvider.js";import"../../styled-engine/GlobalStyles/GlobalStyles.js";import{T as t}from"../../../@emotion/react/dist/emotion-element-f0de968e.browser.esm.js";function o(o=null){const r=e.useContext(t);return r&&(s=r,0!==Object.keys(s).length)?r:o;var s}export{o as default};
1
+ import*as e from"react";import{T as t}from"../../../@emotion/react/dist/emotion-element-f0de968e.browser.esm.js";function o(o=null){const r=e.useContext(t);return r&&(n=r,0!==Object.keys(n).length)?r:o;var n}export{o as default};
2
2
  //# sourceMappingURL=useThemeWithoutDefault.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useThemeWithoutDefault.js","sources":["../../../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;"],"names":["useTheme","defaultTheme","contextTheme","React","useContext","ThemeContext","obj","Object","keys","length"],"mappings":"yXAOA,SAASA,EAASC,EAAe,MAC/B,MAAMC,EAAeC,EAAMC,WAAWC,GACtC,OAAQH,IALaI,EAKiBJ,EAJH,IAA5BK,OAAOC,KAAKF,GAAKG,QAI6CP,EAAfD,EALxD,IAAuBK,CAMvB"}
1
+ {"version":3,"file":"useThemeWithoutDefault.js","sources":["../../../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;"],"names":["useTheme","defaultTheme","contextTheme","React","useContext","ThemeContext","obj","Object","keys","length"],"mappings":"iHAOA,SAASA,EAASC,EAAe,MAC/B,MAAMC,EAAeC,EAAMC,WAAWC,GACtC,OAAQH,IALaI,EAKiBJ,EAJH,IAA5BK,OAAOC,KAAKF,GAAKG,QAI6CP,EAAfD,EALxD,IAAuBK,CAMvB"}
@@ -0,0 +1,172 @@
1
+ import*as e from"react";import{useRef as t,useCallback as a,useEffect as o,useState as r}from"react";import{keyframes as s,styled as i,css as n,setup as l}from"../node_modules/goober/dist/goober.modern.js";var d=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,c=(()=>{let e=0;return()=>(++e).toString()})(),p=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),u="default",m=(e,t)=>{let{toastLimit:a}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,a)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:o}=t;return m(e,{type:e.toasts.find((e=>e.id===o.id))?1:0,toast:o});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+s})))}}},f=[],y={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},h={},g=(e,t=u)=>{h[t]=m(h[t]||y,e),f.forEach((([e,a])=>{e===t&&a(h[t])}))},b=e=>Object.keys(h).forEach((t=>g(e,t))),v=(e=u)=>t=>{g(t,e)},x={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},w=(e={},a=u)=>{let[s,i]=r(h[a]||y),n=t(h[a]);o((()=>(n.current!==h[a]&&i(h[a]),f.push([a,i]),()=>{let e=f.findIndex((([e])=>e===a));e>-1&&f.splice(e,1)})),[a]);let l=s.toasts.map((t=>{var a,o,r;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(a=e[t.type])?void 0:a.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(o=e[t.type])?void 0:o.duration)||(null==e?void 0:e.duration)||x[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...s,toasts:l}},E=e=>(t,a)=>{let o=((e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(null==a?void 0:a.id)||c()}))(t,e,a);return v(o.toasterId||(e=>Object.keys(h).find((t=>h[t].toasts.some((t=>t.id===e)))))(o.id))({type:2,toast:o}),o.id},$=(e,t)=>E("blank")(e,t);$.error=E("error"),$.success=E("success"),$.loading=E("loading"),$.custom=E("custom"),$.dismiss=(e,t)=>{let a={type:3,toastId:e};t?v(t)(a):b(a)},$.dismissAll=e=>$.dismiss(void 0,e),$.remove=(e,t)=>{let a={type:4,toastId:e};t?v(t)(a):b(a)},$.removeAll=e=>$.remove(void 0,e),$.promise=(e,t,a)=>{let o=$.loading(t.loading,{...a,...null==a?void 0:a.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let r=t.success?d(t.success,e):void 0;return r?$.success(r,{id:o,...a,...null==a?void 0:a.success}):$.dismiss(o),e})).catch((e=>{let r=t.error?d(t.error,e):void 0;r?$.error(r,{id:o,...a,...null==a?void 0:a.error}):$.dismiss(o)})),e};var k=(e,r="default")=>{let{toasts:s,pausedAt:i}=w(e,r),n=t(new Map).current,l=a(((e,t=1e3)=>{if(n.has(e))return;let a=setTimeout((()=>{n.delete(e),d({type:4,toastId:e})}),t);n.set(e,a)}),[]);o((()=>{if(i)return;let e=Date.now(),t=s.map((t=>{if(t.duration===1/0)return;let a=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(a<0))return setTimeout((()=>$.dismiss(t.id,r)),a);t.visible&&$.dismiss(t.id)}));return()=>{t.forEach((e=>e&&clearTimeout(e)))}}),[s,i,r]);let d=a(v(r),[r]),c=a((()=>{d({type:5,time:Date.now()})}),[d]),p=a(((e,t)=>{d({type:1,toast:{id:e,height:t}})}),[d]),u=a((()=>{i&&d({type:6,time:Date.now()})}),[i,d]),m=a(((e,t)=>{let{reverseOrder:a=!1,gutter:o=8,defaultPosition:r}=t||{},i=s.filter((t=>(t.position||r)===(e.position||r)&&t.height)),n=i.findIndex((t=>t.id===e.id)),l=i.filter(((e,t)=>t<n&&e.visible)).length;return i.filter((e=>e.visible)).slice(...a?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[s]);return o((()=>{s.forEach((e=>{if(e.dismissed)l(e.id,e.removeDelay);else{let t=n.get(e.id);t&&(clearTimeout(t),n.delete(e.id))}}))}),[s,l]),{toasts:s,handlers:{updateHeight:p,startPause:c,endPause:u,calculateOffset:m}}},I=s`
2
+ from {
3
+ transform: scale(0) rotate(45deg);
4
+ opacity: 0;
5
+ }
6
+ to {
7
+ transform: scale(1) rotate(45deg);
8
+ opacity: 1;
9
+ }`,D=s`
10
+ from {
11
+ transform: scale(0);
12
+ opacity: 0;
13
+ }
14
+ to {
15
+ transform: scale(1);
16
+ opacity: 1;
17
+ }`,z=s`
18
+ from {
19
+ transform: scale(0) rotate(90deg);
20
+ opacity: 0;
21
+ }
22
+ to {
23
+ transform: scale(1) rotate(90deg);
24
+ opacity: 1;
25
+ }`,T=i("div")`
26
+ width: 20px;
27
+ opacity: 0;
28
+ height: 20px;
29
+ border-radius: 10px;
30
+ background: ${e=>e.primary||"#ff4b4b"};
31
+ position: relative;
32
+ transform: rotate(45deg);
33
+
34
+ animation: ${I} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
35
+ forwards;
36
+ animation-delay: 100ms;
37
+
38
+ &:after,
39
+ &:before {
40
+ content: '';
41
+ animation: ${D} 0.15s ease-out forwards;
42
+ animation-delay: 150ms;
43
+ position: absolute;
44
+ border-radius: 3px;
45
+ opacity: 0;
46
+ background: ${e=>e.secondary||"#fff"};
47
+ bottom: 9px;
48
+ left: 4px;
49
+ height: 2px;
50
+ width: 12px;
51
+ }
52
+
53
+ &:before {
54
+ animation: ${z} 0.15s ease-out forwards;
55
+ animation-delay: 180ms;
56
+ transform: rotate(90deg);
57
+ }
58
+ `,A=s`
59
+ from {
60
+ transform: rotate(0deg);
61
+ }
62
+ to {
63
+ transform: rotate(360deg);
64
+ }
65
+ `,O=i("div")`
66
+ width: 12px;
67
+ height: 12px;
68
+ box-sizing: border-box;
69
+ border: 2px solid;
70
+ border-radius: 100%;
71
+ border-color: ${e=>e.secondary||"#e0e0e0"};
72
+ border-right-color: ${e=>e.primary||"#616161"};
73
+ animation: ${A} 1s linear infinite;
74
+ `,P=s`
75
+ from {
76
+ transform: scale(0) rotate(45deg);
77
+ opacity: 0;
78
+ }
79
+ to {
80
+ transform: scale(1) rotate(45deg);
81
+ opacity: 1;
82
+ }`,j=s`
83
+ 0% {
84
+ height: 0;
85
+ width: 0;
86
+ opacity: 0;
87
+ }
88
+ 40% {
89
+ height: 0;
90
+ width: 6px;
91
+ opacity: 1;
92
+ }
93
+ 100% {
94
+ opacity: 1;
95
+ height: 10px;
96
+ }`,N=i("div")`
97
+ width: 20px;
98
+ opacity: 0;
99
+ height: 20px;
100
+ border-radius: 10px;
101
+ background: ${e=>e.primary||"#61d345"};
102
+ position: relative;
103
+ transform: rotate(45deg);
104
+
105
+ animation: ${P} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
106
+ forwards;
107
+ animation-delay: 100ms;
108
+ &:after {
109
+ content: '';
110
+ box-sizing: border-box;
111
+ animation: ${j} 0.2s ease-out forwards;
112
+ opacity: 0;
113
+ animation-delay: 200ms;
114
+ position: absolute;
115
+ border-right: 2px solid;
116
+ border-bottom: 2px solid;
117
+ border-color: ${e=>e.secondary||"#fff"};
118
+ bottom: 6px;
119
+ left: 6px;
120
+ height: 10px;
121
+ width: 6px;
122
+ }
123
+ `,C=i("div")`
124
+ position: absolute;
125
+ `,L=i("div")`
126
+ position: relative;
127
+ display: flex;
128
+ justify-content: center;
129
+ align-items: center;
130
+ min-width: 20px;
131
+ min-height: 20px;
132
+ `,M=s`
133
+ from {
134
+ transform: scale(0.6);
135
+ opacity: 0.4;
136
+ }
137
+ to {
138
+ transform: scale(1);
139
+ opacity: 1;
140
+ }`,H=i("div")`
141
+ position: relative;
142
+ transform: scale(0.6);
143
+ opacity: 0.4;
144
+ min-width: 20px;
145
+ animation: ${M} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
146
+ forwards;
147
+ `,S=({toast:t})=>{let{icon:a,type:o,iconTheme:r}=t;return void 0!==a?"string"==typeof a?e.createElement(H,null,a):a:"blank"===o?null:e.createElement(L,null,e.createElement(O,{...r}),"loading"!==o&&e.createElement(C,null,"error"===o?e.createElement(T,{...r}):e.createElement(N,{...r})))},B=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,U=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,F=i("div")`
148
+ display: flex;
149
+ align-items: center;
150
+ background: #fff;
151
+ color: #363636;
152
+ line-height: 1.3;
153
+ will-change: transform;
154
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
155
+ max-width: 350px;
156
+ pointer-events: auto;
157
+ padding: 8px 10px;
158
+ border-radius: 8px;
159
+ `,R=i("div")`
160
+ display: flex;
161
+ justify-content: center;
162
+ margin: 4px 10px;
163
+ color: inherit;
164
+ flex: 1 1 auto;
165
+ white-space: pre-line;
166
+ `,V=e.memo((({toast:t,position:a,style:o,children:r})=>{let i=t.height?((e,t)=>{let a=e.includes("top")?1:-1,[o,r]=p()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[B(a),U(a)];return{animation:t?`${s(o)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${s(r)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(t.position||a||"top-center",t.visible):{opacity:0},n=e.createElement(S,{toast:t}),l=e.createElement(R,{...t.ariaProps},d(t.message,t));return e.createElement(F,{className:t.className,style:{...i,...o,...t.style}},"function"==typeof r?r({icon:n,message:l}):e.createElement(e.Fragment,null,n,l))}));l(e.createElement);var Y=({id:t,className:a,style:o,onHeightUpdate:r,children:s})=>{let i=e.useCallback((e=>{if(e){let a=()=>{let a=e.getBoundingClientRect().height;r(t,a)};a(),new MutationObserver(a).observe(e,{subtree:!0,childList:!0,characterData:!0})}}),[t,r]);return e.createElement("div",{ref:i,className:a,style:o},s)},_=n`
167
+ z-index: 9999;
168
+ > * {
169
+ pointer-events: auto;
170
+ }
171
+ `,q=({reverseOrder:t,position:a="top-center",toastOptions:o,gutter:r,children:s,toasterId:i,containerStyle:n,containerClassName:l})=>{let{toasts:c,handlers:u}=k(o,i);return e.createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...n},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map((o=>{let i=o.position||a,n=((e,t)=>{let a=e.includes("top"),o=a?{top:0}:{bottom:0},r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:p()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(a?1:-1)}px)`,...o,...r}})(i,u.calculateOffset(o,{reverseOrder:t,gutter:r,defaultPosition:a}));return e.createElement(Y,{id:o.id,key:o.id,onHeightUpdate:u.updateHeight,className:o.visible?_:"",style:n},"custom"===o.type?d(o.message,o):s?s(o):e.createElement(V,{toast:o,position:i}))})))},G=$;export{N as CheckmarkIcon,T as ErrorIcon,O as LoaderIcon,V as ToastBar,S as ToastIcon,q as Toaster,G as default,d as resolveValue,$ as toast,k as useToaster,w as useToasterStore};
172
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../node_modules/react-hot-toast/dist/index.mjs"],"sourcesContent":["\"use client\";\nvar Z=e=>typeof e==\"function\",h=(e,t)=>Z(e)?e(t):e;var W=(()=>{let e=0;return()=>(++e).toString()})(),E=(()=>{let e;return()=>{if(e===void 0&&typeof window<\"u\"){let t=matchMedia(\"(prefers-reduced-motion: reduce)\");e=!t||t.matches}return e}})();import{useEffect as ee,useState as te,useRef as oe}from\"react\";var re=20,k=\"default\";var H=(e,t)=>{let{toastLimit:o}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,o)};case 1:return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case 2:let{toast:s}=t;return H(e,{type:e.toasts.find(r=>r.id===s.id)?1:0,toast:s});case 3:let{toastId:a}=t;return{...e,toasts:e.toasts.map(r=>r.id===a||a===void 0?{...r,dismissed:!0,visible:!1}:r)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(r=>({...r,pauseDuration:r.pauseDuration+i}))}}},v=[],j={toasts:[],pausedAt:void 0,settings:{toastLimit:re}},f={},Y=(e,t=k)=>{f[t]=H(f[t]||j,e),v.forEach(([o,s])=>{o===t&&s(f[t])})},_=e=>Object.keys(f).forEach(t=>Y(e,t)),Q=e=>Object.keys(f).find(t=>f[t].toasts.some(o=>o.id===e)),S=(e=k)=>t=>{Y(t,e)},se={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},V=(e={},t=k)=>{let[o,s]=te(f[t]||j),a=oe(f[t]);ee(()=>(a.current!==f[t]&&s(f[t]),v.push([t,s]),()=>{let r=v.findIndex(([l])=>l===t);r>-1&&v.splice(r,1)}),[t]);let i=o.toasts.map(r=>{var l,g,T;return{...e,...e[r.type],...r,removeDelay:r.removeDelay||((l=e[r.type])==null?void 0:l.removeDelay)||(e==null?void 0:e.removeDelay),duration:r.duration||((g=e[r.type])==null?void 0:g.duration)||(e==null?void 0:e.duration)||se[r.type],style:{...e.style,...(T=e[r.type])==null?void 0:T.style,...r.style}}});return{...o,toasts:i}};var ie=(e,t=\"blank\",o)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:\"status\",\"aria-live\":\"polite\"},message:e,pauseDuration:0,...o,id:(o==null?void 0:o.id)||W()}),P=e=>(t,o)=>{let s=ie(t,e,o);return S(s.toasterId||Q(s.id))({type:2,toast:s}),s.id},n=(e,t)=>P(\"blank\")(e,t);n.error=P(\"error\");n.success=P(\"success\");n.loading=P(\"loading\");n.custom=P(\"custom\");n.dismiss=(e,t)=>{let o={type:3,toastId:e};t?S(t)(o):_(o)};n.dismissAll=e=>n.dismiss(void 0,e);n.remove=(e,t)=>{let o={type:4,toastId:e};t?S(t)(o):_(o)};n.removeAll=e=>n.remove(void 0,e);n.promise=(e,t,o)=>{let s=n.loading(t.loading,{...o,...o==null?void 0:o.loading});return typeof e==\"function\"&&(e=e()),e.then(a=>{let i=t.success?h(t.success,a):void 0;return i?n.success(i,{id:s,...o,...o==null?void 0:o.success}):n.dismiss(s),a}).catch(a=>{let i=t.error?h(t.error,a):void 0;i?n.error(i,{id:s,...o,...o==null?void 0:o.error}):n.dismiss(s)}),e};import{useEffect as X,useCallback as A,useRef as ne}from\"react\";var ce=1e3,w=(e,t=\"default\")=>{let{toasts:o,pausedAt:s}=V(e,t),a=ne(new Map).current,i=A((c,m=ce)=>{if(a.has(c))return;let p=setTimeout(()=>{a.delete(c),r({type:4,toastId:c})},m);a.set(c,p)},[]);X(()=>{if(s)return;let c=Date.now(),m=o.map(p=>{if(p.duration===1/0)return;let R=(p.duration||0)+p.pauseDuration-(c-p.createdAt);if(R<0){p.visible&&n.dismiss(p.id);return}return setTimeout(()=>n.dismiss(p.id,t),R)});return()=>{m.forEach(p=>p&&clearTimeout(p))}},[o,s,t]);let r=A(S(t),[t]),l=A(()=>{r({type:5,time:Date.now()})},[r]),g=A((c,m)=>{r({type:1,toast:{id:c,height:m}})},[r]),T=A(()=>{s&&r({type:6,time:Date.now()})},[s,r]),d=A((c,m)=>{let{reverseOrder:p=!1,gutter:R=8,defaultPosition:z}=m||{},O=o.filter(u=>(u.position||z)===(c.position||z)&&u.height),K=O.findIndex(u=>u.id===c.id),B=O.filter((u,I)=>I<K&&u.visible).length;return O.filter(u=>u.visible).slice(...p?[B+1]:[0,B]).reduce((u,I)=>u+(I.height||0)+R,0)},[o]);return X(()=>{o.forEach(c=>{if(c.dismissed)i(c.id,c.removeDelay);else{let m=a.get(c.id);m&&(clearTimeout(m),a.delete(c.id))}})},[o,i]),{toasts:o,handlers:{updateHeight:g,startPause:l,endPause:T,calculateOffset:d}}};import*as y from\"react\";import{styled as J,keyframes as G}from\"goober\";import*as b from\"react\";import{styled as U,keyframes as xe}from\"goober\";import{styled as pe,keyframes as M}from\"goober\";var de=M`\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}`,me=M`\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}`,le=M`\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}`,C=pe(\"div\")`\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ${e=>e.primary||\"#ff4b4b\"};\n position: relative;\n transform: rotate(45deg);\n\n animation: ${de} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: ${me} 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ${e=>e.secondary||\"#fff\"};\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: ${le} 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n`;import{styled as ue,keyframes as fe}from\"goober\";var Te=fe`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`,F=ue(\"div\")`\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ${e=>e.secondary||\"#e0e0e0\"};\n border-right-color: ${e=>e.primary||\"#616161\"};\n animation: ${Te} 1s linear infinite;\n`;import{styled as ye,keyframes as q}from\"goober\";var ge=q`\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}`,he=q`\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}`,L=ye(\"div\")`\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ${e=>e.primary||\"#61d345\"};\n position: relative;\n transform: rotate(45deg);\n\n animation: ${ge} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: ${he} 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ${e=>e.secondary||\"#fff\"};\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n`;var be=U(\"div\")`\n position: absolute;\n`,Se=U(\"div\")`\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n`,Ae=xe`\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}`,Pe=U(\"div\")`\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: ${Ae} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n`,$=({toast:e})=>{let{icon:t,type:o,iconTheme:s}=e;return t!==void 0?typeof t==\"string\"?b.createElement(Pe,null,t):t:o===\"blank\"?null:b.createElement(Se,null,b.createElement(F,{...s}),o!==\"loading\"&&b.createElement(be,null,o===\"error\"?b.createElement(C,{...s}):b.createElement(L,{...s})))};var Re=e=>`\n0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Ee=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}\n`,ve=\"0%{opacity:0;} 100%{opacity:1;}\",De=\"0%{opacity:1;} 100%{opacity:0;}\",Oe=J(\"div\")`\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n`,Ie=J(\"div\")`\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n`,ke=(e,t)=>{let s=e.includes(\"top\")?1:-1,[a,i]=E()?[ve,De]:[Re(s),Ee(s)];return{animation:t?`${G(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${G(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},N=y.memo(({toast:e,position:t,style:o,children:s})=>{let a=e.height?ke(e.position||t||\"top-center\",e.visible):{opacity:0},i=y.createElement($,{toast:e}),r=y.createElement(Ie,{...e.ariaProps},h(e.message,e));return y.createElement(Oe,{className:e.className,style:{...a,...o,...e.style}},typeof s==\"function\"?s({icon:i,message:r}):y.createElement(y.Fragment,null,i,r))});import{css as _e,setup as Ve}from\"goober\";import*as x from\"react\";Ve(x.createElement);var we=({id:e,className:t,style:o,onHeightUpdate:s,children:a})=>{let i=x.useCallback(r=>{if(r){let l=()=>{let g=r.getBoundingClientRect().height;s(e,g)};l(),new MutationObserver(l).observe(r,{subtree:!0,childList:!0,characterData:!0})}},[e,s]);return x.createElement(\"div\",{ref:i,className:t,style:o},a)},Me=(e,t)=>{let o=e.includes(\"top\"),s=o?{top:0}:{bottom:0},a=e.includes(\"center\")?{justifyContent:\"center\"}:e.includes(\"right\")?{justifyContent:\"flex-end\"}:{};return{left:0,right:0,display:\"flex\",position:\"absolute\",transition:E()?void 0:\"all 230ms cubic-bezier(.21,1.02,.73,1)\",transform:`translateY(${t*(o?1:-1)}px)`,...s,...a}},Ce=_e`\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n`,D=16,Fe=({reverseOrder:e,position:t=\"top-center\",toastOptions:o,gutter:s,children:a,toasterId:i,containerStyle:r,containerClassName:l})=>{let{toasts:g,handlers:T}=w(o,i);return x.createElement(\"div\",{\"data-rht-toaster\":i||\"\",style:{position:\"fixed\",zIndex:9999,top:D,left:D,right:D,bottom:D,pointerEvents:\"none\",...r},className:l,onMouseEnter:T.startPause,onMouseLeave:T.endPause},g.map(d=>{let c=d.position||t,m=T.calculateOffset(d,{reverseOrder:e,gutter:s,defaultPosition:t}),p=Me(c,m);return x.createElement(we,{id:d.id,key:d.id,onHeightUpdate:T.updateHeight,className:d.visible?Ce:\"\",style:p},d.type===\"custom\"?h(d.message,d):a?a(d):x.createElement(N,{toast:d,position:c}))}))};var zt=n;export{L as CheckmarkIcon,C as ErrorIcon,F as LoaderIcon,N as ToastBar,$ as ToastIcon,Fe as Toaster,zt as default,h as resolveValue,n as toast,w as useToaster,V as useToasterStore};\n//# sourceMappingURL=index.mjs.map"],"names":["h","e","t","Z","W","toString","E","window","matchMedia","matches","k","H","toastLimit","o","settings","type","toasts","toast","slice","map","r","id","s","find","toastId","a","dismissed","visible","filter","pausedAt","time","i","pauseDuration","v","j","f","Y","forEach","_","Object","keys","S","se","blank","error","success","loading","custom","V","te","oe","ee","current","push","findIndex","l","splice","g","T","removeDelay","duration","style","P","createdAt","Date","now","ariaProps","role","message","ie","toasterId","some","Q","n","dismiss","dismissAll","remove","removeAll","promise","then","catch","w","ne","Map","A","c","m","has","p","setTimeout","delete","set","X","R","clearTimeout","height","d","reverseOrder","gutter","defaultPosition","z","O","u","position","K","B","I","length","reduce","get","handlers","updateHeight","startPause","endPause","calculateOffset","de","M","me","le","C","pe","primary","secondary","Te","fe","F","ue","ge","q","he","L","ye","be","U","Se","Ae","xe","Pe","$","icon","iconTheme","b","createElement","Re","Ee","Oe","J","Ie","N","y","memo","children","includes","animation","G","ke","opacity","className","Fragment","Ve","x","we","onHeightUpdate","useCallback","getBoundingClientRect","MutationObserver","observe","subtree","childList","characterData","ref","Ce","_e","Fe","toastOptions","containerStyle","containerClassName","zIndex","top","left","right","bottom","pointerEvents","onMouseEnter","onMouseLeave","justifyContent","display","transition","transform","Me","key","zt"],"mappings":"8MACG,IAA2BA,EAAE,CAACC,EAAEC,IAA7BD,IAAa,mBAAHA,EAAuBE,CAAEF,GAAGA,EAAEC,GAAGD,EAAMG,EAAE,MAAM,IAAIH,EAAE,EAAE,MAAM,OAAOA,GAAGI,UAAW,EAAzC,GAA6CC,EAAE,MAAM,IAAIL,EAAE,MAAM,KAAK,QAAO,IAAJA,UAAmBM,OAAO,IAAI,CAAC,IAAIL,EAAEM,WAAW,oCAAoCP,GAAGC,GAAGA,EAAEO,OAAO,CAAC,OAAOR,EAAG,EAAxI,GAAqNS,EAAE,UAAcC,EAAE,CAACV,EAAEC,KAAK,IAAIU,WAAWC,GAAGZ,EAAEa,SAAS,OAAOZ,EAAEa,MAAM,KAAK,EAAE,MAAM,IAAId,EAAEe,OAAO,CAACd,EAAEe,SAAShB,EAAEe,QAAQE,MAAM,EAAEL,IAAI,KAAK,EAAE,MAAM,IAAIZ,EAAEe,OAAOf,EAAEe,OAAOG,KAAIC,GAAGA,EAAEC,KAAKnB,EAAEe,MAAMI,GAAG,IAAID,KAAKlB,EAAEe,OAAOG,KAAI,KAAK,EAAE,IAAIH,MAAMK,GAAGpB,EAAE,OAAOS,EAAEV,EAAE,CAACc,KAAKd,EAAEe,OAAOO,MAAKH,GAAGA,EAAEC,KAAKC,EAAED,KAAI,EAAE,EAAEJ,MAAMK,IAAI,KAAK,EAAE,IAAIE,QAAQC,GAAGvB,EAAE,MAAM,IAAID,EAAEe,OAAOf,EAAEe,OAAOG,KAAIC,GAAGA,EAAEC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B,MAAM,CAAC0C,SAAS,QAAQ0E,OAAO,KAAKC,IAAnQ,GAAyQC,KAAzQ,GAAgRC,MAAhR,GAAwRC,OAAxR,GAAiSC,cAAc,UAAUlK,GAAGyI,UAAUtG,EAAEgI,aAAa7H,EAAEsD,WAAWwE,aAAa9H,EAAEuD,UAAUxD,EAAEtC,KAAI6E,IAAI,IAAIX,EAAEW,EAAEO,UAAUrG,EAAqEsF,EALqe,EAACvF,EAAEC,KAAK,IAAIW,EAAEZ,EAAEuJ,SAAS,OAAOlI,EAAET,EAAE,CAACqK,IAAI,GAAG,CAACG,OAAO,GAAG5J,EAAExB,EAAEuJ,SAAS,UAAU,CAACiC,eAAe,UAAUxL,EAAEuJ,SAAS,SAAS,CAACiC,eAAe,YAAY,CAAA,EAAG,MAAM,CAACN,KAAK,EAAEC,MAAM,EAAEM,QAAQ,OAAOnF,SAAS,WAAWoF,WAAWrL,SAAI,EAAO,yCAAyCsL,UAAU,cAAc1L,GAAGW,EAAE,GAAG,WAAWS,KAAKG,EAAC,EAKvyBoK,CAAGxG,EAAtE3B,EAAEwD,gBAAgBlB,EAAE,CAACC,aAAahG,EAAEiG,OAAO5E,EAAE6E,gBAAgBjG,KAAc,OAAO8J,EAAElB,cAAcmB,EAAG,CAAC5I,GAAG2E,EAAE3E,GAAGyK,IAAI9F,EAAE3E,GAAG6I,eAAexG,EAAEqD,aAAa8C,UAAU7D,EAAErE,QAAQgJ,EAAG,GAAG9G,MAAM2B,GAAY,WAATQ,EAAEjF,KAAgBf,EAAEgG,EAAE5B,QAAQ4B,GAAGvE,EAAEA,EAAEuE,GAAGgE,EAAElB,cAAcM,EAAE,CAACnI,MAAM+E,EAAEO,SAASlB,IAAG,IAAG,EAAO0G,EAAGtH"}
@@ -0,0 +1,2 @@
1
+ let e,t,r,l={data:""},a=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||l},n=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,s=/\/\*[^]*?\*\/| +/g,o=/\n+/g,c=(e,t)=>{let r="",l="",a="";for(let n in e){let s=e[n];"@"==n[0]?"i"==n[1]?r=n+" "+s+";":l+="f"==n[1]?c(s,n):n+"{"+c(s,"k"==n[1]?"":t)+"}":"object"==typeof s?l+=c(s,t?t.replace(/([^,])+/g,(e=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):n):null!=s&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=c.p?c.p(n,s):n+":"+s+";")}return r+(t&&a?t+"{"+a+"}":a)+l},i={},p=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+p(e[r]);return t}return e},u=(e,t,r,l,a)=>{let u=p(e),d=i[u]||(i[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(u));if(!i[d]){let t=u!==e?e:(e=>{let t,r,l=[{}];for(;t=n.exec(e.replace(s,""));)t[4]?l.shift():t[3]?(r=t[3].replace(o," ").trim(),l.unshift(l[0][r]=l[0][r]||{})):l[0][t[1]]=t[2].replace(o," ").trim();return l[0]})(e);i[d]=c(a?{["@keyframes "+d]:t}:t,r?"":"."+d)}let f=r&&i.g?i.g:null;return r&&(i.g=i[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(i[d],t,l,f),d};function d(e){let t=this||{},r=e.call?e(t.p):e;return u(r.unshift?r.raw?((e,t,r)=>e.reduce(((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+l+(null==n?"":n)}),""))(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,a(t.target),t.g,t.o,t.k)}d.bind({g:1});let f=d.bind({k:1});function g(l,a,n,s){c.p=a,e=l,t=n,r=s}function b(l,a){let n=this||{};return function(){let s=arguments;function o(c,i){let p=Object.assign({},c),u=p.className||o.className;n.p=Object.assign({theme:t&&t()},p),n.o=/ *go\d+/.test(u),p.className=d.apply(n,s)+(u?" "+u:""),a&&(p.ref=i);let f=l;return l[0]&&(f=p.as||l,delete p.as),r&&f[0]&&r(p),e(f,p)}return a?a(o):o}}export{d as css,f as keyframes,g as setup,b as styled};
2
+ //# sourceMappingURL=goober.modern.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"goober.modern.js","sources":["../../../../../../node_modules/react-hot-toast/node_modules/goober/dist/goober.modern.js"],"sourcesContent":["let e={data:\"\"},t=t=>{if(\"object\"==typeof window){let e=(t?t.querySelector(\"#_goober\"):window._goober)||Object.assign(document.createElement(\"style\"),{innerHTML:\" \",id:\"_goober\"});return e.nonce=window.__nonce__,e.parentNode||(t||document.head).appendChild(e),e.firstChild}return t||e},r=e=>{let r=t(e),l=r.data;return r.data=\"\",l},l=/(?:([\\u0080-\\uFFFF\\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\\s*)/g,a=/\\/\\*[^]*?\\*\\/| +/g,n=/\\n+/g,o=(e,t)=>{let r=\"\",l=\"\",a=\"\";for(let n in e){let c=e[n];\"@\"==n[0]?\"i\"==n[1]?r=n+\" \"+c+\";\":l+=\"f\"==n[1]?o(c,n):n+\"{\"+o(c,\"k\"==n[1]?\"\":t)+\"}\":\"object\"==typeof c?l+=o(c,t?t.replace(/([^,])+/g,e=>n.replace(/([^,]*:\\S+\\([^)]*\\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+\" \"+t:t)):n):null!=c&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,\"-$&\").toLowerCase(),a+=o.p?o.p(n,c):n+\":\"+c+\";\")}return r+(t&&a?t+\"{\"+a+\"}\":a)+l},c={},s=e=>{if(\"object\"==typeof e){let t=\"\";for(let r in e)t+=r+s(e[r]);return t}return e},i=(e,t,r,i,p)=>{let u=s(e),d=c[u]||(c[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return\"go\"+r})(u));if(!c[d]){let t=u!==e?e:(e=>{let t,r,o=[{}];for(;t=l.exec(e.replace(a,\"\"));)t[4]?o.shift():t[3]?(r=t[3].replace(n,\" \").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n,\" \").trim();return o[0]})(e);c[d]=o(p?{[\"@keyframes \"+d]:t}:t,r?\"\":\".\"+d)}let f=r&&c.g?c.g:null;return r&&(c.g=c[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(c[d],t,i,f),d},p=(e,t,r)=>e.reduce((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?\".\"+t:e&&\"object\"==typeof e?e.props?\"\":o(e,\"\"):!1===e?\"\":e}return e+l+(null==n?\"\":n)},\"\");function u(e){let r=this||{},l=e.call?e(r.p):e;return i(l.unshift?l.raw?p(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,t(r.target),r.g,r.o,r.k)}let d,f,g,b=u.bind({g:1}),h=u.bind({k:1});function m(e,t,r,l){o.p=t,d=e,f=r,g=l}function w(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\\d+/.test(s),c.className=u.apply(r,l)+(s?\" \"+s:\"\"),t&&(c.ref=o);let i=e;return e[0]&&(i=c.as||e,delete c.as),g&&i[0]&&g(c),d(i,c)}return t?t(a):a}}export{u as css,r as extractCss,b as glob,h as keyframes,m as setup,w as styled};\n"],"names":["d","f","g","e","data","t","window","querySelector","_goober","Object","assign","document","createElement","innerHTML","id","nonce","__nonce__","parentNode","head","appendChild","firstChild","l","a","n","o","r","c","replace","test","toLowerCase","p","s","i","u","length","charCodeAt","exec","shift","trim","unshift","indexOf","this","call","raw","reduce","props","className","slice","arguments","target","k","bind","h","m","w","theme","apply","ref","as"],"mappings":"AAAG,IAAs1DA,EAAEC,EAAEC,EAAz1DC,EAAE,CAACC,KAAK,IAAIC,EAAEA,IAAI,GAAG,iBAAiBC,OAAO,CAAC,IAAIH,GAAGE,EAAEA,EAAEE,cAAc,YAAYD,OAAOE,UAAUC,OAAOC,OAAOC,SAASC,cAAc,SAAS,CAACC,UAAU,IAAIC,GAAG,YAAY,OAAOX,EAAEY,MAAMT,OAAOU,UAAUb,EAAEc,aAAaZ,GAAGM,SAASO,MAAMC,YAAYhB,GAAGA,EAAEiB,UAAU,CAAC,OAAOf,GAAGF,GAAiDkB,EAAE,oEAAoEC,EAAE,qBAAqBC,EAAE,OAAOC,EAAE,CAACrB,EAAEE,KAAK,IAAIoB,EAAE,GAAGJ,EAAE,GAAGC,EAAE,GAAG,IAAI,IAAIC,KAAKpB,EAAE,CAAC,IAAIuB,EAAEvB,EAAEoB,GAAG,KAAKA,EAAE,GAAG,KAAKA,EAAE,GAAGE,EAAEF,EAAE,IAAIG,EAAE,IAAIL,GAAG,KAAKE,EAAE,GAAGC,EAAEE,EAAEH,GAAGA,EAAE,IAAIC,EAAEE,EAAE,KAAKH,EAAE,GAAG,GAAGlB,GAAG,IAAI,iBAAiBqB,EAAEL,GAAGG,EAAEE,EAAErB,EAAEA,EAAEsB,QAAQ,YAAWxB,GAAGoB,EAAEI,QAAQ,iCAAgCtB,GAAG,IAAIuB,KAAKvB,GAAGA,EAAEsB,QAAQ,KAAKxB,GAAGA,EAAEA,EAAE,IAAIE,EAAEA,MAAIkB,GAAG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,EAAEvB,EAAEuB,EAAED,EAAEC,EAAEyB,EAAE,CAAajB,EAAEkB,KAAK,CAACjD,EAAE,IAAI,IAAAkD,EAAEnB,EAAEkB,KAAK,CAACD,EAAE,IAAI,SAASG,EAAElD,EAAEE,EAAEoB,EAAEJ,GAAGG,EAAEM,EAAEzB,EAAEL,EAAEG,EAAEF,EAAEwB,EAAEvB,EAAEmB,CAAC,CAAC,SAASiC,EAAEnD,EAAEE,GAAG,IAAIoB,EAAEgB,MAAM,CAAA,EAAG,OAAO,WAAW,IAAIpB,EAAE2B,UAAU,SAAS1B,EAAEC,EAAEC,GAAG,IAAIE,EAAEjB,OAAOC,OAAO,CAAA,EAAGa,GAAGQ,EAAEL,EAAEoB,WAAWxB,EAAEwB,UAAUrB,EAAEK,EAAErB,OAAOC,OAAO,CAAC6C,MAAMtD,GAAGA,KAAKyB,GAAGD,EAAED,EAAE,UAAUI,KAAKG,GAAGL,EAAEoB,UAAUb,EAAEuB,MAAM/B,EAAEJ,IAAIU,EAAE,IAAIA,EAAE,IAAI1B,IAAIqB,EAAE+B,IAAIjC,GAAG,IAAIQ,EAAE7B,EAAE,OAAOA,EAAE,KAAK6B,EAAEN,EAAEgC,IAAIvD,SAASuB,EAAEgC,IAAIxD,GAAG8B,EAAE,IAAI9B,EAAEwB,GAAG1B,EAAEgC,EAAEN,EAAE,CAAC,OAAOrB,EAAEA,EAAEiB,GAAGA,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ interface BookLearningProps {
3
+ open: boolean;
4
+ selectedText: string;
5
+ chatAssistantName: string;
6
+ organizationName: string;
7
+ baseUrl: string;
8
+ baseWebsocketUrl: string;
9
+ closeFunction: () => void;
10
+ ThinkingBulbIconComponent: React.ReactNode;
11
+ chatAssistantLogoUrl?: string;
12
+ ChatIconComponent?: React.ReactNode;
13
+ ggcAssistantName?: string;
14
+ mode: string;
15
+ rating: number;
16
+ loggedInUserEmail: string;
17
+ currentDocumentDetails: any;
18
+ }
19
+ declare const BookLearning: React.FC<BookLearningProps>;
20
+ export default BookLearning;
21
+ //# sourceMappingURL=DocumentLearning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentLearning.d.ts","sourceRoot":"","sources":["../../../../../src/features/DocumentLearning/DocumentLearning.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,UAAU,iBAAiB;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,GAAG,CAAC;CAC/B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0T7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ interface AudioWaveformProps {
3
+ amplitude: number;
4
+ variant: "microphone" | "speaker";
5
+ isActive: boolean;
6
+ className?: string;
7
+ onClick?: () => void;
8
+ disabled?: boolean;
9
+ isConnecting?: boolean;
10
+ }
11
+ declare const AudioWaveform: React.FC<AudioWaveformProps>;
12
+ export default AudioWaveform;
13
+ //# sourceMappingURL=AudioWaveform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioWaveform.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DocumentLearning/_components/AudioWaveform.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,kBAAkB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyH/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type React from "react";
2
+ import { type BookSuggestion } from "../../../utils/bookGenieAPI";
3
+ import { type FormattedValidationRecommendation } from "../../../utils/recommendationParser";
4
+ interface BookLearningFormProps {
5
+ question: string;
6
+ onSubmit?: (formData: any) => void;
7
+ rating: number;
8
+ baseUrl: string;
9
+ extractedRating?: number | null;
10
+ setExtractedRating: React.Dispatch<React.SetStateAction<number | null>>;
11
+ currentDocumentDetails: any;
12
+ formDataState: any;
13
+ setFormDataState: React.Dispatch<React.SetStateAction<any>>;
14
+ instantLearningSuggestions?: any;
15
+ setSendMessageInChat: React.Dispatch<React.SetStateAction<string>>;
16
+ setValidationWtaResponse: React.Dispatch<React.SetStateAction<any>>;
17
+ availableBooks: BookSuggestion[];
18
+ setAvailableBooks: React.Dispatch<React.SetStateAction<BookSuggestion[]>>;
19
+ validationRecommendations: FormattedValidationRecommendation | null;
20
+ }
21
+ declare const BookLearningForm: React.FC<BookLearningFormProps>;
22
+ export default BookLearningForm;
23
+ //# sourceMappingURL=BookLearningForm.d.ts.map