tp-react-elements-dev 1.7.6 → 1.8.0

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.
package/dist/index.js CHANGED
@@ -7139,7 +7139,7 @@ var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
7139
7139
  return getTheme(outerTheme, theme);
7140
7140
  });
7141
7141
  });
7142
- var ThemeProvider = function ThemeProvider(props) {
7142
+ var ThemeProvider$3 = function ThemeProvider(props) {
7143
7143
  var theme = React__namespace.useContext(ThemeContext$1);
7144
7144
 
7145
7145
  if (props.theme !== theme) {
@@ -8357,7 +8357,7 @@ var getDisplayName = /*#__PURE__*/Object.freeze({
8357
8357
 
8358
8358
  var require$$6 = /*@__PURE__*/getAugmentedNamespace(getDisplayName);
8359
8359
 
8360
- const _excluded$1m = ["values", "unit", "step"];
8360
+ const _excluded$1s = ["values", "unit", "step"];
8361
8361
  const sortBreakpointsValues = values => {
8362
8362
  const breakpointsAsArray = Object.keys(values).map(key => ({
8363
8363
  key,
@@ -8391,7 +8391,7 @@ function createBreakpoints(breakpoints) {
8391
8391
  unit = 'px',
8392
8392
  step = 5
8393
8393
  } = breakpoints,
8394
- other = _objectWithoutPropertiesLoose(breakpoints, _excluded$1m);
8394
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$1s);
8395
8395
  const sortedValues = sortBreakpointsValues(values);
8396
8396
  const keys = Object.keys(sortedValues);
8397
8397
  function up(key) {
@@ -9530,7 +9530,7 @@ function applyStyles$2(key, styles) {
9530
9530
  return {};
9531
9531
  }
9532
9532
 
9533
- const _excluded$1l = ["breakpoints", "palette", "spacing", "shape"];
9533
+ const _excluded$1r = ["breakpoints", "palette", "spacing", "shape"];
9534
9534
  function createTheme$2(options = {}, ...args) {
9535
9535
  const {
9536
9536
  breakpoints: breakpointsInput = {},
@@ -9538,7 +9538,7 @@ function createTheme$2(options = {}, ...args) {
9538
9538
  spacing: spacingInput,
9539
9539
  shape: shapeInput = {}
9540
9540
  } = options,
9541
- other = _objectWithoutPropertiesLoose(options, _excluded$1l);
9541
+ other = _objectWithoutPropertiesLoose(options, _excluded$1r);
9542
9542
  const breakpoints = createBreakpoints(breakpointsInput);
9543
9543
  const spacing = createSpacing(spacingInput);
9544
9544
  let muiTheme = deepmerge$1({
@@ -9573,7 +9573,7 @@ var createTheme$1 = /*#__PURE__*/Object.freeze({
9573
9573
 
9574
9574
  var require$$7 = /*@__PURE__*/getAugmentedNamespace(createTheme$1);
9575
9575
 
9576
- const _excluded$1k = ["sx"];
9576
+ const _excluded$1q = ["sx"];
9577
9577
  const splitProps = props => {
9578
9578
  var _props$theme$unstable, _props$theme;
9579
9579
  const result = {
@@ -9594,7 +9594,7 @@ function extendSxProp(props) {
9594
9594
  const {
9595
9595
  sx: inSx
9596
9596
  } = props,
9597
- other = _objectWithoutPropertiesLoose(props, _excluded$1k);
9597
+ other = _objectWithoutPropertiesLoose(props, _excluded$1q);
9598
9598
  const {
9599
9599
  systemProps,
9600
9600
  otherProps
@@ -9643,8 +9643,8 @@ var _capitalize = _interopRequireDefault$6(require$$5);
9643
9643
  var _getDisplayName = _interopRequireDefault$6(require$$6);
9644
9644
  var _createTheme = _interopRequireDefault$6(require$$7);
9645
9645
  var _styleFunctionSx = _interopRequireDefault$6(require$$8);
9646
- const _excluded$1j = ["ownerState"],
9647
- _excluded2$d = ["variants"],
9646
+ const _excluded$1p = ["ownerState"],
9647
+ _excluded2$f = ["variants"],
9648
9648
  _excluded3$6 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
9649
9649
  /* eslint-disable no-underscore-dangle */
9650
9650
  function _getRequireWildcardCache$1(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache$1 = function (e) { return e ? t : r; })(e); }
@@ -9690,7 +9690,7 @@ function processStyleArg$1(callableStyle, _ref) {
9690
9690
  let {
9691
9691
  ownerState
9692
9692
  } = _ref,
9693
- props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded$1j);
9693
+ props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded$1p);
9694
9694
  const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle((0, _extends2.default)({
9695
9695
  ownerState
9696
9696
  }, props)) : callableStyle;
@@ -9703,7 +9703,7 @@ function processStyleArg$1(callableStyle, _ref) {
9703
9703
  const {
9704
9704
  variants = []
9705
9705
  } = resolvedStylesArg,
9706
- otherStyles = (0, _objectWithoutPropertiesLoose2.default)(resolvedStylesArg, _excluded2$d);
9706
+ otherStyles = (0, _objectWithoutPropertiesLoose2.default)(resolvedStylesArg, _excluded2$f);
9707
9707
  let result = otherStyles;
9708
9708
  variants.forEach(variant => {
9709
9709
  let isMatch = true;
@@ -9952,21 +9952,21 @@ Object.defineProperty(colorManipulator, "__esModule", {
9952
9952
  var alpha_1 = colorManipulator.alpha = alpha$1;
9953
9953
  colorManipulator.blend = blend;
9954
9954
  colorManipulator.colorChannel = void 0;
9955
- var darken_1 = colorManipulator.darken = darken;
9955
+ var darken_1 = colorManipulator.darken = darken$1;
9956
9956
  colorManipulator.decomposeColor = decomposeColor$1;
9957
- colorManipulator.emphasize = emphasize;
9958
- var getContrastRatio_1 = colorManipulator.getContrastRatio = getContrastRatio;
9959
- colorManipulator.getLuminance = getLuminance;
9957
+ colorManipulator.emphasize = emphasize$1;
9958
+ var getContrastRatio_1 = colorManipulator.getContrastRatio = getContrastRatio$1;
9959
+ colorManipulator.getLuminance = getLuminance$1;
9960
9960
  colorManipulator.hexToRgb = hexToRgb$1;
9961
- colorManipulator.hslToRgb = hslToRgb;
9962
- var lighten_1 = colorManipulator.lighten = lighten;
9963
- colorManipulator.private_safeAlpha = private_safeAlpha;
9964
- colorManipulator.private_safeColorChannel = void 0;
9965
- colorManipulator.private_safeDarken = private_safeDarken;
9966
- colorManipulator.private_safeEmphasize = private_safeEmphasize;
9967
- colorManipulator.private_safeLighten = private_safeLighten;
9961
+ var hslToRgb_1 = colorManipulator.hslToRgb = hslToRgb$1;
9962
+ var lighten_1 = colorManipulator.lighten = lighten$1;
9963
+ var private_safeAlpha_1 = colorManipulator.private_safeAlpha = private_safeAlpha;
9964
+ var private_safeColorChannel_1 = colorManipulator.private_safeColorChannel = void 0;
9965
+ var private_safeDarken_1 = colorManipulator.private_safeDarken = private_safeDarken;
9966
+ var private_safeEmphasize_1 = colorManipulator.private_safeEmphasize = private_safeEmphasize;
9967
+ var private_safeLighten_1 = colorManipulator.private_safeLighten = private_safeLighten;
9968
9968
  colorManipulator.recomposeColor = recomposeColor$1;
9969
- colorManipulator.rgbToHex = rgbToHex;
9969
+ colorManipulator.rgbToHex = rgbToHex$1;
9970
9970
  var _formatMuiErrorMessage2 = _interopRequireDefault$5(require$$1);
9971
9971
  var _clamp = _interopRequireDefault$5(require$$2);
9972
9972
  /* eslint-disable @typescript-eslint/naming-convention */
@@ -10003,7 +10003,7 @@ function hexToRgb$1(color) {
10003
10003
  return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
10004
10004
  }).join(', ')})` : '';
10005
10005
  }
10006
- function intToHex(int) {
10006
+ function intToHex$1(int) {
10007
10007
  const hex = int.toString(16);
10008
10008
  return hex.length === 1 ? `0${hex}` : hex;
10009
10009
  }
@@ -10081,7 +10081,7 @@ const private_safeColorChannel = (color, warning) => {
10081
10081
  * @param {array} color.values - [n,n,n] or [n,n,n,n]
10082
10082
  * @returns {string} A CSS color string
10083
10083
  */
10084
- colorManipulator.private_safeColorChannel = private_safeColorChannel;
10084
+ private_safeColorChannel_1 = colorManipulator.private_safeColorChannel = private_safeColorChannel;
10085
10085
  function recomposeColor$1(color) {
10086
10086
  const {
10087
10087
  type,
@@ -10110,7 +10110,7 @@ function recomposeColor$1(color) {
10110
10110
  * @param {string} color - RGB color, i.e. rgb(n, n, n)
10111
10111
  * @returns {string} A CSS rgb color string, i.e. #nnnnnn
10112
10112
  */
10113
- function rgbToHex(color) {
10113
+ function rgbToHex$1(color) {
10114
10114
  // Idempotent
10115
10115
  if (color.indexOf('#') === 0) {
10116
10116
  return color;
@@ -10118,7 +10118,7 @@ function rgbToHex(color) {
10118
10118
  const {
10119
10119
  values
10120
10120
  } = decomposeColor$1(color);
10121
- return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;
10121
+ return `#${values.map((n, i) => intToHex$1(i === 3 ? Math.round(255 * n) : n)).join('')}`;
10122
10122
  }
10123
10123
 
10124
10124
  /**
@@ -10126,7 +10126,7 @@ function rgbToHex(color) {
10126
10126
  * @param {string} color - HSL color values
10127
10127
  * @returns {string} rgb color values
10128
10128
  */
10129
- function hslToRgb(color) {
10129
+ function hslToRgb$1(color) {
10130
10130
  color = decomposeColor$1(color);
10131
10131
  const {
10132
10132
  values
@@ -10155,9 +10155,9 @@ function hslToRgb(color) {
10155
10155
  * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
10156
10156
  * @returns {number} The relative brightness of the color in the range 0 - 1
10157
10157
  */
10158
- function getLuminance(color) {
10158
+ function getLuminance$1(color) {
10159
10159
  color = decomposeColor$1(color);
10160
- let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor$1(hslToRgb(color)).values : color.values;
10160
+ let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor$1(hslToRgb$1(color)).values : color.values;
10161
10161
  rgb = rgb.map(val => {
10162
10162
  if (color.type !== 'color') {
10163
10163
  val /= 255; // normalized
@@ -10177,9 +10177,9 @@ function getLuminance(color) {
10177
10177
  * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
10178
10178
  * @returns {number} A contrast ratio value in the range 0 - 21.
10179
10179
  */
10180
- function getContrastRatio(foreground, background) {
10181
- const lumA = getLuminance(foreground);
10182
- const lumB = getLuminance(background);
10180
+ function getContrastRatio$1(foreground, background) {
10181
+ const lumA = getLuminance$1(foreground);
10182
+ const lumB = getLuminance$1(background);
10183
10183
  return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
10184
10184
  }
10185
10185
 
@@ -10220,7 +10220,7 @@ function private_safeAlpha(color, value, warning) {
10220
10220
  * @param {number} coefficient - multiplier in the range 0 - 1
10221
10221
  * @returns {string} A CSS color string. Hex input values are returned as rgb
10222
10222
  */
10223
- function darken(color, coefficient) {
10223
+ function darken$1(color, coefficient) {
10224
10224
  color = decomposeColor$1(color);
10225
10225
  coefficient = clampWrapper$1(coefficient);
10226
10226
  if (color.type.indexOf('hsl') !== -1) {
@@ -10234,7 +10234,7 @@ function darken(color, coefficient) {
10234
10234
  }
10235
10235
  function private_safeDarken(color, coefficient, warning) {
10236
10236
  try {
10237
- return darken(color, coefficient);
10237
+ return darken$1(color, coefficient);
10238
10238
  } catch (error) {
10239
10239
  if (warning && process.env.NODE_ENV !== 'production') {
10240
10240
  console.warn(warning);
@@ -10249,7 +10249,7 @@ function private_safeDarken(color, coefficient, warning) {
10249
10249
  * @param {number} coefficient - multiplier in the range 0 - 1
10250
10250
  * @returns {string} A CSS color string. Hex input values are returned as rgb
10251
10251
  */
10252
- function lighten(color, coefficient) {
10252
+ function lighten$1(color, coefficient) {
10253
10253
  color = decomposeColor$1(color);
10254
10254
  coefficient = clampWrapper$1(coefficient);
10255
10255
  if (color.type.indexOf('hsl') !== -1) {
@@ -10267,7 +10267,7 @@ function lighten(color, coefficient) {
10267
10267
  }
10268
10268
  function private_safeLighten(color, coefficient, warning) {
10269
10269
  try {
10270
- return lighten(color, coefficient);
10270
+ return lighten$1(color, coefficient);
10271
10271
  } catch (error) {
10272
10272
  if (warning && process.env.NODE_ENV !== 'production') {
10273
10273
  console.warn(warning);
@@ -10283,12 +10283,12 @@ function private_safeLighten(color, coefficient, warning) {
10283
10283
  * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
10284
10284
  * @returns {string} A CSS color string. Hex input values are returned as rgb
10285
10285
  */
10286
- function emphasize(color, coefficient = 0.15) {
10287
- return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
10286
+ function emphasize$1(color, coefficient = 0.15) {
10287
+ return getLuminance$1(color) > 0.5 ? darken$1(color, coefficient) : lighten$1(color, coefficient);
10288
10288
  }
10289
10289
  function private_safeEmphasize(color, coefficient, warning) {
10290
10290
  try {
10291
- return emphasize(color, coefficient);
10291
+ return emphasize$1(color, coefficient);
10292
10292
  } catch (error) {
10293
10293
  if (warning && process.env.NODE_ENV !== 'production') {
10294
10294
  console.warn(warning);
@@ -10440,7 +10440,7 @@ const green = {
10440
10440
  A700: '#00c853'
10441
10441
  };
10442
10442
 
10443
- const _excluded$1i = ["mode", "contrastThreshold", "tonalOffset"];
10443
+ const _excluded$1o = ["mode", "contrastThreshold", "tonalOffset"];
10444
10444
  const light = {
10445
10445
  // The colors used to style the text.
10446
10446
  text: {
@@ -10609,7 +10609,7 @@ function createPalette(palette) {
10609
10609
  contrastThreshold = 3,
10610
10610
  tonalOffset = 0.2
10611
10611
  } = palette,
10612
- other = _objectWithoutPropertiesLoose(palette, _excluded$1i);
10612
+ other = _objectWithoutPropertiesLoose(palette, _excluded$1o);
10613
10613
  const primary = palette.primary || getDefaultPrimary(mode);
10614
10614
  const secondary = palette.secondary || getDefaultSecondary(mode);
10615
10615
  const error = palette.error || getDefaultError(mode);
@@ -10733,7 +10733,7 @@ const theme2 = createTheme({ palette: {
10733
10733
  return paletteOutput;
10734
10734
  }
10735
10735
 
10736
- const _excluded$1h = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
10736
+ const _excluded$1n = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
10737
10737
  function round$2(value) {
10738
10738
  return Math.round(value * 1e5) / 1e5;
10739
10739
  }
@@ -10764,7 +10764,7 @@ function createTypography(palette, typography) {
10764
10764
  allVariants,
10765
10765
  pxToRem: pxToRem2
10766
10766
  } = _ref,
10767
- other = _objectWithoutPropertiesLoose(_ref, _excluded$1h);
10767
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
10768
10768
  if (process.env.NODE_ENV !== 'production') {
10769
10769
  if (typeof fontSize !== 'number') {
10770
10770
  console.error('MUI: `fontSize` is required to be a number.');
@@ -10831,7 +10831,7 @@ function createShadow(...px) {
10831
10831
  // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss
10832
10832
  const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
10833
10833
 
10834
- const _excluded$1g = ["duration", "easing", "delay"];
10834
+ const _excluded$1m = ["duration", "easing", "delay"];
10835
10835
  // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
10836
10836
  // to learn the context in which each easing should be used.
10837
10837
  const easing = {
@@ -10882,7 +10882,7 @@ function createTransitions(inputTransitions) {
10882
10882
  easing: easingOption = mergedEasing.easeInOut,
10883
10883
  delay = 0
10884
10884
  } = options,
10885
- other = _objectWithoutPropertiesLoose(options, _excluded$1g);
10885
+ other = _objectWithoutPropertiesLoose(options, _excluded$1m);
10886
10886
  if (process.env.NODE_ENV !== 'production') {
10887
10887
  const isString = value => typeof value === 'string';
10888
10888
  // IE11 support, replace with Number.isNaN
@@ -10931,7 +10931,7 @@ const zIndex = {
10931
10931
  tooltip: 1500
10932
10932
  };
10933
10933
 
10934
- const _excluded$1f = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
10934
+ const _excluded$1l = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
10935
10935
  function createTheme(options = {}, ...args) {
10936
10936
  const {
10937
10937
  mixins: mixinsInput = {},
@@ -10939,7 +10939,7 @@ function createTheme(options = {}, ...args) {
10939
10939
  transitions: transitionsInput = {},
10940
10940
  typography: typographyInput = {}
10941
10941
  } = options,
10942
- other = _objectWithoutPropertiesLoose(options, _excluded$1f);
10942
+ other = _objectWithoutPropertiesLoose(options, _excluded$1l);
10943
10943
  if (options.vars) {
10944
10944
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
10945
10945
  Please use another name.` : formatMuiErrorMessage$1(18));
@@ -10996,8 +10996,18 @@ Please use another name.` : formatMuiErrorMessage$1(18));
10996
10996
  };
10997
10997
  return muiTheme;
10998
10998
  }
10999
+ let warnedOnce$1 = false;
11000
+ function createMuiTheme(...args) {
11001
+ if (process.env.NODE_ENV !== 'production') {
11002
+ if (!warnedOnce$1) {
11003
+ warnedOnce$1 = true;
11004
+ console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', "You should use `import { createTheme } from '@mui/material/styles'`"].join('\n'));
11005
+ }
11006
+ }
11007
+ return createTheme(...args);
11008
+ }
10999
11009
 
11000
- const defaultTheme$2 = createTheme();
11010
+ const defaultTheme$3 = createTheme();
11001
11011
 
11002
11012
  var THEME_ID = '$$material';
11003
11013
 
@@ -11010,7 +11020,7 @@ const rootShouldForwardProp = prop => slotShouldForwardProp(prop) && prop !== 'c
11010
11020
 
11011
11021
  const styled$1 = _default({
11012
11022
  themeId: THEME_ID,
11013
- defaultTheme: defaultTheme$2,
11023
+ defaultTheme: defaultTheme$3,
11014
11024
  rootShouldForwardProp
11015
11025
  });
11016
11026
 
@@ -11098,7 +11108,7 @@ function useThemeProps$1({
11098
11108
  return useThemeProps$2({
11099
11109
  props,
11100
11110
  name,
11101
- defaultTheme: defaultTheme$2,
11111
+ defaultTheme: defaultTheme$3,
11102
11112
  themeId: THEME_ID
11103
11113
  });
11104
11114
  }
@@ -11885,7 +11895,7 @@ function mergeSlotProps(parameters) {
11885
11895
  };
11886
11896
  }
11887
11897
 
11888
- const _excluded$1e = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
11898
+ const _excluded$1k = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
11889
11899
  /**
11890
11900
  * @ignore - do not document.
11891
11901
  * Builds the props to be passed into the slot of an unstyled component.
@@ -11902,7 +11912,7 @@ function useSlotProps(parameters) {
11902
11912
  ownerState,
11903
11913
  skipResolvingSlotProps = false
11904
11914
  } = parameters,
11905
- rest = _objectWithoutPropertiesLoose(parameters, _excluded$1e);
11915
+ rest = _objectWithoutPropertiesLoose(parameters, _excluded$1k);
11906
11916
  const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);
11907
11917
  const {
11908
11918
  props: mergedProps,
@@ -14721,8 +14731,8 @@ function getPopperUtilityClass(slot) {
14721
14731
  }
14722
14732
  generateUtilityClasses(COMPONENT_NAME, ['root']);
14723
14733
 
14724
- const _excluded$1d = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
14725
- _excluded2$c = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
14734
+ const _excluded$1j = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
14735
+ _excluded2$e = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
14726
14736
  function flipPlacement(placement, direction) {
14727
14737
  if (direction === 'ltr') {
14728
14738
  return placement;
@@ -14774,7 +14784,7 @@ const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTo
14774
14784
  // @ts-ignore internal logic
14775
14785
  // prevent from spreading to DOM, it can come from the parent component e.g. Select.
14776
14786
  } = props,
14777
- other = _objectWithoutPropertiesLoose(props, _excluded$1d);
14787
+ other = _objectWithoutPropertiesLoose(props, _excluded$1j);
14778
14788
  const tooltipRef = React__namespace.useRef(null);
14779
14789
  const ownRef = useForkRef(tooltipRef, forwardedRef);
14780
14790
  const popperRef = React__namespace.useRef(null);
@@ -14906,7 +14916,7 @@ const Popper$1 = /*#__PURE__*/React__namespace.forwardRef(function Popper(props,
14906
14916
  slotProps = {},
14907
14917
  slots = {}
14908
14918
  } = props,
14909
- other = _objectWithoutPropertiesLoose(props, _excluded2$c);
14919
+ other = _objectWithoutPropertiesLoose(props, _excluded2$e);
14910
14920
  const [exited, setExited] = React__namespace.useState(true);
14911
14921
  const handleEnter = () => {
14912
14922
  setExited(false);
@@ -15085,7 +15095,7 @@ process.env.NODE_ENV !== "production" ? Popper$1.propTypes /* remove-proptypes *
15085
15095
  transition: PropTypes.bool
15086
15096
  } : void 0;
15087
15097
 
15088
- const _excluded$1c = ["onChange", "maxRows", "minRows", "style", "value"];
15098
+ const _excluded$1i = ["onChange", "maxRows", "minRows", "style", "value"];
15089
15099
  function getStyleValue(value) {
15090
15100
  return parseInt(value, 10) || 0;
15091
15101
  }
@@ -15127,7 +15137,7 @@ const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function Texta
15127
15137
  style,
15128
15138
  value
15129
15139
  } = props,
15130
- other = _objectWithoutPropertiesLoose(props, _excluded$1c);
15140
+ other = _objectWithoutPropertiesLoose(props, _excluded$1i);
15131
15141
  const {
15132
15142
  current: isControlled
15133
15143
  } = React__namespace.useRef(value != null);
@@ -16341,7 +16351,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$1.propTypes /* remove-propt
16341
16351
  themeId: PropTypes.string
16342
16352
  } : void 0;
16343
16353
 
16344
- const _excluded$1b = ["className", "component"];
16354
+ const _excluded$1h = ["className", "component"];
16345
16355
  function createBox(options = {}) {
16346
16356
  const {
16347
16357
  themeId,
@@ -16359,7 +16369,7 @@ function createBox(options = {}) {
16359
16369
  className,
16360
16370
  component = 'div'
16361
16371
  } = _extendSxProp,
16362
- other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$1b);
16372
+ other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$1h);
16363
16373
  return /*#__PURE__*/jsxRuntimeExports.jsx(BoxRoot, _extends$1({
16364
16374
  as: component,
16365
16375
  ref: ref,
@@ -16370,8 +16380,8 @@ function createBox(options = {}) {
16370
16380
  return Box;
16371
16381
  }
16372
16382
 
16373
- const _excluded$1a = ["ownerState"],
16374
- _excluded2$b = ["variants"],
16383
+ const _excluded$1g = ["ownerState"],
16384
+ _excluded2$d = ["variants"],
16375
16385
  _excluded3$5 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
16376
16386
  function isEmpty$2(obj) {
16377
16387
  return Object.keys(obj).length === 0;
@@ -16414,7 +16424,7 @@ function processStyleArg(callableStyle, _ref) {
16414
16424
  let {
16415
16425
  ownerState
16416
16426
  } = _ref,
16417
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
16427
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
16418
16428
  const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends$1({
16419
16429
  ownerState
16420
16430
  }, props)) : callableStyle;
@@ -16427,7 +16437,7 @@ function processStyleArg(callableStyle, _ref) {
16427
16437
  const {
16428
16438
  variants = []
16429
16439
  } = resolvedStylesArg,
16430
- otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2$b);
16440
+ otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2$d);
16431
16441
  let result = otherStyles;
16432
16442
  variants.forEach(variant => {
16433
16443
  let isMatch = true;
@@ -16756,6 +16766,10 @@ function hexToRgb(color) {
16756
16766
  return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
16757
16767
  }).join(', ')})` : '';
16758
16768
  }
16769
+ function intToHex(int) {
16770
+ const hex = int.toString(16);
16771
+ return hex.length === 1 ? `0${hex}` : hex;
16772
+ }
16759
16773
 
16760
16774
  /**
16761
16775
  * Returns an object with the type and values of a color.
@@ -16831,6 +16845,84 @@ function recomposeColor(color) {
16831
16845
  return `${type}(${values})`;
16832
16846
  }
16833
16847
 
16848
+ /**
16849
+ * Converts a color from CSS rgb format to CSS hex format.
16850
+ * @param {string} color - RGB color, i.e. rgb(n, n, n)
16851
+ * @returns {string} A CSS rgb color string, i.e. #nnnnnn
16852
+ */
16853
+ function rgbToHex(color) {
16854
+ // Idempotent
16855
+ if (color.indexOf('#') === 0) {
16856
+ return color;
16857
+ }
16858
+ const {
16859
+ values
16860
+ } = decomposeColor(color);
16861
+ return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;
16862
+ }
16863
+
16864
+ /**
16865
+ * Converts a color from hsl format to rgb format.
16866
+ * @param {string} color - HSL color values
16867
+ * @returns {string} rgb color values
16868
+ */
16869
+ function hslToRgb(color) {
16870
+ color = decomposeColor(color);
16871
+ const {
16872
+ values
16873
+ } = color;
16874
+ const h = values[0];
16875
+ const s = values[1] / 100;
16876
+ const l = values[2] / 100;
16877
+ const a = s * Math.min(l, 1 - l);
16878
+ const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
16879
+ let type = 'rgb';
16880
+ const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
16881
+ if (color.type === 'hsla') {
16882
+ type += 'a';
16883
+ rgb.push(values[3]);
16884
+ }
16885
+ return recomposeColor({
16886
+ type,
16887
+ values: rgb
16888
+ });
16889
+ }
16890
+ /**
16891
+ * The relative brightness of any point in a color space,
16892
+ * normalized to 0 for darkest black and 1 for lightest white.
16893
+ *
16894
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
16895
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
16896
+ * @returns {number} The relative brightness of the color in the range 0 - 1
16897
+ */
16898
+ function getLuminance(color) {
16899
+ color = decomposeColor(color);
16900
+ let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;
16901
+ rgb = rgb.map(val => {
16902
+ if (color.type !== 'color') {
16903
+ val /= 255; // normalized
16904
+ }
16905
+ return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;
16906
+ });
16907
+
16908
+ // Truncate at 3 digits
16909
+ return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
16910
+ }
16911
+
16912
+ /**
16913
+ * Calculates the contrast ratio between two colors.
16914
+ *
16915
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
16916
+ * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
16917
+ * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
16918
+ * @returns {number} A contrast ratio value in the range 0 - 21.
16919
+ */
16920
+ function getContrastRatio(foreground, background) {
16921
+ const lumA = getLuminance(foreground);
16922
+ const lumB = getLuminance(background);
16923
+ return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
16924
+ }
16925
+
16834
16926
  /**
16835
16927
  * Sets the absolute transparency of a color.
16836
16928
  * Any existing alpha values are overwritten.
@@ -16852,6 +16944,59 @@ function alpha(color, value) {
16852
16944
  return recomposeColor(color);
16853
16945
  }
16854
16946
 
16947
+ /**
16948
+ * Darkens a color.
16949
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
16950
+ * @param {number} coefficient - multiplier in the range 0 - 1
16951
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
16952
+ */
16953
+ function darken(color, coefficient) {
16954
+ color = decomposeColor(color);
16955
+ coefficient = clampWrapper(coefficient);
16956
+ if (color.type.indexOf('hsl') !== -1) {
16957
+ color.values[2] *= 1 - coefficient;
16958
+ } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {
16959
+ for (let i = 0; i < 3; i += 1) {
16960
+ color.values[i] *= 1 - coefficient;
16961
+ }
16962
+ }
16963
+ return recomposeColor(color);
16964
+ }
16965
+
16966
+ /**
16967
+ * Lightens a color.
16968
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
16969
+ * @param {number} coefficient - multiplier in the range 0 - 1
16970
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
16971
+ */
16972
+ function lighten(color, coefficient) {
16973
+ color = decomposeColor(color);
16974
+ coefficient = clampWrapper(coefficient);
16975
+ if (color.type.indexOf('hsl') !== -1) {
16976
+ color.values[2] += (100 - color.values[2]) * coefficient;
16977
+ } else if (color.type.indexOf('rgb') !== -1) {
16978
+ for (let i = 0; i < 3; i += 1) {
16979
+ color.values[i] += (255 - color.values[i]) * coefficient;
16980
+ }
16981
+ } else if (color.type.indexOf('color') !== -1) {
16982
+ for (let i = 0; i < 3; i += 1) {
16983
+ color.values[i] += (1 - color.values[i]) * coefficient;
16984
+ }
16985
+ }
16986
+ return recomposeColor(color);
16987
+ }
16988
+
16989
+ /**
16990
+ * Darken or lighten a color, depending on its luminance.
16991
+ * Light colors are darkened, dark colors are lightened.
16992
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
16993
+ * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
16994
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
16995
+ */
16996
+ function emphasize(color, coefficient = 0.15) {
16997
+ return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
16998
+ }
16999
+
16855
17000
  const ThemeContext = /*#__PURE__*/React__namespace.createContext(null);
16856
17001
  if (process.env.NODE_ENV !== 'production') {
16857
17002
  ThemeContext.displayName = 'ThemeContext';
@@ -16869,8 +17014,73 @@ function useTheme$3() {
16869
17014
  const hasSymbol = typeof Symbol === 'function' && Symbol.for;
16870
17015
  var nested = hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';
16871
17016
 
17017
+ function mergeOuterLocalTheme(outerTheme, localTheme) {
17018
+ if (typeof localTheme === 'function') {
17019
+ const mergedTheme = localTheme(outerTheme);
17020
+ if (process.env.NODE_ENV !== 'production') {
17021
+ if (!mergedTheme) {
17022
+ console.error(['MUI: You should return an object from your theme function, i.e.', '<ThemeProvider theme={() => ({})} />'].join('\n'));
17023
+ }
17024
+ }
17025
+ return mergedTheme;
17026
+ }
17027
+ return _extends$1({}, outerTheme, localTheme);
17028
+ }
17029
+
17030
+ /**
17031
+ * This component takes a `theme` prop.
17032
+ * It makes the `theme` available down the React tree thanks to React context.
17033
+ * This component should preferably be used at **the root of your component tree**.
17034
+ */
17035
+ function ThemeProvider$2(props) {
17036
+ const {
17037
+ children,
17038
+ theme: localTheme
17039
+ } = props;
17040
+ const outerTheme = useTheme$3();
17041
+ if (process.env.NODE_ENV !== 'production') {
17042
+ if (outerTheme === null && typeof localTheme === 'function') {
17043
+ 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'));
17044
+ }
17045
+ }
17046
+ const theme = React__namespace.useMemo(() => {
17047
+ const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
17048
+ if (output != null) {
17049
+ output[nested] = outerTheme !== null;
17050
+ }
17051
+ return output;
17052
+ }, [localTheme, outerTheme]);
17053
+ return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeContext.Provider, {
17054
+ value: theme,
17055
+ children: children
17056
+ });
17057
+ }
17058
+ process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = {
17059
+ /**
17060
+ * Your component tree.
17061
+ */
17062
+ children: PropTypes.node,
17063
+ /**
17064
+ * A theme object. You can provide a function to extend the outer theme.
17065
+ */
17066
+ theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
17067
+ } : void 0;
17068
+ if (process.env.NODE_ENV !== 'production') {
17069
+ process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = exactProp(ThemeProvider$2.propTypes) : void 0;
17070
+ }
17071
+
17072
+ const _excluded$1f = ["value"];
16872
17073
  const RtlContext = /*#__PURE__*/React__namespace.createContext();
16873
- process.env.NODE_ENV !== "production" ? {
17074
+ function RtlProvider(_ref) {
17075
+ let {
17076
+ value
17077
+ } = _ref,
17078
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1f);
17079
+ return /*#__PURE__*/jsxRuntimeExports.jsx(RtlContext.Provider, _extends$1({
17080
+ value: value != null ? value : true
17081
+ }, props));
17082
+ }
17083
+ process.env.NODE_ENV !== "production" ? RtlProvider.propTypes = {
16874
17084
  children: PropTypes.node,
16875
17085
  value: PropTypes.bool
16876
17086
  } : void 0;
@@ -16879,6 +17089,839 @@ const useRtl = () => {
16879
17089
  return value != null ? value : false;
16880
17090
  };
16881
17091
 
17092
+ const EMPTY_THEME = {};
17093
+ function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
17094
+ return React__namespace.useMemo(() => {
17095
+ const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;
17096
+ if (typeof localTheme === 'function') {
17097
+ const mergedTheme = localTheme(resolvedTheme);
17098
+ const result = themeId ? _extends$1({}, upperTheme, {
17099
+ [themeId]: mergedTheme
17100
+ }) : mergedTheme;
17101
+ // must return a function for the private theme to NOT merge with the upper theme.
17102
+ // see the test case "use provided theme from a callback" in ThemeProvider.test.js
17103
+ if (isPrivate) {
17104
+ return () => result;
17105
+ }
17106
+ return result;
17107
+ }
17108
+ return themeId ? _extends$1({}, upperTheme, {
17109
+ [themeId]: localTheme
17110
+ }) : _extends$1({}, upperTheme, localTheme);
17111
+ }, [themeId, upperTheme, localTheme, isPrivate]);
17112
+ }
17113
+
17114
+ /**
17115
+ * This component makes the `theme` available down the React tree.
17116
+ * It should preferably be used at **the root of your component tree**.
17117
+ *
17118
+ * <ThemeProvider theme={theme}> // existing use case
17119
+ * <ThemeProvider theme={{ id: theme }}> // theme scoping
17120
+ */
17121
+ function ThemeProvider$1(props) {
17122
+ const {
17123
+ children,
17124
+ theme: localTheme,
17125
+ themeId
17126
+ } = props;
17127
+ const upperTheme = useTheme$5(EMPTY_THEME);
17128
+ const upperPrivateTheme = useTheme$3() || EMPTY_THEME;
17129
+ if (process.env.NODE_ENV !== 'production') {
17130
+ if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {
17131
+ 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'));
17132
+ }
17133
+ }
17134
+ const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);
17135
+ const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);
17136
+ const rtlValue = engineTheme.direction === 'rtl';
17137
+ return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$2, {
17138
+ theme: privateTheme,
17139
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(ThemeContext$1.Provider, {
17140
+ value: engineTheme,
17141
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(RtlProvider, {
17142
+ value: rtlValue,
17143
+ children: children
17144
+ })
17145
+ })
17146
+ });
17147
+ }
17148
+ process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes /* remove-proptypes */ = {
17149
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
17150
+ // │ These PropTypes are generated from the TypeScript type definitions. │
17151
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
17152
+ // └─────────────────────────────────────────────────────────────────────┘
17153
+ /**
17154
+ * Your component tree.
17155
+ */
17156
+ children: PropTypes.node,
17157
+ /**
17158
+ * A theme object. You can provide a function to extend the outer theme.
17159
+ */
17160
+ theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
17161
+ /**
17162
+ * The design system's unique id for getting the corresponded theme when there are multiple design systems.
17163
+ */
17164
+ themeId: PropTypes.string
17165
+ } : void 0;
17166
+ if (process.env.NODE_ENV !== 'production') {
17167
+ process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes = exactProp(ThemeProvider$1.propTypes) : void 0;
17168
+ }
17169
+
17170
+ const DEFAULT_MODE_STORAGE_KEY = 'mode';
17171
+ const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';
17172
+ const DEFAULT_ATTRIBUTE = 'data-color-scheme';
17173
+ function getInitColorSchemeScript$1(options) {
17174
+ const {
17175
+ defaultMode = 'light',
17176
+ defaultLightColorScheme = 'light',
17177
+ defaultDarkColorScheme = 'dark',
17178
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
17179
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
17180
+ attribute = DEFAULT_ATTRIBUTE,
17181
+ colorSchemeNode = 'document.documentElement'
17182
+ } = options || {};
17183
+ return /*#__PURE__*/jsxRuntimeExports.jsx("script", {
17184
+ // eslint-disable-next-line react/no-danger
17185
+ dangerouslySetInnerHTML: {
17186
+ __html: `(function() {
17187
+ try {
17188
+ var mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';
17189
+ var colorScheme = '';
17190
+ if (mode === 'system') {
17191
+ // handle system mode
17192
+ var mql = window.matchMedia('(prefers-color-scheme: dark)');
17193
+ if (mql.matches) {
17194
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
17195
+ } else {
17196
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
17197
+ }
17198
+ }
17199
+ if (mode === 'light') {
17200
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
17201
+ }
17202
+ if (mode === 'dark') {
17203
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
17204
+ }
17205
+ if (colorScheme) {
17206
+ ${colorSchemeNode}.setAttribute('${attribute}', colorScheme);
17207
+ }
17208
+ } catch(e){}})();`
17209
+ }
17210
+ }, "mui-color-scheme-init");
17211
+ }
17212
+
17213
+ function getSystemMode(mode) {
17214
+ if (typeof window !== 'undefined' && mode === 'system') {
17215
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
17216
+ if (mql.matches) {
17217
+ return 'dark';
17218
+ }
17219
+ return 'light';
17220
+ }
17221
+ return undefined;
17222
+ }
17223
+ function processState(state, callback) {
17224
+ if (state.mode === 'light' || state.mode === 'system' && state.systemMode === 'light') {
17225
+ return callback('light');
17226
+ }
17227
+ if (state.mode === 'dark' || state.mode === 'system' && state.systemMode === 'dark') {
17228
+ return callback('dark');
17229
+ }
17230
+ return undefined;
17231
+ }
17232
+ function getColorScheme(state) {
17233
+ return processState(state, mode => {
17234
+ if (mode === 'light') {
17235
+ return state.lightColorScheme;
17236
+ }
17237
+ if (mode === 'dark') {
17238
+ return state.darkColorScheme;
17239
+ }
17240
+ return undefined;
17241
+ });
17242
+ }
17243
+ function initializeValue(key, defaultValue) {
17244
+ if (typeof window === 'undefined') {
17245
+ return undefined;
17246
+ }
17247
+ let value;
17248
+ try {
17249
+ value = localStorage.getItem(key) || undefined;
17250
+ if (!value) {
17251
+ // the first time that user enters the site.
17252
+ localStorage.setItem(key, defaultValue);
17253
+ }
17254
+ } catch (e) {
17255
+ // Unsupported
17256
+ }
17257
+ return value || defaultValue;
17258
+ }
17259
+ function useCurrentColorScheme(options) {
17260
+ const {
17261
+ defaultMode = 'light',
17262
+ defaultLightColorScheme,
17263
+ defaultDarkColorScheme,
17264
+ supportedColorSchemes = [],
17265
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
17266
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
17267
+ storageWindow = typeof window === 'undefined' ? undefined : window
17268
+ } = options;
17269
+ const joinedColorSchemes = supportedColorSchemes.join(',');
17270
+ const [state, setState] = React__namespace.useState(() => {
17271
+ const initialMode = initializeValue(modeStorageKey, defaultMode);
17272
+ const lightColorScheme = initializeValue(`${colorSchemeStorageKey}-light`, defaultLightColorScheme);
17273
+ const darkColorScheme = initializeValue(`${colorSchemeStorageKey}-dark`, defaultDarkColorScheme);
17274
+ return {
17275
+ mode: initialMode,
17276
+ systemMode: getSystemMode(initialMode),
17277
+ lightColorScheme,
17278
+ darkColorScheme
17279
+ };
17280
+ });
17281
+ const colorScheme = getColorScheme(state);
17282
+ const setMode = React__namespace.useCallback(mode => {
17283
+ setState(currentState => {
17284
+ if (mode === currentState.mode) {
17285
+ // do nothing if mode does not change
17286
+ return currentState;
17287
+ }
17288
+ const newMode = mode != null ? mode : defaultMode;
17289
+ try {
17290
+ localStorage.setItem(modeStorageKey, newMode);
17291
+ } catch (e) {
17292
+ // Unsupported
17293
+ }
17294
+ return _extends$1({}, currentState, {
17295
+ mode: newMode,
17296
+ systemMode: getSystemMode(newMode)
17297
+ });
17298
+ });
17299
+ }, [modeStorageKey, defaultMode]);
17300
+ const setColorScheme = React__namespace.useCallback(value => {
17301
+ if (!value) {
17302
+ setState(currentState => {
17303
+ try {
17304
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, defaultLightColorScheme);
17305
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, defaultDarkColorScheme);
17306
+ } catch (e) {
17307
+ // Unsupported
17308
+ }
17309
+ return _extends$1({}, currentState, {
17310
+ lightColorScheme: defaultLightColorScheme,
17311
+ darkColorScheme: defaultDarkColorScheme
17312
+ });
17313
+ });
17314
+ } else if (typeof value === 'string') {
17315
+ if (value && !joinedColorSchemes.includes(value)) {
17316
+ console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
17317
+ } else {
17318
+ setState(currentState => {
17319
+ const newState = _extends$1({}, currentState);
17320
+ processState(currentState, mode => {
17321
+ try {
17322
+ localStorage.setItem(`${colorSchemeStorageKey}-${mode}`, value);
17323
+ } catch (e) {
17324
+ // Unsupported
17325
+ }
17326
+ if (mode === 'light') {
17327
+ newState.lightColorScheme = value;
17328
+ }
17329
+ if (mode === 'dark') {
17330
+ newState.darkColorScheme = value;
17331
+ }
17332
+ });
17333
+ return newState;
17334
+ });
17335
+ }
17336
+ } else {
17337
+ setState(currentState => {
17338
+ const newState = _extends$1({}, currentState);
17339
+ const newLightColorScheme = value.light === null ? defaultLightColorScheme : value.light;
17340
+ const newDarkColorScheme = value.dark === null ? defaultDarkColorScheme : value.dark;
17341
+ if (newLightColorScheme) {
17342
+ if (!joinedColorSchemes.includes(newLightColorScheme)) {
17343
+ console.error(`\`${newLightColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
17344
+ } else {
17345
+ newState.lightColorScheme = newLightColorScheme;
17346
+ try {
17347
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, newLightColorScheme);
17348
+ } catch (error) {
17349
+ // Unsupported
17350
+ }
17351
+ }
17352
+ }
17353
+ if (newDarkColorScheme) {
17354
+ if (!joinedColorSchemes.includes(newDarkColorScheme)) {
17355
+ console.error(`\`${newDarkColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
17356
+ } else {
17357
+ newState.darkColorScheme = newDarkColorScheme;
17358
+ try {
17359
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, newDarkColorScheme);
17360
+ } catch (error) {
17361
+ // Unsupported
17362
+ }
17363
+ }
17364
+ }
17365
+ return newState;
17366
+ });
17367
+ }
17368
+ }, [joinedColorSchemes, colorSchemeStorageKey, defaultLightColorScheme, defaultDarkColorScheme]);
17369
+ const handleMediaQuery = React__namespace.useCallback(event => {
17370
+ if (state.mode === 'system') {
17371
+ setState(currentState => {
17372
+ const systemMode = event != null && event.matches ? 'dark' : 'light';
17373
+
17374
+ // Early exit, nothing changed.
17375
+ if (currentState.systemMode === systemMode) {
17376
+ return currentState;
17377
+ }
17378
+ return _extends$1({}, currentState, {
17379
+ systemMode
17380
+ });
17381
+ });
17382
+ }
17383
+ }, [state.mode]);
17384
+
17385
+ // Ref hack to avoid adding handleMediaQuery as a dep
17386
+ const mediaListener = React__namespace.useRef(handleMediaQuery);
17387
+ mediaListener.current = handleMediaQuery;
17388
+ React__namespace.useEffect(() => {
17389
+ const handler = (...args) => mediaListener.current(...args);
17390
+
17391
+ // Always listen to System preference
17392
+ const media = window.matchMedia('(prefers-color-scheme: dark)');
17393
+
17394
+ // Intentionally use deprecated listener methods to support iOS & old browsers
17395
+ media.addListener(handler);
17396
+ handler(media);
17397
+ return () => {
17398
+ media.removeListener(handler);
17399
+ };
17400
+ }, []);
17401
+
17402
+ // Handle when localStorage has changed
17403
+ React__namespace.useEffect(() => {
17404
+ if (storageWindow) {
17405
+ const handleStorage = event => {
17406
+ const value = event.newValue;
17407
+ if (typeof event.key === 'string' && event.key.startsWith(colorSchemeStorageKey) && (!value || joinedColorSchemes.match(value))) {
17408
+ // If the key is deleted, value will be null then reset color scheme to the default one.
17409
+ if (event.key.endsWith('light')) {
17410
+ setColorScheme({
17411
+ light: value
17412
+ });
17413
+ }
17414
+ if (event.key.endsWith('dark')) {
17415
+ setColorScheme({
17416
+ dark: value
17417
+ });
17418
+ }
17419
+ }
17420
+ if (event.key === modeStorageKey && (!value || ['light', 'dark', 'system'].includes(value))) {
17421
+ setMode(value || defaultMode);
17422
+ }
17423
+ };
17424
+ // For syncing color-scheme changes between iframes
17425
+ storageWindow.addEventListener('storage', handleStorage);
17426
+ return () => {
17427
+ storageWindow.removeEventListener('storage', handleStorage);
17428
+ };
17429
+ }
17430
+ return undefined;
17431
+ }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode, storageWindow]);
17432
+ return _extends$1({}, state, {
17433
+ colorScheme,
17434
+ setMode,
17435
+ setColorScheme
17436
+ });
17437
+ }
17438
+
17439
+ const _excluded$1e = ["colorSchemes", "components", "generateCssVars", "cssVarPrefix"];
17440
+ const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
17441
+ function createCssVarsProvider(options) {
17442
+ const {
17443
+ themeId,
17444
+ /**
17445
+ * This `theme` object needs to follow a certain structure to
17446
+ * be used correctly by the finel `CssVarsProvider`. It should have a
17447
+ * `colorSchemes` key with the light and dark (and any other) palette.
17448
+ * It should also ideally have a vars object created using `prepareCssVars`.
17449
+ */
17450
+ theme: defaultTheme = {},
17451
+ attribute: defaultAttribute = DEFAULT_ATTRIBUTE,
17452
+ modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,
17453
+ colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
17454
+ defaultMode: designSystemMode = 'light',
17455
+ defaultColorScheme: designSystemColorScheme,
17456
+ disableTransitionOnChange: designSystemTransitionOnChange = false,
17457
+ resolveTheme,
17458
+ excludeVariablesFromRoot
17459
+ } = options;
17460
+ 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]) {
17461
+ console.error(`MUI: \`${designSystemColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
17462
+ }
17463
+ const ColorSchemeContext = /*#__PURE__*/React__namespace.createContext(undefined);
17464
+ if (process.env.NODE_ENV !== 'production') {
17465
+ ColorSchemeContext.displayName = 'ColorSchemeContext';
17466
+ }
17467
+ const useColorScheme = () => {
17468
+ const value = React__namespace.useContext(ColorSchemeContext);
17469
+ if (!value) {
17470
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`useColorScheme\` must be called under <CssVarsProvider />` : formatMuiErrorMessage$1(19));
17471
+ }
17472
+ return value;
17473
+ };
17474
+ function CssVarsProvider(props) {
17475
+ const {
17476
+ children,
17477
+ theme: themeProp = defaultTheme,
17478
+ modeStorageKey = defaultModeStorageKey,
17479
+ colorSchemeStorageKey = defaultColorSchemeStorageKey,
17480
+ attribute = defaultAttribute,
17481
+ defaultMode = designSystemMode,
17482
+ defaultColorScheme = designSystemColorScheme,
17483
+ disableTransitionOnChange = designSystemTransitionOnChange,
17484
+ storageWindow = typeof window === 'undefined' ? undefined : window,
17485
+ documentNode = typeof document === 'undefined' ? undefined : document,
17486
+ colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,
17487
+ colorSchemeSelector = ':root',
17488
+ disableNestedContext = false,
17489
+ disableStyleSheetGeneration = false
17490
+ } = props;
17491
+ const hasMounted = React__namespace.useRef(false);
17492
+ const upperTheme = useTheme$3();
17493
+ const ctx = React__namespace.useContext(ColorSchemeContext);
17494
+ const nested = !!ctx && !disableNestedContext;
17495
+ const scopedTheme = themeProp[themeId];
17496
+ const _ref = scopedTheme || themeProp,
17497
+ {
17498
+ colorSchemes = {},
17499
+ components = {},
17500
+ generateCssVars = () => ({
17501
+ vars: {},
17502
+ css: {}
17503
+ }),
17504
+ cssVarPrefix
17505
+ } = _ref,
17506
+ restThemeProp = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
17507
+ const allColorSchemes = Object.keys(colorSchemes);
17508
+ const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
17509
+ const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
17510
+
17511
+ // 1. Get the data about the `mode`, `colorScheme`, and setter functions.
17512
+ const {
17513
+ mode: stateMode,
17514
+ setMode,
17515
+ systemMode,
17516
+ lightColorScheme,
17517
+ darkColorScheme,
17518
+ colorScheme: stateColorScheme,
17519
+ setColorScheme
17520
+ } = useCurrentColorScheme({
17521
+ supportedColorSchemes: allColorSchemes,
17522
+ defaultLightColorScheme,
17523
+ defaultDarkColorScheme,
17524
+ modeStorageKey,
17525
+ colorSchemeStorageKey,
17526
+ defaultMode,
17527
+ storageWindow
17528
+ });
17529
+ let mode = stateMode;
17530
+ let colorScheme = stateColorScheme;
17531
+ if (nested) {
17532
+ mode = ctx.mode;
17533
+ colorScheme = ctx.colorScheme;
17534
+ }
17535
+ const calculatedMode = (() => {
17536
+ if (mode) {
17537
+ return mode;
17538
+ }
17539
+ // This scope occurs on the server
17540
+ if (defaultMode === 'system') {
17541
+ return designSystemMode;
17542
+ }
17543
+ return defaultMode;
17544
+ })();
17545
+ const calculatedColorScheme = (() => {
17546
+ if (!colorScheme) {
17547
+ // This scope occurs on the server
17548
+ if (calculatedMode === 'dark') {
17549
+ return defaultDarkColorScheme;
17550
+ }
17551
+ // use light color scheme, if default mode is 'light' | 'system'
17552
+ return defaultLightColorScheme;
17553
+ }
17554
+ return colorScheme;
17555
+ })();
17556
+
17557
+ // 2. Create CSS variables and store them in objects (to be generated in stylesheets in the final step)
17558
+ const {
17559
+ css: rootCss,
17560
+ vars: rootVars
17561
+ } = generateCssVars();
17562
+
17563
+ // 3. Start composing the theme object
17564
+ const theme = _extends$1({}, restThemeProp, {
17565
+ components,
17566
+ colorSchemes,
17567
+ cssVarPrefix,
17568
+ vars: rootVars,
17569
+ getColorSchemeSelector: targetColorScheme => `[${attribute}="${targetColorScheme}"] &`
17570
+ });
17571
+
17572
+ // 4. Create color CSS variables and store them in objects (to be generated in stylesheets in the final step)
17573
+ // The default color scheme stylesheet is constructed to have the least CSS specificity.
17574
+ // 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.
17575
+ const defaultColorSchemeStyleSheet = {};
17576
+ const otherColorSchemesStyleSheet = {};
17577
+ Object.entries(colorSchemes).forEach(([key, scheme]) => {
17578
+ const {
17579
+ css,
17580
+ vars
17581
+ } = generateCssVars(key);
17582
+ theme.vars = deepmerge$1(theme.vars, vars);
17583
+ if (key === calculatedColorScheme) {
17584
+ // 4.1 Merge the selected color scheme to the theme
17585
+ Object.keys(scheme).forEach(schemeKey => {
17586
+ if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {
17587
+ // shallow merge the 1st level structure of the theme.
17588
+ theme[schemeKey] = _extends$1({}, theme[schemeKey], scheme[schemeKey]);
17589
+ } else {
17590
+ theme[schemeKey] = scheme[schemeKey];
17591
+ }
17592
+ });
17593
+ if (theme.palette) {
17594
+ theme.palette.colorScheme = key;
17595
+ }
17596
+ }
17597
+ const resolvedDefaultColorScheme = (() => {
17598
+ if (typeof defaultColorScheme === 'string') {
17599
+ return defaultColorScheme;
17600
+ }
17601
+ if (defaultMode === 'dark') {
17602
+ return defaultColorScheme.dark;
17603
+ }
17604
+ return defaultColorScheme.light;
17605
+ })();
17606
+ if (key === resolvedDefaultColorScheme) {
17607
+ if (excludeVariablesFromRoot) {
17608
+ const excludedVariables = {};
17609
+ excludeVariablesFromRoot(cssVarPrefix).forEach(cssVar => {
17610
+ excludedVariables[cssVar] = css[cssVar];
17611
+ delete css[cssVar];
17612
+ });
17613
+ defaultColorSchemeStyleSheet[`[${attribute}="${key}"]`] = excludedVariables;
17614
+ }
17615
+ defaultColorSchemeStyleSheet[`${colorSchemeSelector}, [${attribute}="${key}"]`] = css;
17616
+ } else {
17617
+ otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
17618
+ }
17619
+ });
17620
+ theme.vars = deepmerge$1(theme.vars, rootVars);
17621
+
17622
+ // 5. Declaring effects
17623
+ // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
17624
+ React__namespace.useEffect(() => {
17625
+ if (colorScheme && colorSchemeNode) {
17626
+ // attaches attribute to <html> because the css variables are attached to :root (html)
17627
+ colorSchemeNode.setAttribute(attribute, colorScheme);
17628
+ }
17629
+ }, [colorScheme, attribute, colorSchemeNode]);
17630
+
17631
+ // 5.2 Remove the CSS transition when color scheme changes to create instant experience.
17632
+ // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313
17633
+ React__namespace.useEffect(() => {
17634
+ let timer;
17635
+ if (disableTransitionOnChange && hasMounted.current && documentNode) {
17636
+ const css = documentNode.createElement('style');
17637
+ css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));
17638
+ documentNode.head.appendChild(css);
17639
+
17640
+ // Force browser repaint
17641
+ (() => window.getComputedStyle(documentNode.body))();
17642
+ timer = setTimeout(() => {
17643
+ documentNode.head.removeChild(css);
17644
+ }, 1);
17645
+ }
17646
+ return () => {
17647
+ clearTimeout(timer);
17648
+ };
17649
+ }, [colorScheme, disableTransitionOnChange, documentNode]);
17650
+ React__namespace.useEffect(() => {
17651
+ hasMounted.current = true;
17652
+ return () => {
17653
+ hasMounted.current = false;
17654
+ };
17655
+ }, []);
17656
+ const contextValue = React__namespace.useMemo(() => ({
17657
+ allColorSchemes,
17658
+ colorScheme,
17659
+ darkColorScheme,
17660
+ lightColorScheme,
17661
+ mode,
17662
+ setColorScheme,
17663
+ setMode,
17664
+ systemMode
17665
+ }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode]);
17666
+ let shouldGenerateStyleSheet = true;
17667
+ if (disableStyleSheetGeneration || nested && (upperTheme == null ? void 0 : upperTheme.cssVarPrefix) === cssVarPrefix) {
17668
+ shouldGenerateStyleSheet = false;
17669
+ }
17670
+ const element = /*#__PURE__*/jsxRuntimeExports.jsxs(React__namespace.Fragment, {
17671
+ children: [shouldGenerateStyleSheet && /*#__PURE__*/jsxRuntimeExports.jsxs(React__namespace.Fragment, {
17672
+ children: [/*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$2, {
17673
+ styles: {
17674
+ [colorSchemeSelector]: rootCss
17675
+ }
17676
+ }), /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$2, {
17677
+ styles: defaultColorSchemeStyleSheet
17678
+ }), /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$2, {
17679
+ styles: otherColorSchemesStyleSheet
17680
+ })]
17681
+ }), /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$1, {
17682
+ themeId: scopedTheme ? themeId : undefined,
17683
+ theme: resolveTheme ? resolveTheme(theme) : theme,
17684
+ children: children
17685
+ })]
17686
+ });
17687
+ if (nested) {
17688
+ return element;
17689
+ }
17690
+ return /*#__PURE__*/jsxRuntimeExports.jsx(ColorSchemeContext.Provider, {
17691
+ value: contextValue,
17692
+ children: element
17693
+ });
17694
+ }
17695
+ process.env.NODE_ENV !== "production" ? CssVarsProvider.propTypes = {
17696
+ /**
17697
+ * The body attribute name to attach colorScheme.
17698
+ */
17699
+ attribute: PropTypes.string,
17700
+ /**
17701
+ * The component tree.
17702
+ */
17703
+ children: PropTypes.node,
17704
+ /**
17705
+ * The node used to attach the color-scheme attribute
17706
+ */
17707
+ colorSchemeNode: PropTypes.any,
17708
+ /**
17709
+ * The CSS selector for attaching the generated custom properties
17710
+ */
17711
+ colorSchemeSelector: PropTypes.string,
17712
+ /**
17713
+ * localStorage key used to store `colorScheme`
17714
+ */
17715
+ colorSchemeStorageKey: PropTypes.string,
17716
+ /**
17717
+ * The initial color scheme used.
17718
+ */
17719
+ defaultColorScheme: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
17720
+ /**
17721
+ * The initial mode used.
17722
+ */
17723
+ defaultMode: PropTypes.string,
17724
+ /**
17725
+ * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.
17726
+ */
17727
+ disableNestedContext: PropTypes.bool,
17728
+ /**
17729
+ * If `true`, the style sheet won't be generated.
17730
+ *
17731
+ * This is useful for controlling nested CssVarsProvider behavior.
17732
+ */
17733
+ disableStyleSheetGeneration: PropTypes.bool,
17734
+ /**
17735
+ * Disable CSS transitions when switching between modes or color schemes.
17736
+ */
17737
+ disableTransitionOnChange: PropTypes.bool,
17738
+ /**
17739
+ * The document to attach the attribute to.
17740
+ */
17741
+ documentNode: PropTypes.any,
17742
+ /**
17743
+ * The key in the local storage used to store current color scheme.
17744
+ */
17745
+ modeStorageKey: PropTypes.string,
17746
+ /**
17747
+ * The window that attaches the 'storage' event listener.
17748
+ * @default window
17749
+ */
17750
+ storageWindow: PropTypes.any,
17751
+ /**
17752
+ * The calculated theme object that will be passed through context.
17753
+ */
17754
+ theme: PropTypes.object
17755
+ } : void 0;
17756
+ const defaultLightColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.light;
17757
+ const defaultDarkColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.dark;
17758
+ const getInitColorSchemeScript = params => getInitColorSchemeScript$1(_extends$1({
17759
+ attribute: defaultAttribute,
17760
+ colorSchemeStorageKey: defaultColorSchemeStorageKey,
17761
+ defaultMode: designSystemMode,
17762
+ defaultLightColorScheme,
17763
+ defaultDarkColorScheme,
17764
+ modeStorageKey: defaultModeStorageKey
17765
+ }, params));
17766
+ return {
17767
+ CssVarsProvider,
17768
+ useColorScheme,
17769
+ getInitColorSchemeScript
17770
+ };
17771
+ }
17772
+
17773
+ /**
17774
+ * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
17775
+ * and they does not need to remember the prefix (defined once).
17776
+ */
17777
+ function createGetCssVar$1(prefix = '') {
17778
+ function appendVar(...vars) {
17779
+ if (!vars.length) {
17780
+ return '';
17781
+ }
17782
+ const value = vars[0];
17783
+ if (typeof value === 'string' && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)) {
17784
+ return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
17785
+ }
17786
+ return `, ${value}`;
17787
+ }
17788
+
17789
+ // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
17790
+ const getCssVar = (field, ...fallbacks) => {
17791
+ return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...fallbacks)})`;
17792
+ };
17793
+ return getCssVar;
17794
+ }
17795
+
17796
+ /**
17797
+ * This function create an object from keys, value and then assign to target
17798
+ *
17799
+ * @param {Object} obj : the target object to be assigned
17800
+ * @param {string[]} keys
17801
+ * @param {string | number} value
17802
+ *
17803
+ * @example
17804
+ * const source = {}
17805
+ * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')
17806
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }
17807
+ *
17808
+ * @example
17809
+ * const source = { palette: { primary: 'var(--palette-primary)' } }
17810
+ * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
17811
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
17812
+ */
17813
+ const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
17814
+ let temp = obj;
17815
+ keys.forEach((k, index) => {
17816
+ if (index === keys.length - 1) {
17817
+ if (Array.isArray(temp)) {
17818
+ temp[Number(k)] = value;
17819
+ } else if (temp && typeof temp === 'object') {
17820
+ temp[k] = value;
17821
+ }
17822
+ } else if (temp && typeof temp === 'object') {
17823
+ if (!temp[k]) {
17824
+ temp[k] = arrayKeys.includes(k) ? [] : {};
17825
+ }
17826
+ temp = temp[k];
17827
+ }
17828
+ });
17829
+ };
17830
+
17831
+ /**
17832
+ *
17833
+ * @param {Object} obj : source object
17834
+ * @param {Function} callback : a function that will be called when
17835
+ * - the deepest key in source object is reached
17836
+ * - the value of the deepest key is NOT `undefined` | `null`
17837
+ *
17838
+ * @example
17839
+ * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)
17840
+ * // ['palette', 'primary', 'main'] '#000000'
17841
+ */
17842
+ const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
17843
+ function recurse(object, parentKeys = [], arrayKeys = []) {
17844
+ Object.entries(object).forEach(([key, value]) => {
17845
+ if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {
17846
+ if (value !== undefined && value !== null) {
17847
+ if (typeof value === 'object' && Object.keys(value).length > 0) {
17848
+ recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);
17849
+ } else {
17850
+ callback([...parentKeys, key], value, arrayKeys);
17851
+ }
17852
+ }
17853
+ }
17854
+ });
17855
+ }
17856
+ recurse(obj);
17857
+ };
17858
+ const getCssValue = (keys, value) => {
17859
+ if (typeof value === 'number') {
17860
+ if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {
17861
+ // CSS property that are unitless
17862
+ return value;
17863
+ }
17864
+ const lastKey = keys[keys.length - 1];
17865
+ if (lastKey.toLowerCase().indexOf('opacity') >= 0) {
17866
+ // opacity values are unitless
17867
+ return value;
17868
+ }
17869
+ return `${value}px`;
17870
+ }
17871
+ return value;
17872
+ };
17873
+
17874
+ /**
17875
+ * a function that parse theme and return { css, vars }
17876
+ *
17877
+ * @param {Object} theme
17878
+ * @param {{
17879
+ * prefix?: string,
17880
+ * shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean
17881
+ * }} options.
17882
+ * `prefix`: The prefix of the generated CSS variables. This function does not change the value.
17883
+ *
17884
+ * @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).
17885
+ *
17886
+ * @example
17887
+ * const { css, vars } = parser({
17888
+ * fontSize: 12,
17889
+ * lineHeight: 1.2,
17890
+ * palette: { primary: { 500: 'var(--color)' } }
17891
+ * }, { prefix: 'foo' })
17892
+ *
17893
+ * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }
17894
+ * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
17895
+ */
17896
+ function cssVarsParser(theme, options) {
17897
+ const {
17898
+ prefix,
17899
+ shouldSkipGeneratingVar
17900
+ } = options || {};
17901
+ const css = {};
17902
+ const vars = {};
17903
+ const varsWithDefaults = {};
17904
+ walkObjectDeep(theme, (keys, value, arrayKeys) => {
17905
+ if (typeof value === 'string' || typeof value === 'number') {
17906
+ if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {
17907
+ // only create css & var if `shouldSkipGeneratingVar` return false
17908
+ const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
17909
+ Object.assign(css, {
17910
+ [cssVar]: getCssValue(keys, value)
17911
+ });
17912
+ assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);
17913
+ assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${value})`, arrayKeys);
17914
+ }
17915
+ }
17916
+ }, keys => keys[0] === 'vars' // skip 'vars/*' paths
17917
+ );
17918
+ return {
17919
+ css,
17920
+ vars,
17921
+ varsWithDefaults
17922
+ };
17923
+ }
17924
+
16882
17925
  function _typeof$1(o) {
16883
17926
  "@babel/helpers - typeof";
16884
17927
 
@@ -16905,8 +17948,76 @@ function toPropertyKey(t) {
16905
17948
  return "symbol" == _typeof$1(i) ? i : i + "";
16906
17949
  }
16907
17950
 
16908
- const _excluded$19 = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
16909
- const defaultTheme$1 = createTheme$2();
17951
+ const _excluded$1d = ["colorSchemes", "components", "defaultColorScheme"];
17952
+ function prepareCssVars(theme, parserConfig) {
17953
+ // @ts-ignore - ignore components do not exist
17954
+ const {
17955
+ colorSchemes = {},
17956
+ defaultColorScheme = 'light'
17957
+ } = theme,
17958
+ otherTheme = _objectWithoutPropertiesLoose(theme, _excluded$1d);
17959
+ const {
17960
+ vars: rootVars,
17961
+ css: rootCss,
17962
+ varsWithDefaults: rootVarsWithDefaults
17963
+ } = cssVarsParser(otherTheme, parserConfig);
17964
+ let themeVars = rootVarsWithDefaults;
17965
+ const colorSchemesMap = {};
17966
+ const {
17967
+ [defaultColorScheme]: light
17968
+ } = colorSchemes,
17969
+ otherColorSchemes = _objectWithoutPropertiesLoose(colorSchemes, [defaultColorScheme].map(toPropertyKey));
17970
+ Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {
17971
+ const {
17972
+ vars,
17973
+ css,
17974
+ varsWithDefaults
17975
+ } = cssVarsParser(scheme, parserConfig);
17976
+ themeVars = deepmerge$1(themeVars, varsWithDefaults);
17977
+ colorSchemesMap[key] = {
17978
+ css,
17979
+ vars
17980
+ };
17981
+ });
17982
+ if (light) {
17983
+ // default color scheme vars should be merged last to set as default
17984
+ const {
17985
+ css,
17986
+ vars,
17987
+ varsWithDefaults
17988
+ } = cssVarsParser(light, parserConfig);
17989
+ themeVars = deepmerge$1(themeVars, varsWithDefaults);
17990
+ colorSchemesMap[defaultColorScheme] = {
17991
+ css,
17992
+ vars
17993
+ };
17994
+ }
17995
+ const generateCssVars = colorScheme => {
17996
+ var _parserConfig$getSele2;
17997
+ if (!colorScheme) {
17998
+ var _parserConfig$getSele;
17999
+ const css = _extends$1({}, rootCss);
18000
+ return {
18001
+ css,
18002
+ vars: rootVars,
18003
+ selector: (parserConfig == null || (_parserConfig$getSele = parserConfig.getSelector) == null ? void 0 : _parserConfig$getSele.call(parserConfig, colorScheme, css)) || ':root'
18004
+ };
18005
+ }
18006
+ const css = _extends$1({}, colorSchemesMap[colorScheme].css);
18007
+ return {
18008
+ css,
18009
+ vars: colorSchemesMap[colorScheme].vars,
18010
+ selector: (parserConfig == null || (_parserConfig$getSele2 = parserConfig.getSelector) == null ? void 0 : _parserConfig$getSele2.call(parserConfig, colorScheme, css)) || ':root'
18011
+ };
18012
+ };
18013
+ return {
18014
+ vars: themeVars,
18015
+ generateCssVars
18016
+ };
18017
+ }
18018
+
18019
+ const _excluded$1c = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
18020
+ const defaultTheme$2 = createTheme$2();
16910
18021
  const defaultCreateStyledComponent = styled('div', {
16911
18022
  name: 'MuiContainer',
16912
18023
  slot: 'Root',
@@ -16920,7 +18031,7 @@ const defaultCreateStyledComponent = styled('div', {
16920
18031
  const useThemePropsDefault = inProps => useThemeProps$2({
16921
18032
  props: inProps,
16922
18033
  name: 'MuiContainer',
16923
- defaultTheme: defaultTheme$1
18034
+ defaultTheme: defaultTheme$2
16924
18035
  });
16925
18036
  const useUtilityClasses$U = (ownerState, componentName) => {
16926
18037
  const getContainerUtilityClass = slot => {
@@ -17001,7 +18112,7 @@ function createContainer(options = {}) {
17001
18112
  fixed = false,
17002
18113
  maxWidth = 'lg'
17003
18114
  } = props,
17004
- other = _objectWithoutPropertiesLoose(props, _excluded$19);
18115
+ other = _objectWithoutPropertiesLoose(props, _excluded$1c);
17005
18116
  const ownerState = _extends$1({}, props, {
17006
18117
  component,
17007
18118
  disableGutters,
@@ -17039,7 +18150,7 @@ function createContainer(options = {}) {
17039
18150
 
17040
18151
  function GlobalStyles(props) {
17041
18152
  return /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$1, _extends$1({}, props, {
17042
- defaultTheme: defaultTheme$2,
18153
+ defaultTheme: defaultTheme$3,
17043
18154
  themeId: THEME_ID
17044
18155
  }));
17045
18156
  }
@@ -17090,7 +18201,7 @@ function getInputBaseUtilityClass(slot) {
17090
18201
  }
17091
18202
  const inputBaseClasses = generateUtilityClasses$1('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
17092
18203
 
17093
- const _excluded$18 = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"];
18204
+ const _excluded$1b = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"];
17094
18205
  const rootOverridesResolver = (props, styles) => {
17095
18206
  const {
17096
18207
  ownerState
@@ -17319,7 +18430,7 @@ const InputBase = /*#__PURE__*/React__namespace.forwardRef(function InputBase(in
17319
18430
  type = 'text',
17320
18431
  value: valueProp
17321
18432
  } = props,
17322
- other = _objectWithoutPropertiesLoose(props, _excluded$18);
18433
+ other = _objectWithoutPropertiesLoose(props, _excluded$1b);
17323
18434
  const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
17324
18435
  const {
17325
18436
  current: isControlled
@@ -17780,7 +18891,7 @@ function getInputUtilityClass(slot) {
17780
18891
  }
17781
18892
  const inputClasses = _extends$1({}, inputBaseClasses, generateUtilityClasses$1('MuiInput', ['root', 'underline', 'input']));
17782
18893
 
17783
- const _excluded$17 = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
18894
+ const _excluded$1a = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
17784
18895
  const useUtilityClasses$S = ownerState => {
17785
18896
  const {
17786
18897
  classes,
@@ -17891,7 +19002,7 @@ const Input = /*#__PURE__*/React__namespace.forwardRef(function Input(inProps, r
17891
19002
  slots = {},
17892
19003
  type = 'text'
17893
19004
  } = props,
17894
- other = _objectWithoutPropertiesLoose(props, _excluded$17);
19005
+ other = _objectWithoutPropertiesLoose(props, _excluded$1a);
17895
19006
  const classes = useUtilityClasses$S(props);
17896
19007
  const ownerState = {
17897
19008
  disableUnderline
@@ -18112,7 +19223,7 @@ function getFilledInputUtilityClass(slot) {
18112
19223
  }
18113
19224
  const filledInputClasses = _extends$1({}, inputBaseClasses, generateUtilityClasses$1('MuiFilledInput', ['root', 'underline', 'input']));
18114
19225
 
18115
- const _excluded$16 = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"];
19226
+ const _excluded$19 = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"];
18116
19227
  const useUtilityClasses$R = ownerState => {
18117
19228
  const {
18118
19229
  classes,
@@ -18297,7 +19408,7 @@ const FilledInput = /*#__PURE__*/React__namespace.forwardRef(function FilledInpu
18297
19408
  slots = {},
18298
19409
  type = 'text'
18299
19410
  } = props,
18300
- other = _objectWithoutPropertiesLoose(props, _excluded$16);
19411
+ other = _objectWithoutPropertiesLoose(props, _excluded$19);
18301
19412
  const ownerState = _extends$1({}, props, {
18302
19413
  fullWidth,
18303
19414
  inputComponent,
@@ -18527,7 +19638,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
18527
19638
  FilledInput.muiName = 'Input';
18528
19639
 
18529
19640
  var _span$3;
18530
- const _excluded$15 = ["children", "classes", "className", "label", "notched"];
19641
+ const _excluded$18 = ["children", "classes", "className", "label", "notched"];
18531
19642
  const NotchedOutlineRoot$1 = styled$1('fieldset', {
18532
19643
  shouldForwardProp: rootShouldForwardProp
18533
19644
  })({
@@ -18604,7 +19715,7 @@ function NotchedOutline(props) {
18604
19715
  label,
18605
19716
  notched
18606
19717
  } = props,
18607
- other = _objectWithoutPropertiesLoose(props, _excluded$15);
19718
+ other = _objectWithoutPropertiesLoose(props, _excluded$18);
18608
19719
  const withLabel = label != null && label !== '';
18609
19720
  const ownerState = _extends$1({}, props, {
18610
19721
  notched,
@@ -18659,7 +19770,7 @@ function getOutlinedInputUtilityClass(slot) {
18659
19770
  }
18660
19771
  const outlinedInputClasses = _extends$1({}, inputBaseClasses, generateUtilityClasses$1('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));
18661
19772
 
18662
- const _excluded$14 = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
19773
+ const _excluded$17 = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
18663
19774
  const useUtilityClasses$Q = ownerState => {
18664
19775
  const {
18665
19776
  classes
@@ -18778,7 +19889,7 @@ const OutlinedInput = /*#__PURE__*/React__namespace.forwardRef(function Outlined
18778
19889
  slots = {},
18779
19890
  type = 'text'
18780
19891
  } = props,
18781
- other = _objectWithoutPropertiesLoose(props, _excluded$14);
19892
+ other = _objectWithoutPropertiesLoose(props, _excluded$17);
18782
19893
  const classes = useUtilityClasses$Q(props);
18783
19894
  const muiFormControl = useFormControl();
18784
19895
  const fcs = formControlState({
@@ -18997,7 +20108,7 @@ function getFormLabelUtilityClasses(slot) {
18997
20108
  }
18998
20109
  const formLabelClasses = generateUtilityClasses$1('MuiFormLabel', ['root', 'colorSecondary', 'focused', 'disabled', 'error', 'filled', 'required', 'asterisk']);
18999
20110
 
19000
- const _excluded$13 = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"];
20111
+ const _excluded$16 = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"];
19001
20112
  const useUtilityClasses$P = ownerState => {
19002
20113
  const {
19003
20114
  classes,
@@ -19062,7 +20173,7 @@ const FormLabel = /*#__PURE__*/React__namespace.forwardRef(function FormLabel(in
19062
20173
  className,
19063
20174
  component = 'label'
19064
20175
  } = props,
19065
- other = _objectWithoutPropertiesLoose(props, _excluded$13);
20176
+ other = _objectWithoutPropertiesLoose(props, _excluded$16);
19066
20177
  const muiFormControl = useFormControl();
19067
20178
  const fcs = formControlState({
19068
20179
  props,
@@ -19152,7 +20263,7 @@ function getInputLabelUtilityClasses(slot) {
19152
20263
  }
19153
20264
  generateUtilityClasses$1('MuiInputLabel', ['root', 'focused', 'disabled', 'error', 'required', 'asterisk', 'formControl', 'sizeSmall', 'shrink', 'animated', 'standard', 'filled', 'outlined']);
19154
20265
 
19155
- const _excluded$12 = ["disableAnimation", "margin", "shrink", "variant", "className"];
20266
+ const _excluded$15 = ["disableAnimation", "margin", "shrink", "variant", "className"];
19156
20267
  const useUtilityClasses$O = ownerState => {
19157
20268
  const {
19158
20269
  classes,
@@ -19254,7 +20365,7 @@ const InputLabel = /*#__PURE__*/React__namespace.forwardRef(function InputLabel(
19254
20365
  shrink: shrinkProp,
19255
20366
  className
19256
20367
  } = props,
19257
- other = _objectWithoutPropertiesLoose(props, _excluded$12);
20368
+ other = _objectWithoutPropertiesLoose(props, _excluded$15);
19258
20369
  const muiFormControl = useFormControl();
19259
20370
  let shrink = shrinkProp;
19260
20371
  if (typeof shrink === 'undefined' && muiFormControl) {
@@ -19357,7 +20468,7 @@ function getFormControlUtilityClasses(slot) {
19357
20468
  }
19358
20469
  generateUtilityClasses$1('MuiFormControl', ['root', 'marginNone', 'marginNormal', 'marginDense', 'fullWidth', 'disabled']);
19359
20470
 
19360
- const _excluded$11 = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"];
20471
+ const _excluded$14 = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"];
19361
20472
  const useUtilityClasses$N = ownerState => {
19362
20473
  const {
19363
20474
  classes,
@@ -19443,7 +20554,7 @@ const FormControl = /*#__PURE__*/React__namespace.forwardRef(function FormContro
19443
20554
  size = 'medium',
19444
20555
  variant = 'outlined'
19445
20556
  } = props,
19446
- other = _objectWithoutPropertiesLoose(props, _excluded$11);
20557
+ other = _objectWithoutPropertiesLoose(props, _excluded$14);
19447
20558
  const ownerState = _extends$1({}, props, {
19448
20559
  color,
19449
20560
  component,
@@ -19637,7 +20748,7 @@ function getFormHelperTextUtilityClasses(slot) {
19637
20748
  const formHelperTextClasses = generateUtilityClasses$1('MuiFormHelperText', ['root', 'error', 'disabled', 'sizeSmall', 'sizeMedium', 'contained', 'focused', 'filled', 'required']);
19638
20749
 
19639
20750
  var _span$2;
19640
- const _excluded$10 = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"];
20751
+ const _excluded$13 = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"];
19641
20752
  const useUtilityClasses$M = ownerState => {
19642
20753
  const {
19643
20754
  classes,
@@ -19696,7 +20807,7 @@ const FormHelperText = /*#__PURE__*/React__namespace.forwardRef(function FormHel
19696
20807
  className,
19697
20808
  component = 'p'
19698
20809
  } = props,
19699
- other = _objectWithoutPropertiesLoose(props, _excluded$10);
20810
+ other = _objectWithoutPropertiesLoose(props, _excluded$13);
19700
20811
  const muiFormControl = useFormControl();
19701
20812
  const fcs = formControlState({
19702
20813
  props,
@@ -20064,7 +21175,7 @@ function getListUtilityClass(slot) {
20064
21175
  }
20065
21176
  generateUtilityClasses$1('MuiList', ['root', 'padding', 'dense', 'subheader']);
20066
21177
 
20067
- const _excluded$$ = ["children", "className", "component", "dense", "disablePadding", "subheader"];
21178
+ const _excluded$12 = ["children", "className", "component", "dense", "disablePadding", "subheader"];
20068
21179
  const useUtilityClasses$L = ownerState => {
20069
21180
  const {
20070
21181
  classes,
@@ -20112,7 +21223,7 @@ const List = /*#__PURE__*/React__namespace.forwardRef(function List(inProps, ref
20112
21223
  disablePadding = false,
20113
21224
  subheader
20114
21225
  } = props,
20115
- other = _objectWithoutPropertiesLoose(props, _excluded$$);
21226
+ other = _objectWithoutPropertiesLoose(props, _excluded$12);
20116
21227
  const context = React__namespace.useMemo(() => ({
20117
21228
  dense
20118
21229
  }), [dense]);
@@ -20178,7 +21289,7 @@ process.env.NODE_ENV !== "production" ? List.propTypes /* remove-proptypes */ =
20178
21289
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
20179
21290
  } : void 0;
20180
21291
 
20181
- const _excluded$_ = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
21292
+ const _excluded$11 = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
20182
21293
  function nextItem(list, item, disableListWrap) {
20183
21294
  if (list === item) {
20184
21295
  return list.firstChild;
@@ -20260,7 +21371,7 @@ const MenuList = /*#__PURE__*/React__namespace.forwardRef(function MenuList(prop
20260
21371
  onKeyDown,
20261
21372
  variant = 'selectedMenu'
20262
21373
  } = props,
20263
- other = _objectWithoutPropertiesLoose(props, _excluded$_);
21374
+ other = _objectWithoutPropertiesLoose(props, _excluded$11);
20264
21375
  const listRef = React__namespace.useRef(null);
20265
21376
  const textCriteriaRef = React__namespace.useRef({
20266
21377
  keys: [],
@@ -21873,7 +22984,7 @@ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
21873
22984
  TransitionGroup.defaultProps = defaultProps;
21874
22985
 
21875
22986
  function useTheme$2() {
21876
- const theme = useTheme$4(defaultTheme$2);
22987
+ const theme = useTheme$4(defaultTheme$3);
21877
22988
  if (process.env.NODE_ENV !== 'production') {
21878
22989
  // eslint-disable-next-line react-hooks/rules-of-hooks
21879
22990
  React__namespace.useDebugValue(theme);
@@ -21896,7 +23007,7 @@ function getTransitionProps(props, options) {
21896
23007
  };
21897
23008
  }
21898
23009
 
21899
- const _excluded$Z = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
23010
+ const _excluded$10 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
21900
23011
  function getScale(value) {
21901
23012
  return `scale(${value}, ${value ** 2})`;
21902
23013
  }
@@ -21940,7 +23051,7 @@ const Grow = /*#__PURE__*/React__namespace.forwardRef(function Grow(props, ref)
21940
23051
  // eslint-disable-next-line react/prop-types
21941
23052
  TransitionComponent = Transition
21942
23053
  } = props,
21943
- other = _objectWithoutPropertiesLoose(props, _excluded$Z);
23054
+ other = _objectWithoutPropertiesLoose(props, _excluded$10);
21944
23055
  const timer = useTimeout();
21945
23056
  const autoTimeout = React__namespace.useRef();
21946
23057
  const theme = useTheme$2();
@@ -22138,7 +23249,7 @@ process.env.NODE_ENV !== "production" ? Grow.propTypes /* remove-proptypes */ =
22138
23249
  } : void 0;
22139
23250
  Grow.muiSupportAuto = true;
22140
23251
 
22141
- const _excluded$Y = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
23252
+ const _excluded$$ = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
22142
23253
  const styles = {
22143
23254
  entering: {
22144
23255
  opacity: 1
@@ -22175,7 +23286,7 @@ const Fade = /*#__PURE__*/React__namespace.forwardRef(function Fade(props, ref)
22175
23286
  // eslint-disable-next-line react/prop-types
22176
23287
  TransitionComponent = Transition
22177
23288
  } = props,
22178
- other = _objectWithoutPropertiesLoose(props, _excluded$Y);
23289
+ other = _objectWithoutPropertiesLoose(props, _excluded$$);
22179
23290
  const nodeRef = React__namespace.useRef(null);
22180
23291
  const handleRef = useForkRef(nodeRef, children.ref, ref);
22181
23292
  const normalizedTransitionCallback = callback => maybeIsAppearing => {
@@ -22335,7 +23446,7 @@ function getBackdropUtilityClass(slot) {
22335
23446
  }
22336
23447
  generateUtilityClasses$1('MuiBackdrop', ['root', 'invisible']);
22337
23448
 
22338
- const _excluded$X = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
23449
+ const _excluded$_ = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
22339
23450
  const useUtilityClasses$K = ownerState => {
22340
23451
  const {
22341
23452
  classes,
@@ -22390,7 +23501,7 @@ const Backdrop = /*#__PURE__*/React__namespace.forwardRef(function Backdrop(inPr
22390
23501
  TransitionComponent = Fade,
22391
23502
  transitionDuration
22392
23503
  } = props,
22393
- other = _objectWithoutPropertiesLoose(props, _excluded$X);
23504
+ other = _objectWithoutPropertiesLoose(props, _excluded$_);
22394
23505
  const ownerState = _extends$1({}, props, {
22395
23506
  component,
22396
23507
  invisible
@@ -22515,7 +23626,7 @@ function getModalUtilityClass(slot) {
22515
23626
  }
22516
23627
  generateUtilityClasses$1('MuiModal', ['root', 'hidden', 'backdrop']);
22517
23628
 
22518
- const _excluded$W = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"];
23629
+ const _excluded$Z = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"];
22519
23630
  const useUtilityClasses$J = ownerState => {
22520
23631
  const {
22521
23632
  open,
@@ -22603,7 +23714,7 @@ const Modal = /*#__PURE__*/React__namespace.forwardRef(function Modal(inProps, r
22603
23714
  slots
22604
23715
  // eslint-disable-next-line react/prop-types
22605
23716
  } = props,
22606
- other = _objectWithoutPropertiesLoose(props, _excluded$W);
23717
+ other = _objectWithoutPropertiesLoose(props, _excluded$Z);
22607
23718
  const propsWithDefaults = _extends$1({}, props, {
22608
23719
  closeAfterTransition,
22609
23720
  disableAutoFocus,
@@ -22890,13 +24001,14 @@ const getOverlayAlpha = elevation => {
22890
24001
  }
22891
24002
  return (alphaValue / 100).toFixed(2);
22892
24003
  };
24004
+ var getOverlayAlpha$1 = getOverlayAlpha;
22893
24005
 
22894
24006
  function getPaperUtilityClass(slot) {
22895
24007
  return generateUtilityClass$1('MuiPaper', slot);
22896
24008
  }
22897
24009
  generateUtilityClasses$1('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
22898
24010
 
22899
- const _excluded$V = ["className", "component", "elevation", "square", "variant"];
24011
+ const _excluded$Y = ["className", "component", "elevation", "square", "variant"];
22900
24012
  const useUtilityClasses$I = ownerState => {
22901
24013
  const {
22902
24014
  square,
@@ -22934,7 +24046,7 @@ const PaperRoot = styled$1('div', {
22934
24046
  }, ownerState.variant === 'elevation' && _extends$1({
22935
24047
  boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
22936
24048
  }, !theme.vars && theme.palette.mode === 'dark' && {
22937
- backgroundImage: `linear-gradient(${alpha_1('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha_1('#fff', getOverlayAlpha(ownerState.elevation))})`
24049
+ backgroundImage: `linear-gradient(${alpha_1('#fff', getOverlayAlpha$1(ownerState.elevation))}, ${alpha_1('#fff', getOverlayAlpha$1(ownerState.elevation))})`
22938
24050
  }, theme.vars && {
22939
24051
  backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
22940
24052
  }));
@@ -22951,7 +24063,7 @@ const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, r
22951
24063
  square = false,
22952
24064
  variant = 'elevation'
22953
24065
  } = props,
22954
- other = _objectWithoutPropertiesLoose(props, _excluded$V);
24066
+ other = _objectWithoutPropertiesLoose(props, _excluded$Y);
22955
24067
  const ownerState = _extends$1({}, props, {
22956
24068
  component,
22957
24069
  elevation,
@@ -23031,8 +24143,8 @@ function getPopoverUtilityClass(slot) {
23031
24143
  }
23032
24144
  generateUtilityClasses$1('MuiPopover', ['root', 'paper']);
23033
24145
 
23034
- const _excluded$U = ["onEntering"],
23035
- _excluded2$a = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"],
24146
+ const _excluded$X = ["onEntering"],
24147
+ _excluded2$c = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"],
23036
24148
  _excluded3$4 = ["slotProps"];
23037
24149
  function getOffsetTop(rect, vertical) {
23038
24150
  let offset = 0;
@@ -23129,8 +24241,8 @@ const Popover = /*#__PURE__*/React__namespace.forwardRef(function Popover(inProp
23129
24241
  } = {},
23130
24242
  disableScrollLock = false
23131
24243
  } = props,
23132
- TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$U),
23133
- other = _objectWithoutPropertiesLoose(props, _excluded2$a);
24244
+ TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$X),
24245
+ other = _objectWithoutPropertiesLoose(props, _excluded2$c);
23134
24246
  const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
23135
24247
  const paperRef = React__namespace.useRef();
23136
24248
  const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);
@@ -23547,8 +24659,8 @@ function getMenuUtilityClass(slot) {
23547
24659
  }
23548
24660
  generateUtilityClasses$1('MuiMenu', ['root', 'paper', 'list']);
23549
24661
 
23550
- const _excluded$T = ["onEntering"],
23551
- _excluded2$9 = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"];
24662
+ const _excluded$W = ["onEntering"],
24663
+ _excluded2$b = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"];
23552
24664
  const RTL_ORIGIN = {
23553
24665
  vertical: 'top',
23554
24666
  horizontal: 'right'
@@ -23618,8 +24730,8 @@ const Menu$1 = /*#__PURE__*/React__namespace.forwardRef(function Menu(inProps, r
23618
24730
  slots = {},
23619
24731
  slotProps = {}
23620
24732
  } = props,
23621
- TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$T),
23622
- other = _objectWithoutPropertiesLoose(props, _excluded2$9);
24733
+ TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$W),
24734
+ other = _objectWithoutPropertiesLoose(props, _excluded2$b);
23623
24735
  const isRtl = useRtl();
23624
24736
  const ownerState = _extends$1({}, props, {
23625
24737
  autoFocus,
@@ -23841,7 +24953,7 @@ function getNativeSelectUtilityClasses(slot) {
23841
24953
  }
23842
24954
  const nativeSelectClasses = generateUtilityClasses$1('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
23843
24955
 
23844
- const _excluded$S = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
24956
+ const _excluded$V = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
23845
24957
  const useUtilityClasses$F = ownerState => {
23846
24958
  const {
23847
24959
  classes,
@@ -23968,7 +25080,7 @@ const NativeSelectInput = /*#__PURE__*/React__namespace.forwardRef(function Nati
23968
25080
  inputRef,
23969
25081
  variant = 'standard'
23970
25082
  } = props,
23971
- other = _objectWithoutPropertiesLoose(props, _excluded$S);
25083
+ other = _objectWithoutPropertiesLoose(props, _excluded$V);
23972
25084
  const ownerState = _extends$1({}, props, {
23973
25085
  disabled,
23974
25086
  variant,
@@ -24050,7 +25162,7 @@ function getSelectUtilityClasses(slot) {
24050
25162
  const selectClasses = generateUtilityClasses$1('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
24051
25163
 
24052
25164
  var _span$1;
24053
- const _excluded$R = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "error", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
25165
+ const _excluded$U = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "error", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
24054
25166
  const SelectSelect = styled$1('div', {
24055
25167
  name: 'MuiSelect',
24056
25168
  slot: 'Select',
@@ -24173,7 +25285,7 @@ const SelectInput = /*#__PURE__*/React__namespace.forwardRef(function SelectInpu
24173
25285
  value: valueProp,
24174
25286
  variant = 'standard'
24175
25287
  } = props,
24176
- other = _objectWithoutPropertiesLoose(props, _excluded$R);
25288
+ other = _objectWithoutPropertiesLoose(props, _excluded$U);
24177
25289
  const [value, setValueState] = useControlled({
24178
25290
  controlled: valueProp,
24179
25291
  default: defaultValue,
@@ -24688,7 +25800,7 @@ function getSvgIconUtilityClass(slot) {
24688
25800
  }
24689
25801
  generateUtilityClasses$1('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
24690
25802
 
24691
- const _excluded$Q = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
25803
+ const _excluded$T = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
24692
25804
  const useUtilityClasses$D = ownerState => {
24693
25805
  const {
24694
25806
  color,
@@ -24756,7 +25868,7 @@ const SvgIcon = /*#__PURE__*/React__namespace.forwardRef(function SvgIcon(inProp
24756
25868
  titleAccess,
24757
25869
  viewBox = '0 0 24 24'
24758
25870
  } = props,
24759
- other = _objectWithoutPropertiesLoose(props, _excluded$Q);
25871
+ other = _objectWithoutPropertiesLoose(props, _excluded$T);
24760
25872
  const hasSvgAsChild = /*#__PURE__*/React__namespace.isValidElement(children) && children.type === 'svg';
24761
25873
  const ownerState = _extends$1({}, props, {
24762
25874
  color,
@@ -24883,8 +25995,8 @@ var ArrowDropDownIcon$1 = createSvgIcon$1( /*#__PURE__*/jsxRuntimeExports.jsx("p
24883
25995
  d: "M7 10l5 5 5-5z"
24884
25996
  }), 'ArrowDropDown');
24885
25997
 
24886
- const _excluded$P = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"],
24887
- _excluded2$8 = ["root"];
25998
+ const _excluded$S = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"],
25999
+ _excluded2$a = ["root"];
24888
26000
  const useUtilityClasses$C = ownerState => {
24889
26001
  const {
24890
26002
  classes
@@ -24928,7 +26040,7 @@ const Select = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps,
24928
26040
  SelectDisplayProps,
24929
26041
  variant: variantProp = 'outlined'
24930
26042
  } = props,
24931
- other = _objectWithoutPropertiesLoose(props, _excluded$P);
26043
+ other = _objectWithoutPropertiesLoose(props, _excluded$S);
24932
26044
  const inputComponent = native ? NativeSelectInput : SelectInput;
24933
26045
  const muiFormControl = useFormControl();
24934
26046
  const fcs = formControlState({
@@ -24942,7 +26054,7 @@ const Select = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps,
24942
26054
  classes: classesProp
24943
26055
  });
24944
26056
  const classes = useUtilityClasses$C(ownerState);
24945
- const restOfClasses = _objectWithoutPropertiesLoose(classes, _excluded2$8);
26057
+ const restOfClasses = _objectWithoutPropertiesLoose(classes, _excluded2$a);
24946
26058
  const InputComponent = input || {
24947
26059
  standard: /*#__PURE__*/jsxRuntimeExports.jsx(StyledInput, {
24948
26060
  ownerState: ownerState
@@ -25151,7 +26263,7 @@ function getTextFieldUtilityClass(slot) {
25151
26263
  }
25152
26264
  generateUtilityClasses$1('MuiTextField', ['root']);
25153
26265
 
25154
- const _excluded$O = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"];
26266
+ const _excluded$R = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"];
25155
26267
  const variantComponent = {
25156
26268
  standard: Input,
25157
26269
  filled: FilledInput,
@@ -25243,7 +26355,7 @@ const TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(in
25243
26355
  value,
25244
26356
  variant = 'outlined'
25245
26357
  } = props,
25246
- other = _objectWithoutPropertiesLoose(props, _excluded$O);
26358
+ other = _objectWithoutPropertiesLoose(props, _excluded$R);
25247
26359
  const ownerState = _extends$1({}, props, {
25248
26360
  autoFocus,
25249
26361
  color,
@@ -25505,6 +26617,680 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
25505
26617
  variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])
25506
26618
  } : void 0;
25507
26619
 
26620
+ const _excluded$Q = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
26621
+ _excluded2$9 = ["type", "mode"];
26622
+ function adaptV4Theme(inputTheme) {
26623
+ if (process.env.NODE_ENV !== 'production') {
26624
+ console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
26625
+ }
26626
+ const {
26627
+ defaultProps = {},
26628
+ mixins = {},
26629
+ overrides = {},
26630
+ palette = {},
26631
+ props = {},
26632
+ styleOverrides = {}
26633
+ } = inputTheme,
26634
+ other = _objectWithoutPropertiesLoose(inputTheme, _excluded$Q);
26635
+ const theme = _extends$1({}, other, {
26636
+ components: {}
26637
+ });
26638
+
26639
+ // default props
26640
+ Object.keys(defaultProps).forEach(component => {
26641
+ const componentValue = theme.components[component] || {};
26642
+ componentValue.defaultProps = defaultProps[component];
26643
+ theme.components[component] = componentValue;
26644
+ });
26645
+ Object.keys(props).forEach(component => {
26646
+ const componentValue = theme.components[component] || {};
26647
+ componentValue.defaultProps = props[component];
26648
+ theme.components[component] = componentValue;
26649
+ });
26650
+
26651
+ // CSS overrides
26652
+ Object.keys(styleOverrides).forEach(component => {
26653
+ const componentValue = theme.components[component] || {};
26654
+ componentValue.styleOverrides = styleOverrides[component];
26655
+ theme.components[component] = componentValue;
26656
+ });
26657
+ Object.keys(overrides).forEach(component => {
26658
+ const componentValue = theme.components[component] || {};
26659
+ componentValue.styleOverrides = overrides[component];
26660
+ theme.components[component] = componentValue;
26661
+ });
26662
+
26663
+ // theme.spacing
26664
+ theme.spacing = createSpacing(inputTheme.spacing);
26665
+
26666
+ // theme.mixins.gutters
26667
+ const breakpoints = createBreakpoints(inputTheme.breakpoints || {});
26668
+ const spacing = theme.spacing;
26669
+ theme.mixins = _extends$1({
26670
+ gutters: (styles = {}) => {
26671
+ return _extends$1({
26672
+ paddingLeft: spacing(2),
26673
+ paddingRight: spacing(2)
26674
+ }, styles, {
26675
+ [breakpoints.up('sm')]: _extends$1({
26676
+ paddingLeft: spacing(3),
26677
+ paddingRight: spacing(3)
26678
+ }, styles[breakpoints.up('sm')])
26679
+ });
26680
+ }
26681
+ }, mixins);
26682
+ const {
26683
+ type: typeInput,
26684
+ mode: modeInput
26685
+ } = palette,
26686
+ paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$9);
26687
+ const finalMode = modeInput || typeInput || 'light';
26688
+ theme.palette = _extends$1({
26689
+ // theme.palette.text.hint
26690
+ text: {
26691
+ hint: finalMode === 'dark' ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.38)'
26692
+ },
26693
+ mode: finalMode,
26694
+ type: finalMode
26695
+ }, paletteRest);
26696
+ return theme;
26697
+ }
26698
+
26699
+ function createMuiStrictModeTheme(options, ...args) {
26700
+ return createTheme(deepmerge$1({
26701
+ unstable_strictMode: true
26702
+ }, options), ...args);
26703
+ }
26704
+
26705
+ let warnedOnce = false;
26706
+
26707
+ // To remove in v6
26708
+ function createStyles(styles) {
26709
+ if (!warnedOnce) {
26710
+ console.warn(['MUI: createStyles from @mui/material/styles is deprecated.', 'Please use @mui/styles/createStyles'].join('\n'));
26711
+ warnedOnce = true;
26712
+ }
26713
+ return styles;
26714
+ }
26715
+
26716
+ function isUnitless(value) {
26717
+ return String(parseFloat(value)).length === String(value).length;
26718
+ }
26719
+
26720
+ // Ported from Compass
26721
+ // https://github.com/Compass/compass/blob/master/core/stylesheets/compass/typography/_units.scss
26722
+ // Emulate the sass function "unit"
26723
+ function getUnit(input) {
26724
+ return String(input).match(/[\d.\-+]*\s*(.*)/)[1] || '';
26725
+ }
26726
+
26727
+ // Emulate the sass function "unitless"
26728
+ function toUnitless(length) {
26729
+ return parseFloat(length);
26730
+ }
26731
+
26732
+ // Convert any CSS <length> or <percentage> value to any another.
26733
+ // From https://github.com/KyleAMathews/convert-css-length
26734
+ function convertLength(baseFontSize) {
26735
+ return (length, toUnit) => {
26736
+ const fromUnit = getUnit(length);
26737
+
26738
+ // Optimize for cases where `from` and `to` units are accidentally the same.
26739
+ if (fromUnit === toUnit) {
26740
+ return length;
26741
+ }
26742
+
26743
+ // Convert input length to pixels.
26744
+ let pxLength = toUnitless(length);
26745
+ if (fromUnit !== 'px') {
26746
+ if (fromUnit === 'em') {
26747
+ pxLength = toUnitless(length) * toUnitless(baseFontSize);
26748
+ } else if (fromUnit === 'rem') {
26749
+ pxLength = toUnitless(length) * toUnitless(baseFontSize);
26750
+ }
26751
+ }
26752
+
26753
+ // Convert length in pixels to the output unit
26754
+ let outputLength = pxLength;
26755
+ if (toUnit !== 'px') {
26756
+ if (toUnit === 'em') {
26757
+ outputLength = pxLength / toUnitless(baseFontSize);
26758
+ } else if (toUnit === 'rem') {
26759
+ outputLength = pxLength / toUnitless(baseFontSize);
26760
+ } else {
26761
+ return length;
26762
+ }
26763
+ }
26764
+ return parseFloat(outputLength.toFixed(5)) + toUnit;
26765
+ };
26766
+ }
26767
+ function alignProperty({
26768
+ size,
26769
+ grid
26770
+ }) {
26771
+ const sizeBelow = size - size % grid;
26772
+ const sizeAbove = sizeBelow + grid;
26773
+ return size - sizeBelow < sizeAbove - size ? sizeBelow : sizeAbove;
26774
+ }
26775
+
26776
+ // fontGrid finds a minimal grid (in rem) for the fontSize values so that the
26777
+ // lineHeight falls under a x pixels grid, 4px in the case of Material Design,
26778
+ // without changing the relative line height
26779
+ function fontGrid({
26780
+ lineHeight,
26781
+ pixels,
26782
+ htmlFontSize
26783
+ }) {
26784
+ return pixels / (lineHeight * htmlFontSize);
26785
+ }
26786
+
26787
+ /**
26788
+ * generate a responsive version of a given CSS property
26789
+ * @example
26790
+ * responsiveProperty({
26791
+ * cssProperty: 'fontSize',
26792
+ * min: 15,
26793
+ * max: 20,
26794
+ * unit: 'px',
26795
+ * breakpoints: [300, 600],
26796
+ * })
26797
+ *
26798
+ * // this returns
26799
+ *
26800
+ * {
26801
+ * fontSize: '15px',
26802
+ * '@media (min-width:300px)': {
26803
+ * fontSize: '17.5px',
26804
+ * },
26805
+ * '@media (min-width:600px)': {
26806
+ * fontSize: '20px',
26807
+ * },
26808
+ * }
26809
+ * @param {Object} params
26810
+ * @param {string} params.cssProperty - The CSS property to be made responsive
26811
+ * @param {number} params.min - The smallest value of the CSS property
26812
+ * @param {number} params.max - The largest value of the CSS property
26813
+ * @param {string} [params.unit] - The unit to be used for the CSS property
26814
+ * @param {Array.number} [params.breakpoints] - An array of breakpoints
26815
+ * @param {number} [params.alignStep] - Round scaled value to fall under this grid
26816
+ * @returns {Object} responsive styles for {params.cssProperty}
26817
+ */
26818
+ function responsiveProperty({
26819
+ cssProperty,
26820
+ min,
26821
+ max,
26822
+ unit = 'rem',
26823
+ breakpoints = [600, 900, 1200],
26824
+ transform = null
26825
+ }) {
26826
+ const output = {
26827
+ [cssProperty]: `${min}${unit}`
26828
+ };
26829
+ const factor = (max - min) / breakpoints[breakpoints.length - 1];
26830
+ breakpoints.forEach(breakpoint => {
26831
+ let value = min + factor * breakpoint;
26832
+ if (transform !== null) {
26833
+ value = transform(value);
26834
+ }
26835
+ output[`@media (min-width:${breakpoint}px)`] = {
26836
+ [cssProperty]: `${Math.round(value * 10000) / 10000}${unit}`
26837
+ };
26838
+ });
26839
+ return output;
26840
+ }
26841
+
26842
+ function responsiveFontSizes(themeInput, options = {}) {
26843
+ const {
26844
+ breakpoints = ['sm', 'md', 'lg'],
26845
+ disableAlign = false,
26846
+ factor = 2,
26847
+ variants = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'caption', 'button', 'overline']
26848
+ } = options;
26849
+ const theme = _extends$1({}, themeInput);
26850
+ theme.typography = _extends$1({}, theme.typography);
26851
+ const typography = theme.typography;
26852
+
26853
+ // Convert between CSS lengths e.g. em->px or px->rem
26854
+ // Set the baseFontSize for your project. Defaults to 16px (also the browser default).
26855
+ const convert = convertLength(typography.htmlFontSize);
26856
+ const breakpointValues = breakpoints.map(x => theme.breakpoints.values[x]);
26857
+ variants.forEach(variant => {
26858
+ const style = typography[variant];
26859
+ if (!style) {
26860
+ return;
26861
+ }
26862
+ const remFontSize = parseFloat(convert(style.fontSize, 'rem'));
26863
+ if (remFontSize <= 1) {
26864
+ return;
26865
+ }
26866
+ const maxFontSize = remFontSize;
26867
+ const minFontSize = 1 + (maxFontSize - 1) / factor;
26868
+ let {
26869
+ lineHeight
26870
+ } = style;
26871
+ if (!isUnitless(lineHeight) && !disableAlign) {
26872
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported non-unitless line height with grid alignment.
26873
+ Use unitless line heights instead.` : formatMuiErrorMessage$1(6));
26874
+ }
26875
+ if (!isUnitless(lineHeight)) {
26876
+ // make it unitless
26877
+ lineHeight = parseFloat(convert(lineHeight, 'rem')) / parseFloat(remFontSize);
26878
+ }
26879
+ let transform = null;
26880
+ if (!disableAlign) {
26881
+ transform = value => alignProperty({
26882
+ size: value,
26883
+ grid: fontGrid({
26884
+ pixels: 4,
26885
+ lineHeight,
26886
+ htmlFontSize: typography.htmlFontSize
26887
+ })
26888
+ });
26889
+ }
26890
+ typography[variant] = _extends$1({}, style, responsiveProperty({
26891
+ cssProperty: 'fontSize',
26892
+ min: minFontSize,
26893
+ max: maxFontSize,
26894
+ unit: 'rem',
26895
+ breakpoints: breakpointValues,
26896
+ transform
26897
+ }));
26898
+ });
26899
+ return theme;
26900
+ }
26901
+
26902
+ const _excluded$P = ["theme"];
26903
+ function ThemeProvider(_ref) {
26904
+ let {
26905
+ theme: themeInput
26906
+ } = _ref,
26907
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
26908
+ const scopedTheme = themeInput[THEME_ID];
26909
+ return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$1, _extends$1({}, props, {
26910
+ themeId: scopedTheme ? THEME_ID : undefined,
26911
+ theme: scopedTheme || themeInput
26912
+ }));
26913
+ }
26914
+ process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
26915
+ /**
26916
+ * Your component tree.
26917
+ */
26918
+ children: PropTypes.node,
26919
+ /**
26920
+ * A theme object. You can provide a function to extend the outer theme.
26921
+ */
26922
+ theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
26923
+ } : void 0;
26924
+
26925
+ function makeStyles$1() {
26926
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: makeStyles is no longer exported from @mui/material/styles.
26927
+ You have to import it from @mui/styles.
26928
+ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` : formatMuiErrorMessage$1(14));
26929
+ }
26930
+
26931
+ function withStyles() {
26932
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: withStyles is no longer exported from @mui/material/styles.
26933
+ You have to import it from @mui/styles.
26934
+ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` : formatMuiErrorMessage$1(15));
26935
+ }
26936
+
26937
+ function withTheme() {
26938
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: withTheme is no longer exported from @mui/material/styles.
26939
+ You have to import it from @mui/styles.
26940
+ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` : formatMuiErrorMessage$1(16));
26941
+ }
26942
+
26943
+ function shouldSkipGeneratingVar(keys) {
26944
+ var _keys$;
26945
+ return !!keys[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
26946
+ // ends with sxConfig
26947
+ keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
26948
+ }
26949
+
26950
+ const _excluded$O = ["colorSchemes", "cssVarPrefix", "shouldSkipGeneratingVar"],
26951
+ _excluded2$8 = ["palette"];
26952
+ const defaultDarkOverlays = [...Array(25)].map((_, index) => {
26953
+ if (index === 0) {
26954
+ return undefined;
26955
+ }
26956
+ const overlay = getOverlayAlpha$1(index);
26957
+ return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
26958
+ });
26959
+ function assignNode(obj, keys) {
26960
+ keys.forEach(k => {
26961
+ if (!obj[k]) {
26962
+ obj[k] = {};
26963
+ }
26964
+ });
26965
+ }
26966
+ function setColor(obj, key, defaultValue) {
26967
+ if (!obj[key] && defaultValue) {
26968
+ obj[key] = defaultValue;
26969
+ }
26970
+ }
26971
+ function toRgb(color) {
26972
+ if (!color || !color.startsWith('hsl')) {
26973
+ return color;
26974
+ }
26975
+ return hslToRgb_1(color);
26976
+ }
26977
+ function setColorChannel(obj, key) {
26978
+ if (!(`${key}Channel` in obj)) {
26979
+ // custom channel token is not provided, generate one.
26980
+ // if channel token can't be generated, show a warning.
26981
+ obj[`${key}Channel`] = private_safeColorChannel_1(toRgb(obj[key]), `MUI: Can't create \`palette.${key}Channel\` because \`palette.${key}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\n' + `To suppress this warning, you need to explicitly provide the \`palette.${key}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`);
26982
+ }
26983
+ }
26984
+ const silent = fn => {
26985
+ try {
26986
+ return fn();
26987
+ } catch (error) {
26988
+ // ignore error
26989
+ }
26990
+ return undefined;
26991
+ };
26992
+ const createGetCssVar = (cssVarPrefix = 'mui') => createGetCssVar$1(cssVarPrefix);
26993
+ function extendTheme(options = {}, ...args) {
26994
+ var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
26995
+ const {
26996
+ colorSchemes: colorSchemesInput = {},
26997
+ cssVarPrefix = 'mui',
26998
+ shouldSkipGeneratingVar: shouldSkipGeneratingVar$1 = shouldSkipGeneratingVar
26999
+ } = options,
27000
+ input = _objectWithoutPropertiesLoose(options, _excluded$O);
27001
+ const getCssVar = createGetCssVar(cssVarPrefix);
27002
+ const _createThemeWithoutVa = createTheme(_extends$1({}, input, colorSchemesInput.light && {
27003
+ palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
27004
+ })),
27005
+ {
27006
+ palette: lightPalette
27007
+ } = _createThemeWithoutVa,
27008
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$8);
27009
+ const {
27010
+ palette: darkPalette
27011
+ } = createTheme({
27012
+ palette: _extends$1({
27013
+ mode: 'dark'
27014
+ }, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
27015
+ });
27016
+ let theme = _extends$1({}, muiTheme, {
27017
+ cssVarPrefix,
27018
+ getCssVar,
27019
+ colorSchemes: _extends$1({}, colorSchemesInput, {
27020
+ light: _extends$1({}, colorSchemesInput.light, {
27021
+ palette: lightPalette,
27022
+ opacity: _extends$1({
27023
+ inputPlaceholder: 0.42,
27024
+ inputUnderline: 0.42,
27025
+ switchTrackDisabled: 0.12,
27026
+ switchTrack: 0.38
27027
+ }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
27028
+ overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
27029
+ }),
27030
+ dark: _extends$1({}, colorSchemesInput.dark, {
27031
+ palette: darkPalette,
27032
+ opacity: _extends$1({
27033
+ inputPlaceholder: 0.5,
27034
+ inputUnderline: 0.7,
27035
+ switchTrackDisabled: 0.2,
27036
+ switchTrack: 0.3
27037
+ }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
27038
+ overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
27039
+ })
27040
+ })
27041
+ });
27042
+ Object.keys(theme.colorSchemes).forEach(key => {
27043
+ const palette = theme.colorSchemes[key].palette;
27044
+ const setCssVarColor = cssVar => {
27045
+ const tokens = cssVar.split('-');
27046
+ const color = tokens[1];
27047
+ const colorToken = tokens[2];
27048
+ return getCssVar(cssVar, palette[color][colorToken]);
27049
+ };
27050
+
27051
+ // attach black & white channels to common node
27052
+ if (key === 'light') {
27053
+ setColor(palette.common, 'background', '#fff');
27054
+ setColor(palette.common, 'onBackground', '#000');
27055
+ } else {
27056
+ setColor(palette.common, 'background', '#000');
27057
+ setColor(palette.common, 'onBackground', '#fff');
27058
+ }
27059
+
27060
+ // assign component variables
27061
+ assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Button', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
27062
+ if (key === 'light') {
27063
+ setColor(palette.Alert, 'errorColor', private_safeDarken_1(palette.error.light, 0.6));
27064
+ setColor(palette.Alert, 'infoColor', private_safeDarken_1(palette.info.light, 0.6));
27065
+ setColor(palette.Alert, 'successColor', private_safeDarken_1(palette.success.light, 0.6));
27066
+ setColor(palette.Alert, 'warningColor', private_safeDarken_1(palette.warning.light, 0.6));
27067
+ setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-main'));
27068
+ setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-main'));
27069
+ setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-main'));
27070
+ setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-main'));
27071
+ setColor(palette.Alert, 'errorFilledColor', silent(() => lightPalette.getContrastText(palette.error.main)));
27072
+ setColor(palette.Alert, 'infoFilledColor', silent(() => lightPalette.getContrastText(palette.info.main)));
27073
+ setColor(palette.Alert, 'successFilledColor', silent(() => lightPalette.getContrastText(palette.success.main)));
27074
+ setColor(palette.Alert, 'warningFilledColor', silent(() => lightPalette.getContrastText(palette.warning.main)));
27075
+ setColor(palette.Alert, 'errorStandardBg', private_safeLighten_1(palette.error.light, 0.9));
27076
+ setColor(palette.Alert, 'infoStandardBg', private_safeLighten_1(palette.info.light, 0.9));
27077
+ setColor(palette.Alert, 'successStandardBg', private_safeLighten_1(palette.success.light, 0.9));
27078
+ setColor(palette.Alert, 'warningStandardBg', private_safeLighten_1(palette.warning.light, 0.9));
27079
+ setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));
27080
+ setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));
27081
+ setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));
27082
+ setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));
27083
+ setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-100'));
27084
+ setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-400'));
27085
+ setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-300'));
27086
+ setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-A100'));
27087
+ setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-400'));
27088
+ setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-700'));
27089
+ setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-700'));
27090
+ setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');
27091
+ setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');
27092
+ setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');
27093
+ setColor(palette.LinearProgress, 'primaryBg', private_safeLighten_1(palette.primary.main, 0.62));
27094
+ setColor(palette.LinearProgress, 'secondaryBg', private_safeLighten_1(palette.secondary.main, 0.62));
27095
+ setColor(palette.LinearProgress, 'errorBg', private_safeLighten_1(palette.error.main, 0.62));
27096
+ setColor(palette.LinearProgress, 'infoBg', private_safeLighten_1(palette.info.main, 0.62));
27097
+ setColor(palette.LinearProgress, 'successBg', private_safeLighten_1(palette.success.main, 0.62));
27098
+ setColor(palette.LinearProgress, 'warningBg', private_safeLighten_1(palette.warning.main, 0.62));
27099
+ setColor(palette.Skeleton, 'bg', `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.11)`);
27100
+ setColor(palette.Slider, 'primaryTrack', private_safeLighten_1(palette.primary.main, 0.62));
27101
+ setColor(palette.Slider, 'secondaryTrack', private_safeLighten_1(palette.secondary.main, 0.62));
27102
+ setColor(palette.Slider, 'errorTrack', private_safeLighten_1(palette.error.main, 0.62));
27103
+ setColor(palette.Slider, 'infoTrack', private_safeLighten_1(palette.info.main, 0.62));
27104
+ setColor(palette.Slider, 'successTrack', private_safeLighten_1(palette.success.main, 0.62));
27105
+ setColor(palette.Slider, 'warningTrack', private_safeLighten_1(palette.warning.main, 0.62));
27106
+ const snackbarContentBackground = private_safeEmphasize_1(palette.background.default, 0.8);
27107
+ setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
27108
+ setColor(palette.SnackbarContent, 'color', silent(() => lightPalette.getContrastText(snackbarContentBackground)));
27109
+ setColor(palette.SpeedDialAction, 'fabHoverBg', private_safeEmphasize_1(palette.background.paper, 0.15));
27110
+ setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-400'));
27111
+ setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-400'));
27112
+ setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-common-white'));
27113
+ setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-100'));
27114
+ setColor(palette.Switch, 'primaryDisabledColor', private_safeLighten_1(palette.primary.main, 0.62));
27115
+ setColor(palette.Switch, 'secondaryDisabledColor', private_safeLighten_1(palette.secondary.main, 0.62));
27116
+ setColor(palette.Switch, 'errorDisabledColor', private_safeLighten_1(palette.error.main, 0.62));
27117
+ setColor(palette.Switch, 'infoDisabledColor', private_safeLighten_1(palette.info.main, 0.62));
27118
+ setColor(palette.Switch, 'successDisabledColor', private_safeLighten_1(palette.success.main, 0.62));
27119
+ setColor(palette.Switch, 'warningDisabledColor', private_safeLighten_1(palette.warning.main, 0.62));
27120
+ setColor(palette.TableCell, 'border', private_safeLighten_1(private_safeAlpha_1(palette.divider, 1), 0.88));
27121
+ setColor(palette.Tooltip, 'bg', private_safeAlpha_1(palette.grey[700], 0.92));
27122
+ } else {
27123
+ setColor(palette.Alert, 'errorColor', private_safeLighten_1(palette.error.light, 0.6));
27124
+ setColor(palette.Alert, 'infoColor', private_safeLighten_1(palette.info.light, 0.6));
27125
+ setColor(palette.Alert, 'successColor', private_safeLighten_1(palette.success.light, 0.6));
27126
+ setColor(palette.Alert, 'warningColor', private_safeLighten_1(palette.warning.light, 0.6));
27127
+ setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-dark'));
27128
+ setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-dark'));
27129
+ setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-dark'));
27130
+ setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-dark'));
27131
+ setColor(palette.Alert, 'errorFilledColor', silent(() => darkPalette.getContrastText(palette.error.dark)));
27132
+ setColor(palette.Alert, 'infoFilledColor', silent(() => darkPalette.getContrastText(palette.info.dark)));
27133
+ setColor(palette.Alert, 'successFilledColor', silent(() => darkPalette.getContrastText(palette.success.dark)));
27134
+ setColor(palette.Alert, 'warningFilledColor', silent(() => darkPalette.getContrastText(palette.warning.dark)));
27135
+ setColor(palette.Alert, 'errorStandardBg', private_safeDarken_1(palette.error.light, 0.9));
27136
+ setColor(palette.Alert, 'infoStandardBg', private_safeDarken_1(palette.info.light, 0.9));
27137
+ setColor(palette.Alert, 'successStandardBg', private_safeDarken_1(palette.success.light, 0.9));
27138
+ setColor(palette.Alert, 'warningStandardBg', private_safeDarken_1(palette.warning.light, 0.9));
27139
+ setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));
27140
+ setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));
27141
+ setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));
27142
+ setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));
27143
+ setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-900'));
27144
+ setColor(palette.AppBar, 'darkBg', setCssVarColor('palette-background-paper')); // specific for dark mode
27145
+ setColor(palette.AppBar, 'darkColor', setCssVarColor('palette-text-primary')); // specific for dark mode
27146
+ setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-600'));
27147
+ setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-800'));
27148
+ setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-700'));
27149
+ setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-700'));
27150
+ setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-300'));
27151
+ setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-300'));
27152
+ setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');
27153
+ setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');
27154
+ setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');
27155
+ setColor(palette.LinearProgress, 'primaryBg', private_safeDarken_1(palette.primary.main, 0.5));
27156
+ setColor(palette.LinearProgress, 'secondaryBg', private_safeDarken_1(palette.secondary.main, 0.5));
27157
+ setColor(palette.LinearProgress, 'errorBg', private_safeDarken_1(palette.error.main, 0.5));
27158
+ setColor(palette.LinearProgress, 'infoBg', private_safeDarken_1(palette.info.main, 0.5));
27159
+ setColor(palette.LinearProgress, 'successBg', private_safeDarken_1(palette.success.main, 0.5));
27160
+ setColor(palette.LinearProgress, 'warningBg', private_safeDarken_1(palette.warning.main, 0.5));
27161
+ setColor(palette.Skeleton, 'bg', `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.13)`);
27162
+ setColor(palette.Slider, 'primaryTrack', private_safeDarken_1(palette.primary.main, 0.5));
27163
+ setColor(palette.Slider, 'secondaryTrack', private_safeDarken_1(palette.secondary.main, 0.5));
27164
+ setColor(palette.Slider, 'errorTrack', private_safeDarken_1(palette.error.main, 0.5));
27165
+ setColor(palette.Slider, 'infoTrack', private_safeDarken_1(palette.info.main, 0.5));
27166
+ setColor(palette.Slider, 'successTrack', private_safeDarken_1(palette.success.main, 0.5));
27167
+ setColor(palette.Slider, 'warningTrack', private_safeDarken_1(palette.warning.main, 0.5));
27168
+ const snackbarContentBackground = private_safeEmphasize_1(palette.background.default, 0.98);
27169
+ setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
27170
+ setColor(palette.SnackbarContent, 'color', silent(() => darkPalette.getContrastText(snackbarContentBackground)));
27171
+ setColor(palette.SpeedDialAction, 'fabHoverBg', private_safeEmphasize_1(palette.background.paper, 0.15));
27172
+ setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-600'));
27173
+ setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-600'));
27174
+ setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-grey-300'));
27175
+ setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-600'));
27176
+ setColor(palette.Switch, 'primaryDisabledColor', private_safeDarken_1(palette.primary.main, 0.55));
27177
+ setColor(palette.Switch, 'secondaryDisabledColor', private_safeDarken_1(palette.secondary.main, 0.55));
27178
+ setColor(palette.Switch, 'errorDisabledColor', private_safeDarken_1(palette.error.main, 0.55));
27179
+ setColor(palette.Switch, 'infoDisabledColor', private_safeDarken_1(palette.info.main, 0.55));
27180
+ setColor(palette.Switch, 'successDisabledColor', private_safeDarken_1(palette.success.main, 0.55));
27181
+ setColor(palette.Switch, 'warningDisabledColor', private_safeDarken_1(palette.warning.main, 0.55));
27182
+ setColor(palette.TableCell, 'border', private_safeDarken_1(private_safeAlpha_1(palette.divider, 1), 0.68));
27183
+ setColor(palette.Tooltip, 'bg', private_safeAlpha_1(palette.grey[700], 0.92));
27184
+ }
27185
+
27186
+ // MUI X - DataGrid needs this token.
27187
+ setColorChannel(palette.background, 'default');
27188
+
27189
+ // added for consistency with the `background.default` token
27190
+ setColorChannel(palette.background, 'paper');
27191
+ setColorChannel(palette.common, 'background');
27192
+ setColorChannel(palette.common, 'onBackground');
27193
+ setColorChannel(palette, 'divider');
27194
+ Object.keys(palette).forEach(color => {
27195
+ const colors = palette[color];
27196
+
27197
+ // The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.
27198
+
27199
+ if (colors && typeof colors === 'object') {
27200
+ // Silent the error for custom palettes.
27201
+ if (colors.main) {
27202
+ setColor(palette[color], 'mainChannel', private_safeColorChannel_1(toRgb(colors.main)));
27203
+ }
27204
+ if (colors.light) {
27205
+ setColor(palette[color], 'lightChannel', private_safeColorChannel_1(toRgb(colors.light)));
27206
+ }
27207
+ if (colors.dark) {
27208
+ setColor(palette[color], 'darkChannel', private_safeColorChannel_1(toRgb(colors.dark)));
27209
+ }
27210
+ if (colors.contrastText) {
27211
+ setColor(palette[color], 'contrastTextChannel', private_safeColorChannel_1(toRgb(colors.contrastText)));
27212
+ }
27213
+ if (color === 'text') {
27214
+ // Text colors: text.primary, text.secondary
27215
+ setColorChannel(palette[color], 'primary');
27216
+ setColorChannel(palette[color], 'secondary');
27217
+ }
27218
+ if (color === 'action') {
27219
+ // Action colors: action.active, action.selected
27220
+ if (colors.active) {
27221
+ setColorChannel(palette[color], 'active');
27222
+ }
27223
+ if (colors.selected) {
27224
+ setColorChannel(palette[color], 'selected');
27225
+ }
27226
+ }
27227
+ }
27228
+ });
27229
+ });
27230
+ theme = args.reduce((acc, argument) => deepmerge$1(acc, argument), theme);
27231
+ const parserConfig = {
27232
+ prefix: cssVarPrefix,
27233
+ shouldSkipGeneratingVar: shouldSkipGeneratingVar$1
27234
+ };
27235
+ const {
27236
+ vars: themeVars,
27237
+ generateCssVars
27238
+ } = prepareCssVars(theme, parserConfig);
27239
+ theme.vars = themeVars;
27240
+ theme.generateCssVars = generateCssVars;
27241
+ theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
27242
+ theme.unstable_sxConfig = _extends$1({}, defaultSxConfig, input == null ? void 0 : input.unstable_sxConfig);
27243
+ theme.unstable_sx = function sx(props) {
27244
+ return styleFunctionSx$1({
27245
+ sx: props,
27246
+ theme: this
27247
+ });
27248
+ };
27249
+ return theme;
27250
+ }
27251
+
27252
+ /**
27253
+ * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
27254
+ */
27255
+ const excludeVariablesFromRoot = cssVarPrefix => [...[...Array(24)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index + 1}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];
27256
+ var excludeVariablesFromRoot$1 = excludeVariablesFromRoot;
27257
+
27258
+ const defaultTheme$1 = extendTheme();
27259
+ const {
27260
+ CssVarsProvider,
27261
+ useColorScheme,
27262
+ getInitColorSchemeScript
27263
+ } = createCssVarsProvider({
27264
+ themeId: THEME_ID,
27265
+ theme: defaultTheme$1,
27266
+ attribute: 'data-mui-color-scheme',
27267
+ modeStorageKey: 'mui-mode',
27268
+ colorSchemeStorageKey: 'mui-color-scheme',
27269
+ defaultColorScheme: {
27270
+ light: 'light',
27271
+ dark: 'dark'
27272
+ },
27273
+ resolveTheme: theme => {
27274
+ const newTheme = _extends$1({}, theme, {
27275
+ typography: createTypography(theme.palette, theme.typography)
27276
+ });
27277
+ newTheme.unstable_sx = function sx(props) {
27278
+ return styleFunctionSx$1({
27279
+ sx: props,
27280
+ theme: this
27281
+ });
27282
+ };
27283
+ return newTheme;
27284
+ },
27285
+ excludeVariablesFromRoot: excludeVariablesFromRoot$1
27286
+ });
27287
+
27288
+ // TODO: Remove this function in v6.
27289
+ // eslint-disable-next-line @typescript-eslint/naming-convention
27290
+ function experimental_sx() {
27291
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`experimental_sx\` has been moved to \`theme.unstable_sx\`.For more details, see https://github.com/mui/material-ui/pull/35150.` : formatMuiErrorMessage$1(20));
27292
+ }
27293
+
25508
27294
  const boxClasses = generateUtilityClasses$1('MuiBox', ['root']);
25509
27295
 
25510
27296
  const defaultTheme = createTheme();
@@ -42715,11 +44501,11 @@ styled$1(Button)(() => ({
42715
44501
  backgroundColor: ' #343a40',
42716
44502
  borderColor: '#343a40'
42717
44503
  }));
42718
- const LabelComponent = styled$1(Grid)(() => ({
44504
+ styled$1(Grid)(() => ({
42719
44505
  alignItems: 'start',
42720
44506
  gap: '1px'
42721
44507
  }));
42722
- const ImportantMark = styled$1('text')(() => ({
44508
+ styled$1('text')(() => ({
42723
44509
  color: 'red'
42724
44510
  }));
42725
44511
  styled$1(Box)(() => ({
@@ -46956,12 +48742,10 @@ const MenuProps = {
46956
48742
  };
46957
48743
  makeStyles((theme) => ({
46958
48744
  option: {
46959
- fontSize: "10px",
46960
- fontFamily: "Roboto-Reg",
48745
+ fontSize: "10px", // Adjust the font size as needed
46961
48746
  },
46962
48747
  option2: {
46963
48748
  fontSize: "11px",
46964
- fontFamily: "Roboto-Reg",
46965
48749
  },
46966
48750
  }));
46967
48751
  const extractValuesToArray = (inputString) => {
@@ -46969,7 +48753,7 @@ const extractValuesToArray = (inputString) => {
46969
48753
  const trimmedArray = valuesArray === null || valuesArray === void 0 ? void 0 : valuesArray.map((value) => value.trim());
46970
48754
  return trimmedArray;
46971
48755
  };
46972
- function MultiSelectV1({ props }) {
48756
+ function MultiSelectV1({ props, variant }) {
46973
48757
  var _a;
46974
48758
  console.log(props, "ksjh");
46975
48759
  const [personName, setPersonName] = React__namespace.useState(props.getValues(props.item.name)
@@ -47029,7 +48813,7 @@ function MultiSelectV1({ props }) {
47029
48813
  "& .css-kichxs-MuiFormLabel-root-MuiInputLabel-root,.css-1holvmy": {
47030
48814
  top: "-10px",
47031
48815
  },
47032
- } }, { children: [jsxRuntimeExports.jsxs(InputLabel, Object.assign({ id: "demo-multiple-checkbox-label" }, { children: [props.item.label, props.item.required ? " *" : ""] })), jsxRuntimeExports.jsxs(Select, Object.assign({ labelId: "demo-multiple-checkbox-label", id: "demo-multiple-checkbox", multiple: true, sx: {
48816
+ } }, { children: [renderLabel(variant, props), variant !== "standard" ? jsxRuntimeExports.jsxs(InputLabel, Object.assign({ id: "demo-multiple-checkbox-label" }, { children: [props.item.label, props.item.required ? " *" : ""] })) : '', jsxRuntimeExports.jsxs(Select, Object.assign({ labelId: "demo-multiple-checkbox-label", id: "demo-multiple-checkbox", multiple: true, sx: {
47033
48817
  "& .MuiTypography-root": {
47034
48818
  fontSize: "5px !important",
47035
48819
  },
@@ -47046,7 +48830,7 @@ function MultiSelectV1({ props }) {
47046
48830
  var _a, _b;
47047
48831
  setSearchText("");
47048
48832
  ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.onCloseMenu) && ((_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.onCloseMenu());
47049
- }, input: jsxRuntimeExports.jsx(OutlinedInput, { label: props.item.label }), renderValue: (selected) => (jsxRuntimeExports.jsx(Tooltip, Object.assign({ title: selectedValues }, { children: selectedOptions.length > 3
48833
+ }, input: jsxRuntimeExports.jsx(OutlinedInput, { label: variant !== "standard" ? props.item.label : '' }), renderValue: (selected) => (jsxRuntimeExports.jsx(Tooltip, Object.assign({ title: selectedValues }, { children: selectedOptions.length > 3
47050
48834
  ? selectedOptions.length + " Selected"
47051
48835
  : selectedValues }))), MenuProps: MenuProps, autoFocus: false }, { children: [jsxRuntimeExports.jsx(Box, Object.assign({ sx: {
47052
48836
  width: "100%",
@@ -51969,7 +53753,7 @@ const convertDateFormat = (dateStr) => {
51969
53753
  const year = dateParts[2];
51970
53754
  return `${year}-${month}-${day}T00:30:00.000Z`;
51971
53755
  };
51972
- const DateRangePickerComponent = ({ props }) => {
53756
+ const DateRangePickerComponent = ({ props, variant }) => {
51973
53757
  const [open, setOpen] = React$1.useState(false);
51974
53758
  const [dateRange, setDateRange] = React$1.useState({
51975
53759
  "startDate": convertDateFormat(props.getValues('FromDate')),
@@ -52014,7 +53798,7 @@ const DateRangePickerComponent = ({ props }) => {
52014
53798
  "& .css-1holvmy, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52015
53799
  top: "-10px",
52016
53800
  },
52017
- } }, { children: [jsxRuntimeExports.jsx(TextField, { label: `${props.item.label}${props.item.required ? ' *' : ''}`, value: value || null, className: "read-only", inputRef: textRef, sx: { width: '100%', '& input': { cursor: 'pointer' } }, onClick: () => {
53801
+ } }, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(TextField, { label: variant !== "standard" ? `${props.item.label}${props.item.required ? ' *' : ''}` : '', value: value || null, className: "read-only", inputRef: textRef, sx: { width: '100%', '& input': { cursor: 'pointer' } }, onClick: () => {
52018
53802
  setOpen(true);
52019
53803
  } }), open && (jsxRuntimeExports.jsx(Box, Object.assign({ sx: {
52020
53804
  position: "absolute",
@@ -52033,16 +53817,14 @@ const DateRangePickerComponent = ({ props }) => {
52033
53817
  const useStyles$1 = makeStyles((theme) => ({
52034
53818
  option: {
52035
53819
  fontSize: "11px",
52036
- fontFamily: "Roboto-Reg",
52037
53820
  zIndex: 2000,
52038
53821
  },
52039
53822
  option2: {
52040
53823
  fontSize: "11px",
52041
- fontFamily: "Roboto-Reg",
52042
53824
  zIndex: 2000,
52043
53825
  },
52044
53826
  }));
52045
- const SingleSelect = ({ props }) => {
53827
+ const SingleSelect = ({ props, variant }) => {
52046
53828
  const classes = useStyles$1();
52047
53829
  // const valueRender = props.item.options?.find(
52048
53830
  // (item) => item.value === props.getValues(props.item.name)
@@ -52050,7 +53832,7 @@ const SingleSelect = ({ props }) => {
52050
53832
  const isOptionEqualToValue = (option, value) => (option === null || option === void 0 ? void 0 : option.value) === (value === null || value === void 0 ? void 0 : value.value); // Assuming there's a 'value' property in your options
52051
53833
  return (jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52052
53834
  var _a;
52053
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(Autocomplete, Object.assign({}, field, { value: props.getValues(props.item.name)
53835
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(Autocomplete, Object.assign({}, field, { value: props.getValues(props.item.name)
52054
53836
  ? (_a = props.item.options) === null || _a === void 0 ? void 0 : _a.find((item) => item.value === props.getValues(props.item.name))
52055
53837
  : null, onChange: (_, newValue) => {
52056
53838
  var _a, _b, _c;
@@ -52082,7 +53864,7 @@ const SingleSelect = ({ props }) => {
52082
53864
  },
52083
53865
  },
52084
53866
  }, getOptionLabel: (option) => option.label, renderInput: (params) => {
52085
- return (jsxRuntimeExports.jsx(Tooltip, Object.assign({ title: params.inputProps.value && params.inputProps.value }, { children: jsxRuntimeExports.jsx(TextField, Object.assign({}, params, { placeholder: props.item.Placeholder, label: `${props.item.label}${props.item.required ? ' *' : ''}` })) })));
53867
+ return (jsxRuntimeExports.jsx(Tooltip, Object.assign({ title: params.inputProps.value && params.inputProps.value }, { children: jsxRuntimeExports.jsx(TextField, Object.assign({}, params, { placeholder: props.item.Placeholder, label: variant !== "standard" ? `${props.item.label}${props.item.required ? " *" : ""}` : '' })) })));
52086
53868
  }, isOptionEqualToValue: isOptionEqualToValue })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] }));
52087
53869
  } }, props.item.name));
52088
53870
  };
@@ -52095,14 +53877,14 @@ var VisibilityOff = createSvgIcon$1( /*#__PURE__*/jsxRuntimeExports.jsx("path",
52095
53877
  d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
52096
53878
  }), 'VisibilityOff');
52097
53879
 
52098
- const PasswordField = ({ props }) => {
53880
+ const PasswordField = ({ props, variant }) => {
52099
53881
  const [showPassword, setShowPassword] = React$1.useState(false);
52100
53882
  const handleTogglePasswordVisibility = () => {
52101
53883
  setShowPassword((prevShowPassword) => !prevShowPassword);
52102
53884
  };
52103
53885
  return (jsxRuntimeExports.jsxs(FormControl, Object.assign({ fullWidth: true }, { children: [" ", jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52104
53886
  var _a, _b;
52105
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(Box, Object.assign({ sx: { position: "relative" } }, { children: [" ", jsxRuntimeExports.jsx(TextField, Object.assign({ size: "small", type: showPassword ? "text" : "password", autoComplete: ((_b = (_a = props.item) === null || _a === void 0 ? void 0 : _a.InputProps) === null || _b === void 0 ? void 0 : _b.autoComplete) || 'off', placeholder: props.item.placeholder || "" }, field, { label: `${props.item.label}${props.item.required ? ' *' : ''}`, sx: {
53887
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(Box, Object.assign({ sx: { position: "relative" } }, { children: [" ", renderLabel(variant, props), jsxRuntimeExports.jsx(TextField, Object.assign({ size: "small", type: showPassword ? "text" : "password", autoComplete: ((_b = (_a = props.item) === null || _a === void 0 ? void 0 : _a.InputProps) === null || _b === void 0 ? void 0 : _b.autoComplete) || 'off', placeholder: props.item.placeholder || "" }, field, { label: variant !== "standard" ? `${props.item.label}${props.item.required ? ' *' : ''}` : '', sx: {
52106
53888
  width: "100%",
52107
53889
  "& .css-kichxs-MuiFormLabel-root-MuiInputLabel-root,.css-1holvmy": {
52108
53890
  top: "-8px",
@@ -52134,65 +53916,64 @@ const PasswordField = ({ props }) => {
52134
53916
  } })] })));
52135
53917
  };
52136
53918
 
52137
- const Monthpickerrender = ({ props }) => {
53919
+ const Monthpickerrender = ({ props, variant }) => {
52138
53920
  const ref = React$1.useRef(null);
52139
53921
  const [calenderOpen, setCalenderOpen] = React$1.useState(false);
52140
53922
  return (jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52141
53923
  var _a, _b;
52142
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(LocalizationProvider, Object.assign({ dateAdapter: AdapterDayjs }, { children: jsxRuntimeExports.jsx(ClickAwayListener, Object.assign({ onClickAway: () => setCalenderOpen(false) }, { children: jsxRuntimeExports.jsx(DatePicker, { ref: ref, label: `${props.item.label}${props.item.required ? ' *' : ''}`, views: ["month", "year"], disabled: props.item.disable, value: field.value
52143
- ? dayjs(formatDateMonthAndYear(field.value || null))
52144
- : null, slotProps: {
52145
- textField: {
52146
- onClick: () => setCalenderOpen(true),
52147
- // onBlur: () => setCalenderOpen(false),
52148
- },
52149
- }, disableOpenPicker: props.item.disable,
52150
- // onMonthChange={() => setCalenderOpen(false)}
52151
- // onYearChange={() => setCalenderOpen(false)}
52152
- open: calenderOpen, defaultValue: field.value, onChange: (date) => {
52153
- field.onChange(dayjs(date).format("MM/YYYY"));
52154
- props.setValue(dayjs(date).format("MM/YYYY"));
52155
- }, sx: {
52156
- "& .css-1holvmy,.css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52157
- top: "-10px",
52158
- },
52159
- "& input": {
52160
- paddingRight: "0px !important",
52161
- },
52162
- "& button": {
52163
- paddingLeft: "0px !important",
52164
- paddingRight: "0px !important",
52165
- },
52166
- },
52167
- // renderInput={(params:any) => (
52168
- // <TextField
52169
- // {...params}
52170
- // fullWidth
52171
- // disabled={props.item.disable || false}
52172
- // InputLabelProps={{
52173
- // shrink: true,
52174
- // }}
52175
- // inputProps={{
52176
- // min: props.item.minDate,
52177
- // }}
52178
- // />
52179
- // )}
52180
- // ToolbarComponent={({ date, decreaseMonth, increaseMonth }:any) => (
52181
- // <div>
52182
- // <button onClick={decreaseMonth}>&lt;</button>
52183
- // <span>{date.getMonth() + 1}</span>
52184
- // <button onClick={increaseMonth}>&gt;</button>
52185
- // </div>
52186
- // )}
52187
- minDate: props.item.minDate ? dayjs(props.item.minDate, 'MM/YYYY') : null, maxDate: props.item.maxDate ? dayjs(props.item.maxDate, 'MM/YYYY') : null }) })) })), ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.helperText) && (jsxRuntimeExports.jsxs("span", Object.assign({ style: {
52188
- fontFamily: "Roboto-Reg",
53924
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(LocalizationProvider, Object.assign({ dateAdapter: AdapterDayjs }, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(ClickAwayListener, Object.assign({ onClickAway: () => setCalenderOpen(false) }, { children: jsxRuntimeExports.jsx(DatePicker, { ref: ref, label: variant !== "standard" && `${props.item.label}${props.item.required ? ' *' : ''}`, views: ["month", "year"], disabled: props.item.disable, value: field.value
53925
+ ? dayjs(formatDateMonthAndYear(field.value || null))
53926
+ : null, slotProps: {
53927
+ textField: {
53928
+ onClick: () => setCalenderOpen(true),
53929
+ // onBlur: () => setCalenderOpen(false),
53930
+ },
53931
+ }, disableOpenPicker: props.item.disable,
53932
+ // onMonthChange={() => setCalenderOpen(false)}
53933
+ // onYearChange={() => setCalenderOpen(false)}
53934
+ open: calenderOpen, defaultValue: field.value, onChange: (date) => {
53935
+ field.onChange(dayjs(date).format("MM/YYYY"));
53936
+ props.setValue(dayjs(date).format("MM/YYYY"));
53937
+ }, sx: {
53938
+ "& .css-1holvmy,.css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
53939
+ top: "-10px",
53940
+ },
53941
+ "& input": {
53942
+ paddingRight: "0px !important",
53943
+ },
53944
+ "& button": {
53945
+ paddingLeft: "0px !important",
53946
+ paddingRight: "0px !important",
53947
+ },
53948
+ },
53949
+ // renderInput={(params:any) => (
53950
+ // <TextField
53951
+ // {...params}
53952
+ // fullWidth
53953
+ // disabled={props.item.disable || false}
53954
+ // InputLabelProps={{
53955
+ // shrink: true,
53956
+ // }}
53957
+ // inputProps={{
53958
+ // min: props.item.minDate,
53959
+ // }}
53960
+ // />
53961
+ // )}
53962
+ // ToolbarComponent={({ date, decreaseMonth, increaseMonth }:any) => (
53963
+ // <div>
53964
+ // <button onClick={decreaseMonth}>&lt;</button>
53965
+ // <span>{date.getMonth() + 1}</span>
53966
+ // <button onClick={increaseMonth}>&gt;</button>
53967
+ // </div>
53968
+ // )}
53969
+ minDate: props.item.minDate ? dayjs(props.item.minDate, 'MM/YYYY') : null, maxDate: props.item.maxDate ? dayjs(props.item.maxDate, 'MM/YYYY') : null }) }))] })), ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.helperText) && (jsxRuntimeExports.jsxs("span", Object.assign({ style: {
52189
53970
  fontSize: "11px",
52190
53971
  color: "#3651d3",
52191
53972
  } }, { children: ["(", (_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.helperText, ")"] }))), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] }));
52192
53973
  } }));
52193
53974
  };
52194
53975
 
52195
- const DatepickerWrapperV2 = ({ props }) => {
53976
+ const DatepickerWrapperV2 = ({ props, variant }) => {
52196
53977
  const inputTextRef = React$1.useRef();
52197
53978
  const [open, setOpen] = React$1.useState(false);
52198
53979
  const handleToggle = () => {
@@ -52204,40 +53985,39 @@ const DatepickerWrapperV2 = ({ props }) => {
52204
53985
  };
52205
53986
  return (jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52206
53987
  var _a, _b, _c, _d, _e, _f;
52207
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(LocalizationProvider, Object.assign({ dateAdapter: AdapterDayjs }, { children: jsxRuntimeExports.jsx(DatePicker, { label: `${props.item.label}${props.item.required ? ' *' : ''}`, value: typeof field.value === "string"
52208
- ? dayjs(field.value, "DD/MM/YYYY")
52209
- : (field.value === null || field.value === undefined) && null, open: open, className: "read-only", format: "DD/MM/YYYY", disabled: props.item.disable || false, onChange: (date) => {
52210
- var _a, _b;
52211
- field.onChange(dayjs(date).format("DD/MM/YYYY"));
52212
- ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.onChangeFn) && ((_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.onChangeFn());
52213
- }, onOpen: handleToggle, onClose: handleToggle, slotProps: {
52214
- textField: {
52215
- // style: { input: { cursor: "pointer" } },
52216
- onClick: () => handleToggle(),
52217
- inputRef: inputTextRef,
52218
- onBlur: (e) => {
52219
- var _a, _b;
52220
- ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.onBlurFn) && ((_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.onBlurFn(e));
52221
- }
52222
- // onFocus: () => inputTextRef.current?.blur(),
52223
- },
52224
- }, sx: {
52225
- "& .css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root,.css-zy8vme,.css-1holvmy,.css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52226
- top: "-10px !important",
52227
- },
52228
- "& input:hover": {
52229
- cursor: "pointer",
52230
- },
52231
- }, minDate: ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.minDate) ? dayjs((_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.minDate, 'DD/MM/YYYY') : null, maxDate: ((_c = props === null || props === void 0 ? void 0 : props.item) === null || _c === void 0 ? void 0 : _c.maxDate) ? dayjs((_d = props === null || props === void 0 ? void 0 : props.item) === null || _d === void 0 ? void 0 : _d.maxDate, 'DD/MM/YYYY') : null }) })), ((_e = props === null || props === void 0 ? void 0 : props.item) === null || _e === void 0 ? void 0 : _e.helperText) && (jsxRuntimeExports.jsxs("span", Object.assign({ style: {
52232
- fontFamily: "Roboto-Reg",
53988
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(LocalizationProvider, Object.assign({ dateAdapter: AdapterDayjs }, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(DatePicker, { label: `${props.item.label}${props.item.required ? ' *' : ''}`, value: variant !== "standard" ? typeof field.value === "string"
53989
+ ? dayjs(field.value, "DD/MM/YYYY")
53990
+ : (field.value === null || field.value === undefined) && null : '', open: open, className: "read-only", format: "DD/MM/YYYY", disabled: props.item.disable || false, onChange: (date) => {
53991
+ var _a, _b;
53992
+ field.onChange(dayjs(date).format("DD/MM/YYYY"));
53993
+ ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.onChangeFn) && ((_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.onChangeFn());
53994
+ }, onOpen: handleToggle, onClose: handleToggle, slotProps: {
53995
+ textField: {
53996
+ // style: { input: { cursor: "pointer" } },
53997
+ onClick: () => handleToggle(),
53998
+ inputRef: inputTextRef,
53999
+ onBlur: (e) => {
54000
+ var _a, _b;
54001
+ ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.onBlurFn) && ((_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.onBlurFn(e));
54002
+ }
54003
+ // onFocus: () => inputTextRef.current?.blur(),
54004
+ },
54005
+ }, sx: {
54006
+ "& .css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root,.css-zy8vme,.css-1holvmy,.css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
54007
+ top: "-10px !important",
54008
+ },
54009
+ "& input:hover": {
54010
+ cursor: "pointer",
54011
+ },
54012
+ }, minDate: ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.minDate) ? dayjs((_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.minDate, 'DD/MM/YYYY') : null, maxDate: ((_c = props === null || props === void 0 ? void 0 : props.item) === null || _c === void 0 ? void 0 : _c.maxDate) ? dayjs((_d = props === null || props === void 0 ? void 0 : props.item) === null || _d === void 0 ? void 0 : _d.maxDate, 'DD/MM/YYYY') : null })] })), ((_e = props === null || props === void 0 ? void 0 : props.item) === null || _e === void 0 ? void 0 : _e.helperText) && (jsxRuntimeExports.jsxs("span", Object.assign({ style: {
52233
54013
  fontSize: "11px",
52234
54014
  color: "#3651d3",
52235
54015
  } }, { children: ["(", (_f = props === null || props === void 0 ? void 0 : props.item) === null || _f === void 0 ? void 0 : _f.helperText, ")"] }))), !(props === null || props === void 0 ? void 0 : props.getValues(props.item.name)) && (jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) }))] }));
52236
54016
  } }, props.item.name));
52237
54017
  };
52238
54018
 
52239
- const FormRenderFileUpload = ({ props }) => {
52240
- var _a, _b, _c;
54019
+ const FormRenderFileUpload = ({ props, variant }) => {
54020
+ var _a;
52241
54021
  React$1.useEffect(() => {
52242
54022
  if (props.getValues(props.item.name) === null ||
52243
54023
  props.getValues(props.item.name) === undefined) {
@@ -52248,7 +54028,7 @@ const FormRenderFileUpload = ({ props }) => {
52248
54028
  }
52249
54029
  }
52250
54030
  }, [props.getValues(props.item.name)]);
52251
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(Box, Object.assign({ paddingLeft: "4px" }, { children: [((_a = props.item) === null || _a === void 0 ? void 0 : _a.label) && (jsxRuntimeExports.jsx(Box, Object.assign({ sx: { fontSize: "10px;" } }, { children: renderLabel((_b = props.item) === null || _b === void 0 ? void 0 : _b.label, (_c = props.item) === null || _c === void 0 ? void 0 : _c.required) }))), jsxRuntimeExports.jsx(TextField, { type: "file", id: props.item.name, inputProps: {
54031
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(Box, Object.assign({ paddingLeft: "4px" }, { children: [((_a = props.item) === null || _a === void 0 ? void 0 : _a.label) && (jsxRuntimeExports.jsx(Box, Object.assign({ sx: { fontSize: "10px;" } }, { children: renderLabel(variant, props) }))), jsxRuntimeExports.jsx(TextField, { type: "file", id: props.item.name, inputProps: {
52252
54032
  accept: props.item.fileType === "excel"
52253
54033
  ? ".xls, .xlsx"
52254
54034
  : props.item.fileType === "pdf"
@@ -52310,25 +54090,23 @@ const FormRenderFileUpload = ({ props }) => {
52310
54090
  const useStyles = makeStyles((theme) => ({
52311
54091
  option: {
52312
54092
  fontSize: "11px",
52313
- fontFamily: "Roboto-Reg",
52314
54093
  zIndex: 2000,
52315
54094
  },
52316
54095
  option2: {
52317
54096
  fontSize: "11px",
52318
- fontFamily: "Roboto-Reg",
52319
54097
  zIndex: 2000,
52320
54098
  },
52321
54099
  }));
52322
- const SingleSelectNonAutoComplete = ({ props }) => {
54100
+ const SingleSelectNonAutoComplete = ({ props, variant }) => {
52323
54101
  useStyles();
52324
- return (jsxRuntimeExports.jsxs(FormControl, Object.assign({ fullWidth: true, sx: { position: "relative" } }, { children: [jsxRuntimeExports.jsx(InputLabel, Object.assign({ id: "demo-simple-select-label" }, { children: props.item.label })), jsxRuntimeExports.jsx(Select, Object.assign({ labelId: "demo-simple-select-label", id: "demo-simple-select",
54102
+ return (jsxRuntimeExports.jsxs(FormControl, Object.assign({ fullWidth: true, sx: { position: "relative" } }, { children: [renderLabel(variant, props), variant !== "standard" && (jsxRuntimeExports.jsx(InputLabel, Object.assign({ id: "demo-simple-select-label" }, { children: props.item.label }))), jsxRuntimeExports.jsx(Select, Object.assign({ labelId: "demo-simple-select-label", id: "demo-simple-select",
52325
54103
  // {...props.register(props.item.name)}
52326
- value: props.getValues(props.item.name), label: `${props.item.label}${props.item.required ? " *" : ""}`, onChange: (e) => props.setValue(props.item.name, e.target.value), onBlur: (e) => {
54104
+ value: props.getValues(props.item.name), label: variant !== "standard" ?
54105
+ `${props.item.label}${props.item.required ? " *" : ""}` : '', onChange: (e) => props.setValue(props.item.name, e.target.value), onBlur: (e) => {
52327
54106
  var _a, _b;
52328
54107
  ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.onBlurFn) && ((_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.onBlurFn(e));
52329
54108
  } }, { children: props.item.options.map((item) => (jsxRuntimeExports.jsx(MenuItem, Object.assign({ sx: {
52330
54109
  fontSize: "11px",
52331
- fontFamily: "Roboto-Reg",
52332
54110
  zIndex: 2000,
52333
54111
  }, value: item.value }, { children: item.label })))) })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] }), props.item.name));
52334
54112
  };
@@ -52352,7 +54130,7 @@ const FormActiveSwitch = ({ props }) => {
52352
54130
  return !prevActive;
52353
54131
  });
52354
54132
  }, [setValue, item.name]);
52355
- return (jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsxs("div", Object.assign({ className: "m-form__input" }, { children: [item.label && (jsxRuntimeExports.jsx("span", Object.assign({ style: { fontSize: "12px", fontWeight: 400, paddingRight: 10 } }, { children: item.label }))), jsxRuntimeExports.jsxs("span", Object.assign({ className: "switch prestashop-switch fixed-width-lg" }, { children: [jsxRuntimeExports.jsx("input", { checked: active, id: `${item.name}_on`, name: item.name, type: "radio", value: "Active", onChange: handleSwitchChange }), jsxRuntimeExports.jsx("label", Object.assign({ htmlFor: `${item.name}_on`, style: { fontFamily: "Roboto-Reg", textTransform: "none" } }, { children: item.label1 ? item.label1 : "Active" })), jsxRuntimeExports.jsx("input", { checked: !active, id: `${item.name}_off`, name: item.name, type: "radio", value: "In Active", onChange: handleSwitchChange }), jsxRuntimeExports.jsx("label", Object.assign({ htmlFor: `${item.name}_off`, style: { fontFamily: "Roboto-Reg", textTransform: "none" } }, { children: item.label2 ? item.label2 : "In Active" })), jsxRuntimeExports.jsx("a", { className: "slide-button btn" })] }))] })) }));
54133
+ return (jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsxs("div", Object.assign({ className: "m-form__input" }, { children: [item.label && (jsxRuntimeExports.jsx("span", Object.assign({ style: { fontSize: "12px", fontWeight: 400, paddingRight: 10 } }, { children: item.label }))), jsxRuntimeExports.jsxs("span", Object.assign({ className: "switch prestashop-switch fixed-width-lg" }, { children: [jsxRuntimeExports.jsx("input", { checked: active, id: `${item.name}_on`, name: item.name, type: "radio", value: "Active", onChange: handleSwitchChange }), jsxRuntimeExports.jsx("label", Object.assign({ htmlFor: `${item.name}_on`, style: { textTransform: "none" } }, { children: item.label1 ? item.label1 : "Active" })), jsxRuntimeExports.jsx("input", { checked: !active, id: `${item.name}_off`, name: item.name, type: "radio", value: "In Active", onChange: handleSwitchChange }), jsxRuntimeExports.jsx("label", Object.assign({ htmlFor: `${item.name}_off`, style: { textTransform: "none" } }, { children: item.label2 ? item.label2 : "In Active" })), jsxRuntimeExports.jsx("a", { className: "slide-button btn" })] }))] })) }));
52356
54134
  };
52357
54135
 
52358
54136
  var joditReact = {exports: {}};
@@ -52433,9 +54211,23 @@ const RichTextEditor = ({ props }) => {
52433
54211
  return (jsxRuntimeExports.jsx(JoditEditor, { ref: editor, value: content, config: config, tabIndex: 1, onBlur: handleBlur, onChange: handleChange }));
52434
54212
  };
52435
54213
 
52436
- const renderLabel = (label, isRequired, alignRight) => {
52437
- return (jsxRuntimeExports.jsx(LabelComponent, Object.assign({ container: true, style: { justifyContent: "normal" } }, { children: jsxRuntimeExports.jsxs(Box, Object.assign({ fontSize: "12px", fontFamily: "Roboto-Reg" }, { children: [label, isRequired ? jsxRuntimeExports.jsx(ImportantMark, { children: " *" }) : ""] })) })));
52438
- };
54214
+ // export const renderLabel = (
54215
+ // label: string,
54216
+ // isRequired?: boolean,
54217
+ // alignRight?: boolean
54218
+ // ) => {
54219
+ // return (
54220
+ // <LabelComponent
54221
+ // container
54222
+ // style={{ justifyContent: alignRight ? "flex-end" : "normal" }}
54223
+ // >
54224
+ // <Box fontSize={"12px"}>
54225
+ // {label}
54226
+ // {isRequired ? <ImportantMark> *</ImportantMark> : ""}
54227
+ // </Box>
54228
+ // </LabelComponent>
54229
+ // );
54230
+ // };
52439
54231
  function formatDateMonthAndYear(date) {
52440
54232
  // Check if date is a string
52441
54233
  if (typeof date !== "string") {
@@ -52448,31 +54240,29 @@ function formatDateMonthAndYear(date) {
52448
54240
  // Return the formatted date with day set to '01'
52449
54241
  return `${formattedMonth}/01/${year}`;
52450
54242
  }
54243
+ const renderLabel = (variant, props) => variant === "standard" && (jsxRuntimeExports.jsxs("span", Object.assign({ className: "formInputlabel", style: { fontSize: "12px" } }, { children: [props.item.label, " ", props.item.required && jsxRuntimeExports.jsx("span", Object.assign({ style: { color: "red" } }, { children: "*" }))] })));
52451
54244
  const RenderForm = (props) => {
52452
54245
  var _a, _b;
52453
- console.log(props, "propsprops", props.item.inputType);
54246
+ const variant = props.variant || "";
52454
54247
  switch ((_a = props.item) === null || _a === void 0 ? void 0 : _a.inputType) {
52455
54248
  case "text":
52456
54249
  case "multiEmail":
52457
54250
  case "email":
52458
54251
  return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52459
54252
  var _a, _b;
52460
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { fullWidth: true,
54253
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { fullWidth: true,
52461
54254
  // error={props.errors}
52462
- label: `${props.item.label}${props.item.required ? " *" : ""}`, placeholder: props.item.placeholder || "", InputProps: {
54255
+ label: variant !== "standard" ?
54256
+ `${props.item.label}${props.item.required ? " *" : ""}` : '', placeholder: props.item.placeholder || "", InputProps: {
52463
54257
  style: {
52464
- fontFamily: "Roboto-Reg",
52465
54258
  border: "none",
52466
54259
  },
52467
- }, autoComplete: "off", sx: Object.assign({ fontFamily: "Roboto-Reg", "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
54260
+ }, autoComplete: "off", sx: Object.assign({ "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52468
54261
  top: "-10px",
52469
54262
  // fontSize:'14px !important'
52470
54263
  }, "& .css-2rul56-MuiFormLabel-root-MuiInputLabel-root": {
52471
54264
  top: "-10px",
52472
- fontFamily: "Roboto-Reg",
52473
- }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {
52474
- fontFamily: "Roboto-Reg",
52475
- }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
54265
+ }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {}, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
52476
54266
  outline: "none",
52477
54267
  border: "1px solid #ced4da", // Add this line to set border to none
52478
54268
  }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input:focus ": {
@@ -52507,22 +54297,20 @@ const RenderForm = (props) => {
52507
54297
  }
52508
54298
  },
52509
54299
  } })), ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.helperText) && (jsxRuntimeExports.jsxs("span", Object.assign({ style: {
52510
- fontFamily: "Roboto-Reg",
52511
54300
  fontSize: "11px",
52512
54301
  color: "#3651d3",
52513
54302
  } }, { children: ["(", (_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.helperText, ")"] }))), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] }));
52514
54303
  } }, props.item.name) }));
52515
54304
  case "rich-text-editor":
52516
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(RichTextEditor, { props: props }), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] })) }, props.item.name) }));
54305
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(RichTextEditor, { props: props }), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] })) }, props.item.name) }));
52517
54306
  case "register-number":
52518
54307
  return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52519
54308
  var _a, _b;
52520
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { fullWidth: true, onBlur: (e) => {
54309
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { fullWidth: true, onBlur: (e) => {
52521
54310
  var _a, _b;
52522
54311
  ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.onBlurFn) && ((_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.onBlurFn(e));
52523
- }, label: `${props.item.label}${props.item.required ? " *" : ""}`, InputProps: {
54312
+ }, label: variant !== "standard" ? `${props.item.label}${props.item.required ? " *" : ""}` : '', InputProps: {
52524
54313
  style: {
52525
- fontFamily: "Roboto-Reg",
52526
54314
  border: "none",
52527
54315
  },
52528
54316
  }, onInput: (e) => {
@@ -52530,15 +54318,12 @@ const RenderForm = (props) => {
52530
54318
  .replace(/\s/g, "")
52531
54319
  .replace(/[^a-zA-Z0-9!@#$%^&*()_+{}\[\]:;<>,.?/~`|\\-]/g, "");
52532
54320
  props.item.onInputProps && props.item.onInputProps(e);
52533
- }, sx: Object.assign({ fontFamily: "Roboto-Reg", "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
54321
+ }, sx: Object.assign({ "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52534
54322
  top: "-10px",
52535
54323
  // fontSize:'14px !important'
52536
54324
  }, "& .css-2rul56-MuiFormLabel-root-MuiInputLabel-root": {
52537
54325
  top: "-10px",
52538
- fontFamily: "Roboto-Reg",
52539
- }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {
52540
- fontFamily: "Roboto-Reg",
52541
- }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
54326
+ }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {}, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
52542
54327
  outline: "none",
52543
54328
  border: "1px solid #ced4da", // Add this line to set border to none
52544
54329
  }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input:focus ": {
@@ -52547,17 +54332,16 @@ const RenderForm = (props) => {
52547
54332
  } }, props.item.sx),
52548
54333
  // classes={{ option: { color: "red !important" } }}
52549
54334
  value: field.value || "", disabled: props.item.disable })), ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.helperText) && (jsxRuntimeExports.jsxs("span", Object.assign({ style: {
52550
- fontFamily: "Roboto-Reg",
52551
54335
  fontSize: "11px",
52552
54336
  color: "#3651d3",
52553
54337
  } }, { children: ["(", (_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.helperText, ")"] }))), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] }));
52554
54338
  } }, props.item.name) }));
52555
54339
  case "password":
52556
- return (jsxRuntimeExports.jsx(Box, Object.assign({ position: "relative" }, { children: jsxRuntimeExports.jsx(PasswordField, { props: props }) }), props.item.name));
54340
+ return (jsxRuntimeExports.jsx(Box, Object.assign({ position: "relative" }, { children: jsxRuntimeExports.jsx(PasswordField, { props: props, variant: variant }) }), props.item.name));
52557
54341
  case "select":
52558
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(SingleSelect, { props: props }) }));
54342
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(SingleSelect, { props: props, variant: variant }) }));
52559
54343
  case "select-v2":
52560
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(SingleSelectNonAutoComplete, { props: props }) }));
54344
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(SingleSelectNonAutoComplete, { props: props, variant: variant }) }));
52561
54345
  // case "select-search-api":
52562
54346
  // return (
52563
54347
  // <>
@@ -52568,7 +54352,7 @@ const RenderForm = (props) => {
52568
54352
  case "pincode":
52569
54353
  case "phoneNumber":
52570
54354
  return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52571
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { size: "small", label: `${props.item.label}${props.item.required ? " *" : ""}`, value: props.getValues(props.item.name) || "", defaultValue: props.getValues(props.item.name) || null, onInput: (e) => {
54355
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { size: "small", label: variant !== "standard" ? `${props.item.label}${props.item.required ? " *" : ""}` : '', value: props.getValues(props.item.name) || "", defaultValue: props.getValues(props.item.name) || null, onInput: (e) => {
52572
54356
  var _a, _b;
52573
54357
  e.target.value = e.target.value.replace(/[^0-9]/g, "");
52574
54358
  if (e.target.value === "") {
@@ -52606,7 +54390,7 @@ const RenderForm = (props) => {
52606
54390
  }, disabled: props.item.disable })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] }));
52607
54391
  } }, props.item.name) }));
52608
54392
  case "decimal":
52609
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { name: props.item.name, control: props.control, disabled: (_b = props.item) === null || _b === void 0 ? void 0 : _b.disable, render: ({ field }) => (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(TextField, Object.assign({ type: "text", size: "small", label: `${props.item.label}${props.item.required ? " *" : ""}` }, field, { onChange: (e) => (props === null || props === void 0 ? void 0 : props.clearErrors) && (props === null || props === void 0 ? void 0 : props.clearErrors(props.item.name)), sx: {
54393
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { name: props.item.name, control: props.control, disabled: (_b = props.item) === null || _b === void 0 ? void 0 : _b.disable, render: ({ field }) => (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(TextField, Object.assign({ type: "text", size: "small", label: variant !== "standard" ? `${props.item.label}${props.item.required ? " *" : ""}` : '' }, field, { onChange: (e) => (props === null || props === void 0 ? void 0 : props.clearErrors) && (props === null || props === void 0 ? void 0 : props.clearErrors(props.item.name)), sx: {
52610
54394
  "& input": {
52611
54395
  textAlign: "right",
52612
54396
  },
@@ -52835,45 +54619,41 @@ const RenderForm = (props) => {
52835
54619
  // </>
52836
54620
  // );
52837
54621
  case "datepicker":
52838
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(DatepickerWrapperV2, { props: props }) }));
54622
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(DatepickerWrapperV2, { props: props, variant: variant }) }));
52839
54623
  case "yearpicker":
52840
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(LocalizationProvider, Object.assign({ dateAdapter: AdapterDayjs }, { children: jsxRuntimeExports.jsx(DatePicker, { sx: {
52841
- "& .css-1holvmy, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52842
- top: "-10px",
52843
- },
52844
- }, label: `${props.item.label}${props.item.required ? " *" : ""}`, views: ["year"], value: field.value ? dayjs(field.value) : null, onChange: (date) => field.onChange(date),
52845
- // minDate={}
52846
- slots: {
52847
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
52848
- textField: (textFieldProps) => (jsxRuntimeExports.jsx(TextField, Object.assign({}, textFieldProps, { fullWidth: true, disabled: props.item.disable || false, InputLabelProps: {
52849
- shrink: true,
52850
- } }))),
52851
- } }) })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] })) }, props.item.name) }));
54624
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(LocalizationProvider, Object.assign({ dateAdapter: AdapterDayjs }, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(DatePicker, { sx: {
54625
+ "& .css-1holvmy, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
54626
+ top: "-10px",
54627
+ },
54628
+ }, label: variant !== "standard" ? `${props.item.label}${props.item.required ? " *" : ""}` : '', views: ["year"], value: field.value ? dayjs(field.value) : null, onChange: (date) => field.onChange(date),
54629
+ // minDate={}
54630
+ slots: {
54631
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
54632
+ textField: (textFieldProps) => (jsxRuntimeExports.jsx(TextField, Object.assign({}, textFieldProps, { fullWidth: true, disabled: props.item.disable || false, InputLabelProps: {
54633
+ shrink: true,
54634
+ } }))),
54635
+ } })] })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] })) }, props.item.name) }));
52852
54636
  case "dateRangePicker":
52853
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(DateRangePickerComponent, { props: props }) }));
54637
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(DateRangePickerComponent, { props: props, variant: variant }) }));
52854
54638
  case "monthpicker":
52855
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Monthpickerrender, { props: props }) }));
54639
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Monthpickerrender, { props: props, variant: variant }) }));
52856
54640
  case "multiselect":
52857
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(MultiSelectV1, { props: props }) }));
54641
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(MultiSelectV1, { props: props, variant: variant }) }));
52858
54642
  case "file":
52859
- return jsxRuntimeExports.jsx(FormRenderFileUpload, { props: props });
54643
+ return jsxRuntimeExports.jsx(FormRenderFileUpload, { props: props, variant: variant });
52860
54644
  case "textarea":
52861
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(TextField, Object.assign({ multiline: true, size: "small", InputProps: {
54645
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(TextField, Object.assign({ multiline: true, size: "small", InputProps: {
52862
54646
  style: {
52863
- fontFamily: "Roboto-Reg",
52864
54647
  border: "none",
52865
54648
  },
52866
- }, sx: Object.assign({ fontFamily: "Roboto-Reg", "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
54649
+ }, sx: Object.assign({ "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52867
54650
  top: "-10px",
52868
54651
  }, "& input": {
52869
54652
  fontSize: "11px",
52870
54653
  // textTransform:'uppercase'
52871
54654
  }, "& .css-2rul56-MuiFormLabel-root-MuiInputLabel-root": {
52872
54655
  top: "-10px",
52873
- fontFamily: "Roboto-Reg",
52874
- }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {
52875
- fontFamily: "Roboto-Reg",
52876
- }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
54656
+ }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {}, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
52877
54657
  outline: "none",
52878
54658
  border: "1px solid #ced4da", // Add this line to set border to none
52879
54659
  }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input:focus ": {
@@ -52887,7 +54667,7 @@ const RenderForm = (props) => {
52887
54667
  // textTransform:'uppercase'
52888
54668
  maxHeight: "500px !important",
52889
54669
  overflow: "auto",
52890
- } }, props.item.sx), minRows: props.item.minRows || 1, maxRows: props.item.maxRows || 100, placeholder: props.item.placeholder || "Type Something..." }, field, { label: `${props.item.label}${props.item.required ? " *" : ""}`, value: field.value || "", disabled: props.item.disable, inputProps: {
54670
+ } }, props.item.sx), minRows: props.item.minRows || 1, maxRows: props.item.maxRows || 100, placeholder: props.item.placeholder || "Type Something..." }, field, { label: variant !== "standard" ? `${props.item.label}${props.item.required ? " *" : ""}` : '', value: field.value || "", disabled: props.item.disable, inputProps: {
52891
54671
  onInput: (e) => {
52892
54672
  var _a;
52893
54673
  if (!((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.allowSpecialChars)) {
@@ -52984,9 +54764,7 @@ const customTheme = createTheme({
52984
54764
  xl: 1536,
52985
54765
  },
52986
54766
  },
52987
- typography: {
52988
- fontFamily: 'Roboto-Reg'
52989
- },
54767
+ typography: {},
52990
54768
  palette: {
52991
54769
  // primary: {
52992
54770
  // // main: 'linear-gradient(135deg, #6379c3 0%, #546ee5 60%)',
@@ -53030,7 +54808,6 @@ const customTheme = createTheme({
53030
54808
  MuiButton: {
53031
54809
  styleOverrides: {
53032
54810
  root: {
53033
- fontFamily: 'Roboto-Reg',
53034
54811
  textTransform: 'none'
53035
54812
  }
53036
54813
  }
@@ -53044,7 +54821,7 @@ const FormRenderWrapper = ({ formArray, name, numberOfColumns = 3, form, }) => {
53044
54821
  // useEffect(() => {
53045
54822
  // // form.reset(initialValues, { resolver: yupResolver(validationSchema) });
53046
54823
  // }, [formArray, validationSchema, initialValues]);
53047
- return (jsxRuntimeExports.jsx(ThemeProvider, Object.assign({ theme: customTheme }, { children: jsxRuntimeExports.jsx(FormComponent, Object.assign({ container: true, margin: "auto" }, { children: formArray.map((item, i) => {
54824
+ return (jsxRuntimeExports.jsx(ThemeProvider$3, Object.assign({ theme: customTheme }, { children: jsxRuntimeExports.jsx(FormComponent, Object.assign({ container: true, margin: "auto" }, { children: formArray.map((item, i) => {
53048
54825
  return (jsxRuntimeExports.jsx(Formitem, Object.assign({ container: true, sx: item.CustomProps, noOfColumn: item.numberOfColumns || numberOfColumns }, { children: jsxRuntimeExports.jsx(RenderForm, { item: item, register: form.register, control: form.control, errors: form.formState.errors, getValues: form.getValues, clearErrors: form.clearErrors, setValue: form.setValue }) }), i));
53049
54826
  }) })) })));
53050
54827
  };
@@ -55642,7 +57419,7 @@ newStyled(Button)(({ theme }) => ({
55642
57419
  ":hover": { background: "orange" },
55643
57420
  }));
55644
57421
  newStyled(Typography)(({ theme }) => ({
55645
- fontFamily: "Roboto-Med",
57422
+ // fontFamily: "Roboto-Med",
55646
57423
  }));
55647
57424
  newStyled(Grid, {
55648
57425
  shouldForwardProp: (prop) => prop !== "isActive" && prop !== "noOfColumn",
@@ -55657,7 +57434,7 @@ newStyled(Grid, {
55657
57434
  border: "1px solid #0003",
55658
57435
  fontSize: "12px",
55659
57436
  padding: "6px",
55660
- fontFamily: "Roboto",
57437
+ // fontFamily: "Roboto",
55661
57438
  textAlign: "center",
55662
57439
  [theme.breakpoints.down("md")]: {
55663
57440
  width: "100%",
@@ -55683,7 +57460,7 @@ newStyled(DialogTitle)(({ theme }) => ({
55683
57460
  justifyContent: "space-between",
55684
57461
  fontSize: "14px",
55685
57462
  cursor: "move",
55686
- fontFamily: "Roboto",
57463
+ // fontFamily: "Roboto",
55687
57464
  borderBottom: "1px solid rgb(229 231 235 / 1)",
55688
57465
  }));
55689
57466
 
@@ -55705,7 +57482,7 @@ const ConfirmationDialog = ({ openConfirmDialog, handleCancel, onClickSubmit, te
55705
57482
  display: "flex",
55706
57483
  alignItems: "center",
55707
57484
  justifyContent: "space-between",
55708
- fontFamily: "Roboto",
57485
+ // fontFamily: "Roboto",
55709
57486
  fontSize: "14px",
55710
57487
  cursor: "move",
55711
57488
  borderBottom: "1px solid rgb(229 231 235 / 1)",
@@ -55713,7 +57490,7 @@ const ConfirmationDialog = ({ openConfirmDialog, handleCancel, onClickSubmit, te
55713
57490
  "& .pt-0": {
55714
57491
  paddingTop: 0,
55715
57492
  },
55716
- } }, { children: [jsxRuntimeExports.jsx(Typography, Object.assign({ fontFamily: "Roboto-Reg" }, { children: text })), jsxRuntimeExports.jsx(Grid, { container: true, gap: 3 })] })), jsxRuntimeExports.jsx(DialogActions, Object.assign({ sx: { borderTop: "1px solid #e0e0e0", marginTop: 3 } }, { children: jsxRuntimeExports.jsxs("div", Object.assign({ style: {
57493
+ } }, { children: [jsxRuntimeExports.jsx(Typography, { children: text }), jsxRuntimeExports.jsx(Grid, { container: true, gap: 3 })] })), jsxRuntimeExports.jsx(DialogActions, Object.assign({ sx: { borderTop: "1px solid #e0e0e0", marginTop: 3 } }, { children: jsxRuntimeExports.jsxs("div", Object.assign({ style: {
55717
57494
  display: "flex",
55718
57495
  justifyContent: "flex-end",
55719
57496
  gap: "8px",
@@ -55804,9 +57581,62 @@ const SessionTimeOut = ({ sessionTime, handleSubmitSession, onSessionExpire, han
55804
57581
  return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(ConfirmationDialog, { openConfirmDialog: openConfirmModal, handleCancel: handleCancel, onClickSubmit: handleSubmit, text: sessionMessage, Submit: SubmitButtonName, buttonStyleProps: buttonStyleProps }) }));
55805
57582
  };
55806
57583
 
57584
+ exports.BoxTP = Box;
57585
+ exports.ButtonTP = Button;
55807
57586
  exports.DeleteField = DeleteField;
57587
+ exports.DeleteFieldTP = DeleteField;
57588
+ exports.Experimental_CssVarsProvider = CssVarsProvider;
57589
+ exports.GridTP = Grid;
55808
57590
  exports.RenderForm = FormRenderWrapper;
57591
+ exports.RenderFormTP = FormRenderWrapper;
55809
57592
  exports.SessionTimeoutField = SessionTimeOut;
57593
+ exports.SessionTimeoutFieldTP = SessionTimeOut;
57594
+ exports.StyledEngineProvider = StyledEngineProvider;
57595
+ exports.THEME_ID = THEME_ID;
57596
+ exports.ThemeProvider = ThemeProvider;
57597
+ exports.ThemeProviderTP = ThemeProvider$3;
57598
+ exports.TypographyTP = Typography;
57599
+ exports.adaptV4Theme = adaptV4Theme;
57600
+ exports.alpha = alpha;
57601
+ exports.createMuiTheme = createMuiTheme;
57602
+ exports.createStyles = createStyles;
57603
+ exports.createTheme = createTheme;
57604
+ exports.css = css$1;
57605
+ exports.darken = darken;
57606
+ exports.decomposeColor = decomposeColor;
57607
+ exports.duration = duration;
57608
+ exports.easing = easing;
57609
+ exports.emphasize = emphasize;
57610
+ exports.experimentalStyled = styled$1;
57611
+ exports.experimental_extendTheme = extendTheme;
57612
+ exports.experimental_sx = experimental_sx;
57613
+ exports.getContrastRatio = getContrastRatio;
57614
+ exports.getInitColorSchemeScript = getInitColorSchemeScript;
57615
+ exports.getLuminance = getLuminance;
57616
+ exports.getOverlayAlpha = getOverlayAlpha$1;
57617
+ exports.hexToRgb = hexToRgb;
57618
+ exports.hslToRgb = hslToRgb;
57619
+ exports.keyframes = keyframes;
57620
+ exports.lighten = lighten;
57621
+ exports.makeStyles = makeStyles$1;
57622
+ exports.private_createMixins = createMixins;
57623
+ exports.private_createTypography = createTypography;
57624
+ exports.private_excludeVariablesFromRoot = excludeVariablesFromRoot$1;
57625
+ exports.recomposeColor = recomposeColor;
57626
+ exports.responsiveFontSizes = responsiveFontSizes;
57627
+ exports.rgbToHex = rgbToHex;
57628
+ exports.shouldSkipGeneratingVar = shouldSkipGeneratingVar;
57629
+ exports.styled = styled$1;
57630
+ exports.unstable_createMuiStrictModeTheme = createMuiStrictModeTheme;
57631
+ exports.unstable_getUnit = getUnit;
57632
+ exports.unstable_toUnitless = toUnitless;
57633
+ exports.useColorScheme = useColorScheme;
55810
57634
  exports.useFormElement = useForm;
57635
+ exports.useFormElementTP = useForm;
55811
57636
  exports.useFormValidatingContext = useFormValidatingContext;
57637
+ exports.useFormValidatingContextTP = useFormValidatingContext;
57638
+ exports.useTheme = useTheme$2;
57639
+ exports.useThemeProps = useThemeProps$1;
57640
+ exports.withStyles = withStyles;
57641
+ exports.withTheme = withTheme;
55812
57642
  //# sourceMappingURL=index.js.map