@3sc/common-component 0.0.202 → 0.0.204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var yw = Object.defineProperty;
2
2
  var vw = (e, t, n) => t in e ? yw(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var va = (e, t, n) => vw(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as C from "react";
5
- import It, { forwardRef as Kd, useContext as ut, isValidElement as rs, cloneElement as za, Children as ay, useState as Re, useEffect as xt, createContext as Un, useRef as dt, useLayoutEffect as ly, useId as Qd, useInsertionEffect as cy, useCallback as Nt, useMemo as ln, Fragment as ys, createElement as xw, Component as uy, useReducer as dy } from "react";
5
+ import It, { forwardRef as Kd, useContext as ut, isValidElement as rs, cloneElement as za, Children as ay, useState as Re, useEffect as xt, createContext as Un, useRef as dt, useLayoutEffect as ly, useId as Qd, useInsertionEffect as cy, useCallback as Nt, useMemo as nn, Fragment as ys, createElement as xw, Component as uy, useReducer as dy } from "react";
6
6
  import * as Cw from "react-dom";
7
7
  import xa, { createPortal as ww } from "react-dom";
8
8
  var mi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -261,29 +261,29 @@ function Iw() {
261
261
  }), typeof Reflect == "object" && Reflect.construct) {
262
262
  try {
263
263
  Reflect.construct(Ye, []);
264
- } catch (an) {
265
- je = an;
264
+ } catch (ln) {
265
+ je = ln;
266
266
  }
267
267
  Reflect.construct(z, [], Ye);
268
268
  } else {
269
269
  try {
270
270
  Ye.call();
271
- } catch (an) {
272
- je = an;
271
+ } catch (ln) {
272
+ je = ln;
273
273
  }
274
274
  z.call(Ye.prototype);
275
275
  }
276
276
  } else {
277
277
  try {
278
278
  throw Error();
279
- } catch (an) {
280
- je = an;
279
+ } catch (ln) {
280
+ je = ln;
281
281
  }
282
282
  z();
283
283
  }
