react-luminus-components 2.0.34 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +36 -36
- package/dist/{FormDisabledProvider-CknAF8EI.js → FormDisabledProvider-CixhRdLK.js} +1 -1
- package/dist/{FormDisabledProvider-DoGy2C4j.cjs → FormDisabledProvider-DT0dU-kQ.cjs} +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +247 -238
- package/dist/hooks/useAxios/useAxios.d.ts +3 -5
- package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +49 -51
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +5 -5
- package/dist/{nivo-bar-wBsr2P1t.js → nivo-bar-BkbzRnZi.js} +240 -248
- package/dist/{nivo-bar-BkpPCncR.cjs → nivo-bar-CFkvCosn.cjs} +4 -4
- package/dist/{useIsFormDirty-Cb4GEBID.cjs → useIsFormDirty-C2-K6Xed.cjs} +1 -1
- package/dist/{useIsFormDirty-CTuj9_Nd.js → useIsFormDirty-DZBIvp4X.js} +1 -1
- package/dist/useLocalStorageState-B1kFYGzD.js +91 -0
- package/dist/useLocalStorageState-E2HAjd0z.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +1 -1
- package/dist/useLocalStorageState-DBd2vOH1.js +0 -95
- package/dist/useLocalStorageState-gKbms6va.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as C, jsxs as ae, Fragment as bt } from "react/jsx-runtime";
|
|
2
2
|
import * as ge from "react";
|
|
3
|
-
import rt, { useRef as le, useState as Se, useCallback as re, useContext as ve, useMemo as se, useEffect as
|
|
3
|
+
import rt, { useRef as le, useState as Se, useCallback as re, useContext as ve, useMemo as se, useEffect as he, useLayoutEffect as ws, useReducer as hg, createContext as hn, cloneElement as Sc, forwardRef as Mn, useImperativeHandle as pg, memo as zt, Fragment as Zo, isValidElement as Yw, Component as j5, createElement as tn } from "react";
|
|
4
4
|
import { InteractionStatus as B5 } from "@azure/msal-browser";
|
|
5
5
|
import { Link as Tc, generatePath as z5 } from "react-router";
|
|
6
6
|
import { useMsal as W5, useIsAuthenticated as U5 } from "@azure/msal-react";
|
|
@@ -2712,7 +2712,7 @@ const f_ = /* @__PURE__ */ rt.forwardRef(({
|
|
|
2712
2712
|
f_.displayName = "TransitionWrapper";
|
|
2713
2713
|
function tk(e) {
|
|
2714
2714
|
const t = le(e);
|
|
2715
|
-
return
|
|
2715
|
+
return he(() => {
|
|
2716
2716
|
t.current = e;
|
|
2717
2717
|
}, [e]), t;
|
|
2718
2718
|
}
|
|
@@ -2747,7 +2747,7 @@ function Jp() {
|
|
|
2747
2747
|
}
|
|
2748
2748
|
function nk(e) {
|
|
2749
2749
|
const t = le(e);
|
|
2750
|
-
return
|
|
2750
|
+
return he(() => {
|
|
2751
2751
|
t.current = e;
|
|
2752
2752
|
}, [e]), t;
|
|
2753
2753
|
}
|
|
@@ -2759,26 +2759,26 @@ function Nn(e) {
|
|
|
2759
2759
|
}
|
|
2760
2760
|
function rk(e, t, n, r = !1) {
|
|
2761
2761
|
const i = Nn(n);
|
|
2762
|
-
|
|
2762
|
+
he(() => {
|
|
2763
2763
|
const o = typeof e == "function" ? e() : e;
|
|
2764
2764
|
return o.addEventListener(t, i, r), () => o.removeEventListener(t, i, r);
|
|
2765
2765
|
}, [e]);
|
|
2766
2766
|
}
|
|
2767
2767
|
function g_() {
|
|
2768
2768
|
const e = le(!0), t = le(() => e.current);
|
|
2769
|
-
return
|
|
2769
|
+
return he(() => (e.current = !0, () => {
|
|
2770
2770
|
e.current = !1;
|
|
2771
2771
|
}), []), t.current;
|
|
2772
2772
|
}
|
|
2773
2773
|
function v_(e) {
|
|
2774
2774
|
const t = le(null);
|
|
2775
|
-
return
|
|
2775
|
+
return he(() => {
|
|
2776
2776
|
t.current = e;
|
|
2777
2777
|
}), t.current;
|
|
2778
2778
|
}
|
|
2779
2779
|
const ik = typeof global < "u" && // @ts-ignore
|
|
2780
2780
|
global.navigator && // @ts-ignore
|
|
2781
|
-
global.navigator.product === "ReactNative", ok = typeof document < "u", _1 = ok || ik ? ws :
|
|
2781
|
+
global.navigator.product === "ReactNative", ok = typeof document < "u", _1 = ok || ik ? ws : he, ak = ["as", "disabled"];
|
|
2782
2782
|
function sk(e, t) {
|
|
2783
2783
|
if (e == null) return {};
|
|
2784
2784
|
var n = {};
|
|
@@ -3020,7 +3020,7 @@ const pk = Object.assign(y_, {
|
|
|
3020
3020
|
w_.displayName = "Button";
|
|
3021
3021
|
function mk() {
|
|
3022
3022
|
const e = le(!0), t = le(() => e.current);
|
|
3023
|
-
return
|
|
3023
|
+
return he(() => (e.current = !0, () => {
|
|
3024
3024
|
e.current = !1;
|
|
3025
3025
|
}), []), t.current;
|
|
3026
3026
|
}
|
|
@@ -3030,7 +3030,7 @@ function gk(e) {
|
|
|
3030
3030
|
}
|
|
3031
3031
|
function __(e) {
|
|
3032
3032
|
const t = gk(e);
|
|
3033
|
-
|
|
3033
|
+
he(() => () => t.current(), []);
|
|
3034
3034
|
}
|
|
3035
3035
|
const Qp = 2 ** 31 - 1;
|
|
3036
3036
|
function x_(e, t, n) {
|
|
@@ -3830,7 +3830,7 @@ function h8(e) {
|
|
|
3830
3830
|
x[_] = ce, O[_] = ce - M;
|
|
3831
3831
|
}
|
|
3832
3832
|
if (s) {
|
|
3833
|
-
var te, ne = _ === "x" ? rr : ir, oe = _ === "x" ? Tr : $r, de = x[v], Te = v === "y" ? "height" : "width", _e = de + g[ne], Ce = de - g[oe], Ie = [rr, ir].indexOf(b) !== -1,
|
|
3833
|
+
var te, ne = _ === "x" ? rr : ir, oe = _ === "x" ? Tr : $r, de = x[v], Te = v === "y" ? "height" : "width", _e = de + g[ne], Ce = de - g[oe], Ie = [rr, ir].indexOf(b) !== -1, fe = (te = S == null ? void 0 : S[v]) != null ? te : 0, me = Ie ? _e : de - k[Te] - T[Te] - fe + A.altAxis, Me = Ie ? de + k[Te] + T[Te] - fe - A.altAxis : Ce, tt = h && Ie ? Lk(me, de, Me) : wl(h ? me : _e, de, h ? Me : Ce);
|
|
3834
3834
|
x[v] = tt, O[v] = tt - de;
|
|
3835
3835
|
}
|
|
3836
3836
|
t.modifiersData[r] = O;
|
|
@@ -4126,13 +4126,13 @@ function I_(e, t, n = {}) {
|
|
|
4126
4126
|
});
|
|
4127
4127
|
}
|
|
4128
4128
|
}), [u, d, h]), m = se(() => (yl(l.current, a) || (l.current = a), l.current), [a]);
|
|
4129
|
-
return
|
|
4129
|
+
return he(() => {
|
|
4130
4130
|
!c.current || !r || c.current.setOptions({
|
|
4131
4131
|
placement: i,
|
|
4132
4132
|
strategy: o,
|
|
4133
4133
|
modifiers: [...m, p, k8]
|
|
4134
4134
|
});
|
|
4135
|
-
}, [o, i, p, r, m]),
|
|
4135
|
+
}, [o, i, p, r, m]), he(() => {
|
|
4136
4136
|
if (!(!r || e == null || t == null))
|
|
4137
4137
|
return c.current = S8(e, t, Object.assign({}, s, {
|
|
4138
4138
|
placement: i,
|
|
@@ -4208,7 +4208,7 @@ function N_(e, t = D1, {
|
|
|
4208
4208
|
}), l = Nn((c) => {
|
|
4209
4209
|
i.current || t(c);
|
|
4210
4210
|
});
|
|
4211
|
-
|
|
4211
|
+
he(() => {
|
|
4212
4212
|
var c, u;
|
|
4213
4213
|
if (n || e == null) return;
|
|
4214
4214
|
const d = _s(Du(e)), f = d.defaultView || window;
|
|
@@ -4541,9 +4541,9 @@ function Ec({
|
|
|
4541
4541
|
const E = _i(d.current, i)[0];
|
|
4542
4542
|
E && E.focus && E.focus();
|
|
4543
4543
|
});
|
|
4544
|
-
|
|
4544
|
+
he(() => {
|
|
4545
4545
|
c ? $() : y.current && (y.current = !1, T());
|
|
4546
|
-
}, [c, y, T, $]),
|
|
4546
|
+
}, [c, y, T, $]), he(() => {
|
|
4547
4547
|
w.current = null;
|
|
4548
4548
|
});
|
|
4549
4549
|
const A = (S, O) => {
|
|
@@ -4668,7 +4668,7 @@ const X_ = /* @__PURE__ */ ge.forwardRef(({
|
|
|
4668
4668
|
X_.displayName = "DropdownItemText";
|
|
4669
4669
|
const tO = typeof global < "u" && // @ts-ignore
|
|
4670
4670
|
global.navigator && // @ts-ignore
|
|
4671
|
-
global.navigator.product === "ReactNative", nO = typeof document < "u", K_ = nO || tO ? ws :
|
|
4671
|
+
global.navigator.product === "ReactNative", nO = typeof document < "u", K_ = nO || tO ? ws : he, Pg = /* @__PURE__ */ ge.createContext(null);
|
|
4672
4672
|
Pg.displayName = "InputGroupContext";
|
|
4673
4673
|
const J_ = /* @__PURE__ */ ge.createContext(null);
|
|
4674
4674
|
J_.displayName = "NavbarContext";
|
|
@@ -5273,7 +5273,7 @@ const F1 = () => {
|
|
|
5273
5273
|
}
|
|
5274
5274
|
_ && (y.preventDefault(), g(_.dataset[J8("EventKey")] || null, y), c.current = !0, l());
|
|
5275
5275
|
};
|
|
5276
|
-
|
|
5276
|
+
he(() => {
|
|
5277
5277
|
if (p.current && c.current) {
|
|
5278
5278
|
const y = p.current.querySelector(`[${j1}][aria-selected=true]`);
|
|
5279
5279
|
y == null || y.focus();
|
|
@@ -5387,7 +5387,7 @@ function mO(e) {
|
|
|
5387
5387
|
}
|
|
5388
5388
|
function gO(e) {
|
|
5389
5389
|
const t = mO(e);
|
|
5390
|
-
|
|
5390
|
+
he(() => () => t.current(), []);
|
|
5391
5391
|
}
|
|
5392
5392
|
function vO(e = document) {
|
|
5393
5393
|
const t = e.defaultView;
|
|
@@ -5450,8 +5450,8 @@ function nm(e, t) {
|
|
|
5450
5450
|
const o = Uh(e);
|
|
5451
5451
|
o && i(o);
|
|
5452
5452
|
}
|
|
5453
|
-
return
|
|
5454
|
-
}, [t, r]),
|
|
5453
|
+
return he(() => {
|
|
5454
|
+
}, [t, r]), he(() => {
|
|
5455
5455
|
const o = Uh(e);
|
|
5456
5456
|
o !== r && i(o);
|
|
5457
5457
|
}, [e, r]), r;
|
|
@@ -5464,7 +5464,7 @@ function bO({
|
|
|
5464
5464
|
unmountOnExit: i
|
|
5465
5465
|
}) {
|
|
5466
5466
|
const o = le(null), a = le(t), s = Nn(n);
|
|
5467
|
-
|
|
5467
|
+
he(() => {
|
|
5468
5468
|
t ? a.current = !0 : s(o.current);
|
|
5469
5469
|
}, [t, s]);
|
|
5470
5470
|
const l = Ac(o, kc(e)), c = /* @__PURE__ */ Sc(e, {
|
|
@@ -5681,14 +5681,14 @@ const vx = /* @__PURE__ */ Mn((e, t) => {
|
|
|
5681
5681
|
(Y = V.current) == null || Y.focus == null || Y.focus(w), V.current = null;
|
|
5682
5682
|
}
|
|
5683
5683
|
});
|
|
5684
|
-
|
|
5684
|
+
he(() => {
|
|
5685
5685
|
!n || !M || G();
|
|
5686
5686
|
}, [
|
|
5687
5687
|
n,
|
|
5688
5688
|
M,
|
|
5689
5689
|
/* should never change: */
|
|
5690
5690
|
G
|
|
5691
|
-
]),
|
|
5691
|
+
]), he(() => {
|
|
5692
5692
|
U && Z();
|
|
5693
5693
|
}, [U, Z]), gO(() => {
|
|
5694
5694
|
Z();
|
|
@@ -6009,7 +6009,7 @@ const Sx = /* @__PURE__ */ ge.forwardRef(({
|
|
|
6009
6009
|
...M
|
|
6010
6010
|
};
|
|
6011
6011
|
Ie.display = "block";
|
|
6012
|
-
const
|
|
6012
|
+
const fe = (me) => /* @__PURE__ */ C("div", {
|
|
6013
6013
|
role: "dialog",
|
|
6014
6014
|
...me,
|
|
6015
6015
|
style: Ie,
|
|
@@ -6053,7 +6053,7 @@ const Sx = /* @__PURE__ */ ge.forwardRef(({
|
|
|
6053
6053
|
transition: f ? LO : void 0,
|
|
6054
6054
|
backdropTransition: f ? FO : void 0,
|
|
6055
6055
|
renderBackdrop: Ce,
|
|
6056
|
-
renderDialog:
|
|
6056
|
+
renderDialog: fe
|
|
6057
6057
|
})
|
|
6058
6058
|
});
|
|
6059
6059
|
});
|
|
@@ -6080,7 +6080,7 @@ function BO(e, t, {
|
|
|
6080
6080
|
const o = Nn((a) => {
|
|
6081
6081
|
u_(a) && i(a);
|
|
6082
6082
|
});
|
|
6083
|
-
|
|
6083
|
+
he(() => {
|
|
6084
6084
|
if (n || e == null) return;
|
|
6085
6085
|
const a = _s(Du(e));
|
|
6086
6086
|
let s = (a.defaultView || window).event;
|
|
@@ -6313,7 +6313,7 @@ const Ax = /* @__PURE__ */ ge.forwardRef(({
|
|
|
6313
6313
|
});
|
|
6314
6314
|
return K_(() => {
|
|
6315
6315
|
c && a.target && (l.current.scheduleUpdate == null || l.current.scheduleUpdate());
|
|
6316
|
-
}, [c, a.target]),
|
|
6316
|
+
}, [c, a.target]), he(() => {
|
|
6317
6317
|
o || u(null);
|
|
6318
6318
|
}, [o]), /* @__PURE__ */ C(Tx, {
|
|
6319
6319
|
...a,
|
|
@@ -6838,7 +6838,7 @@ var y7 = (e) => typeof e == "function", ed = (e, t) => y7(e) ? e(t) : e, w7 = /*
|
|
|
6838
6838
|
zx(t, e);
|
|
6839
6839
|
}, C7 = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, S7 = (e = {}, t = Hg) => {
|
|
6840
6840
|
let [n, r] = Se(Zr[t] || Bx), i = le(Zr[t]);
|
|
6841
|
-
|
|
6841
|
+
he(() => (i.current !== Zr[t] && r(Zr[t]), Pu.push([t, r]), () => {
|
|
6842
6842
|
let a = Pu.findIndex(([s]) => s === t);
|
|
6843
6843
|
a > -1 && Pu.splice(a, 1);
|
|
6844
6844
|
}), [t]);
|
|
@@ -6883,7 +6883,7 @@ var $7 = 1e3, k7 = (e, t = "default") => {
|
|
|
6883
6883
|
}, f);
|
|
6884
6884
|
i.set(d, h);
|
|
6885
6885
|
}, []);
|
|
6886
|
-
|
|
6886
|
+
he(() => {
|
|
6887
6887
|
if (r) return;
|
|
6888
6888
|
let d = Date.now(), f = n.map((h) => {
|
|
6889
6889
|
if (h.duration === 1 / 0) return;
|
|
@@ -6908,7 +6908,7 @@ var $7 = 1e3, k7 = (e, t = "default") => {
|
|
|
6908
6908
|
let { reverseOrder: h = !1, gutter: p = 8, defaultPosition: m } = f || {}, g = n.filter((y) => (y.position || m) === (d.position || m) && y.height), b = g.findIndex((y) => y.id === d.id), w = g.filter((y, _) => _ < b && y.visible).length;
|
|
6909
6909
|
return g.filter((y) => y.visible).slice(...h ? [w + 1] : [0, w]).reduce((y, _) => y + (_.height || 0) + p, 0);
|
|
6910
6910
|
}, [n]);
|
|
6911
|
-
return
|
|
6911
|
+
return he(() => {
|
|
6912
6912
|
n.forEach((d) => {
|
|
6913
6913
|
if (d.dismissed) o(d.id, d.removeDelay);
|
|
6914
6914
|
else {
|
|
@@ -10139,26 +10139,26 @@ function m4(e) {
|
|
|
10139
10139
|
return m4(Qo(e, i));
|
|
10140
10140
|
}, n;
|
|
10141
10141
|
}
|
|
10142
|
-
const
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
|
|
10151
|
-
|
|
10142
|
+
const fn = m4(Nc);
|
|
10143
|
+
fn.Axios = Ho;
|
|
10144
|
+
fn.CanceledError = Ts;
|
|
10145
|
+
fn.CancelToken = tA;
|
|
10146
|
+
fn.isCancel = s4;
|
|
10147
|
+
fn.VERSION = h4;
|
|
10148
|
+
fn.toFormData = tf;
|
|
10149
|
+
fn.AxiosError = gt;
|
|
10150
|
+
fn.Cancel = fn.CanceledError;
|
|
10151
|
+
fn.all = function(t) {
|
|
10152
10152
|
return Promise.all(t);
|
|
10153
10153
|
};
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10154
|
+
fn.spread = nA;
|
|
10155
|
+
fn.isAxiosError = rA;
|
|
10156
|
+
fn.mergeConfig = Qo;
|
|
10157
|
+
fn.AxiosHeaders = ar;
|
|
10158
|
+
fn.formToJSON = (e) => a4(ie.isHTMLForm(e) ? new FormData(e) : e);
|
|
10159
|
+
fn.getAdapter = f4.getAdapter;
|
|
10160
|
+
fn.HttpStatusCode = pm;
|
|
10161
|
+
fn.default = fn;
|
|
10162
10162
|
const {
|
|
10163
10163
|
Axios: lpe,
|
|
10164
10164
|
AxiosError: cpe,
|
|
@@ -10176,7 +10176,7 @@ const {
|
|
|
10176
10176
|
formToJSON: _pe,
|
|
10177
10177
|
getAdapter: xpe,
|
|
10178
10178
|
mergeConfig: Cpe
|
|
10179
|
-
} =
|
|
10179
|
+
} = fn;
|
|
10180
10180
|
var fu = {};
|
|
10181
10181
|
/*!
|
|
10182
10182
|
* cookie
|
|
@@ -10665,7 +10665,7 @@ const mA = () => {
|
|
|
10665
10665
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = ["Authorization"], e[0] = r) : r = e[0];
|
|
10666
10666
|
const [, i, o] = v4(r);
|
|
10667
10667
|
let a;
|
|
10668
|
-
e[1] !== t ? (a =
|
|
10668
|
+
e[1] !== t ? (a = fn.create(t), e[1] = t, e[2] = a) : a = e[2];
|
|
10669
10669
|
const s = a, l = gA;
|
|
10670
10670
|
let c;
|
|
10671
10671
|
e[3] !== s || e[4] !== n || e[5] !== i ? (c = async (p, m) => s.post("/user/login", {
|
|
@@ -10848,7 +10848,7 @@ function TA(e, t) {
|
|
|
10848
10848
|
}
|
|
10849
10849
|
}
|
|
10850
10850
|
}
|
|
10851
|
-
const $pe =
|
|
10851
|
+
const $pe = fn.CancelToken, e0 = (e) => {
|
|
10852
10852
|
const {
|
|
10853
10853
|
authenticated: t = !0,
|
|
10854
10854
|
differentBaseUrl: n,
|
|
@@ -10873,7 +10873,10 @@ const $pe = dn.CancelToken, e0 = (e) => {
|
|
|
10873
10873
|
} = Qg(), {
|
|
10874
10874
|
isAuthenticating: p,
|
|
10875
10875
|
isAuthenticated: m
|
|
10876
|
-
} = _A(), g =
|
|
10876
|
+
} = _A(), g = le(null), b = le(null), w = se(() => {
|
|
10877
|
+
const v = fn.create(l);
|
|
10878
|
+
return v.interceptors.request.use((x) => g.current(x), (x) => Promise.reject(x)), v.interceptors.response.use((x) => x, (x) => b.current(x)), v;
|
|
10879
|
+
}, [l]), y = re(async (v) => {
|
|
10877
10880
|
var k, T, $;
|
|
10878
10881
|
if (t && !v.headers.Authorization) {
|
|
10879
10882
|
if (p())
|
|
@@ -10893,37 +10896,26 @@ const $pe = dn.CancelToken, e0 = (e) => {
|
|
|
10893
10896
|
f !== null && !o && (v.headers.DelegationId = f.toString());
|
|
10894
10897
|
const x = localStorage.getItem("search-use-asterisk") !== "false";
|
|
10895
10898
|
return v.headers["Search-Use-Asterisk"] = x ? "true" : "false", (k = v.url) != null && k.includes("culture=") ? v.url = (T = v.url) == null ? void 0 : T.replace(/culture=[a-z]{2}/, `culture=${s}`) : v.url = `${v.url}${($ = v.url) != null && $.includes("?") ? "&" : "?"}culture=${s}`, v;
|
|
10896
|
-
}, [t, d, s, i, f, o, p, m]),
|
|
10899
|
+
}, [t, d, s, i, f, o, p, m]), _ = re(
|
|
10897
10900
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10898
10901
|
async (v) => {
|
|
10899
|
-
|
|
10900
|
-
if (dn.isCancel(v) || v.message === "Authentication in progress" || v.message === "No bearer token" || v.message === "Token expired")
|
|
10902
|
+
if (fn.isCancel(v) || v.message === "Authentication in progress" || v.message === "No bearer token" || v.message === "Token expired")
|
|
10901
10903
|
return Promise.reject(v);
|
|
10904
|
+
if (!v.response)
|
|
10905
|
+
return v.message === "Network Error" ? !r && h(c.networkError, "danger") : !r && h(c.unexpectedError, "danger"), Promise.reject(v);
|
|
10902
10906
|
let x;
|
|
10903
10907
|
if (v.response.data instanceof Blob ? x = await iM(v.response.data) : x = Yg(v.response.data), x.length > 0) {
|
|
10904
|
-
const
|
|
10905
|
-
return
|
|
10908
|
+
const T = x.find(($) => $.name.toLowerCase() === "others");
|
|
10909
|
+
return T ? (!r && h(T.errors, "danger"), Promise.reject(v)) : (!r && h(c.validationError, "warning"), Promise.reject(v));
|
|
10906
10910
|
}
|
|
10907
10911
|
const k = oM(v);
|
|
10908
|
-
return k !== null ? (!r && h(`${c.permissionError}: ${Hx(", ", ...k)}`, "danger"), Promise.reject(v)) : (a ?? []).includes(
|
|
10912
|
+
return k !== null ? (!r && h(`${c.permissionError}: ${Hx(", ", ...k)}`, "danger"), Promise.reject(v)) : (a ?? []).includes(v.response.status) ? Promise.reject(v) : v.response.status === 403 ? (!r && h(c.forbiddenError, "danger"), Promise.reject(v)) : (!r && h(c.unexpectedError, "danger"), Promise.reject(v));
|
|
10909
10913
|
},
|
|
10910
10914
|
[h, c.forbiddenError, c.networkError, c.permissionError, c.unexpectedError, c.validationError, r, a]
|
|
10911
|
-
)
|
|
10912
|
-
return
|
|
10913
|
-
n && (
|
|
10914
|
-
}, [n,
|
|
10915
|
-
g.interceptors.request.clear();
|
|
10916
|
-
const v = g.interceptors.request.use(b, (x) => Promise.reject(x));
|
|
10917
|
-
return _(!0), console.log("useAxios: setting interceptors"), () => {
|
|
10918
|
-
_(!1), console.log("useAxios: ejecting interceptors"), g.interceptors.request.eject(v);
|
|
10919
|
-
};
|
|
10920
|
-
}, [g.interceptors.request, b]), fe(() => {
|
|
10921
|
-
g.interceptors.response.clear();
|
|
10922
|
-
const v = g.interceptors.response.use((x) => x, w);
|
|
10923
|
-
return () => {
|
|
10924
|
-
g.interceptors.response.eject(v);
|
|
10925
|
-
};
|
|
10926
|
-
}, [g.interceptors.response, w]), g.interceptorsUsed = y, g;
|
|
10915
|
+
);
|
|
10916
|
+
return g.current = y, b.current = _, he(() => {
|
|
10917
|
+
n && (w.defaults.baseURL = n);
|
|
10918
|
+
}, [n, w.defaults]), w;
|
|
10927
10919
|
};
|
|
10928
10920
|
let ml;
|
|
10929
10921
|
const b4 = () => {
|
|
@@ -14073,7 +14065,7 @@ const q9 = (e, t) => {
|
|
|
14073
14065
|
return document.addEventListener("mouseup", o), () => {
|
|
14074
14066
|
document.removeEventListener("mouseup", o);
|
|
14075
14067
|
};
|
|
14076
|
-
}, i = [e, t], n[0] = t, n[1] = e, n[2] = r, n[3] = i) : (r = n[2], i = n[3]),
|
|
14068
|
+
}, i = [e, t], n[0] = t, n[1] = e, n[2] = r, n[3] = i) : (r = n[2], i = n[3]), he(r, i);
|
|
14077
14069
|
}, Y9 = () => {
|
|
14078
14070
|
const e = We.c(4), {
|
|
14079
14071
|
user: t
|
|
@@ -14099,11 +14091,11 @@ const q9 = (e, t) => {
|
|
|
14099
14091
|
let r, i;
|
|
14100
14092
|
n[0] !== e ? (r = () => (document.addEventListener("keydown", e), () => {
|
|
14101
14093
|
document.removeEventListener("keydown", e);
|
|
14102
|
-
}), i = [e], n[0] = e, n[1] = r, n[2] = i) : (r = n[1], i = n[2]),
|
|
14094
|
+
}), i = [e], n[0] = e, n[1] = r, n[2] = i) : (r = n[1], i = n[2]), he(r, i);
|
|
14103
14095
|
let o, a;
|
|
14104
14096
|
n[3] !== t ? (o = () => t === void 0 ? Z9 : (document.addEventListener("keyup", t), () => {
|
|
14105
14097
|
document.removeEventListener("keyup", t);
|
|
14106
|
-
}), a = [t], n[3] = t, n[4] = o, n[5] = a) : (o = n[4], a = n[5]),
|
|
14098
|
+
}), a = [t], n[3] = t, n[4] = o, n[5] = a) : (o = n[4], a = n[5]), he(o, a);
|
|
14107
14099
|
};
|
|
14108
14100
|
function Z9() {
|
|
14109
14101
|
}
|
|
@@ -14151,7 +14143,7 @@ const A4 = (e, t, n) => {
|
|
|
14151
14143
|
}, e[0] = o) : o = e[0];
|
|
14152
14144
|
const a = o;
|
|
14153
14145
|
let s, l;
|
|
14154
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (s = () => (window.addEventListener("resize", a), () => window.removeEventListener("resize", a)), l = [], e[1] = s, e[2] = l) : (s = e[1], l = e[2]),
|
|
14146
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (s = () => (window.addEventListener("resize", a), () => window.removeEventListener("resize", a)), l = [], e[1] = s, e[2] = l) : (s = e[1], l = e[2]), he(s, l);
|
|
14155
14147
|
const c = t < 992;
|
|
14156
14148
|
let u;
|
|
14157
14149
|
return e[3] !== r || e[4] !== c || e[5] !== t ? (u = {
|
|
@@ -15260,12 +15252,12 @@ ld.exports;
|
|
|
15260
15252
|
pe[++J] = De;
|
|
15261
15253
|
}), pe;
|
|
15262
15254
|
}
|
|
15263
|
-
var
|
|
15255
|
+
var fe = Array.prototype, me = Function.prototype, Me = Object.prototype, tt = z["__core-js_shared__"], ke = me.toString, xe = Me.hasOwnProperty, Ue = function() {
|
|
15264
15256
|
var W = /[^.]+$/.exec(tt && tt.keys && tt.keys.IE_PROTO || "");
|
|
15265
15257
|
return W ? "Symbol(src)_1." + W : "";
|
|
15266
15258
|
}(), nt = Me.toString, Rt = RegExp(
|
|
15267
15259
|
"^" + ke.call(xe).replace(q, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
15268
|
-
), Ae = H ? z.Buffer : void 0, Fe = z.Symbol, ht = z.Uint8Array, Ze = Me.propertyIsEnumerable, St =
|
|
15260
|
+
), Ae = H ? z.Buffer : void 0, Fe = z.Symbol, ht = z.Uint8Array, Ze = Me.propertyIsEnumerable, St = fe.splice, yt = Fe ? Fe.toStringTag : void 0, Wt = Object.getOwnPropertySymbols, ot = Ae ? Ae.isBuffer : void 0, He = Ce(Object.keys, Object), Je = Ta(z, "DataView"), lt = Ta(z, "Map"), Ve = Ta(z, "Promise"), ct = Ta(z, "Set"), $t = Ta(z, "WeakMap"), pt = Ta(Object, "create"), ze = wo(Je), Pe = wo(lt), et = wo(Ve), Mt = wo(ct), ut = wo($t), kt = Fe ? Fe.prototype : void 0, dn = kt ? kt.valueOf : void 0;
|
|
15269
15261
|
function Zt(W) {
|
|
15270
15262
|
var J = -1, pe = W == null ? 0 : W.length;
|
|
15271
15263
|
for (this.clear(); ++J < pe; ) {
|
|
@@ -15524,8 +15516,8 @@ ld.exports;
|
|
|
15524
15516
|
var ur = qn(An(W), An(J), De, cn, wt, yn);
|
|
15525
15517
|
return yn.delete(W), ur;
|
|
15526
15518
|
case T:
|
|
15527
|
-
if (
|
|
15528
|
-
return
|
|
15519
|
+
if (dn)
|
|
15520
|
+
return dn.call(W) == dn.call(J);
|
|
15529
15521
|
}
|
|
15530
15522
|
return !1;
|
|
15531
15523
|
}
|
|
@@ -15765,12 +15757,12 @@ var TR = ld.exports, D4 = { exports: {} };
|
|
|
15765
15757
|
}
|
|
15766
15758
|
for (var Ce = 0, ne = 0; ne < F.length; ne += 1)
|
|
15767
15759
|
Ce += F[ne].totalCount;
|
|
15768
|
-
for (var Ie = new Array(Ce),
|
|
15760
|
+
for (var Ie = new Array(Ce), fe = 0, ne = 0; ne < H; ne += 1)
|
|
15769
15761
|
for (var Y = 0; Y < F.length; Y += 1)
|
|
15770
|
-
ne < ee[Y].length && (Ie[
|
|
15762
|
+
ne < ee[Y].length && (Ie[fe] = ee[Y][ne], fe += 1);
|
|
15771
15763
|
for (var ne = 0; ne < P; ne += 1)
|
|
15772
15764
|
for (var Y = 0; Y < F.length; Y += 1)
|
|
15773
|
-
ne < X[Y].length && (Ie[
|
|
15765
|
+
ne < X[Y].length && (Ie[fe] = X[Y][ne], fe += 1);
|
|
15774
15766
|
return Ie;
|
|
15775
15767
|
}, Z = function(z, F, j) {
|
|
15776
15768
|
for (var H = u.getRSBlocks(z, F), P = d(), ee = 0; ee < j.length; ee += 1) {
|
|
@@ -17057,7 +17049,7 @@ const WR = (e) => {
|
|
|
17057
17049
|
V.key === "Enter" && _ && _();
|
|
17058
17050
|
};
|
|
17059
17051
|
}, [_]);
|
|
17060
|
-
|
|
17052
|
+
he(() => {
|
|
17061
17053
|
A(n === null ? "" : n.toString());
|
|
17062
17054
|
}, [n]);
|
|
17063
17055
|
const [D, I] = Se(!1), R = A4(t, n ? n.toString() ?? null : null, D), M = le(null), L = (((N = M.current) == null ? void 0 : N.scrollWidth) ?? 0) > (((U = M.current) == null ? void 0 : U.clientWidth) ?? 0), B = (q = M.current) == null ? void 0 : q.getBoundingClientRect();
|
|
@@ -17236,11 +17228,11 @@ const s0 = (e) => {
|
|
|
17236
17228
|
v(r, _(r));
|
|
17237
17229
|
}, t[15] = r, t[16] = _, t[17] = v, t[18] = Z) : Z = t[18];
|
|
17238
17230
|
let K;
|
|
17239
|
-
t[19] !== r || t[20] !== _ || t[21] !== U || t[22] !== v ? (K = [U, r, _, v], t[19] = r, t[20] = _, t[21] = U, t[22] = v, t[23] = K) : K = t[23],
|
|
17231
|
+
t[19] !== r || t[20] !== _ || t[21] !== U || t[22] !== v ? (K = [U, r, _, v], t[19] = r, t[20] = _, t[21] = U, t[22] = v, t[23] = K) : K = t[23], he(Z, K);
|
|
17240
17232
|
let Q, z;
|
|
17241
17233
|
t[24] !== x ? (Q = () => {
|
|
17242
17234
|
x && B(!0);
|
|
17243
|
-
}, z = [x], t[24] = x, t[25] = Q, t[26] = z) : (Q = t[25], z = t[26]),
|
|
17235
|
+
}, z = [x], t[24] = x, t[25] = Q, t[26] = z) : (Q = t[25], z = t[26]), he(Q, z);
|
|
17244
17236
|
const F = M !== void 0;
|
|
17245
17237
|
let j;
|
|
17246
17238
|
t[27] !== E || t[28] !== s || t[29] !== o || t[30] !== v || t[31] !== L ? (j = (de) => {
|
|
@@ -17343,15 +17335,15 @@ const I4 = (e) => {
|
|
|
17343
17335
|
let z, F;
|
|
17344
17336
|
t[15] !== k ? (z = () => {
|
|
17345
17337
|
k && S(!0);
|
|
17346
|
-
}, F = [k], t[15] = k, t[16] = z, t[17] = F) : (z = t[16], F = t[17]),
|
|
17338
|
+
}, F = [k], t[15] = k, t[16] = z, t[17] = F) : (z = t[16], F = t[17]), he(z, F);
|
|
17347
17339
|
const j = N !== void 0;
|
|
17348
17340
|
let H;
|
|
17349
17341
|
t[18] !== V || t[19] !== I || t[20] !== w || t[21] !== o || t[22] !== x || t[23] !== A ? (H = (Ce) => {
|
|
17350
|
-
const Ie = Ce.target.value,
|
|
17351
|
-
I(
|
|
17342
|
+
const Ie = Ce.target.value, fe = Ie == null || Ie === "" ? null : Ie;
|
|
17343
|
+
I(fe), o && o.forEach((me) => x(me, null, {
|
|
17352
17344
|
shouldDirty: !0,
|
|
17353
17345
|
shouldValidate: A
|
|
17354
|
-
})), w && w(
|
|
17346
|
+
})), w && w(fe), V && V(Ce);
|
|
17355
17347
|
}, t[18] = V, t[19] = I, t[20] = w, t[21] = o, t[22] = x, t[23] = A, t[24] = H) : H = t[24];
|
|
17356
17348
|
const P = H;
|
|
17357
17349
|
let ee;
|
|
@@ -17438,7 +17430,7 @@ const I4 = (e) => {
|
|
|
17438
17430
|
}, [E, v, s, $, L, n]), Q = re(() => {
|
|
17439
17431
|
G(!1), D();
|
|
17440
17432
|
}, [D]), z = le(null), F = (((H = z.current) == null ? void 0 : H.scrollWidth) ?? 0) > (((P = z.current) == null ? void 0 : P.clientWidth) ?? 0), j = (ee = z.current) == null ? void 0 : ee.getBoundingClientRect();
|
|
17441
|
-
return pg(e, () => z.current, [z]),
|
|
17433
|
+
return pg(e, () => z.current, [z]), he(() => {
|
|
17442
17434
|
A && B(!0);
|
|
17443
17435
|
}, [A]), /* @__PURE__ */ ae(t, { label: i, required: u, disabled: U, hidden: d, withoutLabel: h ?? !1, isInvalid: q, hint: _, className: x, children: [
|
|
17444
17436
|
/* @__PURE__ */ ae("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
@@ -19866,7 +19858,7 @@ function wP(e) {
|
|
|
19866
19858
|
setCaretTimeout: null,
|
|
19867
19859
|
focusTimeout: null
|
|
19868
19860
|
});
|
|
19869
|
-
|
|
19861
|
+
he(function() {
|
|
19870
19862
|
return R(!0), function() {
|
|
19871
19863
|
clearTimeout(L.current.setCaretTimeout), clearTimeout(L.current.focusTimeout);
|
|
19872
19864
|
};
|
|
@@ -19892,19 +19884,19 @@ function wP(e) {
|
|
|
19892
19884
|
ne === void 0 && (ne = "");
|
|
19893
19885
|
var oe = te.input, de = te.source, Te = te.event, _e = te.numAsString, Ce;
|
|
19894
19886
|
if (oe) {
|
|
19895
|
-
var Ie = te.inputValue || oe.value,
|
|
19896
|
-
oe.value = ne, Ce = V(Ie, ne,
|
|
19887
|
+
var Ie = te.inputValue || oe.value, fe = op(oe);
|
|
19888
|
+
oe.value = ne, Ce = V(Ie, ne, fe), Ce !== void 0 && U(oe, Ce, ne);
|
|
19897
19889
|
}
|
|
19898
19890
|
ne !== T && E(N(ne, _e), { event: Te, source: de });
|
|
19899
19891
|
};
|
|
19900
|
-
|
|
19892
|
+
he(function() {
|
|
19901
19893
|
var te = O.current, ne = te.formattedValue, oe = te.numAsString;
|
|
19902
19894
|
(T !== ne || $ !== oe) && E(N(T, $), {
|
|
19903
19895
|
event: void 0,
|
|
19904
19896
|
source: Ql.props
|
|
19905
19897
|
});
|
|
19906
19898
|
}, [T, $]);
|
|
19907
|
-
var Z = M.current ? op(M.current) : void 0, K = typeof window < "u" ? ws :
|
|
19899
|
+
var Z = M.current ? op(M.current) : void 0, K = typeof window < "u" ? ws : he;
|
|
19908
19900
|
K(function() {
|
|
19909
19901
|
var te = M.current;
|
|
19910
19902
|
if (T !== O.current.formattedValue && te) {
|
|
@@ -19915,8 +19907,8 @@ function wP(e) {
|
|
|
19915
19907
|
var Q = function(te, ne, oe) {
|
|
19916
19908
|
var de = ne.target, Te = S.current ? dP(S.current, de.selectionEnd) : r3(T, te), _e = Object.assign(Object.assign({}, Te), { lastValue: T }), Ce = s(te, _e), Ie = B(Ce);
|
|
19917
19909
|
if (Ce = s(Ie, void 0), d && !d(N(Ie, Ce))) {
|
|
19918
|
-
var
|
|
19919
|
-
return
|
|
19910
|
+
var fe = ne.target, me = op(fe), Me = V(te, T, me);
|
|
19911
|
+
return fe.value = T, U(fe, Me, T), !1;
|
|
19920
19912
|
}
|
|
19921
19913
|
return G({
|
|
19922
19914
|
formattedValue: Ie,
|
|
@@ -19940,13 +19932,13 @@ function wP(e) {
|
|
|
19940
19932
|
oe === "ArrowLeft" || oe === "Backspace" ? Ce = Math.max(de - 1, 0) : oe === "ArrowRight" ? Ce = Math.min(de + 1, _e.length) : oe === "Delete" && (Ce = de);
|
|
19941
19933
|
var Ie = 0;
|
|
19942
19934
|
oe === "Delete" && de === Te && (Ie = 1);
|
|
19943
|
-
var
|
|
19944
|
-
if (Ce === void 0 || de !== Te && !
|
|
19935
|
+
var fe = oe === "ArrowLeft" || oe === "ArrowRight";
|
|
19936
|
+
if (Ce === void 0 || de !== Te && !fe) {
|
|
19945
19937
|
h(te), z(ne, Ie);
|
|
19946
19938
|
return;
|
|
19947
19939
|
}
|
|
19948
19940
|
var me = Ce;
|
|
19949
|
-
if (
|
|
19941
|
+
if (fe) {
|
|
19950
19942
|
var Me = oe === "ArrowLeft" ? "left" : "right";
|
|
19951
19943
|
me = q(_e, Ce, Me), me !== Ce && te.preventDefault();
|
|
19952
19944
|
} else oe === "Delete" && !y(_e[Ce]) ? me = q(_e, Ce, "right") : oe === "Backspace" && !y(_e[Ce]) && (me = q(_e, Ce, "left"));
|
|
@@ -20241,9 +20233,9 @@ const Be = /* @__PURE__ */ IP(NP), LP = "_container_1jre8_1", FP = "_no-value_1j
|
|
|
20241
20233
|
texts: i
|
|
20242
20234
|
}) => {
|
|
20243
20235
|
const [o, a] = Se(t ?? ""), [s, l] = Se(!1), [c, u] = Se(!1);
|
|
20244
|
-
|
|
20236
|
+
he(() => {
|
|
20245
20237
|
a(t ?? "");
|
|
20246
|
-
}, [t]),
|
|
20238
|
+
}, [t]), he(() => {
|
|
20247
20239
|
if ((o || null) === (t || null)) return;
|
|
20248
20240
|
const f = setTimeout(() => {
|
|
20249
20241
|
e.setFilterValue(o ?? null);
|
|
@@ -21272,9 +21264,9 @@ const WP = "_multiselect_1gflo_1", UP = "_multiselect-menu_1gflo_35", HP = "_dro
|
|
|
21272
21264
|
($) => T.find((A) => A.value === $)
|
|
21273
21265
|
);
|
|
21274
21266
|
}, [f, p, h, n]), b = le(null), w = le(null), [y, _] = Se(!1);
|
|
21275
|
-
return
|
|
21267
|
+
return he(() => {
|
|
21276
21268
|
y && w.current && w.current.focus();
|
|
21277
|
-
}, [y]),
|
|
21269
|
+
}, [y]), he(() => {
|
|
21278
21270
|
g.length < zb && u("");
|
|
21279
21271
|
}, [g]), /* @__PURE__ */ ae(
|
|
21280
21272
|
i,
|
|
@@ -21503,7 +21495,7 @@ function a3(e) {
|
|
|
21503
21495
|
function ks(e) {
|
|
21504
21496
|
return e ? $s(e) ? e.document : f0(e) ? h0(e) ? e : Fc(e) || a3(e) ? e.ownerDocument : document : document : document;
|
|
21505
21497
|
}
|
|
21506
|
-
const ii = uf ? ws :
|
|
21498
|
+
const ii = uf ? ws : he;
|
|
21507
21499
|
function p0(e) {
|
|
21508
21500
|
const t = le(e);
|
|
21509
21501
|
return ii(() => {
|
|
@@ -21552,7 +21544,7 @@ function dd(e) {
|
|
|
21552
21544
|
}
|
|
21553
21545
|
function xm(e) {
|
|
21554
21546
|
const t = le();
|
|
21555
|
-
return
|
|
21547
|
+
return he(() => {
|
|
21556
21548
|
t.current = e;
|
|
21557
21549
|
}, [e]), t.current;
|
|
21558
21550
|
}
|
|
@@ -21724,7 +21716,7 @@ function XN() {
|
|
|
21724
21716
|
const l3 = /* @__PURE__ */ hn(null);
|
|
21725
21717
|
function KN(e) {
|
|
21726
21718
|
const t = ve(l3);
|
|
21727
|
-
|
|
21719
|
+
he(() => {
|
|
21728
21720
|
if (!t)
|
|
21729
21721
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
21730
21722
|
return t(e);
|
|
@@ -21788,7 +21780,7 @@ function tL(e) {
|
|
|
21788
21780
|
announce: o,
|
|
21789
21781
|
announcement: a
|
|
21790
21782
|
} = XN(), s = Bc("DndLiveRegion"), [l, c] = Se(!1);
|
|
21791
|
-
if (
|
|
21783
|
+
if (he(() => {
|
|
21792
21784
|
c(!0);
|
|
21793
21785
|
}, []), KN(se(() => ({
|
|
21794
21786
|
onDragStart(d) {
|
|
@@ -22760,7 +22752,7 @@ function AL(e) {
|
|
|
22760
22752
|
const k = g.current.x * b.current.x, T = g.current.y * b.current.y;
|
|
22761
22753
|
x.scrollBy(k, T);
|
|
22762
22754
|
}, []), v = se(() => s === pd.TreeOrder ? [...c].reverse() : c, [s, c]);
|
|
22763
|
-
|
|
22755
|
+
he(
|
|
22764
22756
|
() => {
|
|
22765
22757
|
if (!o || !c.length || !w) {
|
|
22766
22758
|
m();
|
|
@@ -22905,21 +22897,21 @@ function NL(e, t) {
|
|
|
22905
22897
|
}
|
|
22906
22898
|
return b;
|
|
22907
22899
|
}, [e, o, n, d, l]);
|
|
22908
|
-
return
|
|
22900
|
+
return he(() => {
|
|
22909
22901
|
u.current = e;
|
|
22910
|
-
}, [e]),
|
|
22902
|
+
}, [e]), he(
|
|
22911
22903
|
() => {
|
|
22912
22904
|
d || h();
|
|
22913
22905
|
},
|
|
22914
22906
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
22915
22907
|
[n, d]
|
|
22916
|
-
),
|
|
22908
|
+
), he(
|
|
22917
22909
|
() => {
|
|
22918
22910
|
o && o.length > 0 && a(null);
|
|
22919
22911
|
},
|
|
22920
22912
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
22921
22913
|
[JSON.stringify(o)]
|
|
22922
|
-
),
|
|
22914
|
+
), he(
|
|
22923
22915
|
() => {
|
|
22924
22916
|
d || typeof s != "number" || p.current !== null || (p.current = setTimeout(() => {
|
|
22925
22917
|
h(), p.current = null;
|
|
@@ -22962,7 +22954,7 @@ function FL(e) {
|
|
|
22962
22954
|
} = window;
|
|
22963
22955
|
return new o(r);
|
|
22964
22956
|
}, [r, n]);
|
|
22965
|
-
return
|
|
22957
|
+
return he(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
|
|
22966
22958
|
}
|
|
22967
22959
|
function df(e) {
|
|
22968
22960
|
let {
|
|
@@ -22981,7 +22973,7 @@ function df(e) {
|
|
|
22981
22973
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
22982
22974
|
[n]
|
|
22983
22975
|
);
|
|
22984
|
-
return
|
|
22976
|
+
return he(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
|
|
22985
22977
|
}
|
|
22986
22978
|
function jL(e) {
|
|
22987
22979
|
return new v0(Os(e), e);
|
|
@@ -23032,7 +23024,7 @@ function BL(e) {
|
|
|
23032
23024
|
const Xb = [];
|
|
23033
23025
|
function zL(e) {
|
|
23034
23026
|
const t = le(e), n = jc((r) => e ? r && r !== Xb && e && t.current && e.parentNode === t.current.parentNode ? r : g0(e) : Xb, [e]);
|
|
23035
|
-
return
|
|
23027
|
+
return he(() => {
|
|
23036
23028
|
t.current = e;
|
|
23037
23029
|
}, [e]), n;
|
|
23038
23030
|
}
|
|
@@ -23041,7 +23033,7 @@ function WL(e) {
|
|
|
23041
23033
|
const a = lp(o.target);
|
|
23042
23034
|
a && n((s) => s ? (s.set(a, Sm(a)), new Map(s)) : null);
|
|
23043
23035
|
}, []);
|
|
23044
|
-
return
|
|
23036
|
+
return he(() => {
|
|
23045
23037
|
const o = r.current;
|
|
23046
23038
|
if (e !== o) {
|
|
23047
23039
|
a(o);
|
|
@@ -23067,19 +23059,19 @@ function WL(e) {
|
|
|
23067
23059
|
function Kb(e, t) {
|
|
23068
23060
|
t === void 0 && (t = []);
|
|
23069
23061
|
const n = le(null);
|
|
23070
|
-
return
|
|
23062
|
+
return he(
|
|
23071
23063
|
() => {
|
|
23072
23064
|
n.current = null;
|
|
23073
23065
|
},
|
|
23074
23066
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23075
23067
|
t
|
|
23076
|
-
),
|
|
23068
|
+
), he(() => {
|
|
23077
23069
|
const r = e !== jr;
|
|
23078
23070
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
23079
23071
|
}, [e]), n.current ? fd(e, n.current) : jr;
|
|
23080
23072
|
}
|
|
23081
23073
|
function UL(e) {
|
|
23082
|
-
|
|
23074
|
+
he(
|
|
23083
23075
|
() => {
|
|
23084
23076
|
if (!uf)
|
|
23085
23077
|
return;
|
|
@@ -23371,7 +23363,7 @@ function eF(e) {
|
|
|
23371
23363
|
activatorEvent: r,
|
|
23372
23364
|
draggableNodes: i
|
|
23373
23365
|
} = ve(ff), o = xm(r), a = xm(n == null ? void 0 : n.id);
|
|
23374
|
-
return
|
|
23366
|
+
return he(() => {
|
|
23375
23367
|
if (!t && !r && o && a != null) {
|
|
23376
23368
|
if (!m0(o) || document.activeElement === o.target)
|
|
23377
23369
|
return;
|
|
@@ -23552,13 +23544,13 @@ const iF = /* @__PURE__ */ zt(function(e) {
|
|
|
23552
23544
|
scrollableAncestors: oe,
|
|
23553
23545
|
scrollableAncestorRects: de,
|
|
23554
23546
|
windowRect: ne
|
|
23555
|
-
}), _e = K ? Ka(K, T) : null, Ce = WL(oe), Ie = Kb(Ce),
|
|
23547
|
+
}), _e = K ? Ka(K, T) : null, Ce = WL(oe), Ie = Kb(Ce), fe = Kb(Ce, [F]), me = Ka(Te, Ie), Me = Y ? fL(Y, Te) : null, tt = O && Me ? u({
|
|
23556
23548
|
active: O,
|
|
23557
23549
|
collisionRect: Me,
|
|
23558
23550
|
droppableRects: q,
|
|
23559
23551
|
droppableContainers: N,
|
|
23560
23552
|
pointerCoordinates: _e
|
|
23561
|
-
}) : null, ke = aL(tt, "id"), [xe, Ue] = Se(null), nt = ce ? Te : Ka(Te,
|
|
23553
|
+
}) : null, ke = aL(tt, "id"), [xe, Ue] = Se(null), nt = ce ? Te : Ka(Te, fe), Rt = uL(nt, (i = xe == null ? void 0 : xe.rect) != null ? i : null, F), Ae = le(null), Fe = re(
|
|
23562
23554
|
(ot, He) => {
|
|
23563
23555
|
let {
|
|
23564
23556
|
sensor: Je,
|
|
@@ -23655,7 +23647,7 @@ const iF = /* @__PURE__ */ zt(function(e) {
|
|
|
23655
23647
|
let kt = null;
|
|
23656
23648
|
if (Pe && ut) {
|
|
23657
23649
|
const {
|
|
23658
|
-
cancelDrop:
|
|
23650
|
+
cancelDrop: dn
|
|
23659
23651
|
} = L.current;
|
|
23660
23652
|
kt = {
|
|
23661
23653
|
activatorEvent: ct,
|
|
@@ -23663,17 +23655,17 @@ const iF = /* @__PURE__ */ zt(function(e) {
|
|
|
23663
23655
|
collisions: et,
|
|
23664
23656
|
delta: ut,
|
|
23665
23657
|
over: Mt
|
|
23666
|
-
}, ze === $n.DragEnd && typeof
|
|
23658
|
+
}, ze === $n.DragEnd && typeof dn == "function" && await Promise.resolve(dn(kt)) && (ze = $n.DragCancel);
|
|
23667
23659
|
}
|
|
23668
23660
|
E.current = null, hl(() => {
|
|
23669
23661
|
g({
|
|
23670
23662
|
type: ze
|
|
23671
23663
|
}), _(Yi.Uninitialized), Ue(null), I(null), M(null), Ae.current = null;
|
|
23672
|
-
const
|
|
23664
|
+
const dn = ze === $n.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
23673
23665
|
if (kt) {
|
|
23674
|
-
const Zt = L.current[
|
|
23666
|
+
const Zt = L.current[dn];
|
|
23675
23667
|
Zt == null || Zt(kt), b({
|
|
23676
|
-
type:
|
|
23668
|
+
type: dn,
|
|
23677
23669
|
event: kt
|
|
23678
23670
|
});
|
|
23679
23671
|
}
|
|
@@ -23701,7 +23693,7 @@ const iF = /* @__PURE__ */ zt(function(e) {
|
|
|
23701
23693
|
}, [k, Fe]), Ze = PL(c, ht);
|
|
23702
23694
|
UL(c), ii(() => {
|
|
23703
23695
|
F && y === Yi.Initializing && _(Yi.Initialized);
|
|
23704
|
-
}, [F, y]),
|
|
23696
|
+
}, [F, y]), he(
|
|
23705
23697
|
() => {
|
|
23706
23698
|
const {
|
|
23707
23699
|
onDragMove: ot
|
|
@@ -23732,7 +23724,7 @@ const iF = /* @__PURE__ */ zt(function(e) {
|
|
|
23732
23724
|
},
|
|
23733
23725
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23734
23726
|
[me.x, me.y]
|
|
23735
|
-
),
|
|
23727
|
+
), he(
|
|
23736
23728
|
() => {
|
|
23737
23729
|
const {
|
|
23738
23730
|
active: ot,
|
|
@@ -23952,9 +23944,9 @@ function dF(e) {
|
|
|
23952
23944
|
}), _ = re((T, $) => {
|
|
23953
23945
|
y && ($ && (y.unobserve($), d.current = !1), T && y.observe(T));
|
|
23954
23946
|
}, [y]), [v, x] = dd(_), k = tc(t);
|
|
23955
|
-
return
|
|
23947
|
+
return he(() => {
|
|
23956
23948
|
!y || !v.current || (y.disconnect(), d.current = !1, y.observe(v.current));
|
|
23957
|
-
}, [v, y]),
|
|
23949
|
+
}, [v, y]), he(
|
|
23958
23950
|
() => (s({
|
|
23959
23951
|
type: $n.RegisterDroppable,
|
|
23960
23952
|
element: {
|
|
@@ -23972,7 +23964,7 @@ function dF(e) {
|
|
|
23972
23964
|
})),
|
|
23973
23965
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23974
23966
|
[r]
|
|
23975
|
-
),
|
|
23967
|
+
), he(() => {
|
|
23976
23968
|
n !== u.current.disabled && (s({
|
|
23977
23969
|
type: $n.SetDroppableDisabled,
|
|
23978
23970
|
id: r,
|
|
@@ -24104,7 +24096,7 @@ function vF(e) {
|
|
|
24104
24096
|
} = lF(), d = Bc(T3, n), f = s.rect !== null, h = se(() => r.map((x) => typeof x == "object" && "id" in x ? x.id : x), [r]), p = a != null, m = a ? h.indexOf(a.id) : -1, g = c ? h.indexOf(c.id) : -1, b = le(h), w = !hF(h, b.current), y = g !== -1 && m === -1 || w, _ = pF(o);
|
|
24105
24097
|
ii(() => {
|
|
24106
24098
|
w && p && u(h);
|
|
24107
|
-
}, [w, h, p, u]),
|
|
24099
|
+
}, [w, h, p, u]), he(() => {
|
|
24108
24100
|
b.current = h;
|
|
24109
24101
|
}, [h]);
|
|
24110
24102
|
const v = se(
|
|
@@ -24181,7 +24173,7 @@ function CF(e) {
|
|
|
24181
24173
|
}
|
|
24182
24174
|
}
|
|
24183
24175
|
n !== s.current && (s.current = n);
|
|
24184
|
-
}, [t, n, r, i]),
|
|
24176
|
+
}, [t, n, r, i]), he(() => {
|
|
24185
24177
|
o && a(null);
|
|
24186
24178
|
}, [o]), o;
|
|
24187
24179
|
}
|
|
@@ -24281,9 +24273,9 @@ function SF(e) {
|
|
|
24281
24273
|
node: T,
|
|
24282
24274
|
rect: k
|
|
24283
24275
|
});
|
|
24284
|
-
return
|
|
24276
|
+
return he(() => {
|
|
24285
24277
|
q && F.current.newIndex !== Q && (F.current.newIndex = Q), d !== F.current.containerId && (F.current.containerId = d), u !== F.current.items && (F.current.items = u);
|
|
24286
|
-
}, [q, Q, d, u]),
|
|
24278
|
+
}, [q, Q, d, u]), he(() => {
|
|
24287
24279
|
if (z === F.current.activeId)
|
|
24288
24280
|
return;
|
|
24289
24281
|
if (z != null && F.current.activeId == null) {
|
|
@@ -24572,9 +24564,9 @@ const $F = "_column-menu_wt2wp_1", kF = "_column-menu-item_wt2wp_4", OF = "_dang
|
|
|
24572
24564
|
}) => {
|
|
24573
24565
|
var p, m, g;
|
|
24574
24566
|
const [l, c] = Se(""), u = le(null), d = le(null), [f, h] = Se(!1);
|
|
24575
|
-
return
|
|
24567
|
+
return he(() => {
|
|
24576
24568
|
f || c("");
|
|
24577
|
-
}, [f]),
|
|
24569
|
+
}, [f]), he(() => {
|
|
24578
24570
|
f && d.current && d.current.focus();
|
|
24579
24571
|
}, [f]), /* @__PURE__ */ ae(
|
|
24580
24572
|
r,
|
|
@@ -24680,7 +24672,7 @@ const $F = "_column-menu_wt2wp_1", kF = "_column-menu-item_wt2wp_4", OF = "_dang
|
|
|
24680
24672
|
const [w, y] = Se(
|
|
24681
24673
|
r.value ? r.value.toString() : ""
|
|
24682
24674
|
);
|
|
24683
|
-
return
|
|
24675
|
+
return he(() => {
|
|
24684
24676
|
e && y(r.value ? r.value.toString() : "");
|
|
24685
24677
|
}, [e, r.value]), /* @__PURE__ */ ae(
|
|
24686
24678
|
s,
|
|
@@ -24985,13 +24977,13 @@ const $F = "_column-menu_wt2wp_1", kF = "_column-menu-item_wt2wp_4", OF = "_dang
|
|
|
24985
24977
|
i
|
|
24986
24978
|
]
|
|
24987
24979
|
);
|
|
24988
|
-
return
|
|
24980
|
+
return he(() => {
|
|
24989
24981
|
if (c === void 0)
|
|
24990
24982
|
return;
|
|
24991
24983
|
u(void 0);
|
|
24992
24984
|
const g = [...t.entries()].findIndex((b) => b[1] === c);
|
|
24993
24985
|
l((b) => [g, b[1]]);
|
|
24994
|
-
}, [c, l, t]),
|
|
24986
|
+
}, [c, l, t]), he(() => {
|
|
24995
24987
|
if (d === void 0)
|
|
24996
24988
|
return;
|
|
24997
24989
|
f(void 0);
|
|
@@ -25000,19 +24992,19 @@ const $F = "_column-menu_wt2wp_1", kF = "_column-menu-item_wt2wp_4", OF = "_dang
|
|
|
25000
24992
|
const b = Math.floor(g / r);
|
|
25001
24993
|
i(b);
|
|
25002
24994
|
}
|
|
25003
|
-
}, [i, r, d, n, l]),
|
|
24995
|
+
}, [i, r, d, n, l]), he(() => {
|
|
25004
24996
|
if ((e == null ? void 0 : e.onCellSelect) === void 0)
|
|
25005
24997
|
return;
|
|
25006
24998
|
const g = new AbortController();
|
|
25007
24999
|
return window.addEventListener("keydown", m, { signal: g.signal }), () => g.abort();
|
|
25008
|
-
}, [m, e == null ? void 0 : e.onCellSelect]),
|
|
25000
|
+
}, [m, e == null ? void 0 : e.onCellSelect]), he(() => {
|
|
25009
25001
|
var g;
|
|
25010
25002
|
(g = o.current) == null || g.scrollIntoView({
|
|
25011
25003
|
behavior: "instant",
|
|
25012
25004
|
block: "center",
|
|
25013
25005
|
inline: "nearest"
|
|
25014
25006
|
});
|
|
25015
|
-
}, [o, s]),
|
|
25007
|
+
}, [o, s]), he(() => {
|
|
25016
25008
|
var b;
|
|
25017
25009
|
if ((e == null ? void 0 : e.onCellSelect) === void 0)
|
|
25018
25010
|
return;
|
|
@@ -25035,7 +25027,7 @@ const $F = "_column-menu_wt2wp_1", kF = "_column-menu-item_wt2wp_4", OF = "_dang
|
|
|
25035
25027
|
var o;
|
|
25036
25028
|
t.current[i] = r, r && (r.style.transform = `translateY(${((o = e.current) == null ? void 0 : o.scrollTop) ?? 0}px)`);
|
|
25037
25029
|
};
|
|
25038
|
-
return
|
|
25030
|
+
return he(() => {
|
|
25039
25031
|
const r = e.current;
|
|
25040
25032
|
if (!r) return;
|
|
25041
25033
|
const i = () => {
|
|
@@ -25083,7 +25075,7 @@ const $F = "_column-menu_wt2wp_1", kF = "_column-menu-item_wt2wp_4", OF = "_dang
|
|
|
25083
25075
|
getRowProps: A,
|
|
25084
25076
|
UI: { CheckComponent: S }
|
|
25085
25077
|
}, O) => {
|
|
25086
|
-
var de, Te, _e, Ce, Ie,
|
|
25078
|
+
var de, Te, _e, Ce, Ie, fe, me, Me, tt;
|
|
25087
25079
|
const E = {
|
|
25088
25080
|
boolean: (ke) => MP(ke, n),
|
|
25089
25081
|
date: EP,
|
|
@@ -25121,7 +25113,7 @@ const $F = "_column-menu_wt2wp_1", kF = "_column-menu-item_wt2wp_4", OF = "_dang
|
|
|
25121
25113
|
right: xe === "right" ? `${ke.getAfter("right")}px` : void 0
|
|
25122
25114
|
};
|
|
25123
25115
|
}, Z = e.getState().sorting;
|
|
25124
|
-
|
|
25116
|
+
he(() => {
|
|
25125
25117
|
var ke, xe;
|
|
25126
25118
|
if (Z.length > 0) {
|
|
25127
25119
|
const Ue = Z[0];
|
|
@@ -25288,7 +25280,7 @@ const $F = "_column-menu_wt2wp_1", kF = "_column-menu-item_wt2wp_4", OF = "_dang
|
|
|
25288
25280
|
);
|
|
25289
25281
|
}) }) }, ke.id)) }),
|
|
25290
25282
|
/* @__PURE__ */ ae("div", { className: Be("tbody", Ge.tbody), children: [
|
|
25291
|
-
(((
|
|
25283
|
+
(((fe = (Ie = e.options) == null ? void 0 : Ie.data) == null ? void 0 : fe.length) ?? 0) === 0 ? /* @__PURE__ */ C("div", { className: Be("empty-table-alert", Ge.emptyTableAlert), children: m.emptyTable }) : null,
|
|
25292
25284
|
e.getTopRows().map((ke, xe) => oe(ke, xe, xe)),
|
|
25293
25285
|
e.getCenterRows().map((ke, xe) => oe(ke, xe))
|
|
25294
25286
|
] }),
|
|
@@ -26114,7 +26106,7 @@ const Rj = ([e, t], n, r) => {
|
|
|
26114
26106
|
a("documentList");
|
|
26115
26107
|
}
|
|
26116
26108
|
}, [l, t, r, n, o, a]);
|
|
26117
|
-
|
|
26109
|
+
he(() => {
|
|
26118
26110
|
c(!0);
|
|
26119
26111
|
}, [c]);
|
|
26120
26112
|
const u = re(async () => {
|
|
@@ -26131,7 +26123,7 @@ const Rj = ([e, t], n, r) => {
|
|
|
26131
26123
|
a("documents-types");
|
|
26132
26124
|
}
|
|
26133
26125
|
}, [l, t, n, o, a]);
|
|
26134
|
-
|
|
26126
|
+
he(() => {
|
|
26135
26127
|
u();
|
|
26136
26128
|
}, [u]);
|
|
26137
26129
|
const d = re(async (y, _) => {
|
|
@@ -26799,7 +26791,7 @@ const Yj = "_side-content-bar_16o0s_1", Gj = "_mobile_16o0s_12", Zj = "_expanded
|
|
|
26799
26791
|
}
|
|
26800
26792
|
const T = k;
|
|
26801
26793
|
let $, A;
|
|
26802
|
-
t[0] !== m || t[1] !== u || t[2] !== g || t[3] !== n ? ($ = () => (u ? m(u) : typeof n == "string" && n && m(n), () => g()), A = [u, m, g, n], t[0] = m, t[1] = u, t[2] = g, t[3] = n, t[4] = $, t[5] = A) : ($ = t[4], A = t[5]),
|
|
26794
|
+
t[0] !== m || t[1] !== u || t[2] !== g || t[3] !== n ? ($ = () => (u ? m(u) : typeof n == "string" && n && m(n), () => g()), A = [u, m, g, n], t[0] = m, t[1] = u, t[2] = g, t[3] = n, t[4] = $, t[5] = A) : ($ = t[4], A = t[5]), he($, A);
|
|
26803
26795
|
let S;
|
|
26804
26796
|
t[6] === Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
26805
26797
|
onSwipedLeft: (Q) => {
|
|
@@ -26813,7 +26805,7 @@ const Yj = "_side-content-bar_16o0s_1", Gj = "_mobile_16o0s_12", Zj = "_expanded
|
|
|
26813
26805
|
let I, R;
|
|
26814
26806
|
t[7] !== f ? (R = () => {
|
|
26815
26807
|
_(f);
|
|
26816
|
-
}, I = [f], t[7] = f, t[8] = I, t[9] = R) : (I = t[8], R = t[9]),
|
|
26808
|
+
}, I = [f], t[7] = f, t[8] = I, t[9] = R) : (I = t[8], R = t[9]), he(R, I);
|
|
26817
26809
|
const M = s ? "p-0" : "p-3";
|
|
26818
26810
|
let L;
|
|
26819
26811
|
t[10] !== l || t[11] !== M || t[12] !== T ? (L = ue(T, M, l), t[10] = l, t[11] = M, t[12] = T, t[13] = L) : L = t[13];
|
|
@@ -27057,24 +27049,24 @@ const TB = (e) => `not ${e}`, $B = (e, t) => {
|
|
|
27057
27049
|
}), kB(t);
|
|
27058
27050
|
}, MB = hn(void 0), EB = (e) => e.query || OB(e), dy = (e) => e ? Object.keys(e).reduce((n, r) => (n[A3(r)] = e[r], n), {}) : void 0, D3 = () => {
|
|
27059
27051
|
const e = le(!1);
|
|
27060
|
-
return
|
|
27052
|
+
return he(() => {
|
|
27061
27053
|
e.current = !0;
|
|
27062
27054
|
}, []), e.current;
|
|
27063
27055
|
}, AB = (e) => {
|
|
27064
27056
|
const t = ve(MB), n = () => dy(e) || dy(t), [r, i] = Se(n);
|
|
27065
|
-
return
|
|
27057
|
+
return he(() => {
|
|
27066
27058
|
const o = n();
|
|
27067
27059
|
yB(r, o) || i(o);
|
|
27068
27060
|
}, [e, t]), r;
|
|
27069
27061
|
}, RB = (e) => {
|
|
27070
27062
|
const t = () => EB(e), [n, r] = Se(t);
|
|
27071
|
-
return
|
|
27063
|
+
return he(() => {
|
|
27072
27064
|
const i = t();
|
|
27073
27065
|
n !== i && r(i);
|
|
27074
27066
|
}, [e]), n;
|
|
27075
27067
|
}, DB = (e, t) => {
|
|
27076
27068
|
const n = () => mB(e, t || {}, !!t), [r, i] = Se(n), o = D3();
|
|
27077
|
-
return
|
|
27069
|
+
return he(() => {
|
|
27078
27070
|
if (o) {
|
|
27079
27071
|
const a = n();
|
|
27080
27072
|
return i(a), () => {
|
|
@@ -27084,7 +27076,7 @@ const TB = (e) => `not ${e}`, $B = (e, t) => {
|
|
|
27084
27076
|
}, [e, t]), r;
|
|
27085
27077
|
}, IB = (e) => {
|
|
27086
27078
|
const [t, n] = Se(e.matches);
|
|
27087
|
-
return
|
|
27079
|
+
return he(() => {
|
|
27088
27080
|
const r = (i) => {
|
|
27089
27081
|
n(i.matches);
|
|
27090
27082
|
};
|
|
@@ -27097,8 +27089,8 @@ const TB = (e) => `not ${e}`, $B = (e, t) => {
|
|
|
27097
27089
|
if (!i)
|
|
27098
27090
|
throw new Error("Invalid or missing MediaQuery!");
|
|
27099
27091
|
const o = DB(i, r), a = IB(o);
|
|
27100
|
-
return D3(),
|
|
27101
|
-
}, [a]),
|
|
27092
|
+
return D3(), he(() => {
|
|
27093
|
+
}, [a]), he(() => () => {
|
|
27102
27094
|
o && o.dispose();
|
|
27103
27095
|
}, []), a;
|
|
27104
27096
|
}, PB = ["sm", "md", "lg", "always"], I3 = "ResponsiveContextDropdownItem", NB = (e) => e.type.displayName === I3, P3 = (e) => ({});
|
|
@@ -27227,7 +27219,7 @@ function UB(e, t, n, r) {
|
|
|
27227
27219
|
if (typeof e != "function") throw new TypeError("Expected a function");
|
|
27228
27220
|
t = +t || 0;
|
|
27229
27221
|
var g = !!(n = n || {}).leading, b = !("trailing" in n) || !!n.trailing, w = "maxWait" in n, y = "debounceOnServer" in n && !!n.debounceOnServer, _ = w ? Math.max(+n.maxWait || 0, t) : null;
|
|
27230
|
-
|
|
27222
|
+
he(function() {
|
|
27231
27223
|
return h.current = !0, function() {
|
|
27232
27224
|
h.current = !1;
|
|
27233
27225
|
};
|
|
@@ -27353,21 +27345,21 @@ const VB = "_feedback_esh1j_1", qB = "_feedback-spacer_esh1j_8", fy = {
|
|
|
27353
27345
|
} = X9(), M = (Ie = g.current) == null ? void 0 : Ie.getBoundingClientRect(), L = (M == null ? void 0 : M.x) ?? 0, B = ((M == null ? void 0 : M.x) ?? 0) + ((M == null ? void 0 : M.width) ?? 0), N = (M == null ? void 0 : M.y) ?? 0, U = ((M == null ? void 0 : M.y) ?? 0) + ((M == null ? void 0 : M.height) ?? 0), q = (M == null ? void 0 : M.width) ?? 0, V = (M == null ? void 0 : M.height) ?? 0, G = 5, {
|
|
27354
27346
|
isMobile: Z
|
|
27355
27347
|
} = of(), K = 8, Q = se(() => L ? L > window.innerWidth / 2 - K : !1, [L]), z = se(() => N ? N > window.innerHeight / 2 - K : !1, [N]);
|
|
27356
|
-
|
|
27357
|
-
var
|
|
27358
|
-
e && ((
|
|
27359
|
-
}, [$, e]),
|
|
27348
|
+
he(() => {
|
|
27349
|
+
var fe;
|
|
27350
|
+
e && ((fe = $.current) == null || fe.focus());
|
|
27351
|
+
}, [$, e]), he(() => {
|
|
27360
27352
|
e || E("");
|
|
27361
|
-
}, [e]),
|
|
27353
|
+
}, [e]), he(() => {
|
|
27362
27354
|
s && s(D);
|
|
27363
27355
|
}, [D, s]);
|
|
27364
27356
|
const [F, j] = Se(null);
|
|
27365
|
-
|
|
27357
|
+
he(() => {
|
|
27366
27358
|
e && n.length > 0 ? j(0) : j(null);
|
|
27367
27359
|
}, [n, e]);
|
|
27368
|
-
const H = se(() => F !== null ? n.at(F) ?? null : null, [F, n]), P = re((
|
|
27360
|
+
const H = se(() => F !== null ? n.at(F) ?? null : null, [F, n]), P = re((fe, me) => {
|
|
27369
27361
|
var tt, ke;
|
|
27370
|
-
const Me = document.getElementById(`item-${
|
|
27362
|
+
const Me = document.getElementById(`item-${fe}`);
|
|
27371
27363
|
if (Me) {
|
|
27372
27364
|
const xe = Me.clientHeight ?? 0;
|
|
27373
27365
|
me === "down" ? (tt = A.current) == null || tt.scrollBy({
|
|
@@ -27380,38 +27372,38 @@ const VB = "_feedback_esh1j_1", qB = "_feedback-spacer_esh1j_8", fy = {
|
|
|
27380
27372
|
behavior: "smooth"
|
|
27381
27373
|
});
|
|
27382
27374
|
}
|
|
27383
|
-
}, []), ee = re((
|
|
27375
|
+
}, []), ee = re((fe) => {
|
|
27384
27376
|
if (F === null || p) return;
|
|
27385
|
-
const me = F +
|
|
27386
|
-
me < 0 || me >= n.length || j((Me) => (Me !== null && P(Me,
|
|
27387
|
-
}, [F, n, p, P]), X = re((
|
|
27377
|
+
const me = F + fe;
|
|
27378
|
+
me < 0 || me >= n.length || j((Me) => (Me !== null && P(Me, fe > 0 ? "down" : "up"), me));
|
|
27379
|
+
}, [F, n, p, P]), X = re((fe) => {
|
|
27388
27380
|
if (e)
|
|
27389
|
-
switch (
|
|
27381
|
+
switch (fe.key) {
|
|
27390
27382
|
case "Escape":
|
|
27391
|
-
|
|
27383
|
+
fe.stopPropagation(), fe.preventDefault(), t();
|
|
27392
27384
|
break;
|
|
27393
27385
|
case "Enter":
|
|
27394
|
-
|
|
27386
|
+
fe.stopPropagation(), fe.preventDefault(), p || a(H);
|
|
27395
27387
|
break;
|
|
27396
27388
|
case "ArrowUp":
|
|
27397
|
-
|
|
27389
|
+
fe.stopPropagation(), fe.preventDefault(), ee(-1);
|
|
27398
27390
|
break;
|
|
27399
27391
|
case "ArrowDown":
|
|
27400
|
-
|
|
27392
|
+
fe.stopPropagation(), fe.preventDefault(), ee(1);
|
|
27401
27393
|
break;
|
|
27402
27394
|
}
|
|
27403
27395
|
}, [t, e, ee, H, p, a]), Y = re(() => {
|
|
27404
|
-
I((
|
|
27396
|
+
I((fe) => !fe);
|
|
27405
27397
|
}, []);
|
|
27406
|
-
|
|
27398
|
+
he(() => (window.addEventListener("scroll", Y), () => {
|
|
27407
27399
|
window.removeEventListener("scroll", Y);
|
|
27408
|
-
}), [Y]),
|
|
27400
|
+
}), [Y]), he(() => (window.addEventListener("resize", Y), () => {
|
|
27409
27401
|
window.removeEventListener("resize", Y);
|
|
27410
27402
|
}), [Y]), G9(X), q9([k, T, S], t);
|
|
27411
|
-
const ce = c ?? (u && u.length > 0 ? 250 : 0), te = (u == null ? void 0 : u.reduce((
|
|
27403
|
+
const ce = c ?? (u && u.length > 0 ? 250 : 0), te = (u == null ? void 0 : u.reduce((fe, me) => fe + (me.width ?? 100), 0)) ?? 0, ne = se(() => (o && e && !p && !_) ?? !1, [o, e, p, _]), oe = se(() => (o && e) ?? !1, [o, e]), de = se(() => e && (oe || w !== void 0 || y !== void 0 || v != null && v.length > 0), [e, oe, w, y, v]), Te = 32, _e = Z ? `calc(100vw - ${Te}px)` : `calc(max(${q}px, calc(${ce}px + ${te}px)))`, Ce = se(() => (O.length < 1 && r && r.length > 0 ? r : n).map((fe) => {
|
|
27412
27404
|
var me, Me;
|
|
27413
|
-
return d ? ((me =
|
|
27414
|
-
}).reduce((
|
|
27405
|
+
return d ? ((me = fe.id) == null ? void 0 : me.toString()) ?? "" : ((Me = fe.name) == null ? void 0 : Me.toString()) ?? "";
|
|
27406
|
+
}).reduce((fe, me) => fe.length > me.length ? fe : me, ""), [O, r, n, d]);
|
|
27415
27407
|
return /* @__PURE__ */ ae(bt, { children: [
|
|
27416
27408
|
/* @__PURE__ */ C(dz, { show: e, onClick: t }),
|
|
27417
27409
|
/* @__PURE__ */ ae("div", { className: ue("luminus-dropdown-picker-actions", Rn.actionButtonsContainer, {
|
|
@@ -27423,8 +27415,8 @@ const VB = "_feedback_esh1j_1", qB = "_feedback-spacer_esh1j_8", fy = {
|
|
|
27423
27415
|
ne && /* @__PURE__ */ C("button", { ref: T, type: "button", className: ue("luminus-dropdown-picker-clear-button", Rn.actionButton), onClick: () => !p && a(null), children: /* @__PURE__ */ C(er, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ C(e7, { size: 16 }) }) }),
|
|
27424
27416
|
de ? /* @__PURE__ */ C("div", { ref: S, children: /* @__PURE__ */ ae(L4, { toggle: /* @__PURE__ */ C(N4, { as: P4, className: ue("luminus-dropdown-picker-actions-dropdown", Rn.actionsDropdown), icon: /* @__PURE__ */ C(er, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ C(Px, { size: 16 }) }) }), children: [
|
|
27425
27417
|
oe ? /* @__PURE__ */ C(Ua, { icon: /* @__PURE__ */ C(o7, {}), onClick: () => {
|
|
27426
|
-
var
|
|
27427
|
-
R(d ? ((
|
|
27418
|
+
var fe, me;
|
|
27419
|
+
R(d ? ((fe = o == null ? void 0 : o.id) == null ? void 0 : fe.toString()) ?? "" : ((me = o == null ? void 0 : o.name) == null ? void 0 : me.toString()) ?? "");
|
|
27428
27420
|
}, children: x.copySelection }) : null,
|
|
27429
27421
|
oe && (w || y) ? /* @__PURE__ */ C(Cb, {}) : null,
|
|
27430
27422
|
w ? /* @__PURE__ */ C(Ua, { icon: /* @__PURE__ */ C(i7, {}), onClick: () => {
|
|
@@ -27434,12 +27426,12 @@ const VB = "_feedback_esh1j_1", qB = "_feedback-spacer_esh1j_8", fy = {
|
|
|
27434
27426
|
y();
|
|
27435
27427
|
}, children: x.refreshOptions }) : null,
|
|
27436
27428
|
v && v.length > 0 ? /* @__PURE__ */ C(Cb, {}) : null,
|
|
27437
|
-
v == null ? void 0 : v.map((
|
|
27438
|
-
|
|
27429
|
+
v == null ? void 0 : v.map((fe) => /* @__PURE__ */ ae(Ua, { onClick: () => {
|
|
27430
|
+
fe.onClick(), t();
|
|
27439
27431
|
}, children: [
|
|
27440
|
-
|
|
27441
|
-
|
|
27442
|
-
] },
|
|
27432
|
+
fe.icon ?? null,
|
|
27433
|
+
fe.label
|
|
27434
|
+
] }, fe.label))
|
|
27443
27435
|
] }) }) : null
|
|
27444
27436
|
] }),
|
|
27445
27437
|
/* @__PURE__ */ C("div", { className: ue("luminus-dropdown-picker", Rn.wrapper, {
|
|
@@ -27451,34 +27443,34 @@ const VB = "_feedback_esh1j_1", qB = "_feedback-spacer_esh1j_8", fy = {
|
|
|
27451
27443
|
width: _e,
|
|
27452
27444
|
justifyContent: z ? "flex-end" : "flex-start"
|
|
27453
27445
|
}, children: /* @__PURE__ */ C("div", { ref: k, className: ue("shadow rounded", Rn.dropdown), children: !p && /* @__PURE__ */ ae(bt, { children: [
|
|
27454
|
-
!s || f && (h ?? n.length) <= G ? null : /* @__PURE__ */ C("div", { className: ue("search-input-container border-bottom", Rn.searchInputContainer), children: /* @__PURE__ */ C(Pi.Control, { ref: $, type: "search", size: "sm", className: Rn.searchInput, placeholder: l.searchPlaceholder, value: O, onChange: (
|
|
27446
|
+
!s || f && (h ?? n.length) <= G ? null : /* @__PURE__ */ C("div", { className: ue("search-input-container border-bottom", Rn.searchInputContainer), children: /* @__PURE__ */ C(Pi.Control, { ref: $, type: "search", size: "sm", className: Rn.searchInput, placeholder: l.searchPlaceholder, value: O, onChange: (fe) => {
|
|
27455
27447
|
var me;
|
|
27456
|
-
return E(((me =
|
|
27448
|
+
return E(((me = fe.target) == null ? void 0 : me.value) ?? "");
|
|
27457
27449
|
} }) }),
|
|
27458
27450
|
O.length < 1 && r && r.length > 0 ? /* @__PURE__ */ C(B3, { variant: "info", size: "sm", children: i ?? x.suggestedItemsTitle }) : null,
|
|
27459
27451
|
m ? /* @__PURE__ */ C("div", { className: Rn.loadingContainer, children: /* @__PURE__ */ C(Rx, { animation: "border", variant: "primary" }) }) : (O.length < 1 && r && (r == null ? void 0 : r.length) > 0 || n.length > 0) && /* @__PURE__ */ ae("div", { ref: A, className: ue("items", Rn.itemsContainer), children: [
|
|
27460
27452
|
u && u.length > 0 && /* @__PURE__ */ ae("div", { className: ue("header-row border-bottom", Rn.headerRow), children: [
|
|
27461
27453
|
/* @__PURE__ */ C("div", { className: Rn.name, children: /* @__PURE__ */ C(er, { variant: "body2", children: Ce }) }),
|
|
27462
|
-
u == null ? void 0 : u.filter((
|
|
27463
|
-
width: `${
|
|
27464
|
-
minWidth: `${
|
|
27465
|
-
maxWidth: `${
|
|
27466
|
-
}, children: /* @__PURE__ */ C(er, { variant: "caption", children:
|
|
27454
|
+
u == null ? void 0 : u.filter((fe) => fe.key !== b).map((fe) => /* @__PURE__ */ C("div", { className: Rn.columnItem, style: {
|
|
27455
|
+
width: `${fe.width ?? 100}px`,
|
|
27456
|
+
minWidth: `${fe.width ?? 100}px`,
|
|
27457
|
+
maxWidth: `${fe.width ?? 100}px`
|
|
27458
|
+
}, children: /* @__PURE__ */ C(er, { variant: "caption", children: fe.name }) }, fe.key))
|
|
27467
27459
|
] }),
|
|
27468
|
-
(O.length < 1 && r && r.length > 0 ? r : n).map((
|
|
27460
|
+
(O.length < 1 && r && r.length > 0 ? r : n).map((fe, me) => /* @__PURE__ */ ae("button", { id: `item-${me}`, type: "button", className: ue("item cursor-pointer", Rn.item, {
|
|
27469
27461
|
[Rn.focused]: F === me
|
|
27470
27462
|
}, {
|
|
27471
27463
|
focused: F === me
|
|
27472
27464
|
}, {
|
|
27473
|
-
archive:
|
|
27474
|
-
}), onClick: () => !p && a(
|
|
27475
|
-
/* @__PURE__ */ C("div", { className: Rn.name, children: /* @__PURE__ */ C(er, { variant: "body2", children: d ?
|
|
27465
|
+
archive: fe.additionalColumns ? fe.additionalColumns[b] : !1
|
|
27466
|
+
}), onClick: () => !p && a(fe), onMouseEnter: () => j(me), children: [
|
|
27467
|
+
/* @__PURE__ */ C("div", { className: Rn.name, children: /* @__PURE__ */ C(er, { variant: "body2", children: d ? fe.id : fe.name }) }),
|
|
27476
27468
|
u == null ? void 0 : u.filter((Me) => Me.key !== b).map((Me) => /* @__PURE__ */ C("div", { className: Rn.columnItem, style: {
|
|
27477
27469
|
width: `${Me.width ?? 100}px`,
|
|
27478
27470
|
minWidth: `${Me.width ?? 100}px`,
|
|
27479
27471
|
maxWidth: `${Me.width ?? 100}px`
|
|
27480
|
-
}, children: /* @__PURE__ */ C(er, { variant: "caption", className: ue("text-muted"), children:
|
|
27481
|
-
] },
|
|
27472
|
+
}, children: /* @__PURE__ */ C(er, { variant: "caption", className: ue("text-muted"), children: fe.additionalColumns && fe.additionalColumns[Me.key] }) }, Me.key))
|
|
27473
|
+
] }, fe.id))
|
|
27482
27474
|
] })
|
|
27483
27475
|
] }) }) })
|
|
27484
27476
|
] });
|
|
@@ -28339,7 +28331,7 @@ function bf(e) {
|
|
|
28339
28331
|
return ye.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
|
|
28340
28332
|
!O0() && vf.test(e) || e in (eo || {}));
|
|
28341
28333
|
}
|
|
28342
|
-
var Lo = O0() ?
|
|
28334
|
+
var Lo = O0() ? he : ws, Gz = () => {
|
|
28343
28335
|
const e = le(!1);
|
|
28344
28336
|
return Lo(() => (e.current = !0, () => {
|
|
28345
28337
|
e.current = !1;
|
|
@@ -28351,10 +28343,10 @@ function R0() {
|
|
|
28351
28343
|
t.current && e(Math.random());
|
|
28352
28344
|
};
|
|
28353
28345
|
}
|
|
28354
|
-
var D0 = (e) =>
|
|
28346
|
+
var D0 = (e) => he(e, Zz), Zz = [];
|
|
28355
28347
|
function Rm(e) {
|
|
28356
28348
|
const t = le(void 0);
|
|
28357
|
-
return
|
|
28349
|
+
return he(() => {
|
|
28358
28350
|
t.current = e;
|
|
28359
28351
|
}), t.current;
|
|
28360
28352
|
}
|
|
@@ -28494,7 +28486,7 @@ var _y = (e, t) => {
|
|
|
28494
28486
|
f.current.deps,
|
|
28495
28487
|
(p) => sc(p, f.current)
|
|
28496
28488
|
), dt.cancel(f.current.update));
|
|
28497
|
-
})),
|
|
28489
|
+
})), he(u, []), D0(() => () => {
|
|
28498
28490
|
const p = f.current;
|
|
28499
28491
|
it(p.deps, (m) => sc(m, p));
|
|
28500
28492
|
});
|
|
@@ -34792,7 +34784,7 @@ var CS = hn(), Fre = function(e) {
|
|
|
34792
34784
|
return e.width === t.width && e.height === t.height;
|
|
34793
34785
|
}, Wre = function(e) {
|
|
34794
34786
|
var t = e.children, n = e.width, r = e.height, i = e.onResize, o = e.debounceResize, a = L3({ width: n, height: r }, o, { equalityFn: zre })[0];
|
|
34795
|
-
return
|
|
34787
|
+
return he(function() {
|
|
34796
34788
|
i == null || i(a);
|
|
34797
34789
|
}, [a, i]), C(bt, { children: t(a) });
|
|
34798
34790
|
}, _a = function(e) {
|
|
@@ -34973,7 +34965,7 @@ var Hre = ["id", "colors"], Vre = function(e) {
|
|
|
34973
34965
|
}), Pv = function(e) {
|
|
34974
34966
|
var t = Kn(), n = t.animate, r = t.config, i = function(s) {
|
|
34975
34967
|
var l = le();
|
|
34976
|
-
return
|
|
34968
|
+
return he(function() {
|
|
34977
34969
|
l.current = s;
|
|
34978
34970
|
}, [s]), l.current;
|
|
34979
34971
|
}(e), o = se(function() {
|
|
@@ -35007,7 +34999,7 @@ var ES = { top: 0, right: 0, bottom: 0, left: 0 }, xa = function(e, t, n) {
|
|
|
35007
34999
|
return r(a.contentRect);
|
|
35008
35000
|
});
|
|
35009
35001
|
})[0];
|
|
35010
|
-
return
|
|
35002
|
+
return he(function() {
|
|
35011
35003
|
return e.current && i !== null && i.observe(e.current), function() {
|
|
35012
35004
|
i !== null && i.disconnect();
|
|
35013
35005
|
};
|
|
@@ -35714,7 +35706,7 @@ var ww, loe = function(e) {
|
|
|
35714
35706
|
return { id: w.id, label: w.label, color: w.color, hidden: d.includes(w.id), data: w };
|
|
35715
35707
|
}) };
|
|
35716
35708
|
}, [h, t, d, l, i, c, o, u]), m = p.legendData, g = le(f);
|
|
35717
|
-
return
|
|
35709
|
+
return he(function() {
|
|
35718
35710
|
typeof g.current == "function" && g.current(m);
|
|
35719
35711
|
}, [g, m]), p;
|
|
35720
35712
|
}, doe = function(e) {
|
|
@@ -35763,10 +35755,10 @@ var ww, loe = function(e) {
|
|
|
35763
35755
|
}, [a, g, d, u]);
|
|
35764
35756
|
return C(Gie, { center: t, data: n, arcGenerator: r, borderWidth: i, borderColor: o, transitionMode: h, onClick: b, onMouseEnter: w, onMouseMove: y, onMouseLeave: _ });
|
|
35765
35757
|
}, poe = ["isInteractive", "animate", "motionConfig", "theme", "renderWrapper"], moe = function(e) {
|
|
35766
|
-
var t = e.data, n = e.id, r = n === void 0 ? we.id : n, i = e.value, o = i === void 0 ? we.value : i, a = e.valueFormat, s = e.sortByValue, l = s === void 0 ? we.sortByValue : s, c = e.layers, u = c === void 0 ? we.layers : c, d = e.startAngle, f = d === void 0 ? we.startAngle : d, h = e.endAngle, p = h === void 0 ? we.endAngle : h, m = e.padAngle, g = m === void 0 ? we.padAngle : m, b = e.fit, w = b === void 0 ? we.fit : b, y = e.innerRadius, _ = y === void 0 ? we.innerRadius : y, v = e.cornerRadius, x = v === void 0 ? we.cornerRadius : v, k = e.activeInnerRadiusOffset, T = k === void 0 ? we.activeInnerRadiusOffset : k, $ = e.activeOuterRadiusOffset, A = $ === void 0 ? we.activeOuterRadiusOffset : $, S = e.width, O = e.height, E = e.margin, D = e.colors, I = D === void 0 ? we.colors : D, R = e.borderWidth, M = R === void 0 ? we.borderWidth : R, L = e.borderColor, B = L === void 0 ? we.borderColor : L, N = e.enableArcLabels, U = N === void 0 ? we.enableArcLabels : N, q = e.arcLabel, V = q === void 0 ? we.arcLabel : q, G = e.arcLabelsSkipAngle, Z = G === void 0 ? we.arcLabelsSkipAngle : G, K = e.arcLabelsSkipRadius, Q = K === void 0 ? we.arcLabelsSkipRadius : K, z = e.arcLabelsTextColor, F = z === void 0 ? we.arcLabelsTextColor : z, j = e.arcLabelsRadiusOffset, H = j === void 0 ? we.arcLabelsRadiusOffset : j, P = e.arcLabelsComponent, ee = e.enableArcLinkLabels, X = ee === void 0 ? we.enableArcLinkLabels : ee, Y = e.arcLinkLabel, ce = Y === void 0 ? we.arcLinkLabel : Y, te = e.arcLinkLabelsSkipAngle, ne = te === void 0 ? we.arcLinkLabelsSkipAngle : te, oe = e.arcLinkLabelsOffset, de = oe === void 0 ? we.arcLinkLabelsOffset : oe, Te = e.arcLinkLabelsDiagonalLength, _e = Te === void 0 ? we.arcLinkLabelsDiagonalLength : Te, Ce = e.arcLinkLabelsStraightLength, Ie = Ce === void 0 ? we.arcLinkLabelsStraightLength : Ce,
|
|
35758
|
+
var t = e.data, n = e.id, r = n === void 0 ? we.id : n, i = e.value, o = i === void 0 ? we.value : i, a = e.valueFormat, s = e.sortByValue, l = s === void 0 ? we.sortByValue : s, c = e.layers, u = c === void 0 ? we.layers : c, d = e.startAngle, f = d === void 0 ? we.startAngle : d, h = e.endAngle, p = h === void 0 ? we.endAngle : h, m = e.padAngle, g = m === void 0 ? we.padAngle : m, b = e.fit, w = b === void 0 ? we.fit : b, y = e.innerRadius, _ = y === void 0 ? we.innerRadius : y, v = e.cornerRadius, x = v === void 0 ? we.cornerRadius : v, k = e.activeInnerRadiusOffset, T = k === void 0 ? we.activeInnerRadiusOffset : k, $ = e.activeOuterRadiusOffset, A = $ === void 0 ? we.activeOuterRadiusOffset : $, S = e.width, O = e.height, E = e.margin, D = e.colors, I = D === void 0 ? we.colors : D, R = e.borderWidth, M = R === void 0 ? we.borderWidth : R, L = e.borderColor, B = L === void 0 ? we.borderColor : L, N = e.enableArcLabels, U = N === void 0 ? we.enableArcLabels : N, q = e.arcLabel, V = q === void 0 ? we.arcLabel : q, G = e.arcLabelsSkipAngle, Z = G === void 0 ? we.arcLabelsSkipAngle : G, K = e.arcLabelsSkipRadius, Q = K === void 0 ? we.arcLabelsSkipRadius : K, z = e.arcLabelsTextColor, F = z === void 0 ? we.arcLabelsTextColor : z, j = e.arcLabelsRadiusOffset, H = j === void 0 ? we.arcLabelsRadiusOffset : j, P = e.arcLabelsComponent, ee = e.enableArcLinkLabels, X = ee === void 0 ? we.enableArcLinkLabels : ee, Y = e.arcLinkLabel, ce = Y === void 0 ? we.arcLinkLabel : Y, te = e.arcLinkLabelsSkipAngle, ne = te === void 0 ? we.arcLinkLabelsSkipAngle : te, oe = e.arcLinkLabelsOffset, de = oe === void 0 ? we.arcLinkLabelsOffset : oe, Te = e.arcLinkLabelsDiagonalLength, _e = Te === void 0 ? we.arcLinkLabelsDiagonalLength : Te, Ce = e.arcLinkLabelsStraightLength, Ie = Ce === void 0 ? we.arcLinkLabelsStraightLength : Ce, fe = e.arcLinkLabelsThickness, me = fe === void 0 ? we.arcLinkLabelsThickness : fe, Me = e.arcLinkLabelsTextOffset, tt = Me === void 0 ? we.arcLinkLabelsTextOffset : Me, ke = e.arcLinkLabelsTextColor, xe = ke === void 0 ? we.arcLinkLabelsTextColor : ke, Ue = e.arcLinkLabelsColor, nt = Ue === void 0 ? we.arcLinkLabelsColor : Ue, Rt = e.arcLinkLabelComponent, Ae = e.defs, Fe = Ae === void 0 ? we.defs : Ae, ht = e.fill, Ze = ht === void 0 ? we.fill : ht, St = e.isInteractive, yt = St === void 0 ? we.isInteractive : St, Wt = e.onClick, ot = e.onMouseEnter, He = e.onMouseMove, Je = e.onMouseLeave, lt = e.tooltip, Ve = lt === void 0 ? we.tooltip : lt, ct = e.activeId, $t = e.onActiveIdChange, pt = e.defaultActiveId, ze = e.transitionMode, Pe = ze === void 0 ? we.transitionMode : ze, et = e.legends, Mt = et === void 0 ? we.legends : et, ut = e.forwardLegendData, kt = e.role, dn = kt === void 0 ? we.role : kt, Zt = e.forwardedRef, Jt = xa(S, O, E), Tn = Jt.outerWidth, on = Jt.outerHeight, Re = Jt.margin, at = Jt.innerWidth, It = Jt.innerHeight, bn = US({ data: t, id: r, value: o, valueFormat: a, colors: I }), an = HS({ data: bn, width: at, height: It, fit: w, innerRadius: _, startAngle: f, endAngle: p, padAngle: g, sortByValue: l, cornerRadius: x, activeInnerRadiusOffset: T, activeOuterRadiusOffset: A, activeId: ct, onActiveIdChange: $t, defaultActiveId: pt, forwardLegendData: ut }), qe = an.dataWithArc, Ye = an.legendData, xt = an.arcGenerator, Ut = an.centerX, Pt = an.centerY, st = an.radius, Nt = an.innerRadius, Er = an.setActiveId, _n = an.toggleSerie, xn = Lv(Fe, qe, Ze), Vn = { arcs: null, arcLinkLabels: null, arcLabels: null, legends: null };
|
|
35767
35759
|
u.includes("arcs") && (Vn.arcs = C(hoe, { center: [Ut, Pt], data: qe, arcGenerator: xt, borderWidth: M, borderColor: B, isInteractive: yt, onClick: Wt, onMouseEnter: ot, onMouseMove: He, onMouseLeave: Je, setActiveId: Er, tooltip: Ve, transitionMode: Pe }, "arcs")), X && u.includes("arcLinkLabels") && (Vn.arcLinkLabels = C(zie, { center: [Ut, Pt], data: qe, label: ce, skipAngle: ne, offset: de, diagonalLength: _e, straightLength: Ie, strokeWidth: me, textOffset: tt, textColor: xe, linkColor: nt, component: Rt }, "arcLinkLabels")), U && u.includes("arcLabels") && (Vn.arcLabels = C(Aie, { center: [Ut, Pt], data: qe, label: V, radiusOffset: H, skipAngle: Z, skipRadius: Q, textColor: F, transitionMode: Pe, component: P }, "arcLabels")), Mt.length > 0 && u.includes("legends") && (Vn.legends = C(loe, { width: at, height: It, data: Ye, legends: Mt, toggleSerie: _n }, "legends"));
|
|
35768
35760
|
var mo = foe({ dataWithArc: qe, arcGenerator: xt, centerX: Ut, centerY: Pt, radius: st, innerRadius: Nt });
|
|
35769
|
-
return C(_h, { width: Tn, height: on, margin: Re, defs: xn, role:
|
|
35761
|
+
return C(_h, { width: Tn, height: on, margin: Re, defs: xn, role: dn, ref: Zt, children: u.map(function(Dt, go) {
|
|
35770
35762
|
return Vn[Dt] !== void 0 ? Vn[Dt] : typeof Dt == "function" ? C(Zo, { children: tn(Dt, mo) }, go) : null;
|
|
35771
35763
|
}) });
|
|
35772
35764
|
}, goe = Mn(function(e, t) {
|
|
@@ -35779,18 +35771,18 @@ var ww, loe = function(e) {
|
|
|
35779
35771
|
return C(goe, Or({ width: l, height: c }, a, { ref: t }));
|
|
35780
35772
|
} });
|
|
35781
35773
|
}), boe = ["isInteractive", "theme", "renderWrapper"], yoe = function(e) {
|
|
35782
|
-
var t = e.data, n = e.id, r = n === void 0 ? we.id : n, i = e.value, o = i === void 0 ? we.value : i, a = e.valueFormat, s = e.sortByValue, l = s === void 0 ? we.sortByValue : s, c = e.startAngle, u = c === void 0 ? we.startAngle : c, d = e.endAngle, f = d === void 0 ? we.endAngle : d, h = e.padAngle, p = h === void 0 ? we.padAngle : h, m = e.fit, g = m === void 0 ? we.fit : m, b = e.innerRadius, w = b === void 0 ? we.innerRadius : b, y = e.cornerRadius, _ = y === void 0 ? we.cornerRadius : y, v = e.activeInnerRadiusOffset, x = v === void 0 ? we.activeInnerRadiusOffset : v, k = e.activeOuterRadiusOffset, T = k === void 0 ? we.activeOuterRadiusOffset : k, $ = e.width, A = e.height, S = e.margin, O = e.pixelRatio, E = O === void 0 ? we.pixelRatio : O, D = e.colors, I = D === void 0 ? we.colors : D, R = e.borderWidth, M = R === void 0 ? we.borderWidth : R, L = e.borderColor, B = L === void 0 ? we.borderColor : L, N = e.enableArcLabels, U = N === void 0 ? we.enableArcLabels : N, q = e.arcLabel, V = q === void 0 ? we.arcLabel : q, G = e.arcLabelsSkipAngle, Z = G === void 0 ? we.arcLabelsSkipAngle : G, K = e.arcLabelsTextColor, Q = K === void 0 ? we.arcLabelsTextColor : K, z = e.arcLabelsRadiusOffset, F = z === void 0 ? we.arcLabelsRadiusOffset : z, j = e.enableArcLinkLabels, H = j === void 0 ? we.enableArcLinkLabels : j, P = e.arcLinkLabel, ee = P === void 0 ? we.arcLinkLabel : P, X = e.arcLinkLabelsSkipAngle, Y = X === void 0 ? we.arcLinkLabelsSkipAngle : X, ce = e.arcLinkLabelsOffset, te = ce === void 0 ? we.arcLinkLabelsOffset : ce, ne = e.arcLinkLabelsDiagonalLength, oe = ne === void 0 ? we.arcLinkLabelsDiagonalLength : ne, de = e.arcLinkLabelsStraightLength, Te = de === void 0 ? we.arcLinkLabelsStraightLength : de, _e = e.arcLinkLabelsThickness, Ce = _e === void 0 ? we.arcLinkLabelsThickness : _e, Ie = e.arcLinkLabelsTextOffset,
|
|
35783
|
-
|
|
35774
|
+
var t = e.data, n = e.id, r = n === void 0 ? we.id : n, i = e.value, o = i === void 0 ? we.value : i, a = e.valueFormat, s = e.sortByValue, l = s === void 0 ? we.sortByValue : s, c = e.startAngle, u = c === void 0 ? we.startAngle : c, d = e.endAngle, f = d === void 0 ? we.endAngle : d, h = e.padAngle, p = h === void 0 ? we.padAngle : h, m = e.fit, g = m === void 0 ? we.fit : m, b = e.innerRadius, w = b === void 0 ? we.innerRadius : b, y = e.cornerRadius, _ = y === void 0 ? we.cornerRadius : y, v = e.activeInnerRadiusOffset, x = v === void 0 ? we.activeInnerRadiusOffset : v, k = e.activeOuterRadiusOffset, T = k === void 0 ? we.activeOuterRadiusOffset : k, $ = e.width, A = e.height, S = e.margin, O = e.pixelRatio, E = O === void 0 ? we.pixelRatio : O, D = e.colors, I = D === void 0 ? we.colors : D, R = e.borderWidth, M = R === void 0 ? we.borderWidth : R, L = e.borderColor, B = L === void 0 ? we.borderColor : L, N = e.enableArcLabels, U = N === void 0 ? we.enableArcLabels : N, q = e.arcLabel, V = q === void 0 ? we.arcLabel : q, G = e.arcLabelsSkipAngle, Z = G === void 0 ? we.arcLabelsSkipAngle : G, K = e.arcLabelsTextColor, Q = K === void 0 ? we.arcLabelsTextColor : K, z = e.arcLabelsRadiusOffset, F = z === void 0 ? we.arcLabelsRadiusOffset : z, j = e.enableArcLinkLabels, H = j === void 0 ? we.enableArcLinkLabels : j, P = e.arcLinkLabel, ee = P === void 0 ? we.arcLinkLabel : P, X = e.arcLinkLabelsSkipAngle, Y = X === void 0 ? we.arcLinkLabelsSkipAngle : X, ce = e.arcLinkLabelsOffset, te = ce === void 0 ? we.arcLinkLabelsOffset : ce, ne = e.arcLinkLabelsDiagonalLength, oe = ne === void 0 ? we.arcLinkLabelsDiagonalLength : ne, de = e.arcLinkLabelsStraightLength, Te = de === void 0 ? we.arcLinkLabelsStraightLength : de, _e = e.arcLinkLabelsThickness, Ce = _e === void 0 ? we.arcLinkLabelsThickness : _e, Ie = e.arcLinkLabelsTextOffset, fe = Ie === void 0 ? we.arcLinkLabelsTextOffset : Ie, me = e.arcLinkLabelsTextColor, Me = me === void 0 ? we.arcLinkLabelsTextColor : me, tt = e.arcLinkLabelsColor, ke = tt === void 0 ? we.arcLinkLabelsColor : tt, xe = e.isInteractive, Ue = xe === void 0 ? we.isInteractive : xe, nt = e.onClick, Rt = e.onMouseMove, Ae = e.tooltip, Fe = Ae === void 0 ? we.tooltip : Ae, ht = e.activeId, Ze = e.onActiveIdChange, St = e.defaultActiveId, yt = e.legends, Wt = yt === void 0 ? we.legends : yt, ot = e.forwardLegendData, He = e.role, Je = e.forwardedRef, lt = le(null), Ve = Gt(), ct = xa($, A, S), $t = ct.margin, pt = ct.innerWidth, ze = ct.innerHeight, Pe = ct.outerWidth, et = ct.outerHeight, Mt = US({ data: t, id: r, value: o, valueFormat: a, colors: I }), ut = HS({ data: Mt, width: pt, height: ze, fit: g, innerRadius: w, startAngle: u, endAngle: f, padAngle: p, sortByValue: l, cornerRadius: _, activeInnerRadiusOffset: x, activeOuterRadiusOffset: T, activeId: ht, onActiveIdChange: Ze, defaultActiveId: St, forwardLegendData: ot }), kt = ut.dataWithArc, dn = ut.arcGenerator, Zt = ut.centerX, Jt = ut.centerY, Tn = ut.radius, on = ut.innerRadius, Re = ut.setActiveId, at = kr(B, Ve), It = Die({ data: kt, label: V, skipAngle: Z, offset: F, textColor: Q }), bn = Hie({ data: kt, skipAngle: Y, offset: te, diagonalLength: oe, straightLength: Te, label: ee, linkColor: ke, textOffset: fe, textColor: Me });
|
|
35775
|
+
he(function() {
|
|
35784
35776
|
if (lt.current) {
|
|
35785
35777
|
lt.current.width = Pe * E, lt.current.height = et * E;
|
|
35786
35778
|
var st = lt.current.getContext("2d");
|
|
35787
|
-
st.scale(E, E), st.fillStyle = Ve.background, st.fillRect(0, 0, Pe, et), st.save(), st.translate($t.left, $t.top),
|
|
35788
|
-
st.beginPath(), st.fillStyle = Nt.color, st.strokeStyle = at(Nt), st.lineWidth = M,
|
|
35779
|
+
st.scale(E, E), st.fillStyle = Ve.background, st.fillRect(0, 0, Pe, et), st.save(), st.translate($t.left, $t.top), dn.context(st), st.save(), st.translate(Zt, Jt), kt.forEach(function(Nt) {
|
|
35780
|
+
st.beginPath(), st.fillStyle = Nt.color, st.strokeStyle = at(Nt), st.lineWidth = M, dn(Nt.arc), st.fill(), M > 0 && st.stroke();
|
|
35789
35781
|
}), H === !0 && Wie(st, bn, Ve, Ce), U === !0 && Rie(st, It, Ve), st.restore(), Wt.forEach(function(Nt) {
|
|
35790
35782
|
Uv(st, Or({}, Nt, { data: kt, containerWidth: pt, containerHeight: ze, theme: Ve }));
|
|
35791
35783
|
});
|
|
35792
35784
|
}
|
|
35793
|
-
}, [lt, pt, ze, Pe, et, $t.top, $t.left, E, Zt, Jt,
|
|
35785
|
+
}, [lt, pt, ze, Pe, et, $t.top, $t.left, E, Zt, Jt, dn, kt, M, at, U, It, H, bn, Ce, Wt, Ve]);
|
|
35794
35786
|
var an = se(function() {
|
|
35795
35787
|
return kt.map(function(st) {
|
|
35796
35788
|
return Or({ id: st.id }, st.arc);
|
|
@@ -37143,7 +37135,7 @@ var dr = { xDomain: [0, 1], yDomain: [0, 1], layers: ["links", "cells", "points"
|
|
|
37143
37135
|
}, [t, n, r]);
|
|
37144
37136
|
}, Mle = function(e) {
|
|
37145
37137
|
var t = e.elementRef, n = e.nodes, r = e.getNodePosition, i = r === void 0 ? Vv : r, o = e.delaunay, a = e.setCurrent, s = e.margin, l = s === void 0 ? Jc : s, c = e.detectionRadius, u = c === void 0 ? 1 / 0 : c, d = e.isInteractive, f = d === void 0 || d, h = e.onMouseEnter, p = e.onMouseMove, m = e.onMouseLeave, g = e.onMouseDown, b = e.onMouseUp, w = e.onClick, y = e.onDoubleClick, _ = e.onTouchStart, v = e.onTouchMove, x = e.onTouchEnd, k = e.enableTouchCrosshair, T = k !== void 0 && k, $ = e.tooltip, A = e.tooltipPosition, S = A === void 0 ? s5 : A, O = e.tooltipAnchor, E = O === void 0 ? l5 : O, D = Se(null), I = D[0], R = D[1], M = le(null);
|
|
37146
|
-
|
|
37138
|
+
he(function() {
|
|
37147
37139
|
M.current = I;
|
|
37148
37140
|
}, [M, I]);
|
|
37149
37141
|
var L = re(function(X) {
|
|
@@ -37443,12 +37435,12 @@ var jle = function(e) {
|
|
|
37443
37435
|
return C(Ile, { nodes: t, width: n, height: r, setCurrent: o, onMouseEnter: x, onMouseMove: k, onMouseLeave: T, onMouseDown: $, onMouseUp: A, onClick: S, onDoubleClick: O, onTouchStart: E, onTouchMove: D, onTouchEnd: I, enableTouchCrosshair: w, debug: b });
|
|
37444
37436
|
}), Zle = ["isInteractive", "animate", "motionConfig", "theme", "renderWrapper"];
|
|
37445
37437
|
function Xle(e) {
|
|
37446
|
-
var t = e.data, n = e.xScale, r = n === void 0 ? mt.xScale : n, i = e.xFormat, o = e.yScale, a = o === void 0 ? mt.yScale : o, s = e.yFormat, l = e.curve, c = l === void 0 ? mt.curve : l, u = e.margin, d = e.width, f = e.height, h = e.colors, p = h === void 0 ? mt.colors : h, m = e.lineWidth, g = m === void 0 ? mt.lineWidth : m, b = e.layers, w = b === void 0 ? mt.layers : b, y = e.enableArea, _ = y === void 0 ? mt.enableArea : y, v = e.areaBaselineValue, x = v === void 0 ? mt.areaBaselineValue : v, k = e.areaOpacity, T = k === void 0 ? mt.areaOpacity : k, $ = e.areaBlendMode, A = $ === void 0 ? mt.areaBlendMode : $, S = e.enablePoints, O = S === void 0 ? mt.enablePoints : S, E = e.pointSymbol, D = e.pointSize, I = D === void 0 ? mt.pointSize : D, R = e.pointColor, M = R === void 0 ? mt.pointColor : R, L = e.pointBorderWidth, B = L === void 0 ? mt.pointBorderWidth : L, N = e.pointBorderColor, U = N === void 0 ? mt.pointBorderColor : N, q = e.enablePointLabel, V = q === void 0 ? mt.enablePointLabel : q, G = e.pointLabel, Z = G === void 0 ? mt.pointLabel : G, K = e.pointLabelYOffset, Q = e.enableGridX, z = Q === void 0 ? mt.enableGridX : Q, F = e.gridXValues, j = e.enableGridY, H = j === void 0 ? mt.enableGridY : j, P = e.gridYValues, ee = e.axisTop, X = e.axisRight, Y = e.axisBottom, ce = Y === void 0 ? mt.axisBottom : Y, te = e.axisLeft, ne = te === void 0 ? mt.axisLeft : te, oe = e.defs, de = oe === void 0 ? mt.defs : oe, Te = e.fill, _e = Te === void 0 ? mt.fill : Te, Ce = e.markers, Ie = e.legends,
|
|
37447
|
-
w.includes("grid") && (z || H) && (qn.grid = C(i5, { width: _n, height: xn, xScale: z ? Sa : null, yScale: H ? fi : null, xValues: F, yValues: P }, "grid")), w.includes("markers") && Array.isArray(Ce) && Ce.length > 0 && (qn.markers = C(OS, { markers: Ce, width: _n, height: xn, xScale: Sa, yScale: fi }, "markers")), w.includes("axes") && (qn.axes = C(r5, { xScale: Sa, yScale: fi, width: _n, height: xn, top: ee, right: X, bottom: ce, left: ne }, "axes")), w.includes("lines") && (qn.lines = C(Hle, { series: Ca, lineGenerator: Ur, lineWidth: g }, "lines")), w.includes("legends") &&
|
|
37438
|
+
var t = e.data, n = e.xScale, r = n === void 0 ? mt.xScale : n, i = e.xFormat, o = e.yScale, a = o === void 0 ? mt.yScale : o, s = e.yFormat, l = e.curve, c = l === void 0 ? mt.curve : l, u = e.margin, d = e.width, f = e.height, h = e.colors, p = h === void 0 ? mt.colors : h, m = e.lineWidth, g = m === void 0 ? mt.lineWidth : m, b = e.layers, w = b === void 0 ? mt.layers : b, y = e.enableArea, _ = y === void 0 ? mt.enableArea : y, v = e.areaBaselineValue, x = v === void 0 ? mt.areaBaselineValue : v, k = e.areaOpacity, T = k === void 0 ? mt.areaOpacity : k, $ = e.areaBlendMode, A = $ === void 0 ? mt.areaBlendMode : $, S = e.enablePoints, O = S === void 0 ? mt.enablePoints : S, E = e.pointSymbol, D = e.pointSize, I = D === void 0 ? mt.pointSize : D, R = e.pointColor, M = R === void 0 ? mt.pointColor : R, L = e.pointBorderWidth, B = L === void 0 ? mt.pointBorderWidth : L, N = e.pointBorderColor, U = N === void 0 ? mt.pointBorderColor : N, q = e.enablePointLabel, V = q === void 0 ? mt.enablePointLabel : q, G = e.pointLabel, Z = G === void 0 ? mt.pointLabel : G, K = e.pointLabelYOffset, Q = e.enableGridX, z = Q === void 0 ? mt.enableGridX : Q, F = e.gridXValues, j = e.enableGridY, H = j === void 0 ? mt.enableGridY : j, P = e.gridYValues, ee = e.axisTop, X = e.axisRight, Y = e.axisBottom, ce = Y === void 0 ? mt.axisBottom : Y, te = e.axisLeft, ne = te === void 0 ? mt.axisLeft : te, oe = e.defs, de = oe === void 0 ? mt.defs : oe, Te = e.fill, _e = Te === void 0 ? mt.fill : Te, Ce = e.markers, Ie = e.legends, fe = Ie === void 0 ? mt.legends : Ie, me = e.isInteractive, Me = me === void 0 ? mt.isInteractive : me, tt = e.useMesh, ke = tt === void 0 ? mt.useMesh : tt, xe = e.debugMesh, Ue = xe === void 0 ? mt.debugMesh : xe, nt = e.onMouseEnter, Rt = e.onMouseMove, Ae = e.onMouseLeave, Fe = e.onMouseDown, ht = e.onMouseUp, Ze = e.onClick, St = e.onDoubleClick, yt = e.onTouchStart, Wt = e.onTouchMove, ot = e.onTouchEnd, He = e.tooltip, Je = He === void 0 ? mt.tooltip : He, lt = e.enableSlices, Ve = lt === void 0 ? mt.enableSlices : lt, ct = e.debugSlices, $t = ct === void 0 ? mt.debugSlices : ct, pt = e.sliceTooltip, ze = pt === void 0 ? mt.sliceTooltip : pt, Pe = e.enableCrosshair, et = Pe === void 0 ? mt.enableCrosshair : Pe, Mt = e.crosshairType, ut = Mt === void 0 ? mt.crosshairType : Mt, kt = e.enableTouchCrosshair, dn = kt === void 0 ? mt.enableTouchCrosshair : kt, Zt = e.role, Jt = Zt === void 0 ? mt.role : Zt, Tn = e.ariaLabel, on = e.ariaLabelledBy, Re = e.ariaDescribedBy, at = e.isFocusable, It = at === void 0 ? mt.isFocusable : at, bn = e.pointAriaLabel, an = e.pointAriaLabelledBy, qe = e.pointAriaDescribedBy, Ye = e.pointAriaHidden, xt = e.pointAriaDisabled, Ut = e.initialHiddenIds, Pt = Ut === void 0 ? mt.initialHiddenIds : Ut, st = e.forwardedRef, Nt = xa(d, f, u), Er = Nt.margin, _n = Nt.innerWidth, xn = Nt.innerHeight, Vn = Nt.outerWidth, mo = Nt.outerHeight, Dt = u5({ data: t, xScale: r, xFormat: i, yScale: a, yFormat: s, width: _n, height: xn, colors: p, curve: c, areaBaselineValue: x, pointColor: M, pointBorderColor: U, enableSlices: Ve, initialHiddenIds: Pt }), go = Dt.legendData, Le = Dt.toggleSeries, Ur = Dt.lineGenerator, vo = Dt.areaGenerator, Ca = Dt.series, Sa = Dt.xScale, fi = Dt.yScale, Qc = Dt.slices, hi = Dt.points, Us = Se(null), bo = Us[0], Hs = Us[1], eu = Se(null), yo = eu[0], tu = eu[1], qn = { grid: null, markers: null, axes: null, areas: null, crosshair: null, lines: null, points: null, slices: null, mesh: null, legends: null };
|
|
37439
|
+
w.includes("grid") && (z || H) && (qn.grid = C(i5, { width: _n, height: xn, xScale: z ? Sa : null, yScale: H ? fi : null, xValues: F, yValues: P }, "grid")), w.includes("markers") && Array.isArray(Ce) && Ce.length > 0 && (qn.markers = C(OS, { markers: Ce, width: _n, height: xn, xScale: Sa, yScale: fi }, "markers")), w.includes("axes") && (qn.axes = C(r5, { xScale: Sa, yScale: fi, width: _n, height: xn, top: ee, right: X, bottom: ce, left: ne }, "axes")), w.includes("lines") && (qn.lines = C(Hle, { series: Ca, lineGenerator: Ur, lineWidth: g }, "lines")), w.includes("legends") && fe.length > 0 && (qn.legends = C(Zo, { children: fe.map(function(Hr, Fi) {
|
|
37448
37440
|
return C(Wv, Un({}, Hr, { containerWidth: _n, containerHeight: xn, data: Hr.data || go, toggleSerie: Hr.toggleSerie ? Le : void 0 }), Fi);
|
|
37449
37441
|
}) }, "legends"));
|
|
37450
37442
|
var $h = Lv(de, Ca, _e);
|
|
37451
|
-
_ && (qn.areas = C(Wle, { areaGenerator: vo, areaOpacity: T, areaBlendMode: A, series: Ca }, "areas")), Me && Ve !== !1 && (qn.slices = C(qle, { slices: Qc, axis: Ve, debug: $t, tooltip: ze, current: yo, setCurrent: tu, onMouseEnter: nt, onMouseMove: Rt, onMouseLeave: Ae, onMouseDown: Fe, onMouseUp: ht, onClick: Ze, onDoubleClick: St, onTouchStart: yt, onTouchMove: Wt, onTouchEnd: ot }, "slices")), O && (qn.points = C(Yle, { points: hi, symbol: E, size: I, borderWidth: B, enableLabel: V, label: Z, labelYOffset: K, isFocusable: It, setCurrentPoint: Hs, tooltip: Je, margin: Er, ariaLabel: bn, ariaLabelledBy: an, ariaDescribedBy: qe, ariaHidden: Ye, ariaDisabled: xt }, "points")), Me && et && (bo !== null && (qn.crosshair = C(Hm, { width: _n, height: xn, x: bo.x, y: bo.y, type: ut }, "crosshair")), yo !== null && Ve && (qn.crosshair = C(Hm, { width: _n, height: xn, x: yo.x, y: yo.y, type: Ve }, "crosshair"))), Me && ke && Ve === !1 && (qn.mesh = C(Gle, { points: hi, width: _n, height: xn, margin: Er, setCurrent: Hs, onMouseEnter: nt, onMouseMove: Rt, onMouseLeave: Ae, onMouseDown: Fe, onMouseUp: ht, onClick: Ze, onDoubleClick: St, onTouchStart: yt, onTouchMove: Wt, onTouchEnd: ot, tooltip: Je, enableTouchCrosshair:
|
|
37443
|
+
_ && (qn.areas = C(Wle, { areaGenerator: vo, areaOpacity: T, areaBlendMode: A, series: Ca }, "areas")), Me && Ve !== !1 && (qn.slices = C(qle, { slices: Qc, axis: Ve, debug: $t, tooltip: ze, current: yo, setCurrent: tu, onMouseEnter: nt, onMouseMove: Rt, onMouseLeave: Ae, onMouseDown: Fe, onMouseUp: ht, onClick: Ze, onDoubleClick: St, onTouchStart: yt, onTouchMove: Wt, onTouchEnd: ot }, "slices")), O && (qn.points = C(Yle, { points: hi, symbol: E, size: I, borderWidth: B, enableLabel: V, label: Z, labelYOffset: K, isFocusable: It, setCurrentPoint: Hs, tooltip: Je, margin: Er, ariaLabel: bn, ariaLabelledBy: an, ariaDescribedBy: qe, ariaHidden: Ye, ariaDisabled: xt }, "points")), Me && et && (bo !== null && (qn.crosshair = C(Hm, { width: _n, height: xn, x: bo.x, y: bo.y, type: ut }, "crosshair")), yo !== null && Ve && (qn.crosshair = C(Hm, { width: _n, height: xn, x: yo.x, y: yo.y, type: Ve }, "crosshair"))), Me && ke && Ve === !1 && (qn.mesh = C(Gle, { points: hi, width: _n, height: xn, margin: Er, setCurrent: Hs, onMouseEnter: nt, onMouseMove: Rt, onMouseLeave: Ae, onMouseDown: Fe, onMouseUp: ht, onClick: Ze, onDoubleClick: St, onTouchStart: yt, onTouchMove: Wt, onTouchEnd: ot, tooltip: Je, enableTouchCrosshair: dn, debug: Ue }, "mesh"));
|
|
37452
37444
|
var kh = Un({}, e, { innerWidth: _n, innerHeight: xn, series: Ca, slices: Qc, points: hi, xScale: Sa, yScale: fi, lineGenerator: Ur, areaGenerator: vo, currentPoint: bo, setCurrentPoint: Hs, currentSlice: yo, setCurrentSlice: tu });
|
|
37453
37445
|
return C(_h, { defs: $h, width: Vn, height: mo, margin: Er, role: Jt, ariaLabel: Tn, ariaLabelledBy: on, ariaDescribedBy: Re, isFocusable: It, ref: st, children: w.map(function(Hr, Fi) {
|
|
37454
37446
|
return typeof Hr == "function" ? C(Zo, { children: Hr(kh) }, Fi) : qn[Hr];
|
|
@@ -37464,10 +37456,10 @@ var Kle = Mn(function(e, t) {
|
|
|
37464
37456
|
return C(Kle, Un({ width: l, height: c }, a, { ref: t }));
|
|
37465
37457
|
} });
|
|
37466
37458
|
}), Qle = ["isInteractive", "renderWrapper", "theme"], ece = function(e) {
|
|
37467
|
-
var t = e.width, n = e.height, r = e.margin, i = e.pixelRatio, o = i === void 0 ? mn.pixelRatio : i, a = e.data, s = e.xScale, l = s === void 0 ? mn.xScale : s, c = e.xFormat, u = e.yScale, d = u === void 0 ? mn.yScale : u, f = e.yFormat, h = e.curve, p = h === void 0 ? mn.curve : h, m = e.layers, g = m === void 0 ? mn.layers : m, b = e.colors, w = b === void 0 ? mn.colors : b, y = e.lineWidth, _ = y === void 0 ? mn.lineWidth : y, v = e.enableArea, x = v === void 0 ? mn.enableArea : v, k = e.areaBaselineValue, T = k === void 0 ? mn.areaBaselineValue : k, $ = e.areaOpacity, A = $ === void 0 ? mn.areaOpacity : $, S = e.enablePoints, O = S === void 0 ? mn.enablePoints : S, E = e.pointSize, D = E === void 0 ? mn.pointSize : E, I = e.pointColor, R = I === void 0 ? mn.pointColor : I, M = e.pointBorderWidth, L = M === void 0 ? mn.pointBorderWidth : M, B = e.pointBorderColor, N = B === void 0 ? mn.pointBorderColor : B, U = e.enableGridX, q = U === void 0 ? mn.enableGridX : U, V = e.gridXValues, G = e.enableGridY, Z = G === void 0 ? mn.enableGridY : G, K = e.gridYValues, Q = e.axisTop, z = e.axisRight, F = e.axisBottom, j = F === void 0 ? mn.axisBottom : F, H = e.axisLeft, P = H === void 0 ? mn.axisLeft : H, ee = e.legends, X = ee === void 0 ? mn.legends : ee, Y = e.isInteractive, ce = Y === void 0 ? mn.isInteractive : Y, te = e.debugMesh, ne = te === void 0 ? mn.debugMesh : te, oe = e.onMouseLeave, de = e.onMouseDown, Te = e.onMouseUp, _e = e.onClick, Ce = e.onDoubleClick, Ie = e.tooltip,
|
|
37459
|
+
var t = e.width, n = e.height, r = e.margin, i = e.pixelRatio, o = i === void 0 ? mn.pixelRatio : i, a = e.data, s = e.xScale, l = s === void 0 ? mn.xScale : s, c = e.xFormat, u = e.yScale, d = u === void 0 ? mn.yScale : u, f = e.yFormat, h = e.curve, p = h === void 0 ? mn.curve : h, m = e.layers, g = m === void 0 ? mn.layers : m, b = e.colors, w = b === void 0 ? mn.colors : b, y = e.lineWidth, _ = y === void 0 ? mn.lineWidth : y, v = e.enableArea, x = v === void 0 ? mn.enableArea : v, k = e.areaBaselineValue, T = k === void 0 ? mn.areaBaselineValue : k, $ = e.areaOpacity, A = $ === void 0 ? mn.areaOpacity : $, S = e.enablePoints, O = S === void 0 ? mn.enablePoints : S, E = e.pointSize, D = E === void 0 ? mn.pointSize : E, I = e.pointColor, R = I === void 0 ? mn.pointColor : I, M = e.pointBorderWidth, L = M === void 0 ? mn.pointBorderWidth : M, B = e.pointBorderColor, N = B === void 0 ? mn.pointBorderColor : B, U = e.enableGridX, q = U === void 0 ? mn.enableGridX : U, V = e.gridXValues, G = e.enableGridY, Z = G === void 0 ? mn.enableGridY : G, K = e.gridYValues, Q = e.axisTop, z = e.axisRight, F = e.axisBottom, j = F === void 0 ? mn.axisBottom : F, H = e.axisLeft, P = H === void 0 ? mn.axisLeft : H, ee = e.legends, X = ee === void 0 ? mn.legends : ee, Y = e.isInteractive, ce = Y === void 0 ? mn.isInteractive : Y, te = e.debugMesh, ne = te === void 0 ? mn.debugMesh : te, oe = e.onMouseLeave, de = e.onMouseDown, Te = e.onMouseUp, _e = e.onClick, Ce = e.onDoubleClick, Ie = e.tooltip, fe = Ie === void 0 ? mn.tooltip : Ie, me = e.role, Me = e.forwardedRef, tt = le(null), ke = xa(t, n, r), xe = ke.margin, Ue = ke.innerWidth, nt = ke.innerHeight, Rt = ke.outerWidth, Ae = ke.outerHeight, Fe = Gt(), ht = Se(null), Ze = ht[0], St = ht[1], yt = u5({ data: a, xScale: l, xFormat: c, yScale: d, yFormat: f, width: Ue, height: nt, colors: w, curve: p, areaBaselineValue: T, pointColor: R, pointBorderColor: N }), Wt = yt.lineGenerator, ot = yt.areaGenerator, He = yt.series, Je = yt.xScale, lt = yt.yScale, Ve = yt.points, ct = se(function() {
|
|
37468
37460
|
return { innerWidth: Ue, innerHeight: nt, series: He, points: Ve, xScale: Je, yScale: lt, lineWidth: _, lineGenerator: Wt, areaGenerator: ot, currentPoint: Ze, setCurrentPoint: St };
|
|
37469
37461
|
}, [Ue, nt, He, Ve, Je, lt, _, Wt, ot, Ze, St]), $t = c5({ points: Ve, width: Ue, height: nt, debug: ne }), pt = $t.delaunay, ze = $t.voronoi;
|
|
37470
|
-
|
|
37462
|
+
he(function() {
|
|
37471
37463
|
if (tt.current !== null) {
|
|
37472
37464
|
tt.current.width = Rt * o, tt.current.height = Ae * o;
|
|
37473
37465
|
var Re = tt.current.getContext("2d");
|
|
@@ -37507,8 +37499,8 @@ var Kle = Mn(function(e, t) {
|
|
|
37507
37499
|
return Ve[an];
|
|
37508
37500
|
}, [tt, xe, Ue, nt, pt, Ve]), et = Li(), Mt = et.showTooltipFromEvent, ut = et.hideTooltip, kt = re(function(Re) {
|
|
37509
37501
|
var at = Pe(Re);
|
|
37510
|
-
St(at), at ? Mt(tn(
|
|
37511
|
-
}, [Pe, St, Mt, ut,
|
|
37502
|
+
St(at), at ? Mt(tn(fe, { point: at }), Re) : ut();
|
|
37503
|
+
}, [Pe, St, Mt, ut, fe]), dn = re(function(Re) {
|
|
37512
37504
|
ut(), St(null), Ze && (oe == null || oe(Ze, Re));
|
|
37513
37505
|
}, [ut, St, oe, Ze]), Zt = re(function(Re) {
|
|
37514
37506
|
if (de) {
|
|
@@ -37531,7 +37523,7 @@ var Kle = Mn(function(e, t) {
|
|
|
37531
37523
|
at && Ce(at, Re);
|
|
37532
37524
|
}
|
|
37533
37525
|
}, [Pe, Ce]);
|
|
37534
|
-
return C("canvas", { ref: Fv(tt, Me), width: Rt * o, height: Ae * o, style: { width: Rt, height: Ae, cursor: ce ? "auto" : "normal" }, onMouseEnter: ce ? kt : void 0, onMouseMove: ce ? kt : void 0, onMouseLeave: ce ?
|
|
37526
|
+
return C("canvas", { ref: Fv(tt, Me), width: Rt * o, height: Ae * o, style: { width: Rt, height: Ae, cursor: ce ? "auto" : "normal" }, onMouseEnter: ce ? kt : void 0, onMouseMove: ce ? kt : void 0, onMouseLeave: ce ? dn : void 0, onMouseDown: ce ? Zt : void 0, onMouseUp: ce ? Jt : void 0, onClick: ce ? Tn : void 0, onDoubleClick: ce ? on : void 0, role: me });
|
|
37535
37527
|
}, tce = Mn(function(e, t) {
|
|
37536
37528
|
var n = e.isInteractive, r = e.renderWrapper, i = e.theme, o = Ch(e, Qle);
|
|
37537
37529
|
return C(wa, { isInteractive: n, renderWrapper: r, theme: i, animate: !1, children: C(ece, Un({}, o, { forwardedRef: t })) });
|
|
@@ -38048,27 +38040,27 @@ var Nfe = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
|
|
|
38048
38040
|
return ht !== Ae;
|
|
38049
38041
|
}) : [].concat(Fe, [Ae]);
|
|
38050
38042
|
});
|
|
38051
|
-
}, []), ce = $i(r), te = $i(s), ne = $i(c), oe = ys(u), de = Gt(), Te = jv(f, p), _e = kr(g, de), Ce = kr(w, de), Ie = (_ === "grouped" ? Bfe : Hfe)({ layout: x, data: k, getIndex: ce, keys: o, width: $, height: A, getColor: Te, padding: O, innerPadding: D, valueScale: R, indexScale: L, hiddenIds: ee, formatValue: oe, getTooltipLabel: ne, margin: T }),
|
|
38052
|
-
return
|
|
38043
|
+
}, []), ce = $i(r), te = $i(s), ne = $i(c), oe = ys(u), de = Gt(), Te = jv(f, p), _e = kr(g, de), Ce = kr(w, de), Ie = (_ === "grouped" ? Bfe : Hfe)({ layout: x, data: k, getIndex: ce, keys: o, width: $, height: A, getColor: Te, padding: O, innerPadding: D, valueScale: R, indexScale: L, hiddenIds: ee, formatValue: oe, getTooltipLabel: ne, margin: T }), fe = Ie.bars, me = Ie.xScale, Me = Ie.yScale, tt = se(function() {
|
|
38044
|
+
return fe.filter(function(Ae) {
|
|
38053
38045
|
return Ae.data.value !== null;
|
|
38054
38046
|
}).map(function(Ae, Fe) {
|
|
38055
38047
|
return Lt({}, Ae, { index: Fe });
|
|
38056
38048
|
});
|
|
38057
|
-
}, [
|
|
38049
|
+
}, [fe]), ke = re(function(Ae) {
|
|
38058
38050
|
var Fe = Ae.width, ht = Ae.height;
|
|
38059
38051
|
return !!q && !(G > 0 && Fe < G) && !(K > 0 && ht < K);
|
|
38060
38052
|
}, [q, G, K]), xe = se(function() {
|
|
38061
38053
|
return o.map(function(Ae) {
|
|
38062
|
-
var Fe =
|
|
38054
|
+
var Fe = fe.find(function(ht) {
|
|
38063
38055
|
return ht.data.id === Ae;
|
|
38064
38056
|
});
|
|
38065
38057
|
return Lt({}, Fe, { data: Lt({ id: Ae }, Fe == null ? void 0 : Fe.data, { hidden: ee.includes(Ae) }) });
|
|
38066
38058
|
});
|
|
38067
|
-
}, [ee, o,
|
|
38059
|
+
}, [ee, o, fe]), Ue = (t = R.reverse) != null && t, nt = se(function() {
|
|
38068
38060
|
return z.map(function(Ae) {
|
|
38069
|
-
return [Ae, Vfe({ bars: Ae.dataFrom === "keys" ? xe :
|
|
38061
|
+
return [Ae, Vfe({ bars: Ae.dataFrom === "keys" ? xe : fe, direction: Ae.direction, from: Ae.dataFrom, groupMode: _, layout: x, legendLabel: F, reverse: Ue })];
|
|
38070
38062
|
});
|
|
38071
|
-
}, [z, xe,
|
|
38063
|
+
}, [z, xe, fe, _, x, F, Ue]), Rt = se(function() {
|
|
38072
38064
|
return function(Ae, Fe, ht, Ze, St, yt, Wt) {
|
|
38073
38065
|
Ze === void 0 && (Ze = en.layout), St === void 0 && (St = en.groupMode);
|
|
38074
38066
|
var ot = [];
|
|
@@ -38094,9 +38086,9 @@ var Nfe = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
|
|
|
38094
38086
|
});
|
|
38095
38087
|
}
|
|
38096
38088
|
return ot;
|
|
38097
|
-
}(
|
|
38098
|
-
}, [
|
|
38099
|
-
return { bars:
|
|
38089
|
+
}(fe, me, Me, x, _, H, oe);
|
|
38090
|
+
}, [fe, me, Me, x, _, H, oe]);
|
|
38091
|
+
return { bars: fe, barsWithValue: tt, xScale: me, yScale: Me, getIndex: ce, getLabel: te, getTooltipLabel: ne, formatValue: oe, getColor: Te, getBorderColor: _e, getLabelColor: Ce, shouldRenderBarLabel: ke, hiddenIds: ee, toggleSerie: Y, legendsWithData: nt, barTotals: Rt };
|
|
38100
38092
|
}, Zfe = function(e) {
|
|
38101
38093
|
var t = e.data, n = e.springConfig, r = e.animate, i = e.layout, o = i === void 0 ? Qt.layout : i, a = Gt();
|
|
38102
38094
|
return ha(t, { keys: function(s) {
|
|
@@ -38113,7 +38105,7 @@ var Nfe = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
|
|
|
38113
38105
|
return C(nn.text, { x: s.x, y: s.y, fillOpacity: s.labelOpacity, style: Lt({}, a.labels.text, { pointerEvents: "none" }), fontWeight: "bold", fontSize: a.labels.text.fontSize, fontFamily: a.labels.text.fontFamily, textAnchor: o === "vertical" ? "middle" : "start", alignmentBaseline: o === "vertical" ? "alphabetic" : "middle", children: l.formattedValue }, l.key);
|
|
38114
38106
|
});
|
|
38115
38107
|
}, Xfe = ["isInteractive", "animate", "motionConfig", "theme", "renderWrapper"], Kfe = function(e) {
|
|
38116
|
-
var t, n = e.data, r = e.indexBy, i = e.keys, o = e.margin, a = e.width, s = e.height, l = e.groupMode, c = e.layout, u = e.valueScale, d = e.indexScale, f = e.padding, h = e.innerPadding, p = e.axisTop, m = e.axisRight, g = e.axisBottom, b = g === void 0 ? Qt.axisBottom : g, w = e.axisLeft, y = w === void 0 ? Qt.axisLeft : w, _ = e.enableGridX, v = _ === void 0 ? Qt.enableGridX : _, x = e.enableGridY, k = x === void 0 ? Qt.enableGridY : x, T = e.gridXValues, $ = e.gridYValues, A = e.layers, S = A === void 0 ? Qt.layers : A, O = e.barComponent, E = O === void 0 ? Qt.barComponent : O, D = e.enableLabel, I = D === void 0 ? Qt.enableLabel : D, R = e.label, M = e.labelSkipWidth, L = M === void 0 ? Qt.labelSkipWidth : M, B = e.labelSkipHeight, N = B === void 0 ? Qt.labelSkipHeight : B, U = e.labelTextColor, q = e.labelPosition, V = q === void 0 ? Qt.labelPosition : q, G = e.labelOffset, Z = G === void 0 ? Qt.labelOffset : G, K = e.markers, Q = K === void 0 ? Qt.markers : K, z = e.colorBy, F = e.colors, j = e.defs, H = j === void 0 ? Qt.defs : j, P = e.fill, ee = P === void 0 ? Qt.fill : P, X = e.borderRadius, Y = X === void 0 ? Qt.borderRadius : X, ce = e.borderWidth, te = ce === void 0 ? Qt.borderWidth : ce, ne = e.borderColor, oe = e.annotations, de = oe === void 0 ? Qt.annotations : oe, Te = e.legendLabel, _e = e.tooltipLabel, Ce = e.valueFormat, Ie = e.isInteractive,
|
|
38108
|
+
var t, n = e.data, r = e.indexBy, i = e.keys, o = e.margin, a = e.width, s = e.height, l = e.groupMode, c = e.layout, u = e.valueScale, d = e.indexScale, f = e.padding, h = e.innerPadding, p = e.axisTop, m = e.axisRight, g = e.axisBottom, b = g === void 0 ? Qt.axisBottom : g, w = e.axisLeft, y = w === void 0 ? Qt.axisLeft : w, _ = e.enableGridX, v = _ === void 0 ? Qt.enableGridX : _, x = e.enableGridY, k = x === void 0 ? Qt.enableGridY : x, T = e.gridXValues, $ = e.gridYValues, A = e.layers, S = A === void 0 ? Qt.layers : A, O = e.barComponent, E = O === void 0 ? Qt.barComponent : O, D = e.enableLabel, I = D === void 0 ? Qt.enableLabel : D, R = e.label, M = e.labelSkipWidth, L = M === void 0 ? Qt.labelSkipWidth : M, B = e.labelSkipHeight, N = B === void 0 ? Qt.labelSkipHeight : B, U = e.labelTextColor, q = e.labelPosition, V = q === void 0 ? Qt.labelPosition : q, G = e.labelOffset, Z = G === void 0 ? Qt.labelOffset : G, K = e.markers, Q = K === void 0 ? Qt.markers : K, z = e.colorBy, F = e.colors, j = e.defs, H = j === void 0 ? Qt.defs : j, P = e.fill, ee = P === void 0 ? Qt.fill : P, X = e.borderRadius, Y = X === void 0 ? Qt.borderRadius : X, ce = e.borderWidth, te = ce === void 0 ? Qt.borderWidth : ce, ne = e.borderColor, oe = e.annotations, de = oe === void 0 ? Qt.annotations : oe, Te = e.legendLabel, _e = e.tooltipLabel, Ce = e.valueFormat, Ie = e.isInteractive, fe = Ie === void 0 ? Qt.isInteractive : Ie, me = e.tooltip, Me = me === void 0 ? Qt.tooltip : me, tt = e.onClick, ke = e.onMouseEnter, xe = e.onMouseLeave, Ue = e.legends, nt = e.role, Rt = nt === void 0 ? Qt.role : nt, Ae = e.ariaLabel, Fe = e.ariaLabelledBy, ht = e.ariaDescribedBy, Ze = e.isFocusable, St = Ze === void 0 ? Qt.isFocusable : Ze, yt = e.barAriaLabel, Wt = e.barAriaLabelledBy, ot = e.barAriaDescribedBy, He = e.barAriaHidden, Je = e.barAriaDisabled, lt = e.initialHiddenIds, Ve = e.enableTotals, ct = Ve === void 0 ? Qt.enableTotals : Ve, $t = e.totalsOffset, pt = $t === void 0 ? Qt.totalsOffset : $t, ze = e.forwardedRef, Pe = Kn(), et = Pe.animate, Mt = Pe.config, ut = xa(a, s, o), kt = ut.outerWidth, dn = ut.outerHeight, Zt = ut.margin, Jt = ut.innerWidth, Tn = ut.innerHeight, on = T5({ indexBy: r, label: R, tooltipLabel: _e, valueFormat: Ce, colors: F, colorBy: z, borderColor: ne, labelTextColor: U, groupMode: l, layout: c, data: n, keys: i, margin: Zt, width: Jt, height: Tn, padding: f, innerPadding: h, valueScale: u, indexScale: d, enableLabel: I, labelSkipWidth: L, labelSkipHeight: N, legends: Ue, legendLabel: Te, initialHiddenIds: lt, totalsOffset: pt }), Re = on.bars, at = on.barsWithValue, It = on.xScale, bn = on.yScale, an = on.getLabel, qe = on.getTooltipLabel, Ye = on.getBorderColor, xt = on.getLabelColor, Ut = on.shouldRenderBarLabel, Pt = on.toggleSerie, st = on.legendsWithData, Nt = on.barTotals, Er = on.getColor, _n = _5(c, (t = u == null ? void 0 : u.reverse) != null && t, V, Z), xn = ha(at, { keys: function(Le) {
|
|
38117
38109
|
return Le.key;
|
|
38118
38110
|
}, from: function(Le) {
|
|
38119
38111
|
return Lt({ borderColor: Ye(Le), color: Le.color, height: 0, labelColor: xt(Le), labelOpacity: 0 }, _n(Le.width, Le.height), { transform: "translate(" + Le.x + ", " + (Le.y + Le.height) + ")", width: Le.width }, c === "vertical" ? {} : { height: Le.height, transform: "translate(" + Le.x + ", " + Le.y + ")", width: 0 });
|
|
@@ -38124,13 +38116,13 @@ var Nfe = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
|
|
|
38124
38116
|
}, leave: function(Le) {
|
|
38125
38117
|
return Lt({ borderColor: Ye(Le), color: Le.color, height: 0, labelColor: xt(Le), labelOpacity: 0 }, _n(Le.width, Le.height), { labelY: 0, transform: "translate(" + Le.x + ", " + (Le.y + Le.height) + ")", width: Le.width }, c === "vertical" ? {} : Lt({}, _n(Le.width, Le.height), { labelX: 0, height: Le.height, transform: "translate(" + Le.x + ", " + Le.y + ")", width: 0 }));
|
|
38126
38118
|
}, config: Mt, immediate: !et, initial: et ? void 0 : null }), Vn = se(function() {
|
|
38127
|
-
return { borderRadius: Y, borderWidth: te, enableLabel: I, isInteractive:
|
|
38128
|
-
}, [Y, te, I, qe,
|
|
38119
|
+
return { borderRadius: Y, borderWidth: te, enableLabel: I, isInteractive: fe, labelSkipWidth: L, labelSkipHeight: N, onClick: tt, onMouseEnter: ke, onMouseLeave: xe, getTooltipLabel: qe, tooltip: Me, isFocusable: St, ariaLabel: yt, ariaLabelledBy: Wt, ariaDescribedBy: ot, ariaHidden: He, ariaDisabled: Je };
|
|
38120
|
+
}, [Y, te, I, qe, fe, N, L, tt, ke, xe, Me, St, yt, Wt, ot, He, Je]), mo = Lv(H, Re, ee, { dataKey: "data", targetKey: "data.fill" }), Dt = { annotations: null, axes: null, bars: null, grid: null, legends: null, markers: null, totals: null };
|
|
38129
38121
|
S.includes("annotations") && (Dt.annotations = C(Efe, { bars: Re, annotations: de }, "annotations")), S.includes("axes") && (Dt.axes = C(r5, { xScale: It, yScale: bn, width: Jt, height: Tn, top: p, right: m, bottom: b, left: y }, "axes")), S.includes("bars") && (Dt.bars = C(Zo, { children: xn(function(Le, Ur) {
|
|
38130
38122
|
return tn(E, Lt({}, Vn, { bar: Ur, style: Le, shouldRenderLabel: Ut(Ur), label: an(Ur.data) }));
|
|
38131
38123
|
}) }, "bars")), S.includes("grid") && (Dt.grid = C(i5, { width: Jt, height: Tn, xScale: v ? It : null, yScale: k ? bn : null, xValues: T, yValues: $ }, "grid")), S.includes("legends") && (Dt.legends = C(Afe, { width: Jt, height: Tn, legends: st, toggleSerie: Pt }, "legends")), S.includes("markers") && (Dt.markers = C(OS, { markers: Q, width: Jt, height: Tn, xScale: It, yScale: bn }, "markers")), S.includes("totals") && ct && (Dt.totals = C(Zfe, { data: Nt, springConfig: Mt, animate: et, layout: c }, "totals"));
|
|
38132
38124
|
var go = Lt({}, Vn, { margin: Zt, width: a, height: s, innerWidth: Jt, innerHeight: Tn, bars: Re, legendData: st, enableLabel: I, xScale: It, yScale: bn, tooltip: Me, getTooltipLabel: qe, onClick: tt, onMouseEnter: ke, onMouseLeave: xe, getColor: Er });
|
|
38133
|
-
return C(_h, { width: kt, height:
|
|
38125
|
+
return C(_h, { width: kt, height: dn, margin: Zt, defs: mo, role: Rt, ariaLabel: Ae, ariaLabelledBy: Fe, ariaDescribedBy: ht, isFocusable: St, ref: ze, children: S.map(function(Le, Ur) {
|
|
38134
38126
|
var vo;
|
|
38135
38127
|
return typeof Le == "function" ? C(Zo, { children: tn(Le, go) }, Ur) : (vo = Dt == null ? void 0 : Dt[Le]) != null ? vo : null;
|
|
38136
38128
|
}) });
|
|
@@ -38142,7 +38134,7 @@ var Nfe = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
|
|
|
38142
38134
|
return DS(i.x + t.left, i.y + t.top, i.width, i.height, n, r);
|
|
38143
38135
|
});
|
|
38144
38136
|
}, ehe = function(e) {
|
|
38145
|
-
var t, n = e.data, r = e.indexBy, i = e.keys, o = e.margin, a = e.width, s = e.height, l = e.groupMode, c = e.layout, u = e.valueScale, d = e.indexScale, f = e.padding, h = e.innerPadding, p = e.axisTop, m = e.axisRight, g = e.axisBottom, b = g === void 0 ? Cn.axisBottom : g, w = e.axisLeft, y = w === void 0 ? Cn.axisLeft : w, _ = e.enableGridX, v = _ === void 0 ? Cn.enableGridX : _, x = e.enableGridY, k = x === void 0 ? Cn.enableGridY : x, T = e.gridXValues, $ = e.gridYValues, A = e.labelPosition, S = A === void 0 ? Cn.labelPosition : A, O = e.labelOffset, E = O === void 0 ? Cn.labelOffset : O, D = e.layers, I = D === void 0 ? Cn.layers : D, R = e.renderBar, M = R === void 0 ? Cn.renderBar : R, L = e.enableLabel, B = L === void 0 ? Cn.enableLabel : L, N = e.label, U = e.labelSkipWidth, q = U === void 0 ? Cn.labelSkipWidth : U, V = e.labelSkipHeight, G = V === void 0 ? Cn.labelSkipHeight : V, Z = e.labelTextColor, K = e.colorBy, Q = e.colors, z = e.borderRadius, F = z === void 0 ? Cn.borderRadius : z, j = e.borderWidth, H = j === void 0 ? Cn.borderWidth : j, P = e.borderColor, ee = e.annotations, X = ee === void 0 ? Cn.annotations : ee, Y = e.legendLabel, ce = e.tooltipLabel, te = e.valueFormat, ne = e.isInteractive, oe = ne === void 0 ? Cn.isInteractive : ne, de = e.tooltip, Te = de === void 0 ? Cn.tooltip : de, _e = e.onClick, Ce = e.onMouseEnter, Ie = e.onMouseLeave,
|
|
38137
|
+
var t, n = e.data, r = e.indexBy, i = e.keys, o = e.margin, a = e.width, s = e.height, l = e.groupMode, c = e.layout, u = e.valueScale, d = e.indexScale, f = e.padding, h = e.innerPadding, p = e.axisTop, m = e.axisRight, g = e.axisBottom, b = g === void 0 ? Cn.axisBottom : g, w = e.axisLeft, y = w === void 0 ? Cn.axisLeft : w, _ = e.enableGridX, v = _ === void 0 ? Cn.enableGridX : _, x = e.enableGridY, k = x === void 0 ? Cn.enableGridY : x, T = e.gridXValues, $ = e.gridYValues, A = e.labelPosition, S = A === void 0 ? Cn.labelPosition : A, O = e.labelOffset, E = O === void 0 ? Cn.labelOffset : O, D = e.layers, I = D === void 0 ? Cn.layers : D, R = e.renderBar, M = R === void 0 ? Cn.renderBar : R, L = e.enableLabel, B = L === void 0 ? Cn.enableLabel : L, N = e.label, U = e.labelSkipWidth, q = U === void 0 ? Cn.labelSkipWidth : U, V = e.labelSkipHeight, G = V === void 0 ? Cn.labelSkipHeight : V, Z = e.labelTextColor, K = e.colorBy, Q = e.colors, z = e.borderRadius, F = z === void 0 ? Cn.borderRadius : z, j = e.borderWidth, H = j === void 0 ? Cn.borderWidth : j, P = e.borderColor, ee = e.annotations, X = ee === void 0 ? Cn.annotations : ee, Y = e.legendLabel, ce = e.tooltipLabel, te = e.valueFormat, ne = e.isInteractive, oe = ne === void 0 ? Cn.isInteractive : ne, de = e.tooltip, Te = de === void 0 ? Cn.tooltip : de, _e = e.onClick, Ce = e.onMouseEnter, Ie = e.onMouseLeave, fe = e.legends, me = e.pixelRatio, Me = me === void 0 ? Cn.pixelRatio : me, tt = e.role, ke = e.forwardedRef, xe = e.enableTotals, Ue = xe === void 0 ? Cn.enableTotals : xe, nt = e.totalsOffset, Rt = nt === void 0 ? Cn.totalsOffset : nt, Ae = le(null), Fe = Gt(), ht = xa(a, s, o), Ze = ht.margin, St = ht.innerWidth, yt = ht.innerHeight, Wt = ht.outerWidth, ot = ht.outerHeight, He = T5({ indexBy: r, label: N, tooltipLabel: ce, valueFormat: te, colors: Q, colorBy: K, borderColor: P, labelTextColor: Z, groupMode: l, layout: c, data: n, keys: i, margin: Ze, width: St, height: yt, padding: f, innerPadding: h, valueScale: u, indexScale: d, enableLabel: B, labelSkipWidth: q, labelSkipHeight: G, legends: fe, legendLabel: Y, totalsOffset: Rt }), Je = He.bars, lt = He.barsWithValue, Ve = He.xScale, ct = He.yScale, $t = He.getLabel, pt = He.getTooltipLabel, ze = He.getBorderColor, Pe = He.getLabelColor, et = He.shouldRenderBarLabel, Mt = He.legendsWithData, ut = He.barTotals, kt = He.getColor, dn = Li(), Zt = dn.showTooltipFromEvent, Jt = dn.hideTooltip, Tn = _fe({ annotations: b5({ data: Je, annotations: X, getPosition: function(qe) {
|
|
38146
38138
|
return { x: qe.x, y: qe.y };
|
|
38147
38139
|
}, getDimensions: function(qe) {
|
|
38148
38140
|
var Ye = qe.width, xt = qe.height;
|
|
@@ -38150,7 +38142,7 @@ var Nfe = ["layout", "width", "height", "padding", "innerPadding", "valueScale",
|
|
|
38150
38142
|
} }) }), on = se(function() {
|
|
38151
38143
|
return { borderRadius: F, borderWidth: H, isInteractive: oe, isFocusable: !1, labelSkipWidth: q, labelSkipHeight: G, margin: Ze, width: a, height: s, innerWidth: St, innerHeight: yt, bars: Je, legendData: Mt, enableLabel: B, xScale: Ve, yScale: ct, tooltip: Te, getTooltipLabel: pt, onClick: _e, onMouseEnter: Ce, onMouseLeave: Ie, getColor: kt };
|
|
38152
38144
|
}, [F, H, oe, q, G, Ze, a, s, St, yt, Je, Mt, B, Ve, ct, Te, pt, _e, Ce, Ie, kt]), Re = ys(te), at = _5(c, (t = u == null ? void 0 : u.reverse) != null && t, S, E);
|
|
38153
|
-
|
|
38145
|
+
he(function() {
|
|
38154
38146
|
if (Ae.current) {
|
|
38155
38147
|
Ae.current.width = Wt * Me, Ae.current.height = ot * Me;
|
|
38156
38148
|
var qe = Ae.current.getContext("2d");
|
|
@@ -38258,7 +38250,7 @@ export {
|
|
|
38258
38250
|
VR as aL,
|
|
38259
38251
|
tj as aM,
|
|
38260
38252
|
P3 as aN,
|
|
38261
|
-
|
|
38253
|
+
fn as aO,
|
|
38262
38254
|
uj as aP,
|
|
38263
38255
|
WB as aQ,
|
|
38264
38256
|
xhe as aR,
|