azeriand-library 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -3,7 +3,7 @@
3
3
  try {
4
4
  if (typeof document != "undefined") {
5
5
  var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode(".card{\n /* border-radius: 20px; */\n color: var(--card-text-color, white);\n}\n\n.card.glass{\n background-color: color-mix(in oklch, var(--glass-color), transparent 80%);\n border: 1px solid color-mix(in oklch, var(--glass-color), transparent 40%);\n -webkit-backface-visibility: hidden;\n -webkit-perspective: 1000;\n -webkit-transform: translate3d(0,0,0);\n -webkit-transform: translateZ(0);\n backface-visibility: hidden;\n perspective: 1000;\n transform: translate3d(0,0,0);\n transform: translateZ(0);\n}\n\n.card.mate{\n background-color: var(--glass-color);\n}\n\n.card.outlined{\n border: solid white 2px;\n}\n\nbutton .card.ghost:hover, button .card.outlined:hover{\n background: color-mix(in oklch, var(--glass-color), transparent 80%);\n}\n\nbutton .card.glass:hover{\n box-shadow: 0 4px 10px color-mix(in oklch, var(--glass-color), transparent 85%);\n}\n\nbutton .card.mate:hover{\n background-color: color-mix(in oklch, var(--glass-color), white 10%) \n}\nbutton{\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n font-weight: bold;\n}\n\nbutton:focus {\n outline: revert;\n}\n.MuiDateCalendar-root{\n color: white;\n}"));
6
+ elementStyle.appendChild(document.createTextNode('.card{\n /* border-radius: 20px; */\n color: var(--card-text-color, white);\n}\n\n.card.glass{\n background-color: color-mix(in oklch, var(--glass-color), transparent 80%);\n border: 1px solid color-mix(in oklch, var(--glass-color), transparent 40%);\n -webkit-backface-visibility: hidden;\n -webkit-perspective: 1000;\n -webkit-transform: translate3d(0,0,0);\n -webkit-transform: translateZ(0);\n backface-visibility: hidden;\n perspective: 1000;\n transform: translate3d(0,0,0);\n transform: translateZ(0);\n}\n\n.card.mate{\n background-color: var(--glass-color);\n}\n\n.card.outlined{\n border: solid white 2px;\n}\n\nbutton .card.ghost:hover, button .card.outlined:hover{\n background: color-mix(in oklch, var(--glass-color), transparent 80%);\n}\n\nbutton .card.glass:hover{\n box-shadow: 0 4px 10px color-mix(in oklch, var(--glass-color), transparent 85%);\n}\n\nbutton .card.mate:hover{\n background-color: color-mix(in oklch, var(--glass-color), white 10%) \n}\nbutton{\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n font-weight: bold;\n}\n\nbutton:focus {\n outline: revert;\n}\n.section-name{\n color: hsla(0, 0%, 100%, 0.7);\n}input:disabled{\n color: hsla(0, 0%, 100%, 0.5);\n font-weight: bold;\n}\n\ninput::-moz-placeholder{\n color: hsla(0, 0%, 100%, 0.5);\n \n}\n\ninput::placeholder{\n color: hsla(0, 0%, 100%, 0.5);\n \n}\n\ninput::-webkit-outer-spin-button,\ninput::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\ninput:focus{\n outline: none;\n}.MuiDateCalendar-root{\n color: white;\n}.dropdown-content{\n box-shadow: rgba(149, 157, 165, 0.2)\n 0px 8px 24px;\n max-height: 40%vh;\n scrollbar-width: none;\n -ms-overflow-style: none;\n z-index: 10;\n}\n\n.dropdown-content::-webkit-scrollbar{\n width: 0;\n height: 0;\n}\n\n.dropdown-item:hover{\n background-color: rgb(240, 249, 255);\n}.button-open{\n border: rgb(147, 197, 253) 2px solid;\n}.vertical-line::before {\n content: "";\n position: absolute;\n width: 1.5px;\n height: 100%;\n background-color: white;\n left: 0;\n top: 0;\n transform: translateX(5.1px);\n}'));
7
7
  document.head.appendChild(elementStyle);
8
8
  }
9
9
  } catch (e) {
@@ -44,16 +44,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
44
44
  }
45
45
  );
46
46
  }
47
- function _extends() {
48
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
47
+ function _extends$1() {
48
+ return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
49
49
  for (var e = 1; e < arguments.length; e++) {
50
50
  var t = arguments[e];
51
51
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
52
52
  }
53
53
  return n;
54
- }, _extends.apply(null, arguments);
54
+ }, _extends$1.apply(null, arguments);
55
55
  }
56
- function _objectWithoutPropertiesLoose(r2, e) {
56
+ function _objectWithoutPropertiesLoose$1(r2, e) {
57
57
  if (null == r2) return {};
58
58
  var t = {};
59
59
  for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
@@ -2334,7 +2334,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2334
2334
  }
2335
2335
  });
2336
2336
  Styled.withComponent = function(nextTag, nextOptions) {
2337
- var newStyled = createStyled2(nextTag, _extends({}, options, nextOptions, {
2337
+ var newStyled = createStyled2(nextTag, _extends$1({}, options, nextOptions, {
2338
2338
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2339
2339
  }));
2340
2340
  return newStyled.apply(void 0, styles2);
@@ -4058,6 +4058,33 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
4058
4058
  };
4059
4059
  };
4060
4060
  const ClassNameGenerator = createClassNameGenerator();
4061
+ function createBox(options = {}) {
4062
+ const {
4063
+ themeId,
4064
+ defaultTheme: defaultTheme2,
4065
+ defaultClassName = "MuiBox-root",
4066
+ generateClassName
4067
+ } = options;
4068
+ const BoxRoot = styled$1("div", {
4069
+ shouldForwardProp: (prop) => prop !== "theme" && prop !== "sx" && prop !== "as"
4070
+ })(styleFunctionSx);
4071
+ const Box2 = /* @__PURE__ */ React__namespace.forwardRef(function Box3(inProps, ref) {
4072
+ const theme = useTheme$2(defaultTheme2);
4073
+ const {
4074
+ className,
4075
+ component = "div",
4076
+ ...other
4077
+ } = extendSxProp$1(inProps);
4078
+ return /* @__PURE__ */ jsxRuntime.jsx(BoxRoot, {
4079
+ as: component,
4080
+ ref,
4081
+ className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
4082
+ theme: themeId ? theme[themeId] || theme : theme,
4083
+ ...other
4084
+ });
4085
+ });
4086
+ return Box2;
4087
+ }
4061
4088
  const globalStateClasses = {
4062
4089
  active: "active",
4063
4090
  checked: "checked",
@@ -7334,9 +7361,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
7334
7361
  ...typeof cssVariables !== "boolean" && cssVariables
7335
7362
  }, ...args);
7336
7363
  }
7337
- const defaultTheme = createTheme();
7364
+ const defaultTheme$1 = createTheme();
7338
7365
  function useTheme() {
7339
- const theme = useTheme$2(defaultTheme);
7366
+ const theme = useTheme$2(defaultTheme$1);
7340
7367
  if (process.env.NODE_ENV !== "production") {
7341
7368
  React__namespace.useDebugValue(theme);
7342
7369
  }
@@ -7349,7 +7376,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
7349
7376
  return useThemeProps$1({
7350
7377
  props,
7351
7378
  name,
7352
- defaultTheme,
7379
+ defaultTheme: defaultTheme$1,
7353
7380
  themeId: THEME_ID
7354
7381
  });
7355
7382
  }
@@ -7359,7 +7386,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
7359
7386
  const rootShouldForwardProp = (prop) => slotShouldForwardProp(prop) && prop !== "classes";
7360
7387
  const styled = createStyled({
7361
7388
  themeId: THEME_ID,
7362
- defaultTheme,
7389
+ defaultTheme: defaultTheme$1,
7363
7390
  rootShouldForwardProp
7364
7391
  });
7365
7392
  function ThemeProviderNoVars({
@@ -7491,7 +7518,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
7491
7518
  components: {
7492
7519
  MuiLocalizationProvider: {
7493
7520
  defaultProps: {
7494
- localeText: _extends({}, pickersTranslations)
7521
+ localeText: _extends$1({}, pickersTranslations)
7495
7522
  }
7496
7523
  }
7497
7524
  }
@@ -7567,10 +7594,77 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
7567
7594
  };
7568
7595
  const DEFAULT_LOCALE = enUSPickers;
7569
7596
  getPickersLocalization(enUSPickers);
7597
+ const _excluded$d = ["localeText"];
7570
7598
  const PickerAdapterContext = /* @__PURE__ */ React__namespace.createContext(null);
7571
7599
  if (process.env.NODE_ENV !== "production") PickerAdapterContext.displayName = "PickerAdapterContext";
7572
- if (process.env.NODE_ENV !== "production") ;
7573
- process.env.NODE_ENV !== "production" ? {
7600
+ const LocalizationProvider = function LocalizationProvider2(inProps) {
7601
+ const {
7602
+ localeText: inLocaleText
7603
+ } = inProps, otherInProps = _objectWithoutPropertiesLoose$1(inProps, _excluded$d);
7604
+ const {
7605
+ adapter: parentAdapter,
7606
+ localeText: parentLocaleText
7607
+ } = React__namespace.useContext(PickerAdapterContext) ?? {
7608
+ adapter: void 0,
7609
+ localeText: void 0
7610
+ };
7611
+ const props = useThemeProps({
7612
+ // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
7613
+ // We will then merge this theme value with our value manually
7614
+ props: otherInProps,
7615
+ name: "MuiLocalizationProvider"
7616
+ });
7617
+ const {
7618
+ children,
7619
+ dateAdapter: DateAdapter,
7620
+ dateFormats,
7621
+ dateLibInstance,
7622
+ adapterLocale,
7623
+ localeText: themeLocaleText
7624
+ } = props;
7625
+ const localeText = React__namespace.useMemo(() => _extends$1({}, themeLocaleText, parentLocaleText, inLocaleText), [themeLocaleText, parentLocaleText, inLocaleText]);
7626
+ const adapter = React__namespace.useMemo(() => {
7627
+ if (!DateAdapter) {
7628
+ if (parentAdapter) {
7629
+ return parentAdapter;
7630
+ }
7631
+ return null;
7632
+ }
7633
+ const dateAdapter = new DateAdapter({
7634
+ locale: adapterLocale,
7635
+ formats: dateFormats,
7636
+ instance: dateLibInstance
7637
+ });
7638
+ if (!dateAdapter.isMUIAdapter) {
7639
+ throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`", "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", "More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
7640
+ `));
7641
+ }
7642
+ return dateAdapter;
7643
+ }, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentAdapter]);
7644
+ const defaultDates = React__namespace.useMemo(() => {
7645
+ if (!adapter) {
7646
+ return null;
7647
+ }
7648
+ return {
7649
+ minDate: adapter.date("1900-01-01T00:00:00.000"),
7650
+ maxDate: adapter.date("2099-12-31T00:00:00.000")
7651
+ };
7652
+ }, [adapter]);
7653
+ const contextValue = React__namespace.useMemo(() => {
7654
+ return {
7655
+ utils: adapter,
7656
+ adapter,
7657
+ defaultDates,
7658
+ localeText
7659
+ };
7660
+ }, [defaultDates, adapter, localeText]);
7661
+ return /* @__PURE__ */ jsxRuntime.jsx(PickerAdapterContext.Provider, {
7662
+ value: contextValue,
7663
+ children
7664
+ });
7665
+ };
7666
+ if (process.env.NODE_ENV !== "production") LocalizationProvider.displayName = "LocalizationProvider";
7667
+ process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
7574
7668
  // ----------------------------- Warning --------------------------------
7575
7669
  // | These PropTypes are generated from the TypeScript type definitions |
7576
7670
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -7631,8 +7725,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
7631
7725
  if (localization.adapter === null) {
7632
7726
  throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.", "It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));
7633
7727
  }