284
- } catch (an) {
285
- if (an && je && typeof an.stack == "string") {
286
- for (var Ge = an.stack.split(`
284
+ } catch (ln) {
285
+ if (ln && je && typeof ln.stack == "string") {
286
+ for (var Ge = ln.stack.split(`
287
287
  `), Gt = je.stack.split(`
288
288
  `), Ie = Ge.length - 1, Ze = Gt.length - 1; Ie >= 1 && Ze >= 0 && Ge[Ie] !== Gt[Ze]; )
289
289
  Ze--;
@@ -626,11 +626,11 @@ Check the top-level render call using <` + ve + ">.");
626
626
  vt(In, z);
627
627
  }
628
628
  if (ce.call(de, "key")) {
629
- var Xo = _(z), an = Object.keys(de).filter(function(bw) {
629
+ var Xo = _(z), ln = Object.keys(de).filter(function(bw) {
630
630
  return bw !== "key";
631
- }), Xc = an.length > 0 ? "{key: someKey, " + an.join(": ..., ") + ": ...}" : "{key: someKey}";
631
+ }), Xc = ln.length > 0 ? "{key: someKey, " + ln.join(": ..., ") + ": ...}" : "{key: someKey}";
632
632
  if (!Ro[Xo + Xc]) {
633
- var gw = an.length > 0 ? "{" + an.join(": ..., ") + ": ...}" : "{}";
633
+ var gw = ln.length > 0 ? "{" + ln.join(": ..., ") + ": ...}" : "{}";
634
634
  I(`A props object containing a "key" prop is being spread into JSX:
635
635
  let props = %s;
636
636
  <%s {...props} />
@@ -642,13 +642,13 @@ React keys must be passed directly to JSX without using spread:
642
642
  return z === o ? Ir(Ze) : zt(Ze), Ze;
643
643
  }
644
644
  }
645
- function sn(z, de, ve) {
645
+ function an(z, de, ve) {
646
646
  return Tr(z, de, ve, !0);
647
647
  }
648
648
  function Uo(z, de, ve) {
649
649
  return Tr(z, de, ve, !1);
650
650
  }
651
- var Yc = Uo, Yo = sn;
651
+ var Yc = Uo, Yo = an;
652
652
  Ni.Fragment = o, Ni.jsx = Yc, Ni.jsxs = Yo;
653
653
  }()), Ni;
654
654
  }
@@ -2767,18 +2767,18 @@ function Dy(e) {
2767
2767
  t[n] = Dy(e[n]);
2768
2768
  }), t;
2769
2769
  }
2770
- function on(e, t, n = {
2770
+ function rn(e, t, n = {
2771
2771
  clone: !0
2772
2772
  }) {
2773
2773
  const o = n.clone ? x({}, e) : e;
2774
2774
  return mo(e) && mo(t) && Object.keys(t).forEach((r) => {
2775
2775
  /* @__PURE__ */ C.isValidElement(t[r]) ? o[r] = t[r] : mo(t[r]) && // Avoid prototype pollution
2776
- Object.prototype.hasOwnProperty.call(e, r) && mo(e[r]) ? o[r] = on(e[r], t[r], n) : n.clone ? o[r] = mo(t[r]) ? Dy(t[r]) : t[r] : o[r] = t[r];
2776
+ Object.prototype.hasOwnProperty.call(e, r) && mo(e[r]) ? o[r] = rn(e[r], t[r], n) : n.clone ? o[r] = mo(t[r]) ? Dy(t[r]) : t[r] : o[r] = t[r];
2777
2777
  }), o;
2778
2778
  }
2779
2779
  const BS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2780
2780
  __proto__: null,
2781
- default: on,
2781
+ default: rn,
2782
2782
  isPlainObject: mo
2783
2783
  }, Symbol.toStringTag, { value: "Module" })), VS = ["values", "unit", "step"], $S = (e) => {
2784
2784
  const t = Object.keys(e).map((n) => ({
@@ -2840,7 +2840,7 @@ const LS = {
2840
2840
  borderRadius: 4
2841
2841
  }, $o = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.string, i.object, i.array]) : {};
2842
2842
  function is(e, t) {
2843
- return t ? on(e, t, {
2843
+ return t ? rn(e, t, {
2844
2844
  clone: !1
2845
2845
  // No need to clone deep, it's way faster.
2846
2846
  }) : e;
@@ -2897,7 +2897,7 @@ function Fy(e, t) {
2897
2897
  }, t);
2898
2898
  }
2899
2899
  function _S(e, ...t) {
2900
- const n = jy(e), o = [n, ...t].reduce((r, s) => on(r, s), {});
2900
+ const n = jy(e), o = [n, ...t].reduce((r, s) => rn(r, s), {});
2901
2901
  return Fy(Object.keys(n), o);
2902
2902
  }
2903
2903
  function WS(e, t) {
@@ -3586,7 +3586,7 @@ function Us(e = {}, ...t) {
3586
3586
  spacing: r,
3587
3587
  shape: s = {}
3588
3588
  } = e, a = oe(e, AI), l = Ny(n), c = qS(r);
3589
- let u = on({
3589
+ let u = rn({
3590
3590
  breakpoints: l,
3591
3591
  direction: "ltr",
3592
3592
  components: {},
@@ -3597,7 +3597,7 @@ function Us(e = {}, ...t) {
3597
3597
  spacing: c,
3598
3598
  shape: x({}, LS, s)
3599
3599
  }, a);
3600
- return u.applyStyles = $y, u = t.reduce((d, p) => on(d, p), u), u.unstable_sxConfig = x({}, Hs, a == null ? void 0 : a.unstable_sxConfig), u.unstable_sx = function(p) {
3600
+ return u.applyStyles = $y, u = t.reduce((d, p) => rn(d, p), u), u.unstable_sxConfig = x({}, Hs, a == null ? void 0 : a.unstable_sxConfig), u.unstable_sx = function(p) {
3601
3601
  return yi({
3602
3602
  sx: p,
3603
3603
  theme: this
@@ -4275,7 +4275,7 @@ function yo(e, t, n, o, r) {
4275
4275
  const s = e[t], a = r || t;
4276
4276
  return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`) : null;
4277
4277
  }
4278
- const rn = i.oneOfType([i.func, i.object]);
4278
+ const sn = i.oneOfType([i.func, i.object]);
4279
4279
  function nd(...e) {
4280
4280
  return e.reduce((t, n) => n == null ? t : function(...r) {
4281
4281
  t.apply(this, r), n.apply(this, r);
@@ -4878,7 +4878,7 @@ const _T = (e) => ({
4878
4878
  const f = u > 0 ? s[d[u - 1]] : "column";
4879
4879
  s[c] = f;
4880
4880
  }
4881
- }), n = on(n, fn({
4881
+ }), n = rn(n, fn({
4882
4882
  theme: t
4883
4883
  }, a, (c, u) => e.useFlexGap ? {
4884
4884
  gap: fr(o, c)
@@ -5308,7 +5308,7 @@ const theme2 = createTheme({ palette: {
5308
5308
  dark: ru,
5309
5309
  light: am
5310
5310
  };
5311
- return process.env.NODE_ENV !== "production" && (m[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), on(x({
5311
+ return process.env.NODE_ENV !== "production" && (m[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), rn(x({
5312
5312
  // A collection of common colors.
5313
5313
  common: x({}, vs),
5314
5314
  // prevent mutable object.
@@ -5418,7 +5418,7 @@ function fE(e, t) {
5418
5418
  letterSpacing: "inherit"
5419
5419
  }
5420
5420
  };
5421
- return on(x({
5421
+ return rn(x({
5422
5422
  htmlFontSize: u,
5423
5423
  pxToRem: b,
5424
5424
  fontFamily: o,
@@ -5512,7 +5512,7 @@ function pl(e = {}, ...t) {
5512
5512
  e.generateCssVars === void 0)
5513
5513
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : bo(18));
5514
5514
  const l = uE(o), c = Us(e);
5515
- let u = on(c, {
5515
+ let u = rn(c, {
5516
5516
  mixins: GT(c.breakpoints, n),
5517
5517
  palette: l,
5518
5518
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
@@ -5521,7 +5521,7 @@ function pl(e = {}, ...t) {
5521
5521
  transitions: wE(r),
5522
5522
  zIndex: x({}, SE)
5523
5523
  });
5524
- if (u = on(u, a), u = t.reduce((d, p) => on(d, p), u), process.env.NODE_ENV !== "production") {
5524
+ if (u = rn(u, a), u = t.reduce((d, p) => rn(d, p), u), process.env.NODE_ENV !== "production") {
5525
5525
  const d = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], p = (f, m) => {
5526
5526
  let b;
5527
5527
  for (b in f) {
@@ -7343,7 +7343,7 @@ process.env.NODE_ENV !== "production" && (Fn.propTypes = {
7343
7343
  * A ref for imperative actions.
7344
7344
  * It currently only supports `focusVisible()` action.
7345
7345
  */
7346
- action: rn,
7346
+ action: sn,
7347
7347
  /**
7348
7348
  * If `true`, the ripples are centered.
7349
7349
  * They won't start at the cursor interaction position.
@@ -9111,7 +9111,7 @@ process.env.NODE_ENV !== "production" && ($v.propTypes = {
9111
9111
  /**
9112
9112
  * A ref that points to the used popper instance.
9113
9113
  */
9114
- popperRef: rn,
9114
+ popperRef: sn,
9115
9115
  /**
9116
9116
  * The props used for each slot inside the Popper.
9117
9117
  * @default {}
@@ -9282,7 +9282,7 @@ process.env.NODE_ENV !== "production" && (Ii.propTypes = {
9282
9282
  /**
9283
9283
  * A ref that points to the used popper instance.
9284
9284
  */
9285
- popperRef: rn,
9285
+ popperRef: sn,
9286
9286
  /**
9287
9287
  * The props used for each slot inside the Popper.
9288
9288
  * @default {}
@@ -10377,7 +10377,7 @@ process.env.NODE_ENV !== "production" && (na.propTypes = {
10377
10377
  /**
10378
10378
  * Pass a ref to the `input` element.
10379
10379
  */
10380
- inputRef: rn,
10380
+ inputRef: sn,
10381
10381
  /**
10382
10382
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
10383
10383
  * FormControl.
@@ -12074,7 +12074,7 @@ process.env.NODE_ENV !== "production" && (Bp.propTypes = {
12074
12074
  /**
12075
12075
  * Pass a ref to the `input` element.
12076
12076
  */
12077
- inputRef: rn,
12077
+ inputRef: sn,
12078
12078
  /*
12079
12079
  * @ignore
12080
12080
  */
@@ -12279,7 +12279,7 @@ process.env.NODE_ENV !== "production" && (Vp.propTypes = {
12279
12279
  /**
12280
12280
  * Pass a ref to the `input` element.
12281
12281
  */
12282
- inputRef: rn,
12282
+ inputRef: sn,
12283
12283
  /**
12284
12284
  * Callback fired when the state is changed.
12285
12285
  *
@@ -14128,7 +14128,7 @@ const fM = ["disableUnderline", "components", "componentsProps", "fullWidth", "h
14128
14128
  input: {
14129
14129
  ownerState: v
14130
14130
  }
14131
- }, T = m ?? u ? on(S, m ?? u) : S, w = (o = (r = b.root) != null ? r : c.Root) != null ? o : mM, E = (s = (a = b.input) != null ? a : c.Input) != null ? s : gM;
14131
+ }, T = m ?? u ? rn(S, m ?? u) : S, w = (o = (r = b.root) != null ? r : c.Root) != null ? o : mM, E = (s = (a = b.input) != null ? a : c.Input) != null ? s : gM;
14132
14132
  return /* @__PURE__ */ g.jsx(na, x({
14133
14133
  slots: {
14134
14134
  root: w,
@@ -14247,7 +14247,7 @@ process.env.NODE_ENV !== "production" && (bc.propTypes = {
14247
14247
  /**
14248
14248
  * Pass a ref to the `input` element.
14249
14249
  */
14250
- inputRef: rn,
14250
+ inputRef: sn,
14251
14251
  /**
14252
14252
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
14253
14253
  * FormControl.
@@ -15634,7 +15634,7 @@ const HM = ["disableUnderline", "components", "componentsProps", "fullWidth", "i
15634
15634
  disableUnderline: c
15635
15635
  }
15636
15636
  }
15637
- }, w = b ?? d ? on(b ?? d, T) : T, E = (o = (r = h.root) != null ? r : u.Root) != null ? o : YM, O = (s = (a = h.input) != null ? a : u.Input) != null ? s : XM;
15637
+ }, w = b ?? d ? rn(b ?? d, T) : T, E = (o = (r = h.root) != null ? r : u.Root) != null ? o : YM, O = (s = (a = h.input) != null ? a : u.Input) != null ? s : XM;
15638
15638
  return /* @__PURE__ */ g.jsx(na, x({
15639
15639
  slots: {
15640
15640
  root: E,
@@ -15746,7 +15746,7 @@ process.env.NODE_ENV !== "production" && (yc.propTypes = {
15746
15746
  /**
15747
15747
  * Pass a ref to the `input` element.
15748
15748
  */
15749
- inputRef: rn,
15749
+ inputRef: sn,
15750
15750
  /**
15751
15751
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
15752
15752
  * FormControl.
@@ -17071,7 +17071,7 @@ process.env.NODE_ENV !== "production" && (vc.propTypes = {
17071
17071
  * A ref for imperative actions.
17072
17072
  * It currently only supports updatePosition() action.
17073
17073
  */
17074
- action: rn,
17074
+ action: sn,
17075
17075
  /**
17076
17076
  * An HTML element, [PopoverVirtualElement](/material-ui/react-popover/#virtual-element),
17077
17077
  * or a function that returns either.
@@ -17646,7 +17646,7 @@ process.env.NODE_ENV !== "production" && (o1.propTypes = {
17646
17646
  * Use that prop to pass a ref to the native select element.
17647
17647
  * @deprecated
17648
17648
  */
17649
- inputRef: rn,
17649
+ inputRef: sn,
17650
17650
  /**
17651
17651
  * @ignore
17652
17652
  */
@@ -18020,7 +18020,7 @@ process.env.NODE_ENV !== "production" && (xc.propTypes = {
18020
18020
  /**
18021
18021
  * Pass a ref to the `input` element.
18022
18022
  */
18023
- inputRef: rn,
18023
+ inputRef: sn,
18024
18024
  /**
18025
18025
  * The label of the `input`. It is only used for layout. The actual labelling
18026
18026
  * is handled by `InputLabel`.
@@ -19140,7 +19140,7 @@ process.env.NODE_ENV !== "production" && (a1.propTypes = {
19140
19140
  * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
19141
19141
  * Equivalent to `ref`
19142
19142
  */
19143
- inputRef: rn,
19143
+ inputRef: sn,
19144
19144
  /**
19145
19145
  * The ID of an element that acts as an additional label. The Select will
19146
19146
  * be labelled by the additional label and the selected value.
@@ -19308,7 +19308,7 @@ const gD = ["autoWidth", "children", "classes", "className", "defaultOpen", "dis
19308
19308
  id: p
19309
19309
  }, O)
19310
19310
  }, m, {
19311
- classes: m ? on(R, m.classes) : R
19311
+ classes: m ? rn(R, m.classes) : R
19312
19312
  }, f ? f.props.inputProps : {})
19313
19313
  }, (v && I || u) && _ === "outlined" ? {
19314
19314
  notched: !0
@@ -19964,19 +19964,19 @@ const l1 = /* @__PURE__ */ C.forwardRef(function(t, n) {
19964
19964
  }, zt.current && zt.current.update();
19965
19965
  }, Ro = {}, Tr = typeof J == "string";
19966
19966
  L ? (Ro.title = !Se && Tr && !_ ? J : null, Ro["aria-describedby"] = Se ? Be : null) : (Ro["aria-label"] = Tr ? J : null, Ro["aria-labelledby"] = Se && !Tr ? Be : null);
19967
- const sn = x({}, Ro, ae, ue.props, {
19967
+ const an = x({}, Ro, ae, ue.props, {
19968
19968
  className: le(ae.className, ue.props.className),
19969
19969
  onTouchStart: Ho,
19970
19970
  ref: vt
19971
19971
  }, A ? {
19972
19972
  onMouseMove: Ir
19973
19973
  } : {});
19974
- process.env.NODE_ENV !== "production" && (sn["data-mui-internal-clone-element"] = !0, C.useEffect(() => {
19974
+ process.env.NODE_ENV !== "production" && (an["data-mui-internal-clone-element"] = !0, C.useEffect(() => {
19975
19975
  se && !se.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
19976
19976
  `));
19977
19977
  }, [se]));
19978
19978
  const Uo = {};
19979
- D || (sn.onTouchStart = ya, sn.onTouchEnd = ki), _ || (sn.onMouseOver = Pa(fe, sn.onMouseOver), sn.onMouseLeave = Pa(be, sn.onMouseLeave), Ve || (Uo.onMouseOver = fe, Uo.onMouseLeave = be)), N || (sn.onFocus = Pa(Zn, sn.onFocus), sn.onBlur = Pa(Zt, sn.onBlur), Ve || (Uo.onFocus = Zn, Uo.onBlur = Zt)), process.env.NODE_ENV !== "production" && ue.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${ue.props.title}\` or the Tooltip component.`].join(`
19979
+ D || (an.onTouchStart = ya, an.onTouchEnd = ki), _ || (an.onMouseOver = Pa(fe, an.onMouseOver), an.onMouseLeave = Pa(be, an.onMouseLeave), Ve || (Uo.onMouseOver = fe, Uo.onMouseLeave = be)), N || (an.onFocus = Pa(Zn, an.onFocus), an.onBlur = Pa(Zt, an.onBlur), Ve || (Uo.onFocus = Zn, Uo.onBlur = Zt)), process.env.NODE_ENV !== "production" && ue.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${ue.props.title}\` or the Tooltip component.`].join(`
19980
19980
  `));
19981
19981
  const Yc = C.useMemo(() => {
19982
19982
  var Ie;
@@ -20006,7 +20006,7 @@ const l1 = /* @__PURE__ */ C.forwardRef(function(t, n) {
20006
20006
  className: le(z.arrow, (T = (w = q.arrow) != null ? w : j.arrow) == null ? void 0 : T.className)
20007
20007
  }), Yo);
20008
20008
  return /* @__PURE__ */ g.jsxs(C.Fragment, {
20009
- children: [/* @__PURE__ */ C.cloneElement(ue, sn), /* @__PURE__ */ g.jsx(de, x({
20009
+ children: [/* @__PURE__ */ C.cloneElement(ue, an), /* @__PURE__ */ g.jsx(de, x({
20010
20010
  as: K ?? Ii,
20011
20011
  placement: Y,
20012
20012
  anchorEl: A ? {
@@ -20511,7 +20511,7 @@ process.env.NODE_ENV !== "production" && (c1.propTypes = {
20511
20511
  /**
20512
20512
  * Pass a ref to the `input` element.
20513
20513
  */
20514
- inputRef: rn,
20514
+ inputRef: sn,
20515
20515
  /**
20516
20516
  * Callback fired when the state is changed.
20517
20517
  *
@@ -22038,7 +22038,7 @@ process.env.NODE_ENV !== "production" && (h1.propTypes = {
22038
22038
  * @param {object} actions This object contains all possible actions
22039
22039
  * that can be triggered programmatically.
22040
22040
  */
22041
- action: rn,
22041
+ action: sn,
22042
22042
  /**
22043
22043
  * If `true`, the scroll buttons aren't forced hidden on mobile.
22044
22044
  * By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
@@ -22381,7 +22381,7 @@ process.env.NODE_ENV !== "production" && (Cc.propTypes = {
22381
22381
  /**
22382
22382
  * Pass a ref to the `input` element.
22383
22383
  */
22384
- inputRef: rn,
22384
+ inputRef: sn,
22385
22385
  /**
22386
22386
  * The label content.
22387
22387
  */
@@ -22670,7 +22670,7 @@ const S5 = ({ children: e, initial: t, isPresent: n, onExitComplete: o, custom:
22670
22670
  if (!m)
22671
22671
  return;
22672
22672
  o && o();
22673
- }, [c, o]), p = ln(
22673
+ }, [c, o]), p = nn(
22674
22674
  () => ({
22675
22675
  id: u,
22676
22676
  initial: t,
@@ -22686,7 +22686,7 @@ const S5 = ({ children: e, initial: t, isPresent: n, onExitComplete: o, custom:
22686
22686
  */
22687
22687
  s ? [Math.random(), d] : [n, d]
22688
22688
  );
22689
- return ln(() => {
22689
+ return nn(() => {
22690
22690
  c.forEach((f, m) => c.set(m, !1));
22691
22691
  }, [n]), C.useEffect(() => {
22692
22692
  !n && !c.size && o && o();
@@ -22715,7 +22715,7 @@ function bg(e) {
22715
22715
  }), t;
22716
22716
  }
22717
22717
  const T5 = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, presenceAffectsLayout: r = !0, mode: s = "sync", propagate: a = !1, anchorX: l = "left" }) => {
22718
- const [c, u] = g1(a), d = ln(() => bg(e), [e]), p = a && !c ? [] : d.map(Ma), f = dt(!0), m = dt(d), b = tf(() => /* @__PURE__ */ new Map()), [h, y] = Re(d), [v, I] = Re(d);
22718
+ const [c, u] = g1(a), d = nn(() => bg(e), [e]), p = a && !c ? [] : d.map(Ma), f = dt(!0), m = dt(d), b = tf(() => /* @__PURE__ */ new Map()), [h, y] = Re(d), [v, I] = Re(d);
22719
22719
  m1(() => {
22720
22720
  f.current = !1, m.current = d;
22721
22721
  for (let w = 0; w < v.length; w++) {
@@ -23476,7 +23476,7 @@ function J5(e, t) {
23476
23476
  }
23477
23477
  function q5(e) {
23478
23478
  const { initial: t, animate: n } = J5(e, ut(Ic));
23479
- return ln(() => ({ initial: t, animate: n }), [Eg(t), Eg(n)]);
23479
+ return nn(() => ({ initial: t, animate: n }), [Eg(t), Eg(n)]);
23480
23480
  }
23481
23481
  function Eg(e) {
23482
23482
  return Array.isArray(e) ? e.join(" ") : e;
@@ -23767,7 +23767,7 @@ function N1(e, t, n) {
23767
23767
  !en(t[o]) && !k1(o, n) && (e[o] = t[o]);
23768
23768
  }
23769
23769
  function bN({ transformTemplate: e }, t) {
23770
- return ln(() => {
23770
+ return nn(() => {
23771
23771
  const n = wf();
23772
23772
  return Cf(n, t, e), Object.assign({}, n.vars, n.style);
23773
23773
  }, [t]);
@@ -23873,7 +23873,7 @@ const j1 = () => ({
23873
23873
  attrs: {}
23874
23874
  }), Tf = (e) => typeof e == "string" && e.toLowerCase() === "svg";
23875
23875
  function TN(e, t, n, o) {
23876
- const r = ln(() => {
23876
+ const r = nn(() => {
23877
23877
  const s = j1();
23878
23878
  return If(s, t, Tf(o), e.transformTemplate), {
23879
23879
  ...s.attrs,
@@ -23888,7 +23888,7 @@ function TN(e, t, n, o) {
23888
23888
  }
23889
23889
  function EN(e = !1) {
23890
23890
  return (n, o, r, { latestValues: s }, a) => {
23891
- const c = (Sf(n) ? TN : vN)(o, s, a, n), u = X5(o, typeof n == "string", e), d = n !== ys ? { ...u, ...c, ref: r } : {}, { children: p } = o, f = ln(() => en(p) ? p.get() : p, [p]);
23891
+ const c = (Sf(n) ? TN : vN)(o, s, a, n), u = X5(o, typeof n == "string", e), d = n !== ys ? { ...u, ...c, ref: r } : {}, { children: p } = o, f = nn(() => en(p) ? p.get() : p, [p]);
23892
23892
  return xw(n, {
23893
23893
  ...d,
23894
23894
  children: f
@@ -25679,26 +25679,26 @@ function w4(e, t) {
25679
25679
  };
25680
25680
  }
25681
25681
  const Sx = 1e-4, S4 = 1 - Sx, I4 = 1 + Sx, Ix = 0.01, T4 = 0 - Ix, E4 = 0 + Ix;
25682
- function nn(e) {
25682
+ function on(e) {
25683
25683
  return e.max - e.min;
25684
25684
  }
25685
25685
  function R4(e, t, n) {
25686
25686
  return Math.abs(e - t) <= n;
25687
25687
  }
25688
25688
  function Zg(e, t, n, o = 0.5) {
25689
- e.origin = o, e.originPoint = Et(t.min, t.max, e.origin), e.scale = nn(n) / nn(t), e.translate = Et(n.min, n.max, e.origin) - e.originPoint, (e.scale >= S4 && e.scale <= I4 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= T4 && e.translate <= E4 || isNaN(e.translate)) && (e.translate = 0);
25689
+ e.origin = o, e.originPoint = Et(t.min, t.max, e.origin), e.scale = on(n) / on(t), e.translate = Et(n.min, n.max, e.origin) - e.originPoint, (e.scale >= S4 && e.scale <= I4 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= T4 && e.translate <= E4 || isNaN(e.translate)) && (e.translate = 0);
25690
25690
  }
25691
25691
  function gs(e, t, n, o) {
25692
25692
  Zg(e.x, t.x, n.x, o ? o.originX : void 0), Zg(e.y, t.y, n.y, o ? o.originY : void 0);
25693
25693
  }
25694
25694
  function Jg(e, t, n) {
25695
- e.min = n.min + t.min, e.max = e.min + nn(t);
25695
+ e.min = n.min + t.min, e.max = e.min + on(t);
25696
25696
  }
25697
25697
  function O4(e, t, n) {
25698
25698
  Jg(e.x, t.x, n.x), Jg(e.y, t.y, n.y);
25699
25699
  }
25700
25700
  function qg(e, t, n) {
25701
- e.min = t.min - n.min, e.max = e.min + nn(t);
25701
+ e.min = t.min - n.min, e.max = e.min + on(t);
25702
25702
  }
25703
25703
  function bs(e, t, n) {
25704
25704
  qg(e.x, t.x, n.x), qg(e.y, t.y, n.y);
@@ -25886,7 +25886,7 @@ function F4(e, t) {
25886
25886
  }
25887
25887
  function B4(e, t) {
25888
25888
  let n = 0.5;
25889
- const o = nn(e), r = nn(t);
25889
+ const o = on(e), r = on(t);
25890
25890
  return r > o ? n = /* @__PURE__ */ Ps(t.min, t.max - o, e.min) : o > r && (n = /* @__PURE__ */ Ps(e.min, e.max - r, t.min)), Co(0, 1, n);
25891
25891
  }
25892
25892
  function V4(e, t) {
@@ -25931,7 +25931,7 @@ class _4 {
25931
25931
  const { projection: I } = this.visualElement;
25932
25932
  if (I && I.layout) {
25933
25933
  const S = I.layout.layoutBox[y];
25934
- S && (v = nn(S) * (parseFloat(v) / 100));
25934
+ S && (v = on(S) * (parseFloat(v) / 100));
25935
25935
  }
25936
25936
  }
25937
25937
  this.originPoint[y] = v;
@@ -26378,7 +26378,7 @@ function jx(e, t) {
26378
26378
  return S0(e.x, t.x) && S0(e.y, t.y);
26379
26379
  }
26380
26380
  function I0(e) {
26381
- return nn(e.x) / nn(e.y);
26381
+ return on(e.x) / on(e.y);
26382
26382
  }
26383
26383
  function T0(e, t) {
26384
26384
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
@@ -26594,7 +26594,7 @@ function Bx({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
26594
26594
  * Update measurements
26595
26595
  */
26596
26596
  updateSnapshot() {
26597
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !nn(this.snapshot.measuredBox.x) && !nn(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
26597
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !on(this.snapshot.measuredBox.x) && !on(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
26598
26598
  }
26599
26599
  updateLayout() {
26600
26600
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -26804,9 +26804,9 @@ function Bx({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
26804
26804
  if (!(!l || !c || !u)) {
26805
26805
  if (this !== a && this.layout && u && Vx(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
26806
26806
  c = this.target || Dt();
26807
- const p = nn(this.layout.layoutBox.x);
26807
+ const p = on(this.layout.layoutBox.x);
26808
26808
  c.x.min = a.target.x.min, c.x.max = c.x.min + p;
26809
- const f = nn(this.layout.layoutBox.y);
26809
+ const f = on(this.layout.layoutBox.y);
26810
26810
  c.y.min = a.target.y.min, c.y.max = c.y.min + f;
26811
26811
  }
26812
26812
  Tn(l, c), Hr(l, d), gs(this.projectionDeltaWithTransform, this.layoutCorrected, l, d);
@@ -26917,10 +26917,10 @@ function pF(e) {
26917
26917
  if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
26918
26918
  const { layoutBox: o, measuredBox: r } = e.layout, { animationType: s } = e.options, a = t.source !== e.layout.source;
26919
26919
  s === "size" ? On((p) => {
26920
- const f = a ? t.measuredBox[p] : t.layoutBox[p], m = nn(f);
26920
+ const f = a ? t.measuredBox[p] : t.layoutBox[p], m = on(f);
26921
26921
  f.min = o[p].min, f.max = f.min + m;
26922
26922
  }) : Vx(s, t.layoutBox, o) && On((p) => {
26923
- const f = a ? t.measuredBox[p] : t.layoutBox[p], m = nn(o[p]);
26923
+ const f = a ? t.measuredBox[p] : t.layoutBox[p], m = on(o[p]);
26924
26924
  f.max = f.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[p].max = e.relativeTarget[p].min + m);
26925
26925
  });
26926
26926
  const l = zr();
@@ -42136,22 +42136,31 @@ PC.propTypes = {
42136
42136
  };
42137
42137
  function AC({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: o }) {
42138
42138
  var u;
42139
- const { columns: r } = e, { visibleGridColumns: s } = ut(fa) ?? { visibleGridColumns: [] }, a = ut(ha), l = !s || s.length === 0, c = ln(() => {
42139
+ const { columns: r } = e, { visibleGridColumns: s = [] } = ut(fa) ?? {}, a = ut(ha), l = nn(() => {
42140
42140
  var d;
42141
- return l ? f7({
42141
+ return f7({
42142
42142
  columns: r,
42143
42143
  gridPath: n,
42144
42144
  baseUrl: o,
42145
42145
  isDefaultConfig: t,
42146
42146
  pageSize: (d = e == null ? void 0 : e.pagination) == null ? void 0 : d.rowPerPage
42147
- }) : null;
42148
- }, [l, r, n, o, t, (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage]);
42147
+ });
42148
+ }, [r, n, o, t, (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage]), c = nn(() => {
42149
+ const d = new Map(l.map((p) => [p.id, p]));
42150
+ return s.map((p) => {
42151
+ const f = d.get(p.id);
42152
+ return {
42153
+ ...p,
42154
+ ...(f == null ? void 0 : f.cellRenderer) && { cellRenderer: f.cellRenderer }
42155
+ };
42156
+ });
42157
+ }, [l]);
42149
42158
  return xt(() => {
42150
- l && c && a({
42159
+ a({
42151
42160
  type: Xe.SET_GRID_DATA,
42152
- payload: { visibleGridColumns: c }
42161
+ payload: { visibleGridColumns: s.length ? c : l }
42153
42162
  });
42154
- }, [l, c, a]), /* @__PURE__ */ g.jsx(
42163
+ }, [l]), /* @__PURE__ */ g.jsx(
42155
42164
  PC,
42156
42165
  {
42157
42166
  ...e,
@@ -44013,7 +44022,7 @@ var JC = function(t) {
44013
44022
  zIndex: 1
44014
44023
  };
44015
44024
  }, WW = function(t) {
44016
- var n = t.appendTo, o = t.children, r = t.controlElement, s = t.innerProps, a = t.menuPlacement, l = t.menuPosition, c = dt(null), u = dt(null), d = Re(JC(a)), p = go(d, 2), f = p[0], m = p[1], b = ln(function() {
44025
+ var n = t.appendTo, o = t.children, r = t.controlElement, s = t.innerProps, a = t.menuPlacement, l = t.menuPosition, c = dt(null), u = dt(null), d = Re(JC(a)), p = go(d, 2), f = p[0], m = p[1], b = nn(function() {
44017
44026
  return {
44018
44027
  setPortalPlacement: m
44019
44028
  };
@@ -44619,9 +44628,9 @@ var U8 = process.env.NODE_ENV === "production" ? {
44619
44628
  return "".concat(o).concat(n ? " for search term " + n : "", ".");
44620
44629
  }
44621
44630
  }, Z8 = function(t) {
44622
- var n = t.ariaSelection, o = t.focusedOption, r = t.focusedValue, s = t.focusableOptions, a = t.isFocused, l = t.selectValue, c = t.selectProps, u = t.id, d = t.isAppleDevice, p = c.ariaLiveMessages, f = c.getOptionLabel, m = c.inputValue, b = c.isMulti, h = c.isOptionDisabled, y = c.isSearchable, v = c.menuIsOpen, I = c.options, S = c.screenReaderStatus, T = c.tabSelectsValue, w = c.isLoading, E = c["aria-label"], O = c["aria-live"], P = ln(function() {
44631
+ var n = t.ariaSelection, o = t.focusedOption, r = t.focusedValue, s = t.focusableOptions, a = t.isFocused, l = t.selectValue, c = t.selectProps, u = t.id, d = t.isAppleDevice, p = c.ariaLiveMessages, f = c.getOptionLabel, m = c.inputValue, b = c.isMulti, h = c.isOptionDisabled, y = c.isSearchable, v = c.menuIsOpen, I = c.options, S = c.screenReaderStatus, T = c.tabSelectsValue, w = c.isLoading, E = c["aria-label"], O = c["aria-live"], P = nn(function() {
44623
44632
  return Ae(Ae({}, X8), p || {});
44624
- }, [p]), k = ln(function() {
44633
+ }, [p]), k = nn(function() {
44625
44634
  var D = "";
44626
44635
  if (n && P.onChange) {
44627
44636
  var R = n.option, V = n.options, B = n.removedValue, A = n.removedValues, M = n.value, F = function(ee) {
@@ -44636,7 +44645,7 @@ var U8 = process.env.NODE_ENV === "production" ? {
44636
44645
  D = P.onChange(Y);
44637
44646
  }
44638
44647
  return D;
44639
- }, [n, P, h, l, f]), j = ln(function() {
44648
+ }, [n, P, h, l, f]), j = nn(function() {
44640
44649
  var D = "", R = o || r, V = !!(o && l && l.includes(o));
44641
44650
  if (R && P.onFocus) {
44642
44651
  var B = {
@@ -44652,7 +44661,7 @@ var U8 = process.env.NODE_ENV === "production" ? {
44652
44661
  D = P.onFocus(B);
44653
44662
  }
44654
44663
  return D;
44655
- }, [o, r, f, h, P, s, l, d]), L = ln(function() {
44664
+ }, [o, r, f, h, P, s, l, d]), L = nn(function() {
44656
44665
  var D = "";
44657
44666
  if (v && I.length && !w && P.onFilter) {
44658
44667
  var R = S({
@@ -44664,7 +44673,7 @@ var U8 = process.env.NODE_ENV === "production" ? {
44664
44673
  });
44665
44674
  }
44666
44675
  return D;
44667
- }, [s, m, v, P, I, S, w]), N = (n == null ? void 0 : n.action) === "initial-input-focus", _ = ln(function() {
44676
+ }, [s, m, v, P, I, S, w]), N = (n == null ? void 0 : n.action) === "initial-input-focus", _ = nn(function() {
44668
44677
  var D = "";
44669
44678
  if (P.guidance) {
44670
44679
  var R = r ? "value" : v ? "menu" : "input";