react-luminus-components 2.0.3-beta.r19-6 → 2.0.3-beta.r19-7

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as x, jsxs as ce, Fragment as et } from "react/jsx-runtime";
2
2
  import * as ae from "react";
3
- import Pe, { useRef as oe, useState as ye, useCallback as K, useContext as le, useMemo as ne, useEffect as ue, useLayoutEffect as Oa, useReducer as Hf, createContext as fn, cloneElement as ka, forwardRef as $n, useImperativeHandle as Vf, memo as Ft, Fragment as mo, isValidElement as $$, Component as C6, createElement as tn } from "react";
3
+ import Pe, { useRef as oe, useState as ye, useCallback as K, useContext as le, useMemo as ne, useEffect as ue, useLayoutEffect as Oa, useReducer as Hf, createContext as fn, cloneElement as ka, forwardRef as Tn, useImperativeHandle as Vf, memo as Ft, Fragment as mo, isValidElement as $$, Component as C6, createElement as tn } from "react";
4
4
  import { InteractionStatus as E6 } from "@azure/msal-browser";
5
5
  import { Link as iu, generatePath as O6 } from "react-router";
6
6
  import { useMsal as k6, useIsAuthenticated as M6 } from "@azure/msal-react";
@@ -5582,7 +5582,7 @@ function mR(e) {
5582
5582
  }, [])
5583
5583
  });
5584
5584
  }