7634
- const localeText = React__namespace.useMemo(() => _extends({}, DEFAULT_LOCALE, localization.localeText), [localization.localeText]);
7635
- return React__namespace.useMemo(() => _extends({}, localization, {
7728
+ const localeText = React__namespace.useMemo(() => _extends$1({}, DEFAULT_LOCALE, localization.localeText), [localization.localeText]);
7729
+ return React__namespace.useMemo(() => _extends$1({}, localization, {
7636
7730
  localeText
7637
7731
  }), [localization, localeText]);
7638
7732
  };
@@ -7812,7 +7906,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
7812
7906
  textDisabled: true
7813
7907
  };
7814
7908
  const extendSxProp = internal_createExtendSxProp();
7815
- const useUtilityClasses$f = (ownerState) => {
7909
+ const useUtilityClasses$g = (ownerState) => {
7816
7910
  const {
7817
7911
  align,
7818
7912
  gutterBottom,
@@ -7955,7 +8049,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
7955
8049
  variantMapping
7956
8050
  };
7957
8051
  const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
7958
- const classes = useUtilityClasses$f(ownerState);
8052
+ const classes = useUtilityClasses$g(ownerState);
7959
8053
  return /* @__PURE__ */ jsxRuntime.jsx(TypographyRoot, {
7960
8054
  as: Component,
7961
8055
  ref,
@@ -8233,7 +8327,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
8233
8327
  return generateUtilityClass("MuiSvgIcon", slot);
8234
8328
  }
8235
8329
  generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
8236
- const useUtilityClasses$e = (ownerState) => {
8330
+ const useUtilityClasses$f = (ownerState) => {
8237
8331
  const {
8238
8332
  color: color2,
8239
8333
  fontSize,
@@ -8378,7 +8472,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
8378
8472
  if (!inheritViewBox) {
8379
8473
  more.viewBox = viewBox;
8380
8474
  }
8381
- const classes = useUtilityClasses$e(ownerState);
8475
+ const classes = useUtilityClasses$f(ownerState);
8382
8476
  return /* @__PURE__ */ jsxRuntime.jsxs(SvgIconRoot, {
8383
8477
  as: component,
8384
8478
  className: clsx(classes.root, className),
@@ -8484,6 +8578,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
8484
8578
  Component.muiName = SvgIcon.muiName;
8485
8579
  return /* @__PURE__ */ React__namespace.memo(/* @__PURE__ */ React__namespace.forwardRef(Component));
8486
8580
  }
8581
+ function ownerDocument(node2) {
8582
+ return node2 && node2.ownerDocument || document;
8583
+ }
8487
8584
  function useControlled(props) {
8488
8585
  const {
8489
8586
  controlled,
@@ -8922,7 +9019,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
8922
9019
  _this$props.onExiting;
8923
9020
  _this$props.onExited;
8924
9021
  _this$props.nodeRef;
8925
- var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
9022
+ var childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
8926
9023
  return (
8927
9024
  // allows for nested Transitions
8928
9025
  /* @__PURE__ */ React.createElement(TransitionGroupContext.Provider, {
@@ -9245,8 +9342,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
9245
9342
  _proto.render = function render() {
9246
9343
  var _this$props = this.props;
9247
9344
  _this$props.classNames;
9248
- var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
9249
- return /* @__PURE__ */ React.createElement(Transition, _extends({}, props, {
9345
+ var props = _objectWithoutPropertiesLoose$1(_this$props, ["classNames"]);
9346
+ return /* @__PURE__ */ React.createElement(Transition, _extends$1({}, props, {
9250
9347
  onEnter: this.onEnter,
9251
9348
  onEntered: this.onEntered,
9252
9349
  onEntering: this.onEntering,
@@ -9260,7 +9357,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
9260
9357
  CSSTransition.defaultProps = {
9261
9358
  classNames: ""
9262
9359
  };
9263
- CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, Transition.propTypes, {
9360
+ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition.propTypes, {
9264
9361
  /**
9265
9362
  * The animation classNames applied to the component as it appears, enters,
9266
9363
  * exits or has finished the transition. A single name can be provided, which
@@ -9533,7 +9630,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
9533
9630
  }
9534
9631
  if (this.mounted) {
9535
9632
  this.setState(function(state) {
9536
- var children = _extends({}, state.children);
9633
+ var children = _extends$1({}, state.children);
9537
9634
  delete children[child.key];
9538
9635
  return {
9539
9636
  children
@@ -9542,7 +9639,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
9542
9639
  }
9543
9640
  };
9544
9641
  _proto.render = function render() {
9545
- var _this$props = this.props, Component = _this$props.component, childFactory = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
9642
+ var _this$props = this.props, Component = _this$props.component, childFactory = _this$props.childFactory, props = _objectWithoutPropertiesLoose$1(_this$props, ["component", "childFactory"]);
9546
9643
  var contextValue = this.state.contextValue;
9547
9644
  var children = values(this.state.children).map(childFactory);
9548
9645
  delete props.appear;
@@ -10013,7 +10110,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
10013
10110
  return generateUtilityClass("MuiButtonBase", slot);
10014
10111
  }
10015
10112
  const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disabled", "focusVisible"]);
10016
- const useUtilityClasses$d = (ownerState) => {
10113
+ const useUtilityClasses$e = (ownerState) => {
10017
10114
  const {
10018
10115
  disabled,
10019
10116
  focusVisible,
@@ -10229,7 +10326,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
10229
10326
  tabIndex,
10230
10327
  focusVisible
10231
10328
  };
10232
- const classes = useUtilityClasses$d(ownerState);
10329
+ const classes = useUtilityClasses$e(ownerState);
10233
10330
  return /* @__PURE__ */ jsxRuntime.jsxs(ButtonBaseRoot, {
10234
10331
  as: ComponentProp,
10235
10332
  className: clsx(classes.root, className),
@@ -10464,7 +10561,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
10464
10561
  const dashAnimation = typeof circularDashKeyframe !== "string" ? css`
10465
10562
  animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;
10466
10563
  ` : null;
10467
- const useUtilityClasses$c = (ownerState) => {
10564
+ const useUtilityClasses$d = (ownerState) => {
10468
10565
  const {
10469
10566
  classes,
10470
10567
  variant,
@@ -10598,7 +10695,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
10598
10695
  variant,
10599
10696
  enableTrackSlot
10600
10697
  };
10601
- const classes = useUtilityClasses$c(ownerState);
10698
+ const classes = useUtilityClasses$d(ownerState);
10602
10699
  const circleStyle = {};
10603
10700
  const rootStyle = {};
10604
10701
  const rootProps = {};
@@ -10722,7 +10819,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
10722
10819
  return generateUtilityClass("MuiIconButton", slot);
10723
10820
  }
10724
10821
  const iconButtonClasses = generateUtilityClasses("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]);
10725
- const useUtilityClasses$b = (ownerState) => {
10822
+ const useUtilityClasses$c = (ownerState) => {
10726
10823
  const {
10727
10824
  classes,
10728
10825
  disabled,
@@ -10907,7 +11004,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
10907
11004
  loadingIndicator,
10908
11005
  size
10909
11006
  };
10910
- const classes = useUtilityClasses$b(ownerState);
11007
+ const classes = useUtilityClasses$c(ownerState);
10911
11008
  return /* @__PURE__ */ jsxRuntime.jsxs(IconButtonRoot, {
10912
11009
  id: loading ? loadingId : idProp,
10913
11010
  className: clsx(classes.root, className),
@@ -11052,7 +11149,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11052
11149
  }
11053
11150
  generateUtilityClasses("MuiPickersArrowSwitcher", ["root", "spacer", "button", "previousIconButton", "nextIconButton", "leftArrowIcon", "rightArrowIcon"]);
11054
11151
  const usePickerPrivateContext = () => React__namespace.useContext(PickerPrivateContext);
11055
- const _excluded$b = ["children", "className", "slots", "slotProps", "isNextDisabled", "isNextHidden", "onGoToNext", "nextLabel", "isPreviousDisabled", "isPreviousHidden", "onGoToPrevious", "previousLabel", "labelId", "classes"], _excluded2$2 = ["ownerState"], _excluded3 = ["ownerState"];
11152
+ const _excluded$c = ["children", "className", "slots", "slotProps", "isNextDisabled", "isNextHidden", "onGoToNext", "nextLabel", "isPreviousDisabled", "isPreviousHidden", "onGoToPrevious", "previousLabel", "labelId", "classes"], _excluded2$2 = ["ownerState"], _excluded3 = ["ownerState"];
11056
11153
  const PickersArrowSwitcherRoot = styled("div", {
11057
11154
  name: "MuiPickersArrowSwitcher",
11058
11155
  slot: "Root"
@@ -11080,7 +11177,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11080
11177
  }
11081
11178
  }]
11082
11179
  });
11083
- const useUtilityClasses$a = (classes) => {
11180
+ const useUtilityClasses$b = (classes) => {
11084
11181
  const slots = {
11085
11182
  root: ["root"],
11086
11183
  spacer: ["spacer"],
@@ -11113,11 +11210,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11113
11210
  previousLabel,
11114
11211
  labelId,
11115
11212
  classes: classesProp
11116
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$b);
11213
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$c);
11117
11214
  const {
11118
11215
  ownerState
11119
11216
  } = usePickerPrivateContext();
11120
- const classes = useUtilityClasses$a(classesProp);
11217
+ const classes = useUtilityClasses$b(classesProp);
11121
11218
  const nextProps = {
11122
11219
  isDisabled: isNextDisabled,
11123
11220
  isHidden: isNextHidden,
@@ -11142,7 +11239,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11142
11239
  edge: "end",
11143
11240
  onClick: previousProps.goTo
11144
11241
  },
11145
- ownerState: _extends({}, ownerState, {
11242
+ ownerState: _extends$1({}, ownerState, {
11146
11243
  isButtonHidden: previousProps.isHidden ?? false
11147
11244
  }),
11148
11245
  className: clsx(classes.button, classes.previousIconButton)
@@ -11159,7 +11256,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11159
11256
  edge: "start",
11160
11257
  onClick: nextProps.goTo
11161
11258
  },
11162
- ownerState: _extends({}, ownerState, {
11259
+ ownerState: _extends$1({}, ownerState, {
11163
11260
  isButtonHidden: nextProps.isHidden ?? false
11164
11261
  }),
11165
11262
  className: clsx(classes.button, classes.nextIconButton)
@@ -11173,7 +11270,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11173
11270
  },
11174
11271
  ownerState,
11175
11272
  className: classes.leftArrowIcon
11176
- }), leftArrowIconProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2$2);
11273
+ }), leftArrowIconProps = _objectWithoutPropertiesLoose$1(_useSlotProps, _excluded2$2);
11177
11274
  const RightArrowIcon = (slots == null ? void 0 : slots.rightArrowIcon) ?? ArrowRightIcon;
11178
11275
  const _useSlotProps2 = useSlotProps({
11179
11276
  elementType: RightArrowIcon,
@@ -11183,14 +11280,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11183
11280
  },
11184
11281
  ownerState,
11185
11282
  className: classes.rightArrowIcon
11186
- }), rightArrowIconProps = _objectWithoutPropertiesLoose(_useSlotProps2, _excluded3);
11187
- return /* @__PURE__ */ jsxRuntime.jsxs(PickersArrowSwitcherRoot, _extends({
11283
+ }), rightArrowIconProps = _objectWithoutPropertiesLoose$1(_useSlotProps2, _excluded3);
11284
+ return /* @__PURE__ */ jsxRuntime.jsxs(PickersArrowSwitcherRoot, _extends$1({
11188
11285
  ref,
11189
11286
  className: clsx(classes.root, className),
11190
11287
  ownerState
11191
11288
  }, other, {
11192
- children: [/* @__PURE__ */ jsxRuntime.jsx(PreviousIconButton, _extends({}, previousIconButtonProps, {
11193
- children: isRtl ? /* @__PURE__ */ jsxRuntime.jsx(RightArrowIcon, _extends({}, rightArrowIconProps)) : /* @__PURE__ */ jsxRuntime.jsx(LeftArrowIcon, _extends({}, leftArrowIconProps))
11289
+ children: [/* @__PURE__ */ jsxRuntime.jsx(PreviousIconButton, _extends$1({}, previousIconButtonProps, {
11290
+ children: isRtl ? /* @__PURE__ */ jsxRuntime.jsx(RightArrowIcon, _extends$1({}, rightArrowIconProps)) : /* @__PURE__ */ jsxRuntime.jsx(LeftArrowIcon, _extends$1({}, leftArrowIconProps))
11194
11291
  })), children ? /* @__PURE__ */ jsxRuntime.jsx(Typography, {
11195
11292
  variant: "subtitle1",
11196
11293
  component: "span",
@@ -11199,8 +11296,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11199
11296
  }) : /* @__PURE__ */ jsxRuntime.jsx(PickersArrowSwitcherSpacer, {
11200
11297
  className: classes.spacer,
11201
11298
  ownerState
11202
- }), /* @__PURE__ */ jsxRuntime.jsx(NextIconButton, _extends({}, nextIconButtonProps, {
11203
- children: isRtl ? /* @__PURE__ */ jsxRuntime.jsx(LeftArrowIcon, _extends({}, leftArrowIconProps)) : /* @__PURE__ */ jsxRuntime.jsx(RightArrowIcon, _extends({}, rightArrowIconProps))
11299
+ }), /* @__PURE__ */ jsxRuntime.jsx(NextIconButton, _extends$1({}, nextIconButtonProps, {
11300
+ children: isRtl ? /* @__PURE__ */ jsxRuntime.jsx(LeftArrowIcon, _extends$1({}, leftArrowIconProps)) : /* @__PURE__ */ jsxRuntime.jsx(RightArrowIcon, _extends$1({}, rightArrowIconProps))
11204
11301
  }))]
11205
11302
  }));
11206
11303
  });
@@ -11327,7 +11424,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11327
11424
  }
11328
11425
  handleChangeView(viewToNavigateTo);
11329
11426
  });
11330
- return _extends({}, stepNavigation, {
11427
+ return _extends$1({}, stepNavigation, {
11331
11428
  view,
11332
11429
  setView: handleChangeView,
11333
11430
  focusedView,
@@ -11477,7 +11574,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11477
11574
  }
11478
11575
  return referenceDate;
11479
11576
  };
11480
- const _excluded$a = ["value", "referenceDate"];
11577
+ const _excluded$b = ["value", "referenceDate"];
11481
11578
  const singleItemValueManager = {
11482
11579
  emptyValue: null,
11483
11580
  getTodayValue: getTodayDate,
@@ -11485,7 +11582,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11485
11582
  let {
11486
11583
  value,
11487
11584
  referenceDate
11488
- } = _ref, params = _objectWithoutPropertiesLoose(_ref, _excluded$a);
11585
+ } = _ref, params = _objectWithoutPropertiesLoose$1(_ref, _excluded$b);
11489
11586
  if (params.adapter.isValid(value)) {
11490
11587
  return value;
11491
11588
  }
@@ -11521,7 +11618,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11521
11618
  const {
11522
11619
  ownerState: pickerOwnerState
11523
11620
  } = usePickerPrivateContext();
11524
- return React__namespace.useMemo(() => _extends({}, pickerOwnerState, {
11621
+ return React__namespace.useMemo(() => _extends$1({}, pickerOwnerState, {
11525
11622
  day,
11526
11623
  isDaySelected: selected ?? false,
11527
11624
  isDayDisabled: disabled ?? false,
@@ -11534,8 +11631,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11534
11631
  showDaysOutsideCurrentMonth: showDaysOutsideCurrentMonth ?? false
11535
11632
  }), [adapter, pickerOwnerState, day, selected, disabled, today, outsideCurrentMonth, disableMargin, disableHighlightToday, showDaysOutsideCurrentMonth]);
11536
11633
  }
11537
- const _excluded$9 = ["autoFocus", "className", "classes", "hidden", "isAnimating", "onClick", "onDaySelect", "onFocus", "onBlur", "onKeyDown", "onMouseDown", "onMouseEnter", "children", "isFirstVisibleCell", "isLastVisibleCell", "day", "selected", "disabled", "today", "outsideCurrentMonth", "disableMargin", "disableHighlightToday", "showDaysOutsideCurrentMonth"];
11538
- const useUtilityClasses$9 = (classes, ownerState) => {
11634
+ const _excluded$a = ["autoFocus", "className", "classes", "hidden", "isAnimating", "onClick", "onDaySelect", "onFocus", "onBlur", "onKeyDown", "onMouseDown", "onMouseEnter", "children", "isFirstVisibleCell", "isLastVisibleCell", "day", "selected", "disabled", "today", "outsideCurrentMonth", "disableMargin", "disableHighlightToday", "showDaysOutsideCurrentMonth"];
11635
+ const useUtilityClasses$a = (classes, ownerState) => {
11539
11636
  const {
11540
11637
  isDaySelected,
11541
11638
  isDayDisabled,
@@ -11554,7 +11651,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11554
11651
  };
11555
11652
  const styleArg = ({
11556
11653
  theme
11557
- }) => _extends({}, theme.typography.caption, {
11654
+ }) => _extends$1({}, theme.typography.caption, {
11558
11655
  width: DAY_SIZE,
11559
11656
  height: DAY_SIZE,
11560
11657
  borderRadius: "50%",
@@ -11636,7 +11733,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11636
11733
  overridesResolver
11637
11734
  })(({
11638
11735
  theme
11639
- }) => _extends({}, styleArg({
11736
+ }) => _extends$1({}, styleArg({
11640
11737
  theme
11641
11738
  }), {
11642
11739
  // visibility: 'hidden' does not work here as it hides the element from screen readers as well
@@ -11671,7 +11768,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11671
11768
  disableMargin,
11672
11769
  disableHighlightToday,
11673
11770
  showDaysOutsideCurrentMonth
11674
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$9);
11771
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$a);
11675
11772
  const ownerState = usePickerDayOwnerState({
11676
11773
  day,
11677
11774
  selected,
@@ -11682,7 +11779,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11682
11779
  disableHighlightToday,
11683
11780
  showDaysOutsideCurrentMonth
11684
11781
  });
11685
- const classes = useUtilityClasses$9(classesProp, ownerState);
11782
+ const classes = useUtilityClasses$a(classesProp, ownerState);
11686
11783
  const adapter = usePickerAdapter();
11687
11784
  const ref = React__namespace.useRef(null);
11688
11785
  const handleRef = useForkRef(ref, forwardedRef);
@@ -11716,7 +11813,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
11716
11813
  role: other.role
11717
11814
  });
11718
11815
  }
11719
- return /* @__PURE__ */ jsxRuntime.jsx(PickersDayRoot, _extends({
11816
+ return /* @__PURE__ */ jsxRuntime.jsx(PickersDayRoot, _extends$1({
11720
11817
  className: clsx(classes.root, className),
11721
11818
  ref: handleRef,
11722
11819
  centerRipple: true,
@@ -12165,6 +12262,17 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12165
12262
  exit: PropTypes.number
12166
12263
  })])
12167
12264
  } : void 0;
12265
+ const visuallyHidden = {
12266
+ border: 0,
12267
+ clip: "rect(0 0 0 0)",
12268
+ height: "1px",
12269
+ margin: "-1px",
12270
+ overflow: "hidden",
12271
+ padding: 0,
12272
+ position: "absolute",
12273
+ whiteSpace: "nowrap",
12274
+ width: "1px"
12275
+ };
12168
12276
  const useIsDateDisabled = ({
12169
12277
  shouldDisableDate,
12170
12278
  shouldDisableMonth,
@@ -12194,7 +12302,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12194
12302
  const createCalendarStateReducer = (reduceAnimations, adapter) => (state, action) => {
12195
12303
  switch (action.type) {
12196
12304
  case "setVisibleDate":
12197
- return _extends({}, state, {
12305
+ return _extends$1({}, state, {
12198
12306
  slideDirection: action.direction,
12199
12307
  currentMonth: action.month,
12200
12308
  isMonthSwitchingAnimating: !adapter.isSameMonth(action.month, state.currentMonth) && !reduceAnimations && !action.skipAnimation,
@@ -12209,12 +12317,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12209
12317
  if (adapter.getMonth(newCurrentMonth) !== adapter.getMonth(state.currentMonth)) {
12210
12318
  newCurrentMonth = adapter.setMonth(newCurrentMonth, adapter.getMonth(state.currentMonth));
12211
12319
  }
12212
- return _extends({}, state, {
12320
+ return _extends$1({}, state, {
12213
12321
  currentMonth: newCurrentMonth
12214
12322
  });
12215
12323
  }
12216
12324
  case "finishMonthSwitchingAnimation":
12217
- return _extends({}, state, {
12325
+ return _extends$1({}, state, {
12218
12326
  isMonthSwitchingAnimating: false
12219
12327
  });
12220
12328
  default:
@@ -12335,8 +12443,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12335
12443
  };
12336
12444
  const getPickersFadeTransitionGroupUtilityClass = (slot) => generateUtilityClass("MuiPickersFadeTransitionGroup", slot);
12337
12445
  generateUtilityClasses("MuiPickersFadeTransitionGroup", ["root"]);
12338
- const _excluded$8 = ["children"];
12339
- const useUtilityClasses$8 = (classes) => {
12446
+ const _excluded$9 = ["children"];
12447
+ const useUtilityClasses$9 = (classes) => {
12340
12448
  const slots = {
12341
12449
  root: ["root"]
12342
12450
  };
@@ -12362,8 +12470,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12362
12470
  } = props;
12363
12471
  const {
12364
12472
  children
12365
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$8);
12366
- const classes = useUtilityClasses$8(classesProp);
12473
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$9);
12474
+ const classes = useUtilityClasses$9(classesProp);
12367
12475
  const theme = useTheme();
12368
12476
  if (reduceAnimations) {
12369
12477
  return children;
@@ -12386,8 +12494,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12386
12494
  }
12387
12495
  const getPickersSlideTransitionUtilityClass = (slot) => generateUtilityClass("MuiPickersSlideTransition", slot);
12388
12496
  const pickersSlideTransitionClasses = generateUtilityClasses("MuiPickersSlideTransition", ["root", "slideEnter-left", "slideEnter-right", "slideEnterActive", "slideExit", "slideExitActiveLeft-left", "slideExitActiveLeft-right"]);
12389
- const _excluded$7 = ["children", "className", "reduceAnimations", "slideDirection", "transKey", "classes"];
12390
- const useUtilityClasses$7 = (classes, ownerState) => {
12497
+ const _excluded$8 = ["children", "className", "reduceAnimations", "slideDirection", "transKey", "classes"];
12498
+ const useUtilityClasses$8 = (classes, ownerState) => {
12391
12499
  const {
12392
12500
  slideDirection
12393
12501
  } = ownerState;
@@ -12476,14 +12584,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12476
12584
  slideDirection,
12477
12585
  transKey,
12478
12586
  classes: classesProp
12479
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$7);
12587
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$8);
12480
12588
  const {
12481
12589
  ownerState: pickerOwnerState
12482
12590
  } = usePickerPrivateContext();
12483
- const ownerState = _extends({}, pickerOwnerState, {
12591
+ const ownerState = _extends$1({}, pickerOwnerState, {
12484
12592
  slideDirection
12485
12593
  });
12486
- const classes = useUtilityClasses$7(classesProp, ownerState);
12594
+ const classes = useUtilityClasses$8(classesProp, ownerState);
12487
12595
  const theme = useTheme();
12488
12596
  if (reduceAnimations) {
12489
12597
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
@@ -12504,7 +12612,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12504
12612
  }),
12505
12613
  role: "presentation",
12506
12614
  ownerState,
12507
- children: /* @__PURE__ */ jsxRuntime.jsx(CSSTransition, _extends({
12615
+ children: /* @__PURE__ */ jsxRuntime.jsx(CSSTransition, _extends$1({
12508
12616
  mountOnEnter: true,
12509
12617
  unmountOnExit: true,
12510
12618
  timeout: theme.transitions.duration.complex,
@@ -12516,8 +12624,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12516
12624
  }
12517
12625
  const getDayCalendarUtilityClass = (slot) => generateUtilityClass("MuiDayCalendar", slot);
12518
12626
  generateUtilityClasses("MuiDayCalendar", ["root", "header", "weekDayLabel", "loadingContainer", "slideTransition", "monthContainer", "weekContainer", "weekNumberLabel", "weekNumber"]);
12519
- const _excluded$6 = ["parentProps", "day", "focusedDay", "selectedDays", "isDateDisabled", "currentMonthNumber", "isViewFocused"], _excluded2$1 = ["ownerState"];
12520
- const useUtilityClasses$6 = (classes) => {
12627
+ const _excluded$7 = ["parentProps", "day", "focusedDay", "selectedDays", "isDateDisabled", "currentMonthNumber", "isViewFocused"], _excluded2$1 = ["ownerState"];
12628
+ const useUtilityClasses$7 = (classes) => {
12521
12629
  const slots = {
12522
12630
  root: ["root"],
12523
12631
  header: ["header"],
@@ -12579,7 +12687,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12579
12687
  slot: "WeekNumber"
12580
12688
  })(({
12581
12689
  theme
12582
- }) => _extends({}, theme.typography.caption, {
12690
+ }) => _extends$1({}, theme.typography.caption, {
12583
12691
  width: DAY_SIZE,
12584
12692
  height: DAY_SIZE,
12585
12693
  padding: 0,
@@ -12628,7 +12736,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12628
12736
  isDateDisabled,
12629
12737
  currentMonthNumber,
12630
12738
  isViewFocused
12631
- } = _ref, other = _objectWithoutPropertiesLoose(_ref, _excluded$6);
12739
+ } = _ref, other = _objectWithoutPropertiesLoose$1(_ref, _excluded$7);
12632
12740
  const {
12633
12741
  disabled,
12634
12742
  disableHighlightToday,
@@ -12661,7 +12769,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12661
12769
  const _useSlotProps = useSlotProps({
12662
12770
  elementType: Day,
12663
12771
  externalSlotProps: slotProps == null ? void 0 : slotProps.day,
12664
- additionalProps: _extends({
12772
+ additionalProps: _extends$1({
12665
12773
  disableHighlightToday,
12666
12774
  showDaysOutsideCurrentMonth,
12667
12775
  role: "gridcell",
@@ -12669,12 +12777,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12669
12777
  // it is used in date range dragging logic by accessing `dataset.timestamp`
12670
12778
  "data-timestamp": adapter.toJsDate(day).valueOf()
12671
12779
  }, other),
12672
- ownerState: _extends({}, ownerState, {
12780
+ ownerState: _extends$1({}, ownerState, {
12673
12781
  day,
12674
12782
  isDayDisabled: isDisabled,
12675
12783
  isDaySelected: isSelected
12676
12784
  })
12677
- }), dayProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2$1);
12785
+ }), dayProps = _objectWithoutPropertiesLoose$1(_useSlotProps, _excluded2$1);
12678
12786
  const isFirstVisibleCell = React__namespace.useMemo(() => {
12679
12787
  const startOfMonth = adapter.startOfMonth(adapter.setMonth(day, currentMonthNumber));
12680
12788
  if (!showDaysOutsideCurrentMonth) {
@@ -12689,7 +12797,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12689
12797
  }
12690
12798
  return adapter.isSameDay(day, adapter.endOfWeek(endOfMonth));
12691
12799
  }, [currentMonthNumber, day, showDaysOutsideCurrentMonth, adapter]);
12692
- return /* @__PURE__ */ jsxRuntime.jsx(Day, _extends({}, dayProps, {
12800
+ return /* @__PURE__ */ jsxRuntime.jsx(Day, _extends$1({}, dayProps, {
12693
12801
  day,
12694
12802
  disabled: isDisabled,
12695
12803
  autoFocus: !isOutsideCurrentMonth && isFocusedDay,
@@ -12742,7 +12850,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12742
12850
  timezone
12743
12851
  } = props;
12744
12852
  const now = useNow(timezone);
12745
- const classes = useUtilityClasses$6(classesProp);
12853
+ const classes = useUtilityClasses$7(classesProp);
12746
12854
  const isRtl = useRtl();
12747
12855
  const isDateDisabled = useIsDateDisabled({
12748
12856
  shouldDisableDate,
@@ -12874,7 +12982,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12874
12982
  }), loading ? /* @__PURE__ */ jsxRuntime.jsx(PickersCalendarLoadingContainer, {
12875
12983
  className: classes.loadingContainer,
12876
12984
  children: renderLoading()
12877
- }) : /* @__PURE__ */ jsxRuntime.jsx(PickersCalendarSlideTransition, _extends({
12985
+ }) : /* @__PURE__ */ jsxRuntime.jsx(PickersCalendarSlideTransition, _extends$1({
12878
12986
  transKey: transitionKey,
12879
12987
  onExited: onMonthSwitchingAnimationEnd,
12880
12988
  reduceAnimations,
@@ -12918,8 +13026,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12918
13026
  return generateUtilityClass("MuiMonthCalendar", slot);
12919
13027
  }
12920
13028
  const monthCalendarClasses = generateUtilityClasses("MuiMonthCalendar", ["root", "button", "disabled", "selected"]);
12921
- const _excluded$5 = ["autoFocus", "classes", "disabled", "selected", "value", "onClick", "onKeyDown", "onFocus", "onBlur", "slots", "slotProps"];
12922
- const useUtilityClasses$5 = (classes, ownerState) => {
13029
+ const _excluded$6 = ["autoFocus", "classes", "disabled", "selected", "value", "onClick", "onKeyDown", "onFocus", "onBlur", "slots", "slotProps"];
13030
+ const useUtilityClasses$6 = (classes, ownerState) => {
12923
13031
  const slots = {
12924
13032
  button: ["button", ownerState.isMonthDisabled && "disabled", ownerState.isMonthSelected && "selected"]
12925
13033
  };
@@ -12935,7 +13043,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12935
13043
  }]
12936
13044
  })(({
12937
13045
  theme
12938
- }) => _extends({
13046
+ }) => _extends$1({
12939
13047
  color: "unset",
12940
13048
  backgroundColor: "transparent",
12941
13049
  border: 0,
@@ -12979,16 +13087,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12979
13087
  onBlur,
12980
13088
  slots,
12981
13089
  slotProps
12982
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$5);
13090
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$6);
12983
13091
  const ref = React__namespace.useRef(null);
12984
13092
  const {
12985
13093
  ownerState: pickerOwnerState
12986
13094
  } = usePickerPrivateContext();
12987
- const ownerState = _extends({}, pickerOwnerState, {
13095
+ const ownerState = _extends$1({}, pickerOwnerState, {
12988
13096
  isMonthDisabled: disabled,
12989
13097
  isMonthSelected: selected
12990
13098
  });
12991
- const classes = useUtilityClasses$5(classesProp, ownerState);
13099
+ const classes = useUtilityClasses$6(classesProp, ownerState);
12992
13100
  useEnhancedEffect(() => {
12993
13101
  var _a;
12994
13102
  if (autoFocus) {
@@ -13014,11 +13122,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13014
13122
  ownerState,
13015
13123
  className: classes.button
13016
13124
  });
13017
- return /* @__PURE__ */ jsxRuntime.jsx(MonthButton, _extends({}, monthButtonProps));
13125
+ return /* @__PURE__ */ jsxRuntime.jsx(MonthButton, _extends$1({}, monthButtonProps));
13018
13126
  });
13019
13127
  if (process.env.NODE_ENV !== "production") MonthCalendarButton.displayName = "MonthCalendarButton";
13020
- const _excluded$4 = ["autoFocus", "className", "currentMonth", "classes", "value", "defaultValue", "referenceDate", "disabled", "disableFuture", "disablePast", "maxDate", "minDate", "onChange", "shouldDisableMonth", "readOnly", "disableHighlightToday", "onMonthFocus", "hasFocus", "onFocusedViewChange", "monthsPerRow", "timezone", "gridLabelId", "slots", "slotProps"];
13021
- const useUtilityClasses$4 = (classes) => {
13128
+ const _excluded$5 = ["autoFocus", "className", "currentMonth", "classes", "value", "defaultValue", "referenceDate", "disabled", "disableFuture", "disablePast", "maxDate", "minDate", "onChange", "shouldDisableMonth", "readOnly", "disableHighlightToday", "onMonthFocus", "hasFocus", "onFocusedViewChange", "monthsPerRow", "timezone", "gridLabelId", "slots", "slotProps"];
13129
+ const useUtilityClasses$5 = (classes) => {
13022
13130
  const slots = {
13023
13131
  root: ["root"]
13024
13132
  };
@@ -13030,7 +13138,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13030
13138
  name
13031
13139
  });
13032
13140
  const validationProps = useApplyDefaultValuesToDateValidationProps(themeProps);
13033
- return _extends({}, themeProps, validationProps, {
13141
+ return _extends$1({}, themeProps, validationProps, {
13034
13142
  monthsPerRow: themeProps.monthsPerRow ?? 3
13035
13143
  });
13036
13144
  }
@@ -13090,7 +13198,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13090
13198
  gridLabelId,
13091
13199
  slots,
13092
13200
  slotProps
13093
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$4);
13201
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$5);
13094
13202
  const {
13095
13203
  value,
13096
13204
  handleValueChange,
@@ -13122,7 +13230,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13122
13230
  []
13123
13231
  // eslint-disable-line react-hooks/exhaustive-deps
13124
13232
  );
13125
- const classes = useUtilityClasses$4(classesProp);
13233
+ const classes = useUtilityClasses$5(classesProp);
13126
13234
  const todayMonth = React__namespace.useMemo(() => adapter.getMonth(now), [adapter, now]);
13127
13235
  const selectedMonth = React__namespace.useMemo(() => {
13128
13236
  if (value != null) {
@@ -13208,7 +13316,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13208
13316
  changeHasFocus(false);
13209
13317
  }
13210
13318
  });
13211
- return /* @__PURE__ */ jsxRuntime.jsx(MonthCalendarRoot, _extends({
13319
+ return /* @__PURE__ */ jsxRuntime.jsx(MonthCalendarRoot, _extends$1({
13212
13320
  ref,
13213
13321
  className: clsx(classes.root, className),
13214
13322
  ownerState,
@@ -13354,8 +13462,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13354
13462
  return generateUtilityClass("MuiYearCalendar", slot);
13355
13463
  }
13356
13464
  const yearCalendarClasses = generateUtilityClasses("MuiYearCalendar", ["root", "button", "disabled", "selected"]);
13357
- const _excluded$3 = ["autoFocus", "classes", "disabled", "selected", "value", "onClick", "onKeyDown", "onFocus", "onBlur", "slots", "slotProps"];
13358
- const useUtilityClasses$3 = (classes, ownerState) => {
13465
+ const _excluded$4 = ["autoFocus", "classes", "disabled", "selected", "value", "onClick", "onKeyDown", "onFocus", "onBlur", "slots", "slotProps"];
13466
+ const useUtilityClasses$4 = (classes, ownerState) => {
13359
13467
  const slots = {
13360
13468
  button: ["button", ownerState.isYearDisabled && "disabled", ownerState.isYearSelected && "selected"]
13361
13469
  };
@@ -13371,7 +13479,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13371
13479
  }]
13372
13480
  })(({
13373
13481
  theme
13374
- }) => _extends({
13482
+ }) => _extends$1({
13375
13483
  color: "unset",
13376
13484
  backgroundColor: "transparent",
13377
13485
  border: 0,
@@ -13415,16 +13523,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13415
13523
  onBlur,
13416
13524
  slots,
13417
13525
  slotProps
13418
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$3);
13526
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$4);
13419
13527
  const ref = React__namespace.useRef(null);
13420
13528
  const {
13421
13529
  ownerState: pickerOwnerState
13422
13530
  } = usePickerPrivateContext();
13423
- const ownerState = _extends({}, pickerOwnerState, {
13531
+ const ownerState = _extends$1({}, pickerOwnerState, {
13424
13532
  isYearDisabled: disabled,
13425
13533
  isYearSelected: selected
13426
13534
  });
13427
- const classes = useUtilityClasses$3(classesProp, ownerState);
13535
+ const classes = useUtilityClasses$4(classesProp, ownerState);
13428
13536
  useEnhancedEffect(() => {
13429
13537
  var _a;
13430
13538
  if (autoFocus) {
@@ -13450,11 +13558,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13450
13558
  ownerState,
13451
13559
  className: classes.button
13452
13560
  });
13453
- return /* @__PURE__ */ jsxRuntime.jsx(YearButton, _extends({}, yearButtonProps));
13561
+ return /* @__PURE__ */ jsxRuntime.jsx(YearButton, _extends$1({}, yearButtonProps));
13454
13562
  });
13455
13563
  if (process.env.NODE_ENV !== "production") YearCalendarButton.displayName = "YearCalendarButton";
13456
- const _excluded$2 = ["autoFocus", "className", "classes", "value", "defaultValue", "referenceDate", "disabled", "disableFuture", "disablePast", "maxDate", "minDate", "onChange", "readOnly", "shouldDisableYear", "disableHighlightToday", "onYearFocus", "hasFocus", "onFocusedViewChange", "yearsOrder", "yearsPerRow", "timezone", "gridLabelId", "slots", "slotProps"];
13457
- const useUtilityClasses$2 = (classes) => {
13564
+ const _excluded$3 = ["autoFocus", "className", "classes", "value", "defaultValue", "referenceDate", "disabled", "disableFuture", "disablePast", "maxDate", "minDate", "onChange", "readOnly", "shouldDisableYear", "disableHighlightToday", "onYearFocus", "hasFocus", "onFocusedViewChange", "yearsOrder", "yearsPerRow", "timezone", "gridLabelId", "slots", "slotProps"];
13565
+ const useUtilityClasses$3 = (classes) => {
13458
13566
  const slots = {
13459
13567
  root: ["root"]
13460
13568
  };
@@ -13466,7 +13574,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13466
13574
  name
13467
13575
  });
13468
13576
  const validationProps = useApplyDefaultValuesToDateValidationProps(themeProps);
13469
- return _extends({}, themeProps, validationProps, {
13577
+ return _extends$1({}, themeProps, validationProps, {
13470
13578
  yearsPerRow: themeProps.yearsPerRow ?? 3,
13471
13579
  yearsOrder: themeProps.yearsOrder ?? "asc"
13472
13580
  });
@@ -13538,7 +13646,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13538
13646
  gridLabelId,
13539
13647
  slots,
13540
13648
  slotProps
13541
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$2);
13649
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$3);
13542
13650
  const {
13543
13651
  value,
13544
13652
  handleValueChange,
@@ -13570,7 +13678,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13570
13678
  []
13571
13679
  // eslint-disable-line react-hooks/exhaustive-deps
13572
13680
  );
13573
- const classes = useUtilityClasses$2(classesProp);
13681
+ const classes = useUtilityClasses$3(classesProp);
13574
13682
  const todayYear = React__namespace.useMemo(() => adapter.getYear(now), [adapter, now]);
13575
13683
  const selectedYear = React__namespace.useMemo(() => {
13576
13684
  if (value != null) {
@@ -13685,7 +13793,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13685
13793
  if (fillerAmount === yearsPerRow) {
13686
13794
  fillerAmount = 0;
13687
13795
  }
13688
- return /* @__PURE__ */ jsxRuntime.jsxs(YearCalendarRoot, _extends({
13796
+ return /* @__PURE__ */ jsxRuntime.jsxs(YearCalendarRoot, _extends$1({
13689
13797
  ref: handleRef,
13690
13798
  className: clsx(classes.root, className),
13691
13799
  ownerState,
@@ -13833,8 +13941,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13833
13941
  } : void 0;
13834
13942
  const getPickersCalendarHeaderUtilityClass = (slot) => generateUtilityClass("MuiPickersCalendarHeader", slot);
13835
13943
  const pickersCalendarHeaderClasses = generateUtilityClasses("MuiPickersCalendarHeader", ["root", "labelContainer", "label", "switchViewButton", "switchViewIcon"]);
13836
- const _excluded$1 = ["slots", "slotProps", "currentMonth", "disabled", "disableFuture", "disablePast", "maxDate", "minDate", "onMonthChange", "onViewChange", "view", "reduceAnimations", "views", "labelId", "className", "classes", "timezone", "format"], _excluded2 = ["ownerState"];
13837
- const useUtilityClasses$1 = (classes) => {
13944
+ const _excluded$2 = ["slots", "slotProps", "currentMonth", "disabled", "disableFuture", "disablePast", "maxDate", "minDate", "onMonthChange", "onViewChange", "view", "reduceAnimations", "views", "labelId", "className", "classes", "timezone", "format"], _excluded2 = ["ownerState"];
13945
+ const useUtilityClasses$2 = (classes) => {
13838
13946
  const slots = {
13839
13947
  root: ["root"],
13840
13948
  labelContainer: ["labelContainer"],
@@ -13863,7 +13971,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13863
13971
  slot: "LabelContainer"
13864
13972
  })(({
13865
13973
  theme
13866
- }) => _extends({
13974
+ }) => _extends$1({
13867
13975
  display: "flex",
13868
13976
  overflow: "hidden",
13869
13977
  alignItems: "center",
@@ -13930,11 +14038,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13930
14038
  classes: classesProp,
13931
14039
  timezone,
13932
14040
  format = `${adapter.formats.month} ${adapter.formats.year}`
13933
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$1);
14041
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$2);
13934
14042
  const {
13935
14043
  ownerState
13936
14044
  } = usePickerPrivateContext();
13937
- const classes = useUtilityClasses$1(classesProp);
14045
+ const classes = useUtilityClasses$2(classesProp);
13938
14046
  const SwitchViewButton = (slots == null ? void 0 : slots.switchViewButton) ?? PickersCalendarHeaderSwitchViewButton;
13939
14047
  const switchViewButtonProps = useSlotProps({
13940
14048
  elementType: SwitchViewButton,
@@ -13943,7 +14051,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13943
14051
  size: "small",
13944
14052
  "aria-label": translations.calendarViewSwitchingButtonAriaLabel(view)
13945
14053
  },
13946
- ownerState: _extends({}, ownerState, {
14054
+ ownerState: _extends$1({}, ownerState, {
13947
14055
  view
13948
14056
  }),
13949
14057
  className: classes.switchViewButton
@@ -13954,7 +14062,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13954
14062
  externalSlotProps: slotProps == null ? void 0 : slotProps.switchViewIcon,
13955
14063
  ownerState,
13956
14064
  className: classes.switchViewIcon
13957
- }), switchViewIconProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);
14065
+ }), switchViewIconProps = _objectWithoutPropertiesLoose$1(_useSlotProps, _excluded2);
13958
14066
  const selectNextMonth = () => onMonthChange(adapter.addMonths(month, 1));
13959
14067
  const selectPreviousMonth = () => onMonthChange(adapter.addMonths(month, -1));
13960
14068
  const isNextMonthDisabled = useNextMonthDisabled(month, {
@@ -13982,7 +14090,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
13982
14090
  return null;
13983
14091
  }
13984
14092
  const label = adapter.formatByString(month, format);
13985
- return /* @__PURE__ */ jsxRuntime.jsxs(PickersCalendarHeaderRoot, _extends({}, other, {
14093
+ return /* @__PURE__ */ jsxRuntime.jsxs(PickersCalendarHeaderRoot, _extends$1({}, other, {
13986
14094
  ownerState,
13987
14095
  className: clsx(classes.root, className),
13988
14096
  ref,
@@ -14001,8 +14109,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14001
14109
  className: classes.label,
14002
14110
  children: label
14003
14111
  })
14004
- }), views.length > 1 && !disabled && /* @__PURE__ */ jsxRuntime.jsx(SwitchViewButton, _extends({}, switchViewButtonProps, {
14005
- children: /* @__PURE__ */ jsxRuntime.jsx(SwitchViewIcon, _extends({}, switchViewIconProps))
14112
+ }), views.length > 1 && !disabled && /* @__PURE__ */ jsxRuntime.jsx(SwitchViewButton, _extends$1({}, switchViewButtonProps, {
14113
+ children: /* @__PURE__ */ jsxRuntime.jsx(SwitchViewIcon, _extends$1({}, switchViewIconProps))
14006
14114
  }))]
14007
14115
  }), /* @__PURE__ */ jsxRuntime.jsx(Fade, {
14008
14116
  in: view === "day",
@@ -14088,8 +14196,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14088
14196
  }
14089
14197
  const getDateCalendarUtilityClass = (slot) => generateUtilityClass("MuiDateCalendar", slot);
14090
14198
  generateUtilityClasses("MuiDateCalendar", ["root", "viewTransitionContainer"]);
14091
- const _excluded = ["autoFocus", "onViewChange", "value", "defaultValue", "referenceDate", "disableFuture", "disablePast", "onChange", "onYearChange", "onMonthChange", "reduceAnimations", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear", "view", "views", "openTo", "className", "classes", "disabled", "readOnly", "minDate", "maxDate", "disableHighlightToday", "focusedView", "onFocusedViewChange", "showDaysOutsideCurrentMonth", "fixedWeekNumber", "dayOfWeekFormatter", "slots", "slotProps", "loading", "renderLoading", "displayWeekNumber", "yearsOrder", "yearsPerRow", "monthsPerRow", "timezone"];
14092
- const useUtilityClasses = (classes) => {
14199
+ const _excluded$1 = ["autoFocus", "onViewChange", "value", "defaultValue", "referenceDate", "disableFuture", "disablePast", "onChange", "onYearChange", "onMonthChange", "reduceAnimations", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear", "view", "views", "openTo", "className", "classes", "disabled", "readOnly", "minDate", "maxDate", "disableHighlightToday", "focusedView", "onFocusedViewChange", "showDaysOutsideCurrentMonth", "fixedWeekNumber", "dayOfWeekFormatter", "slots", "slotProps", "loading", "renderLoading", "displayWeekNumber", "yearsOrder", "yearsPerRow", "monthsPerRow", "timezone"];
14200
+ const useUtilityClasses$1 = (classes) => {
14093
14201
  const slots = {
14094
14202
  root: ["root"],
14095
14203
  viewTransitionContainer: ["viewTransitionContainer"]
@@ -14103,7 +14211,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14103
14211
  });
14104
14212
  const reduceAnimations = useReduceAnimations(themeProps.reduceAnimations);
14105
14213
  const validationProps = useApplyDefaultValuesToDateValidationProps(themeProps);
14106
- return _extends({}, themeProps, validationProps, {
14214
+ return _extends$1({}, themeProps, validationProps, {
14107
14215
  loading: themeProps.loading ?? false,
14108
14216
  openTo: themeProps.openTo ?? "day",
14109
14217
  views: themeProps.views ?? ["year", "day"],
@@ -14170,7 +14278,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14170
14278
  yearsPerRow,
14171
14279
  monthsPerRow,
14172
14280
  timezone: timezoneProp
14173
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded);
14281
+ } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$1);
14174
14282
  const {
14175
14283
  value,
14176
14284
  handleValueChange,
@@ -14321,7 +14429,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14321
14429
  });
14322
14430
  }
14323
14431
  }, [value]);
14324
- const classes = useUtilityClasses(classesProp);
14432
+ const classes = useUtilityClasses$1(classesProp);
14325
14433
  const baseDateValidationProps = {
14326
14434
  disablePast,
14327
14435
  disableFuture,
@@ -14348,12 +14456,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14348
14456
  prevOpenViewRef.current = view;
14349
14457
  }, [focusedView, setFocusedView, view]);
14350
14458
  const selectedDays = React__namespace.useMemo(() => [value], [value]);
14351
- return /* @__PURE__ */ jsxRuntime.jsxs(DateCalendarRoot, _extends({
14459
+ return /* @__PURE__ */ jsxRuntime.jsxs(DateCalendarRoot, _extends$1({
14352
14460
  ref,
14353
14461
  className: clsx(classes.root, className),
14354
14462
  ownerState
14355
14463
  }, other, {
14356
- children: [/* @__PURE__ */ jsxRuntime.jsx(CalendarHeader, _extends({}, calendarHeaderProps, {
14464
+ children: [/* @__PURE__ */ jsxRuntime.jsx(CalendarHeader, _extends$1({}, calendarHeaderProps, {
14357
14465
  slots,
14358
14466
  slotProps
14359
14467
  })), /* @__PURE__ */ jsxRuntime.jsx(DateCalendarViewTransitionContainer, {
@@ -14362,7 +14470,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14362
14470
  transKey: view,
14363
14471
  ownerState,
14364
14472
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
14365
- children: [view === "year" && /* @__PURE__ */ jsxRuntime.jsx(YearCalendar, _extends({}, baseDateValidationProps, commonViewProps, {
14473
+ children: [view === "year" && /* @__PURE__ */ jsxRuntime.jsx(YearCalendar, _extends$1({}, baseDateValidationProps, commonViewProps, {
14366
14474
  value,
14367
14475
  onChange: handleDateYearChange,
14368
14476
  shouldDisableYear,
@@ -14371,7 +14479,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14371
14479
  yearsOrder,
14372
14480
  yearsPerRow,
14373
14481
  referenceDate
14374
- })), view === "month" && /* @__PURE__ */ jsxRuntime.jsx(MonthCalendar, _extends({}, baseDateValidationProps, commonViewProps, {
14482
+ })), view === "month" && /* @__PURE__ */ jsxRuntime.jsx(MonthCalendar, _extends$1({}, baseDateValidationProps, commonViewProps, {
14375
14483
  currentMonth: calendarState.currentMonth,
14376
14484
  hasFocus,
14377
14485
  className,
@@ -14381,7 +14489,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14381
14489
  onFocusedViewChange: (isViewFocused) => setFocusedView("month", isViewFocused),
14382
14490
  monthsPerRow,
14383
14491
  referenceDate
14384
- })), view === "day" && /* @__PURE__ */ jsxRuntime.jsx(DayCalendar, _extends({}, calendarState, baseDateValidationProps, commonViewProps, {
14492
+ })), view === "day" && /* @__PURE__ */ jsxRuntime.jsx(DayCalendar, _extends$1({}, calendarState, baseDateValidationProps, commonViewProps, {
14385
14493
  onMonthSwitchingAnimationEnd,
14386
14494
  hasFocus,
14387
14495
  onFocusedDayChange: (focusedDate) => setVisibleDate({
@@ -14632,6 +14740,21 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14632
14740
  */
14633
14741
  yearsPerRow: PropTypes.oneOf([3, 4])
14634
14742
  } : void 0;
14743
+ const warnedOnceCache = /* @__PURE__ */ new Set();
14744
+ function warnOnce(message, gravity = "warning") {
14745
+ if (process.env.NODE_ENV === "production") {
14746
+ return;
14747
+ }
14748
+ const cleanMessage = Array.isArray(message) ? message.join("\n") : message;
14749
+ if (!warnedOnceCache.has(cleanMessage)) {
14750
+ warnedOnceCache.add(cleanMessage);
14751
+ if (gravity === "error") {
14752
+ console.error(cleanMessage);
14753
+ } else {
14754
+ console.warn(cleanMessage);
14755
+ }
14756
+ }
14757
+ }
14635
14758
  var dayjs_min = { exports: {} };
14636
14759
  (function(module2, exports3) {
14637
14760
  !function(t, e) {
@@ -14910,124 +15033,1019 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14910
15033
  })(dayjs_min);
14911
15034
  var dayjs_minExports = dayjs_min.exports;
14912
15035
  const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
14913
- const DEFAULT_THEME = "dark";
14914
- const ThemeContext = React.createContext({ theme: DEFAULT_THEME, setTheme: () => {
14915
- } });
14916
- function Card({ children, noPadding, noBlur = false, appearance = "glass", color: color2 = "neutral", intensity, dark: dark2 = true, onClick, className, style: style2 }) {
14917
- let [classNames, setClassNames] = React.useState("");
14918
- let [cardStyle, setCardStyle] = React.useState({});
14919
- const { theme } = React.useContext(ThemeContext);
14920
- React.useEffect(() => {
14921
- let intensityValue = intensity;
14922
- if (intensityValue === void 0) {
14923
- intensityValue = theme === "dark" ? 600 : 300;
15036
+ var weekOfYear = { exports: {} };
15037
+ (function(module2, exports3) {
15038
+ !function(e, t) {
15039
+ module2.exports = t();
15040
+ }(commonjsGlobal, function() {
15041
+ var e = "week", t = "year";
15042
+ return function(i, n, r2) {
15043
+ var f = n.prototype;
15044
+ f.week = function(i2) {
15045
+ if (void 0 === i2 && (i2 = null), null !== i2) return this.add(7 * (i2 - this.week()), "day");
15046
+ var n2 = this.$locale().yearStart || 1;
15047
+ if (11 === this.month() && this.date() > 25) {
15048
+ var f2 = r2(this).startOf(t).add(1, t).date(n2), s = r2(this).endOf(e);
15049
+ if (f2.isBefore(s)) return 1;
15050
+ }
15051
+ var a = r2(this).startOf(t).date(n2).startOf(e).subtract(1, "millisecond"), o = this.diff(a, e, true);
15052
+ return o < 0 ? r2(this).startOf("week").week() : Math.ceil(o);
15053
+ }, f.weeks = function(e2) {
15054
+ return void 0 === e2 && (e2 = null), this.week(e2);
15055
+ };
15056
+ };
15057
+ });
15058
+ })(weekOfYear);
15059
+ var weekOfYearExports = weekOfYear.exports;
15060
+ const weekOfYearPlugin = /* @__PURE__ */ getDefaultExportFromCjs(weekOfYearExports);
15061
+ var customParseFormat = { exports: {} };
15062
+ (function(module2, exports3) {
15063
+ !function(e, t) {
15064
+ module2.exports = t();
15065
+ }(commonjsGlobal, function() {
15066
+ var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r2 = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e2) {
15067
+ return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
15068
+ };
15069
+ var f = function(e2) {
15070
+ return function(t2) {
15071
+ this[e2] = +t2;
15072
+ };
15073
+ }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
15074
+ (this.zone || (this.zone = {})).offset = function(e3) {
15075
+ if (!e3) return 0;
15076
+ if ("Z" === e3) return 0;
15077
+ var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
15078
+ return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
15079
+ }(e2);
15080
+ }], u = function(e2) {
15081
+ var t2 = s[e2];
15082
+ return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
15083
+ }, d = function(e2, t2) {
15084
+ var n2, r3 = s.meridiem;
15085
+ if (r3) {
15086
+ for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r3(i2, 0, t2)) > -1) {
15087
+ n2 = i2 > 12;
15088
+ break;
15089
+ }
15090
+ } else n2 = e2 === (t2 ? "pm" : "PM");
15091
+ return n2;
15092
+ }, c = { A: [o, function(e2) {
15093
+ this.afternoon = d(e2, false);
15094
+ }], a: [o, function(e2) {
15095
+ this.afternoon = d(e2, true);
15096
+ }], Q: [n, function(e2) {
15097
+ this.month = 3 * (e2 - 1) + 1;
15098
+ }], S: [n, function(e2) {
15099
+ this.milliseconds = 100 * +e2;
15100
+ }], SS: [r2, function(e2) {
15101
+ this.milliseconds = 10 * +e2;
15102
+ }], SSS: [/\d{3}/, function(e2) {
15103
+ this.milliseconds = +e2;
15104
+ }], s: [i, f("seconds")], ss: [i, f("seconds")], m: [i, f("minutes")], mm: [i, f("minutes")], H: [i, f("hours")], h: [i, f("hours")], HH: [i, f("hours")], hh: [i, f("hours")], D: [i, f("day")], DD: [r2, f("day")], Do: [o, function(e2) {
15105
+ var t2 = s.ordinal, n2 = e2.match(/\d+/);
15106
+ if (this.day = n2[0], t2) for (var r3 = 1; r3 <= 31; r3 += 1) t2(r3).replace(/\[|\]/g, "") === e2 && (this.day = r3);
15107
+ }], w: [i, f("week")], ww: [r2, f("week")], M: [i, f("month")], MM: [r2, f("month")], MMM: [o, function(e2) {
15108
+ var t2 = u("months"), n2 = (u("monthsShort") || t2.map(function(e3) {
15109
+ return e3.slice(0, 3);
15110
+ })).indexOf(e2) + 1;
15111
+ if (n2 < 1) throw new Error();
15112
+ this.month = n2 % 12 || n2;
15113
+ }], MMMM: [o, function(e2) {
15114
+ var t2 = u("months").indexOf(e2) + 1;
15115
+ if (t2 < 1) throw new Error();
15116
+ this.month = t2 % 12 || t2;
15117
+ }], Y: [/[+-]?\d+/, f("year")], YY: [r2, function(e2) {
15118
+ this.year = a(e2);
15119
+ }], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
15120
+ function l(n2) {
15121
+ var r3, i2;
15122
+ r3 = n2, i2 = s && s.formats;
15123
+ for (var o2 = (n2 = r3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t2, n3, r4) {
15124
+ var o3 = r4 && r4.toUpperCase();
15125
+ return n3 || i2[r4] || e[r4] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t3, n4) {
15126
+ return t3 || n4.slice(1);
15127
+ });
15128
+ })).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
15129
+ var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
15130
+ o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
15131
+ }
15132
+ return function(e2) {
15133
+ for (var t2 = {}, n3 = 0, r4 = 0; n3 < a2; n3 += 1) {
15134
+ var i3 = o2[n3];
15135
+ if ("string" == typeof i3) r4 += i3.length;
15136
+ else {
15137
+ var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r4), u3 = s2.exec(h3)[0];
15138
+ f3.call(t2, u3), e2 = e2.replace(u3, "");
15139
+ }
15140
+ }
15141
+ return function(e3) {
15142
+ var t3 = e3.afternoon;
15143
+ if (void 0 !== t3) {
15144
+ var n4 = e3.hours;
15145
+ t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
15146
+ }
15147
+ }(t2), t2;
15148
+ };
14924
15149
  }
14925
- setCardStyle({
14926
- "--glass-color": `var(--color-${color2}-${intensityValue})`,
14927
- "--card-text-color": `var(--color-${color2}-${dark2 ? "100" : "800"})`,
14928
- backdropFilter: appearance === "glass" && !noBlur ? "blur(10px)" : void 0,
14929
- ...style2
15150
+ return function(e2, t2, n2) {
15151
+ n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
15152
+ var r3 = t2.prototype, i2 = r3.parse;
15153
+ r3.parse = function(e3) {
15154
+ var t3 = e3.date, r4 = e3.utc, o2 = e3.args;
15155
+ this.$u = r4;
15156
+ var a2 = o2[1];
15157
+ if ("string" == typeof a2) {
15158
+ var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
15159
+ h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = function(e4, t4, n3, r5) {
15160
+ try {
15161
+ if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
15162
+ var i3 = l(t4)(e4), o3 = i3.year, s2 = i3.month, a3 = i3.day, f3 = i3.hours, h3 = i3.minutes, u3 = i3.seconds, d3 = i3.milliseconds, c3 = i3.zone, m2 = i3.week, M2 = /* @__PURE__ */ new Date(), Y = a3 || (o3 || s2 ? 1 : M2.getDate()), p = o3 || M2.getFullYear(), v = 0;
15163
+ o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
15164
+ var D, w = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
15165
+ return c3 ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c3.offset * 1e3)) : n3 ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m2 && (D = r5(D).week(m2).toDate()), D);
15166
+ } catch (e5) {
15167
+ return /* @__PURE__ */ new Date("");
15168
+ }
15169
+ }(t3, a2, r4, n2), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t3 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
15170
+ } else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
15171
+ o2[1] = a2[m - 1];
15172
+ var M = n2.apply(this, o2);
15173
+ if (M.isValid()) {
15174
+ this.$d = M.$d, this.$L = M.$L, this.init();
15175
+ break;
15176
+ }
15177
+ m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
15178
+ }
15179
+ else i2.call(this, e3);
15180
+ };
15181
+ };
15182
+ });
15183
+ })(customParseFormat);
15184
+ var customParseFormatExports = customParseFormat.exports;
15185
+ const customParseFormatPlugin = /* @__PURE__ */ getDefaultExportFromCjs(customParseFormatExports);
15186
+ var localizedFormat = { exports: {} };
15187
+ (function(module2, exports3) {
15188
+ !function(e, t) {
15189
+ module2.exports = t();
15190
+ }(commonjsGlobal, function() {
15191
+ var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
15192
+ return function(t, o, n) {
15193
+ var r2 = o.prototype, i = r2.format;
15194
+ n.en.formats = e, r2.format = function(t2) {
15195
+ void 0 === t2 && (t2 = "YYYY-MM-DDTHH:mm:ssZ");
15196
+ var o2 = this.$locale().formats, n2 = function(t3, o3) {
15197
+ return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n3, r3) {
15198
+ var i2 = r3 && r3.toUpperCase();
15199
+ return n3 || o3[r3] || e[r3] || o3[i2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t5, o4) {
15200
+ return t5 || o4.slice(1);
15201
+ });
15202
+ });
15203
+ }(t2, void 0 === o2 ? {} : o2);
15204
+ return i.call(this, n2);
15205
+ };
15206
+ };
15207
+ });
15208
+ })(localizedFormat);
15209
+ var localizedFormatExports = localizedFormat.exports;
15210
+ const localizedFormatPlugin = /* @__PURE__ */ getDefaultExportFromCjs(localizedFormatExports);
15211
+ var isBetween = { exports: {} };
15212
+ (function(module2, exports3) {
15213
+ !function(e, i) {
15214
+ module2.exports = i();
15215
+ }(commonjsGlobal, function() {
15216
+ return function(e, i, t) {
15217
+ i.prototype.isBetween = function(e2, i2, s, f) {
15218
+ var n = t(e2), o = t(i2), r2 = "(" === (f = f || "()")[0], u = ")" === f[1];
15219
+ return (r2 ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r2 ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));
15220
+ };
15221
+ };
15222
+ });
15223
+ })(isBetween);
15224
+ var isBetweenExports = isBetween.exports;
15225
+ const isBetweenPlugin = /* @__PURE__ */ getDefaultExportFromCjs(isBetweenExports);
15226
+ var advancedFormat = { exports: {} };
15227
+ (function(module2, exports3) {
15228
+ !function(e, t) {
15229
+ module2.exports = t();
15230
+ }(commonjsGlobal, function() {
15231
+ return function(e, t) {
15232
+ var r2 = t.prototype, n = r2.format;
15233
+ r2.format = function(e2) {
15234
+ var t2 = this, r3 = this.$locale();
15235
+ if (!this.isValid()) return n.bind(this)(e2);
15236
+ var s = this.$utils(), a = (e2 || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(e3) {
15237
+ switch (e3) {
15238
+ case "Q":
15239
+ return Math.ceil((t2.$M + 1) / 3);
15240
+ case "Do":
15241
+ return r3.ordinal(t2.$D);
15242
+ case "gggg":
15243
+ return t2.weekYear();
15244
+ case "GGGG":
15245
+ return t2.isoWeekYear();
15246
+ case "wo":
15247
+ return r3.ordinal(t2.week(), "W");
15248
+ case "w":
15249
+ case "ww":
15250
+ return s.s(t2.week(), "w" === e3 ? 1 : 2, "0");
15251
+ case "W":
15252
+ case "WW":
15253
+ return s.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
15254
+ case "k":
15255
+ case "kk":
15256
+ return s.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
15257
+ case "X":
15258
+ return Math.floor(t2.$d.getTime() / 1e3);
15259
+ case "x":
15260
+ return t2.$d.getTime();
15261
+ case "z":
15262
+ return "[" + t2.offsetName() + "]";
15263
+ case "zzz":
15264
+ return "[" + t2.offsetName("long") + "]";
15265
+ default:
15266
+ return e3;
15267
+ }
15268
+ });
15269
+ return n.bind(this)(a);
15270
+ };
15271
+ };
15272
+ });
15273
+ })(advancedFormat);
15274
+ var advancedFormatExports = advancedFormat.exports;
15275
+ const advancedFormatPlugin = /* @__PURE__ */ getDefaultExportFromCjs(advancedFormatExports);
15276
+ dayjs.extend(localizedFormatPlugin);
15277
+ dayjs.extend(weekOfYearPlugin);
15278
+ dayjs.extend(isBetweenPlugin);
15279
+ dayjs.extend(advancedFormatPlugin);
15280
+ const formatTokenMap = {
15281
+ // Year
15282
+ YY: "year",
15283
+ YYYY: {
15284
+ sectionType: "year",
15285
+ contentType: "digit",
15286
+ maxLength: 4
15287
+ },
15288
+ // Month
15289
+ M: {
15290
+ sectionType: "month",
15291
+ contentType: "digit",
15292
+ maxLength: 2
15293
+ },
15294
+ MM: "month",
15295
+ MMM: {
15296
+ sectionType: "month",
15297
+ contentType: "letter"
15298
+ },
15299
+ MMMM: {
15300
+ sectionType: "month",
15301
+ contentType: "letter"
15302
+ },
15303
+ // Day of the month
15304
+ D: {
15305
+ sectionType: "day",
15306
+ contentType: "digit",
15307
+ maxLength: 2
15308
+ },
15309
+ DD: "day",
15310
+ Do: {
15311
+ sectionType: "day",
15312
+ contentType: "digit-with-letter"
15313
+ },
15314
+ // Day of the week
15315
+ d: {
15316
+ sectionType: "weekDay",
15317
+ contentType: "digit",
15318
+ maxLength: 2
15319
+ },
15320
+ dd: {
15321
+ sectionType: "weekDay",
15322
+ contentType: "letter"
15323
+ },
15324
+ ddd: {
15325
+ sectionType: "weekDay",
15326
+ contentType: "letter"
15327
+ },
15328
+ dddd: {
15329
+ sectionType: "weekDay",
15330
+ contentType: "letter"
15331
+ },
15332
+ // Meridiem
15333
+ A: "meridiem",
15334
+ a: "meridiem",
15335
+ // Hours
15336
+ H: {
15337
+ sectionType: "hours",
15338
+ contentType: "digit",
15339
+ maxLength: 2
15340
+ },
15341
+ HH: "hours",
15342
+ h: {
15343
+ sectionType: "hours",
15344
+ contentType: "digit",
15345
+ maxLength: 2
15346
+ },
15347
+ hh: "hours",
15348
+ // Minutes
15349
+ m: {
15350
+ sectionType: "minutes",
15351
+ contentType: "digit",
15352
+ maxLength: 2
15353
+ },
15354
+ mm: "minutes",
15355
+ // Seconds
15356
+ s: {
15357
+ sectionType: "seconds",
15358
+ contentType: "digit",
15359
+ maxLength: 2
15360
+ },
15361
+ ss: "seconds"
15362
+ };
15363
+ const defaultFormats = {
15364
+ year: "YYYY",
15365
+ month: "MMMM",
15366
+ monthShort: "MMM",
15367
+ dayOfMonth: "D",
15368
+ dayOfMonthFull: "Do",
15369
+ weekday: "dddd",
15370
+ weekdayShort: "dd",
15371
+ hours24h: "HH",
15372
+ hours12h: "hh",
15373
+ meridiem: "A",
15374
+ minutes: "mm",
15375
+ seconds: "ss",
15376
+ fullDate: "ll",
15377
+ keyboardDate: "L",
15378
+ shortDate: "MMM D",
15379
+ normalDate: "D MMMM",
15380
+ normalDateWithWeekday: "ddd, MMM D",
15381
+ fullTime12h: "hh:mm A",
15382
+ fullTime24h: "HH:mm",
15383
+ keyboardDateTime12h: "L hh:mm A",
15384
+ keyboardDateTime24h: "L HH:mm"
15385
+ };
15386
+ const MISSING_UTC_PLUGIN = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n");
15387
+ const MISSING_TIMEZONE_PLUGIN = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");
15388
+ class AdapterDayjs {
15389
+ constructor({
15390
+ locale,
15391
+ formats
15392
+ } = {}) {
15393
+ __publicField(this, "isMUIAdapter", true);
15394
+ __publicField(this, "isTimezoneCompatible", true);
15395
+ __publicField(this, "lib", "dayjs");
15396
+ __publicField(this, "escapedCharacters", {
15397
+ start: "[",
15398
+ end: "]"
14930
15399
  });
14931
- let rounded = "rounded-md";
14932
- if (className) {
14933
- const roundedMatch = className.match(/rounded\-[a-z0-9]+/g);
14934
- if (roundedMatch) {
14935
- rounded = roundedMatch[roundedMatch.length - 1];
15400
+ __publicField(this, "formatTokenMap", /* @__PURE__ */ (() => formatTokenMap)());
15401
+ __publicField(this, "setLocaleToValue", (value) => {
15402
+ const expectedLocale = this.getCurrentLocaleCode();
15403
+ if (expectedLocale === value.locale()) {
15404
+ return value;
14936
15405
  }
14937
- }
14938
- setClassNames(`card ${rounded} ${appearance} ${className} ${noPadding ? "" : "p-[2rem]"}`);
14939
- }, [color2, intensity, dark2, appearance, noBlur, className, theme]);
14940
- return /* @__PURE__ */ jsxRuntime.jsx("article", { className: classNames, style: cardStyle, onClick, children });
14941
- }
14942
- function Button({ children, label, icon, position: position2 = "left", onClick, size, className, ...cardProps }) {
14943
- let cardClassNames = "flex justify-center items-center gap-x-[0.40rem] h-[2.5rem] min-w-[2.5rem] box-border p-0";
14944
- if (label) {
14945
- cardClassNames += " px-0 py-1";
14946
- }
14947
- if (className) {
14948
- const roundedMatch = className.match(/rounded\-[a-z0-9]+/g);
14949
- if (roundedMatch) {
14950
- cardClassNames += " " + roundedMatch[roundedMatch.length - 1];
14951
- }
14952
- }
14953
- if (size === "sm") {
14954
- cardClassNames += " h-[2rem] w-[2rem] min-w-auto";
14955
- }
14956
- const buttonClick = (ev) => {
14957
- if (typeof onClick === "function") {
14958
- onClick(ev);
14959
- }
14960
- };
14961
- return /* @__PURE__ */ jsxRuntime.jsx("button", { className, onClick: buttonClick, children: /* @__PURE__ */ jsxRuntime.jsxs(Card, { noBlur: true, noPadding: true, className: cardClassNames, ...cardProps, children: [
14962
- position2 === "left" && icon,
14963
- label,
14964
- children,
14965
- position2 === "right" && icon
14966
- ] }) });
14967
- }
14968
- function CustomDay(props) {
14969
- const { highlightedDays = [], day, outsideCurrentMonth, ...other } = props;
14970
- const isSelected = highlightedDays.some((date) => day.isSame(date, "day"));
14971
- return /* @__PURE__ */ jsxRuntime.jsx(
14972
- PickersDay,
14973
- {
14974
- ...other,
14975
- day,
14976
- selected: isSelected,
14977
- outsideCurrentMonth,
14978
- sx: {
14979
- ...isSelected && {
14980
- backgroundColor: "white !important",
14981
- // Make selected day white
14982
- color: "black !important"
14983
- // Text color to black for contrast
15406
+ return value.locale(expectedLocale);
15407
+ });
15408
+ __publicField(this, "hasUTCPlugin", () => typeof dayjs.utc !== "undefined");
15409
+ __publicField(this, "hasTimezonePlugin", () => typeof dayjs.tz !== "undefined");
15410
+ __publicField(this, "isSame", (value, comparing, comparisonTemplate) => {
15411
+ const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));
15412
+ return value.format(comparisonTemplate) === comparingInValueTimezone.format(comparisonTemplate);
15413
+ });
15414
+ /**
15415
+ * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
15416
+ */
15417
+ __publicField(this, "cleanTimezone", (timezone) => {
15418
+ switch (timezone) {
15419
+ case "default": {
15420
+ return void 0;
15421
+ }
15422
+ case "system": {
15423
+ return dayjs.tz.guess();
15424
+ }
15425
+ default: {
15426
+ return timezone;
14984
15427
  }
14985
15428
  }
14986
- }
14987
- );
14988
- }
14989
- function Calendar({
14990
- selectedDates,
14991
- onMonthChange,
14992
- onYearChange,
14993
- referenceDate,
14994
- view,
14995
- views,
14996
- openTo,
14997
- value,
14998
- onChange,
14999
- defaultValue,
15000
- ...cardProps
15001
- }) {
15002
- const theme = createTheme({
15003
- palette: {
15004
- mode: "dark"
15005
- }
15006
- });
15007
- const convertSelectedDates = (dates) => {
15008
- if (!dates) return [];
15009
- return dates.map((date) => {
15010
- if (typeof date === "string") {
15011
- return dayjs(date);
15429
+ });
15430
+ __publicField(this, "createSystemDate", (value) => {
15431
+ let date;
15432
+ if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
15433
+ const timezone = dayjs.tz.guess();
15434
+ if (timezone === "UTC") {
15435
+ date = dayjs(value);
15436
+ } else {
15437
+ date = dayjs.tz(value, timezone);
15438
+ }
15439
+ } else {
15440
+ date = dayjs(value);
15012
15441
  }
15013
- return dayjs(date);
15442
+ return this.setLocaleToValue(date);
15014
15443
  });
15015
- };
15016
- const convertDateToDayjs = (date) => date ? dayjs(date) : void 0;
15017
- const handleMonthChange = (month) => {
15018
- if (onMonthChange) {
15019
- onMonthChange(month.toDate());
15020
- }
15021
- };
15022
- const handleYearChange = (year) => {
15023
- if (onYearChange) {
15024
- onYearChange(year.toDate());
15025
- }
15026
- };
15027
- const handleChange = (newValue) => {
15028
- if (onChange) {
15029
- onChange(newValue ? newValue.toDate() : null);
15030
- }
15444
+ __publicField(this, "createUTCDate", (value) => {
15445
+ if (!this.hasUTCPlugin()) {
15446
+ throw new Error(MISSING_UTC_PLUGIN);
15447
+ }
15448
+ return this.setLocaleToValue(dayjs.utc(value));
15449
+ });
15450
+ __publicField(this, "createTZDate", (value, timezone) => {
15451
+ if (!this.hasUTCPlugin()) {
15452
+ throw new Error(MISSING_UTC_PLUGIN);
15453
+ }
15454
+ if (!this.hasTimezonePlugin()) {
15455
+ throw new Error(MISSING_TIMEZONE_PLUGIN);
15456
+ }
15457
+ const keepLocalTime = value !== void 0 && !value.endsWith("Z");
15458
+ return this.setLocaleToValue(dayjs(value).tz(this.cleanTimezone(timezone), keepLocalTime));
15459
+ });
15460
+ __publicField(this, "getLocaleFormats", () => {
15461
+ const locales = dayjs.Ls;
15462
+ const locale = this.locale || "en";
15463
+ let localeObject = locales[locale];
15464
+ if (localeObject === void 0) {
15465
+ if (process.env.NODE_ENV !== "production") {
15466
+ warnOnce(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]);
15467
+ }
15468
+ localeObject = locales.en;
15469
+ }
15470
+ return localeObject.formats;
15471
+ });
15472
+ /**
15473
+ * If the new day does not have the same offset as the old one (when switching to summer day time for example),
15474
+ * Then dayjs will not automatically adjust the offset (moment does).
15475
+ * We have to parse again the value to make sure the `fixOffset` method is applied.
15476
+ * See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
15477
+ */
15478
+ __publicField(this, "adjustOffset", (value) => {
15479
+ if (!this.hasTimezonePlugin()) {
15480
+ return value;
15481
+ }
15482
+ const timezone = this.getTimezone(value);
15483
+ if (timezone !== "UTC") {
15484
+ const fixedValue = value.tz(this.cleanTimezone(timezone), true);
15485
+ if (fixedValue.$offset === (value.$offset ?? 0)) {
15486
+ return value;
15487
+ }
15488
+ value.$offset = fixedValue.$offset;
15489
+ }
15490
+ return value;
15491
+ });
15492
+ __publicField(this, "date", (value, timezone = "default") => {
15493
+ if (value === null) {
15494
+ return null;
15495
+ }
15496
+ if (timezone === "UTC") {
15497
+ return this.createUTCDate(value);
15498
+ }
15499
+ if (timezone === "system" || timezone === "default" && !this.hasTimezonePlugin()) {
15500
+ return this.createSystemDate(value);
15501
+ }
15502
+ return this.createTZDate(value, timezone);
15503
+ });
15504
+ __publicField(this, "getInvalidDate", () => dayjs(/* @__PURE__ */ new Date("Invalid date")));
15505
+ __publicField(this, "getTimezone", (value) => {
15506
+ var _a;
15507
+ if (this.hasTimezonePlugin()) {
15508
+ const zone = (_a = value.$x) == null ? void 0 : _a.$timezone;
15509
+ if (zone) {
15510
+ return zone;
15511
+ }
15512
+ }
15513
+ if (this.hasUTCPlugin() && value.isUTC()) {
15514
+ return "UTC";
15515
+ }
15516
+ return "system";
15517
+ });
15518
+ __publicField(this, "setTimezone", (value, timezone) => {
15519
+ if (this.getTimezone(value) === timezone) {
15520
+ return value;
15521
+ }
15522
+ if (timezone === "UTC") {
15523
+ if (!this.hasUTCPlugin()) {
15524
+ throw new Error(MISSING_UTC_PLUGIN);
15525
+ }
15526
+ return value.utc();
15527
+ }
15528
+ if (timezone === "system") {
15529
+ return value.local();
15530
+ }
15531
+ if (!this.hasTimezonePlugin()) {
15532
+ if (timezone === "default") {
15533
+ return value;
15534
+ }
15535
+ throw new Error(MISSING_TIMEZONE_PLUGIN);
15536
+ }
15537
+ return this.setLocaleToValue(dayjs.tz(value, this.cleanTimezone(timezone)));
15538
+ });
15539
+ __publicField(this, "toJsDate", (value) => {
15540
+ return value.toDate();
15541
+ });
15542
+ __publicField(this, "parse", (value, format) => {
15543
+ if (value === "") {
15544
+ return null;
15545
+ }
15546
+ return dayjs(value, format, this.locale, true);
15547
+ });
15548
+ __publicField(this, "getCurrentLocaleCode", () => {
15549
+ return this.locale || "en";
15550
+ });
15551
+ __publicField(this, "is12HourCycleInCurrentLocale", () => {
15552
+ return /A|a/.test(this.getLocaleFormats().LT || "");
15553
+ });
15554
+ __publicField(this, "expandFormat", (format) => {
15555
+ const localeFormats = this.getLocaleFormats();
15556
+ const t = (formatBis) => formatBis.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (_, a, b) => a || b.slice(1));
15557
+ return format.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (_, a, b) => {
15558
+ const B = b && b.toUpperCase();
15559
+ return a || localeFormats[b] || t(localeFormats[B]);
15560
+ });
15561
+ });
15562
+ __publicField(this, "isValid", (value) => {
15563
+ if (value == null) {
15564
+ return false;
15565
+ }
15566
+ return value.isValid();
15567
+ });
15568
+ __publicField(this, "format", (value, formatKey) => {
15569
+ return this.formatByString(value, this.formats[formatKey]);
15570
+ });
15571
+ __publicField(this, "formatByString", (value, formatString) => {
15572
+ return this.setLocaleToValue(value).format(formatString);
15573
+ });
15574
+ __publicField(this, "formatNumber", (numberToFormat) => {
15575
+ return numberToFormat;
15576
+ });
15577
+ __publicField(this, "isEqual", (value, comparing) => {
15578
+ if (value === null && comparing === null) {
15579
+ return true;
15580
+ }
15581
+ if (value === null || comparing === null) {
15582
+ return false;
15583
+ }
15584
+ return value.toDate().getTime() === comparing.toDate().getTime();
15585
+ });
15586
+ __publicField(this, "isSameYear", (value, comparing) => {
15587
+ return this.isSame(value, comparing, "YYYY");
15588
+ });
15589
+ __publicField(this, "isSameMonth", (value, comparing) => {
15590
+ return this.isSame(value, comparing, "YYYY-MM");
15591
+ });
15592
+ __publicField(this, "isSameDay", (value, comparing) => {
15593
+ return this.isSame(value, comparing, "YYYY-MM-DD");
15594
+ });
15595
+ __publicField(this, "isSameHour", (value, comparing) => {
15596
+ return value.isSame(comparing, "hour");
15597
+ });
15598
+ __publicField(this, "isAfter", (value, comparing) => {
15599
+ return value > comparing;
15600
+ });
15601
+ __publicField(this, "isAfterYear", (value, comparing) => {
15602
+ if (!this.hasUTCPlugin()) {
15603
+ return value.isAfter(comparing, "year");
15604
+ }
15605
+ return !this.isSameYear(value, comparing) && value.utc() > comparing.utc();
15606
+ });
15607
+ __publicField(this, "isAfterDay", (value, comparing) => {
15608
+ if (!this.hasUTCPlugin()) {
15609
+ return value.isAfter(comparing, "day");
15610
+ }
15611
+ return !this.isSameDay(value, comparing) && value.utc() > comparing.utc();
15612
+ });
15613
+ __publicField(this, "isBefore", (value, comparing) => {
15614
+ return value < comparing;
15615
+ });
15616
+ __publicField(this, "isBeforeYear", (value, comparing) => {
15617
+ if (!this.hasUTCPlugin()) {
15618
+ return value.isBefore(comparing, "year");
15619
+ }
15620
+ return !this.isSameYear(value, comparing) && value.utc() < comparing.utc();
15621
+ });
15622
+ __publicField(this, "isBeforeDay", (value, comparing) => {
15623
+ if (!this.hasUTCPlugin()) {
15624
+ return value.isBefore(comparing, "day");
15625
+ }
15626
+ return !this.isSameDay(value, comparing) && value.utc() < comparing.utc();
15627
+ });
15628
+ __publicField(this, "isWithinRange", (value, [start, end]) => {
15629
+ return value >= start && value <= end;
15630
+ });
15631
+ __publicField(this, "startOfYear", (value) => {
15632
+ return this.adjustOffset(value.startOf("year"));
15633
+ });
15634
+ __publicField(this, "startOfMonth", (value) => {
15635
+ return this.adjustOffset(value.startOf("month"));
15636
+ });
15637
+ __publicField(this, "startOfWeek", (value) => {
15638
+ return this.adjustOffset(this.setLocaleToValue(value).startOf("week"));
15639
+ });
15640
+ __publicField(this, "startOfDay", (value) => {
15641
+ return this.adjustOffset(value.startOf("day"));
15642
+ });
15643
+ __publicField(this, "endOfYear", (value) => {
15644
+ return this.adjustOffset(value.endOf("year"));
15645
+ });
15646
+ __publicField(this, "endOfMonth", (value) => {
15647
+ return this.adjustOffset(value.endOf("month"));
15648
+ });
15649
+ __publicField(this, "endOfWeek", (value) => {
15650
+ return this.adjustOffset(this.setLocaleToValue(value).endOf("week"));
15651
+ });
15652
+ __publicField(this, "endOfDay", (value) => {
15653
+ return this.adjustOffset(value.endOf("day"));
15654
+ });
15655
+ __publicField(this, "addYears", (value, amount) => {
15656
+ return this.adjustOffset(value.add(amount, "year"));
15657
+ });
15658
+ __publicField(this, "addMonths", (value, amount) => {
15659
+ return this.adjustOffset(value.add(amount, "month"));
15660
+ });
15661
+ __publicField(this, "addWeeks", (value, amount) => {
15662
+ return this.adjustOffset(value.add(amount, "week"));
15663
+ });
15664
+ __publicField(this, "addDays", (value, amount) => {
15665
+ return this.adjustOffset(value.add(amount, "day"));
15666
+ });
15667
+ __publicField(this, "addHours", (value, amount) => {
15668
+ return this.adjustOffset(value.add(amount, "hour"));
15669
+ });
15670
+ __publicField(this, "addMinutes", (value, amount) => {
15671
+ return this.adjustOffset(value.add(amount, "minute"));
15672
+ });
15673
+ __publicField(this, "addSeconds", (value, amount) => {
15674
+ return this.adjustOffset(value.add(amount, "second"));
15675
+ });
15676
+ __publicField(this, "getYear", (value) => {
15677
+ return value.year();
15678
+ });
15679
+ __publicField(this, "getMonth", (value) => {
15680
+ return value.month();
15681
+ });
15682
+ __publicField(this, "getDate", (value) => {
15683
+ return value.date();
15684
+ });
15685
+ __publicField(this, "getHours", (value) => {
15686
+ return value.hour();
15687
+ });
15688
+ __publicField(this, "getMinutes", (value) => {
15689
+ return value.minute();
15690
+ });
15691
+ __publicField(this, "getSeconds", (value) => {
15692
+ return value.second();
15693
+ });
15694
+ __publicField(this, "getMilliseconds", (value) => {
15695
+ return value.millisecond();
15696
+ });
15697
+ __publicField(this, "setYear", (value, year) => {
15698
+ return this.adjustOffset(value.set("year", year));
15699
+ });
15700
+ __publicField(this, "setMonth", (value, month) => {
15701
+ return this.adjustOffset(value.set("month", month));
15702
+ });
15703
+ __publicField(this, "setDate", (value, date) => {
15704
+ return this.adjustOffset(value.set("date", date));
15705
+ });
15706
+ __publicField(this, "setHours", (value, hours) => {
15707
+ return this.adjustOffset(value.set("hour", hours));
15708
+ });
15709
+ __publicField(this, "setMinutes", (value, minutes) => {
15710
+ return this.adjustOffset(value.set("minute", minutes));
15711
+ });
15712
+ __publicField(this, "setSeconds", (value, seconds) => {
15713
+ return this.adjustOffset(value.set("second", seconds));
15714
+ });
15715
+ __publicField(this, "setMilliseconds", (value, milliseconds) => {
15716
+ return this.adjustOffset(value.set("millisecond", milliseconds));
15717
+ });
15718
+ __publicField(this, "getDaysInMonth", (value) => {
15719
+ return value.daysInMonth();
15720
+ });
15721
+ __publicField(this, "getWeekArray", (value) => {
15722
+ const start = this.startOfWeek(this.startOfMonth(value));
15723
+ const end = this.endOfWeek(this.endOfMonth(value));
15724
+ let count = 0;
15725
+ let current = start;
15726
+ const nestedWeeks = [];
15727
+ while (current < end) {
15728
+ const weekNumber = Math.floor(count / 7);
15729
+ nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];
15730
+ nestedWeeks[weekNumber].push(current);
15731
+ current = this.addDays(current, 1);
15732
+ count += 1;
15733
+ }
15734
+ return nestedWeeks;
15735
+ });
15736
+ __publicField(this, "getWeekNumber", (value) => {
15737
+ return value.week();
15738
+ });
15739
+ __publicField(this, "getYearRange", ([start, end]) => {
15740
+ const startDate = this.startOfYear(start);
15741
+ const endDate = this.endOfYear(end);
15742
+ const years = [];
15743
+ let current = startDate;
15744
+ while (this.isBefore(current, endDate)) {
15745
+ years.push(current);
15746
+ current = this.addYears(current, 1);
15747
+ }
15748
+ return years;
15749
+ });
15750
+ this.locale = locale;
15751
+ this.formats = _extends$1({}, defaultFormats, formats);
15752
+ dayjs.extend(customParseFormatPlugin);
15753
+ }
15754
+ getDayOfWeek(value) {
15755
+ return value.day() + 1;
15756
+ }
15757
+ }
15758
+ const DEFAULT_THEME = "dark";
15759
+ const ThemeContext = React.createContext({ theme: DEFAULT_THEME, setTheme: () => {
15760
+ } });
15761
+ function ThemeContextComponent({ children }) {
15762
+ const [theme, setTheme] = React.useState(DEFAULT_THEME);
15763
+ return /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: { theme, setTheme }, children: /* @__PURE__ */ jsxRuntime.jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, children }) });
15764
+ }
15765
+ function Card({ children, noPadding, noBlur = false, appearance = "glass", color: color2 = "neutral", intensity, dark: dark2 = true, onClick, className, style: style2 }) {
15766
+ let [classNames, setClassNames] = React.useState("");
15767
+ let [cardStyle, setCardStyle] = React.useState({});
15768
+ const { theme } = React.useContext(ThemeContext);
15769
+ React.useEffect(() => {
15770
+ let intensityValue = intensity;
15771
+ if (intensityValue === void 0) {
15772
+ intensityValue = theme === "dark" ? 600 : 300;
15773
+ }
15774
+ setCardStyle({
15775
+ "--glass-color": `var(--color-${color2}-${intensityValue})`,
15776
+ "--card-text-color": `var(--color-${color2}-${dark2 ? "100" : "800"})`,
15777
+ backdropFilter: appearance === "glass" && !noBlur ? "blur(10px)" : void 0,
15778
+ ...style2
15779
+ });
15780
+ let rounded = "rounded-md";
15781
+ if (className) {
15782
+ const roundedMatch = className.match(/rounded\-[a-z0-9]+/g);
15783
+ if (roundedMatch) {
15784
+ rounded = roundedMatch[roundedMatch.length - 1];
15785
+ }
15786
+ }
15787
+ setClassNames(`card ${rounded} ${appearance} ${className} ${noPadding ? "" : "p-[2rem]"}`);
15788
+ }, [color2, intensity, dark2, appearance, noBlur, className, theme]);
15789
+ return /* @__PURE__ */ jsxRuntime.jsx("article", { className: classNames, style: cardStyle, onClick, children });
15790
+ }
15791
+ function Button({ children, label, icon, position: position2 = "left", onClick, size, className, ...cardProps }) {
15792
+ let cardClassNames = "flex justify-center items-center gap-x-[0.40rem] h-[2.5rem] min-w-[2.5rem] box-border p-0";
15793
+ if (label) {
15794
+ cardClassNames += " px-0 py-1";
15795
+ }
15796
+ if (className) {
15797
+ const roundedMatch = className.match(/rounded\-[a-z0-9]+/g);
15798
+ if (roundedMatch) {
15799
+ cardClassNames += " " + roundedMatch[roundedMatch.length - 1];
15800
+ }
15801
+ }
15802
+ if (size === "sm") {
15803
+ cardClassNames += " h-[2rem] w-[2rem] min-w-auto";
15804
+ }
15805
+ const buttonClick = (ev) => {
15806
+ if (typeof onClick === "function") {
15807
+ onClick(ev);
15808
+ }
15809
+ };
15810
+ return /* @__PURE__ */ jsxRuntime.jsx("button", { className, onClick: buttonClick, children: /* @__PURE__ */ jsxRuntime.jsxs(Card, { noBlur: true, noPadding: true, className: cardClassNames, ...cardProps, children: [
15811
+ position2 === "left" && icon,
15812
+ label,
15813
+ children,
15814
+ position2 === "right" && icon
15815
+ ] }) });
15816
+ }
15817
+ function Badge({ label, ...cardProps }) {
15818
+ return /* @__PURE__ */ jsxRuntime.jsx(Card, { noBlur: true, noPadding: true, className: "rounded-sm w-fit", ...cardProps, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-0.5 py-0.10 text-[0.5rem] font-bold", children: label }) });
15819
+ }
15820
+ var DefaultContext = {
15821
+ color: void 0,
15822
+ size: void 0,
15823
+ className: void 0,
15824
+ style: void 0,
15825
+ attr: void 0
15826
+ };
15827
+ var IconContext = React.createContext && /* @__PURE__ */ React.createContext(DefaultContext);
15828
+ var _excluded = ["attr", "size", "title"];
15829
+ function _objectWithoutProperties(source, excluded) {
15830
+ if (source == null) return {};
15831
+ var target = _objectWithoutPropertiesLoose(source, excluded);
15832
+ var key, i;
15833
+ if (Object.getOwnPropertySymbols) {
15834
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
15835
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
15836
+ key = sourceSymbolKeys[i];
15837
+ if (excluded.indexOf(key) >= 0) continue;
15838
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
15839
+ target[key] = source[key];
15840
+ }
15841
+ }
15842
+ return target;
15843
+ }
15844
+ function _objectWithoutPropertiesLoose(source, excluded) {
15845
+ if (source == null) return {};
15846
+ var target = {};
15847
+ for (var key in source) {
15848
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
15849
+ if (excluded.indexOf(key) >= 0) continue;
15850
+ target[key] = source[key];
15851
+ }
15852
+ }
15853
+ return target;
15854
+ }
15855
+ function _extends() {
15856
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
15857
+ for (var i = 1; i < arguments.length; i++) {
15858
+ var source = arguments[i];
15859
+ for (var key in source) {
15860
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
15861
+ target[key] = source[key];
15862
+ }
15863
+ }
15864
+ }
15865
+ return target;
15866
+ };
15867
+ return _extends.apply(this, arguments);
15868
+ }
15869
+ function ownKeys(e, r2) {
15870
+ var t = Object.keys(e);
15871
+ if (Object.getOwnPropertySymbols) {
15872
+ var o = Object.getOwnPropertySymbols(e);
15873
+ r2 && (o = o.filter(function(r3) {
15874
+ return Object.getOwnPropertyDescriptor(e, r3).enumerable;
15875
+ })), t.push.apply(t, o);
15876
+ }
15877
+ return t;
15878
+ }
15879
+ function _objectSpread(e) {
15880
+ for (var r2 = 1; r2 < arguments.length; r2++) {
15881
+ var t = null != arguments[r2] ? arguments[r2] : {};
15882
+ r2 % 2 ? ownKeys(Object(t), true).forEach(function(r3) {
15883
+ _defineProperty(e, r3, t[r3]);
15884
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) {
15885
+ Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3));
15886
+ });
15887
+ }
15888
+ return e;
15889
+ }
15890
+ function _defineProperty(obj, key, value) {
15891
+ key = _toPropertyKey(key);
15892
+ if (key in obj) {
15893
+ Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
15894
+ } else {
15895
+ obj[key] = value;
15896
+ }
15897
+ return obj;
15898
+ }
15899
+ function _toPropertyKey(t) {
15900
+ var i = _toPrimitive(t, "string");
15901
+ return "symbol" == typeof i ? i : i + "";
15902
+ }
15903
+ function _toPrimitive(t, r2) {
15904
+ if ("object" != typeof t || !t) return t;
15905
+ var e = t[Symbol.toPrimitive];
15906
+ if (void 0 !== e) {
15907
+ var i = e.call(t, r2);
15908
+ if ("object" != typeof i) return i;
15909
+ throw new TypeError("@@toPrimitive must return a primitive value.");
15910
+ }
15911
+ return ("string" === r2 ? String : Number)(t);
15912
+ }
15913
+ function Tree2Element(tree) {
15914
+ return tree && tree.map((node2, i) => /* @__PURE__ */ React.createElement(node2.tag, _objectSpread({
15915
+ key: i
15916
+ }, node2.attr), Tree2Element(node2.child)));
15917
+ }
15918
+ function GenIcon(data) {
15919
+ return (props) => /* @__PURE__ */ React.createElement(IconBase, _extends({
15920
+ attr: _objectSpread({}, data.attr)
15921
+ }, props), Tree2Element(data.child));
15922
+ }
15923
+ function IconBase(props) {
15924
+ var elem = (conf) => {
15925
+ var {
15926
+ attr,
15927
+ size,
15928
+ title
15929
+ } = props, svgProps = _objectWithoutProperties(props, _excluded);
15930
+ var computedSize = size || conf.size || "1em";
15931
+ var className;
15932
+ if (conf.className) className = conf.className;
15933
+ if (props.className) className = (className ? className + " " : "") + props.className;
15934
+ return /* @__PURE__ */ React.createElement("svg", _extends({
15935
+ stroke: "currentColor",
15936
+ fill: "currentColor",
15937
+ strokeWidth: "0"
15938
+ }, conf.attr, attr, svgProps, {
15939
+ className,
15940
+ style: _objectSpread(_objectSpread({
15941
+ color: props.color || conf.color
15942
+ }, conf.style), props.style),
15943
+ height: computedSize,
15944
+ width: computedSize,
15945
+ xmlns: "http://www.w3.org/2000/svg"
15946
+ }), title && /* @__PURE__ */ React.createElement("title", null, title), props.children);
15947
+ };
15948
+ return IconContext !== void 0 ? /* @__PURE__ */ React.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
15949
+ }
15950
+ function FaCheck(props) {
15951
+ return GenIcon({ "attr": { "viewBox": "0 0 512 512" }, "child": [{ "tag": "path", "attr": { "d": "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" }, "child": [] }] })(props);
15952
+ }
15953
+ function FaChevronDown(props) {
15954
+ return GenIcon({ "attr": { "viewBox": "0 0 448 512" }, "child": [{ "tag": "path", "attr": { "d": "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }, "child": [] }] })(props);
15955
+ }
15956
+ function FaChevronUp(props) {
15957
+ return GenIcon({ "attr": { "viewBox": "0 0 448 512" }, "child": [{ "tag": "path", "attr": { "d": "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" }, "child": [] }] })(props);
15958
+ }
15959
+ function Checkbox({ label, checkedDefault = false, onChange }) {
15960
+ const [checked, setChecked] = React.useState(checkedDefault);
15961
+ function checkboxClicked() {
15962
+ const newValue = !checked;
15963
+ setChecked(newValue);
15964
+ onChange(newValue);
15965
+ }
15966
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-0.5 w-fit", onClick: checkboxClicked, children: [
15967
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { icon: checked ? /* @__PURE__ */ jsxRuntime.jsx(FaCheck, {}) : null }),
15968
+ label
15969
+ ] });
15970
+ }
15971
+ function SectionName({ section, className }) {
15972
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `uppercase font-bold tracking-[0.15rem] w-fit section-name ${className}`, children: section });
15973
+ }
15974
+ function Input({ type, value, disabled, placeholder, size, maxLength, onChange, iconPosition = "left", centerText = false, icon, className, ...cardProps }) {
15975
+ function inputUpdated(ev) {
15976
+ onChange == null ? void 0 : onChange(ev.target.value);
15977
+ }
15978
+ const classnames = `flex`;
15979
+ const inputClassName = `flex justify-center items-center border-none bg-none py-[0.5rem] px-[1rem] m-0 w-full ${centerText ? "text-center" : ""}`;
15980
+ const directionClassName = iconPosition === "left" ? "pl-2" : "flex-row-reverse pr-2";
15981
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classnames, children: /* @__PURE__ */ jsxRuntime.jsxs(Card, { className: `flex justify-center items-center rounded-md ${className} ${icon ? directionClassName : ""}`, noBlur: true, noPadding: true, ...cardProps, style: cardProps.style, children: [
15982
+ icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center", children: icon }),
15983
+ /* @__PURE__ */ jsxRuntime.jsx("input", { className: inputClassName, onChange: inputUpdated, placeholder, value, disabled, type, size, maxLength, style: cardProps.style })
15984
+ ] }) });
15985
+ }
15986
+ function CustomDay(props) {
15987
+ const { highlightedDays = [], day, outsideCurrentMonth, ...other } = props;
15988
+ const isSelected = highlightedDays.some((date) => day.isSame(date, "day"));
15989
+ return /* @__PURE__ */ jsxRuntime.jsx(
15990
+ PickersDay,
15991
+ {
15992
+ ...other,
15993
+ day,
15994
+ selected: isSelected,
15995
+ outsideCurrentMonth,
15996
+ sx: {
15997
+ ...isSelected && {
15998
+ backgroundColor: "white !important",
15999
+ // Make selected day white
16000
+ color: "black !important"
16001
+ // Text color to black for contrast
16002
+ }
16003
+ }
16004
+ }
16005
+ );
16006
+ }
16007
+ function Calendar({
16008
+ selectedDates,
16009
+ onMonthChange,
16010
+ onYearChange,
16011
+ referenceDate,
16012
+ view,
16013
+ views,
16014
+ openTo,
16015
+ value,
16016
+ onChange,
16017
+ defaultValue,
16018
+ ...cardProps
16019
+ }) {
16020
+ const theme = createTheme({
16021
+ palette: {
16022
+ mode: "dark"
16023
+ }
16024
+ });
16025
+ const convertSelectedDates = (dates) => {
16026
+ if (!dates) return [];
16027
+ return dates.map((date) => {
16028
+ if (typeof date === "string") {
16029
+ return dayjs(date);
16030
+ }
16031
+ return dayjs(date);
16032
+ });
16033
+ };
16034
+ const convertDateToDayjs = (date) => date ? dayjs(date) : void 0;
16035
+ const handleMonthChange = (month) => {
16036
+ if (onMonthChange) {
16037
+ onMonthChange(month.toDate());
16038
+ }
16039
+ };
16040
+ const handleYearChange = (year) => {
16041
+ if (onYearChange) {
16042
+ onYearChange(year.toDate());
16043
+ }
16044
+ };
16045
+ const handleChange = (newValue) => {
16046
+ if (onChange) {
16047
+ onChange(newValue ? newValue.toDate() : null);
16048
+ }
15031
16049
  };
15032
16050
  return /* @__PURE__ */ jsxRuntime.jsx(Card, { appearance: cardProps.appearance ?? "ghost", noPadding: true, ...cardProps, children: /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(
15033
16051
  DateCalendar,
@@ -15048,10 +16066,1863 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15048
16066
  }
15049
16067
  ) }) });
15050
16068
  }
16069
+ function DropdownButton({ children, open, toggle }) {
16070
+ return /* @__PURE__ */ jsxRuntime.jsxs(Button, { onClick: toggle, className: `cursor-pointer ${open ? "button-open" : null}`, children: [
16071
+ children,
16072
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center content-center ml-[1rem]", children: open ? /* @__PURE__ */ jsxRuntime.jsx(FaChevronUp, {}) : /* @__PURE__ */ jsxRuntime.jsx(FaChevronDown, {}) })
16073
+ ] });
16074
+ }
16075
+ function Dropdown({ buttonText, options = [], onSelected }) {
16076
+ const [open, setOpen] = React.useState(false);
16077
+ const [optionSelected, setOptionSelected] = React.useState(buttonText);
16078
+ const toggleDropdown = () => {
16079
+ setOpen((open2) => !open2);
16080
+ };
16081
+ const itemClicked = (option) => {
16082
+ setOptionSelected(option);
16083
+ onSelected == null ? void 0 : onSelected(option);
16084
+ setOpen(false);
16085
+ };
16086
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { tabIndex: 0, className: "relative w-fit", onBlur: () => setOpen(false), children: [
16087
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownButton, { toggle: toggleDropdown, open, children: optionSelected }),
16088
+ open && /* @__PURE__ */ jsxRuntime.jsx(Card, { noBlur: true, appearance: "mate", className: "absolute flex flex-col items-center p-[1rem] mt-[0.5rem] bg-white rounded-lg overflow-y-scroll dropdown-content", children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-[0.5rem] m-[0.1rem] w-full rounded-lg cursor-pointer", onMouseDown: () => itemClicked(option), children: option }, option)) })
16089
+ ] });
16090
+ }
16091
+ function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {
16092
+ return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));
16093
+ }
16094
+ const INTENTIONAL_DRAG_COUNT_THRESHOLD = 2;
16095
+ function getNewValue(currentValue, step, direction, min, max) {
16096
+ return direction === 1 ? Math.min(currentValue + step, max) : Math.max(currentValue - step, min);
16097
+ }
16098
+ function asc(a, b) {
16099
+ return a - b;
16100
+ }
16101
+ function findClosest(values2, currentValue) {
16102
+ const {
16103
+ index: closestIndex
16104
+ } = values2.reduce((acc, value, index) => {
16105
+ const distance = Math.abs(currentValue - value);
16106
+ if (acc === null || distance < acc.distance || distance === acc.distance) {
16107
+ return {
16108
+ distance,
16109
+ index
16110
+ };
16111
+ }
16112
+ return acc;
16113
+ }, null) ?? {};
16114
+ return closestIndex;
16115
+ }
16116
+ function trackFinger(event, touchId) {
16117
+ if (touchId.current !== void 0 && event.changedTouches) {
16118
+ const touchEvent = event;
16119
+ for (let i = 0; i < touchEvent.changedTouches.length; i += 1) {
16120
+ const touch = touchEvent.changedTouches[i];
16121
+ if (touch.identifier === touchId.current) {
16122
+ return {
16123
+ x: touch.clientX,
16124
+ y: touch.clientY
16125
+ };
16126
+ }
16127
+ }
16128
+ return false;
16129
+ }
16130
+ return {
16131
+ x: event.clientX,
16132
+ y: event.clientY
16133
+ };
16134
+ }
16135
+ function valueToPercent(value, min, max) {
16136
+ return (value - min) * 100 / (max - min);
16137
+ }
16138
+ function percentToValue(percent, min, max) {
16139
+ return (max - min) * percent + min;
16140
+ }
16141
+ function getDecimalPrecision(num) {
16142
+ if (Math.abs(num) < 1) {
16143
+ const parts = num.toExponential().split("e-");
16144
+ const matissaDecimalPart = parts[0].split(".")[1];
16145
+ return (matissaDecimalPart ? matissaDecimalPart.length : 0) + parseInt(parts[1], 10);
16146
+ }
16147
+ const decimalPart = num.toString().split(".")[1];
16148
+ return decimalPart ? decimalPart.length : 0;
16149
+ }
16150
+ function roundValueToStep(value, step, min) {
16151
+ const nearest = Math.round((value - min) / step) * step + min;
16152
+ return Number(nearest.toFixed(getDecimalPrecision(step)));
16153
+ }
16154
+ function setValueIndex({
16155
+ values: values2,
16156
+ newValue,
16157
+ index
16158
+ }) {
16159
+ const output = values2.slice();
16160
+ output[index] = newValue;
16161
+ return output.sort(asc);
16162
+ }
16163
+ function focusThumb({
16164
+ sliderRef,
16165
+ activeIndex,
16166
+ setActive
16167
+ }) {
16168
+ var _a, _b, _c;
16169
+ const doc = ownerDocument(sliderRef.current);
16170
+ if (!((_a = sliderRef.current) == null ? void 0 : _a.contains(doc.activeElement)) || Number((_b = doc == null ? void 0 : doc.activeElement) == null ? void 0 : _b.getAttribute("data-index")) !== activeIndex) {
16171
+ (_c = sliderRef.current) == null ? void 0 : _c.querySelector(`[type="range"][data-index="${activeIndex}"]`).focus();
16172
+ }
16173
+ if (setActive) {
16174
+ setActive(activeIndex);
16175
+ }
16176
+ }
16177
+ function areValuesEqual(newValue, oldValue) {
16178
+ if (typeof newValue === "number" && typeof oldValue === "number") {
16179
+ return newValue === oldValue;
16180
+ }
16181
+ if (typeof newValue === "object" && typeof oldValue === "object") {
16182
+ return areArraysEqual(newValue, oldValue);
16183
+ }
16184
+ return false;
16185
+ }
16186
+ const axisProps = {
16187
+ horizontal: {
16188
+ offset: (percent) => ({
16189
+ left: `${percent}%`
16190
+ }),
16191
+ leap: (percent) => ({
16192
+ width: `${percent}%`
16193
+ })
16194
+ },
16195
+ "horizontal-reverse": {
16196
+ offset: (percent) => ({
16197
+ right: `${percent}%`
16198
+ }),
16199
+ leap: (percent) => ({
16200
+ width: `${percent}%`
16201
+ })
16202
+ },
16203
+ vertical: {
16204
+ offset: (percent) => ({
16205
+ bottom: `${percent}%`
16206
+ }),
16207
+ leap: (percent) => ({
16208
+ height: `${percent}%`
16209
+ })
16210
+ }
16211
+ };
16212
+ const Identity$1 = (x) => x;
16213
+ let cachedSupportsTouchActionNone;
16214
+ function doesSupportTouchActionNone() {
16215
+ if (cachedSupportsTouchActionNone === void 0) {
16216
+ if (typeof CSS !== "undefined" && typeof CSS.supports === "function") {
16217
+ cachedSupportsTouchActionNone = CSS.supports("touch-action", "none");
16218
+ } else {
16219
+ cachedSupportsTouchActionNone = true;
16220
+ }
16221
+ }
16222
+ return cachedSupportsTouchActionNone;
16223
+ }
16224
+ function useSlider(parameters) {
16225
+ const {
16226
+ "aria-labelledby": ariaLabelledby,
16227
+ defaultValue,
16228
+ disabled = false,
16229
+ disableSwap = false,
16230
+ isRtl = false,
16231
+ marks: marksProp = false,
16232
+ max = 100,
16233
+ min = 0,
16234
+ name,
16235
+ onChange,
16236
+ onChangeCommitted,
16237
+ orientation = "horizontal",
16238
+ rootRef: ref,
16239
+ scale = Identity$1,
16240
+ step = 1,
16241
+ shiftStep = 10,
16242
+ tabIndex,
16243
+ value: valueProp
16244
+ } = parameters;
16245
+ const touchId = React__namespace.useRef(void 0);
16246
+ const [active, setActive] = React__namespace.useState(-1);
16247
+ const [open, setOpen] = React__namespace.useState(-1);
16248
+ const [dragging, setDragging] = React__namespace.useState(false);
16249
+ const moveCount = React__namespace.useRef(0);
16250
+ const lastChangedValue = React__namespace.useRef(null);
16251
+ const [valueDerived, setValueState] = useControlled({
16252
+ controlled: valueProp,
16253
+ default: defaultValue ?? min,
16254
+ name: "Slider"
16255
+ });
16256
+ const handleChange = onChange && ((event, value, thumbIndex) => {
16257
+ const nativeEvent = event.nativeEvent || event;
16258
+ const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
16259
+ Object.defineProperty(clonedEvent, "target", {
16260
+ writable: true,
16261
+ value: {
16262
+ value,
16263
+ name
16264
+ }
16265
+ });
16266
+ lastChangedValue.current = value;
16267
+ onChange(clonedEvent, value, thumbIndex);
16268
+ });
16269
+ const range = Array.isArray(valueDerived);
16270
+ let values2 = range ? valueDerived.slice().sort(asc) : [valueDerived];
16271
+ values2 = values2.map((value) => value == null ? min : clamp(value, min, max));
16272
+ const marks = marksProp === true && step !== null ? [...Array(Math.floor((max - min) / step) + 1)].map((_, index) => ({
16273
+ value: min + step * index
16274
+ })) : marksProp || [];
16275
+ const marksValues = marks.map((mark) => mark.value);
16276
+ const [focusedThumbIndex, setFocusedThumbIndex] = React__namespace.useState(-1);
16277
+ const sliderRef = React__namespace.useRef(null);
16278
+ const handleRef = useForkRef(ref, sliderRef);
16279
+ const createHandleHiddenInputFocus = (otherHandlers) => (event) => {
16280
+ var _a;
16281
+ const index = Number(event.currentTarget.getAttribute("data-index"));
16282
+ if (isFocusVisible(event.target)) {
16283
+ setFocusedThumbIndex(index);
16284
+ }
16285
+ setOpen(index);
16286
+ (_a = otherHandlers == null ? void 0 : otherHandlers.onFocus) == null ? void 0 : _a.call(otherHandlers, event);
16287
+ };
16288
+ const createHandleHiddenInputBlur = (otherHandlers) => (event) => {
16289
+ var _a;
16290
+ if (!isFocusVisible(event.target)) {
16291
+ setFocusedThumbIndex(-1);
16292
+ }
16293
+ setOpen(-1);
16294
+ (_a = otherHandlers == null ? void 0 : otherHandlers.onBlur) == null ? void 0 : _a.call(otherHandlers, event);
16295
+ };
16296
+ const changeValue = (event, valueInput) => {
16297
+ const index = Number(event.currentTarget.getAttribute("data-index"));
16298
+ const value = values2[index];
16299
+ const marksIndex = marksValues.indexOf(value);
16300
+ let newValue = valueInput;
16301
+ if (marks && step == null) {
16302
+ const maxMarksValue = marksValues[marksValues.length - 1];
16303
+ if (newValue >= maxMarksValue) {
16304
+ newValue = maxMarksValue;
16305
+ } else if (newValue <= marksValues[0]) {
16306
+ newValue = marksValues[0];
16307
+ } else {
16308
+ newValue = newValue < value ? marksValues[marksIndex - 1] : marksValues[marksIndex + 1];
16309
+ }
16310
+ }
16311
+ newValue = clamp(newValue, min, max);
16312
+ if (range) {
16313
+ if (disableSwap) {
16314
+ newValue = clamp(newValue, values2[index - 1] || -Infinity, values2[index + 1] || Infinity);
16315
+ }
16316
+ const previousValue = newValue;
16317
+ newValue = setValueIndex({
16318
+ values: values2,
16319
+ newValue,
16320
+ index
16321
+ });
16322
+ let activeIndex = index;
16323
+ if (!disableSwap) {
16324
+ activeIndex = newValue.indexOf(previousValue);
16325
+ }
16326
+ focusThumb({
16327
+ sliderRef,
16328
+ activeIndex
16329
+ });
16330
+ }
16331
+ setValueState(newValue);
16332
+ setFocusedThumbIndex(index);
16333
+ if (handleChange && !areValuesEqual(newValue, valueDerived)) {
16334
+ handleChange(event, newValue, index);
16335
+ }
16336
+ if (onChangeCommitted) {
16337
+ onChangeCommitted(event, lastChangedValue.current ?? newValue);
16338
+ }
16339
+ };
16340
+ const createHandleHiddenInputKeyDown = (otherHandlers) => (event) => {
16341
+ var _a;
16342
+ if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(event.key)) {
16343
+ event.preventDefault();
16344
+ const index = Number(event.currentTarget.getAttribute("data-index"));
16345
+ const value = values2[index];
16346
+ let newValue = null;
16347
+ if (step != null) {
16348
+ const stepSize = event.shiftKey ? shiftStep : step;
16349
+ switch (event.key) {
16350
+ case "ArrowUp":
16351
+ newValue = getNewValue(value, stepSize, 1, min, max);
16352
+ break;
16353
+ case "ArrowRight":
16354
+ newValue = getNewValue(value, stepSize, isRtl ? -1 : 1, min, max);
16355
+ break;
16356
+ case "ArrowDown":
16357
+ newValue = getNewValue(value, stepSize, -1, min, max);
16358
+ break;
16359
+ case "ArrowLeft":
16360
+ newValue = getNewValue(value, stepSize, isRtl ? 1 : -1, min, max);
16361
+ break;
16362
+ case "PageUp":
16363
+ newValue = getNewValue(value, shiftStep, 1, min, max);
16364
+ break;
16365
+ case "PageDown":
16366
+ newValue = getNewValue(value, shiftStep, -1, min, max);
16367
+ break;
16368
+ case "Home":
16369
+ newValue = min;
16370
+ break;
16371
+ case "End":
16372
+ newValue = max;
16373
+ break;
16374
+ }
16375
+ } else if (marks) {
16376
+ const maxMarksValue = marksValues[marksValues.length - 1];
16377
+ const currentMarkIndex = marksValues.indexOf(value);
16378
+ const decrementKeys = [isRtl ? "ArrowRight" : "ArrowLeft", "ArrowDown", "PageDown", "Home"];
16379
+ const incrementKeys = [isRtl ? "ArrowLeft" : "ArrowRight", "ArrowUp", "PageUp", "End"];
16380
+ if (decrementKeys.includes(event.key)) {
16381
+ if (currentMarkIndex === 0) {
16382
+ newValue = marksValues[0];
16383
+ } else {
16384
+ newValue = marksValues[currentMarkIndex - 1];
16385
+ }
16386
+ } else if (incrementKeys.includes(event.key)) {
16387
+ if (currentMarkIndex === marksValues.length - 1) {
16388
+ newValue = maxMarksValue;
16389
+ } else {
16390
+ newValue = marksValues[currentMarkIndex + 1];
16391
+ }
16392
+ }
16393
+ }
16394
+ if (newValue != null) {
16395
+ changeValue(event, newValue);
16396
+ }
16397
+ }
16398
+ (_a = otherHandlers == null ? void 0 : otherHandlers.onKeyDown) == null ? void 0 : _a.call(otherHandlers, event);
16399
+ };
16400
+ useEnhancedEffect(() => {
16401
+ var _a;
16402
+ if (disabled && sliderRef.current.contains(document.activeElement)) {
16403
+ (_a = document.activeElement) == null ? void 0 : _a.blur();
16404
+ }
16405
+ }, [disabled]);
16406
+ if (disabled && active !== -1) {
16407
+ setActive(-1);
16408
+ }
16409
+ if (disabled && focusedThumbIndex !== -1) {
16410
+ setFocusedThumbIndex(-1);
16411
+ }
16412
+ const createHandleHiddenInputChange = (otherHandlers) => (event) => {
16413
+ var _a;
16414
+ (_a = otherHandlers.onChange) == null ? void 0 : _a.call(otherHandlers, event);
16415
+ changeValue(event, event.target.valueAsNumber);
16416
+ };
16417
+ const previousIndex = React__namespace.useRef(void 0);
16418
+ let axis = orientation;
16419
+ if (isRtl && orientation === "horizontal") {
16420
+ axis += "-reverse";
16421
+ }
16422
+ const getFingerNewValue = ({
16423
+ finger,
16424
+ move = false
16425
+ }) => {
16426
+ const {
16427
+ current: slider
16428
+ } = sliderRef;
16429
+ const {
16430
+ width: width2,
16431
+ height: height2,
16432
+ bottom,
16433
+ left
16434
+ } = slider.getBoundingClientRect();
16435
+ let percent;
16436
+ if (axis.startsWith("vertical")) {
16437
+ percent = (bottom - finger.y) / height2;
16438
+ } else {
16439
+ percent = (finger.x - left) / width2;
16440
+ }
16441
+ if (axis.includes("-reverse")) {
16442
+ percent = 1 - percent;
16443
+ }
16444
+ let newValue;
16445
+ newValue = percentToValue(percent, min, max);
16446
+ if (step) {
16447
+ newValue = roundValueToStep(newValue, step, min);
16448
+ } else {
16449
+ const closestIndex = findClosest(marksValues, newValue);
16450
+ newValue = marksValues[closestIndex];
16451
+ }
16452
+ newValue = clamp(newValue, min, max);
16453
+ let activeIndex = 0;
16454
+ if (range) {
16455
+ if (!move) {
16456
+ activeIndex = findClosest(values2, newValue);
16457
+ } else {
16458
+ activeIndex = previousIndex.current;
16459
+ }
16460
+ if (disableSwap) {
16461
+ newValue = clamp(newValue, values2[activeIndex - 1] || -Infinity, values2[activeIndex + 1] || Infinity);
16462
+ }
16463
+ const previousValue = newValue;
16464
+ newValue = setValueIndex({
16465
+ values: values2,
16466
+ newValue,
16467
+ index: activeIndex
16468
+ });
16469
+ if (!(disableSwap && move)) {
16470
+ activeIndex = newValue.indexOf(previousValue);
16471
+ previousIndex.current = activeIndex;
16472
+ }
16473
+ }
16474
+ return {
16475
+ newValue,
16476
+ activeIndex
16477
+ };
16478
+ };
16479
+ const handleTouchMove = useEventCallback((nativeEvent) => {
16480
+ const finger = trackFinger(nativeEvent, touchId);
16481
+ if (!finger) {
16482
+ return;
16483
+ }
16484
+ moveCount.current += 1;
16485
+ if (nativeEvent.type === "mousemove" && nativeEvent.buttons === 0) {
16486
+ handleTouchEnd(nativeEvent);
16487
+ return;
16488
+ }
16489
+ const {
16490
+ newValue,
16491
+ activeIndex
16492
+ } = getFingerNewValue({
16493
+ finger,
16494
+ move: true
16495
+ });
16496
+ focusThumb({
16497
+ sliderRef,
16498
+ activeIndex,
16499
+ setActive
16500
+ });
16501
+ setValueState(newValue);
16502
+ if (!dragging && moveCount.current > INTENTIONAL_DRAG_COUNT_THRESHOLD) {
16503
+ setDragging(true);
16504
+ }
16505
+ if (handleChange && !areValuesEqual(newValue, valueDerived)) {
16506
+ handleChange(nativeEvent, newValue, activeIndex);
16507
+ }
16508
+ });
16509
+ const handleTouchEnd = useEventCallback((nativeEvent) => {
16510
+ const finger = trackFinger(nativeEvent, touchId);
16511
+ setDragging(false);
16512
+ if (!finger) {
16513
+ return;
16514
+ }
16515
+ const {
16516
+ newValue
16517
+ } = getFingerNewValue({
16518
+ finger,
16519
+ move: true
16520
+ });
16521
+ setActive(-1);
16522
+ if (nativeEvent.type === "touchend") {
16523
+ setOpen(-1);
16524
+ }
16525
+ if (onChangeCommitted) {
16526
+ onChangeCommitted(nativeEvent, lastChangedValue.current ?? newValue);
16527
+ }
16528
+ touchId.current = void 0;
16529
+ stopListening();
16530
+ });
16531
+ const handleTouchStart = useEventCallback((nativeEvent) => {
16532
+ if (disabled) {
16533
+ return;
16534
+ }
16535
+ if (!doesSupportTouchActionNone()) {
16536
+ nativeEvent.preventDefault();
16537
+ }
16538
+ const touch = nativeEvent.changedTouches[0];
16539
+ if (touch != null) {
16540
+ touchId.current = touch.identifier;
16541
+ }
16542
+ const finger = trackFinger(nativeEvent, touchId);
16543
+ if (finger !== false) {
16544
+ const {
16545
+ newValue,
16546
+ activeIndex
16547
+ } = getFingerNewValue({
16548
+ finger
16549
+ });
16550
+ focusThumb({
16551
+ sliderRef,
16552
+ activeIndex,
16553
+ setActive
16554
+ });
16555
+ setValueState(newValue);
16556
+ if (handleChange && !areValuesEqual(newValue, valueDerived)) {
16557
+ handleChange(nativeEvent, newValue, activeIndex);
16558
+ }
16559
+ }
16560
+ moveCount.current = 0;
16561
+ const doc = ownerDocument(sliderRef.current);
16562
+ doc.addEventListener("touchmove", handleTouchMove, {
16563
+ passive: true
16564
+ });
16565
+ doc.addEventListener("touchend", handleTouchEnd, {
16566
+ passive: true
16567
+ });
16568
+ });
16569
+ const stopListening = React__namespace.useCallback(() => {
16570
+ const doc = ownerDocument(sliderRef.current);
16571
+ doc.removeEventListener("mousemove", handleTouchMove);
16572
+ doc.removeEventListener("mouseup", handleTouchEnd);
16573
+ doc.removeEventListener("touchmove", handleTouchMove);
16574
+ doc.removeEventListener("touchend", handleTouchEnd);
16575
+ }, [handleTouchEnd, handleTouchMove]);
16576
+ React__namespace.useEffect(() => {
16577
+ const {
16578
+ current: slider
16579
+ } = sliderRef;
16580
+ slider.addEventListener("touchstart", handleTouchStart, {
16581
+ passive: doesSupportTouchActionNone()
16582
+ });
16583
+ return () => {
16584
+ slider.removeEventListener("touchstart", handleTouchStart);
16585
+ stopListening();
16586
+ };
16587
+ }, [stopListening, handleTouchStart]);
16588
+ React__namespace.useEffect(() => {
16589
+ if (disabled) {
16590
+ stopListening();
16591
+ }
16592
+ }, [disabled, stopListening]);
16593
+ const createHandleMouseDown = (otherHandlers) => (event) => {
16594
+ var _a;
16595
+ (_a = otherHandlers.onMouseDown) == null ? void 0 : _a.call(otherHandlers, event);
16596
+ if (disabled) {
16597
+ return;
16598
+ }
16599
+ if (event.defaultPrevented) {
16600
+ return;
16601
+ }
16602
+ if (event.button !== 0) {
16603
+ return;
16604
+ }
16605
+ event.preventDefault();
16606
+ const finger = trackFinger(event, touchId);
16607
+ if (finger !== false) {
16608
+ const {
16609
+ newValue,
16610
+ activeIndex
16611
+ } = getFingerNewValue({
16612
+ finger
16613
+ });
16614
+ focusThumb({
16615
+ sliderRef,
16616
+ activeIndex,
16617
+ setActive
16618
+ });
16619
+ setValueState(newValue);
16620
+ if (handleChange && !areValuesEqual(newValue, valueDerived)) {
16621
+ handleChange(event, newValue, activeIndex);
16622
+ }
16623
+ }
16624
+ moveCount.current = 0;
16625
+ const doc = ownerDocument(sliderRef.current);
16626
+ doc.addEventListener("mousemove", handleTouchMove, {
16627
+ passive: true
16628
+ });
16629
+ doc.addEventListener("mouseup", handleTouchEnd);
16630
+ };
16631
+ const trackOffset = valueToPercent(range ? values2[0] : min, min, max);
16632
+ const trackLeap = valueToPercent(values2[values2.length - 1], min, max) - trackOffset;
16633
+ const getRootProps = (externalProps = {}) => {
16634
+ const externalHandlers = extractEventHandlers(externalProps);
16635
+ const ownEventHandlers = {
16636
+ onMouseDown: createHandleMouseDown(externalHandlers || {})
16637
+ };
16638
+ const mergedEventHandlers = {
16639
+ ...externalHandlers,
16640
+ ...ownEventHandlers
16641
+ };
16642
+ return {
16643
+ ...externalProps,
16644
+ ref: handleRef,
16645
+ ...mergedEventHandlers
16646
+ };
16647
+ };
16648
+ const createHandleMouseOver = (otherHandlers) => (event) => {
16649
+ var _a;
16650
+ (_a = otherHandlers.onMouseOver) == null ? void 0 : _a.call(otherHandlers, event);
16651
+ const index = Number(event.currentTarget.getAttribute("data-index"));
16652
+ setOpen(index);
16653
+ };
16654
+ const createHandleMouseLeave = (otherHandlers) => (event) => {
16655
+ var _a;
16656
+ (_a = otherHandlers.onMouseLeave) == null ? void 0 : _a.call(otherHandlers, event);
16657
+ setOpen(-1);
16658
+ };
16659
+ const getThumbProps = (externalProps = {}) => {
16660
+ const externalHandlers = extractEventHandlers(externalProps);
16661
+ const ownEventHandlers = {
16662
+ onMouseOver: createHandleMouseOver(externalHandlers || {}),
16663
+ onMouseLeave: createHandleMouseLeave(externalHandlers || {})
16664
+ };
16665
+ return {
16666
+ ...externalProps,
16667
+ ...externalHandlers,
16668
+ ...ownEventHandlers
16669
+ };
16670
+ };
16671
+ const getThumbStyle = (index) => {
16672
+ return {
16673
+ // So the non active thumb doesn't show its label on hover.
16674
+ pointerEvents: active !== -1 && active !== index ? "none" : void 0
16675
+ };
16676
+ };
16677
+ let cssWritingMode;
16678
+ if (orientation === "vertical") {
16679
+ cssWritingMode = isRtl ? "vertical-rl" : "vertical-lr";
16680
+ }
16681
+ const getHiddenInputProps = (externalProps = {}) => {
16682
+ const externalHandlers = extractEventHandlers(externalProps);
16683
+ const ownEventHandlers = {
16684
+ onChange: createHandleHiddenInputChange(externalHandlers || {}),
16685
+ onFocus: createHandleHiddenInputFocus(externalHandlers || {}),
16686
+ onBlur: createHandleHiddenInputBlur(externalHandlers || {}),
16687
+ onKeyDown: createHandleHiddenInputKeyDown(externalHandlers || {})
16688
+ };
16689
+ const mergedEventHandlers = {
16690
+ ...externalHandlers,
16691
+ ...ownEventHandlers
16692
+ };
16693
+ return {
16694
+ tabIndex,
16695
+ "aria-labelledby": ariaLabelledby,
16696
+ "aria-orientation": orientation,
16697
+ "aria-valuemax": scale(max),
16698
+ "aria-valuemin": scale(min),
16699
+ name,
16700
+ type: "range",
16701
+ min: parameters.min,
16702
+ max: parameters.max,
16703
+ step: parameters.step === null && parameters.marks ? "any" : parameters.step ?? void 0,
16704
+ disabled,
16705
+ ...externalProps,
16706
+ ...mergedEventHandlers,
16707
+ style: {
16708
+ ...visuallyHidden,
16709
+ direction: isRtl ? "rtl" : "ltr",
16710
+ // So that VoiceOver's focus indicator matches the thumb's dimensions
16711
+ width: "100%",
16712
+ height: "100%",
16713
+ writingMode: cssWritingMode
16714
+ }
16715
+ };
16716
+ };
16717
+ return {
16718
+ active,
16719
+ axis,
16720
+ axisProps,
16721
+ dragging,
16722
+ focusedThumbIndex,
16723
+ getHiddenInputProps,
16724
+ getRootProps,
16725
+ getThumbProps,
16726
+ marks,
16727
+ open,
16728
+ range,
16729
+ rootRef: handleRef,
16730
+ trackLeap,
16731
+ trackOffset,
16732
+ values: values2,
16733
+ getThumbStyle
16734
+ };
16735
+ }
16736
+ const shouldSpreadAdditionalProps = (Slot) => {
16737
+ return !Slot || !isHostComponent(Slot);
16738
+ };
16739
+ function getSliderUtilityClass(slot) {
16740
+ return generateUtilityClass("MuiSlider", slot);
16741
+ }
16742
+ const sliderClasses = generateUtilityClasses("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "disabled", "dragging", "focusVisible", "mark", "markActive", "marked", "markLabel", "markLabelActive", "rail", "sizeSmall", "thumb", "thumbColorPrimary", "thumbColorSecondary", "thumbColorError", "thumbColorSuccess", "thumbColorInfo", "thumbColorWarning", "track", "trackInverted", "trackFalse", "thumbSizeSmall", "valueLabel", "valueLabelOpen", "valueLabelCircle", "valueLabelLabel", "vertical"]);
16743
+ const useValueLabelClasses = (props) => {
16744
+ const {
16745
+ open
16746
+ } = props;
16747
+ const utilityClasses = {
16748
+ offset: clsx(open && sliderClasses.valueLabelOpen),
16749
+ circle: sliderClasses.valueLabelCircle,
16750
+ label: sliderClasses.valueLabelLabel
16751
+ };
16752
+ return utilityClasses;
16753
+ };
16754
+ function SliderValueLabel$1(props) {
16755
+ const {
16756
+ children,
16757
+ className,
16758
+ value
16759
+ } = props;
16760
+ const classes = useValueLabelClasses(props);
16761
+ if (!children) {
16762
+ return null;
16763
+ }
16764
+ return /* @__PURE__ */ React__namespace.cloneElement(children, {
16765
+ className: children.props.className
16766
+ }, /* @__PURE__ */ jsxRuntime.jsxs(React__namespace.Fragment, {
16767
+ children: [children.props.children, /* @__PURE__ */ jsxRuntime.jsx("span", {
16768
+ className: clsx(classes.offset, className),
16769
+ "aria-hidden": true,
16770
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", {
16771
+ className: classes.circle,
16772
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", {
16773
+ className: classes.label,
16774
+ children: value
16775
+ })
16776
+ })
16777
+ })]
16778
+ }));
16779
+ }
16780
+ process.env.NODE_ENV !== "production" ? SliderValueLabel$1.propTypes = {
16781
+ children: PropTypes.element.isRequired,
16782
+ className: PropTypes.string,
16783
+ value: PropTypes.node
16784
+ } : void 0;
16785
+ function Identity(x) {
16786
+ return x;
16787
+ }
16788
+ const SliderRoot = styled("span", {
16789
+ name: "MuiSlider",
16790
+ slot: "Root",
16791
+ overridesResolver: (props, styles2) => {
16792
+ const {
16793
+ ownerState
16794
+ } = props;
16795
+ return [styles2.root, styles2[`color${capitalize(ownerState.color)}`], ownerState.size !== "medium" && styles2[`size${capitalize(ownerState.size)}`], ownerState.marked && styles2.marked, ownerState.orientation === "vertical" && styles2.vertical, ownerState.track === "inverted" && styles2.trackInverted, ownerState.track === false && styles2.trackFalse];
16796
+ }
16797
+ })(memoTheme(({
16798
+ theme
16799
+ }) => ({
16800
+ borderRadius: 12,
16801
+ boxSizing: "content-box",
16802
+ display: "inline-block",
16803
+ position: "relative",
16804
+ cursor: "pointer",
16805
+ touchAction: "none",
16806
+ WebkitTapHighlightColor: "transparent",
16807
+ "@media print": {
16808
+ colorAdjust: "exact"
16809
+ },
16810
+ [`&.${sliderClasses.disabled}`]: {
16811
+ pointerEvents: "none",
16812
+ cursor: "default",
16813
+ color: (theme.vars || theme).palette.grey[400]
16814
+ },
16815
+ [`&.${sliderClasses.dragging}`]: {
16816
+ [`& .${sliderClasses.thumb}, & .${sliderClasses.track}`]: {
16817
+ transition: "none"
16818
+ }
16819
+ },
16820
+ variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
16821
+ props: {
16822
+ color: color2
16823
+ },
16824
+ style: {
16825
+ color: (theme.vars || theme).palette[color2].main
16826
+ }
16827
+ })), {
16828
+ props: {
16829
+ orientation: "horizontal"
16830
+ },
16831
+ style: {
16832
+ height: 4,
16833
+ width: "100%",
16834
+ padding: "13px 0",
16835
+ // The primary input mechanism of the device includes a pointing device of limited accuracy.
16836
+ "@media (pointer: coarse)": {
16837
+ // Reach 42px touch target, about ~8mm on screen.
16838
+ padding: "20px 0"
16839
+ }
16840
+ }
16841
+ }, {
16842
+ props: {
16843
+ orientation: "horizontal",
16844
+ size: "small"
16845
+ },
16846
+ style: {
16847
+ height: 2
16848
+ }
16849
+ }, {
16850
+ props: {
16851
+ orientation: "horizontal",
16852
+ marked: true
16853
+ },
16854
+ style: {
16855
+ marginBottom: 20
16856
+ }
16857
+ }, {
16858
+ props: {
16859
+ orientation: "vertical"
16860
+ },
16861
+ style: {
16862
+ height: "100%",
16863
+ width: 4,
16864
+ padding: "0 13px",
16865
+ // The primary input mechanism of the device includes a pointing device of limited accuracy.
16866
+ "@media (pointer: coarse)": {
16867
+ // Reach 42px touch target, about ~8mm on screen.
16868
+ padding: "0 20px"
16869
+ }
16870
+ }
16871
+ }, {
16872
+ props: {
16873
+ orientation: "vertical",
16874
+ size: "small"
16875
+ },
16876
+ style: {
16877
+ width: 2
16878
+ }
16879
+ }, {
16880
+ props: {
16881
+ orientation: "vertical",
16882
+ marked: true
16883
+ },
16884
+ style: {
16885
+ marginRight: 44
16886
+ }
16887
+ }]
16888
+ })));
16889
+ const SliderRail = styled("span", {
16890
+ name: "MuiSlider",
16891
+ slot: "Rail"
16892
+ })({
16893
+ display: "block",
16894
+ position: "absolute",
16895
+ borderRadius: "inherit",
16896
+ backgroundColor: "currentColor",
16897
+ opacity: 0.38,
16898
+ variants: [{
16899
+ props: {
16900
+ orientation: "horizontal"
16901
+ },
16902
+ style: {
16903
+ width: "100%",
16904
+ height: "inherit",
16905
+ top: "50%",
16906
+ transform: "translateY(-50%)"
16907
+ }
16908
+ }, {
16909
+ props: {
16910
+ orientation: "vertical"
16911
+ },
16912
+ style: {
16913
+ height: "100%",
16914
+ width: "inherit",
16915
+ left: "50%",
16916
+ transform: "translateX(-50%)"
16917
+ }
16918
+ }, {
16919
+ props: {
16920
+ track: "inverted"
16921
+ },
16922
+ style: {
16923
+ opacity: 1
16924
+ }
16925
+ }]
16926
+ });
16927
+ const SliderTrack = styled("span", {
16928
+ name: "MuiSlider",
16929
+ slot: "Track"
16930
+ })(memoTheme(({
16931
+ theme
16932
+ }) => {
16933
+ return {
16934
+ display: "block",
16935
+ position: "absolute",
16936
+ borderRadius: "inherit",
16937
+ border: "1px solid currentColor",
16938
+ backgroundColor: "currentColor",
16939
+ transition: theme.transitions.create(["left", "width", "bottom", "height"], {
16940
+ duration: theme.transitions.duration.shortest
16941
+ }),
16942
+ variants: [{
16943
+ props: {
16944
+ size: "small"
16945
+ },
16946
+ style: {
16947
+ border: "none"
16948
+ }
16949
+ }, {
16950
+ props: {
16951
+ orientation: "horizontal"
16952
+ },
16953
+ style: {
16954
+ height: "inherit",
16955
+ top: "50%",
16956
+ transform: "translateY(-50%)"
16957
+ }
16958
+ }, {
16959
+ props: {
16960
+ orientation: "vertical"
16961
+ },
16962
+ style: {
16963
+ width: "inherit",
16964
+ left: "50%",
16965
+ transform: "translateX(-50%)"
16966
+ }
16967
+ }, {
16968
+ props: {
16969
+ track: false
16970
+ },
16971
+ style: {
16972
+ display: "none"
16973
+ }
16974
+ }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
16975
+ props: {
16976
+ color: color2,
16977
+ track: "inverted"
16978
+ },
16979
+ style: {
16980
+ ...theme.vars ? {
16981
+ backgroundColor: theme.vars.palette.Slider[`${color2}Track`],
16982
+ borderColor: theme.vars.palette.Slider[`${color2}Track`]
16983
+ } : {
16984
+ backgroundColor: theme.lighten(theme.palette[color2].main, 0.62),
16985
+ borderColor: theme.lighten(theme.palette[color2].main, 0.62),
16986
+ ...theme.applyStyles("dark", {
16987
+ backgroundColor: theme.darken(theme.palette[color2].main, 0.5)
16988
+ }),
16989
+ ...theme.applyStyles("dark", {
16990
+ borderColor: theme.darken(theme.palette[color2].main, 0.5)
16991
+ })
16992
+ }
16993
+ }
16994
+ }))]
16995
+ };
16996
+ }));
16997
+ const SliderThumb = styled("span", {
16998
+ name: "MuiSlider",
16999
+ slot: "Thumb",
17000
+ overridesResolver: (props, styles2) => {
17001
+ const {
17002
+ ownerState
17003
+ } = props;
17004
+ return [styles2.thumb, styles2[`thumbColor${capitalize(ownerState.color)}`], ownerState.size !== "medium" && styles2[`thumbSize${capitalize(ownerState.size)}`]];
17005
+ }
17006
+ })(memoTheme(({
17007
+ theme
17008
+ }) => ({
17009
+ position: "absolute",
17010
+ width: 20,
17011
+ height: 20,
17012
+ boxSizing: "border-box",
17013
+ borderRadius: "50%",
17014
+ outline: 0,
17015
+ backgroundColor: "currentColor",
17016
+ display: "flex",
17017
+ alignItems: "center",
17018
+ justifyContent: "center",
17019
+ transition: theme.transitions.create(["box-shadow", "left", "bottom"], {
17020
+ duration: theme.transitions.duration.shortest
17021
+ }),
17022
+ "&::before": {
17023
+ position: "absolute",
17024
+ content: '""',
17025
+ borderRadius: "inherit",
17026
+ width: "100%",
17027
+ height: "100%",
17028
+ boxShadow: (theme.vars || theme).shadows[2]
17029
+ },
17030
+ "&::after": {
17031
+ position: "absolute",
17032
+ content: '""',
17033
+ borderRadius: "50%",
17034
+ // 42px is the hit target
17035
+ width: 42,
17036
+ height: 42,
17037
+ top: "50%",
17038
+ left: "50%",
17039
+ transform: "translate(-50%, -50%)"
17040
+ },
17041
+ [`&.${sliderClasses.disabled}`]: {
17042
+ "&:hover": {
17043
+ boxShadow: "none"
17044
+ }
17045
+ },
17046
+ variants: [{
17047
+ props: {
17048
+ size: "small"
17049
+ },
17050
+ style: {
17051
+ width: 12,
17052
+ height: 12,
17053
+ "&::before": {
17054
+ boxShadow: "none"
17055
+ }
17056
+ }
17057
+ }, {
17058
+ props: {
17059
+ orientation: "horizontal"
17060
+ },
17061
+ style: {
17062
+ top: "50%",
17063
+ transform: "translate(-50%, -50%)"
17064
+ }
17065
+ }, {
17066
+ props: {
17067
+ orientation: "vertical"
17068
+ },
17069
+ style: {
17070
+ left: "50%",
17071
+ transform: "translate(-50%, 50%)"
17072
+ }
17073
+ }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
17074
+ props: {
17075
+ color: color2
17076
+ },
17077
+ style: {
17078
+ [`&:hover, &.${sliderClasses.focusVisible}`]: {
17079
+ boxShadow: `0px 0px 0px 8px ${theme.alpha((theme.vars || theme).palette[color2].main, 0.16)}`,
17080
+ "@media (hover: none)": {
17081
+ boxShadow: "none"
17082
+ }
17083
+ },
17084
+ [`&.${sliderClasses.active}`]: {
17085
+ boxShadow: `0px 0px 0px 14px ${theme.alpha((theme.vars || theme).palette[color2].main, 0.16)}`
17086
+ }
17087
+ }
17088
+ }))]
17089
+ })));
17090
+ const SliderValueLabel = styled(SliderValueLabel$1, {
17091
+ name: "MuiSlider",
17092
+ slot: "ValueLabel"
17093
+ })(memoTheme(({
17094
+ theme
17095
+ }) => ({
17096
+ zIndex: 1,
17097
+ whiteSpace: "nowrap",
17098
+ ...theme.typography.body2,
17099
+ fontWeight: 500,
17100
+ transition: theme.transitions.create(["transform"], {
17101
+ duration: theme.transitions.duration.shortest
17102
+ }),
17103
+ position: "absolute",
17104
+ backgroundColor: (theme.vars || theme).palette.grey[600],
17105
+ borderRadius: 2,
17106
+ color: (theme.vars || theme).palette.common.white,
17107
+ display: "flex",
17108
+ alignItems: "center",
17109
+ justifyContent: "center",
17110
+ padding: "0.25rem 0.75rem",
17111
+ variants: [{
17112
+ props: {
17113
+ orientation: "horizontal"
17114
+ },
17115
+ style: {
17116
+ transform: "translateY(-100%) scale(0)",
17117
+ top: "-10px",
17118
+ transformOrigin: "bottom center",
17119
+ "&::before": {
17120
+ position: "absolute",
17121
+ content: '""',
17122
+ width: 8,
17123
+ height: 8,
17124
+ transform: "translate(-50%, 50%) rotate(45deg)",
17125
+ backgroundColor: "inherit",
17126
+ bottom: 0,
17127
+ left: "50%"
17128
+ },
17129
+ [`&.${sliderClasses.valueLabelOpen}`]: {
17130
+ transform: "translateY(-100%) scale(1)"
17131
+ }
17132
+ }
17133
+ }, {
17134
+ props: {
17135
+ orientation: "vertical"
17136
+ },
17137
+ style: {
17138
+ transform: "translateY(-50%) scale(0)",
17139
+ right: "30px",
17140
+ top: "50%",
17141
+ transformOrigin: "right center",
17142
+ "&::before": {
17143
+ position: "absolute",
17144
+ content: '""',
17145
+ width: 8,
17146
+ height: 8,
17147
+ transform: "translate(-50%, -50%) rotate(45deg)",
17148
+ backgroundColor: "inherit",
17149
+ right: -8,
17150
+ top: "50%"
17151
+ },
17152
+ [`&.${sliderClasses.valueLabelOpen}`]: {
17153
+ transform: "translateY(-50%) scale(1)"
17154
+ }
17155
+ }
17156
+ }, {
17157
+ props: {
17158
+ size: "small"
17159
+ },
17160
+ style: {
17161
+ fontSize: theme.typography.pxToRem(12),
17162
+ padding: "0.25rem 0.5rem"
17163
+ }
17164
+ }, {
17165
+ props: {
17166
+ orientation: "vertical",
17167
+ size: "small"
17168
+ },
17169
+ style: {
17170
+ right: "20px"
17171
+ }
17172
+ }]
17173
+ })));
17174
+ process.env.NODE_ENV !== "production" ? SliderValueLabel.propTypes = {
17175
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
17176
+ // │ These PropTypes are generated from the TypeScript type definitions. │
17177
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
17178
+ // └─────────────────────────────────────────────────────────────────────┘
17179
+ /**
17180
+ * @ignore
17181
+ */
17182
+ children: PropTypes.element.isRequired,
17183
+ /**
17184
+ * @ignore
17185
+ */
17186
+ index: PropTypes.number.isRequired,
17187
+ /**
17188
+ * @ignore
17189
+ */
17190
+ open: PropTypes.bool.isRequired,
17191
+ /**
17192
+ * @ignore
17193
+ */
17194
+ value: PropTypes.node
17195
+ } : void 0;
17196
+ const SliderMark = styled("span", {
17197
+ name: "MuiSlider",
17198
+ slot: "Mark",
17199
+ shouldForwardProp: (prop) => slotShouldForwardProp(prop) && prop !== "markActive",
17200
+ overridesResolver: (props, styles2) => {
17201
+ const {
17202
+ markActive
17203
+ } = props;
17204
+ return [styles2.mark, markActive && styles2.markActive];
17205
+ }
17206
+ })(memoTheme(({
17207
+ theme
17208
+ }) => ({
17209
+ position: "absolute",
17210
+ width: 2,
17211
+ height: 2,
17212
+ borderRadius: 1,
17213
+ backgroundColor: "currentColor",
17214
+ variants: [{
17215
+ props: {
17216
+ orientation: "horizontal"
17217
+ },
17218
+ style: {
17219
+ top: "50%",
17220
+ transform: "translate(-1px, -50%)"
17221
+ }
17222
+ }, {
17223
+ props: {
17224
+ orientation: "vertical"
17225
+ },
17226
+ style: {
17227
+ left: "50%",
17228
+ transform: "translate(-50%, 1px)"
17229
+ }
17230
+ }, {
17231
+ props: {
17232
+ markActive: true
17233
+ },
17234
+ style: {
17235
+ backgroundColor: (theme.vars || theme).palette.background.paper,
17236
+ opacity: 0.8
17237
+ }
17238
+ }]
17239
+ })));
17240
+ const SliderMarkLabel = styled("span", {
17241
+ name: "MuiSlider",
17242
+ slot: "MarkLabel",
17243
+ shouldForwardProp: (prop) => slotShouldForwardProp(prop) && prop !== "markLabelActive"
17244
+ })(memoTheme(({
17245
+ theme
17246
+ }) => ({
17247
+ ...theme.typography.body2,
17248
+ color: (theme.vars || theme).palette.text.secondary,
17249
+ position: "absolute",
17250
+ whiteSpace: "nowrap",
17251
+ variants: [{
17252
+ props: {
17253
+ orientation: "horizontal"
17254
+ },
17255
+ style: {
17256
+ top: 30,
17257
+ transform: "translateX(-50%)",
17258
+ "@media (pointer: coarse)": {
17259
+ top: 40
17260
+ }
17261
+ }
17262
+ }, {
17263
+ props: {
17264
+ orientation: "vertical"
17265
+ },
17266
+ style: {
17267
+ left: 36,
17268
+ transform: "translateY(50%)",
17269
+ "@media (pointer: coarse)": {
17270
+ left: 44
17271
+ }
17272
+ }
17273
+ }, {
17274
+ props: {
17275
+ markLabelActive: true
17276
+ },
17277
+ style: {
17278
+ color: (theme.vars || theme).palette.text.primary
17279
+ }
17280
+ }]
17281
+ })));
17282
+ const useUtilityClasses = (ownerState) => {
17283
+ const {
17284
+ disabled,
17285
+ dragging,
17286
+ marked,
17287
+ orientation,
17288
+ track,
17289
+ classes,
17290
+ color: color2,
17291
+ size
17292
+ } = ownerState;
17293
+ const slots = {
17294
+ root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse", color2 && `color${capitalize(color2)}`, size && `size${capitalize(size)}`],
17295
+ rail: ["rail"],
17296
+ track: ["track"],
17297
+ mark: ["mark"],
17298
+ markActive: ["markActive"],
17299
+ markLabel: ["markLabel"],
17300
+ markLabelActive: ["markLabelActive"],
17301
+ valueLabel: ["valueLabel"],
17302
+ thumb: ["thumb", disabled && "disabled", size && `thumbSize${capitalize(size)}`, color2 && `thumbColor${capitalize(color2)}`],
17303
+ active: ["active"],
17304
+ disabled: ["disabled"],
17305
+ focusVisible: ["focusVisible"]
17306
+ };
17307
+ return composeClasses(slots, getSliderUtilityClass, classes);
17308
+ };
17309
+ const Forward = ({
17310
+ children
17311
+ }) => children;
17312
+ const Slider = /* @__PURE__ */ React__namespace.forwardRef(function Slider2(inputProps, ref) {
17313
+ const props = useDefaultProps({
17314
+ props: inputProps,
17315
+ name: "MuiSlider"
17316
+ });
17317
+ const isRtl = useRtl();
17318
+ const {
17319
+ "aria-label": ariaLabel,
17320
+ "aria-valuetext": ariaValuetext,
17321
+ "aria-labelledby": ariaLabelledby,
17322
+ // eslint-disable-next-line react/prop-types
17323
+ component = "span",
17324
+ components = {},
17325
+ componentsProps = {},
17326
+ color: color2 = "primary",
17327
+ classes: classesProp,
17328
+ className,
17329
+ disableSwap = false,
17330
+ disabled = false,
17331
+ getAriaLabel,
17332
+ getAriaValueText,
17333
+ marks: marksProp = false,
17334
+ max = 100,
17335
+ min = 0,
17336
+ name,
17337
+ onChange,
17338
+ onChangeCommitted,
17339
+ orientation = "horizontal",
17340
+ shiftStep = 10,
17341
+ size = "medium",
17342
+ step = 1,
17343
+ scale = Identity,
17344
+ slotProps,
17345
+ slots,
17346
+ tabIndex,
17347
+ track = "normal",
17348
+ value: valueProp,
17349
+ valueLabelDisplay = "off",
17350
+ valueLabelFormat = Identity,
17351
+ ...other
17352
+ } = props;
17353
+ const ownerState = {
17354
+ ...props,
17355
+ isRtl,
17356
+ max,
17357
+ min,
17358
+ classes: classesProp,
17359
+ disabled,
17360
+ disableSwap,
17361
+ orientation,
17362
+ marks: marksProp,
17363
+ color: color2,
17364
+ size,
17365
+ step,
17366
+ shiftStep,
17367
+ scale,
17368
+ track,
17369
+ valueLabelDisplay,
17370
+ valueLabelFormat
17371
+ };
17372
+ const {
17373
+ axisProps: axisProps2,
17374
+ getRootProps,
17375
+ getHiddenInputProps,
17376
+ getThumbProps,
17377
+ open,
17378
+ active,
17379
+ axis,
17380
+ focusedThumbIndex,
17381
+ range,
17382
+ dragging,
17383
+ marks,
17384
+ values: values2,
17385
+ trackOffset,
17386
+ trackLeap,
17387
+ getThumbStyle
17388
+ } = useSlider({
17389
+ ...ownerState,
17390
+ rootRef: ref
17391
+ });
17392
+ ownerState.marked = marks.length > 0 && marks.some((mark) => mark.label);
17393
+ ownerState.dragging = dragging;
17394
+ ownerState.focusedThumbIndex = focusedThumbIndex;
17395
+ const classes = useUtilityClasses(ownerState);
17396
+ const RootSlot = (slots == null ? void 0 : slots.root) ?? components.Root ?? SliderRoot;
17397
+ const RailSlot = (slots == null ? void 0 : slots.rail) ?? components.Rail ?? SliderRail;
17398
+ const TrackSlot = (slots == null ? void 0 : slots.track) ?? components.Track ?? SliderTrack;
17399
+ const ThumbSlot = (slots == null ? void 0 : slots.thumb) ?? components.Thumb ?? SliderThumb;
17400
+ const ValueLabelSlot = (slots == null ? void 0 : slots.valueLabel) ?? components.ValueLabel ?? SliderValueLabel;
17401
+ const MarkSlot = (slots == null ? void 0 : slots.mark) ?? components.Mark ?? SliderMark;
17402
+ const MarkLabelSlot = (slots == null ? void 0 : slots.markLabel) ?? components.MarkLabel ?? SliderMarkLabel;
17403
+ const InputSlot = (slots == null ? void 0 : slots.input) ?? components.Input ?? "input";
17404
+ const rootSlotProps = (slotProps == null ? void 0 : slotProps.root) ?? componentsProps.root;
17405
+ const railSlotProps = (slotProps == null ? void 0 : slotProps.rail) ?? componentsProps.rail;
17406
+ const trackSlotProps = (slotProps == null ? void 0 : slotProps.track) ?? componentsProps.track;
17407
+ const thumbSlotProps = (slotProps == null ? void 0 : slotProps.thumb) ?? componentsProps.thumb;
17408
+ const valueLabelSlotProps = (slotProps == null ? void 0 : slotProps.valueLabel) ?? componentsProps.valueLabel;
17409
+ const markSlotProps = (slotProps == null ? void 0 : slotProps.mark) ?? componentsProps.mark;
17410
+ const markLabelSlotProps = (slotProps == null ? void 0 : slotProps.markLabel) ?? componentsProps.markLabel;
17411
+ const inputSlotProps = (slotProps == null ? void 0 : slotProps.input) ?? componentsProps.input;
17412
+ const rootProps = useSlotProps({
17413
+ elementType: RootSlot,
17414
+ getSlotProps: getRootProps,
17415
+ externalSlotProps: rootSlotProps,
17416
+ externalForwardedProps: other,
17417
+ additionalProps: {
17418
+ ...shouldSpreadAdditionalProps(RootSlot) && {
17419
+ as: component
17420
+ }
17421
+ },
17422
+ ownerState: {
17423
+ ...ownerState,
17424
+ ...rootSlotProps == null ? void 0 : rootSlotProps.ownerState
17425
+ },
17426
+ className: [classes.root, className]
17427
+ });
17428
+ const railProps = useSlotProps({
17429
+ elementType: RailSlot,
17430
+ externalSlotProps: railSlotProps,
17431
+ ownerState,
17432
+ className: classes.rail
17433
+ });
17434
+ const trackProps = useSlotProps({
17435
+ elementType: TrackSlot,
17436
+ externalSlotProps: trackSlotProps,
17437
+ additionalProps: {
17438
+ style: {
17439
+ ...axisProps2[axis].offset(trackOffset),
17440
+ ...axisProps2[axis].leap(trackLeap)
17441
+ }
17442
+ },
17443
+ ownerState: {
17444
+ ...ownerState,
17445
+ ...trackSlotProps == null ? void 0 : trackSlotProps.ownerState
17446
+ },
17447
+ className: classes.track
17448
+ });
17449
+ const thumbProps = useSlotProps({
17450
+ elementType: ThumbSlot,
17451
+ getSlotProps: getThumbProps,
17452
+ externalSlotProps: thumbSlotProps,
17453
+ ownerState: {
17454
+ ...ownerState,
17455
+ ...thumbSlotProps == null ? void 0 : thumbSlotProps.ownerState
17456
+ },
17457
+ className: classes.thumb
17458
+ });
17459
+ const valueLabelProps = useSlotProps({
17460
+ elementType: ValueLabelSlot,
17461
+ externalSlotProps: valueLabelSlotProps,
17462
+ ownerState: {
17463
+ ...ownerState,
17464
+ ...valueLabelSlotProps == null ? void 0 : valueLabelSlotProps.ownerState
17465
+ },
17466
+ className: classes.valueLabel
17467
+ });
17468
+ const markProps = useSlotProps({
17469
+ elementType: MarkSlot,
17470
+ externalSlotProps: markSlotProps,
17471
+ ownerState,
17472
+ className: classes.mark
17473
+ });
17474
+ const markLabelProps = useSlotProps({
17475
+ elementType: MarkLabelSlot,
17476
+ externalSlotProps: markLabelSlotProps,
17477
+ ownerState,
17478
+ className: classes.markLabel
17479
+ });
17480
+ const inputSliderProps = useSlotProps({
17481
+ elementType: InputSlot,
17482
+ getSlotProps: getHiddenInputProps,
17483
+ externalSlotProps: inputSlotProps,
17484
+ ownerState
17485
+ });
17486
+ return /* @__PURE__ */ jsxRuntime.jsxs(RootSlot, {
17487
+ ...rootProps,
17488
+ children: [/* @__PURE__ */ jsxRuntime.jsx(RailSlot, {
17489
+ ...railProps
17490
+ }), /* @__PURE__ */ jsxRuntime.jsx(TrackSlot, {
17491
+ ...trackProps
17492
+ }), marks.filter((mark) => mark.value >= min && mark.value <= max).map((mark, index) => {
17493
+ const percent = valueToPercent(mark.value, min, max);
17494
+ const style2 = axisProps2[axis].offset(percent);
17495
+ let markActive;
17496
+ if (track === false) {
17497
+ markActive = values2.includes(mark.value);
17498
+ } else {
17499
+ markActive = track === "normal" && (range ? mark.value >= values2[0] && mark.value <= values2[values2.length - 1] : mark.value <= values2[0]) || track === "inverted" && (range ? mark.value <= values2[0] || mark.value >= values2[values2.length - 1] : mark.value >= values2[0]);
17500
+ }
17501
+ return /* @__PURE__ */ jsxRuntime.jsxs(React__namespace.Fragment, {
17502
+ children: [/* @__PURE__ */ jsxRuntime.jsx(MarkSlot, {
17503
+ "data-index": index,
17504
+ ...markProps,
17505
+ ...!isHostComponent(MarkSlot) && {
17506
+ markActive
17507
+ },
17508
+ style: {
17509
+ ...style2,
17510
+ ...markProps.style
17511
+ },
17512
+ className: clsx(markProps.className, markActive && classes.markActive)
17513
+ }), mark.label != null ? /* @__PURE__ */ jsxRuntime.jsx(MarkLabelSlot, {
17514
+ "aria-hidden": true,
17515
+ "data-index": index,
17516
+ ...markLabelProps,
17517
+ ...!isHostComponent(MarkLabelSlot) && {
17518
+ markLabelActive: markActive
17519
+ },
17520
+ style: {
17521
+ ...style2,
17522
+ ...markLabelProps.style
17523
+ },
17524
+ className: clsx(classes.markLabel, markLabelProps.className, markActive && classes.markLabelActive),
17525
+ children: mark.label
17526
+ }) : null]
17527
+ }, index);
17528
+ }), values2.map((value, index) => {
17529
+ const percent = valueToPercent(value, min, max);
17530
+ const style2 = axisProps2[axis].offset(percent);
17531
+ const ValueLabelComponent = valueLabelDisplay === "off" ? Forward : ValueLabelSlot;
17532
+ return (
17533
+ /* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
17534
+ /* @__PURE__ */ jsxRuntime.jsx(ValueLabelComponent, {
17535
+ ...!isHostComponent(ValueLabelComponent) && {
17536
+ valueLabelFormat,
17537
+ valueLabelDisplay,
17538
+ value: typeof valueLabelFormat === "function" ? valueLabelFormat(scale(value), index) : valueLabelFormat,
17539
+ index,
17540
+ open: open === index || active === index || valueLabelDisplay === "on",
17541
+ disabled
17542
+ },
17543
+ ...valueLabelProps,
17544
+ children: /* @__PURE__ */ jsxRuntime.jsx(ThumbSlot, {
17545
+ "data-index": index,
17546
+ ...thumbProps,
17547
+ className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
17548
+ style: {
17549
+ ...style2,
17550
+ ...getThumbStyle(index),
17551
+ ...thumbProps.style
17552
+ },
17553
+ children: /* @__PURE__ */ jsxRuntime.jsx(InputSlot, {
17554
+ "data-index": index,
17555
+ "aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
17556
+ "aria-valuenow": scale(value),
17557
+ "aria-labelledby": ariaLabelledby,
17558
+ "aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
17559
+ value: values2[index],
17560
+ ...inputSliderProps
17561
+ })
17562
+ })
17563
+ }, index)
17564
+ );
17565
+ })]
17566
+ });
17567
+ });
17568
+ process.env.NODE_ENV !== "production" ? Slider.propTypes = {
17569
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
17570
+ // │ These PropTypes are generated from the TypeScript type definitions. │
17571
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
17572
+ // └─────────────────────────────────────────────────────────────────────┘
17573
+ /**
17574
+ * The label of the slider.
17575
+ */
17576
+ "aria-label": chainPropTypes(PropTypes.string, (props) => {
17577
+ const range = Array.isArray(props.value || props.defaultValue);
17578
+ if (range && props["aria-label"] != null) {
17579
+ return new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.");
17580
+ }
17581
+ return null;
17582
+ }),
17583
+ /**
17584
+ * The id of the element containing a label for the slider.
17585
+ */
17586
+ "aria-labelledby": PropTypes.string,
17587
+ /**
17588
+ * A string value that provides a user-friendly name for the current value of the slider.
17589
+ */
17590
+ "aria-valuetext": chainPropTypes(PropTypes.string, (props) => {
17591
+ const range = Array.isArray(props.value || props.defaultValue);
17592
+ if (range && props["aria-valuetext"] != null) {
17593
+ return new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.");
17594
+ }
17595
+ return null;
17596
+ }),
17597
+ /**
17598
+ * @ignore
17599
+ */
17600
+ children: PropTypes.node,
17601
+ /**
17602
+ * Override or extend the styles applied to the component.
17603
+ */
17604
+ classes: PropTypes.object,
17605
+ /**
17606
+ * @ignore
17607
+ */
17608
+ className: PropTypes.string,
17609
+ /**
17610
+ * The color of the component.
17611
+ * It supports both default and custom theme colors, which can be added as shown in the
17612
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
17613
+ * @default 'primary'
17614
+ */
17615
+ color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), PropTypes.string]),
17616
+ /**
17617
+ * The components used for each slot inside.
17618
+ *
17619
+ * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
17620
+ *
17621
+ * @default {}
17622
+ */
17623
+ components: PropTypes.shape({
17624
+ Input: PropTypes.elementType,
17625
+ Mark: PropTypes.elementType,
17626
+ MarkLabel: PropTypes.elementType,
17627
+ Rail: PropTypes.elementType,
17628
+ Root: PropTypes.elementType,
17629
+ Thumb: PropTypes.elementType,
17630
+ Track: PropTypes.elementType,
17631
+ ValueLabel: PropTypes.elementType
17632
+ }),
17633
+ /**
17634
+ * The extra props for the slot components.
17635
+ * You can override the existing props or add new ones.
17636
+ *
17637
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
17638
+ *
17639
+ * @default {}
17640
+ */
17641
+ componentsProps: PropTypes.shape({
17642
+ input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17643
+ mark: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17644
+ markLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17645
+ rail: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17646
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17647
+ thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17648
+ track: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17649
+ valueLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
17650
+ children: PropTypes.element,
17651
+ className: PropTypes.string,
17652
+ open: PropTypes.bool,
17653
+ style: PropTypes.object,
17654
+ value: PropTypes.node,
17655
+ valueLabelDisplay: PropTypes.oneOf(["auto", "off", "on"])
17656
+ })])
17657
+ }),
17658
+ /**
17659
+ * The default value. Use when the component is not controlled.
17660
+ */
17661
+ defaultValue: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
17662
+ /**
17663
+ * If `true`, the component is disabled.
17664
+ * @default false
17665
+ */
17666
+ disabled: PropTypes.bool,
17667
+ /**
17668
+ * If `true`, the active thumb doesn't swap when moving pointer over a thumb while dragging another thumb.
17669
+ * @default false
17670
+ */
17671
+ disableSwap: PropTypes.bool,
17672
+ /**
17673
+ * Accepts a function which returns a string value that provides a user-friendly name for the thumb labels of the slider.
17674
+ * This is important for screen reader users.
17675
+ * @param {number} index The thumb label's index to format.
17676
+ * @returns {string}
17677
+ */
17678
+ getAriaLabel: PropTypes.func,
17679
+ /**
17680
+ * Accepts a function which returns a string value that provides a user-friendly name for the current value of the slider.
17681
+ * This is important for screen reader users.
17682
+ * @param {number} value The thumb label's value to format.
17683
+ * @param {number} index The thumb label's index to format.
17684
+ * @returns {string}
17685
+ */
17686
+ getAriaValueText: PropTypes.func,
17687
+ /**
17688
+ * Marks indicate predetermined values to which the user can move the slider.
17689
+ * If `true` the marks are spaced according the value of the `step` prop.
17690
+ * If an array, it should contain objects with `value` and an optional `label` keys.
17691
+ * @default false
17692
+ */
17693
+ marks: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape({
17694
+ label: PropTypes.node,
17695
+ value: PropTypes.number.isRequired
17696
+ })), PropTypes.bool]),
17697
+ /**
17698
+ * The maximum allowed value of the slider.
17699
+ * Should not be equal to min.
17700
+ * @default 100
17701
+ */
17702
+ max: PropTypes.number,
17703
+ /**
17704
+ * The minimum allowed value of the slider.
17705
+ * Should not be equal to max.
17706
+ * @default 0
17707
+ */
17708
+ min: PropTypes.number,
17709
+ /**
17710
+ * Name attribute of the hidden `input` element.
17711
+ */
17712
+ name: PropTypes.string,
17713
+ /**
17714
+ * Callback function that is fired when the slider's value changed.
17715
+ *
17716
+ * @param {Event} event The event source of the callback.
17717
+ * You can pull out the new value by accessing `event.target.value` (any).
17718
+ * **Warning**: This is a generic event not a change event.
17719
+ * @param {Value} value The new value.
17720
+ * @param {number} activeThumb Index of the currently moved thumb.
17721
+ */
17722
+ onChange: PropTypes.func,
17723
+ /**
17724
+ * Callback function that is fired when the `mouseup` is triggered.
17725
+ *
17726
+ * @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
17727
+ * @param {Value} value The new value.
17728
+ */
17729
+ onChangeCommitted: PropTypes.func,
17730
+ /**
17731
+ * The component orientation.
17732
+ * @default 'horizontal'
17733
+ */
17734
+ orientation: PropTypes.oneOf(["horizontal", "vertical"]),
17735
+ /**
17736
+ * A transformation function, to change the scale of the slider.
17737
+ * @param {any} x
17738
+ * @returns {any}
17739
+ * @default function Identity(x) {
17740
+ * return x;
17741
+ * }
17742
+ */
17743
+ scale: PropTypes.func,
17744
+ /**
17745
+ * The granularity with which the slider can step through values when using Page Up/Page Down or Shift + Arrow Up/Arrow Down.
17746
+ * @default 10
17747
+ */
17748
+ shiftStep: PropTypes.number,
17749
+ /**
17750
+ * The size of the slider.
17751
+ * @default 'medium'
17752
+ */
17753
+ size: PropTypes.oneOfType([PropTypes.oneOf(["small", "medium"]), PropTypes.string]),
17754
+ /**
17755
+ * The props used for each slot inside the Slider.
17756
+ * @default {}
17757
+ */
17758
+ slotProps: PropTypes.shape({
17759
+ input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17760
+ mark: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17761
+ markLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17762
+ rail: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17763
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17764
+ thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17765
+ track: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
17766
+ valueLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
17767
+ children: PropTypes.element,
17768
+ className: PropTypes.string,
17769
+ open: PropTypes.bool,
17770
+ style: PropTypes.object,
17771
+ value: PropTypes.node,
17772
+ valueLabelDisplay: PropTypes.oneOf(["auto", "off", "on"])
17773
+ })])
17774
+ }),
17775
+ /**
17776
+ * The components used for each slot inside the Slider.
17777
+ * Either a string to use a HTML element or a component.
17778
+ * @default {}
17779
+ */
17780
+ slots: PropTypes.shape({
17781
+ input: PropTypes.elementType,
17782
+ mark: PropTypes.elementType,
17783
+ markLabel: PropTypes.elementType,
17784
+ rail: PropTypes.elementType,
17785
+ root: PropTypes.elementType,
17786
+ thumb: PropTypes.elementType,
17787
+ track: PropTypes.elementType,
17788
+ valueLabel: PropTypes.elementType
17789
+ }),
17790
+ /**
17791
+ * The granularity with which the slider can step through values. (A "discrete" slider.)
17792
+ * The `min` prop serves as the origin for the valid values.
17793
+ * We recommend (max - min) to be evenly divisible by the step.
17794
+ *
17795
+ * When step is `null`, the thumb can only be slid onto marks provided with the `marks` prop.
17796
+ * @default 1
17797
+ */
17798
+ step: PropTypes.number,
17799
+ /**
17800
+ * The system prop that allows defining system overrides as well as additional CSS styles.
17801
+ */
17802
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
17803
+ /**
17804
+ * Tab index attribute of the hidden `input` element.
17805
+ */
17806
+ tabIndex: PropTypes.number,
17807
+ /**
17808
+ * The track presentation:
17809
+ *
17810
+ * - `normal` the track will render a bar representing the slider value.
17811
+ * - `inverted` the track will render a bar representing the remaining slider value.
17812
+ * - `false` the track will render without a bar.
17813
+ * @default 'normal'
17814
+ */
17815
+ track: PropTypes.oneOf(["inverted", "normal", false]),
17816
+ /**
17817
+ * The value of the slider.
17818
+ * For ranged sliders, provide an array with two values.
17819
+ */
17820
+ value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
17821
+ /**
17822
+ * Controls when the value label is displayed:
17823
+ *
17824
+ * - `auto` the value label will display when the thumb is hovered or focused.
17825
+ * - `on` will display persistently.
17826
+ * - `off` will never display.
17827
+ * @default 'off'
17828
+ */
17829
+ valueLabelDisplay: PropTypes.oneOf(["auto", "off", "on"]),
17830
+ /**
17831
+ * The format function the value label's value.
17832
+ *
17833
+ * When a function is provided, it should have the following signature:
17834
+ *
17835
+ * - {number} value The value label's value to format
17836
+ * - {number} index The value label's index to format
17837
+ * @param {any} x
17838
+ * @returns {any}
17839
+ * @default function Identity(x) {
17840
+ * return x;
17841
+ * }
17842
+ */
17843
+ valueLabelFormat: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
17844
+ } : void 0;
17845
+ const boxClasses = generateUtilityClasses("MuiBox", ["root"]);
17846
+ const defaultTheme = createTheme();
17847
+ const Box = createBox({
17848
+ themeId: THEME_ID,
17849
+ defaultTheme,
17850
+ defaultClassName: boxClasses.root,
17851
+ generateClassName: ClassNameGenerator.generate
17852
+ });
17853
+ process.env.NODE_ENV !== "production" ? Box.propTypes = {
17854
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
17855
+ // │ These PropTypes are generated from the TypeScript type definitions. │
17856
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
17857
+ // └─────────────────────────────────────────────────────────────────────┘
17858
+ /**
17859
+ * @ignore
17860
+ */
17861
+ children: PropTypes.node,
17862
+ /**
17863
+ * The component used for the root node.
17864
+ * Either a string to use a HTML element or a component.
17865
+ */
17866
+ component: PropTypes.elementType,
17867
+ /**
17868
+ * The system prop that allows defining system overrides as well as additional CSS styles.
17869
+ */
17870
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
17871
+ } : void 0;
17872
+ function NewSlider({ defaultValue, onChange }) {
17873
+ return /* @__PURE__ */ jsxRuntime.jsx(Card, { noPadding: true, appearance: "ghost", children: /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { width: 150 }, children: /* @__PURE__ */ jsxRuntime.jsx(Slider, { defaultValue, "aria-label": "Default", valueLabelDisplay: "auto", onChange }) }) });
17874
+ }
17875
+ function Tab({ items, onTabSelected, defaultValue, ...cardProps }) {
17876
+ const [tabSelected, setTabSelected] = React.useState(defaultValue);
17877
+ const selectTab = (item) => {
17878
+ setTabSelected(item);
17879
+ onTabSelected == null ? void 0 : onTabSelected(item);
17880
+ };
17881
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17882
+ /* @__PURE__ */ jsxRuntime.jsx(SectionName, { section: "Filter by" }),
17883
+ /* @__PURE__ */ jsxRuntime.jsx(Card, { className: "rounded-md w-fit", noBlur: true, noPadding: true, ...cardProps, color: "blue", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex p-[0.4rem] gap-x-[0.5rem]", children: items && items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
17884
+ Button,
17885
+ {
17886
+ onClick: () => selectTab(item),
17887
+ color: "blue",
17888
+ appearance: item === tabSelected ? "mate" : "ghost",
17889
+ dark: item === tabSelected ? false : true,
17890
+ label: item
17891
+ },
17892
+ item
17893
+ )) }) })
17894
+ ] });
17895
+ }
17896
+ function Timeline({ children, faded, ...cardProps }) {
17897
+ const timelineStyle = {
17898
+ overflowY: "visible",
17899
+ WebkitMaskImage: "linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%)",
17900
+ maskImage: "linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%)"
17901
+ };
17902
+ return /* @__PURE__ */ jsxRuntime.jsx(Card, { className: "rounded-sm", noPadding: true, appearance: "ghost", ...cardProps, style: { ...cardProps.style, ...timelineStyle }, children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "vertical-line list-disc font-bold text-start relative", style: { paddingInlineStart: 20 }, children }) });
17903
+ }
17904
+ function TlListItem({ label, badge, ...cardProps }) {
17905
+ return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(Card, { noBlur: true, appearance: "ghost", noPadding: true, ...cardProps, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center gap-x-[1rem] text-[1rem]", children: [
17906
+ label,
17907
+ badge
17908
+ ] }) }) });
17909
+ }
15051
17910
  exports2.Avatar = Avatar;
17911
+ exports2.Badge = Badge;
15052
17912
  exports2.Button = Button;
15053
17913
  exports2.Calendar = Calendar;
15054
17914
  exports2.Card = Card;
17915
+ exports2.Checkbox = Checkbox;
17916
+ exports2.Dropdown = Dropdown;
17917
+ exports2.DropdownButton = DropdownButton;
17918
+ exports2.Input = Input;
17919
+ exports2.NewSlider = NewSlider;
17920
+ exports2.SectionName = SectionName;
17921
+ exports2.Tab = Tab;
17922
+ exports2.ThemeContext = ThemeContext;
17923
+ exports2.ThemeContextComponent = ThemeContextComponent;
17924
+ exports2.Timeline = Timeline;
17925
+ exports2.TlListItem = TlListItem;
15055
17926
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
15056
17927
  });
15057
17928
  //# sourceMappingURL=index.umd.js.map