hplx-feature-library 1.0.153 → 1.0.154

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.
@@ -2494,7 +2494,7 @@ var o9 = a9(), Ua = /* @__PURE__ */ ht(null), s9 = (e) => e, De = () => {
2494
2494
  return e ? e.store.dispatch : s9;
2495
2495
  }, Hn = () => {
2496
2496
  }, u9 = () => Hn, l9 = (e, t) => e === t;
2497
- function R(e) {
2497
+ function B(e) {
2498
2498
  var t = yr(Ua);
2499
2499
  return o9.useSyncExternalStoreWithSelector(t ? t.subscription.addNestedSub : u9, t ? t.store.getState : Hn, t ? t.store.getState : Hn, t ? e : Hn, l9);
2500
2500
  }
@@ -5134,7 +5134,7 @@ var x7 = (e) => e.brush.height, Se = P([Mt, Tt, mf, x7, Za, Xa, Lc, T9], (e, t,
5134
5134
  y: D(e.y) ? e.y : t.top + t.height + t.brushBottom - (r?.bottom || 0),
5135
5135
  width: D(e.width) ? e.width : t.width
5136
5136
  })), Qa = () => {
5137
- var e, t = Re(), r = R(O7), n = R(W2), i = (e = R(q2)) === null || e === void 0 ? void 0 : e.padding;
5137
+ var e, t = Re(), r = B(O7), n = B(W2), i = (e = B(q2)) === null || e === void 0 ? void 0 : e.padding;
5138
5138
  return !t || !n || !i ? r : {
5139
5139
  width: n.width - i.left - i.right,
5140
5140
  height: n.height - i.top - i.bottom,
@@ -5151,8 +5151,8 @@ var x7 = (e) => e.brush.height, Se = P([Mt, Tt, mf, x7, Za, Xa, Lc, T9], (e, t,
5151
5151
  brushBottom: 0
5152
5152
  }, gf = () => {
5153
5153
  var e;
5154
- return (e = R(Se)) !== null && e !== void 0 ? e : P7;
5155
- }, bf = () => R(Mt), Cf = () => R(Tt), Z = (e) => e.layout.layoutType, U2 = () => R(Z), S7 = {
5154
+ return (e = B(Se)) !== null && e !== void 0 ? e : P7;
5155
+ }, bf = () => B(Mt), Cf = () => B(Tt), Z = (e) => e.layout.layoutType, U2 = () => B(Z), S7 = {
5156
5156
  settings: {
5157
5157
  layout: "horizontal",
5158
5158
  align: "center",
@@ -5551,7 +5551,7 @@ class z7 extends ka {
5551
5551
  }
5552
5552
  var q7 = () => !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout), kr = {
5553
5553
  isSsr: q7()
5554
- }, xf = () => R((e) => e.rootProps.accessibilityLayer);
5554
+ }, xf = () => B((e) => e.rootProps.accessibilityLayer);
5555
5555
  function ke(e) {
5556
5556
  return Number.isFinite(e);
5557
5557
  }
@@ -7724,8 +7724,8 @@ function U5(e) {
7724
7724
  q = E(T) + q, T = "";
7725
7725
  else {
7726
7726
  T = +T;
7727
- var B = T < 0 || 1 / T < 0;
7728
- if (T = isNaN(T) ? u : E(Math.abs(T), g), x && (T = q5(T)), B && +T == 0 && p !== "+" && (B = !1), j = (B ? p === "(" ? p : s : p === "-" || p === "(" ? "" : p) + j, q = (C === "s" ? Al[8 + Bf / 3] : "") + q + (B && p === "(" ? ")" : ""), M) {
7727
+ var R = T < 0 || 1 / T < 0;
7728
+ if (T = isNaN(T) ? u : E(Math.abs(T), g), x && (T = q5(T)), R && +T == 0 && p !== "+" && (R = !1), j = (R ? p === "(" ? p : s : p === "-" || p === "(" ? "" : p) + j, q = (C === "s" ? Al[8 + Bf / 3] : "") + q + (R && p === "(" ? ")" : ""), M) {
7729
7729
  for (U = -1, te = T.length; ++U < te; )
7730
7730
  if (H = T.charCodeAt(U), 48 > H || H > 57) {
7731
7731
  q = (H === 46 ? i + T.slice(U + 1) : T.slice(U)) + q, T = T.slice(0, U);
@@ -7734,19 +7734,19 @@ function U5(e) {
7734
7734
  }
7735
7735
  }
7736
7736
  b && !v && (T = t(T, 1 / 0));
7737
- var z = j.length + T.length + q.length, I = z < y ? new Array(y - z + 1).join(d) : "";
7738
- switch (b && v && (T = t(I + T, I.length ? y - q.length : 1 / 0), I = ""), h) {
7737
+ var z = j.length + T.length + q.length, $ = z < y ? new Array(y - z + 1).join(d) : "";
7738
+ switch (b && v && (T = t($ + T, $.length ? y - q.length : 1 / 0), $ = ""), h) {
7739
7739
  case "<":
7740
- T = j + T + q + I;
7740
+ T = j + T + q + $;
7741
7741
  break;
7742
7742
  case "=":
7743
- T = j + I + T + q;
7743
+ T = j + $ + T + q;
7744
7744
  break;
7745
7745
  case "^":
7746
- T = I.slice(0, z = I.length >> 1) + j + T + q + I.slice(z);
7746
+ T = $.slice(0, z = $.length >> 1) + j + T + q + $.slice(z);
7747
7747
  break;
7748
7748
  default:
7749
- T = I + j + T + q;
7749
+ T = $ + j + T + q;
7750
7750
  break;
7751
7751
  }
7752
7752
  return a(T);
@@ -8294,10 +8294,10 @@ function Kr(e, t, r) {
8294
8294
  }
8295
8295
  function mp(e) {
8296
8296
  var t = e.dateTime, r = e.date, n = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, u = e.shortMonths, c = Vr(i), l = Hr(i), f = Vr(a), d = Hr(a), h = Vr(o), p = Hr(o), m = Vr(s), v = Hr(s), y = Vr(u), b = Hr(u), g = {
8297
- a: B,
8297
+ a: R,
8298
8298
  A: z,
8299
- b: I,
8300
- B: L,
8299
+ b: $,
8300
+ B: I,
8301
8301
  c: null,
8302
8302
  d: Rl,
8303
8303
  e: Rl,
@@ -8311,7 +8311,7 @@ function mp(e) {
8311
8311
  m: Fp,
8312
8312
  M: zp,
8313
8313
  p: le,
8314
- q: $,
8314
+ q: L,
8315
8315
  Q: zl,
8316
8316
  s: ql,
8317
8317
  S: qp,
@@ -8454,22 +8454,22 @@ function mp(e) {
8454
8454
  function H(N, W, K) {
8455
8455
  return E(N, n, W, K);
8456
8456
  }
8457
- function B(N) {
8457
+ function R(N) {
8458
8458
  return o[N.getDay()];
8459
8459
  }
8460
8460
  function z(N) {
8461
8461
  return a[N.getDay()];
8462
8462
  }
8463
- function I(N) {
8463
+ function $(N) {
8464
8464
  return u[N.getMonth()];
8465
8465
  }
8466
- function L(N) {
8466
+ function I(N) {
8467
8467
  return s[N.getMonth()];
8468
8468
  }
8469
8469
  function le(N) {
8470
8470
  return i[+(N.getHours() >= 12)];
8471
8471
  }
8472
- function $(N) {
8472
+ function L(N) {
8473
8473
  return 1 + ~~(N.getMonth() / 3);
8474
8474
  }
8475
8475
  function Ee(N) {
@@ -10447,7 +10447,7 @@ function Wo(e, t) {
10447
10447
  return h3(t, r, n);
10448
10448
  }
10449
10449
  function $m(e) {
10450
- return R((t) => Wo(t, e));
10450
+ return B((t) => Wo(t, e));
10451
10451
  }
10452
10452
  var p3 = (e, t) => {
10453
10453
  var r, n = Number(t);
@@ -10826,12 +10826,12 @@ function ky(e, t) {
10826
10826
  }
10827
10827
  return (t === "string" ? String : Number)(e);
10828
10828
  }
10829
- var Dy = () => R(ge), Ny = () => {
10830
- var e = Dy(), t = R(Dt), r = R(P3);
10829
+ var Dy = () => B(ge), Ny = () => {
10830
+ var e = Dy(), t = B(Dt), r = B(P3);
10831
10831
  return rn(e1(e1({}, e), {}, {
10832
10832
  scale: r
10833
10833
  }), t);
10834
- }, M3 = () => R(So), Yo = (e, t) => t, T3 = (e, t, r) => r, Zo = (e, t, r, n) => n, Iy = P(Dt, (e) => N2(e, (t) => t.coordinate)), Xo = P([Br, Yo, T3, Zo], g3), j3 = P([Xo, Fr], Uo), $y = (e, t, r) => {
10834
+ }, M3 = () => B(So), Yo = (e, t) => t, T3 = (e, t, r) => r, Zo = (e, t, r, n) => n, Iy = P(Dt, (e) => N2(e, (t) => t.coordinate)), Xo = P([Br, Yo, T3, Zo], g3), j3 = P([Xo, Fr], Uo), $y = (e, t, r) => {
10835
10835
  if (t != null) {
10836
10836
  var n = Br(e);
10837
10837
  return t === "axis" ? r === "hover" ? n.axisInteraction.hover.dataKey : n.axisInteraction.click.dataKey : r === "hover" ? n.itemInteraction.hover.dataKey : n.itemInteraction.click.dataKey;
@@ -11132,7 +11132,7 @@ var eg = {
11132
11132
  } = L3.actions, rg = L3.reducer, R3 = () => {
11133
11133
  };
11134
11134
  function ng() {
11135
- var e = R(Eo), t = R(_o), r = De(), n = R(Sd), i = R(Dt), a = U2(), o = Qa(), s = R((u) => u.rootProps.className);
11135
+ var e = B(Eo), t = B(_o), r = De(), n = B(Sd), i = B(Dt), a = U2(), o = Qa(), s = B((u) => u.rootProps.className);
11136
11136
  oe(() => {
11137
11137
  if (e == null)
11138
11138
  return R3;
@@ -11191,7 +11191,7 @@ function ng() {
11191
11191
  }, [s, r, t, e, n, i, a, o]);
11192
11192
  }
11193
11193
  function ig() {
11194
- var e = R(Eo), t = R(_o), r = De();
11194
+ var e = B(Eo), t = B(_o), r = De();
11195
11195
  oe(() => {
11196
11196
  if (e == null)
11197
11197
  return R3;
@@ -11210,7 +11210,7 @@ function ag() {
11210
11210
  }, [e]), ng(), ig();
11211
11211
  }
11212
11212
  function og(e, t, r, n, i, a) {
11213
- var o = R((d) => $y(d, e, t)), s = R(_o), u = R(Eo), c = R(Sd), l = R(Jy), f = l?.active;
11213
+ var o = B((d) => $y(d, e, t)), s = B(_o), u = B(Eo), c = B(Sd), l = B(Jy), f = l?.active;
11214
11214
  oe(() => {
11215
11215
  if (!f && u != null && s != null) {
11216
11216
  var d = ba({
@@ -11327,19 +11327,19 @@ function hg(e) {
11327
11327
  var A = Qa(), E = xf(), M = $m(v), {
11328
11328
  activeIndex: F,
11329
11329
  isActive: T
11330
- } = R((ie) => By(ie, M, y, O)), j = R((ie) => Ry(ie, M, y, O)), q = R((ie) => D3(ie, M, y, O)), U = R((ie) => Ly(ie, M, y, O)), te = j, H = Vy(), B = r ?? T, [z, I] = k9([te, B]), L = M === "axis" ? q : void 0;
11331
- og(M, y, U, L, F, B);
11330
+ } = B((ie) => By(ie, M, y, O)), j = B((ie) => Ry(ie, M, y, O)), q = B((ie) => D3(ie, M, y, O)), U = B((ie) => Ly(ie, M, y, O)), te = j, H = Vy(), R = r ?? T, [z, $] = k9([te, R]), I = M === "axis" ? q : void 0;
11331
+ og(M, y, U, I, F, R);
11332
11332
  var le = g ?? H;
11333
11333
  if (le == null)
11334
11334
  return null;
11335
- var $ = te ?? s1;
11336
- B || ($ = s1), s && $.length && ($ = r9(te.filter((ie) => ie.value != null && (ie.hide !== !0 || t.includeHidden)), l, cg));
11337
- var Ee = $.length > 0, Xe = /* @__PURE__ */ w.createElement(z7, {
11335
+ var L = te ?? s1;
11336
+ R || (L = s1), s && L.length && (L = r9(te.filter((ie) => ie.value != null && (ie.hide !== !0 || t.includeHidden)), l, cg));
11337
+ var Ee = L.length > 0, Xe = /* @__PURE__ */ w.createElement(z7, {
11338
11338
  allowEscapeViewBox: n,
11339
11339
  animationDuration: i,
11340
11340
  animationEasing: a,
11341
11341
  isAnimationActive: u,
11342
- active: B,
11342
+ active: R,
11343
11343
  coordinate: U,
11344
11344
  hasPayload: Ee,
11345
11345
  offset: c,
@@ -11349,17 +11349,17 @@ function hg(e) {
11349
11349
  viewBox: A,
11350
11350
  wrapperStyle: p,
11351
11351
  lastBoundingBox: z,
11352
- innerRef: I,
11352
+ innerRef: $,
11353
11353
  hasPortalFromProps: !!g
11354
11354
  }, fg(o, o1(o1({}, t), {}, {
11355
11355
  // @ts-expect-error renderContent method expects the payload to be mutable, TODO make it immutable
11356
- payload: $,
11357
- label: L,
11358
- active: B,
11356
+ payload: L,
11357
+ label: I,
11358
+ active: R,
11359
11359
  coordinate: U,
11360
11360
  accessibilityLayer: E
11361
11361
  })));
11362
- return /* @__PURE__ */ w.createElement(w.Fragment, null, /* @__PURE__ */ ec(Xe, le), B && /* @__PURE__ */ w.createElement(Ky, {
11362
+ return /* @__PURE__ */ w.createElement(w.Fragment, null, /* @__PURE__ */ ec(Xe, le), R && /* @__PURE__ */ w.createElement(Ky, {
11363
11363
  cursor: m,
11364
11364
  tooltipEventType: M,
11365
11365
  coordinate: U,
@@ -11857,11 +11857,11 @@ var W3 = /[ \f\n\r\t\v\u2028\u2029]+/, U3 = (e) => {
11857
11857
  if (H && (n == null || i || H.width + te + r < Number(n)))
11858
11858
  H.words.push(U), H.width += te + r;
11859
11859
  else {
11860
- var B = {
11860
+ var R = {
11861
11861
  words: [U],
11862
11862
  width: te
11863
11863
  };
11864
- j.push(B);
11864
+ j.push(R);
11865
11865
  }
11866
11866
  return j;
11867
11867
  }, []);
@@ -12274,7 +12274,7 @@ function Ke(e) {
12274
12274
  className: c = "",
12275
12275
  textBreakAll: l,
12276
12276
  labelRef: f
12277
- } = n, d = R(jd), h = Qa(), p = a === "center" ? h : d ?? h, m = i || p;
12277
+ } = n, d = B(jd), h = Qa(), p = a === "center" ? h : d ?? h, m = i || p;
12278
12278
  if (!m || fe(o) && fe(s) && !/* @__PURE__ */ wt(u) && typeof u != "function")
12279
12279
  return null;
12280
12280
  var v = se(se({}, n), {}, {
@@ -12765,7 +12765,7 @@ var $b = P([Se], (e) => {
12765
12765
  width: Math.max(0, t - e.left - e.right),
12766
12766
  height: Math.max(0, r - e.top - e.bottom)
12767
12767
  };
12768
- }), ci = () => R(Lb), Rb = () => R(My);
12768
+ }), ci = () => B(Lb), Rb = () => B(My);
12769
12769
  function D1(e, t) {
12770
12770
  var r = Object.keys(e);
12771
12771
  if (Object.getOwnPropertySymbols) {
@@ -12836,7 +12836,7 @@ function Pa(e) {
12836
12836
  mainColor: r,
12837
12837
  activeDot: n,
12838
12838
  itemDataKey: i
12839
- } = e, a = R(cn), o = Rb();
12839
+ } = e, a = B(cn), o = Rb();
12840
12840
  if (t == null || o == null)
12841
12841
  return null;
12842
12842
  var s = t.find((u) => o.includes(u.payload));
@@ -12909,7 +12909,7 @@ function Zb(e) {
12909
12909
  }, t);
12910
12910
  }
12911
12911
  function ts(e, t) {
12912
- var r, n, i = R((c) => kt(c, e)), a = R((c) => Gt(c, t)), o = (r = i?.allowDataOverflow) !== null && r !== void 0 ? r : qe.allowDataOverflow, s = (n = a?.allowDataOverflow) !== null && n !== void 0 ? n : We.allowDataOverflow, u = o || s;
12912
+ var r, n, i = B((c) => kt(c, e)), a = B((c) => Gt(c, t)), o = (r = i?.allowDataOverflow) !== null && r !== void 0 ? r : qe.allowDataOverflow, s = (n = a?.allowDataOverflow) !== null && n !== void 0 ? n : We.allowDataOverflow, u = o || s;
12913
12913
  return {
12914
12914
  needClip: u,
12915
12915
  needClipX: o,
@@ -13936,7 +13936,7 @@ function o8(e) {
13936
13936
  syncWithTicks: f,
13937
13937
  horizontalValues: d,
13938
13938
  verticalValues: h
13939
- } = i, p = Re(), m = R((M) => Yl(M, "xAxis", a, p)), v = R((M) => Yl(M, "yAxis", o, p));
13939
+ } = i, p = Re(), m = B((M) => Yl(M, "xAxis", a, p)), v = B((M) => Yl(M, "yAxis", o, p));
13940
13940
  if (!D(c) || c <= 0 || !D(l) || l <= 0 || !D(s) || s !== +s || !D(u) || u !== +u)
13941
13941
  return null;
13942
13942
  var y = i.verticalCoordinatesGenerator || IC, b = i.horizontalCoordinatesGenerator || $C, {
@@ -14279,13 +14279,13 @@ function iw(e) {
14279
14279
  } else
14280
14280
  j = f8(A, T);
14281
14281
  if (y) {
14282
- var U = y.length / o.length, te = M === 1 ? o : o.map((H, B) => {
14283
- var z = Math.floor(B * U);
14282
+ var U = y.length / o.length, te = M === 1 ? o : o.map((H, R) => {
14283
+ var z = Math.floor(R * U);
14284
14284
  if (y[z]) {
14285
- var I = y[z];
14285
+ var $ = y[z];
14286
14286
  return ot(ot({}, H), {}, {
14287
- x: at(I.x, H.x, M),
14288
- y: at(I.y, H.y, M)
14287
+ x: at($.x, H.x, M),
14288
+ y: at($.y, H.y, M)
14289
14289
  });
14290
14290
  }
14291
14291
  return d ? ot(ot({}, H), {}, {
@@ -14435,7 +14435,7 @@ function uw(e) {
14435
14435
  id: m
14436
14436
  } = t, v = as(t, KC), {
14437
14437
  needClip: y
14438
- } = ts(h, p), b = ci(), g = U2(), x = Re(), C = R((F) => qC(F, h, p, x, m));
14438
+ } = ts(h, p), b = ci(), g = U2(), x = Re(), C = B((F) => qC(F, h, p, x, m));
14439
14439
  if (g !== "horizontal" && g !== "vertical" || C == null || b == null)
14440
14440
  return null;
14441
14441
  var {
@@ -15058,7 +15058,7 @@ function jw(e) {
15058
15058
  points: O,
15059
15059
  isRange: A,
15060
15060
  baseLine: E
15061
- } = (t = R((U) => hw(U, m, v, C, e.id))) !== null && t !== void 0 ? t : {}, M = ci();
15061
+ } = (t = B((U) => hw(U, m, v, C, e.id))) !== null && t !== void 0 ? t : {}, M = ci();
15062
15062
  if (b !== "horizontal" && b !== "vertical" || M == null || g !== "AreaChart" && g !== "ComposedChart")
15063
15063
  return null;
15064
15064
  var {
@@ -15330,7 +15330,7 @@ function Yw(e) {
15330
15330
  children: a
15331
15331
  } = e, o = A8(e, Uw);
15332
15332
  return o;
15333
- }, [e]), n = R((a) => kt(a, r.id)), i = r === n;
15333
+ }, [e]), n = B((a) => kt(a, r.id)), i = r === n;
15334
15334
  return oe(() => (t(Rw(r)), () => {
15335
15335
  t(Bw(r));
15336
15336
  }), [r, t]), i ? e.children : null;
@@ -15339,7 +15339,7 @@ var Zw = (e) => {
15339
15339
  var {
15340
15340
  xAxisId: t,
15341
15341
  className: r
15342
- } = e, n = R(yf), i = Re(), a = "xAxis", o = R((h) => Rr(h, a, t, i)), s = R((h) => c3(h, a, t, i)), u = R((h) => Am(h, t)), c = R((h) => Mm(h, t));
15342
+ } = e, n = B(yf), i = Re(), a = "xAxis", o = B((h) => Rr(h, a, t, i)), s = B((h) => c3(h, a, t, i)), u = B((h) => Am(h, t)), c = B((h) => Mm(h, t));
15343
15343
  if (u == null || c == null)
15344
15344
  return null;
15345
15345
  var {
@@ -15483,7 +15483,7 @@ var ax = (e) => {
15483
15483
  className: n,
15484
15484
  width: i,
15485
15485
  label: a
15486
- } = e, o = ne(null), s = ne(null), u = R(yf), c = Re(), l = De(), f = "yAxis", d = R((g) => Rr(g, f, r, c)), h = R((g) => jm(g, r)), p = R((g) => Tm(g, r)), m = R((g) => c3(g, f, r, c));
15486
+ } = e, o = ne(null), s = ne(null), u = B(yf), c = Re(), l = De(), f = "yAxis", d = B((g) => Rr(g, f, r, c)), h = B((g) => jm(g, r)), p = B((g) => Tm(g, r)), m = B((g) => c3(g, f, r, c));
15487
15487
  if (J1(() => {
15488
15488
  var g;
15489
15489
  if (!(i !== "auto" || !h || Jo(a) || /* @__PURE__ */ wt(a))) {
@@ -16134,7 +16134,7 @@ var zx = {
16134
16134
  }), Wx = (e) => {
16135
16135
  var {
16136
16136
  children: t
16137
- } = e, r = R(W2);
16137
+ } = e, r = B(W2);
16138
16138
  if (!r)
16139
16139
  return null;
16140
16140
  var {
@@ -16158,7 +16158,7 @@ var zx = {
16158
16158
  }, n), r);
16159
16159
  });
16160
16160
  function Ux() {
16161
- var e = De(), [t, r] = ce(null), n = R(m7);
16161
+ var e = De(), [t, r] = ce(null), n = B(m7);
16162
16162
  return oe(() => {
16163
16163
  if (t != null) {
16164
16164
  var i = t.getBoundingClientRect(), a = i.width / t.offsetWidth;
@@ -16224,66 +16224,66 @@ var Yx = /* @__PURE__ */ pt((e, t) => {
16224
16224
  width: y
16225
16225
  } = e, b = De(), [g, x] = ce(null), [C, O] = ce(null);
16226
16226
  ag();
16227
- var A = Ux(), E = X(($) => {
16228
- A($), typeof t == "function" && t($), x($), O($);
16229
- }, [A, t, x, O]), M = X(($) => {
16230
- b(S8($)), b(Qe({
16227
+ var A = Ux(), E = X((L) => {
16228
+ A(L), typeof t == "function" && t(L), x(L), O(L);
16229
+ }, [A, t, x, O]), M = X((L) => {
16230
+ b(S8(L)), b(Qe({
16231
16231
  handler: a,
16232
- reactEvent: $
16232
+ reactEvent: L
16233
16233
  }));
16234
- }, [b, a]), F = X(($) => {
16235
- b(Ta($)), b(Qe({
16234
+ }, [b, a]), F = X((L) => {
16235
+ b(Ta(L)), b(Qe({
16236
16236
  handler: c,
16237
- reactEvent: $
16237
+ reactEvent: L
16238
16238
  }));
16239
- }, [b, c]), T = X(($) => {
16239
+ }, [b, c]), T = X((L) => {
16240
16240
  b(m3()), b(Qe({
16241
16241
  handler: l,
16242
- reactEvent: $
16242
+ reactEvent: L
16243
16243
  }));
16244
- }, [b, l]), j = X(($) => {
16245
- b(Ta($)), b(Qe({
16244
+ }, [b, l]), j = X((L) => {
16245
+ b(Ta(L)), b(Qe({
16246
16246
  handler: f,
16247
- reactEvent: $
16247
+ reactEvent: L
16248
16248
  }));
16249
16249
  }, [b, f]), q = X(() => {
16250
16250
  b(k8());
16251
- }, [b]), U = X(($) => {
16252
- b(j8($.key));
16253
- }, [b]), te = X(($) => {
16251
+ }, [b]), U = X((L) => {
16252
+ b(j8(L.key));
16253
+ }, [b]), te = X((L) => {
16254
16254
  b(Qe({
16255
16255
  handler: o,
16256
- reactEvent: $
16256
+ reactEvent: L
16257
16257
  }));
16258
- }, [b, o]), H = X(($) => {
16258
+ }, [b, o]), H = X((L) => {
16259
16259
  b(Qe({
16260
16260
  handler: s,
16261
- reactEvent: $
16261
+ reactEvent: L
16262
16262
  }));
16263
- }, [b, s]), B = X(($) => {
16263
+ }, [b, s]), R = X((L) => {
16264
16264
  b(Qe({
16265
16265
  handler: u,
16266
- reactEvent: $
16266
+ reactEvent: L
16267
16267
  }));
16268
- }, [b, u]), z = X(($) => {
16268
+ }, [b, u]), z = X((L) => {
16269
16269
  b(Qe({
16270
16270
  handler: d,
16271
- reactEvent: $
16271
+ reactEvent: L
16272
16272
  }));
16273
- }, [b, d]), I = X(($) => {
16273
+ }, [b, d]), $ = X((L) => {
16274
16274
  b(Qe({
16275
16275
  handler: m,
16276
- reactEvent: $
16276
+ reactEvent: L
16277
16277
  }));
16278
- }, [b, m]), L = X(($) => {
16279
- b(N8($)), b(Qe({
16278
+ }, [b, m]), I = X((L) => {
16279
+ b(N8(L)), b(Qe({
16280
16280
  handler: p,
16281
- reactEvent: $
16281
+ reactEvent: L
16282
16282
  }));
16283
- }, [b, p]), le = X(($) => {
16283
+ }, [b, p]), le = X((L) => {
16284
16284
  b(Qe({
16285
16285
  handler: h,
16286
- reactEvent: $
16286
+ reactEvent: L
16287
16287
  }));
16288
16288
  }, [b, h]);
16289
16289
  return /* @__PURE__ */ w.createElement(N3.Provider, {
@@ -16303,14 +16303,14 @@ var Yx = /* @__PURE__ */ pt((e, t) => {
16303
16303
  onDoubleClick: H,
16304
16304
  onFocus: q,
16305
16305
  onKeyDown: U,
16306
- onMouseDown: B,
16306
+ onMouseDown: R,
16307
16307
  onMouseEnter: F,
16308
16308
  onMouseLeave: T,
16309
16309
  onMouseMove: j,
16310
16310
  onMouseUp: z,
16311
16311
  onTouchEnd: le,
16312
- onTouchMove: L,
16313
- onTouchStart: I,
16312
+ onTouchMove: I,
16313
+ onTouchStart: $,
16314
16314
  ref: E
16315
16315
  }, r)));
16316
16316
  }), Zx = ["children", "className", "width", "height", "style", "compact", "title", "desc"];
@@ -16676,79 +16676,79 @@ const yO = [
16676
16676
  enableDateColsEditing: d,
16677
16677
  onInvValueCellSave: h
16678
16678
  }) => {
16679
- const [p, m] = ce([]), [v, y] = ce([]), [b, g] = ce([]), [x, C] = ce(/* @__PURE__ */ new Map([])), [O, A] = ce(/* @__PURE__ */ new Map([])), [E, M] = ce(/* @__PURE__ */ new Map([])), F = ne(null), T = ne(null), j = "hfl-text-1", q = X((B, z) => {
16680
- C((I) => {
16681
- const L = new Map(I);
16682
- return L.set(B, !0), L;
16683
- }), A((I) => {
16684
- const L = new Map(I);
16685
- return L.set(B, z ?? ""), L;
16679
+ const [p, m] = ce([]), [v, y] = ce([]), [b, g] = ce([]), [x, C] = ce(/* @__PURE__ */ new Map([])), [O, A] = ce(/* @__PURE__ */ new Map([])), [E, M] = ce(/* @__PURE__ */ new Map([])), F = ne(null), T = ne(null), j = "hfl-text-1", q = X((R, z) => {
16680
+ C(($) => {
16681
+ const I = new Map($);
16682
+ return I.set(R, !0), I;
16683
+ }), A(($) => {
16684
+ const I = new Map($);
16685
+ return I.set(R, z ?? ""), I;
16686
16686
  });
16687
- }, []), U = X((B) => {
16687
+ }, []), U = X((R) => {
16688
16688
  C((z) => {
16689
- const I = new Map(z);
16690
- return I.set(B, !1), I;
16689
+ const $ = new Map(z);
16690
+ return $.set(R, !1), $;
16691
16691
  }), A((z) => {
16692
- const I = new Map(z);
16693
- return I.delete(B), I;
16692
+ const $ = new Map(z);
16693
+ return $.delete(R), $;
16694
16694
  }), M((z) => {
16695
- const I = new Map(z);
16696
- return I.delete(B), I;
16695
+ const $ = new Map(z);
16696
+ return $.delete(R), $;
16697
16697
  });
16698
16698
  }, []), te = X(
16699
- async (B) => {
16700
- const z = O.get(B) ?? "", I = E.get(B) ?? "", [L, le] = B.split("::"), $ = p.find((ie) => ie.test_id === L), Ee = $ ? $[le] : void 0, Xe = Ee?.test_value ?? "";
16699
+ async (R) => {
16700
+ const z = O.get(R) ?? "", $ = E.get(R) ?? "", [I, le] = R.split("::"), L = p.find((ie) => ie.test_id === I), Ee = L ? L[le] : void 0, Xe = Ee?.test_value ?? "";
16701
16701
  if (z === Xe) {
16702
16702
  C((ie) => {
16703
16703
  const be = new Map(ie);
16704
- return be.set(B, !1), be;
16704
+ return be.set(R, !1), be;
16705
16705
  }), A((ie) => {
16706
16706
  const be = new Map(ie);
16707
- return be.delete(B), be;
16707
+ return be.delete(R), be;
16708
16708
  }), M((ie) => {
16709
16709
  const be = new Map(ie);
16710
- return be.delete(B), be;
16710
+ return be.delete(R), be;
16711
16711
  });
16712
16712
  return;
16713
16713
  }
16714
16714
  try {
16715
16715
  await h?.({
16716
16716
  test_date: le,
16717
- test_id: L,
16717
+ test_id: I,
16718
16718
  test_value: z,
16719
- out_of_range: I || !1,
16719
+ out_of_range: $ || !1,
16720
16720
  created_on: "",
16721
16721
  source_id: Ee?.source_id || 0,
16722
16722
  source_type: Ee?.source_type || B8.INVESTIGATIONS
16723
16723
  }) && (C((be) => {
16724
16724
  const _e = new Map(be);
16725
- return _e.set(B, !1), _e;
16725
+ return _e.set(R, !1), _e;
16726
16726
  }), A((be) => {
16727
16727
  const _e = new Map(be);
16728
- return _e.delete(B), _e;
16728
+ return _e.delete(R), _e;
16729
16729
  }), M((be) => {
16730
16730
  const _e = new Map(be);
16731
- return _e.delete(B), _e;
16731
+ return _e.delete(R), _e;
16732
16732
  }));
16733
16733
  } catch {
16734
16734
  }
16735
16735
  },
16736
16736
  [O, E, p, h]
16737
16737
  ), H = X(
16738
- (B, z, I) => {
16739
- const L = O.get(I), [le] = I.split("::"), $ = z ? E.get(I) ?? B.out_of_range : B.out_of_range;
16740
- return /* @__PURE__ */ S.jsx(S.Fragment, { children: B && /* @__PURE__ */ S.jsxs(
16738
+ (R, z, $) => {
16739
+ const I = O.get($), [le] = $.split("::"), L = z ? E.get($) ?? R.out_of_range : R.out_of_range;
16740
+ return /* @__PURE__ */ S.jsx(S.Fragment, { children: R && /* @__PURE__ */ S.jsxs(
16741
16741
  "div",
16742
16742
  {
16743
- className: `hfl-flex hfl-px-4 hfl-py-1 hfl-gap-4 hfl-items-center hfl-w-full hfl-h-full ${z ? "hfl-bg-Blue-50 hfl-border hfl-border-Blue-600" : ""} ${z && $ ? "hfl-border hfl-border-Error-600" : ""}`,
16743
+ className: `hfl-flex hfl-px-4 hfl-py-1 hfl-gap-4 hfl-items-center hfl-w-full hfl-h-full ${z ? "hfl-bg-Blue-50 hfl-border hfl-border-Blue-600" : ""} ${z && L ? "hfl-border hfl-border-Error-600" : ""}`,
16744
16744
  children: [
16745
16745
  z ? /* @__PURE__ */ S.jsx(
16746
16746
  "input",
16747
16747
  {
16748
16748
  autoFocus: !0,
16749
16749
  type: "string",
16750
- value: L,
16751
- className: `hfl-w-3/4 hfl-h-full hfl-border-0 focus:hfl-outline-none hfl-bg-inherit ${$ && "hfl-text-Error-600 hfl-font-bold"}`,
16750
+ value: I,
16751
+ className: `hfl-w-3/4 hfl-h-full hfl-border-0 focus:hfl-outline-none hfl-bg-inherit ${L && "hfl-text-Error-600 hfl-font-bold"}`,
16752
16752
  onChange: (Ee) => {
16753
16753
  const Xe = Ee.target.value, ie = n.find((_e) => _e.test_id === le), be = gO(
16754
16754
  e,
@@ -16759,40 +16759,40 @@ const yO = [
16759
16759
  )?.isOutOfRange;
16760
16760
  A((_e) => {
16761
16761
  const Zt = new Map(_e);
16762
- return Zt.set(I, Xe), Zt;
16762
+ return Zt.set($, Xe), Zt;
16763
16763
  }), M((_e) => {
16764
16764
  const Zt = new Map(_e);
16765
- return Zt.set(I, be), Zt;
16765
+ return Zt.set($, be), Zt;
16766
16766
  });
16767
16767
  }
16768
16768
  }
16769
16769
  ) : /* @__PURE__ */ S.jsx(
16770
16770
  "span",
16771
16771
  {
16772
- className: `${f && $ ? "hfl-text-Error-600 hfl-font-semibold" : ""}`,
16773
- children: L || B.test_value
16772
+ className: `${f && L ? "hfl-text-Error-600 hfl-font-semibold" : ""}`,
16773
+ children: I || R.test_value
16774
16774
  }
16775
16775
  ),
16776
- d && B.test_value?.length > 0 && /* @__PURE__ */ S.jsx("div", { className: "hfl-flex hfl-gap-1", children: z ? /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
16776
+ d && R.isEditPermitted && R.test_value?.length > 0 && /* @__PURE__ */ S.jsx("div", { className: "hfl-flex hfl-gap-1", children: z ? /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
16777
16777
  /* @__PURE__ */ S.jsx(
16778
16778
  "i",
16779
16779
  {
16780
16780
  className: "hx_checkmark hfl-cursor-pointer hfl-text-Success-600 hover:hfl-font-bold",
16781
- onClick: () => te(I)
16781
+ onClick: () => te($)
16782
16782
  }
16783
16783
  ),
16784
16784
  /* @__PURE__ */ S.jsx(
16785
16785
  "i",
16786
16786
  {
16787
16787
  className: "hx_close hfl-cursor-pointer hfl-text-Error-600 hover:hfl-font-bold",
16788
- onClick: () => U(I)
16788
+ onClick: () => U($)
16789
16789
  }
16790
16790
  )
16791
16791
  ] }) : /* @__PURE__ */ S.jsx(
16792
16792
  "i",
16793
16793
  {
16794
16794
  className: "hx_edit hfl-cursor-pointer hfl-text-Blue-600 hover:hfl-font-bold",
16795
- onClick: () => q(I, B.test_value)
16795
+ onClick: () => q($, R.test_value)
16796
16796
  }
16797
16797
  ) })
16798
16798
  ]
@@ -16813,7 +16813,7 @@ const yO = [
16813
16813
  ]
16814
16814
  );
16815
16815
  return oe(() => {
16816
- const B = [
16816
+ const R = [
16817
16817
  {
16818
16818
  field: "#",
16819
16819
  fieldHeaderName: "No.",
@@ -16821,7 +16821,7 @@ const yO = [
16821
16821
  width: "60px",
16822
16822
  minWidth: "60px",
16823
16823
  cellClasses: `${j}`,
16824
- renderCell: (I, L, le, $) => /* @__PURE__ */ S.jsx(S.Fragment, { children: $ + 1 })
16824
+ renderCell: ($, I, le, L) => /* @__PURE__ */ S.jsx(S.Fragment, { children: L + 1 })
16825
16825
  },
16826
16826
  {
16827
16827
  field: "test_name",
@@ -16832,23 +16832,23 @@ const yO = [
16832
16832
  cellClasses: `${j}`,
16833
16833
  enableColumnCheckbox: i,
16834
16834
  isCheckBoxMarked: o.get("test_name"),
16835
- onColumnCheckboxClick: (I) => {
16836
- s("test_name", I);
16835
+ onColumnCheckboxClick: ($) => {
16836
+ s("test_name", $);
16837
16837
  },
16838
- renderCell: (I, L) => /* @__PURE__ */ S.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
16838
+ renderCell: ($, I) => /* @__PURE__ */ S.jsxs("div", { className: "hfl-flex hfl-items-center", children: [
16839
16839
  i && /* @__PURE__ */ S.jsx(
16840
16840
  X1,
16841
16841
  {
16842
16842
  size: "md",
16843
16843
  checkBoxInnerDivClasses: "!hfl-w-4 !hfl-h-4 !hfl-mr-1 !hfl-text-Blue-600 !hfl-border-Blue-600 !hfl-bg-Blue-50 hover:hfl-bg-Blue-50 hover:hfl-border-Blue-600",
16844
16844
  text: "",
16845
- onClick: () => u?.(L.test_id),
16846
- id: `checkbox-test-${L.test_id}`,
16847
- isMarked: L.isPrintable,
16845
+ onClick: () => u?.(I.test_id),
16846
+ id: `checkbox-test-${I.test_id}`,
16847
+ isMarked: I.isPrintable,
16848
16848
  checkboxClasses: "hfl-gap-0"
16849
16849
  }
16850
16850
  ),
16851
- I
16851
+ $
16852
16852
  ] })
16853
16853
  },
16854
16854
  {
@@ -16866,34 +16866,34 @@ const yO = [
16866
16866
  width: "180px",
16867
16867
  minWidth: "180px",
16868
16868
  cellClasses: `${j}`,
16869
- renderCell: (I, L, le, $) => {
16870
- const Ee = $ % 3, Xe = {
16871
- testName: L.test_name,
16872
- unit: L.test_unit,
16869
+ renderCell: ($, I, le, L) => {
16870
+ const Ee = L % 3, Xe = {
16871
+ testName: I.test_name,
16872
+ unit: I.test_unit,
16873
16873
  color: yO[Ee],
16874
- data: cO(L)
16874
+ data: cO(I)
16875
16875
  };
16876
16876
  return /* @__PURE__ */ S.jsx(mO, { containerHeight: 32, containerWidth: 180, trendData: Xe });
16877
16877
  }
16878
16878
  }
16879
- ], z = v.map((I) => ({
16880
- field: I,
16881
- fieldHeaderName: I,
16879
+ ], z = v.map(($) => ({
16880
+ field: $,
16881
+ fieldHeaderName: $,
16882
16882
  width: "120px",
16883
16883
  minWidth: "120px",
16884
16884
  cellClasses: `${j} !hfl-p-0`,
16885
16885
  enableColumnCheckbox: i,
16886
- isCheckBoxMarked: o.get(I),
16887
- onColumnCheckboxClick: (L) => {
16888
- s(I, L);
16886
+ isCheckBoxMarked: o.get($),
16887
+ onColumnCheckboxClick: (I) => {
16888
+ s($, I);
16889
16889
  },
16890
- renderHeaderCell: (L) => /* @__PURE__ */ S.jsx(S.Fragment, { children: Vn(L.fieldHeaderName).format("DD-MMM-YY hh:mm A") }),
16891
- renderCell: (L, le, $) => {
16892
- const Ee = `${le.test_id}::${String($.field)}`, Xe = x.get(Ee) ?? !1;
16893
- return H(L || {}, Xe, Ee);
16890
+ renderHeaderCell: (I) => /* @__PURE__ */ S.jsx(S.Fragment, { children: Vn(I.fieldHeaderName).format("DD-MMM-YY hh:mm A") }),
16891
+ renderCell: (I, le, L) => {
16892
+ const Ee = `${le.test_id}::${String(L.field)}`, Xe = x.get(Ee) ?? !1;
16893
+ return H(I || {}, Xe, Ee);
16894
16894
  }
16895
16895
  }));
16896
- g([...B, ...z]);
16896
+ g([...R, ...z]);
16897
16897
  }, [
16898
16898
  v,
16899
16899
  i,
@@ -16904,34 +16904,38 @@ const yO = [
16904
16904
  H
16905
16905
  ]), oe(() => {
16906
16906
  if (!r.length) return;
16907
- const B = [...new Set(r.map((L) => L.test_date))].sort((L, le) => Vn(L).diff(Vn(le)));
16908
- y(B);
16907
+ const R = [...new Set(r.filter((I) => I.test_value !== "").map((I) => I.test_date))].sort(
16908
+ (I, le) => Vn(I).diff(Vn(le))
16909
+ );
16910
+ y(R);
16909
16911
  const z = /* @__PURE__ */ new Map();
16910
- r.forEach((L) => {
16911
- const le = n.find((Ee) => Ee?.test_id?.toString() === L?.test_id?.toString());
16912
- z.has(L.test_id) || z.set(L.test_id, {
16913
- test_id: L.test_id,
16914
- test_name: le?.test_names || L.test_name,
16915
- test_unit: le?.test_units || L.test_unit,
16916
- isPrintable: L.isPrintable
16912
+ r.forEach((I) => {
16913
+ const le = n.find((Ee) => Ee?.test_id?.toString() === I?.test_id?.toString());
16914
+ z.has(I.test_id) || z.set(I.test_id, {
16915
+ test_id: I.test_id,
16916
+ test_name: le?.test_names || I.test_name,
16917
+ test_unit: le?.test_units || I.test_unit,
16918
+ isPrintable: I.isPrintable,
16919
+ isEditPermitted: I.isEditPermitted
16917
16920
  });
16918
- const $ = z.get(L.test_id);
16919
- $[L.test_date] = {
16920
- test_value: L.test_value,
16921
- out_of_range: L.out_of_range,
16922
- created_on: L.created_on,
16923
- source_id: L.source_id,
16924
- source_type: L.source_type
16921
+ const L = z.get(I.test_id);
16922
+ L[I.test_date] = {
16923
+ test_value: I.test_value,
16924
+ out_of_range: I.out_of_range,
16925
+ created_on: I.created_on,
16926
+ source_id: I.source_id,
16927
+ source_type: I.source_type,
16928
+ isEditPermitted: I.isEditPermitted || !1
16925
16929
  };
16926
16930
  });
16927
- const I = Array.from(z.values());
16928
- m(I);
16931
+ const $ = Array.from(z.values());
16932
+ m($);
16929
16933
  }, [r, n]), J1(() => {
16930
16934
  if (!l) return;
16931
- const B = T.current;
16932
- if (!B) return;
16935
+ const R = T.current;
16936
+ if (!R) return;
16933
16937
  const z = setTimeout(() => {
16934
- B.scrollLeft = B.scrollWidth;
16938
+ R.scrollLeft = R.scrollWidth;
16935
16939
  }, 0);
16936
16940
  return () => clearTimeout(z);
16937
16941
  }, [l]), /* @__PURE__ */ S.jsx(