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

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 (130) hide show
  1. package/dist/cjs/features/DocumentLearning/DocumentLearning.js +1 -1
  2. package/dist/cjs/features/DocumentLearning/_components/BookLearningForm.js +1 -1
  3. package/dist/cjs/features/DocumentLearning/_components/ChatComponent.js +1 -1
  4. package/dist/cjs/features/DocumentLearning/_components/ConflictingLearningWarnCard.js +1 -1
  5. package/dist/cjs/features/InstantLearning/InstantLearning.js +1 -1
  6. package/dist/cjs/features/InstantLearning/_components/ChatComponent.js +1 -1
  7. package/dist/cjs/features/InstantLearning/_components/ConflictingLearningWarnCard.js +1 -1
  8. package/dist/cjs/features/InstantLearning/_components/ConflictingLearningWarnCardDB.js +1 -1
  9. package/dist/cjs/features/InstantLearning/_components/ContextualConflictDBCard.js +1 -1
  10. package/dist/cjs/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
  11. package/dist/cjs/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
  12. package/dist/cjs/features/WtaWnta/WtaWnta.js +1 -1
  13. package/dist/cjs/features/WtaWnta/_components/AgentDetailsForm.js +1 -1
  14. package/dist/cjs/features/WtaWnta/_components/SimilarConflictingCard.js +1 -1
  15. package/dist/cjs/features/WtaWnta/_components/ValidationCard.js +1 -1
  16. package/dist/cjs/node_modules/@mui/material/Box/Box.js +1 -1
  17. package/dist/cjs/node_modules/@mui/material/Box/Box.js.map +1 -1
  18. package/dist/cjs/node_modules/@mui/material/ButtonBase/TouchRipple.js +5 -5
  19. package/dist/cjs/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
  20. package/dist/cjs/node_modules/@mui/material/CircularProgress/CircularProgress.js +5 -5
  21. package/dist/cjs/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
  22. package/dist/cjs/node_modules/@mui/material/Container/Container.js +1 -1
  23. package/dist/cjs/node_modules/@mui/material/Container/Container.js.map +1 -1
  24. package/dist/cjs/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
  25. package/dist/cjs/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
  26. package/dist/cjs/node_modules/@mui/material/Grid/Grid.js +1 -1
  27. package/dist/cjs/node_modules/@mui/material/Grid/Grid.js.map +1 -1
  28. package/dist/cjs/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
  29. package/dist/cjs/node_modules/@mui/material/Hidden/HiddenCss.js.map +1 -1
  30. package/dist/cjs/node_modules/@mui/material/LinearProgress/LinearProgress.js +7 -7
  31. package/dist/cjs/node_modules/@mui/material/LinearProgress/LinearProgress.js.map +1 -1
  32. package/dist/cjs/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
  33. package/dist/cjs/node_modules/@mui/material/Link/getTextDecoration.js.map +1 -1
  34. package/dist/cjs/node_modules/@mui/material/Popper/Popper.js +1 -1
  35. package/dist/cjs/node_modules/@mui/material/Popper/Popper.js.map +1 -1
  36. package/dist/cjs/node_modules/@mui/material/Skeleton/Skeleton.js +5 -5
  37. package/dist/cjs/node_modules/@mui/material/Skeleton/Skeleton.js.map +1 -1
  38. package/dist/cjs/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
  39. package/dist/cjs/node_modules/@mui/material/Snackbar/Snackbar.js.map +1 -1
  40. package/dist/cjs/node_modules/@mui/material/Stack/Stack.js +1 -1
  41. package/dist/cjs/node_modules/@mui/material/Stack/Stack.js.map +1 -1
  42. package/dist/cjs/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
  43. package/dist/cjs/node_modules/@mui/material/ToggleButton/ToggleButton.js.map +1 -1
  44. package/dist/cjs/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
  45. package/dist/cjs/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
  46. package/dist/cjs/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
  47. package/dist/cjs/node_modules/@mui/material/Unstable_Grid2/Grid2.js.map +1 -1
  48. package/dist/cjs/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
  49. package/dist/cjs/node_modules/@mui/material/styles/CssVarsProvider.js.map +1 -1
  50. package/dist/cjs/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
  51. package/dist/cjs/node_modules/@mui/material/styles/ThemeProvider.js.map +1 -1
  52. package/dist/cjs/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
  53. package/dist/cjs/node_modules/@mui/material/styles/experimental_extendTheme.js.map +1 -1
  54. package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +1 -1
  55. package/dist/cjs/node_modules/@mui/material/styles/useTheme.js.map +1 -1
  56. package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  57. package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  58. package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  59. package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
  60. package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
  61. package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
  62. package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.js +1 -1
  63. package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.js.map +1 -1
  64. package/dist/features/DocumentLearning/DocumentLearning.js +1 -1
  65. package/dist/features/DocumentLearning/_components/BookLearningForm.js +1 -1
  66. package/dist/features/DocumentLearning/_components/ChatComponent.js +1 -1
  67. package/dist/features/DocumentLearning/_components/ConflictingLearningWarnCard.js +1 -1
  68. package/dist/features/InstantLearning/InstantLearning.js +1 -1
  69. package/dist/features/InstantLearning/_components/ChatComponent.js +1 -1
  70. package/dist/features/InstantLearning/_components/ConflictingLearningWarnCard.js +1 -1
  71. package/dist/features/InstantLearning/_components/ConflictingLearningWarnCardDB.js +1 -1
  72. package/dist/features/InstantLearning/_components/ContextualConflictDBCard.js +1 -1
  73. package/dist/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
  74. package/dist/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
  75. package/dist/features/WtaWnta/WtaWnta.js +1 -1
  76. package/dist/features/WtaWnta/_components/AgentDetailsForm.js +1 -1
  77. package/dist/features/WtaWnta/_components/SimilarConflictingCard.js +1 -1
  78. package/dist/features/WtaWnta/_components/ValidationCard.js +1 -1
  79. package/dist/node_modules/@mui/material/Box/Box.js +1 -1
  80. package/dist/node_modules/@mui/material/Box/Box.js.map +1 -1
  81. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js +5 -5
  82. package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
  83. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js +5 -5
  84. package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
  85. package/dist/node_modules/@mui/material/Container/Container.js +1 -1
  86. package/dist/node_modules/@mui/material/Container/Container.js.map +1 -1
  87. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
  88. package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
  89. package/dist/node_modules/@mui/material/Grid/Grid.js +1 -1
  90. package/dist/node_modules/@mui/material/Grid/Grid.js.map +1 -1
  91. package/dist/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
  92. package/dist/node_modules/@mui/material/Hidden/HiddenCss.js.map +1 -1
  93. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js +7 -7
  94. package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js.map +1 -1
  95. package/dist/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
  96. package/dist/node_modules/@mui/material/Link/getTextDecoration.js.map +1 -1
  97. package/dist/node_modules/@mui/material/Popper/Popper.js +1 -1
  98. package/dist/node_modules/@mui/material/Popper/Popper.js.map +1 -1
  99. package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +5 -5
  100. package/dist/node_modules/@mui/material/Skeleton/Skeleton.js.map +1 -1
  101. package/dist/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
  102. package/dist/node_modules/@mui/material/Snackbar/Snackbar.js.map +1 -1
  103. package/dist/node_modules/@mui/material/Stack/Stack.js +1 -1
  104. package/dist/node_modules/@mui/material/Stack/Stack.js.map +1 -1
  105. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
  106. package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js.map +1 -1
  107. package/dist/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
  108. package/dist/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
  109. package/dist/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
  110. package/dist/node_modules/@mui/material/Unstable_Grid2/Grid2.js.map +1 -1
  111. package/dist/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
  112. package/dist/node_modules/@mui/material/styles/CssVarsProvider.js.map +1 -1
  113. package/dist/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
  114. package/dist/node_modules/@mui/material/styles/ThemeProvider.js.map +1 -1
  115. package/dist/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
  116. package/dist/node_modules/@mui/material/styles/experimental_extendTheme.js.map +1 -1
  117. package/dist/node_modules/@mui/material/styles/useTheme.js +1 -1
  118. package/dist/node_modules/@mui/material/styles/useTheme.js.map +1 -1
  119. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  120. package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  121. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  122. package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
  123. package/dist/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
  124. package/dist/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
  125. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js +1 -1
  126. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js.map +1 -1
  127. package/dist/types/src/features/InstantLearning/_components/ContextualConflictDBCard.d.ts +1 -0
  128. package/dist/types/src/features/InstantLearning/_components/ContextualConflictDBCard.d.ts.map +1 -1
  129. package/dist/types/src/features/InstantLearning/_components/ContextualLearningForm.d.ts.map +1 -1
  130. package/package.json +1 -1
