mytek-components 2.0.8 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.umd.js CHANGED
@@ -1,10 +1,7 @@
1
1
  (function(global2, factory) {
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@emotion/styled"), require("@emotion/react"), require("@mui/material"), require("react-dom"), require("material-react-table"), require("@mui/x-date-pickers"), require("dayjs"), require("xlsx")) : typeof define === "function" && define.amd ? define(["exports", "react", "@emotion/styled", "@emotion/react", "@mui/material", "react-dom", "material-react-table", "@mui/x-date-pickers", "dayjs", "xlsx"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.MytekComponents = {}, global2.React, global2.emotionStyled, global2.emotionReact, global2.MuiMaterial, global2.ReactDOM, global2.MaterialReactTable, global2.MuiDatePickers, global2.dayjs, global2.XLSX));
3
3
  })(this, (function(exports2, React, emStyled, react, material, ReactDOM, materialReactTable, xDatePickers, dayjs, XLSX) {
4
- "use strict";var __defProp = Object.defineProperty;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
-
4
+ "use strict";
8
5
  function _interopNamespaceDefault(e) {
9
6
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
10
7
  if (e) {
@@ -28,20 +25,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
28
25
  }
29
26
  var jsxRuntime = { exports: {} };
30
27
  var reactJsxRuntime_production = {};
31
- /**
32
- * @license React
33
- * react-jsx-runtime.production.js
34
- *
35
- * Copyright (c) Meta Platforms, Inc. and affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */
40
28
  var hasRequiredReactJsxRuntime_production;
41
29
  function requireReactJsxRuntime_production() {
42
30
  if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
43
31
  hasRequiredReactJsxRuntime_production = 1;
44
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
32
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
45
33
  function jsxProd(type, config2, maybeKey) {
46
34
  var key = null;
47
35
  void 0 !== maybeKey && (key = "" + maybeKey);
@@ -66,15 +54,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
66
54
  return reactJsxRuntime_production;
67
55
  }
68
56
  var reactJsxRuntime_development = {};
69
- /**
70
- * @license React
71
- * react-jsx-runtime.development.js
72
- *
73
- * Copyright (c) Meta Platforms, Inc. and affiliates.
74
- *
75
- * This source code is licensed under the MIT license found in the
76
- * LICENSE file in the root directory of this source tree.
77
- */
78
57
  var hasRequiredReactJsxRuntime_development;
79
58
  function requireReactJsxRuntime_development() {
80
59
  if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
@@ -289,7 +268,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
289
268
  function isValidElement(object) {
290
269
  return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
291
270
  }
292
- var React$1 = React, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
271
+ var React$1 = React, REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
293
272
  return null;
294
273
  };
295
274
  React$1 = {
@@ -564,7 +543,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
564
543
  disabled = false,
565
544
  ...rest
566
545
  }) => {
567
- var _a;
568
546
  const isDisabled = loader || disabled;
569
547
  const className = clsx(
570
548
  "flex items-center justify-center transition-opacity",
@@ -581,7 +559,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
581
559
  backgroundColor: backgroundColor2,
582
560
  height: height2,
583
561
  // ✅ Only apply width if w-full is NOT passed via className
584
- width: ((_a = rest.className) == null ? void 0 : _a.includes("w-full")) ? void 0 : width2,
562
+ width: rest.className?.includes("w-full") ? void 0 : width2,
585
563
  border: border2,
586
564
  borderRadius: borderRadius2,
587
565
  padding: padding2,
@@ -763,19 +741,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
763
741
  var propTypes$2 = { exports: {} };
764
742
  var reactIs$1 = { exports: {} };
765
743
  var reactIs_production_min = {};
766
- /** @license React v16.13.1
767
- * react-is.production.min.js
768
- *
769
- * Copyright (c) Facebook, Inc. and its affiliates.
770
- *
771
- * This source code is licensed under the MIT license found in the
772
- * LICENSE file in the root directory of this source tree.
773
- */
774
744
  var hasRequiredReactIs_production_min;
775
745
  function requireReactIs_production_min() {
776
746
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
777
747
  hasRequiredReactIs_production_min = 1;
778
- var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r2 = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
748
+ var b = "function" === typeof Symbol && Symbol.for, c = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103, d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, g = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, h = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, r2 = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
779
749
  function z(a) {
780
750
  if ("object" === typeof a && null !== a) {
781
751
  var u = a.$$typeof;
@@ -866,14 +836,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
866
836
  return reactIs_production_min;
867
837
  }
868
838
  var reactIs_development$1 = {};
869
- /** @license React v16.13.1
870
- * react-is.development.js
871
- *
872
- * Copyright (c) Facebook, Inc. and its affiliates.
873
- *
874
- * This source code is licensed under the MIT license found in the
875
- * LICENSE file in the root directory of this source tree.
876
- */
877
839
  var hasRequiredReactIs_development$1;
878
840
  function requireReactIs_development$1() {
879
841
  if (hasRequiredReactIs_development$1) return reactIs_development$1;
@@ -881,24 +843,24 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
881
843
  if (process.env.NODE_ENV !== "production") {
882
844
  (function() {
883
845
  var hasSymbol = typeof Symbol === "function" && Symbol.for;
884
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
885
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
886
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
887
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
888
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
889
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
890
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
891
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
892
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
893
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
894
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
895
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
896
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
897
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
898
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
899
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
900
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
901
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
846
+ var REACT_ELEMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
847
+ var REACT_PORTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.portal") : 60106;
848
+ var REACT_FRAGMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107;
849
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108;
850
+ var REACT_PROFILER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114;
851
+ var REACT_PROVIDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.provider") : 60109;
852
+ var REACT_CONTEXT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.context") : 60110;
853
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111;
854
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111;
855
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
856
+ var REACT_SUSPENSE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113;
857
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120;
858
+ var REACT_MEMO_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
859
+ var REACT_LAZY_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116;
860
+ var REACT_BLOCK_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.block") : 60121;
861
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117;
862
+ var REACT_RESPONDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.responder") : 60118;
863
+ var REACT_SCOPE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
902
864
  function isValidElementType(type) {
903
865
  return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
904
866
  type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
@@ -1038,11 +1000,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1038
1000
  }
1039
1001
  return reactIs$1.exports;
1040
1002
  }
1041
- /*
1042
- object-assign
1043
- (c) Sindre Sorhus
1044
- @license MIT
1045
- */
1046
1003
  var objectAssign;
1047
1004
  var hasRequiredObjectAssign;
1048
1005
  function requireObjectAssign() {
@@ -1727,20 +1684,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1727
1684
  }
1728
1685
  var reactIs = { exports: {} };
1729
1686
  var reactIs_production = {};
1730
- /**
1731
- * @license React
1732
- * react-is.production.js
1733
- *
1734
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1735
- *
1736
- * This source code is licensed under the MIT license found in the
1737
- * LICENSE file in the root directory of this source tree.
1738
- */
1739
1687
  var hasRequiredReactIs_production;
1740
1688
  function requireReactIs_production() {
1741
1689
  if (hasRequiredReactIs_production) return reactIs_production;
1742
1690
  hasRequiredReactIs_production = 1;
1743
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
1691
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference");
1744
1692
  function typeOf2(object) {
1745
1693
  if ("object" === typeof object && null !== object) {
1746
1694
  var $$typeof = object.$$typeof;
@@ -1827,15 +1775,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1827
1775
  return reactIs_production;
1828
1776
  }
1829
1777
  var reactIs_development = {};
1830
- /**
1831
- * @license React
1832
- * react-is.development.js
1833
- *
1834
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1835
- *
1836
- * This source code is licensed under the MIT license found in the
1837
- * LICENSE file in the root directory of this source tree.
1838
- */
1839
1778
  var hasRequiredReactIs_development;
1840
1779
  function requireReactIs_development() {
1841
1780
  if (hasRequiredReactIs_development) return reactIs_development;
@@ -1872,7 +1811,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1872
1811
  }
1873
1812
  }
1874
1813
  }
1875
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
1814
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference");
1876
1815
  reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
1877
1816
  reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
1878
1817
  reactIs_development.Element = REACT_ELEMENT_TYPE;
@@ -1994,9 +1933,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1994
1933
  return css;
1995
1934
  }
1996
1935
  const sorted = Object.keys(css).filter((key) => key.startsWith("@container")).sort((a, b) => {
1997
- var _a, _b;
1998
1936
  const regex = /min-width:\s*([0-9.]+)/;
1999
- return +(((_a = a.match(regex)) == null ? void 0 : _a[1]) || 0) - +(((_b = b.match(regex)) == null ? void 0 : _b[1]) || 0);
1937
+ return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);
2000
1938
  });
2001
1939
  if (!sorted.length) {
2002
1940
  return css;
@@ -2112,8 +2050,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
2112
2050
  return output;
2113
2051
  }
2114
2052
  function createEmptyBreakpointObject(breakpointsInput = {}) {
2115
- var _a;
2116
- const breakpointsInOrder = (_a = breakpointsInput.keys) == null ? void 0 : _a.reduce((acc, key) => {
2053
+ const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {
2117
2054
  const breakpointStyleKey = breakpointsInput.up(key);
2118
2055
  acc[breakpointStyleKey] = {};
2119
2056
  return acc;
@@ -2506,14 +2443,13 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
2506
2443
  const maxWidth = (props) => {
2507
2444
  if (props.maxWidth !== void 0 && props.maxWidth !== null) {
2508
2445
  const styleFromPropValue = (propValue) => {
2509
- var _a, _b, _c, _d, _e;
2510
- const breakpoint = ((_c = (_b = (_a = props.theme) == null ? void 0 : _a.breakpoints) == null ? void 0 : _b.values) == null ? void 0 : _c[propValue]) || values[propValue];
2446
+ const breakpoint = props.theme?.breakpoints?.values?.[propValue] || values[propValue];
2511
2447
  if (!breakpoint) {
2512
2448
  return {
2513
2449
  maxWidth: sizingTransform(propValue)
2514
2450
  };
2515
2451
  }
2516
- if (((_e = (_d = props.theme) == null ? void 0 : _d.breakpoints) == null ? void 0 : _e.unit) !== "px") {
2452
+ if (props.theme?.breakpoints?.unit !== "px") {
2517
2453
  return {
2518
2454
  maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
2519
2455
  };
@@ -3199,13 +3135,6 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
3199
3135
  next: cursor
3200
3136
  };
3201
3137
  }
3202
- /**
3203
- * @mui/styled-engine v7.3.7
3204
- *
3205
- * @license MIT
3206
- * This source code is licensed under the MIT license found in the
3207
- * LICENSE file in the root directory of this source tree.
3208
- */
3209
3138
  function styled$1(tag, options2) {
3210
3139
  const stylesFactory = emStyled(tag, options2);
3211
3140
  if (process.env.NODE_ENV !== "production") {
@@ -3331,10 +3260,9 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
3331
3260
  return spacing;
3332
3261
  }
3333
3262
  function applyStyles(key, styles) {
3334
- var _a;
3335
3263
  const theme = this;
3336
3264
  if (theme.vars) {
3337
- if (!((_a = theme.colorSchemes) == null ? void 0 : _a[key]) || typeof theme.getColorSchemeSelector !== "function") {
3265
+ if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== "function") {
3338
3266
  return {};
3339
3267
  }
3340
3268
  let selector = theme.getColorSchemeSelector(key);
@@ -3383,7 +3311,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
3383
3311
  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
3384
3312
  muiTheme.unstable_sxConfig = {
3385
3313
  ...defaultSxConfig,
3386
- ...other == null ? void 0 : other.unstable_sxConfig
3314
+ ...other?.unstable_sxConfig
3387
3315
  };
3388
3316
  muiTheme.unstable_sx = function sx(props) {
3389
3317
  return styleFunctionSx({
@@ -3493,7 +3421,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
3493
3421
  if (Array.isArray(resolvedStyle)) {
3494
3422
  return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle, layerName));
3495
3423
  }
3496
- if (Array.isArray(resolvedStyle == null ? void 0 : resolvedStyle.variants)) {
3424
+ if (Array.isArray(resolvedStyle?.variants)) {
3497
3425
  let rootStyle;
3498
3426
  if (resolvedStyle.isProcessed) {
3499
3427
  rootStyle = layerName ? shallowLayer(resolvedStyle.style, layerName) : resolvedStyle.style;
@@ -3506,38 +3434,37 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
3506
3434
  }
3507
3435
  return processStyleVariants(props, resolvedStyle.variants, [rootStyle], layerName);
3508
3436
  }
3509
- if (resolvedStyle == null ? void 0 : resolvedStyle.isProcessed) {
3437
+ if (resolvedStyle?.isProcessed) {
3510
3438
  return layerName ? shallowLayer(internal_serializeStyles(resolvedStyle.style), layerName) : resolvedStyle.style;
3511
3439
  }
3512
3440
  return layerName ? shallowLayer(internal_serializeStyles(resolvedStyle), layerName) : resolvedStyle;
3513
3441
  }
3514
3442
  function processStyleVariants(props, variants, results = [], layerName = void 0) {
3515
- var _a;
3516
3443
  let mergedState;
3517
3444
  variantLoop: for (let i = 0; i < variants.length; i += 1) {
3518
3445
  const variant = variants[i];
3519
3446
  if (typeof variant.props === "function") {
3520
- mergedState ?? (mergedState = {
3447
+ mergedState ??= {
3521
3448
  ...props,
3522
3449
  ...props.ownerState,
3523
3450
  ownerState: props.ownerState
3524
- });
3451
+ };
3525
3452
  if (!variant.props(mergedState)) {
3526
3453
  continue;
3527
3454
  }
3528
3455
  } else {
3529
3456
  for (const key in variant.props) {
3530
- if (props[key] !== variant.props[key] && ((_a = props.ownerState) == null ? void 0 : _a[key]) !== variant.props[key]) {
3457
+ if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {
3531
3458
  continue variantLoop;
3532
3459
  }
3533
3460
  }
3534
3461
  }
3535
3462
  if (typeof variant.style === "function") {
3536
- mergedState ?? (mergedState = {
3463
+ mergedState ??= {
3537
3464
  ...props,
3538
3465
  ...props.ownerState,
3539
3466
  ownerState: props.ownerState
3540
- });
3467
+ };
3541
3468
  results.push(layerName ? shallowLayer(internal_serializeStyles(variant.style(mergedState)), layerName) : variant.style(mergedState));
3542
3469
  } else {
3543
3470
  results.push(layerName ? shallowLayer(internal_serializeStyles(variant.style), layerName) : variant.style);
@@ -3614,9 +3541,8 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
3614
3541
  expressionsHead.push(styleAttachTheme);
3615
3542
  if (componentName && overridesResolver) {
3616
3543
  expressionsTail.push(function styleThemeOverrides(props) {
3617
- var _a, _b;
3618
3544
  const theme = props.theme;
3619
- const styleOverrides = (_b = (_a = theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.styleOverrides;
3545
+ const styleOverrides = theme.components?.[componentName]?.styleOverrides;
3620
3546
  if (!styleOverrides) {
3621
3547
  return null;
3622
3548
  }
@@ -3629,9 +3555,8 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
3629
3555
  }
3630
3556
  if (componentName && !skipVariantsResolver) {
3631
3557
  expressionsTail.push(function styleThemeVariants(props) {
3632
- var _a, _b;
3633
3558
  const theme = props.theme;
3634
- const themeVariants = (_b = (_a = theme == null ? void 0 : theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.variants;
3559
+ const themeVariants = theme?.components?.[componentName]?.variants;
3635
3560
  if (!themeVariants) {
3636
3561
  return null;
3637
3562
  }
@@ -3733,11 +3658,11 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage
3733
3658
  }
3734
3659
  }
3735
3660
  } else if (propName === "className" && mergeClassNameAndStyle && props.className) {
3736
- output.className = clsx(defaultProps == null ? void 0 : defaultProps.className, props == null ? void 0 : props.className);
3661
+ output.className = clsx(defaultProps?.className, props?.className);
3737
3662
  } else if (propName === "style" && mergeClassNameAndStyle && props.style) {
3738
3663
  output.style = {
3739
- ...defaultProps == null ? void 0 : defaultProps.style,
3740
- ...props == null ? void 0 : props.style
3664
+ ...defaultProps?.style,
3665
+ ...props?.style
3741
3666
  };
3742
3667
  } else if (output[propName] === void 0) {
3743
3668
  output[propName] = defaultProps[propName];
@@ -4167,7 +4092,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
4167
4092
  };
4168
4093
  }
4169
4094
  function defaultGetSelector2(colorScheme, cssObject) {
4170
- var _a, _b;
4171
4095
  let rule = selector;
4172
4096
  if (selector === "class") {
4173
4097
  rule = ".%s";
@@ -4175,7 +4099,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
4175
4099
  if (selector === "data") {
4176
4100
  rule = "[data-%s]";
4177
4101
  }
4178
- if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) {
4102
+ if (selector?.startsWith("data-") && !selector.includes("%s")) {
4179
4103
  rule = `[${selector}="%s"]`;
4180
4104
  }
4181
4105
  if (colorScheme) {
@@ -4183,7 +4107,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
4183
4107
  if (theme.defaultColorScheme === colorScheme) {
4184
4108
  return ":root";
4185
4109
  }
4186
- const mode = ((_b = (_a = colorSchemes[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode) || colorScheme;
4110
+ const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;
4187
4111
  return {
4188
4112
  [`@media (prefers-color-scheme: ${mode})`]: {
4189
4113
  ":root": cssObject
@@ -4211,7 +4135,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
4211
4135
  return vars;
4212
4136
  };
4213
4137
  const generateStyleSheets = () => {
4214
- var _a, _b;
4215
4138
  const stylesheets = [];
4216
4139
  const colorScheme = theme.defaultColorScheme || "light";
4217
4140
  function insertStyleSheet(key, css) {
@@ -4234,7 +4157,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
4234
4157
  const {
4235
4158
  css
4236
4159
  } = defaultSchemeVal;
4237
- const cssColorSheme = (_b = (_a = colorSchemes[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode;
4160
+ const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;
4238
4161
  const finalCss = !disableCssColorScheme && cssColorSheme ? {
4239
4162
  colorScheme: cssColorSheme,
4240
4163
  ...css
@@ -4248,8 +4171,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
4248
4171
  Object.entries(other).forEach(([key, {
4249
4172
  css
4250
4173
  }]) => {
4251
- var _a2, _b2;
4252
- const cssColorSheme = (_b2 = (_a2 = colorSchemes[key]) == null ? void 0 : _a2.palette) == null ? void 0 : _b2.mode;
4174
+ const cssColorSheme = colorSchemes[key]?.palette?.mode;
4253
4175
  const finalCss = !disableCssColorScheme && cssColorSheme ? {
4254
4176
  colorScheme: cssColorSheme,
4255
4177
  ...css
@@ -5049,7 +4971,7 @@ export default theme;`;
5049
4971
  }
5050
4972
  muiTheme.unstable_sxConfig = {
5051
4973
  ...defaultSxConfig,
5052
- ...other == null ? void 0 : other.unstable_sxConfig
4974
+ ...other?.unstable_sxConfig
5053
4975
  };
5054
4976
  muiTheme.unstable_sx = function sx(props) {
5055
4977
  return styleFunctionSx({
@@ -5114,9 +5036,8 @@ export default theme;`;
5114
5036
  };
5115
5037
  }
5116
5038
  function shouldSkipGeneratingVar(keys) {
5117
- var _a;
5118
5039
  return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) || // ends with sxConfig
5119
- keys[0] === "palette" && !!((_a = keys[1]) == null ? void 0 : _a.match(/(mode|contrastThreshold|tonalOffset)/));
5040
+ keys[0] === "palette" && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
5120
5041
  }
5121
5042
  const excludeVariablesFromRoot = (cssVarPrefix) => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkColor`];
5122
5043
  const defaultGetSelector = (theme) => (colorScheme, css) => {
@@ -5129,7 +5050,7 @@ export default theme;`;
5129
5050
  if (selector === "data") {
5130
5051
  rule = "[data-%s]";
5131
5052
  }
5132
- if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) {
5053
+ if (selector?.startsWith("data-") && !selector.includes("%s")) {
5133
5054
  rule = `[${selector}="%s"]`;
5134
5055
  }
5135
5056
  if (theme.defaultColorScheme === colorScheme) {
@@ -5229,7 +5150,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
5229
5150
  ...scheme,
5230
5151
  palette: {
5231
5152
  mode,
5232
- ...scheme == null ? void 0 : scheme.palette
5153
+ ...scheme?.palette
5233
5154
  },
5234
5155
  colorSpace
5235
5156
  });
@@ -5242,7 +5163,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
5242
5163
  ...restTheme,
5243
5164
  palette: {
5244
5165
  mode,
5245
- ...scheme == null ? void 0 : scheme.palette
5166
+ ...scheme?.palette
5246
5167
  },
5247
5168
  colorSpace
5248
5169
  });
@@ -5251,9 +5172,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
5251
5172
  palette,
5252
5173
  opacity: {
5253
5174
  ...getOpacity(mode),
5254
- ...scheme == null ? void 0 : scheme.opacity
5175
+ ...scheme?.opacity
5255
5176
  },
5256
- overlays: (scheme == null ? void 0 : scheme.overlays) || getOverlays(mode)
5177
+ overlays: scheme?.overlays || getOverlays(mode)
5257
5178
  };
5258
5179
  return muiTheme;
5259
5180
  }
@@ -5534,7 +5455,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
5534
5455
  theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
5535
5456
  theme.unstable_sxConfig = {
5536
5457
  ...defaultSxConfig,
5537
- ...input == null ? void 0 : input.unstable_sxConfig
5458
+ ...input?.unstable_sxConfig
5538
5459
  };
5539
5460
  theme.unstable_sx = function sx(props) {
5540
5461
  return styleFunctionSx({
@@ -5567,11 +5488,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
5567
5488
  colorSchemes: initialColorSchemes = !palette ? {
5568
5489
  light: true
5569
5490
  } : void 0,
5570
- defaultColorScheme: initialDefaultColorScheme = palette == null ? void 0 : palette.mode,
5491
+ defaultColorScheme: initialDefaultColorScheme = palette?.mode,
5571
5492
  ...other
5572
5493
  } = options2;
5573
5494
  const defaultColorSchemeInput = initialDefaultColorScheme || "light";
5574
- const defaultScheme = initialColorSchemes == null ? void 0 : initialColorSchemes[defaultColorSchemeInput];
5495
+ const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];
5575
5496
  const colorSchemesInput = {
5576
5497
  ...initialColorSchemes,
5577
5498
  ...palette ? {
@@ -5684,97 +5605,91 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
5684
5605
  }
5685
5606
  })(memoTheme(({
5686
5607
  theme
5687
- }) => {
5688
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
5689
- return {
5690
- userSelect: "none",
5691
- width: "1em",
5692
- height: "1em",
5693
- display: "inline-block",
5694
- flexShrink: 0,
5695
- transition: (_d = (_a = theme.transitions) == null ? void 0 : _a.create) == null ? void 0 : _d.call(_a, "fill", {
5696
- duration: (_c = (_b = (theme.vars ?? theme).transitions) == null ? void 0 : _b.duration) == null ? void 0 : _c.shorter
5697
- }),
5698
- variants: [
5699
- {
5700
- props: (props) => !props.hasSvgAsChild,
5701
- style: {
5702
- // the <svg> will define the property that has `currentColor`
5703
- // for example heroicons uses fill="none" and stroke="currentColor"
5704
- fill: "currentColor"
5705
- }
5608
+ }) => ({
5609
+ userSelect: "none",
5610
+ width: "1em",
5611
+ height: "1em",
5612
+ display: "inline-block",
5613
+ flexShrink: 0,
5614
+ transition: theme.transitions?.create?.("fill", {
5615
+ duration: (theme.vars ?? theme).transitions?.duration?.shorter
5616
+ }),
5617
+ variants: [
5618
+ {
5619
+ props: (props) => !props.hasSvgAsChild,
5620
+ style: {
5621
+ // the <svg> will define the property that has `currentColor`
5622
+ // for example heroicons uses fill="none" and stroke="currentColor"
5623
+ fill: "currentColor"
5624
+ }
5625
+ },
5626
+ {
5627
+ props: {
5628
+ fontSize: "inherit"
5706
5629
  },
5707
- {
5708
- props: {
5709
- fontSize: "inherit"
5710
- },
5711
- style: {
5712
- fontSize: "inherit"
5713
- }
5630
+ style: {
5631
+ fontSize: "inherit"
5632
+ }
5633
+ },
5634
+ {
5635
+ props: {
5636
+ fontSize: "small"
5714
5637
  },
5715
- {
5716
- props: {
5717
- fontSize: "small"
5718
- },
5719
- style: {
5720
- fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
5721
- }
5638
+ style: {
5639
+ fontSize: theme.typography?.pxToRem?.(20) || "1.25rem"
5640
+ }
5641
+ },
5642
+ {
5643
+ props: {
5644
+ fontSize: "medium"
5722
5645
  },
5723
- {
5724
- props: {
5725
- fontSize: "medium"
5726
- },
5727
- style: {
5728
- fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
5729
- }
5646
+ style: {
5647
+ fontSize: theme.typography?.pxToRem?.(24) || "1.5rem"
5648
+ }
5649
+ },
5650
+ {
5651
+ props: {
5652
+ fontSize: "large"
5730
5653
  },
5731
- {
5732
- props: {
5733
- fontSize: "large"
5734
- },
5735
- style: {
5736
- fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
5737
- }
5654
+ style: {
5655
+ fontSize: theme.typography?.pxToRem?.(35) || "2.1875rem"
5656
+ }
5657
+ },
5658
+ // TODO v5 deprecate color prop, v6 remove for sx
5659
+ ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => ({
5660
+ props: {
5661
+ color: color2
5738
5662
  },
5739
- // TODO v5 deprecate color prop, v6 remove for sx
5740
- ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
5741
- var _a2, _b2;
5742
- return {
5743
- props: {
5744
- color: color2
5745
- },
5746
- style: {
5747
- color: (_b2 = (_a2 = (theme.vars ?? theme).palette) == null ? void 0 : _a2[color2]) == null ? void 0 : _b2.main
5748
- }
5749
- };
5750
- }),
5751
- {
5752
- props: {
5753
- color: "action"
5754
- },
5755
- style: {
5756
- color: (_l = (_k = (theme.vars ?? theme).palette) == null ? void 0 : _k.action) == null ? void 0 : _l.active
5757
- }
5663
+ style: {
5664
+ color: (theme.vars ?? theme).palette?.[color2]?.main
5665
+ }
5666
+ })),
5667
+ {
5668
+ props: {
5669
+ color: "action"
5758
5670
  },
5759
- {
5760
- props: {
5761
- color: "disabled"
5762
- },
5763
- style: {
5764
- color: (_n = (_m = (theme.vars ?? theme).palette) == null ? void 0 : _m.action) == null ? void 0 : _n.disabled
5765
- }
5671
+ style: {
5672
+ color: (theme.vars ?? theme).palette?.action?.active
5673
+ }
5674
+ },
5675
+ {
5676
+ props: {
5677
+ color: "disabled"
5766
5678
  },
5767
- {
5768
- props: {
5769
- color: "inherit"
5770
- },
5771
- style: {
5772
- color: void 0
5773
- }
5679
+ style: {
5680
+ color: (theme.vars ?? theme).palette?.action?.disabled
5774
5681
  }
5775
- ]
5776
- };
5777
- }));
5682
+ },
5683
+ {
5684
+ props: {
5685
+ color: "inherit"
5686
+ },
5687
+ style: {
5688
+ color: void 0
5689
+ }
5690
+ }
5691
+ ]
5692
+ })));
5778
5693
  const SvgIcon = /* @__PURE__ */ React__namespace.forwardRef(function SvgIcon2(inProps, ref) {
5779
5694
  const props = useDefaultProps({
5780
5695
  props: inProps,
@@ -5960,7 +5875,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
5960
5875
  disableClose = false,
5961
5876
  fontFamily = "Montserrat"
5962
5877
  }) => {
5963
- var _a, _b, _c;
5964
5878
  const [windowWidth, setWindowWidth] = React.useState(window.innerWidth);
5965
5879
  const isMobile = windowWidth <= 375;
5966
5880
  const buttonRefs = React.useRef([]);
@@ -5981,7 +5895,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
5981
5895
  edit: /* @__PURE__ */ jsxRuntimeExports.jsx(RebaseEditIcon, { style: { color: "#f0ad4e", fontSize: iconSize } })
5982
5896
  };
5983
5897
  const alertIcon = defaultIcons[messageType];
5984
- const buttonsToRender = (arrayOfButtons == null ? void 0 : arrayOfButtons.length) ? arrayOfButtons : [
5898
+ const buttonsToRender = arrayOfButtons?.length ? arrayOfButtons : [
5985
5899
  {
5986
5900
  label: "Cancel",
5987
5901
  onClick: onHide,
@@ -5990,7 +5904,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
5990
5904
  {
5991
5905
  label: "Proceed",
5992
5906
  onClick: onProceed,
5993
- color: ((_c = (_b = (_a = defaultIcons[messageType]) == null ? void 0 : _a.props) == null ? void 0 : _b.style) == null ? void 0 : _c.color) || "#0275d8"
5907
+ color: defaultIcons[messageType]?.props?.style?.color || "#0275d8"
5994
5908
  }
5995
5909
  ];
5996
5910
  React.useEffect(() => {
@@ -6142,35 +6056,32 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
6142
6056
  justifyContent: buttonsToRender.length === 1 ? "flex-end" : "center",
6143
6057
  gap: "10px"
6144
6058
  },
6145
- children: buttonsToRender.map((btn, index) => {
6146
- var _a2, _b2, _c2, _d;
6147
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
6148
- "button",
6149
- {
6150
- ref: (el) => buttonRefs.current[index] = el,
6151
- onClick: btn.onClick,
6152
- style: {
6153
- flexGrow: buttonsToRender.length === 1 ? 0 : 1,
6154
- padding: "8px 14px",
6155
- fontSize: buttonFontSize,
6156
- backgroundColor: btn.color || (((_a2 = btn.label) == null ? void 0 : _a2.toLowerCase()) === "cancel" ? "#6c757d" : ((_d = (_c2 = (_b2 = defaultIcons[messageType]) == null ? void 0 : _b2.props) == null ? void 0 : _c2.style) == null ? void 0 : _d.color) || "#0275d8"),
6157
- color: btn.textColor || "#fff",
6158
- border: "none",
6159
- borderRadius: "5px",
6160
- cursor: "pointer",
6161
- flexShrink: 0,
6162
- outline: "none",
6163
- transition: "box-shadow 0.3s ease",
6164
- fontFamily
6165
- },
6166
- onFocus: (e) => {
6167
- e.target.style.border = "2px solid black";
6168
- },
6169
- children: btn.label
6059
+ children: buttonsToRender.map((btn, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
6060
+ "button",
6061
+ {
6062
+ ref: (el) => buttonRefs.current[index] = el,
6063
+ onClick: btn.onClick,
6064
+ style: {
6065
+ flexGrow: buttonsToRender.length === 1 ? 0 : 1,
6066
+ padding: "8px 14px",
6067
+ fontSize: buttonFontSize,
6068
+ backgroundColor: btn.color || (btn.label?.toLowerCase() === "cancel" ? "#6c757d" : defaultIcons[messageType]?.props?.style?.color || "#0275d8"),
6069
+ color: btn.textColor || "#fff",
6070
+ border: "none",
6071
+ borderRadius: "5px",
6072
+ cursor: "pointer",
6073
+ flexShrink: 0,
6074
+ outline: "none",
6075
+ transition: "box-shadow 0.3s ease",
6076
+ fontFamily
6170
6077
  },
6171
- index
6172
- );
6173
- })
6078
+ onFocus: (e) => {
6079
+ e.target.style.border = "2px solid black";
6080
+ },
6081
+ children: btn.label
6082
+ },
6083
+ index
6084
+ ))
6174
6085
  }
6175
6086
  )
6176
6087
  ]
@@ -6291,10 +6202,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
6291
6202
  setInputValue(val);
6292
6203
  const normalized = normalizeOptions2(options2);
6293
6204
  const filtered = normalized.filter(
6294
- (opt) => {
6295
- var _a;
6296
- return (_a = opt.label) == null ? void 0 : _a.toLowerCase().includes(val.toLowerCase());
6297
- }
6205
+ (opt) => opt.label?.toLowerCase().includes(val.toLowerCase())
6298
6206
  );
6299
6207
  setFilteredOptions(filtered);
6300
6208
  setShowDropdown(true);
@@ -6359,8 +6267,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
6359
6267
  setFilteredOptions(normalizeOptions2(options2));
6360
6268
  }
6361
6269
  setShowDropdown((prev) => {
6362
- var _a;
6363
- if (!prev) (_a = inputRef.current) == null ? void 0 : _a.focus();
6270
+ if (!prev) inputRef.current?.focus();
6364
6271
  return !prev;
6365
6272
  });
6366
6273
  };
@@ -6429,11 +6336,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
6429
6336
  ] });
6430
6337
  };
6431
6338
  var classnames = { exports: {} };
6432
- /*!
6433
- Copyright (c) 2018 Jed Watson.
6434
- Licensed under the MIT License (MIT), see
6435
- http://jedwatson.github.io/classnames
6436
- */
6437
6339
  var hasRequiredClassnames;
6438
6340
  function requireClassnames() {
6439
6341
  if (hasRequiredClassnames) return classnames.exports;
@@ -12393,11 +12295,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
12393
12295
  e.exports = React;
12394
12296
  }, function(e, t, r2) {
12395
12297
  var n;
12396
- /*!
12397
- Copyright (c) 2017 Jed Watson.
12398
- Licensed under the MIT License (MIT), see
12399
- http://jedwatson.github.io/classnames
12400
- */
12401
12298
  !(function() {
12402
12299
  var r3 = {}.hasOwnProperty;
12403
12300
  function a() {
@@ -14526,7 +14423,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14526
14423
  dropdownClass: "z-50 mt-1 bg-white border border-gray-300 rounded-md text-sm max-h-60 overflow-y-auto shadow-lg"
14527
14424
  }
14528
14425
  ),
14529
- (button == null ? void 0 : button.label) && /* @__PURE__ */ jsxRuntimeExports.jsx(
14426
+ button?.label && /* @__PURE__ */ jsxRuntimeExports.jsx(
14530
14427
  "button",
14531
14428
  {
14532
14429
  type: "button",
@@ -14579,10 +14476,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14579
14476
  children: showPassword ? /* @__PURE__ */ jsxRuntimeExports.jsx(FiEye, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(FiEyeOff, {})
14580
14477
  }
14581
14478
  ),
14582
- (button == null ? void 0 : button.label) && /* @__PURE__ */ jsxRuntimeExports.jsx(
14479
+ button?.label && /* @__PURE__ */ jsxRuntimeExports.jsx(
14583
14480
  "button",
14584
14481
  {
14585
- onClick: button == null ? void 0 : button.onClick,
14482
+ onClick: button?.onClick,
14586
14483
  disabled: disabled || enable,
14587
14484
  className: `px-2 py-2 text-white ${backgroundColor2 || "bg-[#3B5AA1]"} border-l border-[#12AB5B] rounded-r-md ${disabled || enable ? "opacity-50 cursor-not-allowed" : ""}`,
14588
14485
  style: { height: height2 },
@@ -14713,7 +14610,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
14713
14610
  menuIconColor = "black"
14714
14611
  // Menu Icon color on header
14715
14612
  }) => {
14716
- var _a, _b, _c, _d, _e, _f, _g;
14717
14613
  const defaultStyles = {
14718
14614
  headerTextColor: "text-gray-700",
14719
14615
  headerBgColor: "bg-gray-100",
@@ -15209,7 +15105,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15209
15105
  }
15210
15106
  ),
15211
15107
  column.key !== "__sr_no" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-1 p-1", children: [
15212
- (sortConfig == null ? void 0 : sortConfig.columnKey) === column.key && (sortConfig.direction === "asc" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
15108
+ sortConfig?.columnKey === column.key && (sortConfig.direction === "asc" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
15213
15109
  ArrowUpwardIcon,
15214
15110
  {
15215
15111
  sx: {
@@ -15408,7 +15304,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15408
15304
  }
15409
15305
  ),
15410
15306
  /* @__PURE__ */ jsxRuntimeExports.jsx(material.Divider, {}),
15411
- (((_a = organizedColumns.all.find((col) => col.key === menuColumn)) == null ? void 0 : _a.filterable) || ((_b = organizedColumns.all.find((col) => col.key === menuColumn)) == null ? void 0 : _b.type) === "date") && /* @__PURE__ */ jsxRuntimeExports.jsxs(
15307
+ (organizedColumns.all.find((col) => col.key === menuColumn)?.filterable || organizedColumns.all.find((col) => col.key === menuColumn)?.type === "date") && /* @__PURE__ */ jsxRuntimeExports.jsxs(
15412
15308
  material.MenuItem,
15413
15309
  {
15414
15310
  sx: {
@@ -15434,7 +15330,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15434
15330
  ]
15435
15331
  }
15436
15332
  ),
15437
- !((_c = organizedColumns.all.find((col) => col.key === menuColumn)) == null ? void 0 : _c.group) && /* @__PURE__ */ jsxRuntimeExports.jsxs(
15333
+ !organizedColumns.all.find((col) => col.key === menuColumn)?.group && /* @__PURE__ */ jsxRuntimeExports.jsxs(
15438
15334
  material.MenuItem,
15439
15335
  {
15440
15336
  sx: {
@@ -15517,7 +15413,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15517
15413
  },
15518
15414
  onMouseLeave: () => setFilterAnchorEl(null)
15519
15415
  },
15520
- children: ((_d = organizedColumns.all.find((col) => col.key === menuColumn)) == null ? void 0 : _d.type) === "date" ? (
15416
+ children: organizedColumns.all.find((col) => col.key === menuColumn)?.type === "date" ? (
15521
15417
  // Date Filter UI
15522
15418
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { padding: "10px", width: "250px" }, children: [
15523
15419
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", gap: "5px", marginTop: "5px" }, children: [
@@ -15526,7 +15422,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15526
15422
  {
15527
15423
  type: "date",
15528
15424
  label: "From",
15529
- value: ((_e = tempDateFilters[menuColumn]) == null ? void 0 : _e.startDate) || "",
15425
+ value: tempDateFilters[menuColumn]?.startDate || "",
15530
15426
  onChange: (e) => handleTempDateChange(menuColumn, "startDate", e.target.value),
15531
15427
  fullWidth: true,
15532
15428
  size: "small",
@@ -15542,7 +15438,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15542
15438
  {
15543
15439
  type: "date",
15544
15440
  label: "To",
15545
- value: ((_f = tempDateFilters[menuColumn]) == null ? void 0 : _f.endDate) || "",
15441
+ value: tempDateFilters[menuColumn]?.endDate || "",
15546
15442
  onChange: (e) => handleTempDateChange(menuColumn, "endDate", e.target.value),
15547
15443
  fullWidth: true,
15548
15444
  size: "small",
@@ -15598,14 +15494,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15598
15494
  material.Button,
15599
15495
  {
15600
15496
  variant: "contained",
15601
- onClick: () => {
15602
- var _a2, _b2;
15603
- return handleDateFilterChange(
15604
- menuColumn,
15605
- (_a2 = tempDateFilters[menuColumn]) == null ? void 0 : _a2.startDate,
15606
- (_b2 = tempDateFilters[menuColumn]) == null ? void 0 : _b2.endDate
15607
- );
15608
- },
15497
+ onClick: () => handleDateFilterChange(
15498
+ menuColumn,
15499
+ tempDateFilters[menuColumn]?.startDate,
15500
+ tempDateFilters[menuColumn]?.endDate
15501
+ ),
15609
15502
  fullWidth: true,
15610
15503
  size: "small",
15611
15504
  style: {
@@ -15631,7 +15524,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15631
15524
  }
15632
15525
  )
15633
15526
  ] })
15634
- ) : ((_g = organizedColumns.all.find((col) => col.key === menuColumn)) == null ? void 0 : _g.filterable) ? (
15527
+ ) : organizedColumns.all.find((col) => col.key === menuColumn)?.filterable ? (
15635
15528
  // Regular Filter UI - only show if column is explicitly filterable
15636
15529
  /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
15637
15530
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -15646,38 +15539,35 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
15646
15539
  }
15647
15540
  ),
15648
15541
  /* @__PURE__ */ jsxRuntimeExports.jsx(material.Divider, { sx: { margin: "1px 0" } }),
15649
- getUniqueValues(menuColumn).map((value) => {
15650
- var _a2;
15651
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
15652
- material.MenuItem,
15653
- {
15654
- sx: { padding: "1px 2px", minHeight: "auto" },
15655
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
15656
- material.FormControlLabel,
15657
- {
15658
- control: /* @__PURE__ */ jsxRuntimeExports.jsx(
15659
- material.Checkbox,
15660
- {
15661
- size: "small",
15662
- checked: ((_a2 = selectedFilters[menuColumn]) == null ? void 0 : _a2[value]) || false,
15663
- onChange: (e) => handleFilterChange(value, e.target.checked),
15664
- sx: { padding: "2px" }
15665
- }
15666
- ),
15667
- label: value,
15668
- sx: {
15669
- margin: 0,
15670
- "& .MuiFormControlLabel-label": {
15671
- fontSize: "0.85rem",
15672
- paddingLeft: "4px"
15673
- }
15542
+ getUniqueValues(menuColumn).map((value) => /* @__PURE__ */ jsxRuntimeExports.jsx(
15543
+ material.MenuItem,
15544
+ {
15545
+ sx: { padding: "1px 2px", minHeight: "auto" },
15546
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
15547
+ material.FormControlLabel,
15548
+ {
15549
+ control: /* @__PURE__ */ jsxRuntimeExports.jsx(
15550
+ material.Checkbox,
15551
+ {
15552
+ size: "small",
15553
+ checked: selectedFilters[menuColumn]?.[value] || false,
15554
+ onChange: (e) => handleFilterChange(value, e.target.checked),
15555
+ sx: { padding: "2px" }
15556
+ }
15557
+ ),
15558
+ label: value,
15559
+ sx: {
15560
+ margin: 0,
15561
+ "& .MuiFormControlLabel-label": {
15562
+ fontSize: "0.85rem",
15563
+ paddingLeft: "4px"
15674
15564
  }
15675
15565
  }
15676
- )
15677
- },
15678
- value
15679
- );
15680
- })
15566
+ }
15567
+ )
15568
+ },
15569
+ value
15570
+ ))
15681
15571
  ] })
15682
15572
  ) : null
15683
15573
  }
@@ -16024,7 +15914,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16024
15914
  value: newEmployee.id,
16025
15915
  raw: { ...newEmployee }
16026
15916
  };
16027
- console.log([...localOptions, newOption]);
16028
15917
  setLocalOptions([...localOptions, newOption]);
16029
15918
  setDropdownOpen(false);
16030
15919
  setShowAddModal(false);
@@ -16036,11 +15925,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16036
15925
  [options2, optionLabelKey, optionValueKey]
16037
15926
  );
16038
15927
  const filteredOptions = React.useMemo(() => {
16039
- return localOptions == null ? void 0 : localOptions.filter(
16040
- (option) => {
16041
- var _a;
16042
- return (_a = option.label) == null ? void 0 : _a.toLowerCase().includes(inputVal.toLowerCase());
16043
- }
15928
+ return localOptions?.filter(
15929
+ (option) => option.label?.toLowerCase().includes(inputVal.toLowerCase())
16044
15930
  );
16045
15931
  }, [inputVal, localOptions]);
16046
15932
  const handleSelect = (option) => {
@@ -16128,7 +16014,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16128
16014
  const columns = React.useMemo(() => generateColumns(), [options2, columnWidths]);
16129
16015
  console.log("columns", columns);
16130
16016
  React.useEffect(() => {
16131
- setInputVal((value == null ? void 0 : value[optionLabelKey]) || "");
16017
+ setInputVal(value?.[optionLabelKey] || "");
16132
16018
  }, [value, optionLabelKey]);
16133
16019
  React.useEffect(() => {
16134
16020
  if (!suggestion) {
@@ -16229,7 +16115,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16229
16115
  const match = filteredOptions.find(
16230
16116
  (opt) => opt.label.toLowerCase().startsWith(newVal.toLowerCase())
16231
16117
  );
16232
- setSuggestion((match == null ? void 0 : match.label) || "");
16118
+ setSuggestion(match?.label || "");
16233
16119
  },
16234
16120
  onKeyDown: handleKeyDown,
16235
16121
  style: {
@@ -16454,12 +16340,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16454
16340
  )
16455
16341
  ] });
16456
16342
  };
16457
- /**
16458
- * @license lucide-react v0.542.0 - ISC
16459
- *
16460
- * This source code is licensed under the ISC license.
16461
- * See the LICENSE file in the root directory of this source tree.
16462
- */
16463
16343
  const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
16464
16344
  const toCamelCase = (string) => string.replace(
16465
16345
  /^([A-Z])|[\s-_]+(\w)/g,
@@ -16479,12 +16359,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16479
16359
  }
16480
16360
  }
16481
16361
  };
16482
- /**
16483
- * @license lucide-react v0.542.0 - ISC
16484
- *
16485
- * This source code is licensed under the ISC license.
16486
- * See the LICENSE file in the root directory of this source tree.
16487
- */
16488
16362
  var defaultAttributes = {
16489
16363
  xmlns: "http://www.w3.org/2000/svg",
16490
16364
  width: 24,
@@ -16496,12 +16370,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16496
16370
  strokeLinecap: "round",
16497
16371
  strokeLinejoin: "round"
16498
16372
  };
16499
- /**
16500
- * @license lucide-react v0.542.0 - ISC
16501
- *
16502
- * This source code is licensed under the ISC license.
16503
- * See the LICENSE file in the root directory of this source tree.
16504
- */
16505
16373
  const Icon = React.forwardRef(
16506
16374
  ({
16507
16375
  color: color2 = "currentColor",
@@ -16531,12 +16399,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16531
16399
  ]
16532
16400
  )
16533
16401
  );
16534
- /**
16535
- * @license lucide-react v0.542.0 - ISC
16536
- *
16537
- * This source code is licensed under the ISC license.
16538
- * See the LICENSE file in the root directory of this source tree.
16539
- */
16540
16402
  const createLucideIcon = (iconName, iconNode) => {
16541
16403
  const Component = React.forwardRef(
16542
16404
  ({ className, ...props }, ref) => React.createElement(Icon, {
@@ -16553,24 +16415,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16553
16415
  Component.displayName = toPascalCase(iconName);
16554
16416
  return Component;
16555
16417
  };
16556
- /**
16557
- * @license lucide-react v0.542.0 - ISC
16558
- *
16559
- * This source code is licensed under the ISC license.
16560
- * See the LICENSE file in the root directory of this source tree.
16561
- */
16562
16418
  const __iconNode$4 = [
16563
16419
  ["path", { d: "M12 15V3", key: "m9g1x1" }],
16564
16420
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
16565
16421
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
16566
16422
  ];
16567
16423
  const Download = createLucideIcon("download", __iconNode$4);
16568
- /**
16569
- * @license lucide-react v0.542.0 - ISC
16570
- *
16571
- * This source code is licensed under the ISC license.
16572
- * See the LICENSE file in the root directory of this source tree.
16573
- */
16574
16424
  const __iconNode$3 = [
16575
16425
  [
16576
16426
  "path",
@@ -16581,24 +16431,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16581
16431
  ]
16582
16432
  ];
16583
16433
  const Funnel = createLucideIcon("funnel", __iconNode$3);
16584
- /**
16585
- * @license lucide-react v0.542.0 - ISC
16586
- *
16587
- * This source code is licensed under the ISC license.
16588
- * See the LICENSE file in the root directory of this source tree.
16589
- */
16590
16434
  const __iconNode$2 = [
16591
16435
  ["path", { d: "m8 11 2 2 4-4", key: "1sed1v" }],
16592
16436
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
16593
16437
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
16594
16438
  ];
16595
16439
  const SearchCheck = createLucideIcon("search-check", __iconNode$2);
16596
- /**
16597
- * @license lucide-react v0.542.0 - ISC
16598
- *
16599
- * This source code is licensed under the ISC license.
16600
- * See the LICENSE file in the root directory of this source tree.
16601
- */
16602
16440
  const __iconNode$1 = [
16603
16441
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
16604
16442
  ["line", { x1: "3", x2: "21", y1: "9", y2: "9", key: "1vqk6q" }],
@@ -16607,12 +16445,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
16607
16445
  ["line", { x1: "15", x2: "15", y1: "9", y2: "21", key: "1n26ft" }]
16608
16446
  ];
16609
16447
  const Sheet = createLucideIcon("sheet", __iconNode$1);
16610
- /**
16611
- * @license lucide-react v0.542.0 - ISC
16612
- *
16613
- * This source code is licensed under the ISC license.
16614
- * See the LICENSE file in the root directory of this source tree.
16615
- */
16616
16448
  const __iconNode = [
16617
16449
  ["path", { d: "M12 3v18", key: "108xh3" }],
16618
16450
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
@@ -17023,374 +16855,373 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
17023
16855
  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");
17024
16856
  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");
17025
16857
  class AdapterDayjs {
16858
+ isMUIAdapter = true;
16859
+ isTimezoneCompatible = true;
16860
+ lib = "dayjs";
16861
+ escapedCharacters = {
16862
+ start: "[",
16863
+ end: "]"
16864
+ };
16865
+ formatTokenMap = /* @__PURE__ */ (() => formatTokenMap)();
17026
16866
  constructor({
17027
16867
  locale,
17028
16868
  formats
17029
16869
  } = {}) {
17030
- __publicField(this, "isMUIAdapter", true);
17031
- __publicField(this, "isTimezoneCompatible", true);
17032
- __publicField(this, "lib", "dayjs");
17033
- __publicField(this, "escapedCharacters", {
17034
- start: "[",
17035
- end: "]"
17036
- });
17037
- __publicField(this, "formatTokenMap", /* @__PURE__ */ (() => formatTokenMap)());
17038
- __publicField(this, "setLocaleToValue", (value) => {
17039
- const expectedLocale = this.getCurrentLocaleCode();
17040
- if (expectedLocale === value.locale()) {
17041
- return value;
17042
- }
17043
- return value.locale(expectedLocale);
17044
- });
17045
- __publicField(this, "hasUTCPlugin", () => typeof dayjs.utc !== "undefined");
17046
- __publicField(this, "hasTimezonePlugin", () => typeof dayjs.tz !== "undefined");
17047
- __publicField(this, "isSame", (value, comparing, comparisonTemplate) => {
17048
- const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));
17049
- return value.format(comparisonTemplate) === comparingInValueTimezone.format(comparisonTemplate);
17050
- });
17051
- /**
17052
- * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
17053
- */
17054
- __publicField(this, "cleanTimezone", (timezone) => {
17055
- switch (timezone) {
17056
- case "default": {
17057
- return void 0;
17058
- }
17059
- case "system": {
17060
- return dayjs.tz.guess();
17061
- }
17062
- default: {
17063
- return timezone;
17064
- }
17065
- }
17066
- });
17067
- __publicField(this, "createSystemDate", (value) => {
17068
- let date;
17069
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
17070
- const timezone = dayjs.tz.guess();
17071
- if (timezone === "UTC") {
17072
- date = dayjs(value);
17073
- } else {
17074
- date = dayjs.tz(value, timezone);
17075
- }
17076
- } else {
17077
- date = dayjs(value);
17078
- }
17079
- return this.setLocaleToValue(date);
17080
- });
17081
- __publicField(this, "createUTCDate", (value) => {
17082
- if (!this.hasUTCPlugin()) {
17083
- throw new Error(MISSING_UTC_PLUGIN);
17084
- }
17085
- return this.setLocaleToValue(dayjs.utc(value));
17086
- });
17087
- __publicField(this, "createTZDate", (value, timezone) => {
17088
- if (!this.hasUTCPlugin()) {
17089
- throw new Error(MISSING_UTC_PLUGIN);
17090
- }
17091
- if (!this.hasTimezonePlugin()) {
17092
- throw new Error(MISSING_TIMEZONE_PLUGIN);
17093
- }
17094
- const keepLocalTime = value !== void 0 && !value.endsWith("Z");
17095
- return this.setLocaleToValue(dayjs(value).tz(this.cleanTimezone(timezone), keepLocalTime));
17096
- });
17097
- __publicField(this, "getLocaleFormats", () => {
17098
- const locales = dayjs.Ls;
17099
- const locale = this.locale || "en";
17100
- let localeObject = locales[locale];
17101
- if (localeObject === void 0) {
17102
- if (process.env.NODE_ENV !== "production") {
17103
- 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."]);
17104
- }
17105
- localeObject = locales.en;
17106
- }
17107
- return localeObject.formats;
17108
- });
17109
- /**
17110
- * If the new day does not have the same offset as the old one (when switching to summer day time for example),
17111
- * Then dayjs will not automatically adjust the offset (moment does).
17112
- * We have to parse again the value to make sure the `fixOffset` method is applied.
17113
- * See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
17114
- */
17115
- __publicField(this, "adjustOffset", (value) => {
17116
- if (!this.hasTimezonePlugin()) {
17117
- return value;
17118
- }
17119
- const timezone = this.getTimezone(value);
17120
- if (timezone !== "UTC") {
17121
- const fixedValue = value.tz(this.cleanTimezone(timezone), true);
17122
- if (fixedValue.$offset === (value.$offset ?? 0)) {
17123
- return value;
17124
- }
17125
- value.$offset = fixedValue.$offset;
17126
- }
16870
+ this.locale = locale;
16871
+ this.formats = _extends({}, defaultFormats, formats);
16872
+ dayjs.extend(customParseFormatPlugin);
16873
+ }
16874
+ setLocaleToValue = (value) => {
16875
+ const expectedLocale = this.getCurrentLocaleCode();
16876
+ if (expectedLocale === value.locale()) {
17127
16877
  return value;
17128
- });
17129
- __publicField(this, "date", (value, timezone = "default") => {
17130
- if (value === null) {
17131
- return null;
17132
- }
17133
- if (timezone === "UTC") {
17134
- return this.createUTCDate(value);
17135
- }
17136
- if (timezone === "system" || timezone === "default" && !this.hasTimezonePlugin()) {
17137
- return this.createSystemDate(value);
17138
- }
17139
- return this.createTZDate(value, timezone);
17140
- });
17141
- __publicField(this, "getInvalidDate", () => dayjs(/* @__PURE__ */ new Date("Invalid date")));
17142
- __publicField(this, "getTimezone", (value) => {
17143
- var _a;
17144
- if (this.hasTimezonePlugin()) {
17145
- const zone = (_a = value.$x) == null ? void 0 : _a.$timezone;
17146
- if (zone) {
17147
- return zone;
17148
- }
16878
+ }
16879
+ return value.locale(expectedLocale);
16880
+ };
16881
+ hasUTCPlugin = () => typeof dayjs.utc !== "undefined";
16882
+ hasTimezonePlugin = () => typeof dayjs.tz !== "undefined";
16883
+ isSame = (value, comparing, comparisonTemplate) => {
16884
+ const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));
16885
+ return value.format(comparisonTemplate) === comparingInValueTimezone.format(comparisonTemplate);
16886
+ };
16887
+ /**
16888
+ * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
16889
+ */
16890
+ cleanTimezone = (timezone) => {
16891
+ switch (timezone) {
16892
+ case "default": {
16893
+ return void 0;
17149
16894
  }
17150
- if (this.hasUTCPlugin() && value.isUTC()) {
17151
- return "UTC";
16895
+ case "system": {
16896
+ return dayjs.tz.guess();
17152
16897
  }
17153
- return "system";
17154
- });
17155
- __publicField(this, "setTimezone", (value, timezone) => {
17156
- if (this.getTimezone(value) === timezone) {
17157
- return value;
16898
+ default: {
16899
+ return timezone;
17158
16900
  }
16901
+ }
16902
+ };
16903
+ createSystemDate = (value) => {
16904
+ let date;
16905
+ if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
16906
+ const timezone = dayjs.tz.guess();
17159
16907
  if (timezone === "UTC") {
17160
- if (!this.hasUTCPlugin()) {
17161
- throw new Error(MISSING_UTC_PLUGIN);
17162
- }
17163
- return value.utc();
17164
- }
17165
- if (timezone === "system") {
17166
- return value.local();
17167
- }
17168
- if (!this.hasTimezonePlugin()) {
17169
- if (timezone === "default") {
17170
- return value;
17171
- }
17172
- throw new Error(MISSING_TIMEZONE_PLUGIN);
17173
- }
17174
- return this.setLocaleToValue(dayjs.tz(value, this.cleanTimezone(timezone)));
17175
- });
17176
- __publicField(this, "toJsDate", (value) => {
17177
- return value.toDate();
17178
- });
17179
- __publicField(this, "parse", (value, format) => {
17180
- if (value === "") {
17181
- return null;
17182
- }
17183
- return dayjs(value, format, this.locale, true);
17184
- });
17185
- __publicField(this, "getCurrentLocaleCode", () => {
17186
- return this.locale || "en";
17187
- });
17188
- __publicField(this, "is12HourCycleInCurrentLocale", () => {
17189
- return /A|a/.test(this.getLocaleFormats().LT || "");
17190
- });
17191
- __publicField(this, "expandFormat", (format) => {
17192
- const localeFormats = this.getLocaleFormats();
17193
- const t = (formatBis) => formatBis.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (_, a, b) => a || b.slice(1));
17194
- return format.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (_, a, b) => {
17195
- const B = b && b.toUpperCase();
17196
- return a || localeFormats[b] || t(localeFormats[B]);
17197
- });
17198
- });
17199
- __publicField(this, "isValid", (value) => {
17200
- if (value == null) {
17201
- return false;
17202
- }
17203
- return value.isValid();
17204
- });
17205
- __publicField(this, "format", (value, formatKey) => {
17206
- return this.formatByString(value, this.formats[formatKey]);
17207
- });
17208
- __publicField(this, "formatByString", (value, formatString) => {
17209
- return this.setLocaleToValue(value).format(formatString);
17210
- });
17211
- __publicField(this, "formatNumber", (numberToFormat) => {
17212
- return numberToFormat;
17213
- });
17214
- __publicField(this, "isEqual", (value, comparing) => {
17215
- if (value === null && comparing === null) {
17216
- return true;
16908
+ date = dayjs(value);
16909
+ } else {
16910
+ date = dayjs.tz(value, timezone);
17217
16911
  }
17218
- if (value === null || comparing === null) {
17219
- return false;
16912
+ } else {
16913
+ date = dayjs(value);
16914
+ }
16915
+ return this.setLocaleToValue(date);
16916
+ };
16917
+ createUTCDate = (value) => {
16918
+ if (!this.hasUTCPlugin()) {
16919
+ throw new Error(MISSING_UTC_PLUGIN);
16920
+ }
16921
+ return this.setLocaleToValue(dayjs.utc(value));
16922
+ };
16923
+ createTZDate = (value, timezone) => {
16924
+ if (!this.hasUTCPlugin()) {
16925
+ throw new Error(MISSING_UTC_PLUGIN);
16926
+ }
16927
+ if (!this.hasTimezonePlugin()) {
16928
+ throw new Error(MISSING_TIMEZONE_PLUGIN);
16929
+ }
16930
+ const keepLocalTime = value !== void 0 && !value.endsWith("Z");
16931
+ return this.setLocaleToValue(dayjs(value).tz(this.cleanTimezone(timezone), keepLocalTime));
16932
+ };
16933
+ getLocaleFormats = () => {
16934
+ const locales = dayjs.Ls;
16935
+ const locale = this.locale || "en";
16936
+ let localeObject = locales[locale];
16937
+ if (localeObject === void 0) {
16938
+ if (process.env.NODE_ENV !== "production") {
16939
+ 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."]);
17220
16940
  }
17221
- return value.toDate().getTime() === comparing.toDate().getTime();
17222
- });
17223
- __publicField(this, "isSameYear", (value, comparing) => {
17224
- return this.isSame(value, comparing, "YYYY");
17225
- });
17226
- __publicField(this, "isSameMonth", (value, comparing) => {
17227
- return this.isSame(value, comparing, "YYYY-MM");
17228
- });
17229
- __publicField(this, "isSameDay", (value, comparing) => {
17230
- return this.isSame(value, comparing, "YYYY-MM-DD");
17231
- });
17232
- __publicField(this, "isSameHour", (value, comparing) => {
17233
- return value.isSame(comparing, "hour");
17234
- });
17235
- __publicField(this, "isAfter", (value, comparing) => {
17236
- return value > comparing;
17237
- });
17238
- __publicField(this, "isAfterYear", (value, comparing) => {
17239
- if (!this.hasUTCPlugin()) {
17240
- return value.isAfter(comparing, "year");
16941
+ localeObject = locales.en;
16942
+ }
16943
+ return localeObject.formats;
16944
+ };
16945
+ /**
16946
+ * If the new day does not have the same offset as the old one (when switching to summer day time for example),
16947
+ * Then dayjs will not automatically adjust the offset (moment does).
16948
+ * We have to parse again the value to make sure the `fixOffset` method is applied.
16949
+ * See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
16950
+ */
16951
+ adjustOffset = (value) => {
16952
+ if (!this.hasTimezonePlugin()) {
16953
+ return value;
16954
+ }
16955
+ const timezone = this.getTimezone(value);
16956
+ if (timezone !== "UTC") {
16957
+ const fixedValue = value.tz(this.cleanTimezone(timezone), true);
16958
+ if (fixedValue.$offset === (value.$offset ?? 0)) {
16959
+ return value;
17241
16960
  }
17242
- return !this.isSameYear(value, comparing) && value.utc() > comparing.utc();
17243
- });
17244
- __publicField(this, "isAfterDay", (value, comparing) => {
17245
- if (!this.hasUTCPlugin()) {
17246
- return value.isAfter(comparing, "day");
16961
+ value.$offset = fixedValue.$offset;
16962
+ }
16963
+ return value;
16964
+ };
16965
+ date = (value, timezone = "default") => {
16966
+ if (value === null) {
16967
+ return null;
16968
+ }
16969
+ if (timezone === "UTC") {
16970
+ return this.createUTCDate(value);
16971
+ }
16972
+ if (timezone === "system" || timezone === "default" && !this.hasTimezonePlugin()) {
16973
+ return this.createSystemDate(value);
16974
+ }
16975
+ return this.createTZDate(value, timezone);
16976
+ };
16977
+ getInvalidDate = () => dayjs(/* @__PURE__ */ new Date("Invalid date"));
16978
+ getTimezone = (value) => {
16979
+ if (this.hasTimezonePlugin()) {
16980
+ const zone = value.$x?.$timezone;
16981
+ if (zone) {
16982
+ return zone;
17247
16983
  }
17248
- return !this.isSameDay(value, comparing) && value.utc() > comparing.utc();
17249
- });
17250
- __publicField(this, "isBefore", (value, comparing) => {
17251
- return value < comparing;
17252
- });
17253
- __publicField(this, "isBeforeYear", (value, comparing) => {
16984
+ }
16985
+ if (this.hasUTCPlugin() && value.isUTC()) {
16986
+ return "UTC";
16987
+ }
16988
+ return "system";
16989
+ };
16990
+ setTimezone = (value, timezone) => {
16991
+ if (this.getTimezone(value) === timezone) {
16992
+ return value;
16993
+ }
16994
+ if (timezone === "UTC") {
17254
16995
  if (!this.hasUTCPlugin()) {
17255
- return value.isBefore(comparing, "year");
16996
+ throw new Error(MISSING_UTC_PLUGIN);
17256
16997
  }
17257
- return !this.isSameYear(value, comparing) && value.utc() < comparing.utc();
17258
- });
17259
- __publicField(this, "isBeforeDay", (value, comparing) => {
17260
- if (!this.hasUTCPlugin()) {
17261
- return value.isBefore(comparing, "day");
16998
+ return value.utc();
16999
+ }
17000
+ if (timezone === "system") {
17001
+ return value.local();
17002
+ }
17003
+ if (!this.hasTimezonePlugin()) {
17004
+ if (timezone === "default") {
17005
+ return value;
17262
17006
  }
17263
- return !this.isSameDay(value, comparing) && value.utc() < comparing.utc();
17264
- });
17265
- __publicField(this, "isWithinRange", (value, [start2, end2]) => {
17266
- return value >= start2 && value <= end2;
17267
- });
17268
- __publicField(this, "startOfYear", (value) => {
17269
- return this.adjustOffset(value.startOf("year"));
17270
- });
17271
- __publicField(this, "startOfMonth", (value) => {
17272
- return this.adjustOffset(value.startOf("month"));
17273
- });
17274
- __publicField(this, "startOfWeek", (value) => {
17275
- return this.adjustOffset(this.setLocaleToValue(value).startOf("week"));
17276
- });
17277
- __publicField(this, "startOfDay", (value) => {
17278
- return this.adjustOffset(value.startOf("day"));
17279
- });
17280
- __publicField(this, "endOfYear", (value) => {
17281
- return this.adjustOffset(value.endOf("year"));
17282
- });
17283
- __publicField(this, "endOfMonth", (value) => {
17284
- return this.adjustOffset(value.endOf("month"));
17285
- });
17286
- __publicField(this, "endOfWeek", (value) => {
17287
- return this.adjustOffset(this.setLocaleToValue(value).endOf("week"));
17288
- });
17289
- __publicField(this, "endOfDay", (value) => {
17290
- return this.adjustOffset(value.endOf("day"));
17291
- });
17292
- __publicField(this, "addYears", (value, amount) => {
17293
- return this.adjustOffset(value.add(amount, "year"));
17294
- });
17295
- __publicField(this, "addMonths", (value, amount) => {
17296
- return this.adjustOffset(value.add(amount, "month"));
17297
- });
17298
- __publicField(this, "addWeeks", (value, amount) => {
17299
- return this.adjustOffset(value.add(amount, "week"));
17300
- });
17301
- __publicField(this, "addDays", (value, amount) => {
17302
- return this.adjustOffset(value.add(amount, "day"));
17303
- });
17304
- __publicField(this, "addHours", (value, amount) => {
17305
- return this.adjustOffset(value.add(amount, "hour"));
17306
- });
17307
- __publicField(this, "addMinutes", (value, amount) => {
17308
- return this.adjustOffset(value.add(amount, "minute"));
17309
- });
17310
- __publicField(this, "addSeconds", (value, amount) => {
17311
- return this.adjustOffset(value.add(amount, "second"));
17312
- });
17313
- __publicField(this, "getYear", (value) => {
17314
- return value.year();
17315
- });
17316
- __publicField(this, "getMonth", (value) => {
17317
- return value.month();
17318
- });
17319
- __publicField(this, "getDate", (value) => {
17320
- return value.date();
17321
- });
17322
- __publicField(this, "getHours", (value) => {
17323
- return value.hour();
17324
- });
17325
- __publicField(this, "getMinutes", (value) => {
17326
- return value.minute();
17327
- });
17328
- __publicField(this, "getSeconds", (value) => {
17329
- return value.second();
17330
- });
17331
- __publicField(this, "getMilliseconds", (value) => {
17332
- return value.millisecond();
17333
- });
17334
- __publicField(this, "setYear", (value, year) => {
17335
- return this.adjustOffset(value.set("year", year));
17336
- });
17337
- __publicField(this, "setMonth", (value, month) => {
17338
- return this.adjustOffset(value.set("month", month));
17339
- });
17340
- __publicField(this, "setDate", (value, date) => {
17341
- return this.adjustOffset(value.set("date", date));
17342
- });
17343
- __publicField(this, "setHours", (value, hours) => {
17344
- return this.adjustOffset(value.set("hour", hours));
17345
- });
17346
- __publicField(this, "setMinutes", (value, minutes) => {
17347
- return this.adjustOffset(value.set("minute", minutes));
17348
- });
17349
- __publicField(this, "setSeconds", (value, seconds) => {
17350
- return this.adjustOffset(value.set("second", seconds));
17351
- });
17352
- __publicField(this, "setMilliseconds", (value, milliseconds) => {
17353
- return this.adjustOffset(value.set("millisecond", milliseconds));
17354
- });
17355
- __publicField(this, "getDaysInMonth", (value) => {
17356
- return value.daysInMonth();
17357
- });
17358
- __publicField(this, "getWeekArray", (value) => {
17359
- const start2 = this.startOfWeek(this.startOfMonth(value));
17360
- const end2 = this.endOfWeek(this.endOfMonth(value));
17361
- let count = 0;
17362
- let current = start2;
17363
- const nestedWeeks = [];
17364
- while (current < end2) {
17365
- const weekNumber = Math.floor(count / 7);
17366
- nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];
17367
- nestedWeeks[weekNumber].push(current);
17368
- current = this.addDays(current, 1);
17369
- count += 1;
17370
- }
17371
- return nestedWeeks;
17372
- });
17373
- __publicField(this, "getWeekNumber", (value) => {
17374
- return value.week();
17375
- });
17376
- __publicField(this, "getYearRange", ([start2, end2]) => {
17377
- const startDate = this.startOfYear(start2);
17378
- const endDate = this.endOfYear(end2);
17379
- const years = [];
17380
- let current = startDate;
17381
- while (this.isBefore(current, endDate)) {
17382
- years.push(current);
17383
- current = this.addYears(current, 1);
17384
- }
17385
- return years;
17007
+ throw new Error(MISSING_TIMEZONE_PLUGIN);
17008
+ }
17009
+ return this.setLocaleToValue(dayjs.tz(value, this.cleanTimezone(timezone)));
17010
+ };
17011
+ toJsDate = (value) => {
17012
+ return value.toDate();
17013
+ };
17014
+ parse = (value, format) => {
17015
+ if (value === "") {
17016
+ return null;
17017
+ }
17018
+ return dayjs(value, format, this.locale, true);
17019
+ };
17020
+ getCurrentLocaleCode = () => {
17021
+ return this.locale || "en";
17022
+ };
17023
+ is12HourCycleInCurrentLocale = () => {
17024
+ return /A|a/.test(this.getLocaleFormats().LT || "");
17025
+ };
17026
+ expandFormat = (format) => {
17027
+ const localeFormats = this.getLocaleFormats();
17028
+ const t = (formatBis) => formatBis.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (_, a, b) => a || b.slice(1));
17029
+ return format.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (_, a, b) => {
17030
+ const B = b && b.toUpperCase();
17031
+ return a || localeFormats[b] || t(localeFormats[B]);
17386
17032
  });
17387
- this.locale = locale;
17388
- this.formats = _extends({}, defaultFormats, formats);
17389
- dayjs.extend(customParseFormatPlugin);
17390
- }
17033
+ };
17034
+ isValid = (value) => {
17035
+ if (value == null) {
17036
+ return false;
17037
+ }
17038
+ return value.isValid();
17039
+ };
17040
+ format = (value, formatKey) => {
17041
+ return this.formatByString(value, this.formats[formatKey]);
17042
+ };
17043
+ formatByString = (value, formatString) => {
17044
+ return this.setLocaleToValue(value).format(formatString);
17045
+ };
17046
+ formatNumber = (numberToFormat) => {
17047
+ return numberToFormat;
17048
+ };
17049
+ isEqual = (value, comparing) => {
17050
+ if (value === null && comparing === null) {
17051
+ return true;
17052
+ }
17053
+ if (value === null || comparing === null) {
17054
+ return false;
17055
+ }
17056
+ return value.toDate().getTime() === comparing.toDate().getTime();
17057
+ };
17058
+ isSameYear = (value, comparing) => {
17059
+ return this.isSame(value, comparing, "YYYY");
17060
+ };
17061
+ isSameMonth = (value, comparing) => {
17062
+ return this.isSame(value, comparing, "YYYY-MM");
17063
+ };
17064
+ isSameDay = (value, comparing) => {
17065
+ return this.isSame(value, comparing, "YYYY-MM-DD");
17066
+ };
17067
+ isSameHour = (value, comparing) => {
17068
+ return value.isSame(comparing, "hour");
17069
+ };
17070
+ isAfter = (value, comparing) => {
17071
+ return value > comparing;
17072
+ };
17073
+ isAfterYear = (value, comparing) => {
17074
+ if (!this.hasUTCPlugin()) {
17075
+ return value.isAfter(comparing, "year");
17076
+ }
17077
+ return !this.isSameYear(value, comparing) && value.utc() > comparing.utc();
17078
+ };
17079
+ isAfterDay = (value, comparing) => {
17080
+ if (!this.hasUTCPlugin()) {
17081
+ return value.isAfter(comparing, "day");
17082
+ }
17083
+ return !this.isSameDay(value, comparing) && value.utc() > comparing.utc();
17084
+ };
17085
+ isBefore = (value, comparing) => {
17086
+ return value < comparing;
17087
+ };
17088
+ isBeforeYear = (value, comparing) => {
17089
+ if (!this.hasUTCPlugin()) {
17090
+ return value.isBefore(comparing, "year");
17091
+ }
17092
+ return !this.isSameYear(value, comparing) && value.utc() < comparing.utc();
17093
+ };
17094
+ isBeforeDay = (value, comparing) => {
17095
+ if (!this.hasUTCPlugin()) {
17096
+ return value.isBefore(comparing, "day");
17097
+ }
17098
+ return !this.isSameDay(value, comparing) && value.utc() < comparing.utc();
17099
+ };
17100
+ isWithinRange = (value, [start2, end2]) => {
17101
+ return value >= start2 && value <= end2;
17102
+ };
17103
+ startOfYear = (value) => {
17104
+ return this.adjustOffset(value.startOf("year"));
17105
+ };
17106
+ startOfMonth = (value) => {
17107
+ return this.adjustOffset(value.startOf("month"));
17108
+ };
17109
+ startOfWeek = (value) => {
17110
+ return this.adjustOffset(this.setLocaleToValue(value).startOf("week"));
17111
+ };
17112
+ startOfDay = (value) => {
17113
+ return this.adjustOffset(value.startOf("day"));
17114
+ };
17115
+ endOfYear = (value) => {
17116
+ return this.adjustOffset(value.endOf("year"));
17117
+ };
17118
+ endOfMonth = (value) => {
17119
+ return this.adjustOffset(value.endOf("month"));
17120
+ };
17121
+ endOfWeek = (value) => {
17122
+ return this.adjustOffset(this.setLocaleToValue(value).endOf("week"));
17123
+ };
17124
+ endOfDay = (value) => {
17125
+ return this.adjustOffset(value.endOf("day"));
17126
+ };
17127
+ addYears = (value, amount) => {
17128
+ return this.adjustOffset(value.add(amount, "year"));
17129
+ };
17130
+ addMonths = (value, amount) => {
17131
+ return this.adjustOffset(value.add(amount, "month"));
17132
+ };
17133
+ addWeeks = (value, amount) => {
17134
+ return this.adjustOffset(value.add(amount, "week"));
17135
+ };
17136
+ addDays = (value, amount) => {
17137
+ return this.adjustOffset(value.add(amount, "day"));
17138
+ };
17139
+ addHours = (value, amount) => {
17140
+ return this.adjustOffset(value.add(amount, "hour"));
17141
+ };
17142
+ addMinutes = (value, amount) => {
17143
+ return this.adjustOffset(value.add(amount, "minute"));
17144
+ };
17145
+ addSeconds = (value, amount) => {
17146
+ return this.adjustOffset(value.add(amount, "second"));
17147
+ };
17148
+ getYear = (value) => {
17149
+ return value.year();
17150
+ };
17151
+ getMonth = (value) => {
17152
+ return value.month();
17153
+ };
17154
+ getDate = (value) => {
17155
+ return value.date();
17156
+ };
17157
+ getHours = (value) => {
17158
+ return value.hour();
17159
+ };
17160
+ getMinutes = (value) => {
17161
+ return value.minute();
17162
+ };
17163
+ getSeconds = (value) => {
17164
+ return value.second();
17165
+ };
17166
+ getMilliseconds = (value) => {
17167
+ return value.millisecond();
17168
+ };
17169
+ setYear = (value, year) => {
17170
+ return this.adjustOffset(value.set("year", year));
17171
+ };
17172
+ setMonth = (value, month) => {
17173
+ return this.adjustOffset(value.set("month", month));
17174
+ };
17175
+ setDate = (value, date) => {
17176
+ return this.adjustOffset(value.set("date", date));
17177
+ };
17178
+ setHours = (value, hours) => {
17179
+ return this.adjustOffset(value.set("hour", hours));
17180
+ };
17181
+ setMinutes = (value, minutes) => {
17182
+ return this.adjustOffset(value.set("minute", minutes));
17183
+ };
17184
+ setSeconds = (value, seconds) => {
17185
+ return this.adjustOffset(value.set("second", seconds));
17186
+ };
17187
+ setMilliseconds = (value, milliseconds) => {
17188
+ return this.adjustOffset(value.set("millisecond", milliseconds));
17189
+ };
17190
+ getDaysInMonth = (value) => {
17191
+ return value.daysInMonth();
17192
+ };
17193
+ getWeekArray = (value) => {
17194
+ const start2 = this.startOfWeek(this.startOfMonth(value));
17195
+ const end2 = this.endOfWeek(this.endOfMonth(value));
17196
+ let count = 0;
17197
+ let current = start2;
17198
+ const nestedWeeks = [];
17199
+ while (current < end2) {
17200
+ const weekNumber = Math.floor(count / 7);
17201
+ nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];
17202
+ nestedWeeks[weekNumber].push(current);
17203
+ current = this.addDays(current, 1);
17204
+ count += 1;
17205
+ }
17206
+ return nestedWeeks;
17207
+ };
17208
+ getWeekNumber = (value) => {
17209
+ return value.week();
17210
+ };
17391
17211
  getDayOfWeek(value) {
17392
17212
  return value.day() + 1;
17393
17213
  }
17214
+ getYearRange = ([start2, end2]) => {
17215
+ const startDate = this.startOfYear(start2);
17216
+ const endDate = this.endOfYear(end2);
17217
+ const years = [];
17218
+ let current = startDate;
17219
+ while (this.isBefore(current, endDate)) {
17220
+ years.push(current);
17221
+ current = this.addYears(current, 1);
17222
+ }
17223
+ return years;
17224
+ };
17394
17225
  }
17395
17226
  const DEFAULT_THEME = {
17396
17227
  headerBg: "#3f5fa3",
@@ -17537,10 +17368,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
17537
17368
  function RangeDateFilter({ column, onClose }) {
17538
17369
  const current = column.getFilterValue() || {};
17539
17370
  const [from, setFrom] = React.useState(
17540
- (current == null ? void 0 : current.from) ? dayjs(current.from) : null
17371
+ current?.from ? dayjs(current.from) : null
17541
17372
  );
17542
17373
  const [to, setTo] = React.useState(
17543
- (current == null ? void 0 : current.to) ? dayjs(current.to) : null
17374
+ current?.to ? dayjs(current.to) : null
17544
17375
  );
17545
17376
  const canApply = Boolean(from && to);
17546
17377
  const handleApply = () => {
@@ -17550,13 +17381,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
17550
17381
  // 🔥 convert here
17551
17382
  to: to.toDate()
17552
17383
  });
17553
- onClose == null ? void 0 : onClose();
17384
+ onClose?.();
17554
17385
  };
17555
17386
  const handleClear = () => {
17556
17387
  setFrom(null);
17557
17388
  setTo(null);
17558
17389
  column.setFilterValue(void 0);
17559
- onClose == null ? void 0 : onClose();
17390
+ onClose?.();
17560
17391
  };
17561
17392
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(material.Box, { p: 2, width: 240, children: [
17562
17393
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -17647,13 +17478,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
17647
17478
  function FinancialDateFilter({ column, fyOptions = [], closePopover }) {
17648
17479
  const activeFilter = column.getFilterValue();
17649
17480
  const [from, setFrom] = React.useState(
17650
- (activeFilter == null ? void 0 : activeFilter.from) ? dayjs(activeFilter.from) : null
17481
+ activeFilter?.from ? dayjs(activeFilter.from) : null
17651
17482
  );
17652
17483
  const [to, setTo] = React.useState(
17653
- (activeFilter == null ? void 0 : activeFilter.to) ? dayjs(activeFilter.to) : null
17484
+ activeFilter?.to ? dayjs(activeFilter.to) : null
17654
17485
  );
17655
- const [fy, setFy] = React.useState((activeFilter == null ? void 0 : activeFilter.fy) || "");
17656
- const [quarter, setQuarter] = React.useState((activeFilter == null ? void 0 : activeFilter.quarter) || "");
17486
+ const [fy, setFy] = React.useState(activeFilter?.fy || "");
17487
+ const [quarter, setQuarter] = React.useState(activeFilter?.quarter || "");
17657
17488
  const isManual = !fy;
17658
17489
  const isFinancial = Boolean(fy);
17659
17490
  const apply = () => {
@@ -17996,13 +17827,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
17996
17827
  globalSearch: true,
17997
17828
  columnFilters: true,
17998
17829
  densityToggle: true,
17999
- fullscreenToggle: true,
17830
+ fullscreenToggle: false,
18000
17831
  exportBtn: true,
18001
17832
  showHideColumnsBtn: true
18002
17833
  };
18003
17834
  const defaultControlOpt = {
18004
17835
  columnActions: true,
18005
- dragging: true,
17836
+ dragging: false,
18006
17837
  colPinning: true,
18007
17838
  pagination: true,
18008
17839
  rowSelection: false,
@@ -18041,7 +17872,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18041
17872
  const resolvedTopToolbar = {
18042
17873
  ...defaultToolBarOpt,
18043
17874
  ...topToolbar,
18044
- enabled: !isGridDisabled && (topToolbar == null ? void 0 : topToolbar.enabled) !== false
17875
+ enabled: !isGridDisabled && topToolbar?.enabled !== false
18045
17876
  };
18046
17877
  const detectedColumnTypes = React.useMemo(() => {
18047
17878
  if (!Array.isArray(data) || !safeData.length) return {};
@@ -18062,7 +17893,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18062
17893
  }
18063
17894
  if (!Array.isArray(data) || data.length === 0) return {};
18064
17895
  const result2 = {};
18065
- columns == null ? void 0 : columns.forEach((col) => {
17896
+ columns?.forEach((col) => {
18066
17897
  if (!col.TotTyp) return;
18067
17898
  let count = 0;
18068
17899
  let sum = 0;
@@ -18098,7 +17929,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18098
17929
  }, [safeData, safeColumns, isLoading]);
18099
17930
  const fyOptions = React.useMemo(() => {
18100
17931
  if (!Array.isArray(data)) return [];
18101
- const fyColumn = columns == null ? void 0 : columns.find(
17932
+ const fyColumn = columns?.find(
18102
17933
  (c) => c.ColDataType === "date" && c.DateMode === "financial"
18103
17934
  );
18104
17935
  if (!fyColumn) return [];
@@ -18146,10 +17977,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18146
17977
  CORE LAYOUT (🔥 MUST BE semantic)
18147
17978
  ================================ */
18148
17979
  layoutMode: "semantic",
18149
- getRowId: (row, index) => {
18150
- var _a;
18151
- return ((_a = row.id) == null ? void 0 : _a.toString()) ?? index.toString();
18152
- },
17980
+ getRowId: (row, index) => row.id?.toString() ?? index.toString(),
18153
17981
  /* ===============================
18154
17982
  FEATURES
18155
17983
  ================================ */
@@ -18158,7 +17986,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18158
17986
  enableColumnFilters: resolvedTopToolbar.columnFilters && !isGridDisabled,
18159
17987
  enableDensityToggle: resolvedTopToolbar.densityToggle && !isGridDisabled,
18160
17988
  enableFullScreenToggle: resolvedTopToolbar.fullscreenToggle && !isGridDisabled,
18161
- enableColumnOrdering: !isGridDisabled && (controls == null ? void 0 : controls.dragging),
17989
+ enableColumnOrdering: !isGridDisabled && controls?.dragging,
18162
17990
  enableColumnPinning: !isGridDisabled && controls.colPinning,
18163
17991
  enablePagination: !isGridDisabled && controls.pagination,
18164
17992
  enableColumnActions: !isGridDisabled && controls.columnActions,
@@ -18167,11 +17995,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18167
17995
  enableSorting: !isGridDisabled && controls.sorting,
18168
17996
  enableEditing: !isGridDisabled && controls.editing,
18169
17997
  editDisplayMode: "cell",
18170
- enableColumnResizing: !disableAllActions && (controls == null ? void 0 : controls.resizing),
17998
+ enableColumnResizing: !disableAllActions && controls?.resizing,
18171
17999
  enableRowVirtualization: !controls.rowPinning && true,
18172
18000
  enableStickyHeader: true,
18173
18001
  enableStickyFooter: true,
18174
- enableBottomToolbar: !disableAllActions && (controls == null ? void 0 : controls.pagination),
18002
+ enableBottomToolbar: !disableAllActions && controls?.pagination,
18175
18003
  enableRowPinning: !disableAllActions && controls.rowPinning,
18176
18004
  enableGlobalFilterRankedResults: false,
18177
18005
  enableFilterMatchHighlighting: true,
@@ -18217,7 +18045,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18217
18045
  pageSize: 50
18218
18046
  },
18219
18047
  density: "comfortable",
18220
- columnPinning: (controls == null ? void 0 : controls.colPinning) ? columnPinning : { left: [], right: [] },
18048
+ columnPinning: controls?.colPinning ? columnPinning : { left: [], right: [] },
18221
18049
  columnVisibility
18222
18050
  },
18223
18051
  paginationDisplayMode: paginationStyle,
@@ -18233,10 +18061,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18233
18061
  const next = typeof updater === "function" ? updater(rowSelection) : updater;
18234
18062
  setRowSelection(next);
18235
18063
  if (onRowSelectionChange) {
18236
- const selectedRows = Object.keys(next).map((rowId) => {
18237
- var _a;
18238
- return (_a = table.getRow(rowId)) == null ? void 0 : _a.original;
18239
- }).filter(Boolean);
18064
+ const selectedRows = Object.keys(next).map((rowId) => table.getRow(rowId)?.original).filter(Boolean);
18240
18065
  onRowSelectionChange(selectedRows);
18241
18066
  }
18242
18067
  },
@@ -18261,12 +18086,21 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18261
18086
  display: "flex",
18262
18087
  flexDirection: "column",
18263
18088
  border: `1px solid ${mergedTheme.border}`,
18089
+ borderRadius: "6px",
18264
18090
  backgroundColor: mergedTheme.bodyBg,
18265
18091
  ...isFullScreen && {
18266
18092
  position: "fixed",
18267
- inset: 0,
18093
+ top: 0,
18094
+ left: 0,
18095
+ right: 0,
18096
+ bottom: 0,
18097
+ width: "100vw",
18098
+ height: "100vh",
18099
+ margin: 0,
18268
18100
  borderRadius: 0,
18269
- zIndex: "9999999 !important"
18101
+ zIndex: "9999999 !important",
18102
+ transform: "none",
18103
+ isolation: "isolate"
18270
18104
  }
18271
18105
  }
18272
18106
  };
@@ -18342,20 +18176,17 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18342
18176
  /* ===============================
18343
18177
  BODY CELLS (PIN SAFE)
18344
18178
  ================================ */
18345
- muiTableBodyCellProps: ({ cell }) => {
18346
- var _a;
18347
- return {
18348
- title: (_a = cell.renderValue) == null ? void 0 : _a.call(cell),
18349
- sx: {
18350
- borderRight: `1px solid ${mergedTheme.border}`,
18179
+ muiTableBodyCellProps: ({ cell }) => ({
18180
+ title: cell.renderValue?.(),
18181
+ sx: {
18182
+ borderRight: `1px solid ${mergedTheme.border}`,
18183
+ backgroundColor: mergedTheme.bodyBg,
18184
+ "&.mrt-table-body-cell-pinned": {
18351
18185
  backgroundColor: mergedTheme.bodyBg,
18352
- "&.mrt-table-body-cell-pinned": {
18353
- backgroundColor: mergedTheme.bodyBg,
18354
- zIndex: 1
18355
- }
18186
+ zIndex: 1
18356
18187
  }
18357
- };
18358
- },
18188
+ }
18189
+ }),
18359
18190
  /* ===============================
18360
18191
  ROW HOVER
18361
18192
  ================================ */
@@ -18428,7 +18259,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18428
18259
  width: "100%"
18429
18260
  },
18430
18261
  children: [
18431
- (topToolbar == null ? void 0 : topToolbar.globalSearch) && /* @__PURE__ */ jsxRuntimeExports.jsx(
18262
+ topToolbar?.globalSearch && /* @__PURE__ */ jsxRuntimeExports.jsx(
18432
18263
  material.TextField,
18433
18264
  {
18434
18265
  size: "small",
@@ -18443,10 +18274,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18443
18274
  sx: {
18444
18275
  "& .MuiOutlinedInput-root": {
18445
18276
  borderRadius: 1.5,
18446
- "& fieldset": { borderColor: theme == null ? void 0 : theme.headerBg },
18447
- "&:hover fieldset": { borderColor: theme == null ? void 0 : theme.headerBg },
18277
+ "& fieldset": { borderColor: theme?.headerBg },
18278
+ "&:hover fieldset": { borderColor: theme?.headerBg },
18448
18279
  "&.Mui-focused fieldset": {
18449
- borderColor: theme == null ? void 0 : theme.headerBg,
18280
+ borderColor: theme?.headerBg,
18450
18281
  borderWidth: 2
18451
18282
  }
18452
18283
  },
@@ -18454,12 +18285,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18454
18285
  opacity: 0.7
18455
18286
  },
18456
18287
  "& .MuiInputAdornment-root svg": {
18457
- color: theme == null ? void 0 : theme.headerBg
18288
+ color: theme?.headerBg
18458
18289
  }
18459
18290
  }
18460
18291
  }
18461
18292
  ),
18462
- ((topToolbar == null ? void 0 : topToolbar.exportBtn) || (topToolbar == null ? void 0 : topToolbar.columnFilters) || (topToolbar == null ? void 0 : topToolbar.densityToggle) || (topToolbar == null ? void 0 : topToolbar.showHideColumnsBtn) || (topToolbar == null ? void 0 : topToolbar.fullscreenToggle)) && /* @__PURE__ */ jsxRuntimeExports.jsxs(
18293
+ (topToolbar?.exportBtn || topToolbar?.columnFilters || topToolbar?.densityToggle || topToolbar?.showHideColumnsBtn || topToolbar?.fullscreenToggle) && /* @__PURE__ */ jsxRuntimeExports.jsxs(
18463
18294
  material.Paper,
18464
18295
  {
18465
18296
  elevation: 3,
@@ -18473,25 +18304,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18473
18304
  py: 0.2,
18474
18305
  borderRadius: 2,
18475
18306
  bgcolor: "background.paper",
18476
- border: `1px solid ${theme == null ? void 0 : theme.headerBg}`,
18307
+ border: `1px solid ${theme?.headerBg}`,
18477
18308
  whiteSpace: "nowrap",
18478
18309
  opacity: disable ? 0.6 : 1,
18479
18310
  pointerEvents: disable ? "none" : "auto"
18480
18311
  },
18481
18312
  children: [
18482
- (topToolbar == null ? void 0 : topToolbar.exportBtn) && /* @__PURE__ */ jsxRuntimeExports.jsx(
18313
+ topToolbar?.exportBtn && /* @__PURE__ */ jsxRuntimeExports.jsx(
18483
18314
  ExportButton,
18484
18315
  {
18485
18316
  data: exportData,
18486
- color: theme == null ? void 0 : theme.headerBg,
18317
+ color: theme?.headerBg,
18487
18318
  filename: "table-data",
18488
18319
  disabled: disable
18489
18320
  }
18490
18321
  ),
18491
- (topToolbar == null ? void 0 : topToolbar.columnFilters) && /* @__PURE__ */ jsxRuntimeExports.jsx(materialReactTable.MRT_ToggleFiltersButton, { table, disabled: disable }),
18492
- (topToolbar == null ? void 0 : topToolbar.densityToggle) && /* @__PURE__ */ jsxRuntimeExports.jsx(materialReactTable.MRT_ToggleDensePaddingButton, { table, disabled: disable }),
18493
- (topToolbar == null ? void 0 : topToolbar.showHideColumnsBtn) && /* @__PURE__ */ jsxRuntimeExports.jsx(materialReactTable.MRT_ShowHideColumnsButton, { table, disabled: disable }),
18494
- (topToolbar == null ? void 0 : topToolbar.fullscreenToggle) && /* @__PURE__ */ jsxRuntimeExports.jsx(materialReactTable.MRT_ToggleFullScreenButton, { table, disabled: disable })
18322
+ topToolbar?.columnFilters && /* @__PURE__ */ jsxRuntimeExports.jsx(materialReactTable.MRT_ToggleFiltersButton, { table, disabled: disable }),
18323
+ topToolbar?.densityToggle && /* @__PURE__ */ jsxRuntimeExports.jsx(materialReactTable.MRT_ToggleDensePaddingButton, { table, disabled: disable }),
18324
+ topToolbar?.showHideColumnsBtn && /* @__PURE__ */ jsxRuntimeExports.jsx(materialReactTable.MRT_ShowHideColumnsButton, { table, disabled: disable }),
18325
+ topToolbar?.fullscreenToggle && /* @__PURE__ */ jsxRuntimeExports.jsx(materialReactTable.MRT_ToggleFullScreenButton, { table, disabled: disable })
18495
18326
  ]
18496
18327
  }
18497
18328
  )
@@ -18607,7 +18438,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18607
18438
  const SmartTable = ({
18608
18439
  controls = {
18609
18440
  columnActions: true,
18610
- dragging: true,
18441
+ dragging: false,
18611
18442
  colPinning: true,
18612
18443
  pagination: true,
18613
18444
  rowSelection: false,
@@ -18622,19 +18453,26 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
18622
18453
  globalSearch: true,
18623
18454
  columnFilters: true,
18624
18455
  densityToggle: true,
18625
- fullscreenToggle: true,
18456
+ fullscreenToggle: false,
18626
18457
  exportBtn: true,
18627
18458
  showHideColumnsBtn: true
18628
18459
  },
18460
+ theme = {
18461
+ headerBg: "#3f5fa3",
18462
+ headerText: "#ffffff",
18463
+ bodyBg: "#ffffff",
18464
+ border: "#cfd6e4"
18465
+ },
18629
18466
  height: height2 = "100%",
18630
18467
  width: width2 = "100%",
18631
18468
  columns = [],
18632
18469
  data = [],
18470
+ paginationStyle = "default",
18633
18471
  isLoading = false,
18634
18472
  onRowSelectionChange = () => {
18635
18473
  }
18636
18474
  }) => {
18637
- const props = { controls, topToolbar, height: height2, width: width2, isLoading, columns, data, onRowSelectionChange };
18475
+ const props = { controls, topToolbar, height: height2, width: width2, isLoading, columns, data, onRowSelectionChange, paginationStyle, theme };
18638
18476
  return /* @__PURE__ */ jsxRuntimeExports.jsx(xDatePickers.LocalizationProvider, { dateAdapter: AdapterDayjs, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SmartGridTable, { ...props }) });
18639
18477
  };
18640
18478
  exports2.MytekComboDropdown = ComboDropdown;