5585
- const Y4 = /* @__PURE__ */ $n((e, t) => {
5585
+ const Y4 = /* @__PURE__ */ Tn((e, t) => {
5586
5586
  let {
5587
5587
  show: n = !1,
5588
5588
  role: r = "dialog",
@@ -26488,7 +26488,7 @@ function TH(e) {
26488
26488
  }, [])
26489
26489
  });
26490
26490
  }
26491
- const sE = /* @__PURE__ */ $n((e, t) => {
26491
+ const sE = /* @__PURE__ */ Tn((e, t) => {
26492
26492
  let {
26493
26493
  show: n = !1,
26494
26494
  role: r = "dialog",
@@ -27177,41 +27177,48 @@ const Mc = Object.assign(pE, {
27177
27177
  ...t,
27178
27178
  y: 0
27179
27179
  };
27180
- }, GH = $n(
27181
- ({ isLink: e, to: t, children: n, LinkComponent: r, onClick: i, onCellInteraction: a, ...o }, s) => e && t ? /* @__PURE__ */ x(
27182
- r,
27183
- {
27184
- ref: s,
27185
- to: t,
27186
- onAuxClick: (c) => {
27187
- c.button === 1 && (a == null || a());
27188
- },
27189
- onClick: () => {
27190
- i == null || i(), a == null || a();
27191
- },
27192
- onContextMenu: () => {
27193
- a == null || a();
27194
- },
27195
- ...o,
27196
- children: n
27197
- }
27198
- ) : /* @__PURE__ */ x(
27199
- "div",
27200
- {
27201
- ref: s,
27202
- onAuxClick: i ? (c) => {
27203
- c.button === 1 && (a == null || a());
27204
- } : void 0,
27205
- onClick: i ? () => {
27206
- i == null || i(), a == null || a();
27207
- } : void 0,
27208
- onContextMenu: i ? () => {
27209
- a == null || a();
27210
- } : void 0,
27211
- ...o,
27212
- children: n
27213
- }
27214
- )
27180
+ }, GH = ({
27181
+ ref: e,
27182
+ isLink: t,
27183
+ to: n,
27184
+ children: r,
27185
+ LinkComponent: i,
27186
+ onClick: a,
27187
+ onCellInteraction: o,
27188
+ ...s
27189
+ }) => t && n ? /* @__PURE__ */ x(
27190
+ i,
27191
+ {
27192
+ ref: e,
27193
+ to: n,
27194
+ onAuxClick: (c) => {
27195
+ c.button === 1 && (o == null || o());
27196
+ },
27197
+ onClick: () => {
27198
+ a == null || a(), o == null || o();
27199
+ },
27200
+ onContextMenu: () => {
27201
+ o == null || o();
27202
+ },
27203
+ ...s,
27204
+ children: r
27205
+ }
27206
+ ) : /* @__PURE__ */ x(
27207
+ "div",
27208
+ {
27209
+ ref: e,
27210
+ onAuxClick: a || o ? (c) => {
27211
+ c.button === 1 && (o == null || o());
27212
+ } : void 0,
27213
+ onClick: a || o ? () => {
27214
+ a == null || a(), o == null || o();
27215
+ } : void 0,
27216
+ onContextMenu: a || o ? () => {
27217
+ o == null || o();
27218
+ } : void 0,
27219
+ ...s,
27220
+ children: r
27221
+ }
27215
27222
  ), KH = ({
27216
27223
  row: e,
27217
27224
  cell: t,
@@ -27303,7 +27310,7 @@ const Mc = Object.assign(pE, {
27303
27310
  ]
27304
27311
  }
27305
27312
  );
27306
- }, ZH = $n(KH), XH = ({
27313
+ }, ZH = Tn(KH), XH = ({
27307
27314
  table: e,
27308
27315
  additionalOptions: t,
27309
27316
  IconComponent: n,
@@ -27366,7 +27373,7 @@ const Mc = Object.assign(pE, {
27366
27373
  (V = document.getElementById(`filter-${Y.id}`)) == null || V.focus();
27367
27374
  }
27368
27375
  }, [E]);
27369
- const R = e.getRowModel().rows, D = new Map(
27376
+ const R = e.getPrePaginationRowModel().rows, D = new Map(
27370
27377
  e.getVisibleLeafColumns().map((Q, V) => [V, Q.id])
27371
27378
  ), N = oe(null), {
27372
27379
  selectedCoords: O,
@@ -27662,7 +27669,7 @@ const Mc = Object.assign(pE, {
27662
27669
  }
27663
27670
  );
27664
27671
  };
27665
- $n(XH);
27672
+ Tn(XH);
27666
27673
  const QH = (e, t) => t.split(".").reduce(
27667
27674
  (n, r) => n && typeof n == "object" ? n[r] : void 0,
27668
27675
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -30093,7 +30100,7 @@ var Xx = (e, t) => {
30093
30100
  // re-rendered on every animation frame.
30094
30101
  !we.fun(e) || e.prototype && e.prototype.isReactComponent
30095
30102
  );
30096
- return $n((r, i) => {
30103
+ return Tn((r, i) => {
30097
30104
  const a = oe(null), o = n && // eslint-disable-next-line react-hooks/rules-of-hooks
30098
30105
  K(
30099
30106
  (m) => {
@@ -35057,7 +35064,7 @@ function C3(e, t, n, r, i, a) {
35057
35064
  }
35058
35065
  const [Gie, Kie] = C3(tp, _b, wb, T3, vb, mb), [Zie, Xie] = C3(ep, xb, bb, yb, gb, pb);
35059
35066
  var Jm = /* @__PURE__ */ new Date(), eg = /* @__PURE__ */ new Date();
35060
- function Tn(e, t, n, r) {
35067
+ function Sn(e, t, n, r) {
35061
35068
  function i(a) {
35062
35069
  return e(a = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+a)), a;
35063
35070
  }
@@ -35078,7 +35085,7 @@ function Tn(e, t, n, r) {
35078
35085
  while (l < a && a < o);
35079
35086
  return c;
35080
35087
  }, i.filter = function(a) {
35081
- return Tn(function(o) {
35088
+ return Sn(function(o) {
35082
35089
  if (o >= o) for (; e(o), !a(o); ) o.setTime(o - 1);
35083
35090
  }, function(o, s) {
35084
35091
  if (o >= o)
@@ -35099,14 +35106,14 @@ function Tn(e, t, n, r) {
35099
35106
  }) : i;
35100
35107
  }), i;
35101
35108
  }
35102
- var Ql = Tn(function() {
35109
+ var Ql = Sn(function() {
35103
35110
  }, function(e, t) {
35104
35111
  e.setTime(+e + t);
35105
35112
  }, function(e, t) {
35106
35113
  return t - e;
35107
35114
  });
35108
35115
  Ql.every = function(e) {
35109
- return e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? Tn(function(t) {
35116
+ return e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? Sn(function(t) {
35110
35117
  t.setTime(Math.floor(t / e) * e);
35111
35118
  }, function(t, n) {
35112
35119
  t.setTime(+t + n * e);
@@ -35115,7 +35122,7 @@ Ql.every = function(e) {
35115
35122
  }) : Ql;
35116
35123
  };
35117
35124
  Ql.range;
35118
- var Pf = 1e3, Eo = 6e4, Lf = 36e5, E3 = 864e5, O3 = 6048e5, Mv = Tn(function(e) {
35125
+ var Pf = 1e3, Eo = 6e4, Lf = 36e5, E3 = 864e5, O3 = 6048e5, Mv = Sn(function(e) {
35119
35126
  e.setTime(e - e.getMilliseconds());
35120
35127
  }, function(e, t) {
35121
35128
  e.setTime(+e + t * Pf);
@@ -35125,7 +35132,7 @@ var Pf = 1e3, Eo = 6e4, Lf = 36e5, E3 = 864e5, O3 = 6048e5, Mv = Tn(function(e)
35125
35132
  return e.getUTCSeconds();
35126
35133
  });
35127
35134
  Mv.range;
35128
- var k3 = Tn(function(e) {
35135
+ var k3 = Sn(function(e) {
35129
35136
  e.setTime(e - e.getMilliseconds() - e.getSeconds() * Pf);
35130
35137
  }, function(e, t) {
35131
35138
  e.setTime(+e + t * Eo);
@@ -35135,7 +35142,7 @@ var k3 = Tn(function(e) {
35135
35142
  return e.getMinutes();
35136
35143
  });
35137
35144
  k3.range;
35138
- var M3 = Tn(function(e) {
35145
+ var M3 = Sn(function(e) {
35139
35146
  e.setTime(e - e.getMilliseconds() - e.getSeconds() * Pf - e.getMinutes() * Eo);
35140
35147
  }, function(e, t) {
35141
35148
  e.setTime(+e + t * Lf);
@@ -35145,7 +35152,7 @@ var M3 = Tn(function(e) {
35145
35152
  return e.getHours();
35146
35153
  });
35147
35154
  M3.range;
35148
- var $b = Tn(function(e) {
35155
+ var $b = Sn(function(e) {
35149
35156
  e.setHours(0, 0, 0, 0);
35150
35157
  }, function(e, t) {
35151
35158
  e.setDate(e.getDate() + t);
@@ -35156,7 +35163,7 @@ var $b = Tn(function(e) {
35156
35163
  });
35157
35164
  $b.range;
35158
35165
  function jo(e) {
35159
- return Tn(function(t) {
35166
+ return Sn(function(t) {
35160
35167
  t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
35161
35168
  }, function(t, n) {
35162
35169
  t.setDate(t.getDate() + n * 7);
@@ -35172,7 +35179,7 @@ R3.range;
35172
35179
  Oo.range;
35173
35180
  D3.range;
35174
35181
  N3.range;
35175
- var I3 = Tn(function(e) {
35182
+ var I3 = Sn(function(e) {
35176
35183
  e.setDate(1), e.setHours(0, 0, 0, 0);
35177
35184
  }, function(e, t) {
35178
35185
  e.setMonth(e.getMonth() + t);
@@ -35182,7 +35189,7 @@ var I3 = Tn(function(e) {
35182
35189
  return e.getMonth();
35183
35190
  });
35184
35191
  I3.range;
35185
- var Ca = Tn(function(e) {
35192
+ var Ca = Sn(function(e) {
35186
35193
  e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
35187
35194
  }, function(e, t) {
35188
35195
  e.setFullYear(e.getFullYear() + t);
@@ -35192,14 +35199,14 @@ var Ca = Tn(function(e) {
35192
35199
  return e.getFullYear();
35193
35200
  });
35194
35201
  Ca.every = function(e) {
35195
- return !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Tn(function(t) {
35202
+ return !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Sn(function(t) {
35196
35203
  t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
35197
35204
  }, function(t, n) {
35198
35205
  t.setFullYear(t.getFullYear() + n * e);
35199
35206
  });
35200
35207
  };
35201
35208
  Ca.range;
35202
- var P3 = Tn(function(e) {
35209
+ var P3 = Sn(function(e) {
35203
35210
  e.setUTCSeconds(0, 0);
35204
35211
  }, function(e, t) {
35205
35212
  e.setTime(+e + t * Eo);
@@ -35209,7 +35216,7 @@ var P3 = Tn(function(e) {
35209
35216
  return e.getUTCMinutes();
35210
35217
  });
35211
35218
  P3.range;
35212
- var L3 = Tn(function(e) {
35219
+ var L3 = Sn(function(e) {
35213
35220
  e.setUTCMinutes(0, 0, 0);
35214
35221
  }, function(e, t) {
35215
35222
  e.setTime(+e + t * Lf);
@@ -35219,7 +35226,7 @@ var L3 = Tn(function(e) {
35219
35226
  return e.getUTCHours();
35220
35227
  });
35221
35228
  L3.range;
35222
- var Sb = Tn(function(e) {
35229
+ var Sb = Sn(function(e) {
35223
35230
  e.setUTCHours(0, 0, 0, 0);
35224
35231
  }, function(e, t) {
35225
35232
  e.setUTCDate(e.getUTCDate() + t);
@@ -35230,7 +35237,7 @@ var Sb = Tn(function(e) {
35230
35237
  });
35231
35238
  Sb.range;
35232
35239
  function Bo(e) {
35233
- return Tn(function(t) {
35240
+ return Sn(function(t) {
35234
35241
  t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
35235
35242
  }, function(t, n) {
35236
35243
  t.setUTCDate(t.getUTCDate() + n * 7);
@@ -35246,7 +35253,7 @@ j3.range;
35246
35253
  ko.range;
35247
35254
  B3.range;
35248
35255
  z3.range;
35249
- var W3 = Tn(function(e) {
35256
+ var W3 = Sn(function(e) {
35250
35257
  e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
35251
35258
  }, function(e, t) {
35252
35259
  e.setUTCMonth(e.getUTCMonth() + t);
@@ -35256,7 +35263,7 @@ var W3 = Tn(function(e) {
35256
35263
  return e.getUTCMonth();
35257
35264
  });
35258
35265
  W3.range;
35259
- var Ea = Tn(function(e) {
35266
+ var Ea = Sn(function(e) {
35260
35267
  e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
35261
35268
  }, function(e, t) {
35262
35269
  e.setUTCFullYear(e.getUTCFullYear() + t);
@@ -35266,7 +35273,7 @@ var Ea = Tn(function(e) {
35266
35273
  return e.getUTCFullYear();
35267
35274
  });
35268
35275
  Ea.every = function(e) {
35269
- return !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Tn(function(t) {
35276
+ return !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Sn(function(t) {
35270
35277
  t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
35271
35278
  }, function(t, n) {
35272
35279
  t.setUTCFullYear(t.getUTCFullYear() + n * e);
@@ -36509,7 +36516,7 @@ var Nle = ["id", "colors"], Ile = function(e) {
36509
36516
  var r = n.type, i = dk(n, zle);
36510
36517
  return Y_[r] ? tn(Y_[r], li({ key: i.id }, i)) : null;
36511
36518
  }) });
36512
- }), Rp = $n(function(e, t) {
36519
+ }), Rp = Tn(function(e, t) {
36513
36520
  var n = e.width, r = e.height, i = e.margin, a = e.defs, o = e.children, s = e.role, c = e.ariaLabel, l = e.ariaLabelledBy, u = e.ariaDescribedBy, d = e.isFocusable, f = qt();
36514
36521
  return ce("svg", { xmlns: "http://www.w3.org/2000/svg", width: n, height: r, role: s, "aria-label": c, "aria-labelledby": l, "aria-describedby": u, focusable: d, tabIndex: d ? 0 : void 0, ref: t, children: [x(Wle, { defs: a }), x("rect", { width: n, height: r, fill: f.background }), x("g", { transform: "translate(" + i.left + "," + i.top + ")", children: o })] });
36515
36522
  }), Ule = Ft(function(e) {
@@ -37386,10 +37393,10 @@ var Z_, Que = function(e) {
37386
37393
  return x(Rp, { width: Cn, height: an, margin: Me, defs: _n, role: dn, ref: Gt, children: u.map(function(Ot, Ia) {
37387
37394
  return qn[Ot] !== void 0 ? qn[Ot] : typeof Ot == "function" ? x(mo, { children: tn(Ot, Na) }, Ia) : null;
37388
37395
  }) });
37389
- }, ode = $n(function(e, t) {
37396
+ }, ode = Tn(function(e, t) {
37390
37397
  var n = e.isInteractive, r = n === void 0 ? _e.isInteractive : n, i = e.animate, a = i === void 0 ? _e.animate : i, o = e.motionConfig, s = o === void 0 ? _e.motionConfig : o, c = e.theme, l = e.renderWrapper, u = Lu(e, ide);
37391
37398
  return x(zo, { animate: a, isInteractive: r, motionConfig: s, renderWrapper: l, theme: c, children: x(ade, Pr({ isInteractive: r }, u, { forwardedRef: t })) });
37392
- }), sde = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"], Pbe = $n(function(e, t) {
37399
+ }), sde = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"], Pbe = Tn(function(e, t) {
37393
37400
  var n = e.defaultWidth, r = e.defaultHeight, i = e.onResize, a = e.debounceResize, o = Lu(e, sde);
37394
37401
  return x(Wo, { defaultWidth: n, defaultHeight: r, onResize: i, debounceResize: a, children: function(s) {
37395
37402
  var c = s.width, l = s.height;
@@ -37430,11 +37437,11 @@ var Z_, Que = function(e) {
37430
37437
  Rt && kt(Rt, it);
37431
37438
  }
37432
37439
  } : void 0, role: ze });
37433
- }, ude = $n(function(e, t) {
37440
+ }, ude = Tn(function(e, t) {
37434
37441
  var n = e.isInteractive, r = n === void 0 ? _e.isInteractive : n, i = e.theme, a = e.renderWrapper, o = Lu(e, cde);
37435
37442
  return x(zo, { isInteractive: r, renderWrapper: a, theme: i, children: x(lde, Pr({ isInteractive: r }, o, { forwardedRef: t })) });
37436
37443
  }), dde = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"];
37437
- $n(function(e, t) {
37444
+ Tn(function(e, t) {
37438
37445
  var n = e.defaultWidth, r = e.defaultHeight, i = e.onResize, a = e.debounceResize, o = Lu(e, dde);
37439
37446
  return x(Wo, { defaultWidth: n, defaultHeight: r, onResize: i, debounceResize: a, children: function(s) {
37440
37447
  var c = s.width, l = s.height;
@@ -37852,7 +37859,7 @@ var n$ = function(e, t, n) {
37852
37859
  var i;
37853
37860
  return ((i = e(r)) != null ? i : 0) + n;
37854
37861
  };
37855
- }, jk = { millisecond: [Ql, Ql], second: [Mv, Mv], minute: [k3, P3], hour: [M3, L3], day: [Tn(function(e) {
37862
+ }, jk = { millisecond: [Ql, Ql], second: [Mv, Mv], minute: [k3, P3], hour: [M3, L3], day: [Sn(function(e) {
37856
37863
  return e.setHours(0, 0, 0, 0);
37857
37864
  }, function(e, t) {
37858
37865
  return e.setDate(e.getDate() + t);
@@ -37860,7 +37867,7 @@ var n$ = function(e, t, n) {
37860
37867
  return (t.getTime() - e.getTime()) / 864e5;
37861
37868
  }, function(e) {
37862
37869
  return Math.floor(e.getTime() / 864e5);
37863
- }), Tn(function(e) {
37870
+ }), Sn(function(e) {
37864
37871
  return e.setUTCHours(0, 0, 0, 0);
37865
37872
  }, function(e, t) {
37866
37873
  return e.setUTCDate(e.getUTCDate() + t);
@@ -38824,11 +38831,11 @@ var mr = { xDomain: [0, 1], yDomain: [0, 1], layers: ["links", "cells", "points"
38824
38831
  return x(Rp, { width: P, height: z, margin: W, role: D, ref: N, children: o.map(function(j, L) {
38825
38832
  return ee[j] !== void 0 ? ee[j] : typeof j == "function" ? x(mo, { children: tn(j, J) }, L) : null;
38826
38833
  }) });
38827
- }, _pe = $n(function(e, t) {
38834
+ }, _pe = Tn(function(e, t) {
38828
38835
  var n = e.theme, r = Yk(e, wpe);
38829
38836
  return x(zo, { isInteractive: !1, animate: !1, theme: n, children: x(xpe, Uf({}, r, { forwardedRef: t })) });
38830
38837
  }), $pe = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"];
38831
- $n(function(e, t) {
38838
+ Tn(function(e, t) {
38832
38839
  var n = e.defaultWidth, r = e.defaultHeight, i = e.onResize, a = e.debounceResize, o = Yk(e, $pe);
38833
38840
  return x(Wo, { defaultWidth: n, defaultHeight: r, onResize: i, debounceResize: a, children: function(s) {
38834
38841
  var c = s.width, l = s.height;
@@ -39071,10 +39078,10 @@ function Bpe(e) {
39071
39078
  return typeof Xr == "function" ? x(mo, { children: Xr(Fp) }, Xi) : Yn[Xr];
39072
39079
  }) });
39073
39080
  }
39074
- var zpe = $n(function(e, t) {
39081
+ var zpe = Tn(function(e, t) {
39075
39082
  var n = e.isInteractive, r = n === void 0 ? ut.isInteractive : n, i = e.animate, a = i === void 0 ? ut.animate : i, o = e.motionConfig, s = o === void 0 ? ut.motionConfig : o, c = e.theme, l = e.renderWrapper, u = Np(e, jpe);
39076
39083
  return x(zo, { animate: a, isInteractive: r, motionConfig: s, renderWrapper: l, theme: c, children: x(Bpe, Hn({ isInteractive: r }, u, { forwardedRef: t })) });
39077
- }), Wpe = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"], Lbe = $n(function(e, t) {
39084
+ }), Wpe = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"], Lbe = Tn(function(e, t) {
39078
39085
  var n = e.defaultWidth, r = e.defaultHeight, i = e.onResize, a = e.debounceResize, o = Np(e, Wpe);
39079
39086
  return x(Wo, { defaultWidth: n, defaultHeight: r, onResize: i, debounceResize: a, children: function(s) {
39080
39087
  var c = s.width, l = s.height;
@@ -39149,11 +39156,11 @@ var zpe = $n(function(e, t) {
39149
39156
  }
39150
39157
  }, [Ne, Te]);
39151
39158
  return x("canvas", { ref: Db(Ve, Re), width: hn * a, height: De * a, style: { width: hn, height: De, cursor: de ? "auto" : "normal" }, onMouseEnter: de ? xt : void 0, onMouseMove: de ? xt : void 0, onMouseLeave: de ? dn : void 0, onMouseDown: de ? Gt : void 0, onMouseUp: de ? Qt : void 0, onClick: de ? Cn : void 0, onDoubleClick: de ? an : void 0, role: he });
39152
- }, Vpe = $n(function(e, t) {
39159
+ }, Vpe = Tn(function(e, t) {
39153
39160
  var n = e.isInteractive, r = e.renderWrapper, i = e.theme, a = Np(e, Upe);
39154
39161
  return x(zo, { isInteractive: n, renderWrapper: r, theme: i, animate: !1, children: x(Hpe, Hn({}, a, { forwardedRef: t })) });
39155
39162
  }), qpe = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"];
39156
- $n(function(e, t) {
39163
+ Tn(function(e, t) {
39157
39164
  var n = e.defaultWidth;
39158
39165
  e.defaultHeight;
39159
39166
  var r = e.onResize, i = e.debounceResize, a = Np(e, qpe);
@@ -39519,7 +39526,7 @@ var x$, w0e = function(e) {
39519
39526
  return x(Gy, { id: n, value: r.formattedValue, enableChip: !0, color: t });
39520
39527
  }, en = { indexBy: "id", keys: ["value"], groupMode: "stacked", layout: "vertical", valueScale: { type: "linear", nice: !0, round: !1 }, indexScale: { type: "band", round: !1 }, padding: 0.1, innerPadding: 0, enableGridX: !1, enableGridY: !0, enableLabel: !0, label: "formattedValue", labelPosition: "middle", labelOffset: 0, labelSkipWidth: 0, labelSkipHeight: 0, labelTextColor: { theme: "labels.text.fill" }, colorBy: "id", colors: { scheme: "nivo" }, borderRadius: 0, borderWidth: 0, borderColor: { from: "color" }, isInteractive: !0, tooltip: T0e, tooltipLabel: function(e) {
39521
39528
  return e.id + " - " + e.indexValue;
39522
- }, legends: [], initialHiddenIds: [], annotations: [], enableTotals: !1, totalsOffset: 10 }, Jt = Dt({}, en, { layers: ["grid", "axes", "bars", "totals", "markers", "legends", "annotations"], axisTop: null, axisRight: null, axisBottom: {}, axisLeft: {}, barComponent: $0e, defs: [], fill: [], markers: [], animate: !0, animateOnMount: !1, motionConfig: "default", role: "img", isFocusable: !1 }), Sn = Dt({}, en, { layers: ["grid", "axes", "bars", "totals", "legends", "annotations"], axisTop: null, axisRight: null, axisBottom: {}, axisLeft: {}, renderBar: function(e, t) {
39529
+ }, legends: [], initialHiddenIds: [], annotations: [], enableTotals: !1, totalsOffset: 10 }, Jt = Dt({}, en, { layers: ["grid", "axes", "bars", "totals", "markers", "legends", "annotations"], axisTop: null, axisRight: null, axisBottom: {}, axisLeft: {}, barComponent: $0e, defs: [], fill: [], markers: [], animate: !0, animateOnMount: !1, motionConfig: "default", role: "img", isFocusable: !1 }), $n = Dt({}, en, { layers: ["grid", "axes", "bars", "totals", "legends", "annotations"], axisTop: null, axisRight: null, axisBottom: {}, axisLeft: {}, renderBar: function(e, t) {
39523
39530
  var n = t.bar, r = n.color, i = n.height, a = n.width, o = n.x, s = n.y, c = t.borderColor, l = t.borderRadius, u = t.borderWidth, d = t.label, f = t.shouldRenderLabel, h = t.labelStyle, m = t.labelX, p = t.labelY, g = t.textAnchor;
39524
39531
  e.fillStyle = r, u > 0 && (e.strokeStyle = c, e.lineWidth = u), e.beginPath(), b0e(e, o, s, a, i, Math.min(l, i)), e.fill(), u > 0 && e.stroke(), f && (e.textBaseline = "middle", e.textAlign = g === "middle" ? "center" : g, Ao(e, h, d, o + m, s + p));
39525
39532
  }, pixelRatio: typeof window < "u" && (x$ = window.devicePixelRatio) != null ? x$ : 1 }), o6 = function(e, t, n, r, i, a) {
@@ -39751,7 +39758,7 @@ var C0e = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
39751
39758
  var Pa;
39752
39759
  return typeof Le == "function" ? x(mo, { children: tn(Le, Ia) }, Zr) : (Pa = Ot == null ? void 0 : Ot[Le]) != null ? Pa : null;
39753
39760
  }) });
39754
- }, W0e = $n(function(e, t) {
39761
+ }, W0e = Tn(function(e, t) {
39755
39762
  var n = e.isInteractive, r = n === void 0 ? Jt.isInteractive : n, i = e.animate, a = i === void 0 ? Jt.animate : i, o = e.motionConfig, s = o === void 0 ? Jt.motionConfig : o, c = e.theme, l = e.renderWrapper, u = Da(e, B0e);
39756
39763
  return x(zo, { animate: a, isInteractive: r, motionConfig: s, renderWrapper: l, theme: c, children: x(z0e, Dt({}, u, { isInteractive: r, forwardedRef: t })) });
39757
39764
  }), U0e = ["isInteractive", "renderWrapper", "theme"], ug = function(e, t, n, r) {
@@ -39759,7 +39766,7 @@ var C0e = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
39759
39766
  return wk(i.x + t.left, i.y + t.top, i.width, i.height, n, r);
39760
39767
  });
39761
39768
  }, H0e = function(e) {
39762
- var t, n = e.data, r = e.indexBy, i = e.keys, a = e.margin, o = e.width, s = e.height, c = e.groupMode, l = e.layout, u = e.valueScale, d = e.indexScale, f = e.padding, h = e.innerPadding, m = e.axisTop, p = e.axisRight, g = e.axisBottom, y = g === void 0 ? Sn.axisBottom : g, w = e.axisLeft, b = w === void 0 ? Sn.axisLeft : w, _ = e.enableGridX, v = _ === void 0 ? Sn.enableGridX : _, $ = e.enableGridY, T = $ === void 0 ? Sn.enableGridY : $, k = e.gridXValues, C = e.gridYValues, A = e.labelPosition, S = A === void 0 ? Sn.labelPosition : A, E = e.labelOffset, R = E === void 0 ? Sn.labelOffset : E, D = e.layers, N = D === void 0 ? Sn.layers : D, O = e.renderBar, P = O === void 0 ? Sn.renderBar : O, z = e.enableLabel, W = z === void 0 ? Sn.enableLabel : z, I = e.label, B = e.labelSkipWidth, q = B === void 0 ? Sn.labelSkipWidth : B, X = e.labelSkipHeight, G = X === void 0 ? Sn.labelSkipHeight : X, Z = e.labelTextColor, ee = e.colorBy, J = e.colors, j = e.borderRadius, L = j === void 0 ? Sn.borderRadius : j, F = e.borderWidth, U = F === void 0 ? Sn.borderWidth : F, M = e.borderColor, Q = e.annotations, V = Q === void 0 ? Sn.annotations : Q, Y = e.legendLabel, de = e.tooltipLabel, ie = e.valueFormat, re = e.isInteractive, fe = re === void 0 ? Sn.isInteractive : re, ve = e.tooltip, Oe = ve === void 0 ? Sn.tooltip : ve, Ce = e.onClick, Te = e.onMouseEnter, ge = e.onMouseLeave, Se = e.legends, he = e.pixelRatio, Re = he === void 0 ? Sn.pixelRatio : he, Ve = e.role, Yt = e.forwardedRef, Ke = e.enableTotals, $t = Ke === void 0 ? Sn.enableTotals : Ke, kt = e.totalsOffset, hn = kt === void 0 ? Sn.totalsOffset : kt, De = oe(null), je = qt(), St = Uo(o, s, a), Qe = St.margin, Tt = St.innerWidth, ht = St.innerHeight, jt = St.outerWidth, nt = St.outerHeight, ze = f6({ indexBy: r, label: I, tooltipLabel: de, valueFormat: ie, colors: J, colorBy: ee, borderColor: M, labelTextColor: Z, groupMode: c, layout: l, data: n, keys: i, margin: Qe, width: Tt, height: ht, padding: f, innerPadding: h, valueScale: u, indexScale: d, enableLabel: W, labelSkipWidth: q, labelSkipHeight: G, legends: Se, legendLabel: Y, totalsOffset: hn }), Ye = ze.bars, at = ze.barsWithValue, We = ze.xScale, ot = ze.yScale, wt = ze.getLabel, lt = ze.getTooltipLabel, Be = ze.getBorderColor, Ne = ze.getLabelColor, Ze = ze.shouldRenderBarLabel, Ct = ze.legendsWithData, st = ze.barTotals, xt = ze.getColor, dn = Zi(), Gt = dn.showTooltipFromEvent, Qt = dn.hideTooltip, Cn = d0e({ annotations: a6({ data: Ye, annotations: V, getPosition: function(Ue) {
39769
+ var t, n = e.data, r = e.indexBy, i = e.keys, a = e.margin, o = e.width, s = e.height, c = e.groupMode, l = e.layout, u = e.valueScale, d = e.indexScale, f = e.padding, h = e.innerPadding, m = e.axisTop, p = e.axisRight, g = e.axisBottom, y = g === void 0 ? $n.axisBottom : g, w = e.axisLeft, b = w === void 0 ? $n.axisLeft : w, _ = e.enableGridX, v = _ === void 0 ? $n.enableGridX : _, $ = e.enableGridY, T = $ === void 0 ? $n.enableGridY : $, k = e.gridXValues, C = e.gridYValues, A = e.labelPosition, S = A === void 0 ? $n.labelPosition : A, E = e.labelOffset, R = E === void 0 ? $n.labelOffset : E, D = e.layers, N = D === void 0 ? $n.layers : D, O = e.renderBar, P = O === void 0 ? $n.renderBar : O, z = e.enableLabel, W = z === void 0 ? $n.enableLabel : z, I = e.label, B = e.labelSkipWidth, q = B === void 0 ? $n.labelSkipWidth : B, X = e.labelSkipHeight, G = X === void 0 ? $n.labelSkipHeight : X, Z = e.labelTextColor, ee = e.colorBy, J = e.colors, j = e.borderRadius, L = j === void 0 ? $n.borderRadius : j, F = e.borderWidth, U = F === void 0 ? $n.borderWidth : F, M = e.borderColor, Q = e.annotations, V = Q === void 0 ? $n.annotations : Q, Y = e.legendLabel, de = e.tooltipLabel, ie = e.valueFormat, re = e.isInteractive, fe = re === void 0 ? $n.isInteractive : re, ve = e.tooltip, Oe = ve === void 0 ? $n.tooltip : ve, Ce = e.onClick, Te = e.onMouseEnter, ge = e.onMouseLeave, Se = e.legends, he = e.pixelRatio, Re = he === void 0 ? $n.pixelRatio : he, Ve = e.role, Yt = e.forwardedRef, Ke = e.enableTotals, $t = Ke === void 0 ? $n.enableTotals : Ke, kt = e.totalsOffset, hn = kt === void 0 ? $n.totalsOffset : kt, De = oe(null), je = qt(), St = Uo(o, s, a), Qe = St.margin, Tt = St.innerWidth, ht = St.innerHeight, jt = St.outerWidth, nt = St.outerHeight, ze = f6({ indexBy: r, label: I, tooltipLabel: de, valueFormat: ie, colors: J, colorBy: ee, borderColor: M, labelTextColor: Z, groupMode: c, layout: l, data: n, keys: i, margin: Qe, width: Tt, height: ht, padding: f, innerPadding: h, valueScale: u, indexScale: d, enableLabel: W, labelSkipWidth: q, labelSkipHeight: G, legends: Se, legendLabel: Y, totalsOffset: hn }), Ye = ze.bars, at = ze.barsWithValue, We = ze.xScale, ot = ze.yScale, wt = ze.getLabel, lt = ze.getTooltipLabel, Be = ze.getBorderColor, Ne = ze.getLabelColor, Ze = ze.shouldRenderBarLabel, Ct = ze.legendsWithData, st = ze.barTotals, xt = ze.getColor, dn = Zi(), Gt = dn.showTooltipFromEvent, Qt = dn.hideTooltip, Cn = d0e({ annotations: a6({ data: Ye, annotations: V, getPosition: function(Ue) {
39763
39770
  return { x: Ue.x, y: Ue.y };
39764
39771
  }, getDimensions: function(Ue) {
39765
39772
  var He = Ue.width, gt = Ue.height;
@@ -39778,7 +39785,7 @@ var C0e = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
39778
39785
  var Bt = gt[0], At = gt[1];
39779
39786
  Fb(Ue, Dt({}, Bt, { data: At, containerWidth: Tt, containerHeight: ht, theme: je }));
39780
39787
  }) : He === "annotations" ? y0e(Ue, { annotations: Cn, theme: je }) : He === "totals" && $t ? function(gt, Bt, At, it) {
39781
- it === void 0 && (it = Sn.layout), Mo(gt, At.labels.text), gt.textBaseline = it === "vertical" ? "alphabetic" : "middle", gt.textAlign = it === "vertical" ? "center" : "start", Bt.forEach(function(Rt) {
39788
+ it === void 0 && (it = $n.layout), Mo(gt, At.labels.text), gt.textBaseline = it === "vertical" ? "alphabetic" : "middle", gt.textAlign = it === "vertical" ? "center" : "start", Bt.forEach(function(Rt) {
39782
39789
  Ao(gt, At.labels.text, Rt.formattedValue, Rt.x, Rt.y);
39783
39790
  });
39784
39791
  }(Ue, st, je, l) : typeof He == "function" && He(Ue, an);
@@ -39803,17 +39810,17 @@ var C0e = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
39803
39810
  }
39804
39811
  }, [Qe, Ce, Ye]);
39805
39812
  return x("canvas", { ref: Db(De, Yt), width: jt * Re, height: nt * Re, style: { width: jt, height: nt, cursor: fe ? "auto" : "normal" }, onMouseEnter: fe ? Mt : void 0, onMouseMove: fe ? Mt : void 0, onMouseLeave: fe ? yn : void 0, onClick: fe ? on : void 0, role: Ve });
39806
- }, V0e = $n(function(e, t) {
39813
+ }, V0e = Tn(function(e, t) {
39807
39814
  var n = e.isInteractive, r = e.renderWrapper, i = e.theme, a = Da(e, U0e);
39808
39815
  return x(zo, { isInteractive: n, renderWrapper: r, theme: i, animate: !1, children: x(H0e, Dt({}, a, { isInteractive: n, forwardedRef: t })) });
39809
- }), q0e = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"], Fbe = $n(function(e, t) {
39816
+ }), q0e = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"], Fbe = Tn(function(e, t) {
39810
39817
  var n = e.defaultWidth, r = e.defaultHeight, i = e.onResize, a = e.debounceResize, o = Da(e, q0e);
39811
39818
  return x(Wo, { defaultWidth: n, defaultHeight: r, onResize: i, debounceResize: a, children: function(s) {
39812
39819
  var c = s.width, l = s.height;
39813
39820
  return x(W0e, Dt({}, o, { width: c, height: l, ref: t }));
39814
39821
  } });
39815
39822
  }), Y0e = ["defaultWidth", "defaultHeight", "onResize", "debounceResize"];
39816
- $n(function(e, t) {
39823
+ Tn(function(e, t) {
39817
39824
  var n = e.defaultWidth, r = e.defaultHeight, i = e.onResize, a = e.debounceResize, o = Da(e, Y0e);
39818
39825
  return x(Wo, { defaultWidth: n, defaultHeight: r, onResize: i, debounceResize: a, children: function(s) {
39819
39826
  var c = s.width, l = s.height;