@@ -1,2 +1,2 @@
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};
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};
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":"6iDAMe,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":"qzDAMe,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 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};
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};
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":"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
+ {"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,2 +1,2 @@
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};
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};
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":"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
+ {"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,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"../../../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};
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};
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":"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,I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/B,QAEK6B,EAAKG,EAAe,CACnCrH,QAASqD,EAAcrD,OAAU4B,EACjC3B,MAAOiB,EAAeA,EAAajB,IAASA,GAC5CkC,SAAUA,OAGd,OAAIiB,EACK2D,GAEWG,EAAKzF,EAAmB6F,SAAU,CACpDC,MAAOX,GACPzE,SAAU4E,IAEb,CACwB,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":"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,MAAM,UAAUT,iDAE1B,MAAMU,EAAkCC,EAAMC,mBAAcC,GAC/B,eAAzBC,QAAQC,IAAIC,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AAUsF,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,2 +1,2 @@
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};
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};
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":"iHAOA,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":"yXAOA,SAASA,EAASC,EAAe,MAC/B,MAAMC,EAAeC,EAAMC,WAAWC,GACtC,OAAQH,IALaI,EAKiBJ,EAJH,IAA5BK,OAAOC,KAAKF,GAAKG,QAI6CP,EAAfD,EALxD,IAAuBK,CAMvB"}
@@ -24,6 +24,7 @@ interface ContextualConflictsDisplayDBProps {
24
24
  status: 'success' | 'error';
25
25
  message: string;
26
26
  } | null) => void;
