react-luminus-components 1.3.233 → 1.3.235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +34 -34
- package/dist/{Loading-Khc1YD1r.js → Loading-CCSVZUhe.js} +1 -1
- package/dist/{Loading-Bq47YAVD.cjs → Loading-DL2EkP3d.cjs} +1 -1
- package/dist/{ShortcutLinksContext-DApcNgFs.js → ShortcutLinksContext-BssuYypF.js} +199 -199
- package/dist/{ShortcutLinksContext-DGRQ13Df.cjs → ShortcutLinksContext-DfBnlBCo.cjs} +10 -10
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +2 -0
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +2 -0
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +15 -15
- package/dist/main.es.js +715 -715
- package/dist/models/prop-types/InputContainerProps.d.ts +1 -0
- package/dist/{useGetApiData-CruzvYco.cjs → useGetApiData-Bf_FxATb.cjs} +1 -1
- package/dist/{useGetApiData-xQ3tB0Jt.js → useGetApiData-BrxYGyDd.js} +1 -1
- package/dist/{usePermissions-C3odwqCN.cjs → usePermissions-Bbpwz3_4.cjs} +1 -1
- package/dist/{usePermissions-WNAKnyu2.js → usePermissions-Drdy5QyP.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as s, c as j, t as Oe, s as to, g as ro, m as tc, d as Ur, a as rc, b as nc, e as ut, f as la, h as ac, i as oc, k as ic, l as sc, n as lc, o as cc, p as dc, T as $i, q as Gi, r as no, E as uc, u as Wi, v as ca, w as Ui, x as pc, y as Ie, z as da, F as Hi, A as fc, B as vc, C as gc, D as mc, M as hc, G as bc, H as xc, I as yc, J as wc, K as Dc, L as Yn, N as Nc, O as Ec, P as ve, Q as Yr, R as Cc, S as Sc, U as Ic, V as zi, W as jc, X as cr, Y as se, Z as ua, _ as _e, $ as pa, a0 as Oc, a1 as ct, a2 as vt, a3 as $e, a4 as on, a5 as ae, a6 as sn, a7 as _c, a8 as Pc, a9 as Tc, aa as qi, ab as Ac, ac as Nr, ad as Er, ae as ln, af as nt, ag as Rc, ah as Bc, ai as kc, aj as wt, ak as fa, al as Mc, am as rt, an as Lc, ao as Fc, ap as Kr, aq as te, ar as Yi, as as Vc, at as $c, au as Ki, av as Dt, aw as Gc, ax as Nt, ay as Wc, az as Uc, aA as Hc, aB as Cr, aC as zc, aD as Xi, aE as qc, aF as Sr, aG as va, aH as ga, aI as Ji, aJ as ma, aK as Qi, aL as Zi, aM as ot, aN as gt, aO as Yc, aP as Kc, aQ as mt, aR as Qe, aS as Xc, aT as dr, aU as Jc, aV as Xr, aW as Ir, aX as es, aY as cn, aZ as Qc, a_ as yn, a$ as Zc, b0 as Ft, b1 as ed, b2 as td, b3 as ha, b4 as dn, b5 as rd, b6 as ao, b7 as ts, b8 as nd, b9 as kt, ba as ad, bb as od, bc as id, bd as sd, be as ld, bf as rs } from "./ShortcutLinksContext-
|
|
2
|
-
import { bj as Aw, bk as Rw, bh as Bw, bg as kw, bl as Mw, bm as Lw, bi as Fw } from "./ShortcutLinksContext-
|
|
1
|
+
import { j as s, c as j, t as Oe, s as to, g as ro, m as tc, d as Ur, a as rc, b as nc, e as ut, f as la, h as ac, i as oc, k as ic, l as sc, n as lc, o as cc, p as dc, T as $i, q as Gi, r as no, E as uc, u as Wi, v as ca, w as Ui, x as pc, y as Ie, z as da, F as Hi, A as fc, B as vc, C as gc, D as mc, M as hc, G as bc, H as xc, I as yc, J as wc, K as Dc, L as Yn, N as Nc, O as Ec, P as ve, Q as Yr, R as Cc, S as Sc, U as Ic, V as zi, W as jc, X as cr, Y as se, Z as ua, _ as _e, $ as pa, a0 as Oc, a1 as ct, a2 as vt, a3 as $e, a4 as on, a5 as ae, a6 as sn, a7 as _c, a8 as Pc, a9 as Tc, aa as qi, ab as Ac, ac as Nr, ad as Er, ae as ln, af as nt, ag as Rc, ah as Bc, ai as kc, aj as wt, ak as fa, al as Mc, am as rt, an as Lc, ao as Fc, ap as Kr, aq as te, ar as Yi, as as Vc, at as $c, au as Ki, av as Dt, aw as Gc, ax as Nt, ay as Wc, az as Uc, aA as Hc, aB as Cr, aC as zc, aD as Xi, aE as qc, aF as Sr, aG as va, aH as ga, aI as Ji, aJ as ma, aK as Qi, aL as Zi, aM as ot, aN as gt, aO as Yc, aP as Kc, aQ as mt, aR as Qe, aS as Xc, aT as dr, aU as Jc, aV as Xr, aW as Ir, aX as es, aY as cn, aZ as Qc, a_ as yn, a$ as Zc, b0 as Ft, b1 as ed, b2 as td, b3 as ha, b4 as dn, b5 as rd, b6 as ao, b7 as ts, b8 as nd, b9 as kt, ba as ad, bb as od, bc as id, bd as sd, be as ld, bf as rs } from "./ShortcutLinksContext-BssuYypF.js";
|
|
2
|
+
import { bj as Aw, bk as Rw, bh as Bw, bg as kw, bl as Mw, bm as Lw, bi as Fw } from "./ShortcutLinksContext-BssuYypF.js";
|
|
3
3
|
import * as Ne from "react";
|
|
4
4
|
import oe, { useCallback as P, useMemo as Y, useState as M, useRef as Z, useEffect as $, useContext as ee, useId as cd, Component as dd, isValidElement as oo, Suspense as ud, useLayoutEffect as ba, useReducer as pd } from "react";
|
|
5
|
-
import { c as st, L as io } from "./Loading-
|
|
5
|
+
import { c as st, L as io } from "./Loading-CCSVZUhe.js";
|
|
6
6
|
import { InteractionType as fd } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as vd } from "@azure/msal-react";
|
|
8
8
|
import { useNavigate as ns, Link as at, Navigate as Br, generatePath as Jr, useSearchParams as gd, useParams as md, useLocation as hd } from "react-router-dom";
|
|
@@ -10,7 +10,7 @@ import ur, { unstable_batchedUpdates as bd } from "react-dom";
|
|
|
10
10
|
import { useFormContext as Et, Controller as xa } from "react-hook-form";
|
|
11
11
|
import { Pivot as xd } from "react-flexmonster";
|
|
12
12
|
import { u as yd, a as wd, b as as, c as Dd } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
|
|
13
|
-
import { u as pr } from "./useGetApiData-
|
|
13
|
+
import { u as pr } from "./useGetApiData-BrxYGyDd.js";
|
|
14
14
|
import { l as or } from "./numberUtils-Bwf8nio8.js";
|
|
15
15
|
const Fy = ({ fileLoader: e, fileName: t, children: r }) => {
|
|
16
16
|
const n = P(async () => {
|
|
@@ -90,8 +90,8 @@ function Kn(e, t) {
|
|
|
90
90
|
let o = "", i = "";
|
|
91
91
|
const l = n === "extended" ? "-" : "", c = n === "extended" ? ":" : "";
|
|
92
92
|
if (a !== "time") {
|
|
93
|
-
const p = ut(r.getDate(), 2),
|
|
94
|
-
o = `${ut(r.getFullYear(), 4)}${l}${
|
|
93
|
+
const p = ut(r.getDate(), 2), d = ut(r.getMonth() + 1, 2);
|
|
94
|
+
o = `${ut(r.getFullYear(), 4)}${l}${d}${l}${p}`;
|
|
95
95
|
}
|
|
96
96
|
if (a !== "date") {
|
|
97
97
|
const p = r.getTimezoneOffset();
|
|
@@ -100,7 +100,7 @@ function Kn(e, t) {
|
|
|
100
100
|
i = `${p < 0 ? "+" : "-"}${b}:${m}`;
|
|
101
101
|
} else
|
|
102
102
|
i = "Z";
|
|
103
|
-
const
|
|
103
|
+
const d = ut(r.getHours(), 2), u = ut(r.getMinutes(), 2), v = ut(r.getSeconds(), 2), f = o === "" ? "" : "T", g = [d, u, v].join(c);
|
|
104
104
|
o = `${o}${f}${g}${i}`;
|
|
105
105
|
}
|
|
106
106
|
return o;
|
|
@@ -169,8 +169,8 @@ const Pd = {
|
|
|
169
169
|
dimension: l = "height",
|
|
170
170
|
in: c = !1,
|
|
171
171
|
timeout: p = 300,
|
|
172
|
-
mountOnEnter:
|
|
173
|
-
unmountOnExit:
|
|
172
|
+
mountOnEnter: d = !1,
|
|
173
|
+
unmountOnExit: u = !1,
|
|
174
174
|
appear: v = !1,
|
|
175
175
|
getDimensionValue: f = _d,
|
|
176
176
|
...g
|
|
@@ -200,8 +200,8 @@ const Pd = {
|
|
|
200
200
|
childRef: i.ref,
|
|
201
201
|
in: c,
|
|
202
202
|
timeout: p,
|
|
203
|
-
mountOnEnter:
|
|
204
|
-
unmountOnExit:
|
|
203
|
+
mountOnEnter: d,
|
|
204
|
+
unmountOnExit: u,
|
|
205
205
|
appear: v,
|
|
206
206
|
children: (C, O) => /* @__PURE__ */ oe.cloneElement(i, {
|
|
207
207
|
...O,
|
|
@@ -337,11 +337,11 @@ const gs = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
337
337
|
as: l = "div",
|
|
338
338
|
...c
|
|
339
339
|
}, p) => {
|
|
340
|
-
const
|
|
340
|
+
const d = Ie(e, "card");
|
|
341
341
|
return /* @__PURE__ */ s.jsx(l, {
|
|
342
342
|
ref: p,
|
|
343
343
|
...c,
|
|
344
|
-
className: j(t,
|
|
344
|
+
className: j(t, d, r && `bg-${r}`, n && `text-${n}`, a && `border-${a}`),
|
|
345
345
|
children: o ? /* @__PURE__ */ s.jsx(Da, {
|
|
346
346
|
children: i
|
|
347
347
|
}) : i
|
|
@@ -444,12 +444,12 @@ function Md(e) {
|
|
|
444
444
|
return typeof c == "number" && (c = `${c}px`), `(min-width: ${c})`;
|
|
445
445
|
}
|
|
446
446
|
function i(l, c, p) {
|
|
447
|
-
let
|
|
448
|
-
typeof l == "object" ? (
|
|
447
|
+
let d;
|
|
448
|
+
typeof l == "object" ? (d = l, p = c, c = !0) : (c = c || !0, d = {
|
|
449
449
|
[l]: c
|
|
450
450
|
});
|
|
451
|
-
let
|
|
452
|
-
return kd(
|
|
451
|
+
let u = Y(() => Object.entries(d).reduce((v, [f, g]) => ((g === "up" || g === !0) && (v = r(v, o(f))), (g === "down" || g === !0) && (v = r(v, a(f))), v), ""), [JSON.stringify(d)]);
|
|
452
|
+
return kd(u, p);
|
|
453
453
|
}
|
|
454
454
|
return i;
|
|
455
455
|
}
|
|
@@ -492,8 +492,8 @@ const Fd = {
|
|
|
492
492
|
appear: i,
|
|
493
493
|
...l,
|
|
494
494
|
childRef: r.ref,
|
|
495
|
-
children: (p,
|
|
496
|
-
...
|
|
495
|
+
children: (p, d) => /* @__PURE__ */ Ne.cloneElement(r, {
|
|
496
|
+
...d,
|
|
497
497
|
className: j(t, r.props.className, (p === ca || p === Wi) && `${e}-toggling`, Fd[p])
|
|
498
498
|
})
|
|
499
499
|
})));
|
|
@@ -545,8 +545,8 @@ const ws = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
545
545
|
backdrop: l = !0,
|
|
546
546
|
keyboard: c = !0,
|
|
547
547
|
scroll: p = !1,
|
|
548
|
-
onEscapeKeyDown:
|
|
549
|
-
onShow:
|
|
548
|
+
onEscapeKeyDown: d,
|
|
549
|
+
onShow: u,
|
|
550
550
|
onHide: v,
|
|
551
551
|
container: f,
|
|
552
552
|
autoFocus: g = !0,
|
|
@@ -605,8 +605,8 @@ const ws = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
605
605
|
enforceFocus: h && !p,
|
|
606
606
|
restoreFocus: b,
|
|
607
607
|
restoreFocusOptions: m,
|
|
608
|
-
onEscapeKeyDown:
|
|
609
|
-
onShow:
|
|
608
|
+
onEscapeKeyDown: d,
|
|
609
|
+
onShow: u,
|
|
610
610
|
onHide: _,
|
|
611
611
|
onEnter: X,
|
|
612
612
|
onEntering: C,
|
|
@@ -677,14 +677,14 @@ const pt = Object.assign(Es, {
|
|
|
677
677
|
...n
|
|
678
678
|
}, a) => {
|
|
679
679
|
const o = Ie(e, "row"), i = Nc(), l = Ec(), c = `${o}-cols`, p = [];
|
|
680
|
-
return i.forEach((
|
|
681
|
-
const
|
|
682
|
-
delete n[
|
|
680
|
+
return i.forEach((d) => {
|
|
681
|
+
const u = n[d];
|
|
682
|
+
delete n[d];
|
|
683
683
|
let v;
|
|
684
|
-
|
|
684
|
+
u != null && typeof u == "object" ? {
|
|
685
685
|
cols: v
|
|
686
|
-
} =
|
|
687
|
-
const f =
|
|
686
|
+
} = u : v = u;
|
|
687
|
+
const f = d !== l ? `-${d}` : "";
|
|
688
688
|
v != null && p.push(`${c}${f}-${v}`);
|
|
689
689
|
}), /* @__PURE__ */ s.jsx(r, {
|
|
690
690
|
ref: a,
|
|
@@ -704,14 +704,14 @@ const Wd = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
704
704
|
variant: l,
|
|
705
705
|
responsive: c,
|
|
706
706
|
...p
|
|
707
|
-
},
|
|
708
|
-
const
|
|
707
|
+
}, d) => {
|
|
708
|
+
const u = Ie(e, "table"), v = j(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`), f = /* @__PURE__ */ s.jsx("table", {
|
|
709
709
|
...p,
|
|
710
710
|
className: v,
|
|
711
|
-
ref:
|
|
711
|
+
ref: d
|
|
712
712
|
});
|
|
713
713
|
if (c) {
|
|
714
|
-
let g = `${
|
|
714
|
+
let g = `${u}-responsive`;
|
|
715
715
|
return typeof c == "string" && (g = `${g}-${c}`), /* @__PURE__ */ s.jsx("div", {
|
|
716
716
|
className: g,
|
|
717
717
|
children: f
|
|
@@ -731,8 +731,8 @@ const Wd = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
731
731
|
] })
|
|
732
732
|
] });
|
|
733
733
|
}, Ss = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(zi, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, className: o, children: i, multiple: l, ...c }) => {
|
|
734
|
-
const p = (
|
|
735
|
-
|
|
734
|
+
const p = (d) => {
|
|
735
|
+
d.target.files && (a(d.target.files), d.target.value = "");
|
|
736
736
|
};
|
|
737
737
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
738
738
|
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: j(`luminus-context-button btn text-${e} ${o ?? ""}`, Ic.button), ...c, children: [
|
|
@@ -762,12 +762,12 @@ const Wd = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
762
762
|
const p = P((v) => {
|
|
763
763
|
const f = jc(e, v);
|
|
764
764
|
f.getFullYear() < n || f.getFullYear() > a || t(f);
|
|
765
|
-
}, [e, t, n, a]),
|
|
765
|
+
}, [e, t, n, a]), d = Y(() => {
|
|
766
766
|
const v = [];
|
|
767
767
|
for (let f = n; f <= a; f++)
|
|
768
768
|
v.push(f);
|
|
769
769
|
return v;
|
|
770
|
-
}, [n, a]),
|
|
770
|
+
}, [n, a]), u = Y(() => {
|
|
771
771
|
const g = [];
|
|
772
772
|
for (let h = 0; h <= 11; h++)
|
|
773
773
|
g.push({
|
|
@@ -783,11 +783,11 @@ const Wd = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
783
783
|
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getMonth(), onChange: (v) => {
|
|
784
784
|
var f;
|
|
785
785
|
return ((f = v.target) == null ? void 0 : f.value) && t(jd(e, Number(v.target.value)));
|
|
786
|
-
}, className: j(kr.select, kr.month, i), children:
|
|
786
|
+
}, className: j(kr.select, kr.month, i), children: u.map((v) => /* @__PURE__ */ s.jsx("option", { value: v.id, children: v.name }, v.id)) }),
|
|
787
787
|
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getFullYear(), onChange: (v) => {
|
|
788
788
|
var f;
|
|
789
789
|
return ((f = v.target) == null ? void 0 : f.value) && t(Xn(e, Number(v.target.value)));
|
|
790
|
-
}, className: j(kr.select, l), children:
|
|
790
|
+
}, className: j(kr.select, l), children: d.map((v) => /* @__PURE__ */ s.jsx("option", { value: v, children: v }, v)) }),
|
|
791
791
|
/* @__PURE__ */ s.jsx(se, { onClick: () => p(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ s.jsx(pa, {}) })
|
|
792
792
|
] });
|
|
793
793
|
}, Kd = "_select_pywmr_1", Xd = {
|
|
@@ -808,10 +808,10 @@ const Wd = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
808
808
|
return c;
|
|
809
809
|
}, [n, o, a]), l = P((c) => {
|
|
810
810
|
if (n.manualOptions) {
|
|
811
|
-
const p = i.findIndex((
|
|
811
|
+
const p = i.findIndex((d) => d === e.getFullYear());
|
|
812
812
|
if (p !== -1) {
|
|
813
|
-
const
|
|
814
|
-
|
|
813
|
+
const d = i.at(p + c) ?? null;
|
|
814
|
+
d && t(Xn(e, d));
|
|
815
815
|
}
|
|
816
816
|
} else {
|
|
817
817
|
const p = e.getFullYear() + c;
|
|
@@ -888,30 +888,30 @@ const Zd = (e) => (r) => {
|
|
|
888
888
|
widgetTitle: lu,
|
|
889
889
|
title: cu
|
|
890
890
|
}, du = ({ show: e, widgetGroups: t, widgets: r, handleClose: n, onWidgetPicked: a, texts: o }) => {
|
|
891
|
-
const [i, l] = M(""), c = Y(() => r.filter((
|
|
891
|
+
const [i, l] = M(""), c = Y(() => r.filter((d) => d.id !== -1 && vt(d.name, i)), [r, i]), p = Y(() => t.filter((d) => c.some((u) => u.group === d.id)), [t, c]);
|
|
892
892
|
return /* @__PURE__ */ s.jsxs($e, { show: e, onHide: () => n(), size: "lg", children: [
|
|
893
893
|
/* @__PURE__ */ s.jsxs($e.Header, { closeButton: !0, children: [
|
|
894
894
|
/* @__PURE__ */ s.jsx($e.Title, { className: "w-100", children: o.pickWidgetToAdd }),
|
|
895
|
-
/* @__PURE__ */ s.jsx(_e.Control, { type: "search", size: "sm", value: i, placeholder: o.searchPlaceholder, onChange: (
|
|
896
|
-
var
|
|
897
|
-
return l(((
|
|
895
|
+
/* @__PURE__ */ s.jsx(_e.Control, { type: "search", size: "sm", value: i, placeholder: o.searchPlaceholder, onChange: (d) => {
|
|
896
|
+
var u;
|
|
897
|
+
return l(((u = d.target) == null ? void 0 : u.value) ?? "");
|
|
898
898
|
}, className: "me-3", style: { maxWidth: "200px" } })
|
|
899
899
|
] }),
|
|
900
900
|
/* @__PURE__ */ s.jsx($e.Body, { className: "flex-column gap-3", children: c.length === 0 ? /* @__PURE__ */ s.jsx(on, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
901
|
-
p.map((
|
|
901
|
+
p.map((d) => /* @__PURE__ */ s.jsx(Qr, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3", ze.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: j("p-0 pt-2 bg-white rounded shadow-sm", ze.widget), onClick: () => a(u.id), children: [
|
|
902
902
|
/* @__PURE__ */ s.jsx("div", { className: ze.widgetImg, style: {
|
|
903
|
-
backgroundImage:
|
|
903
|
+
backgroundImage: u.img ? `url(${u.img})` : void 0
|
|
904
904
|
} }),
|
|
905
905
|
/* @__PURE__ */ s.jsx("div", { className: ze.widgetTitleSpacer }),
|
|
906
|
-
/* @__PURE__ */ s.jsx("div", { className: j(ze.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(ze.title, "text-white text-truncate"), children:
|
|
907
|
-
] },
|
|
908
|
-
c.some((
|
|
906
|
+
/* @__PURE__ */ s.jsx("div", { className: j(ze.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(ze.title, "text-white text-truncate"), children: u.name }) })
|
|
907
|
+
] }, u.id) })) }) }) }, d.id)),
|
|
908
|
+
c.some((d) => d.group === void 0) && /* @__PURE__ */ s.jsx(Qr, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3", ze.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: j("p-0 pt-2 bg-white rounded shadow-sm", ze.widget), onClick: () => a(d.id), children: [
|
|
909
909
|
/* @__PURE__ */ s.jsx("div", { className: ze.widgetImg, style: {
|
|
910
|
-
backgroundImage:
|
|
910
|
+
backgroundImage: d.img ? `url(${d.img})` : void 0
|
|
911
911
|
} }),
|
|
912
912
|
/* @__PURE__ */ s.jsx("div", { className: ze.widgetTitleSpacer }),
|
|
913
|
-
/* @__PURE__ */ s.jsx("div", { className: j(ze.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(ze.title, "text-white text-truncate"), children:
|
|
914
|
-
] },
|
|
913
|
+
/* @__PURE__ */ s.jsx("div", { className: j(ze.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(ze.title, "text-white text-truncate"), children: d.name }) })
|
|
914
|
+
] }, d.id) })) }) }) })
|
|
915
915
|
] }) })
|
|
916
916
|
] });
|
|
917
917
|
}, uu = "_widget_19xgl_1", pu = "_mobile_19xgl_7", yo = {
|
|
@@ -977,7 +977,7 @@ const Zd = (e) => (r) => {
|
|
|
977
977
|
...o,
|
|
978
978
|
widgets: ((g = o.widgets) == null ? void 0 : g.map((h, b) => b === f ? { ...h, fullWidth: !h.fullWidth } : h)) ?? []
|
|
979
979
|
});
|
|
980
|
-
}, [o, i]),
|
|
980
|
+
}, [o, i]), d = P((f, g, h) => f ? /* @__PURE__ */ s.jsxs("div", { className: j(tt.widgetWrapper, {
|
|
981
981
|
[tt.widgetEdit]: r && f.id !== -1
|
|
982
982
|
}, { [tt.fullWidth]: h }), children: [
|
|
983
983
|
r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -994,9 +994,9 @@ const Zd = (e) => (r) => {
|
|
|
994
994
|
p,
|
|
995
995
|
t,
|
|
996
996
|
a
|
|
997
|
-
]), { isMobile:
|
|
998
|
-
return /* @__PURE__ */ s.jsx("div", { className: j(tt.dashboard, { [tt.mobile]:
|
|
999
|
-
(v = o.widgets) == null ? void 0 : v.map((f, g) =>
|
|
997
|
+
]), { isMobile: u } = sn();
|
|
998
|
+
return /* @__PURE__ */ s.jsx("div", { className: j(tt.dashboard, { [tt.mobile]: u }), children: /* @__PURE__ */ s.jsxs("div", { className: j(tt.widgetsGrid), children: [
|
|
999
|
+
(v = o.widgets) == null ? void 0 : v.map((f, g) => d(t.find((h) => h.id === f.widgetId), g, f.fullWidth)),
|
|
1000
1000
|
r && /* @__PURE__ */ s.jsx(wo, { widgetGroups: e, availableWidgets: t, onAdd: (f) => {
|
|
1001
1001
|
var g;
|
|
1002
1002
|
return l((g = o.widgets) == null ? void 0 : g.length, f);
|
|
@@ -1030,8 +1030,8 @@ const Zd = (e) => (r) => {
|
|
|
1030
1030
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
1031
1031
|
] });
|
|
1032
1032
|
}, Wy = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(zi, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, multiple: o, className: i, children: l, ...c }) => {
|
|
1033
|
-
const p = (
|
|
1034
|
-
|
|
1033
|
+
const p = (d) => {
|
|
1034
|
+
d.target.files && (a(d.target.files), d.target.value = "");
|
|
1035
1035
|
};
|
|
1036
1036
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1037
1037
|
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: j(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, Ac.item), ...c, children: [
|
|
@@ -1062,14 +1062,14 @@ const Zd = (e) => (r) => {
|
|
|
1062
1062
|
item: Wu
|
|
1063
1063
|
}, Uu = ({ show: e, query: t, onCancel: r, groups: n, isLoading: a, searchTypes: o }) => {
|
|
1064
1064
|
const { texts: { appSearch: i } } = ee(ve), l = Z(null), c = P((p) => {
|
|
1065
|
-
var
|
|
1066
|
-
const
|
|
1067
|
-
return
|
|
1065
|
+
var u;
|
|
1066
|
+
const d = (u = o.find((v) => v.key === p.type)) == null ? void 0 : u.toPath;
|
|
1067
|
+
return d ? `${d}/${p.searchKey}` : "/not-found";
|
|
1068
1068
|
}, [o]);
|
|
1069
1069
|
return Rc([l], r), /* @__PURE__ */ s.jsx("div", { ref: l, className: j("luminus-app-search-dropdown shadow rounded", It.dropdown, {
|
|
1070
1070
|
[It.open]: e
|
|
1071
1071
|
}), children: a ? /* @__PURE__ */ s.jsx("div", { className: It.loadingContainer, children: /* @__PURE__ */ s.jsx(Bc, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: It.groupsContainer, children: n == null ? void 0 : n.map((p) => {
|
|
1072
|
-
var
|
|
1072
|
+
var d;
|
|
1073
1073
|
return /* @__PURE__ */ s.jsxs("div", { className: j(It.group), children: [
|
|
1074
1074
|
/* @__PURE__ */ s.jsxs(at, { to: `/search?query=${t}&type=${p.key.category}`, className: j("group-header", It.header), onClick: r, children: [
|
|
1075
1075
|
/* @__PURE__ */ s.jsx(ae, { variant: "body", className: "text-primary", children: p.key.categoryName }),
|
|
@@ -1081,14 +1081,14 @@ const Zd = (e) => (r) => {
|
|
|
1081
1081
|
p.key.totalCount
|
|
1082
1082
|
] })
|
|
1083
1083
|
] }),
|
|
1084
|
-
(
|
|
1084
|
+
(d = p.items) == null ? void 0 : d.map((u, v) => /* @__PURE__ */ s.jsxs(
|
|
1085
1085
|
at,
|
|
1086
1086
|
{
|
|
1087
|
-
to: c(
|
|
1087
|
+
to: c(u),
|
|
1088
1088
|
className: j("search-item d-flex gap-3 align-items-center justify-content-between", It.item),
|
|
1089
1089
|
onClick: r,
|
|
1090
1090
|
children: [
|
|
1091
|
-
/* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-nowrap text-truncate", children:
|
|
1091
|
+
/* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-nowrap text-truncate", children: u.name }),
|
|
1092
1092
|
/* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(kc, {}) })
|
|
1093
1093
|
]
|
|
1094
1094
|
},
|
|
@@ -1113,24 +1113,24 @@ const Zd = (e) => (r) => {
|
|
|
1113
1113
|
}, [c]), { isLoading: n, searchItems: o };
|
|
1114
1114
|
}, Uy = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: n = "/", className: a }) => {
|
|
1115
1115
|
var x;
|
|
1116
|
-
const { texts: { appSearch: o } } = ee(ve), [i, l] = M(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = Y(() => e.find((N) => N.key === i) ?? null, [e, i]), [p,
|
|
1116
|
+
const { texts: { appSearch: o } } = ee(ve), [i, l] = M(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = Y(() => e.find((N) => N.key === i) ?? null, [e, i]), [p, d] = M(""), [u, v] = fa(encodeURIComponent(p), 500), { isLoading: f, searchItems: g } = Hu(c, u), [h, b] = M(!1);
|
|
1117
1117
|
$(() => {
|
|
1118
1118
|
(g.length > 0 || f) && b(!0);
|
|
1119
1119
|
}, [g, f]);
|
|
1120
1120
|
const m = Z(null);
|
|
1121
1121
|
return $(() => {
|
|
1122
1122
|
var N;
|
|
1123
|
-
|
|
1123
|
+
d(""), r === n && ((N = m.current) == null || N.focus());
|
|
1124
1124
|
}, [r, n]), /* @__PURE__ */ s.jsx(_e, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (N) => {
|
|
1125
|
-
N.preventDefault(), N.stopPropagation(), v.flush(), b(!1),
|
|
1125
|
+
N.preventDefault(), N.stopPropagation(), v.flush(), b(!1), u.length > 2 && t(`/search?query=${u}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
|
|
1126
1126
|
}, children: /* @__PURE__ */ s.jsxs(Hr, { className: j(St.inputGroup, a), children: [
|
|
1127
1127
|
/* @__PURE__ */ s.jsx(Hr.Text, { className: j("p-1 rounded", St.inputGroupText, St.left), children: /* @__PURE__ */ s.jsx(ku, { searchTypes: e, selectedType: c, setSelectedType: l }) }),
|
|
1128
1128
|
/* @__PURE__ */ s.jsx(_e.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: j("luminus-app-search-input", St.input), value: p, onChange: (N) => {
|
|
1129
1129
|
var D;
|
|
1130
|
-
return
|
|
1130
|
+
return d(((D = N.target) == null ? void 0 : D.value) ?? "");
|
|
1131
1131
|
}, onFocus: () => g.length > 0 && b(!0) }),
|
|
1132
1132
|
/* @__PURE__ */ s.jsx(Hr.Text, { className: j("p-0 rounded", St.inputGroupText, St.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: j("text-primary", St.submitButton), children: /* @__PURE__ */ s.jsx(Mc, {}) }) }),
|
|
1133
|
-
/* @__PURE__ */ s.jsx(Uu, { query:
|
|
1133
|
+
/* @__PURE__ */ s.jsx(Uu, { query: u, searchTypes: e, show: h, onCancel: () => b(!1), groups: g, isLoading: f })
|
|
1134
1134
|
] }) });
|
|
1135
1135
|
}, zu = "_card_19733_1", qu = "_header_19733_6", Yu = "_header-content_19733_13", Ku = "_title_19733_19", Xu = "_collapse-icon_19733_22", Ju = "_collapsed_19733_27", Qu = "_content_19733_30", jt = {
|
|
1136
1136
|
card: zu,
|
|
@@ -1143,9 +1143,9 @@ const Zd = (e) => (r) => {
|
|
|
1143
1143
|
collapsed: Ju,
|
|
1144
1144
|
content: Qu
|
|
1145
1145
|
}, Is = ({ title: e, headerContent: t, children: r, className: n, headerClassName: a, contentClassName: o, dontRenderIfNoChildren: i, ...l }) => {
|
|
1146
|
-
const c = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [p,
|
|
1146
|
+
const c = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [p, d] = M(c), u = l.collapsible ? l.controlled ? l.isOpen : p : !0;
|
|
1147
1147
|
$(() => {
|
|
1148
|
-
|
|
1148
|
+
d(c);
|
|
1149
1149
|
}, [c]);
|
|
1150
1150
|
const v = Y(() => !r || !r.toString() || r.toString().split(",").filter((f) => f && f !== "false").length === 0, [r]);
|
|
1151
1151
|
return i && v ? null : /* @__PURE__ */ s.jsxs("div", { className: j("luminus-card rounded shadow-sm", jt.card, {
|
|
@@ -1154,17 +1154,17 @@ const Zd = (e) => (r) => {
|
|
|
1154
1154
|
/* @__PURE__ */ s.jsxs("div", { role: l.collapsible ? "button" : void 0, className: j("header", jt.header, {
|
|
1155
1155
|
[a ?? ""]: a
|
|
1156
1156
|
}), onClick: () => {
|
|
1157
|
-
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) :
|
|
1157
|
+
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : d(!p));
|
|
1158
1158
|
}, children: [
|
|
1159
1159
|
/* @__PURE__ */ s.jsxs("div", { className: j("header-content", jt.headerContent), children: [
|
|
1160
1160
|
/* @__PURE__ */ s.jsx(ae, { variant: "h6", className: j("text-primary", jt.title), children: e }),
|
|
1161
1161
|
t ?? null
|
|
1162
1162
|
] }),
|
|
1163
1163
|
l.collapsible && /* @__PURE__ */ s.jsx(qi, { className: j(jt.collapseIcon, {
|
|
1164
|
-
[jt.collapsed]:
|
|
1164
|
+
[jt.collapsed]: u
|
|
1165
1165
|
}) })
|
|
1166
1166
|
] }),
|
|
1167
|
-
/* @__PURE__ */ s.jsx(os, { in:
|
|
1167
|
+
/* @__PURE__ */ s.jsx(os, { in: u, children: /* @__PURE__ */ s.jsx("div", { className: j("card-content border-top border-primary", jt.content, {
|
|
1168
1168
|
[o ?? ""]: o
|
|
1169
1169
|
}), children: r }) })
|
|
1170
1170
|
] });
|
|
@@ -1295,12 +1295,12 @@ function js(e, t, r) {
|
|
|
1295
1295
|
function p() {
|
|
1296
1296
|
l === i && (l = i.slice());
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function d() {
|
|
1299
1299
|
if (c)
|
|
1300
1300
|
throw new Error(process.env.NODE_ENV === "production" ? Fe(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.");
|
|
1301
1301
|
return o;
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function u(h) {
|
|
1304
1304
|
if (typeof h != "function")
|
|
1305
1305
|
throw new Error(process.env.NODE_ENV === "production" ? Fe(4) : "Expected the listener to be a function. Instead, received: '" + Tt(h) + "'");
|
|
1306
1306
|
if (c)
|
|
@@ -1342,7 +1342,7 @@ function js(e, t, r) {
|
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
1344
1344
|
function g() {
|
|
1345
|
-
var h, b =
|
|
1345
|
+
var h, b = u;
|
|
1346
1346
|
return h = {
|
|
1347
1347
|
/**
|
|
1348
1348
|
* The minimal observable subscription method.
|
|
@@ -1356,7 +1356,7 @@ function js(e, t, r) {
|
|
|
1356
1356
|
if (typeof x != "object" || x === null)
|
|
1357
1357
|
throw new Error(process.env.NODE_ENV === "production" ? Fe(11) : "Expected the observer to be an object. Instead, received: '" + Tt(x) + "'");
|
|
1358
1358
|
function N() {
|
|
1359
|
-
x.next && x.next(
|
|
1359
|
+
x.next && x.next(d());
|
|
1360
1360
|
}
|
|
1361
1361
|
N();
|
|
1362
1362
|
var D = b(N);
|
|
@@ -1372,8 +1372,8 @@ function js(e, t, r) {
|
|
|
1372
1372
|
type: So.INIT
|
|
1373
1373
|
}), n = {
|
|
1374
1374
|
dispatch: v,
|
|
1375
|
-
subscribe:
|
|
1376
|
-
getState:
|
|
1375
|
+
subscribe: u,
|
|
1376
|
+
getState: d,
|
|
1377
1377
|
replaceReducer: f
|
|
1378
1378
|
}, n[Co] = g, n;
|
|
1379
1379
|
}
|
|
@@ -1474,14 +1474,14 @@ var Oo = {
|
|
|
1474
1474
|
};
|
|
1475
1475
|
function Ps(e, t) {
|
|
1476
1476
|
var r, n = Oo;
|
|
1477
|
-
function a(
|
|
1478
|
-
return c(), n.subscribe(
|
|
1477
|
+
function a(u) {
|
|
1478
|
+
return c(), n.subscribe(u);
|
|
1479
1479
|
}
|
|
1480
1480
|
function o() {
|
|
1481
1481
|
n.notify();
|
|
1482
1482
|
}
|
|
1483
1483
|
function i() {
|
|
1484
|
-
|
|
1484
|
+
d.onStateChange && d.onStateChange();
|
|
1485
1485
|
}
|
|
1486
1486
|
function l() {
|
|
1487
1487
|
return !!r;
|
|
@@ -1492,7 +1492,7 @@ function Ps(e, t) {
|
|
|
1492
1492
|
function p() {
|
|
1493
1493
|
r && (r(), r = void 0, n.clear(), n = Oo);
|
|
1494
1494
|
}
|
|
1495
|
-
var
|
|
1495
|
+
var d = {
|
|
1496
1496
|
addNestedSub: a,
|
|
1497
1497
|
notifyNestedSubs: o,
|
|
1498
1498
|
handleChangeWrapper: i,
|
|
@@ -1503,7 +1503,7 @@ function Ps(e, t) {
|
|
|
1503
1503
|
return n;
|
|
1504
1504
|
}
|
|
1505
1505
|
};
|
|
1506
|
-
return
|
|
1506
|
+
return d;
|
|
1507
1507
|
}
|
|
1508
1508
|
var Ts = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? ba : $;
|
|
1509
1509
|
function As(e) {
|
|
@@ -1612,10 +1612,10 @@ var Ro;
|
|
|
1612
1612
|
function yp() {
|
|
1613
1613
|
if (Ro) return xe;
|
|
1614
1614
|
Ro = 1;
|
|
1615
|
-
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, p = 60120,
|
|
1615
|
+
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, v = 60121, f = 60122, g = 60117, h = 60129, b = 60131;
|
|
1616
1616
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
1617
1617
|
var m = Symbol.for;
|
|
1618
|
-
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"),
|
|
1618
|
+
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"), v = m("react.block"), f = m("react.server.block"), g = m("react.fundamental"), h = m("react.debug_trace_mode"), b = m("react.legacy_hidden");
|
|
1619
1619
|
}
|
|
1620
1620
|
function x(E) {
|
|
1621
1621
|
if (typeof E == "object" && E !== null) {
|
|
@@ -1633,8 +1633,8 @@ function yp() {
|
|
|
1633
1633
|
switch (E = E && E.$$typeof, E) {
|
|
1634
1634
|
case i:
|
|
1635
1635
|
case l:
|
|
1636
|
-
case d:
|
|
1637
1636
|
case u:
|
|
1637
|
+
case d:
|
|
1638
1638
|
case o:
|
|
1639
1639
|
return E;
|
|
1640
1640
|
default:
|
|
@@ -1646,7 +1646,7 @@ function yp() {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
|
-
var N = o, D = e, y = l, C = r, O =
|
|
1649
|
+
var N = o, D = e, y = l, C = r, O = u, S = d, I = t, B = a, R = n, G = c;
|
|
1650
1650
|
return xe.ContextConsumer = i, xe.ContextProvider = N, xe.Element = D, xe.ForwardRef = y, xe.Fragment = C, xe.Lazy = O, xe.Memo = S, xe.Portal = I, xe.Profiler = B, xe.StrictMode = R, xe.Suspense = G, xe.isAsyncMode = function() {
|
|
1651
1651
|
return !1;
|
|
1652
1652
|
}, xe.isConcurrentMode = function() {
|
|
@@ -1662,9 +1662,9 @@ function yp() {
|
|
|
1662
1662
|
}, xe.isFragment = function(E) {
|
|
1663
1663
|
return x(E) === r;
|
|
1664
1664
|
}, xe.isLazy = function(E) {
|
|
1665
|
-
return x(E) === d;
|
|
1666
|
-
}, xe.isMemo = function(E) {
|
|
1667
1665
|
return x(E) === u;
|
|
1666
|
+
}, xe.isMemo = function(E) {
|
|
1667
|
+
return x(E) === d;
|
|
1668
1668
|
}, xe.isPortal = function(E) {
|
|
1669
1669
|
return x(E) === t;
|
|
1670
1670
|
}, xe.isProfiler = function(E) {
|
|
@@ -1674,7 +1674,7 @@ function yp() {
|
|
|
1674
1674
|
}, xe.isSuspense = function(E) {
|
|
1675
1675
|
return x(E) === c;
|
|
1676
1676
|
}, xe.isValidElementType = function(E) {
|
|
1677
|
-
return typeof E == "string" || typeof E == "function" || E === r || E === a || E === h || E === n || E === c || E === p || E === b || typeof E == "object" && E !== null && (E.$$typeof ===
|
|
1677
|
+
return typeof E == "string" || typeof E == "function" || E === r || E === a || E === h || E === n || E === c || E === p || E === b || typeof E == "object" && E !== null && (E.$$typeof === u || E.$$typeof === d || E.$$typeof === o || E.$$typeof === i || E.$$typeof === l || E.$$typeof === g || E.$$typeof === v || E[0] === f);
|
|
1678
1678
|
}, xe.typeOf = x, xe;
|
|
1679
1679
|
}
|
|
1680
1680
|
var ye = {};
|
|
@@ -1689,14 +1689,14 @@ var ye = {};
|
|
|
1689
1689
|
var Bo;
|
|
1690
1690
|
function wp() {
|
|
1691
1691
|
return Bo || (Bo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1692
|
-
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, p = 60120,
|
|
1692
|
+
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, v = 60121, f = 60122, g = 60117, h = 60129, b = 60131;
|
|
1693
1693
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
1694
1694
|
var m = Symbol.for;
|
|
1695
|
-
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"),
|
|
1695
|
+
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"), v = m("react.block"), f = m("react.server.block"), g = m("react.fundamental"), m("react.scope"), m("react.opaque.id"), h = m("react.debug_trace_mode"), m("react.offscreen"), b = m("react.legacy_hidden");
|
|
1696
1696
|
}
|
|
1697
1697
|
var x = !1;
|
|
1698
1698
|
function N(V) {
|
|
1699
|
-
return !!(typeof V == "string" || typeof V == "function" || V === r || V === a || V === h || V === n || V === c || V === p || V === b || x || typeof V == "object" && V !== null && (V.$$typeof ===
|
|
1699
|
+
return !!(typeof V == "string" || typeof V == "function" || V === r || V === a || V === h || V === n || V === c || V === p || V === b || x || typeof V == "object" && V !== null && (V.$$typeof === u || V.$$typeof === d || V.$$typeof === o || V.$$typeof === i || V.$$typeof === l || V.$$typeof === g || V.$$typeof === v || V[0] === f));
|
|
1700
1700
|
}
|
|
1701
1701
|
function D(V) {
|
|
1702
1702
|
if (typeof V == "object" && V !== null) {
|
|
@@ -1716,8 +1716,8 @@ function wp() {
|
|
|
1716
1716
|
switch (Ae) {
|
|
1717
1717
|
case i:
|
|
1718
1718
|
case l:
|
|
1719
|
-
case d:
|
|
1720
1719
|
case u:
|
|
1720
|
+
case d:
|
|
1721
1721
|
case o:
|
|
1722
1722
|
return Ae;
|
|
1723
1723
|
default:
|
|
@@ -1729,7 +1729,7 @@ function wp() {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
|
-
var y = i, C = o, O = e, S = l, I = r, B =
|
|
1732
|
+
var y = i, C = o, O = e, S = l, I = r, B = u, R = d, G = t, E = a, J = n, H = c, _ = !1, T = !1;
|
|
1733
1733
|
function W(V) {
|
|
1734
1734
|
return _ || (_ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1735
1735
|
}
|
|
@@ -1752,10 +1752,10 @@ function wp() {
|
|
|
1752
1752
|
return D(V) === r;
|
|
1753
1753
|
}
|
|
1754
1754
|
function k(V) {
|
|
1755
|
-
return D(V) ===
|
|
1755
|
+
return D(V) === u;
|
|
1756
1756
|
}
|
|
1757
1757
|
function q(V) {
|
|
1758
|
-
return D(V) ===
|
|
1758
|
+
return D(V) === d;
|
|
1759
1759
|
}
|
|
1760
1760
|
function fe(V) {
|
|
1761
1761
|
return D(V) === t;
|
|
@@ -1794,15 +1794,15 @@ function jp(e, t, r, n, a, o, i) {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
function Op(e, t, r, n, a, o, i, l, c, p) {
|
|
1796
1796
|
if (e) {
|
|
1797
|
-
var
|
|
1798
|
-
if (!
|
|
1797
|
+
var d = !1, u = null, v = function() {
|
|
1798
|
+
if (!d) {
|
|
1799
1799
|
var h = t.getState(), b, m;
|
|
1800
1800
|
try {
|
|
1801
1801
|
b = n(h, a.current);
|
|
1802
1802
|
} catch (x) {
|
|
1803
|
-
m = x,
|
|
1803
|
+
m = x, u = x;
|
|
1804
1804
|
}
|
|
1805
|
-
m || (
|
|
1805
|
+
m || (u = null), b === o.current ? i.current || c() : (o.current = b, l.current = b, i.current = !0, p({
|
|
1806
1806
|
type: "STORE_UPDATED",
|
|
1807
1807
|
payload: {
|
|
1808
1808
|
error: m
|
|
@@ -1812,8 +1812,8 @@ function Op(e, t, r, n, a, o, i, l, c, p) {
|
|
|
1812
1812
|
};
|
|
1813
1813
|
r.onStateChange = v, r.trySubscribe(), v();
|
|
1814
1814
|
var f = function() {
|
|
1815
|
-
if (
|
|
1816
|
-
throw
|
|
1815
|
+
if (d = !0, r.tryUnsubscribe(), r.onStateChange = null, u)
|
|
1816
|
+
throw u;
|
|
1817
1817
|
};
|
|
1818
1818
|
return f;
|
|
1819
1819
|
}
|
|
@@ -1825,7 +1825,7 @@ function Pp(e, t) {
|
|
|
1825
1825
|
t === void 0 && (t = {});
|
|
1826
1826
|
var r = t, n = r.getDisplayName, a = n === void 0 ? function(C) {
|
|
1827
1827
|
return "ConnectAdvanced(" + C + ")";
|
|
1828
|
-
} : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l, p = r.shouldHandleStateChanges,
|
|
1828
|
+
} : 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, v = u === void 0 ? "store" : u, f = r.withRef, g = f === void 0 ? !1 : f, h = r.forwardRef, b = h === void 0 ? !1 : h, m = r.context, x = m === void 0 ? Na : m, N = Kr(r, Dp);
|
|
1829
1829
|
if (process.env.NODE_ENV !== "production") {
|
|
1830
1830
|
if (c !== void 0)
|
|
1831
1831
|
throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
|
|
@@ -1843,7 +1843,7 @@ function Pp(e, t) {
|
|
|
1843
1843
|
getDisplayName: a,
|
|
1844
1844
|
methodName: i,
|
|
1845
1845
|
renderCountProp: c,
|
|
1846
|
-
shouldHandleStateChanges:
|
|
1846
|
+
shouldHandleStateChanges: d,
|
|
1847
1847
|
storeKey: v,
|
|
1848
1848
|
displayName: I,
|
|
1849
1849
|
wrappedComponentName: S,
|
|
@@ -1867,7 +1867,7 @@ function Pp(e, t) {
|
|
|
1867
1867
|
var q = ie ? T.store : le.store, fe = Y(function() {
|
|
1868
1868
|
return G(q);
|
|
1869
1869
|
}, [q]), de = Y(function() {
|
|
1870
|
-
if (!
|
|
1870
|
+
if (!d) return Cp;
|
|
1871
1871
|
var ce = Ps(q, ie ? null : le.subscription), Be = ce.notifyNestedSubs.bind(ce);
|
|
1872
1872
|
return [ce, Be];
|
|
1873
1873
|
}, [q, ie, le]), z = de[0], ue = de[1], V = Y(function() {
|
|
@@ -1880,13 +1880,13 @@ function Pp(e, t) {
|
|
|
1880
1880
|
var He = Z(), A = Z(U), F = Z(), Q = Z(!1), ge = E(function() {
|
|
1881
1881
|
return F.current && U === A.current ? F.current : fe(q.getState(), U);
|
|
1882
1882
|
}, [q, Ae, U]);
|
|
1883
|
-
Mo(jp, [A, He, Q, U, ge, F, ue]), Mo(Op, [
|
|
1883
|
+
Mo(jp, [A, He, Q, U, ge, F, ue]), Mo(Op, [d, q, z, fe, A, He, Q, F, ue, it], [q, z, fe]);
|
|
1884
1884
|
var Ce = Y(function() {
|
|
1885
1885
|
return /* @__PURE__ */ oe.createElement(O, te({}, ge, {
|
|
1886
1886
|
ref: X
|
|
1887
1887
|
}));
|
|
1888
1888
|
}, [X, O, ge]), he = Y(function() {
|
|
1889
|
-
return
|
|
1889
|
+
return d ? /* @__PURE__ */ oe.createElement(re.Provider, {
|
|
1890
1890
|
value: V
|
|
1891
1891
|
}, Ce) : Ce;
|
|
1892
1892
|
}, [re, Ce, V]);
|
|
@@ -1966,8 +1966,8 @@ function Ls(e, t) {
|
|
|
1966
1966
|
};
|
|
1967
1967
|
return i.dependsOnOwnProps = !0, i.mapToProps = function(c, p) {
|
|
1968
1968
|
i.mapToProps = e, i.dependsOnOwnProps = Fo(e);
|
|
1969
|
-
var
|
|
1970
|
-
return typeof
|
|
1969
|
+
var d = i(c, p);
|
|
1970
|
+
return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps = Fo(d), d = i(c, p)), process.env.NODE_ENV !== "production" && Ms(d, o, t), d;
|
|
1971
1971
|
}, i;
|
|
1972
1972
|
};
|
|
1973
1973
|
}
|
|
@@ -2002,8 +2002,8 @@ function $p(e, t, r) {
|
|
|
2002
2002
|
function Gp(e) {
|
|
2003
2003
|
return function(r, n) {
|
|
2004
2004
|
var a = n.displayName, o = n.pure, i = n.areMergedPropsEqual, l = !1, c;
|
|
2005
|
-
return function(
|
|
2006
|
-
var f = e(
|
|
2005
|
+
return function(d, u, v) {
|
|
2006
|
+
var f = e(d, u, v);
|
|
2007
2007
|
return l ? (!o || !i(f, c)) && (c = f) : (l = !0, c = f, process.env.NODE_ENV !== "production" && Ms(c, a, "mergeProps")), c;
|
|
2008
2008
|
};
|
|
2009
2009
|
};
|
|
@@ -2032,23 +2032,23 @@ function Yp(e, t, r, n) {
|
|
|
2032
2032
|
};
|
|
2033
2033
|
}
|
|
2034
2034
|
function Kp(e, t, r, n, a) {
|
|
2035
|
-
var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1, p,
|
|
2035
|
+
var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1, p, d, u, v, f;
|
|
2036
2036
|
function g(N, D) {
|
|
2037
|
-
return p = N,
|
|
2037
|
+
return p = N, d = D, u = e(p, d), v = t(n, d), f = r(u, v, d), c = !0, f;
|
|
2038
2038
|
}
|
|
2039
2039
|
function h() {
|
|
2040
|
-
return
|
|
2040
|
+
return u = e(p, d), t.dependsOnOwnProps && (v = t(n, d)), f = r(u, v, d), f;
|
|
2041
2041
|
}
|
|
2042
2042
|
function b() {
|
|
2043
|
-
return e.dependsOnOwnProps && (
|
|
2043
|
+
return e.dependsOnOwnProps && (u = e(p, d)), t.dependsOnOwnProps && (v = t(n, d)), f = r(u, v, d), f;
|
|
2044
2044
|
}
|
|
2045
2045
|
function m() {
|
|
2046
|
-
var N = e(p,
|
|
2047
|
-
return
|
|
2046
|
+
var N = e(p, d), D = !l(N, u);
|
|
2047
|
+
return u = N, D && (f = r(u, v, d)), f;
|
|
2048
2048
|
}
|
|
2049
2049
|
function x(N, D) {
|
|
2050
|
-
var y = !i(D,
|
|
2051
|
-
return p = N,
|
|
2050
|
+
var y = !i(D, d), C = !o(N, p, D, d);
|
|
2051
|
+
return p = N, d = D, y && C ? h() : y ? b() : C ? m() : f;
|
|
2052
2052
|
}
|
|
2053
2053
|
return function(D, y) {
|
|
2054
2054
|
return c ? x(D, y) : g(D, y);
|
|
@@ -2074,11 +2074,11 @@ function Qp(e, t) {
|
|
|
2074
2074
|
return e === t;
|
|
2075
2075
|
}
|
|
2076
2076
|
function Zp(e) {
|
|
2077
|
-
var t = {}, r = t.connectHOC, n = r === void 0 ? Pp : r, a = t.mapStateToPropsFactories, o = a === void 0 ? Vp : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? Mp : i, c = t.mergePropsFactories, p = c === void 0 ? Hp : c,
|
|
2077
|
+
var t = {}, r = t.connectHOC, n = r === void 0 ? Pp : r, a = t.mapStateToPropsFactories, o = a === void 0 ? Vp : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? Mp : i, c = t.mergePropsFactories, p = c === void 0 ? Hp : c, d = t.selectorFactory, u = d === void 0 ? Xp : d;
|
|
2078
2078
|
return function(f, g, h, b) {
|
|
2079
2079
|
b === void 0 && (b = {});
|
|
2080
2080
|
var m = b, x = m.pure, N = x === void 0 ? !0 : x, D = m.areStatesEqual, y = D === void 0 ? Qp : D, C = m.areOwnPropsEqual, O = C === void 0 ? Sn : C, S = m.areStatePropsEqual, I = S === void 0 ? Sn : S, B = m.areMergedPropsEqual, R = B === void 0 ? Sn : B, G = Kr(m, Jp), E = jn(f, o, "mapStateToProps"), J = jn(g, l, "mapDispatchToProps"), H = jn(h, p, "mergeProps");
|
|
2081
|
-
return n(
|
|
2081
|
+
return n(u, te({
|
|
2082
2082
|
// used in error messages
|
|
2083
2083
|
methodName: "connect",
|
|
2084
2084
|
// used to compute Connect's displayName from the wrapped component's displayName.
|
|
@@ -2178,12 +2178,12 @@ var Ze = function(t) {
|
|
|
2178
2178
|
bottom: 0,
|
|
2179
2179
|
left: 0
|
|
2180
2180
|
}, ja = function(t) {
|
|
2181
|
-
var r = t.borderBox, n = t.margin, a = n === void 0 ? _n : n, o = t.border, i = o === void 0 ? _n : o, l = t.padding, c = l === void 0 ? _n : l, p = Ze(Ia(r, a)),
|
|
2181
|
+
var r = t.borderBox, n = t.margin, a = n === void 0 ? _n : n, o = t.border, i = o === void 0 ? _n : o, l = t.padding, c = l === void 0 ? _n : l, p = Ze(Ia(r, a)), d = Ze($o(r, i)), u = Ze($o(d, c));
|
|
2182
2182
|
return {
|
|
2183
2183
|
marginBox: p,
|
|
2184
2184
|
borderBox: Ze(r),
|
|
2185
|
-
paddingBox:
|
|
2186
|
-
contentBox:
|
|
2185
|
+
paddingBox: d,
|
|
2186
|
+
contentBox: u,
|
|
2187
2187
|
margin: a,
|
|
2188
2188
|
border: i,
|
|
2189
2189
|
padding: c
|
|
@@ -2606,21 +2606,21 @@ var vn = Pe(function(e, t) {
|
|
|
2606
2606
|
var c = o.displaced.all, p = c.length ? c[0] : null;
|
|
2607
2607
|
if (t)
|
|
2608
2608
|
return p ? l(p) : null;
|
|
2609
|
-
var
|
|
2609
|
+
var d = vn(r, a);
|
|
2610
2610
|
if (!p) {
|
|
2611
|
-
if (!
|
|
2611
|
+
if (!d.length)
|
|
2612
2612
|
return null;
|
|
2613
|
-
var
|
|
2614
|
-
return l(
|
|
2613
|
+
var u = d[d.length - 1];
|
|
2614
|
+
return l(u.descriptor.id);
|
|
2615
2615
|
}
|
|
2616
|
-
var v = _a(
|
|
2616
|
+
var v = _a(d, function(h) {
|
|
2617
2617
|
return h.descriptor.id === p;
|
|
2618
2618
|
});
|
|
2619
2619
|
v === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Could not find displaced item in set") : w());
|
|
2620
2620
|
var f = v - 1;
|
|
2621
2621
|
if (f < 0)
|
|
2622
2622
|
return null;
|
|
2623
|
-
var g =
|
|
2623
|
+
var g = d[f];
|
|
2624
2624
|
return l(g.descriptor.id);
|
|
2625
2625
|
}, Yt = function(e, t) {
|
|
2626
2626
|
return e.descriptor.droppableId === t.descriptor.id;
|
|
@@ -2648,11 +2648,11 @@ var vn = Pe(function(e, t) {
|
|
|
2648
2648
|
var o = t(n.top) || t(n.bottom), i = r(n.left) || r(n.right), l = o && i;
|
|
2649
2649
|
if (l)
|
|
2650
2650
|
return !0;
|
|
2651
|
-
var c = n.top < e.top && n.bottom > e.bottom, p = n.left < e.left && n.right > e.right,
|
|
2652
|
-
if (
|
|
2651
|
+
var c = n.top < e.top && n.bottom > e.bottom, p = n.left < e.left && n.right > e.right, d = c && p;
|
|
2652
|
+
if (d)
|
|
2653
2653
|
return !0;
|
|
2654
|
-
var
|
|
2655
|
-
return
|
|
2654
|
+
var u = c && i || p && o;
|
|
2655
|
+
return u;
|
|
2656
2656
|
};
|
|
2657
2657
|
}, _f = function(e) {
|
|
2658
2658
|
var t = Ke(e.top, e.bottom), r = Ke(e.left, e.right);
|
|
@@ -2732,21 +2732,21 @@ function Lf(e, t) {
|
|
|
2732
2732
|
function br(e) {
|
|
2733
2733
|
var t = e.afterDragging, r = e.destination, n = e.displacedBy, a = e.viewport, o = e.forceShouldAnimate, i = e.last;
|
|
2734
2734
|
return t.reduce(function(c, p) {
|
|
2735
|
-
var
|
|
2736
|
-
c.all.push(
|
|
2735
|
+
var d = Lf(p, n), u = p.descriptor.id;
|
|
2736
|
+
c.all.push(u);
|
|
2737
2737
|
var v = Bf({
|
|
2738
|
-
target:
|
|
2738
|
+
target: d,
|
|
2739
2739
|
destination: r,
|
|
2740
2740
|
viewport: a,
|
|
2741
2741
|
withDroppableDisplacement: !0
|
|
2742
2742
|
});
|
|
2743
2743
|
if (!v)
|
|
2744
2744
|
return c.invisible[p.descriptor.id] = !0, c;
|
|
2745
|
-
var f = Mf(
|
|
2746
|
-
draggableId:
|
|
2745
|
+
var f = Mf(u, i, o), g = {
|
|
2746
|
+
draggableId: u,
|
|
2747
2747
|
shouldAnimate: f
|
|
2748
2748
|
};
|
|
2749
|
-
return c.visible[
|
|
2749
|
+
return c.visible[u] = g, c;
|
|
2750
2750
|
}, {
|
|
2751
2751
|
all: [],
|
|
2752
2752
|
visible: {},
|
|
@@ -2784,17 +2784,17 @@ function nn(e) {
|
|
|
2784
2784
|
displacedBy: o,
|
|
2785
2785
|
destination: n
|
|
2786
2786
|
});
|
|
2787
|
-
var
|
|
2787
|
+
var d = Ct(r, function(h) {
|
|
2788
2788
|
return h.descriptor.index === l;
|
|
2789
2789
|
});
|
|
2790
|
-
if (!
|
|
2790
|
+
if (!d)
|
|
2791
2791
|
return Yo({
|
|
2792
2792
|
insideDestination: r,
|
|
2793
2793
|
inHomeList: p,
|
|
2794
2794
|
displacedBy: o,
|
|
2795
2795
|
destination: n
|
|
2796
2796
|
});
|
|
2797
|
-
var
|
|
2797
|
+
var u = vn(t, r), v = r.indexOf(d), f = u.slice(v), g = br({
|
|
2798
2798
|
afterDragging: f,
|
|
2799
2799
|
destination: n,
|
|
2800
2800
|
displacedBy: o,
|
|
@@ -2830,22 +2830,22 @@ var Vf = function(e) {
|
|
|
2830
2830
|
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;
|
|
2831
2831
|
return i < l || i > p ? null : i;
|
|
2832
2832
|
}, Gf = function(e) {
|
|
2833
|
-
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,
|
|
2834
|
-
if (
|
|
2835
|
-
var
|
|
2833
|
+
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;
|
|
2834
|
+
if (d || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot move in direction without previous impact location") : w()), d.type === "REORDER") {
|
|
2835
|
+
var u = $f({
|
|
2836
2836
|
isMovingForward: t,
|
|
2837
2837
|
isInHomeList: r,
|
|
2838
|
-
location:
|
|
2838
|
+
location: d.destination,
|
|
2839
2839
|
insideDestination: i
|
|
2840
2840
|
});
|
|
2841
|
-
return
|
|
2841
|
+
return u == null ? null : nn({
|
|
2842
2842
|
draggable: n,
|
|
2843
2843
|
insideDestination: i,
|
|
2844
2844
|
destination: o,
|
|
2845
2845
|
viewport: c,
|
|
2846
2846
|
last: l.displaced,
|
|
2847
2847
|
displacedBy: l.displacedBy,
|
|
2848
|
-
index:
|
|
2848
|
+
index: u
|
|
2849
2849
|
});
|
|
2850
2850
|
}
|
|
2851
2851
|
var v = Vf({
|
|
@@ -2853,7 +2853,7 @@ var Vf = function(e) {
|
|
|
2853
2853
|
destination: o,
|
|
2854
2854
|
displaced: l.displaced,
|
|
2855
2855
|
draggables: a,
|
|
2856
|
-
combine:
|
|
2856
|
+
combine: d.combine,
|
|
2857
2857
|
afterCritical: p
|
|
2858
2858
|
});
|
|
2859
2859
|
return v == null ? null : nn({
|
|
@@ -2901,16 +2901,16 @@ var Vf = function(e) {
|
|
|
2901
2901
|
moveInto: a.page,
|
|
2902
2902
|
isMoving: l
|
|
2903
2903
|
});
|
|
2904
|
-
var p = t.displaced,
|
|
2905
|
-
if (
|
|
2906
|
-
var v = n[
|
|
2907
|
-
if (yt(
|
|
2904
|
+
var p = t.displaced, d = t.displacedBy, u = p.all[0];
|
|
2905
|
+
if (u) {
|
|
2906
|
+
var v = n[u];
|
|
2907
|
+
if (yt(u, o))
|
|
2908
2908
|
return Xo({
|
|
2909
2909
|
axis: c,
|
|
2910
2910
|
moveRelativeTo: v.page,
|
|
2911
2911
|
isMoving: l
|
|
2912
2912
|
});
|
|
2913
|
-
var f = Zr(v.page,
|
|
2913
|
+
var f = Zr(v.page, d.point);
|
|
2914
2914
|
return Xo({
|
|
2915
2915
|
axis: c,
|
|
2916
2916
|
moveRelativeTo: f,
|
|
@@ -2993,26 +2993,26 @@ var Xf = function(e) {
|
|
|
2993
2993
|
viewport: i.frame,
|
|
2994
2994
|
last: c,
|
|
2995
2995
|
forceShouldAnimate: !1
|
|
2996
|
-
}),
|
|
2996
|
+
}), d = br({
|
|
2997
2997
|
afterDragging: Jo(c.all, a),
|
|
2998
2998
|
destination: l,
|
|
2999
2999
|
displacedBy: t.displacedBy,
|
|
3000
3000
|
viewport: r.frame,
|
|
3001
3001
|
last: c,
|
|
3002
3002
|
forceShouldAnimate: !1
|
|
3003
|
-
}),
|
|
3003
|
+
}), u = {}, v = {}, f = [c, p, d];
|
|
3004
3004
|
c.all.forEach(function(h) {
|
|
3005
3005
|
var b = Kf(h, f);
|
|
3006
3006
|
if (b) {
|
|
3007
3007
|
v[h] = b;
|
|
3008
3008
|
return;
|
|
3009
3009
|
}
|
|
3010
|
-
|
|
3010
|
+
u[h] = !0;
|
|
3011
3011
|
});
|
|
3012
3012
|
var g = te({}, t, {
|
|
3013
3013
|
displaced: {
|
|
3014
3014
|
all: c.all,
|
|
3015
|
-
invisible:
|
|
3015
|
+
invisible: u,
|
|
3016
3016
|
visible: v
|
|
3017
3017
|
}
|
|
3018
3018
|
});
|
|
@@ -3023,30 +3023,30 @@ var Xf = function(e) {
|
|
|
3023
3023
|
var t = e.pageBorderBoxCenter, r = e.draggable, n = e.viewport, a = Jf(n, t), o = Ge(a, r.page.borderBox.center);
|
|
3024
3024
|
return Re(r.client.borderBox.center, o);
|
|
3025
3025
|
}, rl = function(e) {
|
|
3026
|
-
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 = Ge(n, t.page.borderBox.center), p = jr(t.page.borderBox, c),
|
|
3026
|
+
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 = Ge(n, t.page.borderBox.center), p = jr(t.page.borderBox, c), d = {
|
|
3027
3027
|
target: p,
|
|
3028
3028
|
destination: r,
|
|
3029
3029
|
withDroppableDisplacement: o,
|
|
3030
3030
|
viewport: a
|
|
3031
3031
|
};
|
|
3032
|
-
return l ? kf(
|
|
3032
|
+
return l ? kf(d) : Zs(d);
|
|
3033
3033
|
}, Qf = function(e) {
|
|
3034
3034
|
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;
|
|
3035
3035
|
if (!n.isEnabled)
|
|
3036
3036
|
return null;
|
|
3037
|
-
var
|
|
3037
|
+
var d = Mt(n.descriptor.id, a), u = Yt(r, n), v = jf({
|
|
3038
3038
|
isMovingForward: t,
|
|
3039
3039
|
draggable: r,
|
|
3040
3040
|
destination: n,
|
|
3041
|
-
insideDestination:
|
|
3041
|
+
insideDestination: d,
|
|
3042
3042
|
previousImpact: o
|
|
3043
3043
|
}) || Gf({
|
|
3044
3044
|
isMovingForward: t,
|
|
3045
|
-
isInHomeList:
|
|
3045
|
+
isInHomeList: u,
|
|
3046
3046
|
draggable: r,
|
|
3047
3047
|
draggables: a,
|
|
3048
3048
|
destination: n,
|
|
3049
|
-
insideDestination:
|
|
3049
|
+
insideDestination: d,
|
|
3050
3050
|
previousImpact: o,
|
|
3051
3051
|
viewport: i,
|
|
3052
3052
|
afterCritical: p
|
|
@@ -3098,39 +3098,39 @@ var Xf = function(e) {
|
|
|
3098
3098
|
var t = e.isMovingForward, r = e.pageBorderBoxCenter, n = e.source, a = e.droppables, o = e.viewport, i = n.subject.active;
|
|
3099
3099
|
if (!i)
|
|
3100
3100
|
return null;
|
|
3101
|
-
var l = n.axis, c = Ke(i[l.start], i[l.end]), p = pn(a).filter(function(
|
|
3102
|
-
return
|
|
3103
|
-
}).filter(function(
|
|
3104
|
-
return
|
|
3105
|
-
}).filter(function(
|
|
3106
|
-
return !!
|
|
3107
|
-
}).filter(function(
|
|
3108
|
-
return Js(o.frame)(ke(
|
|
3109
|
-
}).filter(function(
|
|
3110
|
-
var v = ke(
|
|
3101
|
+
var l = n.axis, c = Ke(i[l.start], i[l.end]), p = pn(a).filter(function(u) {
|
|
3102
|
+
return u !== n;
|
|
3103
|
+
}).filter(function(u) {
|
|
3104
|
+
return u.isEnabled;
|
|
3105
|
+
}).filter(function(u) {
|
|
3106
|
+
return !!u.subject.active;
|
|
3107
|
+
}).filter(function(u) {
|
|
3108
|
+
return Js(o.frame)(ke(u));
|
|
3109
|
+
}).filter(function(u) {
|
|
3110
|
+
var v = ke(u);
|
|
3111
3111
|
return t ? i[l.crossAxisEnd] < v[l.crossAxisEnd] : v[l.crossAxisStart] < i[l.crossAxisStart];
|
|
3112
|
-
}).filter(function(
|
|
3113
|
-
var v = ke(
|
|
3112
|
+
}).filter(function(u) {
|
|
3113
|
+
var v = ke(u), f = Ke(v[l.start], v[l.end]);
|
|
3114
3114
|
return c(v[l.start]) || c(v[l.end]) || f(i[l.start]) || f(i[l.end]);
|
|
3115
|
-
}).sort(function(
|
|
3116
|
-
var f = ke(
|
|
3115
|
+
}).sort(function(u, v) {
|
|
3116
|
+
var f = ke(u)[l.crossAxisStart], g = ke(v)[l.crossAxisStart];
|
|
3117
3117
|
return t ? f - g : g - f;
|
|
3118
|
-
}).filter(function(
|
|
3119
|
-
return ke(
|
|
3118
|
+
}).filter(function(u, v, f) {
|
|
3119
|
+
return ke(u)[l.crossAxisStart] === ke(f[0])[l.crossAxisStart];
|
|
3120
3120
|
});
|
|
3121
3121
|
if (!p.length)
|
|
3122
3122
|
return null;
|
|
3123
3123
|
if (p.length === 1)
|
|
3124
3124
|
return p[0];
|
|
3125
|
-
var
|
|
3126
|
-
var v = Ke(ke(
|
|
3125
|
+
var d = p.filter(function(u) {
|
|
3126
|
+
var v = Ke(ke(u)[l.start], ke(u)[l.end]);
|
|
3127
3127
|
return v(r[l.line]);
|
|
3128
3128
|
});
|
|
3129
|
-
return
|
|
3130
|
-
return ke(
|
|
3131
|
-
})[0] : p.sort(function(
|
|
3132
|
-
var f = zo(r, qo(ke(
|
|
3133
|
-
return f !== g ? f - g : ke(
|
|
3129
|
+
return d.length === 1 ? d[0] : d.length > 1 ? d.sort(function(u, v) {
|
|
3130
|
+
return ke(u)[l.start] - ke(v)[l.start];
|
|
3131
|
+
})[0] : p.sort(function(u, v) {
|
|
3132
|
+
var f = zo(r, qo(ke(u))), g = zo(r, qo(ke(v)));
|
|
3133
|
+
return f !== g ? f - g : ke(u)[l.start] - ke(v)[l.start];
|
|
3134
3134
|
})[0];
|
|
3135
3135
|
}, Qo = function(t, r) {
|
|
3136
3136
|
var n = t.page.borderBox.center;
|
|
@@ -3147,8 +3147,8 @@ var Xf = function(e) {
|
|
|
3147
3147
|
withDroppableDisplacement: !0
|
|
3148
3148
|
});
|
|
3149
3149
|
}).sort(function(l, c) {
|
|
3150
|
-
var p = mr(t, ea(n, Qo(l, o))),
|
|
3151
|
-
return p <
|
|
3150
|
+
var p = mr(t, ea(n, Qo(l, o))), d = mr(t, ea(n, Qo(c, o)));
|
|
3151
|
+
return p < d ? -1 : d < p ? 1 : l.descriptor.index - c.descriptor.index;
|
|
3152
3152
|
});
|
|
3153
3153
|
return i[0] || null;
|
|
3154
3154
|
}, Or = Pe(function(t, r) {
|
|
@@ -3161,8 +3161,8 @@ var Xf = function(e) {
|
|
|
3161
3161
|
var a = t.axis;
|
|
3162
3162
|
if (t.descriptor.mode === "virtual")
|
|
3163
3163
|
return Bt(a.line, r[a.line]);
|
|
3164
|
-
var o = t.subject.page.contentBox[a.size], i = Mt(t.descriptor.id, n), l = i.reduce(function(
|
|
3165
|
-
return
|
|
3164
|
+
var o = t.subject.page.contentBox[a.size], i = Mt(t.descriptor.id, n), l = i.reduce(function(d, u) {
|
|
3165
|
+
return d + u.client.marginBox[a.size];
|
|
3166
3166
|
}, 0), c = l + r[a.line], p = c - o;
|
|
3167
3167
|
return p <= 0 ? null : Bt(a.line, p);
|
|
3168
3168
|
}, nl = function(t, r) {
|
|
@@ -3190,15 +3190,15 @@ var Xf = function(e) {
|
|
|
3190
3190
|
subject: c
|
|
3191
3191
|
});
|
|
3192
3192
|
}
|
|
3193
|
-
var p = i ? Re(a.scroll.max, i) : a.scroll.max,
|
|
3193
|
+
var p = i ? Re(a.scroll.max, i) : a.scroll.max, d = nl(a, p), u = Ut({
|
|
3194
3194
|
page: t.subject.page,
|
|
3195
3195
|
withPlaceholder: l,
|
|
3196
3196
|
axis: t.axis,
|
|
3197
|
-
frame:
|
|
3197
|
+
frame: d
|
|
3198
3198
|
});
|
|
3199
3199
|
return te({}, t, {
|
|
3200
|
-
subject:
|
|
3201
|
-
frame:
|
|
3200
|
+
subject: u,
|
|
3201
|
+
frame: d
|
|
3202
3202
|
});
|
|
3203
3203
|
}, nv = function(t) {
|
|
3204
3204
|
var r = t.subject.withPlaceholder;
|
|
@@ -3242,16 +3242,16 @@ var Xf = function(e) {
|
|
|
3242
3242
|
index: 0
|
|
3243
3243
|
}
|
|
3244
3244
|
}
|
|
3245
|
-
},
|
|
3245
|
+
}, d = gn({
|
|
3246
3246
|
impact: p,
|
|
3247
3247
|
draggable: a,
|
|
3248
3248
|
droppable: i,
|
|
3249
3249
|
draggables: o,
|
|
3250
3250
|
afterCritical: c
|
|
3251
|
-
}),
|
|
3251
|
+
}), u = Yt(a, i) ? i : al(i, a, o), v = rl({
|
|
3252
3252
|
draggable: a,
|
|
3253
|
-
destination:
|
|
3254
|
-
newPageBorderBoxCenter:
|
|
3253
|
+
destination: u,
|
|
3254
|
+
newPageBorderBoxCenter: d,
|
|
3255
3255
|
viewport: l.frame,
|
|
3256
3256
|
withDroppableDisplacement: !1,
|
|
3257
3257
|
onlyOnMainAxis: !0
|
|
@@ -3281,19 +3281,19 @@ var Xf = function(e) {
|
|
|
3281
3281
|
});
|
|
3282
3282
|
if (!p)
|
|
3283
3283
|
return null;
|
|
3284
|
-
var
|
|
3284
|
+
var d = Mt(p.descriptor.id, o), u = tv({
|
|
3285
3285
|
pageBorderBoxCenter: r,
|
|
3286
3286
|
viewport: l,
|
|
3287
3287
|
destination: p,
|
|
3288
|
-
insideDestination:
|
|
3288
|
+
insideDestination: d,
|
|
3289
3289
|
afterCritical: c
|
|
3290
3290
|
}), v = av({
|
|
3291
3291
|
previousPageBorderBoxCenter: r,
|
|
3292
3292
|
destination: p,
|
|
3293
3293
|
draggable: n,
|
|
3294
3294
|
draggables: o,
|
|
3295
|
-
moveRelativeTo:
|
|
3296
|
-
insideDestination:
|
|
3295
|
+
moveRelativeTo: u,
|
|
3296
|
+
insideDestination: d,
|
|
3297
3297
|
viewport: l,
|
|
3298
3298
|
afterCritical: c
|
|
3299
3299
|
});
|
|
@@ -3325,11 +3325,11 @@ var Xf = function(e) {
|
|
|
3325
3325
|
var t = e.state, r = e.type, n = iv(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");
|
|
3326
3326
|
if (c && !a)
|
|
3327
3327
|
return null;
|
|
3328
|
-
var p = r === "MOVE_DOWN" || r === "MOVE_RIGHT",
|
|
3328
|
+
var p = r === "MOVE_DOWN" || r === "MOVE_RIGHT", d = t.dimensions.draggables[t.critical.draggable.id], u = t.current.page.borderBoxCenter, v = t.dimensions, f = v.draggables, g = v.droppables;
|
|
3329
3329
|
return c ? Qf({
|
|
3330
3330
|
isMovingForward: p,
|
|
3331
|
-
previousPageBorderBoxCenter:
|
|
3332
|
-
draggable:
|
|
3331
|
+
previousPageBorderBoxCenter: u,
|
|
3332
|
+
draggable: d,
|
|
3333
3333
|
destination: i,
|
|
3334
3334
|
draggables: f,
|
|
3335
3335
|
viewport: t.viewport,
|
|
@@ -3338,8 +3338,8 @@ var Xf = function(e) {
|
|
|
3338
3338
|
afterCritical: t.afterCritical
|
|
3339
3339
|
}) : ov({
|
|
3340
3340
|
isMovingForward: p,
|
|
3341
|
-
previousPageBorderBoxCenter:
|
|
3342
|
-
draggable:
|
|
3341
|
+
previousPageBorderBoxCenter: u,
|
|
3342
|
+
draggable: d,
|
|
3343
3343
|
isOver: i,
|
|
3344
3344
|
draggables: f,
|
|
3345
3345
|
droppables: g,
|
|
@@ -3380,8 +3380,8 @@ function dv(e) {
|
|
|
3380
3380
|
return !1;
|
|
3381
3381
|
if (ol(i)(t.center))
|
|
3382
3382
|
return !0;
|
|
3383
|
-
var l = o.axis, c = i.center[l.crossAxisLine], p = t[l.crossAxisStart],
|
|
3384
|
-
return !v && !f ? !0 : v ? p < c :
|
|
3383
|
+
var l = o.axis, c = i.center[l.crossAxisLine], p = t[l.crossAxisStart], d = t[l.crossAxisEnd], u = Ke(i[l.crossAxisStart], i[l.crossAxisEnd]), v = u(p), f = u(d);
|
|
3384
|
+
return !v && !f ? !0 : v ? p < c : d > c;
|
|
3385
3385
|
});
|
|
3386
3386
|
return a.length ? a.length === 1 ? a[0].descriptor.id : cv({
|
|
3387
3387
|
pageBorderBox: t,
|
|
@@ -3404,12 +3404,12 @@ function pv(e) {
|
|
|
3404
3404
|
return r ? n && r.descriptor.index > t.descriptor.index ? r.descriptor.index - 1 : r.descriptor.index : null;
|
|
3405
3405
|
}
|
|
3406
3406
|
var fv = function(e) {
|
|
3407
|
-
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 = Or(n.axis, r.displaceBy),
|
|
3407
|
+
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 = Or(n.axis, r.displaceBy), d = p.value, u = t[c.start], v = t[c.end], f = vn(r, a), g = Ct(f, function(b) {
|
|
3408
3408
|
var m = b.descriptor.id, x = b.page.borderBox.center[c.line], N = yt(m, l), D = sl({
|
|
3409
3409
|
displaced: o,
|
|
3410
3410
|
id: m
|
|
3411
3411
|
});
|
|
3412
|
-
return N ? D ? v <= x :
|
|
3412
|
+
return N ? D ? v <= x : u < x - d : D ? v <= x + d : u < x;
|
|
3413
3413
|
}), h = pv({
|
|
3414
3414
|
draggable: r,
|
|
3415
3415
|
closest: g,
|
|
@@ -3428,12 +3428,12 @@ var fv = function(e) {
|
|
|
3428
3428
|
var t = e.draggable, r = e.pageBorderBoxWithDroppableScroll, n = e.previousImpact, a = e.destination, o = e.insideDestination, i = e.afterCritical;
|
|
3429
3429
|
if (!a.isCombineEnabled)
|
|
3430
3430
|
return null;
|
|
3431
|
-
var l = a.axis, c = Or(a.axis, t.displaceBy), p = c.value,
|
|
3431
|
+
var l = a.axis, c = Or(a.axis, t.displaceBy), p = c.value, d = r[l.start], u = r[l.end], v = vn(t, o), f = Ct(v, function(h) {
|
|
3432
3432
|
var b = h.descriptor.id, m = h.page.borderBox, x = m[l.size], N = x / vv, D = yt(b, i), y = sl({
|
|
3433
3433
|
displaced: n.displaced,
|
|
3434
3434
|
id: b
|
|
3435
3435
|
});
|
|
3436
|
-
return D ? y ?
|
|
3436
|
+
return D ? y ? u > m[l.start] + N && u < m[l.end] - N : d > m[l.start] - p + N && d < m[l.end] - p - N : y ? u > m[l.start] + p + N && u < m[l.end] + p - N : d > m[l.start] + N && d < m[l.end] - N;
|
|
3437
3437
|
});
|
|
3438
3438
|
if (!f)
|
|
3439
3439
|
return null;
|
|
@@ -3457,19 +3457,19 @@ var fv = function(e) {
|
|
|
3457
3457
|
});
|
|
3458
3458
|
if (!p)
|
|
3459
3459
|
return Of;
|
|
3460
|
-
var
|
|
3460
|
+
var d = a[p], u = Mt(d.descriptor.id, n), v = uv(d, c);
|
|
3461
3461
|
return gv({
|
|
3462
3462
|
pageBorderBoxWithDroppableScroll: v,
|
|
3463
3463
|
draggable: r,
|
|
3464
3464
|
previousImpact: o,
|
|
3465
|
-
destination:
|
|
3466
|
-
insideDestination:
|
|
3465
|
+
destination: d,
|
|
3466
|
+
insideDestination: u,
|
|
3467
3467
|
afterCritical: l
|
|
3468
3468
|
}) || fv({
|
|
3469
3469
|
pageBorderBoxWithDroppableScroll: v,
|
|
3470
3470
|
draggable: r,
|
|
3471
|
-
destination:
|
|
3472
|
-
insideDestination:
|
|
3471
|
+
destination: d,
|
|
3472
|
+
insideDestination: u,
|
|
3473
3473
|
last: o.displaced,
|
|
3474
3474
|
viewport: i,
|
|
3475
3475
|
afterCritical: l
|
|
@@ -3500,16 +3500,16 @@ var fv = function(e) {
|
|
|
3500
3500
|
var p = al(c, t, r);
|
|
3501
3501
|
return ka(i, p);
|
|
3502
3502
|
}, ir = function(e) {
|
|
3503
|
-
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,
|
|
3504
|
-
offset:
|
|
3503
|
+
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 = Ge(p, t.initial.client.selection), u = {
|
|
3504
|
+
offset: d,
|
|
3505
3505
|
selection: p,
|
|
3506
|
-
borderBoxCenter: Re(t.initial.client.borderBoxCenter,
|
|
3506
|
+
borderBoxCenter: Re(t.initial.client.borderBoxCenter, d)
|
|
3507
3507
|
}, v = {
|
|
3508
|
-
selection: Re(
|
|
3509
|
-
borderBoxCenter: Re(
|
|
3510
|
-
offset: Re(
|
|
3508
|
+
selection: Re(u.selection, l.scroll.current),
|
|
3509
|
+
borderBoxCenter: Re(u.borderBoxCenter, l.scroll.current),
|
|
3510
|
+
offset: Re(u.offset, l.scroll.diff.value)
|
|
3511
3511
|
}, f = {
|
|
3512
|
-
client:
|
|
3512
|
+
client: u,
|
|
3513
3513
|
page: v
|
|
3514
3514
|
};
|
|
3515
3515
|
if (t.phase === "COLLECTING")
|
|
@@ -3580,17 +3580,17 @@ var cl = function(e) {
|
|
|
3580
3580
|
}, ul = function(e) {
|
|
3581
3581
|
var t = e.state, r = e.dimensions, n = e.viewport;
|
|
3582
3582
|
t.movementMode !== "SNAP" && (process.env.NODE_ENV, w());
|
|
3583
|
-
var a = t.impact, o = n || t.viewport, i = r || t.dimensions, l = i.draggables, c = i.droppables, p = l[t.critical.draggable.id],
|
|
3584
|
-
|
|
3585
|
-
var
|
|
3583
|
+
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 = We(a);
|
|
3584
|
+
d || (process.env.NODE_ENV !== "production" ? w(!1, "Must be over a destination in SNAP movement mode") : w());
|
|
3585
|
+
var u = c[d], v = cl({
|
|
3586
3586
|
impact: a,
|
|
3587
3587
|
viewport: o,
|
|
3588
|
-
destination:
|
|
3588
|
+
destination: u,
|
|
3589
3589
|
draggables: l
|
|
3590
3590
|
}), f = dl({
|
|
3591
3591
|
impact: v,
|
|
3592
3592
|
draggable: p,
|
|
3593
|
-
droppable:
|
|
3593
|
+
droppable: u,
|
|
3594
3594
|
draggables: l,
|
|
3595
3595
|
viewport: o,
|
|
3596
3596
|
afterCritical: t.afterCritical
|
|
@@ -3612,11 +3612,11 @@ var cl = function(e) {
|
|
|
3612
3612
|
l === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Expected draggable to be inside home list") : w());
|
|
3613
3613
|
var c = i.slice(l + 1), p = c.reduce(function(f, g) {
|
|
3614
3614
|
return f[g.descriptor.id] = !0, f;
|
|
3615
|
-
}, {}),
|
|
3615
|
+
}, {}), d = {
|
|
3616
3616
|
inVirtualList: r.descriptor.mode === "virtual",
|
|
3617
3617
|
displacedBy: o,
|
|
3618
3618
|
effected: p
|
|
3619
|
-
},
|
|
3619
|
+
}, u = br({
|
|
3620
3620
|
afterDragging: c,
|
|
3621
3621
|
destination: r,
|
|
3622
3622
|
displacedBy: o,
|
|
@@ -3624,7 +3624,7 @@ var cl = function(e) {
|
|
|
3624
3624
|
viewport: a.frame,
|
|
3625
3625
|
forceShouldAnimate: !1
|
|
3626
3626
|
}), v = {
|
|
3627
|
-
displaced:
|
|
3627
|
+
displaced: u,
|
|
3628
3628
|
displacedBy: o,
|
|
3629
3629
|
at: {
|
|
3630
3630
|
type: "REORDER",
|
|
@@ -3633,7 +3633,7 @@ var cl = function(e) {
|
|
|
3633
3633
|
};
|
|
3634
3634
|
return {
|
|
3635
3635
|
impact: v,
|
|
3636
|
-
afterCritical:
|
|
3636
|
+
afterCritical: d
|
|
3637
3637
|
};
|
|
3638
3638
|
}, yv = function(e, t) {
|
|
3639
3639
|
return {
|
|
@@ -3659,12 +3659,12 @@ var cl = function(e) {
|
|
|
3659
3659
|
}, Nv = function(e) {
|
|
3660
3660
|
var t = e.additions, r = e.updatedDroppables, n = e.viewport, a = n.scroll.diff.value;
|
|
3661
3661
|
return t.map(function(o) {
|
|
3662
|
-
var i = o.descriptor.droppableId, l = r[i], c = Dv(l), p = c.scroll.diff.value,
|
|
3662
|
+
var i = o.descriptor.droppableId, l = r[i], c = Dv(l), p = c.scroll.diff.value, d = Re(a, p), u = wv({
|
|
3663
3663
|
draggable: o,
|
|
3664
|
-
offset:
|
|
3664
|
+
offset: d,
|
|
3665
3665
|
initialWindowScroll: n.scroll.initial
|
|
3666
3666
|
});
|
|
3667
|
-
return
|
|
3667
|
+
return u;
|
|
3668
3668
|
});
|
|
3669
3669
|
}, Ev = function(e) {
|
|
3670
3670
|
var t = e.state, r = e.published;
|
|
@@ -3683,9 +3683,9 @@ var cl = function(e) {
|
|
|
3683
3683
|
var l = {
|
|
3684
3684
|
droppables: a,
|
|
3685
3685
|
draggables: i
|
|
3686
|
-
}, c = We(t.impact), p = c ? l.droppables[c] : null,
|
|
3687
|
-
draggable:
|
|
3688
|
-
home:
|
|
3686
|
+
}, c = We(t.impact), p = c ? l.droppables[c] : null, d = l.draggables[t.critical.draggable.id], u = l.droppables[t.critical.droppable.id], v = pl({
|
|
3687
|
+
draggable: d,
|
|
3688
|
+
home: u,
|
|
3689
3689
|
draggables: i,
|
|
3690
3690
|
viewport: t.viewport
|
|
3691
3691
|
}), f = v.impact, g = v.afterCritical, h = p && p.isCombineEnabled ? t.impact : f, b = ll({
|
|
@@ -3748,16 +3748,16 @@ var Zo = {
|
|
|
3748
3748
|
});
|
|
3749
3749
|
if (t.type === "INITIAL_PUBLISH") {
|
|
3750
3750
|
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "INITIAL_PUBLISH must come after a IDLE phase") : w());
|
|
3751
|
-
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],
|
|
3751
|
+
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 = {
|
|
3752
3752
|
selection: a,
|
|
3753
3753
|
borderBoxCenter: c.client.borderBox.center,
|
|
3754
3754
|
offset: Te
|
|
3755
|
-
},
|
|
3756
|
-
client:
|
|
3755
|
+
}, u = {
|
|
3756
|
+
client: d,
|
|
3757
3757
|
page: {
|
|
3758
|
-
selection: Re(
|
|
3759
|
-
borderBoxCenter: Re(
|
|
3760
|
-
offset: Re(
|
|
3758
|
+
selection: Re(d.selection, o.scroll.initial),
|
|
3759
|
+
borderBoxCenter: Re(d.selection, o.scroll.initial),
|
|
3760
|
+
offset: Re(d.selection, o.scroll.diff.value)
|
|
3761
3761
|
}
|
|
3762
3762
|
}, v = pn(i.droppables).every(function(V) {
|
|
3763
3763
|
return !V.isFixedOnPage;
|
|
@@ -3772,8 +3772,8 @@ var Zo = {
|
|
|
3772
3772
|
critical: n,
|
|
3773
3773
|
movementMode: l,
|
|
3774
3774
|
dimensions: i,
|
|
3775
|
-
initial:
|
|
3776
|
-
current:
|
|
3775
|
+
initial: u,
|
|
3776
|
+
current: u,
|
|
3777
3777
|
isWindowScrollAllowed: v,
|
|
3778
3778
|
impact: g,
|
|
3779
3779
|
afterCritical: h,
|
|
@@ -4070,18 +4070,18 @@ var Uv = function(e) {
|
|
|
4070
4070
|
a(o);
|
|
4071
4071
|
return;
|
|
4072
4072
|
}
|
|
4073
|
-
var i = o.payload, l = i.id, c = i.clientSelection, p = i.movementMode,
|
|
4074
|
-
|
|
4075
|
-
completed:
|
|
4073
|
+
var i = o.payload, l = i.id, c = i.clientSelection, p = i.movementMode, d = r();
|
|
4074
|
+
d.phase === "DROP_ANIMATING" && n(La({
|
|
4075
|
+
completed: d.completed
|
|
4076
4076
|
})), r().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Unexpected phase to start a drag") : w()), n(Ma()), n(Sv({
|
|
4077
4077
|
draggableId: l,
|
|
4078
4078
|
movementMode: p
|
|
4079
4079
|
}));
|
|
4080
|
-
var
|
|
4080
|
+
var u = {
|
|
4081
4081
|
shouldPublishImmediately: p === "SNAP"
|
|
4082
4082
|
}, v = {
|
|
4083
4083
|
draggableId: l,
|
|
4084
|
-
scrollOptions:
|
|
4084
|
+
scrollOptions: u
|
|
4085
4085
|
}, f = e.startPublishing(v), g = f.critical, h = f.dimensions, b = f.viewport;
|
|
4086
4086
|
Wv(g, h), n(jv({
|
|
4087
4087
|
critical: g,
|
|
@@ -4142,14 +4142,14 @@ var Uv = function(e) {
|
|
|
4142
4142
|
var o = a / ti, i = na + zv * o, l = n === "CANCEL" ? i * qv : i;
|
|
4143
4143
|
return Number(l.toFixed(2));
|
|
4144
4144
|
}, Kv = function(e) {
|
|
4145
|
-
var t = e.impact, r = e.draggable, n = e.dimensions, a = e.viewport, o = e.afterCritical, i = n.draggables, l = n.droppables, c = We(t), p = c ? l[c] : null,
|
|
4145
|
+
var t = e.impact, r = e.draggable, n = e.dimensions, a = e.viewport, o = e.afterCritical, i = n.draggables, l = n.droppables, c = We(t), p = c ? l[c] : null, d = l[r.descriptor.droppableId], u = dl({
|
|
4146
4146
|
impact: t,
|
|
4147
4147
|
draggable: r,
|
|
4148
4148
|
draggables: i,
|
|
4149
4149
|
afterCritical: o,
|
|
4150
|
-
droppable: p ||
|
|
4150
|
+
droppable: p || d,
|
|
4151
4151
|
viewport: a
|
|
4152
|
-
}), v = Ge(
|
|
4152
|
+
}), v = Ge(u, r.client.borderBox.center);
|
|
4153
4153
|
return v;
|
|
4154
4154
|
}, Xv = function(e) {
|
|
4155
4155
|
var t = e.draggables, r = e.reason, n = e.lastImpact, a = e.home, o = e.viewport, i = e.onLiftImpact;
|
|
@@ -4196,7 +4196,7 @@ var Uv = function(e) {
|
|
|
4196
4196
|
if (o.phase !== "IDLE") {
|
|
4197
4197
|
var l = o.phase === "DROP_PENDING" && o.isWaiting;
|
|
4198
4198
|
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());
|
|
4199
|
-
var c = o.critical, p = o.dimensions,
|
|
4199
|
+
var c = o.critical, p = o.dimensions, d = p.draggables[o.critical.draggable.id], u = Xv({
|
|
4200
4200
|
reason: i,
|
|
4201
4201
|
lastImpact: o.impact,
|
|
4202
4202
|
afterCritical: o.afterCritical,
|
|
@@ -4204,12 +4204,12 @@ var Uv = function(e) {
|
|
|
4204
4204
|
home: o.dimensions.droppables[o.critical.droppable.id],
|
|
4205
4205
|
viewport: o.viewport,
|
|
4206
4206
|
draggables: o.dimensions.draggables
|
|
4207
|
-
}), v =
|
|
4207
|
+
}), v = u.impact, f = u.didDropInsideDroppable, g = f ? Pa(v) : null, h = f ? fn(v) : null, b = {
|
|
4208
4208
|
index: c.draggable.index,
|
|
4209
4209
|
droppableId: c.droppable.id
|
|
4210
4210
|
}, m = {
|
|
4211
|
-
draggableId:
|
|
4212
|
-
type:
|
|
4211
|
+
draggableId: d.descriptor.id,
|
|
4212
|
+
type: d.descriptor.type,
|
|
4213
4213
|
source: b,
|
|
4214
4214
|
reason: i,
|
|
4215
4215
|
mode: o.movementMode,
|
|
@@ -4217,7 +4217,7 @@ var Uv = function(e) {
|
|
|
4217
4217
|
combine: h
|
|
4218
4218
|
}, x = Kv({
|
|
4219
4219
|
impact: v,
|
|
4220
|
-
draggable:
|
|
4220
|
+
draggable: d,
|
|
4221
4221
|
dimensions: p,
|
|
4222
4222
|
viewport: o.viewport,
|
|
4223
4223
|
afterCritical: o.afterCritical
|
|
@@ -4433,7 +4433,7 @@ var eg = function(t) {
|
|
|
4433
4433
|
n || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : w()), n = null, rr("onDragEnd", function() {
|
|
4434
4434
|
return An(e().onDragEnd, v, t, zr.onDragEnd);
|
|
4435
4435
|
});
|
|
4436
|
-
},
|
|
4436
|
+
}, d = function() {
|
|
4437
4437
|
if (n) {
|
|
4438
4438
|
var v = te({}, Mr(n.lastCritical, n.mode), {
|
|
4439
4439
|
combine: null,
|
|
@@ -4450,7 +4450,7 @@ var eg = function(t) {
|
|
|
4450
4450
|
update: l,
|
|
4451
4451
|
flush: c,
|
|
4452
4452
|
drop: p,
|
|
4453
|
-
abort:
|
|
4453
|
+
abort: d
|
|
4454
4454
|
};
|
|
4455
4455
|
}, lg = function(e, t) {
|
|
4456
4456
|
var r = sg(e, t);
|
|
@@ -4597,7 +4597,7 @@ function bg(e) {
|
|
|
4597
4597
|
var t = e.registry, r = e.callbacks, n = Rn(), a = null, o = function() {
|
|
4598
4598
|
a || (r.collectionStarting(), a = requestAnimationFrame(function() {
|
|
4599
4599
|
a = null, _r();
|
|
4600
|
-
var
|
|
4600
|
+
var d = n, u = d.additions, v = d.removals, f = d.modified, g = Object.keys(u).map(function(m) {
|
|
4601
4601
|
return t.draggable.getById(m).getDimension(Te);
|
|
4602
4602
|
}).sort(function(m, x) {
|
|
4603
4603
|
return m.descriptor.index - x.descriptor.index;
|
|
@@ -4614,12 +4614,12 @@ function bg(e) {
|
|
|
4614
4614
|
};
|
|
4615
4615
|
n = Rn(), Pr(), r.publish(b);
|
|
4616
4616
|
}));
|
|
4617
|
-
}, i = function(
|
|
4618
|
-
var
|
|
4619
|
-
n.additions[
|
|
4620
|
-
}, l = function(
|
|
4621
|
-
var
|
|
4622
|
-
n.removals[
|
|
4617
|
+
}, i = function(d) {
|
|
4618
|
+
var u = d.descriptor.id;
|
|
4619
|
+
n.additions[u] = d, n.modified[d.descriptor.droppableId] = !0, n.removals[u] && delete n.removals[u], o();
|
|
4620
|
+
}, l = function(d) {
|
|
4621
|
+
var u = d.descriptor;
|
|
4622
|
+
n.removals[u.id] = !0, n.modified[u.droppableId] = !0, n.additions[u.id] && delete n.additions[u.id], o();
|
|
4623
4623
|
}, c = function() {
|
|
4624
4624
|
a && (cancelAnimationFrame(a), a = null, n = Rn());
|
|
4625
4625
|
};
|
|
@@ -4658,7 +4658,7 @@ var bl = function(e) {
|
|
|
4658
4658
|
left: n,
|
|
4659
4659
|
right: l,
|
|
4660
4660
|
bottom: c
|
|
4661
|
-
}),
|
|
4661
|
+
}), d = {
|
|
4662
4662
|
frame: p,
|
|
4663
4663
|
scroll: {
|
|
4664
4664
|
initial: e,
|
|
@@ -4670,25 +4670,25 @@ var bl = function(e) {
|
|
|
4670
4670
|
}
|
|
4671
4671
|
}
|
|
4672
4672
|
};
|
|
4673
|
-
return
|
|
4673
|
+
return d;
|
|
4674
4674
|
}, yg = function(e) {
|
|
4675
4675
|
var t = e.critical, r = e.scrollOptions, n = e.registry;
|
|
4676
4676
|
_r();
|
|
4677
|
-
var a = xg(), o = a.scroll.current, i = t.droppable, l = n.droppable.getAllByType(i.type).map(function(
|
|
4678
|
-
return
|
|
4679
|
-
}), c = n.draggable.getAllByType(t.draggable.type).map(function(
|
|
4680
|
-
return
|
|
4677
|
+
var a = xg(), o = a.scroll.current, i = t.droppable, l = n.droppable.getAllByType(i.type).map(function(u) {
|
|
4678
|
+
return u.callbacks.getDimensionAndWatchScroll(o, r);
|
|
4679
|
+
}), c = n.draggable.getAllByType(t.draggable.type).map(function(u) {
|
|
4680
|
+
return u.getDimension(o);
|
|
4681
4681
|
}), p = {
|
|
4682
4682
|
draggables: Ks(c),
|
|
4683
4683
|
droppables: Ys(l)
|
|
4684
4684
|
};
|
|
4685
4685
|
Pr();
|
|
4686
|
-
var
|
|
4686
|
+
var d = {
|
|
4687
4687
|
dimensions: p,
|
|
4688
4688
|
critical: t,
|
|
4689
4689
|
viewport: a
|
|
4690
4690
|
};
|
|
4691
|
-
return
|
|
4691
|
+
return d;
|
|
4692
4692
|
};
|
|
4693
4693
|
function ri(e, t, r) {
|
|
4694
4694
|
if (r.descriptor.id === t.id || r.descriptor.type !== t.type)
|
|
@@ -4737,7 +4737,7 @@ var wg = function(e, t) {
|
|
|
4737
4737
|
r || (process.env.NODE_ENV !== "production" ? w(!1, "Should only be subscribed when a collection is occurring") : w());
|
|
4738
4738
|
var g = r.critical.draggable;
|
|
4739
4739
|
f.type === "ADDITION" && ri(e, g, f.value) && n.add(f.value), f.type === "REMOVAL" && ri(e, g, f.value) && n.remove(f.value);
|
|
4740
|
-
},
|
|
4740
|
+
}, d = function(f) {
|
|
4741
4741
|
r && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start capturing critical dimensions as there is already a collection") : w());
|
|
4742
4742
|
var g = e.draggable.getById(f.draggableId), h = e.droppable.getById(g.descriptor.droppableId), b = {
|
|
4743
4743
|
draggable: g.descriptor,
|
|
@@ -4751,15 +4751,15 @@ var wg = function(e, t) {
|
|
|
4751
4751
|
registry: e,
|
|
4752
4752
|
scrollOptions: f.scrollOptions
|
|
4753
4753
|
});
|
|
4754
|
-
},
|
|
4754
|
+
}, u = {
|
|
4755
4755
|
updateDroppableIsEnabled: a,
|
|
4756
4756
|
updateDroppableIsCombineEnabled: o,
|
|
4757
4757
|
scrollDroppable: l,
|
|
4758
4758
|
updateDroppableScroll: i,
|
|
4759
|
-
startPublishing:
|
|
4759
|
+
startPublishing: d,
|
|
4760
4760
|
stopPublishing: c
|
|
4761
4761
|
};
|
|
4762
|
-
return
|
|
4762
|
+
return u;
|
|
4763
4763
|
}, wl = function(e, t) {
|
|
4764
4764
|
return e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP";
|
|
4765
4765
|
}, Dg = function(e) {
|
|
@@ -4881,12 +4881,12 @@ var wg = function(e, t) {
|
|
|
4881
4881
|
});
|
|
4882
4882
|
if (bt(p, Te))
|
|
4883
4883
|
return null;
|
|
4884
|
-
var
|
|
4884
|
+
var d = Og({
|
|
4885
4885
|
container: r,
|
|
4886
4886
|
subject: n,
|
|
4887
4887
|
proposedScroll: p
|
|
4888
4888
|
});
|
|
4889
|
-
return
|
|
4889
|
+
return d ? bt(d, Te) ? null : d : null;
|
|
4890
4890
|
}, Pg = zs(function(e) {
|
|
4891
4891
|
return e === 0 ? 0 : e > 0 ? 1 : -1;
|
|
4892
4892
|
}), Ga = /* @__PURE__ */ function() {
|
|
@@ -4963,59 +4963,59 @@ var wg = function(e, t) {
|
|
|
4963
4963
|
}, si = function(e) {
|
|
4964
4964
|
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;
|
|
4965
4965
|
if (t.isWindowScrollAllowed) {
|
|
4966
|
-
var p = t.viewport,
|
|
4966
|
+
var p = t.viewport, d = Rg({
|
|
4967
4967
|
dragStartTime: r,
|
|
4968
4968
|
viewport: p,
|
|
4969
4969
|
subject: c,
|
|
4970
4970
|
center: i,
|
|
4971
4971
|
shouldUseTimeDampening: n
|
|
4972
4972
|
});
|
|
4973
|
-
if (
|
|
4974
|
-
a(
|
|
4973
|
+
if (d) {
|
|
4974
|
+
a(d);
|
|
4975
4975
|
return;
|
|
4976
4976
|
}
|
|
4977
4977
|
}
|
|
4978
|
-
var
|
|
4978
|
+
var u = Cg({
|
|
4979
4979
|
center: i,
|
|
4980
4980
|
destination: We(t.impact),
|
|
4981
4981
|
droppables: t.dimensions.droppables
|
|
4982
4982
|
});
|
|
4983
|
-
if (
|
|
4983
|
+
if (u) {
|
|
4984
4984
|
var v = Bg({
|
|
4985
4985
|
dragStartTime: r,
|
|
4986
|
-
droppable:
|
|
4986
|
+
droppable: u,
|
|
4987
4987
|
subject: c,
|
|
4988
4988
|
center: i,
|
|
4989
4989
|
shouldUseTimeDampening: n
|
|
4990
4990
|
});
|
|
4991
|
-
v && o(
|
|
4991
|
+
v && o(u.descriptor.id, v);
|
|
4992
4992
|
}
|
|
4993
4993
|
}, kg = function(e) {
|
|
4994
|
-
var t = e.scrollWindow, r = e.scrollDroppable, n = vr(t), a = vr(r), o = null, i = function(
|
|
4994
|
+
var t = e.scrollWindow, r = e.scrollDroppable, n = vr(t), a = vr(r), o = null, i = function(d) {
|
|
4995
4995
|
o || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fluid scroll if not dragging") : w());
|
|
4996
|
-
var
|
|
4996
|
+
var u = o, v = u.shouldUseTimeDampening, f = u.dragStartTime;
|
|
4997
4997
|
si({
|
|
4998
|
-
state:
|
|
4998
|
+
state: d,
|
|
4999
4999
|
scrollWindow: n,
|
|
5000
5000
|
scrollDroppable: a,
|
|
5001
5001
|
dragStartTime: f,
|
|
5002
5002
|
shouldUseTimeDampening: v
|
|
5003
5003
|
});
|
|
5004
|
-
}, l = function(
|
|
5004
|
+
}, l = function(d) {
|
|
5005
5005
|
_r(), o && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start auto scrolling when already started") : w());
|
|
5006
|
-
var
|
|
5006
|
+
var u = Date.now(), v = !1, f = function() {
|
|
5007
5007
|
v = !0;
|
|
5008
5008
|
};
|
|
5009
5009
|
si({
|
|
5010
|
-
state:
|
|
5010
|
+
state: d,
|
|
5011
5011
|
dragStartTime: 0,
|
|
5012
5012
|
shouldUseTimeDampening: !1,
|
|
5013
5013
|
scrollWindow: f,
|
|
5014
5014
|
scrollDroppable: f
|
|
5015
5015
|
}), o = {
|
|
5016
|
-
dragStartTime:
|
|
5016
|
+
dragStartTime: u,
|
|
5017
5017
|
shouldUseTimeDampening: v
|
|
5018
|
-
}, Pr(), v && i(
|
|
5018
|
+
}, Pr(), v && i(d);
|
|
5019
5019
|
}, c = function() {
|
|
5020
5020
|
o && (n.cancel(), a.cancel(), o = null);
|
|
5021
5021
|
};
|
|
@@ -5025,37 +5025,37 @@ var wg = function(e, t) {
|
|
|
5025
5025
|
scroll: i
|
|
5026
5026
|
};
|
|
5027
5027
|
}, Mg = function(e) {
|
|
5028
|
-
var t = e.move, r = e.scrollDroppable, n = e.scrollWindow, a = function(p,
|
|
5029
|
-
var
|
|
5028
|
+
var t = e.move, r = e.scrollDroppable, n = e.scrollWindow, a = function(p, d) {
|
|
5029
|
+
var u = Re(p.current.client.selection, d);
|
|
5030
5030
|
t({
|
|
5031
|
-
client:
|
|
5031
|
+
client: u
|
|
5032
5032
|
});
|
|
5033
|
-
}, o = function(p,
|
|
5034
|
-
if (!Ua(p,
|
|
5035
|
-
return
|
|
5036
|
-
var
|
|
5037
|
-
if (!
|
|
5038
|
-
return r(p.descriptor.id,
|
|
5039
|
-
var v = Ge(
|
|
5033
|
+
}, o = function(p, d) {
|
|
5034
|
+
if (!Ua(p, d))
|
|
5035
|
+
return d;
|
|
5036
|
+
var u = Ag(p, d);
|
|
5037
|
+
if (!u)
|
|
5038
|
+
return r(p.descriptor.id, d), null;
|
|
5039
|
+
var v = Ge(d, u);
|
|
5040
5040
|
r(p.descriptor.id, v);
|
|
5041
|
-
var f = Ge(
|
|
5041
|
+
var f = Ge(d, v);
|
|
5042
5042
|
return f;
|
|
5043
|
-
}, i = function(p,
|
|
5044
|
-
if (!p || !Wa(
|
|
5045
|
-
return
|
|
5046
|
-
var v = Tg(
|
|
5043
|
+
}, i = function(p, d, u) {
|
|
5044
|
+
if (!p || !Wa(d, u))
|
|
5045
|
+
return u;
|
|
5046
|
+
var v = Tg(d, u);
|
|
5047
5047
|
if (!v)
|
|
5048
|
-
return n(
|
|
5049
|
-
var f = Ge(
|
|
5048
|
+
return n(u), null;
|
|
5049
|
+
var f = Ge(u, v);
|
|
5050
5050
|
n(f);
|
|
5051
|
-
var g = Ge(
|
|
5051
|
+
var g = Ge(u, f);
|
|
5052
5052
|
return g;
|
|
5053
5053
|
}, l = function(p) {
|
|
5054
|
-
var
|
|
5055
|
-
if (
|
|
5056
|
-
var
|
|
5057
|
-
|
|
5058
|
-
var v = o(p.dimensions.droppables[
|
|
5054
|
+
var d = p.scrollJumpRequest;
|
|
5055
|
+
if (d) {
|
|
5056
|
+
var u = We(p.impact);
|
|
5057
|
+
u || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot perform a jump scroll when there is no destination") : w());
|
|
5058
|
+
var v = o(p.dimensions.droppables[u], d);
|
|
5059
5059
|
if (v) {
|
|
5060
5060
|
var f = p.viewport, g = i(p.isWindowScrollAllowed, f, v);
|
|
5061
5061
|
g && a(p, g);
|
|
@@ -5184,17 +5184,17 @@ var wg = function(e, t) {
|
|
|
5184
5184
|
function Wg(e, t) {
|
|
5185
5185
|
var r = pe(function() {
|
|
5186
5186
|
return Gg(e);
|
|
5187
|
-
}, [e]), n = Z(null), a = Z(null), o = K(Pe(function(
|
|
5187
|
+
}, [e]), n = Z(null), a = Z(null), o = K(Pe(function(u) {
|
|
5188
5188
|
var v = a.current;
|
|
5189
|
-
v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), v.textContent =
|
|
5190
|
-
}), []), i = K(function(
|
|
5189
|
+
v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), v.textContent = u;
|
|
5190
|
+
}), []), i = K(function(u) {
|
|
5191
5191
|
var v = n.current;
|
|
5192
|
-
v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), v.textContent =
|
|
5192
|
+
v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), v.textContent = u;
|
|
5193
5193
|
}, []);
|
|
5194
5194
|
Ue(function() {
|
|
5195
5195
|
!n.current && !a.current || (process.env.NODE_ENV !== "production" ? w(!1, "style elements already mounted") : w());
|
|
5196
|
-
var
|
|
5197
|
-
return n.current =
|
|
5196
|
+
var u = ci(t), v = ci(t);
|
|
5197
|
+
return n.current = u, a.current = v, u.setAttribute(Ht + "-always", e), v.setAttribute(Ht + "-dynamic", e), Bn().appendChild(u), Bn().appendChild(v), i(r.always), o(r.resting), function() {
|
|
5198
5198
|
var f = function(h) {
|
|
5199
5199
|
var b = h.current;
|
|
5200
5200
|
b || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot unmount ref as it is not set") : w()), Bn().removeChild(b), h.current = null;
|
|
@@ -5204,22 +5204,22 @@ function Wg(e, t) {
|
|
|
5204
5204
|
}, [t, i, o, r.always, r.resting, e]);
|
|
5205
5205
|
var l = K(function() {
|
|
5206
5206
|
return o(r.dragging);
|
|
5207
|
-
}, [o, r.dragging]), c = K(function(
|
|
5208
|
-
if (
|
|
5207
|
+
}, [o, r.dragging]), c = K(function(u) {
|
|
5208
|
+
if (u === "DROP") {
|
|
5209
5209
|
o(r.dropAnimating);
|
|
5210
5210
|
return;
|
|
5211
5211
|
}
|
|
5212
5212
|
o(r.userCancel);
|
|
5213
5213
|
}, [o, r.dropAnimating, r.userCancel]), p = K(function() {
|
|
5214
5214
|
a.current && o(r.resting);
|
|
5215
|
-
}, [o, r.resting]),
|
|
5215
|
+
}, [o, r.resting]), d = pe(function() {
|
|
5216
5216
|
return {
|
|
5217
5217
|
dragging: l,
|
|
5218
5218
|
dropping: c,
|
|
5219
5219
|
resting: p
|
|
5220
5220
|
};
|
|
5221
5221
|
}, [l, c, p]);
|
|
5222
|
-
return
|
|
5222
|
+
return d;
|
|
5223
5223
|
}
|
|
5224
5224
|
var Cl = function(e) {
|
|
5225
5225
|
return e && e.ownerDocument ? e.ownerDocument.defaultView : window;
|
|
@@ -5269,7 +5269,7 @@ function Ug(e) {
|
|
|
5269
5269
|
v && cancelAnimationFrame(v);
|
|
5270
5270
|
};
|
|
5271
5271
|
}, []);
|
|
5272
|
-
var
|
|
5272
|
+
var d = pe(function() {
|
|
5273
5273
|
return {
|
|
5274
5274
|
register: o,
|
|
5275
5275
|
tryRecordFocus: p,
|
|
@@ -5277,30 +5277,30 @@ function Ug(e) {
|
|
|
5277
5277
|
tryShiftRecord: l
|
|
5278
5278
|
};
|
|
5279
5279
|
}, [o, p, c, l]);
|
|
5280
|
-
return
|
|
5280
|
+
return d;
|
|
5281
5281
|
}
|
|
5282
5282
|
function Hg() {
|
|
5283
5283
|
var e = {
|
|
5284
5284
|
draggables: {},
|
|
5285
5285
|
droppables: {}
|
|
5286
5286
|
}, t = [];
|
|
5287
|
-
function r(
|
|
5288
|
-
return t.push(
|
|
5289
|
-
var f = t.indexOf(
|
|
5287
|
+
function r(u) {
|
|
5288
|
+
return t.push(u), function() {
|
|
5289
|
+
var f = t.indexOf(u);
|
|
5290
5290
|
f !== -1 && t.splice(f, 1);
|
|
5291
5291
|
};
|
|
5292
5292
|
}
|
|
5293
|
-
function n(
|
|
5293
|
+
function n(u) {
|
|
5294
5294
|
t.length && t.forEach(function(v) {
|
|
5295
|
-
return v(
|
|
5295
|
+
return v(u);
|
|
5296
5296
|
});
|
|
5297
5297
|
}
|
|
5298
|
-
function a(
|
|
5299
|
-
return e.draggables[
|
|
5298
|
+
function a(u) {
|
|
5299
|
+
return e.draggables[u] || null;
|
|
5300
5300
|
}
|
|
5301
|
-
function o(
|
|
5302
|
-
var v = a(
|
|
5303
|
-
return v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find draggable entry with id [" +
|
|
5301
|
+
function o(u) {
|
|
5302
|
+
var v = a(u);
|
|
5303
|
+
return v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find draggable entry with id [" + u + "]") : w()), v;
|
|
5304
5304
|
}
|
|
5305
5305
|
var i = {
|
|
5306
5306
|
register: function(v) {
|
|
@@ -5331,12 +5331,12 @@ function Hg() {
|
|
|
5331
5331
|
});
|
|
5332
5332
|
}
|
|
5333
5333
|
};
|
|
5334
|
-
function l(
|
|
5335
|
-
return e.droppables[
|
|
5334
|
+
function l(u) {
|
|
5335
|
+
return e.droppables[u] || null;
|
|
5336
5336
|
}
|
|
5337
|
-
function c(
|
|
5338
|
-
var v = l(
|
|
5339
|
-
return v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find droppable entry with id [" +
|
|
5337
|
+
function c(u) {
|
|
5338
|
+
var v = l(u);
|
|
5339
|
+
return v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find droppable entry with id [" + u + "]") : w()), v;
|
|
5340
5340
|
}
|
|
5341
5341
|
var p = {
|
|
5342
5342
|
register: function(v) {
|
|
@@ -5357,14 +5357,14 @@ function Hg() {
|
|
|
5357
5357
|
});
|
|
5358
5358
|
}
|
|
5359
5359
|
};
|
|
5360
|
-
function
|
|
5360
|
+
function d() {
|
|
5361
5361
|
e.draggables = {}, e.droppables = {}, t.length = 0;
|
|
5362
5362
|
}
|
|
5363
5363
|
return {
|
|
5364
5364
|
draggable: i,
|
|
5365
5365
|
droppable: p,
|
|
5366
5366
|
subscribe: r,
|
|
5367
|
-
clean:
|
|
5367
|
+
clean: d
|
|
5368
5368
|
};
|
|
5369
5369
|
}
|
|
5370
5370
|
function zg() {
|
|
@@ -5583,19 +5583,19 @@ function xm(e) {
|
|
|
5583
5583
|
fn: function(i) {
|
|
5584
5584
|
var l = i.button, c = i.clientX, p = i.clientY;
|
|
5585
5585
|
if (l === Ol) {
|
|
5586
|
-
var
|
|
5586
|
+
var d = {
|
|
5587
5587
|
x: c,
|
|
5588
5588
|
y: p
|
|
5589
|
-
},
|
|
5590
|
-
if (
|
|
5591
|
-
i.preventDefault(),
|
|
5589
|
+
}, u = n();
|
|
5590
|
+
if (u.type === "DRAGGING") {
|
|
5591
|
+
i.preventDefault(), u.actions.move(d);
|
|
5592
5592
|
return;
|
|
5593
5593
|
}
|
|
5594
|
-
|
|
5595
|
-
var v =
|
|
5596
|
-
if (bm(v,
|
|
5594
|
+
u.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot be IDLE") : w());
|
|
5595
|
+
var v = u.point;
|
|
5596
|
+
if (bm(v, d)) {
|
|
5597
5597
|
i.preventDefault();
|
|
5598
|
-
var f =
|
|
5598
|
+
var f = u.actions.fluidLift(d);
|
|
5599
5599
|
a({
|
|
5600
5600
|
type: "DRAGGING",
|
|
5601
5601
|
actions: f
|
|
@@ -5665,18 +5665,18 @@ function ym(e) {
|
|
|
5665
5665
|
var t = Z(pi), r = Z(ht), n = pe(function() {
|
|
5666
5666
|
return {
|
|
5667
5667
|
eventName: "mousedown",
|
|
5668
|
-
fn: function(
|
|
5669
|
-
if (!
|
|
5670
|
-
var v = e.findClosestDraggableId(
|
|
5668
|
+
fn: function(u) {
|
|
5669
|
+
if (!u.defaultPrevented && u.button === Ol && !(u.ctrlKey || u.metaKey || u.shiftKey || u.altKey)) {
|
|
5670
|
+
var v = e.findClosestDraggableId(u);
|
|
5671
5671
|
if (v) {
|
|
5672
5672
|
var f = e.tryGetLock(v, i, {
|
|
5673
|
-
sourceEvent:
|
|
5673
|
+
sourceEvent: u
|
|
5674
5674
|
});
|
|
5675
5675
|
if (f) {
|
|
5676
|
-
|
|
5676
|
+
u.preventDefault();
|
|
5677
5677
|
var g = {
|
|
5678
|
-
x:
|
|
5679
|
-
y:
|
|
5678
|
+
x: u.clientX,
|
|
5679
|
+
y: u.clientY
|
|
5680
5680
|
};
|
|
5681
5681
|
r.current(), p(f, g);
|
|
5682
5682
|
}
|
|
@@ -5687,32 +5687,32 @@ function ym(e) {
|
|
|
5687
5687
|
}, [e]), a = pe(function() {
|
|
5688
5688
|
return {
|
|
5689
5689
|
eventName: "webkitmouseforcewillbegin",
|
|
5690
|
-
fn: function(
|
|
5691
|
-
if (!
|
|
5692
|
-
var v = e.findClosestDraggableId(
|
|
5690
|
+
fn: function(u) {
|
|
5691
|
+
if (!u.defaultPrevented) {
|
|
5692
|
+
var v = e.findClosestDraggableId(u);
|
|
5693
5693
|
if (v) {
|
|
5694
5694
|
var f = e.findOptionsForDraggable(v);
|
|
5695
|
-
f && (f.shouldRespectForcePress || e.canGetLock(v) &&
|
|
5695
|
+
f && (f.shouldRespectForcePress || e.canGetLock(v) && u.preventDefault());
|
|
5696
5696
|
}
|
|
5697
5697
|
}
|
|
5698
5698
|
}
|
|
5699
5699
|
};
|
|
5700
5700
|
}, [e]), o = K(function() {
|
|
5701
|
-
var
|
|
5701
|
+
var u = {
|
|
5702
5702
|
passive: !1,
|
|
5703
5703
|
capture: !0
|
|
5704
5704
|
};
|
|
5705
|
-
r.current = Ye(window, [a, n],
|
|
5705
|
+
r.current = Ye(window, [a, n], u);
|
|
5706
5706
|
}, [a, n]), i = K(function() {
|
|
5707
|
-
var
|
|
5708
|
-
|
|
5707
|
+
var d = t.current;
|
|
5708
|
+
d.type !== "IDLE" && (t.current = pi, r.current(), o());
|
|
5709
5709
|
}, [o]), l = K(function() {
|
|
5710
|
-
var
|
|
5711
|
-
i(),
|
|
5710
|
+
var d = t.current;
|
|
5711
|
+
i(), d.type === "DRAGGING" && d.actions.cancel({
|
|
5712
5712
|
shouldBlockNextClick: !0
|
|
5713
|
-
}),
|
|
5713
|
+
}), d.type === "PENDING" && d.actions.abort();
|
|
5714
5714
|
}, [i]), c = K(function() {
|
|
5715
|
-
var
|
|
5715
|
+
var u = {
|
|
5716
5716
|
capture: !0,
|
|
5717
5717
|
passive: !1
|
|
5718
5718
|
}, v = xm({
|
|
@@ -5725,12 +5725,12 @@ function ym(e) {
|
|
|
5725
5725
|
t.current = g;
|
|
5726
5726
|
}
|
|
5727
5727
|
});
|
|
5728
|
-
r.current = Ye(window, v,
|
|
5729
|
-
}, [l, i]), p = K(function(
|
|
5728
|
+
r.current = Ye(window, v, u);
|
|
5729
|
+
}, [l, i]), p = K(function(u, v) {
|
|
5730
5730
|
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected to move from IDLE to PENDING drag") : w()), t.current = {
|
|
5731
5731
|
type: "PENDING",
|
|
5732
5732
|
point: v,
|
|
5733
|
-
actions:
|
|
5733
|
+
actions: u
|
|
5734
5734
|
}, c();
|
|
5735
5735
|
}, [c]);
|
|
5736
5736
|
Ue(function() {
|
|
@@ -5819,7 +5819,7 @@ function Em(e) {
|
|
|
5819
5819
|
var i = e.findClosestDraggableId(o);
|
|
5820
5820
|
if (!i)
|
|
5821
5821
|
return;
|
|
5822
|
-
var l = e.tryGetLock(i,
|
|
5822
|
+
var l = e.tryGetLock(i, d, {
|
|
5823
5823
|
sourceEvent: o
|
|
5824
5824
|
});
|
|
5825
5825
|
if (!l)
|
|
@@ -5827,10 +5827,10 @@ function Em(e) {
|
|
|
5827
5827
|
o.preventDefault();
|
|
5828
5828
|
var c = !0, p = l.snapLift();
|
|
5829
5829
|
t.current();
|
|
5830
|
-
function
|
|
5830
|
+
function d() {
|
|
5831
5831
|
c || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot stop capturing a keyboard drag when not capturing") : w()), c = !1, t.current(), n();
|
|
5832
5832
|
}
|
|
5833
|
-
t.current = Ye(window, Nm(p,
|
|
5833
|
+
t.current = Ye(window, Nm(p, d), {
|
|
5834
5834
|
capture: !0,
|
|
5835
5835
|
passive: !1
|
|
5836
5836
|
});
|
|
@@ -5893,11 +5893,11 @@ function jm(e) {
|
|
|
5893
5893
|
return;
|
|
5894
5894
|
}
|
|
5895
5895
|
i.hasMoved = !0;
|
|
5896
|
-
var l = o.touches[0], c = l.clientX, p = l.clientY,
|
|
5896
|
+
var l = o.touches[0], c = l.clientX, p = l.clientY, d = {
|
|
5897
5897
|
x: c,
|
|
5898
5898
|
y: p
|
|
5899
5899
|
};
|
|
5900
|
-
o.preventDefault(), i.actions.move(
|
|
5900
|
+
o.preventDefault(), i.actions.move(d);
|
|
5901
5901
|
}
|
|
5902
5902
|
}, {
|
|
5903
5903
|
eventName: "touchend",
|
|
@@ -5971,7 +5971,7 @@ function Om(e) {
|
|
|
5971
5971
|
x: m,
|
|
5972
5972
|
y: x
|
|
5973
5973
|
};
|
|
5974
|
-
r.current(),
|
|
5974
|
+
r.current(), u(h, N);
|
|
5975
5975
|
}
|
|
5976
5976
|
}
|
|
5977
5977
|
}
|
|
@@ -6003,7 +6003,7 @@ function Om(e) {
|
|
|
6003
6003
|
r.current = function() {
|
|
6004
6004
|
h(), b();
|
|
6005
6005
|
};
|
|
6006
|
-
}, [c, n, l]),
|
|
6006
|
+
}, [c, n, l]), d = K(function() {
|
|
6007
6007
|
var f = n();
|
|
6008
6008
|
f.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start dragging from phase " + f.type) : w());
|
|
6009
6009
|
var g = f.actions.fluidLift(f.point);
|
|
@@ -6012,16 +6012,16 @@ function Om(e) {
|
|
|
6012
6012
|
actions: g,
|
|
6013
6013
|
hasMoved: !1
|
|
6014
6014
|
});
|
|
6015
|
-
}, [n, a]),
|
|
6015
|
+
}, [n, a]), u = K(function(f, g) {
|
|
6016
6016
|
n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected to move from IDLE to PENDING drag") : w());
|
|
6017
|
-
var h = setTimeout(
|
|
6017
|
+
var h = setTimeout(d, Cm);
|
|
6018
6018
|
a({
|
|
6019
6019
|
type: "PENDING",
|
|
6020
6020
|
point: g,
|
|
6021
6021
|
actions: f,
|
|
6022
6022
|
longPressTimerId: h
|
|
6023
6023
|
}), p();
|
|
6024
|
-
}, [p, n, a,
|
|
6024
|
+
}, [p, n, a, d]);
|
|
6025
6025
|
Ue(function() {
|
|
6026
6026
|
return i(), function() {
|
|
6027
6027
|
r.current();
|
|
@@ -6154,17 +6154,17 @@ function Gm(e) {
|
|
|
6154
6154
|
});
|
|
6155
6155
|
if (!c)
|
|
6156
6156
|
return null;
|
|
6157
|
-
var p = a.draggable.getById(o),
|
|
6158
|
-
if (!
|
|
6157
|
+
var p = a.draggable.getById(o), d = Vm(r, p.descriptor.id);
|
|
6158
|
+
if (!d)
|
|
6159
6159
|
return process.env.NODE_ENV !== "production" && De("Unable to find draggable element with id: " + o), null;
|
|
6160
|
-
if (l && !p.options.canDragInteractiveElements && Tm(
|
|
6160
|
+
if (l && !p.options.canDragInteractiveElements && Tm(d, l))
|
|
6161
6161
|
return null;
|
|
6162
|
-
var
|
|
6162
|
+
var u = t.claim(i || ht), v = "PRE_DRAG";
|
|
6163
6163
|
function f() {
|
|
6164
6164
|
return p.options.shouldRespectForcePress;
|
|
6165
6165
|
}
|
|
6166
6166
|
function g() {
|
|
6167
|
-
return t.isActive(
|
|
6167
|
+
return t.isActive(u);
|
|
6168
6168
|
}
|
|
6169
6169
|
function h(C, O) {
|
|
6170
6170
|
Fr({
|
|
@@ -6259,7 +6259,7 @@ function Gm(e) {
|
|
|
6259
6259
|
return m({
|
|
6260
6260
|
liftActionArgs: {
|
|
6261
6261
|
id: o,
|
|
6262
|
-
clientSelection: Am(
|
|
6262
|
+
clientSelection: Am(d),
|
|
6263
6263
|
movementMode: "SNAP"
|
|
6264
6264
|
},
|
|
6265
6265
|
cleanup: ht,
|
|
@@ -6314,7 +6314,7 @@ function Um(e) {
|
|
|
6314
6314
|
store: r,
|
|
6315
6315
|
draggableId: m
|
|
6316
6316
|
});
|
|
6317
|
-
}, [l, n, r]),
|
|
6317
|
+
}, [l, n, r]), d = K(function(m, x, N) {
|
|
6318
6318
|
return Gm({
|
|
6319
6319
|
lockAPI: l,
|
|
6320
6320
|
registry: n,
|
|
@@ -6324,7 +6324,7 @@ function Um(e) {
|
|
|
6324
6324
|
forceSensorStop: x,
|
|
6325
6325
|
sourceEvent: N && N.sourceEvent ? N.sourceEvent : null
|
|
6326
6326
|
});
|
|
6327
|
-
}, [t, l, n, r]),
|
|
6327
|
+
}, [t, l, n, r]), u = K(function(m) {
|
|
6328
6328
|
return Fm(t, m);
|
|
6329
6329
|
}, [t]), v = K(function(m) {
|
|
6330
6330
|
var x = n.draggable.findById(m);
|
|
@@ -6334,13 +6334,13 @@ function Um(e) {
|
|
|
6334
6334
|
}, [l, r]), g = K(l.isClaimed, [l]), h = pe(function() {
|
|
6335
6335
|
return {
|
|
6336
6336
|
canGetLock: p,
|
|
6337
|
-
tryGetLock:
|
|
6338
|
-
findClosestDraggableId:
|
|
6337
|
+
tryGetLock: d,
|
|
6338
|
+
findClosestDraggableId: u,
|
|
6339
6339
|
findOptionsForDraggable: v,
|
|
6340
6340
|
tryReleaseLock: f,
|
|
6341
6341
|
isLockClaimed: g
|
|
6342
6342
|
};
|
|
6343
|
-
}, [p,
|
|
6343
|
+
}, [p, d, u, v, f, g]);
|
|
6344
6344
|
_m(i);
|
|
6345
6345
|
for (var b = 0; b < i.length; b++)
|
|
6346
6346
|
i[b](h);
|
|
@@ -6362,10 +6362,10 @@ function zm(e) {
|
|
|
6362
6362
|
om();
|
|
6363
6363
|
var l = Ya(e), c = K(function() {
|
|
6364
6364
|
return Hm(l.current);
|
|
6365
|
-
}, [l]), p = Kg(t),
|
|
6365
|
+
}, [l]), p = Kg(t), d = Zg({
|
|
6366
6366
|
contextId: t,
|
|
6367
6367
|
text: o
|
|
6368
|
-
}),
|
|
6368
|
+
}), u = Wg(t, a), v = K(function(I) {
|
|
6369
6369
|
ar(i).dispatch(I);
|
|
6370
6370
|
}, []), f = pe(function() {
|
|
6371
6371
|
return jo({
|
|
@@ -6391,9 +6391,9 @@ function zm(e) {
|
|
|
6391
6391
|
dimensionMarshal: h,
|
|
6392
6392
|
focusMarshal: m,
|
|
6393
6393
|
getResponders: c,
|
|
6394
|
-
styleMarshal:
|
|
6394
|
+
styleMarshal: u
|
|
6395
6395
|
});
|
|
6396
|
-
}, [p, b, h, m, c,
|
|
6396
|
+
}, [p, b, h, m, c, u]);
|
|
6397
6397
|
process.env.NODE_ENV !== "production" && i.current && i.current !== x && process.env.NODE_ENV !== "production" && De("unexpected store change"), i.current = x;
|
|
6398
6398
|
var N = K(function() {
|
|
6399
6399
|
var I = ar(i), B = I.getState();
|
|
@@ -6419,10 +6419,10 @@ function zm(e) {
|
|
|
6419
6419
|
contextId: t,
|
|
6420
6420
|
canLift: C,
|
|
6421
6421
|
isMovementAllowed: O,
|
|
6422
|
-
dragHandleUsageInstructionsId:
|
|
6422
|
+
dragHandleUsageInstructionsId: d,
|
|
6423
6423
|
registry: g
|
|
6424
6424
|
};
|
|
6425
|
-
}, [t, h,
|
|
6425
|
+
}, [t, h, d, m, C, O, g]);
|
|
6426
6426
|
return Um({
|
|
6427
6427
|
contextId: t,
|
|
6428
6428
|
store: x,
|
|
@@ -6550,21 +6550,21 @@ var Xa = function(t) {
|
|
|
6550
6550
|
}
|
|
6551
6551
|
}
|
|
6552
6552
|
};
|
|
6553
|
-
}(),
|
|
6553
|
+
}(), d = o === "vertical" ? Ta : Qs, u = Ut({
|
|
6554
6554
|
page: l,
|
|
6555
6555
|
withPlaceholder: null,
|
|
6556
|
-
axis:
|
|
6556
|
+
axis: d,
|
|
6557
6557
|
frame: p
|
|
6558
6558
|
}), v = {
|
|
6559
6559
|
descriptor: t,
|
|
6560
6560
|
isCombineEnabled: n,
|
|
6561
6561
|
isFixedOnPage: a,
|
|
6562
|
-
axis:
|
|
6562
|
+
axis: d,
|
|
6563
6563
|
isEnabled: r,
|
|
6564
6564
|
client: i,
|
|
6565
6565
|
page: l,
|
|
6566
6566
|
frame: p,
|
|
6567
|
-
subject:
|
|
6567
|
+
subject: u
|
|
6568
6568
|
};
|
|
6569
6569
|
return v;
|
|
6570
6570
|
}, oh = function(t, r) {
|
|
@@ -6576,15 +6576,15 @@ var Xa = function(t) {
|
|
|
6576
6576
|
right: l,
|
|
6577
6577
|
bottom: i,
|
|
6578
6578
|
left: o
|
|
6579
|
-
}, p = Ia(c, n.border),
|
|
6579
|
+
}, p = Ia(c, n.border), d = ja({
|
|
6580
6580
|
borderBox: p,
|
|
6581
6581
|
margin: n.margin,
|
|
6582
6582
|
border: n.border,
|
|
6583
6583
|
padding: n.padding
|
|
6584
6584
|
});
|
|
6585
|
-
return
|
|
6585
|
+
return d;
|
|
6586
6586
|
}, ih = function(e) {
|
|
6587
|
-
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,
|
|
6587
|
+
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 = oh(t, p), u = en(d, a), v = function() {
|
|
6588
6588
|
if (!p)
|
|
6589
6589
|
return null;
|
|
6590
6590
|
var g = Gs(p), h = {
|
|
@@ -6604,8 +6604,8 @@ var Xa = function(t) {
|
|
|
6604
6604
|
isCombineEnabled: l,
|
|
6605
6605
|
isFixedOnPage: n.isFixedOnPage,
|
|
6606
6606
|
direction: o,
|
|
6607
|
-
client:
|
|
6608
|
-
page:
|
|
6607
|
+
client: d,
|
|
6608
|
+
page: u,
|
|
6609
6609
|
closest: v
|
|
6610
6610
|
});
|
|
6611
6611
|
return f;
|
|
@@ -6639,24 +6639,24 @@ function ch(e) {
|
|
|
6639
6639
|
};
|
|
6640
6640
|
o.updateDroppableScroll(l.id, C);
|
|
6641
6641
|
});
|
|
6642
|
-
}, [l.id, o]),
|
|
6642
|
+
}, [l.id, o]), d = K(function() {
|
|
6643
6643
|
var D = t.current;
|
|
6644
6644
|
return !D || !D.env.closestScrollable ? Te : oa(D.env.closestScrollable);
|
|
6645
|
-
}, []),
|
|
6646
|
-
var D =
|
|
6645
|
+
}, []), u = K(function() {
|
|
6646
|
+
var D = d();
|
|
6647
6647
|
p(D.x, D.y);
|
|
6648
|
-
}, [
|
|
6649
|
-
return vr(
|
|
6650
|
-
}, [
|
|
6648
|
+
}, [d, p]), v = pe(function() {
|
|
6649
|
+
return vr(u);
|
|
6650
|
+
}, [u]), f = K(function() {
|
|
6651
6651
|
var D = t.current, y = Vr(D);
|
|
6652
6652
|
D && y || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find scroll options while scrolling") : w());
|
|
6653
6653
|
var C = D.scrollOptions;
|
|
6654
6654
|
if (C.shouldPublishImmediately) {
|
|
6655
|
-
|
|
6655
|
+
u();
|
|
6656
6656
|
return;
|
|
6657
6657
|
}
|
|
6658
6658
|
v();
|
|
6659
|
-
}, [v,
|
|
6659
|
+
}, [v, u]), g = K(function(D, y) {
|
|
6660
6660
|
t.current && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect a droppable while a drag is occurring") : w());
|
|
6661
6661
|
var C = i.current, O = C.getDroppableRef();
|
|
6662
6662
|
O || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect without a droppable ref") : w());
|
|
@@ -6758,17 +6758,17 @@ function ph(e) {
|
|
|
6758
6758
|
t.current = null, p(!1);
|
|
6759
6759
|
}), r) : Ln;
|
|
6760
6760
|
}, [n, c, r]);
|
|
6761
|
-
var
|
|
6761
|
+
var d = K(function(v) {
|
|
6762
6762
|
v.propertyName === "height" && (a(), n === "close" && o());
|
|
6763
|
-
}, [n, o, a]),
|
|
6763
|
+
}, [n, o, a]), u = uh({
|
|
6764
6764
|
isAnimatingOpenOnMount: c,
|
|
6765
6765
|
animate: e.animate,
|
|
6766
6766
|
placeholder: e.placeholder
|
|
6767
6767
|
});
|
|
6768
6768
|
return oe.createElement(e.placeholder.tagName, {
|
|
6769
|
-
style:
|
|
6769
|
+
style: u,
|
|
6770
6770
|
"data-rbd-placeholder-context-id": i,
|
|
6771
|
-
onTransitionEnd:
|
|
6771
|
+
onTransitionEnd: d,
|
|
6772
6772
|
ref: e.innerRef
|
|
6773
6773
|
});
|
|
6774
6774
|
}
|
|
@@ -6878,7 +6878,7 @@ var bh = function(e) {
|
|
|
6878
6878
|
return t.forceShouldAnimate != null ? t.forceShouldAnimate : t.mode === "SNAP";
|
|
6879
6879
|
};
|
|
6880
6880
|
function Dh(e) {
|
|
6881
|
-
var t = e.dimension, r = t.client, n = e.offset, a = e.combineWith, o = e.dropping, i = !!a, l = wh(e), c = !!o, p = c ? ra.drop(n, i) : ra.moveTo(n),
|
|
6881
|
+
var t = e.dimension, r = t.client, n = e.offset, a = e.combineWith, o = e.dropping, i = !!a, l = wh(e), c = !!o, p = c ? ra.drop(n, i) : ra.moveTo(n), d = {
|
|
6882
6882
|
position: "fixed",
|
|
6883
6883
|
top: r.marginBox.top,
|
|
6884
6884
|
left: r.marginBox.left,
|
|
@@ -6891,7 +6891,7 @@ function Dh(e) {
|
|
|
6891
6891
|
zIndex: c ? mi.dropAnimating : mi.dragging,
|
|
6892
6892
|
pointerEvents: "none"
|
|
6893
6893
|
};
|
|
6894
|
-
return
|
|
6894
|
+
return d;
|
|
6895
6895
|
}
|
|
6896
6896
|
function Nh(e) {
|
|
6897
6897
|
return {
|
|
@@ -6930,26 +6930,26 @@ function Sh(e) {
|
|
|
6930
6930
|
}, [o, l, i]), p = K(function(f) {
|
|
6931
6931
|
var g = a();
|
|
6932
6932
|
return g || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot get dimension when no ref is set") : w()), Ch(r, g, f);
|
|
6933
|
-
}, [r, a]),
|
|
6933
|
+
}, [r, a]), d = pe(function() {
|
|
6934
6934
|
return {
|
|
6935
6935
|
uniqueId: t,
|
|
6936
6936
|
descriptor: r,
|
|
6937
6937
|
options: c,
|
|
6938
6938
|
getDimension: p
|
|
6939
6939
|
};
|
|
6940
|
-
}, [r, p, c, t]),
|
|
6940
|
+
}, [r, p, c, t]), u = Z(d), v = Z(!0);
|
|
6941
6941
|
Ue(function() {
|
|
6942
|
-
return n.draggable.register(
|
|
6943
|
-
return n.draggable.unregister(
|
|
6942
|
+
return n.draggable.register(u.current), function() {
|
|
6943
|
+
return n.draggable.unregister(u.current);
|
|
6944
6944
|
};
|
|
6945
6945
|
}, [n.draggable]), Ue(function() {
|
|
6946
6946
|
if (v.current) {
|
|
6947
6947
|
v.current = !1;
|
|
6948
6948
|
return;
|
|
6949
6949
|
}
|
|
6950
|
-
var f =
|
|
6951
|
-
|
|
6952
|
-
}, [
|
|
6950
|
+
var f = u.current;
|
|
6951
|
+
u.current = d, n.draggable.update(d, f);
|
|
6952
|
+
}, [d, n.draggable]);
|
|
6953
6953
|
}
|
|
6954
6954
|
function Ih(e, t, r) {
|
|
6955
6955
|
Ar(function() {
|
|
@@ -6977,25 +6977,25 @@ function _h(e) {
|
|
|
6977
6977
|
t.current = I;
|
|
6978
6978
|
}, []), n = K(function() {
|
|
6979
6979
|
return t.current;
|
|
6980
|
-
}, []), a = an(mn), o = a.contextId, i = a.dragHandleUsageInstructionsId, l = a.registry, c = an(Ja), p = c.type,
|
|
6980
|
+
}, []), a = an(mn), o = a.contextId, i = a.dragHandleUsageInstructionsId, l = a.registry, c = an(Ja), p = c.type, d = c.droppableId, u = pe(function() {
|
|
6981
6981
|
return {
|
|
6982
6982
|
id: e.draggableId,
|
|
6983
6983
|
index: e.index,
|
|
6984
6984
|
type: p,
|
|
6985
|
-
droppableId:
|
|
6985
|
+
droppableId: d
|
|
6986
6986
|
};
|
|
6987
|
-
}, [e.draggableId, e.index, p,
|
|
6987
|
+
}, [e.draggableId, e.index, p, d]), v = e.children, f = e.draggableId, g = e.isEnabled, h = e.shouldRespectForcePress, b = e.canDragInteractiveElements, m = e.isClone, x = e.mapped, N = e.dropAnimationFinished;
|
|
6988
6988
|
if (Ih(e, o, n), jh(m), !m) {
|
|
6989
6989
|
var D = pe(function() {
|
|
6990
6990
|
return {
|
|
6991
|
-
descriptor:
|
|
6991
|
+
descriptor: u,
|
|
6992
6992
|
registry: l,
|
|
6993
6993
|
getDraggableRef: n,
|
|
6994
6994
|
canDragInteractiveElements: b,
|
|
6995
6995
|
shouldRespectForcePress: h,
|
|
6996
6996
|
isEnabled: g
|
|
6997
6997
|
};
|
|
6998
|
-
}, [
|
|
6998
|
+
}, [u, l, n, b, h, g]);
|
|
6999
6999
|
Sh(D);
|
|
7000
7000
|
}
|
|
7001
7001
|
var y = pe(function() {
|
|
@@ -7024,14 +7024,14 @@ function _h(e) {
|
|
|
7024
7024
|
return R;
|
|
7025
7025
|
}, [o, y, f, x, C, r]), S = pe(function() {
|
|
7026
7026
|
return {
|
|
7027
|
-
draggableId:
|
|
7028
|
-
type:
|
|
7027
|
+
draggableId: u.id,
|
|
7028
|
+
type: u.type,
|
|
7029
7029
|
source: {
|
|
7030
|
-
index:
|
|
7031
|
-
droppableId:
|
|
7030
|
+
index: u.index,
|
|
7031
|
+
droppableId: u.droppableId
|
|
7032
7032
|
}
|
|
7033
7033
|
};
|
|
7034
|
-
}, [
|
|
7034
|
+
}, [u.droppableId, u.id, u.index, u.type]);
|
|
7035
7035
|
return v(O, x.snapshot, S);
|
|
7036
7036
|
}
|
|
7037
7037
|
var kl = function(e, t) {
|
|
@@ -7061,7 +7061,7 @@ function Ah() {
|
|
|
7061
7061
|
combineWith: l,
|
|
7062
7062
|
combineTargetFor: null
|
|
7063
7063
|
};
|
|
7064
|
-
}), r = Pe(function(a, o, i, l, c, p,
|
|
7064
|
+
}), r = Pe(function(a, o, i, l, c, p, d) {
|
|
7065
7065
|
return {
|
|
7066
7066
|
mapped: {
|
|
7067
7067
|
type: "DRAGGING",
|
|
@@ -7071,7 +7071,7 @@ function Ah() {
|
|
|
7071
7071
|
mode: o,
|
|
7072
7072
|
offset: a,
|
|
7073
7073
|
dimension: i,
|
|
7074
|
-
forceShouldAnimate:
|
|
7074
|
+
forceShouldAnimate: d,
|
|
7075
7075
|
snapshot: t(o, l, c, p, null)
|
|
7076
7076
|
}
|
|
7077
7077
|
};
|
|
@@ -7079,8 +7079,8 @@ function Ah() {
|
|
|
7079
7079
|
if (o.isDragging) {
|
|
7080
7080
|
if (o.critical.draggable.id !== i.draggableId)
|
|
7081
7081
|
return null;
|
|
7082
|
-
var l = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], p = We(o.impact),
|
|
7083
|
-
return r(e(l.x, l.y), o.movementMode, c, i.isClone, p,
|
|
7082
|
+
var l = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], p = We(o.impact), d = Th(o.impact), u = o.forceShouldAnimate;
|
|
7083
|
+
return r(e(l.x, l.y), o.movementMode, c, i.isClone, p, d, u);
|
|
7084
7084
|
}
|
|
7085
7085
|
if (o.phase === "DROP_ANIMATING") {
|
|
7086
7086
|
var v = o.completed;
|
|
@@ -7150,20 +7150,20 @@ function Bh() {
|
|
|
7150
7150
|
};
|
|
7151
7151
|
}), n = function(l) {
|
|
7152
7152
|
return l ? r(Te, l, !0) : null;
|
|
7153
|
-
}, a = function(l, c, p,
|
|
7154
|
-
var
|
|
7155
|
-
if (!
|
|
7153
|
+
}, a = function(l, c, p, d) {
|
|
7154
|
+
var u = p.displaced.visible[l], v = !!(d.inVirtualList && d.effected[l]), f = fn(p), g = f && f.draggableId === l ? c : null;
|
|
7155
|
+
if (!u) {
|
|
7156
7156
|
if (!v)
|
|
7157
7157
|
return n(g);
|
|
7158
7158
|
if (p.displaced.invisible[l])
|
|
7159
7159
|
return null;
|
|
7160
|
-
var h = qt(
|
|
7160
|
+
var h = qt(d.displacedBy.point), b = e(h.x, h.y);
|
|
7161
7161
|
return r(b, g, !0);
|
|
7162
7162
|
}
|
|
7163
7163
|
if (v)
|
|
7164
7164
|
return n(g);
|
|
7165
7165
|
var m = p.displacedBy.point, x = e(m.x, m.y);
|
|
7166
|
-
return r(x, g,
|
|
7166
|
+
return r(x, g, u.shouldAnimate);
|
|
7167
7167
|
}, o = function(l, c) {
|
|
7168
7168
|
if (l.isDragging)
|
|
7169
7169
|
return l.critical.draggable.id === c.draggableId ? null : a(c.draggableId, l.critical.draggable.id, l.impact, l.afterCritical);
|
|
@@ -7203,7 +7203,7 @@ function Fh(e) {
|
|
|
7203
7203
|
function Vh(e) {
|
|
7204
7204
|
var t = ee(mn);
|
|
7205
7205
|
t || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find app context") : w());
|
|
7206
|
-
var r = t.contextId, n = t.isMovementAllowed, a = Z(null), o = Z(null), i = e.children, l = e.droppableId, c = e.type, p = e.mode,
|
|
7206
|
+
var r = t.contextId, n = t.isMovementAllowed, a = Z(null), o = Z(null), i = e.children, l = e.droppableId, c = e.type, p = e.mode, d = e.direction, u = e.ignoreContainerClipping, v = e.isDropDisabled, f = e.isCombineEnabled, g = e.snapshot, h = e.useClone, b = e.updateViewportMaxScroll, m = e.getContainerForClone, x = K(function() {
|
|
7207
7207
|
return a.current;
|
|
7208
7208
|
}, []), N = K(function(G) {
|
|
7209
7209
|
a.current = G;
|
|
@@ -7226,10 +7226,10 @@ function Vh(e) {
|
|
|
7226
7226
|
droppableId: l,
|
|
7227
7227
|
type: c,
|
|
7228
7228
|
mode: p,
|
|
7229
|
-
direction:
|
|
7229
|
+
direction: d,
|
|
7230
7230
|
isDropDisabled: v,
|
|
7231
7231
|
isCombineEnabled: f,
|
|
7232
|
-
ignoreContainerClipping:
|
|
7232
|
+
ignoreContainerClipping: u,
|
|
7233
7233
|
getDroppableRef: x
|
|
7234
7234
|
});
|
|
7235
7235
|
var O = oe.createElement(bh, {
|
|
@@ -7306,12 +7306,12 @@ var $n = function(t, r) {
|
|
|
7306
7306
|
droppableId: i.droppableId
|
|
7307
7307
|
}
|
|
7308
7308
|
};
|
|
7309
|
-
}), a = Pe(function(i, l, c, p,
|
|
7310
|
-
var v =
|
|
7309
|
+
}), a = Pe(function(i, l, c, p, d, u) {
|
|
7310
|
+
var v = d.descriptor.id, f = d.descriptor.droppableId === i;
|
|
7311
7311
|
if (f) {
|
|
7312
|
-
var g =
|
|
7313
|
-
render:
|
|
7314
|
-
dragging: n(
|
|
7312
|
+
var g = u ? {
|
|
7313
|
+
render: u,
|
|
7314
|
+
dragging: n(d.descriptor)
|
|
7315
7315
|
} : null, h = {
|
|
7316
7316
|
isDraggingOver: c,
|
|
7317
7317
|
draggingOverWith: c ? v : null,
|
|
@@ -7319,7 +7319,7 @@ var $n = function(t, r) {
|
|
|
7319
7319
|
isUsingPlaceholder: !0
|
|
7320
7320
|
};
|
|
7321
7321
|
return {
|
|
7322
|
-
placeholder:
|
|
7322
|
+
placeholder: d.placeholder,
|
|
7323
7323
|
shouldAnimatePlaceholder: !1,
|
|
7324
7324
|
snapshot: h,
|
|
7325
7325
|
useClone: g
|
|
@@ -7336,30 +7336,30 @@ var $n = function(t, r) {
|
|
|
7336
7336
|
isUsingPlaceholder: !0
|
|
7337
7337
|
};
|
|
7338
7338
|
return {
|
|
7339
|
-
placeholder:
|
|
7339
|
+
placeholder: d.placeholder,
|
|
7340
7340
|
shouldAnimatePlaceholder: !0,
|
|
7341
7341
|
snapshot: b,
|
|
7342
7342
|
useClone: null
|
|
7343
7343
|
};
|
|
7344
7344
|
}), o = function(l, c) {
|
|
7345
|
-
var p = c.droppableId,
|
|
7345
|
+
var p = c.droppableId, d = c.type, u = !c.isDropDisabled, v = c.renderClone;
|
|
7346
7346
|
if (l.isDragging) {
|
|
7347
7347
|
var f = l.critical;
|
|
7348
|
-
if (!$n(
|
|
7348
|
+
if (!$n(d, f))
|
|
7349
7349
|
return r;
|
|
7350
7350
|
var g = hi(f, l.dimensions), h = We(l.impact) === p;
|
|
7351
|
-
return a(p,
|
|
7351
|
+
return a(p, u, h, h, g, v);
|
|
7352
7352
|
}
|
|
7353
7353
|
if (l.phase === "DROP_ANIMATING") {
|
|
7354
7354
|
var b = l.completed;
|
|
7355
|
-
if (!$n(
|
|
7355
|
+
if (!$n(d, b.critical))
|
|
7356
7356
|
return r;
|
|
7357
7357
|
var m = hi(b.critical, l.dimensions);
|
|
7358
|
-
return a(p,
|
|
7358
|
+
return a(p, u, Ml(b.result) === p, We(b.impact) === p, m, v);
|
|
7359
7359
|
}
|
|
7360
7360
|
if (l.phase === "IDLE" && l.completed && !l.shouldFlush) {
|
|
7361
7361
|
var x = l.completed;
|
|
7362
|
-
if (!$n(
|
|
7362
|
+
if (!$n(d, x.critical))
|
|
7363
7363
|
return r;
|
|
7364
7364
|
var N = We(x.impact) === p, D = !!(x.impact.at && x.impact.at.type === "COMBINE"), y = x.critical.droppable.id === p;
|
|
7365
7365
|
return N ? D ? t : r : y ? t : r;
|
|
@@ -7525,7 +7525,7 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7525
7525
|
selected: db,
|
|
7526
7526
|
"default-indicator": "_default-indicator_14f56_71",
|
|
7527
7527
|
defaultIndicator: ub
|
|
7528
|
-
}, pb = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: p, placeholder:
|
|
7528
|
+
}, pb = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: p, placeholder: d, ImgComponent: u = Wl, onChangeOrder: v }) => {
|
|
7529
7529
|
const f = yd(), [g, h] = M(r);
|
|
7530
7530
|
$(() => {
|
|
7531
7531
|
h(r);
|
|
@@ -7582,21 +7582,21 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7582
7582
|
g.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(ae, { variant: "body", children: o ?? "No photos available" }) }),
|
|
7583
7583
|
x && /* @__PURE__ */ s.jsxs("div", { className: Ve.photoContainer, children: [
|
|
7584
7584
|
/* @__PURE__ */ s.jsx("div", { role: N ? "button" : void 0, className: j("align-items-start", Ve.navButton), onClick: () => N && m((S) => S - 1), children: N && /* @__PURE__ */ s.jsx(ua, { style: { fontSize: "40px" } }) }),
|
|
7585
|
-
/* @__PURE__ */ s.jsx(
|
|
7585
|
+
/* @__PURE__ */ s.jsx(u, { src: x.lgSrc, alt: x.alt, className: j("rounded", Ve.photo), baseUrl: c, customToken: p, placeholder: d }),
|
|
7586
7586
|
/* @__PURE__ */ s.jsx("div", { role: D ? "button" : void 0, className: j("align-items-end", Ve.navButton), onClick: () => D && m((S) => S + 1), children: D && /* @__PURE__ */ s.jsx(pa, { style: { fontSize: "40px" } }) })
|
|
7587
7587
|
] }),
|
|
7588
7588
|
/* @__PURE__ */ s.jsx(Km, { onDragEnd: O, children: /* @__PURE__ */ s.jsx(eb, { droppableId: "droppable", direction: "horizontal", children: (S) => /* @__PURE__ */ s.jsxs("div", { ...S.droppableProps, ref: S.innerRef, className: Ve.photosPreview, children: [
|
|
7589
7589
|
g.map((I, B) => /* @__PURE__ */ s.jsx(Fh, { draggableId: I.id, index: B, isDragDisabled: v === void 0, children: f((R) => /* @__PURE__ */ s.jsxs("div", { ref: R.innerRef, ...R.draggableProps, ...R.dragHandleProps, role: "button", onClick: () => m(B), className: j(Ve.lightboxDraggablePhoto), children: [
|
|
7590
|
-
/* @__PURE__ */ s.jsx(
|
|
7590
|
+
/* @__PURE__ */ s.jsx(u, { role: B !== b ? "button" : void 0, src: I.smSrc, alt: I.alt, className: j("rounded", Ve.photo, {
|
|
7591
7591
|
[Ve.selected]: B === b
|
|
7592
|
-
}), baseUrl: c, customToken: p, placeholder:
|
|
7592
|
+
}), baseUrl: c, customToken: p, placeholder: d }, I.id),
|
|
7593
7593
|
I.isDefault && /* @__PURE__ */ s.jsx("div", { className: j("text-primary", Ve.defaultIndicator), children: /* @__PURE__ */ s.jsx(Gc, {}) })
|
|
7594
7594
|
] })) }, I.id)),
|
|
7595
7595
|
S.placeholder
|
|
7596
7596
|
] }) }) })
|
|
7597
7597
|
] }) })
|
|
7598
7598
|
] });
|
|
7599
|
-
}, fb = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: n, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c = Wl, noLightboxOnlyButtonOnEmpty: p = !1, hideLightbox:
|
|
7599
|
+
}, fb = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: n, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c = Wl, noLightboxOnlyButtonOnEmpty: p = !1, hideLightbox: d = !1, onChangeOrder: u }) => {
|
|
7600
7600
|
const [v, f] = M(null), g = v !== null ? e[v] : null, [h, b] = M(!1);
|
|
7601
7601
|
return $(() => {
|
|
7602
7602
|
if (e.length === 0) {
|
|
@@ -7618,11 +7618,11 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7618
7618
|
background: "rgba(105,105,105,0.5)"
|
|
7619
7619
|
}, children: /* @__PURE__ */ s.jsx(Wc, { fontSize: 24 }) })
|
|
7620
7620
|
] }) : /* @__PURE__ */ s.jsx(Nt, { text: r ?? "", placement: "left", children: /* @__PURE__ */ s.jsx("div", { role: "button", className: j("rounded p-3 d-flex justify-content-center"), onClick: () => b(!0), children: /* @__PURE__ */ s.jsx("img", { src: l, alt: "placeholder", className: "rounded w-25" }) }) }),
|
|
7621
|
-
/* @__PURE__ */ s.jsx(pb, { show: h && !
|
|
7621
|
+
/* @__PURE__ */ s.jsx(pb, { show: h && !d, onClose: () => b(!1), photos: e, defaultIndex: v ?? 0, uploadPhotosText: r, noPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c, onChangeOrder: u })
|
|
7622
7622
|
] });
|
|
7623
7623
|
}, Hy = ({ children: e }) => {
|
|
7624
|
-
var c, p,
|
|
7625
|
-
const { useMsal: t, msalScopes: r, msalExtraScopes: n } = ee(Uc), { isAuthenticated: a } = Hc(), { userLoginState: o } = ee(Cr), i = o.state === zc.LOGGING_IN, l = o.user && ((c = o.user) == null ? void 0 : c.permissions) && ((
|
|
7624
|
+
var c, p, d;
|
|
7625
|
+
const { useMsal: t, msalScopes: r, msalExtraScopes: n } = ee(Uc), { isAuthenticated: a } = Hc(), { userLoginState: o } = ee(Cr), i = o.state === zc.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;
|
|
7626
7626
|
return t ? /* @__PURE__ */ s.jsx(vd, { interactionType: fd.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: n }, children: i || !a() ? /* @__PURE__ */ s.jsx(io, {}) : o.user ? l ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(Br, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(Br, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ s.jsx(io, {}) : !a() || !o.user ? /* @__PURE__ */ s.jsx(Br, { to: "/login", replace: !0 }) : l ? e : /* @__PURE__ */ s.jsx(Br, { to: "/user-not-permitted", replace: !0 });
|
|
7627
7627
|
}, vb = "_item_z9z4m_1", gb = "_level-success_z9z4m_4", mb = "_level-info_z9z4m_10", hb = "_level-warning_z9z4m_16", bb = "_level-danger_z9z4m_22", xb = "_type-icon_z9z4m_28", Gn = {
|
|
7628
7628
|
item: vb,
|
|
@@ -7699,20 +7699,20 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7699
7699
|
/* @__PURE__ */ s.jsx("div", { className: j("text-primary", _t.stepIcon), children: t.icon ?? /* @__PURE__ */ s.jsx(qc, {}) })
|
|
7700
7700
|
] }) })
|
|
7701
7701
|
] }, r)) }), Pb = (e, t, r, n = !0) => {
|
|
7702
|
-
const a = wt({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = M(!1), [l, c] = M(null), p = P(async (
|
|
7702
|
+
const a = wt({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = M(!1), [l, c] = M(null), p = P(async (d) => {
|
|
7703
7703
|
i(!0), c(null), a.get(e, {
|
|
7704
|
-
signal:
|
|
7704
|
+
signal: d,
|
|
7705
7705
|
responseType: "blob"
|
|
7706
|
-
}).then((
|
|
7707
|
-
i(!1), c(
|
|
7706
|
+
}).then((u) => {
|
|
7707
|
+
i(!1), c(u.data);
|
|
7708
7708
|
}).catch(() => {
|
|
7709
7709
|
i(!1), c(null);
|
|
7710
7710
|
});
|
|
7711
7711
|
}, [a, e]);
|
|
7712
7712
|
return $(() => {
|
|
7713
|
-
const
|
|
7714
|
-
return p(
|
|
7715
|
-
|
|
7713
|
+
const d = new AbortController();
|
|
7714
|
+
return p(d.signal), () => {
|
|
7715
|
+
d.abort();
|
|
7716
7716
|
};
|
|
7717
7717
|
}, [p]), { data: l, setData: c, reloadData: p, isLoading: o };
|
|
7718
7718
|
}, xi = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }) => {
|
|
@@ -7723,15 +7723,15 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7723
7723
|
p !== null && URL.revokeObjectURL(p);
|
|
7724
7724
|
};
|
|
7725
7725
|
}, [i]), l === null && !a ? null : /* @__PURE__ */ s.jsx("img", { ...o, alt: t ?? "", src: l ?? a });
|
|
7726
|
-
}, Tb = ({ InputContainer: e = Sr, label: t, value: r, onChange: n, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: p, hint:
|
|
7727
|
-
const
|
|
7726
|
+
}, Tb = ({ InputContainer: e = Sr, label: t, value: r, onChange: n, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: p, hint: d }) => {
|
|
7727
|
+
const u = Z(null);
|
|
7728
7728
|
return $(() => {
|
|
7729
|
-
|
|
7730
|
-
}, [
|
|
7729
|
+
u.current && (u.current.indeterminate = p ?? !1);
|
|
7730
|
+
}, [u, p]), /* @__PURE__ */ s.jsx(e, { isForCheckInput: !0, hidden: a, label: t ?? "", withoutLabel: c, className: i, hint: d, disabled: o, children: /* @__PURE__ */ s.jsx(_e.Check, { ref: u, id: `check-${t}`, type: l ?? "checkbox", label: t ?? "", checked: r, onChange: (v) => {
|
|
7731
7731
|
var f;
|
|
7732
7732
|
n && n(((f = v.target) == null ? void 0 : f.checked) ?? !1);
|
|
7733
7733
|
}, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
|
|
7734
|
-
}, Yy = ({ InputContainer: e = Sr, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size:
|
|
7734
|
+
}, Yy = ({ InputContainer: e = Sr, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: v, hidden: f, disabled: g, displayIdAsName: h, CustomOnChangeComponent: b, className: m, archiveColumn: x, icon: N, hint: D, addNewOptionPath: y, refreshOptions: C, MiniDetailComponent: O, miniDetailPlacement: S, suggestedItems: I, suggestedItemsTitle: B }) => {
|
|
7735
7735
|
const [R, G] = M(!1), E = P((L) => {
|
|
7736
7736
|
l && l(L);
|
|
7737
7737
|
}, [l]), J = P((L) => {
|
|
@@ -7740,14 +7740,14 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7740
7740
|
var L, X;
|
|
7741
7741
|
return h ? ((L = i == null ? void 0 : i.id) == null ? void 0 : L.toString()) ?? "" : i != null && i.name && i.name.length > 0 ? i.name : ((X = i == null ? void 0 : i.id) == null ? void 0 : X.toString()) ?? "";
|
|
7742
7742
|
}, [i, h]);
|
|
7743
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: f, inputContainerClassName: j({ "luminus-dropdown-select-open": R }), className: m, hint: D, children: [
|
|
7743
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: f, inputContainerClassName: j({ "luminus-dropdown-select-open": R }), className: m, hint: D, disabled: g, children: [
|
|
7744
7744
|
/* @__PURE__ */ s.jsxs(va, { currentSelection: i, selectedItemNavigateTo: r, children: [
|
|
7745
7745
|
h && (i == null ? void 0 : i.name) && /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: i.name }),
|
|
7746
7746
|
/* @__PURE__ */ s.jsx(ga, { value: (i == null ? void 0 : i.id) ?? null, MiniDetailComponent: O, miniDetailPlacement: S, children: /* @__PURE__ */ s.jsxs(
|
|
7747
7747
|
_e.Select,
|
|
7748
7748
|
{
|
|
7749
7749
|
ref: H,
|
|
7750
|
-
size:
|
|
7750
|
+
size: d,
|
|
7751
7751
|
value: (i == null ? void 0 : i.id) ?? "",
|
|
7752
7752
|
onMouseDown: (L) => {
|
|
7753
7753
|
L.currentTarget.focus(), L.preventDefault();
|
|
@@ -7775,9 +7775,9 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7775
7775
|
b ?? null
|
|
7776
7776
|
] }) : null
|
|
7777
7777
|
] }),
|
|
7778
|
-
H.current && /* @__PURE__ */ s.jsx(ma, { show: R, onCancel: () => G(!1), items: t, currentSelection: i, onSelectionChange: J, onSearchQueryChange: n, texts: a, itemsNameWidth:
|
|
7778
|
+
H.current && /* @__PURE__ */ s.jsx(ma, { show: R, onCancel: () => G(!1), items: t, currentSelection: i, onSelectionChange: J, onSearchQueryChange: n, texts: a, itemsNameWidth: u, additionalColumns: v, isLoading: o, disabled: g, inputRef: H, archiveColumn: x, displayIdAsName: h, addNewOptionPath: y, refreshOptions: C, suggestedItems: I, suggestedItemsTitle: B })
|
|
7779
7779
|
] }) });
|
|
7780
|
-
}, Ky = ({ InputContainer: e = Sr, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: p, withoutLabel:
|
|
7780
|
+
}, Ky = ({ InputContainer: e = Sr, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: p, withoutLabel: d, debounceMs: u, minLength: v, maxLength: f, className: g, hint: h }) => {
|
|
7781
7781
|
const b = P(() => {
|
|
7782
7782
|
if (!r)
|
|
7783
7783
|
return;
|
|
@@ -7789,27 +7789,27 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7789
7789
|
}, [r]), y = P((C) => {
|
|
7790
7790
|
var S;
|
|
7791
7791
|
const O = (S = C.target) == null ? void 0 : S.value;
|
|
7792
|
-
if (!
|
|
7792
|
+
if (!u) {
|
|
7793
7793
|
D(O);
|
|
7794
7794
|
return;
|
|
7795
7795
|
}
|
|
7796
7796
|
N(O), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
7797
7797
|
D(O);
|
|
7798
|
-
},
|
|
7799
|
-
}, [
|
|
7798
|
+
}, u);
|
|
7799
|
+
}, [u, D]);
|
|
7800
7800
|
return $(() => {
|
|
7801
7801
|
N(t === null ? "" : t.toString());
|
|
7802
|
-
}, [t]), /* @__PURE__ */ s.jsxs(e, { label: n ?? "", hidden: l, withoutLabel:
|
|
7803
|
-
/* @__PURE__ */ s.jsx(_e.Control, { as: "textarea", size: a, value:
|
|
7802
|
+
}, [t]), /* @__PURE__ */ s.jsxs(e, { label: n ?? "", hidden: l, withoutLabel: d, className: g, isForTextAreaInput: !0, hint: h, disabled: c, children: [
|
|
7803
|
+
/* @__PURE__ */ s.jsx(_e.Control, { as: "textarea", size: a, value: u ? x : t ?? "", onChange: y, hidden: l, disabled: c, rows: p ?? 2, className: "w-100", minLength: v, maxLength: f }),
|
|
7804
7804
|
o && t && r && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(se, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ s.jsx(Dt, {}) }) })
|
|
7805
7805
|
] });
|
|
7806
|
-
}, Xy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon:
|
|
7806
|
+
}, Xy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: v, step: f, stepperStep: g = 1, min: h, max: b, hint: m }) => {
|
|
7807
7807
|
const x = P(() => {
|
|
7808
7808
|
if (!r)
|
|
7809
7809
|
return;
|
|
7810
|
-
const S =
|
|
7810
|
+
const S = u ?? null;
|
|
7811
7811
|
r(S ? Number(S) : null);
|
|
7812
|
-
}, [
|
|
7812
|
+
}, [u, r]), N = Z(null), [D, y] = M((t == null ? void 0 : t.toString()) ?? ""), C = P((S) => {
|
|
7813
7813
|
const I = S;
|
|
7814
7814
|
r && r(I == null || I === "" ? null : or(Number(I), h, b));
|
|
7815
7815
|
}, [b, h, r]), O = P((S) => {
|
|
@@ -7825,7 +7825,7 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7825
7825
|
}, [n, C, b, h]);
|
|
7826
7826
|
return $(() => {
|
|
7827
7827
|
y(t === null ? "" : or(t, h, b).toString());
|
|
7828
|
-
}, [b, h, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className: v, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
7828
|
+
}, [b, h, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className: v, disabled: p, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
7829
7829
|
/* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? D : t ?? "", onChange: O, className: `luminus-numeric-stepper ${v ?? ""}`, hidden: c, disabled: p ?? !1, step: f }),
|
|
7830
7830
|
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !p && /* @__PURE__ */ s.jsx(se, { size: "sm", onClick: (S) => {
|
|
7831
7831
|
S.preventDefault(), S.stopPropagation(), C(((t ?? 0) - g).toString());
|
|
@@ -7833,7 +7833,7 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7833
7833
|
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !p && /* @__PURE__ */ s.jsx(se, { size: "sm", onClick: (S) => {
|
|
7834
7834
|
S.preventDefault(), S.stopPropagation(), C(((t ?? 0) + g).toString());
|
|
7835
7835
|
}, children: /* @__PURE__ */ s.jsx(Zi, {}) }) }),
|
|
7836
|
-
|
|
7836
|
+
d && t && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(se, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(Dt, {}) }) })
|
|
7837
7837
|
] }) });
|
|
7838
7838
|
};
|
|
7839
7839
|
function Ul(e, t) {
|
|
@@ -7940,12 +7940,12 @@ function Yl(e) {
|
|
|
7940
7940
|
function wi(e, t, r) {
|
|
7941
7941
|
if (["", "-"].indexOf(e) !== -1)
|
|
7942
7942
|
return e;
|
|
7943
|
-
var n = (e.indexOf(".") !== -1 || r) && t, a = Qa(e), o = a.beforeDecimal, i = a.afterDecimal, l = a.hasNegation, c = parseFloat("0." + (i || "0")), p = i.length <= t ? "0." + i : c.toFixed(t),
|
|
7944
|
-
o && Number(
|
|
7943
|
+
var n = (e.indexOf(".") !== -1 || r) && t, a = Qa(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;
|
|
7944
|
+
o && Number(d[0]) && (u = o.split("").reverse().reduce(function(h, b, m) {
|
|
7945
7945
|
return h.length > m ? (Number(h[0]) + Number(b)).toString() + h.substring(1, h.length) : b + h;
|
|
7946
|
-
},
|
|
7947
|
-
var v = ql(
|
|
7948
|
-
return "" + f +
|
|
7946
|
+
}, d[0]));
|
|
7947
|
+
var v = ql(d[1] || "", t, r), f = l ? "-" : "", g = n ? "." : "";
|
|
7948
|
+
return "" + f + u + g + v;
|
|
7949
7949
|
}
|
|
7950
7950
|
function Rt(e, t) {
|
|
7951
7951
|
if (e.value = e.value, e !== null) {
|
|
@@ -8004,9 +8004,9 @@ function Ub(e, t, r, n, a, o, i) {
|
|
|
8004
8004
|
return D;
|
|
8005
8005
|
}), c = e.slice(0, l);
|
|
8006
8006
|
!t && !r.startsWith(c) && (t = c, r = c + r, n = n + c.length);
|
|
8007
|
-
for (var p = r.length,
|
|
8007
|
+
for (var p = r.length, d = e.length, u = {}, v = new Array(p), f = 0; f < p; f++) {
|
|
8008
8008
|
v[f] = -1;
|
|
8009
|
-
for (var g = 0, h =
|
|
8009
|
+
for (var g = 0, h = d; g < h; g++) {
|
|
8010
8010
|
var b = i({
|
|
8011
8011
|
currentValue: r,
|
|
8012
8012
|
lastValue: t,
|
|
@@ -8014,15 +8014,15 @@ function Ub(e, t, r, n, a, o, i) {
|
|
|
8014
8014
|
currentValueIndex: f,
|
|
8015
8015
|
formattedValueIndex: g
|
|
8016
8016
|
});
|
|
8017
|
-
if (b &&
|
|
8018
|
-
v[f] = g,
|
|
8017
|
+
if (b && u[g] !== !0) {
|
|
8018
|
+
v[f] = g, u[g] = !0;
|
|
8019
8019
|
break;
|
|
8020
8020
|
}
|
|
8021
8021
|
}
|
|
8022
8022
|
}
|
|
8023
8023
|
for (var m = n; m < p && (v[m] === -1 || !o(r[m])); )
|
|
8024
8024
|
m++;
|
|
8025
|
-
var x = m === p || v[m] === -1 ?
|
|
8025
|
+
var x = m === p || v[m] === -1 ? d : v[m];
|
|
8026
8026
|
for (m = n - 1; m > 0 && v[m] === -1; )
|
|
8027
8027
|
m--;
|
|
8028
8028
|
var N = m === -1 || v[m] === -1 ? 0 : v[m] + 1;
|
|
@@ -8055,17 +8055,17 @@ function Xl(e, t, r, n, a, o) {
|
|
|
8055
8055
|
return Hl(g) ? (m = "", b = "") : typeof g == "number" || h ? (m = typeof g == "number" ? Yl(g) : g, b = n(m)) : (m = a(g, void 0), b = n(m)), { formattedValue: b, numAsString: m };
|
|
8056
8056
|
}), l = M(function() {
|
|
8057
8057
|
return i(Gt(e) ? t : e, r);
|
|
8058
|
-
}), c = l[0], p = l[1],
|
|
8058
|
+
}), c = l[0], p = l[1], d = function(g, h) {
|
|
8059
8059
|
g.formattedValue !== c.formattedValue && p({
|
|
8060
8060
|
formattedValue: g.formattedValue,
|
|
8061
8061
|
numAsString: g.value
|
|
8062
8062
|
}), o(g, h);
|
|
8063
|
-
},
|
|
8064
|
-
Gt(e) && (
|
|
8065
|
-
var f = i(
|
|
8063
|
+
}, u = e, v = r;
|
|
8064
|
+
Gt(e) && (u = c.numAsString, v = !0);
|
|
8065
|
+
var f = i(u, v);
|
|
8066
8066
|
return Y(function() {
|
|
8067
8067
|
p(f);
|
|
8068
|
-
}, [f.formattedValue]), [c,
|
|
8068
|
+
}, [f.formattedValue]), [c, d];
|
|
8069
8069
|
}
|
|
8070
8070
|
function zb(e) {
|
|
8071
8071
|
return e.replace(/[^0-9]/g, "");
|
|
@@ -8082,7 +8082,7 @@ function Yb(e) {
|
|
|
8082
8082
|
i === void 0 && (i = qb);
|
|
8083
8083
|
var l = e.removeFormatting;
|
|
8084
8084
|
l === void 0 && (l = zb);
|
|
8085
|
-
var c = e.defaultValue, p = e.valueIsNumericString,
|
|
8085
|
+
var c = e.defaultValue, p = e.valueIsNumericString, d = e.onValueChange, u = e.isAllowed, v = e.onChange;
|
|
8086
8086
|
v === void 0 && (v = ft);
|
|
8087
8087
|
var f = e.onKeyDown;
|
|
8088
8088
|
f === void 0 && (f = ft);
|
|
@@ -8096,7 +8096,7 @@ function Yb(e) {
|
|
|
8096
8096
|
x === void 0 && (x = Hb);
|
|
8097
8097
|
var N = e.isValidInputCharacter;
|
|
8098
8098
|
N === void 0 && (N = Dr);
|
|
8099
|
-
var D = e.isCharacterSame, y = Ul(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), C = Xl(m, c, !!p, i, l,
|
|
8099
|
+
var D = e.isCharacterSame, y = Ul(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), C = Xl(m, c, !!p, i, l, d), O = C[0], S = O.formattedValue, I = O.numAsString, B = C[1], R = Z(), G = Z({ formattedValue: S, numAsString: I }), E = function(A, F) {
|
|
8100
8100
|
G.current = { formattedValue: A.formattedValue, numAsString: A.value }, B(A, F);
|
|
8101
8101
|
}, J = M(!1), H = J[0], _ = J[1], T = Z(null), W = Z({
|
|
8102
8102
|
setCaretTimeout: null,
|
|
@@ -8150,7 +8150,7 @@ function Yb(e) {
|
|
|
8150
8150
|
}, [S]);
|
|
8151
8151
|
var fe = function(A, F, Q) {
|
|
8152
8152
|
var ge = F.target, Ce = R.current ? Fb(R.current, ge.selectionEnd) : Kl(S, A), he = Object.assign(Object.assign({}, Ce), { lastValue: S }), ce = l(A, he), Be = L(ce);
|
|
8153
|
-
if (ce = l(Be, void 0),
|
|
8153
|
+
if (ce = l(Be, void 0), u && !u(X(Be, ce))) {
|
|
8154
8154
|
var Xe = F.target, Je = Wn(Xe), Lt = le(A, S, Je);
|
|
8155
8155
|
return Xe.value = S, U(Xe, Lt, S), !1;
|
|
8156
8156
|
}
|
|
@@ -8234,8 +8234,8 @@ function Ni(e, t) {
|
|
|
8234
8234
|
var i = t.allowNegative, l = t.thousandsGroupStyle;
|
|
8235
8235
|
if (l === void 0 && (l = "thousand"), e === "" || e === "-")
|
|
8236
8236
|
return e;
|
|
8237
|
-
var c = bn(t), p = c.thousandSeparator,
|
|
8238
|
-
return r !== void 0 && (g = ql(g, r, !!n)), p && (f = kb(f, p, l)), a && (f = a + f), o && (g = g + o), h && (f = "-" + f), e = f + (
|
|
8237
|
+
var c = bn(t), p = c.thousandSeparator, d = c.decimalSeparator, u = r !== 0 && e.indexOf(".") !== -1 || r && n, v = Qa(e, i), f = v.beforeDecimal, g = v.afterDecimal, h = v.addNegation;
|
|
8238
|
+
return r !== void 0 && (g = ql(g, r, !!n)), p && (f = kb(f, p, l)), a && (f = a + f), o && (g = g + o), h && (f = "-" + f), e = f + (u && d || "") + g, e;
|
|
8239
8239
|
}
|
|
8240
8240
|
function bn(e) {
|
|
8241
8241
|
var t = e.decimalSeparator;
|
|
@@ -8265,26 +8265,26 @@ function Qb(e, t, r) {
|
|
|
8265
8265
|
o === void 0 && (o = "");
|
|
8266
8266
|
var i = r.suffix;
|
|
8267
8267
|
i === void 0 && (i = "");
|
|
8268
|
-
var l = r.decimalScale, c = t.from, p = t.to,
|
|
8268
|
+
var l = r.decimalScale, c = t.from, p = t.to, d = p.start, u = p.end, v = bn(r), f = v.allowedDecimalSeparators, g = v.decimalSeparator, h = e[u] === g;
|
|
8269
8269
|
if (Dr(e) && (e === o || e === i) && t.lastValue === "")
|
|
8270
8270
|
return e;
|
|
8271
|
-
if (
|
|
8271
|
+
if (u - d === 1 && f.indexOf(e[d]) !== -1) {
|
|
8272
8272
|
var b = l === 0 ? "" : g;
|
|
8273
|
-
e = e.substring(0,
|
|
8273
|
+
e = e.substring(0, d) + b + e.substring(d + 1, e.length);
|
|
8274
8274
|
}
|
|
8275
8275
|
var m = function(T, W, L) {
|
|
8276
8276
|
var X = !1, U = !1;
|
|
8277
8277
|
o.startsWith("-") ? X = !1 : T.startsWith("--") ? (X = !1, U = !0) : i.startsWith("-") && T.length === i.length ? X = !1 : T[0] === "-" && (X = !0);
|
|
8278
8278
|
var re = X ? 1 : 0;
|
|
8279
8279
|
return U && (re = 2), re && (T = T.substring(re), W -= re, L -= re), { value: T, start: W, end: L, hasNegation: X };
|
|
8280
|
-
}, x = m(e,
|
|
8281
|
-
n = x, e = n.value,
|
|
8282
|
-
var D = m(t.lastValue, c.start, c.end), y = D.start, C = D.end, O = D.value, S = e.substring(
|
|
8280
|
+
}, x = m(e, d, u), N = x.hasNegation;
|
|
8281
|
+
n = x, e = n.value, d = n.start, u = n.end;
|
|
8282
|
+
var D = m(t.lastValue, c.start, c.end), y = D.start, C = D.end, O = D.value, S = e.substring(d, u);
|
|
8283
8283
|
e.length && O.length && (y > O.length - i.length || C < o.length) && !(S && i.startsWith(S)) && (e = O);
|
|
8284
8284
|
var I = 0;
|
|
8285
|
-
e.startsWith(o) ? I += o.length :
|
|
8285
|
+
e.startsWith(o) ? I += o.length : d < o.length && (I = d), e = e.substring(I), u -= I;
|
|
8286
8286
|
var B = e.length, R = e.length - i.length;
|
|
8287
|
-
e.endsWith(i) ? B = R : (
|
|
8287
|
+
e.endsWith(i) ? B = R : (u > R || u > e.length - i.length) && (B = u), e = e.substring(0, B), e = Kb(N ? "-" + e : e, a), e = (e.match(Xb(g)) || []).join("");
|
|
8288
8288
|
var G = e.indexOf(g);
|
|
8289
8289
|
e = e.replace(new RegExp(zl(g), "g"), function(T, W) {
|
|
8290
8290
|
return W === G ? "." : "";
|
|
@@ -8328,15 +8328,15 @@ function tx(e) {
|
|
|
8328
8328
|
o === void 0 && (o = ft);
|
|
8329
8329
|
var i = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale, p = e.prefix;
|
|
8330
8330
|
p === void 0 && (p = "");
|
|
8331
|
-
var
|
|
8331
|
+
var d = e.defaultValue, u = e.value, v = e.valueIsNumericString, f = e.onValueChange, g = Ul(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), h = bn(e), b = h.decimalSeparator, m = h.allowedDecimalSeparators, x = function(_) {
|
|
8332
8332
|
return Ni(_, e);
|
|
8333
8333
|
}, N = function(_, T) {
|
|
8334
8334
|
return Qb(_, T, e);
|
|
8335
|
-
}, D = Gt(
|
|
8336
|
-
Gt(
|
|
8335
|
+
}, D = Gt(u) ? d : u, y = v ?? Jb(D, p, t);
|
|
8336
|
+
Gt(u) ? Gt(d) || (y = y || typeof d == "number") : y = y || typeof u == "number";
|
|
8337
8337
|
var C = function(_) {
|
|
8338
8338
|
return Hl(_) ? _ : (typeof _ == "number" && (_ = Yl(_)), y && typeof l == "number" ? wi(_, l, !!c) : _);
|
|
8339
|
-
}, O = Xl(C(
|
|
8339
|
+
}, O = Xl(C(u), C(d), !!y, x, N, f), S = O[0], I = S.numAsString, B = S.formattedValue, R = O[1], G = function(_) {
|
|
8340
8340
|
var T = _.target, W = _.key, L = T.selectionStart, X = T.selectionEnd, U = T.value;
|
|
8341
8341
|
if (U === void 0 && (U = ""), (W === "Backspace" || W === "Delete") && X < p.length) {
|
|
8342
8342
|
_.preventDefault();
|
|
@@ -8369,7 +8369,7 @@ function tx(e) {
|
|
|
8369
8369
|
var T = _.currentValue, W = _.lastValue, L = _.formattedValue, X = _.currentValueIndex, U = _.formattedValueIndex, re = T[X], le = L[U], ie = Kl(W, T), k = ie.to, q = function(fe) {
|
|
8370
8370
|
return N(fe).indexOf(".") + p.length;
|
|
8371
8371
|
};
|
|
8372
|
-
return
|
|
8372
|
+
return u === 0 && c && l && T[k.start] === b && q(T) < X && q(L) > U ? !1 : X >= k.start && X < k.end && m && m.includes(re) && le === b ? !0 : re === le;
|
|
8373
8373
|
};
|
|
8374
8374
|
return Object.assign(Object.assign({}, g), {
|
|
8375
8375
|
value: B,
|
|
@@ -8390,13 +8390,13 @@ function Za(e) {
|
|
|
8390
8390
|
var t = tx(e);
|
|
8391
8391
|
return oe.createElement(Yb, Object.assign({}, t));
|
|
8392
8392
|
}
|
|
8393
|
-
const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon:
|
|
8393
|
+
const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: v, step: f, noSelectOnFocus: g, decimalScale: h, fixedDecimalScale: b = !1, numberPrefix: m, numberSuffix: x, min: N, max: D, hint: y }) => {
|
|
8394
8394
|
const C = P(() => {
|
|
8395
8395
|
if (!r)
|
|
8396
8396
|
return;
|
|
8397
|
-
const G =
|
|
8397
|
+
const G = u ?? null;
|
|
8398
8398
|
r(G ? Number(G) : null);
|
|
8399
|
-
}, [
|
|
8399
|
+
}, [u, r]), O = Z(null), [S, I] = M((t == null ? void 0 : t.toString()) ?? ""), B = P((G) => {
|
|
8400
8400
|
const E = G;
|
|
8401
8401
|
r && r(E == null || E === "" ? null : Number(E));
|
|
8402
8402
|
}, [r]), R = P((G) => {
|
|
@@ -8416,19 +8416,19 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8416
8416
|
D !== void 0 && Number(S) > D && I(D.toString()), N !== void 0 && Number(S) < N && I(N.toString());
|
|
8417
8417
|
}, [S, D, N, I]), $(() => {
|
|
8418
8418
|
!r || t === null || (D !== void 0 && t > D && r(D), N !== void 0 && t < N && r(N));
|
|
8419
|
-
}, [t, D, N, r]), /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, className: v, hint: y, children: [
|
|
8419
|
+
}, [t, D, N, r]), /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, className: v, hint: y, disabled: p, children: [
|
|
8420
8420
|
/* @__PURE__ */ s.jsx(Za, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: b, prefix: m, suffix: x, defaultValue: "", value: n ? S : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (G) => {
|
|
8421
8421
|
!g && G.target.select();
|
|
8422
8422
|
}, onChange: R, hidden: c, disabled: p, className: j("form-control text-end w-100", {
|
|
8423
8423
|
[`form-control-${l}`]: l
|
|
8424
8424
|
}), step: f, min: N, max: D }),
|
|
8425
|
-
|
|
8425
|
+
d && t !== null && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(se, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(Dt, {}) }) })
|
|
8426
8426
|
] });
|
|
8427
8427
|
}, Qy = ({ InputContainer: e = ot, label: t, options: r, disabled: n, hidden: a, className: o, value: i, onChange: l }) => {
|
|
8428
8428
|
const c = P((p) => {
|
|
8429
8429
|
l && l(p.target.value);
|
|
8430
8430
|
}, [l]);
|
|
8431
|
-
return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, children: r.map((p) => /* @__PURE__ */ s.jsx(_e.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)) });
|
|
8431
|
+
return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, disabled: n, children: r.map((p) => /* @__PURE__ */ s.jsx(_e.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)) });
|
|
8432
8432
|
}, Ei = [
|
|
8433
8433
|
["D", "day"],
|
|
8434
8434
|
// ['W', 'week'],
|
|
@@ -8470,10 +8470,10 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8470
8470
|
return c;
|
|
8471
8471
|
const p = new Date(l);
|
|
8472
8472
|
if (e === "D") {
|
|
8473
|
-
const
|
|
8473
|
+
const d = gt(p.toISOString());
|
|
8474
8474
|
return {
|
|
8475
|
-
from:
|
|
8476
|
-
to:
|
|
8475
|
+
from: d,
|
|
8476
|
+
to: d
|
|
8477
8477
|
};
|
|
8478
8478
|
}
|
|
8479
8479
|
return e === "M" ? qr(p) : e === "Y" ? lr(p) : c;
|
|
@@ -8492,10 +8492,10 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8492
8492
|
const p = new Date(l.to);
|
|
8493
8493
|
if (e === "D") {
|
|
8494
8494
|
c.setDate(c.getDate() + i);
|
|
8495
|
-
const
|
|
8495
|
+
const d = gt(c.toISOString());
|
|
8496
8496
|
return {
|
|
8497
|
-
from:
|
|
8498
|
-
to:
|
|
8497
|
+
from: d,
|
|
8498
|
+
to: d
|
|
8499
8499
|
};
|
|
8500
8500
|
}
|
|
8501
8501
|
return e === "M" ? (c.setMonth(c.getMonth() + i), qr(c)) : e === "Y" ? (c.setFullYear(c.getFullYear() + i), lr(c)) : {
|
|
@@ -8518,30 +8518,30 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8518
8518
|
}, [r, t]);
|
|
8519
8519
|
return { setFromToProp: n, handleArrowClick: a, handleRangeChange: o };
|
|
8520
8520
|
}, Zy = ({ fromtoState: [e, t], className: r, size: n }) => {
|
|
8521
|
-
const { texts: { date: a }, ProjectIconComponent: o } = ee(ve), [i, l] = M("C"), { handleArrowClick: c, handleRangeChange: p, setFromToProp:
|
|
8521
|
+
const { texts: { date: a }, ProjectIconComponent: o } = ee(ve), [i, l] = M("C"), { handleArrowClick: c, handleRangeChange: p, setFromToProp: d } = sx(i, l, t), u = Y(() => i === "C", [i]), v = Z(!0);
|
|
8522
8522
|
return $(() => {
|
|
8523
8523
|
if (v.current) {
|
|
8524
8524
|
const f = ix(e.from, e.to);
|
|
8525
8525
|
l(f), v.current = !1;
|
|
8526
8526
|
}
|
|
8527
8527
|
}, [e.from, e.to]), /* @__PURE__ */ s.jsxs("div", { className: j("d-inline-flex align-items-center gap-1", Ci.wrapper, Ci[n ?? "md"], r), children: [
|
|
8528
|
-
/* @__PURE__ */ s.jsx(se, { disabled:
|
|
8528
|
+
/* @__PURE__ */ s.jsx(se, { disabled: u, onClick: () => {
|
|
8529
8529
|
c(-1);
|
|
8530
8530
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-left" }) }),
|
|
8531
8531
|
/* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
8532
|
-
/* @__PURE__ */ s.jsx(mt, { type: "date", value: e.from, onChange: (f) =>
|
|
8532
|
+
/* @__PURE__ */ s.jsx(mt, { type: "date", value: e.from, onChange: (f) => d("from", f === null ? null : f.toString()), InputContainer: Qe, size: n }),
|
|
8533
8533
|
/* @__PURE__ */ s.jsx(Nr, { toggle: /* @__PURE__ */ s.jsx(Er, { text: a[Ei.find((f) => f[0] === i)[1]].substring(0, 1), as: Xc }), children: Ei.map((f) => /* @__PURE__ */ s.jsx(nt, { disabled: f[0] === i, className: j(f[0] === i ? "text-black-50" : ""), onClick: () => p(f[0]), role: "button", children: a[f[1]] }, f[0])) }),
|
|
8534
|
-
/* @__PURE__ */ s.jsx(mt, { type: "date", value: e.to, onChange: (f) =>
|
|
8534
|
+
/* @__PURE__ */ s.jsx(mt, { type: "date", value: e.to, onChange: (f) => d("to", f === null ? null : f.toString()), InputContainer: Qe, size: n })
|
|
8535
8535
|
] }) }),
|
|
8536
|
-
/* @__PURE__ */ s.jsx(se, { disabled:
|
|
8536
|
+
/* @__PURE__ */ s.jsx(se, { disabled: u, onClick: () => {
|
|
8537
8537
|
c(1);
|
|
8538
8538
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-right" }) })
|
|
8539
8539
|
] });
|
|
8540
8540
|
}, ew = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: n }) => {
|
|
8541
|
-
const { localizationContext: a } = ee(ve), { dateFnsLocale: o } = ee(a), { searchParams: i, setSearch: l } = wd(), c = i.get(t), p = c ? dr(c) : e,
|
|
8542
|
-
l(t, Kn(
|
|
8541
|
+
const { localizationContext: a } = ee(ve), { dateFnsLocale: o } = ee(a), { searchParams: i, setSearch: l } = wd(), c = i.get(t), p = c ? dr(c) : e, d = P((u) => {
|
|
8542
|
+
l(t, Kn(u, { representation: "date" }));
|
|
8543
8543
|
}, [t, l]);
|
|
8544
|
-
return /* @__PURE__ */ s.jsx(Yd, { month: p, onChangeMonth:
|
|
8544
|
+
return /* @__PURE__ */ s.jsx(Yd, { month: p, onChangeMonth: d, locale: o, yearMin: r, yearMax: n });
|
|
8545
8545
|
}, tw = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
|
|
8546
8546
|
const [n, a] = as(t, Kn(e, { representation: "date" })), o = n ? dr(n) : e, i = P((l) => {
|
|
8547
8547
|
a(Kn(l, { representation: "date" }));
|
|
@@ -8637,19 +8637,19 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8637
8637
|
stickyBottom: yx
|
|
8638
8638
|
}, wx = "_input_pxkkh_1", lt = {
|
|
8639
8639
|
input: wx
|
|
8640
|
-
}, Ql = ({ type: e, value: t, field: r, isPrimary: n, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon: p, clearValue:
|
|
8640
|
+
}, Ql = ({ 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 }) => {
|
|
8641
8641
|
var v;
|
|
8642
8642
|
switch (e) {
|
|
8643
8643
|
case "NUM":
|
|
8644
|
-
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(Xr, { withoutLabel: !0, InputContainer: Qe, className: lt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, f === null ? null : Number(f)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue:
|
|
8644
|
+
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(Xr, { withoutLabel: !0, InputContainer: Qe, className: lt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, f === null ? null : Number(f)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(mt, { withoutLabel: !0, InputContainer: Qe, className: lt.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (f) => c(r, f === null ? null : Number(f)), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
8645
8645
|
case "STR":
|
|
8646
|
-
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(Xr, { withoutLabel: !0, InputContainer: Qe, className: lt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue:
|
|
8646
|
+
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(Xr, { withoutLabel: !0, InputContainer: Qe, className: lt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(mt, { withoutLabel: !0, InputContainer: Qe, className: j(lt.input, lt.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
8647
8647
|
case "BIT":
|
|
8648
8648
|
return /* @__PURE__ */ s.jsx(Tb, { InputContainer: Qe, className: lt.input, value: t === !0, onChange: (f) => c(r, f), disabled: a ? !0 : n ? !o : !1 });
|
|
8649
8649
|
case "DT":
|
|
8650
|
-
return /* @__PURE__ */ s.jsx(mt, { withoutLabel: !0, InputContainer: Qe, className: lt.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue:
|
|
8650
|
+
return /* @__PURE__ */ s.jsx(mt, { withoutLabel: !0, InputContainer: Qe, className: lt.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (f) => c(r, (f == null ? void 0 : f.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
8651
8651
|
default: {
|
|
8652
|
-
const f =
|
|
8652
|
+
const f = u == null ? void 0 : u.find((g) => g.type === e);
|
|
8653
8653
|
return f ? /* @__PURE__ */ s.jsx(f.picker, { className: j(lt.input, lt.longer), value: t ? {
|
|
8654
8654
|
id: (t == null ? void 0 : t.toString()) ?? null,
|
|
8655
8655
|
name: ((v = i == null ? void 0 : i.find((g) => {
|
|
@@ -8672,7 +8672,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8672
8672
|
}
|
|
8673
8673
|
}
|
|
8674
8674
|
}, Dx = ({ schema: e, columns: t, setColumns: r, initialItem: n, onEdit: a, onDelete: o, customPickers: i }) => {
|
|
8675
|
-
const { ProjectIconComponent: l } = ee(ve), [c, p] = M(n),
|
|
8675
|
+
const { ProjectIconComponent: l } = ee(ve), [c, p] = M(n), d = P((f, g) => {
|
|
8676
8676
|
console.log("changeValue", f, g), p((h) => ({
|
|
8677
8677
|
...h,
|
|
8678
8678
|
[f]: {
|
|
@@ -8680,7 +8680,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8680
8680
|
value: g
|
|
8681
8681
|
}
|
|
8682
8682
|
}));
|
|
8683
|
-
}, []),
|
|
8683
|
+
}, []), u = (f) => (f == null ? void 0 : f.value) !== (f == null ? void 0 : f.defaultValue), v = P(() => Object.keys(c).some((f) => u(c[f])), [c]);
|
|
8684
8684
|
return $(() => {
|
|
8685
8685
|
p(n);
|
|
8686
8686
|
}, [n]), /* @__PURE__ */ s.jsxs("tr", { className: j("table-row", we.tableRow), children: [
|
|
@@ -8689,38 +8689,38 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8689
8689
|
var g, h;
|
|
8690
8690
|
return /* @__PURE__ */ s.jsx("td", { className: j("table-cell", we.tableCell), children: /* @__PURE__ */ s.jsx(Ql, { type: f.type, value: (g = c[f.field ?? ""]) == null ? void 0 : g.value, field: f.field, isReadonly: f.readOnly, isPrimary: e.primaryKey === f.field, valuesForSelect: f.valuesForSelect, addValueToValuesForSelect: (b) => {
|
|
8691
8691
|
r(t.map((m) => m.field === f.field ? { ...m, valuesForSelect: [...m.valuesForSelect ?? [], b] } : m));
|
|
8692
|
-
}, onChangeHandler:
|
|
8692
|
+
}, onChangeHandler: d, hideClearIcon: !u(c[f.field ?? ""]), clearValue: (h = c[f.field ?? ""].defaultValue) == null ? void 0 : h.toString(), customPickers: i }) }, `${e.id}-${f.field}`);
|
|
8693
8693
|
}),
|
|
8694
8694
|
/* @__PURE__ */ s.jsx("td", { className: j("table-cell", we.tableCell, we.stickyLast), children: /* @__PURE__ */ s.jsx(se, { color: "danger", onClick: () => o(c[e.primaryKey ?? ""].value), children: /* @__PURE__ */ s.jsx(l, { icon: "delete" }) }) })
|
|
8695
8695
|
] });
|
|
8696
8696
|
}, Nx = ({ schema: e, columns: t, setColumns: r, onCreate: n, customPickers: a }) => {
|
|
8697
8697
|
const { ProjectIconComponent: o } = ee(ve), [i, l] = M(null), c = P(() => {
|
|
8698
|
-
var
|
|
8699
|
-
const
|
|
8700
|
-
(
|
|
8698
|
+
var u;
|
|
8699
|
+
const d = {};
|
|
8700
|
+
(u = e.columns) == null || u.forEach((v) => {
|
|
8701
8701
|
const f = v.type === "BIT" ? !1 : v.type === "NUM" ? null : v.type === "STR" ? "" : null;
|
|
8702
|
-
|
|
8702
|
+
d[v.field ?? ""] = {
|
|
8703
8703
|
value: f,
|
|
8704
8704
|
defaultValue: f
|
|
8705
8705
|
};
|
|
8706
|
-
}), l(
|
|
8707
|
-
}, [e]), p = P((
|
|
8706
|
+
}), l(d);
|
|
8707
|
+
}, [e]), p = P((d, u) => {
|
|
8708
8708
|
l((v) => v && {
|
|
8709
8709
|
...v,
|
|
8710
|
-
[
|
|
8711
|
-
...v[
|
|
8712
|
-
value:
|
|
8710
|
+
[d]: {
|
|
8711
|
+
...v[d],
|
|
8712
|
+
value: u
|
|
8713
8713
|
}
|
|
8714
8714
|
});
|
|
8715
8715
|
}, []);
|
|
8716
8716
|
return i ? /* @__PURE__ */ s.jsxs("tr", { className: "sticky-bottom shadow", children: [
|
|
8717
8717
|
/* @__PURE__ */ s.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ s.jsx(se, { color: "success", onClick: async () => {
|
|
8718
|
-
const
|
|
8719
|
-
|
|
8718
|
+
const d = Jl(i);
|
|
8719
|
+
d && await n(d) && l(null);
|
|
8720
8720
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "check" }) }) }),
|
|
8721
|
-
t.map((
|
|
8722
|
-
r(t.map((v) => v.field ===
|
|
8723
|
-
}, onChangeHandler: p, primaryEditable: !0, customPickers: a }) }, `${e.id}-${
|
|
8721
|
+
t.map((d) => /* @__PURE__ */ s.jsx("td", { children: /* @__PURE__ */ s.jsx(Ql, { type: d.type, value: i[d.field ?? ""].value, field: d.field, isReadonly: d.readOnly, isPrimary: e.primaryKey === d.field, valuesForSelect: d.valuesForSelect, addValueToValuesForSelect: (u) => {
|
|
8722
|
+
r(t.map((v) => v.field === d.field ? { ...v, valuesForSelect: [...v.valuesForSelect ?? [], u] } : v));
|
|
8723
|
+
}, onChangeHandler: p, primaryEditable: !0, customPickers: a }) }, `${e.id}-${d.field}`)),
|
|
8724
8724
|
/* @__PURE__ */ s.jsx("td", { className: "sticky-last", children: /* @__PURE__ */ s.jsx(se, { color: "danger", onClick: () => l(null), children: /* @__PURE__ */ s.jsx(o, { icon: "cancel" }) }) })
|
|
8725
8725
|
] }) : /* @__PURE__ */ s.jsxs("tr", { className: "sticky-bottom shadow", children: [
|
|
8726
8726
|
/* @__PURE__ */ s.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ s.jsx(se, { onClick: c, children: /* @__PURE__ */ s.jsx(o, { icon: "add" }) }) }),
|
|
@@ -8778,7 +8778,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8778
8778
|
] }) }),
|
|
8779
8779
|
/* @__PURE__ */ s.jsx(Ix, { cellRef: o, defaultWidth: i })
|
|
8780
8780
|
] });
|
|
8781
|
-
}, _x = ({ schema: e, items: t, onEditItem: r, onDeleteItem: n, onCreateItem: a, filters: o, setFilter: i, sortByField: l, sortByType: c, setSortBy: p, selectedMaster:
|
|
8781
|
+
}, _x = ({ schema: e, items: t, onEditItem: r, onDeleteItem: n, onCreateItem: a, filters: o, setFilter: i, sortByField: l, sortByType: c, setSortBy: p, selectedMaster: d, customPickers: u }) => {
|
|
8782
8782
|
const { texts: { dynamicForms: v } } = ee(ve), [f, g] = M([]);
|
|
8783
8783
|
return $(() => {
|
|
8784
8784
|
var h, b, m;
|
|
@@ -8792,11 +8792,11 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8792
8792
|
field: x.field ?? "",
|
|
8793
8793
|
type: x.type,
|
|
8794
8794
|
readOnly: x.readOnly,
|
|
8795
|
-
valuesForSelect: ((N = x.values) == null ? void 0 : N.filter((D) => x.valuesFilteredByMaster ? D.masterValue ===
|
|
8795
|
+
valuesForSelect: ((N = x.values) == null ? void 0 : N.filter((D) => x.valuesFilteredByMaster ? D.masterValue === d : !0).map((D) => ({ id: D.id ?? "", name: D.name }))) ?? void 0
|
|
8796
8796
|
};
|
|
8797
8797
|
})) ?? []
|
|
8798
8798
|
]);
|
|
8799
|
-
}, [e,
|
|
8799
|
+
}, [e, d]), /* @__PURE__ */ s.jsxs("table", { id: `dynamic-table-${e.id}`, className: j("table table-borderless luminus-df-table", we.table), children: [
|
|
8800
8800
|
/* @__PURE__ */ s.jsxs("thead", { className: j("text-nowrap table-header", we.stickyTop, we.tableHeader), children: [
|
|
8801
8801
|
/* @__PURE__ */ s.jsxs("tr", { className: j("table-row", we.tableRow), children: [
|
|
8802
8802
|
/* @__PURE__ */ s.jsx("th", { className: j("table-head", we.tableHead, we.actionColumn, we.stickyFirst) }),
|
|
@@ -8813,8 +8813,8 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8813
8813
|
] })
|
|
8814
8814
|
] }),
|
|
8815
8815
|
/* @__PURE__ */ s.jsxs("tbody", { className: j("table-body", we.tableBody), children: [
|
|
8816
|
-
t.filter((h) => h[e.primaryKey ?? ""]).map((h) => /* @__PURE__ */ s.jsx(Dx, { schema: e, columns: f, setColumns: g, initialItem: h, onEdit: r, onDelete: n, customPickers:
|
|
8817
|
-
/* @__PURE__ */ s.jsx(Nx, { schema: e, columns: f, setColumns: g, onCreate: a, customPickers:
|
|
8816
|
+
t.filter((h) => h[e.primaryKey ?? ""]).map((h) => /* @__PURE__ */ s.jsx(Dx, { schema: e, columns: f, setColumns: g, initialItem: h, onEdit: r, onDelete: n, customPickers: u }, `${e.id}-${h[e.primaryKey ?? ""].value}`)),
|
|
8817
|
+
/* @__PURE__ */ s.jsx(Nx, { schema: e, columns: f, setColumns: g, onCreate: a, customPickers: u })
|
|
8818
8818
|
] })
|
|
8819
8819
|
] });
|
|
8820
8820
|
}, Px = ({ master: e, onChange: t, options: r, label: n }) => /* @__PURE__ */ s.jsx("div", { style: { minWidth: "200px" }, children: /* @__PURE__ */ s.jsx(Xr, { label: n, value: e, onChange: (a) => t(a ? a.toString() : null), options: r, size: "sm" }) }), Tx = "_pagination_gujwe_1", Ii = {
|
|
@@ -8828,7 +8828,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8828
8828
|
apiItemDelete: "/dynamicForms/delete",
|
|
8829
8829
|
apiItemCreate: "/dynamicForms/insert",
|
|
8830
8830
|
apiExportGet: "/dynamicForms/export"
|
|
8831
|
-
}, nw = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = ji.appDetail } = ji, apiUrls: { apiSchemaGet: p = Pt.apiSchemaGet, apiDataGet:
|
|
8831
|
+
}, nw = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = ji.appDetail } = ji, apiUrls: { apiSchemaGet: p = Pt.apiSchemaGet, apiDataGet: d = Pt.apiDataGet, apiItemPost: u = Pt.apiItemPost, apiItemDelete: v = Pt.apiItemDelete, apiItemCreate: f = Pt.apiItemCreate, apiExportGet: g = Pt.apiExportGet } = Pt, customPickers: h }) => {
|
|
8832
8832
|
var he, ce, Be, Xe, Je, Lt;
|
|
8833
8833
|
const { texts: { dynamicForms: b }, ProjectIconComponent: m } = ee(ve), x = wt(), { startLoading: N, stopLoading: D } = ee(Ir), [y, C] = M(null), [O, S] = M(null), [I, B] = M(null), [R, G] = M(null), [E, J] = M(!1), { addNotification: H } = es(), [_, T] = M([]), { confirm: W } = cn(), L = 20, X = L + 1, U = R ? Math.ceil(R.length / L) : 1, re = t ? t > 1 : !1, le = t ? t < U : !1, ie = t ? (t - 1) * L : 0, k = t ? t * L : L, q = Y(() => R ? R.length > X : !1, [R, X]), fe = Y(() => q ? (R == null ? void 0 : R.slice(ie, k)) ?? null : R ?? null, [q, R, ie, k]), [de, z] = M(null);
|
|
8834
8834
|
$(() => {
|
|
@@ -8845,7 +8845,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8845
8845
|
S([]);
|
|
8846
8846
|
return;
|
|
8847
8847
|
}
|
|
8848
|
-
N("dynamicFormData"), await x.get(`${
|
|
8848
|
+
N("dynamicFormData"), await x.get(`${d}?id=${e}&showArchive=${E}${y.masterReference ? `&master=${de}` : ""}`).then(({ data: me }) => {
|
|
8849
8849
|
const Ee = me.map((be) => {
|
|
8850
8850
|
var Se;
|
|
8851
8851
|
return Object.fromEntries(((Se = y.columns) == null ? void 0 : Se.filter((je) => je.field).map((je) => [
|
|
@@ -8856,12 +8856,12 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8856
8856
|
S(Ee), D("dynamicFormData");
|
|
8857
8857
|
}).catch(() => D("dynamicFormData"));
|
|
8858
8858
|
}
|
|
8859
|
-
}, [x, e, y, N, D, E, de,
|
|
8859
|
+
}, [x, e, y, N, D, E, de, d]), Me = P(async () => {
|
|
8860
8860
|
var ne;
|
|
8861
8861
|
y === null || ((ne = y.id) == null ? void 0 : ne.toString()) !== e || y.masterReference && !de || (N("dynamicFormExport"), await x.get(`${g}?id=${e}&showArchive=${E}${y.masterReference ? `&master=${de}` : ""}`, {
|
|
8862
8862
|
responseType: "blob"
|
|
8863
8863
|
}).then((me) => Qc(me, { fallbackName: `export-${e}` })).finally(() => D("dynamicFormExport")));
|
|
8864
|
-
}, [x, e, y, N, D, E, de, g]), Le = P(async (ne) => (N("dynamicFormEdit"), x.post(`${
|
|
8864
|
+
}, [x, e, y, N, D, E, de, g]), Le = P(async (ne) => (N("dynamicFormEdit"), x.post(`${u}?id=${e}`, ne).then(() => (D("dynamicFormEdit"), T([]), !0)).catch((me) => (D("dynamicFormEdit"), T(yn(me)), !1))), [x, e, N, D, u]), Ae = P(async (ne) => (N("dynamicFormDelete"), x.delete(`${v}?id=${e}&pk=${ne}`).then(() => (D("dynamicFormDelete"), T([]), !0)).catch((me) => (D("dynamicFormDelete"), T(yn(me)), !1))), [x, e, N, D, v]), it = P(async (ne) => (N("dynamicFormCreate"), x.post(`${f}?id=${e}`, ne).then(({ data: me }) => (D("dynamicFormCreate"), T([]), me)).catch((me) => (D("dynamicFormCreate"), T(yn(me)), null))), [x, e, N, D, f]), He = P(async (ne) => {
|
|
8865
8865
|
y && await Le(y.masterReference ? { ...ne, [y.masterReferenceColumn ?? ""]: de } : ne) && (H(b.editSuccess, "success"), S((me) => me && me.map((Ee) => {
|
|
8866
8866
|
var be;
|
|
8867
8867
|
return ((be = Ee[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : be.value) === ne[(y == null ? void 0 : y.primaryKey) ?? ""] ? Si(ne, y) : Ee;
|
|
@@ -9007,24 +9007,24 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9007
9007
|
}, _i = {
|
|
9008
9008
|
apiDynamicFormsGet: "/dynamicForms"
|
|
9009
9009
|
}, Ax = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Nt, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), aw = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: n, fullSize: a, appUrls: { appDetail: o = Oi.appDetail } = Oi, apiUrls: { apiDynamicFormsGet: i = _i.apiDynamicFormsGet } = _i }) => {
|
|
9010
|
-
const l = wt(), { startLoading: c, stopLoading: p } = ee(Ir), [
|
|
9011
|
-
...(
|
|
9010
|
+
const l = wt(), { startLoading: c, stopLoading: p } = ee(Ir), [d, u] = M(null), [v] = as("search", ""), f = Y(() => [
|
|
9011
|
+
...(d == null ? void 0 : d.map((b) => ({
|
|
9012
9012
|
...b,
|
|
9013
9013
|
type: "dynamic-form"
|
|
9014
9014
|
}))) ?? [],
|
|
9015
9015
|
...t
|
|
9016
|
-
].filter((b) => vt(b.name, n) || vt(b.description, n)).sort((b, m) => (b.name ?? "").localeCompare(m.name ?? "")) ?? [], [
|
|
9016
|
+
].filter((b) => vt(b.name, n) || vt(b.description, n)).sort((b, m) => (b.name ?? "").localeCompare(m.name ?? "")) ?? [], [d, t, n]), g = Y(() => r.map((b) => ({
|
|
9017
9017
|
id: b.id,
|
|
9018
9018
|
name: b.name ?? "",
|
|
9019
9019
|
items: f.filter((m) => m.group === b.id)
|
|
9020
9020
|
})).filter((b) => b.items.length > 0), [r, f]), h = P(async () => {
|
|
9021
9021
|
c("dynamicForms"), await l.get(i).then(({ data: b }) => {
|
|
9022
|
-
|
|
9022
|
+
u(b), p("dynamicForms");
|
|
9023
9023
|
}).catch(() => p("dynamicForms"));
|
|
9024
9024
|
}, [l, c, p, i]);
|
|
9025
9025
|
return $(() => {
|
|
9026
|
-
!
|
|
9027
|
-
}, [h,
|
|
9026
|
+
!d && h();
|
|
9027
|
+
}, [h, d]), f.length > 0 ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((b) => /* @__PURE__ */ s.jsx(Qr, { title: b.name, defaultOpen: !0, children: b.items.map((m) => {
|
|
9028
9028
|
var x, N, D, y;
|
|
9029
9029
|
return a ? /* @__PURE__ */ s.jsxs(at, { to: `${Jr(o, { id: (x = m.id) == null ? void 0 : x.toString() })}?type=${m.type}&search=${v ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((N = m.id) == null ? void 0 : N.toString()) ? "active" : ""}`, children: [
|
|
9030
9030
|
/* @__PURE__ */ s.jsx(ae, { variant: "body", children: m.name }),
|
|
@@ -9149,17 +9149,17 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9149
9149
|
reportsGet: "/reports",
|
|
9150
9150
|
reportsLastUsedGet: "/reports/last-used"
|
|
9151
9151
|
}, pw = ({ groups: e, apiUrls: { reportsGet: t = Un.reportsGet, reportsLastUsedGet: r = Un.reportsLastUsedGet } = Un, getReportName: n, getReportDescription: a, getGroupTitle: o, getReportRoute: i }) => {
|
|
9152
|
-
const { texts: { reports: l } } = ee(ve), [c, p] = M(""), [
|
|
9152
|
+
const { texts: { reports: l } } = ee(ve), [c, p] = M(""), [d] = fa(c, 500), u = P((b) => b.map((m) => ({
|
|
9153
9153
|
...m,
|
|
9154
9154
|
groupId: !m.groupId || m.groupId === 0 || !e.some((x) => x === m.groupId) ? 999 : m.groupId
|
|
9155
|
-
})), [e]), { data: v } = pr(t, { dataTransformer:
|
|
9155
|
+
})), [e]), { data: v } = pr(t, { dataTransformer: u }), f = Y(() => {
|
|
9156
9156
|
if (v === null)
|
|
9157
9157
|
return {};
|
|
9158
9158
|
const b = {};
|
|
9159
9159
|
return e.forEach((m) => {
|
|
9160
|
-
b[m] = v.filter((x) => x.groupId === m && (vt(n(x),
|
|
9160
|
+
b[m] = v.filter((x) => x.groupId === m && (vt(n(x), d) || vt(a(x), d) || x.versions.some((N) => vt(N.name, d)) || x.versionsCustom.some((N) => vt(N.name, d))));
|
|
9161
9161
|
}), b;
|
|
9162
|
-
}, [
|
|
9162
|
+
}, [d, e, v, a, n]), g = Y(() => e.filter((b) => {
|
|
9163
9163
|
var m;
|
|
9164
9164
|
return ((m = f[b]) == null ? void 0 : m.length) > 0;
|
|
9165
9165
|
}), [f, e]), { isMobile: h } = sn();
|
|
@@ -9179,7 +9179,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9179
9179
|
sm: Hx,
|
|
9180
9180
|
lg: zx
|
|
9181
9181
|
}, fw = ({ children: e, useMiniDetail: t, miniDetailProps: r, placement: n = "bottom", trigger: a = ["hover"], delayMs: o = 500 }) => {
|
|
9182
|
-
const [i, l] = M(!1), { isLoading: c, detail: p, heading:
|
|
9182
|
+
const [i, l] = M(!1), { isLoading: c, detail: p, heading: d, tooltipWidth: u } = t({
|
|
9183
9183
|
...r,
|
|
9184
9184
|
enabled: i
|
|
9185
9185
|
}), v = Z(null);
|
|
@@ -9187,7 +9187,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9187
9187
|
v.current = window.setTimeout(() => l(!0), o);
|
|
9188
9188
|
}, onMouseLeave: () => {
|
|
9189
9189
|
v.current && clearTimeout(v.current), l(!1);
|
|
9190
|
-
}, children: i ? /* @__PURE__ */ s.jsx(nd, { heading: c ? /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ s.jsx("span", { className: "placeholder bg-primary col-6" }) }) :
|
|
9190
|
+
}, children: i ? /* @__PURE__ */ s.jsx(nd, { heading: c ? /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ s.jsx("span", { className: "placeholder bg-primary col-6" }) }) : d, content: /* @__PURE__ */ s.jsx(s.Fragment, { children: c ? /* @__PURE__ */ s.jsxs(ae, { variant: "body2", className: "placeholder-glow", children: [
|
|
9191
9191
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between py-1", children: [
|
|
9192
9192
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
|
|
9193
9193
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
|
|
@@ -9208,11 +9208,11 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9208
9208
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
|
|
9209
9209
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
|
|
9210
9210
|
] })
|
|
9211
|
-
] }) : p }), placement: n, trigger: a, popoverClassName: j(Ai.miniDetailPopover, Ai[
|
|
9211
|
+
] }) : p }), placement: n, trigger: a, popoverClassName: j(Ai.miniDetailPopover, Ai[u]), children: /* @__PURE__ */ s.jsx("div", { children: e }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) });
|
|
9212
9212
|
}, vw = ({ label: e, value: t }) => /* @__PURE__ */ s.jsxs("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
|
|
9213
9213
|
/* @__PURE__ */ s.jsx(ae, { variant: "caption", children: e }),
|
|
9214
9214
|
/* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-end", children: t ?? "-" })
|
|
9215
|
-
] }), gw = ({ InputContainer: e = ot, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: p, onChange:
|
|
9215
|
+
] }), gw = ({ InputContainer: e = ot, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: p, onChange: d, className: u }) => {
|
|
9216
9216
|
const { register: v, formState: f, setValue: g } = Et(), [h, b] = M(void 0), [m, x] = M(!1);
|
|
9217
9217
|
$(() => {
|
|
9218
9218
|
const D = t.split(".");
|
|
@@ -9224,36 +9224,36 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9224
9224
|
f.isSubmitted && x(!0);
|
|
9225
9225
|
}, [f]);
|
|
9226
9226
|
const N = h !== void 0;
|
|
9227
|
-
return /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: r ?? "", required: o, isInvalid: N, withoutLabel: c, hint: p, className:
|
|
9227
|
+
return /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: r ?? "", required: o, disabled: l, isInvalid: N, withoutLabel: c, hint: p, className: u, children: [
|
|
9228
9228
|
/* @__PURE__ */ s.jsx(_e.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...v(t, {
|
|
9229
9229
|
onChange: (D) => {
|
|
9230
|
-
n && n.forEach((y) => g(y, null, { shouldDirty: !0, shouldValidate: m })),
|
|
9230
|
+
n && n.forEach((y) => g(y, null, { shouldDirty: !0, shouldValidate: m })), d && d(D.target.value ?? null);
|
|
9231
9231
|
}
|
|
9232
9232
|
}), isInvalid: N, hidden: i, disabled: l || f.disabled, className: "w-100" }),
|
|
9233
9233
|
h && /* @__PURE__ */ s.jsx(kt, { message: h.message })
|
|
9234
9234
|
] });
|
|
9235
9235
|
}, mw = ({ InputContainer: e = ot, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: p }) => {
|
|
9236
|
-
const { register:
|
|
9236
|
+
const { register: d, formState: u, setValue: v, watch: f } = Et(), [g, h] = M(void 0), [b, m] = M(!1), x = Y(() => n, [n]);
|
|
9237
9237
|
$(() => {
|
|
9238
9238
|
const D = r.split(".");
|
|
9239
|
-
let y =
|
|
9239
|
+
let y = u.errors;
|
|
9240
9240
|
D.forEach((C) => {
|
|
9241
9241
|
y !== void 0 && (y = y[C]);
|
|
9242
9242
|
}), h(y);
|
|
9243
|
-
}, [
|
|
9244
|
-
|
|
9245
|
-
}, [
|
|
9243
|
+
}, [u, r]), $(() => {
|
|
9244
|
+
u.isSubmitted && m(!0);
|
|
9245
|
+
}, [u]);
|
|
9246
9246
|
const N = g !== void 0;
|
|
9247
|
-
return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, isInvalid: N, className: p, children: [
|
|
9248
|
-
x.map((D) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${D.id}`, label: D.name, type: "radio", value: D.id ?? "", checked: f(r) === D.id, ...
|
|
9247
|
+
return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: i, isInvalid: N, className: p, children: [
|
|
9248
|
+
x.map((D) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${D.id}`, label: D.name, type: "radio", value: D.id ?? "", checked: f(r) === D.id, ...d(r, {
|
|
9249
9249
|
onChange: (y) => {
|
|
9250
9250
|
var C;
|
|
9251
9251
|
a && a.forEach((O) => v(O, null, { shouldDirty: !0, shouldValidate: b })), c && c((C = y.target) != null && C.value ? y.target.value.toString() : null);
|
|
9252
9252
|
}
|
|
9253
|
-
}), isInvalid: N, hidden: l, disabled: i ||
|
|
9253
|
+
}), isInvalid: N, hidden: l, disabled: i || u.disabled, className: "w-100" }, D.id)),
|
|
9254
9254
|
g && /* @__PURE__ */ s.jsx(kt, { message: g.message })
|
|
9255
9255
|
] });
|
|
9256
|
-
}, hw = ({ InputContainer: e = ot, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items:
|
|
9256
|
+
}, hw = ({ InputContainer: e = ot, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: v, texts: f, dropdownItemsNameWidth: g, isLoading: h, withoutLabel: b, additionalColumns: m, CustomOnChangeComponent: x, icon: N, displayIdAsName: D, onSelect: y, className: C, archiveColumn: O, hint: S, addNewOptionPath: I, refreshOptions: B, MiniDetailComponent: R, miniDetailPlacement: G, suggestedItems: E, suggestedItemsTitle: J }) => {
|
|
9257
9257
|
const { formState: H, setValue: _, watch: T, control: W } = Et(), [L, X] = M(void 0), [U, re] = M(!1), [le, ie] = M(!1), k = T(t) ?? null, q = k === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : T(`${t}-DropdownName`), fe = Y(() => k == null ? null : { id: k ?? null, name: q ?? "" }, [k, q]), de = P(() => {
|
|
9258
9258
|
const A = t.split(".");
|
|
9259
9259
|
let F = H.errors;
|
|
@@ -9286,7 +9286,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9286
9286
|
H.isSubmitted && ie(!0);
|
|
9287
9287
|
}, [H]);
|
|
9288
9288
|
const Me = Z(null), Le = L !== void 0, Ae = v !== void 0, it = Ae && fe !== null, He = p || H.disabled;
|
|
9289
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, hidden: c, withoutLabel: b, isInvalid: Le, inputContainerClassName: j({ "luminus-dropdown-select-open": U }), hint: S, className: C, children: [
|
|
9289
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: p, hidden: c, withoutLabel: b, isInvalid: Le, inputContainerClassName: j({ "luminus-dropdown-select-open": U }), hint: S, className: C, children: [
|
|
9290
9290
|
/* @__PURE__ */ s.jsxs(va, { currentSelection: fe, selectedItemNavigateTo: v, children: [
|
|
9291
9291
|
D && (fe == null ? void 0 : fe.name) && /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: fe.name }),
|
|
9292
9292
|
/* @__PURE__ */ s.jsx(xa, { control: W, name: t, render: () => /* @__PURE__ */ s.jsx(ga, { value: k, MiniDetailComponent: R, miniDetailPlacement: G, children: /* @__PURE__ */ s.jsx(_e.Select, { size: n, onMouseDown: (A) => {
|
|
@@ -9306,9 +9306,9 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9306
9306
|
] }) : null
|
|
9307
9307
|
] }),
|
|
9308
9308
|
L && /* @__PURE__ */ s.jsx(kt, { message: L.message }),
|
|
9309
|
-
Me.current && /* @__PURE__ */ s.jsx(ma, { show: U, onCancel: V, items:
|
|
9309
|
+
Me.current && /* @__PURE__ */ s.jsx(ma, { show: U, onCancel: V, items: d, currentSelection: fe, onSelectionChange: ue, onSearchQueryChange: u, texts: f, itemsNameWidth: g, additionalColumns: m, displayIdAsName: D, isLoading: h, disabled: He, inputRef: Me, archiveColumn: O, addNewOptionPath: I, refreshOptions: B, suggestedItems: E, suggestedItemsTitle: J })
|
|
9310
9310
|
] }) });
|
|
9311
|
-
}, bw = ({ InputContainer: e = ot, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept:
|
|
9311
|
+
}, bw = ({ InputContainer: e = ot, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept: d, withoutLabel: u, hint: v, className: f }) => {
|
|
9312
9312
|
const { watch: g, setValue: h, register: b, formState: m } = Et(), [x, N] = M(!1), [D, y] = M(void 0), C = P(() => {
|
|
9313
9313
|
h(r, "");
|
|
9314
9314
|
}, [h, r]), O = P(() => {
|
|
@@ -9322,8 +9322,8 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9322
9322
|
m.isSubmitted && N(!0);
|
|
9323
9323
|
}, [m]);
|
|
9324
9324
|
const S = D !== void 0;
|
|
9325
|
-
return /* @__PURE__ */ s.jsxs(e, { label: t ?? "", required: a, hidden: n, withoutLabel:
|
|
9326
|
-
/* @__PURE__ */ s.jsx(ad, { type: "file", multiple: p, accept:
|
|
9325
|
+
return /* @__PURE__ */ s.jsxs(e, { label: t ?? "", required: a, disabled: i, hidden: n, withoutLabel: u, isInvalid: S, hint: v, className: f, children: [
|
|
9326
|
+
/* @__PURE__ */ s.jsx(ad, { type: "file", multiple: p, accept: d.join(", "), placeholder: o ?? t, isInvalid: S, hidden: n, disabled: i || m.disabled, className: "w-100", ...b(r, {
|
|
9327
9327
|
onChange: () => {
|
|
9328
9328
|
c && c.forEach((I) => h(I, null, { shouldDirty: !0, shouldValidate: x }));
|
|
9329
9329
|
}
|
|
@@ -9336,7 +9336,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9336
9336
|
return $(() => {
|
|
9337
9337
|
o(Object.keys(n.dirtyFields).length > 0);
|
|
9338
9338
|
}, [n]), a ? /* @__PURE__ */ s.jsx(Ud, { onStorno: t, noSpacer: r, disabled: n.disabled, children: e }) : null;
|
|
9339
|
-
}, yw = ({ InputContainer: e = ot, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, withoutLabel:
|
|
9339
|
+
}, yw = ({ InputContainer: e = ot, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, withoutLabel: d, noSortOptions: u, suffixIdToName: v, onSelect: f, className: g, appendCurrentSelectionWithName: h, hint: b, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent: N, miniDetailPlacement: D, selectedItemNavigateTo: y }) => {
|
|
9340
9340
|
const { texts: { customSelect: C } } = ee(ve), { formState: O, setValue: S, watch: I, control: B } = Et(), [R, G] = M(void 0), [E, J] = M(!1), [H, _] = M(!1), [T, W] = M(""), L = I(r), X = Y(() => t.find((z) => z.id === L) ?? null, [t, L]), U = P(() => {
|
|
9341
9341
|
const z = r.split(".");
|
|
9342
9342
|
let ue = O.errors;
|
|
@@ -9376,16 +9376,16 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9376
9376
|
return h !== void 0 && L && (z.some((ue) => ue.id === L) || z.push({ id: L, name: h })), z.map((ue) => ({
|
|
9377
9377
|
id: ue.id,
|
|
9378
9378
|
name: k(ue)
|
|
9379
|
-
})).filter((ue) => vt(ue.name, T)).sort((ue, V) =>
|
|
9379
|
+
})).filter((ue) => vt(ue.name, T)).sort((ue, V) => u ? 0 : (ue.name ?? "").localeCompare(V.name ?? ""));
|
|
9380
9380
|
}, [
|
|
9381
9381
|
t,
|
|
9382
|
-
|
|
9382
|
+
u,
|
|
9383
9383
|
T,
|
|
9384
9384
|
k,
|
|
9385
9385
|
h,
|
|
9386
9386
|
L
|
|
9387
9387
|
]), fe = Z(null), de = R !== void 0;
|
|
9388
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: n ?? "", required: l, hidden: c, withoutLabel:
|
|
9388
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: n ?? "", required: l, disabled: p, hidden: c, withoutLabel: d, isInvalid: de, inputContainerClassName: j({ "luminus-dropdown-select-open": E }), hint: b, className: g, children: [
|
|
9389
9389
|
/* @__PURE__ */ s.jsx(va, { currentSelection: X, selectedItemNavigateTo: y, children: /* @__PURE__ */ s.jsx(xa, { control: B, name: r, render: () => /* @__PURE__ */ s.jsx(ga, { value: L, MiniDetailComponent: N, miniDetailPlacement: D, children: /* @__PURE__ */ s.jsx(_e.Select, { size: a, onMouseDown: (z) => {
|
|
9390
9390
|
z.currentTarget.focus(), z.preventDefault();
|
|
9391
9391
|
}, onClick: () => {
|
|
@@ -9395,7 +9395,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9395
9395
|
R && /* @__PURE__ */ s.jsx(kt, { message: R.message }),
|
|
9396
9396
|
fe.current && /* @__PURE__ */ s.jsx(ma, { show: E, onCancel: () => J(!1), items: q, currentSelection: X ?? null, onSelectionChange: le, onSearchQueryChange: ie, texts: C, disabled: p, inputRef: fe, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: m, refreshOptions: x })
|
|
9397
9397
|
] }) });
|
|
9398
|
-
}, ww = ({ InputContainer: e = ot, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled:
|
|
9398
|
+
}, ww = ({ InputContainer: e = ot, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled: d, withoutLabel: u, step: v, stepperStep: f = 1, className: g, min: h, max: b, onChange: m, hint: x }) => {
|
|
9399
9399
|
const { register: N, formState: D, setValue: y, watch: C } = Et(), [O, S] = M(void 0), [I, B] = M(!1), R = P((_, T, W) => {
|
|
9400
9400
|
y(_, or(T, h, b), W);
|
|
9401
9401
|
}, [b, h, y]), G = P(() => {
|
|
@@ -9417,7 +9417,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9417
9417
|
D.isSubmitted && B(!0);
|
|
9418
9418
|
}, [D]);
|
|
9419
9419
|
const J = O !== void 0, H = C(t);
|
|
9420
|
-
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: c, hidden: p, withoutLabel:
|
|
9420
|
+
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: c, disabled: d, hidden: p, withoutLabel: u, isInvalid: J, hint: x, className: g, children: [
|
|
9421
9421
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
9422
9422
|
/* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: n ?? r, size: a, ...N(t, {
|
|
9423
9423
|
setValueAs: (_) => _ == null || _ === "" ? null : or(Number(_), h, b),
|
|
@@ -9427,18 +9427,18 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9427
9427
|
var T;
|
|
9428
9428
|
o && o.forEach((W) => y(W, null, { shouldDirty: !0, shouldValidate: I })), m && m((T = _.target) != null && T.value ? Number(_.target.value) ?? null : null);
|
|
9429
9429
|
}
|
|
9430
|
-
}), isInvalid: J, hidden: p, disabled:
|
|
9431
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !
|
|
9430
|
+
}), isInvalid: J, hidden: p, disabled: d || D.disabled, className: "w-100 luminus-numeric-stepper", step: v, min: h, max: b }),
|
|
9431
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ s.jsx(se, { size: "sm", onClick: (_) => {
|
|
9432
9432
|
_.preventDefault(), _.stopPropagation(), R(t, ((H ? Number(H) : 0) - f).toString(), { shouldDirty: !0, shouldValidate: I });
|
|
9433
9433
|
}, children: /* @__PURE__ */ s.jsx(Qi, {}) }) }),
|
|
9434
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !
|
|
9434
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ s.jsx(se, { size: "sm", onClick: (_) => {
|
|
9435
9435
|
_.preventDefault(), _.stopPropagation(), R(t, ((H ? Number(H) : 0) + f).toString(), { shouldDirty: !0, shouldValidate: I });
|
|
9436
9436
|
}, children: /* @__PURE__ */ s.jsx(Zi, {}) }) })
|
|
9437
9437
|
] }),
|
|
9438
9438
|
i && C(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(se, { color: "secondary", size: "sm", onClick: G, children: /* @__PURE__ */ s.jsx(Dt, {}) }) }),
|
|
9439
9439
|
O && /* @__PURE__ */ s.jsx(kt, { message: O.message })
|
|
9440
9440
|
] });
|
|
9441
|
-
}, Dw = ({ InputContainer: e = ot, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel:
|
|
9441
|
+
}, Dw = ({ InputContainer: e = ot, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: d, step: u, size: v, CustomOnChangeComponent: f, noSelectOnFocus: g, className: h, decimalScale: b = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: N, min: D, max: y, onChange: C, hint: O }) => {
|
|
9442
9442
|
const { formState: S, setValue: I, watch: B, control: R } = Et(), [G, E] = M(void 0), [J, H] = M(!1), _ = P(() => {
|
|
9443
9443
|
const X = i ?? null;
|
|
9444
9444
|
I(t, X !== null ? Number(X) : null, {
|
|
@@ -9462,7 +9462,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9462
9462
|
y !== void 0 && W > y && I(t, y), D !== void 0 && W < D && I(t, D);
|
|
9463
9463
|
}, [t, W, y, D, I]);
|
|
9464
9464
|
const L = G !== void 0;
|
|
9465
|
-
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, hidden: c, withoutLabel:
|
|
9465
|
+
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: p, hidden: c, withoutLabel: d, isInvalid: L, hint: O, className: h, children: [
|
|
9466
9466
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
9467
9467
|
/* @__PURE__ */ s.jsx(xa, { control: R, name: t, render: ({ field: { ref: X, onChange: U, name: re, value: le } }) => /* @__PURE__ */ s.jsx(Za, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: m, prefix: x, suffix: N, defaultValue: "", name: re, value: le ?? "", placeholder: n ?? r, onFocus: (ie) => {
|
|
9468
9468
|
!g && ie.target.select();
|
|
@@ -9476,7 +9476,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9476
9476
|
"is-invalid": L
|
|
9477
9477
|
}, {
|
|
9478
9478
|
[`form-control-${v}`]: v
|
|
9479
|
-
}), step:
|
|
9479
|
+
}), step: u, getInputRef: X, min: D, max: y }) }),
|
|
9480
9480
|
f && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: f })
|
|
9481
9481
|
] }),
|
|
9482
9482
|
o && B(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(se, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ s.jsx(Dt, {}) }) }),
|
|
@@ -9504,7 +9504,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9504
9504
|
t[r] = (e == null ? void 0 : e[r]) ?? void 0;
|
|
9505
9505
|
}), t;
|
|
9506
9506
|
}, Bi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ki = (e) => !e.member && !e.isDrillThrough, Mi = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), Kx = ({ dataSource: e, settings: t, pivotRef: r, localization: n, licenseKey: a, hyperlinkColumn: o, enabled: i = !0 }) => {
|
|
9507
|
-
const { texts: { reports: l } } = ee(ve), [c, p] = M(!1),
|
|
9507
|
+
const { texts: { reports: l } } = ee(ve), [c, p] = M(!1), d = Z(null), u = r ?? d, v = Y(() => ({
|
|
9508
9508
|
localization: n
|
|
9509
9509
|
}), [n]), f = P((m) => {
|
|
9510
9510
|
delete m[0], delete m[1], delete m[2];
|
|
@@ -9512,13 +9512,13 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9512
9512
|
{
|
|
9513
9513
|
id: "fm-tab-expand",
|
|
9514
9514
|
title: l.expandAll,
|
|
9515
|
-
handler:
|
|
9515
|
+
handler: u.current.flexmonster.expandAllData,
|
|
9516
9516
|
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>'
|
|
9517
9517
|
},
|
|
9518
9518
|
{
|
|
9519
9519
|
id: "fm-tab-collapse",
|
|
9520
9520
|
title: l.collapseAll,
|
|
9521
|
-
handler:
|
|
9521
|
+
handler: u.current.flexmonster.collapseAllData,
|
|
9522
9522
|
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>'
|
|
9523
9523
|
}
|
|
9524
9524
|
];
|
|
@@ -9529,17 +9529,17 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9529
9529
|
menu: x,
|
|
9530
9530
|
rightGroup: !0
|
|
9531
9531
|
}), m;
|
|
9532
|
-
}, [
|
|
9532
|
+
}, [u, l.collapseAll, l.expand, l.expandAll]), g = (m) => {
|
|
9533
9533
|
const x = m.getTabs();
|
|
9534
9534
|
m.getTabs = () => f(x);
|
|
9535
9535
|
};
|
|
9536
9536
|
$(() => {
|
|
9537
9537
|
var m;
|
|
9538
|
-
c && i && ((m =
|
|
9539
|
-
}, [e, i, c,
|
|
9538
|
+
c && i && ((m = u.current) == null || m.flexmonster.updateData(e), console.log("Updating flexmonster dataSource to: ", e));
|
|
9539
|
+
}, [e, i, c, u]), $(() => {
|
|
9540
9540
|
var m, x, N;
|
|
9541
9541
|
if (c && i) {
|
|
9542
|
-
const { options: D, conditions: y, formats: C, slice: O, ...S } = (m =
|
|
9542
|
+
const { options: D, conditions: y, formats: C, slice: O, ...S } = (m = u.current) == null ? void 0 : m.flexmonster.getReport();
|
|
9543
9543
|
if (S === void 0 || typeof S == "string")
|
|
9544
9544
|
return;
|
|
9545
9545
|
const I = Yx(t);
|
|
@@ -9549,9 +9549,9 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9549
9549
|
showFieldListSearch: !0
|
|
9550
9550
|
};
|
|
9551
9551
|
const B = { ...S, ...I };
|
|
9552
|
-
(N =
|
|
9552
|
+
(N = u.current) == null || N.flexmonster.setReport(B), console.log("Refreshing flexmonster settings. New report: ", B);
|
|
9553
9553
|
}
|
|
9554
|
-
}, [i, c,
|
|
9554
|
+
}, [i, c, u, t]);
|
|
9555
9555
|
const h = P((m, x) => {
|
|
9556
9556
|
var I;
|
|
9557
9557
|
if (!o || !Bi(x, o.idColumn) || ki(x))
|
|
@@ -9572,7 +9572,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9572
9572
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
9573
9573
|
xd,
|
|
9574
9574
|
{
|
|
9575
|
-
ref:
|
|
9575
|
+
ref: u,
|
|
9576
9576
|
global: v,
|
|
9577
9577
|
licenseKey: a,
|
|
9578
9578
|
toolbar: !0,
|
|
@@ -9587,17 +9587,17 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9587
9587
|
}
|
|
9588
9588
|
) });
|
|
9589
9589
|
}, Xx = (e, t, r, n) => {
|
|
9590
|
-
const { texts: { reports: a } } = ee(ve), { prompt: o } = od(), { confirm: i } = cn(), l = wt(), { user: c } = ee(Cr), { startLoading: p, stopLoading:
|
|
9590
|
+
const { texts: { reports: a } } = ee(ve), { prompt: o } = od(), { confirm: i } = cn(), l = wt(), { user: c } = ee(Cr), { startLoading: p, stopLoading: d } = ee(Ir), { addNotification: u } = es(), v = P(async (m) => {
|
|
9591
9591
|
p("report-versionSavingAs");
|
|
9592
9592
|
try {
|
|
9593
9593
|
const x = await l.post("/reports/version", m);
|
|
9594
|
-
|
|
9594
|
+
u(a.saveSuccessful, "success"), await n(x.data);
|
|
9595
9595
|
} finally {
|
|
9596
|
-
|
|
9596
|
+
d("report-versionSavingAs");
|
|
9597
9597
|
}
|
|
9598
|
-
}, [
|
|
9598
|
+
}, [u, n, l, a.saveSuccessful, p, d]), f = P(async () => {
|
|
9599
9599
|
if (r === null) {
|
|
9600
|
-
|
|
9600
|
+
u("none open", "warning");
|
|
9601
9601
|
return;
|
|
9602
9602
|
}
|
|
9603
9603
|
if (!await i(a.confirmOverwriteSave))
|
|
@@ -9609,7 +9609,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9609
9609
|
settings: x
|
|
9610
9610
|
});
|
|
9611
9611
|
}, [
|
|
9612
|
-
|
|
9612
|
+
u,
|
|
9613
9613
|
i,
|
|
9614
9614
|
t,
|
|
9615
9615
|
e,
|
|
@@ -9633,18 +9633,18 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9633
9633
|
reportVersionId: r ?? void 0,
|
|
9634
9634
|
reportSourceName: e,
|
|
9635
9635
|
isArchived: !0
|
|
9636
|
-
}),
|
|
9636
|
+
}), u(a.deleteSuccessful, "success");
|
|
9637
9637
|
} finally {
|
|
9638
|
-
|
|
9638
|
+
d("report-versionSavingAs");
|
|
9639
9639
|
}
|
|
9640
9640
|
}, [
|
|
9641
|
-
|
|
9641
|
+
u,
|
|
9642
9642
|
l,
|
|
9643
9643
|
e,
|
|
9644
9644
|
a.deleteSuccessful,
|
|
9645
9645
|
r,
|
|
9646
9646
|
p,
|
|
9647
|
-
|
|
9647
|
+
d
|
|
9648
9648
|
]), b = P(async () => {
|
|
9649
9649
|
p("report-versionSavingAs");
|
|
9650
9650
|
try {
|
|
@@ -9656,17 +9656,17 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9656
9656
|
addRights: !1
|
|
9657
9657
|
}
|
|
9658
9658
|
]
|
|
9659
|
-
}),
|
|
9659
|
+
}), u(a.detachSuccessful, "success");
|
|
9660
9660
|
} finally {
|
|
9661
|
-
|
|
9661
|
+
d("report-versionSavingAs");
|
|
9662
9662
|
}
|
|
9663
9663
|
}, [
|
|
9664
|
-
|
|
9664
|
+
u,
|
|
9665
9665
|
l,
|
|
9666
9666
|
a.detachSuccessful,
|
|
9667
9667
|
r,
|
|
9668
9668
|
p,
|
|
9669
|
-
|
|
9669
|
+
d,
|
|
9670
9670
|
c.personalNumber
|
|
9671
9671
|
]);
|
|
9672
9672
|
return { saveAs: g, save: f, archive: h, detach: b };
|
|
@@ -9691,7 +9691,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9691
9691
|
return l;
|
|
9692
9692
|
}, [t, e, r, n]) };
|
|
9693
9693
|
}, Qx = ({ isOpen: e, onHide: t, usersData: r, reportVersionId: n, EmployeePicker: a, setReportVersion: o }) => {
|
|
9694
|
-
const { ProjectIconComponent: i, texts: { reports: l } } = ee(ve), { confirm: c } = cn(), [p,
|
|
9694
|
+
const { ProjectIconComponent: i, texts: { reports: l } } = ee(ve), { confirm: c } = cn(), [p, d] = M(null), { changeEmployeeRights: u } = Jx(n), v = P((h) => {
|
|
9695
9695
|
o((b) => b === null ? null : {
|
|
9696
9696
|
...b,
|
|
9697
9697
|
users: h.filter((m) => m.isReportOwner === !1)
|
|
@@ -9699,14 +9699,14 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9699
9699
|
}, [o]), f = P(async () => {
|
|
9700
9700
|
if (p === null)
|
|
9701
9701
|
return;
|
|
9702
|
-
const h = await
|
|
9703
|
-
v(h),
|
|
9704
|
-
}, [p,
|
|
9702
|
+
const h = await u(p.id, !0);
|
|
9703
|
+
v(h), d(null);
|
|
9704
|
+
}, [p, u, v]), g = P(async (h) => {
|
|
9705
9705
|
if (!await c(l.removeSharingWith(h)))
|
|
9706
9706
|
return;
|
|
9707
|
-
const m = await
|
|
9707
|
+
const m = await u(h, !1);
|
|
9708
9708
|
v(m);
|
|
9709
|
-
}, [
|
|
9709
|
+
}, [u, c, l, v]);
|
|
9710
9710
|
return /* @__PURE__ */ s.jsxs($e, { show: e, onHide: t, children: [
|
|
9711
9711
|
/* @__PURE__ */ s.jsx($e.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx($e.Title, { children: l.reportSharing }) }),
|
|
9712
9712
|
/* @__PURE__ */ s.jsxs($e.Body, { children: [
|
|
@@ -9727,10 +9727,10 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9727
9727
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-2 align-items-center", children: [
|
|
9728
9728
|
/* @__PURE__ */ s.jsx("div", { className: "flex-grow-1", children: /* @__PURE__ */ s.jsx(a, { label: l.shareWith, onSelect: (h) => {
|
|
9729
9729
|
if (h === null || typeof h.id != "number") {
|
|
9730
|
-
|
|
9730
|
+
d(null);
|
|
9731
9731
|
return;
|
|
9732
9732
|
}
|
|
9733
|
-
|
|
9733
|
+
d(h);
|
|
9734
9734
|
}, value: p }) }),
|
|
9735
9735
|
/* @__PURE__ */ s.jsx(Yr, { onClick: f, disabled: p === null, children: l.add })
|
|
9736
9736
|
] })
|
|
@@ -9744,8 +9744,8 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9744
9744
|
n(o);
|
|
9745
9745
|
});
|
|
9746
9746
|
}, [t, e]), { mappings: r };
|
|
9747
|
-
}, Nw = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: p, hyperlinkColumn:
|
|
9748
|
-
const { texts: { reports:
|
|
9747
|
+
}, Nw = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: p, hyperlinkColumn: d }) => {
|
|
9748
|
+
const { texts: { reports: u } } = ee(ve), { confirm: v } = cn(), f = ns(), [g] = gd(), { id: h } = md(), b = Y(() => h === void 0 ? null : Number(h), [h]), m = P((k) => {
|
|
9749
9749
|
const q = k === null ? "" : k.toString();
|
|
9750
9750
|
f(Jr(a(e), { id: q }) + "?" + g.toString(), {
|
|
9751
9751
|
replace: !0,
|
|
@@ -9771,15 +9771,15 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9771
9771
|
mapping: S ?? void 0
|
|
9772
9772
|
}), [r, S]), X = P(async () => {
|
|
9773
9773
|
var q;
|
|
9774
|
-
await v(
|
|
9775
|
-
}, [v, L,
|
|
9774
|
+
await v(u.confirmRevertChanges) && ((q = D.current) == null || q.flexmonster.setReport({ dataSource: L, ...I }));
|
|
9775
|
+
}, [v, L, u.confirmRevertChanges, I]), U = Y(() => (E == null ? void 0 : E.ownerId) === y.personalNumber, [E == null ? void 0 : E.ownerId, y.personalNumber]), re = Y(() => {
|
|
9776
9776
|
var k;
|
|
9777
9777
|
return (k = E == null ? void 0 : E.users) == null ? void 0 : k.some((q) => q.id === y.personalNumber && !q.isReportOwner);
|
|
9778
9778
|
}, [E == null ? void 0 : E.users, y.personalNumber]), le = P(async () => {
|
|
9779
|
-
await v(
|
|
9780
|
-
}, [T, v, O, E == null ? void 0 : E.name,
|
|
9781
|
-
await v(
|
|
9782
|
-
}, [v, W, O, E == null ? void 0 : E.name,
|
|
9779
|
+
await v(u.confirmDelete(E == null ? void 0 : E.name)) && (await T(), m(null), await O());
|
|
9780
|
+
}, [T, v, O, E == null ? void 0 : E.name, u, m]), ie = P(async () => {
|
|
9781
|
+
await v(u.confirmDetach(E == null ? void 0 : E.name)) && (await W(), m(null), await O());
|
|
9782
|
+
}, [v, W, O, E == null ? void 0 : E.name, u, m]);
|
|
9783
9783
|
return $(() => {
|
|
9784
9784
|
var k, q;
|
|
9785
9785
|
b === null && m(((k = C == null ? void 0 : C.reportVersions.find((fe) => fe.isSystem === !0)) == null ? void 0 : k.reportVersionId) ?? ((q = C == null ? void 0 : C.reportVersions[0]) == null ? void 0 : q.reportVersionId) ?? null);
|
|
@@ -9789,20 +9789,20 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9789
9789
|
n,
|
|
9790
9790
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
|
|
9791
9791
|
/* @__PURE__ */ s.jsxs(id, { size: "sm", value: b ?? void 0, onChange: R, children: [
|
|
9792
|
-
/* @__PURE__ */ s.jsx("optgroup", { label:
|
|
9793
|
-
/* @__PURE__ */ s.jsx("optgroup", { label:
|
|
9794
|
-
/* @__PURE__ */ s.jsx("optgroup", { label:
|
|
9792
|
+
/* @__PURE__ */ s.jsx("optgroup", { label: u.versionSelectSystem, children: C == null ? void 0 : C.reportVersions.filter((k) => k.isSystem === !0).map((k) => /* @__PURE__ */ s.jsx("option", { value: k.reportVersionId, children: k.name }, k.reportVersionId)) }),
|
|
9793
|
+
/* @__PURE__ */ s.jsx("optgroup", { label: u.versionSelectYour, children: C == null ? void 0 : C.reportVersions.filter((k) => k.ownerId === y.personalNumber).map((k) => /* @__PURE__ */ s.jsx("option", { value: k.reportVersionId, children: k.name }, k.reportVersionId)) }),
|
|
9794
|
+
/* @__PURE__ */ s.jsx("optgroup", { label: u.versionSelectSharedWithYou, children: C == null ? void 0 : C.reportVersions.filter((k) => k.isSystem === !1 && k.ownerId !== y.personalNumber).map((k) => /* @__PURE__ */ s.jsx("option", { value: k.reportVersionId, children: `${k.name} [${k.ownerId}]` }, k.reportVersionId)) })
|
|
9795
9795
|
] }),
|
|
9796
|
-
/* @__PURE__ */ s.jsx(ct, { icon: /* @__PURE__ */ s.jsx(sd, {}), onClick: H, disabled: b === null || (E == null ? void 0 : E.isSystem) || !U, children:
|
|
9797
|
-
/* @__PURE__ */ s.jsx(ct, { icon: /* @__PURE__ */ s.jsx(ld, {}), onClick: _, className: "flex-shrink-0", children:
|
|
9796
|
+
/* @__PURE__ */ s.jsx(ct, { icon: /* @__PURE__ */ s.jsx(sd, {}), onClick: H, disabled: b === null || (E == null ? void 0 : E.isSystem) || !U, children: u.save }),
|
|
9797
|
+
/* @__PURE__ */ s.jsx(ct, { icon: /* @__PURE__ */ s.jsx(ld, {}), onClick: _, className: "flex-shrink-0", children: u.saveAs }),
|
|
9798
9798
|
/* @__PURE__ */ s.jsxs(Nr, { toggle: /* @__PURE__ */ s.jsx(Er, { as: ln }), children: [
|
|
9799
|
-
/* @__PURE__ */ s.jsx(nt, { onClick: X, children:
|
|
9800
|
-
/* @__PURE__ */ s.jsx(nt, { onClick: () => N(!0), disabled: !U || (E == null ? void 0 : E.isSystem), children:
|
|
9801
|
-
U && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(nt, { color: "danger", onClick: le, children:
|
|
9802
|
-
re && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(nt, { color: "danger", onClick: ie, children:
|
|
9799
|
+
/* @__PURE__ */ s.jsx(nt, { onClick: X, children: u.revertChanges }),
|
|
9800
|
+
/* @__PURE__ */ s.jsx(nt, { onClick: () => N(!0), disabled: !U || (E == null ? void 0 : E.isSystem), children: u.share }),
|
|
9801
|
+
U && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(nt, { color: "danger", onClick: le, children: u.delete }) : null,
|
|
9802
|
+
re && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(nt, { color: "danger", onClick: ie, children: u.detach }) : null
|
|
9803
9803
|
] })
|
|
9804
9804
|
] })
|
|
9805
|
-
] }), children: /* @__PURE__ */ s.jsx("div", { className: j("h-100 w-100", L.data && L.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ s.jsx(Kx, { dataSource: L, settings: I, pivotRef: D, enabled: L.data && L.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn:
|
|
9805
|
+
] }), children: /* @__PURE__ */ s.jsx("div", { className: j("h-100 w-100", L.data && L.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ s.jsx(Kx, { dataSource: L, settings: I, pivotRef: D, enabled: L.data && L.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn: d }) }) }),
|
|
9806
9806
|
E !== null ? /* @__PURE__ */ s.jsx(
|
|
9807
9807
|
Qx,
|
|
9808
9808
|
{
|
|
@@ -9834,8 +9834,8 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9834
9834
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
|
|
9835
9835
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
9836
9836
|
/* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "fw-bold", children: e.subject }),
|
|
9837
|
-
/* @__PURE__ */ s.jsx(se, { size: "sm", onClick: (
|
|
9838
|
-
|
|
9837
|
+
/* @__PURE__ */ s.jsx(se, { size: "sm", onClick: (d) => {
|
|
9838
|
+
d.preventDefault(), d.stopPropagation(), t(e.id);
|
|
9839
9839
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "delete" }) })
|
|
9840
9840
|
] }),
|
|
9841
9841
|
/* @__PURE__ */ s.jsx(ae, { variant: "body2", children: e.text })
|
|
@@ -9843,9 +9843,9 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9843
9843
|
] }) }) })
|
|
9844
9844
|
] });
|
|
9845
9845
|
}, Li = ["info", "warning", "danger"], Fi = ({ messages: e, isLoading: t, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }) => {
|
|
9846
|
-
const { texts: { messageBoard: i } } = ee(ve), [l, c] = M(Li), p = Y(() => e.filter((
|
|
9846
|
+
const { texts: { messageBoard: i } } = ee(ve), [l, c] = M(Li), p = Y(() => e.filter((d) => l.includes(d.type ?? "")), [l, e]);
|
|
9847
9847
|
return /* @__PURE__ */ s.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
9848
|
-
/* @__PURE__ */ s.jsx(ey, { knownTypes: Li, typeFilters: l, onChangeTypeFilters: (
|
|
9848
|
+
/* @__PURE__ */ s.jsx(ey, { knownTypes: Li, typeFilters: l, onChangeTypeFilters: (d) => c(d) }),
|
|
9849
9849
|
t && /* @__PURE__ */ s.jsxs("div", { className: "p-3 w-100", children: [
|
|
9850
9850
|
/* @__PURE__ */ s.jsx(pt, { as: vo.Title, animation: "glow", children: /* @__PURE__ */ s.jsx(pt, { xs: 6 }) }),
|
|
9851
9851
|
/* @__PURE__ */ s.jsxs(pt, { as: vo.Text, animation: "glow", children: [
|
|
@@ -9862,16 +9862,16 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9862
9862
|
] }),
|
|
9863
9863
|
!t && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9864
9864
|
e.length === 0 && /* @__PURE__ */ s.jsx(on, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
|
|
9865
|
-
/* @__PURE__ */ s.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: p.map((
|
|
9865
|
+
/* @__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(ry, { message: d, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }, d.id)) })
|
|
9866
9866
|
] })
|
|
9867
9867
|
] });
|
|
9868
9868
|
}, Hn = {
|
|
9869
9869
|
apiGet: "/messageBoard",
|
|
9870
9870
|
apiDelete: "/messageBoard/"
|
|
9871
9871
|
}, Cw = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = Hn.apiGet, apiDelete: n = Hn.apiDelete } = Hn, getIcon: a, getLinksTo: o }) => {
|
|
9872
|
-
const l = wt(), [c, p] = M([]), [
|
|
9872
|
+
const l = wt(), [c, p] = M([]), [d, u] = M(!1), [v, f] = M(!1), [g, h] = M(!1), b = P(async () => {
|
|
9873
9873
|
f(!0), await l.get(r).then(({ data: y }) => {
|
|
9874
|
-
p(y),
|
|
9874
|
+
p(y), u(!0), f(!1);
|
|
9875
9875
|
}).catch(() => {
|
|
9876
9876
|
p([]), f(!1);
|
|
9877
9877
|
});
|
|
@@ -9887,7 +9887,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9887
9887
|
clearInterval(y);
|
|
9888
9888
|
};
|
|
9889
9889
|
}, [b]);
|
|
9890
|
-
const N = c.filter((y) => y.type === "danger").length, D =
|
|
9890
|
+
const N = c.filter((y) => y.type === "danger").length, D = d ? !1 : v;
|
|
9891
9891
|
return e ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9892
9892
|
/* @__PURE__ */ s.jsxs("div", { className: "position-relative", children: [
|
|
9893
9893
|
/* @__PURE__ */ s.jsx(se, { size: "md", onClick: () => h(!g), children: t }),
|
|
@@ -9910,11 +9910,11 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9910
9910
|
const l = o.type, c = o.props;
|
|
9911
9911
|
if (!c)
|
|
9912
9912
|
return null;
|
|
9913
|
-
const p = c.eventKey,
|
|
9913
|
+
const p = c.eventKey, d = c.children, u = c.className, v = c.onClick;
|
|
9914
9914
|
return /* @__PURE__ */ s.jsxs(oe.Fragment, { children: [
|
|
9915
|
-
/* @__PURE__ */ s.jsx(l, { ...c, className: j({ active: e === p },
|
|
9915
|
+
/* @__PURE__ */ s.jsx(l, { ...c, className: j({ active: e === p }, u), onClick: () => {
|
|
9916
9916
|
t(p), v && v(p);
|
|
9917
|
-
}, vertical: n || a, children:
|
|
9917
|
+
}, vertical: n || a, children: d }),
|
|
9918
9918
|
a && i < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className: j("join-line", sy.joinLine) })
|
|
9919
9919
|
] }, c.eventKey);
|
|
9920
9920
|
}) }), cy = "_tab_1tbi7_1", dy = "_disabled_1tbi7_7", uy = "_vertical_1tbi7_13", qn = {
|
|
@@ -9951,17 +9951,17 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9951
9951
|
}, hy = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n }) => {
|
|
9952
9952
|
const { ProjectIconComponent: a } = ee(ve), [o, i] = M(e.icon), [l, c] = M(e.name);
|
|
9953
9953
|
console.log(o, typeof o);
|
|
9954
|
-
const p = Y(() => !(o === e.icon && l === e.name), [o, l, e.icon, e.name]),
|
|
9954
|
+
const p = Y(() => !(o === e.icon && l === e.name), [o, l, e.icon, e.name]), d = P(() => {
|
|
9955
9955
|
i(e.icon), c(e.name);
|
|
9956
|
-
}, [e]),
|
|
9956
|
+
}, [e]), u = P(() => {
|
|
9957
9957
|
n({ ...e, icon: o, name: l });
|
|
9958
9958
|
}, [n, o, l, e]);
|
|
9959
9959
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9960
9960
|
/* @__PURE__ */ s.jsx("td", { className: "align-middle", children: /* @__PURE__ */ s.jsx(mt, { type: "text", maxLength: 20, value: l, onChange: c, className: "d-flex-grow-1", InputContainer: Qe }) }),
|
|
9961
9961
|
/* @__PURE__ */ s.jsx("td", { className: "align-middle text-center", children: /* @__PURE__ */ s.jsx(Zl, { icon: o, setIcon: i, IconComponent: t, IconTypeArray: r }) }),
|
|
9962
9962
|
/* @__PURE__ */ s.jsx("td", { className: "align-middle", style: { width: "7em" }, children: p && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9963
|
-
/* @__PURE__ */ s.jsx(se, { onClick:
|
|
9964
|
-
/* @__PURE__ */ s.jsx(se, { onClick:
|
|
9963
|
+
/* @__PURE__ */ s.jsx(se, { onClick: d, color: "danger", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "cancel" }) }),
|
|
9964
|
+
/* @__PURE__ */ s.jsx(se, { onClick: u, color: "success", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "check" }) })
|
|
9965
9965
|
] }) })
|
|
9966
9966
|
] });
|
|
9967
9967
|
}, by = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n, deleteShortcutLink: a }) => {
|
|
@@ -9993,9 +9993,9 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9993
9993
|
linkAddButton: yy,
|
|
9994
9994
|
createLinkRow: wy
|
|
9995
9995
|
}, Dy = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ s.jsx(Nt, { text: e.name, placement: "bottom", children: /* @__PURE__ */ s.jsx(at, { to: e.url, className: Wt.linkButton, children: /* @__PURE__ */ s.jsx(t, { icon: e.icon }) }) }), Ny = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconComponent: a, IconTypeArray: o }) => {
|
|
9996
|
-
const i = hd(), { texts: l } = ee(ve), [c, p] = M("star-outline"), [
|
|
9997
|
-
await r({ icon: c, name:
|
|
9998
|
-
}, [e, r, c, i.pathname, i.search,
|
|
9996
|
+
const i = hd(), { texts: l } = ee(ve), [c, p] = M("star-outline"), [d, u] = M(n ? document.title.replace(n, "") : document.title), v = P(async () => {
|
|
9997
|
+
await r({ icon: c, name: d, url: i.pathname + i.search }), e();
|
|
9998
|
+
}, [e, r, c, i.pathname, i.search, d]), f = Y(() => i.pathname + i.search, [i.pathname, i.search]);
|
|
9999
9999
|
return /* @__PURE__ */ s.jsxs($e, { show: t, onHide: e, size: "sm", children: [
|
|
10000
10000
|
/* @__PURE__ */ s.jsx($e.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx($e.Title, { children: l.shortcutLinks.newShortcut }) }),
|
|
10001
10001
|
/* @__PURE__ */ s.jsxs($e.Body, { children: [
|
|
@@ -10008,7 +10008,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
10008
10008
|
] }),
|
|
10009
10009
|
/* @__PURE__ */ s.jsxs("div", { className: Wt.createLinkRow, children: [
|
|
10010
10010
|
/* @__PURE__ */ s.jsx(ae, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
|
|
10011
|
-
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(mt, { type: "text", maxLength: 25, value:
|
|
10011
|
+
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(mt, { type: "text", maxLength: 25, value: d, onChange: u, className: "w-100", InputContainer: ot, withoutLabel: !0 }) })
|
|
10012
10012
|
] }),
|
|
10013
10013
|
/* @__PURE__ */ s.jsxs("div", { className: Wt.createLinkRow, children: [
|
|
10014
10014
|
/* @__PURE__ */ s.jsx(ae, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
|
|
@@ -10071,17 +10071,17 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
10071
10071
|
if (Sy(a).length >= sa)
|
|
10072
10072
|
throw new Error("Cannot add more shortcut links.");
|
|
10073
10073
|
await i({ ...f, employee: g.personalNumber }), await o();
|
|
10074
|
-
}, [i, o, a, r]),
|
|
10074
|
+
}, [i, o, a, r]), d = P(async (f) => {
|
|
10075
10075
|
const g = Vi(r);
|
|
10076
10076
|
await l({ ...f, employee: g.personalNumber }), await o();
|
|
10077
|
-
}, [o, l, r]),
|
|
10077
|
+
}, [o, l, r]), u = P(async (f) => {
|
|
10078
10078
|
await c(f), await o();
|
|
10079
10079
|
}, [o, c]), v = Y(() => ({
|
|
10080
10080
|
shortcutLinks: a,
|
|
10081
10081
|
createShortcutLink: p,
|
|
10082
|
-
editShortcutLink:
|
|
10083
|
-
deleteShortcutLink:
|
|
10084
|
-
}), [p,
|
|
10082
|
+
editShortcutLink: d,
|
|
10083
|
+
deleteShortcutLink: u
|
|
10084
|
+
}), [p, u, d, a]);
|
|
10085
10085
|
return /* @__PURE__ */ s.jsx(rs.Provider, { value: v, children: e });
|
|
10086
10086
|
};
|
|
10087
10087
|
export {
|