react-luminus-components 1.4.18 → 1.4.19
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/main.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s, c as I, t as Ae, s as go, g as vo, m as gc, d as Qr, a as vc, b as mc, e as ht, f as ha, h as hc, i as bc, k as xc, l as yc, n as wc, o as Dc, p as Nc, T as ts, q as rs, r as mo, E as Sc, u as ns, v as ba, w as as, x as Cc, y as _e, z as xa, F as os, A as Ec, B as jc, C as Ic, D as Oc, M as _c, G as Pc, H as Ac, I as Tc, J as Rc, K as kc, L as ra, N as Bc, O as Mc, P as ce, Q as xr, R as Lc, S as Fc, U as Vc, V as Lt, W as oe, X as ya, Y as Oe, Z as wa, _ as $c, $ as pt, a0 as Gc, a1 as Ve, a2 as
|
|
1
|
+
import { j as s, c as I, t as Ae, s as go, g as vo, m as gc, d as Qr, a as vc, b as mc, e as ht, f as ha, h as hc, i as bc, k as xc, l as yc, n as wc, o as Dc, p as Nc, T as ts, q as rs, r as mo, E as Sc, u as ns, v as ba, w as as, x as Cc, y as _e, z as xa, F as os, A as Ec, B as jc, C as Ic, D as Oc, M as _c, G as Pc, H as Ac, I as Tc, J as Rc, K as kc, L as ra, N as Bc, O as Mc, P as ce, Q as xr, R as Lc, S as Fc, U as Vc, V as Lt, W as oe, X as ya, Y as Oe, Z as wa, _ as $c, $ as pt, a0 as Gc, a1 as Ve, a2 as Zt, a3 as Q, a4 as st, a5 as Da, a6 as Na, a7 as is, a8 as Sa, a9 as Et, aa as ss, ab as ls, ac as ze, ad as ft, ae as $t, af as tn, ag as Wc, ah as yt, ai as Uc, aj as Hc, ak as zc, al as Ar, am as ct, an as jt, ao as er, ap as Ca, aq as Ea, ar as gn, as as ja, at as qc, au as Yc, av as Kc, aw as tr, ax as rr, ay as Tr, az as rt, aA as cs, aB as Ft, aC as Ge, aD as vn, aE as mn, aF as ds, aG as tt, aH as Ia, aI as Xc, aJ as Qc, aK as Jc, aL as us, aM as Zc, aN as ed, aO as td, aP as rd, aQ as it, aR as nd, aS as ad, aT as rn, aU as te, aV as ps, aW as od, aX as id, aY as sd, aZ as fs, a_ as gs, a$ as ld, b0 as cd, b1 as dd, b2 as ud, b3 as pd, b4 as fd, b5 as gd, b6 as vd, b7 as wt, b8 as md, b9 as hd, ba as bd, bb as xd, bc as yd, bd as nn, be as wd, bf as jn, bg as Dd, bh as Ut, bi as Nd, bj as Sd, bk as vs, bl as an, bm as Cd, bn as ms, bo as $r, bp as Ed, bq as hs, br as In, bs as jd, bt as Id } from "./nivo-bar.es-Cr3RGn0C.js";
|
|
2
2
|
import { bw as mD, bx as hD, bu as bD, bv as xD } from "./nivo-bar.es-Cr3RGn0C.js";
|
|
3
3
|
import * as Ne from "react";
|
|
4
4
|
import se, { useCallback as P, useMemo as M, useState as F, useRef as ee, useEffect as W, useContext as z, useId as Od, Component as _d, isValidElement as ho, Suspense as Pd, useLayoutEffect as Oa, useReducer as Ad, Fragment as Td } from "react";
|
|
@@ -90,17 +90,17 @@ function na(e, t) {
|
|
|
90
90
|
let o = "", i = "";
|
|
91
91
|
const l = n === "extended" ? "-" : "", c = n === "extended" ? ":" : "";
|
|
92
92
|
if (a !== "time") {
|
|
93
|
-
const
|
|
94
|
-
o = `${ht(r.getFullYear(), 4)}${l}${d}${l}${
|
|
93
|
+
const p = ht(r.getDate(), 2), d = ht(r.getMonth() + 1, 2);
|
|
94
|
+
o = `${ht(r.getFullYear(), 4)}${l}${d}${l}${p}`;
|
|
95
95
|
}
|
|
96
96
|
if (a !== "date") {
|
|
97
|
-
const
|
|
98
|
-
if (
|
|
99
|
-
const b = Math.abs(
|
|
100
|
-
i = `${
|
|
97
|
+
const p = r.getTimezoneOffset();
|
|
98
|
+
if (p !== 0) {
|
|
99
|
+
const b = Math.abs(p), h = ht(Math.trunc(b / 60), 2), m = ht(b % 60, 2);
|
|
100
|
+
i = `${p < 0 ? "+" : "-"}${h}:${m}`;
|
|
101
101
|
} else
|
|
102
102
|
i = "Z";
|
|
103
|
-
const d = ht(r.getHours(), 2),
|
|
103
|
+
const d = ht(r.getHours(), 2), u = ht(r.getMinutes(), 2), f = ht(r.getSeconds(), 2), g = o === "" ? "" : "T", v = [d, u, f].join(c);
|
|
104
104
|
o = `${o}${g}${v}${i}`;
|
|
105
105
|
}
|
|
106
106
|
return o;
|
|
@@ -168,9 +168,9 @@ const eu = {
|
|
|
168
168
|
children: i,
|
|
169
169
|
dimension: l = "height",
|
|
170
170
|
in: c = !1,
|
|
171
|
-
timeout:
|
|
171
|
+
timeout: p = 300,
|
|
172
172
|
mountOnEnter: d = !1,
|
|
173
|
-
unmountOnExit:
|
|
173
|
+
unmountOnExit: u = !1,
|
|
174
174
|
appear: f = !1,
|
|
175
175
|
getDimensionValue: g = Zd,
|
|
176
176
|
...v
|
|
@@ -199,9 +199,9 @@ const eu = {
|
|
|
199
199
|
onExiting: y,
|
|
200
200
|
childRef: i.ref,
|
|
201
201
|
in: c,
|
|
202
|
-
timeout:
|
|
202
|
+
timeout: p,
|
|
203
203
|
mountOnEnter: d,
|
|
204
|
-
unmountOnExit:
|
|
204
|
+
unmountOnExit: u,
|
|
205
205
|
appear: f,
|
|
206
206
|
children: (S, j) => /* @__PURE__ */ se.cloneElement(i, {
|
|
207
207
|
...j,
|
|
@@ -336,10 +336,10 @@ const _s = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
336
336
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
337
337
|
as: l = "div",
|
|
338
338
|
...c
|
|
339
|
-
},
|
|
339
|
+
}, p) => {
|
|
340
340
|
const d = _e(e, "card");
|
|
341
341
|
return /* @__PURE__ */ s.jsx(l, {
|
|
342
|
-
ref:
|
|
342
|
+
ref: p,
|
|
343
343
|
...c,
|
|
344
344
|
className: I(t, d, r && `bg-${r}`, n && `text-${n}`, a && `border-${a}`),
|
|
345
345
|
children: o ? /* @__PURE__ */ s.jsx(Ta, {
|
|
@@ -436,20 +436,20 @@ function iu(e) {
|
|
|
436
436
|
}
|
|
437
437
|
function a(l) {
|
|
438
438
|
const c = n(l);
|
|
439
|
-
let
|
|
440
|
-
return typeof
|
|
439
|
+
let p = e[c];
|
|
440
|
+
return typeof p == "number" ? p = `${p - 0.2}px` : p = `calc(${p} - 0.2px)`, `(max-width: ${p})`;
|
|
441
441
|
}
|
|
442
442
|
function o(l) {
|
|
443
443
|
let c = e[l];
|
|
444
444
|
return typeof c == "number" && (c = `${c}px`), `(min-width: ${c})`;
|
|
445
445
|
}
|
|
446
|
-
function i(l, c,
|
|
446
|
+
function i(l, c, p) {
|
|
447
447
|
let d;
|
|
448
|
-
typeof l == "object" ? (d = l,
|
|
448
|
+
typeof l == "object" ? (d = l, p = c, c = !0) : (c = c || !0, d = {
|
|
449
449
|
[l]: c
|
|
450
450
|
});
|
|
451
|
-
let
|
|
452
|
-
return ou(
|
|
451
|
+
let u = M(() => Object.entries(d).reduce((f, [g, v]) => ((v === "up" || v === !0) && (f = r(f, o(g))), (v === "down" || v === !0) && (f = r(f, a(g))), f), ""), [JSON.stringify(d)]);
|
|
452
|
+
return ou(u, p);
|
|
453
453
|
}
|
|
454
454
|
return i;
|
|
455
455
|
}
|
|
@@ -492,9 +492,9 @@ const lu = {
|
|
|
492
492
|
appear: i,
|
|
493
493
|
...l,
|
|
494
494
|
childRef: r.ref,
|
|
495
|
-
children: (
|
|
495
|
+
children: (p, d) => /* @__PURE__ */ Ne.cloneElement(r, {
|
|
496
496
|
...d,
|
|
497
|
-
className: I(t, r.props.className, (
|
|
497
|
+
className: I(t, r.props.className, (p === ba || p === ns) && `${e}-toggling`, lu[p])
|
|
498
498
|
})
|
|
499
499
|
})));
|
|
500
500
|
Ts.displayName = "OffcanvasToggling";
|
|
@@ -544,9 +544,9 @@ const Bs = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
544
544
|
show: i = !1,
|
|
545
545
|
backdrop: l = !0,
|
|
546
546
|
keyboard: c = !0,
|
|
547
|
-
scroll:
|
|
547
|
+
scroll: p = !1,
|
|
548
548
|
onEscapeKeyDown: d,
|
|
549
|
-
onShow:
|
|
549
|
+
onShow: u,
|
|
550
550
|
onHide: f,
|
|
551
551
|
container: g,
|
|
552
552
|
autoFocus: v = !0,
|
|
@@ -574,7 +574,7 @@ const Bs = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
574
574
|
onHide: B
|
|
575
575
|
}), [B]);
|
|
576
576
|
function V() {
|
|
577
|
-
return E || (
|
|
577
|
+
return E || (p ? (C.current || (C.current = new Tc({
|
|
578
578
|
handleContainerOverflow: !1
|
|
579
579
|
})), C.current) : Rc());
|
|
580
580
|
}
|
|
@@ -602,11 +602,11 @@ const Bs = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
602
602
|
container: g,
|
|
603
603
|
keyboard: c,
|
|
604
604
|
autoFocus: v,
|
|
605
|
-
enforceFocus: b && !
|
|
605
|
+
enforceFocus: b && !p,
|
|
606
606
|
restoreFocus: h,
|
|
607
607
|
restoreFocusOptions: m,
|
|
608
608
|
onEscapeKeyDown: d,
|
|
609
|
-
onShow:
|
|
609
|
+
onShow: u,
|
|
610
610
|
onHide: B,
|
|
611
611
|
onEnter: q,
|
|
612
612
|
onEntering: S,
|
|
@@ -676,20 +676,20 @@ const bt = Object.assign(Fs, {
|
|
|
676
676
|
as: r = "div",
|
|
677
677
|
...n
|
|
678
678
|
}, a) => {
|
|
679
|
-
const o = _e(e, "row"), i = Bc(), l = Mc(), c = `${o}-cols`,
|
|
679
|
+
const o = _e(e, "row"), i = Bc(), l = Mc(), c = `${o}-cols`, p = [];
|
|
680
680
|
return i.forEach((d) => {
|
|
681
|
-
const
|
|
681
|
+
const u = n[d];
|
|
682
682
|
delete n[d];
|
|
683
683
|
let f;
|
|
684
|
-
|
|
684
|
+
u != null && typeof u == "object" ? {
|
|
685
685
|
cols: f
|
|
686
|
-
} =
|
|
686
|
+
} = u : f = u;
|
|
687
687
|
const g = d !== l ? `-${d}` : "";
|
|
688
|
-
f != null &&
|
|
688
|
+
f != null && p.push(`${c}${g}-${f}`);
|
|
689
689
|
}), /* @__PURE__ */ s.jsx(r, {
|
|
690
690
|
ref: a,
|
|
691
691
|
...n,
|
|
692
|
-
className: I(t, o, ...
|
|
692
|
+
className: I(t, o, ...p)
|
|
693
693
|
});
|
|
694
694
|
});
|
|
695
695
|
Ra.displayName = "Row";
|
|
@@ -703,15 +703,15 @@ const pu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
703
703
|
size: i,
|
|
704
704
|
variant: l,
|
|
705
705
|
responsive: c,
|
|
706
|
-
...
|
|
706
|
+
...p
|
|
707
707
|
}, d) => {
|
|
708
|
-
const
|
|
709
|
-
...
|
|
708
|
+
const u = _e(e, "table"), f = I(t, u, l && `${u}-${l}`, i && `${u}-${i}`, r && `${u}-${typeof r == "string" ? `striped-${r}` : "striped"}`, n && `${u}-bordered`, a && `${u}-borderless`, o && `${u}-hover`), g = /* @__PURE__ */ s.jsx("table", {
|
|
709
|
+
...p,
|
|
710
710
|
className: f,
|
|
711
711
|
ref: d
|
|
712
712
|
});
|
|
713
713
|
if (c) {
|
|
714
|
-
let v = `${
|
|
714
|
+
let v = `${u}-responsive`;
|
|
715
715
|
return typeof c == "string" && (v = `${v}-${c}`), /* @__PURE__ */ s.jsx("div", {
|
|
716
716
|
className: v,
|
|
717
717
|
children: g
|
|
@@ -748,7 +748,7 @@ const pu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
748
748
|
sm: vu,
|
|
749
749
|
lg: mu
|
|
750
750
|
}, hu = ({ month: e, onChangeMonth: t, locale: r, yearMin: n = 2e3, yearMax: a = 2050, className: o, monthClassName: i, yearClassName: l, size: c }) => {
|
|
751
|
-
const
|
|
751
|
+
const p = P((f) => {
|
|
752
752
|
const g = Vc(e, f);
|
|
753
753
|
g.getFullYear() < n || g.getFullYear() > a || t(g);
|
|
754
754
|
}, [e, t, n, a]), d = M(() => {
|
|
@@ -756,7 +756,7 @@ const pu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
756
756
|
for (let g = n; g <= a; g++)
|
|
757
757
|
f.push(g);
|
|
758
758
|
return f;
|
|
759
|
-
}, [n, a]),
|
|
759
|
+
}, [n, a]), u = M(() => {
|
|
760
760
|
const v = [];
|
|
761
761
|
for (let b = 0; b <= 11; b++)
|
|
762
762
|
v.push({
|
|
@@ -768,51 +768,51 @@ const pu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
768
768
|
return /* @__PURE__ */ s.jsxs("div", { className: I("card d-flex flex-row align-items-center justify-content-center m-0 p-1 gap-2", o, {
|
|
769
769
|
[Wr[c]]: c
|
|
770
770
|
}), children: [
|
|
771
|
-
/* @__PURE__ */ s.jsx(oe, { onClick: () =>
|
|
771
|
+
/* @__PURE__ */ s.jsx(oe, { onClick: () => p(-1), disabled: e.getFullYear() < n || e.getFullYear() === n && e.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(ya, {}) }),
|
|
772
772
|
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getMonth(), onChange: (f) => {
|
|
773
773
|
var g;
|
|
774
774
|
return ((g = f.target) == null ? void 0 : g.value) && t(Qd(e, Number(f.target.value)));
|
|
775
|
-
}, className: I(Wr.select, Wr.month, i), children:
|
|
775
|
+
}, className: I(Wr.select, Wr.month, i), children: u.map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id, children: f.name }, f.id)) }),
|
|
776
776
|
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getFullYear(), onChange: (f) => {
|
|
777
777
|
var g;
|
|
778
778
|
return ((g = f.target) == null ? void 0 : g.value) && t(aa(e, Number(f.target.value)));
|
|
779
779
|
}, className: I(Wr.select, l), children: d.map((f) => /* @__PURE__ */ s.jsx("option", { value: f, children: f }, f)) }),
|
|
780
|
-
/* @__PURE__ */ s.jsx(oe, { onClick: () =>
|
|
780
|
+
/* @__PURE__ */ s.jsx(oe, { onClick: () => p(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ s.jsx(wa, {}) })
|
|
781
781
|
] });
|
|
782
782
|
}, bu = "_select_pywmr_1", xu = {
|
|
783
783
|
select: bu
|
|
784
784
|
}, Oo = 2e3, _o = 2050, yu = ({ year: e, onChangeYear: t, className: r, variant: n = "standart", ...a }) => {
|
|
785
785
|
const o = M(() => {
|
|
786
|
-
var
|
|
787
|
-
return a.manualOptions ? ((
|
|
786
|
+
var p;
|
|
787
|
+
return a.manualOptions ? ((p = a.options) == null ? void 0 : p.at(0)) ?? Oo : a.optionMin ?? Oo;
|
|
788
788
|
}, [a]), i = M(() => {
|
|
789
|
-
var
|
|
790
|
-
return a.manualOptions ? ((
|
|
789
|
+
var p;
|
|
790
|
+
return a.manualOptions ? ((p = a.options) == null ? void 0 : p.at(-1)) ?? _o : a.optionMax ?? _o;
|
|
791
791
|
}, [a]), l = M(() => {
|
|
792
792
|
if (a.manualOptions)
|
|
793
793
|
return a.options;
|
|
794
|
-
const
|
|
794
|
+
const p = [];
|
|
795
795
|
for (let d = o; d <= i; d++)
|
|
796
|
-
|
|
797
|
-
return
|
|
798
|
-
}, [a, i, o]), c = P((
|
|
796
|
+
p.push(d);
|
|
797
|
+
return p;
|
|
798
|
+
}, [a, i, o]), c = P((p) => {
|
|
799
799
|
if (a.manualOptions) {
|
|
800
|
-
const d = l.findIndex((
|
|
800
|
+
const d = l.findIndex((u) => u === e.getFullYear());
|
|
801
801
|
if (d !== -1) {
|
|
802
|
-
const
|
|
803
|
-
|
|
802
|
+
const u = l.at(d + p) ?? null;
|
|
803
|
+
u && t(aa(e, u));
|
|
804
804
|
}
|
|
805
805
|
} else {
|
|
806
|
-
const d = e.getFullYear() +
|
|
807
|
-
d >= o && d <= i && t($c(e,
|
|
806
|
+
const d = e.getFullYear() + p;
|
|
807
|
+
d >= o && d <= i && t($c(e, p));
|
|
808
808
|
}
|
|
809
809
|
}, [e, t, i, o, a, l]);
|
|
810
810
|
return /* @__PURE__ */ s.jsxs("div", { className: I("d-flex flex-row align-items-center m-0", n === "standart" ? "card p-1 gap-2" : void 0, n === "minimalist" ? "p-0 gap-0" : void 0, r ?? ""), children: [
|
|
811
811
|
/* @__PURE__ */ s.jsx(oe, { onClick: () => c(-1), disabled: e.getFullYear() <= o, children: /* @__PURE__ */ s.jsx(ya, {}) }),
|
|
812
|
-
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getFullYear(), onChange: (
|
|
812
|
+
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getFullYear(), onChange: (p) => {
|
|
813
813
|
var d;
|
|
814
|
-
return ((d =
|
|
815
|
-
}, className: I(xu.select, "bg-transparent"), children: l.map((
|
|
814
|
+
return ((d = p.target) == null ? void 0 : d.value) && t(aa(e, Number(p.target.value)));
|
|
815
|
+
}, className: I(xu.select, "bg-transparent"), children: l.map((p) => /* @__PURE__ */ s.jsx("option", { value: p, children: p }, p)) }),
|
|
816
816
|
/* @__PURE__ */ s.jsx(oe, { onClick: () => c(1), disabled: e.getFullYear() >= i, children: /* @__PURE__ */ s.jsx(wa, {}) })
|
|
817
817
|
] });
|
|
818
818
|
};
|
|
@@ -968,7 +968,7 @@ const Du = (e) => (r) => {
|
|
|
968
968
|
/* @__PURE__ */ s.jsx(oe, { onClick: o, disabled: e === null, children: /* @__PURE__ */ s.jsx(r, { icon: "qr-code" }) }),
|
|
969
969
|
/* @__PURE__ */ s.jsx(Ve, { show: n, onHide: i, size: "sm", children: /* @__PURE__ */ s.jsx(Ve.Body, { className: "d-flex justify-content-center", children: /* @__PURE__ */ s.jsx(Ou, { value: `${l}:${e}` }) }) })
|
|
970
970
|
] });
|
|
971
|
-
},
|
|
971
|
+
}, qt = ({ contactType: e, value: t, className: r, children: n, showIconWithChildren: a }) => {
|
|
972
972
|
const { ProjectIconComponent: o } = z(ce), i = M(() => {
|
|
973
973
|
switch (e) {
|
|
974
974
|
case "email":
|
|
@@ -995,27 +995,27 @@ const Du = (e) => (r) => {
|
|
|
995
995
|
n,
|
|
996
996
|
(!n || a) && /* @__PURE__ */ s.jsx(oe, { children: /* @__PURE__ */ s.jsx(o, { icon: l }) })
|
|
997
997
|
] }) });
|
|
998
|
-
}, ia = ({ InputContainer: e =
|
|
999
|
-
const
|
|
998
|
+
}, ia = ({ InputContainer: e = Zt, label: t, value: r, onChange: n, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: p, hint: d }) => {
|
|
999
|
+
const u = ee(null);
|
|
1000
1000
|
return W(() => {
|
|
1001
|
-
|
|
1002
|
-
}, [
|
|
1001
|
+
u.current && (u.current.indeterminate = p ?? !1);
|
|
1002
|
+
}, [u, p]), /* @__PURE__ */ s.jsx(e, { isForCheckInput: !0, hidden: a, label: t ?? "", withoutLabel: c, className: i, hint: d, disabled: o, children: /* @__PURE__ */ s.jsx(Oe.Check, { ref: u, id: `check-${t}`, type: l ?? "checkbox", label: t ?? "", checked: r, onChange: (f) => {
|
|
1003
1003
|
var g;
|
|
1004
1004
|
n && n(((g = f.target) == null ? void 0 : g.checked) ?? !1);
|
|
1005
1005
|
}, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
|
|
1006
|
-
}, yw = ({ value: e, label: t, InputContainer: r =
|
|
1006
|
+
}, yw = ({ value: e, label: t, InputContainer: r = Zt, className: n, withoutLabel: a, hidden: o, disabled: i, contactType: l, ...c }) => o ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: I("d-flex align-items-center", n), children: [
|
|
1007
1007
|
!a && /* @__PURE__ */ s.jsx(Q, { variant: "form-label", className: "text-muted w-50", children: t }),
|
|
1008
1008
|
/* @__PURE__ */ s.jsxs("div", { className: "w-50 d-flex gap-1 align-items-center", children: [
|
|
1009
1009
|
i ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1010
|
-
/* @__PURE__ */ s.jsx(
|
|
1011
|
-
/* @__PURE__ */ s.jsx(
|
|
1010
|
+
/* @__PURE__ */ s.jsx(qt, { contactType: l, value: e, className: "d-flex flex-grow-1", children: /* @__PURE__ */ s.jsx(st, { type: "text", value: e, disabled: !0, InputContainer: r, size: "sm", withoutLabel: !0, className: "pe-none flex-grow-1", ...c }) }),
|
|
1011
|
+
/* @__PURE__ */ s.jsx(qt, { contactType: l, value: e })
|
|
1012
1012
|
] }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1013
|
-
/* @__PURE__ */ s.jsx(st, { type: "text", value: e, InputContainer: r, size: "sm", withoutLabel: !0, className: "flex-grow-1" }),
|
|
1014
|
-
/* @__PURE__ */ s.jsx(
|
|
1013
|
+
/* @__PURE__ */ s.jsx(st, { type: "text", value: e, InputContainer: r, size: "sm", withoutLabel: !0, className: "flex-grow-1", ...c }),
|
|
1014
|
+
/* @__PURE__ */ s.jsx(qt, { contactType: l, value: e })
|
|
1015
1015
|
] }),
|
|
1016
1016
|
/* @__PURE__ */ s.jsx(Vs, { contactType: l, value: e })
|
|
1017
1017
|
] })
|
|
1018
|
-
] }) }), ww = ({ InputContainer: e =
|
|
1018
|
+
] }) }), ww = ({ InputContainer: e = Zt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: f, hidden: g, disabled: v, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon: D, hint: N, addNewOptionPath: y, refreshOptions: S, MiniDetailComponent: j, miniDetailPlacement: O, suggestedItems: E, suggestedItemsTitle: A }) => {
|
|
1019
1019
|
const [k, L] = F(!1), C = P((V) => {
|
|
1020
1020
|
l && l(V);
|
|
1021
1021
|
}, [l]), Z = P((V) => {
|
|
@@ -1024,7 +1024,7 @@ const Du = (e) => (r) => {
|
|
|
1024
1024
|
var V, q;
|
|
1025
1025
|
return b ? ((V = i == null ? void 0 : i.id) == null ? void 0 : V.toString()) ?? "" : i != null && i.name && i.name.length > 0 ? i.name : ((q = i == null ? void 0 : i.id) == null ? void 0 : q.toString()) ?? "";
|
|
1026
1026
|
}, [i, b]);
|
|
1027
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel:
|
|
1027
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: g, inputContainerClassName: I({ "luminus-dropdown-select-open": k }), className: m, hint: N, disabled: v, children: [
|
|
1028
1028
|
/* @__PURE__ */ s.jsxs(Da, { currentSelection: i, selectedItemNavigateTo: r, children: [
|
|
1029
1029
|
b && (i == null ? void 0 : i.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: i.name }),
|
|
1030
1030
|
/* @__PURE__ */ s.jsx(Na, { value: (i == null ? void 0 : i.id) ?? null, MiniDetailComponent: j, miniDetailPlacement: O, children: /* @__PURE__ */ s.jsxs(
|
|
@@ -1059,9 +1059,9 @@ const Du = (e) => (r) => {
|
|
|
1059
1059
|
h ?? null
|
|
1060
1060
|
] }) : null
|
|
1061
1061
|
] }),
|
|
1062
|
-
Y.current && /* @__PURE__ */ s.jsx(Sa, { show: k, onCancel: () => L(!1), items: t, currentSelection: i, onSelectionChange: Z, onSearchQueryChange: n, texts: a, itemsNameWidth:
|
|
1062
|
+
Y.current && /* @__PURE__ */ s.jsx(Sa, { show: k, onCancel: () => L(!1), items: t, currentSelection: i, onSelectionChange: Z, onSearchQueryChange: n, texts: a, itemsNameWidth: u, additionalColumns: f, isLoading: o, disabled: v, inputRef: Y, archiveColumn: x, displayIdAsName: b, addNewOptionPath: y, refreshOptions: S, suggestedItems: E, suggestedItemsTitle: A })
|
|
1063
1063
|
] }) });
|
|
1064
|
-
}, Dw = ({ InputContainer: e =
|
|
1064
|
+
}, Dw = ({ InputContainer: e = Zt, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: p, withoutLabel: d, debounceMs: u, minLength: f, maxLength: g, className: v, hint: b }) => {
|
|
1065
1065
|
const h = P(() => {
|
|
1066
1066
|
if (!r)
|
|
1067
1067
|
return;
|
|
@@ -1073,27 +1073,27 @@ const Du = (e) => (r) => {
|
|
|
1073
1073
|
}, [r]), y = P((S) => {
|
|
1074
1074
|
var O;
|
|
1075
1075
|
const j = (O = S.target) == null ? void 0 : O.value;
|
|
1076
|
-
if (!
|
|
1076
|
+
if (!u) {
|
|
1077
1077
|
N(j);
|
|
1078
1078
|
return;
|
|
1079
1079
|
}
|
|
1080
1080
|
D(j), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
1081
1081
|
N(j);
|
|
1082
|
-
},
|
|
1083
|
-
}, [
|
|
1082
|
+
}, u);
|
|
1083
|
+
}, [u, N]);
|
|
1084
1084
|
return W(() => {
|
|
1085
1085
|
D(t === null ? "" : t.toString());
|
|
1086
1086
|
}, [t]), /* @__PURE__ */ s.jsxs(e, { label: n ?? "", hidden: l, withoutLabel: d, className: v, isForTextAreaInput: !0, hint: b, disabled: c, children: [
|
|
1087
|
-
/* @__PURE__ */ s.jsx(Oe.Control, { as: "textarea", size: a, value:
|
|
1087
|
+
/* @__PURE__ */ s.jsx(Oe.Control, { as: "textarea", size: a, value: u ? x : t ?? "", onChange: y, hidden: l, disabled: c, rows: p ?? 2, className: "w-100", minLength: f, maxLength: g }),
|
|
1088
1088
|
o && t && r && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(oe, { color: "secondary", size: "sm", onClick: h, children: /* @__PURE__ */ s.jsx(Et, {}) }) })
|
|
1089
1089
|
] });
|
|
1090
|
-
}, Nw = ({ InputContainer: e =
|
|
1090
|
+
}, Nw = ({ InputContainer: e = Zt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: g, stepperStep: v = 1, min: b, max: h, hint: m }) => {
|
|
1091
1091
|
const x = P(() => {
|
|
1092
1092
|
if (!r)
|
|
1093
1093
|
return;
|
|
1094
|
-
const O =
|
|
1094
|
+
const O = u ?? null;
|
|
1095
1095
|
r(O ? Number(O) : null);
|
|
1096
|
-
}, [
|
|
1096
|
+
}, [u, r]), D = ee(null), [N, y] = F((t == null ? void 0 : t.toString()) ?? ""), S = P((O) => {
|
|
1097
1097
|
const E = O;
|
|
1098
1098
|
r && r(E == null || E === "" ? null : vr(Number(E), b, h));
|
|
1099
1099
|
}, [h, b, r]), j = P((O) => {
|
|
@@ -1109,15 +1109,15 @@ const Du = (e) => (r) => {
|
|
|
1109
1109
|
}, [n, S, h, b]);
|
|
1110
1110
|
return W(() => {
|
|
1111
1111
|
y(t === null ? "" : vr(t, b, h).toString());
|
|
1112
|
-
}, [h, b, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className: f, disabled:
|
|
1113
|
-
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? N : t ?? "", onChange: j, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled:
|
|
1114
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !
|
|
1112
|
+
}, [h, b, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className: f, disabled: p, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
1113
|
+
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? N : t ?? "", onChange: j, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: p ?? !1, step: g }),
|
|
1114
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !p && /* @__PURE__ */ s.jsx(oe, { size: "sm", onClick: (O) => {
|
|
1115
1115
|
O.preventDefault(), O.stopPropagation(), S(((t ?? 0) - v).toString());
|
|
1116
1116
|
}, children: /* @__PURE__ */ s.jsx(ss, {}) }) }),
|
|
1117
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !
|
|
1117
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !p && /* @__PURE__ */ s.jsx(oe, { size: "sm", onClick: (O) => {
|
|
1118
1118
|
O.preventDefault(), O.stopPropagation(), S(((t ?? 0) + v).toString());
|
|
1119
1119
|
}, children: /* @__PURE__ */ s.jsx(ls, {}) }) }),
|
|
1120
|
-
d && t && r && !
|
|
1120
|
+
d && t && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(oe, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(Et, {}) }) })
|
|
1121
1121
|
] }) });
|
|
1122
1122
|
};
|
|
1123
1123
|
function $s(e, t) {
|
|
@@ -1147,14 +1147,14 @@ function _u(e) {
|
|
|
1147
1147
|
function Nr(e) {
|
|
1148
1148
|
return !!(e || "").match(/\d/);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Yt(e) {
|
|
1151
1151
|
return e == null;
|
|
1152
1152
|
}
|
|
1153
1153
|
function Pu(e) {
|
|
1154
1154
|
return typeof e == "number" && isNaN(e);
|
|
1155
1155
|
}
|
|
1156
1156
|
function Gs(e) {
|
|
1157
|
-
return
|
|
1157
|
+
return Yt(e) || Pu(e) || typeof e == "number" && !isFinite(e);
|
|
1158
1158
|
}
|
|
1159
1159
|
function Ws(e) {
|
|
1160
1160
|
return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
@@ -1224,12 +1224,12 @@ function Hs(e) {
|
|
|
1224
1224
|
function Ro(e, t, r) {
|
|
1225
1225
|
if (["", "-"].indexOf(e) !== -1)
|
|
1226
1226
|
return e;
|
|
1227
|
-
var n = (e.indexOf(".") !== -1 || r) && t, a = ka(e), o = a.beforeDecimal, i = a.afterDecimal, l = a.hasNegation, c = parseFloat("0." + (i || "0")),
|
|
1228
|
-
o && Number(d[0]) && (
|
|
1227
|
+
var n = (e.indexOf(".") !== -1 || r) && t, a = ka(e), o = a.beforeDecimal, i = a.afterDecimal, l = a.hasNegation, c = parseFloat("0." + (i || "0")), p = i.length <= t ? "0." + i : c.toFixed(t), d = p.split("."), u = o;
|
|
1228
|
+
o && Number(d[0]) && (u = o.split("").reverse().reduce(function(b, h, m) {
|
|
1229
1229
|
return b.length > m ? (Number(b[0]) + Number(h)).toString() + b.substring(1, b.length) : h + b;
|
|
1230
1230
|
}, d[0]));
|
|
1231
1231
|
var f = Us(d[1] || "", t, r), g = l ? "-" : "", v = n ? "." : "";
|
|
1232
|
-
return "" + g +
|
|
1232
|
+
return "" + g + u + v + f;
|
|
1233
1233
|
}
|
|
1234
1234
|
function Mt(e, t) {
|
|
1235
1235
|
if (e.value = e.value, e !== null) {
|
|
@@ -1288,7 +1288,7 @@ function $u(e, t, r, n, a, o, i) {
|
|
|
1288
1288
|
return N;
|
|
1289
1289
|
}), c = e.slice(0, l);
|
|
1290
1290
|
!t && !r.startsWith(c) && (t = c, r = c + r, n = n + c.length);
|
|
1291
|
-
for (var
|
|
1291
|
+
for (var p = r.length, d = e.length, u = {}, f = new Array(p), g = 0; g < p; g++) {
|
|
1292
1292
|
f[g] = -1;
|
|
1293
1293
|
for (var v = 0, b = d; v < b; v++) {
|
|
1294
1294
|
var h = i({
|
|
@@ -1298,15 +1298,15 @@ function $u(e, t, r, n, a, o, i) {
|
|
|
1298
1298
|
currentValueIndex: g,
|
|
1299
1299
|
formattedValueIndex: v
|
|
1300
1300
|
});
|
|
1301
|
-
if (h &&
|
|
1302
|
-
f[g] = v,
|
|
1301
|
+
if (h && u[v] !== !0) {
|
|
1302
|
+
f[g] = v, u[v] = !0;
|
|
1303
1303
|
break;
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
|
-
for (var m = n; m <
|
|
1307
|
+
for (var m = n; m < p && (f[m] === -1 || !o(r[m])); )
|
|
1308
1308
|
m++;
|
|
1309
|
-
var x = m ===
|
|
1309
|
+
var x = m === p || f[m] === -1 ? d : f[m];
|
|
1310
1310
|
for (m = n - 1; m > 0 && f[m] === -1; )
|
|
1311
1311
|
m--;
|
|
1312
1312
|
var D = m === -1 || f[m] === -1 ? 0 : f[m] + 1;
|
|
@@ -1338,17 +1338,17 @@ function qs(e, t, r, n, a, o) {
|
|
|
1338
1338
|
var h, m;
|
|
1339
1339
|
return Gs(v) ? (m = "", h = "") : typeof v == "number" || b ? (m = typeof v == "number" ? Hs(v) : v, h = n(m)) : (m = a(v, void 0), h = n(m)), { formattedValue: h, numAsString: m };
|
|
1340
1340
|
}), l = F(function() {
|
|
1341
|
-
return i(
|
|
1342
|
-
}), c = l[0],
|
|
1343
|
-
v.formattedValue !== c.formattedValue &&
|
|
1341
|
+
return i(Yt(e) ? t : e, r);
|
|
1342
|
+
}), c = l[0], p = l[1], d = function(v, b) {
|
|
1343
|
+
v.formattedValue !== c.formattedValue && p({
|
|
1344
1344
|
formattedValue: v.formattedValue,
|
|
1345
1345
|
numAsString: v.value
|
|
1346
1346
|
}), o(v, b);
|
|
1347
|
-
},
|
|
1348
|
-
|
|
1349
|
-
var g = i(
|
|
1347
|
+
}, u = e, f = r;
|
|
1348
|
+
Yt(e) && (u = c.numAsString, f = !0);
|
|
1349
|
+
var g = i(u, f);
|
|
1350
1350
|
return M(function() {
|
|
1351
|
-
|
|
1351
|
+
p(g);
|
|
1352
1352
|
}, [g.formattedValue]), [c, d];
|
|
1353
1353
|
}
|
|
1354
1354
|
function Wu(e) {
|
|
@@ -1366,7 +1366,7 @@ function Hu(e) {
|
|
|
1366
1366
|
i === void 0 && (i = Uu);
|
|
1367
1367
|
var l = e.removeFormatting;
|
|
1368
1368
|
l === void 0 && (l = Wu);
|
|
1369
|
-
var c = e.defaultValue,
|
|
1369
|
+
var c = e.defaultValue, p = e.valueIsNumericString, d = e.onValueChange, u = e.isAllowed, f = e.onChange;
|
|
1370
1370
|
f === void 0 && (f = xt);
|
|
1371
1371
|
var g = e.onKeyDown;
|
|
1372
1372
|
g === void 0 && (g = xt);
|
|
@@ -1380,7 +1380,7 @@ function Hu(e) {
|
|
|
1380
1380
|
x === void 0 && (x = Gu);
|
|
1381
1381
|
var D = e.isValidInputCharacter;
|
|
1382
1382
|
D === void 0 && (D = Nr);
|
|
1383
|
-
var N = e.isCharacterSame, y = $s(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = qs(m, c, !!
|
|
1383
|
+
var N = e.isCharacterSame, y = $s(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = qs(m, c, !!p, i, l, d), j = S[0], O = j.formattedValue, E = j.numAsString, A = S[1], k = ee(), L = ee({ formattedValue: O, numAsString: E }), C = function(G, T) {
|
|
1384
1384
|
L.current = { formattedValue: G.formattedValue, numAsString: G.value }, A(G, T);
|
|
1385
1385
|
}, Z = F(!1), Y = Z[0], B = Z[1], R = ee(null), $ = ee({
|
|
1386
1386
|
setCaretTimeout: null,
|
|
@@ -1434,9 +1434,9 @@ function Hu(e) {
|
|
|
1434
1434
|
}, [O]);
|
|
1435
1435
|
var pe = function(G, T, J) {
|
|
1436
1436
|
var ue = T.target, Ee = k.current ? Bu(k.current, ue.selectionEnd) : zs(O, G), me = Object.assign(Object.assign({}, Ee), { lastValue: O }), de = l(G, me), Be = V(de);
|
|
1437
|
-
if (de = l(Be, void 0),
|
|
1438
|
-
var Ze = T.target, et = An(Ze),
|
|
1439
|
-
return Ze.value = O, K(Ze,
|
|
1437
|
+
if (de = l(Be, void 0), u && !u(q(Be, de))) {
|
|
1438
|
+
var Ze = T.target, et = An(Ze), Wt = ae(G, O, et);
|
|
1439
|
+
return Ze.value = O, K(Ze, Wt, O), !1;
|
|
1440
1440
|
}
|
|
1441
1441
|
return ie({
|
|
1442
1442
|
formattedValue: Be,
|
|
@@ -1467,8 +1467,8 @@ function Hu(e) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
var et = de;
|
|
1469
1469
|
if (Ze) {
|
|
1470
|
-
var
|
|
1471
|
-
et = re(me, de,
|
|
1470
|
+
var Wt = J === "ArrowLeft" ? "left" : "right";
|
|
1471
|
+
et = re(me, de, Wt), et !== de && G.preventDefault();
|
|
1472
1472
|
} else J === "Delete" && !D(me[de]) ? et = re(me, de, "right") : J === "Backspace" && !D(me[de]) && (et = re(me, de, "left"));
|
|
1473
1473
|
et !== de && K(T, et, me), g(G), le(T, Be);
|
|
1474
1474
|
}, _ = function(G) {
|
|
@@ -1493,7 +1493,7 @@ function Hu(e) {
|
|
|
1493
1493
|
}, 0);
|
|
1494
1494
|
}, Ce = function(G) {
|
|
1495
1495
|
R.current = null, clearTimeout($.current.focusTimeout), clearTimeout($.current.setCaretTimeout), h(G);
|
|
1496
|
-
}, Le = Y && Lu() ? "numeric" : void 0,
|
|
1496
|
+
}, Le = Y && Lu() ? "numeric" : void 0, qe = Object.assign({ inputMode: Le }, y, {
|
|
1497
1497
|
type: t,
|
|
1498
1498
|
value: O,
|
|
1499
1499
|
onChange: De,
|
|
@@ -1506,9 +1506,9 @@ function Hu(e) {
|
|
|
1506
1506
|
return a ? se.createElement(se.Fragment, null, a(O, y) || null) : se.createElement("span", Object.assign({}, y, { ref: o }), O);
|
|
1507
1507
|
if (n) {
|
|
1508
1508
|
var vt = n;
|
|
1509
|
-
return se.createElement(vt, Object.assign({},
|
|
1509
|
+
return se.createElement(vt, Object.assign({}, qe, { ref: o }));
|
|
1510
1510
|
}
|
|
1511
|
-
return se.createElement("input", Object.assign({},
|
|
1511
|
+
return se.createElement("input", Object.assign({}, qe, { ref: o }));
|
|
1512
1512
|
}
|
|
1513
1513
|
function Bo(e, t) {
|
|
1514
1514
|
var r = t.decimalScale, n = t.fixedDecimalScale, a = t.prefix;
|
|
@@ -1518,8 +1518,8 @@ function Bo(e, t) {
|
|
|
1518
1518
|
var i = t.allowNegative, l = t.thousandsGroupStyle;
|
|
1519
1519
|
if (l === void 0 && (l = "thousand"), e === "" || e === "-")
|
|
1520
1520
|
return e;
|
|
1521
|
-
var c = xn(t),
|
|
1522
|
-
return r !== void 0 && (v = Us(v, r, !!n)),
|
|
1521
|
+
var c = xn(t), p = c.thousandSeparator, d = c.decimalSeparator, u = r !== 0 && e.indexOf(".") !== -1 || r && n, f = ka(e, i), g = f.beforeDecimal, v = f.afterDecimal, b = f.addNegation;
|
|
1522
|
+
return r !== void 0 && (v = Us(v, r, !!n)), p && (g = Tu(g, p, l)), a && (g = a + g), o && (v = v + o), b && (g = "-" + g), e = g + (u && d || "") + v, e;
|
|
1523
1523
|
}
|
|
1524
1524
|
function xn(e) {
|
|
1525
1525
|
var t = e.decimalSeparator;
|
|
@@ -1549,10 +1549,10 @@ function Ku(e, t, r) {
|
|
|
1549
1549
|
o === void 0 && (o = "");
|
|
1550
1550
|
var i = r.suffix;
|
|
1551
1551
|
i === void 0 && (i = "");
|
|
1552
|
-
var l = r.decimalScale, c = t.from,
|
|
1552
|
+
var l = r.decimalScale, c = t.from, p = t.to, d = p.start, u = p.end, f = xn(r), g = f.allowedDecimalSeparators, v = f.decimalSeparator, b = e[u] === v;
|
|
1553
1553
|
if (Nr(e) && (e === o || e === i) && t.lastValue === "")
|
|
1554
1554
|
return e;
|
|
1555
|
-
if (
|
|
1555
|
+
if (u - d === 1 && g.indexOf(e[d]) !== -1) {
|
|
1556
1556
|
var h = l === 0 ? "" : v;
|
|
1557
1557
|
e = e.substring(0, d) + h + e.substring(d + 1, e.length);
|
|
1558
1558
|
}
|
|
@@ -1561,20 +1561,20 @@ function Ku(e, t, r) {
|
|
|
1561
1561
|
o.startsWith("-") ? q = !1 : R.startsWith("--") ? (q = !1, K = !0) : i.startsWith("-") && R.length === i.length ? q = !1 : R[0] === "-" && (q = !0);
|
|
1562
1562
|
var re = q ? 1 : 0;
|
|
1563
1563
|
return K && (re = 2), re && (R = R.substring(re), $ -= re, V -= re), { value: R, start: $, end: V, hasNegation: q };
|
|
1564
|
-
}, x = m(e, d,
|
|
1565
|
-
n = x, e = n.value, d = n.start,
|
|
1566
|
-
var N = m(t.lastValue, c.start, c.end), y = N.start, S = N.end, j = N.value, O = e.substring(d,
|
|
1564
|
+
}, x = m(e, d, u), D = x.hasNegation;
|
|
1565
|
+
n = x, e = n.value, d = n.start, u = n.end;
|
|
1566
|
+
var N = m(t.lastValue, c.start, c.end), y = N.start, S = N.end, j = N.value, O = e.substring(d, u);
|
|
1567
1567
|
e.length && j.length && (y > j.length - i.length || S < o.length) && !(O && i.startsWith(O)) && (e = j);
|
|
1568
1568
|
var E = 0;
|
|
1569
|
-
e.startsWith(o) ? E += o.length : d < o.length && (E = d), e = e.substring(E),
|
|
1569
|
+
e.startsWith(o) ? E += o.length : d < o.length && (E = d), e = e.substring(E), u -= E;
|
|
1570
1570
|
var A = e.length, k = e.length - i.length;
|
|
1571
|
-
e.endsWith(i) ? A = k : (
|
|
1571
|
+
e.endsWith(i) ? A = k : (u > k || u > e.length - i.length) && (A = u), e = e.substring(0, A), e = zu(D ? "-" + e : e, a), e = (e.match(qu(v)) || []).join("");
|
|
1572
1572
|
var L = e.indexOf(v);
|
|
1573
1573
|
e = e.replace(new RegExp(Ws(v), "g"), function(R, $) {
|
|
1574
1574
|
return $ === L ? "." : "";
|
|
1575
1575
|
});
|
|
1576
1576
|
var C = ka(e, a), Z = C.beforeDecimal, Y = C.afterDecimal, B = C.addNegation;
|
|
1577
|
-
return
|
|
1577
|
+
return p.end - p.start < c.end - c.start && Z === "" && b && !parseFloat(Y) && (e = B ? "-" : ""), e;
|
|
1578
1578
|
}
|
|
1579
1579
|
function Xu(e, t) {
|
|
1580
1580
|
var r = t.prefix;
|
|
@@ -1610,19 +1610,19 @@ function Ju(e) {
|
|
|
1610
1610
|
a === void 0 && (a = xt);
|
|
1611
1611
|
var o = e.onBlur;
|
|
1612
1612
|
o === void 0 && (o = xt);
|
|
1613
|
-
var i = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale,
|
|
1614
|
-
|
|
1615
|
-
var d = e.defaultValue,
|
|
1613
|
+
var i = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale, p = e.prefix;
|
|
1614
|
+
p === void 0 && (p = "");
|
|
1615
|
+
var d = e.defaultValue, u = e.value, f = e.valueIsNumericString, g = e.onValueChange, v = $s(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), b = xn(e), h = b.decimalSeparator, m = b.allowedDecimalSeparators, x = function(B) {
|
|
1616
1616
|
return Bo(B, e);
|
|
1617
1617
|
}, D = function(B, R) {
|
|
1618
1618
|
return Ku(B, R, e);
|
|
1619
|
-
}, N =
|
|
1620
|
-
|
|
1619
|
+
}, N = Yt(u) ? d : u, y = f ?? Yu(N, p, t);
|
|
1620
|
+
Yt(u) ? Yt(d) || (y = y || typeof d == "number") : y = y || typeof u == "number";
|
|
1621
1621
|
var S = function(B) {
|
|
1622
1622
|
return Gs(B) ? B : (typeof B == "number" && (B = Hs(B)), y && typeof l == "number" ? Ro(B, l, !!c) : B);
|
|
1623
|
-
}, j = qs(S(
|
|
1623
|
+
}, j = qs(S(u), S(d), !!y, x, D, g), O = j[0], E = O.numAsString, A = O.formattedValue, k = j[1], L = function(B) {
|
|
1624
1624
|
var R = B.target, $ = B.key, V = R.selectionStart, q = R.selectionEnd, K = R.value;
|
|
1625
|
-
if (K === void 0 && (K = ""), ($ === "Backspace" || $ === "Delete") && q <
|
|
1625
|
+
if (K === void 0 && (K = ""), ($ === "Backspace" || $ === "Delete") && q < p.length) {
|
|
1626
1626
|
B.preventDefault();
|
|
1627
1627
|
return;
|
|
1628
1628
|
}
|
|
@@ -1630,7 +1630,7 @@ function Ju(e) {
|
|
|
1630
1630
|
a(B);
|
|
1631
1631
|
return;
|
|
1632
1632
|
}
|
|
1633
|
-
$ === "Backspace" && K[0] === "-" && V ===
|
|
1633
|
+
$ === "Backspace" && K[0] === "-" && V === p.length + 1 && r && Mt(R, 1), l && c && ($ === "Backspace" && K[V - 1] === h ? (Mt(R, V - 1), B.preventDefault()) : $ === "Delete" && K[V] === h && B.preventDefault()), m != null && m.includes($) && K[V] === h && Mt(R, V + 1);
|
|
1634
1634
|
var re = i === !0 ? "," : i;
|
|
1635
1635
|
$ === "Backspace" && K[V - 1] === re && Mt(R, V - 1), $ === "Delete" && K[V] === re && Mt(R, V + 1), a(B);
|
|
1636
1636
|
}, C = function(B) {
|
|
@@ -1651,9 +1651,9 @@ function Ju(e) {
|
|
|
1651
1651
|
return B === h ? !0 : Nr(B);
|
|
1652
1652
|
}, Y = function(B) {
|
|
1653
1653
|
var R = B.currentValue, $ = B.lastValue, V = B.formattedValue, q = B.currentValueIndex, K = B.formattedValueIndex, re = R[q], ae = V[K], ie = zs($, R), H = ie.to, U = function(pe) {
|
|
1654
|
-
return D(pe).indexOf(".") +
|
|
1654
|
+
return D(pe).indexOf(".") + p.length;
|
|
1655
1655
|
};
|
|
1656
|
-
return
|
|
1656
|
+
return u === 0 && c && l && R[H.start] === h && U(R) < q && U(V) > K ? !1 : q >= H.start && q < H.end && m && m.includes(re) && ae === h ? !0 : re === ae;
|
|
1657
1657
|
};
|
|
1658
1658
|
return Object.assign(Object.assign({}, v), {
|
|
1659
1659
|
value: A,
|
|
@@ -1674,13 +1674,13 @@ function Ba(e) {
|
|
|
1674
1674
|
var t = Ju(e);
|
|
1675
1675
|
return se.createElement(Hu, Object.assign({}, t));
|
|
1676
1676
|
}
|
|
1677
|
-
const Sw = ({ InputContainer: e =
|
|
1677
|
+
const Sw = ({ InputContainer: e = Zt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: g, noSelectOnFocus: v, decimalScale: b, fixedDecimalScale: h = !1, numberPrefix: m, numberSuffix: x, min: D, max: N, hint: y }) => {
|
|
1678
1678
|
const S = P(() => {
|
|
1679
1679
|
if (!r)
|
|
1680
1680
|
return;
|
|
1681
|
-
const L =
|
|
1681
|
+
const L = u ?? null;
|
|
1682
1682
|
r(L ? Number(L) : null);
|
|
1683
|
-
}, [
|
|
1683
|
+
}, [u, r]), j = ee(null), [O, E] = F((t == null ? void 0 : t.toString()) ?? ""), A = P((L) => {
|
|
1684
1684
|
const C = L;
|
|
1685
1685
|
r && r(C == null || C === "" ? null : Number(C));
|
|
1686
1686
|
}, [r]), k = P((L) => {
|
|
@@ -1700,20 +1700,20 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1700
1700
|
N !== void 0 && Number(O) > N && E(N.toString()), D !== void 0 && Number(O) < D && E(D.toString());
|
|
1701
1701
|
}, [O, N, D, E]), W(() => {
|
|
1702
1702
|
!r || t === null || (N !== void 0 && t > N && r(N), D !== void 0 && t < D && r(D));
|
|
1703
|
-
}, [t, N, D, r]), /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, className: f, hint: y, disabled:
|
|
1703
|
+
}, [t, N, D, r]), /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, className: f, hint: y, disabled: p, children: [
|
|
1704
1704
|
/* @__PURE__ */ s.jsx(Ba, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: h, prefix: m, suffix: x, defaultValue: "", value: n ? O : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (L) => {
|
|
1705
1705
|
!v && L.target.select();
|
|
1706
|
-
}, onChange: k, hidden: c, disabled:
|
|
1706
|
+
}, onChange: k, hidden: c, disabled: p, className: I("form-control text-end w-100", {
|
|
1707
1707
|
[`form-control-${l}`]: l
|
|
1708
1708
|
}), step: g, min: D, max: N }),
|
|
1709
|
-
d && t !== null && r && !
|
|
1709
|
+
d && t !== null && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(oe, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ s.jsx(Et, {}) }) })
|
|
1710
1710
|
] });
|
|
1711
|
-
}, Cw = ({ InputContainer: e =
|
|
1712
|
-
const c = P((
|
|
1713
|
-
l && l(
|
|
1711
|
+
}, Cw = ({ InputContainer: e = ze, label: t, options: r, disabled: n, hidden: a, className: o, value: i, onChange: l }) => {
|
|
1712
|
+
const c = P((p) => {
|
|
1713
|
+
l && l(p.target.value);
|
|
1714
1714
|
}, [l]);
|
|
1715
|
-
return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, disabled: n, children: r.map((
|
|
1716
|
-
}, Ew = ({ InputContainer: e =
|
|
1715
|
+
return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, disabled: n, children: r.map((p) => /* @__PURE__ */ s.jsx(Oe.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: i === p.id, onChange: c, hidden: a, disabled: n, className: "w-100" }, p.id)) });
|
|
1716
|
+
}, Ew = ({ InputContainer: e = ze, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: p, onChange: d, className: u }) => {
|
|
1717
1717
|
const { register: f, formState: g, setValue: v } = gt(), b = ft({ falseIfNotInit: !0 }), [h, m] = F(void 0), [x, D] = F(!1);
|
|
1718
1718
|
W(() => {
|
|
1719
1719
|
const S = t.split(".");
|
|
@@ -1725,51 +1725,51 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1725
1725
|
const N = M(() => l || b, [l, b]), y = h !== void 0;
|
|
1726
1726
|
return W(() => {
|
|
1727
1727
|
g.isSubmitted && D(!0);
|
|
1728
|
-
}, [g]), /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: r ?? "", required: o, disabled: N, isInvalid: y, withoutLabel: c, hint:
|
|
1728
|
+
}, [g]), /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: r ?? "", required: o, disabled: N, isInvalid: y, withoutLabel: c, hint: p, className: u, children: [
|
|
1729
1729
|
/* @__PURE__ */ s.jsx(Oe.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...f(t, {
|
|
1730
1730
|
onChange: (S) => {
|
|
1731
1731
|
n && n.forEach((j) => v(j, null, { shouldDirty: !0, shouldValidate: x })), d && d(S.target.value ?? null);
|
|
1732
1732
|
}
|
|
1733
1733
|
}), isInvalid: y, hidden: i, disabled: N, className: "w-100" }),
|
|
1734
|
-
h && /* @__PURE__ */ s.jsx(
|
|
1734
|
+
h && /* @__PURE__ */ s.jsx($t, { message: h.message })
|
|
1735
1735
|
] });
|
|
1736
|
-
}, jw = ({ InputContainer: e =
|
|
1737
|
-
const { register: d, formState:
|
|
1736
|
+
}, jw = ({ InputContainer: e = ze, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: p }) => {
|
|
1737
|
+
const { register: d, formState: u, setValue: f, watch: g } = gt(), v = ft({ falseIfNotInit: !0 }), [b, h] = F(void 0), [m, x] = F(!1), D = M(() => n, [n]), N = M(() => i || v, [i, v]);
|
|
1738
1738
|
W(() => {
|
|
1739
1739
|
const S = r.split(".");
|
|
1740
|
-
let j =
|
|
1740
|
+
let j = u.errors;
|
|
1741
1741
|
S.forEach((O) => {
|
|
1742
1742
|
j !== void 0 && (j = j[O]);
|
|
1743
1743
|
}), h(j);
|
|
1744
|
-
}, [
|
|
1745
|
-
|
|
1746
|
-
}, [
|
|
1744
|
+
}, [u, r]), W(() => {
|
|
1745
|
+
u.isSubmitted && x(!0);
|
|
1746
|
+
}, [u]);
|
|
1747
1747
|
const y = b !== void 0;
|
|
1748
|
-
return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: N, isInvalid: y, className:
|
|
1748
|
+
return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: N, isInvalid: y, className: p, children: [
|
|
1749
1749
|
D.map((S) => /* @__PURE__ */ s.jsx(Oe.Check, { id: `radio-${S.id}`, label: S.name, type: "radio", value: S.id ?? "", checked: g(r) === S.id, ...d(r, {
|
|
1750
1750
|
onChange: (j) => {
|
|
1751
1751
|
var O;
|
|
1752
1752
|
a && a.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: m })), c && c((O = j.target) != null && O.value ? j.target.value.toString() : null);
|
|
1753
1753
|
}
|
|
1754
1754
|
}), isInvalid: y, hidden: l, disabled: N, className: "w-100" }, S.id)),
|
|
1755
|
-
b && /* @__PURE__ */ s.jsx(
|
|
1755
|
+
b && /* @__PURE__ */ s.jsx($t, { message: b.message })
|
|
1756
1756
|
] });
|
|
1757
|
-
}, Iw = ({ label: e, InputContainer: t =
|
|
1758
|
-
const { watch:
|
|
1757
|
+
}, Iw = ({ label: e, InputContainer: t = ze, className: r, withoutLabel: n, hidden: a, disabled: o, contactType: i, formField: l, ...c }) => {
|
|
1758
|
+
const { watch: p } = gt(), d = p(l), u = ft({ falseIfNotInit: !0 }), f = M(() => o || u, [o, u]);
|
|
1759
1759
|
return a ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: I("d-flex align-items-center", r), children: [
|
|
1760
1760
|
!n && /* @__PURE__ */ s.jsx(Q, { variant: "form-label", className: "text-muted w-50", children: e }),
|
|
1761
1761
|
/* @__PURE__ */ s.jsxs("div", { className: "w-50 d-flex gap-1 align-items-center", children: [
|
|
1762
|
-
|
|
1763
|
-
/* @__PURE__ */ s.jsx(
|
|
1764
|
-
/* @__PURE__ */ s.jsx(
|
|
1762
|
+
f ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1763
|
+
/* @__PURE__ */ s.jsx(qt, { contactType: i, value: d, className: "d-flex flex-grow-1", children: /* @__PURE__ */ s.jsx(tn, { type: "text", formField: l, disabled: !0, InputContainer: t, size: "sm", withoutLabel: !0, className: "pe-none flex-grow-1", ...c }) }),
|
|
1764
|
+
/* @__PURE__ */ s.jsx(qt, { contactType: i, value: d })
|
|
1765
1765
|
] }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1766
|
-
/* @__PURE__ */ s.jsx(tn, { type: "text", formField: l, InputContainer: t, size: "sm", withoutLabel: !0, className: "flex-grow-1" }),
|
|
1767
|
-
/* @__PURE__ */ s.jsx(
|
|
1766
|
+
/* @__PURE__ */ s.jsx(tn, { type: "text", formField: l, InputContainer: t, size: "sm", withoutLabel: !0, className: "flex-grow-1", ...c }),
|
|
1767
|
+
/* @__PURE__ */ s.jsx(qt, { contactType: i, value: d })
|
|
1768
1768
|
] }),
|
|
1769
|
-
/* @__PURE__ */ s.jsx(Vs, { contactType: i, value:
|
|
1769
|
+
/* @__PURE__ */ s.jsx(Vs, { contactType: i, value: d })
|
|
1770
1770
|
] })
|
|
1771
1771
|
] }) });
|
|
1772
|
-
}, Ow = ({ InputContainer: e =
|
|
1772
|
+
}, Ow = ({ InputContainer: e = ze, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: f, texts: g, dropdownItemsNameWidth: v, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: N, onSelect: y, className: S, archiveColumn: j, hint: O, addNewOptionPath: E, refreshOptions: A, MiniDetailComponent: k, miniDetailPlacement: L, suggestedItems: C, suggestedItemsTitle: Z }) => {
|
|
1773
1773
|
const { formState: Y, setValue: B, watch: R, control: $ } = gt(), V = ft({ falseIfNotInit: !0 }), [q, K] = F(void 0), [re, ae] = F(!1), [ie, H] = F(!1), U = R(t) ?? null, pe = U === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : R(`${t}-DropdownName`), le = M(() => U == null ? null : { id: U ?? null, name: pe ?? "" }, [U, pe]), De = P(() => {
|
|
1774
1774
|
const T = t.split(".");
|
|
1775
1775
|
let J = Y.errors;
|
|
@@ -1795,7 +1795,7 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1795
1795
|
ae(!1), Ie(T);
|
|
1796
1796
|
}, [Ie]), fe = P(() => {
|
|
1797
1797
|
ae(!1);
|
|
1798
|
-
}, []), Ce = ee(null), Le = q !== void 0,
|
|
1798
|
+
}, []), Ce = ee(null), Le = q !== void 0, qe = f !== void 0, vt = qe && le !== null, G = M(() => p || V, [p, V]);
|
|
1799
1799
|
return W(() => {
|
|
1800
1800
|
De();
|
|
1801
1801
|
}, [De]), W(() => {
|
|
@@ -1806,23 +1806,23 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1806
1806
|
/* @__PURE__ */ s.jsx(_a, { control: $, name: t, render: () => /* @__PURE__ */ s.jsx(Na, { value: U, MiniDetailComponent: k, miniDetailPlacement: L, children: /* @__PURE__ */ s.jsx(Oe.Select, { size: n, onMouseDown: (T) => {
|
|
1807
1807
|
T.currentTarget.focus(), T.preventDefault();
|
|
1808
1808
|
}, onClick: () => {
|
|
1809
|
-
!
|
|
1809
|
+
!qe && !G && ae(!0);
|
|
1810
1810
|
}, ref: Ce, value: U ?? "", onChange: () => {
|
|
1811
1811
|
}, isInvalid: Le, hidden: c, className: I("w-100", {
|
|
1812
1812
|
"luminus-dropdown-picker-disabled": G,
|
|
1813
1813
|
"luminus-dropdown-picker-link": vt
|
|
1814
1814
|
}), children: /* @__PURE__ */ s.jsx("option", { value: U, children: N ? U : (pe == null ? void 0 : pe.length) > 0 ? pe : U }) }) }) }),
|
|
1815
|
-
x || !G &&
|
|
1816
|
-
!x && !G &&
|
|
1815
|
+
x || !G && qe ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
1816
|
+
!x && !G && qe && /* @__PURE__ */ s.jsx(oe, { size: "sm", color: "secondary", onClick: (T) => {
|
|
1817
1817
|
T.preventDefault(), T.stopPropagation(), ae(!0);
|
|
1818
1818
|
}, children: D ?? /* @__PURE__ */ s.jsx(is, {}) }),
|
|
1819
1819
|
x ?? null
|
|
1820
1820
|
] }) : null
|
|
1821
1821
|
] }),
|
|
1822
|
-
q && /* @__PURE__ */ s.jsx(
|
|
1823
|
-
Ce.current && /* @__PURE__ */ s.jsx(Sa, { show: re, onCancel: fe, items: d, currentSelection: le, onSelectionChange: _, onSearchQueryChange:
|
|
1822
|
+
q && /* @__PURE__ */ s.jsx($t, { message: q.message }),
|
|
1823
|
+
Ce.current && /* @__PURE__ */ s.jsx(Sa, { show: re, onCancel: fe, items: d, currentSelection: le, onSelectionChange: _, onSearchQueryChange: u, texts: g, itemsNameWidth: v, additionalColumns: m, displayIdAsName: N, isLoading: b, disabled: G, inputRef: Ce, archiveColumn: j, addNewOptionPath: E, refreshOptions: A, suggestedItems: C, suggestedItemsTitle: Z })
|
|
1824
1824
|
] }) });
|
|
1825
|
-
}, _w = ({ InputContainer: e =
|
|
1825
|
+
}, _w = ({ InputContainer: e = ze, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept: d, withoutLabel: u, hint: f, className: g }) => {
|
|
1826
1826
|
const { watch: v, setValue: b, register: h, formState: m } = gt(), x = ft({ falseIfNotInit: !0 }), [D, N] = F(!1), [y, S] = F(void 0), j = P(() => {
|
|
1827
1827
|
b(r, "");
|
|
1828
1828
|
}, [b, r]), O = P(() => {
|
|
@@ -1836,21 +1836,21 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1836
1836
|
m.isSubmitted && N(!0);
|
|
1837
1837
|
}, [m]);
|
|
1838
1838
|
const E = M(() => i || x, [i, x]), A = y !== void 0;
|
|
1839
|
-
return /* @__PURE__ */ s.jsxs(e, { label: t ?? "", required: a, disabled: E, hidden: n, withoutLabel:
|
|
1840
|
-
/* @__PURE__ */ s.jsx(Wc, { type: "file", multiple:
|
|
1839
|
+
return /* @__PURE__ */ s.jsxs(e, { label: t ?? "", required: a, disabled: E, hidden: n, withoutLabel: u, isInvalid: A, hint: f, className: g, children: [
|
|
1840
|
+
/* @__PURE__ */ s.jsx(Wc, { type: "file", multiple: p, accept: d.join(", "), placeholder: o ?? t, isInvalid: A, hidden: n, disabled: E, className: "w-100", ...h(r, {
|
|
1841
1841
|
onChange: () => {
|
|
1842
1842
|
c && c.forEach((k) => b(k, null, { shouldDirty: !0, shouldValidate: D }));
|
|
1843
1843
|
}
|
|
1844
1844
|
}) }),
|
|
1845
1845
|
l && v(r) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(oe, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(Et, {}) }) }),
|
|
1846
|
-
y && /* @__PURE__ */ s.jsx(
|
|
1846
|
+
y && /* @__PURE__ */ s.jsx($t, { message: y.message })
|
|
1847
1847
|
] });
|
|
1848
1848
|
}, Zu = ({ children: e, onStorno: t, noSpacer: r }) => {
|
|
1849
1849
|
const { formState: n } = gt(), a = ft({ falseIfNotInit: !0 }), [o, i] = F(!1);
|
|
1850
1850
|
return W(() => {
|
|
1851
1851
|
i(Object.keys(n.dirtyFields).length > 0);
|
|
1852
1852
|
}, [n]), o ? /* @__PURE__ */ s.jsx(fu, { onStorno: t, noSpacer: r, disabled: a, children: e }) : null;
|
|
1853
|
-
}, Mo = ({ InputContainer: e =
|
|
1853
|
+
}, Mo = ({ InputContainer: e = ze, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, withoutLabel: d, noSortOptions: u, suffixIdToName: f, onSelect: g, className: v, appendCurrentSelectionWithName: b, hint: h, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent: D, miniDetailPlacement: N, selectedItemNavigateTo: y }) => {
|
|
1854
1854
|
const { texts: { customSelect: S } } = z(ce), { formState: j, setValue: O, watch: E, control: A } = gt(), k = ft({ falseIfNotInit: !0 }), [L, C] = F(void 0), [Z, Y] = F(!1), [B, R] = F(!1), [$, V] = F(""), q = E(r), K = M(() => t.find((_) => _.id === q) ?? null, [t, q]), re = P(() => {
|
|
1855
1855
|
const _ = r.split(".");
|
|
1856
1856
|
let fe = j.errors;
|
|
@@ -1876,7 +1876,7 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1876
1876
|
Y(!1), ae(_);
|
|
1877
1877
|
}, [ae]), H = P((_) => {
|
|
1878
1878
|
V(_);
|
|
1879
|
-
}, []), U = M(() =>
|
|
1879
|
+
}, []), U = M(() => p || k, [p, k]);
|
|
1880
1880
|
W(() => {
|
|
1881
1881
|
re();
|
|
1882
1882
|
}, [re]), W(() => {
|
|
@@ -1890,10 +1890,10 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1890
1890
|
return b !== void 0 && q && (_.some((fe) => fe.id === q) || _.push({ id: q, name: b })), _.map((fe) => ({
|
|
1891
1891
|
id: fe.id,
|
|
1892
1892
|
name: pe(fe)
|
|
1893
|
-
})).filter((fe) => yt(fe.name, $)).sort((fe, Ce) =>
|
|
1893
|
+
})).filter((fe) => yt(fe.name, $)).sort((fe, Ce) => u ? 0 : (fe.name ?? "").localeCompare(Ce.name ?? ""));
|
|
1894
1894
|
}, [
|
|
1895
1895
|
t,
|
|
1896
|
-
|
|
1896
|
+
u,
|
|
1897
1897
|
$,
|
|
1898
1898
|
pe,
|
|
1899
1899
|
b,
|
|
@@ -1906,10 +1906,10 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1906
1906
|
Y(!0);
|
|
1907
1907
|
}, ref: De, value: q ?? "", onChange: () => {
|
|
1908
1908
|
}, isInvalid: Ie, hidden: c, disabled: U, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (K == null ? void 0 : K.id) ?? "", children: pe(K) }) }) }) }) }),
|
|
1909
|
-
L && /* @__PURE__ */ s.jsx(
|
|
1909
|
+
L && /* @__PURE__ */ s.jsx($t, { message: L.message }),
|
|
1910
1910
|
De.current && /* @__PURE__ */ s.jsx(Sa, { show: Z, onCancel: () => Y(!1), items: le, currentSelection: K ?? null, onSelectionChange: ie, onSearchQueryChange: H, texts: S, disabled: U, inputRef: De, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: m, refreshOptions: x })
|
|
1911
1911
|
] }) });
|
|
1912
|
-
}, Pw = ({ InputContainer: e =
|
|
1912
|
+
}, Pw = ({ InputContainer: e = ze, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled: d, withoutLabel: u, step: f, stepperStep: g = 1, className: v, min: b, max: h, onChange: m, hint: x }) => {
|
|
1913
1913
|
const { register: D, formState: N, setValue: y, watch: S } = gt(), j = ft({ falseIfNotInit: !0 }), [O, E] = F(void 0), [A, k] = F(!1), L = P(($, V, q) => {
|
|
1914
1914
|
y($, vr(V, b, h), q);
|
|
1915
1915
|
}, [h, b, y]), C = P(() => {
|
|
@@ -1931,7 +1931,7 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1931
1931
|
N.isSubmitted && k(!0);
|
|
1932
1932
|
}, [N]);
|
|
1933
1933
|
const B = O !== void 0, R = S(t);
|
|
1934
|
-
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: c, disabled: Y, hidden:
|
|
1934
|
+
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: c, disabled: Y, hidden: p, withoutLabel: u, isInvalid: B, hint: x, className: v, children: [
|
|
1935
1935
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
1936
1936
|
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: n ?? r, size: a, ...D(t, {
|
|
1937
1937
|
setValueAs: ($) => $ == null || $ === "" ? null : vr(Number($), b, h),
|
|
@@ -1941,7 +1941,7 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1941
1941
|
var V;
|
|
1942
1942
|
o && o.forEach((q) => y(q, null, { shouldDirty: !0, shouldValidate: A })), m && m((V = $.target) != null && V.value ? Number($.target.value) ?? null : null);
|
|
1943
1943
|
}
|
|
1944
|
-
}), isInvalid: B, hidden:
|
|
1944
|
+
}), isInvalid: B, hidden: p, disabled: Y, className: "w-100 luminus-numeric-stepper", step: f, min: b, max: h }),
|
|
1945
1945
|
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ s.jsx(oe, { size: "sm", onClick: ($) => {
|
|
1946
1946
|
$.preventDefault(), $.stopPropagation(), L(t, ((R ? Number(R) : 0) - g).toString(), { shouldDirty: !0, shouldValidate: A });
|
|
1947
1947
|
}, children: /* @__PURE__ */ s.jsx(ss, {}) }) }),
|
|
@@ -1950,9 +1950,9 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1950
1950
|
}, children: /* @__PURE__ */ s.jsx(ls, {}) }) })
|
|
1951
1951
|
] }),
|
|
1952
1952
|
i && S(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(oe, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(Et, {}) }) }),
|
|
1953
|
-
O && /* @__PURE__ */ s.jsx(
|
|
1953
|
+
O && /* @__PURE__ */ s.jsx($t, { message: O.message })
|
|
1954
1954
|
] });
|
|
1955
|
-
}, Aw = ({ InputContainer: e =
|
|
1955
|
+
}, Aw = ({ InputContainer: e = ze, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: d, step: u, size: f, CustomOnChangeComponent: g, noSelectOnFocus: v, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: N, max: y, onChange: S, hint: j }) => {
|
|
1956
1956
|
const { formState: O, setValue: E, watch: A, control: k } = gt(), L = ft({ falseIfNotInit: !0 }), [C, Z] = F(void 0), [Y, B] = F(!1), R = P(() => {
|
|
1957
1957
|
const re = i ?? null;
|
|
1958
1958
|
E(t, re !== null ? Number(re) : null, {
|
|
@@ -1965,7 +1965,7 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1965
1965
|
re.forEach((ie) => {
|
|
1966
1966
|
ae !== void 0 && (ae = ae[ie]);
|
|
1967
1967
|
}), Z(ae);
|
|
1968
|
-
}, [O, t]), V = M(() =>
|
|
1968
|
+
}, [O, t]), V = M(() => p || L, [p, L]);
|
|
1969
1969
|
W(() => {
|
|
1970
1970
|
$();
|
|
1971
1971
|
}, [$]), W(() => {
|
|
@@ -1990,14 +1990,14 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
1990
1990
|
"is-invalid": K
|
|
1991
1991
|
}, {
|
|
1992
1992
|
[`form-control-${f}`]: f
|
|
1993
|
-
}), step:
|
|
1993
|
+
}), step: u, getInputRef: re, min: N, max: y }) }),
|
|
1994
1994
|
g && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: g })
|
|
1995
1995
|
] }),
|
|
1996
1996
|
o && A(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(oe, { color: "secondary", size: "sm", onClick: R, children: /* @__PURE__ */ s.jsx(Et, {}) }) }),
|
|
1997
|
-
C && /* @__PURE__ */ s.jsx(
|
|
1997
|
+
C && /* @__PURE__ */ s.jsx($t, { message: C.message })
|
|
1998
1998
|
] });
|
|
1999
1999
|
}, Tw = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(Hc, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, multiple: o, className: i, children: l, ...c }) => {
|
|
2000
|
-
const
|
|
2000
|
+
const p = (d) => {
|
|
2001
2001
|
d.target.files && (a(d.target.files), d.target.value = "");
|
|
2002
2002
|
};
|
|
2003
2003
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -2005,7 +2005,7 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
2005
2005
|
t,
|
|
2006
2006
|
l
|
|
2007
2007
|
] }),
|
|
2008
|
-
/* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange:
|
|
2008
|
+
/* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange: p, hidden: !0, multiple: o })
|
|
2009
2009
|
] });
|
|
2010
2010
|
}, Ma = ["slice", "options", "formats", "conditions"], Lo = (e) => {
|
|
2011
2011
|
const t = e.current.flexmonster.getReport({ withDefaults: !0 });
|
|
@@ -2030,7 +2030,7 @@ const Sw = ({ InputContainer: e = $t, value: t, onChange: r, debounceMs: n, labe
|
|
|
2030
2030
|
}), t;
|
|
2031
2031
|
}, rp = (e) => e && e.type === "header" && e.member && e.member.caption !== "All" && // collapsed groups have this in continuing cells
|
|
2032
2032
|
e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo = (e) => !e.member && !e.isDrillThrough, $o = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), np = ({ dataSource: e, settings: t, pivotRef: r, localization: n, licenseKey: a, hyperlinkColumn: o, enabled: i = !0 }) => {
|
|
2033
|
-
const { texts: { reports: l } } = z(ce), [c,
|
|
2033
|
+
const { texts: { reports: l } } = z(ce), [c, p] = F(!1), d = ee(null), u = r ?? d, f = M(() => ({
|
|
2034
2034
|
localization: n
|
|
2035
2035
|
}), [n]), g = P((m) => {
|
|
2036
2036
|
delete m[0], delete m[1], delete m[2];
|
|
@@ -2038,13 +2038,13 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2038
2038
|
{
|
|
2039
2039
|
id: "fm-tab-expand",
|
|
2040
2040
|
title: l.expandAll,
|
|
2041
|
-
handler:
|
|
2041
|
+
handler: u.current.flexmonster.expandAllData,
|
|
2042
2042
|
icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/><path fill="none" d="M0 0h24v24H0V0z"/></svg>'
|
|
2043
2043
|
},
|
|
2044
2044
|
{
|
|
2045
2045
|
id: "fm-tab-collapse",
|
|
2046
2046
|
title: l.collapseAll,
|
|
2047
|
-
handler:
|
|
2047
|
+
handler: u.current.flexmonster.collapseAllData,
|
|
2048
2048
|
icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'
|
|
2049
2049
|
}
|
|
2050
2050
|
];
|
|
@@ -2055,17 +2055,17 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2055
2055
|
menu: x,
|
|
2056
2056
|
rightGroup: !0
|
|
2057
2057
|
}), m;
|
|
2058
|
-
}, [
|
|
2058
|
+
}, [u, l.collapseAll, l.expand, l.expandAll]), v = (m) => {
|
|
2059
2059
|
const x = m.getTabs();
|
|
2060
2060
|
m.getTabs = () => g(x);
|
|
2061
2061
|
};
|
|
2062
2062
|
W(() => {
|
|
2063
2063
|
var m;
|
|
2064
|
-
c && i && ((m =
|
|
2065
|
-
}, [e, i, c,
|
|
2064
|
+
c && i && ((m = u.current) == null || m.flexmonster.updateData(e), console.log("Updating flexmonster dataSource to: ", e));
|
|
2065
|
+
}, [e, i, c, u]), W(() => {
|
|
2066
2066
|
var m, x, D;
|
|
2067
2067
|
if (c && i) {
|
|
2068
|
-
const { options: N, conditions: y, formats: S, slice: j, ...O } = (m =
|
|
2068
|
+
const { options: N, conditions: y, formats: S, slice: j, ...O } = (m = u.current) == null ? void 0 : m.flexmonster.getReport();
|
|
2069
2069
|
if (O === void 0 || typeof O == "string")
|
|
2070
2070
|
return;
|
|
2071
2071
|
const E = tp(t);
|
|
@@ -2077,9 +2077,9 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2077
2077
|
dateTimePattern: "dd.MM.yyyy HH:mm:ss"
|
|
2078
2078
|
};
|
|
2079
2079
|
const A = { ...O, ...E };
|
|
2080
|
-
(D =
|
|
2080
|
+
(D = u.current) == null || D.flexmonster.setReport(A), console.log("Refreshing flexmonster settings. New report: ", A);
|
|
2081
2081
|
}
|
|
2082
|
-
}, [i, c,
|
|
2082
|
+
}, [i, c, u, t]);
|
|
2083
2083
|
const b = P((m, x) => {
|
|
2084
2084
|
var E, A;
|
|
2085
2085
|
if (rp(x)) {
|
|
@@ -2105,14 +2105,14 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2105
2105
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
2106
2106
|
Gd,
|
|
2107
2107
|
{
|
|
2108
|
-
ref:
|
|
2108
|
+
ref: u,
|
|
2109
2109
|
global: f,
|
|
2110
2110
|
licenseKey: a,
|
|
2111
2111
|
toolbar: !0,
|
|
2112
2112
|
height: "100%",
|
|
2113
2113
|
beforetoolbarcreated: v,
|
|
2114
2114
|
ready: () => {
|
|
2115
|
-
|
|
2115
|
+
p(!0);
|
|
2116
2116
|
},
|
|
2117
2117
|
width: "100%",
|
|
2118
2118
|
customizeCell: b,
|
|
@@ -2120,17 +2120,17 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2120
2120
|
}
|
|
2121
2121
|
) });
|
|
2122
2122
|
}, ap = (e, t, r, n) => {
|
|
2123
|
-
const { texts: { reports: a } } = z(ce), { prompt: o } = zc(), { confirm: i } = Ar(), l = ct(), { user: c } = z(jt), { startLoading:
|
|
2124
|
-
|
|
2123
|
+
const { texts: { reports: a } } = z(ce), { prompt: o } = zc(), { confirm: i } = Ar(), l = ct(), { user: c } = z(jt), { startLoading: p, stopLoading: d } = z(er), { addNotification: u } = Ca(), f = P(async (m) => {
|
|
2124
|
+
p("report-versionSavingAs");
|
|
2125
2125
|
try {
|
|
2126
2126
|
const x = await l.post("/reports/version", m);
|
|
2127
|
-
|
|
2127
|
+
u(a.saveSuccessful, "success"), await n(x.data);
|
|
2128
2128
|
} finally {
|
|
2129
2129
|
d("report-versionSavingAs");
|
|
2130
2130
|
}
|
|
2131
|
-
}, [
|
|
2131
|
+
}, [u, n, l, a.saveSuccessful, p, d]), g = P(async () => {
|
|
2132
2132
|
if (r === null) {
|
|
2133
|
-
|
|
2133
|
+
u("none open", "warning");
|
|
2134
2134
|
return;
|
|
2135
2135
|
}
|
|
2136
2136
|
if (!await i(a.confirmOverwriteSave))
|
|
@@ -2142,7 +2142,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2142
2142
|
settings: x
|
|
2143
2143
|
});
|
|
2144
2144
|
}, [
|
|
2145
|
-
|
|
2145
|
+
u,
|
|
2146
2146
|
i,
|
|
2147
2147
|
t,
|
|
2148
2148
|
e,
|
|
@@ -2160,26 +2160,26 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2160
2160
|
settings: x
|
|
2161
2161
|
});
|
|
2162
2162
|
}, [t, o, e, a.enterName, f]), b = P(async () => {
|
|
2163
|
-
|
|
2163
|
+
p("report-versionSavingAs");
|
|
2164
2164
|
try {
|
|
2165
2165
|
await l.post("/reports/version", {
|
|
2166
2166
|
reportVersionId: r ?? void 0,
|
|
2167
2167
|
reportSourceName: e,
|
|
2168
2168
|
isArchived: !0
|
|
2169
|
-
}),
|
|
2169
|
+
}), u(a.deleteSuccessful, "success");
|
|
2170
2170
|
} finally {
|
|
2171
2171
|
d("report-versionSavingAs");
|
|
2172
2172
|
}
|
|
2173
2173
|
}, [
|
|
2174
|
-
|
|
2174
|
+
u,
|
|
2175
2175
|
l,
|
|
2176
2176
|
e,
|
|
2177
2177
|
a.deleteSuccessful,
|
|
2178
2178
|
r,
|
|
2179
|
-
|
|
2179
|
+
p,
|
|
2180
2180
|
d
|
|
2181
2181
|
]), h = P(async () => {
|
|
2182
|
-
|
|
2182
|
+
p("report-versionSavingAs");
|
|
2183
2183
|
try {
|
|
2184
2184
|
await l.post("/reports/version-restrictions", {
|
|
2185
2185
|
reportVersionId: r ?? void 0,
|
|
@@ -2189,16 +2189,16 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2189
2189
|
addRights: !1
|
|
2190
2190
|
}
|
|
2191
2191
|
]
|
|
2192
|
-
}),
|
|
2192
|
+
}), u(a.detachSuccessful, "success");
|
|
2193
2193
|
} finally {
|
|
2194
2194
|
d("report-versionSavingAs");
|
|
2195
2195
|
}
|
|
2196
2196
|
}, [
|
|
2197
|
-
|
|
2197
|
+
u,
|
|
2198
2198
|
l,
|
|
2199
2199
|
a.detachSuccessful,
|
|
2200
2200
|
r,
|
|
2201
|
-
|
|
2201
|
+
p,
|
|
2202
2202
|
d,
|
|
2203
2203
|
c.personalNumber
|
|
2204
2204
|
]);
|
|
@@ -2224,22 +2224,22 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2224
2224
|
return l;
|
|
2225
2225
|
}, [t, e, r, n]) };
|
|
2226
2226
|
}, ip = ({ isOpen: e, onHide: t, usersData: r, reportVersionId: n, EmployeePicker: a, setReportVersion: o }) => {
|
|
2227
|
-
const { ProjectIconComponent: i, texts: { reports: l } } = z(ce), { confirm: c } = Ar(), [
|
|
2227
|
+
const { ProjectIconComponent: i, texts: { reports: l } } = z(ce), { confirm: c } = Ar(), [p, d] = F(null), { changeEmployeeRights: u } = op(n), f = P((b) => {
|
|
2228
2228
|
o((h) => h === null ? null : {
|
|
2229
2229
|
...h,
|
|
2230
2230
|
users: b.filter((m) => m.isReportOwner === !1)
|
|
2231
2231
|
});
|
|
2232
2232
|
}, [o]), g = P(async () => {
|
|
2233
|
-
if (
|
|
2233
|
+
if (p === null)
|
|
2234
2234
|
return;
|
|
2235
|
-
const b = await p
|
|
2235
|
+
const b = await u(p.id, !0);
|
|
2236
2236
|
f(b), d(null);
|
|
2237
|
-
}, [
|
|
2237
|
+
}, [p, u, f]), v = P(async (b) => {
|
|
2238
2238
|
if (!await c(l.removeSharingWith(b)))
|
|
2239
2239
|
return;
|
|
2240
|
-
const m = await
|
|
2240
|
+
const m = await u(b, !1);
|
|
2241
2241
|
f(m);
|
|
2242
|
-
}, [
|
|
2242
|
+
}, [u, c, l, f]);
|
|
2243
2243
|
return /* @__PURE__ */ s.jsxs(Ve, { show: e, onHide: t, children: [
|
|
2244
2244
|
/* @__PURE__ */ s.jsx(Ve.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Ve.Title, { children: l.reportSharing }) }),
|
|
2245
2245
|
/* @__PURE__ */ s.jsxs(Ve.Body, { children: [
|
|
@@ -2264,8 +2264,8 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2264
2264
|
return;
|
|
2265
2265
|
}
|
|
2266
2266
|
d(b);
|
|
2267
|
-
}, value:
|
|
2268
|
-
/* @__PURE__ */ s.jsx(xr, { onClick: g, disabled:
|
|
2267
|
+
}, value: p }) }),
|
|
2268
|
+
/* @__PURE__ */ s.jsx(xr, { onClick: g, disabled: p === null, children: l.add })
|
|
2269
2269
|
] })
|
|
2270
2270
|
] })
|
|
2271
2271
|
] });
|
|
@@ -2277,14 +2277,14 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2277
2277
|
n(o);
|
|
2278
2278
|
});
|
|
2279
2279
|
}, [t, e]), { mappings: r };
|
|
2280
|
-
}, Rw = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer:
|
|
2281
|
-
const { texts: { reports:
|
|
2280
|
+
}, Rw = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: p, hyperlinkColumn: d }) => {
|
|
2281
|
+
const { texts: { reports: u } } = z(ce), { confirm: f } = Ar(), g = hn(), [v] = Md(), { id: b } = bs(), h = M(() => b === void 0 ? null : Number(b), [b]), m = P((H) => {
|
|
2282
2282
|
const U = H === null ? "" : H.toString();
|
|
2283
2283
|
g(yr(a(e), { id: U }) + "?" + v.toString(), {
|
|
2284
2284
|
replace: !0,
|
|
2285
2285
|
flushSync: !0
|
|
2286
2286
|
});
|
|
2287
|
-
}, [a, g, e, v]), [x, D] = F(!1), N = ee(null), { user: y } = z(jt), { data: S, reloadData: j } = lt(`/reports/${e}`), { mappings: O } = sp(c,
|
|
2287
|
+
}, [a, g, e, v]), [x, D] = F(!1), N = ee(null), { user: y } = z(jt), { data: S, reloadData: j } = lt(`/reports/${e}`), { mappings: O } = sp(c, p), [E, A] = F({}), k = P((H) => {
|
|
2288
2288
|
const U = H.target.value, pe = U === "" ? null : Number(U);
|
|
2289
2289
|
m(pe);
|
|
2290
2290
|
}, [m]), L = P(async (H) => {
|
|
@@ -2304,15 +2304,15 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2304
2304
|
mapping: O ?? void 0
|
|
2305
2305
|
}), [r, O]), q = P(async () => {
|
|
2306
2306
|
var U;
|
|
2307
|
-
await f(
|
|
2308
|
-
}, [f, V,
|
|
2307
|
+
await f(u.confirmRevertChanges) && ((U = N.current) == null || U.flexmonster.setReport({ dataSource: V, ...E }));
|
|
2308
|
+
}, [f, V, u.confirmRevertChanges, E]), K = M(() => (C == null ? void 0 : C.ownerId) === y.personalNumber, [C == null ? void 0 : C.ownerId, y.personalNumber]), re = M(() => {
|
|
2309
2309
|
var H;
|
|
2310
2310
|
return (H = C == null ? void 0 : C.users) == null ? void 0 : H.some((U) => U.id === y.personalNumber && !U.isReportOwner);
|
|
2311
2311
|
}, [C == null ? void 0 : C.users, y.personalNumber]), ae = P(async () => {
|
|
2312
|
-
await f(
|
|
2313
|
-
}, [R, f, j, C == null ? void 0 : C.name,
|
|
2314
|
-
await f(
|
|
2315
|
-
}, [f, $, j, C == null ? void 0 : C.name,
|
|
2312
|
+
await f(u.confirmDelete(C == null ? void 0 : C.name)) && (await R(), m(null), await j());
|
|
2313
|
+
}, [R, f, j, C == null ? void 0 : C.name, u, m]), ie = P(async () => {
|
|
2314
|
+
await f(u.confirmDetach(C == null ? void 0 : C.name)) && (await $(), m(null), await j());
|
|
2315
|
+
}, [f, $, j, C == null ? void 0 : C.name, u, m]);
|
|
2316
2316
|
return W(() => {
|
|
2317
2317
|
var H, U;
|
|
2318
2318
|
h === null && m(((H = S == null ? void 0 : S.reportVersions.find((pe) => pe.isSystem === !0)) == null ? void 0 : H.reportVersionId) ?? ((U = S == null ? void 0 : S.reportVersions[0]) == null ? void 0 : U.reportVersionId) ?? null);
|
|
@@ -2322,17 +2322,17 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2322
2322
|
n,
|
|
2323
2323
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
|
|
2324
2324
|
/* @__PURE__ */ s.jsxs(qc, { size: "sm", value: h ?? void 0, onChange: k, children: [
|
|
2325
|
-
/* @__PURE__ */ s.jsx("optgroup", { label:
|
|
2326
|
-
/* @__PURE__ */ s.jsx("optgroup", { label:
|
|
2327
|
-
/* @__PURE__ */ s.jsx("optgroup", { label:
|
|
2325
|
+
/* @__PURE__ */ s.jsx("optgroup", { label: u.versionSelectSystem, children: S == null ? void 0 : S.reportVersions.filter((H) => H.isSystem === !0).map((H) => /* @__PURE__ */ s.jsx("option", { value: H.reportVersionId, children: H.name }, H.reportVersionId)) }),
|
|
2326
|
+
/* @__PURE__ */ s.jsx("optgroup", { label: u.versionSelectYour, children: S == null ? void 0 : S.reportVersions.filter((H) => H.ownerId === y.personalNumber).map((H) => /* @__PURE__ */ s.jsx("option", { value: H.reportVersionId, children: H.name }, H.reportVersionId)) }),
|
|
2327
|
+
/* @__PURE__ */ s.jsx("optgroup", { label: u.versionSelectSharedWithYou, children: S == null ? void 0 : S.reportVersions.filter((H) => H.isSystem === !1 && H.ownerId !== y.personalNumber).map((H) => /* @__PURE__ */ s.jsx("option", { value: H.reportVersionId, children: `${H.name} [${H.ownerId}]` }, H.reportVersionId)) })
|
|
2328
2328
|
] }),
|
|
2329
|
-
/* @__PURE__ */ s.jsx(pt, { icon: /* @__PURE__ */ s.jsx(Yc, {}), onClick: Y, disabled: h === null || (C == null ? void 0 : C.isSystem) || !K, children:
|
|
2330
|
-
/* @__PURE__ */ s.jsx(pt, { icon: /* @__PURE__ */ s.jsx(Kc, {}), onClick: B, className: "flex-shrink-0", children:
|
|
2329
|
+
/* @__PURE__ */ s.jsx(pt, { icon: /* @__PURE__ */ s.jsx(Yc, {}), onClick: Y, disabled: h === null || (C == null ? void 0 : C.isSystem) || !K, children: u.save }),
|
|
2330
|
+
/* @__PURE__ */ s.jsx(pt, { icon: /* @__PURE__ */ s.jsx(Kc, {}), onClick: B, className: "flex-shrink-0", children: u.saveAs }),
|
|
2331
2331
|
/* @__PURE__ */ s.jsxs(tr, { toggle: /* @__PURE__ */ s.jsx(rr, { as: Tr }), children: [
|
|
2332
|
-
/* @__PURE__ */ s.jsx(rt, { onClick: q, children:
|
|
2333
|
-
/* @__PURE__ */ s.jsx(rt, { onClick: () => D(!0), disabled: !K || (C == null ? void 0 : C.isSystem), children:
|
|
2334
|
-
K && !(C != null && C.isSystem) ? /* @__PURE__ */ s.jsx(rt, { color: "danger", onClick: ae, children:
|
|
2335
|
-
re && !(C != null && C.isSystem) ? /* @__PURE__ */ s.jsx(rt, { color: "danger", onClick: ie, children:
|
|
2332
|
+
/* @__PURE__ */ s.jsx(rt, { onClick: q, children: u.revertChanges }),
|
|
2333
|
+
/* @__PURE__ */ s.jsx(rt, { onClick: () => D(!0), disabled: !K || (C == null ? void 0 : C.isSystem), children: u.share }),
|
|
2334
|
+
K && !(C != null && C.isSystem) ? /* @__PURE__ */ s.jsx(rt, { color: "danger", onClick: ae, children: u.delete }) : null,
|
|
2335
|
+
re && !(C != null && C.isSystem) ? /* @__PURE__ */ s.jsx(rt, { color: "danger", onClick: ie, children: u.detach }) : null
|
|
2336
2336
|
] })
|
|
2337
2337
|
] })
|
|
2338
2338
|
] }), children: /* @__PURE__ */ s.jsx("div", { className: I("h-100 w-100", V.data && V.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ s.jsx(np, { dataSource: V, settings: E, pivotRef: N, enabled: V.data && V.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn: d }) }) }),
|
|
@@ -2357,9 +2357,9 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2357
2357
|
}, className: I(`border-${n}`, t.includes(n) && `bg-${n}`), onClick: () => {
|
|
2358
2358
|
t.includes(n) ? r(t.filter((a) => a !== n)) : r([...t, n]);
|
|
2359
2359
|
} }, n)) }), cp = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ s.jsx(Je, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: r }), dp = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: n, getLinksTo: a }) => {
|
|
2360
|
-
const { ProjectIconComponent: o, localizationContext: i } = z(ce), { dateFnsLocale: l } = z(i), c = e.dateTime ? Ft(e.dateTime) : null,
|
|
2360
|
+
const { ProjectIconComponent: o, localizationContext: i } = z(ce), { dateFnsLocale: l } = z(i), c = e.dateTime ? Ft(e.dateTime) : null, p = c ? Yd(new Date(Date.now()), c) : 0;
|
|
2361
2361
|
return /* @__PURE__ */ s.jsxs("div", { children: [
|
|
2362
|
-
c && /* @__PURE__ */ s.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Ge, { text: Lt(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", children:
|
|
2362
|
+
c && /* @__PURE__ */ s.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Ge, { text: Lt(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", children: p > 2 ? Lt(c, "dd.MM.yyyy") : Xd(c, new Date(Date.now()), {
|
|
2363
2363
|
locale: l.code
|
|
2364
2364
|
}) }) }) }) }),
|
|
2365
2365
|
/* @__PURE__ */ s.jsx(cp, { linksTo: a(e) ?? void 0, onClick: r, children: /* @__PURE__ */ s.jsx(ey, { level: e.type, noIcon: !0, children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
|
|
@@ -2376,7 +2376,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2376
2376
|
] }) }) })
|
|
2377
2377
|
] });
|
|
2378
2378
|
}, Go = ["info", "warning", "danger"], Wo = ({ messages: e, isLoading: t, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }) => {
|
|
2379
|
-
const { texts: { messageBoard: i } } = z(ce), [l, c] = F(Go),
|
|
2379
|
+
const { texts: { messageBoard: i } } = z(ce), [l, c] = F(Go), p = M(() => e.filter((d) => l.includes(d.type ?? "")), [l, e]);
|
|
2380
2380
|
return /* @__PURE__ */ s.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
2381
2381
|
/* @__PURE__ */ s.jsx(lp, { knownTypes: Go, typeFilters: l, onChangeTypeFilters: (d) => c(d) }),
|
|
2382
2382
|
t && /* @__PURE__ */ s.jsxs("div", { className: "p-3 w-100", children: [
|
|
@@ -2395,22 +2395,22 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2395
2395
|
] }),
|
|
2396
2396
|
!t && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2397
2397
|
e.length === 0 && /* @__PURE__ */ s.jsx(vn, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
|
|
2398
|
-
/* @__PURE__ */ s.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children:
|
|
2398
|
+
/* @__PURE__ */ s.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: p.map((d) => /* @__PURE__ */ s.jsx(dp, { message: d, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }, d.id)) })
|
|
2399
2399
|
] })
|
|
2400
2400
|
] });
|
|
2401
2401
|
}, Tn = {
|
|
2402
2402
|
apiGet: "/messageBoard",
|
|
2403
2403
|
apiDelete: "/messageBoard/"
|
|
2404
2404
|
}, Bw = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = Tn.apiGet, apiDelete: n = Tn.apiDelete } = Tn, getIcon: a, getLinksTo: o }) => {
|
|
2405
|
-
const l = ct(), [c,
|
|
2405
|
+
const l = ct(), [c, p] = F([]), [d, u] = F(!1), [f, g] = F(!1), [v, b] = F(!1), h = P(async () => {
|
|
2406
2406
|
g(!0), await l.get(r).then(({ data: y }) => {
|
|
2407
|
-
|
|
2407
|
+
p(y), u(!0), g(!1);
|
|
2408
2408
|
}).catch(() => {
|
|
2409
|
-
|
|
2409
|
+
p([]), g(!1);
|
|
2410
2410
|
});
|
|
2411
2411
|
}, [r, l]), m = P(async (y) => l.delete(`${n}${y}`).then(() => !0).catch(() => !1), [n, l]), x = P((y) => {
|
|
2412
2412
|
m(y).then((S) => {
|
|
2413
|
-
S &&
|
|
2413
|
+
S && p(c.filter((j) => j.id !== y));
|
|
2414
2414
|
});
|
|
2415
2415
|
}, [m, c]);
|
|
2416
2416
|
W(() => {
|
|
@@ -2443,10 +2443,10 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2443
2443
|
const l = o.type, c = o.props;
|
|
2444
2444
|
if (!c)
|
|
2445
2445
|
return null;
|
|
2446
|
-
const
|
|
2446
|
+
const p = c.eventKey, d = c.children, u = c.className, f = c.onClick;
|
|
2447
2447
|
return /* @__PURE__ */ s.jsxs(se.Fragment, { children: [
|
|
2448
|
-
/* @__PURE__ */ s.jsx(l, { ...c, className: I({ active: e ===
|
|
2449
|
-
t(
|
|
2448
|
+
/* @__PURE__ */ s.jsx(l, { ...c, className: I({ active: e === p }, u), onClick: () => {
|
|
2449
|
+
t(p), f && f(p);
|
|
2450
2450
|
}, vertical: n || a, children: d }),
|
|
2451
2451
|
a && i < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className: I("join-line", vp.joinLine) })
|
|
2452
2452
|
] }, c.eventKey);
|
|
@@ -2473,7 +2473,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2473
2473
|
/* @__PURE__ */ s.jsx(oe, { className: "rounded m-1", onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(r, { icon: e }) }),
|
|
2474
2474
|
a && /* @__PURE__ */ s.jsxs("div", { className: Ur.selection, children: [
|
|
2475
2475
|
/* @__PURE__ */ s.jsx("div", { className: Ur.selectionBg, onClick: () => o(!1) }),
|
|
2476
|
-
/* @__PURE__ */ s.jsx("div", { className: Ur.selectionItemsContainer, children: /* @__PURE__ */ s.jsx("div", { className: Ur.selectionItems, children: n.filter((l, c,
|
|
2476
|
+
/* @__PURE__ */ s.jsx("div", { className: Ur.selectionItemsContainer, children: /* @__PURE__ */ s.jsx("div", { className: Ur.selectionItems, children: n.filter((l, c, p) => p.indexOf(l) === c).map((l) => /* @__PURE__ */ s.jsx(oe, { className: "rounded", onClick: () => i(l), children: /* @__PURE__ */ s.jsx(r, { icon: l }) }, l)) }) })
|
|
2477
2477
|
] })
|
|
2478
2478
|
] });
|
|
2479
2479
|
}, Ks = () => {
|
|
@@ -2484,17 +2484,17 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2484
2484
|
}, Cp = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n }) => {
|
|
2485
2485
|
const { ProjectIconComponent: a } = z(ce), [o, i] = F(e.icon), [l, c] = F(e.name);
|
|
2486
2486
|
console.log(o, typeof o);
|
|
2487
|
-
const
|
|
2487
|
+
const p = M(() => !(o === e.icon && l === e.name), [o, l, e.icon, e.name]), d = P(() => {
|
|
2488
2488
|
i(e.icon), c(e.name);
|
|
2489
|
-
}, [e]),
|
|
2489
|
+
}, [e]), u = P(() => {
|
|
2490
2490
|
n({ ...e, icon: o, name: l });
|
|
2491
2491
|
}, [n, o, l, e]);
|
|
2492
2492
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2493
2493
|
/* @__PURE__ */ s.jsx("td", { className: "align-middle", children: /* @__PURE__ */ s.jsx(st, { type: "text", maxLength: 20, value: l, onChange: c, className: "d-flex-grow-1", InputContainer: tt }) }),
|
|
2494
2494
|
/* @__PURE__ */ s.jsx("td", { className: "align-middle text-center", children: /* @__PURE__ */ s.jsx(Ys, { icon: o, setIcon: i, IconComponent: t, IconTypeArray: r }) }),
|
|
2495
|
-
/* @__PURE__ */ s.jsx("td", { className: "align-middle", style: { width: "7em" }, children:
|
|
2495
|
+
/* @__PURE__ */ s.jsx("td", { className: "align-middle", style: { width: "7em" }, children: p && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2496
2496
|
/* @__PURE__ */ s.jsx(oe, { onClick: d, color: "danger", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "cancel" }) }),
|
|
2497
|
-
/* @__PURE__ */ s.jsx(oe, { onClick:
|
|
2497
|
+
/* @__PURE__ */ s.jsx(oe, { onClick: u, color: "success", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "check" }) })
|
|
2498
2498
|
] }) })
|
|
2499
2499
|
] });
|
|
2500
2500
|
}, Ep = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n, deleteShortcutLink: a }) => {
|
|
@@ -2521,31 +2521,31 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2521
2521
|
] }) }),
|
|
2522
2522
|
/* @__PURE__ */ s.jsx("tbody", { children: n == null ? void 0 : n.map((i) => /* @__PURE__ */ s.jsx(Ep, { shortcutLink: i, IconComponent: e, IconTypeArray: t, editShortcutLink: a, deleteShortcutLink: o }, i.id)) })
|
|
2523
2523
|
] }) : /* @__PURE__ */ s.jsx(vn, { variant: "info", children: r.shortcutLinks.addLinksToEditThemHereInfo }) });
|
|
2524
|
-
}, sa = 5, jp = "_linkButton_pnlvi_1", Ip = "_linkAddButton_pnlvi_31", Op = "_createLinkRow_pnlvi_39",
|
|
2524
|
+
}, sa = 5, jp = "_linkButton_pnlvi_1", Ip = "_linkAddButton_pnlvi_31", Op = "_createLinkRow_pnlvi_39", Kt = {
|
|
2525
2525
|
linkButton: jp,
|
|
2526
2526
|
linkAddButton: Ip,
|
|
2527
2527
|
createLinkRow: Op
|
|
2528
|
-
}, _p = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ s.jsx(Ge, { text: e.name, placement: "bottom", children: /* @__PURE__ */ s.jsx(Je, { to: e.url, className:
|
|
2529
|
-
const i = Ld(), { texts: l } = z(ce), [c,
|
|
2528
|
+
}, _p = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ s.jsx(Ge, { text: e.name, placement: "bottom", children: /* @__PURE__ */ s.jsx(Je, { to: e.url, className: Kt.linkButton, children: /* @__PURE__ */ s.jsx(t, { icon: e.icon }) }) }), Pp = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconComponent: a, IconTypeArray: o }) => {
|
|
2529
|
+
const i = Ld(), { texts: l } = z(ce), [c, p] = F("star-outline"), [d, u] = F(n ? document.title.replace(n, "") : document.title), f = P(async () => {
|
|
2530
2530
|
await r({ icon: c, name: d, url: i.pathname + i.search }), e();
|
|
2531
2531
|
}, [e, r, c, i.pathname, i.search, d]), g = M(() => i.pathname + i.search, [i.pathname, i.search]);
|
|
2532
2532
|
return /* @__PURE__ */ s.jsxs(Ve, { show: t, onHide: e, size: "sm", children: [
|
|
2533
2533
|
/* @__PURE__ */ s.jsx(Ve.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Ve.Title, { children: l.shortcutLinks.newShortcut }) }),
|
|
2534
2534
|
/* @__PURE__ */ s.jsxs(Ve.Body, { children: [
|
|
2535
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
2535
|
+
/* @__PURE__ */ s.jsxs("div", { className: Kt.createLinkRow, children: [
|
|
2536
2536
|
/* @__PURE__ */ s.jsx(Q, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.target }),
|
|
2537
2537
|
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold text-muted", children: g.length <= 23 ? g : /* @__PURE__ */ s.jsx(Ge, { placement: "bottom", text: g, children: /* @__PURE__ */ s.jsxs("span", { children: [
|
|
2538
2538
|
g.slice(0, 21),
|
|
2539
2539
|
"..."
|
|
2540
2540
|
] }) }) })
|
|
2541
2541
|
] }),
|
|
2542
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
2542
|
+
/* @__PURE__ */ s.jsxs("div", { className: Kt.createLinkRow, children: [
|
|
2543
2543
|
/* @__PURE__ */ s.jsx(Q, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
|
|
2544
|
-
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(st, { type: "text", maxLength: 25, value: d, onChange:
|
|
2544
|
+
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(st, { type: "text", maxLength: 25, value: d, onChange: u, className: "w-100", InputContainer: ze, withoutLabel: !0 }) })
|
|
2545
2545
|
] }),
|
|
2546
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
2546
|
+
/* @__PURE__ */ s.jsxs("div", { className: Kt.createLinkRow, children: [
|
|
2547
2547
|
/* @__PURE__ */ s.jsx(Q, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
|
|
2548
|
-
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(Ys, { icon: c, setIcon:
|
|
2548
|
+
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(Ys, { icon: c, setIcon: p, IconComponent: a, IconTypeArray: o }) })
|
|
2549
2549
|
] })
|
|
2550
2550
|
] }),
|
|
2551
2551
|
/* @__PURE__ */ s.jsx(Ve.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(xr, { onClick: f, children: l.shortcutLinks.addShortcut }) })
|
|
@@ -2553,7 +2553,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2553
2553
|
}, Ap = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: n }) => {
|
|
2554
2554
|
const { ProjectIconComponent: a, texts: o } = z(ce), [i, l] = F(!1), [c] = Ia(i, 100);
|
|
2555
2555
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2556
|
-
/* @__PURE__ */ s.jsx(Ge, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: I(
|
|
2556
|
+
/* @__PURE__ */ s.jsx(Ge, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: I(Kt.linkButton, Kt.linkAddButton), onClick: () => l(!0), children: /* @__PURE__ */ s.jsx(a, { icon: "add" }) }) }),
|
|
2557
2557
|
(i || c) && /* @__PURE__ */ s.jsx(Pp, { IconComponent: e, IconTypeArray: t, closeModal: () => l(!1), createLink: n, isOpen: i, pageTitlePrefix: r })
|
|
2558
2558
|
] });
|
|
2559
2559
|
}, Vw = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r }) => {
|
|
@@ -2599,7 +2599,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2599
2599
|
silent: !0,
|
|
2600
2600
|
dataTransformer: n,
|
|
2601
2601
|
enabled: r !== null
|
|
2602
|
-
}), { create: i, update: l, remove: c } = Tp(t),
|
|
2602
|
+
}), { create: i, update: l, remove: c } = Tp(t), p = P(async (g) => {
|
|
2603
2603
|
const v = Uo(r);
|
|
2604
2604
|
if (Rp(a).length >= sa)
|
|
2605
2605
|
throw new Error("Cannot add more shortcut links.");
|
|
@@ -2607,16 +2607,16 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2607
2607
|
}, [i, o, a, r]), d = P(async (g) => {
|
|
2608
2608
|
const v = Uo(r);
|
|
2609
2609
|
await l({ ...g, employee: v.personalNumber }), await o();
|
|
2610
|
-
}, [o, l, r]),
|
|
2610
|
+
}, [o, l, r]), u = P(async (g) => {
|
|
2611
2611
|
await c(g), await o();
|
|
2612
2612
|
}, [o, c]), f = M(() => ({
|
|
2613
2613
|
shortcutLinks: a,
|
|
2614
|
-
createShortcutLink:
|
|
2614
|
+
createShortcutLink: p,
|
|
2615
2615
|
editShortcutLink: d,
|
|
2616
|
-
deleteShortcutLink:
|
|
2617
|
-
}), [
|
|
2616
|
+
deleteShortcutLink: u
|
|
2617
|
+
}), [p, u, d, a]);
|
|
2618
2618
|
return /* @__PURE__ */ s.jsx(ds.Provider, { value: f, children: e });
|
|
2619
|
-
}, kp = "_widgets-row_13gg1_1", Bp = "_widget_13gg1_1", Mp = "_widget-img_13gg1_5", Lp = "_widget-title-spacer_13gg1_14", Fp = "_widget-title_13gg1_14", Vp = "_title_13gg1_28",
|
|
2619
|
+
}, kp = "_widgets-row_13gg1_1", Bp = "_widget_13gg1_1", Mp = "_widget-img_13gg1_5", Lp = "_widget-title-spacer_13gg1_14", Fp = "_widget-title_13gg1_14", Vp = "_title_13gg1_28", Ye = {
|
|
2620
2620
|
"widgets-row": "_widgets-row_13gg1_1",
|
|
2621
2621
|
widgetsRow: kp,
|
|
2622
2622
|
widget: Bp,
|
|
@@ -2628,29 +2628,29 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2628
2628
|
widgetTitle: Fp,
|
|
2629
2629
|
title: Vp
|
|
2630
2630
|
}, $p = ({ show: e, widgetGroups: t, widgets: r, handleClose: n, onWidgetPicked: a, texts: o }) => {
|
|
2631
|
-
const [i, l] = F(""), c = M(() => r.filter((d) => d.id !== -1 && yt(d.name, i)), [r, i]),
|
|
2631
|
+
const [i, l] = F(""), c = M(() => r.filter((d) => d.id !== -1 && yt(d.name, i)), [r, i]), p = M(() => t.filter((d) => c.some((u) => u.group === d.id)), [t, c]);
|
|
2632
2632
|
return /* @__PURE__ */ s.jsxs(Ve, { show: e, onHide: () => n(), size: "lg", children: [
|
|
2633
2633
|
/* @__PURE__ */ s.jsxs(Ve.Header, { closeButton: !0, children: [
|
|
2634
2634
|
/* @__PURE__ */ s.jsx(Ve.Title, { className: "w-100", children: o.pickWidgetToAdd }),
|
|
2635
2635
|
/* @__PURE__ */ s.jsx(Oe.Control, { type: "search", size: "sm", value: i, placeholder: o.searchPlaceholder, onChange: (d) => {
|
|
2636
|
-
var
|
|
2637
|
-
return l(((
|
|
2636
|
+
var u;
|
|
2637
|
+
return l(((u = d.target) == null ? void 0 : u.value) ?? "");
|
|
2638
2638
|
}, className: "me-3", style: { maxWidth: "200px" } })
|
|
2639
2639
|
] }),
|
|
2640
2640
|
/* @__PURE__ */ s.jsx(Ve.Body, { className: "flex-column gap-3", children: c.length === 0 ? /* @__PURE__ */ s.jsx(vn, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2641
|
-
|
|
2642
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2643
|
-
backgroundImage:
|
|
2641
|
+
p.map((d) => /* @__PURE__ */ s.jsx(on, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: I("row gx-3 gy-3", Ye.widgetsRow), children: c.filter((u) => u.group === d.id).map((u) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: I("p-0 pt-2 bg-white rounded shadow-sm", Ye.widget), onClick: () => a(u.id), children: [
|
|
2642
|
+
/* @__PURE__ */ s.jsx("div", { className: Ye.widgetImg, style: {
|
|
2643
|
+
backgroundImage: u.img ? `url(${u.img})` : void 0
|
|
2644
2644
|
} }),
|
|
2645
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2646
|
-
/* @__PURE__ */ s.jsx("div", { className: I(
|
|
2647
|
-
] },
|
|
2648
|
-
c.some((d) => d.group === void 0) && /* @__PURE__ */ s.jsx(on, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: I("row gx-3 gy-3",
|
|
2649
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2645
|
+
/* @__PURE__ */ s.jsx("div", { className: Ye.widgetTitleSpacer }),
|
|
2646
|
+
/* @__PURE__ */ s.jsx("div", { className: I(Ye.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(Q, { variant: "body", className: I(Ye.title, "text-white text-truncate"), children: u.name }) })
|
|
2647
|
+
] }, u.id) })) }) }) }, d.id)),
|
|
2648
|
+
c.some((d) => d.group === void 0) && /* @__PURE__ */ s.jsx(on, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: I("row gx-3 gy-3", Ye.widgetsRow), children: c.filter((d) => d.group === void 0).map((d) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: I("p-0 pt-2 bg-white rounded shadow-sm", Ye.widget), onClick: () => a(d.id), children: [
|
|
2649
|
+
/* @__PURE__ */ s.jsx("div", { className: Ye.widgetImg, style: {
|
|
2650
2650
|
backgroundImage: d.img ? `url(${d.img})` : void 0
|
|
2651
2651
|
} }),
|
|
2652
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2653
|
-
/* @__PURE__ */ s.jsx("div", { className: I(
|
|
2652
|
+
/* @__PURE__ */ s.jsx("div", { className: Ye.widgetTitleSpacer }),
|
|
2653
|
+
/* @__PURE__ */ s.jsx("div", { className: I(Ye.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(Q, { variant: "body", className: I(Ye.title, "text-white text-truncate"), children: d.name }) })
|
|
2654
2654
|
] }, d.id) })) }) }) })
|
|
2655
2655
|
] }) })
|
|
2656
2656
|
] });
|
|
@@ -2705,7 +2705,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2705
2705
|
...i,
|
|
2706
2706
|
widgets: ((m = i.widgets) == null ? void 0 : m.map((x, D) => D === v ? { widgetId: b, fullWidth: !1 } : x)) ?? []
|
|
2707
2707
|
});
|
|
2708
|
-
}, [i, l]),
|
|
2708
|
+
}, [i, l]), p = P((v) => {
|
|
2709
2709
|
var b, h;
|
|
2710
2710
|
((b = i.widgets[v]) == null ? void 0 : b.widgetId) === -1 ? l({
|
|
2711
2711
|
...i,
|
|
@@ -2717,11 +2717,11 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2717
2717
|
...i,
|
|
2718
2718
|
widgets: ((b = i.widgets) == null ? void 0 : b.map((h, m) => m === v ? { ...h, fullWidth: !h.fullWidth } : h)) ?? []
|
|
2719
2719
|
});
|
|
2720
|
-
}, [i, l]),
|
|
2720
|
+
}, [i, l]), u = P((v, b, h) => v ? /* @__PURE__ */ s.jsxs("div", { className: I(ot.widgetWrapper, {
|
|
2721
2721
|
[ot.widgetEdit]: r && v.id !== -1
|
|
2722
2722
|
}, { [ot.fullWidth]: h }), children: [
|
|
2723
2723
|
r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2724
|
-
/* @__PURE__ */ s.jsx(oe, { color: "danger", onClick: () =>
|
|
2724
|
+
/* @__PURE__ */ s.jsx(oe, { color: "danger", onClick: () => p(b), className: I(ot.removeIcon), children: /* @__PURE__ */ s.jsx(Qc, {}) }),
|
|
2725
2725
|
/* @__PURE__ */ s.jsx(oe, { color: h ? "danger" : "primary", onClick: () => d(b), className: I(ot.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Jc, {}) })
|
|
2726
2726
|
] }),
|
|
2727
2727
|
v.id === -1 ? r && /* @__PURE__ */ s.jsx("div", { className: ot.widgetWrapper, children: /* @__PURE__ */ s.jsx(zo, { widgetGroups: e, availableWidgets: t, onAdd: (m) => c(b, m), texts: o }) }) : /* @__PURE__ */ s.jsx(Eu, { title: v.title, children: /* @__PURE__ */ s.jsx(v.WidgetElement, { title: v.title }) }),
|
|
@@ -2730,13 +2730,13 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2730
2730
|
r,
|
|
2731
2731
|
e,
|
|
2732
2732
|
c,
|
|
2733
|
-
|
|
2733
|
+
p,
|
|
2734
2734
|
d,
|
|
2735
2735
|
t,
|
|
2736
2736
|
o
|
|
2737
2737
|
]), { isMobile: f } = mn();
|
|
2738
2738
|
return /* @__PURE__ */ s.jsx("div", { className: I(ot.dashboard, { [ot.mobile]: f }), children: /* @__PURE__ */ s.jsxs("div", { className: I(ot.widgetsGrid), children: [
|
|
2739
|
-
(g = i.widgets) == null ? void 0 : g.map((v, b) =>
|
|
2739
|
+
(g = i.widgets) == null ? void 0 : g.map((v, b) => u(t.find((h) => h.id === v.widgetId), b, v.fullWidth)),
|
|
2740
2740
|
r && /* @__PURE__ */ s.jsx(zo, { widgetGroups: e, availableWidgets: t, onAdd: (v) => {
|
|
2741
2741
|
var b;
|
|
2742
2742
|
return c((b = i.widgets) == null ? void 0 : b.length, v);
|
|
@@ -2790,40 +2790,40 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2790
2790
|
header: yf,
|
|
2791
2791
|
item: wf
|
|
2792
2792
|
}, Df = ({ show: e, query: t, onCancel: r, groups: n, isLoading: a, searchTypes: o }) => {
|
|
2793
|
-
const { texts: { appSearch: i } } = z(ce), l = ee(null), c = P((
|
|
2794
|
-
var
|
|
2795
|
-
const d = (
|
|
2796
|
-
return d ? `${d}/${
|
|
2793
|
+
const { texts: { appSearch: i } } = z(ce), l = ee(null), c = P((p) => {
|
|
2794
|
+
var u;
|
|
2795
|
+
const d = (u = o.find((f) => f.key === p.type)) == null ? void 0 : u.toPath;
|
|
2796
|
+
return d ? `${d}/${p.searchKey}` : "/not-found";
|
|
2797
2797
|
}, [o]);
|
|
2798
2798
|
return Zc([l], r), /* @__PURE__ */ s.jsx("div", { ref: l, className: I("luminus-app-search-dropdown shadow rounded", _t.dropdown, {
|
|
2799
2799
|
[_t.open]: e
|
|
2800
|
-
}), children: a ? /* @__PURE__ */ s.jsx("div", { className: _t.loadingContainer, children: /* @__PURE__ */ s.jsx(ed, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: _t.groupsContainer, children: n == null ? void 0 : n.map((
|
|
2800
|
+
}), children: a ? /* @__PURE__ */ s.jsx("div", { className: _t.loadingContainer, children: /* @__PURE__ */ s.jsx(ed, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: _t.groupsContainer, children: n == null ? void 0 : n.map((p) => {
|
|
2801
2801
|
var d;
|
|
2802
2802
|
return /* @__PURE__ */ s.jsxs("div", { className: I(_t.group), children: [
|
|
2803
|
-
/* @__PURE__ */ s.jsxs(Je, { to: `/search?query=${t}&type=${
|
|
2804
|
-
/* @__PURE__ */ s.jsx(Q, { variant: "body", className: "text-primary", children:
|
|
2803
|
+
/* @__PURE__ */ s.jsxs(Je, { to: `/search?query=${t}&type=${p.key.category}`, className: I("group-header", _t.header), onClick: r, children: [
|
|
2804
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "body", className: "text-primary", children: p.key.categoryName }),
|
|
2805
2805
|
/* @__PURE__ */ s.jsxs(Q, { variant: "caption", children: [
|
|
2806
|
-
|
|
2806
|
+
p.items.length,
|
|
2807
2807
|
" ",
|
|
2808
2808
|
i.amountFrom,
|
|
2809
2809
|
" ",
|
|
2810
|
-
|
|
2810
|
+
p.key.totalCount
|
|
2811
2811
|
] })
|
|
2812
2812
|
] }),
|
|
2813
|
-
(d =
|
|
2813
|
+
(d = p.items) == null ? void 0 : d.map((u, f) => /* @__PURE__ */ s.jsxs(
|
|
2814
2814
|
Je,
|
|
2815
2815
|
{
|
|
2816
|
-
to: c(
|
|
2816
|
+
to: c(u),
|
|
2817
2817
|
className: I("search-item d-flex gap-3 align-items-center justify-content-between", _t.item),
|
|
2818
2818
|
onClick: r,
|
|
2819
2819
|
children: [
|
|
2820
|
-
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-nowrap text-truncate", children:
|
|
2820
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-nowrap text-truncate", children: u.name }),
|
|
2821
2821
|
/* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(td, {}) })
|
|
2822
2822
|
]
|
|
2823
2823
|
},
|
|
2824
2824
|
f
|
|
2825
2825
|
))
|
|
2826
|
-
] },
|
|
2826
|
+
] }, p.key.category);
|
|
2827
2827
|
}) }) });
|
|
2828
2828
|
}, Nf = (e, t) => {
|
|
2829
2829
|
const r = ct(), [n, a] = F(!1), [o, i] = F([]), l = !e || !e.key, c = P(() => {
|
|
@@ -2831,8 +2831,8 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2831
2831
|
i([]);
|
|
2832
2832
|
return;
|
|
2833
2833
|
}
|
|
2834
|
-
a(!0), r.get(`/search/${t}?count=${l ? 5 : 20}${l ? "" : `&type=${e.key}`}`).then(({ data:
|
|
2835
|
-
i(
|
|
2834
|
+
a(!0), r.get(`/search/${t}?count=${l ? 5 : 20}${l ? "" : `&type=${e.key}`}`).then(({ data: p }) => {
|
|
2835
|
+
i(p), a(!1);
|
|
2836
2836
|
}).catch(() => {
|
|
2837
2837
|
a(!1);
|
|
2838
2838
|
});
|
|
@@ -2842,7 +2842,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2842
2842
|
}, [c]), { isLoading: n, searchItems: o };
|
|
2843
2843
|
}, Uw = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: n = "/", className: a }) => {
|
|
2844
2844
|
var x;
|
|
2845
|
-
const { texts: { appSearch: o } } = z(ce), [i, l] = F(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = M(() => e.find((D) => D.key === i) ?? null, [e, i]), [
|
|
2845
|
+
const { texts: { appSearch: o } } = z(ce), [i, l] = F(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = M(() => e.find((D) => D.key === i) ?? null, [e, i]), [p, d] = F(""), [u, f] = Ia(encodeURIComponent(p), 500), { isLoading: g, searchItems: v } = Nf(c, u), [b, h] = F(!1);
|
|
2846
2846
|
W(() => {
|
|
2847
2847
|
(v.length > 0 || g) && h(!0);
|
|
2848
2848
|
}, [v, g]);
|
|
@@ -2851,15 +2851,15 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2851
2851
|
var D;
|
|
2852
2852
|
d(""), r === n && ((D = m.current) == null || D.focus());
|
|
2853
2853
|
}, [r, n]), /* @__PURE__ */ s.jsx(Oe, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (D) => {
|
|
2854
|
-
D.preventDefault(), D.stopPropagation(), f.flush(), h(!1),
|
|
2854
|
+
D.preventDefault(), D.stopPropagation(), f.flush(), h(!1), u.length > 2 && t(`/search?query=${u}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
|
|
2855
2855
|
}, children: /* @__PURE__ */ s.jsxs(Jr, { className: I(Ot.inputGroup, a), children: [
|
|
2856
2856
|
/* @__PURE__ */ s.jsx(Jr.Text, { className: I("p-1 rounded", Ot.inputGroupText, Ot.left), children: /* @__PURE__ */ s.jsx(gf, { searchTypes: e, selectedType: c, setSelectedType: l }) }),
|
|
2857
|
-
/* @__PURE__ */ s.jsx(Oe.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: I("luminus-app-search-input", Ot.input), value:
|
|
2857
|
+
/* @__PURE__ */ s.jsx(Oe.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: I("luminus-app-search-input", Ot.input), value: p, onChange: (D) => {
|
|
2858
2858
|
var N;
|
|
2859
2859
|
return d(((N = D.target) == null ? void 0 : N.value) ?? "");
|
|
2860
2860
|
}, onFocus: () => v.length > 0 && h(!0) }),
|
|
2861
2861
|
/* @__PURE__ */ s.jsx(Jr.Text, { className: I("p-0 rounded", Ot.inputGroupText, Ot.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: I("text-primary", Ot.submitButton), children: /* @__PURE__ */ s.jsx(rd, {}) }) }),
|
|
2862
|
-
/* @__PURE__ */ s.jsx(Df, { query:
|
|
2862
|
+
/* @__PURE__ */ s.jsx(Df, { query: u, searchTypes: e, show: b, onCancel: () => h(!1), groups: v, isLoading: g })
|
|
2863
2863
|
] }) });
|
|
2864
2864
|
}, Sf = "_card_19733_1", Cf = "_header_19733_6", Ef = "_header-content_19733_13", jf = "_title_19733_19", If = "_collapse-icon_19733_22", Of = "_collapsed_19733_27", _f = "_content_19733_30", Pt = {
|
|
2865
2865
|
card: Sf,
|
|
@@ -2872,7 +2872,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2872
2872
|
collapsed: Of,
|
|
2873
2873
|
content: _f
|
|
2874
2874
|
}, sn = ({ title: e, headerContent: t, children: r, className: n, headerClassName: a, contentClassName: o, dontRenderIfNoChildren: i, ...l }) => {
|
|
2875
|
-
const c = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [
|
|
2875
|
+
const c = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [p, d] = F(c), u = l.collapsible ? l.controlled ? l.isOpen : p : !0;
|
|
2876
2876
|
W(() => {
|
|
2877
2877
|
d(c);
|
|
2878
2878
|
}, [c]);
|
|
@@ -2883,17 +2883,17 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2883
2883
|
/* @__PURE__ */ s.jsxs("div", { role: l.collapsible ? "button" : void 0, className: I("header", Pt.header, {
|
|
2884
2884
|
[a ?? ""]: a
|
|
2885
2885
|
}), onClick: () => {
|
|
2886
|
-
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : d(!
|
|
2886
|
+
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : d(!p));
|
|
2887
2887
|
}, children: [
|
|
2888
2888
|
/* @__PURE__ */ s.jsxs("div", { className: I("header-content", Pt.headerContent), children: [
|
|
2889
2889
|
/* @__PURE__ */ s.jsx(Q, { variant: "h6", className: I("text-primary", Pt.title), children: e }),
|
|
2890
2890
|
t ?? null
|
|
2891
2891
|
] }),
|
|
2892
2892
|
l.collapsible && /* @__PURE__ */ s.jsx(us, { className: I(Pt.collapseIcon, {
|
|
2893
|
-
[Pt.collapsed]:
|
|
2893
|
+
[Pt.collapsed]: u
|
|
2894
2894
|
}) })
|
|
2895
2895
|
] }),
|
|
2896
|
-
/* @__PURE__ */ s.jsx(ys, { in:
|
|
2896
|
+
/* @__PURE__ */ s.jsx(ys, { in: u, children: /* @__PURE__ */ s.jsx("div", { className: I("card-content border-top border-primary", Pt.content, {
|
|
2897
2897
|
[o ?? ""]: o
|
|
2898
2898
|
}), children: r }) })
|
|
2899
2899
|
] });
|
|
@@ -3021,7 +3021,7 @@ function Xs(e, t, r) {
|
|
|
3021
3021
|
if (typeof e != "function")
|
|
3022
3022
|
throw new Error(process.env.NODE_ENV === "production" ? $e(2) : "Expected the root reducer to be a function. Instead, received: '" + kt(e) + "'");
|
|
3023
3023
|
var a = e, o = t, i = [], l = i, c = !1;
|
|
3024
|
-
function
|
|
3024
|
+
function p() {
|
|
3025
3025
|
l === i && (l = i.slice());
|
|
3026
3026
|
}
|
|
3027
3027
|
function d() {
|
|
@@ -3029,17 +3029,17 @@ function Xs(e, t, r) {
|
|
|
3029
3029
|
throw new Error(process.env.NODE_ENV === "production" ? $e(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
3030
3030
|
return o;
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3032
|
+
function u(b) {
|
|
3033
3033
|
if (typeof b != "function")
|
|
3034
3034
|
throw new Error(process.env.NODE_ENV === "production" ? $e(4) : "Expected the listener to be a function. Instead, received: '" + kt(b) + "'");
|
|
3035
3035
|
if (c)
|
|
3036
3036
|
throw new Error(process.env.NODE_ENV === "production" ? $e(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3037
3037
|
var h = !0;
|
|
3038
|
-
return
|
|
3038
|
+
return p(), l.push(b), function() {
|
|
3039
3039
|
if (h) {
|
|
3040
3040
|
if (c)
|
|
3041
3041
|
throw new Error(process.env.NODE_ENV === "production" ? $e(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3042
|
-
h = !1,
|
|
3042
|
+
h = !1, p();
|
|
3043
3043
|
var x = l.indexOf(b);
|
|
3044
3044
|
l.splice(x, 1), i = null;
|
|
3045
3045
|
}
|
|
@@ -3071,7 +3071,7 @@ function Xs(e, t, r) {
|
|
|
3071
3071
|
});
|
|
3072
3072
|
}
|
|
3073
3073
|
function v() {
|
|
3074
|
-
var b, h =
|
|
3074
|
+
var b, h = u;
|
|
3075
3075
|
return b = {
|
|
3076
3076
|
/**
|
|
3077
3077
|
* The minimal observable subscription method.
|
|
@@ -3101,7 +3101,7 @@ function Xs(e, t, r) {
|
|
|
3101
3101
|
type: Qo.INIT
|
|
3102
3102
|
}), n = {
|
|
3103
3103
|
dispatch: f,
|
|
3104
|
-
subscribe:
|
|
3104
|
+
subscribe: u,
|
|
3105
3105
|
getState: d,
|
|
3106
3106
|
replaceReducer: g
|
|
3107
3107
|
}, n[Xo] = v, n;
|
|
@@ -3203,8 +3203,8 @@ var ei = {
|
|
|
3203
3203
|
};
|
|
3204
3204
|
function Zs(e, t) {
|
|
3205
3205
|
var r, n = ei;
|
|
3206
|
-
function a(
|
|
3207
|
-
return c(), n.subscribe(
|
|
3206
|
+
function a(u) {
|
|
3207
|
+
return c(), n.subscribe(u);
|
|
3208
3208
|
}
|
|
3209
3209
|
function o() {
|
|
3210
3210
|
n.notify();
|
|
@@ -3218,7 +3218,7 @@ function Zs(e, t) {
|
|
|
3218
3218
|
function c() {
|
|
3219
3219
|
r || (r = t ? t.addNestedSub(i) : e.subscribe(i), n = Wf());
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function p() {
|
|
3222
3222
|
r && (r(), r = void 0, n.clear(), n = ei);
|
|
3223
3223
|
}
|
|
3224
3224
|
var d = {
|
|
@@ -3227,7 +3227,7 @@ function Zs(e, t) {
|
|
|
3227
3227
|
handleChangeWrapper: i,
|
|
3228
3228
|
isSubscribed: l,
|
|
3229
3229
|
trySubscribe: c,
|
|
3230
|
-
tryUnsubscribe:
|
|
3230
|
+
tryUnsubscribe: p,
|
|
3231
3231
|
getListeners: function() {
|
|
3232
3232
|
return n;
|
|
3233
3233
|
}
|
|
@@ -3316,9 +3316,9 @@ function nl(e, t, r) {
|
|
|
3316
3316
|
for (var o = ti(e), i = ti(t), l = 0; l < a.length; ++l) {
|
|
3317
3317
|
var c = a[l];
|
|
3318
3318
|
if (!Hf[c] && !(r && r[c]) && !(i && i[c]) && !(o && o[c])) {
|
|
3319
|
-
var
|
|
3319
|
+
var p = Kf(t, c);
|
|
3320
3320
|
try {
|
|
3321
|
-
qf(e, c,
|
|
3321
|
+
qf(e, c, p);
|
|
3322
3322
|
} catch {
|
|
3323
3323
|
}
|
|
3324
3324
|
}
|
|
@@ -3341,10 +3341,10 @@ var oi;
|
|
|
3341
3341
|
function Jf() {
|
|
3342
3342
|
if (oi) return be;
|
|
3343
3343
|
oi = 1;
|
|
3344
|
-
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113,
|
|
3344
|
+
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, p = 60120, d = 60115, u = 60116, f = 60121, g = 60122, v = 60117, b = 60129, h = 60131;
|
|
3345
3345
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
3346
3346
|
var m = Symbol.for;
|
|
3347
|
-
e = m("react.element"), t = m("react.portal"), r = m("react.fragment"), n = m("react.strict_mode"), a = m("react.profiler"), o = m("react.provider"), i = m("react.context"), l = m("react.forward_ref"), c = m("react.suspense"),
|
|
3347
|
+
e = m("react.element"), t = m("react.portal"), r = m("react.fragment"), n = m("react.strict_mode"), a = m("react.profiler"), o = m("react.provider"), i = m("react.context"), l = m("react.forward_ref"), c = m("react.suspense"), p = m("react.suspense_list"), d = m("react.memo"), u = m("react.lazy"), f = m("react.block"), g = m("react.server.block"), v = m("react.fundamental"), b = m("react.debug_trace_mode"), h = m("react.legacy_hidden");
|
|
3348
3348
|
}
|
|
3349
3349
|
function x(C) {
|
|
3350
3350
|
if (typeof C == "object" && C !== null) {
|
|
@@ -3356,13 +3356,13 @@ function Jf() {
|
|
|
3356
3356
|
case a:
|
|
3357
3357
|
case n:
|
|
3358
3358
|
case c:
|
|
3359
|
-
case
|
|
3359
|
+
case p:
|
|
3360
3360
|
return C;
|
|
3361
3361
|
default:
|
|
3362
3362
|
switch (C = C && C.$$typeof, C) {
|
|
3363
3363
|
case i:
|
|
3364
3364
|
case l:
|
|
3365
|
-
case
|
|
3365
|
+
case u:
|
|
3366
3366
|
case d:
|
|
3367
3367
|
case o:
|
|
3368
3368
|
return C;
|
|
@@ -3375,7 +3375,7 @@ function Jf() {
|
|
|
3375
3375
|
}
|
|
3376
3376
|
}
|
|
3377
3377
|
}
|
|
3378
|
-
var D = o, N = e, y = l, S = r, j =
|
|
3378
|
+
var D = o, N = e, y = l, S = r, j = u, O = d, E = t, A = a, k = n, L = c;
|
|
3379
3379
|
return be.ContextConsumer = i, be.ContextProvider = D, be.Element = N, be.ForwardRef = y, be.Fragment = S, be.Lazy = j, be.Memo = O, be.Portal = E, be.Profiler = A, be.StrictMode = k, be.Suspense = L, be.isAsyncMode = function() {
|
|
3380
3380
|
return !1;
|
|
3381
3381
|
}, be.isConcurrentMode = function() {
|
|
@@ -3391,7 +3391,7 @@ function Jf() {
|
|
|
3391
3391
|
}, be.isFragment = function(C) {
|
|
3392
3392
|
return x(C) === r;
|
|
3393
3393
|
}, be.isLazy = function(C) {
|
|
3394
|
-
return x(C) ===
|
|
3394
|
+
return x(C) === u;
|
|
3395
3395
|
}, be.isMemo = function(C) {
|
|
3396
3396
|
return x(C) === d;
|
|
3397
3397
|
}, be.isPortal = function(C) {
|
|
@@ -3403,7 +3403,7 @@ function Jf() {
|
|
|
3403
3403
|
}, be.isSuspense = function(C) {
|
|
3404
3404
|
return x(C) === c;
|
|
3405
3405
|
}, be.isValidElementType = function(C) {
|
|
3406
|
-
return typeof C == "string" || typeof C == "function" || C === r || C === a || C === b || C === n || C === c || C ===
|
|
3406
|
+
return typeof C == "string" || typeof C == "function" || C === r || C === a || C === b || C === n || C === c || C === p || C === h || typeof C == "object" && C !== null && (C.$$typeof === u || C.$$typeof === d || C.$$typeof === o || C.$$typeof === i || C.$$typeof === l || C.$$typeof === v || C.$$typeof === f || C[0] === g);
|
|
3407
3407
|
}, be.typeOf = x, be;
|
|
3408
3408
|
}
|
|
3409
3409
|
var xe = {};
|
|
@@ -3418,14 +3418,14 @@ var xe = {};
|
|
|
3418
3418
|
var ii;
|
|
3419
3419
|
function Zf() {
|
|
3420
3420
|
return ii || (ii = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3421
|
-
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113,
|
|
3421
|
+
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, p = 60120, d = 60115, u = 60116, f = 60121, g = 60122, v = 60117, b = 60129, h = 60131;
|
|
3422
3422
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
3423
3423
|
var m = Symbol.for;
|
|
3424
|
-
e = m("react.element"), t = m("react.portal"), r = m("react.fragment"), n = m("react.strict_mode"), a = m("react.profiler"), o = m("react.provider"), i = m("react.context"), l = m("react.forward_ref"), c = m("react.suspense"),
|
|
3424
|
+
e = m("react.element"), t = m("react.portal"), r = m("react.fragment"), n = m("react.strict_mode"), a = m("react.profiler"), o = m("react.provider"), i = m("react.context"), l = m("react.forward_ref"), c = m("react.suspense"), p = m("react.suspense_list"), d = m("react.memo"), u = m("react.lazy"), f = m("react.block"), g = m("react.server.block"), v = m("react.fundamental"), m("react.scope"), m("react.opaque.id"), b = m("react.debug_trace_mode"), m("react.offscreen"), h = m("react.legacy_hidden");
|
|
3425
3425
|
}
|
|
3426
3426
|
var x = !1;
|
|
3427
3427
|
function D(_) {
|
|
3428
|
-
return !!(typeof _ == "string" || typeof _ == "function" || _ === r || _ === a || _ === b || _ === n || _ === c || _ ===
|
|
3428
|
+
return !!(typeof _ == "string" || typeof _ == "function" || _ === r || _ === a || _ === b || _ === n || _ === c || _ === p || _ === h || x || typeof _ == "object" && _ !== null && (_.$$typeof === u || _.$$typeof === d || _.$$typeof === o || _.$$typeof === i || _.$$typeof === l || _.$$typeof === v || _.$$typeof === f || _[0] === g));
|
|
3429
3429
|
}
|
|
3430
3430
|
function N(_) {
|
|
3431
3431
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -3438,14 +3438,14 @@ function Zf() {
|
|
|
3438
3438
|
case a:
|
|
3439
3439
|
case n:
|
|
3440
3440
|
case c:
|
|
3441
|
-
case
|
|
3441
|
+
case p:
|
|
3442
3442
|
return Ce;
|
|
3443
3443
|
default:
|
|
3444
3444
|
var Le = Ce && Ce.$$typeof;
|
|
3445
3445
|
switch (Le) {
|
|
3446
3446
|
case i:
|
|
3447
3447
|
case l:
|
|
3448
|
-
case
|
|
3448
|
+
case u:
|
|
3449
3449
|
case d:
|
|
3450
3450
|
case o:
|
|
3451
3451
|
return Le;
|
|
@@ -3458,7 +3458,7 @@ function Zf() {
|
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
3460
|
}
|
|
3461
|
-
var y = i, S = o, j = e, O = l, E = r, A =
|
|
3461
|
+
var y = i, S = o, j = e, O = l, E = r, A = u, k = d, L = t, C = a, Z = n, Y = c, B = !1, R = !1;
|
|
3462
3462
|
function $(_) {
|
|
3463
3463
|
return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
3464
3464
|
}
|
|
@@ -3481,7 +3481,7 @@ function Zf() {
|
|
|
3481
3481
|
return N(_) === r;
|
|
3482
3482
|
}
|
|
3483
3483
|
function H(_) {
|
|
3484
|
-
return N(_) ===
|
|
3484
|
+
return N(_) === u;
|
|
3485
3485
|
}
|
|
3486
3486
|
function U(_) {
|
|
3487
3487
|
return N(_) === d;
|
|
@@ -3521,17 +3521,17 @@ function li(e, t, r) {
|
|
|
3521
3521
|
function ig(e, t, r, n, a, o, i) {
|
|
3522
3522
|
e.current = n, t.current = a, r.current = !1, o.current && (o.current = null, i());
|
|
3523
3523
|
}
|
|
3524
|
-
function sg(e, t, r, n, a, o, i, l, c,
|
|
3524
|
+
function sg(e, t, r, n, a, o, i, l, c, p) {
|
|
3525
3525
|
if (e) {
|
|
3526
|
-
var d = !1,
|
|
3526
|
+
var d = !1, u = null, f = function() {
|
|
3527
3527
|
if (!d) {
|
|
3528
3528
|
var b = t.getState(), h, m;
|
|
3529
3529
|
try {
|
|
3530
3530
|
h = n(b, a.current);
|
|
3531
3531
|
} catch (x) {
|
|
3532
|
-
m = x,
|
|
3532
|
+
m = x, u = x;
|
|
3533
3533
|
}
|
|
3534
|
-
m || (
|
|
3534
|
+
m || (u = null), h === o.current ? i.current || c() : (o.current = h, l.current = h, i.current = !0, p({
|
|
3535
3535
|
type: "STORE_UPDATED",
|
|
3536
3536
|
payload: {
|
|
3537
3537
|
error: m
|
|
@@ -3541,8 +3541,8 @@ function sg(e, t, r, n, a, o, i, l, c, u) {
|
|
|
3541
3541
|
};
|
|
3542
3542
|
r.onStateChange = f, r.trySubscribe(), f();
|
|
3543
3543
|
var g = function() {
|
|
3544
|
-
if (d = !0, r.tryUnsubscribe(), r.onStateChange = null,
|
|
3545
|
-
throw
|
|
3544
|
+
if (d = !0, r.tryUnsubscribe(), r.onStateChange = null, u)
|
|
3545
|
+
throw u;
|
|
3546
3546
|
};
|
|
3547
3547
|
return g;
|
|
3548
3548
|
}
|
|
@@ -3554,7 +3554,7 @@ function cg(e, t) {
|
|
|
3554
3554
|
t === void 0 && (t = {});
|
|
3555
3555
|
var r = t, n = r.getDisplayName, a = n === void 0 ? function(S) {
|
|
3556
3556
|
return "ConnectAdvanced(" + S + ")";
|
|
3557
|
-
} : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l,
|
|
3557
|
+
} : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l, p = r.shouldHandleStateChanges, d = p === void 0 ? !0 : p, u = r.storeKey, f = u === void 0 ? "store" : u, g = r.withRef, v = g === void 0 ? !1 : g, b = r.forwardRef, h = b === void 0 ? !1 : b, m = r.context, x = m === void 0 ? La : m, D = rn(r, eg);
|
|
3558
3558
|
if (process.env.NODE_ENV !== "production") {
|
|
3559
3559
|
if (c !== void 0)
|
|
3560
3560
|
throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
|
|
@@ -3603,13 +3603,13 @@ function cg(e, t) {
|
|
|
3603
3603
|
return ie ? ae : te({}, ae, {
|
|
3604
3604
|
subscription: De
|
|
3605
3605
|
});
|
|
3606
|
-
}, [ie, ae, De]), fe = Ad(og, rg, lg), Ce = fe[0], Le = Ce[0],
|
|
3606
|
+
}, [ie, ae, De]), fe = Ad(og, rg, lg), Ce = fe[0], Le = Ce[0], qe = fe[1];
|
|
3607
3607
|
if (Le && Le.error)
|
|
3608
3608
|
throw Le.error;
|
|
3609
3609
|
var vt = ee(), G = ee(K), T = ee(), J = ee(!1), ue = C(function() {
|
|
3610
3610
|
return T.current && K === G.current ? T.current : pe(U.getState(), K);
|
|
3611
3611
|
}, [U, Le, K]);
|
|
3612
|
-
li(ig, [G, vt, J, K, ue, T, Ie]), li(sg, [d, U, De, pe, G, vt, J, T, Ie,
|
|
3612
|
+
li(ig, [G, vt, J, K, ue, T, Ie]), li(sg, [d, U, De, pe, G, vt, J, T, Ie, qe], [U, De, pe]);
|
|
3613
3613
|
var Ee = M(function() {
|
|
3614
3614
|
return /* @__PURE__ */ se.createElement(j, te({}, ue, {
|
|
3615
3615
|
ref: q
|
|
@@ -3690,13 +3690,13 @@ function di(e) {
|
|
|
3690
3690
|
}
|
|
3691
3691
|
function il(e, t) {
|
|
3692
3692
|
return function(n, a) {
|
|
3693
|
-
var o = a.displayName, i = function(c,
|
|
3694
|
-
return i.dependsOnOwnProps ? i.mapToProps(c,
|
|
3693
|
+
var o = a.displayName, i = function(c, p) {
|
|
3694
|
+
return i.dependsOnOwnProps ? i.mapToProps(c, p) : i.mapToProps(c);
|
|
3695
3695
|
};
|
|
3696
|
-
return i.dependsOnOwnProps = !0, i.mapToProps = function(c,
|
|
3696
|
+
return i.dependsOnOwnProps = !0, i.mapToProps = function(c, p) {
|
|
3697
3697
|
i.mapToProps = e, i.dependsOnOwnProps = di(e);
|
|
3698
|
-
var d = i(c,
|
|
3699
|
-
return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps = di(d), d = i(c,
|
|
3698
|
+
var d = i(c, p);
|
|
3699
|
+
return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps = di(d), d = i(c, p)), process.env.NODE_ENV !== "production" && ol(d, o, t), d;
|
|
3700
3700
|
}, i;
|
|
3701
3701
|
};
|
|
3702
3702
|
}
|
|
@@ -3731,8 +3731,8 @@ function xg(e, t, r) {
|
|
|
3731
3731
|
function yg(e) {
|
|
3732
3732
|
return function(r, n) {
|
|
3733
3733
|
var a = n.displayName, o = n.pure, i = n.areMergedPropsEqual, l = !1, c;
|
|
3734
|
-
return function(d,
|
|
3735
|
-
var g = e(d,
|
|
3734
|
+
return function(d, u, f) {
|
|
3735
|
+
var g = e(d, u, f);
|
|
3736
3736
|
return l ? (!o || !i(g, c)) && (c = g) : (l = !0, c = g, process.env.NODE_ENV !== "production" && ol(c, a, "mergeProps")), c;
|
|
3737
3737
|
};
|
|
3738
3738
|
};
|
|
@@ -3761,23 +3761,23 @@ function Eg(e, t, r, n) {
|
|
|
3761
3761
|
};
|
|
3762
3762
|
}
|
|
3763
3763
|
function jg(e, t, r, n, a) {
|
|
3764
|
-
var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1,
|
|
3764
|
+
var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1, p, d, u, f, g;
|
|
3765
3765
|
function v(D, N) {
|
|
3766
|
-
return
|
|
3766
|
+
return p = D, d = N, u = e(p, d), f = t(n, d), g = r(u, f, d), c = !0, g;
|
|
3767
3767
|
}
|
|
3768
3768
|
function b() {
|
|
3769
|
-
return
|
|
3769
|
+
return u = e(p, d), t.dependsOnOwnProps && (f = t(n, d)), g = r(u, f, d), g;
|
|
3770
3770
|
}
|
|
3771
3771
|
function h() {
|
|
3772
|
-
return e.dependsOnOwnProps && (
|
|
3772
|
+
return e.dependsOnOwnProps && (u = e(p, d)), t.dependsOnOwnProps && (f = t(n, d)), g = r(u, f, d), g;
|
|
3773
3773
|
}
|
|
3774
3774
|
function m() {
|
|
3775
|
-
var D = e(
|
|
3776
|
-
return
|
|
3775
|
+
var D = e(p, d), N = !l(D, u);
|
|
3776
|
+
return u = D, N && (g = r(u, f, d)), g;
|
|
3777
3777
|
}
|
|
3778
3778
|
function x(D, N) {
|
|
3779
|
-
var y = !i(N, d), S = !o(D,
|
|
3780
|
-
return
|
|
3779
|
+
var y = !i(N, d), S = !o(D, p, N, d);
|
|
3780
|
+
return p = D, d = N, y && S ? b() : y ? h() : S ? m() : g;
|
|
3781
3781
|
}
|
|
3782
3782
|
return function(N, y) {
|
|
3783
3783
|
return c ? x(N, y) : v(N, y);
|
|
@@ -3786,8 +3786,8 @@ function jg(e, t, r, n, a) {
|
|
|
3786
3786
|
function Ig(e, t) {
|
|
3787
3787
|
var r = t.initMapStateToProps, n = t.initMapDispatchToProps, a = t.initMergeProps, o = rn(t, Cg), i = r(e, o), l = n(e, o), c = a(e, o);
|
|
3788
3788
|
process.env.NODE_ENV !== "production" && Sg(i, l, c, o.displayName);
|
|
3789
|
-
var
|
|
3790
|
-
return
|
|
3789
|
+
var p = o.pure ? jg : Eg;
|
|
3790
|
+
return p(i, l, c, e, o);
|
|
3791
3791
|
}
|
|
3792
3792
|
var Og = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
|
|
3793
3793
|
function Vn(e, t, r) {
|
|
@@ -3803,11 +3803,11 @@ function _g(e, t) {
|
|
|
3803
3803
|
return e === t;
|
|
3804
3804
|
}
|
|
3805
3805
|
function Pg(e) {
|
|
3806
|
-
var t = {}, r = t.connectHOC, n = r === void 0 ? cg : r, a = t.mapStateToPropsFactories, o = a === void 0 ? bg : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? vg : i, c = t.mergePropsFactories,
|
|
3806
|
+
var t = {}, r = t.connectHOC, n = r === void 0 ? cg : r, a = t.mapStateToPropsFactories, o = a === void 0 ? bg : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? vg : i, c = t.mergePropsFactories, p = c === void 0 ? Ng : c, d = t.selectorFactory, u = d === void 0 ? Ig : d;
|
|
3807
3807
|
return function(g, v, b, h) {
|
|
3808
3808
|
h === void 0 && (h = {});
|
|
3809
|
-
var m = h, x = m.pure, D = x === void 0 ? !0 : x, N = m.areStatesEqual, y = N === void 0 ? _g : N, S = m.areOwnPropsEqual, j = S === void 0 ? Ln : S, O = m.areStatePropsEqual, E = O === void 0 ? Ln : O, A = m.areMergedPropsEqual, k = A === void 0 ? Ln : A, L = rn(m, Og), C = Vn(g, o, "mapStateToProps"), Z = Vn(v, l, "mapDispatchToProps"), Y = Vn(b,
|
|
3810
|
-
return n(
|
|
3809
|
+
var m = h, x = m.pure, D = x === void 0 ? !0 : x, N = m.areStatesEqual, y = N === void 0 ? _g : N, S = m.areOwnPropsEqual, j = S === void 0 ? Ln : S, O = m.areStatePropsEqual, E = O === void 0 ? Ln : O, A = m.areMergedPropsEqual, k = A === void 0 ? Ln : A, L = rn(m, Og), C = Vn(g, o, "mapStateToProps"), Z = Vn(v, l, "mapDispatchToProps"), Y = Vn(b, p, "mergeProps");
|
|
3810
|
+
return n(u, te({
|
|
3811
3811
|
// used in error messages
|
|
3812
3812
|
methodName: "connect",
|
|
3813
3813
|
// used to compute Connect's displayName from the wrapped component's displayName.
|
|
@@ -3907,17 +3907,17 @@ var nt = function(t) {
|
|
|
3907
3907
|
bottom: 0,
|
|
3908
3908
|
left: 0
|
|
3909
3909
|
}, Wa = function(t) {
|
|
3910
|
-
var r = t.borderBox, n = t.margin, a = n === void 0 ? Gn : n, o = t.border, i = o === void 0 ? Gn : o, l = t.padding, c = l === void 0 ? Gn : l,
|
|
3910
|
+
var r = t.borderBox, n = t.margin, a = n === void 0 ? Gn : n, o = t.border, i = o === void 0 ? Gn : o, l = t.padding, c = l === void 0 ? Gn : l, p = nt(Ga(r, a)), d = nt(pi(r, i)), u = nt(pi(d, c));
|
|
3911
3911
|
return {
|
|
3912
|
-
marginBox:
|
|
3912
|
+
marginBox: p,
|
|
3913
3913
|
borderBox: nt(r),
|
|
3914
3914
|
paddingBox: d,
|
|
3915
|
-
contentBox:
|
|
3915
|
+
contentBox: u,
|
|
3916
3916
|
margin: a,
|
|
3917
3917
|
border: i,
|
|
3918
3918
|
padding: c
|
|
3919
3919
|
};
|
|
3920
|
-
},
|
|
3920
|
+
}, Ke = function(t) {
|
|
3921
3921
|
var r = t.slice(0, -2), n = t.slice(-2);
|
|
3922
3922
|
if (n !== "px")
|
|
3923
3923
|
return 0;
|
|
@@ -3940,20 +3940,20 @@ var nt = function(t) {
|
|
|
3940
3940
|
return r === void 0 && (r = Bg()), ln(t, r);
|
|
3941
3941
|
}, cl = function(t, r) {
|
|
3942
3942
|
var n = {
|
|
3943
|
-
top:
|
|
3944
|
-
right:
|
|
3945
|
-
bottom:
|
|
3946
|
-
left:
|
|
3943
|
+
top: Ke(r.marginTop),
|
|
3944
|
+
right: Ke(r.marginRight),
|
|
3945
|
+
bottom: Ke(r.marginBottom),
|
|
3946
|
+
left: Ke(r.marginLeft)
|
|
3947
3947
|
}, a = {
|
|
3948
|
-
top:
|
|
3949
|
-
right:
|
|
3950
|
-
bottom:
|
|
3951
|
-
left:
|
|
3948
|
+
top: Ke(r.paddingTop),
|
|
3949
|
+
right: Ke(r.paddingRight),
|
|
3950
|
+
bottom: Ke(r.paddingBottom),
|
|
3951
|
+
left: Ke(r.paddingLeft)
|
|
3952
3952
|
}, o = {
|
|
3953
|
-
top:
|
|
3954
|
-
right:
|
|
3955
|
-
bottom:
|
|
3956
|
-
left:
|
|
3953
|
+
top: Ke(r.borderTopWidth),
|
|
3954
|
+
right: Ke(r.borderRightWidth),
|
|
3955
|
+
bottom: Ke(r.borderBottomWidth),
|
|
3956
|
+
left: Ke(r.borderLeftWidth)
|
|
3957
3957
|
};
|
|
3958
3958
|
return Wa({
|
|
3959
3959
|
borderBox: t,
|
|
@@ -4022,7 +4022,7 @@ function Dt() {
|
|
|
4022
4022
|
function Hg(e, t) {
|
|
4023
4023
|
return te({}, e, {}, t);
|
|
4024
4024
|
}
|
|
4025
|
-
function
|
|
4025
|
+
function Xe(e, t, r) {
|
|
4026
4026
|
var n = t.map(function(a) {
|
|
4027
4027
|
var o = Hg(r, a.options);
|
|
4028
4028
|
return e.addEventListener(a.eventName, a.fn, o), function() {
|
|
@@ -4056,8 +4056,8 @@ var qg = function(e) {
|
|
|
4056
4056
|
An error was caught by our window 'error' event listener while a drag was occurring.
|
|
4057
4057
|
The active drag has been aborted.
|
|
4058
4058
|
`));
|
|
4059
|
-
var
|
|
4060
|
-
|
|
4059
|
+
var p = l.error;
|
|
4060
|
+
p instanceof Er && (l.preventDefault(), process.env.NODE_ENV !== "production" && ca(p.message));
|
|
4061
4061
|
}, n.getCallbacks = function() {
|
|
4062
4062
|
if (!n.callbacks)
|
|
4063
4063
|
throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");
|
|
@@ -4068,7 +4068,7 @@ var qg = function(e) {
|
|
|
4068
4068
|
}
|
|
4069
4069
|
var r = t.prototype;
|
|
4070
4070
|
return r.componentDidMount = function() {
|
|
4071
|
-
this.unbind =
|
|
4071
|
+
this.unbind = Xe(window, [{
|
|
4072
4072
|
eventName: "error",
|
|
4073
4073
|
fn: this.onWindowError
|
|
4074
4074
|
}]);
|
|
@@ -4227,7 +4227,7 @@ var qg = function(e) {
|
|
|
4227
4227
|
return t;
|
|
4228
4228
|
}, rv = function(t, r) {
|
|
4229
4229
|
return r && r.shouldClipSubject ? Jg(r.pageMarginBox, t) : nt(t);
|
|
4230
|
-
},
|
|
4230
|
+
}, Xt = function(e) {
|
|
4231
4231
|
var t = e.page, r = e.withPlaceholder, n = e.axis, a = e.frame, o = ev(t.marginBox, a), i = tv(o, n, r), l = rv(i, a);
|
|
4232
4232
|
return {
|
|
4233
4233
|
page: t,
|
|
@@ -4246,7 +4246,7 @@ var qg = function(e) {
|
|
|
4246
4246
|
},
|
|
4247
4247
|
max: r.scroll.max
|
|
4248
4248
|
}
|
|
4249
|
-
}), i =
|
|
4249
|
+
}), i = Xt({
|
|
4250
4250
|
page: e.subject.page,
|
|
4251
4251
|
withPlaceholder: e.subject.withPlaceholder,
|
|
4252
4252
|
axis: e.axis,
|
|
@@ -4295,7 +4295,7 @@ var ml = Te(function(e) {
|
|
|
4295
4295
|
return un(e);
|
|
4296
4296
|
}), av = Te(function(e) {
|
|
4297
4297
|
return un(e);
|
|
4298
|
-
}),
|
|
4298
|
+
}), Gt = Te(function(e, t) {
|
|
4299
4299
|
var r = av(t).filter(function(n) {
|
|
4300
4300
|
return e === n.descriptor.droppableId;
|
|
4301
4301
|
}).sort(function(n, a) {
|
|
@@ -4332,18 +4332,18 @@ var Dn = Te(function(e, t) {
|
|
|
4332
4332
|
at: h
|
|
4333
4333
|
});
|
|
4334
4334
|
}
|
|
4335
|
-
var c = o.displaced.all,
|
|
4335
|
+
var c = o.displaced.all, p = c.length ? c[0] : null;
|
|
4336
4336
|
if (t)
|
|
4337
|
-
return
|
|
4337
|
+
return p ? l(p) : null;
|
|
4338
4338
|
var d = Dn(r, a);
|
|
4339
|
-
if (!
|
|
4339
|
+
if (!p) {
|
|
4340
4340
|
if (!d.length)
|
|
4341
4341
|
return null;
|
|
4342
|
-
var
|
|
4343
|
-
return l(
|
|
4342
|
+
var u = d[d.length - 1];
|
|
4343
|
+
return l(u.descriptor.id);
|
|
4344
4344
|
}
|
|
4345
4345
|
var f = Ha(d, function(b) {
|
|
4346
|
-
return b.descriptor.id ===
|
|
4346
|
+
return b.descriptor.id === p;
|
|
4347
4347
|
});
|
|
4348
4348
|
f === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Could not find displaced item in set") : w());
|
|
4349
4349
|
var g = f - 1;
|
|
@@ -4364,12 +4364,12 @@ var Dn = Te(function(e, t) {
|
|
|
4364
4364
|
displaced: Ir,
|
|
4365
4365
|
displacedBy: bl,
|
|
4366
4366
|
at: null
|
|
4367
|
-
},
|
|
4367
|
+
}, Qe = function(e, t) {
|
|
4368
4368
|
return function(r) {
|
|
4369
4369
|
return e <= r && r <= t;
|
|
4370
4370
|
};
|
|
4371
4371
|
}, xl = function(e) {
|
|
4372
|
-
var t =
|
|
4372
|
+
var t = Qe(e.top, e.bottom), r = Qe(e.left, e.right);
|
|
4373
4373
|
return function(n) {
|
|
4374
4374
|
var a = t(n.top) && t(n.bottom) && r(n.left) && r(n.right);
|
|
4375
4375
|
if (a)
|
|
@@ -4377,14 +4377,14 @@ var Dn = Te(function(e, t) {
|
|
|
4377
4377
|
var o = t(n.top) || t(n.bottom), i = r(n.left) || r(n.right), l = o && i;
|
|
4378
4378
|
if (l)
|
|
4379
4379
|
return !0;
|
|
4380
|
-
var c = n.top < e.top && n.bottom > e.bottom,
|
|
4380
|
+
var c = n.top < e.top && n.bottom > e.bottom, p = n.left < e.left && n.right > e.right, d = c && p;
|
|
4381
4381
|
if (d)
|
|
4382
4382
|
return !0;
|
|
4383
|
-
var
|
|
4384
|
-
return
|
|
4383
|
+
var u = c && i || p && o;
|
|
4384
|
+
return u;
|
|
4385
4385
|
};
|
|
4386
4386
|
}, sv = function(e) {
|
|
4387
|
-
var t =
|
|
4387
|
+
var t = Qe(e.top, e.bottom), r = Qe(e.left, e.right);
|
|
4388
4388
|
return function(n) {
|
|
4389
4389
|
var a = t(n.top) && t(n.bottom) && r(n.left) && r(n.right);
|
|
4390
4390
|
return a;
|
|
@@ -4411,7 +4411,7 @@ var Dn = Te(function(e, t) {
|
|
|
4411
4411
|
crossAxisSize: "height"
|
|
4412
4412
|
}, lv = function(e) {
|
|
4413
4413
|
return function(t) {
|
|
4414
|
-
var r =
|
|
4414
|
+
var r = Qe(t.top, t.bottom), n = Qe(t.left, t.right);
|
|
4415
4415
|
return function(a) {
|
|
4416
4416
|
return e === qa ? r(a.top) && r(a.bottom) : n(a.left) && n(a.right);
|
|
4417
4417
|
};
|
|
@@ -4460,9 +4460,9 @@ function vv(e, t) {
|
|
|
4460
4460
|
}
|
|
4461
4461
|
function Or(e) {
|
|
4462
4462
|
var t = e.afterDragging, r = e.destination, n = e.displacedBy, a = e.viewport, o = e.forceShouldAnimate, i = e.last;
|
|
4463
|
-
return t.reduce(function(c,
|
|
4464
|
-
var d = vv(
|
|
4465
|
-
c.all.push(
|
|
4463
|
+
return t.reduce(function(c, p) {
|
|
4464
|
+
var d = vv(p, n), u = p.descriptor.id;
|
|
4465
|
+
c.all.push(u);
|
|
4466
4466
|
var f = pv({
|
|
4467
4467
|
target: d,
|
|
4468
4468
|
destination: r,
|
|
@@ -4470,12 +4470,12 @@ function Or(e) {
|
|
|
4470
4470
|
withDroppableDisplacement: !0
|
|
4471
4471
|
});
|
|
4472
4472
|
if (!f)
|
|
4473
|
-
return c.invisible[
|
|
4474
|
-
var g = gv(
|
|
4475
|
-
draggableId:
|
|
4473
|
+
return c.invisible[p.descriptor.id] = !0, c;
|
|
4474
|
+
var g = gv(u, i, o), v = {
|
|
4475
|
+
draggableId: u,
|
|
4476
4476
|
shouldAnimate: g
|
|
4477
4477
|
};
|
|
4478
|
-
return c.visible[
|
|
4478
|
+
return c.visible[u] = v, c;
|
|
4479
4479
|
}, {
|
|
4480
4480
|
all: [],
|
|
4481
4481
|
visible: {},
|
|
@@ -4505,11 +4505,11 @@ function xi(e) {
|
|
|
4505
4505
|
};
|
|
4506
4506
|
}
|
|
4507
4507
|
function pn(e) {
|
|
4508
|
-
var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate,
|
|
4508
|
+
var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate, p = ar(t, n);
|
|
4509
4509
|
if (l == null)
|
|
4510
4510
|
return xi({
|
|
4511
4511
|
insideDestination: r,
|
|
4512
|
-
inHomeList:
|
|
4512
|
+
inHomeList: p,
|
|
4513
4513
|
displacedBy: o,
|
|
4514
4514
|
destination: n
|
|
4515
4515
|
});
|
|
@@ -4519,11 +4519,11 @@ function pn(e) {
|
|
|
4519
4519
|
if (!d)
|
|
4520
4520
|
return xi({
|
|
4521
4521
|
insideDestination: r,
|
|
4522
|
-
inHomeList:
|
|
4522
|
+
inHomeList: p,
|
|
4523
4523
|
displacedBy: o,
|
|
4524
4524
|
destination: n
|
|
4525
4525
|
});
|
|
4526
|
-
var
|
|
4526
|
+
var u = Dn(t, r), f = r.indexOf(d), g = u.slice(f), v = Or({
|
|
4527
4527
|
afterDragging: g,
|
|
4528
4528
|
destination: n,
|
|
4529
4529
|
displacedBy: o,
|
|
@@ -4550,31 +4550,31 @@ var hv = function(e) {
|
|
|
4550
4550
|
var t = e.isMovingForward, r = e.destination, n = e.draggables, a = e.combine, o = e.afterCritical;
|
|
4551
4551
|
if (!r.isCombineEnabled)
|
|
4552
4552
|
return null;
|
|
4553
|
-
var i = a.draggableId, l = n[i], c = l.descriptor.index,
|
|
4554
|
-
return
|
|
4553
|
+
var i = a.draggableId, l = n[i], c = l.descriptor.index, p = Ct(i, o);
|
|
4554
|
+
return p ? t ? c : c - 1 : t ? c + 1 : c;
|
|
4555
4555
|
}, bv = function(e) {
|
|
4556
4556
|
var t = e.isMovingForward, r = e.isInHomeList, n = e.insideDestination, a = e.location;
|
|
4557
4557
|
if (!n.length)
|
|
4558
4558
|
return null;
|
|
4559
|
-
var o = a.index, i = t ? o + 1 : o - 1, l = n[0].descriptor.index, c = n[n.length - 1].descriptor.index,
|
|
4560
|
-
return i < l || i >
|
|
4559
|
+
var o = a.index, i = t ? o + 1 : o - 1, l = n[0].descriptor.index, c = n[n.length - 1].descriptor.index, p = r ? c : c + 1;
|
|
4560
|
+
return i < l || i > p ? null : i;
|
|
4561
4561
|
}, xv = function(e) {
|
|
4562
|
-
var t = e.isMovingForward, r = e.isInHomeList, n = e.draggable, a = e.draggables, o = e.destination, i = e.insideDestination, l = e.previousImpact, c = e.viewport,
|
|
4562
|
+
var t = e.isMovingForward, r = e.isInHomeList, n = e.draggable, a = e.draggables, o = e.destination, i = e.insideDestination, l = e.previousImpact, c = e.viewport, p = e.afterCritical, d = l.at;
|
|
4563
4563
|
if (d || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot move in direction without previous impact location") : w()), d.type === "REORDER") {
|
|
4564
|
-
var
|
|
4564
|
+
var u = bv({
|
|
4565
4565
|
isMovingForward: t,
|
|
4566
4566
|
isInHomeList: r,
|
|
4567
4567
|
location: d.destination,
|
|
4568
4568
|
insideDestination: i
|
|
4569
4569
|
});
|
|
4570
|
-
return
|
|
4570
|
+
return u == null ? null : pn({
|
|
4571
4571
|
draggable: n,
|
|
4572
4572
|
insideDestination: i,
|
|
4573
4573
|
destination: o,
|
|
4574
4574
|
viewport: c,
|
|
4575
4575
|
last: l.displaced,
|
|
4576
4576
|
displacedBy: l.displacedBy,
|
|
4577
|
-
index:
|
|
4577
|
+
index: u
|
|
4578
4578
|
});
|
|
4579
4579
|
}
|
|
4580
4580
|
var f = hv({
|
|
@@ -4583,7 +4583,7 @@ var hv = function(e) {
|
|
|
4583
4583
|
displaced: l.displaced,
|
|
4584
4584
|
draggables: a,
|
|
4585
4585
|
combine: d.combine,
|
|
4586
|
-
afterCritical:
|
|
4586
|
+
afterCritical: p
|
|
4587
4587
|
});
|
|
4588
4588
|
return f == null ? null : pn({
|
|
4589
4589
|
draggable: n,
|
|
@@ -4623,17 +4623,17 @@ var hv = function(e) {
|
|
|
4623
4623
|
var r = t.axis, n = t.moveInto, a = t.isMoving;
|
|
4624
4624
|
return Vt(r.line, n.contentBox[r.start] + Dl(r, a), Ka(r, n.contentBox, a));
|
|
4625
4625
|
}, Sv = function(e) {
|
|
4626
|
-
var t = e.impact, r = e.draggable, n = e.draggables, a = e.droppable, o = e.afterCritical, i =
|
|
4626
|
+
var t = e.impact, r = e.draggable, n = e.draggables, a = e.droppable, o = e.afterCritical, i = Gt(a.descriptor.id, n), l = r.page, c = a.axis;
|
|
4627
4627
|
if (!i.length)
|
|
4628
4628
|
return Nv({
|
|
4629
4629
|
axis: c,
|
|
4630
4630
|
moveInto: a.page,
|
|
4631
4631
|
isMoving: l
|
|
4632
4632
|
});
|
|
4633
|
-
var
|
|
4634
|
-
if (
|
|
4635
|
-
var f = n[
|
|
4636
|
-
if (Ct(
|
|
4633
|
+
var p = t.displaced, d = t.displacedBy, u = p.all[0];
|
|
4634
|
+
if (u) {
|
|
4635
|
+
var f = n[u];
|
|
4636
|
+
if (Ct(u, o))
|
|
4637
4637
|
return wi({
|
|
4638
4638
|
axis: c,
|
|
4639
4639
|
moveRelativeTo: f.page,
|
|
@@ -4715,7 +4715,7 @@ function Ev(e, t) {
|
|
|
4715
4715
|
return null;
|
|
4716
4716
|
}
|
|
4717
4717
|
var jv = function(e) {
|
|
4718
|
-
var t = e.impact, r = e.viewport, n = e.destination, a = e.draggables, o = e.maxScrollChange, i = Nl(r, ke(r.scroll.current, o)), l = n.frame ? Ua(n, ke(n.frame.scroll.current, o)) : n, c = t.displaced,
|
|
4718
|
+
var t = e.impact, r = e.viewport, n = e.destination, a = e.draggables, o = e.maxScrollChange, i = Nl(r, ke(r.scroll.current, o)), l = n.frame ? Ua(n, ke(n.frame.scroll.current, o)) : n, c = t.displaced, p = Or({
|
|
4719
4719
|
afterDragging: Di(c.all, a),
|
|
4720
4720
|
destination: n,
|
|
4721
4721
|
displacedBy: t.displacedBy,
|
|
@@ -4729,19 +4729,19 @@ var jv = function(e) {
|
|
|
4729
4729
|
viewport: r.frame,
|
|
4730
4730
|
last: c,
|
|
4731
4731
|
forceShouldAnimate: !1
|
|
4732
|
-
}),
|
|
4732
|
+
}), u = {}, f = {}, g = [c, p, d];
|
|
4733
4733
|
c.all.forEach(function(b) {
|
|
4734
4734
|
var h = Ev(b, g);
|
|
4735
4735
|
if (h) {
|
|
4736
4736
|
f[b] = h;
|
|
4737
4737
|
return;
|
|
4738
4738
|
}
|
|
4739
|
-
|
|
4739
|
+
u[b] = !0;
|
|
4740
4740
|
});
|
|
4741
4741
|
var v = te({}, t, {
|
|
4742
4742
|
displaced: {
|
|
4743
4743
|
all: c.all,
|
|
4744
|
-
invisible:
|
|
4744
|
+
invisible: u,
|
|
4745
4745
|
visible: f
|
|
4746
4746
|
}
|
|
4747
4747
|
});
|
|
@@ -4752,18 +4752,18 @@ var jv = function(e) {
|
|
|
4752
4752
|
var t = e.pageBorderBoxCenter, r = e.draggable, n = e.viewport, a = Iv(n, t), o = We(a, r.page.borderBox.center);
|
|
4753
4753
|
return ke(r.client.borderBox.center, o);
|
|
4754
4754
|
}, Sl = function(e) {
|
|
4755
|
-
var t = e.draggable, r = e.destination, n = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, i = e.onlyOnMainAxis, l = i === void 0 ? !1 : i, c = We(n, t.page.borderBox.center),
|
|
4756
|
-
target:
|
|
4755
|
+
var t = e.draggable, r = e.destination, n = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, i = e.onlyOnMainAxis, l = i === void 0 ? !1 : i, c = We(n, t.page.borderBox.center), p = Rr(t.page.borderBox, c), d = {
|
|
4756
|
+
target: p,
|
|
4757
4757
|
destination: r,
|
|
4758
4758
|
withDroppableDisplacement: o,
|
|
4759
4759
|
viewport: a
|
|
4760
4760
|
};
|
|
4761
4761
|
return l ? fv(d) : wl(d);
|
|
4762
4762
|
}, Ov = function(e) {
|
|
4763
|
-
var t = e.isMovingForward, r = e.draggable, n = e.destination, a = e.draggables, o = e.previousImpact, i = e.viewport, l = e.previousPageBorderBoxCenter, c = e.previousClientSelection,
|
|
4763
|
+
var t = e.isMovingForward, r = e.draggable, n = e.destination, a = e.draggables, o = e.previousImpact, i = e.viewport, l = e.previousPageBorderBoxCenter, c = e.previousClientSelection, p = e.afterCritical;
|
|
4764
4764
|
if (!n.isEnabled)
|
|
4765
4765
|
return null;
|
|
4766
|
-
var d =
|
|
4766
|
+
var d = Gt(n.descriptor.id, a), u = ar(r, n), f = ov({
|
|
4767
4767
|
isMovingForward: t,
|
|
4768
4768
|
draggable: r,
|
|
4769
4769
|
destination: n,
|
|
@@ -4771,14 +4771,14 @@ var jv = function(e) {
|
|
|
4771
4771
|
previousImpact: o
|
|
4772
4772
|
}) || xv({
|
|
4773
4773
|
isMovingForward: t,
|
|
4774
|
-
isInHomeList:
|
|
4774
|
+
isInHomeList: u,
|
|
4775
4775
|
draggable: r,
|
|
4776
4776
|
draggables: a,
|
|
4777
4777
|
destination: n,
|
|
4778
4778
|
insideDestination: d,
|
|
4779
4779
|
previousImpact: o,
|
|
4780
4780
|
viewport: i,
|
|
4781
|
-
afterCritical:
|
|
4781
|
+
afterCritical: p
|
|
4782
4782
|
});
|
|
4783
4783
|
if (!f)
|
|
4784
4784
|
return null;
|
|
@@ -4787,7 +4787,7 @@ var jv = function(e) {
|
|
|
4787
4787
|
draggable: r,
|
|
4788
4788
|
droppable: n,
|
|
4789
4789
|
draggables: a,
|
|
4790
|
-
afterCritical:
|
|
4790
|
+
afterCritical: p
|
|
4791
4791
|
}), v = Sl({
|
|
4792
4792
|
draggable: r,
|
|
4793
4793
|
destination: n,
|
|
@@ -4827,39 +4827,39 @@ var jv = function(e) {
|
|
|
4827
4827
|
var t = e.isMovingForward, r = e.pageBorderBoxCenter, n = e.source, a = e.droppables, o = e.viewport, i = n.subject.active;
|
|
4828
4828
|
if (!i)
|
|
4829
4829
|
return null;
|
|
4830
|
-
var l = n.axis, c =
|
|
4831
|
-
return
|
|
4832
|
-
}).filter(function(
|
|
4833
|
-
return
|
|
4834
|
-
}).filter(function(
|
|
4835
|
-
return !!
|
|
4836
|
-
}).filter(function(
|
|
4837
|
-
return xl(o.frame)(Fe(
|
|
4838
|
-
}).filter(function(
|
|
4839
|
-
var f = Fe(
|
|
4830
|
+
var l = n.axis, c = Qe(i[l.start], i[l.end]), p = yn(a).filter(function(u) {
|
|
4831
|
+
return u !== n;
|
|
4832
|
+
}).filter(function(u) {
|
|
4833
|
+
return u.isEnabled;
|
|
4834
|
+
}).filter(function(u) {
|
|
4835
|
+
return !!u.subject.active;
|
|
4836
|
+
}).filter(function(u) {
|
|
4837
|
+
return xl(o.frame)(Fe(u));
|
|
4838
|
+
}).filter(function(u) {
|
|
4839
|
+
var f = Fe(u);
|
|
4840
4840
|
return t ? i[l.crossAxisEnd] < f[l.crossAxisEnd] : f[l.crossAxisStart] < i[l.crossAxisStart];
|
|
4841
|
-
}).filter(function(
|
|
4842
|
-
var f = Fe(
|
|
4841
|
+
}).filter(function(u) {
|
|
4842
|
+
var f = Fe(u), g = Qe(f[l.start], f[l.end]);
|
|
4843
4843
|
return c(f[l.start]) || c(f[l.end]) || g(i[l.start]) || g(i[l.end]);
|
|
4844
|
-
}).sort(function(
|
|
4845
|
-
var g = Fe(
|
|
4844
|
+
}).sort(function(u, f) {
|
|
4845
|
+
var g = Fe(u)[l.crossAxisStart], v = Fe(f)[l.crossAxisStart];
|
|
4846
4846
|
return t ? g - v : v - g;
|
|
4847
|
-
}).filter(function(
|
|
4848
|
-
return Fe(
|
|
4847
|
+
}).filter(function(u, f, g) {
|
|
4848
|
+
return Fe(u)[l.crossAxisStart] === Fe(g[0])[l.crossAxisStart];
|
|
4849
4849
|
});
|
|
4850
|
-
if (!
|
|
4850
|
+
if (!p.length)
|
|
4851
4851
|
return null;
|
|
4852
|
-
if (
|
|
4853
|
-
return
|
|
4854
|
-
var d =
|
|
4855
|
-
var f =
|
|
4852
|
+
if (p.length === 1)
|
|
4853
|
+
return p[0];
|
|
4854
|
+
var d = p.filter(function(u) {
|
|
4855
|
+
var f = Qe(Fe(u)[l.start], Fe(u)[l.end]);
|
|
4856
4856
|
return f(r[l.line]);
|
|
4857
4857
|
});
|
|
4858
|
-
return d.length === 1 ? d[0] : d.length > 1 ? d.sort(function(
|
|
4859
|
-
return Fe(
|
|
4860
|
-
})[0] :
|
|
4861
|
-
var g = hi(r, bi(Fe(
|
|
4862
|
-
return g !== v ? g - v : Fe(
|
|
4858
|
+
return d.length === 1 ? d[0] : d.length > 1 ? d.sort(function(u, f) {
|
|
4859
|
+
return Fe(u)[l.start] - Fe(f)[l.start];
|
|
4860
|
+
})[0] : p.sort(function(u, f) {
|
|
4861
|
+
var g = hi(r, bi(Fe(u))), v = hi(r, bi(Fe(f)));
|
|
4862
|
+
return g !== v ? g - v : Fe(u)[l.start] - Fe(f)[l.start];
|
|
4863
4863
|
})[0];
|
|
4864
4864
|
}, Ni = function(t, r) {
|
|
4865
4865
|
var n = t.page.borderBox.center;
|
|
@@ -4876,8 +4876,8 @@ var jv = function(e) {
|
|
|
4876
4876
|
withDroppableDisplacement: !0
|
|
4877
4877
|
});
|
|
4878
4878
|
}).sort(function(l, c) {
|
|
4879
|
-
var
|
|
4880
|
-
return
|
|
4879
|
+
var p = jr(t, da(n, Ni(l, o))), d = jr(t, da(n, Ni(c, o)));
|
|
4880
|
+
return p < d ? -1 : d < p ? 1 : l.descriptor.index - c.descriptor.index;
|
|
4881
4881
|
});
|
|
4882
4882
|
return i[0] || null;
|
|
4883
4883
|
}, kr = Te(function(t, r) {
|
|
@@ -4890,10 +4890,10 @@ var jv = function(e) {
|
|
|
4890
4890
|
var a = t.axis;
|
|
4891
4891
|
if (t.descriptor.mode === "virtual")
|
|
4892
4892
|
return Vt(a.line, r[a.line]);
|
|
4893
|
-
var o = t.subject.page.contentBox[a.size], i =
|
|
4894
|
-
return d +
|
|
4895
|
-
}, 0), c = l + r[a.line],
|
|
4896
|
-
return
|
|
4893
|
+
var o = t.subject.page.contentBox[a.size], i = Gt(t.descriptor.id, n), l = i.reduce(function(d, u) {
|
|
4894
|
+
return d + u.client.marginBox[a.size];
|
|
4895
|
+
}, 0), c = l + r[a.line], p = c - o;
|
|
4896
|
+
return p <= 0 ? null : Vt(a.line, p);
|
|
4897
4897
|
}, Cl = function(t, r) {
|
|
4898
4898
|
return te({}, t, {
|
|
4899
4899
|
scroll: te({}, t.scroll, {
|
|
@@ -4909,7 +4909,7 @@ var jv = function(e) {
|
|
|
4909
4909
|
oldFrameMaxScroll: t.frame ? t.frame.scroll.max : null
|
|
4910
4910
|
};
|
|
4911
4911
|
if (!a) {
|
|
4912
|
-
var c =
|
|
4912
|
+
var c = Xt({
|
|
4913
4913
|
page: t.subject.page,
|
|
4914
4914
|
withPlaceholder: l,
|
|
4915
4915
|
axis: t.axis,
|
|
@@ -4919,14 +4919,14 @@ var jv = function(e) {
|
|
|
4919
4919
|
subject: c
|
|
4920
4920
|
});
|
|
4921
4921
|
}
|
|
4922
|
-
var
|
|
4922
|
+
var p = i ? ke(a.scroll.max, i) : a.scroll.max, d = Cl(a, p), u = Xt({
|
|
4923
4923
|
page: t.subject.page,
|
|
4924
4924
|
withPlaceholder: l,
|
|
4925
4925
|
axis: t.axis,
|
|
4926
4926
|
frame: d
|
|
4927
4927
|
});
|
|
4928
4928
|
return te({}, t, {
|
|
4929
|
-
subject:
|
|
4929
|
+
subject: u,
|
|
4930
4930
|
frame: d
|
|
4931
4931
|
});
|
|
4932
4932
|
}, Rv = function(t) {
|
|
@@ -4934,7 +4934,7 @@ var jv = function(e) {
|
|
|
4934
4934
|
r || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot remove placeholder form subject when there was none") : w());
|
|
4935
4935
|
var n = t.frame;
|
|
4936
4936
|
if (!n) {
|
|
4937
|
-
var a =
|
|
4937
|
+
var a = Xt({
|
|
4938
4938
|
page: t.subject.page,
|
|
4939
4939
|
axis: t.axis,
|
|
4940
4940
|
frame: null,
|
|
@@ -4946,7 +4946,7 @@ var jv = function(e) {
|
|
|
4946
4946
|
}
|
|
4947
4947
|
var o = r.oldFrameMaxScroll;
|
|
4948
4948
|
o || (process.env.NODE_ENV !== "production" ? w(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : w());
|
|
4949
|
-
var i = Cl(n, o), l =
|
|
4949
|
+
var i = Cl(n, o), l = Xt({
|
|
4950
4950
|
page: t.subject.page,
|
|
4951
4951
|
axis: t.axis,
|
|
4952
4952
|
frame: i,
|
|
@@ -4961,7 +4961,7 @@ var jv = function(e) {
|
|
|
4961
4961
|
if (!r) {
|
|
4962
4962
|
if (n.length)
|
|
4963
4963
|
return null;
|
|
4964
|
-
var
|
|
4964
|
+
var p = {
|
|
4965
4965
|
displaced: Ir,
|
|
4966
4966
|
displacedBy: bl,
|
|
4967
4967
|
at: {
|
|
@@ -4972,20 +4972,20 @@ var jv = function(e) {
|
|
|
4972
4972
|
}
|
|
4973
4973
|
}
|
|
4974
4974
|
}, d = Nn({
|
|
4975
|
-
impact:
|
|
4975
|
+
impact: p,
|
|
4976
4976
|
draggable: a,
|
|
4977
4977
|
droppable: i,
|
|
4978
4978
|
draggables: o,
|
|
4979
4979
|
afterCritical: c
|
|
4980
|
-
}),
|
|
4980
|
+
}), u = ar(a, i) ? i : El(i, a, o), f = Sl({
|
|
4981
4981
|
draggable: a,
|
|
4982
|
-
destination:
|
|
4982
|
+
destination: u,
|
|
4983
4983
|
newPageBorderBoxCenter: d,
|
|
4984
4984
|
viewport: l.frame,
|
|
4985
4985
|
withDroppableDisplacement: !1,
|
|
4986
4986
|
onlyOnMainAxis: !0
|
|
4987
4987
|
});
|
|
4988
|
-
return f ?
|
|
4988
|
+
return f ? p : null;
|
|
4989
4989
|
}
|
|
4990
4990
|
var g = t[i.axis.line] <= r.page.borderBox.center[i.axis.line], v = function() {
|
|
4991
4991
|
var h = r.descriptor.index;
|
|
@@ -5001,27 +5001,27 @@ var jv = function(e) {
|
|
|
5001
5001
|
index: v
|
|
5002
5002
|
});
|
|
5003
5003
|
}, Bv = function(e) {
|
|
5004
|
-
var t = e.isMovingForward, r = e.previousPageBorderBoxCenter, n = e.draggable, a = e.isOver, o = e.draggables, i = e.droppables, l = e.viewport, c = e.afterCritical,
|
|
5004
|
+
var t = e.isMovingForward, r = e.previousPageBorderBoxCenter, n = e.draggable, a = e.isOver, o = e.draggables, i = e.droppables, l = e.viewport, c = e.afterCritical, p = _v({
|
|
5005
5005
|
isMovingForward: t,
|
|
5006
5006
|
pageBorderBoxCenter: r,
|
|
5007
5007
|
source: a,
|
|
5008
5008
|
droppables: i,
|
|
5009
5009
|
viewport: l
|
|
5010
5010
|
});
|
|
5011
|
-
if (!
|
|
5011
|
+
if (!p)
|
|
5012
5012
|
return null;
|
|
5013
|
-
var d =
|
|
5013
|
+
var d = Gt(p.descriptor.id, o), u = Av({
|
|
5014
5014
|
pageBorderBoxCenter: r,
|
|
5015
5015
|
viewport: l,
|
|
5016
|
-
destination:
|
|
5016
|
+
destination: p,
|
|
5017
5017
|
insideDestination: d,
|
|
5018
5018
|
afterCritical: c
|
|
5019
5019
|
}), f = kv({
|
|
5020
5020
|
previousPageBorderBoxCenter: r,
|
|
5021
|
-
destination:
|
|
5021
|
+
destination: p,
|
|
5022
5022
|
draggable: n,
|
|
5023
5023
|
draggables: o,
|
|
5024
|
-
moveRelativeTo:
|
|
5024
|
+
moveRelativeTo: u,
|
|
5025
5025
|
insideDestination: d,
|
|
5026
5026
|
viewport: l,
|
|
5027
5027
|
afterCritical: c
|
|
@@ -5031,7 +5031,7 @@ var jv = function(e) {
|
|
|
5031
5031
|
var g = Nn({
|
|
5032
5032
|
impact: f,
|
|
5033
5033
|
draggable: n,
|
|
5034
|
-
droppable:
|
|
5034
|
+
droppable: p,
|
|
5035
5035
|
draggables: o,
|
|
5036
5036
|
afterCritical: c
|
|
5037
5037
|
}), v = Xa({
|
|
@@ -5054,10 +5054,10 @@ var jv = function(e) {
|
|
|
5054
5054
|
var t = e.state, r = e.type, n = Mv(t.impact, t.dimensions.droppables), a = !!n, o = t.dimensions.droppables[t.critical.droppable.id], i = n || o, l = i.axis.direction, c = l === "vertical" && (r === "MOVE_UP" || r === "MOVE_DOWN") || l === "horizontal" && (r === "MOVE_LEFT" || r === "MOVE_RIGHT");
|
|
5055
5055
|
if (c && !a)
|
|
5056
5056
|
return null;
|
|
5057
|
-
var
|
|
5057
|
+
var p = r === "MOVE_DOWN" || r === "MOVE_RIGHT", d = t.dimensions.draggables[t.critical.draggable.id], u = t.current.page.borderBoxCenter, f = t.dimensions, g = f.draggables, v = f.droppables;
|
|
5058
5058
|
return c ? Ov({
|
|
5059
|
-
isMovingForward:
|
|
5060
|
-
previousPageBorderBoxCenter:
|
|
5059
|
+
isMovingForward: p,
|
|
5060
|
+
previousPageBorderBoxCenter: u,
|
|
5061
5061
|
draggable: d,
|
|
5062
5062
|
destination: i,
|
|
5063
5063
|
draggables: g,
|
|
@@ -5066,8 +5066,8 @@ var jv = function(e) {
|
|
|
5066
5066
|
previousImpact: t.impact,
|
|
5067
5067
|
afterCritical: t.afterCritical
|
|
5068
5068
|
}) : Bv({
|
|
5069
|
-
isMovingForward:
|
|
5070
|
-
previousPageBorderBoxCenter:
|
|
5069
|
+
isMovingForward: p,
|
|
5070
|
+
previousPageBorderBoxCenter: u,
|
|
5071
5071
|
draggable: d,
|
|
5072
5072
|
isOver: i,
|
|
5073
5073
|
draggables: g,
|
|
@@ -5080,7 +5080,7 @@ function Bt(e) {
|
|
|
5080
5080
|
return e.phase === "DRAGGING" || e.phase === "COLLECTING";
|
|
5081
5081
|
}
|
|
5082
5082
|
function jl(e) {
|
|
5083
|
-
var t =
|
|
5083
|
+
var t = Qe(e.top, e.bottom), r = Qe(e.left, e.right);
|
|
5084
5084
|
return function(a) {
|
|
5085
5085
|
return t(a.y) && r(a.x);
|
|
5086
5086
|
};
|
|
@@ -5109,8 +5109,8 @@ function $v(e) {
|
|
|
5109
5109
|
return !1;
|
|
5110
5110
|
if (jl(i)(t.center))
|
|
5111
5111
|
return !0;
|
|
5112
|
-
var l = o.axis, c = i.center[l.crossAxisLine],
|
|
5113
|
-
return !f && !g ? !0 : f ?
|
|
5112
|
+
var l = o.axis, c = i.center[l.crossAxisLine], p = t[l.crossAxisStart], d = t[l.crossAxisEnd], u = Qe(i[l.crossAxisStart], i[l.crossAxisEnd]), f = u(p), g = u(d);
|
|
5113
|
+
return !f && !g ? !0 : f ? p < c : d > c;
|
|
5114
5114
|
});
|
|
5115
5115
|
return a.length ? a.length === 1 ? a[0].descriptor.id : Vv({
|
|
5116
5116
|
pageBorderBox: t,
|
|
@@ -5133,12 +5133,12 @@ function Wv(e) {
|
|
|
5133
5133
|
return r ? n && r.descriptor.index > t.descriptor.index ? r.descriptor.index - 1 : r.descriptor.index : null;
|
|
5134
5134
|
}
|
|
5135
5135
|
var Uv = function(e) {
|
|
5136
|
-
var t = e.pageBorderBoxWithDroppableScroll, r = e.draggable, n = e.destination, a = e.insideDestination, o = e.last, i = e.viewport, l = e.afterCritical, c = n.axis,
|
|
5136
|
+
var t = e.pageBorderBoxWithDroppableScroll, r = e.draggable, n = e.destination, a = e.insideDestination, o = e.last, i = e.viewport, l = e.afterCritical, c = n.axis, p = kr(n.axis, r.displaceBy), d = p.value, u = t[c.start], f = t[c.end], g = Dn(r, a), v = It(g, function(h) {
|
|
5137
5137
|
var m = h.descriptor.id, x = h.page.borderBox.center[c.line], D = Ct(m, l), N = Ol({
|
|
5138
5138
|
displaced: o,
|
|
5139
5139
|
id: m
|
|
5140
5140
|
});
|
|
5141
|
-
return D ? N ? f <= x :
|
|
5141
|
+
return D ? N ? f <= x : u < x - d : N ? f <= x + d : u < x;
|
|
5142
5142
|
}), b = Wv({
|
|
5143
5143
|
draggable: r,
|
|
5144
5144
|
closest: v,
|
|
@@ -5150,19 +5150,19 @@ var Uv = function(e) {
|
|
|
5150
5150
|
destination: n,
|
|
5151
5151
|
viewport: i,
|
|
5152
5152
|
last: o,
|
|
5153
|
-
displacedBy:
|
|
5153
|
+
displacedBy: p,
|
|
5154
5154
|
index: b
|
|
5155
5155
|
});
|
|
5156
5156
|
}, Hv = 4, zv = function(e) {
|
|
5157
5157
|
var t = e.draggable, r = e.pageBorderBoxWithDroppableScroll, n = e.previousImpact, a = e.destination, o = e.insideDestination, i = e.afterCritical;
|
|
5158
5158
|
if (!a.isCombineEnabled)
|
|
5159
5159
|
return null;
|
|
5160
|
-
var l = a.axis, c = kr(a.axis, t.displaceBy),
|
|
5160
|
+
var l = a.axis, c = kr(a.axis, t.displaceBy), p = c.value, d = r[l.start], u = r[l.end], f = Dn(t, o), g = It(f, function(b) {
|
|
5161
5161
|
var h = b.descriptor.id, m = b.page.borderBox, x = m[l.size], D = x / Hv, N = Ct(h, i), y = Ol({
|
|
5162
5162
|
displaced: n.displaced,
|
|
5163
5163
|
id: h
|
|
5164
5164
|
});
|
|
5165
|
-
return N ? y ?
|
|
5165
|
+
return N ? y ? u > m[l.start] + D && u < m[l.end] - D : d > m[l.start] - p + D && d < m[l.end] - p - D : y ? u > m[l.start] + p + D && u < m[l.end] + p - D : d > m[l.start] + D && d < m[l.end] - D;
|
|
5166
5166
|
});
|
|
5167
5167
|
if (!g)
|
|
5168
5168
|
return null;
|
|
@@ -5179,26 +5179,26 @@ var Uv = function(e) {
|
|
|
5179
5179
|
};
|
|
5180
5180
|
return v;
|
|
5181
5181
|
}, _l = function(e) {
|
|
5182
|
-
var t = e.pageOffset, r = e.draggable, n = e.draggables, a = e.droppables, o = e.previousImpact, i = e.viewport, l = e.afterCritical, c = Il(r.page.borderBox, t),
|
|
5182
|
+
var t = e.pageOffset, r = e.draggable, n = e.draggables, a = e.droppables, o = e.previousImpact, i = e.viewport, l = e.afterCritical, c = Il(r.page.borderBox, t), p = $v({
|
|
5183
5183
|
pageBorderBox: c,
|
|
5184
5184
|
draggable: r,
|
|
5185
5185
|
droppables: a
|
|
5186
5186
|
});
|
|
5187
|
-
if (!
|
|
5187
|
+
if (!p)
|
|
5188
5188
|
return iv;
|
|
5189
|
-
var d = a[
|
|
5189
|
+
var d = a[p], u = Gt(d.descriptor.id, n), f = Gv(d, c);
|
|
5190
5190
|
return zv({
|
|
5191
5191
|
pageBorderBoxWithDroppableScroll: f,
|
|
5192
5192
|
draggable: r,
|
|
5193
5193
|
previousImpact: o,
|
|
5194
5194
|
destination: d,
|
|
5195
|
-
insideDestination:
|
|
5195
|
+
insideDestination: u,
|
|
5196
5196
|
afterCritical: l
|
|
5197
5197
|
}) || Uv({
|
|
5198
5198
|
pageBorderBoxWithDroppableScroll: f,
|
|
5199
5199
|
draggable: r,
|
|
5200
5200
|
destination: d,
|
|
5201
|
-
insideDestination:
|
|
5201
|
+
insideDestination: u,
|
|
5202
5202
|
last: o.displaced,
|
|
5203
5203
|
viewport: i,
|
|
5204
5204
|
afterCritical: l
|
|
@@ -5226,19 +5226,19 @@ var Uv = function(e) {
|
|
|
5226
5226
|
var c = n[l];
|
|
5227
5227
|
if (ar(t, c) || c.subject.withPlaceholder)
|
|
5228
5228
|
return i;
|
|
5229
|
-
var
|
|
5230
|
-
return Qa(i,
|
|
5229
|
+
var p = El(c, t, r);
|
|
5230
|
+
return Qa(i, p);
|
|
5231
5231
|
}, mr = function(e) {
|
|
5232
|
-
var t = e.state, r = e.clientSelection, n = e.dimensions, a = e.viewport, o = e.impact, i = e.scrollJumpRequest, l = a || t.viewport, c = n || t.dimensions,
|
|
5232
|
+
var t = e.state, r = e.clientSelection, n = e.dimensions, a = e.viewport, o = e.impact, i = e.scrollJumpRequest, l = a || t.viewport, c = n || t.dimensions, p = r || t.current.client.selection, d = We(p, t.initial.client.selection), u = {
|
|
5233
5233
|
offset: d,
|
|
5234
|
-
selection:
|
|
5234
|
+
selection: p,
|
|
5235
5235
|
borderBoxCenter: ke(t.initial.client.borderBoxCenter, d)
|
|
5236
5236
|
}, f = {
|
|
5237
|
-
selection: ke(
|
|
5238
|
-
borderBoxCenter: ke(
|
|
5239
|
-
offset: ke(
|
|
5237
|
+
selection: ke(u.selection, l.scroll.current),
|
|
5238
|
+
borderBoxCenter: ke(u.borderBoxCenter, l.scroll.current),
|
|
5239
|
+
offset: ke(u.offset, l.scroll.diff.value)
|
|
5240
5240
|
}, g = {
|
|
5241
|
-
client:
|
|
5241
|
+
client: u,
|
|
5242
5242
|
page: f
|
|
5243
5243
|
};
|
|
5244
5244
|
if (t.phase === "COLLECTING")
|
|
@@ -5309,17 +5309,17 @@ var Pl = function(e) {
|
|
|
5309
5309
|
}, Tl = function(e) {
|
|
5310
5310
|
var t = e.state, r = e.dimensions, n = e.viewport;
|
|
5311
5311
|
t.movementMode !== "SNAP" && (process.env.NODE_ENV, w());
|
|
5312
|
-
var a = t.impact, o = n || t.viewport, i = r || t.dimensions, l = i.draggables, c = i.droppables,
|
|
5312
|
+
var a = t.impact, o = n || t.viewport, i = r || t.dimensions, l = i.draggables, c = i.droppables, p = l[t.critical.draggable.id], d = Ue(a);
|
|
5313
5313
|
d || (process.env.NODE_ENV !== "production" ? w(!1, "Must be over a destination in SNAP movement mode") : w());
|
|
5314
|
-
var
|
|
5314
|
+
var u = c[d], f = Pl({
|
|
5315
5315
|
impact: a,
|
|
5316
5316
|
viewport: o,
|
|
5317
|
-
destination:
|
|
5317
|
+
destination: u,
|
|
5318
5318
|
draggables: l
|
|
5319
5319
|
}), g = Al({
|
|
5320
5320
|
impact: f,
|
|
5321
|
-
draggable:
|
|
5322
|
-
droppable:
|
|
5321
|
+
draggable: p,
|
|
5322
|
+
droppable: u,
|
|
5323
5323
|
draggables: l,
|
|
5324
5324
|
viewport: o,
|
|
5325
5325
|
afterCritical: t.afterCritical
|
|
@@ -5337,15 +5337,15 @@ var Pl = function(e) {
|
|
|
5337
5337
|
droppableId: e.droppableId
|
|
5338
5338
|
};
|
|
5339
5339
|
}, Rl = function(e) {
|
|
5340
|
-
var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = kr(r.axis, t.displaceBy), i =
|
|
5340
|
+
var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = kr(r.axis, t.displaceBy), i = Gt(r.descriptor.id, n), l = i.indexOf(t);
|
|
5341
5341
|
l === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Expected draggable to be inside home list") : w());
|
|
5342
|
-
var c = i.slice(l + 1),
|
|
5342
|
+
var c = i.slice(l + 1), p = c.reduce(function(g, v) {
|
|
5343
5343
|
return g[v.descriptor.id] = !0, g;
|
|
5344
5344
|
}, {}), d = {
|
|
5345
5345
|
inVirtualList: r.descriptor.mode === "virtual",
|
|
5346
5346
|
displacedBy: o,
|
|
5347
|
-
effected:
|
|
5348
|
-
},
|
|
5347
|
+
effected: p
|
|
5348
|
+
}, u = Or({
|
|
5349
5349
|
afterDragging: c,
|
|
5350
5350
|
destination: r,
|
|
5351
5351
|
displacedBy: o,
|
|
@@ -5353,7 +5353,7 @@ var Pl = function(e) {
|
|
|
5353
5353
|
viewport: a.frame,
|
|
5354
5354
|
forceShouldAnimate: !1
|
|
5355
5355
|
}), f = {
|
|
5356
|
-
displaced:
|
|
5356
|
+
displaced: u,
|
|
5357
5357
|
displacedBy: o,
|
|
5358
5358
|
at: {
|
|
5359
5359
|
type: "REORDER",
|
|
@@ -5388,12 +5388,12 @@ var Pl = function(e) {
|
|
|
5388
5388
|
}, em = function(e) {
|
|
5389
5389
|
var t = e.additions, r = e.updatedDroppables, n = e.viewport, a = n.scroll.diff.value;
|
|
5390
5390
|
return t.map(function(o) {
|
|
5391
|
-
var i = o.descriptor.droppableId, l = r[i], c = Zv(l),
|
|
5391
|
+
var i = o.descriptor.droppableId, l = r[i], c = Zv(l), p = c.scroll.diff.value, d = ke(a, p), u = Jv({
|
|
5392
5392
|
draggable: o,
|
|
5393
5393
|
offset: d,
|
|
5394
5394
|
initialWindowScroll: n.scroll.initial
|
|
5395
5395
|
});
|
|
5396
|
-
return
|
|
5396
|
+
return u;
|
|
5397
5397
|
});
|
|
5398
5398
|
}, tm = function(e) {
|
|
5399
5399
|
var t = e.state, r = e.published;
|
|
@@ -5412,12 +5412,12 @@ var Pl = function(e) {
|
|
|
5412
5412
|
var l = {
|
|
5413
5413
|
droppables: a,
|
|
5414
5414
|
draggables: i
|
|
5415
|
-
}, c = Ue(t.impact),
|
|
5415
|
+
}, c = Ue(t.impact), p = c ? l.droppables[c] : null, d = l.draggables[t.critical.draggable.id], u = l.droppables[t.critical.droppable.id], f = Rl({
|
|
5416
5416
|
draggable: d,
|
|
5417
|
-
home:
|
|
5417
|
+
home: u,
|
|
5418
5418
|
draggables: i,
|
|
5419
5419
|
viewport: t.viewport
|
|
5420
|
-
}), g = f.impact, v = f.afterCritical, b =
|
|
5420
|
+
}), g = f.impact, v = f.afterCritical, b = p && p.isCombineEnabled ? t.impact : g, h = _l({
|
|
5421
5421
|
pageOffset: t.current.page.offset,
|
|
5422
5422
|
draggable: l.draggables[t.critical.draggable.id],
|
|
5423
5423
|
draggables: l.draggables,
|
|
@@ -5477,11 +5477,11 @@ var Si = {
|
|
|
5477
5477
|
});
|
|
5478
5478
|
if (t.type === "INITIAL_PUBLISH") {
|
|
5479
5479
|
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "INITIAL_PUBLISH must come after a IDLE phase") : w());
|
|
5480
|
-
var r = t.payload, n = r.critical, a = r.clientSelection, o = r.viewport, i = r.dimensions, l = r.movementMode, c = i.draggables[n.draggable.id],
|
|
5480
|
+
var r = t.payload, n = r.critical, a = r.clientSelection, o = r.viewport, i = r.dimensions, l = r.movementMode, c = i.draggables[n.draggable.id], p = i.droppables[n.droppable.id], d = {
|
|
5481
5481
|
selection: a,
|
|
5482
5482
|
borderBoxCenter: c.client.borderBox.center,
|
|
5483
5483
|
offset: Re
|
|
5484
|
-
},
|
|
5484
|
+
}, u = {
|
|
5485
5485
|
client: d,
|
|
5486
5486
|
page: {
|
|
5487
5487
|
selection: ke(d.selection, o.scroll.initial),
|
|
@@ -5492,7 +5492,7 @@ var Si = {
|
|
|
5492
5492
|
return !_.isFixedOnPage;
|
|
5493
5493
|
}), g = Rl({
|
|
5494
5494
|
draggable: c,
|
|
5495
|
-
home:
|
|
5495
|
+
home: p,
|
|
5496
5496
|
draggables: i.draggables,
|
|
5497
5497
|
viewport: o
|
|
5498
5498
|
}), v = g.impact, b = g.afterCritical, h = {
|
|
@@ -5501,8 +5501,8 @@ var Si = {
|
|
|
5501
5501
|
critical: n,
|
|
5502
5502
|
movementMode: l,
|
|
5503
5503
|
dimensions: i,
|
|
5504
|
-
initial:
|
|
5505
|
-
current:
|
|
5504
|
+
initial: u,
|
|
5505
|
+
current: u,
|
|
5506
5506
|
isWindowScrollAllowed: f,
|
|
5507
5507
|
impact: v,
|
|
5508
5508
|
afterCritical: b,
|
|
@@ -5786,7 +5786,7 @@ function xm(e) {
|
|
|
5786
5786
|
}
|
|
5787
5787
|
function ym(e, t) {
|
|
5788
5788
|
if (process.env.NODE_ENV !== "production") {
|
|
5789
|
-
var r =
|
|
5789
|
+
var r = Gt(e.droppable.id, t.draggables);
|
|
5790
5790
|
xm(r);
|
|
5791
5791
|
}
|
|
5792
5792
|
}
|
|
@@ -5799,24 +5799,24 @@ var wm = function(e) {
|
|
|
5799
5799
|
a(o);
|
|
5800
5800
|
return;
|
|
5801
5801
|
}
|
|
5802
|
-
var i = o.payload, l = i.id, c = i.clientSelection,
|
|
5802
|
+
var i = o.payload, l = i.id, c = i.clientSelection, p = i.movementMode, d = r();
|
|
5803
5803
|
d.phase === "DROP_ANIMATING" && n(Za({
|
|
5804
5804
|
completed: d.completed
|
|
5805
5805
|
})), r().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Unexpected phase to start a drag") : w()), n(Ja()), n(nm({
|
|
5806
5806
|
draggableId: l,
|
|
5807
|
-
movementMode:
|
|
5807
|
+
movementMode: p
|
|
5808
5808
|
}));
|
|
5809
|
-
var
|
|
5810
|
-
shouldPublishImmediately:
|
|
5809
|
+
var u = {
|
|
5810
|
+
shouldPublishImmediately: p === "SNAP"
|
|
5811
5811
|
}, f = {
|
|
5812
5812
|
draggableId: l,
|
|
5813
|
-
scrollOptions:
|
|
5813
|
+
scrollOptions: u
|
|
5814
5814
|
}, g = e.startPublishing(f), v = g.critical, b = g.dimensions, h = g.viewport;
|
|
5815
5815
|
ym(v, b), n(om({
|
|
5816
5816
|
critical: v,
|
|
5817
5817
|
dimensions: b,
|
|
5818
5818
|
clientSelection: c,
|
|
5819
|
-
movementMode:
|
|
5819
|
+
movementMode: p,
|
|
5820
5820
|
viewport: h
|
|
5821
5821
|
}));
|
|
5822
5822
|
};
|
|
@@ -5871,14 +5871,14 @@ var wm = function(e) {
|
|
|
5871
5871
|
var o = a / Ei, i = fa + Nm * o, l = n === "CANCEL" ? i * Sm : i;
|
|
5872
5872
|
return Number(l.toFixed(2));
|
|
5873
5873
|
}, Em = function(e) {
|
|
5874
|
-
var t = e.impact, r = e.draggable, n = e.dimensions, a = e.viewport, o = e.afterCritical, i = n.draggables, l = n.droppables, c = Ue(t),
|
|
5874
|
+
var t = e.impact, r = e.draggable, n = e.dimensions, a = e.viewport, o = e.afterCritical, i = n.draggables, l = n.droppables, c = Ue(t), p = c ? l[c] : null, d = l[r.descriptor.droppableId], u = Al({
|
|
5875
5875
|
impact: t,
|
|
5876
5876
|
draggable: r,
|
|
5877
5877
|
draggables: i,
|
|
5878
5878
|
afterCritical: o,
|
|
5879
|
-
droppable:
|
|
5879
|
+
droppable: p || d,
|
|
5880
5880
|
viewport: a
|
|
5881
|
-
}), f = We(
|
|
5881
|
+
}), f = We(u, r.client.borderBox.center);
|
|
5882
5882
|
return f;
|
|
5883
5883
|
}, jm = function(e) {
|
|
5884
5884
|
var t = e.draggables, r = e.reason, n = e.lastImpact, a = e.home, o = e.viewport, i = e.onLiftImpact;
|
|
@@ -5925,7 +5925,7 @@ var wm = function(e) {
|
|
|
5925
5925
|
if (o.phase !== "IDLE") {
|
|
5926
5926
|
var l = o.phase === "DROP_PENDING" && o.isWaiting;
|
|
5927
5927
|
l && (process.env.NODE_ENV !== "production" ? w(!1, "A DROP action occurred while DROP_PENDING and still waiting") : w()), o.phase === "DRAGGING" || o.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot drop in phase: " + o.phase) : w());
|
|
5928
|
-
var c = o.critical,
|
|
5928
|
+
var c = o.critical, p = o.dimensions, d = p.draggables[o.critical.draggable.id], u = jm({
|
|
5929
5929
|
reason: i,
|
|
5930
5930
|
lastImpact: o.impact,
|
|
5931
5931
|
afterCritical: o.afterCritical,
|
|
@@ -5933,7 +5933,7 @@ var wm = function(e) {
|
|
|
5933
5933
|
home: o.dimensions.droppables[o.critical.droppable.id],
|
|
5934
5934
|
viewport: o.viewport,
|
|
5935
5935
|
draggables: o.dimensions.draggables
|
|
5936
|
-
}), f =
|
|
5936
|
+
}), f = u.impact, g = u.didDropInsideDroppable, v = g ? za(f) : null, b = g ? wn(f) : null, h = {
|
|
5937
5937
|
index: c.draggable.index,
|
|
5938
5938
|
droppableId: c.droppable.id
|
|
5939
5939
|
}, m = {
|
|
@@ -5947,7 +5947,7 @@ var wm = function(e) {
|
|
|
5947
5947
|
}, x = Em({
|
|
5948
5948
|
impact: f,
|
|
5949
5949
|
draggable: d,
|
|
5950
|
-
dimensions:
|
|
5950
|
+
dimensions: p,
|
|
5951
5951
|
viewport: o.viewport,
|
|
5952
5952
|
afterCritical: o.afterCritical
|
|
5953
5953
|
}), D = {
|
|
@@ -6003,7 +6003,7 @@ function _m(e) {
|
|
|
6003
6003
|
return o !== Dt;
|
|
6004
6004
|
}
|
|
6005
6005
|
function l() {
|
|
6006
|
-
i() && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start scroll listener when already active") : w()), o =
|
|
6006
|
+
i() && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start scroll listener when already active") : w()), o = Xe(window, [a]);
|
|
6007
6007
|
}
|
|
6008
6008
|
function c() {
|
|
6009
6009
|
i() || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot stop scroll listener when not active") : w()), n.cancel(), o(), o = Dt;
|
|
@@ -6051,8 +6051,8 @@ var Pm = function(t) {
|
|
|
6051
6051
|
}, a;
|
|
6052
6052
|
}, Rm = function() {
|
|
6053
6053
|
var e = [], t = function(o) {
|
|
6054
|
-
var i = Ha(e, function(
|
|
6055
|
-
return
|
|
6054
|
+
var i = Ha(e, function(p) {
|
|
6055
|
+
return p.timerId === o;
|
|
6056
6056
|
});
|
|
6057
6057
|
i === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Could not find timer") : w());
|
|
6058
6058
|
var l = e.splice(i, 1), c = l[0];
|
|
@@ -6158,7 +6158,7 @@ var Pm = function(t) {
|
|
|
6158
6158
|
}
|
|
6159
6159
|
}, c = function() {
|
|
6160
6160
|
n || (process.env.NODE_ENV !== "production" ? w(!1, "Can only flush responders while dragging") : w()), r.flush();
|
|
6161
|
-
},
|
|
6161
|
+
}, p = function(f) {
|
|
6162
6162
|
n || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : w()), n = null, pr("onDragEnd", function() {
|
|
6163
6163
|
return Hn(e().onDragEnd, f, t, Zr.onDragEnd);
|
|
6164
6164
|
});
|
|
@@ -6169,7 +6169,7 @@ var Pm = function(t) {
|
|
|
6169
6169
|
destination: null,
|
|
6170
6170
|
reason: "CANCEL"
|
|
6171
6171
|
});
|
|
6172
|
-
|
|
6172
|
+
p(f);
|
|
6173
6173
|
}
|
|
6174
6174
|
};
|
|
6175
6175
|
return {
|
|
@@ -6178,7 +6178,7 @@ var Pm = function(t) {
|
|
|
6178
6178
|
start: i,
|
|
6179
6179
|
update: l,
|
|
6180
6180
|
flush: c,
|
|
6181
|
-
drop:
|
|
6181
|
+
drop: p,
|
|
6182
6182
|
abort: d
|
|
6183
6183
|
};
|
|
6184
6184
|
}, Fm = function(e, t) {
|
|
@@ -6243,7 +6243,7 @@ var Pm = function(t) {
|
|
|
6243
6243
|
}
|
|
6244
6244
|
};
|
|
6245
6245
|
r = requestAnimationFrame(function() {
|
|
6246
|
-
r = null, t =
|
|
6246
|
+
r = null, t = Xe(window, [i]);
|
|
6247
6247
|
});
|
|
6248
6248
|
}
|
|
6249
6249
|
};
|
|
@@ -6326,7 +6326,7 @@ function Km(e) {
|
|
|
6326
6326
|
var t = e.registry, r = e.callbacks, n = zn(), a = null, o = function() {
|
|
6327
6327
|
a || (r.collectionStarting(), a = requestAnimationFrame(function() {
|
|
6328
6328
|
a = null, Br();
|
|
6329
|
-
var d = n,
|
|
6329
|
+
var d = n, u = d.additions, f = d.removals, g = d.modified, v = Object.keys(u).map(function(m) {
|
|
6330
6330
|
return t.draggable.getById(m).getDimension(Re);
|
|
6331
6331
|
}).sort(function(m, x) {
|
|
6332
6332
|
return m.descriptor.index - x.descriptor.index;
|
|
@@ -6344,11 +6344,11 @@ function Km(e) {
|
|
|
6344
6344
|
n = zn(), Mr(), r.publish(h);
|
|
6345
6345
|
}));
|
|
6346
6346
|
}, i = function(d) {
|
|
6347
|
-
var
|
|
6348
|
-
n.additions[
|
|
6347
|
+
var u = d.descriptor.id;
|
|
6348
|
+
n.additions[u] = d, n.modified[d.descriptor.droppableId] = !0, n.removals[u] && delete n.removals[u], o();
|
|
6349
6349
|
}, l = function(d) {
|
|
6350
|
-
var
|
|
6351
|
-
n.removals[
|
|
6350
|
+
var u = d.descriptor;
|
|
6351
|
+
n.removals[u.id] = !0, n.modified[u.droppableId] = !0, n.additions[u.id] && delete n.additions[u.id], o();
|
|
6352
6352
|
}, c = function() {
|
|
6353
6353
|
a && (cancelAnimationFrame(a), a = null, n = zn());
|
|
6354
6354
|
};
|
|
@@ -6382,13 +6382,13 @@ var Vl = function(e) {
|
|
|
6382
6382
|
});
|
|
6383
6383
|
return t;
|
|
6384
6384
|
}, Xm = function() {
|
|
6385
|
-
var e = Fl(), t = Gl(), r = e.y, n = e.x, a = $l(), o = a.clientWidth, i = a.clientHeight, l = n + o, c = r + i,
|
|
6385
|
+
var e = Fl(), t = Gl(), r = e.y, n = e.x, a = $l(), o = a.clientWidth, i = a.clientHeight, l = n + o, c = r + i, p = nt({
|
|
6386
6386
|
top: r,
|
|
6387
6387
|
left: n,
|
|
6388
6388
|
right: l,
|
|
6389
6389
|
bottom: c
|
|
6390
6390
|
}), d = {
|
|
6391
|
-
frame:
|
|
6391
|
+
frame: p,
|
|
6392
6392
|
scroll: {
|
|
6393
6393
|
initial: e,
|
|
6394
6394
|
current: e,
|
|
@@ -6403,17 +6403,17 @@ var Vl = function(e) {
|
|
|
6403
6403
|
}, Qm = function(e) {
|
|
6404
6404
|
var t = e.critical, r = e.scrollOptions, n = e.registry;
|
|
6405
6405
|
Br();
|
|
6406
|
-
var a = Xm(), o = a.scroll.current, i = t.droppable, l = n.droppable.getAllByType(i.type).map(function(
|
|
6407
|
-
return
|
|
6408
|
-
}), c = n.draggable.getAllByType(t.draggable.type).map(function(
|
|
6409
|
-
return
|
|
6410
|
-
}),
|
|
6406
|
+
var a = Xm(), o = a.scroll.current, i = t.droppable, l = n.droppable.getAllByType(i.type).map(function(u) {
|
|
6407
|
+
return u.callbacks.getDimensionAndWatchScroll(o, r);
|
|
6408
|
+
}), c = n.draggable.getAllByType(t.draggable.type).map(function(u) {
|
|
6409
|
+
return u.getDimension(o);
|
|
6410
|
+
}), p = {
|
|
6411
6411
|
draggables: hl(c),
|
|
6412
6412
|
droppables: ml(l)
|
|
6413
6413
|
};
|
|
6414
6414
|
Mr();
|
|
6415
6415
|
var d = {
|
|
6416
|
-
dimensions:
|
|
6416
|
+
dimensions: p,
|
|
6417
6417
|
critical: t,
|
|
6418
6418
|
viewport: a
|
|
6419
6419
|
};
|
|
@@ -6462,7 +6462,7 @@ var Jm = function(e, t) {
|
|
|
6462
6462
|
return v.callbacks.dragStopped();
|
|
6463
6463
|
}), r.unsubscribe(), r = null;
|
|
6464
6464
|
}
|
|
6465
|
-
},
|
|
6465
|
+
}, p = function(g) {
|
|
6466
6466
|
r || (process.env.NODE_ENV !== "production" ? w(!1, "Should only be subscribed when a collection is occurring") : w());
|
|
6467
6467
|
var v = r.critical.draggable;
|
|
6468
6468
|
g.type === "ADDITION" && ji(e, v, g.value) && n.add(g.value), g.type === "REMOVAL" && ji(e, v, g.value) && n.remove(g.value);
|
|
@@ -6471,7 +6471,7 @@ var Jm = function(e, t) {
|
|
|
6471
6471
|
var v = e.draggable.getById(g.draggableId), b = e.droppable.getById(v.descriptor.droppableId), h = {
|
|
6472
6472
|
draggable: v.descriptor,
|
|
6473
6473
|
droppable: b.descriptor
|
|
6474
|
-
}, m = e.subscribe(
|
|
6474
|
+
}, m = e.subscribe(p);
|
|
6475
6475
|
return r = {
|
|
6476
6476
|
critical: h,
|
|
6477
6477
|
unsubscribe: m
|
|
@@ -6480,7 +6480,7 @@ var Jm = function(e, t) {
|
|
|
6480
6480
|
registry: e,
|
|
6481
6481
|
scrollOptions: g.scrollOptions
|
|
6482
6482
|
});
|
|
6483
|
-
},
|
|
6483
|
+
}, u = {
|
|
6484
6484
|
updateDroppableIsEnabled: a,
|
|
6485
6485
|
updateDroppableIsCombineEnabled: o,
|
|
6486
6486
|
scrollDroppable: l,
|
|
@@ -6488,7 +6488,7 @@ var Jm = function(e, t) {
|
|
|
6488
6488
|
startPublishing: d,
|
|
6489
6489
|
stopPublishing: c
|
|
6490
6490
|
};
|
|
6491
|
-
return
|
|
6491
|
+
return u;
|
|
6492
6492
|
}, Wl = function(e, t) {
|
|
6493
6493
|
return e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP";
|
|
6494
6494
|
}, Zm = function(e) {
|
|
@@ -6604,16 +6604,16 @@ var Jm = function(e, t) {
|
|
|
6604
6604
|
dragStartTime: t,
|
|
6605
6605
|
axis: yl,
|
|
6606
6606
|
shouldUseTimeDampening: o
|
|
6607
|
-
}),
|
|
6607
|
+
}), p = sh({
|
|
6608
6608
|
x: c,
|
|
6609
6609
|
y: l
|
|
6610
6610
|
});
|
|
6611
|
-
if (Nt(
|
|
6611
|
+
if (Nt(p, Re))
|
|
6612
6612
|
return null;
|
|
6613
6613
|
var d = ih({
|
|
6614
6614
|
container: r,
|
|
6615
6615
|
subject: n,
|
|
6616
|
-
proposedScroll:
|
|
6616
|
+
proposedScroll: p
|
|
6617
6617
|
});
|
|
6618
6618
|
return d ? Nt(d, Re) ? null : d : null;
|
|
6619
6619
|
}, lh = gl(function(e) {
|
|
@@ -6692,9 +6692,9 @@ var Jm = function(e, t) {
|
|
|
6692
6692
|
}, Ai = function(e) {
|
|
6693
6693
|
var t = e.state, r = e.dragStartTime, n = e.shouldUseTimeDampening, a = e.scrollWindow, o = e.scrollDroppable, i = t.current.page.borderBoxCenter, l = t.dimensions.draggables[t.critical.draggable.id], c = l.page.marginBox;
|
|
6694
6694
|
if (t.isWindowScrollAllowed) {
|
|
6695
|
-
var
|
|
6695
|
+
var p = t.viewport, d = uh({
|
|
6696
6696
|
dragStartTime: r,
|
|
6697
|
-
viewport:
|
|
6697
|
+
viewport: p,
|
|
6698
6698
|
subject: c,
|
|
6699
6699
|
center: i,
|
|
6700
6700
|
shouldUseTimeDampening: n
|
|
@@ -6704,25 +6704,25 @@ var Jm = function(e, t) {
|
|
|
6704
6704
|
return;
|
|
6705
6705
|
}
|
|
6706
6706
|
}
|
|
6707
|
-
var
|
|
6707
|
+
var u = rh({
|
|
6708
6708
|
center: i,
|
|
6709
6709
|
destination: Ue(t.impact),
|
|
6710
6710
|
droppables: t.dimensions.droppables
|
|
6711
6711
|
});
|
|
6712
|
-
if (
|
|
6712
|
+
if (u) {
|
|
6713
6713
|
var f = ph({
|
|
6714
6714
|
dragStartTime: r,
|
|
6715
|
-
droppable:
|
|
6715
|
+
droppable: u,
|
|
6716
6716
|
subject: c,
|
|
6717
6717
|
center: i,
|
|
6718
6718
|
shouldUseTimeDampening: n
|
|
6719
6719
|
});
|
|
6720
|
-
f && o(
|
|
6720
|
+
f && o(u.descriptor.id, f);
|
|
6721
6721
|
}
|
|
6722
6722
|
}, fh = function(e) {
|
|
6723
6723
|
var t = e.scrollWindow, r = e.scrollDroppable, n = Cr(t), a = Cr(r), o = null, i = function(d) {
|
|
6724
6724
|
o || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fluid scroll if not dragging") : w());
|
|
6725
|
-
var
|
|
6725
|
+
var u = o, f = u.shouldUseTimeDampening, g = u.dragStartTime;
|
|
6726
6726
|
Ai({
|
|
6727
6727
|
state: d,
|
|
6728
6728
|
scrollWindow: n,
|
|
@@ -6732,7 +6732,7 @@ var Jm = function(e, t) {
|
|
|
6732
6732
|
});
|
|
6733
6733
|
}, l = function(d) {
|
|
6734
6734
|
Br(), o && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start auto scrolling when already started") : w());
|
|
6735
|
-
var
|
|
6735
|
+
var u = Date.now(), f = !1, g = function() {
|
|
6736
6736
|
f = !0;
|
|
6737
6737
|
};
|
|
6738
6738
|
Ai({
|
|
@@ -6742,7 +6742,7 @@ var Jm = function(e, t) {
|
|
|
6742
6742
|
scrollWindow: g,
|
|
6743
6743
|
scrollDroppable: g
|
|
6744
6744
|
}), o = {
|
|
6745
|
-
dragStartTime:
|
|
6745
|
+
dragStartTime: u,
|
|
6746
6746
|
shouldUseTimeDampening: f
|
|
6747
6747
|
}, Mr(), f && i(d);
|
|
6748
6748
|
}, c = function() {
|
|
@@ -6754,40 +6754,40 @@ var Jm = function(e, t) {
|
|
|
6754
6754
|
scroll: i
|
|
6755
6755
|
};
|
|
6756
6756
|
}, gh = function(e) {
|
|
6757
|
-
var t = e.move, r = e.scrollDroppable, n = e.scrollWindow, a = function(
|
|
6758
|
-
var
|
|
6757
|
+
var t = e.move, r = e.scrollDroppable, n = e.scrollWindow, a = function(p, d) {
|
|
6758
|
+
var u = ke(p.current.client.selection, d);
|
|
6759
6759
|
t({
|
|
6760
|
-
client:
|
|
6760
|
+
client: u
|
|
6761
6761
|
});
|
|
6762
|
-
}, o = function(
|
|
6763
|
-
if (!oo(
|
|
6762
|
+
}, o = function(p, d) {
|
|
6763
|
+
if (!oo(p, d))
|
|
6764
6764
|
return d;
|
|
6765
|
-
var
|
|
6766
|
-
if (!
|
|
6767
|
-
return r(
|
|
6768
|
-
var f = We(d,
|
|
6769
|
-
r(
|
|
6765
|
+
var u = dh(p, d);
|
|
6766
|
+
if (!u)
|
|
6767
|
+
return r(p.descriptor.id, d), null;
|
|
6768
|
+
var f = We(d, u);
|
|
6769
|
+
r(p.descriptor.id, f);
|
|
6770
6770
|
var g = We(d, f);
|
|
6771
6771
|
return g;
|
|
6772
|
-
}, i = function(
|
|
6773
|
-
if (!
|
|
6774
|
-
return
|
|
6775
|
-
var f = ch(d,
|
|
6772
|
+
}, i = function(p, d, u) {
|
|
6773
|
+
if (!p || !ao(d, u))
|
|
6774
|
+
return u;
|
|
6775
|
+
var f = ch(d, u);
|
|
6776
6776
|
if (!f)
|
|
6777
|
-
return n(
|
|
6778
|
-
var g = We(
|
|
6777
|
+
return n(u), null;
|
|
6778
|
+
var g = We(u, f);
|
|
6779
6779
|
n(g);
|
|
6780
|
-
var v = We(
|
|
6780
|
+
var v = We(u, g);
|
|
6781
6781
|
return v;
|
|
6782
|
-
}, l = function(
|
|
6783
|
-
var d =
|
|
6782
|
+
}, l = function(p) {
|
|
6783
|
+
var d = p.scrollJumpRequest;
|
|
6784
6784
|
if (d) {
|
|
6785
|
-
var
|
|
6786
|
-
|
|
6787
|
-
var f = o(
|
|
6785
|
+
var u = Ue(p.impact);
|
|
6786
|
+
u || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot perform a jump scroll when there is no destination") : w());
|
|
6787
|
+
var f = o(p.dimensions.droppables[u], d);
|
|
6788
6788
|
if (f) {
|
|
6789
|
-
var g =
|
|
6790
|
-
v && a(
|
|
6789
|
+
var g = p.viewport, v = i(p.isWindowScrollAllowed, g, f);
|
|
6790
|
+
v && a(p, v);
|
|
6791
6791
|
}
|
|
6792
6792
|
}
|
|
6793
6793
|
};
|
|
@@ -6800,13 +6800,13 @@ var Jm = function(e, t) {
|
|
|
6800
6800
|
move: n,
|
|
6801
6801
|
scrollWindow: r,
|
|
6802
6802
|
scrollDroppable: t
|
|
6803
|
-
}), i = function(
|
|
6804
|
-
if (
|
|
6805
|
-
if (
|
|
6806
|
-
a.scroll(
|
|
6803
|
+
}), i = function(p) {
|
|
6804
|
+
if (p.phase === "DRAGGING") {
|
|
6805
|
+
if (p.movementMode === "FLUID") {
|
|
6806
|
+
a.scroll(p);
|
|
6807
6807
|
return;
|
|
6808
6808
|
}
|
|
6809
|
-
|
|
6809
|
+
p.scrollJumpRequest && o(p);
|
|
6810
6810
|
}
|
|
6811
6811
|
}, l = {
|
|
6812
6812
|
scroll: i,
|
|
@@ -6814,29 +6814,29 @@ var Jm = function(e, t) {
|
|
|
6814
6814
|
stop: a.stop
|
|
6815
6815
|
};
|
|
6816
6816
|
return l;
|
|
6817
|
-
},
|
|
6818
|
-
var e =
|
|
6817
|
+
}, Qt = "data-rbd", Jt = function() {
|
|
6818
|
+
var e = Qt + "-drag-handle";
|
|
6819
6819
|
return {
|
|
6820
6820
|
base: e,
|
|
6821
6821
|
draggableId: e + "-draggable-id",
|
|
6822
6822
|
contextId: e + "-context-id"
|
|
6823
6823
|
};
|
|
6824
6824
|
}(), ga = function() {
|
|
6825
|
-
var e =
|
|
6825
|
+
var e = Qt + "-draggable";
|
|
6826
6826
|
return {
|
|
6827
6827
|
base: e,
|
|
6828
6828
|
contextId: e + "-context-id",
|
|
6829
6829
|
id: e + "-id"
|
|
6830
6830
|
};
|
|
6831
6831
|
}(), mh = function() {
|
|
6832
|
-
var e =
|
|
6832
|
+
var e = Qt + "-droppable";
|
|
6833
6833
|
return {
|
|
6834
6834
|
base: e,
|
|
6835
6835
|
contextId: e + "-context-id",
|
|
6836
6836
|
id: e + "-id"
|
|
6837
6837
|
};
|
|
6838
6838
|
}(), Ti = {
|
|
6839
|
-
contextId:
|
|
6839
|
+
contextId: Qt + "-scroll-container-context-id"
|
|
6840
6840
|
}, hh = function(t) {
|
|
6841
6841
|
return function(r) {
|
|
6842
6842
|
return "[" + r + '="' + t + '"]';
|
|
@@ -6853,7 +6853,7 @@ var Jm = function(e, t) {
|
|
|
6853
6853
|
cursor: grab;
|
|
6854
6854
|
`;
|
|
6855
6855
|
return {
|
|
6856
|
-
selector: t(
|
|
6856
|
+
selector: t(Jt.contextId),
|
|
6857
6857
|
styles: {
|
|
6858
6858
|
always: `
|
|
6859
6859
|
-webkit-touch-callout: none;
|
|
@@ -6913,17 +6913,17 @@ var Jm = function(e, t) {
|
|
|
6913
6913
|
function yh(e, t) {
|
|
6914
6914
|
var r = ge(function() {
|
|
6915
6915
|
return xh(e);
|
|
6916
|
-
}, [e]), n = ee(null), a = ee(null), o = X(Te(function(
|
|
6916
|
+
}, [e]), n = ee(null), a = ee(null), o = X(Te(function(u) {
|
|
6917
6917
|
var f = a.current;
|
|
6918
|
-
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.textContent =
|
|
6919
|
-
}), []), i = X(function(
|
|
6918
|
+
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.textContent = u;
|
|
6919
|
+
}), []), i = X(function(u) {
|
|
6920
6920
|
var f = n.current;
|
|
6921
|
-
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.textContent =
|
|
6921
|
+
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.textContent = u;
|
|
6922
6922
|
}, []);
|
|
6923
6923
|
He(function() {
|
|
6924
6924
|
!n.current && !a.current || (process.env.NODE_ENV !== "production" ? w(!1, "style elements already mounted") : w());
|
|
6925
|
-
var
|
|
6926
|
-
return n.current =
|
|
6925
|
+
var u = Ri(t), f = Ri(t);
|
|
6926
|
+
return n.current = u, a.current = f, u.setAttribute(Qt + "-always", e), f.setAttribute(Qt + "-dynamic", e), qn().appendChild(u), qn().appendChild(f), i(r.always), o(r.resting), function() {
|
|
6927
6927
|
var g = function(b) {
|
|
6928
6928
|
var h = b.current;
|
|
6929
6929
|
h || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot unmount ref as it is not set") : w()), qn().removeChild(h), b.current = null;
|
|
@@ -6933,21 +6933,21 @@ function yh(e, t) {
|
|
|
6933
6933
|
}, [t, i, o, r.always, r.resting, e]);
|
|
6934
6934
|
var l = X(function() {
|
|
6935
6935
|
return o(r.dragging);
|
|
6936
|
-
}, [o, r.dragging]), c = X(function(
|
|
6937
|
-
if (
|
|
6936
|
+
}, [o, r.dragging]), c = X(function(u) {
|
|
6937
|
+
if (u === "DROP") {
|
|
6938
6938
|
o(r.dropAnimating);
|
|
6939
6939
|
return;
|
|
6940
6940
|
}
|
|
6941
6941
|
o(r.userCancel);
|
|
6942
|
-
}, [o, r.dropAnimating, r.userCancel]),
|
|
6942
|
+
}, [o, r.dropAnimating, r.userCancel]), p = X(function() {
|
|
6943
6943
|
a.current && o(r.resting);
|
|
6944
6944
|
}, [o, r.resting]), d = ge(function() {
|
|
6945
6945
|
return {
|
|
6946
6946
|
dragging: l,
|
|
6947
6947
|
dropping: c,
|
|
6948
|
-
resting:
|
|
6948
|
+
resting: p
|
|
6949
6949
|
};
|
|
6950
|
-
}, [l, c,
|
|
6950
|
+
}, [l, c, p]);
|
|
6951
6951
|
return d;
|
|
6952
6952
|
}
|
|
6953
6953
|
var ql = function(e) {
|
|
@@ -6957,11 +6957,11 @@ function Lr(e) {
|
|
|
6957
6957
|
return e instanceof ql(e).HTMLElement;
|
|
6958
6958
|
}
|
|
6959
6959
|
function Yl(e, t) {
|
|
6960
|
-
var r = "[" +
|
|
6960
|
+
var r = "[" + Jt.contextId + '="' + e + '"]', n = vl(document.querySelectorAll(r));
|
|
6961
6961
|
if (!n.length)
|
|
6962
6962
|
return process.env.NODE_ENV !== "production" && we('Unable to find any drag handles in the context "' + e + '"'), null;
|
|
6963
6963
|
var a = It(n, function(o) {
|
|
6964
|
-
return o.getAttribute(
|
|
6964
|
+
return o.getAttribute(Jt.draggableId) === t;
|
|
6965
6965
|
});
|
|
6966
6966
|
return a ? Lr(a) ? a : (process.env.NODE_ENV !== "production" && we("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && we('Unable to find drag handle with id "' + t + '" as no handle with a matching id was found'), null);
|
|
6967
6967
|
}
|
|
@@ -6986,10 +6986,10 @@ function wh(e) {
|
|
|
6986
6986
|
var f = r.current;
|
|
6987
6987
|
f && i(f);
|
|
6988
6988
|
}));
|
|
6989
|
-
}, [i]),
|
|
6989
|
+
}, [i]), p = X(function(f) {
|
|
6990
6990
|
r.current = null;
|
|
6991
6991
|
var g = document.activeElement;
|
|
6992
|
-
g && g.getAttribute(
|
|
6992
|
+
g && g.getAttribute(Jt.draggableId) === f && (r.current = f);
|
|
6993
6993
|
}, []);
|
|
6994
6994
|
He(function() {
|
|
6995
6995
|
return a.current = !0, function() {
|
|
@@ -7001,11 +7001,11 @@ function wh(e) {
|
|
|
7001
7001
|
var d = ge(function() {
|
|
7002
7002
|
return {
|
|
7003
7003
|
register: o,
|
|
7004
|
-
tryRecordFocus:
|
|
7004
|
+
tryRecordFocus: p,
|
|
7005
7005
|
tryRestoreFocusRecorded: c,
|
|
7006
7006
|
tryShiftRecord: l
|
|
7007
7007
|
};
|
|
7008
|
-
}, [o,
|
|
7008
|
+
}, [o, p, c, l]);
|
|
7009
7009
|
return d;
|
|
7010
7010
|
}
|
|
7011
7011
|
function Dh() {
|
|
@@ -7013,23 +7013,23 @@ function Dh() {
|
|
|
7013
7013
|
draggables: {},
|
|
7014
7014
|
droppables: {}
|
|
7015
7015
|
}, t = [];
|
|
7016
|
-
function r(
|
|
7017
|
-
return t.push(
|
|
7018
|
-
var g = t.indexOf(
|
|
7016
|
+
function r(u) {
|
|
7017
|
+
return t.push(u), function() {
|
|
7018
|
+
var g = t.indexOf(u);
|
|
7019
7019
|
g !== -1 && t.splice(g, 1);
|
|
7020
7020
|
};
|
|
7021
7021
|
}
|
|
7022
|
-
function n(
|
|
7022
|
+
function n(u) {
|
|
7023
7023
|
t.length && t.forEach(function(f) {
|
|
7024
|
-
return f(
|
|
7024
|
+
return f(u);
|
|
7025
7025
|
});
|
|
7026
7026
|
}
|
|
7027
|
-
function a(
|
|
7028
|
-
return e.draggables[
|
|
7027
|
+
function a(u) {
|
|
7028
|
+
return e.draggables[u] || null;
|
|
7029
7029
|
}
|
|
7030
|
-
function o(
|
|
7031
|
-
var f = a(
|
|
7032
|
-
return f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find draggable entry with id [" +
|
|
7030
|
+
function o(u) {
|
|
7031
|
+
var f = a(u);
|
|
7032
|
+
return f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find draggable entry with id [" + u + "]") : w()), f;
|
|
7033
7033
|
}
|
|
7034
7034
|
var i = {
|
|
7035
7035
|
register: function(f) {
|
|
@@ -7060,14 +7060,14 @@ function Dh() {
|
|
|
7060
7060
|
});
|
|
7061
7061
|
}
|
|
7062
7062
|
};
|
|
7063
|
-
function l(
|
|
7064
|
-
return e.droppables[
|
|
7063
|
+
function l(u) {
|
|
7064
|
+
return e.droppables[u] || null;
|
|
7065
7065
|
}
|
|
7066
|
-
function c(
|
|
7067
|
-
var f = l(
|
|
7068
|
-
return f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find droppable entry with id [" +
|
|
7066
|
+
function c(u) {
|
|
7067
|
+
var f = l(u);
|
|
7068
|
+
return f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find droppable entry with id [" + u + "]") : w()), f;
|
|
7069
7069
|
}
|
|
7070
|
-
var
|
|
7070
|
+
var p = {
|
|
7071
7071
|
register: function(f) {
|
|
7072
7072
|
e.droppables[f.descriptor.id] = f;
|
|
7073
7073
|
},
|
|
@@ -7091,7 +7091,7 @@ function Dh() {
|
|
|
7091
7091
|
}
|
|
7092
7092
|
return {
|
|
7093
7093
|
draggable: i,
|
|
7094
|
-
droppable:
|
|
7094
|
+
droppable: p,
|
|
7095
7095
|
subscribe: r,
|
|
7096
7096
|
clean: d
|
|
7097
7097
|
};
|
|
@@ -7310,21 +7310,21 @@ function Xh(e) {
|
|
|
7310
7310
|
return [{
|
|
7311
7311
|
eventName: "mousemove",
|
|
7312
7312
|
fn: function(i) {
|
|
7313
|
-
var l = i.button, c = i.clientX,
|
|
7313
|
+
var l = i.button, c = i.clientX, p = i.clientY;
|
|
7314
7314
|
if (l === Ql) {
|
|
7315
7315
|
var d = {
|
|
7316
7316
|
x: c,
|
|
7317
|
-
y:
|
|
7318
|
-
},
|
|
7319
|
-
if (
|
|
7320
|
-
i.preventDefault(),
|
|
7317
|
+
y: p
|
|
7318
|
+
}, u = n();
|
|
7319
|
+
if (u.type === "DRAGGING") {
|
|
7320
|
+
i.preventDefault(), u.actions.move(d);
|
|
7321
7321
|
return;
|
|
7322
7322
|
}
|
|
7323
|
-
|
|
7324
|
-
var f =
|
|
7323
|
+
u.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot be IDLE") : w());
|
|
7324
|
+
var f = u.point;
|
|
7325
7325
|
if (Kh(f, d)) {
|
|
7326
7326
|
i.preventDefault();
|
|
7327
|
-
var g =
|
|
7327
|
+
var g = u.actions.fluidLift(d);
|
|
7328
7328
|
a({
|
|
7329
7329
|
type: "DRAGGING",
|
|
7330
7330
|
actions: g
|
|
@@ -7394,20 +7394,20 @@ function Qh(e) {
|
|
|
7394
7394
|
var t = ee(Mi), r = ee(Dt), n = ge(function() {
|
|
7395
7395
|
return {
|
|
7396
7396
|
eventName: "mousedown",
|
|
7397
|
-
fn: function(
|
|
7398
|
-
if (!
|
|
7399
|
-
var f = e.findClosestDraggableId(
|
|
7397
|
+
fn: function(u) {
|
|
7398
|
+
if (!u.defaultPrevented && u.button === Ql && !(u.ctrlKey || u.metaKey || u.shiftKey || u.altKey)) {
|
|
7399
|
+
var f = e.findClosestDraggableId(u);
|
|
7400
7400
|
if (f) {
|
|
7401
7401
|
var g = e.tryGetLock(f, i, {
|
|
7402
|
-
sourceEvent:
|
|
7402
|
+
sourceEvent: u
|
|
7403
7403
|
});
|
|
7404
7404
|
if (g) {
|
|
7405
|
-
|
|
7405
|
+
u.preventDefault();
|
|
7406
7406
|
var v = {
|
|
7407
|
-
x:
|
|
7408
|
-
y:
|
|
7407
|
+
x: u.clientX,
|
|
7408
|
+
y: u.clientY
|
|
7409
7409
|
};
|
|
7410
|
-
r.current(),
|
|
7410
|
+
r.current(), p(g, v);
|
|
7411
7411
|
}
|
|
7412
7412
|
}
|
|
7413
7413
|
}
|
|
@@ -7416,22 +7416,22 @@ function Qh(e) {
|
|
|
7416
7416
|
}, [e]), a = ge(function() {
|
|
7417
7417
|
return {
|
|
7418
7418
|
eventName: "webkitmouseforcewillbegin",
|
|
7419
|
-
fn: function(
|
|
7420
|
-
if (!
|
|
7421
|
-
var f = e.findClosestDraggableId(
|
|
7419
|
+
fn: function(u) {
|
|
7420
|
+
if (!u.defaultPrevented) {
|
|
7421
|
+
var f = e.findClosestDraggableId(u);
|
|
7422
7422
|
if (f) {
|
|
7423
7423
|
var g = e.findOptionsForDraggable(f);
|
|
7424
|
-
g && (g.shouldRespectForcePress || e.canGetLock(f) &&
|
|
7424
|
+
g && (g.shouldRespectForcePress || e.canGetLock(f) && u.preventDefault());
|
|
7425
7425
|
}
|
|
7426
7426
|
}
|
|
7427
7427
|
}
|
|
7428
7428
|
};
|
|
7429
7429
|
}, [e]), o = X(function() {
|
|
7430
|
-
var
|
|
7430
|
+
var u = {
|
|
7431
7431
|
passive: !1,
|
|
7432
7432
|
capture: !0
|
|
7433
7433
|
};
|
|
7434
|
-
r.current =
|
|
7434
|
+
r.current = Xe(window, [a, n], u);
|
|
7435
7435
|
}, [a, n]), i = X(function() {
|
|
7436
7436
|
var d = t.current;
|
|
7437
7437
|
d.type !== "IDLE" && (t.current = Mi, r.current(), o());
|
|
@@ -7441,7 +7441,7 @@ function Qh(e) {
|
|
|
7441
7441
|
shouldBlockNextClick: !0
|
|
7442
7442
|
}), d.type === "PENDING" && d.actions.abort();
|
|
7443
7443
|
}, [i]), c = X(function() {
|
|
7444
|
-
var
|
|
7444
|
+
var u = {
|
|
7445
7445
|
capture: !0,
|
|
7446
7446
|
passive: !1
|
|
7447
7447
|
}, f = Xh({
|
|
@@ -7454,12 +7454,12 @@ function Qh(e) {
|
|
|
7454
7454
|
t.current = v;
|
|
7455
7455
|
}
|
|
7456
7456
|
});
|
|
7457
|
-
r.current =
|
|
7458
|
-
}, [l, i]),
|
|
7457
|
+
r.current = Xe(window, f, u);
|
|
7458
|
+
}, [l, i]), p = X(function(u, f) {
|
|
7459
7459
|
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected to move from IDLE to PENDING drag") : w()), t.current = {
|
|
7460
7460
|
type: "PENDING",
|
|
7461
7461
|
point: f,
|
|
7462
|
-
actions:
|
|
7462
|
+
actions: u
|
|
7463
7463
|
}, c();
|
|
7464
7464
|
}, [c]);
|
|
7465
7465
|
He(function() {
|
|
@@ -7468,10 +7468,10 @@ function Qh(e) {
|
|
|
7468
7468
|
};
|
|
7469
7469
|
}, [o]);
|
|
7470
7470
|
}
|
|
7471
|
-
var
|
|
7471
|
+
var Ht;
|
|
7472
7472
|
function Jh() {
|
|
7473
7473
|
}
|
|
7474
|
-
var Zh = (
|
|
7474
|
+
var Zh = (Ht = {}, Ht[$h] = !0, Ht[Vh] = !0, Ht[Wh] = !0, Ht[Gh] = !0, Ht);
|
|
7475
7475
|
function eb(e, t) {
|
|
7476
7476
|
function r() {
|
|
7477
7477
|
t(), e.cancel();
|
|
@@ -7554,12 +7554,12 @@ function tb(e) {
|
|
|
7554
7554
|
if (!l)
|
|
7555
7555
|
return;
|
|
7556
7556
|
o.preventDefault();
|
|
7557
|
-
var c = !0,
|
|
7557
|
+
var c = !0, p = l.snapLift();
|
|
7558
7558
|
t.current();
|
|
7559
7559
|
function d() {
|
|
7560
7560
|
c || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot stop capturing a keyboard drag when not capturing") : w()), c = !1, t.current(), n();
|
|
7561
7561
|
}
|
|
7562
|
-
t.current =
|
|
7562
|
+
t.current = Xe(window, eb(p, d), {
|
|
7563
7563
|
capture: !0,
|
|
7564
7564
|
passive: !1
|
|
7565
7565
|
});
|
|
@@ -7570,7 +7570,7 @@ function tb(e) {
|
|
|
7570
7570
|
passive: !1,
|
|
7571
7571
|
capture: !0
|
|
7572
7572
|
};
|
|
7573
|
-
t.current =
|
|
7573
|
+
t.current = Xe(window, [r], o);
|
|
7574
7574
|
}, [r]);
|
|
7575
7575
|
He(function() {
|
|
7576
7576
|
return n(), function() {
|
|
@@ -7622,9 +7622,9 @@ function ob(e) {
|
|
|
7622
7622
|
return;
|
|
7623
7623
|
}
|
|
7624
7624
|
i.hasMoved = !0;
|
|
7625
|
-
var l = o.touches[0], c = l.clientX,
|
|
7625
|
+
var l = o.touches[0], c = l.clientX, p = l.clientY, d = {
|
|
7626
7626
|
x: c,
|
|
7627
|
-
y:
|
|
7627
|
+
y: p
|
|
7628
7628
|
};
|
|
7629
7629
|
o.preventDefault(), i.actions.move(d);
|
|
7630
7630
|
}
|
|
@@ -7658,12 +7658,12 @@ function ob(e) {
|
|
|
7658
7658
|
if (l) {
|
|
7659
7659
|
var c = l.force >= nb;
|
|
7660
7660
|
if (c) {
|
|
7661
|
-
var
|
|
7661
|
+
var p = i.actions.shouldRespectForcePress();
|
|
7662
7662
|
if (i.type === "PENDING") {
|
|
7663
|
-
|
|
7663
|
+
p && t();
|
|
7664
7664
|
return;
|
|
7665
7665
|
}
|
|
7666
|
-
if (
|
|
7666
|
+
if (p) {
|
|
7667
7667
|
if (i.hasMoved) {
|
|
7668
7668
|
o.preventDefault();
|
|
7669
7669
|
return;
|
|
@@ -7700,7 +7700,7 @@ function ib(e) {
|
|
|
7700
7700
|
x: m,
|
|
7701
7701
|
y: x
|
|
7702
7702
|
};
|
|
7703
|
-
r.current(),
|
|
7703
|
+
r.current(), u(b, D);
|
|
7704
7704
|
}
|
|
7705
7705
|
}
|
|
7706
7706
|
}
|
|
@@ -7711,7 +7711,7 @@ function ib(e) {
|
|
|
7711
7711
|
capture: !0,
|
|
7712
7712
|
passive: !1
|
|
7713
7713
|
};
|
|
7714
|
-
r.current =
|
|
7714
|
+
r.current = Xe(window, [o], g);
|
|
7715
7715
|
}, [o]), l = X(function() {
|
|
7716
7716
|
var f = t.current;
|
|
7717
7717
|
f.type !== "IDLE" && (f.type === "PENDING" && clearTimeout(f.longPressTimerId), a(Kn), r.current(), i());
|
|
@@ -7720,7 +7720,7 @@ function ib(e) {
|
|
|
7720
7720
|
l(), f.type === "DRAGGING" && f.actions.cancel({
|
|
7721
7721
|
shouldBlockNextClick: !0
|
|
7722
7722
|
}), f.type === "PENDING" && f.actions.abort();
|
|
7723
|
-
}, [l]),
|
|
7723
|
+
}, [l]), p = X(function() {
|
|
7724
7724
|
var g = {
|
|
7725
7725
|
capture: !0,
|
|
7726
7726
|
passive: !1
|
|
@@ -7728,7 +7728,7 @@ function ib(e) {
|
|
|
7728
7728
|
cancel: c,
|
|
7729
7729
|
completed: l,
|
|
7730
7730
|
getPhase: n
|
|
7731
|
-
}, b =
|
|
7731
|
+
}, b = Xe(window, ob(v), g), h = Xe(window, ab(v), g);
|
|
7732
7732
|
r.current = function() {
|
|
7733
7733
|
b(), h();
|
|
7734
7734
|
};
|
|
@@ -7741,7 +7741,7 @@ function ib(e) {
|
|
|
7741
7741
|
actions: v,
|
|
7742
7742
|
hasMoved: !1
|
|
7743
7743
|
});
|
|
7744
|
-
}, [n, a]),
|
|
7744
|
+
}, [n, a]), u = X(function(g, v) {
|
|
7745
7745
|
n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected to move from IDLE to PENDING drag") : w());
|
|
7746
7746
|
var b = setTimeout(d, rb);
|
|
7747
7747
|
a({
|
|
@@ -7749,8 +7749,8 @@ function ib(e) {
|
|
|
7749
7749
|
point: v,
|
|
7750
7750
|
actions: g,
|
|
7751
7751
|
longPressTimerId: b
|
|
7752
|
-
}),
|
|
7753
|
-
}, [
|
|
7752
|
+
}), p();
|
|
7753
|
+
}, [p, n, a, d]);
|
|
7754
7754
|
He(function() {
|
|
7755
7755
|
return i(), function() {
|
|
7756
7756
|
r.current();
|
|
@@ -7758,7 +7758,7 @@ function ib(e) {
|
|
|
7758
7758
|
v.type === "PENDING" && (clearTimeout(v.longPressTimerId), a(Kn));
|
|
7759
7759
|
};
|
|
7760
7760
|
}, [n, i, a]), He(function() {
|
|
7761
|
-
var g =
|
|
7761
|
+
var g = Xe(window, [{
|
|
7762
7762
|
eventName: "touchmove",
|
|
7763
7763
|
fn: function() {
|
|
7764
7764
|
},
|
|
@@ -7823,7 +7823,7 @@ function fb(e, t) {
|
|
|
7823
7823
|
return e.closest ? e.closest(t) : Zl(e, t);
|
|
7824
7824
|
}
|
|
7825
7825
|
function gb(e) {
|
|
7826
|
-
return "[" +
|
|
7826
|
+
return "[" + Jt.contextId + '="' + e + '"]';
|
|
7827
7827
|
}
|
|
7828
7828
|
function vb(e, t) {
|
|
7829
7829
|
var r = t.target;
|
|
@@ -7834,7 +7834,7 @@ function vb(e, t) {
|
|
|
7834
7834
|
}
|
|
7835
7835
|
function mb(e, t) {
|
|
7836
7836
|
var r = vb(e, t);
|
|
7837
|
-
return r ? r.getAttribute(
|
|
7837
|
+
return r ? r.getAttribute(Jt.draggableId) : null;
|
|
7838
7838
|
}
|
|
7839
7839
|
function hb(e, t) {
|
|
7840
7840
|
var r = "[" + ga.contextId + '="' + e + '"]', n = vl(document.querySelectorAll(r)), a = It(n, function(o) {
|
|
@@ -7883,17 +7883,17 @@ function xb(e) {
|
|
|
7883
7883
|
});
|
|
7884
7884
|
if (!c)
|
|
7885
7885
|
return null;
|
|
7886
|
-
var
|
|
7886
|
+
var p = a.draggable.getById(o), d = hb(r, p.descriptor.id);
|
|
7887
7887
|
if (!d)
|
|
7888
7888
|
return process.env.NODE_ENV !== "production" && we("Unable to find draggable element with id: " + o), null;
|
|
7889
|
-
if (l && !
|
|
7889
|
+
if (l && !p.options.canDragInteractiveElements && cb(d, l))
|
|
7890
7890
|
return null;
|
|
7891
|
-
var
|
|
7891
|
+
var u = t.claim(i || Dt), f = "PRE_DRAG";
|
|
7892
7892
|
function g() {
|
|
7893
|
-
return
|
|
7893
|
+
return p.options.shouldRespectForcePress;
|
|
7894
7894
|
}
|
|
7895
7895
|
function v() {
|
|
7896
|
-
return t.isActive(
|
|
7896
|
+
return t.isActive(u);
|
|
7897
7897
|
}
|
|
7898
7898
|
function b(S, j) {
|
|
7899
7899
|
qr({
|
|
@@ -7913,7 +7913,7 @@ function xb(e) {
|
|
|
7913
7913
|
if (A === void 0 && (A = {
|
|
7914
7914
|
shouldBlockNextClick: !1
|
|
7915
7915
|
}), S.cleanup(), A.shouldBlockNextClick) {
|
|
7916
|
-
var k =
|
|
7916
|
+
var k = Xe(window, [{
|
|
7917
7917
|
eventName: "click",
|
|
7918
7918
|
fn: bb,
|
|
7919
7919
|
options: {
|
|
@@ -8036,7 +8036,7 @@ function wb(e) {
|
|
|
8036
8036
|
}, [l, r, c]), He(function() {
|
|
8037
8037
|
return l.tryAbandon;
|
|
8038
8038
|
}, [l.tryAbandon]);
|
|
8039
|
-
var
|
|
8039
|
+
var p = X(function(m) {
|
|
8040
8040
|
return ec({
|
|
8041
8041
|
lockAPI: l,
|
|
8042
8042
|
registry: n,
|
|
@@ -8053,7 +8053,7 @@ function wb(e) {
|
|
|
8053
8053
|
forceSensorStop: x,
|
|
8054
8054
|
sourceEvent: D && D.sourceEvent ? D.sourceEvent : null
|
|
8055
8055
|
});
|
|
8056
|
-
}, [t, l, n, r]),
|
|
8056
|
+
}, [t, l, n, r]), u = X(function(m) {
|
|
8057
8057
|
return mb(t, m);
|
|
8058
8058
|
}, [t]), f = X(function(m) {
|
|
8059
8059
|
var x = n.draggable.findById(m);
|
|
@@ -8062,14 +8062,14 @@ function wb(e) {
|
|
|
8062
8062
|
l.isClaimed() && (l.tryAbandon(), r.getState().phase !== "IDLE" && r.dispatch(Ja()));
|
|
8063
8063
|
}, [l, r]), v = X(l.isClaimed, [l]), b = ge(function() {
|
|
8064
8064
|
return {
|
|
8065
|
-
canGetLock:
|
|
8065
|
+
canGetLock: p,
|
|
8066
8066
|
tryGetLock: d,
|
|
8067
|
-
findClosestDraggableId:
|
|
8067
|
+
findClosestDraggableId: u,
|
|
8068
8068
|
findOptionsForDraggable: f,
|
|
8069
8069
|
tryReleaseLock: g,
|
|
8070
8070
|
isLockClaimed: v
|
|
8071
8071
|
};
|
|
8072
|
-
}, [
|
|
8072
|
+
}, [p, d, u, f, g, v]);
|
|
8073
8073
|
sb(i);
|
|
8074
8074
|
for (var h = 0; h < i.length; h++)
|
|
8075
8075
|
i[h](b);
|
|
@@ -8091,10 +8091,10 @@ function Nb(e) {
|
|
|
8091
8091
|
Bh();
|
|
8092
8092
|
var l = co(e), c = X(function() {
|
|
8093
8093
|
return Db(l.current);
|
|
8094
|
-
}, [l]),
|
|
8094
|
+
}, [l]), p = Eh(t), d = _h({
|
|
8095
8095
|
contextId: t,
|
|
8096
8096
|
text: o
|
|
8097
|
-
}),
|
|
8097
|
+
}), u = yh(t, a), f = X(function(E) {
|
|
8098
8098
|
gr(i).dispatch(E);
|
|
8099
8099
|
}, []), g = ge(function() {
|
|
8100
8100
|
return Zo({
|
|
@@ -8115,14 +8115,14 @@ function Nb(e) {
|
|
|
8115
8115
|
}, f)));
|
|
8116
8116
|
}, [b.scrollDroppable, f]), m = wh(t), x = ge(function() {
|
|
8117
8117
|
return Ym({
|
|
8118
|
-
announce:
|
|
8118
|
+
announce: p,
|
|
8119
8119
|
autoScroller: h,
|
|
8120
8120
|
dimensionMarshal: b,
|
|
8121
8121
|
focusMarshal: m,
|
|
8122
8122
|
getResponders: c,
|
|
8123
|
-
styleMarshal:
|
|
8123
|
+
styleMarshal: u
|
|
8124
8124
|
});
|
|
8125
|
-
}, [
|
|
8125
|
+
}, [p, h, b, m, c, u]);
|
|
8126
8126
|
process.env.NODE_ENV !== "production" && i.current && i.current !== x && process.env.NODE_ENV !== "production" && we("unexpected store change"), i.current = x;
|
|
8127
8127
|
var D = X(function() {
|
|
8128
8128
|
var E = gr(i), A = E.getState();
|
|
@@ -8255,7 +8255,7 @@ var po = function(t) {
|
|
|
8255
8255
|
isFixedOnPage: r
|
|
8256
8256
|
};
|
|
8257
8257
|
}, kb = function(e) {
|
|
8258
|
-
var t = e.descriptor, r = e.isEnabled, n = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, i = e.client, l = e.page, c = e.closest,
|
|
8258
|
+
var t = e.descriptor, r = e.isEnabled, n = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, i = e.client, l = e.page, c = e.closest, p = function() {
|
|
8259
8259
|
if (!c)
|
|
8260
8260
|
return null;
|
|
8261
8261
|
var g = c.scrollSize, v = c.client, b = Vl({
|
|
@@ -8279,11 +8279,11 @@ var po = function(t) {
|
|
|
8279
8279
|
}
|
|
8280
8280
|
}
|
|
8281
8281
|
};
|
|
8282
|
-
}(), d = o === "vertical" ? qa : yl,
|
|
8282
|
+
}(), d = o === "vertical" ? qa : yl, u = Xt({
|
|
8283
8283
|
page: l,
|
|
8284
8284
|
withPlaceholder: null,
|
|
8285
8285
|
axis: d,
|
|
8286
|
-
frame:
|
|
8286
|
+
frame: p
|
|
8287
8287
|
}), f = {
|
|
8288
8288
|
descriptor: t,
|
|
8289
8289
|
isCombineEnabled: n,
|
|
@@ -8292,8 +8292,8 @@ var po = function(t) {
|
|
|
8292
8292
|
isEnabled: r,
|
|
8293
8293
|
client: i,
|
|
8294
8294
|
page: l,
|
|
8295
|
-
frame:
|
|
8296
|
-
subject:
|
|
8295
|
+
frame: p,
|
|
8296
|
+
subject: u
|
|
8297
8297
|
};
|
|
8298
8298
|
return f;
|
|
8299
8299
|
}, Bb = function(t, r) {
|
|
@@ -8305,25 +8305,25 @@ var po = function(t) {
|
|
|
8305
8305
|
right: l,
|
|
8306
8306
|
bottom: i,
|
|
8307
8307
|
left: o
|
|
8308
|
-
},
|
|
8309
|
-
borderBox:
|
|
8308
|
+
}, p = Ga(c, n.border), d = Wa({
|
|
8309
|
+
borderBox: p,
|
|
8310
8310
|
margin: n.margin,
|
|
8311
8311
|
border: n.border,
|
|
8312
8312
|
padding: n.padding
|
|
8313
8313
|
});
|
|
8314
8314
|
return d;
|
|
8315
8315
|
}, Mb = function(e) {
|
|
8316
|
-
var t = e.ref, r = e.descriptor, n = e.env, a = e.windowScroll, o = e.direction, i = e.isDropDisabled, l = e.isCombineEnabled, c = e.shouldClipSubject,
|
|
8317
|
-
if (!
|
|
8316
|
+
var t = e.ref, r = e.descriptor, n = e.env, a = e.windowScroll, o = e.direction, i = e.isDropDisabled, l = e.isCombineEnabled, c = e.shouldClipSubject, p = n.closestScrollable, d = Bb(t, p), u = cn(d, a), f = function() {
|
|
8317
|
+
if (!p)
|
|
8318
8318
|
return null;
|
|
8319
|
-
var v = dl(
|
|
8320
|
-
scrollHeight:
|
|
8321
|
-
scrollWidth:
|
|
8319
|
+
var v = dl(p), b = {
|
|
8320
|
+
scrollHeight: p.scrollHeight,
|
|
8321
|
+
scrollWidth: p.scrollWidth
|
|
8322
8322
|
};
|
|
8323
8323
|
return {
|
|
8324
8324
|
client: v,
|
|
8325
8325
|
page: cn(v, a),
|
|
8326
|
-
scroll: va(
|
|
8326
|
+
scroll: va(p),
|
|
8327
8327
|
scrollSize: b,
|
|
8328
8328
|
shouldClipSubject: c
|
|
8329
8329
|
};
|
|
@@ -8334,7 +8334,7 @@ var po = function(t) {
|
|
|
8334
8334
|
isFixedOnPage: n.isFixedOnPage,
|
|
8335
8335
|
direction: o,
|
|
8336
8336
|
client: d,
|
|
8337
|
-
page:
|
|
8337
|
+
page: u,
|
|
8338
8338
|
closest: f
|
|
8339
8339
|
});
|
|
8340
8340
|
return g;
|
|
@@ -8359,7 +8359,7 @@ function Vb(e) {
|
|
|
8359
8359
|
type: e.type,
|
|
8360
8360
|
mode: e.mode
|
|
8361
8361
|
};
|
|
8362
|
-
}, [e.droppableId, e.mode, e.type]), c = ee(l),
|
|
8362
|
+
}, [e.droppableId, e.mode, e.type]), c = ee(l), p = ge(function() {
|
|
8363
8363
|
return Te(function(N, y) {
|
|
8364
8364
|
t.current || (process.env.NODE_ENV !== "production" ? w(!1, "Can only update scroll when dragging") : w());
|
|
8365
8365
|
var S = {
|
|
@@ -8371,21 +8371,21 @@ function Vb(e) {
|
|
|
8371
8371
|
}, [l.id, o]), d = X(function() {
|
|
8372
8372
|
var N = t.current;
|
|
8373
8373
|
return !N || !N.env.closestScrollable ? Re : va(N.env.closestScrollable);
|
|
8374
|
-
}, []),
|
|
8374
|
+
}, []), u = X(function() {
|
|
8375
8375
|
var N = d();
|
|
8376
|
-
|
|
8377
|
-
}, [d,
|
|
8378
|
-
return Cr(
|
|
8379
|
-
}, [
|
|
8376
|
+
p(N.x, N.y);
|
|
8377
|
+
}, [d, p]), f = ge(function() {
|
|
8378
|
+
return Cr(u);
|
|
8379
|
+
}, [u]), g = X(function() {
|
|
8380
8380
|
var N = t.current, y = Yr(N);
|
|
8381
8381
|
N && y || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find scroll options while scrolling") : w());
|
|
8382
8382
|
var S = N.scrollOptions;
|
|
8383
8383
|
if (S.shouldPublishImmediately) {
|
|
8384
|
-
|
|
8384
|
+
u();
|
|
8385
8385
|
return;
|
|
8386
8386
|
}
|
|
8387
8387
|
f();
|
|
8388
|
-
}, [f,
|
|
8388
|
+
}, [f, u]), v = X(function(N, y) {
|
|
8389
8389
|
t.current && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect a droppable while a drag is occurring") : w());
|
|
8390
8390
|
var S = i.current, j = S.getDroppableRef();
|
|
8391
8391
|
j || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect without a droppable ref") : w());
|
|
@@ -8481,21 +8481,21 @@ var Vi = {
|
|
|
8481
8481
|
function Wb(e) {
|
|
8482
8482
|
var t = ee(null), r = X(function() {
|
|
8483
8483
|
t.current && (clearTimeout(t.current), t.current = null);
|
|
8484
|
-
}, []), n = e.animate, a = e.onTransitionEnd, o = e.onClose, i = e.contextId, l = F(e.animate === "open"), c = l[0],
|
|
8484
|
+
}, []), n = e.animate, a = e.onTransitionEnd, o = e.onClose, i = e.contextId, l = F(e.animate === "open"), c = l[0], p = l[1];
|
|
8485
8485
|
W(function() {
|
|
8486
|
-
return c ? n !== "open" ? (r(),
|
|
8487
|
-
t.current = null,
|
|
8486
|
+
return c ? n !== "open" ? (r(), p(!1), Xn) : t.current ? Xn : (t.current = setTimeout(function() {
|
|
8487
|
+
t.current = null, p(!1);
|
|
8488
8488
|
}), r) : Xn;
|
|
8489
8489
|
}, [n, c, r]);
|
|
8490
8490
|
var d = X(function(f) {
|
|
8491
8491
|
f.propertyName === "height" && (a(), n === "close" && o());
|
|
8492
|
-
}, [n, o, a]),
|
|
8492
|
+
}, [n, o, a]), u = Gb({
|
|
8493
8493
|
isAnimatingOpenOnMount: c,
|
|
8494
8494
|
animate: e.animate,
|
|
8495
8495
|
placeholder: e.placeholder
|
|
8496
8496
|
});
|
|
8497
8497
|
return se.createElement(e.placeholder.tagName, {
|
|
8498
|
-
style:
|
|
8498
|
+
style: u,
|
|
8499
8499
|
"data-rbd-placeholder-context-id": i,
|
|
8500
8500
|
onTransitionEnd: d,
|
|
8501
8501
|
ref: e.innerRef
|
|
@@ -8607,7 +8607,7 @@ var Kb = function(e) {
|
|
|
8607
8607
|
return t.forceShouldAnimate != null ? t.forceShouldAnimate : t.mode === "SNAP";
|
|
8608
8608
|
};
|
|
8609
8609
|
function Zb(e) {
|
|
8610
|
-
var t = e.dimension, r = t.client, n = e.offset, a = e.combineWith, o = e.dropping, i = !!a, l = Jb(e), c = !!o,
|
|
8610
|
+
var t = e.dimension, r = t.client, n = e.offset, a = e.combineWith, o = e.dropping, i = !!a, l = Jb(e), c = !!o, p = c ? pa.drop(n, i) : pa.moveTo(n), d = {
|
|
8611
8611
|
position: "fixed",
|
|
8612
8612
|
top: r.marginBox.top,
|
|
8613
8613
|
left: r.marginBox.left,
|
|
@@ -8615,7 +8615,7 @@ function Zb(e) {
|
|
|
8615
8615
|
width: r.borderBox.width,
|
|
8616
8616
|
height: r.borderBox.height,
|
|
8617
8617
|
transition: Xb(l, o),
|
|
8618
|
-
transform:
|
|
8618
|
+
transform: p,
|
|
8619
8619
|
opacity: Qb(i, c),
|
|
8620
8620
|
zIndex: c ? $i.dropAnimating : $i.dragging,
|
|
8621
8621
|
pointerEvents: "none"
|
|
@@ -8640,14 +8640,14 @@ function rx(e, t, r) {
|
|
|
8640
8640
|
}, c = {
|
|
8641
8641
|
x: o.marginBox.width,
|
|
8642
8642
|
y: o.marginBox.height
|
|
8643
|
-
},
|
|
8643
|
+
}, p = {
|
|
8644
8644
|
descriptor: e,
|
|
8645
8645
|
placeholder: l,
|
|
8646
8646
|
displaceBy: c,
|
|
8647
8647
|
client: o,
|
|
8648
8648
|
page: i
|
|
8649
8649
|
};
|
|
8650
|
-
return
|
|
8650
|
+
return p;
|
|
8651
8651
|
}
|
|
8652
8652
|
function nx(e) {
|
|
8653
8653
|
var t = so("draggable"), r = e.descriptor, n = e.registry, a = e.getDraggableRef, o = e.canDragInteractiveElements, i = e.shouldRespectForcePress, l = e.isEnabled, c = ge(function() {
|
|
@@ -8656,7 +8656,7 @@ function nx(e) {
|
|
|
8656
8656
|
shouldRespectForcePress: i,
|
|
8657
8657
|
isEnabled: l
|
|
8658
8658
|
};
|
|
8659
|
-
}, [o, l, i]),
|
|
8659
|
+
}, [o, l, i]), p = X(function(g) {
|
|
8660
8660
|
var v = a();
|
|
8661
8661
|
return v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot get dimension when no ref is set") : w()), rx(r, v, g);
|
|
8662
8662
|
}, [r, a]), d = ge(function() {
|
|
@@ -8664,20 +8664,20 @@ function nx(e) {
|
|
|
8664
8664
|
uniqueId: t,
|
|
8665
8665
|
descriptor: r,
|
|
8666
8666
|
options: c,
|
|
8667
|
-
getDimension:
|
|
8667
|
+
getDimension: p
|
|
8668
8668
|
};
|
|
8669
|
-
}, [r,
|
|
8669
|
+
}, [r, p, c, t]), u = ee(d), f = ee(!0);
|
|
8670
8670
|
He(function() {
|
|
8671
|
-
return n.draggable.register(
|
|
8672
|
-
return n.draggable.unregister(
|
|
8671
|
+
return n.draggable.register(u.current), function() {
|
|
8672
|
+
return n.draggable.unregister(u.current);
|
|
8673
8673
|
};
|
|
8674
8674
|
}, [n.draggable]), He(function() {
|
|
8675
8675
|
if (f.current) {
|
|
8676
8676
|
f.current = !1;
|
|
8677
8677
|
return;
|
|
8678
8678
|
}
|
|
8679
|
-
var g =
|
|
8680
|
-
|
|
8679
|
+
var g = u.current;
|
|
8680
|
+
u.current = d, n.draggable.update(d, g);
|
|
8681
8681
|
}, [d, n.draggable]);
|
|
8682
8682
|
}
|
|
8683
8683
|
function ax(e, t, r) {
|
|
@@ -8706,25 +8706,25 @@ function sx(e) {
|
|
|
8706
8706
|
t.current = E;
|
|
8707
8707
|
}, []), n = X(function() {
|
|
8708
8708
|
return t.current;
|
|
8709
|
-
}, []), a = fn(Sn), o = a.contextId, i = a.dragHandleUsageInstructionsId, l = a.registry, c = fn(fo),
|
|
8709
|
+
}, []), a = fn(Sn), o = a.contextId, i = a.dragHandleUsageInstructionsId, l = a.registry, c = fn(fo), p = c.type, d = c.droppableId, u = ge(function() {
|
|
8710
8710
|
return {
|
|
8711
8711
|
id: e.draggableId,
|
|
8712
8712
|
index: e.index,
|
|
8713
|
-
type:
|
|
8713
|
+
type: p,
|
|
8714
8714
|
droppableId: d
|
|
8715
8715
|
};
|
|
8716
|
-
}, [e.draggableId, e.index,
|
|
8716
|
+
}, [e.draggableId, e.index, p, d]), f = e.children, g = e.draggableId, v = e.isEnabled, b = e.shouldRespectForcePress, h = e.canDragInteractiveElements, m = e.isClone, x = e.mapped, D = e.dropAnimationFinished;
|
|
8717
8717
|
if (ax(e, o, n), ox(m), !m) {
|
|
8718
8718
|
var N = ge(function() {
|
|
8719
8719
|
return {
|
|
8720
|
-
descriptor:
|
|
8720
|
+
descriptor: u,
|
|
8721
8721
|
registry: l,
|
|
8722
8722
|
getDraggableRef: n,
|
|
8723
8723
|
canDragInteractiveElements: h,
|
|
8724
8724
|
shouldRespectForcePress: b,
|
|
8725
8725
|
isEnabled: v
|
|
8726
8726
|
};
|
|
8727
|
-
}, [
|
|
8727
|
+
}, [u, l, n, h, b, v]);
|
|
8728
8728
|
nx(N);
|
|
8729
8729
|
}
|
|
8730
8730
|
var y = ge(function() {
|
|
@@ -8753,14 +8753,14 @@ function sx(e) {
|
|
|
8753
8753
|
return k;
|
|
8754
8754
|
}, [o, y, g, x, S, r]), O = ge(function() {
|
|
8755
8755
|
return {
|
|
8756
|
-
draggableId:
|
|
8757
|
-
type:
|
|
8756
|
+
draggableId: u.id,
|
|
8757
|
+
type: u.type,
|
|
8758
8758
|
source: {
|
|
8759
|
-
index:
|
|
8760
|
-
droppableId:
|
|
8759
|
+
index: u.index,
|
|
8760
|
+
droppableId: u.droppableId
|
|
8761
8761
|
}
|
|
8762
8762
|
};
|
|
8763
|
-
}, [
|
|
8763
|
+
}, [u.droppableId, u.id, u.index, u.type]);
|
|
8764
8764
|
return f(j, x.snapshot, O);
|
|
8765
8765
|
}
|
|
8766
8766
|
var ac = function(e, t) {
|
|
@@ -8790,26 +8790,26 @@ function dx() {
|
|
|
8790
8790
|
combineWith: l,
|
|
8791
8791
|
combineTargetFor: null
|
|
8792
8792
|
};
|
|
8793
|
-
}), r = Te(function(a, o, i, l, c,
|
|
8793
|
+
}), r = Te(function(a, o, i, l, c, p, d) {
|
|
8794
8794
|
return {
|
|
8795
8795
|
mapped: {
|
|
8796
8796
|
type: "DRAGGING",
|
|
8797
8797
|
dropping: null,
|
|
8798
8798
|
draggingOver: c,
|
|
8799
|
-
combineWith:
|
|
8799
|
+
combineWith: p,
|
|
8800
8800
|
mode: o,
|
|
8801
8801
|
offset: a,
|
|
8802
8802
|
dimension: i,
|
|
8803
8803
|
forceShouldAnimate: d,
|
|
8804
|
-
snapshot: t(o, l, c,
|
|
8804
|
+
snapshot: t(o, l, c, p, null)
|
|
8805
8805
|
}
|
|
8806
8806
|
};
|
|
8807
8807
|
}), n = function(o, i) {
|
|
8808
8808
|
if (o.isDragging) {
|
|
8809
8809
|
if (o.critical.draggable.id !== i.draggableId)
|
|
8810
8810
|
return null;
|
|
8811
|
-
var l = o.current.client.offset, c = o.dimensions.draggables[i.draggableId],
|
|
8812
|
-
return r(e(l.x, l.y), o.movementMode, c, i.isClone,
|
|
8811
|
+
var l = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], p = Ue(o.impact), d = cx(o.impact), u = o.forceShouldAnimate;
|
|
8812
|
+
return r(e(l.x, l.y), o.movementMode, c, i.isClone, p, d, u);
|
|
8813
8813
|
}
|
|
8814
8814
|
if (o.phase === "DROP_ANIMATING") {
|
|
8815
8815
|
var f = o.completed;
|
|
@@ -8879,26 +8879,26 @@ function px() {
|
|
|
8879
8879
|
};
|
|
8880
8880
|
}), n = function(l) {
|
|
8881
8881
|
return l ? r(Re, l, !0) : null;
|
|
8882
|
-
}, a = function(l, c,
|
|
8883
|
-
var
|
|
8884
|
-
if (!
|
|
8882
|
+
}, a = function(l, c, p, d) {
|
|
8883
|
+
var u = p.displaced.visible[l], f = !!(d.inVirtualList && d.effected[l]), g = wn(p), v = g && g.draggableId === l ? c : null;
|
|
8884
|
+
if (!u) {
|
|
8885
8885
|
if (!f)
|
|
8886
8886
|
return n(v);
|
|
8887
|
-
if (
|
|
8887
|
+
if (p.displaced.invisible[l])
|
|
8888
8888
|
return null;
|
|
8889
8889
|
var b = nr(d.displacedBy.point), h = e(b.x, b.y);
|
|
8890
8890
|
return r(h, v, !0);
|
|
8891
8891
|
}
|
|
8892
8892
|
if (f)
|
|
8893
8893
|
return n(v);
|
|
8894
|
-
var m =
|
|
8895
|
-
return r(x, v,
|
|
8894
|
+
var m = p.displacedBy.point, x = e(m.x, m.y);
|
|
8895
|
+
return r(x, v, u.shouldAnimate);
|
|
8896
8896
|
}, o = function(l, c) {
|
|
8897
8897
|
if (l.isDragging)
|
|
8898
8898
|
return l.critical.draggable.id === c.draggableId ? null : a(c.draggableId, l.critical.draggable.id, l.impact, l.afterCritical);
|
|
8899
8899
|
if (l.phase === "DROP_ANIMATING") {
|
|
8900
|
-
var
|
|
8901
|
-
return
|
|
8900
|
+
var p = l.completed;
|
|
8901
|
+
return p.result.draggableId === c.draggableId ? null : a(c.draggableId, p.result.draggableId, p.impact, p.afterCritical);
|
|
8902
8902
|
}
|
|
8903
8903
|
return null;
|
|
8904
8904
|
};
|
|
@@ -8932,7 +8932,7 @@ function mx(e) {
|
|
|
8932
8932
|
function hx(e) {
|
|
8933
8933
|
var t = z(Sn);
|
|
8934
8934
|
t || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find app context") : w());
|
|
8935
|
-
var r = t.contextId, n = t.isMovementAllowed, a = ee(null), o = ee(null), i = e.children, l = e.droppableId, c = e.type,
|
|
8935
|
+
var r = t.contextId, n = t.isMovementAllowed, a = ee(null), o = ee(null), i = e.children, l = e.droppableId, c = e.type, p = e.mode, d = e.direction, u = e.ignoreContainerClipping, f = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot, b = e.useClone, h = e.updateViewportMaxScroll, m = e.getContainerForClone, x = X(function() {
|
|
8936
8936
|
return a.current;
|
|
8937
8937
|
}, []), D = X(function(L) {
|
|
8938
8938
|
a.current = L;
|
|
@@ -8954,11 +8954,11 @@ function hx(e) {
|
|
|
8954
8954
|
Vb({
|
|
8955
8955
|
droppableId: l,
|
|
8956
8956
|
type: c,
|
|
8957
|
-
mode:
|
|
8957
|
+
mode: p,
|
|
8958
8958
|
direction: d,
|
|
8959
8959
|
isDropDisabled: f,
|
|
8960
8960
|
isCombineEnabled: g,
|
|
8961
|
-
ignoreContainerClipping:
|
|
8961
|
+
ignoreContainerClipping: u,
|
|
8962
8962
|
getDroppableRef: x
|
|
8963
8963
|
});
|
|
8964
8964
|
var j = se.createElement(Kb, {
|
|
@@ -9035,11 +9035,11 @@ var Zn = function(t, r) {
|
|
|
9035
9035
|
droppableId: i.droppableId
|
|
9036
9036
|
}
|
|
9037
9037
|
};
|
|
9038
|
-
}), a = Te(function(i, l, c,
|
|
9038
|
+
}), a = Te(function(i, l, c, p, d, u) {
|
|
9039
9039
|
var f = d.descriptor.id, g = d.descriptor.droppableId === i;
|
|
9040
9040
|
if (g) {
|
|
9041
|
-
var v =
|
|
9042
|
-
render:
|
|
9041
|
+
var v = u ? {
|
|
9042
|
+
render: u,
|
|
9043
9043
|
dragging: n(d.descriptor)
|
|
9044
9044
|
} : null, b = {
|
|
9045
9045
|
isDraggingOver: c,
|
|
@@ -9056,7 +9056,7 @@ var Zn = function(t, r) {
|
|
|
9056
9056
|
}
|
|
9057
9057
|
if (!l)
|
|
9058
9058
|
return r;
|
|
9059
|
-
if (!
|
|
9059
|
+
if (!p)
|
|
9060
9060
|
return t;
|
|
9061
9061
|
var h = {
|
|
9062
9062
|
isDraggingOver: c,
|
|
@@ -9071,26 +9071,26 @@ var Zn = function(t, r) {
|
|
|
9071
9071
|
useClone: null
|
|
9072
9072
|
};
|
|
9073
9073
|
}), o = function(l, c) {
|
|
9074
|
-
var
|
|
9074
|
+
var p = c.droppableId, d = c.type, u = !c.isDropDisabled, f = c.renderClone;
|
|
9075
9075
|
if (l.isDragging) {
|
|
9076
9076
|
var g = l.critical;
|
|
9077
9077
|
if (!Zn(d, g))
|
|
9078
9078
|
return r;
|
|
9079
|
-
var v = Gi(g, l.dimensions), b = Ue(l.impact) ===
|
|
9080
|
-
return a(
|
|
9079
|
+
var v = Gi(g, l.dimensions), b = Ue(l.impact) === p;
|
|
9080
|
+
return a(p, u, b, b, v, f);
|
|
9081
9081
|
}
|
|
9082
9082
|
if (l.phase === "DROP_ANIMATING") {
|
|
9083
9083
|
var h = l.completed;
|
|
9084
9084
|
if (!Zn(d, h.critical))
|
|
9085
9085
|
return r;
|
|
9086
9086
|
var m = Gi(h.critical, l.dimensions);
|
|
9087
|
-
return a(
|
|
9087
|
+
return a(p, u, oc(h.result) === p, Ue(h.impact) === p, m, f);
|
|
9088
9088
|
}
|
|
9089
9089
|
if (l.phase === "IDLE" && l.completed && !l.shouldFlush) {
|
|
9090
9090
|
var x = l.completed;
|
|
9091
9091
|
if (!Zn(d, x.critical))
|
|
9092
9092
|
return r;
|
|
9093
|
-
var D = Ue(x.impact) ===
|
|
9093
|
+
var D = Ue(x.impact) === p, N = !!(x.impact.at && x.impact.at.type === "COMBINE"), y = x.critical.droppable.id === p;
|
|
9094
9094
|
return D ? N ? t : r : y ? t : r;
|
|
9095
9095
|
}
|
|
9096
9096
|
return r;
|
|
@@ -9262,7 +9262,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9262
9262
|
indicators: Wx,
|
|
9263
9263
|
left: Ux,
|
|
9264
9264
|
right: Hx
|
|
9265
|
-
}, zx = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken:
|
|
9265
|
+
}, zx = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: p, placeholder: d, ImgComponent: u = uc, onChangeOrder: f }) => {
|
|
9266
9266
|
const g = Wd(), [v, b] = F(r);
|
|
9267
9267
|
W(() => {
|
|
9268
9268
|
b(r);
|
|
@@ -9331,16 +9331,16 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9331
9331
|
v.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(Q, { variant: "body", children: o ?? "No photos available" }) }),
|
|
9332
9332
|
x && /* @__PURE__ */ s.jsxs("div", { className: Me.photoContainer, children: [
|
|
9333
9333
|
/* @__PURE__ */ s.jsx("div", { role: D ? "button" : void 0, className: I("align-items-start", Me.navButton, Me.left), onClick: () => D && m((E) => E - 1), children: D && /* @__PURE__ */ s.jsx(ya, { style: { fontSize: "40px" } }) }),
|
|
9334
|
-
/* @__PURE__ */ s.jsx(
|
|
9334
|
+
/* @__PURE__ */ s.jsx(u, { src: x.lgSrc, alt: x.alt, className: I("rounded", Me.photo), baseUrl: c, customToken: p, placeholder: d, renderAsDivBg: !0 }),
|
|
9335
9335
|
/* @__PURE__ */ s.jsx("div", { role: N ? "button" : void 0, className: I("align-items-end", Me.navButton, Me.right), onClick: () => N && m((E) => E + 1), children: N && /* @__PURE__ */ s.jsx(wa, { style: { fontSize: "40px" } }) })
|
|
9336
9336
|
] }),
|
|
9337
9337
|
/* @__PURE__ */ s.jsx("div", { className: I("d-flex justify-content-center", Me.photosPreviewContainer), children: /* @__PURE__ */ s.jsx(Eb, { onDragEnd: j, children: /* @__PURE__ */ s.jsx(Px, { droppableId: "droppable", direction: "horizontal", children: (E) => /* @__PURE__ */ s.jsxs("div", { ...E.droppableProps, ref: E.innerRef, className: Me.photosPreview, children: [
|
|
9338
9338
|
v.map((A, k) => /* @__PURE__ */ s.jsx(mx, { draggableId: A.id, index: k, isDragDisabled: f === void 0, children: g((L) => {
|
|
9339
9339
|
var C;
|
|
9340
9340
|
return /* @__PURE__ */ s.jsxs("div", { ref: L.innerRef, ...L.draggableProps, ...L.dragHandleProps, role: "button", onClick: () => m(k), className: I(Me.lightboxDraggablePhoto), children: [
|
|
9341
|
-
/* @__PURE__ */ s.jsx(
|
|
9341
|
+
/* @__PURE__ */ s.jsx(u, { role: k !== h ? "button" : void 0, src: A.smSrc, alt: A.alt, className: I("rounded", Me.photo, {
|
|
9342
9342
|
[Me.selected]: k === h
|
|
9343
|
-
}), baseUrl: c, customToken:
|
|
9343
|
+
}), baseUrl: c, customToken: p, placeholder: d }, A.id),
|
|
9344
9344
|
A.isDefault || A.customIndicators && A.customIndicators.length > 0 ? /* @__PURE__ */ s.jsxs("div", { className: I(Me.indicators, "gap-1"), children: [
|
|
9345
9345
|
A.isDefault && /* @__PURE__ */ s.jsx("div", { className: "text-primary", children: /* @__PURE__ */ s.jsx(dd, {}) }),
|
|
9346
9346
|
(C = A.customIndicators) == null ? void 0 : C.map((Z, Y) => (
|
|
@@ -9354,7 +9354,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9354
9354
|
] }) }) }) })
|
|
9355
9355
|
] }) })
|
|
9356
9356
|
] });
|
|
9357
|
-
}, qx = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: n, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c = uc, noLightboxOnlyButtonOnEmpty:
|
|
9357
|
+
}, qx = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: n, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c = uc, noLightboxOnlyButtonOnEmpty: p = !1, hideLightbox: d = !1, onChangeOrder: u }) => {
|
|
9358
9358
|
const [f, g] = F(null), v = f !== null ? e[f] : null, [b, h] = F(!1);
|
|
9359
9359
|
return W(() => {
|
|
9360
9360
|
if (e.length === 0) {
|
|
@@ -9363,7 +9363,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9363
9363
|
}
|
|
9364
9364
|
const m = e.findIndex((x) => x.isDefault);
|
|
9365
9365
|
g(m > -1 ? m : 0);
|
|
9366
|
-
}, [e]), !v && t &&
|
|
9366
|
+
}, [e]), !v && t && p ? /* @__PURE__ */ s.jsx(fs, { accept: ".jpg,.jpeg,.png", onUpload: (m) => {
|
|
9367
9367
|
m.length > 0 && t(Array.from(m));
|
|
9368
9368
|
}, icon: /* @__PURE__ */ s.jsx(gs, { style: { fontSize: 18 } }), multiple: !0, children: r ?? null }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9369
9369
|
v ? /* @__PURE__ */ s.jsxs("div", { role: "button", className: "w-100 position-relative", onClick: () => h(!0), children: [
|
|
@@ -9376,11 +9376,11 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9376
9376
|
background: "rgba(105,105,105,0.5)"
|
|
9377
9377
|
}, children: /* @__PURE__ */ s.jsx(ud, { fontSize: 24 }) })
|
|
9378
9378
|
] }) : /* @__PURE__ */ s.jsx(Ge, { text: r ?? "", placement: "left", children: /* @__PURE__ */ s.jsx("div", { role: "button", className: I("rounded p-3 d-flex justify-content-center"), onClick: () => h(!0), children: /* @__PURE__ */ s.jsx("img", { src: l, alt: "placeholder", className: "rounded w-25" }) }) }),
|
|
9379
|
-
/* @__PURE__ */ s.jsx(zx, { show: b && !d, onClose: () => h(!1), photos: e, defaultIndex: f ?? 0, uploadPhotosText: r, noPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c, onChangeOrder:
|
|
9379
|
+
/* @__PURE__ */ s.jsx(zx, { show: b && !d, onClose: () => h(!1), photos: e, defaultIndex: f ?? 0, uploadPhotosText: r, noPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c, onChangeOrder: u })
|
|
9380
9380
|
] });
|
|
9381
9381
|
}, Hw = ({ children: e }) => {
|
|
9382
|
-
var c,
|
|
9383
|
-
const { useMsal: t, msalScopes: r, msalExtraScopes: n } = z(pd), { isAuthenticated: a } = fd(), { userLoginState: o } = z(jt), i = o.state === gd.LOGGING_IN, l = o.user && ((c = o.user) == null ? void 0 : c.permissions) && ((d = (
|
|
9382
|
+
var c, p, d;
|
|
9383
|
+
const { useMsal: t, msalScopes: r, msalExtraScopes: n } = z(pd), { isAuthenticated: a } = fd(), { userLoginState: o } = z(jt), i = o.state === gd.LOGGING_IN, l = o.user && ((c = o.user) == null ? void 0 : c.permissions) && ((d = (p = o.user) == null ? void 0 : p.permissions) == null ? void 0 : d.length) > 0;
|
|
9384
9384
|
return t ? /* @__PURE__ */ s.jsx(Bd, { interactionType: kd.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: n }, children: i || !a() ? /* @__PURE__ */ s.jsx(bo, {}) : o.user ? l ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(Gr, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(Gr, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ s.jsx(bo, {}) : !a() || !o.user ? /* @__PURE__ */ s.jsx(Gr, { to: "/login", replace: !0 }) : l ? e : /* @__PURE__ */ s.jsx(Gr, { to: "/user-not-permitted", replace: !0 });
|
|
9385
9385
|
}, Yx = "_item_z9z4m_1", Kx = "_level-success_z9z4m_4", Xx = "_level-info_z9z4m_10", Qx = "_level-warning_z9z4m_16", Jx = "_level-danger_z9z4m_22", Zx = "_type-icon_z9z4m_28", ea = {
|
|
9386
9386
|
item: Yx,
|
|
@@ -9457,27 +9457,27 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9457
9457
|
/* @__PURE__ */ s.jsx("div", { className: I("text-primary", Tt.stepIcon), children: r.icon ?? /* @__PURE__ */ s.jsx(vd, {}) })
|
|
9458
9458
|
] }) })
|
|
9459
9459
|
] }, n)) }), py = (e, t, r, n = !0) => {
|
|
9460
|
-
const a = ct({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = F(!1), [l, c] = F(null),
|
|
9460
|
+
const a = ct({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = F(!1), [l, c] = F(null), p = P(async (d) => {
|
|
9461
9461
|
i(!0), c(null), a.get(e, {
|
|
9462
9462
|
signal: d,
|
|
9463
9463
|
responseType: "blob"
|
|
9464
|
-
}).then((
|
|
9465
|
-
i(!1), c(
|
|
9464
|
+
}).then((u) => {
|
|
9465
|
+
i(!1), c(u.data);
|
|
9466
9466
|
}).catch(() => {
|
|
9467
9467
|
i(!1), c(null);
|
|
9468
9468
|
});
|
|
9469
9469
|
}, [a, e]);
|
|
9470
9470
|
return W(() => {
|
|
9471
9471
|
const d = new AbortController();
|
|
9472
|
-
return
|
|
9472
|
+
return p(d.signal), () => {
|
|
9473
9473
|
d.abort();
|
|
9474
9474
|
};
|
|
9475
|
-
}, [
|
|
9475
|
+
}, [p]), { data: l, setData: c, reloadData: p, isLoading: o };
|
|
9476
9476
|
}, Ui = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, renderAsDivBg: o, ...i }) => {
|
|
9477
|
-
const { data: l } = py(e, r, n), [c,
|
|
9477
|
+
const { data: l } = py(e, r, n), [c, p] = F(null);
|
|
9478
9478
|
return W(() => {
|
|
9479
9479
|
let d = null;
|
|
9480
|
-
return l !== null ? (d = URL.createObjectURL(l),
|
|
9480
|
+
return l !== null ? (d = URL.createObjectURL(l), p(d)) : p(null), () => {
|
|
9481
9481
|
d !== null && URL.revokeObjectURL(d);
|
|
9482
9482
|
};
|
|
9483
9483
|
}, [l]), c === null && !a ? null : o ? /* @__PURE__ */ s.jsx("div", { ...i, style: {
|
|
@@ -9525,15 +9525,15 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9525
9525
|
r((c) => {
|
|
9526
9526
|
if (l === null)
|
|
9527
9527
|
return c;
|
|
9528
|
-
const
|
|
9528
|
+
const p = new Date(l);
|
|
9529
9529
|
if (e === "D") {
|
|
9530
|
-
const d = wt(
|
|
9530
|
+
const d = wt(p.toISOString());
|
|
9531
9531
|
return {
|
|
9532
9532
|
from: d,
|
|
9533
9533
|
to: d
|
|
9534
9534
|
};
|
|
9535
9535
|
}
|
|
9536
|
-
return e === "M" ? en(
|
|
9536
|
+
return e === "M" ? en(p) : e === "Y" ? br(p) : c;
|
|
9537
9537
|
});
|
|
9538
9538
|
break;
|
|
9539
9539
|
case "to":
|
|
@@ -9546,7 +9546,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9546
9546
|
return l;
|
|
9547
9547
|
const c = new Date(l.from);
|
|
9548
9548
|
c.setHours(c.getHours() - c.getTimezoneOffset() / 60);
|
|
9549
|
-
const
|
|
9549
|
+
const p = new Date(l.to);
|
|
9550
9550
|
if (e === "D") {
|
|
9551
9551
|
c.setDate(c.getDate() + i);
|
|
9552
9552
|
const d = wt(c.toISOString());
|
|
@@ -9557,7 +9557,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9557
9557
|
}
|
|
9558
9558
|
return e === "M" ? (c.setMonth(c.getMonth() + i), en(c)) : e === "Y" ? (c.setFullYear(c.getFullYear() + i), br(c)) : {
|
|
9559
9559
|
from: wt(c.toISOString()),
|
|
9560
|
-
to: wt(
|
|
9560
|
+
to: wt(p.toISOString())
|
|
9561
9561
|
};
|
|
9562
9562
|
});
|
|
9563
9563
|
}, [e, r]), o = P((i) => {
|
|
@@ -9575,30 +9575,30 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9575
9575
|
}, [r, t]);
|
|
9576
9576
|
return { setFromToProp: n, handleArrowClick: a, handleRangeChange: o };
|
|
9577
9577
|
}, qw = ({ fromtoState: [e, t], className: r, size: n }) => {
|
|
9578
|
-
const { texts: { date: a }, ProjectIconComponent: o } = z(ce), [i, l] = F("C"), { handleArrowClick: c, handleRangeChange:
|
|
9578
|
+
const { texts: { date: a }, ProjectIconComponent: o } = z(ce), [i, l] = F("C"), { handleArrowClick: c, handleRangeChange: p, setFromToProp: d } = by(i, l, t), u = M(() => i === "C", [i]), f = ee(!0);
|
|
9579
9579
|
return W(() => {
|
|
9580
9580
|
if (f.current) {
|
|
9581
9581
|
const g = hy(e.from, e.to);
|
|
9582
9582
|
l(g), f.current = !1;
|
|
9583
9583
|
}
|
|
9584
9584
|
}, [e.from, e.to]), /* @__PURE__ */ s.jsxs("div", { className: I("d-inline-flex align-items-center gap-1", zi.wrapper, zi[n ?? "md"], r), children: [
|
|
9585
|
-
/* @__PURE__ */ s.jsx(oe, { disabled:
|
|
9585
|
+
/* @__PURE__ */ s.jsx(oe, { disabled: u, onClick: () => {
|
|
9586
9586
|
c(-1);
|
|
9587
9587
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-left" }) }),
|
|
9588
9588
|
/* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
9589
9589
|
/* @__PURE__ */ s.jsx(st, { type: "date", value: e.from, onChange: (g) => d("from", g === null ? null : g.toString()), InputContainer: tt, size: n }),
|
|
9590
|
-
/* @__PURE__ */ s.jsx(tr, { toggle: /* @__PURE__ */ s.jsx(rr, { text: a[Hi.find((g) => g[0] === i)[1]].substring(0, 1), as: bd }), children: Hi.map((g) => /* @__PURE__ */ s.jsx(rt, { disabled: g[0] === i, className: I(g[0] === i ? "text-black-50" : ""), onClick: () =>
|
|
9590
|
+
/* @__PURE__ */ s.jsx(tr, { toggle: /* @__PURE__ */ s.jsx(rr, { text: a[Hi.find((g) => g[0] === i)[1]].substring(0, 1), as: bd }), children: Hi.map((g) => /* @__PURE__ */ s.jsx(rt, { disabled: g[0] === i, className: I(g[0] === i ? "text-black-50" : ""), onClick: () => p(g[0]), role: "button", children: a[g[1]] }, g[0])) }),
|
|
9591
9591
|
/* @__PURE__ */ s.jsx(st, { type: "date", value: e.to, onChange: (g) => d("to", g === null ? null : g.toString()), InputContainer: tt, size: n })
|
|
9592
9592
|
] }) }),
|
|
9593
|
-
/* @__PURE__ */ s.jsx(oe, { disabled:
|
|
9593
|
+
/* @__PURE__ */ s.jsx(oe, { disabled: u, onClick: () => {
|
|
9594
9594
|
c(1);
|
|
9595
9595
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-right" }) })
|
|
9596
9596
|
] });
|
|
9597
9597
|
}, Yw = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: n }) => {
|
|
9598
|
-
const { localizationContext: a } = z(ce), { dateFnsLocale: o } = z(a), { searchParams: i, setSearch: l } = Ud(), c = i.get(t),
|
|
9599
|
-
l(t, na(
|
|
9598
|
+
const { localizationContext: a } = z(ce), { dateFnsLocale: o } = z(a), { searchParams: i, setSearch: l } = Ud(), c = i.get(t), p = c ? Ft(c) : e, d = P((u) => {
|
|
9599
|
+
l(t, na(u, { representation: "date" }));
|
|
9600
9600
|
}, [t, l]);
|
|
9601
|
-
return /* @__PURE__ */ s.jsx(hu, { month:
|
|
9601
|
+
return /* @__PURE__ */ s.jsx(hu, { month: p, onChangeMonth: d, locale: o, yearMin: r, yearMax: n });
|
|
9602
9602
|
}, Kw = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
|
|
9603
9603
|
const [n, a] = xs(t, na(e, { representation: "date" })), o = n ? Ft(n) : e, i = P((l) => {
|
|
9604
9604
|
a(na(l, { representation: "date" }));
|
|
@@ -9635,8 +9635,8 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9635
9635
|
}, xy = ({ val: e, translateKey: t, data: r }) => {
|
|
9636
9636
|
var l, c;
|
|
9637
9637
|
const n = e.point.id.split("."), a = n[0], o = Number(n[1]), i = M(() => {
|
|
9638
|
-
const
|
|
9639
|
-
return { transform: `translate(${
|
|
9638
|
+
const p = e.point.x < 100 ? "56%" : "-56%", d = e.point.y < 60 ? "70px" : "8px";
|
|
9639
|
+
return { transform: `translate(${p}, ${d})` };
|
|
9640
9640
|
}, [e.point.x, e.point.y]);
|
|
9641
9641
|
return /* @__PURE__ */ s.jsxs("div", { className: "bg-white shadow-sm px-2 py-1 rounded", style: i, children: [
|
|
9642
9642
|
/* @__PURE__ */ s.jsx(Q, { variant: "body", children: t(e.point.serieId) }),
|
|
@@ -9649,7 +9649,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9649
9649
|
] })
|
|
9650
9650
|
] });
|
|
9651
9651
|
}, Qw = ({ data: e, xKey: t, yKeys: r, translateKey: n, usePercentageValue: a = !1, variant: o = "default", legendPosition: i, noSort: l = !1 }) => {
|
|
9652
|
-
const { chartColorPalette: c } = z(ce), [
|
|
9652
|
+
const { chartColorPalette: c } = z(ce), [p, d] = F(/* @__PURE__ */ new Set()), u = (y) => {
|
|
9653
9653
|
d((S) => {
|
|
9654
9654
|
const j = new Set(S);
|
|
9655
9655
|
return j.has(y.id) ? j.delete(y.id) : j.add(y.id), j;
|
|
@@ -9698,9 +9698,9 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9698
9698
|
id: y,
|
|
9699
9699
|
label: n(y),
|
|
9700
9700
|
color: c == null ? void 0 : c[S],
|
|
9701
|
-
hidden:
|
|
9701
|
+
hidden: p.has(y)
|
|
9702
9702
|
})),
|
|
9703
|
-
onClick:
|
|
9703
|
+
onClick: u,
|
|
9704
9704
|
anchor: x,
|
|
9705
9705
|
direction: x === "right" ? "column" : "row",
|
|
9706
9706
|
toggleSerie: !0,
|
|
@@ -9793,19 +9793,19 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9793
9793
|
stickyBottom: Ay
|
|
9794
9794
|
}, Ty = "_input_pxkkh_1", ut = {
|
|
9795
9795
|
input: Ty
|
|
9796
|
-
}, fc = ({ type: e, value: t, field: r, isPrimary: n, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon:
|
|
9796
|
+
}, fc = ({ type: e, value: t, field: r, isPrimary: n, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon: p, clearValue: d, customPickers: u }) => {
|
|
9797
9797
|
var f;
|
|
9798
9798
|
switch (e) {
|
|
9799
9799
|
case "NUM":
|
|
9800
|
-
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(nn, { withoutLabel: !0, InputContainer: tt, className: ut.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, g === null ? null : Number(g)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !
|
|
9800
|
+
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(nn, { withoutLabel: !0, InputContainer: tt, className: ut.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, g === null ? null : Number(g)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(st, { withoutLabel: !0, InputContainer: tt, className: ut.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (g) => c(r, g === null ? null : Number(g)), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
9801
9801
|
case "STR":
|
|
9802
|
-
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(nn, { withoutLabel: !0, InputContainer: tt, className: ut.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !
|
|
9802
|
+
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(nn, { withoutLabel: !0, InputContainer: tt, className: ut.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(st, { withoutLabel: !0, InputContainer: tt, className: I(ut.input, ut.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
9803
9803
|
case "BIT":
|
|
9804
9804
|
return /* @__PURE__ */ s.jsx(ia, { InputContainer: tt, className: ut.input, value: t === !0, onChange: (g) => c(r, g), disabled: a ? !0 : n ? !o : !1 });
|
|
9805
9805
|
case "DT":
|
|
9806
|
-
return /* @__PURE__ */ s.jsx(st, { withoutLabel: !0, InputContainer: tt, className: ut.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !
|
|
9806
|
+
return /* @__PURE__ */ s.jsx(st, { withoutLabel: !0, InputContainer: tt, className: ut.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
9807
9807
|
default: {
|
|
9808
|
-
const g =
|
|
9808
|
+
const g = u == null ? void 0 : u.find((v) => v.type === e);
|
|
9809
9809
|
return g ? /* @__PURE__ */ s.jsx(g.picker, { className: I(ut.input, ut.longer), value: t ? {
|
|
9810
9810
|
id: (t == null ? void 0 : t.toString()) ?? null,
|
|
9811
9811
|
name: ((f = i == null ? void 0 : i.find((v) => {
|
|
@@ -9828,44 +9828,44 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9828
9828
|
}
|
|
9829
9829
|
}
|
|
9830
9830
|
}, Ry = ({ schema: e, columns: t, setColumns: r, initialItem: n, onEdit: a, onDelete: o, customPickers: i }) => {
|
|
9831
|
-
const { ProjectIconComponent: l } = z(ce), [c,
|
|
9832
|
-
console.log("changeValue", g, v),
|
|
9831
|
+
const { ProjectIconComponent: l } = z(ce), [c, p] = F(n), d = P((g, v) => {
|
|
9832
|
+
console.log("changeValue", g, v), p((b) => ({
|
|
9833
9833
|
...b,
|
|
9834
9834
|
[g]: {
|
|
9835
9835
|
...b[g],
|
|
9836
9836
|
value: v
|
|
9837
9837
|
}
|
|
9838
9838
|
}));
|
|
9839
|
-
}, []),
|
|
9839
|
+
}, []), u = (g) => (g == null ? void 0 : g.value) !== (g == null ? void 0 : g.defaultValue), f = P(() => Object.keys(c).some((g) => u(c[g])), [c]);
|
|
9840
9840
|
return W(() => {
|
|
9841
|
-
|
|
9841
|
+
p(n);
|
|
9842
9842
|
}, [n]), /* @__PURE__ */ s.jsxs("tr", { className: I("table-row", ye.tableRow), children: [
|
|
9843
9843
|
/* @__PURE__ */ s.jsx("td", { className: I("table-cell", ye.tableCell, ye.stickyFirst), children: f() && /* @__PURE__ */ s.jsx(oe, { color: "success", onClick: () => a(pc(c)), children: /* @__PURE__ */ s.jsx(l, { icon: "check" }) }) }),
|
|
9844
9844
|
t.map((g) => {
|
|
9845
9845
|
var v, b;
|
|
9846
9846
|
return /* @__PURE__ */ s.jsx("td", { className: I("table-cell", ye.tableCell), children: /* @__PURE__ */ s.jsx(fc, { type: g.type, value: (v = c[g.field ?? ""]) == null ? void 0 : v.value, field: g.field, isReadonly: g.readOnly, isPrimary: e.primaryKey === g.field, valuesForSelect: g.valuesForSelect, addValueToValuesForSelect: (h) => {
|
|
9847
9847
|
r(t.map((m) => m.field === g.field ? { ...m, valuesForSelect: [...m.valuesForSelect ?? [], h] } : m));
|
|
9848
|
-
}, onChangeHandler: d, hideClearIcon: !
|
|
9848
|
+
}, onChangeHandler: d, hideClearIcon: !u(c[g.field ?? ""]), clearValue: (b = c[g.field ?? ""].defaultValue) == null ? void 0 : b.toString(), customPickers: i }) }, `${e.id}-${g.field}`);
|
|
9849
9849
|
}),
|
|
9850
9850
|
/* @__PURE__ */ s.jsx("td", { className: I("table-cell", ye.tableCell, ye.stickyLast), children: /* @__PURE__ */ s.jsx(oe, { color: "danger", onClick: () => o(c[e.primaryKey ?? ""].value), children: /* @__PURE__ */ s.jsx(l, { icon: "delete" }) }) })
|
|
9851
9851
|
] });
|
|
9852
9852
|
}, ky = ({ schema: e, columns: t, setColumns: r, onCreate: n, customPickers: a }) => {
|
|
9853
9853
|
const { ProjectIconComponent: o } = z(ce), [i, l] = F(null), c = P(() => {
|
|
9854
|
-
var
|
|
9854
|
+
var u;
|
|
9855
9855
|
const d = {};
|
|
9856
|
-
(
|
|
9856
|
+
(u = e.columns) == null || u.forEach((f) => {
|
|
9857
9857
|
const g = f.type === "BIT" ? !1 : f.type === "NUM" ? null : f.type === "STR" ? "" : null;
|
|
9858
9858
|
d[f.field ?? ""] = {
|
|
9859
9859
|
value: g,
|
|
9860
9860
|
defaultValue: g
|
|
9861
9861
|
};
|
|
9862
9862
|
}), l(d);
|
|
9863
|
-
}, [e]),
|
|
9863
|
+
}, [e]), p = P((d, u) => {
|
|
9864
9864
|
l((f) => f && {
|
|
9865
9865
|
...f,
|
|
9866
9866
|
[d]: {
|
|
9867
9867
|
...f[d],
|
|
9868
|
-
value:
|
|
9868
|
+
value: u
|
|
9869
9869
|
}
|
|
9870
9870
|
});
|
|
9871
9871
|
}, []);
|
|
@@ -9874,9 +9874,9 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9874
9874
|
const d = pc(i);
|
|
9875
9875
|
d && await n(d) && l(null);
|
|
9876
9876
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "check" }) }) }),
|
|
9877
|
-
t.map((d) => /* @__PURE__ */ s.jsx("td", { children: /* @__PURE__ */ s.jsx(fc, { type: d.type, value: i[d.field ?? ""].value, field: d.field, isReadonly: d.readOnly, isPrimary: e.primaryKey === d.field, valuesForSelect: d.valuesForSelect, addValueToValuesForSelect: (
|
|
9878
|
-
r(t.map((f) => f.field === d.field ? { ...f, valuesForSelect: [...f.valuesForSelect ?? [],
|
|
9879
|
-
}, onChangeHandler:
|
|
9877
|
+
t.map((d) => /* @__PURE__ */ s.jsx("td", { children: /* @__PURE__ */ s.jsx(fc, { type: d.type, value: i[d.field ?? ""].value, field: d.field, isReadonly: d.readOnly, isPrimary: e.primaryKey === d.field, valuesForSelect: d.valuesForSelect, addValueToValuesForSelect: (u) => {
|
|
9878
|
+
r(t.map((f) => f.field === d.field ? { ...f, valuesForSelect: [...f.valuesForSelect ?? [], u] } : f));
|
|
9879
|
+
}, onChangeHandler: p, primaryEditable: !0, customPickers: a }) }, `${e.id}-${d.field}`)),
|
|
9880
9880
|
/* @__PURE__ */ s.jsx("td", { className: "sticky-last", children: /* @__PURE__ */ s.jsx(oe, { color: "danger", onClick: () => l(null), children: /* @__PURE__ */ s.jsx(o, { icon: "cancel" }) }) })
|
|
9881
9881
|
] }) : /* @__PURE__ */ s.jsxs("tr", { className: "sticky-bottom shadow", children: [
|
|
9882
9882
|
/* @__PURE__ */ s.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ s.jsx(oe, { onClick: c, children: /* @__PURE__ */ s.jsx(o, { icon: "add" }) }) }),
|
|
@@ -9934,7 +9934,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9934
9934
|
] }) }),
|
|
9935
9935
|
/* @__PURE__ */ s.jsx(Fy, { cellRef: o, defaultWidth: i })
|
|
9936
9936
|
] });
|
|
9937
|
-
}, Gy = ({ schema: e, items: t, onEditItem: r, onDeleteItem: n, onCreateItem: a, filters: o, setFilter: i, sortByField: l, sortByType: c, setSortBy:
|
|
9937
|
+
}, Gy = ({ schema: e, items: t, onEditItem: r, onDeleteItem: n, onCreateItem: a, filters: o, setFilter: i, sortByField: l, sortByType: c, setSortBy: p, selectedMaster: d, customPickers: u }) => {
|
|
9938
9938
|
const { texts: { dynamicForms: f } } = z(ce), [g, v] = F([]);
|
|
9939
9939
|
return W(() => {
|
|
9940
9940
|
var b, h, m;
|
|
@@ -9956,7 +9956,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9956
9956
|
/* @__PURE__ */ s.jsxs("thead", { className: I("text-nowrap table-header", ye.stickyTop, ye.tableHeader), children: [
|
|
9957
9957
|
/* @__PURE__ */ s.jsxs("tr", { className: I("table-row", ye.tableRow), children: [
|
|
9958
9958
|
/* @__PURE__ */ s.jsx("th", { className: I("table-head", ye.tableHead, ye.actionColumn, ye.stickyFirst) }),
|
|
9959
|
-
g.map((b) => /* @__PURE__ */ s.jsx($y, { column: b, sortByField: l, sortByType: c, setSortBy:
|
|
9959
|
+
g.map((b) => /* @__PURE__ */ s.jsx($y, { column: b, sortByField: l, sortByType: c, setSortBy: p }, `${e.id}-${b.field}`)),
|
|
9960
9960
|
/* @__PURE__ */ s.jsx("th", { className: I("table-head", ye.tableHead, ye.actionColumn, ye.stickyLast) })
|
|
9961
9961
|
] }),
|
|
9962
9962
|
/* @__PURE__ */ s.jsxs("tr", { className: I("table-row filters-row", ye.tableRow, ye.filtersRow), children: [
|
|
@@ -9969,8 +9969,8 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9969
9969
|
] })
|
|
9970
9970
|
] }),
|
|
9971
9971
|
/* @__PURE__ */ s.jsxs("tbody", { className: I("table-body", ye.tableBody), children: [
|
|
9972
|
-
t.filter((b) => b[e.primaryKey ?? ""]).map((b) => /* @__PURE__ */ s.jsx(Ry, { schema: e, columns: g, setColumns: v, initialItem: b, onEdit: r, onDelete: n, customPickers:
|
|
9973
|
-
/* @__PURE__ */ s.jsx(ky, { schema: e, columns: g, setColumns: v, onCreate: a, customPickers:
|
|
9972
|
+
t.filter((b) => b[e.primaryKey ?? ""]).map((b) => /* @__PURE__ */ s.jsx(Ry, { schema: e, columns: g, setColumns: v, initialItem: b, onEdit: r, onDelete: n, customPickers: u }, `${e.id}-${b[e.primaryKey ?? ""].value}`)),
|
|
9973
|
+
/* @__PURE__ */ s.jsx(ky, { schema: e, columns: g, setColumns: v, onCreate: a, customPickers: u })
|
|
9974
9974
|
] })
|
|
9975
9975
|
] });
|
|
9976
9976
|
}, Wy = ({ master: e, onChange: t, options: r, label: n }) => /* @__PURE__ */ s.jsx("div", { style: { minWidth: "200px" }, children: /* @__PURE__ */ s.jsx(nn, { label: n, value: e, onChange: (a) => t(a ? a.toString() : null), options: r, size: "sm" }) }), Uy = "_pagination_gujwe_1", Yi = {
|
|
@@ -9984,17 +9984,17 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9984
9984
|
apiItemDelete: "/dynamicForms/delete",
|
|
9985
9985
|
apiItemCreate: "/dynamicForms/insert",
|
|
9986
9986
|
apiExportGet: "/dynamicForms/export"
|
|
9987
|
-
}, Jw = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Ki.appDetail } = Ki, apiUrls: { apiSchemaGet:
|
|
9988
|
-
var me, de, Be, Ze, et,
|
|
9987
|
+
}, Jw = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Ki.appDetail } = Ki, apiUrls: { apiSchemaGet: p = Rt.apiSchemaGet, apiDataGet: d = Rt.apiDataGet, apiItemPost: u = Rt.apiItemPost, apiItemDelete: f = Rt.apiItemDelete, apiItemCreate: g = Rt.apiItemCreate, apiExportGet: v = Rt.apiExportGet } = Rt, customPickers: b }) => {
|
|
9988
|
+
var me, de, Be, Ze, et, Wt;
|
|
9989
9989
|
const { texts: { dynamicForms: h }, ProjectIconComponent: m } = z(ce), x = ct(), { startLoading: D, stopLoading: N } = z(er), [y, S] = F(null), [j, O] = F(null), [E, A] = F(null), [k, L] = F(null), [C, Z] = F(!1), { addNotification: Y } = Ca(), [B, R] = F([]), { confirm: $ } = Ar(), V = 20, q = V + 1, K = k ? Math.ceil(k.length / V) : 1, re = t ? t > 1 : !1, ae = t ? t < K : !1, ie = t ? (t - 1) * V : 0, H = t ? t * V : V, U = M(() => k ? k.length > q : !1, [k, q]), pe = M(() => U ? (k == null ? void 0 : k.slice(ie, H)) ?? null : k ?? null, [U, k, ie, H]), [le, De] = F(null);
|
|
9990
9990
|
W(() => {
|
|
9991
9991
|
S(null), O(null), Z(!1), R([]), De(null);
|
|
9992
9992
|
}, [e]);
|
|
9993
9993
|
const Ie = P(async () => {
|
|
9994
|
-
D("dynamicFormSchema"), await x.get(`${
|
|
9994
|
+
D("dynamicFormSchema"), await x.get(`${p}?id=${e}`).then(({ data: ne }) => {
|
|
9995
9995
|
S(ne), N("dynamicFormSchema");
|
|
9996
9996
|
}).catch(() => N("dynamicFormSchema"));
|
|
9997
|
-
}, [x, e, D, N,
|
|
9997
|
+
}, [x, e, D, N, p]), _ = P(async () => {
|
|
9998
9998
|
var ne;
|
|
9999
9999
|
if (!(y === null || ((ne = y.id) == null ? void 0 : ne.toString()) !== e)) {
|
|
10000
10000
|
if (y.masterReference && !le) {
|
|
@@ -10017,7 +10017,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10017
10017
|
y === null || ((ne = y.id) == null ? void 0 : ne.toString()) !== e || y.masterReference && !le || (D("dynamicFormExport"), await x.get(`${v}?id=${e}&showArchive=${C}${y.masterReference ? `&master=${le}` : ""}`, {
|
|
10018
10018
|
responseType: "blob"
|
|
10019
10019
|
}).then((ve) => wd(ve, { fallbackName: `export-${e}` })).finally(() => N("dynamicFormExport")));
|
|
10020
|
-
}, [x, e, y, D, N, C, le, v]), Ce = P(async (ne) => (D("dynamicFormEdit"), x.post(`${
|
|
10020
|
+
}, [x, e, y, D, N, C, le, v]), Ce = P(async (ne) => (D("dynamicFormEdit"), x.post(`${u}?id=${e}`, ne).then(() => (N("dynamicFormEdit"), R([]), !0)).catch((ve) => (N("dynamicFormEdit"), R(jn(ve)), !1))), [x, e, D, N, u]), Le = P(async (ne) => (D("dynamicFormDelete"), x.delete(`${f}?id=${e}&pk=${ne}`).then(() => (N("dynamicFormDelete"), R([]), !0)).catch((ve) => (N("dynamicFormDelete"), R(jn(ve)), !1))), [x, e, D, N, f]), qe = P(async (ne) => (D("dynamicFormCreate"), x.post(`${g}?id=${e}`, ne).then(({ data: ve }) => (N("dynamicFormCreate"), R([]), ve)).catch((ve) => (N("dynamicFormCreate"), R(jn(ve)), null))), [x, e, D, N, g]), vt = P(async (ne) => {
|
|
10021
10021
|
y && await Ce(y.masterReference ? { ...ne, [y.masterReferenceColumn ?? ""]: le } : ne) && (Y(h.editSuccess, "success"), O((ve) => ve && ve.map((Se) => {
|
|
10022
10022
|
var he;
|
|
10023
10023
|
return ((he = Se[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : he.value) === ne[(y == null ? void 0 : y.primaryKey) ?? ""] ? qi(ne, y) : Se;
|
|
@@ -10030,14 +10030,14 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10030
10030
|
}, [Y, Le, h, $, y]), T = P(async (ne) => {
|
|
10031
10031
|
if (!y)
|
|
10032
10032
|
return !1;
|
|
10033
|
-
const ve = await
|
|
10033
|
+
const ve = await qe(y.masterReference ? { ...ne, [y.masterReferenceColumn ?? ""]: le } : ne);
|
|
10034
10034
|
if (ve !== null) {
|
|
10035
10035
|
Y(h.createSuccess, "success");
|
|
10036
10036
|
const Se = qi(ne, y);
|
|
10037
10037
|
return Se[(y == null ? void 0 : y.primaryKey) ?? ""] = { value: ve, defaultValue: ve }, O((he) => [...he ?? [], Se]), !0;
|
|
10038
10038
|
}
|
|
10039
10039
|
return !1;
|
|
10040
|
-
}, [Y,
|
|
10040
|
+
}, [Y, qe, h, y, le]), J = (ne) => {
|
|
10041
10041
|
ne > K ? r(K) : ne < 1 && r(1), r(ne);
|
|
10042
10042
|
}, ue = P(() => {
|
|
10043
10043
|
if (!j || !y) {
|
|
@@ -10134,7 +10134,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10134
10134
|
var ve;
|
|
10135
10135
|
return /* @__PURE__ */ s.jsx(pt, { as: "link", href: `${yr(c, { id: (ve = ne.id) == null ? void 0 : ve.toString() })}?type=dynamic-form`, children: ne.name }, ne.id);
|
|
10136
10136
|
}) }),
|
|
10137
|
-
y != null && y.masterReference && !le ? /* @__PURE__ */ s.jsx(vn, { variant: "warning", children: h.selectMaster(((
|
|
10137
|
+
y != null && y.masterReference && !le ? /* @__PURE__ */ s.jsx(vn, { variant: "warning", children: h.selectMaster(((Wt = (et = y.columns) == null ? void 0 : et.find((ne) => ne.field === y.masterReferenceColumn)) == null ? void 0 : Wt.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10138
10138
|
y && B.length > 0 && /* @__PURE__ */ s.jsx("div", { className: "mb-2", children: /* @__PURE__ */ s.jsx(yy, { errors: B, schema: y }) }),
|
|
10139
10139
|
y && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10140
10140
|
/* @__PURE__ */ s.jsx("div", { className: I("rounded border overflow-auto", Yi.tableContainer), children: /* @__PURE__ */ s.jsx(Gy, { schema: y, items: !U && k && (k == null ? void 0 : k.length) > q ? [] : (U ? pe : k) ?? [], onEditItem: vt, onDeleteItem: G, onCreateItem: T, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, selectedMaster: (le == null ? void 0 : le.toString()) ?? null, customPickers: b }) }),
|
|
@@ -10163,7 +10163,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10163
10163
|
}, Qi = {
|
|
10164
10164
|
apiDynamicFormsGet: "/dynamicForms"
|
|
10165
10165
|
}, Hy = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Ge, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), Zw = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: n, fullSize: a, appUrls: { appDetail: o = Xi.appDetail } = Xi, apiUrls: { apiDynamicFormsGet: i = Qi.apiDynamicFormsGet } = Qi }) => {
|
|
10166
|
-
const l = ct(), { startLoading: c, stopLoading:
|
|
10166
|
+
const l = ct(), { startLoading: c, stopLoading: p } = z(er), [d, u] = F(null), [f] = xs("search", ""), g = M(() => [
|
|
10167
10167
|
...(d == null ? void 0 : d.map((h) => ({
|
|
10168
10168
|
...h,
|
|
10169
10169
|
type: "dynamic-form"
|
|
@@ -10175,9 +10175,9 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10175
10175
|
items: g.filter((m) => m.group === h.id)
|
|
10176
10176
|
})).filter((h) => h.items.length > 0), [r, g]), b = P(async () => {
|
|
10177
10177
|
c("dynamicForms"), await l.get(i).then(({ data: h }) => {
|
|
10178
|
-
|
|
10179
|
-
}).catch(() =>
|
|
10180
|
-
}, [l, c,
|
|
10178
|
+
u(h), p("dynamicForms");
|
|
10179
|
+
}).catch(() => p("dynamicForms"));
|
|
10180
|
+
}, [l, c, p, i]);
|
|
10181
10181
|
return W(() => {
|
|
10182
10182
|
!d && b();
|
|
10183
10183
|
}, [b, d]), g.length > 0 ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: v.map((h) => /* @__PURE__ */ s.jsx(on, { title: h.name, defaultOpen: !0, children: h.items.map((m) => {
|
|
@@ -10187,7 +10187,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10187
10187
|
m.description && /* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-muted mt-2", children: m.description })
|
|
10188
10188
|
] }, m.id) : /* @__PURE__ */ s.jsx(Hy, { item: m, children: /* @__PURE__ */ s.jsx(Je, { to: `${yr(o, { id: (N = m.id) == null ? void 0 : N.toString() })}?type=${m.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((y = m.id) == null ? void 0 : y.toString()) ? "active" : ""}`, children: /* @__PURE__ */ s.jsx(Q, { variant: "body2", children: m.name }) }) }, m.id);
|
|
10189
10189
|
}) }, h.id)) }) }) : null;
|
|
10190
|
-
}, eD = ({ label: e, to: t, value: r }) => /* @__PURE__ */ s.jsxs(
|
|
10190
|
+
}, eD = ({ label: e, to: t, value: r }) => /* @__PURE__ */ s.jsxs(ze, { label: e, children: [
|
|
10191
10191
|
/* @__PURE__ */ s.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
10192
10192
|
t ? /* @__PURE__ */ s.jsx(Je, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r }) : /* @__PURE__ */ s.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r })
|
|
10193
10193
|
] }), tD = () => {
|
|
@@ -10198,21 +10198,21 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10198
10198
|
n(t === "cz" ? "en" : t === "en" ? "de" : "cz"), a.stopPropagation();
|
|
10199
10199
|
}, children: t === "cz" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10200
10200
|
/* @__PURE__ */ s.jsx("strong", { className: "fw-bold", children: "CZ" }),
|
|
10201
|
-
/* @__PURE__ */ s.jsx(
|
|
10201
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
10202
10202
|
/* @__PURE__ */ s.jsx("span", { children: "EN" }),
|
|
10203
|
-
/* @__PURE__ */ s.jsx(
|
|
10203
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
10204
10204
|
/* @__PURE__ */ s.jsx("span", { children: "DE" })
|
|
10205
10205
|
] }) : t === "en" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10206
10206
|
/* @__PURE__ */ s.jsx("strong", { className: "fw-bold", children: "EN" }),
|
|
10207
|
-
/* @__PURE__ */ s.jsx(
|
|
10207
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
10208
10208
|
/* @__PURE__ */ s.jsx("span", { children: "DE" }),
|
|
10209
|
-
/* @__PURE__ */ s.jsx(
|
|
10209
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
10210
10210
|
/* @__PURE__ */ s.jsx("span", { children: "CZ" })
|
|
10211
10211
|
] }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10212
10212
|
/* @__PURE__ */ s.jsx("strong", { className: "fw-bold", children: "DE" }),
|
|
10213
|
-
/* @__PURE__ */ s.jsx(
|
|
10213
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
10214
10214
|
/* @__PURE__ */ s.jsx("span", { children: "CZ" }),
|
|
10215
|
-
/* @__PURE__ */ s.jsx(
|
|
10215
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
10216
10216
|
/* @__PURE__ */ s.jsx("span", { children: "EN" })
|
|
10217
10217
|
] }) });
|
|
10218
10218
|
}, rD = ({ controlId: e, ...t }) => /* @__PURE__ */ s.jsx(Oe.Group, { controlId: e, ...t }), nD = ({ employeeId: e, alt: t, noPhotoImage: r, cafmApiUrl: n, showLargeInLightBox: a = !1 }) => {
|
|
@@ -10256,7 +10256,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10256
10256
|
modifiers: [["darker", 1.6]]
|
|
10257
10257
|
}, tooltipLabel: n }), zy = "_hrText_xxish_1", qy = {
|
|
10258
10258
|
hrText: zy
|
|
10259
|
-
}, Yy = ({ text: e }) => /* @__PURE__ */ s.jsx("hr", { className: I(qy.hrText), "data-content": e }), Ky = "_cards-group_1gvpy_1", Xy = "_group-title_1gvpy_1", Qy = "_group-content_1gvpy_8", Jy = "_report-card_1gvpy_12", Zy = "_card-title-link_1gvpy_22",
|
|
10259
|
+
}, Yy = ({ text: e }) => /* @__PURE__ */ s.jsx("hr", { className: I(qy.hrText), "data-content": e }), Ky = "_cards-group_1gvpy_1", Xy = "_group-title_1gvpy_1", Qy = "_group-content_1gvpy_8", Jy = "_report-card_1gvpy_12", Zy = "_card-title-link_1gvpy_22", zt = {
|
|
10260
10260
|
"cards-group": "_cards-group_1gvpy_1",
|
|
10261
10261
|
cardsGroup: Ky,
|
|
10262
10262
|
"group-title": "_group-title_1gvpy_1",
|
|
@@ -10288,9 +10288,9 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10288
10288
|
return /* @__PURE__ */ s.jsx("div", { className: "col-12 col-lg-4", children: /* @__PURE__ */ s.jsxs(
|
|
10289
10289
|
sn,
|
|
10290
10290
|
{
|
|
10291
|
-
title: /* @__PURE__ */ s.jsx(Je, { to: t(e), className: I(
|
|
10291
|
+
title: /* @__PURE__ */ s.jsx(Je, { to: t(e), className: I(zt.cardTitleLink, "w-100 text-uppercase fw-normal"), children: r(e) }),
|
|
10292
10292
|
headerClassName: "bg-darker",
|
|
10293
|
-
className: I(
|
|
10293
|
+
className: I(zt.reportCard, "shadow h-100 d-flex flex-column"),
|
|
10294
10294
|
contentClassName: "d-flex flex-column gap-2 h-100",
|
|
10295
10295
|
children: [
|
|
10296
10296
|
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "px-2", children: n(e) }),
|
|
@@ -10305,10 +10305,10 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10305
10305
|
reportsGet: "/reports",
|
|
10306
10306
|
reportsLastUsedGet: "/reports/last-used"
|
|
10307
10307
|
}, sD = ({ groups: e, apiUrls: { reportsGet: t = ta.reportsGet, reportsLastUsedGet: r = ta.reportsLastUsedGet } = ta, getReportName: n, getReportDescription: a, getGroupTitle: o, getReportRoute: i }) => {
|
|
10308
|
-
const { texts: { reports: l } } = z(ce), [c,
|
|
10308
|
+
const { texts: { reports: l } } = z(ce), [c, p] = F(""), [d] = Ia(c, 500), u = P((h) => h.map((m) => ({
|
|
10309
10309
|
...m,
|
|
10310
10310
|
groupId: !m.groupId || m.groupId === 0 || !e.some((x) => x === m.groupId) ? 999 : m.groupId
|
|
10311
|
-
})), [e]), { data: f } = lt(t, { dataTransformer:
|
|
10311
|
+
})), [e]), { data: f } = lt(t, { dataTransformer: u }), g = M(() => {
|
|
10312
10312
|
if (f === null)
|
|
10313
10313
|
return {};
|
|
10314
10314
|
const h = {};
|
|
@@ -10322,11 +10322,11 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10322
10322
|
return /* @__PURE__ */ s.jsxs(ja, { unavailableOnMobile: !0, variant: "fullScreen", sideContent: /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(ew, { reportsLastUsedGet: r, getReportName: n, getReportRoute: i }) }), children: [
|
|
10323
10323
|
/* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(Oe.Control, { className: "mb-3", type: "search", value: c, onChange: (h) => {
|
|
10324
10324
|
var m;
|
|
10325
|
-
return
|
|
10325
|
+
return p(((m = h.target) == null ? void 0 : m.value) ?? "");
|
|
10326
10326
|
}, placeholder: l.index.search }) }),
|
|
10327
|
-
/* @__PURE__ */ s.jsx("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: v.map((h) => /* @__PURE__ */ s.jsxs("div", { className: I(
|
|
10328
|
-
/* @__PURE__ */ s.jsx("div", { className: I("group-title z-1",
|
|
10329
|
-
/* @__PURE__ */ s.jsx("div", { className: I(
|
|
10327
|
+
/* @__PURE__ */ s.jsx("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: v.map((h) => /* @__PURE__ */ s.jsxs("div", { className: I(zt.cardsGroup, { [zt.mobile]: b }), children: [
|
|
10328
|
+
/* @__PURE__ */ s.jsx("div", { className: I("group-title z-1", zt.groupTitle), children: /* @__PURE__ */ s.jsx(Yy, { text: o(h) }) }),
|
|
10329
|
+
/* @__PURE__ */ s.jsx("div", { className: I(zt.groupContent), children: /* @__PURE__ */ s.jsx("div", { className: I("row gx-3 gy-3"), children: g[h].map((m) => /* @__PURE__ */ s.jsx(tw, { report: m, getReportRoute: i, getReportName: n, getReportDescription: a })) }) })
|
|
10330
10330
|
] }, h)) })
|
|
10331
10331
|
] });
|
|
10332
10332
|
}, rw = "_mini-detail-popover_obryf_1", nw = "_sm_obryf_5", aw = "_lg_obryf_9", es = {
|
|
@@ -10335,7 +10335,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10335
10335
|
sm: nw,
|
|
10336
10336
|
lg: aw
|
|
10337
10337
|
}, lD = ({ children: e, useMiniDetail: t, miniDetailProps: r, placement: n = "bottom", trigger: a = ["hover"], delayMs: o = 500 }) => {
|
|
10338
|
-
const { user: i } = z(jt), [l, c] = F(!1), { isLoading:
|
|
10338
|
+
const { user: i } = z(jt), [l, c] = F(!1), { isLoading: p, detail: d, heading: u, tooltipWidth: f } = t({
|
|
10339
10339
|
...r,
|
|
10340
10340
|
enabled: l && !(i != null && i.external)
|
|
10341
10341
|
}), g = ee(null);
|
|
@@ -10343,7 +10343,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10343
10343
|
g.current = window.setTimeout(() => c(!0), o);
|
|
10344
10344
|
}, onMouseLeave: () => {
|
|
10345
10345
|
g.current && clearTimeout(g.current), c(!1);
|
|
10346
|
-
}, children: l && !(i != null && i.external) ? /* @__PURE__ */ s.jsx(Cd, { heading:
|
|
10346
|
+
}, children: l && !(i != null && i.external) ? /* @__PURE__ */ s.jsx(Cd, { heading: p ? /* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ s.jsx("span", { className: "placeholder bg-primary col-6" }) }) : u, content: /* @__PURE__ */ s.jsx(s.Fragment, { children: p ? /* @__PURE__ */ s.jsxs(Q, { variant: "body2", className: "placeholder-glow", children: [
|
|
10347
10347
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between py-1", children: [
|
|
10348
10348
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
|
|
10349
10349
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
|
|
@@ -10369,7 +10369,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10369
10369
|
/* @__PURE__ */ s.jsx(Q, { variant: "caption", children: e }),
|
|
10370
10370
|
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-end", children: t ?? "-" })
|
|
10371
10371
|
] }), dD = ({ route: e, variant: t = "link", children: r, className: n, disabled: a = !1, routeParams: o }) => {
|
|
10372
|
-
const { checkUserHasPermissions: i } = ms(), l = M(() => a || !(e.permissions === void 0 || i(e.permissions)), [i, a, e.permissions]), c = r ?? e.name,
|
|
10372
|
+
const { checkUserHasPermissions: i } = ms(), l = M(() => a || !(e.permissions === void 0 || i(e.permissions)), [i, a, e.permissions]), c = r ?? e.name, p = M(() => {
|
|
10373
10373
|
switch (t) {
|
|
10374
10374
|
case "primaryButton":
|
|
10375
10375
|
return xr;
|
|
@@ -10381,7 +10381,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10381
10381
|
return Td;
|
|
10382
10382
|
}
|
|
10383
10383
|
}, [t]);
|
|
10384
|
-
return t === "link" ? /* @__PURE__ */ s.jsx(Je, { to: xo(e.route, o), className: I("link font-size-14", l ? "disabled" : void 0, n), children: c }) : /* @__PURE__ */ s.jsx(
|
|
10384
|
+
return t === "link" ? /* @__PURE__ */ s.jsx(Je, { to: xo(e.route, o), className: I("link font-size-14", l ? "disabled" : void 0, n), children: c }) : /* @__PURE__ */ s.jsx(p, { as: "link", href: xo(e.route, o), className: I(l ? "disabled" : void 0, n), children: c });
|
|
10385
10385
|
}, uD = ({ id: e, getTimelineApiPath: t }) => {
|
|
10386
10386
|
var i;
|
|
10387
10387
|
const { texts: { approval: r }, ProjectIconComponent: n } = z(ce), { data: a } = lt(t(e)), o = P((l, c = !1) => {
|
|
@@ -10413,15 +10413,15 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10413
10413
|
/* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-end", children: r.getThresholdText(l.threshold) })
|
|
10414
10414
|
] }),
|
|
10415
10415
|
icon: o(l.state),
|
|
10416
|
-
text: l.approvers && ((c = l.approvers) == null ? void 0 : c.length) > 0 ? /* @__PURE__ */ s.jsx("div", { className: "list-group", children: l.approvers.map((
|
|
10417
|
-
|
|
10416
|
+
text: l.approvers && ((c = l.approvers) == null ? void 0 : c.length) > 0 ? /* @__PURE__ */ s.jsx("div", { className: "list-group", children: l.approvers.map((p) => /* @__PURE__ */ s.jsx("div", { className: "list-group-item p-1", children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between align-items-center gap-2", children: [
|
|
10417
|
+
p.automaticApproval ? /* @__PURE__ */ s.jsx(Ge, { placement: "left", text: r.autoApproved, children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx("div", { className: "text-success", style: {
|
|
10418
10418
|
fontSize: "14px"
|
|
10419
|
-
}, children: "A" }) }) }) : o(
|
|
10419
|
+
}, children: "A" }) }) }) : o(p.state, !0),
|
|
10420
10420
|
/* @__PURE__ */ s.jsxs("div", { className: "text-end", children: [
|
|
10421
|
-
/* @__PURE__ */ s.jsx(Q, { variant: "body2", children:
|
|
10422
|
-
|
|
10421
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "body2", children: p.delegatedApprover ? p.delegatedApprover.name : p.approver.name }),
|
|
10422
|
+
p.responseDate ? /* @__PURE__ */ s.jsx(Q, { variant: "caption", children: vs(p.responseDate) }) : null
|
|
10423
10423
|
] })
|
|
10424
|
-
] }) },
|
|
10424
|
+
] }) }, p.id)) }) : null
|
|
10425
10425
|
};
|
|
10426
10426
|
})) ?? [],
|
|
10427
10427
|
a != null && a.finishedDate ? {
|
|
@@ -10465,12 +10465,12 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10465
10465
|
width: 50,
|
|
10466
10466
|
isVisible: !1
|
|
10467
10467
|
}
|
|
10468
|
-
], [a]), c = P((
|
|
10469
|
-
id:
|
|
10468
|
+
], [a]), c = P((p) => yr(n, {
|
|
10469
|
+
id: p.id.toString()
|
|
10470
10470
|
}), [n]);
|
|
10471
10471
|
return /* @__PURE__ */ s.jsx(t, { data: o ?? [], columnsDef: l, tableId: r, useSearchState: !0, paginationMode: "enabled", useScrollableContainer: !0, archiveHighlighting: i, rowNavigation: c });
|
|
10472
10472
|
}, ow = (e, t) => {
|
|
10473
|
-
const r = ct(), n = hn(), { startLoading: a, stopLoading: o } = z(er), { zDateRequired: i, zNumberRequired: l } = Ed(), { addNotification: c } = Ca(), { refreshAvailableDelegations:
|
|
10473
|
+
const r = ct(), n = hn(), { startLoading: a, stopLoading: o } = z(er), { zDateRequired: i, zNumberRequired: l } = Ed(), { addNotification: c } = Ca(), { refreshAvailableDelegations: p } = z(hs), { user: d } = z(jt), { texts: { substitutions: { detail: u } } } = z(ce), f = In.object({
|
|
10474
10474
|
id: l(),
|
|
10475
10475
|
employeeId: l(),
|
|
10476
10476
|
substituteId: l(),
|
|
@@ -10498,7 +10498,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10498
10498
|
}), b = P(async (h) => {
|
|
10499
10499
|
a("premissions-substitute-submit");
|
|
10500
10500
|
try {
|
|
10501
|
-
await r.post("permissions/substitutions", h), c(
|
|
10501
|
+
await r.post("permissions/substitutions", h), c(u.updateSuccess, "success"), p(), n(t);
|
|
10502
10502
|
} catch (m) {
|
|
10503
10503
|
Id(v, m);
|
|
10504
10504
|
} finally {
|
|
@@ -10509,11 +10509,11 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10509
10509
|
r,
|
|
10510
10510
|
v,
|
|
10511
10511
|
n,
|
|
10512
|
-
|
|
10512
|
+
p,
|
|
10513
10513
|
a,
|
|
10514
10514
|
o,
|
|
10515
10515
|
t,
|
|
10516
|
-
|
|
10516
|
+
u
|
|
10517
10517
|
]);
|
|
10518
10518
|
return W(() => {
|
|
10519
10519
|
v.reset(g);
|
|
@@ -10522,13 +10522,13 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10522
10522
|
var N;
|
|
10523
10523
|
const { id: t } = bs(), { user: r } = z(jt), n = ct(), a = hn(), { confirm: o } = Ar(), { texts: { substitutions: { detail: i } } } = z(ce), { data: l } = lt(`/permissions/substitutions/${t}`, {
|
|
10524
10524
|
enabled: t !== void 0
|
|
10525
|
-
}), { data: c } = lt("/permissions/users"), { onSubmit:
|
|
10525
|
+
}), { data: c } = lt("/permissions/users"), { onSubmit: p, formMethods: d } = ow(l, e), u = d.watch("employeeId"), { data: f } = lt(`/permissions/roles?userName=${(N = c == null ? void 0 : c.find((y) => y.employeeId === u)) == null ? void 0 : N.name}`, { enabled: u > 0 && !!c }), { refreshAvailableDelegations: g } = z(hs), { checkUserHasPermissions: v } = ms(), b = P(async () => {
|
|
10526
10526
|
await o(i.deleteConfirm) && (await n.delete(`/permissions/substitutions/${t}`), g(), a(e));
|
|
10527
|
-
}, [n, o, t, a, g, i, e]), h = M(() =>
|
|
10527
|
+
}, [n, o, t, a, g, i, e]), h = M(() => u !== (r == null ? void 0 : r.personalNumber) && !v(["ZASTUP_MODIFY"]), [v, u, r == null ? void 0 : r.personalNumber]), m = d.watch("roles"), x = M(() => f == null ? void 0 : f.filter((y) => y.canBeRepresented), [f]), D = M(() => (x == null ? void 0 : x.every((y) => m == null ? void 0 : m.includes(y.name))) ?? !1, [x, m]);
|
|
10528
10528
|
return /* @__PURE__ */ s.jsx(ja, { title: /* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
10529
10529
|
/* @__PURE__ */ s.jsx(Q, { variant: "h3", children: i.title }),
|
|
10530
10530
|
/* @__PURE__ */ s.jsx(tr, { toggle: /* @__PURE__ */ s.jsx(rr, { as: Tr }), children: /* @__PURE__ */ s.jsx(rt, { onClick: () => b(), children: i.delete }) })
|
|
10531
|
-
] }), children: /* @__PURE__ */ s.jsx($d, { ...d, children: /* @__PURE__ */ s.jsx(Rd, { disabled: h, children: /* @__PURE__ */ s.jsxs(Oe, { onSubmit: d.handleSubmit(
|
|
10531
|
+
] }), children: /* @__PURE__ */ s.jsx($d, { ...d, children: /* @__PURE__ */ s.jsx(Rd, { disabled: h, children: /* @__PURE__ */ s.jsxs(Oe, { onSubmit: d.handleSubmit(p), className: "h-100", children: [
|
|
10532
10532
|
/* @__PURE__ */ s.jsxs(Ra, { className: "h-100", children: [
|
|
10533
10533
|
/* @__PURE__ */ s.jsx(an, { sm: 12, md: 4, children: /* @__PURE__ */ s.jsxs(sn, { title: i.title, children: [
|
|
10534
10534
|
/* @__PURE__ */ s.jsx(Mo, { formField: "employeeId", options: (c == null ? void 0 : c.map((y) => ({
|
|
@@ -10550,7 +10550,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10550
10550
|
padding: "0px 12px"
|
|
10551
10551
|
}, children: /* @__PURE__ */ s.jsx(ia, { label: D ? i.uncheckAllRoles : i.checkAllRoles, indeterminate: !D && (m == null ? void 0 : m.length) > 0, value: D, disabled: h, onChange: () => {
|
|
10552
10552
|
d.setValue("roles", D ? [] : (x == null ? void 0 : x.map((y) => y.name)) ?? [], { shouldDirty: !0 });
|
|
10553
|
-
}, InputContainer:
|
|
10553
|
+
}, InputContainer: ze }) }),
|
|
10554
10554
|
/* @__PURE__ */ s.jsx("div", { className: "overflow-auto", style: {
|
|
10555
10555
|
maxHeight: "60vh",
|
|
10556
10556
|
marginLeft: "-12px",
|
|
@@ -10558,7 +10558,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10558
10558
|
padding: "0px 12px"
|
|
10559
10559
|
}, children: f == null ? void 0 : f.map((y) => /* @__PURE__ */ s.jsx(ia, { label: y.name, value: (m == null ? void 0 : m.find((S) => S === y.name)) !== void 0, disabled: h || !y.canBeRepresented, onChange: (S) => {
|
|
10560
10560
|
d.setValue("roles", S ? [...m ?? [], y.name] : (m == null ? void 0 : m.filter((j) => j !== y.name)) ?? [], { shouldDirty: !0 });
|
|
10561
|
-
}, InputContainer:
|
|
10561
|
+
}, InputContainer: ze }, y.name)) })
|
|
10562
10562
|
] }) })
|
|
10563
10563
|
] }),
|
|
10564
10564
|
/* @__PURE__ */ s.jsx(Zu, { onStorno: () => d.reset(), children: i.save })
|
|
@@ -10581,7 +10581,7 @@ export {
|
|
|
10581
10581
|
Fy as ColumnResizer,
|
|
10582
10582
|
Vs as ContactButtonQrModal,
|
|
10583
10583
|
yw as ContactInput,
|
|
10584
|
-
|
|
10584
|
+
qt as ContactsLink,
|
|
10585
10585
|
pt as ContextButton,
|
|
10586
10586
|
eD as DisabledRowLabelLink,
|
|
10587
10587
|
mD as Documents,
|
|
@@ -10600,7 +10600,7 @@ export {
|
|
|
10600
10600
|
np as Flexmonster,
|
|
10601
10601
|
ny as FloatingActionContainer,
|
|
10602
10602
|
fu as FloatingFormSubmit,
|
|
10603
|
-
|
|
10603
|
+
Zt as FloatingLabelInput,
|
|
10604
10604
|
qw as FromToDatePicker,
|
|
10605
10605
|
Gw as HomeDashboard,
|
|
10606
10606
|
Ew as HookFormCheckInput,
|
|
@@ -10620,7 +10620,7 @@ export {
|
|
|
10620
10620
|
Ys as IconPicker,
|
|
10621
10621
|
Ui as ImgApi,
|
|
10622
10622
|
uc as ImgDirect,
|
|
10623
|
-
|
|
10623
|
+
$t as InvalidFeedback,
|
|
10624
10624
|
tD as LanguageSwitch,
|
|
10625
10625
|
Qw as LineChart,
|
|
10626
10626
|
bo as Loading,
|
|
@@ -10647,7 +10647,7 @@ export {
|
|
|
10647
10647
|
cd as ResponsiveContextDropdownItem,
|
|
10648
10648
|
Lw as ResponsiveTabs,
|
|
10649
10649
|
dD as RouteLink,
|
|
10650
|
-
|
|
10650
|
+
ze as RowLabelInput,
|
|
10651
10651
|
aD as SearchBox,
|
|
10652
10652
|
nn as SelectInput,
|
|
10653
10653
|
Zw as SettingsFormPicker,
|