tp-react-elements-dev 1.7.5 → 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.esm.js CHANGED
@@ -7119,7 +7119,7 @@ var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
7119
7119
  return getTheme(outerTheme, theme);
7120
7120
  });
7121
7121
  });
7122
- var ThemeProvider = function ThemeProvider(props) {
7122
+ var ThemeProvider$3 = function ThemeProvider(props) {
7123
7123
  var theme = React$1.useContext(ThemeContext$1);
7124
7124
 
7125
7125
  if (props.theme !== theme) {
@@ -8337,7 +8337,7 @@ var getDisplayName = /*#__PURE__*/Object.freeze({
8337
8337
 
8338
8338
  var require$$6 = /*@__PURE__*/getAugmentedNamespace(getDisplayName);
8339
8339
 
8340
- const _excluded$1m = ["values", "unit", "step"];
8340
+ const _excluded$1s = ["values", "unit", "step"];
8341
8341
  const sortBreakpointsValues = values => {
8342
8342
  const breakpointsAsArray = Object.keys(values).map(key => ({
8343
8343
  key,
@@ -8371,7 +8371,7 @@ function createBreakpoints(breakpoints) {
8371
8371
  unit = 'px',
8372
8372
  step = 5
8373
8373
  } = breakpoints,
8374
- other = _objectWithoutPropertiesLoose(breakpoints, _excluded$1m);
8374
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$1s);
8375
8375
  const sortedValues = sortBreakpointsValues(values);
8376
8376
  const keys = Object.keys(sortedValues);
8377
8377
  function up(key) {
@@ -9510,7 +9510,7 @@ function applyStyles$2(key, styles) {
9510
9510
  return {};
9511
9511
  }
9512
9512
 
9513
- const _excluded$1l = ["breakpoints", "palette", "spacing", "shape"];
9513
+ const _excluded$1r = ["breakpoints", "palette", "spacing", "shape"];
9514
9514
  function createTheme$2(options = {}, ...args) {
9515
9515
  const {
9516
9516
  breakpoints: breakpointsInput = {},
@@ -9518,7 +9518,7 @@ function createTheme$2(options = {}, ...args) {
9518
9518
  spacing: spacingInput,
9519
9519
  shape: shapeInput = {}
9520
9520
  } = options,
9521
- other = _objectWithoutPropertiesLoose(options, _excluded$1l);
9521
+ other = _objectWithoutPropertiesLoose(options, _excluded$1r);
9522
9522
  const breakpoints = createBreakpoints(breakpointsInput);
9523
9523
  const spacing = createSpacing(spacingInput);
9524
9524
  let muiTheme = deepmerge$1({
@@ -9553,7 +9553,7 @@ var createTheme$1 = /*#__PURE__*/Object.freeze({
9553
9553
 
9554
9554
  var require$$7 = /*@__PURE__*/getAugmentedNamespace(createTheme$1);
9555
9555
 
9556
- const _excluded$1k = ["sx"];
9556
+ const _excluded$1q = ["sx"];
9557
9557
  const splitProps = props => {
9558
9558
  var _props$theme$unstable, _props$theme;
9559
9559
  const result = {
@@ -9574,7 +9574,7 @@ function extendSxProp(props) {
9574
9574
  const {
9575
9575
  sx: inSx
9576
9576
  } = props,
9577
- other = _objectWithoutPropertiesLoose(props, _excluded$1k);
9577
+ other = _objectWithoutPropertiesLoose(props, _excluded$1q);
9578
9578
  const {
9579
9579
  systemProps,
9580
9580
  otherProps
@@ -9623,8 +9623,8 @@ var _capitalize = _interopRequireDefault$6(require$$5);
9623
9623
  var _getDisplayName = _interopRequireDefault$6(require$$6);
9624
9624
  var _createTheme = _interopRequireDefault$6(require$$7);
9625
9625
  var _styleFunctionSx = _interopRequireDefault$6(require$$8);
9626
- const _excluded$1j = ["ownerState"],
9627
- _excluded2$d = ["variants"],
9626
+ const _excluded$1p = ["ownerState"],
9627
+ _excluded2$f = ["variants"],
9628
9628
  _excluded3$6 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
9629
9629
  /* eslint-disable no-underscore-dangle */
9630
9630
  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); }
@@ -9670,7 +9670,7 @@ function processStyleArg$1(callableStyle, _ref) {
9670
9670
  let {
9671
9671
  ownerState
9672
9672
  } = _ref,
9673
- props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded$1j);
9673
+ props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded$1p);
9674
9674
  const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle((0, _extends2.default)({
9675
9675
  ownerState
9676
9676
  }, props)) : callableStyle;
@@ -9683,7 +9683,7 @@ function processStyleArg$1(callableStyle, _ref) {
9683
9683
  const {
9684
9684
  variants = []
9685
9685
  } = resolvedStylesArg,
9686
- otherStyles = (0, _objectWithoutPropertiesLoose2.default)(resolvedStylesArg, _excluded2$d);
9686
+ otherStyles = (0, _objectWithoutPropertiesLoose2.default)(resolvedStylesArg, _excluded2$f);
9687
9687
  let result = otherStyles;
9688
9688
  variants.forEach(variant => {
9689
9689
  let isMatch = true;
@@ -9932,21 +9932,21 @@ Object.defineProperty(colorManipulator, "__esModule", {
9932
9932
  var alpha_1 = colorManipulator.alpha = alpha$1;
9933
9933
  colorManipulator.blend = blend;
9934
9934
  colorManipulator.colorChannel = void 0;
9935
- var darken_1 = colorManipulator.darken = darken;
9935
+ var darken_1 = colorManipulator.darken = darken$1;
9936
9936
  colorManipulator.decomposeColor = decomposeColor$1;
9937
- colorManipulator.emphasize = emphasize;
9938
- var getContrastRatio_1 = colorManipulator.getContrastRatio = getContrastRatio;
9939
- colorManipulator.getLuminance = getLuminance;
9937
+ colorManipulator.emphasize = emphasize$1;
9938
+ var getContrastRatio_1 = colorManipulator.getContrastRatio = getContrastRatio$1;
9939
+ colorManipulator.getLuminance = getLuminance$1;
9940
9940
  colorManipulator.hexToRgb = hexToRgb$1;
9941
- colorManipulator.hslToRgb = hslToRgb;
9942
- var lighten_1 = colorManipulator.lighten = lighten;
9943
- colorManipulator.private_safeAlpha = private_safeAlpha;
9944
- colorManipulator.private_safeColorChannel = void 0;
9945
- colorManipulator.private_safeDarken = private_safeDarken;
9946
- colorManipulator.private_safeEmphasize = private_safeEmphasize;
9947
- colorManipulator.private_safeLighten = private_safeLighten;
9941
+ var hslToRgb_1 = colorManipulator.hslToRgb = hslToRgb$1;
9942
+ var lighten_1 = colorManipulator.lighten = lighten$1;
9943
+ var private_safeAlpha_1 = colorManipulator.private_safeAlpha = private_safeAlpha;
9944
+ var private_safeColorChannel_1 = colorManipulator.private_safeColorChannel = void 0;
9945
+ var private_safeDarken_1 = colorManipulator.private_safeDarken = private_safeDarken;
9946
+ var private_safeEmphasize_1 = colorManipulator.private_safeEmphasize = private_safeEmphasize;
9947
+ var private_safeLighten_1 = colorManipulator.private_safeLighten = private_safeLighten;
9948
9948
  colorManipulator.recomposeColor = recomposeColor$1;
9949
- colorManipulator.rgbToHex = rgbToHex;
9949
+ colorManipulator.rgbToHex = rgbToHex$1;
9950
9950
  var _formatMuiErrorMessage2 = _interopRequireDefault$5(require$$1);
9951
9951
  var _clamp = _interopRequireDefault$5(require$$2);
9952
9952
  /* eslint-disable @typescript-eslint/naming-convention */
@@ -9983,7 +9983,7 @@ function hexToRgb$1(color) {
9983
9983
  return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
9984
9984
  }).join(', ')})` : '';
9985
9985
  }
9986
- function intToHex(int) {
9986
+ function intToHex$1(int) {
9987
9987
  const hex = int.toString(16);
9988
9988
  return hex.length === 1 ? `0${hex}` : hex;
9989
9989
  }
@@ -10061,7 +10061,7 @@ const private_safeColorChannel = (color, warning) => {
10061
10061
  * @param {array} color.values - [n,n,n] or [n,n,n,n]
10062
10062
  * @returns {string} A CSS color string
10063
10063
  */
10064
- colorManipulator.private_safeColorChannel = private_safeColorChannel;
10064
+ private_safeColorChannel_1 = colorManipulator.private_safeColorChannel = private_safeColorChannel;
10065
10065
  function recomposeColor$1(color) {
10066
10066
  const {
10067
10067
  type,
@@ -10090,7 +10090,7 @@ function recomposeColor$1(color) {
10090
10090
  * @param {string} color - RGB color, i.e. rgb(n, n, n)
10091
10091
  * @returns {string} A CSS rgb color string, i.e. #nnnnnn
10092
10092
  */
10093
- function rgbToHex(color) {
10093
+ function rgbToHex$1(color) {
10094
10094
  // Idempotent
10095
10095
  if (color.indexOf('#') === 0) {
10096
10096
  return color;
@@ -10098,7 +10098,7 @@ function rgbToHex(color) {
10098
10098
  const {
10099
10099
  values
10100
10100
  } = decomposeColor$1(color);
10101
- return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;
10101
+ return `#${values.map((n, i) => intToHex$1(i === 3 ? Math.round(255 * n) : n)).join('')}`;
10102
10102
  }
10103
10103
 
10104
10104
  /**
@@ -10106,7 +10106,7 @@ function rgbToHex(color) {
10106
10106
  * @param {string} color - HSL color values
10107
10107
  * @returns {string} rgb color values
10108
10108
  */
10109
- function hslToRgb(color) {
10109
+ function hslToRgb$1(color) {
10110
10110
  color = decomposeColor$1(color);
10111
10111
  const {
10112
10112
  values
@@ -10135,9 +10135,9 @@ function hslToRgb(color) {
10135
10135
  * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
10136
10136
  * @returns {number} The relative brightness of the color in the range 0 - 1
10137
10137
  */
10138
- function getLuminance(color) {
10138
+ function getLuminance$1(color) {
10139
10139
  color = decomposeColor$1(color);
10140
- let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor$1(hslToRgb(color)).values : color.values;
10140
+ let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor$1(hslToRgb$1(color)).values : color.values;
10141
10141
  rgb = rgb.map(val => {
10142
10142
  if (color.type !== 'color') {
10143
10143
  val /= 255; // normalized
@@ -10157,9 +10157,9 @@ function getLuminance(color) {
10157
10157
  * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
10158
10158
  * @returns {number} A contrast ratio value in the range 0 - 21.
10159
10159
  */
10160
- function getContrastRatio(foreground, background) {
10161
- const lumA = getLuminance(foreground);
10162
- const lumB = getLuminance(background);
10160
+ function getContrastRatio$1(foreground, background) {
10161
+ const lumA = getLuminance$1(foreground);
10162
+ const lumB = getLuminance$1(background);
10163
10163
  return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
10164
10164
  }
10165
10165
 
@@ -10200,7 +10200,7 @@ function private_safeAlpha(color, value, warning) {
10200
10200
  * @param {number} coefficient - multiplier in the range 0 - 1
10201
10201
  * @returns {string} A CSS color string. Hex input values are returned as rgb
10202
10202
  */
10203
- function darken(color, coefficient) {
10203
+ function darken$1(color, coefficient) {
10204
10204
  color = decomposeColor$1(color);
10205
10205
  coefficient = clampWrapper$1(coefficient);
10206
10206
  if (color.type.indexOf('hsl') !== -1) {
@@ -10214,7 +10214,7 @@ function darken(color, coefficient) {
10214
10214
  }
10215
10215
  function private_safeDarken(color, coefficient, warning) {
10216
10216
  try {
10217
- return darken(color, coefficient);
10217
+ return darken$1(color, coefficient);
10218
10218
  } catch (error) {
10219
10219
  if (warning && process.env.NODE_ENV !== 'production') {
10220
10220
  console.warn(warning);
@@ -10229,7 +10229,7 @@ function private_safeDarken(color, coefficient, warning) {
10229
10229
  * @param {number} coefficient - multiplier in the range 0 - 1
10230
10230
  * @returns {string} A CSS color string. Hex input values are returned as rgb
10231
10231
  */
10232
- function lighten(color, coefficient) {
10232
+ function lighten$1(color, coefficient) {
10233
10233
  color = decomposeColor$1(color);
10234
10234
  coefficient = clampWrapper$1(coefficient);
10235
10235
  if (color.type.indexOf('hsl') !== -1) {
@@ -10247,7 +10247,7 @@ function lighten(color, coefficient) {
10247
10247
  }
10248
10248
  function private_safeLighten(color, coefficient, warning) {
10249
10249
  try {
10250
- return lighten(color, coefficient);
10250
+ return lighten$1(color, coefficient);
10251
10251
  } catch (error) {
10252
10252
  if (warning && process.env.NODE_ENV !== 'production') {
10253
10253
  console.warn(warning);
@@ -10263,12 +10263,12 @@ function private_safeLighten(color, coefficient, warning) {
10263
10263
  * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
10264
10264
  * @returns {string} A CSS color string. Hex input values are returned as rgb
10265
10265
  */
10266
- function emphasize(color, coefficient = 0.15) {
10267
- return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
10266
+ function emphasize$1(color, coefficient = 0.15) {
10267
+ return getLuminance$1(color) > 0.5 ? darken$1(color, coefficient) : lighten$1(color, coefficient);
10268
10268
  }
10269
10269
  function private_safeEmphasize(color, coefficient, warning) {
10270
10270
  try {
10271
- return emphasize(color, coefficient);
10271
+ return emphasize$1(color, coefficient);
10272
10272
  } catch (error) {
10273
10273
  if (warning && process.env.NODE_ENV !== 'production') {
10274
10274
  console.warn(warning);
@@ -10420,7 +10420,7 @@ const green = {
10420
10420
  A700: '#00c853'
10421
10421
  };
10422
10422
 
10423
- const _excluded$1i = ["mode", "contrastThreshold", "tonalOffset"];
10423
+ const _excluded$1o = ["mode", "contrastThreshold", "tonalOffset"];
10424
10424
  const light = {
10425
10425
  // The colors used to style the text.
10426
10426
  text: {
@@ -10589,7 +10589,7 @@ function createPalette(palette) {
10589
10589
  contrastThreshold = 3,
10590
10590
  tonalOffset = 0.2
10591
10591
  } = palette,
10592
- other = _objectWithoutPropertiesLoose(palette, _excluded$1i);
10592
+ other = _objectWithoutPropertiesLoose(palette, _excluded$1o);
10593
10593
  const primary = palette.primary || getDefaultPrimary(mode);
10594
10594
  const secondary = palette.secondary || getDefaultSecondary(mode);
10595
10595
  const error = palette.error || getDefaultError(mode);
@@ -10713,7 +10713,7 @@ const theme2 = createTheme({ palette: {
10713
10713
  return paletteOutput;
10714
10714
  }
10715
10715
 
10716
- const _excluded$1h = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
10716
+ const _excluded$1n = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
10717
10717
  function round$2(value) {
10718
10718
  return Math.round(value * 1e5) / 1e5;
10719
10719
  }
@@ -10744,7 +10744,7 @@ function createTypography(palette, typography) {
10744
10744
  allVariants,
10745
10745
  pxToRem: pxToRem2
10746
10746
  } = _ref,
10747
- other = _objectWithoutPropertiesLoose(_ref, _excluded$1h);
10747
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
10748
10748
  if (process.env.NODE_ENV !== 'production') {
10749
10749
  if (typeof fontSize !== 'number') {
10750
10750
  console.error('MUI: `fontSize` is required to be a number.');
@@ -10811,7 +10811,7 @@ function createShadow(...px) {
10811
10811
  // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss
10812
10812
  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)];
10813
10813
 
10814
- const _excluded$1g = ["duration", "easing", "delay"];
10814
+ const _excluded$1m = ["duration", "easing", "delay"];
10815
10815
  // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
10816
10816
  // to learn the context in which each easing should be used.
10817
10817
  const easing = {
@@ -10862,7 +10862,7 @@ function createTransitions(inputTransitions) {
10862
10862
  easing: easingOption = mergedEasing.easeInOut,
10863
10863
  delay = 0
10864
10864
  } = options,
10865
- other = _objectWithoutPropertiesLoose(options, _excluded$1g);
10865
+ other = _objectWithoutPropertiesLoose(options, _excluded$1m);
10866
10866
  if (process.env.NODE_ENV !== 'production') {
10867
10867
  const isString = value => typeof value === 'string';
10868
10868
  // IE11 support, replace with Number.isNaN
@@ -10911,7 +10911,7 @@ const zIndex = {
10911
10911
  tooltip: 1500
10912
10912
  };
10913
10913
 
10914
- const _excluded$1f = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
10914
+ const _excluded$1l = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
10915
10915
  function createTheme(options = {}, ...args) {
10916
10916
  const {
10917
10917
  mixins: mixinsInput = {},
@@ -10919,7 +10919,7 @@ function createTheme(options = {}, ...args) {
10919
10919
  transitions: transitionsInput = {},
10920
10920
  typography: typographyInput = {}
10921
10921
  } = options,
10922
- other = _objectWithoutPropertiesLoose(options, _excluded$1f);
10922
+ other = _objectWithoutPropertiesLoose(options, _excluded$1l);
10923
10923
  if (options.vars) {
10924
10924
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
10925
10925
  Please use another name.` : formatMuiErrorMessage$1(18));
@@ -10976,8 +10976,18 @@ Please use another name.` : formatMuiErrorMessage$1(18));
10976
10976
  };
10977
10977
  return muiTheme;
10978
10978
  }
10979
+ let warnedOnce$1 = false;
10980
+ function createMuiTheme(...args) {
10981
+ if (process.env.NODE_ENV !== 'production') {
10982
+ if (!warnedOnce$1) {
10983
+ warnedOnce$1 = true;
10984
+ console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', "You should use `import { createTheme } from '@mui/material/styles'`"].join('\n'));
10985
+ }
10986
+ }
10987
+ return createTheme(...args);
10988
+ }
10979
10989
 
10980
- const defaultTheme$2 = createTheme();
10990
+ const defaultTheme$3 = createTheme();
10981
10991
 
10982
10992
  var THEME_ID = '$$material';
10983
10993
 
@@ -10990,7 +11000,7 @@ const rootShouldForwardProp = prop => slotShouldForwardProp(prop) && prop !== 'c
10990
11000
 
10991
11001
  const styled$1 = _default({
10992
11002
  themeId: THEME_ID,
10993
- defaultTheme: defaultTheme$2,
11003
+ defaultTheme: defaultTheme$3,
10994
11004
  rootShouldForwardProp
10995
11005
  });
10996
11006
 
@@ -11078,7 +11088,7 @@ function useThemeProps$1({
11078
11088
  return useThemeProps$2({
11079
11089
  props,
11080
11090
  name,
11081
- defaultTheme: defaultTheme$2,
11091
+ defaultTheme: defaultTheme$3,
11082
11092
  themeId: THEME_ID
11083
11093
  });
11084
11094
  }
@@ -11865,7 +11875,7 @@ function mergeSlotProps(parameters) {
11865
11875
  };
11866
11876
  }
11867
11877
 
11868
- const _excluded$1e = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
11878
+ const _excluded$1k = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
11869
11879
  /**
11870
11880
  * @ignore - do not document.
11871
11881
  * Builds the props to be passed into the slot of an unstyled component.
@@ -11882,7 +11892,7 @@ function useSlotProps(parameters) {
11882
11892
  ownerState,
11883
11893
  skipResolvingSlotProps = false
11884
11894
  } = parameters,
11885
- rest = _objectWithoutPropertiesLoose(parameters, _excluded$1e);
11895
+ rest = _objectWithoutPropertiesLoose(parameters, _excluded$1k);
11886
11896
  const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);
11887
11897
  const {
11888
11898
  props: mergedProps,
@@ -14701,8 +14711,8 @@ function getPopperUtilityClass(slot) {
14701
14711
  }
14702
14712
  generateUtilityClasses(COMPONENT_NAME, ['root']);
14703
14713
 
14704
- const _excluded$1d = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
14705
- _excluded2$c = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
14714
+ const _excluded$1j = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
14715
+ _excluded2$e = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
14706
14716
  function flipPlacement(placement, direction) {
14707
14717
  if (direction === 'ltr') {
14708
14718
  return placement;
@@ -14754,7 +14764,7 @@ const PopperTooltip = /*#__PURE__*/React$1.forwardRef(function PopperTooltip(pro
14754
14764
  // @ts-ignore internal logic
14755
14765
  // prevent from spreading to DOM, it can come from the parent component e.g. Select.
14756
14766
  } = props,
14757
- other = _objectWithoutPropertiesLoose(props, _excluded$1d);
14767
+ other = _objectWithoutPropertiesLoose(props, _excluded$1j);
14758
14768
  const tooltipRef = React$1.useRef(null);
14759
14769
  const ownRef = useForkRef(tooltipRef, forwardedRef);
14760
14770
  const popperRef = React$1.useRef(null);
@@ -14886,7 +14896,7 @@ const Popper$1 = /*#__PURE__*/React$1.forwardRef(function Popper(props, forwarde
14886
14896
  slotProps = {},
14887
14897
  slots = {}
14888
14898
  } = props,
14889
- other = _objectWithoutPropertiesLoose(props, _excluded2$c);
14899
+ other = _objectWithoutPropertiesLoose(props, _excluded2$e);
14890
14900
  const [exited, setExited] = React$1.useState(true);
14891
14901
  const handleEnter = () => {
14892
14902
  setExited(false);
@@ -15065,7 +15075,7 @@ process.env.NODE_ENV !== "production" ? Popper$1.propTypes /* remove-proptypes *
15065
15075
  transition: PropTypes.bool
15066
15076
  } : void 0;
15067
15077
 
15068
- const _excluded$1c = ["onChange", "maxRows", "minRows", "style", "value"];
15078
+ const _excluded$1i = ["onChange", "maxRows", "minRows", "style", "value"];
15069
15079
  function getStyleValue(value) {
15070
15080
  return parseInt(value, 10) || 0;
15071
15081
  }
@@ -15107,7 +15117,7 @@ const TextareaAutosize = /*#__PURE__*/React$1.forwardRef(function TextareaAutosi
15107
15117
  style,
15108
15118
  value
15109
15119
  } = props,
15110
- other = _objectWithoutPropertiesLoose(props, _excluded$1c);
15120
+ other = _objectWithoutPropertiesLoose(props, _excluded$1i);
15111
15121
  const {
15112
15122
  current: isControlled
15113
15123
  } = React$1.useRef(value != null);
@@ -16321,7 +16331,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$1.propTypes /* remove-propt
16321
16331
  themeId: PropTypes.string
16322
16332
  } : void 0;
16323
16333
 
16324
- const _excluded$1b = ["className", "component"];
16334
+ const _excluded$1h = ["className", "component"];
16325
16335
  function createBox(options = {}) {
16326
16336
  const {
16327
16337
  themeId,
@@ -16339,7 +16349,7 @@ function createBox(options = {}) {
16339
16349
  className,
16340
16350
  component = 'div'
16341
16351
  } = _extendSxProp,
16342
- other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$1b);
16352
+ other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$1h);
16343
16353
  return /*#__PURE__*/jsxRuntimeExports.jsx(BoxRoot, _extends$1({
16344
16354
  as: component,
16345
16355
  ref: ref,
@@ -16350,8 +16360,8 @@ function createBox(options = {}) {
16350
16360
  return Box;
16351
16361
  }
16352
16362
 
16353
- const _excluded$1a = ["ownerState"],
16354
- _excluded2$b = ["variants"],
16363
+ const _excluded$1g = ["ownerState"],
16364
+ _excluded2$d = ["variants"],
16355
16365
  _excluded3$5 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
16356
16366
  function isEmpty$2(obj) {
16357
16367
  return Object.keys(obj).length === 0;
@@ -16394,7 +16404,7 @@ function processStyleArg(callableStyle, _ref) {
16394
16404
  let {
16395
16405
  ownerState
16396
16406
  } = _ref,
16397
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
16407
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
16398
16408
  const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends$1({
16399
16409
  ownerState
16400
16410
  }, props)) : callableStyle;
@@ -16407,7 +16417,7 @@ function processStyleArg(callableStyle, _ref) {
16407
16417
  const {
16408
16418
  variants = []
16409
16419
  } = resolvedStylesArg,
16410
- otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2$b);
16420
+ otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2$d);
16411
16421
  let result = otherStyles;
16412
16422
  variants.forEach(variant => {
16413
16423
  let isMatch = true;
@@ -16736,6 +16746,10 @@ function hexToRgb(color) {
16736
16746
  return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
16737
16747
  }).join(', ')})` : '';
16738
16748
  }
16749
+ function intToHex(int) {
16750
+ const hex = int.toString(16);
16751
+ return hex.length === 1 ? `0${hex}` : hex;
16752
+ }
16739
16753
 
16740
16754
  /**
16741
16755
  * Returns an object with the type and values of a color.
@@ -16811,6 +16825,84 @@ function recomposeColor(color) {
16811
16825
  return `${type}(${values})`;
16812
16826
  }
16813
16827
 
16828
+ /**
16829
+ * Converts a color from CSS rgb format to CSS hex format.
16830
+ * @param {string} color - RGB color, i.e. rgb(n, n, n)
16831
+ * @returns {string} A CSS rgb color string, i.e. #nnnnnn
16832
+ */
16833
+ function rgbToHex(color) {
16834
+ // Idempotent
16835
+ if (color.indexOf('#') === 0) {
16836
+ return color;
16837
+ }
16838
+ const {
16839
+ values
16840
+ } = decomposeColor(color);
16841
+ return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;
16842
+ }
16843
+
16844
+ /**
16845
+ * Converts a color from hsl format to rgb format.
16846
+ * @param {string} color - HSL color values
16847
+ * @returns {string} rgb color values
16848
+ */
16849
+ function hslToRgb(color) {
16850
+ color = decomposeColor(color);
16851
+ const {
16852
+ values
16853
+ } = color;
16854
+ const h = values[0];
16855
+ const s = values[1] / 100;
16856
+ const l = values[2] / 100;
16857
+ const a = s * Math.min(l, 1 - l);
16858
+ const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
16859
+ let type = 'rgb';
16860
+ const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
16861
+ if (color.type === 'hsla') {
16862
+ type += 'a';
16863
+ rgb.push(values[3]);
16864
+ }
16865
+ return recomposeColor({
16866
+ type,
16867
+ values: rgb
16868
+ });
16869
+ }
16870
+ /**
16871
+ * The relative brightness of any point in a color space,
16872
+ * normalized to 0 for darkest black and 1 for lightest white.
16873
+ *
16874
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
16875
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
16876
+ * @returns {number} The relative brightness of the color in the range 0 - 1
16877
+ */
16878
+ function getLuminance(color) {
16879
+ color = decomposeColor(color);
16880
+ let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;
16881
+ rgb = rgb.map(val => {
16882
+ if (color.type !== 'color') {
16883
+ val /= 255; // normalized
16884
+ }
16885
+ return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;
16886
+ });
16887
+
16888
+ // Truncate at 3 digits
16889
+ return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
16890
+ }
16891
+
16892
+ /**
16893
+ * Calculates the contrast ratio between two colors.
16894
+ *
16895
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
16896
+ * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
16897
+ * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
16898
+ * @returns {number} A contrast ratio value in the range 0 - 21.
16899
+ */
16900
+ function getContrastRatio(foreground, background) {
16901
+ const lumA = getLuminance(foreground);
16902
+ const lumB = getLuminance(background);
16903
+ return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
16904
+ }
16905
+
16814
16906
  /**
16815
16907
  * Sets the absolute transparency of a color.
16816
16908
  * Any existing alpha values are overwritten.
@@ -16832,6 +16924,59 @@ function alpha(color, value) {
16832
16924
  return recomposeColor(color);
16833
16925
  }
16834
16926
 
16927
+ /**
16928
+ * Darkens a color.
16929
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
16930
+ * @param {number} coefficient - multiplier in the range 0 - 1
16931
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
16932
+ */
16933
+ function darken(color, coefficient) {
16934
+ color = decomposeColor(color);
16935
+ coefficient = clampWrapper(coefficient);
16936
+ if (color.type.indexOf('hsl') !== -1) {
16937
+ color.values[2] *= 1 - coefficient;
16938
+ } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {
16939
+ for (let i = 0; i < 3; i += 1) {
16940
+ color.values[i] *= 1 - coefficient;
16941
+ }
16942
+ }
16943
+ return recomposeColor(color);
16944
+ }
16945
+
16946
+ /**
16947
+ * Lightens a color.
16948
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
16949
+ * @param {number} coefficient - multiplier in the range 0 - 1
16950
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
16951
+ */
16952
+ function lighten(color, coefficient) {
16953
+ color = decomposeColor(color);
16954
+ coefficient = clampWrapper(coefficient);
16955
+ if (color.type.indexOf('hsl') !== -1) {
16956
+ color.values[2] += (100 - color.values[2]) * coefficient;
16957
+ } else if (color.type.indexOf('rgb') !== -1) {
16958
+ for (let i = 0; i < 3; i += 1) {
16959
+ color.values[i] += (255 - color.values[i]) * coefficient;
16960
+ }
16961
+ } else if (color.type.indexOf('color') !== -1) {
16962
+ for (let i = 0; i < 3; i += 1) {
16963
+ color.values[i] += (1 - color.values[i]) * coefficient;
16964
+ }
16965
+ }
16966
+ return recomposeColor(color);
16967
+ }
16968
+
16969
+ /**
16970
+ * Darken or lighten a color, depending on its luminance.
16971
+ * Light colors are darkened, dark colors are lightened.
16972
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
16973
+ * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
16974
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
16975
+ */
16976
+ function emphasize(color, coefficient = 0.15) {
16977
+ return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
16978
+ }
16979
+
16835
16980
  const ThemeContext = /*#__PURE__*/React$1.createContext(null);
16836
16981
  if (process.env.NODE_ENV !== 'production') {
16837
16982
  ThemeContext.displayName = 'ThemeContext';
@@ -16849,8 +16994,73 @@ function useTheme$3() {
16849
16994
  const hasSymbol = typeof Symbol === 'function' && Symbol.for;
16850
16995
  var nested = hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';
16851
16996
 
16997
+ function mergeOuterLocalTheme(outerTheme, localTheme) {
16998
+ if (typeof localTheme === 'function') {
16999
+ const mergedTheme = localTheme(outerTheme);
17000
+ if (process.env.NODE_ENV !== 'production') {
17001
+ if (!mergedTheme) {
17002
+ console.error(['MUI: You should return an object from your theme function, i.e.', '<ThemeProvider theme={() => ({})} />'].join('\n'));
17003
+ }
17004
+ }
17005
+ return mergedTheme;
17006
+ }
17007
+ return _extends$1({}, outerTheme, localTheme);
17008
+ }
17009
+
17010
+ /**
17011
+ * This component takes a `theme` prop.
17012
+ * It makes the `theme` available down the React tree thanks to React context.
17013
+ * This component should preferably be used at **the root of your component tree**.
17014
+ */
17015
+ function ThemeProvider$2(props) {
17016
+ const {
17017
+ children,
17018
+ theme: localTheme
17019
+ } = props;
17020
+ const outerTheme = useTheme$3();
17021
+ if (process.env.NODE_ENV !== 'production') {
17022
+ if (outerTheme === null && typeof localTheme === 'function') {
17023
+ 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'));
17024
+ }
17025
+ }
17026
+ const theme = React$1.useMemo(() => {
17027
+ const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
17028
+ if (output != null) {
17029
+ output[nested] = outerTheme !== null;
17030
+ }
17031
+ return output;
17032
+ }, [localTheme, outerTheme]);
17033
+ return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeContext.Provider, {
17034
+ value: theme,
17035
+ children: children
17036
+ });
17037
+ }
17038
+ process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = {
17039
+ /**
17040
+ * Your component tree.
17041
+ */
17042
+ children: PropTypes.node,
17043
+ /**
17044
+ * A theme object. You can provide a function to extend the outer theme.
17045
+ */
17046
+ theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
17047
+ } : void 0;
17048
+ if (process.env.NODE_ENV !== 'production') {
17049
+ process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = exactProp(ThemeProvider$2.propTypes) : void 0;
17050
+ }
17051
+
17052
+ const _excluded$1f = ["value"];
16852
17053
  const RtlContext = /*#__PURE__*/React$1.createContext();
16853
- process.env.NODE_ENV !== "production" ? {
17054
+ function RtlProvider(_ref) {
17055
+ let {
17056
+ value
17057
+ } = _ref,
17058
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1f);
17059
+ return /*#__PURE__*/jsxRuntimeExports.jsx(RtlContext.Provider, _extends$1({
17060
+ value: value != null ? value : true
17061
+ }, props));
17062
+ }
17063
+ process.env.NODE_ENV !== "production" ? RtlProvider.propTypes = {
16854
17064
  children: PropTypes.node,
16855
17065
  value: PropTypes.bool
16856
17066
  } : void 0;
@@ -16859,6 +17069,839 @@ const useRtl = () => {
16859
17069
  return value != null ? value : false;
16860
17070
  };
16861
17071
 
17072
+ const EMPTY_THEME = {};
17073
+ function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
17074
+ return React$1.useMemo(() => {
17075
+ const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;
17076
+ if (typeof localTheme === 'function') {
17077
+ const mergedTheme = localTheme(resolvedTheme);
17078
+ const result = themeId ? _extends$1({}, upperTheme, {
17079
+ [themeId]: mergedTheme
17080
+ }) : mergedTheme;
17081
+ // must return a function for the private theme to NOT merge with the upper theme.
17082
+ // see the test case "use provided theme from a callback" in ThemeProvider.test.js
17083
+ if (isPrivate) {
17084
+ return () => result;
17085
+ }
17086
+ return result;
17087
+ }
17088
+ return themeId ? _extends$1({}, upperTheme, {
17089
+ [themeId]: localTheme
17090
+ }) : _extends$1({}, upperTheme, localTheme);
17091
+ }, [themeId, upperTheme, localTheme, isPrivate]);
17092
+ }
17093
+
17094
+ /**
17095
+ * This component makes the `theme` available down the React tree.
17096
+ * It should preferably be used at **the root of your component tree**.
17097
+ *
17098
+ * <ThemeProvider theme={theme}> // existing use case
17099
+ * <ThemeProvider theme={{ id: theme }}> // theme scoping
17100
+ */
17101
+ function ThemeProvider$1(props) {
17102
+ const {
17103
+ children,
17104
+ theme: localTheme,
17105
+ themeId
17106
+ } = props;
17107
+ const upperTheme = useTheme$5(EMPTY_THEME);
17108
+ const upperPrivateTheme = useTheme$3() || EMPTY_THEME;
17109
+ if (process.env.NODE_ENV !== 'production') {
17110
+ if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {
17111
+ 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'));
17112
+ }
17113
+ }
17114
+ const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);
17115
+ const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);
17116
+ const rtlValue = engineTheme.direction === 'rtl';
17117
+ return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$2, {
17118
+ theme: privateTheme,
17119
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(ThemeContext$1.Provider, {
17120
+ value: engineTheme,
17121
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(RtlProvider, {
17122
+ value: rtlValue,
17123
+ children: children
17124
+ })
17125
+ })
17126
+ });
17127
+ }
17128
+ process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes /* remove-proptypes */ = {
17129
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
17130
+ // │ These PropTypes are generated from the TypeScript type definitions. │
17131
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
17132
+ // └─────────────────────────────────────────────────────────────────────┘
17133
+ /**
17134
+ * Your component tree.
17135
+ */
17136
+ children: PropTypes.node,
17137
+ /**
17138
+ * A theme object. You can provide a function to extend the outer theme.
17139
+ */
17140
+ theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
17141
+ /**
17142
+ * The design system's unique id for getting the corresponded theme when there are multiple design systems.
17143
+ */
17144
+ themeId: PropTypes.string
17145
+ } : void 0;
17146
+ if (process.env.NODE_ENV !== 'production') {
17147
+ process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes = exactProp(ThemeProvider$1.propTypes) : void 0;
17148
+ }
17149
+
17150
+ const DEFAULT_MODE_STORAGE_KEY = 'mode';
17151
+ const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';
17152
+ const DEFAULT_ATTRIBUTE = 'data-color-scheme';
17153
+ function getInitColorSchemeScript$1(options) {
17154
+ const {
17155
+ defaultMode = 'light',
17156
+ defaultLightColorScheme = 'light',
17157
+ defaultDarkColorScheme = 'dark',
17158
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
17159
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
17160
+ attribute = DEFAULT_ATTRIBUTE,
17161
+ colorSchemeNode = 'document.documentElement'
17162
+ } = options || {};
17163
+ return /*#__PURE__*/jsxRuntimeExports.jsx("script", {
17164
+ // eslint-disable-next-line react/no-danger
17165
+ dangerouslySetInnerHTML: {
17166
+ __html: `(function() {
17167
+ try {
17168
+ var mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';
17169
+ var colorScheme = '';
17170
+ if (mode === 'system') {
17171
+ // handle system mode
17172
+ var mql = window.matchMedia('(prefers-color-scheme: dark)');
17173
+ if (mql.matches) {
17174
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
17175
+ } else {
17176
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
17177
+ }
17178
+ }
17179
+ if (mode === 'light') {
17180
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
17181
+ }
17182
+ if (mode === 'dark') {
17183
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
17184
+ }
17185
+ if (colorScheme) {
17186
+ ${colorSchemeNode}.setAttribute('${attribute}', colorScheme);
17187
+ }
17188
+ } catch(e){}})();`
17189
+ }
17190
+ }, "mui-color-scheme-init");
17191
+ }
17192
+
17193
+ function getSystemMode(mode) {
17194
+ if (typeof window !== 'undefined' && mode === 'system') {
17195
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
17196
+ if (mql.matches) {
17197
+ return 'dark';
17198
+ }
17199
+ return 'light';
17200
+ }
17201
+ return undefined;
17202
+ }
17203
+ function processState(state, callback) {
17204
+ if (state.mode === 'light' || state.mode === 'system' && state.systemMode === 'light') {
17205
+ return callback('light');
17206
+ }
17207
+ if (state.mode === 'dark' || state.mode === 'system' && state.systemMode === 'dark') {
17208
+ return callback('dark');
17209
+ }
17210
+ return undefined;
17211
+ }
17212
+ function getColorScheme(state) {
17213
+ return processState(state, mode => {
17214
+ if (mode === 'light') {
17215
+ return state.lightColorScheme;
17216
+ }
17217
+ if (mode === 'dark') {
17218
+ return state.darkColorScheme;
17219
+ }
17220
+ return undefined;
17221
+ });
17222
+ }
17223
+ function initializeValue(key, defaultValue) {
17224
+ if (typeof window === 'undefined') {
17225
+ return undefined;
17226
+ }
17227
+ let value;
17228
+ try {
17229
+ value = localStorage.getItem(key) || undefined;
17230
+ if (!value) {
17231
+ // the first time that user enters the site.
17232
+ localStorage.setItem(key, defaultValue);
17233
+ }
17234
+ } catch (e) {
17235
+ // Unsupported
17236
+ }
17237
+ return value || defaultValue;
17238
+ }
17239
+ function useCurrentColorScheme(options) {
17240
+ const {
17241
+ defaultMode = 'light',
17242
+ defaultLightColorScheme,
17243
+ defaultDarkColorScheme,
17244
+ supportedColorSchemes = [],
17245
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
17246
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
17247
+ storageWindow = typeof window === 'undefined' ? undefined : window
17248
+ } = options;
17249
+ const joinedColorSchemes = supportedColorSchemes.join(',');
17250
+ const [state, setState] = React$1.useState(() => {
17251
+ const initialMode = initializeValue(modeStorageKey, defaultMode);
17252
+ const lightColorScheme = initializeValue(`${colorSchemeStorageKey}-light`, defaultLightColorScheme);
17253
+ const darkColorScheme = initializeValue(`${colorSchemeStorageKey}-dark`, defaultDarkColorScheme);
17254
+ return {
17255
+ mode: initialMode,
17256
+ systemMode: getSystemMode(initialMode),
17257
+ lightColorScheme,
17258
+ darkColorScheme
17259
+ };
17260
+ });
17261
+ const colorScheme = getColorScheme(state);
17262
+ const setMode = React$1.useCallback(mode => {
17263
+ setState(currentState => {
17264
+ if (mode === currentState.mode) {
17265
+ // do nothing if mode does not change
17266
+ return currentState;
17267
+ }
17268
+ const newMode = mode != null ? mode : defaultMode;
17269
+ try {
17270
+ localStorage.setItem(modeStorageKey, newMode);
17271
+ } catch (e) {
17272
+ // Unsupported
17273
+ }
17274
+ return _extends$1({}, currentState, {
17275
+ mode: newMode,
17276
+ systemMode: getSystemMode(newMode)
17277
+ });
17278
+ });
17279
+ }, [modeStorageKey, defaultMode]);
17280
+ const setColorScheme = React$1.useCallback(value => {
17281
+ if (!value) {
17282
+ setState(currentState => {
17283
+ try {
17284
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, defaultLightColorScheme);
17285
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, defaultDarkColorScheme);
17286
+ } catch (e) {
17287
+ // Unsupported
17288
+ }
17289
+ return _extends$1({}, currentState, {
17290
+ lightColorScheme: defaultLightColorScheme,
17291
+ darkColorScheme: defaultDarkColorScheme
17292
+ });
17293
+ });
17294
+ } else if (typeof value === 'string') {
17295
+ if (value && !joinedColorSchemes.includes(value)) {
17296
+ console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
17297
+ } else {
17298
+ setState(currentState => {
17299
+ const newState = _extends$1({}, currentState);
17300
+ processState(currentState, mode => {
17301
+ try {
17302
+ localStorage.setItem(`${colorSchemeStorageKey}-${mode}`, value);
17303
+ } catch (e) {
17304
+ // Unsupported
17305
+ }
17306
+ if (mode === 'light') {
17307
+ newState.lightColorScheme = value;
17308
+ }
17309
+ if (mode === 'dark') {
17310
+ newState.darkColorScheme = value;
17311
+ }
17312
+ });
17313
+ return newState;
17314
+ });
17315
+ }
17316
+ } else {
17317
+ setState(currentState => {
17318
+ const newState = _extends$1({}, currentState);
17319
+ const newLightColorScheme = value.light === null ? defaultLightColorScheme : value.light;
17320
+ const newDarkColorScheme = value.dark === null ? defaultDarkColorScheme : value.dark;
17321
+ if (newLightColorScheme) {
17322
+ if (!joinedColorSchemes.includes(newLightColorScheme)) {
17323
+ console.error(`\`${newLightColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
17324
+ } else {
17325
+ newState.lightColorScheme = newLightColorScheme;
17326
+ try {
17327
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, newLightColorScheme);
17328
+ } catch (error) {
17329
+ // Unsupported
17330
+ }
17331
+ }
17332
+ }
17333
+ if (newDarkColorScheme) {
17334
+ if (!joinedColorSchemes.includes(newDarkColorScheme)) {
17335
+ console.error(`\`${newDarkColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
17336
+ } else {
17337
+ newState.darkColorScheme = newDarkColorScheme;
17338
+ try {
17339
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, newDarkColorScheme);
17340
+ } catch (error) {
17341
+ // Unsupported
17342
+ }
17343
+ }
17344
+ }
17345
+ return newState;
17346
+ });
17347
+ }
17348
+ }, [joinedColorSchemes, colorSchemeStorageKey, defaultLightColorScheme, defaultDarkColorScheme]);
17349
+ const handleMediaQuery = React$1.useCallback(event => {
17350
+ if (state.mode === 'system') {
17351
+ setState(currentState => {
17352
+ const systemMode = event != null && event.matches ? 'dark' : 'light';
17353
+
17354
+ // Early exit, nothing changed.
17355
+ if (currentState.systemMode === systemMode) {
17356
+ return currentState;
17357
+ }
17358
+ return _extends$1({}, currentState, {
17359
+ systemMode
17360
+ });
17361
+ });
17362
+ }
17363
+ }, [state.mode]);
17364
+
17365
+ // Ref hack to avoid adding handleMediaQuery as a dep
17366
+ const mediaListener = React$1.useRef(handleMediaQuery);
17367
+ mediaListener.current = handleMediaQuery;
17368
+ React$1.useEffect(() => {
17369
+ const handler = (...args) => mediaListener.current(...args);
17370
+
17371
+ // Always listen to System preference
17372
+ const media = window.matchMedia('(prefers-color-scheme: dark)');
17373
+
17374
+ // Intentionally use deprecated listener methods to support iOS & old browsers
17375
+ media.addListener(handler);
17376
+ handler(media);
17377
+ return () => {
17378
+ media.removeListener(handler);
17379
+ };
17380
+ }, []);
17381
+
17382
+ // Handle when localStorage has changed
17383
+ React$1.useEffect(() => {
17384
+ if (storageWindow) {
17385
+ const handleStorage = event => {
17386
+ const value = event.newValue;
17387
+ if (typeof event.key === 'string' && event.key.startsWith(colorSchemeStorageKey) && (!value || joinedColorSchemes.match(value))) {
17388
+ // If the key is deleted, value will be null then reset color scheme to the default one.
17389
+ if (event.key.endsWith('light')) {
17390
+ setColorScheme({
17391
+ light: value
17392
+ });
17393
+ }
17394
+ if (event.key.endsWith('dark')) {
17395
+ setColorScheme({
17396
+ dark: value
17397
+ });
17398
+ }
17399
+ }
17400
+ if (event.key === modeStorageKey && (!value || ['light', 'dark', 'system'].includes(value))) {
17401
+ setMode(value || defaultMode);
17402
+ }
17403
+ };
17404
+ // For syncing color-scheme changes between iframes
17405
+ storageWindow.addEventListener('storage', handleStorage);
17406
+ return () => {
17407
+ storageWindow.removeEventListener('storage', handleStorage);
17408
+ };
17409
+ }
17410
+ return undefined;
17411
+ }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode, storageWindow]);
17412
+ return _extends$1({}, state, {
17413
+ colorScheme,
17414
+ setMode,
17415
+ setColorScheme
17416
+ });
17417
+ }
17418
+
17419
+ const _excluded$1e = ["colorSchemes", "components", "generateCssVars", "cssVarPrefix"];
17420
+ const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
17421
+ function createCssVarsProvider(options) {
17422
+ const {
17423
+ themeId,
17424
+ /**
17425
+ * This `theme` object needs to follow a certain structure to
17426
+ * be used correctly by the finel `CssVarsProvider`. It should have a
17427
+ * `colorSchemes` key with the light and dark (and any other) palette.
17428
+ * It should also ideally have a vars object created using `prepareCssVars`.
17429
+ */
17430
+ theme: defaultTheme = {},
17431
+ attribute: defaultAttribute = DEFAULT_ATTRIBUTE,
17432
+ modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,
17433
+ colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
17434
+ defaultMode: designSystemMode = 'light',
17435
+ defaultColorScheme: designSystemColorScheme,
17436
+ disableTransitionOnChange: designSystemTransitionOnChange = false,
17437
+ resolveTheme,
17438
+ excludeVariablesFromRoot
17439
+ } = options;
17440
+ 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]) {
17441
+ console.error(`MUI: \`${designSystemColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
17442
+ }
17443
+ const ColorSchemeContext = /*#__PURE__*/React$1.createContext(undefined);
17444
+ if (process.env.NODE_ENV !== 'production') {
17445
+ ColorSchemeContext.displayName = 'ColorSchemeContext';
17446
+ }
17447
+ const useColorScheme = () => {
17448
+ const value = React$1.useContext(ColorSchemeContext);
17449
+ if (!value) {
17450
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`useColorScheme\` must be called under <CssVarsProvider />` : formatMuiErrorMessage$1(19));
17451
+ }
17452
+ return value;
17453
+ };
17454
+ function CssVarsProvider(props) {
17455
+ const {
17456
+ children,
17457
+ theme: themeProp = defaultTheme,
17458
+ modeStorageKey = defaultModeStorageKey,
17459
+ colorSchemeStorageKey = defaultColorSchemeStorageKey,
17460
+ attribute = defaultAttribute,
17461
+ defaultMode = designSystemMode,
17462
+ defaultColorScheme = designSystemColorScheme,
17463
+ disableTransitionOnChange = designSystemTransitionOnChange,
17464
+ storageWindow = typeof window === 'undefined' ? undefined : window,
17465
+ documentNode = typeof document === 'undefined' ? undefined : document,
17466
+ colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,
17467
+ colorSchemeSelector = ':root',
17468
+ disableNestedContext = false,
17469
+ disableStyleSheetGeneration = false
17470
+ } = props;
17471
+ const hasMounted = React$1.useRef(false);
17472
+ const upperTheme = useTheme$3();
17473
+ const ctx = React$1.useContext(ColorSchemeContext);
17474
+ const nested = !!ctx && !disableNestedContext;
17475
+ const scopedTheme = themeProp[themeId];
17476
+ const _ref = scopedTheme || themeProp,
17477
+ {
17478
+ colorSchemes = {},
17479
+ components = {},
17480
+ generateCssVars = () => ({
17481
+ vars: {},
17482
+ css: {}
17483
+ }),
17484
+ cssVarPrefix
17485
+ } = _ref,
17486
+ restThemeProp = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
17487
+ const allColorSchemes = Object.keys(colorSchemes);
17488
+ const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
17489
+ const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
17490
+
17491
+ // 1. Get the data about the `mode`, `colorScheme`, and setter functions.
17492
+ const {
17493
+ mode: stateMode,
17494
+ setMode,
17495
+ systemMode,
17496
+ lightColorScheme,
17497
+ darkColorScheme,
17498
+ colorScheme: stateColorScheme,
17499
+ setColorScheme
17500
+ } = useCurrentColorScheme({
17501
+ supportedColorSchemes: allColorSchemes,
17502
+ defaultLightColorScheme,
17503
+ defaultDarkColorScheme,
17504
+ modeStorageKey,
17505
+ colorSchemeStorageKey,
17506
+ defaultMode,
17507
+ storageWindow
17508
+ });
17509
+ let mode = stateMode;
17510
+ let colorScheme = stateColorScheme;
17511
+ if (nested) {
17512
+ mode = ctx.mode;
17513
+ colorScheme = ctx.colorScheme;
17514
+ }
17515
+ const calculatedMode = (() => {
17516
+ if (mode) {
17517
+ return mode;
17518
+ }
17519
+ // This scope occurs on the server
17520
+ if (defaultMode === 'system') {
17521
+ return designSystemMode;
17522
+ }
17523
+ return defaultMode;
17524
+ })();
17525
+ const calculatedColorScheme = (() => {
17526
+ if (!colorScheme) {
17527
+ // This scope occurs on the server
17528
+ if (calculatedMode === 'dark') {
17529
+ return defaultDarkColorScheme;
17530
+ }
17531
+ // use light color scheme, if default mode is 'light' | 'system'
17532
+ return defaultLightColorScheme;
17533
+ }
17534
+ return colorScheme;
17535
+ })();
17536
+
17537
+ // 2. Create CSS variables and store them in objects (to be generated in stylesheets in the final step)
17538
+ const {
17539
+ css: rootCss,
17540
+ vars: rootVars
17541
+ } = generateCssVars();
17542
+
17543
+ // 3. Start composing the theme object
17544
+ const theme = _extends$1({}, restThemeProp, {
17545
+ components,
17546
+ colorSchemes,
17547
+ cssVarPrefix,
17548
+ vars: rootVars,
17549
+ getColorSchemeSelector: targetColorScheme => `[${attribute}="${targetColorScheme}"] &`
17550
+ });
17551
+
17552
+ // 4. Create color CSS variables and store them in objects (to be generated in stylesheets in the final step)
17553
+ // The default color scheme stylesheet is constructed to have the least CSS specificity.
17554
+ // 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.
17555
+ const defaultColorSchemeStyleSheet = {};
17556
+ const otherColorSchemesStyleSheet = {};
17557
+ Object.entries(colorSchemes).forEach(([key, scheme]) => {
17558
+ const {
17559
+ css,
17560
+ vars
17561
+ } = generateCssVars(key);
17562
+ theme.vars = deepmerge$1(theme.vars, vars);
17563
+ if (key === calculatedColorScheme) {
17564
+ // 4.1 Merge the selected color scheme to the theme
17565
+ Object.keys(scheme).forEach(schemeKey => {
17566
+ if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {
17567
+ // shallow merge the 1st level structure of the theme.
17568
+ theme[schemeKey] = _extends$1({}, theme[schemeKey], scheme[schemeKey]);
17569
+ } else {
17570
+ theme[schemeKey] = scheme[schemeKey];
17571
+ }
17572
+ });
17573
+ if (theme.palette) {
17574
+ theme.palette.colorScheme = key;
17575
+ }
17576
+ }
17577
+ const resolvedDefaultColorScheme = (() => {
17578
+ if (typeof defaultColorScheme === 'string') {
17579
+ return defaultColorScheme;
17580
+ }
17581
+ if (defaultMode === 'dark') {
17582
+ return defaultColorScheme.dark;
17583
+ }
17584
+ return defaultColorScheme.light;
17585
+ })();
17586
+ if (key === resolvedDefaultColorScheme) {
17587
+ if (excludeVariablesFromRoot) {
17588
+ const excludedVariables = {};
17589
+ excludeVariablesFromRoot(cssVarPrefix).forEach(cssVar => {
17590
+ excludedVariables[cssVar] = css[cssVar];
17591
+ delete css[cssVar];
17592
+ });
17593
+ defaultColorSchemeStyleSheet[`[${attribute}="${key}"]`] = excludedVariables;
17594
+ }
17595
+ defaultColorSchemeStyleSheet[`${colorSchemeSelector}, [${attribute}="${key}"]`] = css;
17596
+ } else {
17597
+ otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
17598
+ }
17599
+ });
17600
+ theme.vars = deepmerge$1(theme.vars, rootVars);
17601
+
17602
+ // 5. Declaring effects
17603
+ // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
17604
+ React$1.useEffect(() => {
17605
+ if (colorScheme && colorSchemeNode) {
17606
+ // attaches attribute to <html> because the css variables are attached to :root (html)
17607
+ colorSchemeNode.setAttribute(attribute, colorScheme);
17608
+ }
17609
+ }, [colorScheme, attribute, colorSchemeNode]);
17610
+
17611
+ // 5.2 Remove the CSS transition when color scheme changes to create instant experience.
17612
+ // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313
17613
+ React$1.useEffect(() => {
17614
+ let timer;
17615
+ if (disableTransitionOnChange && hasMounted.current && documentNode) {
17616
+ const css = documentNode.createElement('style');
17617
+ css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));
17618
+ documentNode.head.appendChild(css);
17619
+
17620
+ // Force browser repaint
17621
+ (() => window.getComputedStyle(documentNode.body))();
17622
+ timer = setTimeout(() => {
17623
+ documentNode.head.removeChild(css);
17624
+ }, 1);
17625
+ }
17626
+ return () => {
17627
+ clearTimeout(timer);
17628
+ };
17629
+ }, [colorScheme, disableTransitionOnChange, documentNode]);
17630
+ React$1.useEffect(() => {
17631
+ hasMounted.current = true;
17632
+ return () => {
17633
+ hasMounted.current = false;
17634
+ };
17635
+ }, []);
17636
+ const contextValue = React$1.useMemo(() => ({
17637
+ allColorSchemes,
17638
+ colorScheme,
17639
+ darkColorScheme,
17640
+ lightColorScheme,
17641
+ mode,
17642
+ setColorScheme,
17643
+ setMode,
17644
+ systemMode
17645
+ }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode]);
17646
+ let shouldGenerateStyleSheet = true;
17647
+ if (disableStyleSheetGeneration || nested && (upperTheme == null ? void 0 : upperTheme.cssVarPrefix) === cssVarPrefix) {
17648
+ shouldGenerateStyleSheet = false;
17649
+ }
17650
+ const element = /*#__PURE__*/jsxRuntimeExports.jsxs(React$1.Fragment, {
17651
+ children: [shouldGenerateStyleSheet && /*#__PURE__*/jsxRuntimeExports.jsxs(React$1.Fragment, {
17652
+ children: [/*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$2, {
17653
+ styles: {
17654
+ [colorSchemeSelector]: rootCss
17655
+ }
17656
+ }), /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$2, {
17657
+ styles: defaultColorSchemeStyleSheet
17658
+ }), /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$2, {
17659
+ styles: otherColorSchemesStyleSheet
17660
+ })]
17661
+ }), /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$1, {
17662
+ themeId: scopedTheme ? themeId : undefined,
17663
+ theme: resolveTheme ? resolveTheme(theme) : theme,
17664
+ children: children
17665
+ })]
17666
+ });
17667
+ if (nested) {
17668
+ return element;
17669
+ }
17670
+ return /*#__PURE__*/jsxRuntimeExports.jsx(ColorSchemeContext.Provider, {
17671
+ value: contextValue,
17672
+ children: element
17673
+ });
17674
+ }
17675
+ process.env.NODE_ENV !== "production" ? CssVarsProvider.propTypes = {
17676
+ /**
17677
+ * The body attribute name to attach colorScheme.
17678
+ */
17679
+ attribute: PropTypes.string,
17680
+ /**
17681
+ * The component tree.
17682
+ */
17683
+ children: PropTypes.node,
17684
+ /**
17685
+ * The node used to attach the color-scheme attribute
17686
+ */
17687
+ colorSchemeNode: PropTypes.any,
17688
+ /**
17689
+ * The CSS selector for attaching the generated custom properties
17690
+ */
17691
+ colorSchemeSelector: PropTypes.string,
17692
+ /**
17693
+ * localStorage key used to store `colorScheme`
17694
+ */
17695
+ colorSchemeStorageKey: PropTypes.string,
17696
+ /**
17697
+ * The initial color scheme used.
17698
+ */
17699
+ defaultColorScheme: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
17700
+ /**
17701
+ * The initial mode used.
17702
+ */
17703
+ defaultMode: PropTypes.string,
17704
+ /**
17705
+ * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.
17706
+ */
17707
+ disableNestedContext: PropTypes.bool,
17708
+ /**
17709
+ * If `true`, the style sheet won't be generated.
17710
+ *
17711
+ * This is useful for controlling nested CssVarsProvider behavior.
17712
+ */
17713
+ disableStyleSheetGeneration: PropTypes.bool,
17714
+ /**
17715
+ * Disable CSS transitions when switching between modes or color schemes.
17716
+ */
17717
+ disableTransitionOnChange: PropTypes.bool,
17718
+ /**
17719
+ * The document to attach the attribute to.
17720
+ */
17721
+ documentNode: PropTypes.any,
17722
+ /**
17723
+ * The key in the local storage used to store current color scheme.
17724
+ */
17725
+ modeStorageKey: PropTypes.string,
17726
+ /**
17727
+ * The window that attaches the 'storage' event listener.
17728
+ * @default window
17729
+ */
17730
+ storageWindow: PropTypes.any,
17731
+ /**
17732
+ * The calculated theme object that will be passed through context.
17733
+ */
17734
+ theme: PropTypes.object
17735
+ } : void 0;
17736
+ const defaultLightColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.light;
17737
+ const defaultDarkColorScheme = typeof designSystemColorScheme === 'string' ? designSystemColorScheme : designSystemColorScheme.dark;
17738
+ const getInitColorSchemeScript = params => getInitColorSchemeScript$1(_extends$1({
17739
+ attribute: defaultAttribute,
17740
+ colorSchemeStorageKey: defaultColorSchemeStorageKey,
17741
+ defaultMode: designSystemMode,
17742
+ defaultLightColorScheme,
17743
+ defaultDarkColorScheme,
17744
+ modeStorageKey: defaultModeStorageKey
17745
+ }, params));
17746
+ return {
17747
+ CssVarsProvider,
17748
+ useColorScheme,
17749
+ getInitColorSchemeScript
17750
+ };
17751
+ }
17752
+
17753
+ /**
17754
+ * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
17755
+ * and they does not need to remember the prefix (defined once).
17756
+ */
17757
+ function createGetCssVar$1(prefix = '') {
17758
+ function appendVar(...vars) {
17759
+ if (!vars.length) {
17760
+ return '';
17761
+ }
17762
+ const value = vars[0];
17763
+ 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+)/)) {
17764
+ return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
17765
+ }
17766
+ return `, ${value}`;
17767
+ }
17768
+
17769
+ // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
17770
+ const getCssVar = (field, ...fallbacks) => {
17771
+ return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...fallbacks)})`;
17772
+ };
17773
+ return getCssVar;
17774
+ }
17775
+
17776
+ /**
17777
+ * This function create an object from keys, value and then assign to target
17778
+ *
17779
+ * @param {Object} obj : the target object to be assigned
17780
+ * @param {string[]} keys
17781
+ * @param {string | number} value
17782
+ *
17783
+ * @example
17784
+ * const source = {}
17785
+ * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')
17786
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }
17787
+ *
17788
+ * @example
17789
+ * const source = { palette: { primary: 'var(--palette-primary)' } }
17790
+ * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
17791
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
17792
+ */
17793
+ const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
17794
+ let temp = obj;
17795
+ keys.forEach((k, index) => {
17796
+ if (index === keys.length - 1) {
17797
+ if (Array.isArray(temp)) {
17798
+ temp[Number(k)] = value;
17799
+ } else if (temp && typeof temp === 'object') {
17800
+ temp[k] = value;
17801
+ }
17802
+ } else if (temp && typeof temp === 'object') {
17803
+ if (!temp[k]) {
17804
+ temp[k] = arrayKeys.includes(k) ? [] : {};
17805
+ }
17806
+ temp = temp[k];
17807
+ }
17808
+ });
17809
+ };
17810
+
17811
+ /**
17812
+ *
17813
+ * @param {Object} obj : source object
17814
+ * @param {Function} callback : a function that will be called when
17815
+ * - the deepest key in source object is reached
17816
+ * - the value of the deepest key is NOT `undefined` | `null`
17817
+ *
17818
+ * @example
17819
+ * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)
17820
+ * // ['palette', 'primary', 'main'] '#000000'
17821
+ */
17822
+ const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
17823
+ function recurse(object, parentKeys = [], arrayKeys = []) {
17824
+ Object.entries(object).forEach(([key, value]) => {
17825
+ if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {
17826
+ if (value !== undefined && value !== null) {
17827
+ if (typeof value === 'object' && Object.keys(value).length > 0) {
17828
+ recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);
17829
+ } else {
17830
+ callback([...parentKeys, key], value, arrayKeys);
17831
+ }
17832
+ }
17833
+ }
17834
+ });
17835
+ }
17836
+ recurse(obj);
17837
+ };
17838
+ const getCssValue = (keys, value) => {
17839
+ if (typeof value === 'number') {
17840
+ if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {
17841
+ // CSS property that are unitless
17842
+ return value;
17843
+ }
17844
+ const lastKey = keys[keys.length - 1];
17845
+ if (lastKey.toLowerCase().indexOf('opacity') >= 0) {
17846
+ // opacity values are unitless
17847
+ return value;
17848
+ }
17849
+ return `${value}px`;
17850
+ }
17851
+ return value;
17852
+ };
17853
+
17854
+ /**
17855
+ * a function that parse theme and return { css, vars }
17856
+ *
17857
+ * @param {Object} theme
17858
+ * @param {{
17859
+ * prefix?: string,
17860
+ * shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean
17861
+ * }} options.
17862
+ * `prefix`: The prefix of the generated CSS variables. This function does not change the value.
17863
+ *
17864
+ * @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).
17865
+ *
17866
+ * @example
17867
+ * const { css, vars } = parser({
17868
+ * fontSize: 12,
17869
+ * lineHeight: 1.2,
17870
+ * palette: { primary: { 500: 'var(--color)' } }
17871
+ * }, { prefix: 'foo' })
17872
+ *
17873
+ * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }
17874
+ * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
17875
+ */
17876
+ function cssVarsParser(theme, options) {
17877
+ const {
17878
+ prefix,
17879
+ shouldSkipGeneratingVar
17880
+ } = options || {};
17881
+ const css = {};
17882
+ const vars = {};
17883
+ const varsWithDefaults = {};
17884
+ walkObjectDeep(theme, (keys, value, arrayKeys) => {
17885
+ if (typeof value === 'string' || typeof value === 'number') {
17886
+ if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {
17887
+ // only create css & var if `shouldSkipGeneratingVar` return false
17888
+ const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
17889
+ Object.assign(css, {
17890
+ [cssVar]: getCssValue(keys, value)
17891
+ });
17892
+ assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);
17893
+ assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${value})`, arrayKeys);
17894
+ }
17895
+ }
17896
+ }, keys => keys[0] === 'vars' // skip 'vars/*' paths
17897
+ );
17898
+ return {
17899
+ css,
17900
+ vars,
17901
+ varsWithDefaults
17902
+ };
17903
+ }
17904
+
16862
17905
  function _typeof$1(o) {
16863
17906
  "@babel/helpers - typeof";
16864
17907
 
@@ -16885,8 +17928,76 @@ function toPropertyKey(t) {
16885
17928
  return "symbol" == _typeof$1(i) ? i : i + "";
16886
17929
  }
16887
17930
 
16888
- const _excluded$19 = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
16889
- const defaultTheme$1 = createTheme$2();
17931
+ const _excluded$1d = ["colorSchemes", "components", "defaultColorScheme"];
17932
+ function prepareCssVars(theme, parserConfig) {
17933
+ // @ts-ignore - ignore components do not exist
17934
+ const {
17935
+ colorSchemes = {},
17936
+ defaultColorScheme = 'light'
17937
+ } = theme,
17938
+ otherTheme = _objectWithoutPropertiesLoose(theme, _excluded$1d);
17939
+ const {
17940
+ vars: rootVars,
17941
+ css: rootCss,
17942
+ varsWithDefaults: rootVarsWithDefaults
17943
+ } = cssVarsParser(otherTheme, parserConfig);
17944
+ let themeVars = rootVarsWithDefaults;
17945
+ const colorSchemesMap = {};
17946
+ const {
17947
+ [defaultColorScheme]: light
17948
+ } = colorSchemes,
17949
+ otherColorSchemes = _objectWithoutPropertiesLoose(colorSchemes, [defaultColorScheme].map(toPropertyKey));
17950
+ Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {
17951
+ const {
17952
+ vars,
17953
+ css,
17954
+ varsWithDefaults
17955
+ } = cssVarsParser(scheme, parserConfig);
17956
+ themeVars = deepmerge$1(themeVars, varsWithDefaults);
17957
+ colorSchemesMap[key] = {
17958
+ css,
17959
+ vars
17960
+ };
17961
+ });
17962
+ if (light) {
17963
+ // default color scheme vars should be merged last to set as default
17964
+ const {
17965
+ css,
17966
+ vars,
17967
+ varsWithDefaults
17968
+ } = cssVarsParser(light, parserConfig);
17969
+ themeVars = deepmerge$1(themeVars, varsWithDefaults);
17970
+ colorSchemesMap[defaultColorScheme] = {
17971
+ css,
17972
+ vars
17973
+ };
17974
+ }
17975
+ const generateCssVars = colorScheme => {
17976
+ var _parserConfig$getSele2;
17977
+ if (!colorScheme) {
17978
+ var _parserConfig$getSele;
17979
+ const css = _extends$1({}, rootCss);
17980
+ return {
17981
+ css,
17982
+ vars: rootVars,
17983
+ selector: (parserConfig == null || (_parserConfig$getSele = parserConfig.getSelector) == null ? void 0 : _parserConfig$getSele.call(parserConfig, colorScheme, css)) || ':root'
17984
+ };
17985
+ }
17986
+ const css = _extends$1({}, colorSchemesMap[colorScheme].css);
17987
+ return {
17988
+ css,
17989
+ vars: colorSchemesMap[colorScheme].vars,
17990
+ selector: (parserConfig == null || (_parserConfig$getSele2 = parserConfig.getSelector) == null ? void 0 : _parserConfig$getSele2.call(parserConfig, colorScheme, css)) || ':root'
17991
+ };
17992
+ };
17993
+ return {
17994
+ vars: themeVars,
17995
+ generateCssVars
17996
+ };
17997
+ }
17998
+
17999
+ const _excluded$1c = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
18000
+ const defaultTheme$2 = createTheme$2();
16890
18001
  const defaultCreateStyledComponent = styled('div', {
16891
18002
  name: 'MuiContainer',
16892
18003
  slot: 'Root',
@@ -16900,7 +18011,7 @@ const defaultCreateStyledComponent = styled('div', {
16900
18011
  const useThemePropsDefault = inProps => useThemeProps$2({
16901
18012
  props: inProps,
16902
18013
  name: 'MuiContainer',
16903
- defaultTheme: defaultTheme$1
18014
+ defaultTheme: defaultTheme$2
16904
18015
  });
16905
18016
  const useUtilityClasses$U = (ownerState, componentName) => {
16906
18017
  const getContainerUtilityClass = slot => {
@@ -16981,7 +18092,7 @@ function createContainer(options = {}) {
16981
18092
  fixed = false,
16982
18093
  maxWidth = 'lg'
16983
18094
  } = props,
16984
- other = _objectWithoutPropertiesLoose(props, _excluded$19);
18095
+ other = _objectWithoutPropertiesLoose(props, _excluded$1c);
16985
18096
  const ownerState = _extends$1({}, props, {
16986
18097
  component,
16987
18098
  disableGutters,
@@ -17019,7 +18130,7 @@ function createContainer(options = {}) {
17019
18130
 
17020
18131
  function GlobalStyles(props) {
17021
18132
  return /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$1, _extends$1({}, props, {
17022
- defaultTheme: defaultTheme$2,
18133
+ defaultTheme: defaultTheme$3,
17023
18134
  themeId: THEME_ID
17024
18135
  }));
17025
18136
  }
@@ -17070,7 +18181,7 @@ function getInputBaseUtilityClass(slot) {
17070
18181
  }
17071
18182
  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']);
17072
18183
 
17073
- 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"];
18184
+ 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"];
17074
18185
  const rootOverridesResolver = (props, styles) => {
17075
18186
  const {
17076
18187
  ownerState
@@ -17299,7 +18410,7 @@ const InputBase = /*#__PURE__*/React$1.forwardRef(function InputBase(inProps, re
17299
18410
  type = 'text',
17300
18411
  value: valueProp
17301
18412
  } = props,
17302
- other = _objectWithoutPropertiesLoose(props, _excluded$18);
18413
+ other = _objectWithoutPropertiesLoose(props, _excluded$1b);
17303
18414
  const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
17304
18415
  const {
17305
18416
  current: isControlled
@@ -17760,7 +18871,7 @@ function getInputUtilityClass(slot) {
17760
18871
  }
17761
18872
  const inputClasses = _extends$1({}, inputBaseClasses, generateUtilityClasses$1('MuiInput', ['root', 'underline', 'input']));
17762
18873
 
17763
- const _excluded$17 = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
18874
+ const _excluded$1a = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
17764
18875
  const useUtilityClasses$S = ownerState => {
17765
18876
  const {
17766
18877
  classes,
@@ -17871,7 +18982,7 @@ const Input = /*#__PURE__*/React$1.forwardRef(function Input(inProps, ref) {
17871
18982
  slots = {},
17872
18983
  type = 'text'
17873
18984
  } = props,
17874
- other = _objectWithoutPropertiesLoose(props, _excluded$17);
18985
+ other = _objectWithoutPropertiesLoose(props, _excluded$1a);
17875
18986
  const classes = useUtilityClasses$S(props);
17876
18987
  const ownerState = {
17877
18988
  disableUnderline
@@ -18092,7 +19203,7 @@ function getFilledInputUtilityClass(slot) {
18092
19203
  }
18093
19204
  const filledInputClasses = _extends$1({}, inputBaseClasses, generateUtilityClasses$1('MuiFilledInput', ['root', 'underline', 'input']));
18094
19205
 
18095
- const _excluded$16 = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"];
19206
+ const _excluded$19 = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"];
18096
19207
  const useUtilityClasses$R = ownerState => {
18097
19208
  const {
18098
19209
  classes,
@@ -18277,7 +19388,7 @@ const FilledInput = /*#__PURE__*/React$1.forwardRef(function FilledInput(inProps
18277
19388
  slots = {},
18278
19389
  type = 'text'
18279
19390
  } = props,
18280
- other = _objectWithoutPropertiesLoose(props, _excluded$16);
19391
+ other = _objectWithoutPropertiesLoose(props, _excluded$19);
18281
19392
  const ownerState = _extends$1({}, props, {
18282
19393
  fullWidth,
18283
19394
  inputComponent,
@@ -18507,7 +19618,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
18507
19618
  FilledInput.muiName = 'Input';
18508
19619
 
18509
19620
  var _span$3;
18510
- const _excluded$15 = ["children", "classes", "className", "label", "notched"];
19621
+ const _excluded$18 = ["children", "classes", "className", "label", "notched"];
18511
19622
  const NotchedOutlineRoot$1 = styled$1('fieldset', {
18512
19623
  shouldForwardProp: rootShouldForwardProp
18513
19624
  })({
@@ -18584,7 +19695,7 @@ function NotchedOutline(props) {
18584
19695
  label,
18585
19696
  notched
18586
19697
  } = props,
18587
- other = _objectWithoutPropertiesLoose(props, _excluded$15);
19698
+ other = _objectWithoutPropertiesLoose(props, _excluded$18);
18588
19699
  const withLabel = label != null && label !== '';
18589
19700
  const ownerState = _extends$1({}, props, {
18590
19701
  notched,
@@ -18639,7 +19750,7 @@ function getOutlinedInputUtilityClass(slot) {
18639
19750
  }
18640
19751
  const outlinedInputClasses = _extends$1({}, inputBaseClasses, generateUtilityClasses$1('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));
18641
19752
 
18642
- const _excluded$14 = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
19753
+ const _excluded$17 = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
18643
19754
  const useUtilityClasses$Q = ownerState => {
18644
19755
  const {
18645
19756
  classes
@@ -18758,7 +19869,7 @@ const OutlinedInput = /*#__PURE__*/React$1.forwardRef(function OutlinedInput(inP
18758
19869
  slots = {},
18759
19870
  type = 'text'
18760
19871
  } = props,
18761
- other = _objectWithoutPropertiesLoose(props, _excluded$14);
19872
+ other = _objectWithoutPropertiesLoose(props, _excluded$17);
18762
19873
  const classes = useUtilityClasses$Q(props);
18763
19874
  const muiFormControl = useFormControl();
18764
19875
  const fcs = formControlState({
@@ -18977,7 +20088,7 @@ function getFormLabelUtilityClasses(slot) {
18977
20088
  }
18978
20089
  const formLabelClasses = generateUtilityClasses$1('MuiFormLabel', ['root', 'colorSecondary', 'focused', 'disabled', 'error', 'filled', 'required', 'asterisk']);
18979
20090
 
18980
- const _excluded$13 = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"];
20091
+ const _excluded$16 = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"];
18981
20092
  const useUtilityClasses$P = ownerState => {
18982
20093
  const {
18983
20094
  classes,
@@ -19042,7 +20153,7 @@ const FormLabel = /*#__PURE__*/React$1.forwardRef(function FormLabel(inProps, re
19042
20153
  className,
19043
20154
  component = 'label'
19044
20155
  } = props,
19045
- other = _objectWithoutPropertiesLoose(props, _excluded$13);
20156
+ other = _objectWithoutPropertiesLoose(props, _excluded$16);
19046
20157
  const muiFormControl = useFormControl();
19047
20158
  const fcs = formControlState({
19048
20159
  props,
@@ -19132,7 +20243,7 @@ function getInputLabelUtilityClasses(slot) {
19132
20243
  }
19133
20244
  generateUtilityClasses$1('MuiInputLabel', ['root', 'focused', 'disabled', 'error', 'required', 'asterisk', 'formControl', 'sizeSmall', 'shrink', 'animated', 'standard', 'filled', 'outlined']);
19134
20245
 
19135
- const _excluded$12 = ["disableAnimation", "margin", "shrink", "variant", "className"];
20246
+ const _excluded$15 = ["disableAnimation", "margin", "shrink", "variant", "className"];
19136
20247
  const useUtilityClasses$O = ownerState => {
19137
20248
  const {
19138
20249
  classes,
@@ -19234,7 +20345,7 @@ const InputLabel = /*#__PURE__*/React$1.forwardRef(function InputLabel(inProps,
19234
20345
  shrink: shrinkProp,
19235
20346
  className
19236
20347
  } = props,
19237
- other = _objectWithoutPropertiesLoose(props, _excluded$12);
20348
+ other = _objectWithoutPropertiesLoose(props, _excluded$15);
19238
20349
  const muiFormControl = useFormControl();
19239
20350
  let shrink = shrinkProp;
19240
20351
  if (typeof shrink === 'undefined' && muiFormControl) {
@@ -19337,7 +20448,7 @@ function getFormControlUtilityClasses(slot) {
19337
20448
  }
19338
20449
  generateUtilityClasses$1('MuiFormControl', ['root', 'marginNone', 'marginNormal', 'marginDense', 'fullWidth', 'disabled']);
19339
20450
 
19340
- const _excluded$11 = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"];
20451
+ const _excluded$14 = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"];
19341
20452
  const useUtilityClasses$N = ownerState => {
19342
20453
  const {
19343
20454
  classes,
@@ -19423,7 +20534,7 @@ const FormControl = /*#__PURE__*/React$1.forwardRef(function FormControl(inProps
19423
20534
  size = 'medium',
19424
20535
  variant = 'outlined'
19425
20536
  } = props,
19426
- other = _objectWithoutPropertiesLoose(props, _excluded$11);
20537
+ other = _objectWithoutPropertiesLoose(props, _excluded$14);
19427
20538
  const ownerState = _extends$1({}, props, {
19428
20539
  color,
19429
20540
  component,
@@ -19617,7 +20728,7 @@ function getFormHelperTextUtilityClasses(slot) {
19617
20728
  const formHelperTextClasses = generateUtilityClasses$1('MuiFormHelperText', ['root', 'error', 'disabled', 'sizeSmall', 'sizeMedium', 'contained', 'focused', 'filled', 'required']);
19618
20729
 
19619
20730
  var _span$2;
19620
- const _excluded$10 = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"];
20731
+ const _excluded$13 = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"];
19621
20732
  const useUtilityClasses$M = ownerState => {
19622
20733
  const {
19623
20734
  classes,
@@ -19676,7 +20787,7 @@ const FormHelperText = /*#__PURE__*/React$1.forwardRef(function FormHelperText(i
19676
20787
  className,
19677
20788
  component = 'p'
19678
20789
  } = props,
19679
- other = _objectWithoutPropertiesLoose(props, _excluded$10);
20790
+ other = _objectWithoutPropertiesLoose(props, _excluded$13);
19680
20791
  const muiFormControl = useFormControl();
19681
20792
  const fcs = formControlState({
19682
20793
  props,
@@ -20044,7 +21155,7 @@ function getListUtilityClass(slot) {
20044
21155
  }
20045
21156
  generateUtilityClasses$1('MuiList', ['root', 'padding', 'dense', 'subheader']);
20046
21157
 
20047
- const _excluded$$ = ["children", "className", "component", "dense", "disablePadding", "subheader"];
21158
+ const _excluded$12 = ["children", "className", "component", "dense", "disablePadding", "subheader"];
20048
21159
  const useUtilityClasses$L = ownerState => {
20049
21160
  const {
20050
21161
  classes,
@@ -20092,7 +21203,7 @@ const List = /*#__PURE__*/React$1.forwardRef(function List(inProps, ref) {
20092
21203
  disablePadding = false,
20093
21204
  subheader
20094
21205
  } = props,
20095
- other = _objectWithoutPropertiesLoose(props, _excluded$$);
21206
+ other = _objectWithoutPropertiesLoose(props, _excluded$12);
20096
21207
  const context = React$1.useMemo(() => ({
20097
21208
  dense
20098
21209
  }), [dense]);
@@ -20158,7 +21269,7 @@ process.env.NODE_ENV !== "production" ? List.propTypes /* remove-proptypes */ =
20158
21269
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
20159
21270
  } : void 0;
20160
21271
 
20161
- const _excluded$_ = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
21272
+ const _excluded$11 = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
20162
21273
  function nextItem(list, item, disableListWrap) {
20163
21274
  if (list === item) {
20164
21275
  return list.firstChild;
@@ -20240,7 +21351,7 @@ const MenuList = /*#__PURE__*/React$1.forwardRef(function MenuList(props, ref) {
20240
21351
  onKeyDown,
20241
21352
  variant = 'selectedMenu'
20242
21353
  } = props,
20243
- other = _objectWithoutPropertiesLoose(props, _excluded$_);
21354
+ other = _objectWithoutPropertiesLoose(props, _excluded$11);
20244
21355
  const listRef = React$1.useRef(null);
20245
21356
  const textCriteriaRef = React$1.useRef({
20246
21357
  keys: [],
@@ -21853,7 +22964,7 @@ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
21853
22964
  TransitionGroup.defaultProps = defaultProps;
21854
22965
 
21855
22966
  function useTheme$2() {
21856
- const theme = useTheme$4(defaultTheme$2);
22967
+ const theme = useTheme$4(defaultTheme$3);
21857
22968
  if (process.env.NODE_ENV !== 'production') {
21858
22969
  // eslint-disable-next-line react-hooks/rules-of-hooks
21859
22970
  React$1.useDebugValue(theme);
@@ -21876,7 +22987,7 @@ function getTransitionProps(props, options) {
21876
22987
  };
21877
22988
  }
21878
22989
 
21879
- const _excluded$Z = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
22990
+ const _excluded$10 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
21880
22991
  function getScale(value) {
21881
22992
  return `scale(${value}, ${value ** 2})`;
21882
22993
  }
@@ -21920,7 +23031,7 @@ const Grow = /*#__PURE__*/React$1.forwardRef(function Grow(props, ref) {
21920
23031
  // eslint-disable-next-line react/prop-types
21921
23032
  TransitionComponent = Transition
21922
23033
  } = props,
21923
- other = _objectWithoutPropertiesLoose(props, _excluded$Z);
23034
+ other = _objectWithoutPropertiesLoose(props, _excluded$10);
21924
23035
  const timer = useTimeout();
21925
23036
  const autoTimeout = React$1.useRef();
21926
23037
  const theme = useTheme$2();
@@ -22118,7 +23229,7 @@ process.env.NODE_ENV !== "production" ? Grow.propTypes /* remove-proptypes */ =
22118
23229
  } : void 0;
22119
23230
  Grow.muiSupportAuto = true;
22120
23231
 
22121
- const _excluded$Y = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
23232
+ const _excluded$$ = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
22122
23233
  const styles = {
22123
23234
  entering: {
22124
23235
  opacity: 1
@@ -22155,7 +23266,7 @@ const Fade = /*#__PURE__*/React$1.forwardRef(function Fade(props, ref) {
22155
23266
  // eslint-disable-next-line react/prop-types
22156
23267
  TransitionComponent = Transition
22157
23268
  } = props,
22158
- other = _objectWithoutPropertiesLoose(props, _excluded$Y);
23269
+ other = _objectWithoutPropertiesLoose(props, _excluded$$);
22159
23270
  const nodeRef = React$1.useRef(null);
22160
23271
  const handleRef = useForkRef(nodeRef, children.ref, ref);
22161
23272
  const normalizedTransitionCallback = callback => maybeIsAppearing => {
@@ -22315,7 +23426,7 @@ function getBackdropUtilityClass(slot) {
22315
23426
  }
22316
23427
  generateUtilityClasses$1('MuiBackdrop', ['root', 'invisible']);
22317
23428
 
22318
- const _excluded$X = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
23429
+ const _excluded$_ = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
22319
23430
  const useUtilityClasses$K = ownerState => {
22320
23431
  const {
22321
23432
  classes,
@@ -22370,7 +23481,7 @@ const Backdrop = /*#__PURE__*/React$1.forwardRef(function Backdrop(inProps, ref)
22370
23481
  TransitionComponent = Fade,
22371
23482
  transitionDuration
22372
23483
  } = props,
22373
- other = _objectWithoutPropertiesLoose(props, _excluded$X);
23484
+ other = _objectWithoutPropertiesLoose(props, _excluded$_);
22374
23485
  const ownerState = _extends$1({}, props, {
22375
23486
  component,
22376
23487
  invisible
@@ -22495,7 +23606,7 @@ function getModalUtilityClass(slot) {
22495
23606
  }
22496
23607
  generateUtilityClasses$1('MuiModal', ['root', 'hidden', 'backdrop']);
22497
23608
 
22498
- 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"];
23609
+ 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"];
22499
23610
  const useUtilityClasses$J = ownerState => {
22500
23611
  const {
22501
23612
  open,
@@ -22583,7 +23694,7 @@ const Modal = /*#__PURE__*/React$1.forwardRef(function Modal(inProps, ref) {
22583
23694
  slots
22584
23695
  // eslint-disable-next-line react/prop-types
22585
23696
  } = props,
22586
- other = _objectWithoutPropertiesLoose(props, _excluded$W);
23697
+ other = _objectWithoutPropertiesLoose(props, _excluded$Z);
22587
23698
  const propsWithDefaults = _extends$1({}, props, {
22588
23699
  closeAfterTransition,
22589
23700
  disableAutoFocus,
@@ -22870,13 +23981,14 @@ const getOverlayAlpha = elevation => {
22870
23981
  }
22871
23982
  return (alphaValue / 100).toFixed(2);
22872
23983
  };
23984
+ var getOverlayAlpha$1 = getOverlayAlpha;
22873
23985
 
22874
23986
  function getPaperUtilityClass(slot) {
22875
23987
  return generateUtilityClass$1('MuiPaper', slot);
22876
23988
  }
22877
23989
  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']);
22878
23990
 
22879
- const _excluded$V = ["className", "component", "elevation", "square", "variant"];
23991
+ const _excluded$Y = ["className", "component", "elevation", "square", "variant"];
22880
23992
  const useUtilityClasses$I = ownerState => {
22881
23993
  const {
22882
23994
  square,
@@ -22914,7 +24026,7 @@ const PaperRoot = styled$1('div', {
22914
24026
  }, ownerState.variant === 'elevation' && _extends$1({
22915
24027
  boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
22916
24028
  }, !theme.vars && theme.palette.mode === 'dark' && {
22917
- backgroundImage: `linear-gradient(${alpha_1('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha_1('#fff', getOverlayAlpha(ownerState.elevation))})`
24029
+ backgroundImage: `linear-gradient(${alpha_1('#fff', getOverlayAlpha$1(ownerState.elevation))}, ${alpha_1('#fff', getOverlayAlpha$1(ownerState.elevation))})`
22918
24030
  }, theme.vars && {
22919
24031
  backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
22920
24032
  }));
@@ -22931,7 +24043,7 @@ const Paper = /*#__PURE__*/React$1.forwardRef(function Paper(inProps, ref) {
22931
24043
  square = false,
22932
24044
  variant = 'elevation'
22933
24045
  } = props,
22934
- other = _objectWithoutPropertiesLoose(props, _excluded$V);
24046
+ other = _objectWithoutPropertiesLoose(props, _excluded$Y);
22935
24047
  const ownerState = _extends$1({}, props, {
22936
24048
  component,
22937
24049
  elevation,
@@ -23011,8 +24123,8 @@ function getPopoverUtilityClass(slot) {
23011
24123
  }
23012
24124
  generateUtilityClasses$1('MuiPopover', ['root', 'paper']);
23013
24125
 
23014
- const _excluded$U = ["onEntering"],
23015
- _excluded2$a = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"],
24126
+ const _excluded$X = ["onEntering"],
24127
+ _excluded2$c = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"],
23016
24128
  _excluded3$4 = ["slotProps"];
23017
24129
  function getOffsetTop(rect, vertical) {
23018
24130
  let offset = 0;
@@ -23109,8 +24221,8 @@ const Popover = /*#__PURE__*/React$1.forwardRef(function Popover(inProps, ref) {
23109
24221
  } = {},
23110
24222
  disableScrollLock = false
23111
24223
  } = props,
23112
- TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$U),
23113
- other = _objectWithoutPropertiesLoose(props, _excluded2$a);
24224
+ TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$X),
24225
+ other = _objectWithoutPropertiesLoose(props, _excluded2$c);
23114
24226
  const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
23115
24227
  const paperRef = React$1.useRef();
23116
24228
  const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);
@@ -23527,8 +24639,8 @@ function getMenuUtilityClass(slot) {
23527
24639
  }
23528
24640
  generateUtilityClasses$1('MuiMenu', ['root', 'paper', 'list']);
23529
24641
 
23530
- const _excluded$T = ["onEntering"],
23531
- _excluded2$9 = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"];
24642
+ const _excluded$W = ["onEntering"],
24643
+ _excluded2$b = ["autoFocus", "children", "className", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant", "slots", "slotProps"];
23532
24644
  const RTL_ORIGIN = {
23533
24645
  vertical: 'top',
23534
24646
  horizontal: 'right'
@@ -23598,8 +24710,8 @@ const Menu$1 = /*#__PURE__*/React$1.forwardRef(function Menu(inProps, ref) {
23598
24710
  slots = {},
23599
24711
  slotProps = {}
23600
24712
  } = props,
23601
- TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$T),
23602
- other = _objectWithoutPropertiesLoose(props, _excluded2$9);
24713
+ TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$W),
24714
+ other = _objectWithoutPropertiesLoose(props, _excluded2$b);
23603
24715
  const isRtl = useRtl();
23604
24716
  const ownerState = _extends$1({}, props, {
23605
24717
  autoFocus,
@@ -23821,7 +24933,7 @@ function getNativeSelectUtilityClasses(slot) {
23821
24933
  }
23822
24934
  const nativeSelectClasses = generateUtilityClasses$1('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
23823
24935
 
23824
- const _excluded$S = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
24936
+ const _excluded$V = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
23825
24937
  const useUtilityClasses$F = ownerState => {
23826
24938
  const {
23827
24939
  classes,
@@ -23948,7 +25060,7 @@ const NativeSelectInput = /*#__PURE__*/React$1.forwardRef(function NativeSelectI
23948
25060
  inputRef,
23949
25061
  variant = 'standard'
23950
25062
  } = props,
23951
- other = _objectWithoutPropertiesLoose(props, _excluded$S);
25063
+ other = _objectWithoutPropertiesLoose(props, _excluded$V);
23952
25064
  const ownerState = _extends$1({}, props, {
23953
25065
  disabled,
23954
25066
  variant,
@@ -24030,7 +25142,7 @@ function getSelectUtilityClasses(slot) {
24030
25142
  const selectClasses = generateUtilityClasses$1('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);
24031
25143
 
24032
25144
  var _span$1;
24033
- 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"];
25145
+ 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"];
24034
25146
  const SelectSelect = styled$1('div', {
24035
25147
  name: 'MuiSelect',
24036
25148
  slot: 'Select',
@@ -24153,7 +25265,7 @@ const SelectInput = /*#__PURE__*/React$1.forwardRef(function SelectInput(props,
24153
25265
  value: valueProp,
24154
25266
  variant = 'standard'
24155
25267
  } = props,
24156
- other = _objectWithoutPropertiesLoose(props, _excluded$R);
25268
+ other = _objectWithoutPropertiesLoose(props, _excluded$U);
24157
25269
  const [value, setValueState] = useControlled({
24158
25270
  controlled: valueProp,
24159
25271
  default: defaultValue,
@@ -24668,7 +25780,7 @@ function getSvgIconUtilityClass(slot) {
24668
25780
  }
24669
25781
  generateUtilityClasses$1('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
24670
25782
 
24671
- const _excluded$Q = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
25783
+ const _excluded$T = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
24672
25784
  const useUtilityClasses$D = ownerState => {
24673
25785
  const {
24674
25786
  color,
@@ -24736,7 +25848,7 @@ const SvgIcon = /*#__PURE__*/React$1.forwardRef(function SvgIcon(inProps, ref) {
24736
25848
  titleAccess,
24737
25849
  viewBox = '0 0 24 24'
24738
25850
  } = props,
24739
- other = _objectWithoutPropertiesLoose(props, _excluded$Q);
25851
+ other = _objectWithoutPropertiesLoose(props, _excluded$T);
24740
25852
  const hasSvgAsChild = /*#__PURE__*/React$1.isValidElement(children) && children.type === 'svg';
24741
25853
  const ownerState = _extends$1({}, props, {
24742
25854
  color,
@@ -24863,8 +25975,8 @@ var ArrowDropDownIcon$1 = createSvgIcon$1( /*#__PURE__*/jsxRuntimeExports.jsx("p
24863
25975
  d: "M7 10l5 5 5-5z"
24864
25976
  }), 'ArrowDropDown');
24865
25977
 
24866
- const _excluded$P = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"],
24867
- _excluded2$8 = ["root"];
25978
+ const _excluded$S = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"],
25979
+ _excluded2$a = ["root"];
24868
25980
  const useUtilityClasses$C = ownerState => {
24869
25981
  const {
24870
25982
  classes
@@ -24908,7 +26020,7 @@ const Select = /*#__PURE__*/React$1.forwardRef(function Select(inProps, ref) {
24908
26020
  SelectDisplayProps,
24909
26021
  variant: variantProp = 'outlined'
24910
26022
  } = props,
24911
- other = _objectWithoutPropertiesLoose(props, _excluded$P);
26023
+ other = _objectWithoutPropertiesLoose(props, _excluded$S);
24912
26024
  const inputComponent = native ? NativeSelectInput : SelectInput;
24913
26025
  const muiFormControl = useFormControl();
24914
26026
  const fcs = formControlState({
@@ -24922,7 +26034,7 @@ const Select = /*#__PURE__*/React$1.forwardRef(function Select(inProps, ref) {
24922
26034
  classes: classesProp
24923
26035
  });
24924
26036
  const classes = useUtilityClasses$C(ownerState);
24925
- const restOfClasses = _objectWithoutPropertiesLoose(classes, _excluded2$8);
26037
+ const restOfClasses = _objectWithoutPropertiesLoose(classes, _excluded2$a);
24926
26038
  const InputComponent = input || {
24927
26039
  standard: /*#__PURE__*/jsxRuntimeExports.jsx(StyledInput, {
24928
26040
  ownerState: ownerState
@@ -25131,7 +26243,7 @@ function getTextFieldUtilityClass(slot) {
25131
26243
  }
25132
26244
  generateUtilityClasses$1('MuiTextField', ['root']);
25133
26245
 
25134
- 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"];
26246
+ 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"];
25135
26247
  const variantComponent = {
25136
26248
  standard: Input,
25137
26249
  filled: FilledInput,
@@ -25223,7 +26335,7 @@ const TextField = /*#__PURE__*/React$1.forwardRef(function TextField(inProps, re
25223
26335
  value,
25224
26336
  variant = 'outlined'
25225
26337
  } = props,
25226
- other = _objectWithoutPropertiesLoose(props, _excluded$O);
26338
+ other = _objectWithoutPropertiesLoose(props, _excluded$R);
25227
26339
  const ownerState = _extends$1({}, props, {
25228
26340
  autoFocus,
25229
26341
  color,
@@ -25485,6 +26597,680 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
25485
26597
  variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])
25486
26598
  } : void 0;
25487
26599
 
26600
+ const _excluded$Q = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
26601
+ _excluded2$9 = ["type", "mode"];
26602
+ function adaptV4Theme(inputTheme) {
26603
+ if (process.env.NODE_ENV !== 'production') {
26604
+ console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
26605
+ }
26606
+ const {
26607
+ defaultProps = {},
26608
+ mixins = {},
26609
+ overrides = {},
26610
+ palette = {},
26611
+ props = {},
26612
+ styleOverrides = {}
26613
+ } = inputTheme,
26614
+ other = _objectWithoutPropertiesLoose(inputTheme, _excluded$Q);
26615
+ const theme = _extends$1({}, other, {
26616
+ components: {}
26617
+ });
26618
+
26619
+ // default props
26620
+ Object.keys(defaultProps).forEach(component => {
26621
+ const componentValue = theme.components[component] || {};
26622
+ componentValue.defaultProps = defaultProps[component];
26623
+ theme.components[component] = componentValue;
26624
+ });
26625
+ Object.keys(props).forEach(component => {
26626
+ const componentValue = theme.components[component] || {};
26627
+ componentValue.defaultProps = props[component];
26628
+ theme.components[component] = componentValue;
26629
+ });
26630
+
26631
+ // CSS overrides
26632
+ Object.keys(styleOverrides).forEach(component => {
26633
+ const componentValue = theme.components[component] || {};
26634
+ componentValue.styleOverrides = styleOverrides[component];
26635
+ theme.components[component] = componentValue;
26636
+ });
26637
+ Object.keys(overrides).forEach(component => {
26638
+ const componentValue = theme.components[component] || {};
26639
+ componentValue.styleOverrides = overrides[component];
26640
+ theme.components[component] = componentValue;
26641
+ });
26642
+
26643
+ // theme.spacing
26644
+ theme.spacing = createSpacing(inputTheme.spacing);
26645
+
26646
+ // theme.mixins.gutters
26647
+ const breakpoints = createBreakpoints(inputTheme.breakpoints || {});
26648
+ const spacing = theme.spacing;
26649
+ theme.mixins = _extends$1({
26650
+ gutters: (styles = {}) => {
26651
+ return _extends$1({
26652
+ paddingLeft: spacing(2),
26653
+ paddingRight: spacing(2)
26654
+ }, styles, {
26655
+ [breakpoints.up('sm')]: _extends$1({
26656
+ paddingLeft: spacing(3),
26657
+ paddingRight: spacing(3)
26658
+ }, styles[breakpoints.up('sm')])
26659
+ });
26660
+ }
26661
+ }, mixins);
26662
+ const {
26663
+ type: typeInput,
26664
+ mode: modeInput
26665
+ } = palette,
26666
+ paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$9);
26667
+ const finalMode = modeInput || typeInput || 'light';
26668
+ theme.palette = _extends$1({
26669
+ // theme.palette.text.hint
26670
+ text: {
26671
+ hint: finalMode === 'dark' ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.38)'
26672
+ },
26673
+ mode: finalMode,
26674
+ type: finalMode
26675
+ }, paletteRest);
26676
+ return theme;
26677
+ }
26678
+
26679
+ function createMuiStrictModeTheme(options, ...args) {
26680
+ return createTheme(deepmerge$1({
26681
+ unstable_strictMode: true
26682
+ }, options), ...args);
26683
+ }
26684
+
26685
+ let warnedOnce = false;
26686
+
26687
+ // To remove in v6
26688
+ function createStyles(styles) {
26689
+ if (!warnedOnce) {
26690
+ console.warn(['MUI: createStyles from @mui/material/styles is deprecated.', 'Please use @mui/styles/createStyles'].join('\n'));
26691
+ warnedOnce = true;
26692
+ }
26693
+ return styles;
26694
+ }
26695
+
26696
+ function isUnitless(value) {
26697
+ return String(parseFloat(value)).length === String(value).length;
26698
+ }
26699
+
26700
+ // Ported from Compass
26701
+ // https://github.com/Compass/compass/blob/master/core/stylesheets/compass/typography/_units.scss
26702
+ // Emulate the sass function "unit"
26703
+ function getUnit(input) {
26704
+ return String(input).match(/[\d.\-+]*\s*(.*)/)[1] || '';
26705
+ }
26706
+
26707
+ // Emulate the sass function "unitless"
26708
+ function toUnitless(length) {
26709
+ return parseFloat(length);
26710
+ }
26711
+
26712
+ // Convert any CSS <length> or <percentage> value to any another.
26713
+ // From https://github.com/KyleAMathews/convert-css-length
26714
+ function convertLength(baseFontSize) {
26715
+ return (length, toUnit) => {
26716
+ const fromUnit = getUnit(length);
26717
+
26718
+ // Optimize for cases where `from` and `to` units are accidentally the same.
26719
+ if (fromUnit === toUnit) {
26720
+ return length;
26721
+ }
26722
+
26723
+ // Convert input length to pixels.
26724
+ let pxLength = toUnitless(length);
26725
+ if (fromUnit !== 'px') {
26726
+ if (fromUnit === 'em') {
26727
+ pxLength = toUnitless(length) * toUnitless(baseFontSize);
26728
+ } else if (fromUnit === 'rem') {
26729
+ pxLength = toUnitless(length) * toUnitless(baseFontSize);
26730
+ }
26731
+ }
26732
+
26733
+ // Convert length in pixels to the output unit
26734
+ let outputLength = pxLength;
26735
+ if (toUnit !== 'px') {
26736
+ if (toUnit === 'em') {
26737
+ outputLength = pxLength / toUnitless(baseFontSize);
26738
+ } else if (toUnit === 'rem') {
26739
+ outputLength = pxLength / toUnitless(baseFontSize);
26740
+ } else {
26741
+ return length;
26742
+ }
26743
+ }
26744
+ return parseFloat(outputLength.toFixed(5)) + toUnit;
26745
+ };
26746
+ }
26747
+ function alignProperty({
26748
+ size,
26749
+ grid
26750
+ }) {
26751
+ const sizeBelow = size - size % grid;
26752
+ const sizeAbove = sizeBelow + grid;
26753
+ return size - sizeBelow < sizeAbove - size ? sizeBelow : sizeAbove;
26754
+ }
26755
+
26756
+ // fontGrid finds a minimal grid (in rem) for the fontSize values so that the
26757
+ // lineHeight falls under a x pixels grid, 4px in the case of Material Design,
26758
+ // without changing the relative line height
26759
+ function fontGrid({
26760
+ lineHeight,
26761
+ pixels,
26762
+ htmlFontSize
26763
+ }) {
26764
+ return pixels / (lineHeight * htmlFontSize);
26765
+ }
26766
+
26767
+ /**
26768
+ * generate a responsive version of a given CSS property
26769
+ * @example
26770
+ * responsiveProperty({
26771
+ * cssProperty: 'fontSize',
26772
+ * min: 15,
26773
+ * max: 20,
26774
+ * unit: 'px',
26775
+ * breakpoints: [300, 600],
26776
+ * })
26777
+ *
26778
+ * // this returns
26779
+ *
26780
+ * {
26781
+ * fontSize: '15px',
26782
+ * '@media (min-width:300px)': {
26783
+ * fontSize: '17.5px',
26784
+ * },
26785
+ * '@media (min-width:600px)': {
26786
+ * fontSize: '20px',
26787
+ * },
26788
+ * }
26789
+ * @param {Object} params
26790
+ * @param {string} params.cssProperty - The CSS property to be made responsive
26791
+ * @param {number} params.min - The smallest value of the CSS property
26792
+ * @param {number} params.max - The largest value of the CSS property
26793
+ * @param {string} [params.unit] - The unit to be used for the CSS property
26794
+ * @param {Array.number} [params.breakpoints] - An array of breakpoints
26795
+ * @param {number} [params.alignStep] - Round scaled value to fall under this grid
26796
+ * @returns {Object} responsive styles for {params.cssProperty}
26797
+ */
26798
+ function responsiveProperty({
26799
+ cssProperty,
26800
+ min,
26801
+ max,
26802
+ unit = 'rem',
26803
+ breakpoints = [600, 900, 1200],
26804
+ transform = null
26805
+ }) {
26806
+ const output = {
26807
+ [cssProperty]: `${min}${unit}`
26808
+ };
26809
+ const factor = (max - min) / breakpoints[breakpoints.length - 1];
26810
+ breakpoints.forEach(breakpoint => {
26811
+ let value = min + factor * breakpoint;
26812
+ if (transform !== null) {
26813
+ value = transform(value);
26814
+ }
26815
+ output[`@media (min-width:${breakpoint}px)`] = {
26816
+ [cssProperty]: `${Math.round(value * 10000) / 10000}${unit}`
26817
+ };
26818
+ });
26819
+ return output;
26820
+ }
26821
+
26822
+ function responsiveFontSizes(themeInput, options = {}) {
26823
+ const {
26824
+ breakpoints = ['sm', 'md', 'lg'],
26825
+ disableAlign = false,
26826
+ factor = 2,
26827
+ variants = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'caption', 'button', 'overline']
26828
+ } = options;
26829
+ const theme = _extends$1({}, themeInput);
26830
+ theme.typography = _extends$1({}, theme.typography);
26831
+ const typography = theme.typography;
26832
+
26833
+ // Convert between CSS lengths e.g. em->px or px->rem
26834
+ // Set the baseFontSize for your project. Defaults to 16px (also the browser default).
26835
+ const convert = convertLength(typography.htmlFontSize);
26836
+ const breakpointValues = breakpoints.map(x => theme.breakpoints.values[x]);
26837
+ variants.forEach(variant => {
26838
+ const style = typography[variant];
26839
+ if (!style) {
26840
+ return;
26841
+ }
26842
+ const remFontSize = parseFloat(convert(style.fontSize, 'rem'));
26843
+ if (remFontSize <= 1) {
26844
+ return;
26845
+ }
26846
+ const maxFontSize = remFontSize;
26847
+ const minFontSize = 1 + (maxFontSize - 1) / factor;
26848
+ let {
26849
+ lineHeight
26850
+ } = style;
26851
+ if (!isUnitless(lineHeight) && !disableAlign) {
26852
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported non-unitless line height with grid alignment.
26853
+ Use unitless line heights instead.` : formatMuiErrorMessage$1(6));
26854
+ }
26855
+ if (!isUnitless(lineHeight)) {
26856
+ // make it unitless
26857
+ lineHeight = parseFloat(convert(lineHeight, 'rem')) / parseFloat(remFontSize);
26858
+ }
26859
+ let transform = null;
26860
+ if (!disableAlign) {
26861
+ transform = value => alignProperty({
26862
+ size: value,
26863
+ grid: fontGrid({
26864
+ pixels: 4,
26865
+ lineHeight,
26866
+ htmlFontSize: typography.htmlFontSize
26867
+ })
26868
+ });
26869
+ }
26870
+ typography[variant] = _extends$1({}, style, responsiveProperty({
26871
+ cssProperty: 'fontSize',
26872
+ min: minFontSize,
26873
+ max: maxFontSize,
26874
+ unit: 'rem',
26875
+ breakpoints: breakpointValues,
26876
+ transform
26877
+ }));
26878
+ });
26879
+ return theme;
26880
+ }
26881
+
26882
+ const _excluded$P = ["theme"];
26883
+ function ThemeProvider(_ref) {
26884
+ let {
26885
+ theme: themeInput
26886
+ } = _ref,
26887
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
26888
+ const scopedTheme = themeInput[THEME_ID];
26889
+ return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$1, _extends$1({}, props, {
26890
+ themeId: scopedTheme ? THEME_ID : undefined,
26891
+ theme: scopedTheme || themeInput
26892
+ }));
26893
+ }
26894
+ process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
26895
+ /**
26896
+ * Your component tree.
26897
+ */
26898
+ children: PropTypes.node,
26899
+ /**
26900
+ * A theme object. You can provide a function to extend the outer theme.
26901
+ */
26902
+ theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
26903
+ } : void 0;
26904
+
26905
+ function makeStyles$1() {
26906
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: makeStyles is no longer exported from @mui/material/styles.
26907
+ You have to import it from @mui/styles.
26908
+ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` : formatMuiErrorMessage$1(14));
26909
+ }
26910
+
26911
+ function withStyles() {
26912
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: withStyles is no longer exported from @mui/material/styles.
26913
+ You have to import it from @mui/styles.
26914
+ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` : formatMuiErrorMessage$1(15));
26915
+ }
26916
+
26917
+ function withTheme() {
26918
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: withTheme is no longer exported from @mui/material/styles.
26919
+ You have to import it from @mui/styles.
26920
+ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` : formatMuiErrorMessage$1(16));
26921
+ }
26922
+
26923
+ function shouldSkipGeneratingVar(keys) {
26924
+ var _keys$;
26925
+ return !!keys[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
26926
+ // ends with sxConfig
26927
+ keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
26928
+ }
26929
+
26930
+ const _excluded$O = ["colorSchemes", "cssVarPrefix", "shouldSkipGeneratingVar"],
26931
+ _excluded2$8 = ["palette"];
26932
+ const defaultDarkOverlays = [...Array(25)].map((_, index) => {
26933
+ if (index === 0) {
26934
+ return undefined;
26935
+ }
26936
+ const overlay = getOverlayAlpha$1(index);
26937
+ return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
26938
+ });
26939
+ function assignNode(obj, keys) {
26940
+ keys.forEach(k => {
26941
+ if (!obj[k]) {
26942
+ obj[k] = {};
26943
+ }
26944
+ });
26945
+ }
26946
+ function setColor(obj, key, defaultValue) {
26947
+ if (!obj[key] && defaultValue) {
26948
+ obj[key] = defaultValue;
26949
+ }
26950
+ }
26951
+ function toRgb(color) {
26952
+ if (!color || !color.startsWith('hsl')) {
26953
+ return color;
26954
+ }
26955
+ return hslToRgb_1(color);
26956
+ }
26957
+ function setColorChannel(obj, key) {
26958
+ if (!(`${key}Channel` in obj)) {
26959
+ // custom channel token is not provided, generate one.
26960
+ // if channel token can't be generated, show a warning.
26961
+ 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.`);
26962
+ }
26963
+ }
26964
+ const silent = fn => {
26965
+ try {
26966
+ return fn();
26967
+ } catch (error) {
26968
+ // ignore error
26969
+ }
26970
+ return undefined;
26971
+ };
26972
+ const createGetCssVar = (cssVarPrefix = 'mui') => createGetCssVar$1(cssVarPrefix);
26973
+ function extendTheme(options = {}, ...args) {
26974
+ var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
26975
+ const {
26976
+ colorSchemes: colorSchemesInput = {},
26977
+ cssVarPrefix = 'mui',
26978
+ shouldSkipGeneratingVar: shouldSkipGeneratingVar$1 = shouldSkipGeneratingVar
26979
+ } = options,
26980
+ input = _objectWithoutPropertiesLoose(options, _excluded$O);
26981
+ const getCssVar = createGetCssVar(cssVarPrefix);
26982
+ const _createThemeWithoutVa = createTheme(_extends$1({}, input, colorSchemesInput.light && {
26983
+ palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
26984
+ })),
26985
+ {
26986
+ palette: lightPalette
26987
+ } = _createThemeWithoutVa,
26988
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$8);
26989
+ const {
26990
+ palette: darkPalette
26991
+ } = createTheme({
26992
+ palette: _extends$1({
26993
+ mode: 'dark'
26994
+ }, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
26995
+ });
26996
+ let theme = _extends$1({}, muiTheme, {
26997
+ cssVarPrefix,
26998
+ getCssVar,
26999
+ colorSchemes: _extends$1({}, colorSchemesInput, {
27000
+ light: _extends$1({}, colorSchemesInput.light, {
27001
+ palette: lightPalette,
27002
+ opacity: _extends$1({
27003
+ inputPlaceholder: 0.42,
27004
+ inputUnderline: 0.42,
27005
+ switchTrackDisabled: 0.12,
27006
+ switchTrack: 0.38
27007
+ }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
27008
+ overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
27009
+ }),
27010
+ dark: _extends$1({}, colorSchemesInput.dark, {
27011
+ palette: darkPalette,
27012
+ opacity: _extends$1({
27013
+ inputPlaceholder: 0.5,
27014
+ inputUnderline: 0.7,
27015
+ switchTrackDisabled: 0.2,
27016
+ switchTrack: 0.3
27017
+ }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
27018
+ overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
27019
+ })
27020
+ })
27021
+ });
27022
+ Object.keys(theme.colorSchemes).forEach(key => {
27023
+ const palette = theme.colorSchemes[key].palette;
27024
+ const setCssVarColor = cssVar => {
27025
+ const tokens = cssVar.split('-');
27026
+ const color = tokens[1];
27027
+ const colorToken = tokens[2];
27028
+ return getCssVar(cssVar, palette[color][colorToken]);
27029
+ };
27030
+
27031
+ // attach black & white channels to common node
27032
+ if (key === 'light') {
27033
+ setColor(palette.common, 'background', '#fff');
27034
+ setColor(palette.common, 'onBackground', '#000');
27035
+ } else {
27036
+ setColor(palette.common, 'background', '#000');
27037
+ setColor(palette.common, 'onBackground', '#fff');
27038
+ }
27039
+
27040
+ // assign component variables
27041
+ assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Button', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
27042
+ if (key === 'light') {
27043
+ setColor(palette.Alert, 'errorColor', private_safeDarken_1(palette.error.light, 0.6));
27044
+ setColor(palette.Alert, 'infoColor', private_safeDarken_1(palette.info.light, 0.6));
27045
+ setColor(palette.Alert, 'successColor', private_safeDarken_1(palette.success.light, 0.6));
27046
+ setColor(palette.Alert, 'warningColor', private_safeDarken_1(palette.warning.light, 0.6));
27047
+ setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-main'));
27048
+ setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-main'));
27049
+ setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-main'));
27050
+ setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-main'));
27051
+ setColor(palette.Alert, 'errorFilledColor', silent(() => lightPalette.getContrastText(palette.error.main)));
27052
+ setColor(palette.Alert, 'infoFilledColor', silent(() => lightPalette.getContrastText(palette.info.main)));
27053
+ setColor(palette.Alert, 'successFilledColor', silent(() => lightPalette.getContrastText(palette.success.main)));
27054
+ setColor(palette.Alert, 'warningFilledColor', silent(() => lightPalette.getContrastText(palette.warning.main)));
27055
+ setColor(palette.Alert, 'errorStandardBg', private_safeLighten_1(palette.error.light, 0.9));
27056
+ setColor(palette.Alert, 'infoStandardBg', private_safeLighten_1(palette.info.light, 0.9));
27057
+ setColor(palette.Alert, 'successStandardBg', private_safeLighten_1(palette.success.light, 0.9));
27058
+ setColor(palette.Alert, 'warningStandardBg', private_safeLighten_1(palette.warning.light, 0.9));
27059
+ setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));
27060
+ setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));
27061
+ setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));
27062
+ setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));
27063
+ setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-100'));
27064
+ setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-400'));
27065
+ setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-300'));
27066
+ setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-A100'));
27067
+ setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-400'));
27068
+ setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-700'));
27069
+ setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-700'));
27070
+ setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');
27071
+ setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');
27072
+ setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');
27073
+ setColor(palette.LinearProgress, 'primaryBg', private_safeLighten_1(palette.primary.main, 0.62));
27074
+ setColor(palette.LinearProgress, 'secondaryBg', private_safeLighten_1(palette.secondary.main, 0.62));
27075
+ setColor(palette.LinearProgress, 'errorBg', private_safeLighten_1(palette.error.main, 0.62));
27076
+ setColor(palette.LinearProgress, 'infoBg', private_safeLighten_1(palette.info.main, 0.62));
27077
+ setColor(palette.LinearProgress, 'successBg', private_safeLighten_1(palette.success.main, 0.62));
27078
+ setColor(palette.LinearProgress, 'warningBg', private_safeLighten_1(palette.warning.main, 0.62));
27079
+ setColor(palette.Skeleton, 'bg', `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.11)`);
27080
+ setColor(palette.Slider, 'primaryTrack', private_safeLighten_1(palette.primary.main, 0.62));
27081
+ setColor(palette.Slider, 'secondaryTrack', private_safeLighten_1(palette.secondary.main, 0.62));
27082
+ setColor(palette.Slider, 'errorTrack', private_safeLighten_1(palette.error.main, 0.62));
27083
+ setColor(palette.Slider, 'infoTrack', private_safeLighten_1(palette.info.main, 0.62));
27084
+ setColor(palette.Slider, 'successTrack', private_safeLighten_1(palette.success.main, 0.62));
27085
+ setColor(palette.Slider, 'warningTrack', private_safeLighten_1(palette.warning.main, 0.62));
27086
+ const snackbarContentBackground = private_safeEmphasize_1(palette.background.default, 0.8);
27087
+ setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
27088
+ setColor(palette.SnackbarContent, 'color', silent(() => lightPalette.getContrastText(snackbarContentBackground)));
27089
+ setColor(palette.SpeedDialAction, 'fabHoverBg', private_safeEmphasize_1(palette.background.paper, 0.15));
27090
+ setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-400'));
27091
+ setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-400'));
27092
+ setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-common-white'));
27093
+ setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-100'));
27094
+ setColor(palette.Switch, 'primaryDisabledColor', private_safeLighten_1(palette.primary.main, 0.62));
27095
+ setColor(palette.Switch, 'secondaryDisabledColor', private_safeLighten_1(palette.secondary.main, 0.62));
27096
+ setColor(palette.Switch, 'errorDisabledColor', private_safeLighten_1(palette.error.main, 0.62));
27097
+ setColor(palette.Switch, 'infoDisabledColor', private_safeLighten_1(palette.info.main, 0.62));
27098
+ setColor(palette.Switch, 'successDisabledColor', private_safeLighten_1(palette.success.main, 0.62));
27099
+ setColor(palette.Switch, 'warningDisabledColor', private_safeLighten_1(palette.warning.main, 0.62));
27100
+ setColor(palette.TableCell, 'border', private_safeLighten_1(private_safeAlpha_1(palette.divider, 1), 0.88));
27101
+ setColor(palette.Tooltip, 'bg', private_safeAlpha_1(palette.grey[700], 0.92));
27102
+ } else {
27103
+ setColor(palette.Alert, 'errorColor', private_safeLighten_1(palette.error.light, 0.6));
27104
+ setColor(palette.Alert, 'infoColor', private_safeLighten_1(palette.info.light, 0.6));
27105
+ setColor(palette.Alert, 'successColor', private_safeLighten_1(palette.success.light, 0.6));
27106
+ setColor(palette.Alert, 'warningColor', private_safeLighten_1(palette.warning.light, 0.6));
27107
+ setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-dark'));
27108
+ setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-dark'));
27109
+ setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-dark'));
27110
+ setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-dark'));
27111
+ setColor(palette.Alert, 'errorFilledColor', silent(() => darkPalette.getContrastText(palette.error.dark)));
27112
+ setColor(palette.Alert, 'infoFilledColor', silent(() => darkPalette.getContrastText(palette.info.dark)));
27113
+ setColor(palette.Alert, 'successFilledColor', silent(() => darkPalette.getContrastText(palette.success.dark)));
27114
+ setColor(palette.Alert, 'warningFilledColor', silent(() => darkPalette.getContrastText(palette.warning.dark)));
27115
+ setColor(palette.Alert, 'errorStandardBg', private_safeDarken_1(palette.error.light, 0.9));
27116
+ setColor(palette.Alert, 'infoStandardBg', private_safeDarken_1(palette.info.light, 0.9));
27117
+ setColor(palette.Alert, 'successStandardBg', private_safeDarken_1(palette.success.light, 0.9));
27118
+ setColor(palette.Alert, 'warningStandardBg', private_safeDarken_1(palette.warning.light, 0.9));
27119
+ setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));
27120
+ setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));
27121
+ setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));
27122
+ setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));
27123
+ setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-900'));
27124
+ setColor(palette.AppBar, 'darkBg', setCssVarColor('palette-background-paper')); // specific for dark mode
27125
+ setColor(palette.AppBar, 'darkColor', setCssVarColor('palette-text-primary')); // specific for dark mode
27126
+ setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-600'));
27127
+ setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-800'));
27128
+ setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-700'));
27129
+ setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-700'));
27130
+ setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-300'));
27131
+ setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-300'));
27132
+ setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');
27133
+ setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');
27134
+ setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');
27135
+ setColor(palette.LinearProgress, 'primaryBg', private_safeDarken_1(palette.primary.main, 0.5));
27136
+ setColor(palette.LinearProgress, 'secondaryBg', private_safeDarken_1(palette.secondary.main, 0.5));
27137
+ setColor(palette.LinearProgress, 'errorBg', private_safeDarken_1(palette.error.main, 0.5));
27138
+ setColor(palette.LinearProgress, 'infoBg', private_safeDarken_1(palette.info.main, 0.5));
27139
+ setColor(palette.LinearProgress, 'successBg', private_safeDarken_1(palette.success.main, 0.5));
27140
+ setColor(palette.LinearProgress, 'warningBg', private_safeDarken_1(palette.warning.main, 0.5));
27141
+ setColor(palette.Skeleton, 'bg', `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.13)`);
27142
+ setColor(palette.Slider, 'primaryTrack', private_safeDarken_1(palette.primary.main, 0.5));
27143
+ setColor(palette.Slider, 'secondaryTrack', private_safeDarken_1(palette.secondary.main, 0.5));
27144
+ setColor(palette.Slider, 'errorTrack', private_safeDarken_1(palette.error.main, 0.5));
27145
+ setColor(palette.Slider, 'infoTrack', private_safeDarken_1(palette.info.main, 0.5));
27146
+ setColor(palette.Slider, 'successTrack', private_safeDarken_1(palette.success.main, 0.5));
27147
+ setColor(palette.Slider, 'warningTrack', private_safeDarken_1(palette.warning.main, 0.5));
27148
+ const snackbarContentBackground = private_safeEmphasize_1(palette.background.default, 0.98);
27149
+ setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
27150
+ setColor(palette.SnackbarContent, 'color', silent(() => darkPalette.getContrastText(snackbarContentBackground)));
27151
+ setColor(palette.SpeedDialAction, 'fabHoverBg', private_safeEmphasize_1(palette.background.paper, 0.15));
27152
+ setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-600'));
27153
+ setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-600'));
27154
+ setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-grey-300'));
27155
+ setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-600'));
27156
+ setColor(palette.Switch, 'primaryDisabledColor', private_safeDarken_1(palette.primary.main, 0.55));
27157
+ setColor(palette.Switch, 'secondaryDisabledColor', private_safeDarken_1(palette.secondary.main, 0.55));
27158
+ setColor(palette.Switch, 'errorDisabledColor', private_safeDarken_1(palette.error.main, 0.55));
27159
+ setColor(palette.Switch, 'infoDisabledColor', private_safeDarken_1(palette.info.main, 0.55));
27160
+ setColor(palette.Switch, 'successDisabledColor', private_safeDarken_1(palette.success.main, 0.55));
27161
+ setColor(palette.Switch, 'warningDisabledColor', private_safeDarken_1(palette.warning.main, 0.55));
27162
+ setColor(palette.TableCell, 'border', private_safeDarken_1(private_safeAlpha_1(palette.divider, 1), 0.68));
27163
+ setColor(palette.Tooltip, 'bg', private_safeAlpha_1(palette.grey[700], 0.92));
27164
+ }
27165
+
27166
+ // MUI X - DataGrid needs this token.
27167
+ setColorChannel(palette.background, 'default');
27168
+
27169
+ // added for consistency with the `background.default` token
27170
+ setColorChannel(palette.background, 'paper');
27171
+ setColorChannel(palette.common, 'background');
27172
+ setColorChannel(palette.common, 'onBackground');
27173
+ setColorChannel(palette, 'divider');
27174
+ Object.keys(palette).forEach(color => {
27175
+ const colors = palette[color];
27176
+
27177
+ // The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.
27178
+
27179
+ if (colors && typeof colors === 'object') {
27180
+ // Silent the error for custom palettes.
27181
+ if (colors.main) {
27182
+ setColor(palette[color], 'mainChannel', private_safeColorChannel_1(toRgb(colors.main)));
27183
+ }
27184
+ if (colors.light) {
27185
+ setColor(palette[color], 'lightChannel', private_safeColorChannel_1(toRgb(colors.light)));
27186
+ }
27187
+ if (colors.dark) {
27188
+ setColor(palette[color], 'darkChannel', private_safeColorChannel_1(toRgb(colors.dark)));
27189
+ }
27190
+ if (colors.contrastText) {
27191
+ setColor(palette[color], 'contrastTextChannel', private_safeColorChannel_1(toRgb(colors.contrastText)));
27192
+ }
27193
+ if (color === 'text') {
27194
+ // Text colors: text.primary, text.secondary
27195
+ setColorChannel(palette[color], 'primary');
27196
+ setColorChannel(palette[color], 'secondary');
27197
+ }
27198
+ if (color === 'action') {
27199
+ // Action colors: action.active, action.selected
27200
+ if (colors.active) {
27201
+ setColorChannel(palette[color], 'active');
27202
+ }
27203
+ if (colors.selected) {
27204
+ setColorChannel(palette[color], 'selected');
27205
+ }
27206
+ }
27207
+ }
27208
+ });
27209
+ });
27210
+ theme = args.reduce((acc, argument) => deepmerge$1(acc, argument), theme);
27211
+ const parserConfig = {
27212
+ prefix: cssVarPrefix,
27213
+ shouldSkipGeneratingVar: shouldSkipGeneratingVar$1
27214
+ };
27215
+ const {
27216
+ vars: themeVars,
27217
+ generateCssVars
27218
+ } = prepareCssVars(theme, parserConfig);
27219
+ theme.vars = themeVars;
27220
+ theme.generateCssVars = generateCssVars;
27221
+ theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
27222
+ theme.unstable_sxConfig = _extends$1({}, defaultSxConfig, input == null ? void 0 : input.unstable_sxConfig);
27223
+ theme.unstable_sx = function sx(props) {
27224
+ return styleFunctionSx$1({
27225
+ sx: props,
27226
+ theme: this
27227
+ });
27228
+ };
27229
+ return theme;
27230
+ }
27231
+
27232
+ /**
27233
+ * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
27234
+ */
27235
+ const excludeVariablesFromRoot = cssVarPrefix => [...[...Array(24)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index + 1}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];
27236
+ var excludeVariablesFromRoot$1 = excludeVariablesFromRoot;
27237
+
27238
+ const defaultTheme$1 = extendTheme();
27239
+ const {
27240
+ CssVarsProvider,
27241
+ useColorScheme,
27242
+ getInitColorSchemeScript
27243
+ } = createCssVarsProvider({
27244
+ themeId: THEME_ID,
27245
+ theme: defaultTheme$1,
27246
+ attribute: 'data-mui-color-scheme',
27247
+ modeStorageKey: 'mui-mode',
27248
+ colorSchemeStorageKey: 'mui-color-scheme',
27249
+ defaultColorScheme: {
27250
+ light: 'light',
27251
+ dark: 'dark'
27252
+ },
27253
+ resolveTheme: theme => {
27254
+ const newTheme = _extends$1({}, theme, {
27255
+ typography: createTypography(theme.palette, theme.typography)
27256
+ });
27257
+ newTheme.unstable_sx = function sx(props) {
27258
+ return styleFunctionSx$1({
27259
+ sx: props,
27260
+ theme: this
27261
+ });
27262
+ };
27263
+ return newTheme;
27264
+ },
27265
+ excludeVariablesFromRoot: excludeVariablesFromRoot$1
27266
+ });
27267
+
27268
+ // TODO: Remove this function in v6.
27269
+ // eslint-disable-next-line @typescript-eslint/naming-convention
27270
+ function experimental_sx() {
27271
+ 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));
27272
+ }
27273
+
25488
27274
  const boxClasses = generateUtilityClasses$1('MuiBox', ['root']);
25489
27275
 
25490
27276
  const defaultTheme = createTheme();
@@ -42695,11 +44481,11 @@ styled$1(Button)(() => ({
42695
44481
  backgroundColor: ' #343a40',
42696
44482
  borderColor: '#343a40'
42697
44483
  }));
42698
- const LabelComponent = styled$1(Grid)(() => ({
44484
+ styled$1(Grid)(() => ({
42699
44485
  alignItems: 'start',
42700
44486
  gap: '1px'
42701
44487
  }));
42702
- const ImportantMark = styled$1('text')(() => ({
44488
+ styled$1('text')(() => ({
42703
44489
  color: 'red'
42704
44490
  }));
42705
44491
  styled$1(Box)(() => ({
@@ -46936,12 +48722,10 @@ const MenuProps = {
46936
48722
  };
46937
48723
  makeStyles((theme) => ({
46938
48724
  option: {
46939
- fontSize: "10px",
46940
- fontFamily: "Roboto-Reg",
48725
+ fontSize: "10px", // Adjust the font size as needed
46941
48726
  },
46942
48727
  option2: {
46943
48728
  fontSize: "11px",
46944
- fontFamily: "Roboto-Reg",
46945
48729
  },
46946
48730
  }));
46947
48731
  const extractValuesToArray = (inputString) => {
@@ -46949,7 +48733,7 @@ const extractValuesToArray = (inputString) => {
46949
48733
  const trimmedArray = valuesArray === null || valuesArray === void 0 ? void 0 : valuesArray.map((value) => value.trim());
46950
48734
  return trimmedArray;
46951
48735
  };
46952
- function MultiSelectV1({ props }) {
48736
+ function MultiSelectV1({ props, variant }) {
46953
48737
  var _a;
46954
48738
  console.log(props, "ksjh");
46955
48739
  const [personName, setPersonName] = React$1.useState(props.getValues(props.item.name)
@@ -47009,7 +48793,7 @@ function MultiSelectV1({ props }) {
47009
48793
  "& .css-kichxs-MuiFormLabel-root-MuiInputLabel-root,.css-1holvmy": {
47010
48794
  top: "-10px",
47011
48795
  },
47012
- } }, { 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: {
48796
+ } }, { 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: {
47013
48797
  "& .MuiTypography-root": {
47014
48798
  fontSize: "5px !important",
47015
48799
  },
@@ -47026,7 +48810,7 @@ function MultiSelectV1({ props }) {
47026
48810
  var _a, _b;
47027
48811
  setSearchText("");
47028
48812
  ((_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());
47029
- }, input: jsxRuntimeExports.jsx(OutlinedInput, { label: props.item.label }), renderValue: (selected) => (jsxRuntimeExports.jsx(Tooltip, Object.assign({ title: selectedValues }, { children: selectedOptions.length > 3
48813
+ }, input: jsxRuntimeExports.jsx(OutlinedInput, { label: variant !== "standard" ? props.item.label : '' }), renderValue: (selected) => (jsxRuntimeExports.jsx(Tooltip, Object.assign({ title: selectedValues }, { children: selectedOptions.length > 3
47030
48814
  ? selectedOptions.length + " Selected"
47031
48815
  : selectedValues }))), MenuProps: MenuProps, autoFocus: false }, { children: [jsxRuntimeExports.jsx(Box, Object.assign({ sx: {
47032
48816
  width: "100%",
@@ -51949,7 +53733,7 @@ const convertDateFormat = (dateStr) => {
51949
53733
  const year = dateParts[2];
51950
53734
  return `${year}-${month}-${day}T00:30:00.000Z`;
51951
53735
  };
51952
- const DateRangePickerComponent = ({ props }) => {
53736
+ const DateRangePickerComponent = ({ props, variant }) => {
51953
53737
  const [open, setOpen] = React__default.useState(false);
51954
53738
  const [dateRange, setDateRange] = React__default.useState({
51955
53739
  "startDate": convertDateFormat(props.getValues('FromDate')),
@@ -51994,7 +53778,7 @@ const DateRangePickerComponent = ({ props }) => {
51994
53778
  "& .css-1holvmy, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
51995
53779
  top: "-10px",
51996
53780
  },
51997
- } }, { 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: () => {
53781
+ } }, { 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: () => {
51998
53782
  setOpen(true);
51999
53783
  } }), open && (jsxRuntimeExports.jsx(Box, Object.assign({ sx: {
52000
53784
  position: "absolute",
@@ -52013,16 +53797,14 @@ const DateRangePickerComponent = ({ props }) => {
52013
53797
  const useStyles$1 = makeStyles((theme) => ({
52014
53798
  option: {
52015
53799
  fontSize: "11px",
52016
- fontFamily: "Roboto-Reg",
52017
53800
  zIndex: 2000,
52018
53801
  },
52019
53802
  option2: {
52020
53803
  fontSize: "11px",
52021
- fontFamily: "Roboto-Reg",
52022
53804
  zIndex: 2000,
52023
53805
  },
52024
53806
  }));
52025
- const SingleSelect = ({ props }) => {
53807
+ const SingleSelect = ({ props, variant }) => {
52026
53808
  const classes = useStyles$1();
52027
53809
  // const valueRender = props.item.options?.find(
52028
53810
  // (item) => item.value === props.getValues(props.item.name)
@@ -52030,7 +53812,7 @@ const SingleSelect = ({ props }) => {
52030
53812
  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
52031
53813
  return (jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52032
53814
  var _a;
52033
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(Autocomplete, Object.assign({}, field, { value: props.getValues(props.item.name)
53815
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(Autocomplete, Object.assign({}, field, { value: props.getValues(props.item.name)
52034
53816
  ? (_a = props.item.options) === null || _a === void 0 ? void 0 : _a.find((item) => item.value === props.getValues(props.item.name))
52035
53817
  : null, onChange: (_, newValue) => {
52036
53818
  var _a, _b, _c;
@@ -52062,7 +53844,7 @@ const SingleSelect = ({ props }) => {
52062
53844
  },
52063
53845
  },
52064
53846
  }, getOptionLabel: (option) => option.label, renderInput: (params) => {
52065
- 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 ? ' *' : ''}` })) })));
53847
+ 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 ? " *" : ""}` : '' })) })));
52066
53848
  }, isOptionEqualToValue: isOptionEqualToValue })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] }));
52067
53849
  } }, props.item.name));
52068
53850
  };
@@ -52075,14 +53857,14 @@ var VisibilityOff = createSvgIcon$1( /*#__PURE__*/jsxRuntimeExports.jsx("path",
52075
53857
  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"
52076
53858
  }), 'VisibilityOff');
52077
53859
 
52078
- const PasswordField = ({ props }) => {
53860
+ const PasswordField = ({ props, variant }) => {
52079
53861
  const [showPassword, setShowPassword] = useState(false);
52080
53862
  const handleTogglePasswordVisibility = () => {
52081
53863
  setShowPassword((prevShowPassword) => !prevShowPassword);
52082
53864
  };
52083
53865
  return (jsxRuntimeExports.jsxs(FormControl, Object.assign({ fullWidth: true }, { children: [" ", jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52084
53866
  var _a, _b;
52085
- 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: {
53867
+ 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: {
52086
53868
  width: "100%",
52087
53869
  "& .css-kichxs-MuiFormLabel-root-MuiInputLabel-root,.css-1holvmy": {
52088
53870
  top: "-8px",
@@ -52114,65 +53896,64 @@ const PasswordField = ({ props }) => {
52114
53896
  } })] })));
52115
53897
  };
52116
53898
 
52117
- const Monthpickerrender = ({ props }) => {
53899
+ const Monthpickerrender = ({ props, variant }) => {
52118
53900
  const ref = useRef(null);
52119
53901
  const [calenderOpen, setCalenderOpen] = useState(false);
52120
53902
  return (jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52121
53903
  var _a, _b;
52122
- 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
52123
- ? dayjs(formatDateMonthAndYear(field.value || null))
52124
- : null, slotProps: {
52125
- textField: {
52126
- onClick: () => setCalenderOpen(true),
52127
- // onBlur: () => setCalenderOpen(false),
52128
- },
52129
- }, disableOpenPicker: props.item.disable,
52130
- // onMonthChange={() => setCalenderOpen(false)}
52131
- // onYearChange={() => setCalenderOpen(false)}
52132
- open: calenderOpen, defaultValue: field.value, onChange: (date) => {
52133
- field.onChange(dayjs(date).format("MM/YYYY"));
52134
- props.setValue(dayjs(date).format("MM/YYYY"));
52135
- }, sx: {
52136
- "& .css-1holvmy,.css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52137
- top: "-10px",
52138
- },
52139
- "& input": {
52140
- paddingRight: "0px !important",
52141
- },
52142
- "& button": {
52143
- paddingLeft: "0px !important",
52144
- paddingRight: "0px !important",
52145
- },
52146
- },
52147
- // renderInput={(params:any) => (
52148
- // <TextField
52149
- // {...params}
52150
- // fullWidth
52151
- // disabled={props.item.disable || false}
52152
- // InputLabelProps={{
52153
- // shrink: true,
52154
- // }}
52155
- // inputProps={{
52156
- // min: props.item.minDate,
52157
- // }}
52158
- // />
52159
- // )}
52160
- // ToolbarComponent={({ date, decreaseMonth, increaseMonth }:any) => (
52161
- // <div>
52162
- // <button onClick={decreaseMonth}>&lt;</button>
52163
- // <span>{date.getMonth() + 1}</span>
52164
- // <button onClick={increaseMonth}>&gt;</button>
52165
- // </div>
52166
- // )}
52167
- 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: {
52168
- fontFamily: "Roboto-Reg",
53904
+ 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
53905
+ ? dayjs(formatDateMonthAndYear(field.value || null))
53906
+ : null, slotProps: {
53907
+ textField: {
53908
+ onClick: () => setCalenderOpen(true),
53909
+ // onBlur: () => setCalenderOpen(false),
53910
+ },
53911
+ }, disableOpenPicker: props.item.disable,
53912
+ // onMonthChange={() => setCalenderOpen(false)}
53913
+ // onYearChange={() => setCalenderOpen(false)}
53914
+ open: calenderOpen, defaultValue: field.value, onChange: (date) => {
53915
+ field.onChange(dayjs(date).format("MM/YYYY"));
53916
+ props.setValue(dayjs(date).format("MM/YYYY"));
53917
+ }, sx: {
53918
+ "& .css-1holvmy,.css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
53919
+ top: "-10px",
53920
+ },
53921
+ "& input": {
53922
+ paddingRight: "0px !important",
53923
+ },
53924
+ "& button": {
53925
+ paddingLeft: "0px !important",
53926
+ paddingRight: "0px !important",
53927
+ },
53928
+ },
53929
+ // renderInput={(params:any) => (
53930
+ // <TextField
53931
+ // {...params}
53932
+ // fullWidth
53933
+ // disabled={props.item.disable || false}
53934
+ // InputLabelProps={{
53935
+ // shrink: true,
53936
+ // }}
53937
+ // inputProps={{
53938
+ // min: props.item.minDate,
53939
+ // }}
53940
+ // />
53941
+ // )}
53942
+ // ToolbarComponent={({ date, decreaseMonth, increaseMonth }:any) => (
53943
+ // <div>
53944
+ // <button onClick={decreaseMonth}>&lt;</button>
53945
+ // <span>{date.getMonth() + 1}</span>
53946
+ // <button onClick={increaseMonth}>&gt;</button>
53947
+ // </div>
53948
+ // )}
53949
+ 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: {
52169
53950
  fontSize: "11px",
52170
53951
  color: "#3651d3",
52171
53952
  } }, { 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 }) })] }));
52172
53953
  } }));
52173
53954
  };
52174
53955
 
52175
- const DatepickerWrapperV2 = ({ props }) => {
53956
+ const DatepickerWrapperV2 = ({ props, variant }) => {
52176
53957
  const inputTextRef = useRef();
52177
53958
  const [open, setOpen] = useState(false);
52178
53959
  const handleToggle = () => {
@@ -52184,40 +53965,39 @@ const DatepickerWrapperV2 = ({ props }) => {
52184
53965
  };
52185
53966
  return (jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52186
53967
  var _a, _b, _c, _d, _e, _f;
52187
- 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"
52188
- ? dayjs(field.value, "DD/MM/YYYY")
52189
- : (field.value === null || field.value === undefined) && null, open: open, className: "read-only", format: "DD/MM/YYYY", disabled: props.item.disable || false, onChange: (date) => {
52190
- var _a, _b;
52191
- field.onChange(dayjs(date).format("DD/MM/YYYY"));
52192
- ((_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());
52193
- }, onOpen: handleToggle, onClose: handleToggle, slotProps: {
52194
- textField: {
52195
- // style: { input: { cursor: "pointer" } },
52196
- onClick: () => handleToggle(),
52197
- inputRef: inputTextRef,
52198
- onBlur: (e) => {
52199
- var _a, _b;
52200
- ((_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));
52201
- }
52202
- // onFocus: () => inputTextRef.current?.blur(),
52203
- },
52204
- }, sx: {
52205
- "& .css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root,.css-zy8vme,.css-1holvmy,.css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52206
- top: "-10px !important",
52207
- },
52208
- "& input:hover": {
52209
- cursor: "pointer",
52210
- },
52211
- }, 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: {
52212
- fontFamily: "Roboto-Reg",
53968
+ 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"
53969
+ ? dayjs(field.value, "DD/MM/YYYY")
53970
+ : (field.value === null || field.value === undefined) && null : '', open: open, className: "read-only", format: "DD/MM/YYYY", disabled: props.item.disable || false, onChange: (date) => {
53971
+ var _a, _b;
53972
+ field.onChange(dayjs(date).format("DD/MM/YYYY"));
53973
+ ((_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());
53974
+ }, onOpen: handleToggle, onClose: handleToggle, slotProps: {
53975
+ textField: {
53976
+ // style: { input: { cursor: "pointer" } },
53977
+ onClick: () => handleToggle(),
53978
+ inputRef: inputTextRef,
53979
+ onBlur: (e) => {
53980
+ var _a, _b;
53981
+ ((_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));
53982
+ }
53983
+ // onFocus: () => inputTextRef.current?.blur(),
53984
+ },
53985
+ }, sx: {
53986
+ "& .css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root,.css-zy8vme,.css-1holvmy,.css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
53987
+ top: "-10px !important",
53988
+ },
53989
+ "& input:hover": {
53990
+ cursor: "pointer",
53991
+ },
53992
+ }, 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: {
52213
53993
  fontSize: "11px",
52214
53994
  color: "#3651d3",
52215
53995
  } }, { 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 }) }))] }));
52216
53996
  } }, props.item.name));
52217
53997
  };
52218
53998
 
52219
- const FormRenderFileUpload = ({ props }) => {
52220
- var _a, _b, _c;
53999
+ const FormRenderFileUpload = ({ props, variant }) => {
54000
+ var _a;
52221
54001
  useEffect(() => {
52222
54002
  if (props.getValues(props.item.name) === null ||
52223
54003
  props.getValues(props.item.name) === undefined) {
@@ -52228,7 +54008,7 @@ const FormRenderFileUpload = ({ props }) => {
52228
54008
  }
52229
54009
  }
52230
54010
  }, [props.getValues(props.item.name)]);
52231
- 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: {
54011
+ 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: {
52232
54012
  accept: props.item.fileType === "excel"
52233
54013
  ? ".xls, .xlsx"
52234
54014
  : props.item.fileType === "pdf"
@@ -52290,25 +54070,23 @@ const FormRenderFileUpload = ({ props }) => {
52290
54070
  const useStyles = makeStyles((theme) => ({
52291
54071
  option: {
52292
54072
  fontSize: "11px",
52293
- fontFamily: "Roboto-Reg",
52294
54073
  zIndex: 2000,
52295
54074
  },
52296
54075
  option2: {
52297
54076
  fontSize: "11px",
52298
- fontFamily: "Roboto-Reg",
52299
54077
  zIndex: 2000,
52300
54078
  },
52301
54079
  }));
52302
- const SingleSelectNonAutoComplete = ({ props }) => {
54080
+ const SingleSelectNonAutoComplete = ({ props, variant }) => {
52303
54081
  useStyles();
52304
- 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",
54082
+ 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",
52305
54083
  // {...props.register(props.item.name)}
52306
- 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) => {
54084
+ value: props.getValues(props.item.name), label: variant !== "standard" ?
54085
+ `${props.item.label}${props.item.required ? " *" : ""}` : '', onChange: (e) => props.setValue(props.item.name, e.target.value), onBlur: (e) => {
52307
54086
  var _a, _b;
52308
54087
  ((_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));
52309
54088
  } }, { children: props.item.options.map((item) => (jsxRuntimeExports.jsx(MenuItem, Object.assign({ sx: {
52310
54089
  fontSize: "11px",
52311
- fontFamily: "Roboto-Reg",
52312
54090
  zIndex: 2000,
52313
54091
  }, value: item.value }, { children: item.label })))) })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] }), props.item.name));
52314
54092
  };
@@ -52332,7 +54110,7 @@ const FormActiveSwitch = ({ props }) => {
52332
54110
  return !prevActive;
52333
54111
  });
52334
54112
  }, [setValue, item.name]);
52335
- 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" })] }))] })) }));
54113
+ 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" })] }))] })) }));
52336
54114
  };
52337
54115
 
52338
54116
  var joditReact = {exports: {}};
@@ -52413,9 +54191,23 @@ const RichTextEditor = ({ props }) => {
52413
54191
  return (jsxRuntimeExports.jsx(JoditEditor, { ref: editor, value: content, config: config, tabIndex: 1, onBlur: handleBlur, onChange: handleChange }));
52414
54192
  };
52415
54193
 
52416
- const renderLabel = (label, isRequired, alignRight) => {
52417
- 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: " *" }) : ""] })) })));
52418
- };
54194
+ // export const renderLabel = (
54195
+ // label: string,
54196
+ // isRequired?: boolean,
54197
+ // alignRight?: boolean
54198
+ // ) => {
54199
+ // return (
54200
+ // <LabelComponent
54201
+ // container
54202
+ // style={{ justifyContent: alignRight ? "flex-end" : "normal" }}
54203
+ // >
54204
+ // <Box fontSize={"12px"}>
54205
+ // {label}
54206
+ // {isRequired ? <ImportantMark> *</ImportantMark> : ""}
54207
+ // </Box>
54208
+ // </LabelComponent>
54209
+ // );
54210
+ // };
52419
54211
  function formatDateMonthAndYear(date) {
52420
54212
  // Check if date is a string
52421
54213
  if (typeof date !== "string") {
@@ -52428,31 +54220,29 @@ function formatDateMonthAndYear(date) {
52428
54220
  // Return the formatted date with day set to '01'
52429
54221
  return `${formattedMonth}/01/${year}`;
52430
54222
  }
54223
+ 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: "*" }))] })));
52431
54224
  const RenderForm = (props) => {
52432
54225
  var _a, _b;
52433
- console.log(props, "propsprops", props.item.inputType);
54226
+ const variant = props.variant || "";
52434
54227
  switch ((_a = props.item) === null || _a === void 0 ? void 0 : _a.inputType) {
52435
54228
  case "text":
52436
54229
  case "multiEmail":
52437
54230
  case "email":
52438
54231
  return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52439
54232
  var _a, _b;
52440
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { fullWidth: true,
54233
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { fullWidth: true,
52441
54234
  // error={props.errors}
52442
- label: `${props.item.label}${props.item.required ? " *" : ""}`, placeholder: props.item.placeholder || "", InputProps: {
54235
+ label: variant !== "standard" ?
54236
+ `${props.item.label}${props.item.required ? " *" : ""}` : '', placeholder: props.item.placeholder || "", InputProps: {
52443
54237
  style: {
52444
- fontFamily: "Roboto-Reg",
52445
54238
  border: "none",
52446
54239
  },
52447
- }, autoComplete: "off", sx: Object.assign({ fontFamily: "Roboto-Reg", "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
54240
+ }, autoComplete: "off", sx: Object.assign({ "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52448
54241
  top: "-10px",
52449
54242
  // fontSize:'14px !important'
52450
54243
  }, "& .css-2rul56-MuiFormLabel-root-MuiInputLabel-root": {
52451
54244
  top: "-10px",
52452
- fontFamily: "Roboto-Reg",
52453
- }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {
52454
- fontFamily: "Roboto-Reg",
52455
- }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
54245
+ }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {}, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
52456
54246
  outline: "none",
52457
54247
  border: "1px solid #ced4da", // Add this line to set border to none
52458
54248
  }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input:focus ": {
@@ -52487,22 +54277,20 @@ const RenderForm = (props) => {
52487
54277
  }
52488
54278
  },
52489
54279
  } })), ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.helperText) && (jsxRuntimeExports.jsxs("span", Object.assign({ style: {
52490
- fontFamily: "Roboto-Reg",
52491
54280
  fontSize: "11px",
52492
54281
  color: "#3651d3",
52493
54282
  } }, { 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 }) })] }));
52494
54283
  } }, props.item.name) }));
52495
54284
  case "rich-text-editor":
52496
- 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) }));
54285
+ 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) }));
52497
54286
  case "register-number":
52498
54287
  return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52499
54288
  var _a, _b;
52500
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { fullWidth: true, onBlur: (e) => {
54289
+ return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderLabel(variant, props), jsxRuntimeExports.jsx(TextField, Object.assign({}, field, { fullWidth: true, onBlur: (e) => {
52501
54290
  var _a, _b;
52502
54291
  ((_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));
52503
- }, label: `${props.item.label}${props.item.required ? " *" : ""}`, InputProps: {
54292
+ }, label: variant !== "standard" ? `${props.item.label}${props.item.required ? " *" : ""}` : '', InputProps: {
52504
54293
  style: {
52505
- fontFamily: "Roboto-Reg",
52506
54294
  border: "none",
52507
54295
  },
52508
54296
  }, onInput: (e) => {
@@ -52510,15 +54298,12 @@ const RenderForm = (props) => {
52510
54298
  .replace(/\s/g, "")
52511
54299
  .replace(/[^a-zA-Z0-9!@#$%^&*()_+{}\[\]:;<>,.?/~`|\\-]/g, "");
52512
54300
  props.item.onInputProps && props.item.onInputProps(e);
52513
- }, sx: Object.assign({ fontFamily: "Roboto-Reg", "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
54301
+ }, sx: Object.assign({ "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52514
54302
  top: "-10px",
52515
54303
  // fontSize:'14px !important'
52516
54304
  }, "& .css-2rul56-MuiFormLabel-root-MuiInputLabel-root": {
52517
54305
  top: "-10px",
52518
- fontFamily: "Roboto-Reg",
52519
- }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {
52520
- fontFamily: "Roboto-Reg",
52521
- }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
54306
+ }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {}, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
52522
54307
  outline: "none",
52523
54308
  border: "1px solid #ced4da", // Add this line to set border to none
52524
54309
  }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input:focus ": {
@@ -52527,17 +54312,16 @@ const RenderForm = (props) => {
52527
54312
  } }, props.item.sx),
52528
54313
  // classes={{ option: { color: "red !important" } }}
52529
54314
  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: {
52530
- fontFamily: "Roboto-Reg",
52531
54315
  fontSize: "11px",
52532
54316
  color: "#3651d3",
52533
54317
  } }, { 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 }) })] }));
52534
54318
  } }, props.item.name) }));
52535
54319
  case "password":
52536
- return (jsxRuntimeExports.jsx(Box, Object.assign({ position: "relative" }, { children: jsxRuntimeExports.jsx(PasswordField, { props: props }) }), props.item.name));
54320
+ return (jsxRuntimeExports.jsx(Box, Object.assign({ position: "relative" }, { children: jsxRuntimeExports.jsx(PasswordField, { props: props, variant: variant }) }), props.item.name));
52537
54321
  case "select":
52538
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(SingleSelect, { props: props }) }));
54322
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(SingleSelect, { props: props, variant: variant }) }));
52539
54323
  case "select-v2":
52540
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(SingleSelectNonAutoComplete, { props: props }) }));
54324
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(SingleSelectNonAutoComplete, { props: props, variant: variant }) }));
52541
54325
  // case "select-search-api":
52542
54326
  // return (
52543
54327
  // <>
@@ -52548,7 +54332,7 @@ const RenderForm = (props) => {
52548
54332
  case "pincode":
52549
54333
  case "phoneNumber":
52550
54334
  return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Controller, { control: props.control, name: props.item.name, render: ({ field }) => {
52551
- 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) => {
54335
+ 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) => {
52552
54336
  var _a, _b;
52553
54337
  e.target.value = e.target.value.replace(/[^0-9]/g, "");
52554
54338
  if (e.target.value === "") {
@@ -52586,7 +54370,7 @@ const RenderForm = (props) => {
52586
54370
  }, disabled: props.item.disable })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] }));
52587
54371
  } }, props.item.name) }));
52588
54372
  case "decimal":
52589
- 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: {
54373
+ 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: {
52590
54374
  "& input": {
52591
54375
  textAlign: "right",
52592
54376
  },
@@ -52815,45 +54599,41 @@ const RenderForm = (props) => {
52815
54599
  // </>
52816
54600
  // );
52817
54601
  case "datepicker":
52818
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(DatepickerWrapperV2, { props: props }) }));
54602
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(DatepickerWrapperV2, { props: props, variant: variant }) }));
52819
54603
  case "yearpicker":
52820
- 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: {
52821
- "& .css-1holvmy, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52822
- top: "-10px",
52823
- },
52824
- }, label: `${props.item.label}${props.item.required ? " *" : ""}`, views: ["year"], value: field.value ? dayjs(field.value) : null, onChange: (date) => field.onChange(date),
52825
- // minDate={}
52826
- slots: {
52827
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
52828
- textField: (textFieldProps) => (jsxRuntimeExports.jsx(TextField, Object.assign({}, textFieldProps, { fullWidth: true, disabled: props.item.disable || false, InputLabelProps: {
52829
- shrink: true,
52830
- } }))),
52831
- } }) })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] })) }, props.item.name) }));
54604
+ 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: {
54605
+ "& .css-1holvmy, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
54606
+ top: "-10px",
54607
+ },
54608
+ }, label: variant !== "standard" ? `${props.item.label}${props.item.required ? " *" : ""}` : '', views: ["year"], value: field.value ? dayjs(field.value) : null, onChange: (date) => field.onChange(date),
54609
+ // minDate={}
54610
+ slots: {
54611
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
54612
+ textField: (textFieldProps) => (jsxRuntimeExports.jsx(TextField, Object.assign({}, textFieldProps, { fullWidth: true, disabled: props.item.disable || false, InputLabelProps: {
54613
+ shrink: true,
54614
+ } }))),
54615
+ } })] })), jsxRuntimeExports.jsx(ErrorMessageComponent, { children: jsxRuntimeExports.jsx(s, { errors: props.errors, name: props.item.name }) })] })) }, props.item.name) }));
52832
54616
  case "dateRangePicker":
52833
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(DateRangePickerComponent, { props: props }) }));
54617
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(DateRangePickerComponent, { props: props, variant: variant }) }));
52834
54618
  case "monthpicker":
52835
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Monthpickerrender, { props: props }) }));
54619
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(Monthpickerrender, { props: props, variant: variant }) }));
52836
54620
  case "multiselect":
52837
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(MultiSelectV1, { props: props }) }));
54621
+ return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(MultiSelectV1, { props: props, variant: variant }) }));
52838
54622
  case "file":
52839
- return jsxRuntimeExports.jsx(FormRenderFileUpload, { props: props });
54623
+ return jsxRuntimeExports.jsx(FormRenderFileUpload, { props: props, variant: variant });
52840
54624
  case "textarea":
52841
- 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: {
54625
+ 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: {
52842
54626
  style: {
52843
- fontFamily: "Roboto-Reg",
52844
54627
  border: "none",
52845
54628
  },
52846
- }, sx: Object.assign({ fontFamily: "Roboto-Reg", "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
54629
+ }, sx: Object.assign({ "& .css-1holvmy,.css-lqj8pz-MuiFormLabel-root-MuiInputLabel-root, .css-kichxs-MuiFormLabel-root-MuiInputLabel-root": {
52847
54630
  top: "-10px",
52848
54631
  }, "& input": {
52849
54632
  fontSize: "11px",
52850
54633
  // textTransform:'uppercase'
52851
54634
  }, "& .css-2rul56-MuiFormLabel-root-MuiInputLabel-root": {
52852
54635
  top: "-10px",
52853
- fontFamily: "Roboto-Reg",
52854
- }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {
52855
- fontFamily: "Roboto-Reg",
52856
- }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
54636
+ }, "& .css-12ciryo-MuiFormLabel-root-MuiInputLabel-root ": {}, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input ": {
52857
54637
  outline: "none",
52858
54638
  border: "1px solid #ced4da", // Add this line to set border to none
52859
54639
  }, "& .css-1gq5vhi-MuiInputBase-root-MuiOutlinedInput-root input:focus ": {
@@ -52867,7 +54647,7 @@ const RenderForm = (props) => {
52867
54647
  // textTransform:'uppercase'
52868
54648
  maxHeight: "500px !important",
52869
54649
  overflow: "auto",
52870
- } }, 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: {
54650
+ } }, 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: {
52871
54651
  onInput: (e) => {
52872
54652
  var _a;
52873
54653
  if (!((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.allowSpecialChars)) {
@@ -52964,9 +54744,7 @@ const customTheme = createTheme({
52964
54744
  xl: 1536,
52965
54745
  },
52966
54746
  },
52967
- typography: {
52968
- fontFamily: 'Roboto-Reg'
52969
- },
54747
+ typography: {},
52970
54748
  palette: {
52971
54749
  // primary: {
52972
54750
  // // main: 'linear-gradient(135deg, #6379c3 0%, #546ee5 60%)',
@@ -53010,7 +54788,6 @@ const customTheme = createTheme({
53010
54788
  MuiButton: {
53011
54789
  styleOverrides: {
53012
54790
  root: {
53013
- fontFamily: 'Roboto-Reg',
53014
54791
  textTransform: 'none'
53015
54792
  }
53016
54793
  }
@@ -53024,7 +54801,7 @@ const FormRenderWrapper = ({ formArray, name, numberOfColumns = 3, form, }) => {
53024
54801
  // useEffect(() => {
53025
54802
  // // form.reset(initialValues, { resolver: yupResolver(validationSchema) });
53026
54803
  // }, [formArray, validationSchema, initialValues]);
53027
- return (jsxRuntimeExports.jsx(ThemeProvider, Object.assign({ theme: customTheme }, { children: jsxRuntimeExports.jsx(FormComponent, Object.assign({ container: true, margin: "auto" }, { children: formArray.map((item, i) => {
54804
+ return (jsxRuntimeExports.jsx(ThemeProvider$3, Object.assign({ theme: customTheme }, { children: jsxRuntimeExports.jsx(FormComponent, Object.assign({ container: true, margin: "auto" }, { children: formArray.map((item, i) => {
53028
54805
  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));
53029
54806
  }) })) })));
53030
54807
  };
@@ -55622,7 +57399,7 @@ newStyled(Button)(({ theme }) => ({
55622
57399
  ":hover": { background: "orange" },
55623
57400
  }));
55624
57401
  newStyled(Typography)(({ theme }) => ({
55625
- fontFamily: "Roboto-Med",
57402
+ // fontFamily: "Roboto-Med",
55626
57403
  }));
55627
57404
  newStyled(Grid, {
55628
57405
  shouldForwardProp: (prop) => prop !== "isActive" && prop !== "noOfColumn",
@@ -55637,7 +57414,7 @@ newStyled(Grid, {
55637
57414
  border: "1px solid #0003",
55638
57415
  fontSize: "12px",
55639
57416
  padding: "6px",
55640
- fontFamily: "Roboto",
57417
+ // fontFamily: "Roboto",
55641
57418
  textAlign: "center",
55642
57419
  [theme.breakpoints.down("md")]: {
55643
57420
  width: "100%",
@@ -55663,7 +57440,7 @@ newStyled(DialogTitle)(({ theme }) => ({
55663
57440
  justifyContent: "space-between",
55664
57441
  fontSize: "14px",
55665
57442
  cursor: "move",
55666
- fontFamily: "Roboto",
57443
+ // fontFamily: "Roboto",
55667
57444
  borderBottom: "1px solid rgb(229 231 235 / 1)",
55668
57445
  }));
55669
57446
 
@@ -55685,7 +57462,7 @@ const ConfirmationDialog = ({ openConfirmDialog, handleCancel, onClickSubmit, te
55685
57462
  display: "flex",
55686
57463
  alignItems: "center",
55687
57464
  justifyContent: "space-between",
55688
- fontFamily: "Roboto",
57465
+ // fontFamily: "Roboto",
55689
57466
  fontSize: "14px",
55690
57467
  cursor: "move",
55691
57468
  borderBottom: "1px solid rgb(229 231 235 / 1)",
@@ -55693,7 +57470,7 @@ const ConfirmationDialog = ({ openConfirmDialog, handleCancel, onClickSubmit, te
55693
57470
  "& .pt-0": {
55694
57471
  paddingTop: 0,
55695
57472
  },
55696
- } }, { 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: {
57473
+ } }, { 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: {
55697
57474
  display: "flex",
55698
57475
  justifyContent: "flex-end",
55699
57476
  gap: "8px",
@@ -55784,5 +57561,5 @@ const SessionTimeOut = ({ sessionTime, handleSubmitSession, onSessionExpire, han
55784
57561
  return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(ConfirmationDialog, { openConfirmDialog: openConfirmModal, handleCancel: handleCancel, onClickSubmit: handleSubmit, text: sessionMessage, Submit: SubmitButtonName, buttonStyleProps: buttonStyleProps }) }));
55785
57562
  };
55786
57563
 
55787
- export { DeleteField, FormRenderWrapper as RenderForm, SessionTimeOut as SessionTimeoutField, useForm as useFormElement, useFormValidatingContext };
57564
+ export { Box as BoxTP, Button as ButtonTP, DeleteField, DeleteField as DeleteFieldTP, CssVarsProvider as Experimental_CssVarsProvider, Grid as GridTP, FormRenderWrapper as RenderForm, FormRenderWrapper as RenderFormTP, SessionTimeOut as SessionTimeoutField, SessionTimeOut as SessionTimeoutFieldTP, StyledEngineProvider, THEME_ID, ThemeProvider, ThemeProvider$3 as ThemeProviderTP, Typography as TypographyTP, adaptV4Theme, alpha, createMuiTheme, createStyles, createTheme, css$1 as css, darken, decomposeColor, duration, easing, emphasize, styled$1 as experimentalStyled, extendTheme as experimental_extendTheme, experimental_sx, getContrastRatio, getInitColorSchemeScript, getLuminance, getOverlayAlpha$1 as getOverlayAlpha, hexToRgb, hslToRgb, keyframes, lighten, makeStyles$1 as makeStyles, createMixins as private_createMixins, createTypography as private_createTypography, excludeVariablesFromRoot$1 as private_excludeVariablesFromRoot, recomposeColor, responsiveFontSizes, rgbToHex, shouldSkipGeneratingVar, styled$1 as styled, createMuiStrictModeTheme as unstable_createMuiStrictModeTheme, getUnit as unstable_getUnit, toUnitless as unstable_toUnitless, useColorScheme, useForm as useFormElement, useForm as useFormElementTP, useFormValidatingContext, useFormValidatingContext as useFormValidatingContextTP, useTheme$2 as useTheme, useThemeProps$1 as useThemeProps, withStyles, withTheme };
55788
57565
  //# sourceMappingURL=index.esm.js.map