@ukpc-lib/react 0.3.44 → 0.3.46

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.
@@ -2051,20 +2051,20 @@ function zt(e, t) {
2051
2051
  function Rt(e) {
2052
2052
  return (t, n) => lt(t, zt(e, n));
2053
2053
  }
2054
- function M(e, t) {
2054
+ function L(e, t) {
2055
2055
  return lt(e, zt("default", t));
2056
2056
  }
2057
- M.loading = (e, t) => lt(e, zt("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), M.promise = function(e, t, n) {
2057
+ L.loading = (e, t) => lt(e, zt("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), L.promise = function(e, t, n) {
2058
2058
  let r, { pending: i, error: o, success: s } = t;
2059
- i && (r = at(i) ? M.loading(i, n) : M.loading(i.render, { ...n, ...i }));
2059
+ i && (r = at(i) ? L.loading(i, n) : L.loading(i.render, { ...n, ...i }));
2060
2060
  const a = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, c = (f, u, h) => {
2061
2061
  if (u == null)
2062
- return void M.dismiss(r);
2062
+ return void L.dismiss(r);
2063
2063
  const d = { type: f, ...a, ...n, data: h }, m = at(u) ? { render: u } : u;
2064
- return r ? M.update(r, { ...d, ...m }) : M(m.render, { ...d, ...m }), h;
2064
+ return r ? L.update(r, { ...d, ...m }) : L(m.render, { ...d, ...m }), h;
2065
2065
  }, l = eo(e) ? e() : e;
2066
2066
  return l.then((f) => c("success", s, f)).catch((f) => c("error", o, f)), l;
2067
- }, M.success = Rt("success"), M.info = Rt("info"), M.error = Rt("error"), M.warning = Rt("warning"), M.warn = M.warning, M.dark = (e, t) => lt(e, zt("default", { theme: "dark", ...t })), M.dismiss = function(e) {
2067
+ }, L.success = Rt("success"), L.info = Rt("info"), L.error = Rt("error"), L.warning = Rt("warning"), L.warn = L.warning, L.dark = (e, t) => lt(e, zt("default", { theme: "dark", ...t })), L.dismiss = function(e) {
2068
2068
  (function(t) {
2069
2069
  var n;
2070
2070
  if (to()) {
@@ -2081,11 +2081,11 @@ M.loading = (e, t) => lt(e, zt("default", { isLoading: !0, autoClose: !1, closeO
2081
2081
  } else
2082
2082
  $n = $n.filter((i) => t != null && i.options.toastId !== t);
2083
2083
  })(e);
2084
- }, M.clearWaitingQueue = function(e) {
2084
+ }, L.clearWaitingQueue = function(e) {
2085
2085
  e === void 0 && (e = {}), ae.forEach((t) => {
2086
2086
  !t.props.limit || e.containerId && t.id !== e.containerId || t.clearQueue();
2087
2087
  });
2088
- }, M.isActive = iu, M.update = function(e, t) {
2088
+ }, L.isActive = iu, L.update = function(e, t) {
2089
2089
  t === void 0 && (t = {});
2090
2090
  const n = ((r, i) => {
2091
2091
  var o;
@@ -2098,13 +2098,13 @@ M.loading = (e, t) => lt(e, zt("default", { isLoading: !0, autoClose: !1, closeO
2098
2098
  const s = o.render || i;
2099
2099
  delete o.render, lt(s, o);
2100
2100
  }
2101
- }, M.done = (e) => {
2102
- M.update(e, { progress: 1 });
2103
- }, M.onChange = function(e) {
2101
+ }, L.done = (e) => {
2102
+ L.update(e, { progress: 1 });
2103
+ }, L.onChange = function(e) {
2104
2104
  return ri.add(e), () => {
2105
2105
  ri.delete(e);
2106
2106
  };
2107
- }, M.play = (e) => ii(!0, e), M.pause = (e) => ii(!1, e);
2107
+ }, L.play = (e) => ii(!0, e), L.pause = (e) => ii(!1, e);
2108
2108
  const ct = {
2109
2109
  primary100: "#F0F6E1",
2110
2110
  primary200: "#E5F5ED",
@@ -2211,7 +2211,7 @@ const cu = {
2211
2211
  )
2212
2212
  }
2213
2213
  ), fu = (e) => {
2214
- M.error(e, {
2214
+ L.error(e, {
2215
2215
  icon: /* @__PURE__ */ C.jsx(lu, {}),
2216
2216
  position: "bottom-right",
2217
2217
  style: {
@@ -2222,7 +2222,7 @@ const cu = {
2222
2222
  }
2223
2223
  });
2224
2224
  }, Nm = (e) => {
2225
- M(e, {
2225
+ L(e, {
2226
2226
  closeButton: uu,
2227
2227
  toastId: "notify",
2228
2228
  position: "top-right",
@@ -2924,12 +2924,12 @@ function Zu(e, t) {
2924
2924
  return u[h] = (m, p = !1, y = !1) => (n || c(), d.schedule(m, p, y)), u;
2925
2925
  }, {}), cancel: (u) => kt.forEach((h) => o[h].cancel(u)), state: i, steps: o };
2926
2926
  }
2927
- const { schedule: L, cancel: ye, state: q, steps: Pn } = Zu(typeof requestAnimationFrame < "u" ? requestAnimationFrame : B, !0), Qu = {
2927
+ const { schedule: D, cancel: ye, state: q, steps: Pn } = Zu(typeof requestAnimationFrame < "u" ? requestAnimationFrame : B, !0), Qu = {
2928
2928
  useVisualState: So({
2929
2929
  scrapeMotionValuesFromProps: wo,
2930
2930
  createRenderState: yo,
2931
2931
  onMount: (e, t, { renderState: n, latestValues: r }) => {
2932
- L.read(() => {
2932
+ D.read(() => {
2933
2933
  try {
2934
2934
  n.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect();
2935
2935
  } catch {
@@ -2940,7 +2940,7 @@ const { schedule: L, cancel: ye, state: q, steps: Pn } = Zu(typeof requestAnimat
2940
2940
  height: 0
2941
2941
  };
2942
2942
  }
2943
- }), L.render(() => {
2943
+ }), D.render(() => {
2944
2944
  Sr(n, r, { enableHardwareAcceleration: !1 }, Er(t.tagName), e.transformTemplate), xo(t, n);
2945
2945
  });
2946
2946
  }
@@ -3017,7 +3017,7 @@ function di(e, t) {
3017
3017
  if (o.pointerType === "touch" || Ao())
3018
3018
  return;
3019
3019
  const a = e.getProps();
3020
- e.animationState && a.whileHover && e.animationState.setActive("whileHover", t), a[r] && L.update(() => a[r](o, s));
3020
+ e.animationState && a.whileHover && e.animationState.setActive("whileHover", t), a[r] && D.update(() => a[r](o, s));
3021
3021
  };
3022
3022
  return me(e.current, n, i, {
3023
3023
  passive: !e.getProps()[r]
@@ -3069,7 +3069,7 @@ class af extends Oe {
3069
3069
  if (!this.checkPressEnd())
3070
3070
  return;
3071
3071
  const { onTap: l, onTapCancel: f, globalTapTarget: u } = this.node.getProps();
3072
- L.update(() => {
3072
+ D.update(() => {
3073
3073
  !u && !Co(this.node.current, a.target) ? f && f(a, c) : l && l(a, c);
3074
3074
  });
3075
3075
  }, { passive: !(r.onTap || r.onPointerUp) }), s = me(window, "pointercancel", (a, c) => this.cancelPress(a, c), { passive: !(r.onTapCancel || r.onPointerCancel) });
@@ -3081,7 +3081,7 @@ class af extends Oe {
3081
3081
  const s = (a) => {
3082
3082
  a.key !== "Enter" || !this.checkPressEnd() || An("up", (c, l) => {
3083
3083
  const { onTap: f } = this.node.getProps();
3084
- f && L.update(() => f(c, l));
3084
+ f && D.update(() => f(c, l));
3085
3085
  });
3086
3086
  };
3087
3087
  this.removeEndListeners(), this.removeEndListeners = de(this.node.current, "keyup", s), An("down", (a, c) => {
@@ -3096,7 +3096,7 @@ class af extends Oe {
3096
3096
  startPress(t, n) {
3097
3097
  this.isPressing = !0;
3098
3098
  const { onTapStart: r, whileTap: i } = this.node.getProps();
3099
- i && this.node.animationState && this.node.animationState.setActive("whileTap", !0), r && L.update(() => r(t, n));
3099
+ i && this.node.animationState && this.node.animationState.setActive("whileTap", !0), r && D.update(() => r(t, n));
3100
3100
  }
3101
3101
  checkPressEnd() {
3102
3102
  return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Ao();
@@ -3105,7 +3105,7 @@ class af extends Oe {
3105
3105
  if (!this.checkPressEnd())
3106
3106
  return;
3107
3107
  const { onTapCancel: r } = this.node.getProps();
3108
- r && L.update(() => r(t, n));
3108
+ r && D.update(() => r(t, n));
3109
3109
  }
3110
3110
  mount() {
3111
3111
  const t = this.node.getProps(), n = me(t.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), r = de(this.node.current, "focus", this.startAccessiblePress);
@@ -3649,7 +3649,7 @@ function bi({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
3649
3649
  const rh = (e) => {
3650
3650
  const t = ({ timestamp: n }) => e(n);
3651
3651
  return {
3652
- start: () => L.update(t, !0),
3652
+ start: () => D.update(t, !0),
3653
3653
  stop: () => ye(t),
3654
3654
  /**
3655
3655
  * If we're processing this frame we can use the
@@ -3676,8 +3676,8 @@ const ih = {
3676
3676
  function Xt({ autoplay: e = !0, delay: t = 0, driver: n = rh, keyframes: r, type: i = "keyframes", repeat: o = 0, repeatDelay: s = 0, repeatType: a = "loop", onPlay: c, onStop: l, onComplete: f, onUpdate: u, ...h }) {
3677
3677
  let d = 1, m = !1, p, y;
3678
3678
  const b = () => {
3679
- y = new Promise((_) => {
3680
- p = _;
3679
+ y = new Promise((M) => {
3680
+ p = M;
3681
3681
  });
3682
3682
  };
3683
3683
  b();
@@ -3697,60 +3697,60 @@ function Xt({ autoplay: e = !0, delay: t = 0, driver: n = rh, keyframes: r, type
3697
3697
  let P = "idle", A = null, O = null, V = null;
3698
3698
  E.calculatedDuration === null && o && (E.calculatedDuration = wi(E));
3699
3699
  const { calculatedDuration: $ } = E;
3700
- let j = 1 / 0, z = 1 / 0;
3701
- $ !== null && (j = $ + s, z = j * (o + 1) - s);
3700
+ let _ = 1 / 0, z = 1 / 0;
3701
+ $ !== null && (_ = $ + s, z = _ * (o + 1) - s);
3702
3702
  let I = 0;
3703
- const Y = (_) => {
3703
+ const Y = (M) => {
3704
3704
  if (O === null)
3705
3705
  return;
3706
- d > 0 && (O = Math.min(O, _)), d < 0 && (O = Math.min(_ - z / d, O)), A !== null ? I = A : I = Math.round(_ - O) * d;
3706
+ d > 0 && (O = Math.min(O, M)), d < 0 && (O = Math.min(M - z / d, O)), A !== null ? I = A : I = Math.round(M - O) * d;
3707
3707
  const Be = I - t * (d >= 0 ? 1 : -1), Ie = d >= 0 ? Be < 0 : Be > z;
3708
3708
  I = Math.max(Be, 0), P === "finished" && A === null && (I = z);
3709
3709
  let yn = I, ke = E;
3710
3710
  if (o) {
3711
- const tt = Math.min(I, z) / j;
3711
+ const tt = Math.min(I, z) / _;
3712
3712
  let Ve = Math.floor(tt), ie = tt % 1;
3713
- !ie && tt >= 1 && (ie = 1), ie === 1 && Ve--, Ve = Math.min(Ve, o + 1), !!(Ve % 2) && (a === "reverse" ? (ie = 1 - ie, s && (ie -= s / j)) : a === "mirror" && (ke = T)), yn = Ce(0, 1, ie) * j;
3713
+ !ie && tt >= 1 && (ie = 1), ie === 1 && Ve--, Ve = Math.min(Ve, o + 1), !!(Ve % 2) && (a === "reverse" ? (ie = 1 - ie, s && (ie -= s / _)) : a === "mirror" && (ke = T)), yn = Ce(0, 1, ie) * _;
3714
3714
  }
3715
3715
  const he = Ie ? { done: !1, value: r[0] } : ke.next(yn);
3716
3716
  S && (he.value = S(he.value));
3717
3717
  let { done: Ue } = he;
3718
3718
  !Ie && $ !== null && (Ue = d >= 0 ? I >= z : I <= 0);
3719
3719
  const We = A === null && (P === "finished" || P === "running" && Ue);
3720
- return u && u(he.value), We && D(), he;
3720
+ return u && u(he.value), We && j(), he;
3721
3721
  }, F = () => {
3722
3722
  w && w.stop(), w = void 0;
3723
3723
  }, J = () => {
3724
3724
  P = "idle", F(), p(), b(), O = V = null;
3725
- }, D = () => {
3725
+ }, j = () => {
3726
3726
  P = "finished", f && f(), F(), p();
3727
3727
  }, Z = () => {
3728
3728
  if (m)
3729
3729
  return;
3730
3730
  w || (w = n(Y));
3731
- const _ = w.now();
3732
- c && c(), A !== null ? O = _ - A : (!O || P === "finished") && (O = _), P === "finished" && b(), V = O, A = null, P = "running", w.start();
3731
+ const M = w.now();
3732
+ c && c(), A !== null ? O = M - A : (!O || P === "finished") && (O = M), P === "finished" && b(), V = O, A = null, P = "running", w.start();
3733
3733
  };
3734
3734
  e && Z();
3735
3735
  const fe = {
3736
- then(_, Be) {
3737
- return y.then(_, Be);
3736
+ then(M, Be) {
3737
+ return y.then(M, Be);
3738
3738
  },
3739
3739
  get time() {
3740
3740
  return ge(I);
3741
3741
  },
3742
- set time(_) {
3743
- _ = Ae(_), I = _, A !== null || !w || d === 0 ? A = _ : O = w.now() - _ / d;
3742
+ set time(M) {
3743
+ M = Ae(M), I = M, A !== null || !w || d === 0 ? A = M : O = w.now() - M / d;
3744
3744
  },
3745
3745
  get duration() {
3746
- const _ = E.calculatedDuration === null ? wi(E) : E.calculatedDuration;
3747
- return ge(_);
3746
+ const M = E.calculatedDuration === null ? wi(E) : E.calculatedDuration;
3747
+ return ge(M);
3748
3748
  },
3749
3749
  get speed() {
3750
3750
  return d;
3751
3751
  },
3752
- set speed(_) {
3753
- _ === d || !w || (d = _, fe.time = ge(I));
3752
+ set speed(M) {
3753
+ M === d || !w || (d = M, fe.time = ge(I));
3754
3754
  },
3755
3755
  get state() {
3756
3756
  return P;
@@ -3768,7 +3768,7 @@ function Xt({ autoplay: e = !0, delay: t = 0, driver: n = rh, keyframes: r, type
3768
3768
  complete: () => {
3769
3769
  P = "finished";
3770
3770
  },
3771
- sample: (_) => (O = 0, Y(_))
3771
+ sample: (M) => (O = 0, Y(M))
3772
3772
  };
3773
3773
  return fe;
3774
3774
  }
@@ -3823,7 +3823,7 @@ function uh(e, t, { onUpdate: n, onComplete: r, ...i }) {
3823
3823
  }), y = () => {
3824
3824
  l = !1, p.cancel();
3825
3825
  }, b = () => {
3826
- l = !0, L.update(y), a(), f();
3826
+ l = !0, D.update(y), a(), f();
3827
3827
  };
3828
3828
  return p.onfinish = () => {
3829
3829
  l || (e.set(wf(u, i)), r && r(), b());
@@ -4071,8 +4071,8 @@ class Ah {
4071
4071
  this.version = "10.18.0", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (r, i = !0) => {
4072
4072
  this.prev = this.current, this.current = r;
4073
4073
  const { delta: o, timestamp: s } = q;
4074
- this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s, L.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
4075
- }, this.scheduleVelocityCheck = () => L.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
4074
+ this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s, D.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
4075
+ }, this.scheduleVelocityCheck = () => D.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
4076
4076
  r !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
4077
4077
  }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = Ph(this.current), this.owner = n.owner;
4078
4078
  }
@@ -4123,7 +4123,7 @@ class Ah {
4123
4123
  this.events[t] || (this.events[t] = new Dr());
4124
4124
  const r = this.events[t].add(n);
4125
4125
  return t === "change" ? () => {
4126
- r(), L.read(() => {
4126
+ r(), D.read(() => {
4127
4127
  this.events.change.getSize() || this.stop();
4128
4128
  });
4129
4129
  } : r;
@@ -4323,7 +4323,7 @@ function sa(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
4323
4323
  if (window.HandoffAppearAnimations) {
4324
4324
  const b = e.getProps()[so];
4325
4325
  if (b) {
4326
- const w = window.HandoffAppearAnimations(b, u, h, L);
4326
+ const w = window.HandoffAppearAnimations(b, u, h, D);
4327
4327
  w !== null && (m.elapsed = w, m.isHandoff = !0);
4328
4328
  }
4329
4329
  }
@@ -4413,22 +4413,22 @@ function zh(e) {
4413
4413
  w === l && g.isActive && !P && E || // If we removed a higher-priority variant (i is in reverse order)
4414
4414
  b > p && E, V = !1;
4415
4415
  const $ = Array.isArray(S) ? S : [S];
4416
- let j = $.reduce(i, {});
4417
- T === !1 && (j = {});
4416
+ let _ = $.reduce(i, {});
4417
+ T === !1 && (_ = {});
4418
4418
  const { prevResolvedValues: z = {} } = g, I = {
4419
4419
  ...z,
4420
- ...j
4420
+ ..._
4421
4421
  }, Y = (F) => {
4422
4422
  O = !0, d.has(F) && (V = !0, d.delete(F)), g.needsAnimating[F] = !0;
4423
4423
  };
4424
4424
  for (const F in I) {
4425
- const J = j[F], D = z[F];
4425
+ const J = _[F], j = z[F];
4426
4426
  if (m.hasOwnProperty(F))
4427
4427
  continue;
4428
4428
  let Z = !1;
4429
- qt(J) && qt(D) ? Z = !Ro(J, D) : Z = J !== D, Z ? J !== void 0 ? Y(F) : d.add(F) : J !== void 0 && d.has(F) ? Y(F) : g.protectedKeys[F] = !0;
4429
+ qt(J) && qt(j) ? Z = !Ro(J, j) : Z = J !== j, Z ? J !== void 0 ? Y(F) : d.add(F) : J !== void 0 && d.has(F) ? Y(F) : g.protectedKeys[F] = !0;
4430
4430
  }
4431
- g.prevProp = S, g.prevResolvedValues = j, g.isActive && (m = { ...m, ...j }), r && e.blockInitialAnimation && (O = !1), O && (!P || V) && h.push(...$.map((F) => ({
4431
+ g.prevProp = S, g.prevResolvedValues = _, g.isActive && (m = { ...m, ..._ }), r && e.blockInitialAnimation && (O = !1), O && (!P || V) && h.push(...$.map((F) => ({
4432
4432
  animation: F,
4433
4433
  options: { type: w, ...c }
4434
4434
  })));
@@ -4557,7 +4557,7 @@ class oa {
4557
4557
  const { onStart: y, onMove: b } = this.handlers;
4558
4558
  h || (y && y(this.lastMoveEvent, u), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, u);
4559
4559
  }, this.handlePointerMove = (u, h) => {
4560
- this.lastMoveEvent = u, this.lastMoveEventInfo = Mn(h, this.transformPagePoint), L.update(this.updatePoint, !0);
4560
+ this.lastMoveEvent = u, this.lastMoveEventInfo = Mn(h, this.transformPagePoint), D.update(this.updatePoint, !0);
4561
4561
  }, this.handlePointerUp = (u, h) => {
4562
4562
  this.end();
4563
4563
  const { onEnd: d, onSessionEnd: m, resumeAnimation: p } = this.handlers;
@@ -4818,7 +4818,7 @@ class dd {
4818
4818
  }
4819
4819
  }
4820
4820
  this.originPoint[y] = b;
4821
- }), m && L.update(() => m(f, u), !1, !0);
4821
+ }), m && D.update(() => m(f, u), !1, !0);
4822
4822
  const { animationState: p } = this.visualElement;
4823
4823
  p && p.setActive("whileDrag", !0);
4824
4824
  }, s = (f, u) => {
@@ -4854,7 +4854,7 @@ class dd {
4854
4854
  const { velocity: i } = n;
4855
4855
  this.startAnimation(i);
4856
4856
  const { onDragEnd: o } = this.getProps();
4857
- o && L.update(() => o(t, n));
4857
+ o && D.update(() => o(t, n));
4858
4858
  }
4859
4859
  cancel() {
4860
4860
  this.isDragging = !1;
@@ -5036,7 +5036,7 @@ class md extends Oe {
5036
5036
  }
5037
5037
  }
5038
5038
  const Ni = (e) => (t, n) => {
5039
- e && L.update(() => e(t, n));
5039
+ e && D.update(() => e(t, n));
5040
5040
  };
5041
5041
  class gd extends Oe {
5042
5042
  constructor() {
@@ -5055,7 +5055,7 @@ class gd extends Oe {
5055
5055
  onStart: Ni(n),
5056
5056
  onMove: r,
5057
5057
  onEnd: (o, s) => {
5058
- delete this.session, i && L.update(() => i(o, s));
5058
+ delete this.session, i && D.update(() => i(o, s));
5059
5059
  }
5060
5060
  };
5061
5061
  }
@@ -5131,7 +5131,7 @@ class bd extends Ss.Component {
5131
5131
  }
5132
5132
  getSnapshotBeforeUpdate(t) {
5133
5133
  const { layoutDependency: n, visualElement: r, drag: i, isPresent: o } = this.props, s = r.projection;
5134
- return s && (s.isPresent = o, i || t.layoutDependency !== n || n === void 0 ? s.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? s.promote() : s.relegate() || L.postRender(() => {
5134
+ return s && (s.isPresent = o, i || t.layoutDependency !== n || n === void 0 ? s.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? s.promote() : s.relegate() || D.postRender(() => {
5135
5135
  const a = s.getStack();
5136
5136
  (!a || !a.members.length) && this.safeToRemove();
5137
5137
  }))), null;
@@ -5318,7 +5318,7 @@ function _d(e, t) {
5318
5318
  const o = i - n;
5319
5319
  o >= t && (ye(r), e(o - t));
5320
5320
  };
5321
- return L.read(r, !0), () => ye(r);
5321
+ return D.read(r, !0), () => ye(r);
5322
5322
  }
5323
5323
  function Md(e) {
5324
5324
  window.MotionDebug && window.MotionDebug.record(e);
@@ -5454,10 +5454,10 @@ function va({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5454
5454
  this.nodes.forEach(Wd), this.sharedNodes.forEach(Kd);
5455
5455
  }
5456
5456
  scheduleUpdateProjection() {
5457
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, L.preRender(this.updateProjection, !1, !0));
5457
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, D.preRender(this.updateProjection, !1, !0));
5458
5458
  }
5459
5459
  scheduleCheckAfterUnmount() {
5460
- L.postRender(() => {
5460
+ D.postRender(() => {
5461
5461
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
5462
5462
  });
5463
5463
  }
@@ -5644,7 +5644,7 @@ function va({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5644
5644
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
5645
5645
  }
5646
5646
  startAnimation(s) {
5647
- this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (ye(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = L.update(() => {
5647
+ this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (ye(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = D.update(() => {
5648
5648
  Bt.hasAnimatedSinceResize = !0, this.currentAnimation = Dd(0, Yi, {
5649
5649
  ...s,
5650
5650
  onUpdate: (a) => {
@@ -6090,7 +6090,7 @@ class yp {
6090
6090
  constructor({ parent: t, props: n, presenceContext: r, reducedMotionConfig: i, visualState: o }, s = {}) {
6091
6091
  this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
6092
6092
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
6093
- }, this.scheduleRender = () => L.render(this.render, !1, !0);
6093
+ }, this.scheduleRender = () => D.render(this.render, !1, !0);
6094
6094
  const { latestValues: a, renderState: c } = o;
6095
6095
  this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = s, this.isControllingVariants = cn(n), this.isVariantNode = oo(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
6096
6096
  const { willChange: l, ...f } = this.scrapeMotionValuesFromProps(n, {});
@@ -6122,7 +6122,7 @@ class yp {
6122
6122
  }
6123
6123
  bindToMotionValue(t, n) {
6124
6124
  const r = Ne.has(t), i = n.on("change", (s) => {
6125
- this.latestValues[t] = s, this.props.onUpdate && L.update(this.notifyUpdate, !1, !0), r && this.projection && (this.projection.isTransformDirty = !0);
6125
+ this.latestValues[t] = s, this.props.onUpdate && D.update(this.notifyUpdate, !1, !0), r && this.projection && (this.projection.isTransformDirty = !0);
6126
6126
  }), o = n.on("renderRequest", this.scheduleRender);
6127
6127
  this.valueSubscriptions.set(t, () => {
6128
6128
  i(), o();
@@ -7151,11 +7151,11 @@ var He = /* @__PURE__ */ new Map(), ja = function(t) {
7151
7151
  u.setAttribute("class", y);
7152
7152
  var b = t.getAttribute("style");
7153
7153
  b && u.setAttribute("style", b), u.setAttribute("data-src", c);
7154
- var w = [].filter.call(t.attributes, function(D) {
7155
- return /^data-\w[\w-]*$/.test(D.name);
7154
+ var w = [].filter.call(t.attributes, function(j) {
7155
+ return /^data-\w[\w-]*$/.test(j.name);
7156
7156
  });
7157
- if (Array.prototype.forEach.call(w, function(D) {
7158
- D.name && D.value && u.setAttribute(D.name, D.value);
7157
+ if (Array.prototype.forEach.call(w, function(j) {
7158
+ j.name && j.value && u.setAttribute(j.name, j.value);
7159
7159
  }), r) {
7160
7160
  var g = {
7161
7161
  clipPath: ["clip-path"],
@@ -7169,8 +7169,8 @@ var He = /* @__PURE__ */ new Map(), ja = function(t) {
7169
7169
  pattern: ["fill", "stroke"],
7170
7170
  radialGradient: ["fill", "stroke"]
7171
7171
  }, S, E, T, P, A;
7172
- Object.keys(g).forEach(function(D) {
7173
- S = D, T = g[D], E = u.querySelectorAll(S + "[id]");
7172
+ Object.keys(g).forEach(function(j) {
7173
+ S = j, T = g[j], E = u.querySelectorAll(S + "[id]");
7174
7174
  for (var Z = function(Ie, yn) {
7175
7175
  P = E[Ie].id, A = P + "-" + um();
7176
7176
  var ke;
@@ -7188,21 +7188,21 @@ var He = /* @__PURE__ */ new Map(), ja = function(t) {
7188
7188
  for (var ie = 0, Br = Ue.length; ie < Br; ie++)
7189
7189
  Ue[ie].setAttributeNS(Bn, "href", "#" + A);
7190
7190
  E[Ie].id = A;
7191
- }, fe = 0, _ = E.length; fe < _; fe++)
7191
+ }, fe = 0, M = E.length; fe < M; fe++)
7192
7192
  Z(fe);
7193
7193
  });
7194
7194
  }
7195
7195
  u.removeAttribute("xmlns:a");
7196
- for (var O = u.querySelectorAll("script"), V = [], $, j, z = 0, I = O.length; z < I; z++)
7197
- j = O[z].getAttribute("type"), (!j || j === "application/ecmascript" || j === "application/javascript" || j === "text/javascript") && ($ = O[z].innerText || O[z].textContent, $ && V.push($), u.removeChild(O[z]));
7196
+ for (var O = u.querySelectorAll("script"), V = [], $, _, z = 0, I = O.length; z < I; z++)
7197
+ _ = O[z].getAttribute("type"), (!_ || _ === "application/ecmascript" || _ === "application/javascript" || _ === "text/javascript") && ($ = O[z].innerText || O[z].textContent, $ && V.push($), u.removeChild(O[z]));
7198
7198
  if (V.length > 0 && (n === "always" || n === "once" && !vs[c])) {
7199
7199
  for (var Y = 0, F = V.length; Y < F; Y++)
7200
7200
  new Function(V[Y])(window);
7201
7201
  vs[c] = !0;
7202
7202
  }
7203
7203
  var J = u.querySelectorAll("style");
7204
- if (Array.prototype.forEach.call(J, function(D) {
7205
- D.textContent += "";
7204
+ if (Array.prototype.forEach.call(J, function(j) {
7205
+ j.textContent += "";
7206
7206
  }), u.setAttribute("xmlns", fm), u.setAttribute("xmlns:xlink", Bn), s(u), !t.parentNode) {
7207
7207
  oe.splice(oe.indexOf(t), 1), t = null, a(new Error("Parent node is null"));
7208
7208
  return;
@@ -7341,8 +7341,8 @@ var H = Fa.exports, ym = function(t) {
7341
7341
  }
7342
7342
  try {
7343
7343
  m(P);
7344
- } catch (j) {
7345
- g(j);
7344
+ } catch (_) {
7345
+ g(_);
7346
7346
  }
7347
7347
  };
7348
7348
  hm(w, {
@@ -7517,9 +7517,9 @@ function Em(e, t) {
7517
7517
  }
7518
7518
  function Ua({ item: e, level: t = 0, ...n }) {
7519
7519
  var z, I, Y, F, J;
7520
- const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, c = i ? "collapsed" : "expanded", l = r(e.id) ? "active" : "", f = (D, Z = a) => `${D} ${Z} ${c} ${l}`, u = !!((z = e.children) != null && z.length), [h, d] = v.useState(!1), m = v.useRef(), p = v.useRef(), y = (p == null ? void 0 : p.current) && ((I = p == null ? void 0 : p.current) == null ? void 0 : I.scrollWidth) > ((Y = p == null ? void 0 : p.current) == null ? void 0 : Y.clientWidth), b = window.location.origin, w = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, g = window.location.pathname.split("/")[1], S = w.pathname.split("/")[1], E = n.ssr || !b.includes("local") && b !== w.origin || S !== g, T = u || t === 0 ? "div" : E ? "a" : Jp, P = e.path || "#", A = t + 1, O = u && !(i && A >= 2 && !h), V = i || t === 0 ? void 0 : `${t}rem`, $ = () => {
7520
+ const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, c = i ? "collapsed" : "expanded", l = r(e.id) ? "active" : "", f = (j, Z = a) => `${j} ${Z} ${c} ${l}`, u = !!((z = e.children) != null && z.length), [h, d] = v.useState(!1), m = v.useRef(), p = v.useRef(), y = (p == null ? void 0 : p.current) && ((I = p == null ? void 0 : p.current) == null ? void 0 : I.scrollWidth) > ((Y = p == null ? void 0 : p.current) == null ? void 0 : Y.clientWidth), b = window.location.origin, w = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, g = window.location.pathname.split("/")[1], S = w.pathname.split("/")[1], E = n.ssr || !b.includes("local") && b !== w.origin || S !== g, T = u || t === 0 ? "div" : E ? "a" : Jp, P = e.path || "#", A = t + 1, O = u && !(i && A >= 2 && !h), V = i || t === 0 ? void 0 : `${t}rem`, $ = () => {
7521
7521
  d(!0);
7522
- }, j = () => {
7522
+ }, _ = () => {
7523
7523
  d(!1);
7524
7524
  };
7525
7525
  return /* @__PURE__ */ C.jsxs(
@@ -7528,7 +7528,7 @@ function Ua({ item: e, level: t = 0, ...n }) {
7528
7528
  ref: m,
7529
7529
  className: f("menu-item__wrapper"),
7530
7530
  onMouseOver: $,
7531
- onMouseOut: j,
7531
+ onMouseOut: _,
7532
7532
  children: [
7533
7533
  /* @__PURE__ */ C.jsx(
7534
7534
  Sm,
@@ -7547,8 +7547,8 @@ function Ua({ item: e, level: t = 0, ...n }) {
7547
7547
  color: r(e.id) ? ((F = n.brandColors) == null ? void 0 : F.primary400) || ct.primary400 : void 0,
7548
7548
  backgroundColor: r(e.id) && t === 1 ? (J = n.brandColors) == null ? void 0 : J.primary200 : void 0
7549
7549
  },
7550
- onClick: (D) => {
7551
- u && (D.preventDefault(), i || s(e.id));
7550
+ onClick: (j) => {
7551
+ u && (j.preventDefault(), i || s(e.id));
7552
7552
  },
7553
7553
  children: [
7554
7554
  t !== 0 && /* @__PURE__ */ C.jsx(Tm, { cls: f, item: e }),
@@ -7572,7 +7572,7 @@ function Ua({ item: e, level: t = 0, ...n }) {
7572
7572
  {
7573
7573
  parentRef: m,
7574
7574
  onlyChild: !i || i && A < 2,
7575
- renderChildren: ({ maxHeight: D }) => {
7575
+ renderChildren: ({ maxHeight: j }) => {
7576
7576
  var Z;
7577
7577
  return /* @__PURE__ */ C.jsx(
7578
7578
  Tp.div,
@@ -7589,8 +7589,8 @@ function Ua({ item: e, level: t = 0, ...n }) {
7589
7589
  },
7590
7590
  transition: { duration: 0.25 },
7591
7591
  style: Em(
7592
- { maxHeight: D, overflowY: "auto", paddingRight: 3 },
7593
- D !== "auto" && !!A
7592
+ { maxHeight: j, overflowY: "auto", paddingRight: 3 },
7593
+ j !== "auto" && !!A
7594
7594
  ),
7595
7595
  children: (Z = e.children) == null ? void 0 : Z.map((fe) => /* @__PURE__ */ v.createElement(
7596
7596
  Ua,
@@ -7729,11 +7729,11 @@ function Om(e) {
7729
7729
  const P = e.menuPath || "/global-menu-config/api/v1/menu-items/user", A = e.baseUrl + P, { data: O } = await pc.get(A, {
7730
7730
  withCredentials: !0
7731
7731
  });
7732
- let V = O.map((j) => ({
7733
- ...j,
7732
+ let V = O.map((_) => ({
7733
+ ..._,
7734
7734
  parentKey: 0
7735
7735
  }));
7736
- V = Ha(V), e.replacePath && (V = za(V, e.replacePath)), console.log("_filterDisableMenuItems menuItems:", V), (S = e.disabledMenuItems) != null && S.length && (V = ar(V, e.disabledMenuItems));
7736
+ V = Ha(V), V = za(V, e.replacePath ?? ((_) => _)), console.log("_filterDisableMenuItems menuItems:", V), (S = e.disabledMenuItems) != null && S.length && (V = ar(V, e.disabledMenuItems));
7737
7737
  const $ = Vm(V);
7738
7738
  a($), r(V);
7739
7739
  } catch (P) {