27
+ onEdited?: (learningId: string) => void;
27
28
  }
28
29
  declare const ContextualConflictsDisplayDB: React.FC<ContextualConflictsDisplayDBProps>;
29
30
  export default ContextualConflictsDisplayDB;
@@ -1 +1 @@
1
- {"version":3,"file":"ContextualConflictDBCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearning/_components/ContextualConflictDBCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAoB3D,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACtC;AAED,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,iCAAiC;IACzC,qBAAqB,EAAE,CAAC,gBAAgB,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,8BAA8B,CAAC,EAAE,GAAG,CAAC;IACrC,0BAA0B,CAAC,EAAE,GAAG,CAAC;IACjC,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAC;CAClG;AAED,QAAA,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAyrB7E,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"ContextualConflictDBCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearning/_components/ContextualConflictDBCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAoB3D,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACtC;AAED,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,iCAAiC;IACzC,qBAAqB,EAAE,CAAC,gBAAgB,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,8BAA8B,CAAC,EAAE,GAAG,CAAC;IACrC,0BAA0B,CAAC,EAAE,GAAG,CAAC;IACjC,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACjG,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,QAAA,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAorB7E,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContextualLearningForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearning/_components/ContextualLearningForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAgB,sBAAsB,EAA+C,MAAM,oBAAoB,CAAC;AAa5H,OAAO,EACL,iCAAiC,EAElC,MAAM,qCAAqC,CAAC;AAoB7C,UAAU,2BAA2B;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAClD,eAAe,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACtD,QAAQ,EAAE,CAAC,QAAQ,EAAE,sBAAsB,EAAE,SAAS,EAAE,QAAQ,KAAK,IAAI,CAAC;IACzE,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC1E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,wBAAwB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IACrE,OAAO,CAAC,EAAG,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,8BAA8B,CAAC,EAAE,GAAG,CAAC;IACrC,0BAA0B,CAAC,EAAE,GAAG,CAAC;IACjC,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACjG,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yBAAyB,EAAE,iCAAiC,GAAG,IAAI,CAAC;IACpE,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAEtE;AAsVD,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAmwDjE,CAAA;AAED,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"ContextualLearningForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearning/_components/ContextualLearningForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAgB,sBAAsB,EAA+C,MAAM,oBAAoB,CAAC;AAa5H,OAAO,EACL,iCAAiC,EAElC,MAAM,qCAAqC,CAAC;AAoB7C,UAAU,2BAA2B;IACnC,QAAQ,EAA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I,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yBAAyB,EAAE,iCAAiC,GAAG,IAAI,CAAC;IACpE,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAEtE;AAsVD,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAoyDjE,CAAA;AAED,eAAe,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/instant-learning",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",