react-luminus-components 1.3.235 → 1.3.237
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/components/Buttons/ContextButton/ContextButton.d.ts +1 -1
- package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +1 -1
- package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +2 -1
- package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +1 -1
- package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +2 -1
- package/dist/layout/SideMenu/SideMenu.d.ts +2 -1
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +88 -83
- package/dist/main.cjs.js +15 -15
- package/dist/main.es.js +891 -891
- package/dist/models/types/UserModel.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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
|
|
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 dr, 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 Er, ad as Cr, 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 qt, 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 ur, 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
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
|
-
import oe, { useCallback as P, useMemo as Y, useState as M, useRef as
|
|
4
|
+
import oe, { useCallback as P, useMemo as Y, useState as M, useRef as ee, useEffect as $, useContext as Q, useId as cd, Component as dd, isValidElement as oo, Suspense as ud, useLayoutEffect as ba, useReducer as pd } from "react";
|
|
5
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";
|
|
9
|
-
import
|
|
9
|
+
import pr, { 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
|
|
14
|
-
import { l as
|
|
13
|
+
import { u as fr } from "./useGetApiData-BrxYGyDd.js";
|
|
14
|
+
import { l as ir } from "./numberUtils-Bwf8nio8.js";
|
|
15
15
|
const Fy = ({ fileLoader: e, fileName: t, children: r }) => {
|
|
16
16
|
const n = P(async () => {
|
|
17
17
|
var l, c;
|
|
@@ -100,8 +100,8 @@ function Kn(e, t) {
|
|
|
100
100
|
i = `${p < 0 ? "+" : "-"}${b}:${m}`;
|
|
101
101
|
} else
|
|
102
102
|
i = "Z";
|
|
103
|
-
const d = ut(r.getHours(), 2), u = ut(r.getMinutes(), 2),
|
|
104
|
-
o = `${o}${
|
|
103
|
+
const d = ut(r.getHours(), 2), u = ut(r.getMinutes(), 2), f = ut(r.getSeconds(), 2), v = o === "" ? "" : "T", g = [d, u, f].join(c);
|
|
104
|
+
o = `${o}${v}${g}${i}`;
|
|
105
105
|
}
|
|
106
106
|
return o;
|
|
107
107
|
}
|
|
@@ -134,7 +134,7 @@ function Xn(e, t) {
|
|
|
134
134
|
const r = Oe(e);
|
|
135
135
|
return isNaN(+r) ? la(e, NaN) : (r.setFullYear(t), r);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function rr(...e) {
|
|
138
138
|
return e.filter((t) => t != null).reduce((t, r) => {
|
|
139
139
|
if (typeof r != "function")
|
|
140
140
|
throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
@@ -171,20 +171,20 @@ const Pd = {
|
|
|
171
171
|
timeout: p = 300,
|
|
172
172
|
mountOnEnter: d = !1,
|
|
173
173
|
unmountOnExit: u = !1,
|
|
174
|
-
appear:
|
|
175
|
-
getDimensionValue:
|
|
174
|
+
appear: f = !1,
|
|
175
|
+
getDimensionValue: v = _d,
|
|
176
176
|
...g
|
|
177
177
|
}, h) => {
|
|
178
|
-
const b = typeof l == "function" ? l() : l, m = Y(() =>
|
|
178
|
+
const b = typeof l == "function" ? l() : l, m = Y(() => rr((C) => {
|
|
179
179
|
C.style[b] = "0";
|
|
180
|
-
}, e), [b, e]), x = Y(() =>
|
|
180
|
+
}, e), [b, e]), x = Y(() => rr((C) => {
|
|
181
181
|
const O = `scroll${b[0].toUpperCase()}${b.slice(1)}`;
|
|
182
182
|
C.style[b] = `${C[O]}px`;
|
|
183
|
-
}, t), [b, t]), N = Y(() =>
|
|
183
|
+
}, t), [b, t]), N = Y(() => rr((C) => {
|
|
184
184
|
C.style[b] = null;
|
|
185
|
-
}, r), [b, r]), D = Y(() =>
|
|
186
|
-
C.style[b] = `${
|
|
187
|
-
}, n), [n,
|
|
185
|
+
}, r), [b, r]), D = Y(() => rr((C) => {
|
|
186
|
+
C.style[b] = `${v(b, C)}px`, pc(C);
|
|
187
|
+
}, n), [n, v, b]), y = Y(() => rr((C) => {
|
|
188
188
|
C.style[b] = null;
|
|
189
189
|
}, a), [b, a]);
|
|
190
190
|
return /* @__PURE__ */ s.jsx($i, {
|
|
@@ -202,7 +202,7 @@ const Pd = {
|
|
|
202
202
|
timeout: p,
|
|
203
203
|
mountOnEnter: d,
|
|
204
204
|
unmountOnExit: u,
|
|
205
|
-
appear:
|
|
205
|
+
appear: f,
|
|
206
206
|
children: (C, O) => /* @__PURE__ */ oe.cloneElement(i, {
|
|
207
207
|
...O,
|
|
208
208
|
className: j(o, i.props.className, Pd[C], b === "width" && "collapse-horizontal")
|
|
@@ -448,7 +448,7 @@ function Md(e) {
|
|
|
448
448
|
typeof l == "object" ? (d = l, p = c, c = !0) : (c = c || !0, d = {
|
|
449
449
|
[l]: c
|
|
450
450
|
});
|
|
451
|
-
let u = Y(() => Object.entries(d).reduce((
|
|
451
|
+
let u = Y(() => Object.entries(d).reduce((f, [v, g]) => ((g === "up" || g === !0) && (f = r(f, o(v))), (g === "down" || g === !0) && (f = r(f, a(v))), f), ""), [JSON.stringify(d)]);
|
|
452
452
|
return kd(u, p);
|
|
453
453
|
}
|
|
454
454
|
return i;
|
|
@@ -547,8 +547,8 @@ const ws = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
547
547
|
scroll: p = !1,
|
|
548
548
|
onEscapeKeyDown: d,
|
|
549
549
|
onShow: u,
|
|
550
|
-
onHide:
|
|
551
|
-
container:
|
|
550
|
+
onHide: f,
|
|
551
|
+
container: v,
|
|
552
552
|
autoFocus: g = !0,
|
|
553
553
|
enforceFocus: h = !0,
|
|
554
554
|
restoreFocus: b = !0,
|
|
@@ -564,9 +564,9 @@ const ws = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
564
564
|
renderStaticNode: B = !1,
|
|
565
565
|
...R
|
|
566
566
|
}, G) => {
|
|
567
|
-
const E =
|
|
567
|
+
const E = ee();
|
|
568
568
|
e = Ie(e, "offcanvas");
|
|
569
|
-
const [J, H] = M(!1), _ = mc(
|
|
569
|
+
const [J, H] = M(!1), _ = mc(f), T = Ld(o || "xs", "up");
|
|
570
570
|
$(() => {
|
|
571
571
|
H(o ? i && !T : i);
|
|
572
572
|
}, [i, o, T]);
|
|
@@ -599,7 +599,7 @@ const ws = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
599
599
|
show: J,
|
|
600
600
|
ref: G,
|
|
601
601
|
backdrop: l,
|
|
602
|
-
container:
|
|
602
|
+
container: v,
|
|
603
603
|
keyboard: c,
|
|
604
604
|
autoFocus: g,
|
|
605
605
|
enforceFocus: h && !p,
|
|
@@ -680,12 +680,12 @@ const pt = Object.assign(Es, {
|
|
|
680
680
|
return i.forEach((d) => {
|
|
681
681
|
const u = n[d];
|
|
682
682
|
delete n[d];
|
|
683
|
-
let
|
|
683
|
+
let f;
|
|
684
684
|
u != null && typeof u == "object" ? {
|
|
685
|
-
cols:
|
|
686
|
-
} = u :
|
|
687
|
-
const
|
|
688
|
-
|
|
685
|
+
cols: f
|
|
686
|
+
} = u : f = u;
|
|
687
|
+
const v = d !== l ? `-${d}` : "";
|
|
688
|
+
f != null && p.push(`${c}${v}-${f}`);
|
|
689
689
|
}), /* @__PURE__ */ s.jsx(r, {
|
|
690
690
|
ref: a,
|
|
691
691
|
...n,
|
|
@@ -705,21 +705,21 @@ const Wd = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
705
705
|
responsive: c,
|
|
706
706
|
...p
|
|
707
707
|
}, d) => {
|
|
708
|
-
const u = Ie(e, "table"),
|
|
708
|
+
const u = Ie(e, "table"), f = 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`), v = /* @__PURE__ */ s.jsx("table", {
|
|
709
709
|
...p,
|
|
710
|
-
className:
|
|
710
|
+
className: f,
|
|
711
711
|
ref: d
|
|
712
712
|
});
|
|
713
713
|
if (c) {
|
|
714
714
|
let g = `${u}-responsive`;
|
|
715
715
|
return typeof c == "string" && (g = `${g}-${c}`), /* @__PURE__ */ s.jsx("div", {
|
|
716
716
|
className: g,
|
|
717
|
-
children:
|
|
717
|
+
children: v
|
|
718
718
|
});
|
|
719
719
|
}
|
|
720
|
-
return
|
|
720
|
+
return v;
|
|
721
721
|
}), Ud = ({ children: e, onStorno: t, noSpacer: r, disabled: n }) => {
|
|
722
|
-
const { texts: { formSubmit: a } } =
|
|
722
|
+
const { texts: { formSubmit: a } } = Q(ve);
|
|
723
723
|
return /* @__PURE__ */ s.jsxs(Nb, { noSpacer: r, children: [
|
|
724
724
|
/* @__PURE__ */ s.jsxs(Yr, { as: "button", color: "primary", size: "lg", type: "submit", disabled: n, children: [
|
|
725
725
|
/* @__PURE__ */ s.jsx(Cc, {}),
|
|
@@ -759,20 +759,20 @@ const Wd = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
759
759
|
sm: zd,
|
|
760
760
|
lg: qd
|
|
761
761
|
}, Yd = ({ month: e, onChangeMonth: t, locale: r, yearMin: n = 2e3, yearMax: a = 2050, className: o, monthClassName: i, yearClassName: l, size: c }) => {
|
|
762
|
-
const p = P((
|
|
763
|
-
const
|
|
764
|
-
|
|
762
|
+
const p = P((f) => {
|
|
763
|
+
const v = jc(e, f);
|
|
764
|
+
v.getFullYear() < n || v.getFullYear() > a || t(v);
|
|
765
765
|
}, [e, t, n, a]), d = Y(() => {
|
|
766
|
-
const
|
|
767
|
-
for (let
|
|
768
|
-
|
|
769
|
-
return
|
|
766
|
+
const f = [];
|
|
767
|
+
for (let v = n; v <= a; v++)
|
|
768
|
+
f.push(v);
|
|
769
|
+
return f;
|
|
770
770
|
}, [n, a]), u = Y(() => {
|
|
771
771
|
const g = [];
|
|
772
772
|
for (let h = 0; h <= 11; h++)
|
|
773
773
|
g.push({
|
|
774
774
|
id: h,
|
|
775
|
-
name:
|
|
775
|
+
name: dr(new Date(2024, h, 1), "LLLL", { locale: r })
|
|
776
776
|
});
|
|
777
777
|
return g;
|
|
778
778
|
}, [r]);
|
|
@@ -780,14 +780,14 @@ const Wd = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
780
780
|
[kr[c]]: c
|
|
781
781
|
}), children: [
|
|
782
782
|
/* @__PURE__ */ s.jsx(se, { onClick: () => p(-1), disabled: e.getFullYear() < n || e.getFullYear() === n && e.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(ua, {}) }),
|
|
783
|
-
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getMonth(), onChange: (
|
|
784
|
-
var
|
|
785
|
-
return ((
|
|
786
|
-
}, className: j(kr.select, kr.month, i), children: u.map((
|
|
787
|
-
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getFullYear(), onChange: (
|
|
788
|
-
var
|
|
789
|
-
return ((
|
|
790
|
-
}, className: j(kr.select, l), children: d.map((
|
|
783
|
+
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getMonth(), onChange: (f) => {
|
|
784
|
+
var v;
|
|
785
|
+
return ((v = f.target) == null ? void 0 : v.value) && t(jd(e, Number(f.target.value)));
|
|
786
|
+
}, className: j(kr.select, kr.month, i), children: u.map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id, children: f.name }, f.id)) }),
|
|
787
|
+
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getFullYear(), onChange: (f) => {
|
|
788
|
+
var v;
|
|
789
|
+
return ((v = f.target) == null ? void 0 : v.value) && t(Xn(e, Number(f.target.value)));
|
|
790
|
+
}, className: j(kr.select, l), children: d.map((f) => /* @__PURE__ */ s.jsx("option", { value: f, children: f }, f)) }),
|
|
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 = {
|
|
@@ -868,13 +868,13 @@ class Qd extends dd {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
const Zd = (e) => (r) => {
|
|
871
|
-
const { texts: { errorBoundary: n } } =
|
|
871
|
+
const { texts: { errorBoundary: n } } = Q(ve);
|
|
872
872
|
return /* @__PURE__ */ s.jsx(e, { texts: n, ...r });
|
|
873
873
|
}, eu = Zd(Qd), tu = "_widget-card_e9tsb_1", ru = {
|
|
874
874
|
"widget-card": "_widget-card_e9tsb_1",
|
|
875
875
|
widgetCard: tu
|
|
876
876
|
}, xo = ({ children: e, title: t, headerContent: r }) => /* @__PURE__ */ s.jsx(Is, { className: j(ru.widgetCard, "luminus-widget"), title: t, headerContent: r, contentClassName: "h-100 overflow-auto", children: e }), nu = ({ children: e, title: t }) => {
|
|
877
|
-
const { texts: { widget: r } } =
|
|
877
|
+
const { texts: { widget: r } } = Q(ve), n = ns();
|
|
878
878
|
return /* @__PURE__ */ s.jsx(eu, { fallback: /* @__PURE__ */ s.jsx(xo, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => n(-1), children: /* @__PURE__ */ s.jsx(ud, { fallback: /* @__PURE__ */ s.jsx(xo, { title: t, children: /* @__PURE__ */ s.jsx(Nd, {}) }), children: e }) });
|
|
879
879
|
}, au = "_widgets-row_13gg1_1", ou = "_widget_13gg1_1", iu = "_widget-img_13gg1_5", su = "_widget-title-spacer_13gg1_14", lu = "_widget-title_13gg1_14", cu = "_title_13gg1_28", ze = {
|
|
880
880
|
"widgets-row": "_widgets-row_13gg1_1",
|
|
@@ -944,63 +944,63 @@ const Zd = (e) => (r) => {
|
|
|
944
944
|
"widget-edit-overlay": "_widget-edit-overlay_1gf59_36",
|
|
945
945
|
widgetEditOverlay: yu,
|
|
946
946
|
mobile: wu
|
|
947
|
-
}, Du = (e) => {
|
|
948
|
-
const [
|
|
947
|
+
}, Du = (e, t = "dashboardConfig") => {
|
|
948
|
+
const [r, n] = M({ widgets: [] });
|
|
949
949
|
$(() => {
|
|
950
|
-
const
|
|
951
|
-
|
|
952
|
-
}, [e]);
|
|
953
|
-
const
|
|
954
|
-
|
|
955
|
-
}, []);
|
|
956
|
-
return { dashboardConfig:
|
|
957
|
-
}, $y = ({ widgetGroups: e, availableWidgets: t, editMode: r, defaultDashboardConfig: n }) => {
|
|
950
|
+
const o = localStorage.getItem(t);
|
|
951
|
+
o ? n(JSON.parse(o)) : e && n(e);
|
|
952
|
+
}, [e, t]);
|
|
953
|
+
const a = P((o) => {
|
|
954
|
+
n(o), localStorage.setItem(t, JSON.stringify(o));
|
|
955
|
+
}, [t]);
|
|
956
|
+
return { dashboardConfig: r, onChangeDashboardConfig: a };
|
|
957
|
+
}, $y = ({ widgetGroups: e, availableWidgets: t, editMode: r, defaultDashboardConfig: n, dashboardConfigKey: a }) => {
|
|
958
958
|
var v;
|
|
959
|
-
const { texts: { homeDashboard:
|
|
960
|
-
var
|
|
961
|
-
|
|
962
|
-
...
|
|
963
|
-
widgets: [...
|
|
964
|
-
}) :
|
|
965
|
-
...
|
|
966
|
-
widgets: ((
|
|
959
|
+
const { texts: { homeDashboard: o } } = Q(ve), { dashboardConfig: i, onChangeDashboardConfig: l } = Du(n, a), c = P((g, h) => {
|
|
960
|
+
var b, m;
|
|
961
|
+
g === ((b = i.widgets) == null ? void 0 : b.length) ? l({
|
|
962
|
+
...i,
|
|
963
|
+
widgets: [...i.widgets, { widgetId: h, fullWidth: !1 }]
|
|
964
|
+
}) : l({
|
|
965
|
+
...i,
|
|
966
|
+
widgets: ((m = i.widgets) == null ? void 0 : m.map((x, N) => N === g ? { widgetId: h, fullWidth: !1 } : x)) ?? []
|
|
967
967
|
});
|
|
968
|
-
}, [
|
|
969
|
-
var
|
|
970
|
-
((
|
|
971
|
-
...
|
|
972
|
-
widgets: ((
|
|
973
|
-
}) :
|
|
974
|
-
}, [
|
|
975
|
-
var
|
|
976
|
-
|
|
977
|
-
...
|
|
978
|
-
widgets: ((
|
|
968
|
+
}, [i, l]), p = P((g) => {
|
|
969
|
+
var h, b;
|
|
970
|
+
((h = i.widgets[g]) == null ? void 0 : h.widgetId) === -1 ? l({
|
|
971
|
+
...i,
|
|
972
|
+
widgets: ((b = i.widgets) == null ? void 0 : b.filter((m, x) => x !== g)) ?? []
|
|
973
|
+
}) : c(g, -1);
|
|
974
|
+
}, [i, l, c]), d = P((g) => {
|
|
975
|
+
var h;
|
|
976
|
+
l({
|
|
977
|
+
...i,
|
|
978
|
+
widgets: ((h = i.widgets) == null ? void 0 : h.map((b, m) => m === g ? { ...b, fullWidth: !b.fullWidth } : b)) ?? []
|
|
979
979
|
});
|
|
980
|
-
}, [
|
|
981
|
-
[tt.widgetEdit]: r &&
|
|
982
|
-
}, { [tt.fullWidth]:
|
|
980
|
+
}, [i, l]), u = P((g, h, b) => g ? /* @__PURE__ */ s.jsxs("div", { className: j(tt.widgetWrapper, {
|
|
981
|
+
[tt.widgetEdit]: r && g.id !== -1
|
|
982
|
+
}, { [tt.fullWidth]: b }), children: [
|
|
983
983
|
r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
984
|
-
/* @__PURE__ */ s.jsx(se, { color: "danger", onClick: () =>
|
|
985
|
-
/* @__PURE__ */ s.jsx(se, { color:
|
|
984
|
+
/* @__PURE__ */ s.jsx(se, { color: "danger", onClick: () => p(h), className: j(tt.removeIcon), children: /* @__PURE__ */ s.jsx(Pc, {}) }),
|
|
985
|
+
/* @__PURE__ */ s.jsx(se, { color: b ? "danger" : "primary", onClick: () => d(h), className: j(tt.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Tc, {}) })
|
|
986
986
|
] }),
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
] },
|
|
987
|
+
g.id === -1 ? r && /* @__PURE__ */ s.jsx("div", { className: tt.widgetWrapper, children: /* @__PURE__ */ s.jsx(wo, { widgetGroups: e, availableWidgets: t, onAdd: (m) => c(h, m), texts: o }) }) : /* @__PURE__ */ s.jsx(nu, { title: g.title, children: /* @__PURE__ */ s.jsx(g.WidgetElement, { title: g.title }) }),
|
|
988
|
+
g.id > -1 && r && /* @__PURE__ */ s.jsx("div", { className: tt.widgetEditOverlay })
|
|
989
|
+
] }, h) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
990
990
|
r,
|
|
991
991
|
e,
|
|
992
|
-
l,
|
|
993
992
|
c,
|
|
994
993
|
p,
|
|
994
|
+
d,
|
|
995
995
|
t,
|
|
996
|
-
|
|
997
|
-
]), { isMobile:
|
|
998
|
-
return /* @__PURE__ */ s.jsx("div", { className: j(tt.dashboard, { [tt.mobile]:
|
|
999
|
-
(v =
|
|
1000
|
-
r && /* @__PURE__ */ s.jsx(wo, { widgetGroups: e, availableWidgets: t, onAdd: (
|
|
1001
|
-
var
|
|
1002
|
-
return
|
|
1003
|
-
}, texts:
|
|
996
|
+
o
|
|
997
|
+
]), { isMobile: f } = sn();
|
|
998
|
+
return /* @__PURE__ */ s.jsx("div", { className: j(tt.dashboard, { [tt.mobile]: f }), children: /* @__PURE__ */ s.jsxs("div", { className: j(tt.widgetsGrid), children: [
|
|
999
|
+
(v = i.widgets) == null ? void 0 : v.map((g, h) => u(t.find((b) => b.id === g.widgetId), h, g.fullWidth)),
|
|
1000
|
+
r && /* @__PURE__ */ s.jsx(wo, { widgetGroups: e, availableWidgets: t, onAdd: (g) => {
|
|
1001
|
+
var h;
|
|
1002
|
+
return c((h = i.widgets) == null ? void 0 : h.length, g);
|
|
1003
|
+
}, texts: o })
|
|
1004
1004
|
] }) });
|
|
1005
1005
|
}, Nu = "_badge_193ci_1", Eu = "_sm_193ci_6", Cu = "_md_193ci_10", Su = "_lg_193ci_14", Iu = "_light_193ci_18", En = {
|
|
1006
1006
|
badge: Nu,
|
|
@@ -1050,7 +1050,7 @@ const Zd = (e) => (r) => {
|
|
|
1050
1050
|
input: Ru,
|
|
1051
1051
|
"submit-button": "_submit-button_1hcpm_20",
|
|
1052
1052
|
submitButton: Bu
|
|
1053
|
-
}, ku = ({ searchTypes: e, selectedType: t, setSelectedType: r }) => /* @__PURE__ */ s.jsx(
|
|
1053
|
+
}, ku = ({ searchTypes: e, selectedType: t, setSelectedType: r }) => /* @__PURE__ */ s.jsx(Er, { toggle: /* @__PURE__ */ s.jsx(Cr, { as: ln, icon: null, text: t == null ? void 0 : t.text }), children: e.map((n) => /* @__PURE__ */ s.jsx(nt, { icon: null, onClick: () => r(n.key), children: n.text }, n.key)) }), Mu = "_dropdown_1ddrg_1", Lu = "_open_1ddrg_12", Fu = "_loading-container_1ddrg_15", Vu = "_groups-container_1ddrg_22", $u = "_group_1ddrg_22", Gu = "_header_1ddrg_26", Wu = "_item_1ddrg_33", It = {
|
|
1054
1054
|
dropdown: Mu,
|
|
1055
1055
|
open: Lu,
|
|
1056
1056
|
"loading-container": "_loading-container_1ddrg_15",
|
|
@@ -1061,9 +1061,9 @@ const Zd = (e) => (r) => {
|
|
|
1061
1061
|
header: Gu,
|
|
1062
1062
|
item: Wu
|
|
1063
1063
|
}, Uu = ({ show: e, query: t, onCancel: r, groups: n, isLoading: a, searchTypes: o }) => {
|
|
1064
|
-
const { texts: { appSearch: i } } =
|
|
1064
|
+
const { texts: { appSearch: i } } = Q(ve), l = ee(null), c = P((p) => {
|
|
1065
1065
|
var u;
|
|
1066
|
-
const d = (u = o.find((
|
|
1066
|
+
const d = (u = o.find((f) => f.key === p.type)) == null ? void 0 : u.toPath;
|
|
1067
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, {
|
|
@@ -1081,7 +1081,7 @@ const Zd = (e) => (r) => {
|
|
|
1081
1081
|
p.key.totalCount
|
|
1082
1082
|
] })
|
|
1083
1083
|
] }),
|
|
1084
|
-
(d = p.items) == null ? void 0 : d.map((u,
|
|
1084
|
+
(d = p.items) == null ? void 0 : d.map((u, f) => /* @__PURE__ */ s.jsxs(
|
|
1085
1085
|
at,
|
|
1086
1086
|
{
|
|
1087
1087
|
to: c(u),
|
|
@@ -1092,7 +1092,7 @@ const Zd = (e) => (r) => {
|
|
|
1092
1092
|
/* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(kc, {}) })
|
|
1093
1093
|
]
|
|
1094
1094
|
},
|
|
1095
|
-
|
|
1095
|
+
f
|
|
1096
1096
|
))
|
|
1097
1097
|
] }, p.key.category);
|
|
1098
1098
|
}) }) });
|
|
@@ -1113,16 +1113,16 @@ 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 } } =
|
|
1116
|
+
const { texts: { appSearch: o } } = Q(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, f] = fa(encodeURIComponent(p), 500), { isLoading: v, searchItems: g } = Hu(c, u), [h, b] = M(!1);
|
|
1117
1117
|
$(() => {
|
|
1118
|
-
(g.length > 0 ||
|
|
1119
|
-
}, [g,
|
|
1120
|
-
const m =
|
|
1118
|
+
(g.length > 0 || v) && b(!0);
|
|
1119
|
+
}, [g, v]);
|
|
1120
|
+
const m = ee(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(),
|
|
1125
|
+
N.preventDefault(), N.stopPropagation(), f.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) => {
|
|
@@ -1130,7 +1130,7 @@ const Zd = (e) => (r) => {
|
|
|
1130
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: u, searchTypes: e, show: h, onCancel: () => b(!1), groups: g, isLoading:
|
|
1133
|
+
/* @__PURE__ */ s.jsx(Uu, { query: u, searchTypes: e, show: h, onCancel: () => b(!1), groups: g, isLoading: v })
|
|
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,
|
|
@@ -1147,8 +1147,8 @@ const Zd = (e) => (r) => {
|
|
|
1147
1147
|
$(() => {
|
|
1148
1148
|
d(c);
|
|
1149
1149
|
}, [c]);
|
|
1150
|
-
const
|
|
1151
|
-
return i &&
|
|
1150
|
+
const f = Y(() => !r || !r.toString() || r.toString().split(",").filter((v) => v && v !== "false").length === 0, [r]);
|
|
1151
|
+
return i && f ? null : /* @__PURE__ */ s.jsxs("div", { className: j("luminus-card rounded shadow-sm", jt.card, {
|
|
1152
1152
|
[n ?? ""]: n
|
|
1153
1153
|
}), children: [
|
|
1154
1154
|
/* @__PURE__ */ s.jsxs("div", { role: l.collapsible ? "button" : void 0, className: j("header", jt.header, {
|
|
@@ -1169,27 +1169,27 @@ const Zd = (e) => (r) => {
|
|
|
1169
1169
|
}), children: r }) })
|
|
1170
1170
|
] });
|
|
1171
1171
|
};
|
|
1172
|
-
function
|
|
1172
|
+
function vr(e) {
|
|
1173
1173
|
"@babel/helpers - typeof";
|
|
1174
|
-
return
|
|
1174
|
+
return vr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1175
1175
|
return typeof t;
|
|
1176
1176
|
} : function(t) {
|
|
1177
1177
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1178
|
-
},
|
|
1178
|
+
}, vr(e);
|
|
1179
1179
|
}
|
|
1180
1180
|
function Zu(e, t) {
|
|
1181
|
-
if (
|
|
1181
|
+
if (vr(e) != "object" || !e) return e;
|
|
1182
1182
|
var r = e[Symbol.toPrimitive];
|
|
1183
1183
|
if (r !== void 0) {
|
|
1184
1184
|
var n = r.call(e, t || "default");
|
|
1185
|
-
if (
|
|
1185
|
+
if (vr(n) != "object") return n;
|
|
1186
1186
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1187
1187
|
}
|
|
1188
1188
|
return (t === "string" ? String : Number)(e);
|
|
1189
1189
|
}
|
|
1190
1190
|
function ep(e) {
|
|
1191
1191
|
var t = Zu(e, "string");
|
|
1192
|
-
return
|
|
1192
|
+
return vr(t) == "symbol" ? t : t + "";
|
|
1193
1193
|
}
|
|
1194
1194
|
function tp(e, t, r) {
|
|
1195
1195
|
return (t = ep(t)) in e ? Object.defineProperty(e, t, {
|
|
@@ -1316,7 +1316,7 @@ function js(e, t, r) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
};
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function f(h) {
|
|
1320
1320
|
if (!rp(h))
|
|
1321
1321
|
throw new Error(process.env.NODE_ENV === "production" ? Fe(7) : "Actions must be plain objects. Instead, the actual type was: '" + Tt(h) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
1322
1322
|
if (typeof h.type > "u")
|
|
@@ -1334,10 +1334,10 @@ function js(e, t, r) {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
return h;
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function v(h) {
|
|
1338
1338
|
if (typeof h != "function")
|
|
1339
1339
|
throw new Error(process.env.NODE_ENV === "production" ? Fe(10) : "Expected the nextReducer to be a function. Instead, received: '" + Tt(h));
|
|
1340
|
-
a = h,
|
|
1340
|
+
a = h, f({
|
|
1341
1341
|
type: So.REPLACE
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
@@ -1368,13 +1368,13 @@ function js(e, t, r) {
|
|
|
1368
1368
|
return this;
|
|
1369
1369
|
}, h;
|
|
1370
1370
|
}
|
|
1371
|
-
return
|
|
1371
|
+
return f({
|
|
1372
1372
|
type: So.INIT
|
|
1373
1373
|
}), n = {
|
|
1374
|
-
dispatch:
|
|
1374
|
+
dispatch: f,
|
|
1375
1375
|
subscribe: u,
|
|
1376
1376
|
getState: d,
|
|
1377
|
-
replaceReducer:
|
|
1377
|
+
replaceReducer: v
|
|
1378
1378
|
}, n[Co] = g, n;
|
|
1379
1379
|
}
|
|
1380
1380
|
function Io(e, t) {
|
|
@@ -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, d = 60115, u = 60116,
|
|
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, f = 60121, v = 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"), d = m("react.memo"), u = m("react.lazy"),
|
|
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"), f = m("react.block"), v = 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) {
|
|
@@ -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 === u || E.$$typeof === d || E.$$typeof === o || E.$$typeof === i || E.$$typeof === l || E.$$typeof === g || 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 === f || E[0] === v);
|
|
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, d = 60115, u = 60116,
|
|
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, f = 60121, v = 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"), d = m("react.memo"), u = m("react.lazy"),
|
|
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"), f = m("react.block"), v = 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 === u || V.$$typeof === d || V.$$typeof === o || V.$$typeof === i || V.$$typeof === l || V.$$typeof === g || 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 === f || V[0] === v));
|
|
1700
1700
|
}
|
|
1701
1701
|
function D(V) {
|
|
1702
1702
|
if (typeof V == "object" && V !== null) {
|
|
@@ -1794,7 +1794,7 @@ 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 d = !1, u = null,
|
|
1797
|
+
var d = !1, u = null, f = function() {
|
|
1798
1798
|
if (!d) {
|
|
1799
1799
|
var h = t.getState(), b, m;
|
|
1800
1800
|
try {
|
|
@@ -1810,12 +1810,12 @@ function Op(e, t, r, n, a, o, i, l, c, p) {
|
|
|
1810
1810
|
}));
|
|
1811
1811
|
}
|
|
1812
1812
|
};
|
|
1813
|
-
r.onStateChange =
|
|
1814
|
-
var
|
|
1813
|
+
r.onStateChange = f, r.trySubscribe(), f();
|
|
1814
|
+
var v = function() {
|
|
1815
1815
|
if (d = !0, r.tryUnsubscribe(), r.onStateChange = null, u)
|
|
1816
1816
|
throw u;
|
|
1817
1817
|
};
|
|
1818
|
-
return
|
|
1818
|
+
return v;
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
var _p = function() {
|
|
@@ -1825,14 +1825,14 @@ 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, d = p === void 0 ? !0 : p, u = r.storeKey,
|
|
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, f = u === void 0 ? "store" : u, v = r.withRef, g = v === void 0 ? !1 : v, 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");
|
|
1832
1832
|
if (g)
|
|
1833
1833
|
throw new Error("withRef is removed. To access the wrapped instance, use a ref on the connected component");
|
|
1834
1834
|
var D = "To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect";
|
|
1835
|
-
if (
|
|
1835
|
+
if (f !== "store")
|
|
1836
1836
|
throw new Error("storeKey has been removed and does not do anything. " + D);
|
|
1837
1837
|
}
|
|
1838
1838
|
var y = x;
|
|
@@ -1844,7 +1844,7 @@ function Pp(e, t) {
|
|
|
1844
1844
|
methodName: i,
|
|
1845
1845
|
renderCountProp: c,
|
|
1846
1846
|
shouldHandleStateChanges: d,
|
|
1847
|
-
storeKey:
|
|
1847
|
+
storeKey: f,
|
|
1848
1848
|
displayName: I,
|
|
1849
1849
|
wrappedComponentName: S,
|
|
1850
1850
|
WrappedComponent: O
|
|
@@ -1861,7 +1861,7 @@ function Pp(e, t) {
|
|
|
1861
1861
|
return [T.context, ce, Be];
|
|
1862
1862
|
}, [T]), L = W[0], X = W[1], U = W[2], re = Y(function() {
|
|
1863
1863
|
return L && L.Consumer && ko.isContextConsumer(/* @__PURE__ */ oe.createElement(L.Consumer, null)) ? L : y;
|
|
1864
|
-
}, [L, y]), le =
|
|
1864
|
+
}, [L, y]), le = Q(re), ie = !!T.store && !!T.store.getState && !!T.store.dispatch, k = !!le && !!le.store;
|
|
1865
1865
|
if (process.env.NODE_ENV !== "production" && !ie && !k)
|
|
1866
1866
|
throw new Error('Could not find "store" in the context of ' + ('"' + I + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + I + " in connect options."));
|
|
1867
1867
|
var q = ie ? T.store : le.store, fe = Y(function() {
|
|
@@ -1877,10 +1877,10 @@ function Pp(e, t) {
|
|
|
1877
1877
|
}, [ie, le, z]), Me = pd(Ip, Ep, _p), Le = Me[0], Ae = Le[0], it = Me[1];
|
|
1878
1878
|
if (Ae && Ae.error)
|
|
1879
1879
|
throw Ae.error;
|
|
1880
|
-
var He =
|
|
1880
|
+
var He = ee(), A = ee(U), F = ee(), Z = ee(!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,
|
|
1883
|
+
Mo(jp, [A, He, Z, U, ge, F, ue]), Mo(Op, [d, q, z, fe, A, He, Z, 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
|
|
@@ -2002,9 +2002,9 @@ 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(d, u,
|
|
2006
|
-
var
|
|
2007
|
-
return l ? (!o || !i(
|
|
2005
|
+
return function(d, u, f) {
|
|
2006
|
+
var v = e(d, u, f);
|
|
2007
|
+
return l ? (!o || !i(v, c)) && (c = v) : (l = !0, c = v, process.env.NODE_ENV !== "production" && Ms(c, a, "mergeProps")), c;
|
|
2008
2008
|
};
|
|
2009
2009
|
};
|
|
2010
2010
|
}
|
|
@@ -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, d, u,
|
|
2035
|
+
var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1, p, d, u, f, v;
|
|
2036
2036
|
function g(N, D) {
|
|
2037
|
-
return p = N, d = D, u = e(p, d),
|
|
2037
|
+
return p = N, d = D, u = e(p, d), f = t(n, d), v = r(u, f, d), c = !0, v;
|
|
2038
2038
|
}
|
|
2039
2039
|
function h() {
|
|
2040
|
-
return u = e(p, d), t.dependsOnOwnProps && (
|
|
2040
|
+
return u = e(p, d), t.dependsOnOwnProps && (f = t(n, d)), v = r(u, f, d), v;
|
|
2041
2041
|
}
|
|
2042
2042
|
function b() {
|
|
2043
|
-
return e.dependsOnOwnProps && (u = e(p, d)), t.dependsOnOwnProps && (
|
|
2043
|
+
return e.dependsOnOwnProps && (u = e(p, d)), t.dependsOnOwnProps && (f = t(n, d)), v = r(u, f, d), v;
|
|
2044
2044
|
}
|
|
2045
2045
|
function m() {
|
|
2046
2046
|
var N = e(p, d), D = !l(N, u);
|
|
2047
|
-
return u = N, D && (
|
|
2047
|
+
return u = N, D && (v = r(u, f, d)), v;
|
|
2048
2048
|
}
|
|
2049
2049
|
function x(N, D) {
|
|
2050
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() :
|
|
2051
|
+
return p = N, d = D, y && C ? h() : y ? b() : C ? m() : v;
|
|
2052
2052
|
}
|
|
2053
2053
|
return function(D, y) {
|
|
2054
2054
|
return c ? x(D, y) : g(D, y);
|
|
@@ -2075,9 +2075,9 @@ function Qp(e, t) {
|
|
|
2075
2075
|
}
|
|
2076
2076
|
function Zp(e) {
|
|
2077
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
|
-
return function(
|
|
2078
|
+
return function(v, g, h, b) {
|
|
2079
2079
|
b === void 0 && (b = {});
|
|
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(
|
|
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(v, o, "mapStateToProps"), J = jn(g, l, "mapDispatchToProps"), H = jn(h, p, "mergeProps");
|
|
2081
2081
|
return n(u, te({
|
|
2082
2082
|
// used in error messages
|
|
2083
2083
|
methodName: "connect",
|
|
@@ -2086,7 +2086,7 @@ function Zp(e) {
|
|
|
2086
2086
|
return "Connect(" + T + ")";
|
|
2087
2087
|
},
|
|
2088
2088
|
// if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
|
|
2089
|
-
shouldHandleStateChanges: !!
|
|
2089
|
+
shouldHandleStateChanges: !!v,
|
|
2090
2090
|
// passed through to selectorFactory
|
|
2091
2091
|
initMapStateToProps: E,
|
|
2092
2092
|
initMapDispatchToProps: J,
|
|
@@ -2115,7 +2115,7 @@ function Vs(e, t) {
|
|
|
2115
2115
|
inputs: t,
|
|
2116
2116
|
result: e()
|
|
2117
2117
|
};
|
|
2118
|
-
})[0], n =
|
|
2118
|
+
})[0], n = ee(!0), a = ee(r), o = n.current || !!(t && a.current.inputs && ef(t, a.current.inputs)), i = o ? a.current : {
|
|
2119
2119
|
inputs: t,
|
|
2120
2120
|
result: e()
|
|
2121
2121
|
};
|
|
@@ -2259,7 +2259,7 @@ function Pe(e, t) {
|
|
|
2259
2259
|
}
|
|
2260
2260
|
return i;
|
|
2261
2261
|
}
|
|
2262
|
-
var
|
|
2262
|
+
var gr = function(t) {
|
|
2263
2263
|
var r = [], n = null, a = function() {
|
|
2264
2264
|
for (var i = arguments.length, l = new Array(i), c = 0; c < i; c++)
|
|
2265
2265
|
l[c] = arguments[c];
|
|
@@ -2307,14 +2307,14 @@ function Ye(e, t, r) {
|
|
|
2307
2307
|
};
|
|
2308
2308
|
}
|
|
2309
2309
|
var gf = process.env.NODE_ENV === "production", Uo = "Invariant failed";
|
|
2310
|
-
function
|
|
2310
|
+
function mr(e) {
|
|
2311
2311
|
this.message = e;
|
|
2312
2312
|
}
|
|
2313
|
-
|
|
2313
|
+
mr.prototype.toString = function() {
|
|
2314
2314
|
return this.message;
|
|
2315
2315
|
};
|
|
2316
2316
|
function w(e, t) {
|
|
2317
|
-
throw gf ? new
|
|
2317
|
+
throw gf ? new mr(Uo) : new mr(Uo + ": " + (t || ""));
|
|
2318
2318
|
}
|
|
2319
2319
|
var mf = function(e) {
|
|
2320
2320
|
Yi(t, e);
|
|
@@ -2328,7 +2328,7 @@ var mf = function(e) {
|
|
|
2328
2328
|
The active drag has been aborted.
|
|
2329
2329
|
`));
|
|
2330
2330
|
var p = l.error;
|
|
2331
|
-
p instanceof
|
|
2331
|
+
p instanceof mr && (l.preventDefault(), process.env.NODE_ENV !== "production" && Zn(p.message));
|
|
2332
2332
|
}, n.getCallbacks = function() {
|
|
2333
2333
|
if (!n.callbacks)
|
|
2334
2334
|
throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");
|
|
@@ -2344,7 +2344,7 @@ var mf = function(e) {
|
|
|
2344
2344
|
fn: this.onWindowError
|
|
2345
2345
|
}]);
|
|
2346
2346
|
}, r.componentDidCatch = function(a) {
|
|
2347
|
-
if (a instanceof
|
|
2347
|
+
if (a instanceof mr) {
|
|
2348
2348
|
process.env.NODE_ENV !== "production" && Zn(a.message), this.setState({});
|
|
2349
2349
|
return;
|
|
2350
2350
|
}
|
|
@@ -2433,7 +2433,7 @@ var mf = function(e) {
|
|
|
2433
2433
|
};
|
|
2434
2434
|
}, bt = function(t, r) {
|
|
2435
2435
|
return t.x === r.x && t.y === r.y;
|
|
2436
|
-
},
|
|
2436
|
+
}, Yt = function(t) {
|
|
2437
2437
|
return {
|
|
2438
2438
|
x: t.x !== 0 ? -t.x : 0,
|
|
2439
2439
|
y: t.y !== 0 ? -t.y : 0
|
|
@@ -2441,11 +2441,11 @@ var mf = function(e) {
|
|
|
2441
2441
|
}, Bt = function(t, r, n) {
|
|
2442
2442
|
var a;
|
|
2443
2443
|
return n === void 0 && (n = 0), a = {}, a[t] = r, a[t === "x" ? "y" : "x"] = n, a;
|
|
2444
|
-
},
|
|
2444
|
+
}, hr = function(t, r) {
|
|
2445
2445
|
return Math.sqrt(Math.pow(r.x - t.x, 2) + Math.pow(r.y - t.y, 2));
|
|
2446
2446
|
}, zo = function(t, r) {
|
|
2447
2447
|
return Math.min.apply(Math, r.map(function(n) {
|
|
2448
|
-
return
|
|
2448
|
+
return hr(t, n);
|
|
2449
2449
|
}));
|
|
2450
2450
|
}, zs = function(t) {
|
|
2451
2451
|
return function(r) {
|
|
@@ -2507,7 +2507,7 @@ var mf = function(e) {
|
|
|
2507
2507
|
};
|
|
2508
2508
|
}, Oa = function(e, t) {
|
|
2509
2509
|
e.frame || (process.env.NODE_ENV, w());
|
|
2510
|
-
var r = e.frame, n = Ge(t, r.scroll.initial), a =
|
|
2510
|
+
var r = e.frame, n = Ge(t, r.scroll.initial), a = Yt(n), o = te({}, r, {
|
|
2511
2511
|
scroll: {
|
|
2512
2512
|
initial: r.scroll.initial,
|
|
2513
2513
|
current: t,
|
|
@@ -2613,26 +2613,26 @@ var vn = Pe(function(e, t) {
|
|
|
2613
2613
|
var u = d[d.length - 1];
|
|
2614
2614
|
return l(u.descriptor.id);
|
|
2615
2615
|
}
|
|
2616
|
-
var
|
|
2616
|
+
var f = _a(d, function(h) {
|
|
2617
2617
|
return h.descriptor.id === p;
|
|
2618
2618
|
});
|
|
2619
|
-
|
|
2620
|
-
var
|
|
2621
|
-
if (
|
|
2619
|
+
f === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Could not find displaced item in set") : w());
|
|
2620
|
+
var v = f - 1;
|
|
2621
|
+
if (v < 0)
|
|
2622
2622
|
return null;
|
|
2623
|
-
var g = d[
|
|
2623
|
+
var g = d[v];
|
|
2624
2624
|
return l(g.descriptor.id);
|
|
2625
|
-
},
|
|
2625
|
+
}, Kt = function(e, t) {
|
|
2626
2626
|
return e.descriptor.droppableId === t.descriptor.id;
|
|
2627
2627
|
}, Xs = {
|
|
2628
2628
|
point: Te,
|
|
2629
2629
|
value: 0
|
|
2630
|
-
},
|
|
2630
|
+
}, br = {
|
|
2631
2631
|
invisible: {},
|
|
2632
2632
|
visible: {},
|
|
2633
2633
|
all: []
|
|
2634
2634
|
}, Of = {
|
|
2635
|
-
displaced:
|
|
2635
|
+
displaced: br,
|
|
2636
2636
|
displacedBy: Xs,
|
|
2637
2637
|
at: null
|
|
2638
2638
|
}, Ke = function(e, t) {
|
|
@@ -2729,22 +2729,22 @@ function Lf(e, t) {
|
|
|
2729
2729
|
};
|
|
2730
2730
|
return Ze(Ia(r, n));
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function xr(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
2735
|
var d = Lf(p, n), u = p.descriptor.id;
|
|
2736
2736
|
c.all.push(u);
|
|
2737
|
-
var
|
|
2737
|
+
var f = Bf({
|
|
2738
2738
|
target: d,
|
|
2739
2739
|
destination: r,
|
|
2740
2740
|
viewport: a,
|
|
2741
2741
|
withDroppableDisplacement: !0
|
|
2742
2742
|
});
|
|
2743
|
-
if (!
|
|
2743
|
+
if (!f)
|
|
2744
2744
|
return c.invisible[p.descriptor.id] = !0, c;
|
|
2745
|
-
var
|
|
2745
|
+
var v = Mf(u, i, o), g = {
|
|
2746
2746
|
draggableId: u,
|
|
2747
|
-
shouldAnimate:
|
|
2747
|
+
shouldAnimate: v
|
|
2748
2748
|
};
|
|
2749
2749
|
return c.visible[u] = g, c;
|
|
2750
2750
|
}, {
|
|
@@ -2764,7 +2764,7 @@ function Yo(e) {
|
|
|
2764
2764
|
inHomeList: r
|
|
2765
2765
|
});
|
|
2766
2766
|
return {
|
|
2767
|
-
displaced:
|
|
2767
|
+
displaced: br,
|
|
2768
2768
|
displacedBy: n,
|
|
2769
2769
|
at: {
|
|
2770
2770
|
type: "REORDER",
|
|
@@ -2776,7 +2776,7 @@ function Yo(e) {
|
|
|
2776
2776
|
};
|
|
2777
2777
|
}
|
|
2778
2778
|
function nn(e) {
|
|
2779
|
-
var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate, p =
|
|
2779
|
+
var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate, p = Kt(t, n);
|
|
2780
2780
|
if (l == null)
|
|
2781
2781
|
return Yo({
|
|
2782
2782
|
insideDestination: r,
|
|
@@ -2794,8 +2794,8 @@ function nn(e) {
|
|
|
2794
2794
|
displacedBy: o,
|
|
2795
2795
|
destination: n
|
|
2796
2796
|
});
|
|
2797
|
-
var u = vn(t, r),
|
|
2798
|
-
afterDragging:
|
|
2797
|
+
var u = vn(t, r), f = r.indexOf(d), v = u.slice(f), g = xr({
|
|
2798
|
+
afterDragging: v,
|
|
2799
2799
|
destination: n,
|
|
2800
2800
|
displacedBy: o,
|
|
2801
2801
|
last: i,
|
|
@@ -2848,7 +2848,7 @@ var Vf = function(e) {
|
|
|
2848
2848
|
index: u
|
|
2849
2849
|
});
|
|
2850
2850
|
}
|
|
2851
|
-
var
|
|
2851
|
+
var f = Vf({
|
|
2852
2852
|
isMovingForward: t,
|
|
2853
2853
|
destination: o,
|
|
2854
2854
|
displaced: l.displaced,
|
|
@@ -2856,18 +2856,18 @@ var Vf = function(e) {
|
|
|
2856
2856
|
combine: d.combine,
|
|
2857
2857
|
afterCritical: p
|
|
2858
2858
|
});
|
|
2859
|
-
return
|
|
2859
|
+
return f == null ? null : nn({
|
|
2860
2860
|
draggable: n,
|
|
2861
2861
|
insideDestination: i,
|
|
2862
2862
|
destination: o,
|
|
2863
2863
|
viewport: c,
|
|
2864
2864
|
last: l.displaced,
|
|
2865
2865
|
displacedBy: l.displacedBy,
|
|
2866
|
-
index:
|
|
2866
|
+
index: f
|
|
2867
2867
|
});
|
|
2868
2868
|
}, Wf = function(e) {
|
|
2869
2869
|
var t = e.displaced, r = e.afterCritical, n = e.combineWith, a = e.displacedBy, o = !!(t.visible[n] || t.invisible[n]);
|
|
2870
|
-
return yt(n, r) ? o ? Te :
|
|
2870
|
+
return yt(n, r) ? o ? Te : Yt(a.point) : o ? a.point : Te;
|
|
2871
2871
|
}, Uf = function(e) {
|
|
2872
2872
|
var t = e.afterCritical, r = e.impact, n = e.draggables, a = fn(r);
|
|
2873
2873
|
a || (process.env.NODE_ENV, w());
|
|
@@ -2903,17 +2903,17 @@ var Vf = function(e) {
|
|
|
2903
2903
|
});
|
|
2904
2904
|
var p = t.displaced, d = t.displacedBy, u = p.all[0];
|
|
2905
2905
|
if (u) {
|
|
2906
|
-
var
|
|
2906
|
+
var f = n[u];
|
|
2907
2907
|
if (yt(u, o))
|
|
2908
2908
|
return Xo({
|
|
2909
2909
|
axis: c,
|
|
2910
|
-
moveRelativeTo:
|
|
2910
|
+
moveRelativeTo: f.page,
|
|
2911
2911
|
isMoving: l
|
|
2912
2912
|
});
|
|
2913
|
-
var
|
|
2913
|
+
var v = Zr(f.page, d.point);
|
|
2914
2914
|
return Xo({
|
|
2915
2915
|
axis: c,
|
|
2916
|
-
moveRelativeTo:
|
|
2916
|
+
moveRelativeTo: v,
|
|
2917
2917
|
isMoving: l
|
|
2918
2918
|
});
|
|
2919
2919
|
}
|
|
@@ -2921,7 +2921,7 @@ var Vf = function(e) {
|
|
|
2921
2921
|
if (g.descriptor.id === r.descriptor.id)
|
|
2922
2922
|
return l.borderBox.center;
|
|
2923
2923
|
if (yt(g.descriptor.id, o)) {
|
|
2924
|
-
var h = Zr(g.page,
|
|
2924
|
+
var h = Zr(g.page, Yt(o.displacedBy.point));
|
|
2925
2925
|
return Ko({
|
|
2926
2926
|
axis: c,
|
|
2927
2927
|
moveRelativeTo: h,
|
|
@@ -2953,7 +2953,7 @@ var Vf = function(e) {
|
|
|
2953
2953
|
var t = Yf(e), r = e.droppable, n = r ? ea(r, t) : t;
|
|
2954
2954
|
return n;
|
|
2955
2955
|
}, tl = function(e, t) {
|
|
2956
|
-
var r = Ge(t, e.scroll.initial), n =
|
|
2956
|
+
var r = Ge(t, e.scroll.initial), n = Yt(r), a = Ze({
|
|
2957
2957
|
top: t.y,
|
|
2958
2958
|
bottom: t.y + e.frame.height,
|
|
2959
2959
|
left: t.x,
|
|
@@ -2986,25 +2986,25 @@ function Kf(e, t) {
|
|
|
2986
2986
|
return null;
|
|
2987
2987
|
}
|
|
2988
2988
|
var Xf = function(e) {
|
|
2989
|
-
var t = e.impact, r = e.viewport, n = e.destination, a = e.draggables, o = e.maxScrollChange, i = tl(r, Re(r.scroll.current, o)), l = n.frame ? Oa(n, Re(n.frame.scroll.current, o)) : n, c = t.displaced, p =
|
|
2989
|
+
var t = e.impact, r = e.viewport, n = e.destination, a = e.draggables, o = e.maxScrollChange, i = tl(r, Re(r.scroll.current, o)), l = n.frame ? Oa(n, Re(n.frame.scroll.current, o)) : n, c = t.displaced, p = xr({
|
|
2990
2990
|
afterDragging: Jo(c.all, a),
|
|
2991
2991
|
destination: n,
|
|
2992
2992
|
displacedBy: t.displacedBy,
|
|
2993
2993
|
viewport: i.frame,
|
|
2994
2994
|
last: c,
|
|
2995
2995
|
forceShouldAnimate: !1
|
|
2996
|
-
}), d =
|
|
2996
|
+
}), d = xr({
|
|
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
|
-
}), u = {},
|
|
3003
|
+
}), u = {}, f = {}, v = [c, p, d];
|
|
3004
3004
|
c.all.forEach(function(h) {
|
|
3005
|
-
var b = Kf(h,
|
|
3005
|
+
var b = Kf(h, v);
|
|
3006
3006
|
if (b) {
|
|
3007
|
-
|
|
3007
|
+
f[h] = b;
|
|
3008
3008
|
return;
|
|
3009
3009
|
}
|
|
3010
3010
|
u[h] = !0;
|
|
@@ -3013,7 +3013,7 @@ var Xf = function(e) {
|
|
|
3013
3013
|
displaced: {
|
|
3014
3014
|
all: c.all,
|
|
3015
3015
|
invisible: u,
|
|
3016
|
-
visible:
|
|
3016
|
+
visible: f
|
|
3017
3017
|
}
|
|
3018
3018
|
});
|
|
3019
3019
|
return g;
|
|
@@ -3034,7 +3034,7 @@ var Xf = 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 d = Mt(n.descriptor.id, a), u =
|
|
3037
|
+
var d = Mt(n.descriptor.id, a), u = Kt(r, n), f = jf({
|
|
3038
3038
|
isMovingForward: t,
|
|
3039
3039
|
draggable: r,
|
|
3040
3040
|
destination: n,
|
|
@@ -3051,10 +3051,10 @@ var Xf = function(e) {
|
|
|
3051
3051
|
viewport: i,
|
|
3052
3052
|
afterCritical: p
|
|
3053
3053
|
});
|
|
3054
|
-
if (!
|
|
3054
|
+
if (!f)
|
|
3055
3055
|
return null;
|
|
3056
|
-
var
|
|
3057
|
-
impact:
|
|
3056
|
+
var v = gn({
|
|
3057
|
+
impact: f,
|
|
3058
3058
|
draggable: r,
|
|
3059
3059
|
droppable: n,
|
|
3060
3060
|
draggables: a,
|
|
@@ -3062,25 +3062,25 @@ var Xf = function(e) {
|
|
|
3062
3062
|
}), g = rl({
|
|
3063
3063
|
draggable: r,
|
|
3064
3064
|
destination: n,
|
|
3065
|
-
newPageBorderBoxCenter:
|
|
3065
|
+
newPageBorderBoxCenter: v,
|
|
3066
3066
|
viewport: i.frame,
|
|
3067
3067
|
withDroppableDisplacement: !1,
|
|
3068
3068
|
onlyOnMainAxis: !0
|
|
3069
3069
|
});
|
|
3070
3070
|
if (g) {
|
|
3071
3071
|
var h = Ba({
|
|
3072
|
-
pageBorderBoxCenter:
|
|
3072
|
+
pageBorderBoxCenter: v,
|
|
3073
3073
|
draggable: r,
|
|
3074
3074
|
viewport: i
|
|
3075
3075
|
});
|
|
3076
3076
|
return {
|
|
3077
3077
|
clientSelection: h,
|
|
3078
|
-
impact:
|
|
3078
|
+
impact: f,
|
|
3079
3079
|
scrollJumpRequest: null
|
|
3080
3080
|
};
|
|
3081
3081
|
}
|
|
3082
|
-
var b = Ge(
|
|
3083
|
-
impact:
|
|
3082
|
+
var b = Ge(v, l), m = Xf({
|
|
3083
|
+
impact: f,
|
|
3084
3084
|
viewport: i,
|
|
3085
3085
|
destination: n,
|
|
3086
3086
|
draggables: a,
|
|
@@ -3107,37 +3107,37 @@ var Xf = function(e) {
|
|
|
3107
3107
|
}).filter(function(u) {
|
|
3108
3108
|
return Js(o.frame)(ke(u));
|
|
3109
3109
|
}).filter(function(u) {
|
|
3110
|
-
var
|
|
3111
|
-
return t ? i[l.crossAxisEnd] <
|
|
3110
|
+
var f = ke(u);
|
|
3111
|
+
return t ? i[l.crossAxisEnd] < f[l.crossAxisEnd] : f[l.crossAxisStart] < i[l.crossAxisStart];
|
|
3112
3112
|
}).filter(function(u) {
|
|
3113
|
-
var
|
|
3114
|
-
return c(
|
|
3115
|
-
}).sort(function(u,
|
|
3116
|
-
var
|
|
3117
|
-
return t ?
|
|
3118
|
-
}).filter(function(u,
|
|
3119
|
-
return ke(u)[l.crossAxisStart] === ke(
|
|
3113
|
+
var f = ke(u), v = Ke(f[l.start], f[l.end]);
|
|
3114
|
+
return c(f[l.start]) || c(f[l.end]) || v(i[l.start]) || v(i[l.end]);
|
|
3115
|
+
}).sort(function(u, f) {
|
|
3116
|
+
var v = ke(u)[l.crossAxisStart], g = ke(f)[l.crossAxisStart];
|
|
3117
|
+
return t ? v - g : g - v;
|
|
3118
|
+
}).filter(function(u, f, v) {
|
|
3119
|
+
return ke(u)[l.crossAxisStart] === ke(v[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
3125
|
var d = p.filter(function(u) {
|
|
3126
|
-
var
|
|
3127
|
-
return
|
|
3126
|
+
var f = Ke(ke(u)[l.start], ke(u)[l.end]);
|
|
3127
|
+
return f(r[l.line]);
|
|
3128
3128
|
});
|
|
3129
|
-
return d.length === 1 ? d[0] : d.length > 1 ? d.sort(function(u,
|
|
3130
|
-
return ke(u)[l.start] - ke(
|
|
3131
|
-
})[0] : p.sort(function(u,
|
|
3132
|
-
var
|
|
3133
|
-
return
|
|
3129
|
+
return d.length === 1 ? d[0] : d.length > 1 ? d.sort(function(u, f) {
|
|
3130
|
+
return ke(u)[l.start] - ke(f)[l.start];
|
|
3131
|
+
})[0] : p.sort(function(u, f) {
|
|
3132
|
+
var v = zo(r, qo(ke(u))), g = zo(r, qo(ke(f)));
|
|
3133
|
+
return v !== g ? v - g : ke(u)[l.start] - ke(f)[l.start];
|
|
3134
3134
|
})[0];
|
|
3135
3135
|
}, Qo = function(t, r) {
|
|
3136
3136
|
var n = t.page.borderBox.center;
|
|
3137
3137
|
return yt(t.descriptor.id, r) ? Ge(n, r.displacedBy.point) : n;
|
|
3138
3138
|
}, ev = function(t, r) {
|
|
3139
3139
|
var n = t.page.borderBox;
|
|
3140
|
-
return yt(t.descriptor.id, r) ? jr(n,
|
|
3140
|
+
return yt(t.descriptor.id, r) ? jr(n, Yt(r.displacedBy.point)) : n;
|
|
3141
3141
|
}, tv = function(e) {
|
|
3142
3142
|
var t = e.pageBorderBoxCenter, r = e.viewport, n = e.destination, a = e.insideDestination, o = e.afterCritical, i = a.filter(function(l) {
|
|
3143
3143
|
return Zs({
|
|
@@ -3147,7 +3147,7 @@ var Xf = function(e) {
|
|
|
3147
3147
|
withDroppableDisplacement: !0
|
|
3148
3148
|
});
|
|
3149
3149
|
}).sort(function(l, c) {
|
|
3150
|
-
var p =
|
|
3150
|
+
var p = hr(t, ea(n, Qo(l, o))), d = hr(t, ea(n, Qo(c, o)));
|
|
3151
3151
|
return p < d ? -1 : d < p ? 1 : l.descriptor.index - c.descriptor.index;
|
|
3152
3152
|
});
|
|
3153
3153
|
return i[0] || null;
|
|
@@ -3173,7 +3173,7 @@ var Xf = function(e) {
|
|
|
3173
3173
|
});
|
|
3174
3174
|
}, al = function(t, r, n) {
|
|
3175
3175
|
var a = t.frame;
|
|
3176
|
-
|
|
3176
|
+
Kt(r, t) && (process.env.NODE_ENV !== "production" ? w(!1, "Should not add placeholder space to home list") : w()), t.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot add placeholder size to a subject when it already has one") : w());
|
|
3177
3177
|
var o = Or(t.axis, r.displaceBy).point, i = rv(t, o, n), l = {
|
|
3178
3178
|
placeholderSize: o,
|
|
3179
3179
|
increasedBy: i,
|
|
@@ -3233,7 +3233,7 @@ var Xf = function(e) {
|
|
|
3233
3233
|
if (n.length)
|
|
3234
3234
|
return null;
|
|
3235
3235
|
var p = {
|
|
3236
|
-
displaced:
|
|
3236
|
+
displaced: br,
|
|
3237
3237
|
displacedBy: Xs,
|
|
3238
3238
|
at: {
|
|
3239
3239
|
type: "REORDER",
|
|
@@ -3248,7 +3248,7 @@ var Xf = function(e) {
|
|
|
3248
3248
|
droppable: i,
|
|
3249
3249
|
draggables: o,
|
|
3250
3250
|
afterCritical: c
|
|
3251
|
-
}), u =
|
|
3251
|
+
}), u = Kt(a, i) ? i : al(i, a, o), f = rl({
|
|
3252
3252
|
draggable: a,
|
|
3253
3253
|
destination: u,
|
|
3254
3254
|
newPageBorderBoxCenter: d,
|
|
@@ -3256,11 +3256,11 @@ var Xf = function(e) {
|
|
|
3256
3256
|
withDroppableDisplacement: !1,
|
|
3257
3257
|
onlyOnMainAxis: !0
|
|
3258
3258
|
});
|
|
3259
|
-
return
|
|
3259
|
+
return f ? p : null;
|
|
3260
3260
|
}
|
|
3261
|
-
var
|
|
3261
|
+
var v = t[i.axis.line] <= r.page.borderBox.center[i.axis.line], g = function() {
|
|
3262
3262
|
var b = r.descriptor.index;
|
|
3263
|
-
return r.descriptor.id === a.descriptor.id ||
|
|
3263
|
+
return r.descriptor.id === a.descriptor.id || v ? b : b + 1;
|
|
3264
3264
|
}(), h = Or(i.axis, a.displaceBy);
|
|
3265
3265
|
return nn({
|
|
3266
3266
|
draggable: a,
|
|
@@ -3268,7 +3268,7 @@ var Xf = function(e) {
|
|
|
3268
3268
|
destination: i,
|
|
3269
3269
|
viewport: l,
|
|
3270
3270
|
displacedBy: h,
|
|
3271
|
-
last:
|
|
3271
|
+
last: br,
|
|
3272
3272
|
index: g
|
|
3273
3273
|
});
|
|
3274
3274
|
}, ov = function(e) {
|
|
@@ -3287,7 +3287,7 @@ var Xf = function(e) {
|
|
|
3287
3287
|
destination: p,
|
|
3288
3288
|
insideDestination: d,
|
|
3289
3289
|
afterCritical: c
|
|
3290
|
-
}),
|
|
3290
|
+
}), f = av({
|
|
3291
3291
|
previousPageBorderBoxCenter: r,
|
|
3292
3292
|
destination: p,
|
|
3293
3293
|
draggable: n,
|
|
@@ -3297,22 +3297,22 @@ var Xf = function(e) {
|
|
|
3297
3297
|
viewport: l,
|
|
3298
3298
|
afterCritical: c
|
|
3299
3299
|
});
|
|
3300
|
-
if (!
|
|
3300
|
+
if (!f)
|
|
3301
3301
|
return null;
|
|
3302
|
-
var
|
|
3303
|
-
impact:
|
|
3302
|
+
var v = gn({
|
|
3303
|
+
impact: f,
|
|
3304
3304
|
draggable: n,
|
|
3305
3305
|
droppable: p,
|
|
3306
3306
|
draggables: o,
|
|
3307
3307
|
afterCritical: c
|
|
3308
3308
|
}), g = Ba({
|
|
3309
|
-
pageBorderBoxCenter:
|
|
3309
|
+
pageBorderBoxCenter: v,
|
|
3310
3310
|
draggable: n,
|
|
3311
3311
|
viewport: l
|
|
3312
3312
|
});
|
|
3313
3313
|
return {
|
|
3314
3314
|
clientSelection: g,
|
|
3315
|
-
impact:
|
|
3315
|
+
impact: f,
|
|
3316
3316
|
scrollJumpRequest: null
|
|
3317
3317
|
};
|
|
3318
3318
|
}, We = function(e) {
|
|
@@ -3325,13 +3325,13 @@ 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", d = t.dimensions.draggables[t.critical.draggable.id], u = t.current.page.borderBoxCenter,
|
|
3328
|
+
var p = r === "MOVE_DOWN" || r === "MOVE_RIGHT", d = t.dimensions.draggables[t.critical.draggable.id], u = t.current.page.borderBoxCenter, f = t.dimensions, v = f.draggables, g = f.droppables;
|
|
3329
3329
|
return c ? Qf({
|
|
3330
3330
|
isMovingForward: p,
|
|
3331
3331
|
previousPageBorderBoxCenter: u,
|
|
3332
3332
|
draggable: d,
|
|
3333
3333
|
destination: i,
|
|
3334
|
-
draggables:
|
|
3334
|
+
draggables: v,
|
|
3335
3335
|
viewport: t.viewport,
|
|
3336
3336
|
previousClientSelection: t.current.client.selection,
|
|
3337
3337
|
previousImpact: t.impact,
|
|
@@ -3341,7 +3341,7 @@ var Xf = function(e) {
|
|
|
3341
3341
|
previousPageBorderBoxCenter: u,
|
|
3342
3342
|
draggable: d,
|
|
3343
3343
|
isOver: i,
|
|
3344
|
-
draggables:
|
|
3344
|
+
draggables: v,
|
|
3345
3345
|
droppables: g,
|
|
3346
3346
|
viewport: t.viewport,
|
|
3347
3347
|
afterCritical: t.afterCritical
|
|
@@ -3364,7 +3364,7 @@ function cv(e) {
|
|
|
3364
3364
|
var l = i.axis, c = Bt(i.axis.line, t.center[l.line], i.page.borderBox.center[l.crossAxisLine]);
|
|
3365
3365
|
return {
|
|
3366
3366
|
id: i.descriptor.id,
|
|
3367
|
-
distance:
|
|
3367
|
+
distance: hr(a, c)
|
|
3368
3368
|
};
|
|
3369
3369
|
}).sort(function(i, l) {
|
|
3370
3370
|
return l.distance - i.distance;
|
|
@@ -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], d = t[l.crossAxisEnd], u = Ke(i[l.crossAxisStart], i[l.crossAxisEnd]),
|
|
3384
|
-
return !
|
|
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]), f = u(p), v = u(d);
|
|
3384
|
+
return !f && !v ? !0 : f ? p < c : d > c;
|
|
3385
3385
|
});
|
|
3386
3386
|
return a.length ? a.length === 1 ? a[0].descriptor.id : cv({
|
|
3387
3387
|
pageBorderBox: t,
|
|
@@ -3404,16 +3404,16 @@ 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), d = p.value, u = t[c.start],
|
|
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], f = t[c.end], v = vn(r, a), g = Ct(v, 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 ?
|
|
3412
|
+
return N ? D ? f <= x : u < x - d : D ? f <= x + d : u < x;
|
|
3413
3413
|
}), h = pv({
|
|
3414
3414
|
draggable: r,
|
|
3415
3415
|
closest: g,
|
|
3416
|
-
inHomeList:
|
|
3416
|
+
inHomeList: Kt(r, n)
|
|
3417
3417
|
});
|
|
3418
3418
|
return nn({
|
|
3419
3419
|
draggable: r,
|
|
@@ -3428,14 +3428,14 @@ 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, d = r[l.start], u = r[l.end],
|
|
3431
|
+
var l = a.axis, c = Or(a.axis, t.displaceBy), p = c.value, d = r[l.start], u = r[l.end], f = vn(t, o), v = Ct(f, 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
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
|
-
if (!
|
|
3438
|
+
if (!v)
|
|
3439
3439
|
return null;
|
|
3440
3440
|
var g = {
|
|
3441
3441
|
displacedBy: c,
|
|
@@ -3443,7 +3443,7 @@ var fv = function(e) {
|
|
|
3443
3443
|
at: {
|
|
3444
3444
|
type: "COMBINE",
|
|
3445
3445
|
combine: {
|
|
3446
|
-
draggableId:
|
|
3446
|
+
draggableId: v.descriptor.id,
|
|
3447
3447
|
droppableId: a.descriptor.id
|
|
3448
3448
|
}
|
|
3449
3449
|
}
|
|
@@ -3457,16 +3457,16 @@ var fv = function(e) {
|
|
|
3457
3457
|
});
|
|
3458
3458
|
if (!p)
|
|
3459
3459
|
return Of;
|
|
3460
|
-
var d = a[p], u = Mt(d.descriptor.id, n),
|
|
3460
|
+
var d = a[p], u = Mt(d.descriptor.id, n), f = uv(d, c);
|
|
3461
3461
|
return gv({
|
|
3462
|
-
pageBorderBoxWithDroppableScroll:
|
|
3462
|
+
pageBorderBoxWithDroppableScroll: f,
|
|
3463
3463
|
draggable: r,
|
|
3464
3464
|
previousImpact: o,
|
|
3465
3465
|
destination: d,
|
|
3466
3466
|
insideDestination: u,
|
|
3467
3467
|
afterCritical: l
|
|
3468
3468
|
}) || fv({
|
|
3469
|
-
pageBorderBoxWithDroppableScroll:
|
|
3469
|
+
pageBorderBoxWithDroppableScroll: f,
|
|
3470
3470
|
draggable: r,
|
|
3471
3471
|
destination: d,
|
|
3472
3472
|
insideDestination: u,
|
|
@@ -3495,22 +3495,22 @@ var fv = function(e) {
|
|
|
3495
3495
|
if (!l)
|
|
3496
3496
|
return i;
|
|
3497
3497
|
var c = n[l];
|
|
3498
|
-
if (
|
|
3498
|
+
if (Kt(t, c) || c.subject.withPlaceholder)
|
|
3499
3499
|
return i;
|
|
3500
3500
|
var p = al(c, t, r);
|
|
3501
3501
|
return ka(i, p);
|
|
3502
|
-
},
|
|
3502
|
+
}, sr = function(e) {
|
|
3503
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
3504
|
offset: d,
|
|
3505
3505
|
selection: p,
|
|
3506
3506
|
borderBoxCenter: Re(t.initial.client.borderBoxCenter, d)
|
|
3507
|
-
},
|
|
3507
|
+
}, f = {
|
|
3508
3508
|
selection: Re(u.selection, l.scroll.current),
|
|
3509
3509
|
borderBoxCenter: Re(u.borderBoxCenter, l.scroll.current),
|
|
3510
3510
|
offset: Re(u.offset, l.scroll.diff.value)
|
|
3511
|
-
},
|
|
3511
|
+
}, v = {
|
|
3512
3512
|
client: u,
|
|
3513
|
-
page:
|
|
3513
|
+
page: f
|
|
3514
3514
|
};
|
|
3515
3515
|
if (t.phase === "COLLECTING")
|
|
3516
3516
|
return te({
|
|
@@ -3518,10 +3518,10 @@ var fv = function(e) {
|
|
|
3518
3518
|
}, t, {
|
|
3519
3519
|
dimensions: c,
|
|
3520
3520
|
viewport: l,
|
|
3521
|
-
current:
|
|
3521
|
+
current: v
|
|
3522
3522
|
});
|
|
3523
3523
|
var g = c.draggables[t.critical.draggable.id], h = o || ll({
|
|
3524
|
-
pageOffset:
|
|
3524
|
+
pageOffset: f.offset,
|
|
3525
3525
|
draggable: g,
|
|
3526
3526
|
draggables: c.draggables,
|
|
3527
3527
|
droppables: c.droppables,
|
|
@@ -3535,7 +3535,7 @@ var fv = function(e) {
|
|
|
3535
3535
|
draggables: c.draggables,
|
|
3536
3536
|
droppables: c.droppables
|
|
3537
3537
|
}), m = te({}, t, {
|
|
3538
|
-
current:
|
|
3538
|
+
current: v,
|
|
3539
3539
|
dimensions: {
|
|
3540
3540
|
draggables: c.draggables,
|
|
3541
3541
|
droppables: b
|
|
@@ -3553,7 +3553,7 @@ function bv(e, t) {
|
|
|
3553
3553
|
});
|
|
3554
3554
|
}
|
|
3555
3555
|
var cl = function(e) {
|
|
3556
|
-
var t = e.impact, r = e.viewport, n = e.draggables, a = e.destination, o = e.forceShouldAnimate, i = t.displaced, l = bv(i.all, n), c =
|
|
3556
|
+
var t = e.impact, r = e.viewport, n = e.draggables, a = e.destination, o = e.forceShouldAnimate, i = t.displaced, l = bv(i.all, n), c = xr({
|
|
3557
3557
|
afterDragging: l,
|
|
3558
3558
|
destination: a,
|
|
3559
3559
|
displacedBy: t.displacedBy,
|
|
@@ -3582,22 +3582,22 @@ var cl = function(e) {
|
|
|
3582
3582
|
t.movementMode !== "SNAP" && (process.env.NODE_ENV, w());
|
|
3583
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
3584
|
d || (process.env.NODE_ENV !== "production" ? w(!1, "Must be over a destination in SNAP movement mode") : w());
|
|
3585
|
-
var u = c[d],
|
|
3585
|
+
var u = c[d], f = cl({
|
|
3586
3586
|
impact: a,
|
|
3587
3587
|
viewport: o,
|
|
3588
3588
|
destination: u,
|
|
3589
3589
|
draggables: l
|
|
3590
|
-
}),
|
|
3591
|
-
impact:
|
|
3590
|
+
}), v = dl({
|
|
3591
|
+
impact: f,
|
|
3592
3592
|
draggable: p,
|
|
3593
3593
|
droppable: u,
|
|
3594
3594
|
draggables: l,
|
|
3595
3595
|
viewport: o,
|
|
3596
3596
|
afterCritical: t.afterCritical
|
|
3597
3597
|
});
|
|
3598
|
-
return
|
|
3599
|
-
impact:
|
|
3600
|
-
clientSelection:
|
|
3598
|
+
return sr({
|
|
3599
|
+
impact: f,
|
|
3600
|
+
clientSelection: v,
|
|
3601
3601
|
state: t,
|
|
3602
3602
|
dimensions: i,
|
|
3603
3603
|
viewport: o
|
|
@@ -3610,20 +3610,20 @@ var cl = function(e) {
|
|
|
3610
3610
|
}, pl = function(e) {
|
|
3611
3611
|
var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = Or(r.axis, t.displaceBy), i = Mt(r.descriptor.id, n), l = i.indexOf(t);
|
|
3612
3612
|
l === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Expected draggable to be inside home list") : w());
|
|
3613
|
-
var c = i.slice(l + 1), p = c.reduce(function(
|
|
3614
|
-
return
|
|
3613
|
+
var c = i.slice(l + 1), p = c.reduce(function(v, g) {
|
|
3614
|
+
return v[g.descriptor.id] = !0, v;
|
|
3615
3615
|
}, {}), d = {
|
|
3616
3616
|
inVirtualList: r.descriptor.mode === "virtual",
|
|
3617
3617
|
displacedBy: o,
|
|
3618
3618
|
effected: p
|
|
3619
|
-
}, u =
|
|
3619
|
+
}, u = xr({
|
|
3620
3620
|
afterDragging: c,
|
|
3621
3621
|
destination: r,
|
|
3622
3622
|
displacedBy: o,
|
|
3623
3623
|
last: null,
|
|
3624
3624
|
viewport: a.frame,
|
|
3625
3625
|
forceShouldAnimate: !1
|
|
3626
|
-
}),
|
|
3626
|
+
}), f = {
|
|
3627
3627
|
displaced: u,
|
|
3628
3628
|
displacedBy: o,
|
|
3629
3629
|
at: {
|
|
@@ -3632,7 +3632,7 @@ var cl = function(e) {
|
|
|
3632
3632
|
}
|
|
3633
3633
|
};
|
|
3634
3634
|
return {
|
|
3635
|
-
impact:
|
|
3635
|
+
impact: f,
|
|
3636
3636
|
afterCritical: d
|
|
3637
3637
|
};
|
|
3638
3638
|
}, yv = function(e, t) {
|
|
@@ -3683,12 +3683,12 @@ 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, d = l.draggables[t.critical.draggable.id], u = l.droppables[t.critical.droppable.id],
|
|
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], f = pl({
|
|
3687
3687
|
draggable: d,
|
|
3688
3688
|
home: u,
|
|
3689
3689
|
draggables: i,
|
|
3690
3690
|
viewport: t.viewport
|
|
3691
|
-
}),
|
|
3691
|
+
}), v = f.impact, g = f.afterCritical, h = p && p.isCombineEnabled ? t.impact : v, b = ll({
|
|
3692
3692
|
pageOffset: t.current.page.offset,
|
|
3693
3693
|
draggable: l.draggables[t.critical.draggable.id],
|
|
3694
3694
|
draggables: l.draggables,
|
|
@@ -3703,7 +3703,7 @@ var cl = function(e) {
|
|
|
3703
3703
|
}, t, {
|
|
3704
3704
|
phase: "DRAGGING",
|
|
3705
3705
|
impact: b,
|
|
3706
|
-
onLiftImpact:
|
|
3706
|
+
onLiftImpact: v,
|
|
3707
3707
|
dimensions: l,
|
|
3708
3708
|
afterCritical: g,
|
|
3709
3709
|
forceShouldAnimate: !1
|
|
@@ -3722,7 +3722,7 @@ var cl = function(e) {
|
|
|
3722
3722
|
return t.movementMode === "SNAP";
|
|
3723
3723
|
}, Pn = function(t, r, n) {
|
|
3724
3724
|
var a = yv(t.dimensions, r);
|
|
3725
|
-
return !ta(t) || n ?
|
|
3725
|
+
return !ta(t) || n ? sr({
|
|
3726
3726
|
state: t,
|
|
3727
3727
|
dimensions: a
|
|
3728
3728
|
}) : ul({
|
|
@@ -3759,14 +3759,14 @@ var Zo = {
|
|
|
3759
3759
|
borderBoxCenter: Re(d.selection, o.scroll.initial),
|
|
3760
3760
|
offset: Re(d.selection, o.scroll.diff.value)
|
|
3761
3761
|
}
|
|
3762
|
-
},
|
|
3762
|
+
}, f = pn(i.droppables).every(function(V) {
|
|
3763
3763
|
return !V.isFixedOnPage;
|
|
3764
|
-
}),
|
|
3764
|
+
}), v = pl({
|
|
3765
3765
|
draggable: c,
|
|
3766
3766
|
home: p,
|
|
3767
3767
|
draggables: i.draggables,
|
|
3768
3768
|
viewport: o
|
|
3769
|
-
}), g =
|
|
3769
|
+
}), g = v.impact, h = v.afterCritical, b = {
|
|
3770
3770
|
phase: "DRAGGING",
|
|
3771
3771
|
isDragging: !0,
|
|
3772
3772
|
critical: n,
|
|
@@ -3774,7 +3774,7 @@ var Zo = {
|
|
|
3774
3774
|
dimensions: i,
|
|
3775
3775
|
initial: u,
|
|
3776
3776
|
current: u,
|
|
3777
|
-
isWindowScrollAllowed:
|
|
3777
|
+
isWindowScrollAllowed: f,
|
|
3778
3778
|
impact: g,
|
|
3779
3779
|
afterCritical: h,
|
|
3780
3780
|
onLiftImpact: g,
|
|
@@ -3805,7 +3805,7 @@ var Zo = {
|
|
|
3805
3805
|
return e;
|
|
3806
3806
|
At(e) || (process.env.NODE_ENV !== "production" ? w(!1, t.type + " not permitted in phase " + e.phase) : w());
|
|
3807
3807
|
var x = t.payload.client;
|
|
3808
|
-
return bt(x, e.current.client.selection) ? e :
|
|
3808
|
+
return bt(x, e.current.client.selection) ? e : sr({
|
|
3809
3809
|
state: e,
|
|
3810
3810
|
clientSelection: x,
|
|
3811
3811
|
impact: ta(e) ? e.impact : null
|
|
@@ -3856,7 +3856,7 @@ var Zo = {
|
|
|
3856
3856
|
return ta(e) ? ul({
|
|
3857
3857
|
state: e,
|
|
3858
3858
|
viewport: L
|
|
3859
|
-
}) :
|
|
3859
|
+
}) : sr({
|
|
3860
3860
|
state: e,
|
|
3861
3861
|
viewport: L
|
|
3862
3862
|
});
|
|
@@ -3886,7 +3886,7 @@ var Zo = {
|
|
|
3886
3886
|
state: e,
|
|
3887
3887
|
type: t.type
|
|
3888
3888
|
});
|
|
3889
|
-
return re ?
|
|
3889
|
+
return re ? sr({
|
|
3890
3890
|
state: e,
|
|
3891
3891
|
impact: re.impact,
|
|
3892
3892
|
clientSelection: re.clientSelection,
|
|
@@ -4079,10 +4079,10 @@ var Uv = function(e) {
|
|
|
4079
4079
|
}));
|
|
4080
4080
|
var u = {
|
|
4081
4081
|
shouldPublishImmediately: p === "SNAP"
|
|
4082
|
-
},
|
|
4082
|
+
}, f = {
|
|
4083
4083
|
draggableId: l,
|
|
4084
4084
|
scrollOptions: u
|
|
4085
|
-
},
|
|
4085
|
+
}, v = e.startPublishing(f), g = v.critical, h = v.dimensions, b = v.viewport;
|
|
4086
4086
|
Wv(g, h), n(jv({
|
|
4087
4087
|
critical: g,
|
|
4088
4088
|
dimensions: h,
|
|
@@ -4104,7 +4104,7 @@ var Uv = function(e) {
|
|
|
4104
4104
|
}, Fa = {
|
|
4105
4105
|
outOfTheWay: "cubic-bezier(0.2, 0, 0, 1)",
|
|
4106
4106
|
drop: "cubic-bezier(.2,1,.1,1)"
|
|
4107
|
-
},
|
|
4107
|
+
}, yr = {
|
|
4108
4108
|
opacity: {
|
|
4109
4109
|
drop: 0,
|
|
4110
4110
|
combining: 0.7
|
|
@@ -4116,7 +4116,7 @@ var Uv = function(e) {
|
|
|
4116
4116
|
outOfTheWay: 0.2,
|
|
4117
4117
|
minDropTime: 0.33,
|
|
4118
4118
|
maxDropTime: 0.55
|
|
4119
|
-
}, Ot = Va.outOfTheWay + "s " + Fa.outOfTheWay,
|
|
4119
|
+
}, Ot = Va.outOfTheWay + "s " + Fa.outOfTheWay, lr = {
|
|
4120
4120
|
fluid: "opacity " + Ot,
|
|
4121
4121
|
snap: "transform " + Ot + ", opacity " + Ot,
|
|
4122
4122
|
drop: function(t) {
|
|
@@ -4131,10 +4131,10 @@ var Uv = function(e) {
|
|
|
4131
4131
|
moveTo: ei,
|
|
4132
4132
|
drop: function(t, r) {
|
|
4133
4133
|
var n = ei(t);
|
|
4134
|
-
return n ? r ? n + " scale(" +
|
|
4134
|
+
return n ? r ? n + " scale(" + yr.scale.drop + ")" : n : null;
|
|
4135
4135
|
}
|
|
4136
4136
|
}, na = Va.minDropTime, ml = Va.maxDropTime, zv = ml - na, ti = 1500, qv = 0.6, Yv = function(e) {
|
|
4137
|
-
var t = e.current, r = e.destination, n = e.reason, a =
|
|
4137
|
+
var t = e.current, r = e.destination, n = e.reason, a = hr(t, r);
|
|
4138
4138
|
if (a <= 0)
|
|
4139
4139
|
return na;
|
|
4140
4140
|
if (a >= ti)
|
|
@@ -4149,8 +4149,8 @@ var Uv = function(e) {
|
|
|
4149
4149
|
afterCritical: o,
|
|
4150
4150
|
droppable: p || d,
|
|
4151
4151
|
viewport: a
|
|
4152
|
-
}),
|
|
4153
|
-
return
|
|
4152
|
+
}), f = Ge(u, r.client.borderBox.center);
|
|
4153
|
+
return f;
|
|
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;
|
|
4156
4156
|
if (!n.at || r !== "DROP") {
|
|
@@ -4172,7 +4172,7 @@ var Uv = function(e) {
|
|
|
4172
4172
|
didDropInsideDroppable: !0
|
|
4173
4173
|
};
|
|
4174
4174
|
var c = te({}, n, {
|
|
4175
|
-
displaced:
|
|
4175
|
+
displaced: br
|
|
4176
4176
|
});
|
|
4177
4177
|
return {
|
|
4178
4178
|
impact: c,
|
|
@@ -4204,7 +4204,7 @@ 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
|
-
}),
|
|
4207
|
+
}), f = u.impact, v = u.didDropInsideDroppable, g = v ? Pa(f) : null, h = v ? fn(f) : null, b = {
|
|
4208
4208
|
index: c.draggable.index,
|
|
4209
4209
|
droppableId: c.droppable.id
|
|
4210
4210
|
}, m = {
|
|
@@ -4216,7 +4216,7 @@ var Uv = function(e) {
|
|
|
4216
4216
|
destination: g,
|
|
4217
4217
|
combine: h
|
|
4218
4218
|
}, x = Kv({
|
|
4219
|
-
impact:
|
|
4219
|
+
impact: f,
|
|
4220
4220
|
draggable: d,
|
|
4221
4221
|
dimensions: p,
|
|
4222
4222
|
viewport: o.viewport,
|
|
@@ -4225,7 +4225,7 @@ var Uv = function(e) {
|
|
|
4225
4225
|
critical: o.critical,
|
|
4226
4226
|
afterCritical: o.afterCritical,
|
|
4227
4227
|
result: m,
|
|
4228
|
-
impact:
|
|
4228
|
+
impact: f
|
|
4229
4229
|
}, D = !bt(o.current.client.offset, x) || !!m.combine;
|
|
4230
4230
|
if (!D) {
|
|
4231
4231
|
r(La({
|
|
@@ -4269,7 +4269,7 @@ function Zv(e) {
|
|
|
4269
4269
|
function r() {
|
|
4270
4270
|
t(hl());
|
|
4271
4271
|
}
|
|
4272
|
-
var n =
|
|
4272
|
+
var n = gr(r), a = Qv(n), o = ht;
|
|
4273
4273
|
function i() {
|
|
4274
4274
|
return o !== ht;
|
|
4275
4275
|
}
|
|
@@ -4357,7 +4357,7 @@ var eg = function(t) {
|
|
|
4357
4357
|
return !0;
|
|
4358
4358
|
var n = t.draggable.id === r.draggable.id && t.draggable.droppableId === r.draggable.droppableId && t.draggable.type === r.draggable.type && t.draggable.index === r.draggable.index, a = t.droppable.id === r.droppable.id && t.droppable.type === r.droppable.type;
|
|
4359
4359
|
return n && a;
|
|
4360
|
-
},
|
|
4360
|
+
}, nr = function(t, r) {
|
|
4361
4361
|
_r(), r(), Pr();
|
|
4362
4362
|
}, Mr = function(t, r) {
|
|
4363
4363
|
return {
|
|
@@ -4379,68 +4379,68 @@ var eg = function(t) {
|
|
|
4379
4379
|
};
|
|
4380
4380
|
t(r, i), o.wasCalled() || n(a(r));
|
|
4381
4381
|
}, sg = function(e, t) {
|
|
4382
|
-
var r = ng(), n = null, a = function(
|
|
4383
|
-
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : w()),
|
|
4382
|
+
var r = ng(), n = null, a = function(f, v) {
|
|
4383
|
+
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : w()), nr("onBeforeCapture", function() {
|
|
4384
4384
|
var g = e().onBeforeCapture;
|
|
4385
4385
|
if (g) {
|
|
4386
4386
|
var h = {
|
|
4387
|
-
draggableId:
|
|
4388
|
-
mode:
|
|
4387
|
+
draggableId: f,
|
|
4388
|
+
mode: v
|
|
4389
4389
|
};
|
|
4390
4390
|
g(h);
|
|
4391
4391
|
}
|
|
4392
4392
|
});
|
|
4393
|
-
}, o = function(
|
|
4394
|
-
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : w()),
|
|
4393
|
+
}, o = function(f, v) {
|
|
4394
|
+
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : w()), nr("onBeforeDragStart", function() {
|
|
4395
4395
|
var g = e().onBeforeDragStart;
|
|
4396
|
-
g && g(Mr(
|
|
4396
|
+
g && g(Mr(f, v));
|
|
4397
4397
|
});
|
|
4398
|
-
}, i = function(
|
|
4398
|
+
}, i = function(f, v) {
|
|
4399
4399
|
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : w());
|
|
4400
|
-
var g = Mr(
|
|
4400
|
+
var g = Mr(f, v);
|
|
4401
4401
|
n = {
|
|
4402
|
-
mode:
|
|
4403
|
-
lastCritical:
|
|
4402
|
+
mode: v,
|
|
4403
|
+
lastCritical: f,
|
|
4404
4404
|
lastLocation: g.source,
|
|
4405
4405
|
lastCombine: null
|
|
4406
4406
|
}, r.add(function() {
|
|
4407
|
-
|
|
4407
|
+
nr("onDragStart", function() {
|
|
4408
4408
|
return An(e().onDragStart, g, t, zr.onDragStart);
|
|
4409
4409
|
});
|
|
4410
4410
|
});
|
|
4411
|
-
}, l = function(
|
|
4412
|
-
var g = Pa(
|
|
4411
|
+
}, l = function(f, v) {
|
|
4412
|
+
var g = Pa(v), h = fn(v);
|
|
4413
4413
|
n || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onDragMove when onDragStart has not been called") : w());
|
|
4414
|
-
var b = !ig(
|
|
4415
|
-
b && (n.lastCritical =
|
|
4414
|
+
var b = !ig(f, n.lastCritical);
|
|
4415
|
+
b && (n.lastCritical = f);
|
|
4416
4416
|
var m = !ag(n.lastLocation, g);
|
|
4417
4417
|
m && (n.lastLocation = g);
|
|
4418
4418
|
var x = !og(n.lastCombine, h);
|
|
4419
4419
|
if (x && (n.lastCombine = h), !(!b && !m && !x)) {
|
|
4420
|
-
var N = te({}, Mr(
|
|
4420
|
+
var N = te({}, Mr(f, n.mode), {
|
|
4421
4421
|
combine: h,
|
|
4422
4422
|
destination: g
|
|
4423
4423
|
});
|
|
4424
4424
|
r.add(function() {
|
|
4425
|
-
|
|
4425
|
+
nr("onDragUpdate", function() {
|
|
4426
4426
|
return An(e().onDragUpdate, N, t, zr.onDragUpdate);
|
|
4427
4427
|
});
|
|
4428
4428
|
});
|
|
4429
4429
|
}
|
|
4430
4430
|
}, c = function() {
|
|
4431
4431
|
n || (process.env.NODE_ENV !== "production" ? w(!1, "Can only flush responders while dragging") : w()), r.flush();
|
|
4432
|
-
}, p = function(
|
|
4433
|
-
n || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : w()), n = null,
|
|
4434
|
-
return An(e().onDragEnd,
|
|
4432
|
+
}, p = function(f) {
|
|
4433
|
+
n || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : w()), n = null, nr("onDragEnd", function() {
|
|
4434
|
+
return An(e().onDragEnd, f, t, zr.onDragEnd);
|
|
4435
4435
|
});
|
|
4436
4436
|
}, d = function() {
|
|
4437
4437
|
if (n) {
|
|
4438
|
-
var
|
|
4438
|
+
var f = te({}, Mr(n.lastCritical, n.mode), {
|
|
4439
4439
|
combine: null,
|
|
4440
4440
|
destination: null,
|
|
4441
4441
|
reason: "CANCEL"
|
|
4442
4442
|
});
|
|
4443
|
-
p(
|
|
4443
|
+
p(f);
|
|
4444
4444
|
}
|
|
4445
4445
|
};
|
|
4446
4446
|
return {
|
|
@@ -4597,11 +4597,11 @@ 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 d = n, u = d.additions,
|
|
4600
|
+
var d = n, u = d.additions, f = d.removals, v = 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;
|
|
4604
|
-
}), h = Object.keys(
|
|
4604
|
+
}), h = Object.keys(v).map(function(m) {
|
|
4605
4605
|
var x = t.droppable.getById(m), N = x.callbacks.getScrollWhileDragging();
|
|
4606
4606
|
return {
|
|
4607
4607
|
droppableId: m,
|
|
@@ -4609,7 +4609,7 @@ function bg(e) {
|
|
|
4609
4609
|
};
|
|
4610
4610
|
}), b = {
|
|
4611
4611
|
additions: g,
|
|
4612
|
-
removals: Object.keys(
|
|
4612
|
+
removals: Object.keys(f),
|
|
4613
4613
|
modified: h
|
|
4614
4614
|
};
|
|
4615
4615
|
n = Rn(), Pr(), r.publish(b);
|
|
@@ -4708,38 +4708,38 @@ var wg = function(e, t) {
|
|
|
4708
4708
|
collectionStarting: t.collectionStarting
|
|
4709
4709
|
},
|
|
4710
4710
|
registry: e
|
|
4711
|
-
}), a = function(
|
|
4712
|
-
e.droppable.exists(
|
|
4713
|
-
id:
|
|
4711
|
+
}), a = function(v, g) {
|
|
4712
|
+
e.droppable.exists(v) || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot update is enabled flag of Droppable " + v + " as it is not registered") : w()), r && t.updateDroppableIsEnabled({
|
|
4713
|
+
id: v,
|
|
4714
4714
|
isEnabled: g
|
|
4715
4715
|
});
|
|
4716
|
-
}, o = function(
|
|
4717
|
-
r && (e.droppable.exists(
|
|
4718
|
-
id:
|
|
4716
|
+
}, o = function(v, g) {
|
|
4717
|
+
r && (e.droppable.exists(v) || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot update isCombineEnabled flag of Droppable " + v + " as it is not registered") : w()), t.updateDroppableIsCombineEnabled({
|
|
4718
|
+
id: v,
|
|
4719
4719
|
isCombineEnabled: g
|
|
4720
4720
|
}));
|
|
4721
|
-
}, i = function(
|
|
4722
|
-
r && (e.droppable.exists(
|
|
4723
|
-
id:
|
|
4721
|
+
}, i = function(v, g) {
|
|
4722
|
+
r && (e.droppable.exists(v) || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot update the scroll on Droppable " + v + " as it is not registered") : w()), t.updateDroppableScroll({
|
|
4723
|
+
id: v,
|
|
4724
4724
|
newScroll: g
|
|
4725
4725
|
}));
|
|
4726
|
-
}, l = function(
|
|
4727
|
-
r && e.droppable.getById(
|
|
4726
|
+
}, l = function(v, g) {
|
|
4727
|
+
r && e.droppable.getById(v).callbacks.scroll(g);
|
|
4728
4728
|
}, c = function() {
|
|
4729
4729
|
if (r) {
|
|
4730
4730
|
n.stop();
|
|
4731
|
-
var
|
|
4732
|
-
e.droppable.getAllByType(
|
|
4731
|
+
var v = r.critical.droppable;
|
|
4732
|
+
e.droppable.getAllByType(v.type).forEach(function(g) {
|
|
4733
4733
|
return g.callbacks.dragStopped();
|
|
4734
4734
|
}), r.unsubscribe(), r = null;
|
|
4735
4735
|
}
|
|
4736
|
-
}, p = function(
|
|
4736
|
+
}, p = function(v) {
|
|
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
|
-
|
|
4740
|
-
}, d = function(
|
|
4739
|
+
v.type === "ADDITION" && ri(e, g, v.value) && n.add(v.value), v.type === "REMOVAL" && ri(e, g, v.value) && n.remove(v.value);
|
|
4740
|
+
}, d = function(v) {
|
|
4741
4741
|
r && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start capturing critical dimensions as there is already a collection") : w());
|
|
4742
|
-
var g = e.draggable.getById(
|
|
4742
|
+
var g = e.draggable.getById(v.draggableId), h = e.droppable.getById(g.descriptor.droppableId), b = {
|
|
4743
4743
|
draggable: g.descriptor,
|
|
4744
4744
|
droppable: h.descriptor
|
|
4745
4745
|
}, m = e.subscribe(p);
|
|
@@ -4749,7 +4749,7 @@ var wg = function(e, t) {
|
|
|
4749
4749
|
}, yg({
|
|
4750
4750
|
critical: b,
|
|
4751
4751
|
registry: e,
|
|
4752
|
-
scrollOptions:
|
|
4752
|
+
scrollOptions: v.scrollOptions
|
|
4753
4753
|
});
|
|
4754
4754
|
}, u = {
|
|
4755
4755
|
updateDroppableIsEnabled: a,
|
|
@@ -4981,41 +4981,41 @@ var wg = function(e, t) {
|
|
|
4981
4981
|
droppables: t.dimensions.droppables
|
|
4982
4982
|
});
|
|
4983
4983
|
if (u) {
|
|
4984
|
-
var
|
|
4984
|
+
var f = Bg({
|
|
4985
4985
|
dragStartTime: r,
|
|
4986
4986
|
droppable: u,
|
|
4987
4987
|
subject: c,
|
|
4988
4988
|
center: i,
|
|
4989
4989
|
shouldUseTimeDampening: n
|
|
4990
4990
|
});
|
|
4991
|
-
|
|
4991
|
+
f && o(u.descriptor.id, f);
|
|
4992
4992
|
}
|
|
4993
4993
|
}, kg = function(e) {
|
|
4994
|
-
var t = e.scrollWindow, r = e.scrollDroppable, n =
|
|
4994
|
+
var t = e.scrollWindow, r = e.scrollDroppable, n = gr(t), a = gr(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 u = o,
|
|
4996
|
+
var u = o, f = u.shouldUseTimeDampening, v = u.dragStartTime;
|
|
4997
4997
|
si({
|
|
4998
4998
|
state: d,
|
|
4999
4999
|
scrollWindow: n,
|
|
5000
5000
|
scrollDroppable: a,
|
|
5001
|
-
dragStartTime:
|
|
5002
|
-
shouldUseTimeDampening:
|
|
5001
|
+
dragStartTime: v,
|
|
5002
|
+
shouldUseTimeDampening: f
|
|
5003
5003
|
});
|
|
5004
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 u = Date.now(),
|
|
5007
|
-
|
|
5006
|
+
var u = Date.now(), f = !1, v = function() {
|
|
5007
|
+
f = !0;
|
|
5008
5008
|
};
|
|
5009
5009
|
si({
|
|
5010
5010
|
state: d,
|
|
5011
5011
|
dragStartTime: 0,
|
|
5012
5012
|
shouldUseTimeDampening: !1,
|
|
5013
|
-
scrollWindow:
|
|
5014
|
-
scrollDroppable:
|
|
5013
|
+
scrollWindow: v,
|
|
5014
|
+
scrollDroppable: v
|
|
5015
5015
|
}), o = {
|
|
5016
5016
|
dragStartTime: u,
|
|
5017
|
-
shouldUseTimeDampening:
|
|
5018
|
-
}, Pr(),
|
|
5017
|
+
shouldUseTimeDampening: f
|
|
5018
|
+
}, Pr(), f && i(d);
|
|
5019
5019
|
}, c = function() {
|
|
5020
5020
|
o && (n.cancel(), a.cancel(), o = null);
|
|
5021
5021
|
};
|
|
@@ -5036,28 +5036,28 @@ var wg = function(e, t) {
|
|
|
5036
5036
|
var u = Ag(p, d);
|
|
5037
5037
|
if (!u)
|
|
5038
5038
|
return r(p.descriptor.id, d), null;
|
|
5039
|
-
var
|
|
5040
|
-
r(p.descriptor.id,
|
|
5041
|
-
var
|
|
5042
|
-
return
|
|
5039
|
+
var f = Ge(d, u);
|
|
5040
|
+
r(p.descriptor.id, f);
|
|
5041
|
+
var v = Ge(d, f);
|
|
5042
|
+
return v;
|
|
5043
5043
|
}, i = function(p, d, u) {
|
|
5044
5044
|
if (!p || !Wa(d, u))
|
|
5045
5045
|
return u;
|
|
5046
|
-
var
|
|
5047
|
-
if (!
|
|
5046
|
+
var f = Tg(d, u);
|
|
5047
|
+
if (!f)
|
|
5048
5048
|
return n(u), null;
|
|
5049
|
-
var
|
|
5050
|
-
n(
|
|
5051
|
-
var g = Ge(u,
|
|
5049
|
+
var v = Ge(u, f);
|
|
5050
|
+
n(v);
|
|
5051
|
+
var g = Ge(u, v);
|
|
5052
5052
|
return g;
|
|
5053
5053
|
}, l = function(p) {
|
|
5054
5054
|
var d = p.scrollJumpRequest;
|
|
5055
5055
|
if (d) {
|
|
5056
5056
|
var u = We(p.impact);
|
|
5057
5057
|
u || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot perform a jump scroll when there is no destination") : w());
|
|
5058
|
-
var
|
|
5059
|
-
if (
|
|
5060
|
-
var
|
|
5058
|
+
var f = o(p.dimensions.droppables[u], d);
|
|
5059
|
+
if (f) {
|
|
5060
|
+
var v = p.viewport, g = i(p.isWindowScrollAllowed, v, f);
|
|
5061
5061
|
g && a(p, g);
|
|
5062
5062
|
}
|
|
5063
5063
|
}
|
|
@@ -5112,7 +5112,7 @@ var wg = function(e, t) {
|
|
|
5112
5112
|
return function(r) {
|
|
5113
5113
|
return "[" + r + '="' + t + '"]';
|
|
5114
5114
|
};
|
|
5115
|
-
},
|
|
5115
|
+
}, ar = function(t, r) {
|
|
5116
5116
|
return t.map(function(n) {
|
|
5117
5117
|
var a = n.styles[r];
|
|
5118
5118
|
return a ? n.selector + " { " + a + " }" : "";
|
|
@@ -5138,7 +5138,7 @@ var wg = function(e, t) {
|
|
|
5138
5138
|
};
|
|
5139
5139
|
}(), n = function() {
|
|
5140
5140
|
var l = `
|
|
5141
|
-
transition: ` +
|
|
5141
|
+
transition: ` + lr.outOfTheWay + `;
|
|
5142
5142
|
`;
|
|
5143
5143
|
return {
|
|
5144
5144
|
selector: t(aa.contextId),
|
|
@@ -5168,11 +5168,11 @@ var wg = function(e, t) {
|
|
|
5168
5168
|
}
|
|
5169
5169
|
}, i = [n, r, a, o];
|
|
5170
5170
|
return {
|
|
5171
|
-
always:
|
|
5172
|
-
resting:
|
|
5173
|
-
dragging:
|
|
5174
|
-
dropAnimating:
|
|
5175
|
-
userCancel:
|
|
5171
|
+
always: ar(i, "always"),
|
|
5172
|
+
resting: ar(i, "resting"),
|
|
5173
|
+
dragging: ar(i, "dragging"),
|
|
5174
|
+
dropAnimating: ar(i, "dropAnimating"),
|
|
5175
|
+
userCancel: ar(i, "userCancel")
|
|
5176
5176
|
};
|
|
5177
5177
|
}, Ue = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? ba : $, Bn = function() {
|
|
5178
5178
|
var t = document.querySelector("head");
|
|
@@ -5184,22 +5184,22 @@ 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 =
|
|
5188
|
-
var
|
|
5189
|
-
|
|
5187
|
+
}, [e]), n = ee(null), a = ee(null), o = K(Pe(function(u) {
|
|
5188
|
+
var f = a.current;
|
|
5189
|
+
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.textContent = u;
|
|
5190
5190
|
}), []), i = K(function(u) {
|
|
5191
|
-
var
|
|
5192
|
-
|
|
5191
|
+
var f = n.current;
|
|
5192
|
+
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.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 u = ci(t),
|
|
5197
|
-
return n.current = u, a.current =
|
|
5198
|
-
var
|
|
5196
|
+
var u = ci(t), f = ci(t);
|
|
5197
|
+
return n.current = u, a.current = f, u.setAttribute(Ht + "-always", e), f.setAttribute(Ht + "-dynamic", e), Bn().appendChild(u), Bn().appendChild(f), i(r.always), o(r.resting), function() {
|
|
5198
|
+
var v = 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;
|
|
5201
5201
|
};
|
|
5202
|
-
|
|
5202
|
+
v(n), v(a);
|
|
5203
5203
|
};
|
|
5204
5204
|
}, [t, i, o, r.always, r.resting, e]);
|
|
5205
5205
|
var l = K(function() {
|
|
@@ -5237,36 +5237,36 @@ function Sl(e, t) {
|
|
|
5237
5237
|
return a ? Tr(a) ? a : (process.env.NODE_ENV !== "production" && De("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && De('Unable to find drag handle with id "' + t + '" as no handle with a matching id was found'), null);
|
|
5238
5238
|
}
|
|
5239
5239
|
function Ug(e) {
|
|
5240
|
-
var t =
|
|
5240
|
+
var t = ee({}), r = ee(null), n = ee(null), a = ee(!1), o = K(function(f, v) {
|
|
5241
5241
|
var g = {
|
|
5242
|
-
id:
|
|
5243
|
-
focus:
|
|
5242
|
+
id: f,
|
|
5243
|
+
focus: v
|
|
5244
5244
|
};
|
|
5245
|
-
return t.current[
|
|
5246
|
-
var b = t.current, m = b[
|
|
5247
|
-
m !== g && delete b[
|
|
5245
|
+
return t.current[f] = g, function() {
|
|
5246
|
+
var b = t.current, m = b[f];
|
|
5247
|
+
m !== g && delete b[f];
|
|
5248
5248
|
};
|
|
5249
|
-
}, []), i = K(function(
|
|
5250
|
-
var
|
|
5251
|
-
|
|
5252
|
-
}, [e]), l = K(function(
|
|
5253
|
-
r.current ===
|
|
5249
|
+
}, []), i = K(function(f) {
|
|
5250
|
+
var v = Sl(e, f);
|
|
5251
|
+
v && v !== document.activeElement && v.focus();
|
|
5252
|
+
}, [e]), l = K(function(f, v) {
|
|
5253
|
+
r.current === f && (r.current = v);
|
|
5254
5254
|
}, []), c = K(function() {
|
|
5255
5255
|
n.current || a.current && (n.current = requestAnimationFrame(function() {
|
|
5256
5256
|
n.current = null;
|
|
5257
|
-
var
|
|
5258
|
-
|
|
5257
|
+
var f = r.current;
|
|
5258
|
+
f && i(f);
|
|
5259
5259
|
}));
|
|
5260
|
-
}, [i]), p = K(function(
|
|
5260
|
+
}, [i]), p = K(function(f) {
|
|
5261
5261
|
r.current = null;
|
|
5262
|
-
var
|
|
5263
|
-
|
|
5262
|
+
var v = document.activeElement;
|
|
5263
|
+
v && v.getAttribute(zt.draggableId) === f && (r.current = f);
|
|
5264
5264
|
}, []);
|
|
5265
5265
|
Ue(function() {
|
|
5266
5266
|
return a.current = !0, function() {
|
|
5267
5267
|
a.current = !1;
|
|
5268
|
-
var
|
|
5269
|
-
|
|
5268
|
+
var f = n.current;
|
|
5269
|
+
f && cancelAnimationFrame(f);
|
|
5270
5270
|
};
|
|
5271
5271
|
}, []);
|
|
5272
5272
|
var d = pe(function() {
|
|
@@ -5286,48 +5286,48 @@ function Hg() {
|
|
|
5286
5286
|
}, t = [];
|
|
5287
5287
|
function r(u) {
|
|
5288
5288
|
return t.push(u), function() {
|
|
5289
|
-
var
|
|
5290
|
-
|
|
5289
|
+
var v = t.indexOf(u);
|
|
5290
|
+
v !== -1 && t.splice(v, 1);
|
|
5291
5291
|
};
|
|
5292
5292
|
}
|
|
5293
5293
|
function n(u) {
|
|
5294
|
-
t.length && t.forEach(function(
|
|
5295
|
-
return
|
|
5294
|
+
t.length && t.forEach(function(f) {
|
|
5295
|
+
return f(u);
|
|
5296
5296
|
});
|
|
5297
5297
|
}
|
|
5298
5298
|
function a(u) {
|
|
5299
5299
|
return e.draggables[u] || null;
|
|
5300
5300
|
}
|
|
5301
5301
|
function o(u) {
|
|
5302
|
-
var
|
|
5303
|
-
return
|
|
5302
|
+
var f = a(u);
|
|
5303
|
+
return f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find draggable entry with id [" + u + "]") : w()), f;
|
|
5304
5304
|
}
|
|
5305
5305
|
var i = {
|
|
5306
|
-
register: function(
|
|
5307
|
-
e.draggables[
|
|
5306
|
+
register: function(f) {
|
|
5307
|
+
e.draggables[f.descriptor.id] = f, n({
|
|
5308
5308
|
type: "ADDITION",
|
|
5309
|
-
value:
|
|
5309
|
+
value: f
|
|
5310
5310
|
});
|
|
5311
5311
|
},
|
|
5312
|
-
update: function(
|
|
5313
|
-
var g = e.draggables[
|
|
5314
|
-
g && g.uniqueId ===
|
|
5312
|
+
update: function(f, v) {
|
|
5313
|
+
var g = e.draggables[v.descriptor.id];
|
|
5314
|
+
g && g.uniqueId === f.uniqueId && (delete e.draggables[v.descriptor.id], e.draggables[f.descriptor.id] = f);
|
|
5315
5315
|
},
|
|
5316
|
-
unregister: function(
|
|
5317
|
-
var
|
|
5318
|
-
g &&
|
|
5316
|
+
unregister: function(f) {
|
|
5317
|
+
var v = f.descriptor.id, g = a(v);
|
|
5318
|
+
g && f.uniqueId === g.uniqueId && (delete e.draggables[v], n({
|
|
5319
5319
|
type: "REMOVAL",
|
|
5320
|
-
value:
|
|
5320
|
+
value: f
|
|
5321
5321
|
}));
|
|
5322
5322
|
},
|
|
5323
5323
|
getById: o,
|
|
5324
5324
|
findById: a,
|
|
5325
|
-
exists: function(
|
|
5326
|
-
return !!a(
|
|
5325
|
+
exists: function(f) {
|
|
5326
|
+
return !!a(f);
|
|
5327
5327
|
},
|
|
5328
|
-
getAllByType: function(
|
|
5329
|
-
return rn(e.draggables).filter(function(
|
|
5330
|
-
return
|
|
5328
|
+
getAllByType: function(f) {
|
|
5329
|
+
return rn(e.draggables).filter(function(v) {
|
|
5330
|
+
return v.descriptor.type === f;
|
|
5331
5331
|
});
|
|
5332
5332
|
}
|
|
5333
5333
|
};
|
|
@@ -5335,25 +5335,25 @@ function Hg() {
|
|
|
5335
5335
|
return e.droppables[u] || null;
|
|
5336
5336
|
}
|
|
5337
5337
|
function c(u) {
|
|
5338
|
-
var
|
|
5339
|
-
return
|
|
5338
|
+
var f = l(u);
|
|
5339
|
+
return f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find droppable entry with id [" + u + "]") : w()), f;
|
|
5340
5340
|
}
|
|
5341
5341
|
var p = {
|
|
5342
|
-
register: function(
|
|
5343
|
-
e.droppables[
|
|
5342
|
+
register: function(f) {
|
|
5343
|
+
e.droppables[f.descriptor.id] = f;
|
|
5344
5344
|
},
|
|
5345
|
-
unregister: function(
|
|
5346
|
-
var
|
|
5347
|
-
|
|
5345
|
+
unregister: function(f) {
|
|
5346
|
+
var v = l(f.descriptor.id);
|
|
5347
|
+
v && f.uniqueId === v.uniqueId && delete e.droppables[f.descriptor.id];
|
|
5348
5348
|
},
|
|
5349
5349
|
getById: c,
|
|
5350
5350
|
findById: l,
|
|
5351
|
-
exists: function(
|
|
5352
|
-
return !!l(
|
|
5351
|
+
exists: function(f) {
|
|
5352
|
+
return !!l(f);
|
|
5353
5353
|
},
|
|
5354
|
-
getAllByType: function(
|
|
5355
|
-
return rn(e.droppables).filter(function(
|
|
5356
|
-
return
|
|
5354
|
+
getAllByType: function(f) {
|
|
5355
|
+
return rn(e.droppables).filter(function(v) {
|
|
5356
|
+
return v.descriptor.type === f;
|
|
5357
5357
|
});
|
|
5358
5358
|
}
|
|
5359
5359
|
};
|
|
@@ -5375,7 +5375,7 @@ function zg() {
|
|
|
5375
5375
|
};
|
|
5376
5376
|
}, [e]), e;
|
|
5377
5377
|
}
|
|
5378
|
-
var Ha = oe.createContext(null),
|
|
5378
|
+
var Ha = oe.createContext(null), wr = function() {
|
|
5379
5379
|
var e = document.body;
|
|
5380
5380
|
return e || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find document.body") : w()), e;
|
|
5381
5381
|
}, qg = {
|
|
@@ -5394,12 +5394,12 @@ var Ha = oe.createContext(null), yr = function() {
|
|
|
5394
5394
|
function Kg(e) {
|
|
5395
5395
|
var t = pe(function() {
|
|
5396
5396
|
return Yg(e);
|
|
5397
|
-
}, [e]), r =
|
|
5397
|
+
}, [e]), r = ee(null);
|
|
5398
5398
|
$(function() {
|
|
5399
5399
|
var o = document.createElement("div");
|
|
5400
|
-
return r.current = o, o.id = t, o.setAttribute("aria-live", "assertive"), o.setAttribute("aria-atomic", "true"), te(o.style, qg),
|
|
5400
|
+
return r.current = o, o.id = t, o.setAttribute("aria-live", "assertive"), o.setAttribute("aria-atomic", "true"), te(o.style, qg), wr().appendChild(o), function() {
|
|
5401
5401
|
setTimeout(function() {
|
|
5402
|
-
var c =
|
|
5402
|
+
var c = wr();
|
|
5403
5403
|
c.contains(o) && c.removeChild(o), o === r.current && (r.current = null);
|
|
5404
5404
|
});
|
|
5405
5405
|
};
|
|
@@ -5446,8 +5446,8 @@ function Zg(e) {
|
|
|
5446
5446
|
}, [n, t]);
|
|
5447
5447
|
return $(function() {
|
|
5448
5448
|
var i = document.createElement("div");
|
|
5449
|
-
return i.id = a, i.textContent = r, i.style.display = "none",
|
|
5450
|
-
var c =
|
|
5449
|
+
return i.id = a, i.textContent = r, i.style.display = "none", wr().appendChild(i), function() {
|
|
5450
|
+
var c = wr();
|
|
5451
5451
|
c.contains(i) && c.removeChild(i);
|
|
5452
5452
|
};
|
|
5453
5453
|
}, [a, r]), a;
|
|
@@ -5525,7 +5525,7 @@ function om() {
|
|
|
5525
5525
|
}, []);
|
|
5526
5526
|
}
|
|
5527
5527
|
function Ya(e) {
|
|
5528
|
-
var t =
|
|
5528
|
+
var t = ee(e);
|
|
5529
5529
|
return $(function() {
|
|
5530
5530
|
t.current = e;
|
|
5531
5531
|
}), t;
|
|
@@ -5592,13 +5592,13 @@ function xm(e) {
|
|
|
5592
5592
|
return;
|
|
5593
5593
|
}
|
|
5594
5594
|
u.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot be IDLE") : w());
|
|
5595
|
-
var
|
|
5596
|
-
if (bm(
|
|
5595
|
+
var f = u.point;
|
|
5596
|
+
if (bm(f, d)) {
|
|
5597
5597
|
i.preventDefault();
|
|
5598
|
-
var
|
|
5598
|
+
var v = u.actions.fluidLift(d);
|
|
5599
5599
|
a({
|
|
5600
5600
|
type: "DRAGGING",
|
|
5601
|
-
actions:
|
|
5601
|
+
actions: v
|
|
5602
5602
|
});
|
|
5603
5603
|
}
|
|
5604
5604
|
}
|
|
@@ -5662,23 +5662,23 @@ function xm(e) {
|
|
|
5662
5662
|
}];
|
|
5663
5663
|
}
|
|
5664
5664
|
function ym(e) {
|
|
5665
|
-
var t =
|
|
5665
|
+
var t = ee(pi), r = ee(ht), n = pe(function() {
|
|
5666
5666
|
return {
|
|
5667
5667
|
eventName: "mousedown",
|
|
5668
5668
|
fn: function(u) {
|
|
5669
5669
|
if (!u.defaultPrevented && u.button === Ol && !(u.ctrlKey || u.metaKey || u.shiftKey || u.altKey)) {
|
|
5670
|
-
var
|
|
5671
|
-
if (
|
|
5672
|
-
var
|
|
5670
|
+
var f = e.findClosestDraggableId(u);
|
|
5671
|
+
if (f) {
|
|
5672
|
+
var v = e.tryGetLock(f, i, {
|
|
5673
5673
|
sourceEvent: u
|
|
5674
5674
|
});
|
|
5675
|
-
if (
|
|
5675
|
+
if (v) {
|
|
5676
5676
|
u.preventDefault();
|
|
5677
5677
|
var g = {
|
|
5678
5678
|
x: u.clientX,
|
|
5679
5679
|
y: u.clientY
|
|
5680
5680
|
};
|
|
5681
|
-
r.current(), p(
|
|
5681
|
+
r.current(), p(v, g);
|
|
5682
5682
|
}
|
|
5683
5683
|
}
|
|
5684
5684
|
}
|
|
@@ -5689,10 +5689,10 @@ function ym(e) {
|
|
|
5689
5689
|
eventName: "webkitmouseforcewillbegin",
|
|
5690
5690
|
fn: function(u) {
|
|
5691
5691
|
if (!u.defaultPrevented) {
|
|
5692
|
-
var
|
|
5693
|
-
if (
|
|
5694
|
-
var
|
|
5695
|
-
|
|
5692
|
+
var f = e.findClosestDraggableId(u);
|
|
5693
|
+
if (f) {
|
|
5694
|
+
var v = e.findOptionsForDraggable(f);
|
|
5695
|
+
v && (v.shouldRespectForcePress || e.canGetLock(f) && u.preventDefault());
|
|
5696
5696
|
}
|
|
5697
5697
|
}
|
|
5698
5698
|
}
|
|
@@ -5715,7 +5715,7 @@ function ym(e) {
|
|
|
5715
5715
|
var u = {
|
|
5716
5716
|
capture: !0,
|
|
5717
5717
|
passive: !1
|
|
5718
|
-
},
|
|
5718
|
+
}, f = xm({
|
|
5719
5719
|
cancel: l,
|
|
5720
5720
|
completed: i,
|
|
5721
5721
|
getPhase: function() {
|
|
@@ -5725,11 +5725,11 @@ function ym(e) {
|
|
|
5725
5725
|
t.current = g;
|
|
5726
5726
|
}
|
|
5727
5727
|
});
|
|
5728
|
-
r.current = Ye(window,
|
|
5729
|
-
}, [l, i]), p = K(function(u,
|
|
5728
|
+
r.current = Ye(window, f, u);
|
|
5729
|
+
}, [l, i]), p = K(function(u, f) {
|
|
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
|
-
point:
|
|
5732
|
+
point: f,
|
|
5733
5733
|
actions: u
|
|
5734
5734
|
}, c();
|
|
5735
5735
|
}, [c]);
|
|
@@ -5810,7 +5810,7 @@ function Nm(e, t) {
|
|
|
5810
5810
|
}];
|
|
5811
5811
|
}
|
|
5812
5812
|
function Em(e) {
|
|
5813
|
-
var t =
|
|
5813
|
+
var t = ee(wm), r = pe(function() {
|
|
5814
5814
|
return {
|
|
5815
5815
|
eventName: "keydown",
|
|
5816
5816
|
fn: function(o) {
|
|
@@ -5952,22 +5952,22 @@ function jm(e) {
|
|
|
5952
5952
|
}];
|
|
5953
5953
|
}
|
|
5954
5954
|
function Om(e) {
|
|
5955
|
-
var t =
|
|
5955
|
+
var t = ee(Mn), r = ee(ht), n = K(function() {
|
|
5956
5956
|
return t.current;
|
|
5957
|
-
}, []), a = K(function(
|
|
5958
|
-
t.current =
|
|
5957
|
+
}, []), a = K(function(v) {
|
|
5958
|
+
t.current = v;
|
|
5959
5959
|
}, []), o = pe(function() {
|
|
5960
5960
|
return {
|
|
5961
5961
|
eventName: "touchstart",
|
|
5962
|
-
fn: function(
|
|
5963
|
-
if (!
|
|
5964
|
-
var g = e.findClosestDraggableId(
|
|
5962
|
+
fn: function(v) {
|
|
5963
|
+
if (!v.defaultPrevented) {
|
|
5964
|
+
var g = e.findClosestDraggableId(v);
|
|
5965
5965
|
if (g) {
|
|
5966
5966
|
var h = e.tryGetLock(g, l, {
|
|
5967
|
-
sourceEvent:
|
|
5967
|
+
sourceEvent: v
|
|
5968
5968
|
});
|
|
5969
5969
|
if (h) {
|
|
5970
|
-
var b =
|
|
5970
|
+
var b = v.touches[0], m = b.clientX, x = b.clientY, N = {
|
|
5971
5971
|
x: m,
|
|
5972
5972
|
y: x
|
|
5973
5973
|
};
|
|
@@ -5978,47 +5978,47 @@ function Om(e) {
|
|
|
5978
5978
|
}
|
|
5979
5979
|
};
|
|
5980
5980
|
}, [e]), i = K(function() {
|
|
5981
|
-
var
|
|
5981
|
+
var v = {
|
|
5982
5982
|
capture: !0,
|
|
5983
5983
|
passive: !1
|
|
5984
5984
|
};
|
|
5985
|
-
r.current = Ye(window, [o],
|
|
5985
|
+
r.current = Ye(window, [o], v);
|
|
5986
5986
|
}, [o]), l = K(function() {
|
|
5987
|
-
var
|
|
5988
|
-
|
|
5987
|
+
var f = t.current;
|
|
5988
|
+
f.type !== "IDLE" && (f.type === "PENDING" && clearTimeout(f.longPressTimerId), a(Mn), r.current(), i());
|
|
5989
5989
|
}, [i, a]), c = K(function() {
|
|
5990
|
-
var
|
|
5991
|
-
l(),
|
|
5990
|
+
var f = t.current;
|
|
5991
|
+
l(), f.type === "DRAGGING" && f.actions.cancel({
|
|
5992
5992
|
shouldBlockNextClick: !0
|
|
5993
|
-
}),
|
|
5993
|
+
}), f.type === "PENDING" && f.actions.abort();
|
|
5994
5994
|
}, [l]), p = K(function() {
|
|
5995
|
-
var
|
|
5995
|
+
var v = {
|
|
5996
5996
|
capture: !0,
|
|
5997
5997
|
passive: !1
|
|
5998
5998
|
}, g = {
|
|
5999
5999
|
cancel: c,
|
|
6000
6000
|
completed: l,
|
|
6001
6001
|
getPhase: n
|
|
6002
|
-
}, h = Ye(window, jm(g),
|
|
6002
|
+
}, h = Ye(window, jm(g), v), b = Ye(window, Im(g), v);
|
|
6003
6003
|
r.current = function() {
|
|
6004
6004
|
h(), b();
|
|
6005
6005
|
};
|
|
6006
6006
|
}, [c, n, l]), d = K(function() {
|
|
6007
|
-
var
|
|
6008
|
-
|
|
6009
|
-
var g =
|
|
6007
|
+
var v = n();
|
|
6008
|
+
v.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start dragging from phase " + v.type) : w());
|
|
6009
|
+
var g = v.actions.fluidLift(v.point);
|
|
6010
6010
|
a({
|
|
6011
6011
|
type: "DRAGGING",
|
|
6012
6012
|
actions: g,
|
|
6013
6013
|
hasMoved: !1
|
|
6014
6014
|
});
|
|
6015
|
-
}, [n, a]), u = K(function(
|
|
6015
|
+
}, [n, a]), u = K(function(v, g) {
|
|
6016
6016
|
n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected to move from IDLE to PENDING drag") : w());
|
|
6017
6017
|
var h = setTimeout(d, Cm);
|
|
6018
6018
|
a({
|
|
6019
6019
|
type: "PENDING",
|
|
6020
6020
|
point: g,
|
|
6021
|
-
actions:
|
|
6021
|
+
actions: v,
|
|
6022
6022
|
longPressTimerId: h
|
|
6023
6023
|
}), p();
|
|
6024
6024
|
}, [p, n, a, d]);
|
|
@@ -6029,7 +6029,7 @@ function Om(e) {
|
|
|
6029
6029
|
g.type === "PENDING" && (clearTimeout(g.longPressTimerId), a(Mn));
|
|
6030
6030
|
};
|
|
6031
6031
|
}, [n, i, a]), Ue(function() {
|
|
6032
|
-
var
|
|
6032
|
+
var v = Ye(window, [{
|
|
6033
6033
|
eventName: "touchmove",
|
|
6034
6034
|
fn: function() {
|
|
6035
6035
|
},
|
|
@@ -6038,7 +6038,7 @@ function Om(e) {
|
|
|
6038
6038
|
passive: !1
|
|
6039
6039
|
}
|
|
6040
6040
|
}]);
|
|
6041
|
-
return
|
|
6041
|
+
return v;
|
|
6042
6042
|
}, []);
|
|
6043
6043
|
}
|
|
6044
6044
|
function _m(e) {
|
|
@@ -6159,8 +6159,8 @@ function Gm(e) {
|
|
|
6159
6159
|
return process.env.NODE_ENV !== "production" && De("Unable to find draggable element with id: " + o), null;
|
|
6160
6160
|
if (l && !p.options.canDragInteractiveElements && Tm(d, l))
|
|
6161
6161
|
return null;
|
|
6162
|
-
var u = t.claim(i || ht),
|
|
6163
|
-
function
|
|
6162
|
+
var u = t.claim(i || ht), f = "PRE_DRAG";
|
|
6163
|
+
function v() {
|
|
6164
6164
|
return p.options.shouldRespectForcePress;
|
|
6165
6165
|
}
|
|
6166
6166
|
function g() {
|
|
@@ -6169,7 +6169,7 @@ function Gm(e) {
|
|
|
6169
6169
|
function h(C, O) {
|
|
6170
6170
|
Fr({
|
|
6171
6171
|
expected: C,
|
|
6172
|
-
phase:
|
|
6172
|
+
phase: f,
|
|
6173
6173
|
isLockActive: g,
|
|
6174
6174
|
shouldWarn: !0
|
|
6175
6175
|
}) && n.dispatch(O());
|
|
@@ -6177,9 +6177,9 @@ function Gm(e) {
|
|
|
6177
6177
|
var b = h.bind(null, "DRAGGING");
|
|
6178
6178
|
function m(C) {
|
|
6179
6179
|
function O() {
|
|
6180
|
-
t.release(),
|
|
6180
|
+
t.release(), f = "COMPLETED";
|
|
6181
6181
|
}
|
|
6182
|
-
|
|
6182
|
+
f !== "PRE_DRAG" && (O(), f !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot lift in phase " + f) : w())), n.dispatch(Iv(C.liftActionArgs)), f = "DRAGGING";
|
|
6183
6183
|
function S(I, B) {
|
|
6184
6184
|
if (B === void 0 && (B = {
|
|
6185
6185
|
shouldBlockNextClick: !1
|
|
@@ -6203,12 +6203,12 @@ function Gm(e) {
|
|
|
6203
6203
|
isActive: function() {
|
|
6204
6204
|
return Fr({
|
|
6205
6205
|
expected: "DRAGGING",
|
|
6206
|
-
phase:
|
|
6206
|
+
phase: f,
|
|
6207
6207
|
isLockActive: g,
|
|
6208
6208
|
shouldWarn: !1
|
|
6209
6209
|
});
|
|
6210
6210
|
},
|
|
6211
|
-
shouldRespectForcePress:
|
|
6211
|
+
shouldRespectForcePress: v,
|
|
6212
6212
|
drop: function(B) {
|
|
6213
6213
|
return S("DROP", B);
|
|
6214
6214
|
},
|
|
@@ -6218,7 +6218,7 @@ function Gm(e) {
|
|
|
6218
6218
|
}, C.actions);
|
|
6219
6219
|
}
|
|
6220
6220
|
function x(C) {
|
|
6221
|
-
var O =
|
|
6221
|
+
var O = gr(function(I) {
|
|
6222
6222
|
b(function() {
|
|
6223
6223
|
return fl({
|
|
6224
6224
|
client: I
|
|
@@ -6269,7 +6269,7 @@ function Gm(e) {
|
|
|
6269
6269
|
function D() {
|
|
6270
6270
|
var C = Fr({
|
|
6271
6271
|
expected: "PRE_DRAG",
|
|
6272
|
-
phase:
|
|
6272
|
+
phase: f,
|
|
6273
6273
|
isLockActive: g,
|
|
6274
6274
|
shouldWarn: !0
|
|
6275
6275
|
});
|
|
@@ -6279,12 +6279,12 @@ function Gm(e) {
|
|
|
6279
6279
|
isActive: function() {
|
|
6280
6280
|
return Fr({
|
|
6281
6281
|
expected: "PRE_DRAG",
|
|
6282
|
-
phase:
|
|
6282
|
+
phase: f,
|
|
6283
6283
|
isLockActive: g,
|
|
6284
6284
|
shouldWarn: !1
|
|
6285
6285
|
});
|
|
6286
6286
|
},
|
|
6287
|
-
shouldRespectForcePress:
|
|
6287
|
+
shouldRespectForcePress: v,
|
|
6288
6288
|
fluidLift: x,
|
|
6289
6289
|
snapLift: N,
|
|
6290
6290
|
abort: D
|
|
@@ -6326,21 +6326,21 @@ function Um(e) {
|
|
|
6326
6326
|
});
|
|
6327
6327
|
}, [t, l, n, r]), u = K(function(m) {
|
|
6328
6328
|
return Fm(t, m);
|
|
6329
|
-
}, [t]),
|
|
6329
|
+
}, [t]), f = K(function(m) {
|
|
6330
6330
|
var x = n.draggable.findById(m);
|
|
6331
6331
|
return x ? x.options : null;
|
|
6332
|
-
}, [n.draggable]),
|
|
6332
|
+
}, [n.draggable]), v = K(function() {
|
|
6333
6333
|
l.isClaimed() && (l.tryAbandon(), r.getState().phase !== "IDLE" && r.dispatch(Ma()));
|
|
6334
6334
|
}, [l, r]), g = K(l.isClaimed, [l]), h = pe(function() {
|
|
6335
6335
|
return {
|
|
6336
6336
|
canGetLock: p,
|
|
6337
6337
|
tryGetLock: d,
|
|
6338
6338
|
findClosestDraggableId: u,
|
|
6339
|
-
findOptionsForDraggable:
|
|
6340
|
-
tryReleaseLock:
|
|
6339
|
+
findOptionsForDraggable: f,
|
|
6340
|
+
tryReleaseLock: v,
|
|
6341
6341
|
isLockClaimed: g
|
|
6342
6342
|
};
|
|
6343
|
-
}, [p, d, u,
|
|
6343
|
+
}, [p, d, u, f, v, g]);
|
|
6344
6344
|
_m(i);
|
|
6345
6345
|
for (var b = 0; b < i.length; b++)
|
|
6346
6346
|
i[b](h);
|
|
@@ -6354,37 +6354,37 @@ var Hm = function(t) {
|
|
|
6354
6354
|
onDragUpdate: t.onDragUpdate
|
|
6355
6355
|
};
|
|
6356
6356
|
};
|
|
6357
|
-
function
|
|
6357
|
+
function or(e) {
|
|
6358
6358
|
return e.current || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find store from lazy ref") : w()), e.current;
|
|
6359
6359
|
}
|
|
6360
6360
|
function zm(e) {
|
|
6361
|
-
var t = e.contextId, r = e.setCallbacks, n = e.sensors, a = e.nonce, o = e.dragHandleUsageInstructions, i =
|
|
6361
|
+
var t = e.contextId, r = e.setCallbacks, n = e.sensors, a = e.nonce, o = e.dragHandleUsageInstructions, i = ee(null);
|
|
6362
6362
|
om();
|
|
6363
6363
|
var l = Ya(e), c = K(function() {
|
|
6364
6364
|
return Hm(l.current);
|
|
6365
6365
|
}, [l]), p = Kg(t), d = Zg({
|
|
6366
6366
|
contextId: t,
|
|
6367
6367
|
text: o
|
|
6368
|
-
}), u = Wg(t, a),
|
|
6369
|
-
|
|
6370
|
-
}, []),
|
|
6368
|
+
}), u = Wg(t, a), f = K(function(I) {
|
|
6369
|
+
or(i).dispatch(I);
|
|
6370
|
+
}, []), v = pe(function() {
|
|
6371
6371
|
return jo({
|
|
6372
6372
|
publishWhileDragging: Ov,
|
|
6373
6373
|
updateDroppableScroll: Pv,
|
|
6374
6374
|
updateDroppableIsEnabled: Tv,
|
|
6375
6375
|
updateDroppableIsCombineEnabled: Av,
|
|
6376
6376
|
collectionStarting: _v
|
|
6377
|
-
},
|
|
6378
|
-
}, [
|
|
6379
|
-
return wg(g,
|
|
6380
|
-
}, [g,
|
|
6377
|
+
}, f);
|
|
6378
|
+
}, [f]), g = zg(), h = pe(function() {
|
|
6379
|
+
return wg(g, v);
|
|
6380
|
+
}, [g, v]), b = pe(function() {
|
|
6381
6381
|
return Lg(te({
|
|
6382
6382
|
scrollWindow: Dg,
|
|
6383
6383
|
scrollDroppable: h.scrollDroppable
|
|
6384
6384
|
}, jo({
|
|
6385
6385
|
move: fl
|
|
6386
|
-
},
|
|
6387
|
-
}, [h.scrollDroppable,
|
|
6386
|
+
}, f)));
|
|
6387
|
+
}, [h.scrollDroppable, f]), m = Ug(t), x = pe(function() {
|
|
6388
6388
|
return hg({
|
|
6389
6389
|
announce: p,
|
|
6390
6390
|
autoScroller: b,
|
|
@@ -6396,10 +6396,10 @@ function zm(e) {
|
|
|
6396
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
|
-
var I =
|
|
6399
|
+
var I = or(i), B = I.getState();
|
|
6400
6400
|
B.phase !== "IDLE" && I.dispatch(Ma());
|
|
6401
6401
|
}, []), D = K(function() {
|
|
6402
|
-
var I =
|
|
6402
|
+
var I = or(i).getState();
|
|
6403
6403
|
return I.isDragging || I.phase === "DROP_ANIMATING";
|
|
6404
6404
|
}, []), y = pe(function() {
|
|
6405
6405
|
return {
|
|
@@ -6409,9 +6409,9 @@ function zm(e) {
|
|
|
6409
6409
|
}, [D, N]);
|
|
6410
6410
|
r(y);
|
|
6411
6411
|
var C = K(function(I) {
|
|
6412
|
-
return wl(
|
|
6412
|
+
return wl(or(i).getState(), I);
|
|
6413
6413
|
}, []), O = K(function() {
|
|
6414
|
-
return At(
|
|
6414
|
+
return At(or(i).getState());
|
|
6415
6415
|
}, []), S = pe(function() {
|
|
6416
6416
|
return {
|
|
6417
6417
|
marshal: h,
|
|
@@ -6479,7 +6479,7 @@ var Xa = function(t) {
|
|
|
6479
6479
|
}, eh = function() {
|
|
6480
6480
|
if (process.env.NODE_ENV === "production")
|
|
6481
6481
|
return !1;
|
|
6482
|
-
var t =
|
|
6482
|
+
var t = wr(), r = document.documentElement;
|
|
6483
6483
|
if (r || (process.env.NODE_ENV, w()), !Al(t))
|
|
6484
6484
|
return !1;
|
|
6485
6485
|
var n = window.getComputedStyle(r), a = {
|
|
@@ -6529,16 +6529,16 @@ var Xa = function(t) {
|
|
|
6529
6529
|
var t = e.descriptor, r = e.isEnabled, n = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, i = e.client, l = e.page, c = e.closest, p = function() {
|
|
6530
6530
|
if (!c)
|
|
6531
6531
|
return null;
|
|
6532
|
-
var
|
|
6533
|
-
scrollHeight:
|
|
6534
|
-
scrollWidth:
|
|
6532
|
+
var v = c.scrollSize, g = c.client, h = bl({
|
|
6533
|
+
scrollHeight: v.scrollHeight,
|
|
6534
|
+
scrollWidth: v.scrollWidth,
|
|
6535
6535
|
height: g.paddingBox.height,
|
|
6536
6536
|
width: g.paddingBox.width
|
|
6537
6537
|
});
|
|
6538
6538
|
return {
|
|
6539
6539
|
pageMarginBox: c.page.marginBox,
|
|
6540
6540
|
frameClient: g,
|
|
6541
|
-
scrollSize:
|
|
6541
|
+
scrollSize: v,
|
|
6542
6542
|
shouldClipSubject: c.shouldClipSubject,
|
|
6543
6543
|
scroll: {
|
|
6544
6544
|
initial: c.scroll,
|
|
@@ -6555,7 +6555,7 @@ var Xa = function(t) {
|
|
|
6555
6555
|
withPlaceholder: null,
|
|
6556
6556
|
axis: d,
|
|
6557
6557
|
frame: p
|
|
6558
|
-
}),
|
|
6558
|
+
}), f = {
|
|
6559
6559
|
descriptor: t,
|
|
6560
6560
|
isCombineEnabled: n,
|
|
6561
6561
|
isFixedOnPage: a,
|
|
@@ -6566,7 +6566,7 @@ var Xa = function(t) {
|
|
|
6566
6566
|
frame: p,
|
|
6567
6567
|
subject: u
|
|
6568
6568
|
};
|
|
6569
|
-
return
|
|
6569
|
+
return f;
|
|
6570
6570
|
}, oh = function(t, r) {
|
|
6571
6571
|
var n = Gs(t);
|
|
6572
6572
|
if (!r || t !== r)
|
|
@@ -6584,7 +6584,7 @@ var Xa = function(t) {
|
|
|
6584
6584
|
});
|
|
6585
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, d = oh(t, p), u = en(d, a),
|
|
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), f = function() {
|
|
6588
6588
|
if (!p)
|
|
6589
6589
|
return null;
|
|
6590
6590
|
var g = Gs(p), h = {
|
|
@@ -6598,7 +6598,7 @@ var Xa = function(t) {
|
|
|
6598
6598
|
scrollSize: h,
|
|
6599
6599
|
shouldClipSubject: c
|
|
6600
6600
|
};
|
|
6601
|
-
}(),
|
|
6601
|
+
}(), v = ah({
|
|
6602
6602
|
descriptor: r,
|
|
6603
6603
|
isEnabled: !i,
|
|
6604
6604
|
isCombineEnabled: l,
|
|
@@ -6606,9 +6606,9 @@ var Xa = function(t) {
|
|
|
6606
6606
|
direction: o,
|
|
6607
6607
|
client: d,
|
|
6608
6608
|
page: u,
|
|
6609
|
-
closest:
|
|
6609
|
+
closest: f
|
|
6610
6610
|
});
|
|
6611
|
-
return
|
|
6611
|
+
return v;
|
|
6612
6612
|
}, sh = {
|
|
6613
6613
|
passive: !1
|
|
6614
6614
|
}, lh = {
|
|
@@ -6617,20 +6617,20 @@ var Xa = function(t) {
|
|
|
6617
6617
|
return e.shouldPublishImmediately ? sh : lh;
|
|
6618
6618
|
};
|
|
6619
6619
|
function an(e) {
|
|
6620
|
-
var t =
|
|
6620
|
+
var t = Q(e);
|
|
6621
6621
|
return t || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find required context") : w()), t;
|
|
6622
6622
|
}
|
|
6623
6623
|
var Vr = function(t) {
|
|
6624
6624
|
return t && t.env.closestScrollable || null;
|
|
6625
6625
|
};
|
|
6626
6626
|
function ch(e) {
|
|
6627
|
-
var t =
|
|
6627
|
+
var t = ee(null), r = an(mn), n = za("droppable"), a = r.registry, o = r.marshal, i = Ya(e), l = pe(function() {
|
|
6628
6628
|
return {
|
|
6629
6629
|
id: e.droppableId,
|
|
6630
6630
|
type: e.type,
|
|
6631
6631
|
mode: e.mode
|
|
6632
6632
|
};
|
|
6633
|
-
}, [e.droppableId, e.mode, e.type]), c =
|
|
6633
|
+
}, [e.droppableId, e.mode, e.type]), c = ee(l), p = pe(function() {
|
|
6634
6634
|
return Pe(function(D, y) {
|
|
6635
6635
|
t.current || (process.env.NODE_ENV !== "production" ? w(!1, "Can only update scroll when dragging") : w());
|
|
6636
6636
|
var C = {
|
|
@@ -6645,9 +6645,9 @@ function ch(e) {
|
|
|
6645
6645
|
}, []), u = K(function() {
|
|
6646
6646
|
var D = d();
|
|
6647
6647
|
p(D.x, D.y);
|
|
6648
|
-
}, [d, p]),
|
|
6649
|
-
return
|
|
6650
|
-
}, [u]),
|
|
6648
|
+
}, [d, p]), f = pe(function() {
|
|
6649
|
+
return gr(u);
|
|
6650
|
+
}, [u]), v = 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;
|
|
@@ -6655,8 +6655,8 @@ function ch(e) {
|
|
|
6655
6655
|
u();
|
|
6656
6656
|
return;
|
|
6657
6657
|
}
|
|
6658
|
-
|
|
6659
|
-
}, [
|
|
6658
|
+
f();
|
|
6659
|
+
}, [f, 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());
|
|
@@ -6677,16 +6677,16 @@ function ch(e) {
|
|
|
6677
6677
|
isCombineEnabled: C.isCombineEnabled,
|
|
6678
6678
|
shouldClipSubject: !C.ignoreContainerClipping
|
|
6679
6679
|
}), R = S.closestScrollable;
|
|
6680
|
-
return R && (R.setAttribute(li.contextId, r.contextId), R.addEventListener("scroll",
|
|
6681
|
-
}, [r.contextId, l,
|
|
6680
|
+
return R && (R.setAttribute(li.contextId, r.contextId), R.addEventListener("scroll", v, vi(I.scrollOptions)), process.env.NODE_ENV !== "production" && th(R)), B;
|
|
6681
|
+
}, [r.contextId, l, v, i]), h = K(function() {
|
|
6682
6682
|
var D = t.current, y = Vr(D);
|
|
6683
6683
|
return D && y || (process.env.NODE_ENV !== "production" ? w(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : w()), oa(y);
|
|
6684
6684
|
}, []), b = K(function() {
|
|
6685
6685
|
var D = t.current;
|
|
6686
6686
|
D || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot stop drag when no active drag") : w());
|
|
6687
6687
|
var y = Vr(D);
|
|
6688
|
-
t.current = null, y && (
|
|
6689
|
-
}, [
|
|
6688
|
+
t.current = null, y && (f.cancel(), y.removeAttribute(li.contextId), y.removeEventListener("scroll", v, vi(D.scrollOptions)));
|
|
6689
|
+
}, [v, f]), m = K(function(D) {
|
|
6690
6690
|
var y = t.current;
|
|
6691
6691
|
y || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot scroll when there is no drag") : w());
|
|
6692
6692
|
var C = Vr(y);
|
|
@@ -6746,11 +6746,11 @@ var gi = {
|
|
|
6746
6746
|
flexShrink: "0",
|
|
6747
6747
|
flexGrow: "0",
|
|
6748
6748
|
pointerEvents: "none",
|
|
6749
|
-
transition: a !== "none" ?
|
|
6749
|
+
transition: a !== "none" ? lr.placeholder : null
|
|
6750
6750
|
};
|
|
6751
6751
|
};
|
|
6752
6752
|
function ph(e) {
|
|
6753
|
-
var t =
|
|
6753
|
+
var t = ee(null), r = K(function() {
|
|
6754
6754
|
t.current && (clearTimeout(t.current), t.current = null);
|
|
6755
6755
|
}, []), n = e.animate, a = e.onTransitionEnd, o = e.onClose, i = e.contextId, l = M(e.animate === "open"), c = l[0], p = l[1];
|
|
6756
6756
|
$(function() {
|
|
@@ -6758,8 +6758,8 @@ function ph(e) {
|
|
|
6758
6758
|
t.current = null, p(!1);
|
|
6759
6759
|
}), r) : Ln;
|
|
6760
6760
|
}, [n, c, r]);
|
|
6761
|
-
var d = K(function(
|
|
6762
|
-
|
|
6761
|
+
var d = K(function(f) {
|
|
6762
|
+
f.propertyName === "height" && (a(), n === "close" && o());
|
|
6763
6763
|
}, [n, o, a]), u = uh({
|
|
6764
6764
|
isAnimatingOpenOnMount: c,
|
|
6765
6765
|
animate: e.animate,
|
|
@@ -6871,9 +6871,9 @@ var bh = function(e) {
|
|
|
6871
6871
|
dragging: 5e3,
|
|
6872
6872
|
dropAnimating: 4500
|
|
6873
6873
|
}, xh = function(t, r) {
|
|
6874
|
-
return r ?
|
|
6874
|
+
return r ? lr.drop(r.duration) : t ? lr.snap : lr.fluid;
|
|
6875
6875
|
}, yh = function(t, r) {
|
|
6876
|
-
return t ? r ?
|
|
6876
|
+
return t ? r ? yr.opacity.drop : yr.opacity.combining : null;
|
|
6877
6877
|
}, wh = function(t) {
|
|
6878
6878
|
return t.forceShouldAnimate != null ? t.forceShouldAnimate : t.mode === "SNAP";
|
|
6879
6879
|
};
|
|
@@ -6927,9 +6927,9 @@ function Sh(e) {
|
|
|
6927
6927
|
shouldRespectForcePress: i,
|
|
6928
6928
|
isEnabled: l
|
|
6929
6929
|
};
|
|
6930
|
-
}, [o, l, i]), p = K(function(
|
|
6930
|
+
}, [o, l, i]), p = K(function(v) {
|
|
6931
6931
|
var g = a();
|
|
6932
|
-
return g || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot get dimension when no ref is set") : w()), Ch(r, g,
|
|
6932
|
+
return g || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot get dimension when no ref is set") : w()), Ch(r, g, v);
|
|
6933
6933
|
}, [r, a]), d = pe(function() {
|
|
6934
6934
|
return {
|
|
6935
6935
|
uniqueId: t,
|
|
@@ -6937,18 +6937,18 @@ function Sh(e) {
|
|
|
6937
6937
|
options: c,
|
|
6938
6938
|
getDimension: p
|
|
6939
6939
|
};
|
|
6940
|
-
}, [r, p, c, t]), u =
|
|
6940
|
+
}, [r, p, c, t]), u = ee(d), f = ee(!0);
|
|
6941
6941
|
Ue(function() {
|
|
6942
6942
|
return n.draggable.register(u.current), function() {
|
|
6943
6943
|
return n.draggable.unregister(u.current);
|
|
6944
6944
|
};
|
|
6945
6945
|
}, [n.draggable]), Ue(function() {
|
|
6946
|
-
if (
|
|
6947
|
-
|
|
6946
|
+
if (f.current) {
|
|
6947
|
+
f.current = !1;
|
|
6948
6948
|
return;
|
|
6949
6949
|
}
|
|
6950
|
-
var
|
|
6951
|
-
u.current = d, n.draggable.update(d,
|
|
6950
|
+
var v = u.current;
|
|
6951
|
+
u.current = d, n.draggable.update(d, v);
|
|
6952
6952
|
}, [d, n.draggable]);
|
|
6953
6953
|
}
|
|
6954
6954
|
function Ih(e, t, r) {
|
|
@@ -6963,7 +6963,7 @@ function Ih(e, t, r) {
|
|
|
6963
6963
|
}
|
|
6964
6964
|
function jh(e) {
|
|
6965
6965
|
qa(function() {
|
|
6966
|
-
var t =
|
|
6966
|
+
var t = ee(e);
|
|
6967
6967
|
Ar(function() {
|
|
6968
6968
|
e !== t.current && (process.env.NODE_ENV !== "production" ? w(!1, "Draggable isClone prop value changed during component life") : w(!1));
|
|
6969
6969
|
}, [e]);
|
|
@@ -6973,7 +6973,7 @@ function Oh(e) {
|
|
|
6973
6973
|
e.preventDefault();
|
|
6974
6974
|
}
|
|
6975
6975
|
function _h(e) {
|
|
6976
|
-
var t =
|
|
6976
|
+
var t = ee(null), r = K(function(I) {
|
|
6977
6977
|
t.current = I;
|
|
6978
6978
|
}, []), n = K(function() {
|
|
6979
6979
|
return t.current;
|
|
@@ -6984,7 +6984,7 @@ function _h(e) {
|
|
|
6984
6984
|
type: p,
|
|
6985
6985
|
droppableId: d
|
|
6986
6986
|
};
|
|
6987
|
-
}, [e.draggableId, e.index, p, d]),
|
|
6987
|
+
}, [e.draggableId, e.index, p, d]), f = e.children, v = 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 {
|
|
@@ -7003,26 +7003,26 @@ function _h(e) {
|
|
|
7003
7003
|
tabIndex: 0,
|
|
7004
7004
|
role: "button",
|
|
7005
7005
|
"aria-describedby": i,
|
|
7006
|
-
"data-rbd-drag-handle-draggable-id":
|
|
7006
|
+
"data-rbd-drag-handle-draggable-id": v,
|
|
7007
7007
|
"data-rbd-drag-handle-context-id": o,
|
|
7008
7008
|
draggable: !1,
|
|
7009
7009
|
onDragStart: Oh
|
|
7010
7010
|
} : null;
|
|
7011
|
-
}, [o, i,
|
|
7011
|
+
}, [o, i, v, g]), C = K(function(I) {
|
|
7012
7012
|
x.type === "DRAGGING" && x.dropping && I.propertyName === "transform" && N();
|
|
7013
7013
|
}, [N, x]), O = pe(function() {
|
|
7014
7014
|
var I = Eh(x), B = x.type === "DRAGGING" && x.dropping ? C : null, R = {
|
|
7015
7015
|
innerRef: r,
|
|
7016
7016
|
draggableProps: {
|
|
7017
7017
|
"data-rbd-draggable-context-id": o,
|
|
7018
|
-
"data-rbd-draggable-id":
|
|
7018
|
+
"data-rbd-draggable-id": v,
|
|
7019
7019
|
style: I,
|
|
7020
7020
|
onTransitionEnd: B
|
|
7021
7021
|
},
|
|
7022
7022
|
dragHandleProps: y
|
|
7023
7023
|
};
|
|
7024
7024
|
return R;
|
|
7025
|
-
}, [o, y,
|
|
7025
|
+
}, [o, y, v, x, C, r]), S = pe(function() {
|
|
7026
7026
|
return {
|
|
7027
7027
|
draggableId: u.id,
|
|
7028
7028
|
type: u.type,
|
|
@@ -7032,7 +7032,7 @@ function _h(e) {
|
|
|
7032
7032
|
}
|
|
7033
7033
|
};
|
|
7034
7034
|
}, [u.droppableId, u.id, u.index, u.type]);
|
|
7035
|
-
return
|
|
7035
|
+
return f(O, x.snapshot, S);
|
|
7036
7036
|
}
|
|
7037
7037
|
var kl = function(e, t) {
|
|
7038
7038
|
return e === t;
|
|
@@ -7083,15 +7083,15 @@ function Ah() {
|
|
|
7083
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
|
-
var
|
|
7087
|
-
if (
|
|
7086
|
+
var f = o.completed;
|
|
7087
|
+
if (f.result.draggableId !== i.draggableId)
|
|
7088
7088
|
return null;
|
|
7089
|
-
var
|
|
7089
|
+
var v = i.isClone, g = o.dimensions.draggables[i.draggableId], h = f.result, b = h.mode, m = Ml(h), x = Ph(h), N = o.dropDuration, D = {
|
|
7090
7090
|
duration: N,
|
|
7091
7091
|
curve: Fa.drop,
|
|
7092
7092
|
moveTo: o.newHomeClientOffset,
|
|
7093
|
-
opacity: x ?
|
|
7094
|
-
scale: x ?
|
|
7093
|
+
opacity: x ? yr.opacity.drop : null,
|
|
7094
|
+
scale: x ? yr.scale.drop : null
|
|
7095
7095
|
};
|
|
7096
7096
|
return {
|
|
7097
7097
|
mapped: {
|
|
@@ -7103,7 +7103,7 @@ function Ah() {
|
|
|
7103
7103
|
combineWith: x,
|
|
7104
7104
|
mode: b,
|
|
7105
7105
|
forceShouldAnimate: null,
|
|
7106
|
-
snapshot: t(b,
|
|
7106
|
+
snapshot: t(b, v, m, x, D)
|
|
7107
7107
|
}
|
|
7108
7108
|
};
|
|
7109
7109
|
}
|
|
@@ -7151,16 +7151,16 @@ function Bh() {
|
|
|
7151
7151
|
}), n = function(l) {
|
|
7152
7152
|
return l ? r(Te, l, !0) : null;
|
|
7153
7153
|
}, a = function(l, c, p, d) {
|
|
7154
|
-
var u = p.displaced.visible[l],
|
|
7154
|
+
var u = p.displaced.visible[l], f = !!(d.inVirtualList && d.effected[l]), v = fn(p), g = v && v.draggableId === l ? c : null;
|
|
7155
7155
|
if (!u) {
|
|
7156
|
-
if (!
|
|
7156
|
+
if (!f)
|
|
7157
7157
|
return n(g);
|
|
7158
7158
|
if (p.displaced.invisible[l])
|
|
7159
7159
|
return null;
|
|
7160
|
-
var h =
|
|
7160
|
+
var h = Yt(d.displacedBy.point), b = e(h.x, h.y);
|
|
7161
7161
|
return r(b, g, !0);
|
|
7162
7162
|
}
|
|
7163
|
-
if (
|
|
7163
|
+
if (f)
|
|
7164
7164
|
return n(g);
|
|
7165
7165
|
var m = p.displacedBy.point, x = e(m.x, m.y);
|
|
7166
7166
|
return r(x, g, u.shouldAnimate);
|
|
@@ -7201,9 +7201,9 @@ function Fh(e) {
|
|
|
7201
7201
|
}));
|
|
7202
7202
|
}
|
|
7203
7203
|
function Vh(e) {
|
|
7204
|
-
var t =
|
|
7204
|
+
var t = Q(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 =
|
|
7206
|
+
var r = t.contextId, n = t.isMovementAllowed, a = ee(null), o = ee(null), i = e.children, l = e.droppableId, c = e.type, p = e.mode, d = e.direction, u = e.ignoreContainerClipping, f = e.isDropDisabled, v = 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;
|
|
@@ -7227,8 +7227,8 @@ function Vh(e) {
|
|
|
7227
7227
|
type: c,
|
|
7228
7228
|
mode: p,
|
|
7229
7229
|
direction: d,
|
|
7230
|
-
isDropDisabled:
|
|
7231
|
-
isCombineEnabled:
|
|
7230
|
+
isDropDisabled: f,
|
|
7231
|
+
isCombineEnabled: v,
|
|
7232
7232
|
ignoreContainerClipping: u,
|
|
7233
7233
|
getDroppableRef: x
|
|
7234
7234
|
});
|
|
@@ -7274,7 +7274,7 @@ function Vh(e) {
|
|
|
7274
7274
|
}, function(H, _) {
|
|
7275
7275
|
return E(H, _, G);
|
|
7276
7276
|
});
|
|
7277
|
-
return
|
|
7277
|
+
return pr.createPortal(J, m());
|
|
7278
7278
|
}
|
|
7279
7279
|
return oe.createElement(Ja.Provider, {
|
|
7280
7280
|
value: B
|
|
@@ -7307,15 +7307,15 @@ var $n = function(t, r) {
|
|
|
7307
7307
|
}
|
|
7308
7308
|
};
|
|
7309
7309
|
}), a = Pe(function(i, l, c, p, d, u) {
|
|
7310
|
-
var
|
|
7311
|
-
if (
|
|
7310
|
+
var f = d.descriptor.id, v = d.descriptor.droppableId === i;
|
|
7311
|
+
if (v) {
|
|
7312
7312
|
var g = u ? {
|
|
7313
7313
|
render: u,
|
|
7314
7314
|
dragging: n(d.descriptor)
|
|
7315
7315
|
} : null, h = {
|
|
7316
7316
|
isDraggingOver: c,
|
|
7317
|
-
draggingOverWith: c ?
|
|
7318
|
-
draggingFromThisWith:
|
|
7317
|
+
draggingOverWith: c ? f : null,
|
|
7318
|
+
draggingFromThisWith: f,
|
|
7319
7319
|
isUsingPlaceholder: !0
|
|
7320
7320
|
};
|
|
7321
7321
|
return {
|
|
@@ -7331,7 +7331,7 @@ var $n = function(t, r) {
|
|
|
7331
7331
|
return t;
|
|
7332
7332
|
var b = {
|
|
7333
7333
|
isDraggingOver: c,
|
|
7334
|
-
draggingOverWith:
|
|
7334
|
+
draggingOverWith: f,
|
|
7335
7335
|
draggingFromThisWith: null,
|
|
7336
7336
|
isUsingPlaceholder: !0
|
|
7337
7337
|
};
|
|
@@ -7342,20 +7342,20 @@ var $n = function(t, r) {
|
|
|
7342
7342
|
useClone: null
|
|
7343
7343
|
};
|
|
7344
7344
|
}), o = function(l, c) {
|
|
7345
|
-
var p = c.droppableId, d = c.type, u = !c.isDropDisabled,
|
|
7345
|
+
var p = c.droppableId, d = c.type, u = !c.isDropDisabled, f = c.renderClone;
|
|
7346
7346
|
if (l.isDragging) {
|
|
7347
|
-
var
|
|
7348
|
-
if (!$n(d,
|
|
7347
|
+
var v = l.critical;
|
|
7348
|
+
if (!$n(d, v))
|
|
7349
7349
|
return r;
|
|
7350
|
-
var g = hi(
|
|
7351
|
-
return a(p, u, h, h, g,
|
|
7350
|
+
var g = hi(v, l.dimensions), h = We(l.impact) === p;
|
|
7351
|
+
return a(p, u, h, h, g, f);
|
|
7352
7352
|
}
|
|
7353
7353
|
if (l.phase === "DROP_ANIMATING") {
|
|
7354
7354
|
var b = l.completed;
|
|
7355
7355
|
if (!$n(d, b.critical))
|
|
7356
7356
|
return r;
|
|
7357
7357
|
var m = hi(b.critical, l.dimensions);
|
|
7358
|
-
return a(p, u, Ml(b.result) === p, We(b.impact) === p, m,
|
|
7358
|
+
return a(p, u, Ml(b.result) === p, We(b.impact) === p, m, f);
|
|
7359
7359
|
}
|
|
7360
7360
|
if (l.phase === "IDLE" && l.completed && !l.shouldFlush) {
|
|
7361
7361
|
var x = l.completed;
|
|
@@ -7426,7 +7426,7 @@ var $l = function(e) {
|
|
|
7426
7426
|
}, {
|
|
7427
7427
|
key: "render",
|
|
7428
7428
|
value: function() {
|
|
7429
|
-
return Hh ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)),
|
|
7429
|
+
return Hh ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), pr.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
|
|
7430
7430
|
}
|
|
7431
7431
|
}]), t;
|
|
7432
7432
|
}(oe.Component);
|
|
@@ -7477,14 +7477,14 @@ var Gl = function(e) {
|
|
|
7477
7477
|
}, {
|
|
7478
7478
|
key: "componentWillUnmount",
|
|
7479
7479
|
value: function() {
|
|
7480
|
-
|
|
7480
|
+
pr.unmountComponentAtNode(this.defaultNode || this.props.node), this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null, this.portal = null;
|
|
7481
7481
|
}
|
|
7482
7482
|
}, {
|
|
7483
7483
|
key: "renderPortal",
|
|
7484
7484
|
value: function(n) {
|
|
7485
7485
|
!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode));
|
|
7486
7486
|
var a = this.props.children;
|
|
7487
|
-
typeof this.props.children.type == "function" && (a = oe.cloneElement(this.props.children)), this.portal =
|
|
7487
|
+
typeof this.props.children.type == "function" && (a = oe.cloneElement(this.props.children)), this.portal = pr.unstable_renderSubtreeIntoContainer(this, a, this.props.node || this.defaultNode);
|
|
7488
7488
|
}
|
|
7489
7489
|
}, {
|
|
7490
7490
|
key: "render",
|
|
@@ -7498,7 +7498,7 @@ Gl.propTypes = {
|
|
|
7498
7498
|
node: rt.any
|
|
7499
7499
|
};
|
|
7500
7500
|
var ia = void 0;
|
|
7501
|
-
|
|
7501
|
+
pr.createPortal ? ia = $l : ia = Gl;
|
|
7502
7502
|
const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }) => /* @__PURE__ */ s.jsx("img", { ...o, alt: t ?? "", src: e ?? a }), eb = ({ children: e, ...t }) => {
|
|
7503
7503
|
const [r, n] = M(!1);
|
|
7504
7504
|
return $(() => {
|
|
@@ -7525,8 +7525,8 @@ 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: d, ImgComponent: u = Wl, onChangeOrder:
|
|
7529
|
-
const
|
|
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: f }) => {
|
|
7529
|
+
const v = yd(), [g, h] = M(r);
|
|
7530
7530
|
$(() => {
|
|
7531
7531
|
h(r);
|
|
7532
7532
|
}, [r]);
|
|
@@ -7555,7 +7555,7 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7555
7555
|
if (!S.destination)
|
|
7556
7556
|
return;
|
|
7557
7557
|
const I = C(S.source.index, S.destination.index);
|
|
7558
|
-
|
|
7558
|
+
f && f(S.draggableId, S.destination.index), h(I);
|
|
7559
7559
|
};
|
|
7560
7560
|
return Vc(y), /* @__PURE__ */ s.jsxs(ia, { children: [
|
|
7561
7561
|
/* @__PURE__ */ s.jsx($c, { show: e, onClick: t }),
|
|
@@ -7586,7 +7586,7 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
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
|
-
g.map((I, B) => /* @__PURE__ */ s.jsx(Fh, { draggableId: I.id, index: B, isDragDisabled:
|
|
7589
|
+
g.map((I, B) => /* @__PURE__ */ s.jsx(Fh, { draggableId: I.id, index: B, isDragDisabled: f === void 0, children: v((R) => /* @__PURE__ */ s.jsxs("div", { ref: R.innerRef, ...R.draggableProps, ...R.dragHandleProps, role: "button", onClick: () => m(B), className: j(Ve.lightboxDraggablePhoto), children: [
|
|
7590
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
7592
|
}), baseUrl: c, customToken: p, placeholder: d }, I.id),
|
|
@@ -7597,14 +7597,14 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7597
7597
|
] }) })
|
|
7598
7598
|
] });
|
|
7599
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
|
-
const [
|
|
7600
|
+
const [f, v] = M(null), g = f !== null ? e[f] : null, [h, b] = M(!1);
|
|
7601
7601
|
return $(() => {
|
|
7602
7602
|
if (e.length === 0) {
|
|
7603
|
-
|
|
7603
|
+
v(null);
|
|
7604
7604
|
return;
|
|
7605
7605
|
}
|
|
7606
7606
|
const m = e.findIndex((x) => x.isDefault);
|
|
7607
|
-
|
|
7607
|
+
v(m > -1 ? m : 0);
|
|
7608
7608
|
}, [e]), !g && t && p ? /* @__PURE__ */ s.jsx(Ss, { accept: ".jpg,.jpeg,.png", onUpload: (m) => {
|
|
7609
7609
|
m.length > 0 && t(Array.from(m));
|
|
7610
7610
|
}, icon: /* @__PURE__ */ s.jsx(Ki, { style: { fontSize: 18 } }), multiple: !0, children: r ?? null }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -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 && !d, onClose: () => b(!1), photos: e, defaultIndex:
|
|
7621
|
+
/* @__PURE__ */ s.jsx(pb, { show: h && !d, onClose: () => b(!1), photos: e, defaultIndex: f ?? 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
7624
|
var c, p, d;
|
|
7625
|
-
const { useMsal: t, msalScopes: r, msalExtraScopes: n } =
|
|
7625
|
+
const { useMsal: t, msalScopes: r, msalExtraScopes: n } = Q(Uc), { isAuthenticated: a } = Hc(), { userLoginState: o } = Q(qt), 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,
|
|
@@ -7637,7 +7637,7 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7637
7637
|
"type-icon": "_type-icon_z9z4m_28",
|
|
7638
7638
|
typeIcon: xb
|
|
7639
7639
|
}, yb = ({ level: e, children: t, customIcon: r, noIcon: n }) => {
|
|
7640
|
-
const { ProjectIconComponent: a } =
|
|
7640
|
+
const { ProjectIconComponent: a } = Q(ve), o = P(() => {
|
|
7641
7641
|
switch (e) {
|
|
7642
7642
|
case "info":
|
|
7643
7643
|
return /* @__PURE__ */ s.jsx(a, { icon: "info" });
|
|
@@ -7687,8 +7687,8 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7687
7687
|
stepIcon: _b
|
|
7688
7688
|
}, qy = ({ steps: e }) => /* @__PURE__ */ s.jsx("div", { className: _t.timeline, children: e.sort((t, r) => Ed(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ s.jsxs("div", { className: j("row g-0 gx-3", _t.stepContainer), children: [
|
|
7689
7689
|
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ s.jsxs(ae, { variant: "caption", className: j("h-100 d-flex flex-column align-items-end justify-content-center gap-0", _t.stepDate), children: [
|
|
7690
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
7691
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
7690
|
+
/* @__PURE__ */ s.jsx("div", { children: dr(t.date, "dd.MM.yyyy") }),
|
|
7691
|
+
/* @__PURE__ */ s.jsx("div", { children: dr(t.date, "HH:mm") })
|
|
7692
7692
|
] }) }),
|
|
7693
7693
|
/* @__PURE__ */ s.jsx("div", { className: "col-9", children: /* @__PURE__ */ s.jsxs("div", { className: j("h-100 d-flex flex-column gap-1 border-start border-2 p-3", _t.stepContent), children: [
|
|
7694
7694
|
/* @__PURE__ */ s.jsxs("div", { className: j("d-flex gap-2 align-items-center", _t.contentHeader), children: [
|
|
@@ -7724,23 +7724,23 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7724
7724
|
};
|
|
7725
7725
|
}, [i]), l === null && !a ? null : /* @__PURE__ */ s.jsx("img", { ...o, alt: t ?? "", src: l ?? a });
|
|
7726
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 =
|
|
7727
|
+
const u = ee(null);
|
|
7728
7728
|
return $(() => {
|
|
7729
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: (
|
|
7731
|
-
var
|
|
7732
|
-
n && n(((
|
|
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: (f) => {
|
|
7731
|
+
var v;
|
|
7732
|
+
n && n(((v = f.target) == null ? void 0 : v.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: d, dropdownItemsNameWidth: u, additionalColumns:
|
|
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: f, hidden: v, 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) => {
|
|
7738
7738
|
G(!1), E(L);
|
|
7739
|
-
}, [E]), H =
|
|
7739
|
+
}, [E]), H = ee(null), _ = r !== void 0, T = _ && i !== null, W = Y(() => {
|
|
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:
|
|
7743
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: v, 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(
|
|
@@ -7761,7 +7761,7 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7761
7761
|
"luminus-dropdown-picker-disabled": g,
|
|
7762
7762
|
"luminus-dropdown-picker-link": T
|
|
7763
7763
|
}),
|
|
7764
|
-
hidden:
|
|
7764
|
+
hidden: v,
|
|
7765
7765
|
children: [
|
|
7766
7766
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
7767
7767
|
i && /* @__PURE__ */ s.jsx("option", { value: i.id ?? void 0, children: W })
|
|
@@ -7775,15 +7775,15 @@ 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: u, additionalColumns:
|
|
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: f, 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: d, debounceMs: u, minLength:
|
|
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: f, maxLength: v, className: g, hint: h }) => {
|
|
7781
7781
|
const b = P(() => {
|
|
7782
7782
|
if (!r)
|
|
7783
7783
|
return;
|
|
7784
7784
|
const C = i ?? null;
|
|
7785
7785
|
r((C == null ? void 0 : C.toString()) ?? "");
|
|
7786
|
-
}, [i, r]), m =
|
|
7786
|
+
}, [i, r]), m = ee(null), [x, N] = M((t == null ? void 0 : t.toString()) ?? ""), D = P((C) => {
|
|
7787
7787
|
const O = C;
|
|
7788
7788
|
r && r(O || null);
|
|
7789
7789
|
}, [r]), y = P((C) => {
|
|
@@ -7800,18 +7800,18 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7800
7800
|
return $(() => {
|
|
7801
7801
|
N(t === null ? "" : t.toString());
|
|
7802
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:
|
|
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: f, maxLength: v }),
|
|
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: d, clearValue: u, className:
|
|
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: f, step: v, stepperStep: g = 1, min: h, max: b, hint: m }) => {
|
|
7807
7807
|
const x = P(() => {
|
|
7808
7808
|
if (!r)
|
|
7809
7809
|
return;
|
|
7810
7810
|
const S = u ?? null;
|
|
7811
7811
|
r(S ? Number(S) : null);
|
|
7812
|
-
}, [u, r]), N =
|
|
7812
|
+
}, [u, r]), N = ee(null), [D, y] = M((t == null ? void 0 : t.toString()) ?? ""), C = P((S) => {
|
|
7813
7813
|
const I = S;
|
|
7814
|
-
r && r(I == null || I === "" ? null :
|
|
7814
|
+
r && r(I == null || I === "" ? null : ir(Number(I), h, b));
|
|
7815
7815
|
}, [b, h, r]), O = P((S) => {
|
|
7816
7816
|
var B;
|
|
7817
7817
|
const I = (B = S.target) == null ? void 0 : B.value;
|
|
@@ -7819,14 +7819,14 @@ const Wl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }
|
|
|
7819
7819
|
C(I);
|
|
7820
7820
|
return;
|
|
7821
7821
|
}
|
|
7822
|
-
y(
|
|
7822
|
+
y(ir(Number(I), h, b).toString()), N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
|
|
7823
7823
|
C(I);
|
|
7824
7824
|
}, n);
|
|
7825
7825
|
}, [n, C, b, h]);
|
|
7826
7826
|
return $(() => {
|
|
7827
|
-
y(t === null ? "" :
|
|
7828
|
-
}, [b, h, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className:
|
|
7829
|
-
/* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? D : t ?? "", onChange: O, className: `luminus-numeric-stepper ${
|
|
7827
|
+
y(t === null ? "" : ir(t, h, b).toString());
|
|
7828
|
+
}, [b, h, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className: f, disabled: p, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
7829
|
+
/* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? D : t ?? "", onChange: O, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: p ?? !1, step: v }),
|
|
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());
|
|
7832
7832
|
}, children: /* @__PURE__ */ s.jsx(Qi, {}) }) }),
|
|
@@ -7845,10 +7845,10 @@ function Ul(e, t) {
|
|
|
7845
7845
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
7846
7846
|
return r;
|
|
7847
7847
|
}
|
|
7848
|
-
var
|
|
7848
|
+
var Dr;
|
|
7849
7849
|
(function(e) {
|
|
7850
7850
|
e.event = "event", e.props = "prop";
|
|
7851
|
-
})(
|
|
7851
|
+
})(Dr || (Dr = {}));
|
|
7852
7852
|
function ft() {
|
|
7853
7853
|
}
|
|
7854
7854
|
function Ab(e) {
|
|
@@ -7860,7 +7860,7 @@ function Ab(e) {
|
|
|
7860
7860
|
}) || (t = n, r = e.apply(void 0, n)), r;
|
|
7861
7861
|
};
|
|
7862
7862
|
}
|
|
7863
|
-
function
|
|
7863
|
+
function Nr(e) {
|
|
7864
7864
|
return !!(e || "").match(/\d/);
|
|
7865
7865
|
}
|
|
7866
7866
|
function Gt(e) {
|
|
@@ -7891,9 +7891,9 @@ function kb(e, t, r) {
|
|
|
7891
7891
|
return a = a === -1 ? e.length : a, e.substring(0, a) + e.substring(a, e.length).replace(n, "$1" + t);
|
|
7892
7892
|
}
|
|
7893
7893
|
function Mb(e) {
|
|
7894
|
-
var t =
|
|
7894
|
+
var t = ee(e);
|
|
7895
7895
|
t.current = e;
|
|
7896
|
-
var r =
|
|
7896
|
+
var r = ee(function() {
|
|
7897
7897
|
for (var n = [], a = arguments.length; a--; ) n[a] = arguments[a];
|
|
7898
7898
|
return t.current.apply(t, n);
|
|
7899
7899
|
});
|
|
@@ -7944,8 +7944,8 @@ function wi(e, t, r) {
|
|
|
7944
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
7946
|
}, d[0]));
|
|
7947
|
-
var
|
|
7948
|
-
return "" +
|
|
7947
|
+
var f = ql(d[1] || "", t, r), v = l ? "-" : "", g = n ? "." : "";
|
|
7948
|
+
return "" + v + u + g + f;
|
|
7949
7949
|
}
|
|
7950
7950
|
function Rt(e, t) {
|
|
7951
7951
|
if (e.value = e.value, e !== null) {
|
|
@@ -8004,28 +8004,28 @@ 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, d = e.length, u = {},
|
|
8008
|
-
v
|
|
8007
|
+
for (var p = r.length, d = e.length, u = {}, f = new Array(p), v = 0; v < p; v++) {
|
|
8008
|
+
f[v] = -1;
|
|
8009
8009
|
for (var g = 0, h = d; g < h; g++) {
|
|
8010
8010
|
var b = i({
|
|
8011
8011
|
currentValue: r,
|
|
8012
8012
|
lastValue: t,
|
|
8013
8013
|
formattedValue: e,
|
|
8014
|
-
currentValueIndex:
|
|
8014
|
+
currentValueIndex: v,
|
|
8015
8015
|
formattedValueIndex: g
|
|
8016
8016
|
});
|
|
8017
8017
|
if (b && u[g] !== !0) {
|
|
8018
|
-
v
|
|
8018
|
+
f[v] = g, u[g] = !0;
|
|
8019
8019
|
break;
|
|
8020
8020
|
}
|
|
8021
8021
|
}
|
|
8022
8022
|
}
|
|
8023
|
-
for (var m = n; m < p && (
|
|
8023
|
+
for (var m = n; m < p && (f[m] === -1 || !o(r[m])); )
|
|
8024
8024
|
m++;
|
|
8025
|
-
var x = m === p ||
|
|
8026
|
-
for (m = n - 1; m > 0 &&
|
|
8025
|
+
var x = m === p || f[m] === -1 ? d : f[m];
|
|
8026
|
+
for (m = n - 1; m > 0 && f[m] === -1; )
|
|
8027
8027
|
m--;
|
|
8028
|
-
var N = m === -1 ||
|
|
8028
|
+
var N = m === -1 || f[m] === -1 ? 0 : f[m] + 1;
|
|
8029
8029
|
return N > x ? x : n - N < x - n ? N : x;
|
|
8030
8030
|
}
|
|
8031
8031
|
function Di(e, t, r, n) {
|
|
@@ -8045,7 +8045,7 @@ function Hb(e) {
|
|
|
8045
8045
|
for (var t = Array.from({ length: e.length + 1 }).map(function() {
|
|
8046
8046
|
return !0;
|
|
8047
8047
|
}), r = 0, n = t.length; r < n; r++)
|
|
8048
|
-
t[r] = !!(
|
|
8048
|
+
t[r] = !!(Nr(e[r]) || Nr(e[r - 1]));
|
|
8049
8049
|
return t;
|
|
8050
8050
|
}
|
|
8051
8051
|
function Xl(e, t, r, n, a, o) {
|
|
@@ -8060,12 +8060,12 @@ function Xl(e, t, r, n, a, o) {
|
|
|
8060
8060
|
formattedValue: g.formattedValue,
|
|
8061
8061
|
numAsString: g.value
|
|
8062
8062
|
}), o(g, h);
|
|
8063
|
-
}, u = e,
|
|
8064
|
-
Gt(e) && (u = c.numAsString,
|
|
8065
|
-
var
|
|
8063
|
+
}, u = e, f = r;
|
|
8064
|
+
Gt(e) && (u = c.numAsString, f = !0);
|
|
8065
|
+
var v = i(u, f);
|
|
8066
8066
|
return Y(function() {
|
|
8067
|
-
p(
|
|
8068
|
-
}, [
|
|
8067
|
+
p(v);
|
|
8068
|
+
}, [v.formattedValue]), [c, d];
|
|
8069
8069
|
}
|
|
8070
8070
|
function zb(e) {
|
|
8071
8071
|
return e.replace(/[^0-9]/g, "");
|
|
@@ -8082,10 +8082,10 @@ 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, d = e.onValueChange, u = e.isAllowed,
|
|
8086
|
-
v === void 0 && (v = ft);
|
|
8087
|
-
var f = e.onKeyDown;
|
|
8085
|
+
var c = e.defaultValue, p = e.valueIsNumericString, d = e.onValueChange, u = e.isAllowed, f = e.onChange;
|
|
8088
8086
|
f === void 0 && (f = ft);
|
|
8087
|
+
var v = e.onKeyDown;
|
|
8088
|
+
v === void 0 && (v = ft);
|
|
8089
8089
|
var g = e.onMouseUp;
|
|
8090
8090
|
g === void 0 && (g = ft);
|
|
8091
8091
|
var h = e.onFocus;
|
|
@@ -8095,10 +8095,10 @@ function Yb(e) {
|
|
|
8095
8095
|
var m = e.value, x = e.getCaretBoundary;
|
|
8096
8096
|
x === void 0 && (x = Hb);
|
|
8097
8097
|
var N = e.isValidInputCharacter;
|
|
8098
|
-
N === void 0 && (N =
|
|
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 =
|
|
8098
|
+
N === void 0 && (N = Nr);
|
|
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 = ee(), G = ee({ formattedValue: S, numAsString: I }), E = function(A, F) {
|
|
8100
8100
|
G.current = { formattedValue: A.formattedValue, numAsString: A.value }, B(A, F);
|
|
8101
|
-
}, J = M(!1), H = J[0], _ = J[1], T =
|
|
8101
|
+
}, J = M(!1), H = J[0], _ = J[1], T = ee(null), W = ee({
|
|
8102
8102
|
setCaretTimeout: null,
|
|
8103
8103
|
focusTimeout: null
|
|
8104
8104
|
});
|
|
@@ -8108,36 +8108,36 @@ function Yb(e) {
|
|
|
8108
8108
|
};
|
|
8109
8109
|
}, []);
|
|
8110
8110
|
var L = i, X = function(A, F) {
|
|
8111
|
-
var
|
|
8111
|
+
var Z = parseFloat(F);
|
|
8112
8112
|
return {
|
|
8113
8113
|
formattedValue: A,
|
|
8114
8114
|
value: F,
|
|
8115
|
-
floatValue: isNaN(
|
|
8115
|
+
floatValue: isNaN(Z) ? void 0 : Z
|
|
8116
8116
|
};
|
|
8117
|
-
}, U = function(A, F,
|
|
8117
|
+
}, U = function(A, F, Z) {
|
|
8118
8118
|
A.selectionStart === 0 && A.selectionEnd === A.value.length || (Rt(A, F), W.current.setCaretTimeout = setTimeout(function() {
|
|
8119
|
-
A.value ===
|
|
8119
|
+
A.value === Z && A.selectionStart !== F && Rt(A, F);
|
|
8120
8120
|
}, 0));
|
|
8121
|
-
}, re = function(A, F,
|
|
8122
|
-
return Di(A, F, x(A),
|
|
8123
|
-
}, le = function(A, F,
|
|
8124
|
-
var ge = x(F), Ce = Ub(F, S, A,
|
|
8121
|
+
}, re = function(A, F, Z) {
|
|
8122
|
+
return Di(A, F, x(A), Z);
|
|
8123
|
+
}, le = function(A, F, Z) {
|
|
8124
|
+
var ge = x(F), Ce = Ub(F, S, A, Z, ge, N, D);
|
|
8125
8125
|
return Ce = Di(F, Ce, ge), Ce;
|
|
8126
8126
|
}, ie = function(A) {
|
|
8127
8127
|
var F = A.formattedValue;
|
|
8128
8128
|
F === void 0 && (F = "");
|
|
8129
|
-
var
|
|
8130
|
-
if (
|
|
8131
|
-
var Be = A.inputValue ||
|
|
8132
|
-
|
|
8129
|
+
var Z = A.input, ge = A.source, Ce = A.event, he = A.numAsString, ce;
|
|
8130
|
+
if (Z) {
|
|
8131
|
+
var Be = A.inputValue || Z.value, Xe = Wn(Z);
|
|
8132
|
+
Z.value = F, ce = le(Be, F, Xe), ce !== void 0 && U(Z, ce, F);
|
|
8133
8133
|
}
|
|
8134
8134
|
F !== S && E(X(F, he), { event: Ce, source: ge });
|
|
8135
8135
|
};
|
|
8136
8136
|
$(function() {
|
|
8137
|
-
var A = G.current, F = A.formattedValue,
|
|
8138
|
-
(S !== F || I !==
|
|
8137
|
+
var A = G.current, F = A.formattedValue, Z = A.numAsString;
|
|
8138
|
+
(S !== F || I !== Z) && E(X(S, I), {
|
|
8139
8139
|
event: void 0,
|
|
8140
|
-
source:
|
|
8140
|
+
source: Dr.props
|
|
8141
8141
|
});
|
|
8142
8142
|
}, [S, I]);
|
|
8143
8143
|
var k = T.current ? Wn(T.current) : void 0, q = typeof window < "u" ? ba : $;
|
|
@@ -8148,7 +8148,7 @@ function Yb(e) {
|
|
|
8148
8148
|
A.value = S, U(A, F, S);
|
|
8149
8149
|
}
|
|
8150
8150
|
}, [S]);
|
|
8151
|
-
var fe = function(A, F,
|
|
8151
|
+
var fe = function(A, F, Z) {
|
|
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
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);
|
|
@@ -8159,53 +8159,53 @@ function Yb(e) {
|
|
|
8159
8159
|
numAsString: ce,
|
|
8160
8160
|
inputValue: A,
|
|
8161
8161
|
event: F,
|
|
8162
|
-
source:
|
|
8162
|
+
source: Z,
|
|
8163
8163
|
input: F.target
|
|
8164
8164
|
}), !0;
|
|
8165
8165
|
}, de = function(A, F) {
|
|
8166
8166
|
F === void 0 && (F = 0);
|
|
8167
|
-
var
|
|
8168
|
-
R.current = { selectionStart:
|
|
8167
|
+
var Z = A.selectionStart, ge = A.selectionEnd;
|
|
8168
|
+
R.current = { selectionStart: Z, selectionEnd: ge + F };
|
|
8169
8169
|
}, z = function(A) {
|
|
8170
|
-
var F = A.target,
|
|
8171
|
-
ge &&
|
|
8170
|
+
var F = A.target, Z = F.value, ge = fe(Z, A, Dr.event);
|
|
8171
|
+
ge && f(A), R.current = void 0;
|
|
8172
8172
|
}, ue = function(A) {
|
|
8173
|
-
var F = A.target,
|
|
8173
|
+
var F = A.target, Z = A.key, ge = F.selectionStart, Ce = F.selectionEnd, he = F.value;
|
|
8174
8174
|
he === void 0 && (he = "");
|
|
8175
8175
|
var ce;
|
|
8176
|
-
|
|
8176
|
+
Z === "ArrowLeft" || Z === "Backspace" ? ce = Math.max(ge - 1, 0) : Z === "ArrowRight" ? ce = Math.min(ge + 1, he.length) : Z === "Delete" && (ce = ge);
|
|
8177
8177
|
var Be = 0;
|
|
8178
|
-
|
|
8179
|
-
var Xe =
|
|
8178
|
+
Z === "Delete" && ge === Ce && (Be = 1);
|
|
8179
|
+
var Xe = Z === "ArrowLeft" || Z === "ArrowRight";
|
|
8180
8180
|
if (ce === void 0 || ge !== Ce && !Xe) {
|
|
8181
|
-
|
|
8181
|
+
v(A), de(F, Be);
|
|
8182
8182
|
return;
|
|
8183
8183
|
}
|
|
8184
8184
|
var Je = ce;
|
|
8185
8185
|
if (Xe) {
|
|
8186
|
-
var Lt =
|
|
8186
|
+
var Lt = Z === "ArrowLeft" ? "left" : "right";
|
|
8187
8187
|
Je = re(he, ce, Lt), Je !== ce && A.preventDefault();
|
|
8188
|
-
} else
|
|
8189
|
-
Je !== ce && U(F, Je, he),
|
|
8188
|
+
} else Z === "Delete" && !N(he[ce]) ? Je = re(he, ce, "right") : Z === "Backspace" && !N(he[ce]) && (Je = re(he, ce, "left"));
|
|
8189
|
+
Je !== ce && U(F, Je, he), v(A), de(F, Be);
|
|
8190
8190
|
}, V = function(A) {
|
|
8191
|
-
var F = A.target,
|
|
8191
|
+
var F = A.target, Z = function() {
|
|
8192
8192
|
var ge = F.selectionStart, Ce = F.selectionEnd, he = F.value;
|
|
8193
8193
|
if (he === void 0 && (he = ""), ge === Ce) {
|
|
8194
8194
|
var ce = re(he, ge);
|
|
8195
8195
|
ce !== ge && U(F, ce, he);
|
|
8196
8196
|
}
|
|
8197
8197
|
};
|
|
8198
|
-
|
|
8199
|
-
|
|
8198
|
+
Z(), requestAnimationFrame(function() {
|
|
8199
|
+
Z();
|
|
8200
8200
|
}), g(A), de(F);
|
|
8201
8201
|
}, Me = function(A) {
|
|
8202
8202
|
A.persist && A.persist();
|
|
8203
|
-
var F = A.target,
|
|
8203
|
+
var F = A.target, Z = A.currentTarget;
|
|
8204
8204
|
T.current = F, W.current.focusTimeout = setTimeout(function() {
|
|
8205
8205
|
var ge = F.selectionStart, Ce = F.selectionEnd, he = F.value;
|
|
8206
8206
|
he === void 0 && (he = "");
|
|
8207
8207
|
var ce = re(he, ge);
|
|
8208
|
-
ce !== ge && !(ge === 0 && Ce === he.length) && U(F, ce, he), h(Object.assign(Object.assign({}, A), { currentTarget:
|
|
8208
|
+
ce !== ge && !(ge === 0 && Ce === he.length) && U(F, ce, he), h(Object.assign(Object.assign({}, A), { currentTarget: Z }));
|
|
8209
8209
|
}, 0);
|
|
8210
8210
|
}, Le = function(A) {
|
|
8211
8211
|
T.current = null, clearTimeout(W.current.focusTimeout), clearTimeout(W.current.setCaretTimeout), b(A);
|
|
@@ -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, d = c.decimalSeparator, u = r !== 0 && e.indexOf(".") !== -1 || r && n,
|
|
8238
|
-
return r !== void 0 && (g = ql(g, r, !!n)), p && (
|
|
8237
|
+
var c = bn(t), p = c.thousandSeparator, d = c.decimalSeparator, u = r !== 0 && e.indexOf(".") !== -1 || r && n, f = Qa(e, i), v = f.beforeDecimal, g = f.afterDecimal, h = f.addNegation;
|
|
8238
|
+
return r !== void 0 && (g = ql(g, r, !!n)), p && (v = kb(v, p, l)), a && (v = a + v), o && (g = g + o), h && (v = "-" + v), e = v + (u && d || "") + g, e;
|
|
8239
8239
|
}
|
|
8240
8240
|
function bn(e) {
|
|
8241
8241
|
var t = e.decimalSeparator;
|
|
@@ -8265,10 +8265,10 @@ 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, d = p.start, u = p.end,
|
|
8269
|
-
if (
|
|
8268
|
+
var l = r.decimalScale, c = t.from, p = t.to, d = p.start, u = p.end, f = bn(r), v = f.allowedDecimalSeparators, g = f.decimalSeparator, h = e[u] === g;
|
|
8269
|
+
if (Nr(e) && (e === o || e === i) && t.lastValue === "")
|
|
8270
8270
|
return e;
|
|
8271
|
-
if (u - d === 1 &&
|
|
8271
|
+
if (u - d === 1 && v.indexOf(e[d]) !== -1) {
|
|
8272
8272
|
var b = l === 0 ? "" : g;
|
|
8273
8273
|
e = e.substring(0, d) + b + e.substring(d + 1, e.length);
|
|
8274
8274
|
}
|
|
@@ -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 d = e.defaultValue, u = e.value,
|
|
8331
|
+
var d = e.defaultValue, u = e.value, f = e.valueIsNumericString, v = 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(u) ? d : u, y =
|
|
8335
|
+
}, D = Gt(u) ? d : u, y = f ?? Jb(D, p, t);
|
|
8336
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(u), C(d), !!y, x, N,
|
|
8339
|
+
}, O = Xl(C(u), C(d), !!y, x, N, v), 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();
|
|
@@ -8359,12 +8359,12 @@ function tx(e) {
|
|
|
8359
8359
|
floatValue: parseFloat(T)
|
|
8360
8360
|
}, {
|
|
8361
8361
|
event: _,
|
|
8362
|
-
source:
|
|
8362
|
+
source: Dr.event
|
|
8363
8363
|
});
|
|
8364
8364
|
}
|
|
8365
8365
|
o(_);
|
|
8366
8366
|
}, J = function(_) {
|
|
8367
|
-
return _ === b ? !0 :
|
|
8367
|
+
return _ === b ? !0 : Nr(_);
|
|
8368
8368
|
}, H = function(_) {
|
|
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;
|
|
@@ -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: d, clearValue: u, className:
|
|
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: f, step: v, 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
8397
|
const G = u ?? null;
|
|
8398
8398
|
r(G ? Number(G) : null);
|
|
8399
|
-
}, [u, r]), O =
|
|
8399
|
+
}, [u, r]), O = ee(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,12 +8416,12 @@ 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:
|
|
8419
|
+
}, [t, D, N, r]), /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, className: f, 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
|
-
}), step:
|
|
8424
|
+
}), step: v, 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 }) => {
|
|
@@ -8445,7 +8445,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8445
8445
|
t.setUTCMonth(t.getUTCMonth() + 1), t.setUTCDate(t.getUTCDate() - 1);
|
|
8446
8446
|
const n = gt(t.toISOString());
|
|
8447
8447
|
return { from: r, to: n };
|
|
8448
|
-
},
|
|
8448
|
+
}, cr = (e) => {
|
|
8449
8449
|
const t = new Date(e), r = gt(t.toISOString());
|
|
8450
8450
|
t.setUTCFullYear(t.getUTCFullYear() + 1), t.setUTCDate(t.getUTCDate() - 1);
|
|
8451
8451
|
const n = gt(t.toISOString());
|
|
@@ -8456,7 +8456,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8456
8456
|
if (e === t)
|
|
8457
8457
|
return "D";
|
|
8458
8458
|
const r = new Date(e);
|
|
8459
|
-
return qr(r).to === t ? "M" :
|
|
8459
|
+
return qr(r).to === t ? "M" : cr(r).to === t ? "Y" : (console.log(cr(r), t), "C");
|
|
8460
8460
|
}, sx = (e, t, r) => {
|
|
8461
8461
|
const n = P((i, l) => {
|
|
8462
8462
|
if (e === "C") {
|
|
@@ -8476,7 +8476,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8476
8476
|
to: d
|
|
8477
8477
|
};
|
|
8478
8478
|
}
|
|
8479
|
-
return e === "M" ? qr(p) : e === "Y" ?
|
|
8479
|
+
return e === "M" ? qr(p) : e === "Y" ? cr(p) : c;
|
|
8480
8480
|
});
|
|
8481
8481
|
break;
|
|
8482
8482
|
case "to":
|
|
@@ -8498,7 +8498,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8498
8498
|
to: d
|
|
8499
8499
|
};
|
|
8500
8500
|
}
|
|
8501
|
-
return e === "M" ? (c.setMonth(c.getMonth() + i), qr(c)) : e === "Y" ? (c.setFullYear(c.getFullYear() + i),
|
|
8501
|
+
return e === "M" ? (c.setMonth(c.getMonth() + i), qr(c)) : e === "Y" ? (c.setFullYear(c.getFullYear() + i), cr(c)) : {
|
|
8502
8502
|
from: gt(c.toISOString()),
|
|
8503
8503
|
to: gt(p.toISOString())
|
|
8504
8504
|
};
|
|
@@ -8513,42 +8513,42 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8513
8513
|
if (l.from === null)
|
|
8514
8514
|
return l;
|
|
8515
8515
|
const c = Kc(new Date(l.from).getFullYear());
|
|
8516
|
-
return
|
|
8516
|
+
return cr(c);
|
|
8517
8517
|
}), t(i);
|
|
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 } =
|
|
8521
|
+
const { texts: { date: a }, ProjectIconComponent: o } = Q(ve), [i, l] = M("C"), { handleArrowClick: c, handleRangeChange: p, setFromToProp: d } = sx(i, l, t), u = Y(() => i === "C", [i]), f = ee(!0);
|
|
8522
8522
|
return $(() => {
|
|
8523
|
-
if (
|
|
8524
|
-
const
|
|
8525
|
-
l(
|
|
8523
|
+
if (f.current) {
|
|
8524
|
+
const v = ix(e.from, e.to);
|
|
8525
|
+
l(v), f.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
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: (
|
|
8533
|
-
/* @__PURE__ */ s.jsx(
|
|
8534
|
-
/* @__PURE__ */ s.jsx(mt, { type: "date", value: e.to, onChange: (
|
|
8532
|
+
/* @__PURE__ */ s.jsx(mt, { type: "date", value: e.from, onChange: (v) => d("from", v === null ? null : v.toString()), InputContainer: Qe, size: n }),
|
|
8533
|
+
/* @__PURE__ */ s.jsx(Er, { toggle: /* @__PURE__ */ s.jsx(Cr, { text: a[Ei.find((v) => v[0] === i)[1]].substring(0, 1), as: Xc }), children: Ei.map((v) => /* @__PURE__ */ s.jsx(nt, { disabled: v[0] === i, className: j(v[0] === i ? "text-black-50" : ""), onClick: () => p(v[0]), role: "button", children: a[v[1]] }, v[0])) }),
|
|
8534
|
+
/* @__PURE__ */ s.jsx(mt, { type: "date", value: e.to, onChange: (v) => d("to", v === null ? null : v.toString()), InputContainer: Qe, size: n })
|
|
8535
8535
|
] }) }),
|
|
8536
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 } =
|
|
8541
|
+
const { localizationContext: a } = Q(ve), { dateFnsLocale: o } = Q(a), { searchParams: i, setSearch: l } = wd(), c = i.get(t), p = c ? ur(c) : e, d = P((u) => {
|
|
8542
8542
|
l(t, Kn(u, { representation: "date" }));
|
|
8543
8543
|
}, [t, l]);
|
|
8544
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
|
-
const [n, a] = as(t, Kn(e, { representation: "date" })), o = n ?
|
|
8546
|
+
const [n, a] = as(t, Kn(e, { representation: "date" })), o = n ? ur(n) : e, i = P((l) => {
|
|
8547
8547
|
a(Kn(l, { representation: "date" }));
|
|
8548
8548
|
}, [a]);
|
|
8549
8549
|
return /* @__PURE__ */ s.jsx(Jd, { year: o, onChangeYear: i, ...r });
|
|
8550
8550
|
}, rw = ({ data: e, showLegend: t = !1, legendPosition: r = "left", onClick: n }) => {
|
|
8551
|
-
const { chartColorPalette: a } =
|
|
8551
|
+
const { chartColorPalette: a } = Q(ve);
|
|
8552
8552
|
return /* @__PURE__ */ s.jsx(Jc, { data: e, margin: {
|
|
8553
8553
|
top: 50,
|
|
8554
8554
|
right: t && r === "right" ? 200 : 100,
|
|
@@ -8638,24 +8638,24 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8638
8638
|
}, wx = "_input_pxkkh_1", lt = {
|
|
8639
8639
|
input: wx
|
|
8640
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
|
-
var
|
|
8641
|
+
var f;
|
|
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: (
|
|
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: (v) => c(r, v === null ? null : Number(v)), 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: (v) => c(r, v === null ? null : Number(v)), 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: (
|
|
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: (v) => c(r, (v == null ? void 0 : v.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: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
8647
8647
|
case "BIT":
|
|
8648
|
-
return /* @__PURE__ */ s.jsx(Tb, { InputContainer: Qe, className: lt.input, value: t === !0, onChange: (
|
|
8648
|
+
return /* @__PURE__ */ s.jsx(Tb, { InputContainer: Qe, className: lt.input, value: t === !0, onChange: (v) => c(r, v), 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: (
|
|
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: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
8651
8651
|
default: {
|
|
8652
|
-
const
|
|
8653
|
-
return
|
|
8652
|
+
const v = u == null ? void 0 : u.find((g) => g.type === e);
|
|
8653
|
+
return v ? /* @__PURE__ */ s.jsx(v.picker, { className: j(lt.input, lt.longer), value: t ? {
|
|
8654
8654
|
id: (t == null ? void 0 : t.toString()) ?? null,
|
|
8655
|
-
name: ((
|
|
8655
|
+
name: ((f = i == null ? void 0 : i.find((g) => {
|
|
8656
8656
|
var h;
|
|
8657
8657
|
return ((h = g.id) == null ? void 0 : h.toString()) === (t == null ? void 0 : t.toString());
|
|
8658
|
-
})) == null ? void 0 :
|
|
8658
|
+
})) == null ? void 0 : f.name) ?? ""
|
|
8659
8659
|
} : null, onChange: (g) => {
|
|
8660
8660
|
var h;
|
|
8661
8661
|
c(r, (g == null ? void 0 : g.id) ?? null), console.log(g, i == null ? void 0 : i.some((b) => {
|
|
@@ -8672,43 +8672,43 @@ 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 } =
|
|
8676
|
-
console.log("changeValue",
|
|
8675
|
+
const { ProjectIconComponent: l } = Q(ve), [c, p] = M(n), d = P((v, g) => {
|
|
8676
|
+
console.log("changeValue", v, g), p((h) => ({
|
|
8677
8677
|
...h,
|
|
8678
|
-
[
|
|
8679
|
-
...h[
|
|
8678
|
+
[v]: {
|
|
8679
|
+
...h[v],
|
|
8680
8680
|
value: g
|
|
8681
8681
|
}
|
|
8682
8682
|
}));
|
|
8683
|
-
}, []), u = (
|
|
8683
|
+
}, []), u = (v) => (v == null ? void 0 : v.value) !== (v == null ? void 0 : v.defaultValue), f = P(() => Object.keys(c).some((v) => u(c[v])), [c]);
|
|
8684
8684
|
return $(() => {
|
|
8685
8685
|
p(n);
|
|
8686
8686
|
}, [n]), /* @__PURE__ */ s.jsxs("tr", { className: j("table-row", we.tableRow), children: [
|
|
8687
|
-
/* @__PURE__ */ s.jsx("td", { className: j("table-cell", we.tableCell, we.stickyFirst), children:
|
|
8688
|
-
t.map((
|
|
8687
|
+
/* @__PURE__ */ s.jsx("td", { className: j("table-cell", we.tableCell, we.stickyFirst), children: f() && /* @__PURE__ */ s.jsx(se, { color: "success", onClick: () => a(Jl(c)), children: /* @__PURE__ */ s.jsx(l, { icon: "check" }) }) }),
|
|
8688
|
+
t.map((v) => {
|
|
8689
8689
|
var g, h;
|
|
8690
|
-
return /* @__PURE__ */ s.jsx("td", { className: j("table-cell", we.tableCell), children: /* @__PURE__ */ s.jsx(Ql, { type:
|
|
8691
|
-
r(t.map((m) => m.field ===
|
|
8692
|
-
}, onChangeHandler: d, hideClearIcon: !u(c[
|
|
8690
|
+
return /* @__PURE__ */ s.jsx("td", { className: j("table-cell", we.tableCell), children: /* @__PURE__ */ s.jsx(Ql, { type: v.type, value: (g = c[v.field ?? ""]) == null ? void 0 : g.value, field: v.field, isReadonly: v.readOnly, isPrimary: e.primaryKey === v.field, valuesForSelect: v.valuesForSelect, addValueToValuesForSelect: (b) => {
|
|
8691
|
+
r(t.map((m) => m.field === v.field ? { ...m, valuesForSelect: [...m.valuesForSelect ?? [], b] } : m));
|
|
8692
|
+
}, onChangeHandler: d, hideClearIcon: !u(c[v.field ?? ""]), clearValue: (h = c[v.field ?? ""].defaultValue) == null ? void 0 : h.toString(), customPickers: i }) }, `${e.id}-${v.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
|
-
const { ProjectIconComponent: o } =
|
|
8697
|
+
const { ProjectIconComponent: o } = Q(ve), [i, l] = M(null), c = P(() => {
|
|
8698
8698
|
var u;
|
|
8699
8699
|
const d = {};
|
|
8700
|
-
(u = e.columns) == null || u.forEach((
|
|
8701
|
-
const
|
|
8702
|
-
d[
|
|
8703
|
-
value:
|
|
8704
|
-
defaultValue:
|
|
8700
|
+
(u = e.columns) == null || u.forEach((f) => {
|
|
8701
|
+
const v = f.type === "BIT" ? !1 : f.type === "NUM" ? null : f.type === "STR" ? "" : null;
|
|
8702
|
+
d[f.field ?? ""] = {
|
|
8703
|
+
value: v,
|
|
8704
|
+
defaultValue: v
|
|
8705
8705
|
};
|
|
8706
8706
|
}), l(d);
|
|
8707
8707
|
}, [e]), p = P((d, u) => {
|
|
8708
|
-
l((
|
|
8709
|
-
...
|
|
8708
|
+
l((f) => f && {
|
|
8709
|
+
...f,
|
|
8710
8710
|
[d]: {
|
|
8711
|
-
...
|
|
8711
|
+
...f[d],
|
|
8712
8712
|
value: u
|
|
8713
8713
|
}
|
|
8714
8714
|
});
|
|
@@ -8719,7 +8719,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8719
8719
|
d && await n(d) && l(null);
|
|
8720
8720
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "check" }) }) }),
|
|
8721
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((
|
|
8722
|
+
r(t.map((f) => f.field === d.field ? { ...f, valuesForSelect: [...f.valuesForSelect ?? [], u] } : f));
|
|
8723
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: [
|
|
@@ -8744,7 +8744,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8744
8744
|
a(null), o.currentTarget.classList.remove($r.dragging);
|
|
8745
8745
|
}, children: /* @__PURE__ */ s.jsx("div", { className: j("content", $r.content) }) });
|
|
8746
8746
|
}, jx = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Nt, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), Ox = ({ column: e, sortByField: t, sortByType: r, setSortBy: n }) => {
|
|
8747
|
-
const { ProjectIconComponent: a } =
|
|
8747
|
+
const { ProjectIconComponent: a } = Q(ve), o = ee(null), i = Y(() => {
|
|
8748
8748
|
if (e.valuesForSelect && e.valuesForSelect.length > 0)
|
|
8749
8749
|
return 200;
|
|
8750
8750
|
switch (e.type) {
|
|
@@ -8779,7 +8779,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8779
8779
|
/* @__PURE__ */ s.jsx(Ix, { cellRef: o, defaultWidth: i })
|
|
8780
8780
|
] });
|
|
8781
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
|
-
const { texts: { dynamicForms:
|
|
8782
|
+
const { texts: { dynamicForms: f } } = Q(ve), [v, g] = M([]);
|
|
8783
8783
|
return $(() => {
|
|
8784
8784
|
var h, b, m;
|
|
8785
8785
|
g([
|
|
@@ -8800,21 +8800,21 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
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) }),
|
|
8803
|
-
|
|
8803
|
+
v.map((h) => /* @__PURE__ */ s.jsx(Ox, { column: h, sortByField: l, sortByType: c, setSortBy: p }, `${e.id}-${h.field}`)),
|
|
8804
8804
|
/* @__PURE__ */ s.jsx("th", { className: j("table-head", we.tableHead, we.actionColumn, we.stickyLast) })
|
|
8805
8805
|
] }),
|
|
8806
8806
|
/* @__PURE__ */ s.jsxs("tr", { className: j("table-row filters-row", we.tableRow, we.filtersRow), children: [
|
|
8807
8807
|
/* @__PURE__ */ s.jsx("th", { className: j("table-head", we.tableHead, we.actionColumn, we.stickyFirst) }),
|
|
8808
|
-
|
|
8809
|
-
{ id: 1, name:
|
|
8810
|
-
{ id: 0, name:
|
|
8808
|
+
v.map((h) => /* @__PURE__ */ s.jsx("th", { className: j("table-head", we.tableHead), children: h.valuesForSelect && h.valuesForSelect.length > 0 || h.type === "BIT" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(Xr, { InputContainer: Qe, withoutLabel: !0, size: "sm", value: o[h.field] ?? "", onChange: (b) => i(h.field, (b == null ? void 0 : b.toString()) ?? null), options: h.type === "BIT" ? [
|
|
8809
|
+
{ id: 1, name: f.yes },
|
|
8810
|
+
{ id: 0, name: f.no }
|
|
8811
8811
|
] : h.valuesForSelect ?? [], isNumber: h.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(mt, { InputContainer: Qe, withoutLabel: !0, size: "sm", type: h.type === "NUM" ? "number" : h.type === "DT" ? "date" : "text", value: o[h.field] ?? "", onChange: (b) => i(h.field, (b == null ? void 0 : b.toString()) ?? null) }) }) }, `${e.id}-${h.field}`)),
|
|
8812
8812
|
/* @__PURE__ */ s.jsx("th", { className: j("table-head", we.tableHead, we.actionColumn, we.stickyLast) })
|
|
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:
|
|
8817
|
-
/* @__PURE__ */ s.jsx(Nx, { schema: e, columns:
|
|
8816
|
+
t.filter((h) => h[e.primaryKey ?? ""]).map((h) => /* @__PURE__ */ s.jsx(Dx, { schema: e, columns: v, setColumns: g, initialItem: h, onEdit: r, onDelete: n, customPickers: u }, `${e.id}-${h[e.primaryKey ?? ""].value}`)),
|
|
8817
|
+
/* @__PURE__ */ s.jsx(Nx, { schema: e, columns: v, 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,9 +8828,9 @@ 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: d = Pt.apiDataGet, apiItemPost: u = Pt.apiItemPost, apiItemDelete:
|
|
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: f = Pt.apiItemDelete, apiItemCreate: v = Pt.apiItemCreate, apiExportGet: g = Pt.apiExportGet } = Pt, customPickers: h }) => {
|
|
8832
8832
|
var he, ce, Be, Xe, Je, Lt;
|
|
8833
|
-
const { texts: { dynamicForms: b }, ProjectIconComponent: m } =
|
|
8833
|
+
const { texts: { dynamicForms: b }, ProjectIconComponent: m } = Q(ve), x = wt(), { startLoading: N, stopLoading: D } = Q(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
|
$(() => {
|
|
8835
8835
|
C(null), S(null), J(!1), T([]), z(null);
|
|
8836
8836
|
}, [e]);
|
|
@@ -8861,7 +8861,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
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(`${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(`${
|
|
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(`${f}?id=${e}&pk=${ne}`).then(() => (D("dynamicFormDelete"), T([]), !0)).catch((me) => (D("dynamicFormDelete"), T(yn(me)), !1))), [x, e, N, D, f]), it = P(async (ne) => (N("dynamicFormCreate"), x.post(`${v}?id=${e}`, ne).then(({ data: me }) => (D("dynamicFormCreate"), T([]), me)).catch((me) => (D("dynamicFormCreate"), T(yn(me)), null))), [x, e, N, D, v]), 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;
|
|
@@ -8881,7 +8881,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8881
8881
|
return Ee[(y == null ? void 0 : y.primaryKey) ?? ""] = { value: me, defaultValue: me }, S((be) => [...be ?? [], Ee]), !0;
|
|
8882
8882
|
}
|
|
8883
8883
|
return !1;
|
|
8884
|
-
}, [H, it, b, y, de]),
|
|
8884
|
+
}, [H, it, b, y, de]), Z = (ne) => {
|
|
8885
8885
|
ne > U ? r(U) : ne < 1 && r(1), r(ne);
|
|
8886
8886
|
}, ge = P(() => {
|
|
8887
8887
|
if (!O || !y) {
|
|
@@ -8889,20 +8889,20 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8889
8889
|
return;
|
|
8890
8890
|
}
|
|
8891
8891
|
const ne = O.filter((me) => Object.entries(n).every(([Ee, be]) => {
|
|
8892
|
-
var
|
|
8892
|
+
var Qt, Zt, er;
|
|
8893
8893
|
if (be === null)
|
|
8894
8894
|
return !0;
|
|
8895
|
-
const Se = (
|
|
8895
|
+
const Se = (Qt = me[Ee]) == null ? void 0 : Qt.value;
|
|
8896
8896
|
if (Se == null)
|
|
8897
8897
|
return !1;
|
|
8898
|
-
const je = (
|
|
8899
|
-
if (!
|
|
8898
|
+
const je = (Zt = y.columns) == null ? void 0 : Zt.find((Rr) => Rr.field === Ee), Xt = je == null ? void 0 : je.type, Jt = (je == null ? void 0 : je.values) && ((er = je == null ? void 0 : je.values) == null ? void 0 : er.length) > 0;
|
|
8899
|
+
if (!Xt)
|
|
8900
8900
|
return !1;
|
|
8901
|
-
switch (
|
|
8901
|
+
switch (Xt) {
|
|
8902
8902
|
case "STR":
|
|
8903
|
-
return
|
|
8903
|
+
return Jt ? Se === be : Se.toString().toLowerCase().includes(be.toLowerCase());
|
|
8904
8904
|
case "NUM":
|
|
8905
|
-
return
|
|
8905
|
+
return Jt ? Number(Se) === Number(be) : Se.toString().toLowerCase().includes(be.toLowerCase());
|
|
8906
8906
|
case "DT":
|
|
8907
8907
|
return Se.toString().toLowerCase().includes(be.toLowerCase());
|
|
8908
8908
|
case "BIT":
|
|
@@ -8922,8 +8922,8 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8922
8922
|
return;
|
|
8923
8923
|
}
|
|
8924
8924
|
G([...I].sort((ne, me) => {
|
|
8925
|
-
var
|
|
8926
|
-
const Ee = ((
|
|
8925
|
+
var Xt, Jt, Qt, Zt, er, Rr;
|
|
8926
|
+
const Ee = ((Jt = (Xt = ne[o]) == null ? void 0 : Xt.value) == null ? void 0 : Jt.toString()) ?? "", be = ((Zt = (Qt = me[o]) == null ? void 0 : Qt.value) == null ? void 0 : Zt.toString()) ?? "", Se = y.columns.find((et) => et.field === o), je = Se == null ? void 0 : Se.type;
|
|
8927
8927
|
if (!Se || !je || !Ee && !be)
|
|
8928
8928
|
return 0;
|
|
8929
8929
|
if (!Ee)
|
|
@@ -8931,12 +8931,12 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8931
8931
|
if (!be)
|
|
8932
8932
|
return -1;
|
|
8933
8933
|
if (Se.values && Se.values.length > 0) {
|
|
8934
|
-
const et = ((
|
|
8935
|
-
var
|
|
8936
|
-
return ((
|
|
8937
|
-
})) == null ? void 0 :
|
|
8938
|
-
var
|
|
8939
|
-
return ((
|
|
8934
|
+
const et = ((er = Se.values.find((xn) => {
|
|
8935
|
+
var tr;
|
|
8936
|
+
return ((tr = xn.id) == null ? void 0 : tr.toString()) === Ee;
|
|
8937
|
+
})) == null ? void 0 : er.name) ?? "", dt = ((Rr = Se.values.find((xn) => {
|
|
8938
|
+
var tr;
|
|
8939
|
+
return ((tr = xn.id) == null ? void 0 : tr.toString()) === be;
|
|
8940
8940
|
})) == null ? void 0 : Rr.name) ?? "";
|
|
8941
8941
|
return i === "asc" ? et.localeCompare(dt) : dt.localeCompare(et);
|
|
8942
8942
|
}
|
|
@@ -8945,7 +8945,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8945
8945
|
return i === "asc" ? et - dt : dt - et;
|
|
8946
8946
|
}
|
|
8947
8947
|
if (je === "DT") {
|
|
8948
|
-
const et =
|
|
8948
|
+
const et = ur(Ee == null ? void 0 : Ee.toString()).getTime(), dt = ur(be == null ? void 0 : be.toString()).getTime();
|
|
8949
8949
|
return i === "asc" ? et - dt : dt - et;
|
|
8950
8950
|
}
|
|
8951
8951
|
return i === "asc" ? Ee.toString().localeCompare(be.toString()) : be.toString().localeCompare(Ee.toString());
|
|
@@ -8966,7 +8966,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8966
8966
|
}, [t, q, U, r]), /* @__PURE__ */ s.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
|
|
8967
8967
|
/* @__PURE__ */ s.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
|
|
8968
8968
|
/* @__PURE__ */ s.jsx(ae, { variant: "h3", children: (y == null ? void 0 : y.name) ?? "" }),
|
|
8969
|
-
/* @__PURE__ */ s.jsxs(
|
|
8969
|
+
/* @__PURE__ */ s.jsxs(Er, { toggle: /* @__PURE__ */ s.jsx(Cr, { as: ln }), children: [
|
|
8970
8970
|
/* @__PURE__ */ s.jsx(nt, { onClick: () => J(!E), children: E ? b.hideArchived : b.showArchived }),
|
|
8971
8971
|
/* @__PURE__ */ s.jsx(Zc, {}),
|
|
8972
8972
|
/* @__PURE__ */ s.jsx(nt, { onClick: Me, icon: /* @__PURE__ */ s.jsx(m, { icon: "file-download" }), children: b.downloadExport })
|
|
@@ -8984,10 +8984,10 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8984
8984
|
/* @__PURE__ */ s.jsx("div", { className: j("rounded border overflow-auto", Ii.tableContainer), children: /* @__PURE__ */ s.jsx(_x, { schema: y, items: !q && R && (R == null ? void 0 : R.length) > X ? [] : (q ? fe : R) ?? [], onEditItem: He, onDeleteItem: A, onCreateItem: F, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, selectedMaster: (de == null ? void 0 : de.toString()) ?? null, customPickers: h }) }),
|
|
8985
8985
|
q && t && /* @__PURE__ */ s.jsxs("div", { className: j(Ii.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
8986
8986
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
8987
|
-
/* @__PURE__ */ s.jsx(se, { color: "primary", onClick: () =>
|
|
8988
|
-
/* @__PURE__ */ s.jsx(se, { color: "primary", onClick: () =>
|
|
8989
|
-
/* @__PURE__ */ s.jsx(se, { color: "primary", onClick: () =>
|
|
8990
|
-
/* @__PURE__ */ s.jsx(se, { color: "primary", onClick: () =>
|
|
8987
|
+
/* @__PURE__ */ s.jsx(se, { color: "primary", onClick: () => Z(1), disabled: !re, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-double-left" }) }),
|
|
8988
|
+
/* @__PURE__ */ s.jsx(se, { color: "primary", onClick: () => Z(t - 1), disabled: !re, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-left" }) }),
|
|
8989
|
+
/* @__PURE__ */ s.jsx(se, { color: "primary", onClick: () => Z(t + 1), disabled: !le, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-right" }) }),
|
|
8990
|
+
/* @__PURE__ */ s.jsx(se, { color: "primary", onClick: () => Z(U), disabled: !le, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-double-right" }) })
|
|
8991
8991
|
] }),
|
|
8992
8992
|
/* @__PURE__ */ s.jsxs(ae, { variant: "body", children: [
|
|
8993
8993
|
b.tablePage,
|
|
@@ -9007,7 +9007,7 @@ 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 } =
|
|
9010
|
+
const l = wt(), { startLoading: c, stopLoading: p } = Q(Ir), [d, u] = M(null), [f] = as("search", ""), v = Y(() => [
|
|
9011
9011
|
...(d == null ? void 0 : d.map((b) => ({
|
|
9012
9012
|
...b,
|
|
9013
9013
|
type: "dynamic-form"
|
|
@@ -9016,26 +9016,26 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9016
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
|
-
items:
|
|
9020
|
-
})).filter((b) => b.items.length > 0), [r,
|
|
9019
|
+
items: v.filter((m) => m.group === b.id)
|
|
9020
|
+
})).filter((b) => b.items.length > 0), [r, v]), 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
9026
|
!d && h();
|
|
9027
|
-
}, [h, d]),
|
|
9027
|
+
}, [h, d]), v.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
|
-
return a ? /* @__PURE__ */ s.jsxs(at, { to: `${Jr(o, { id: (x = m.id) == null ? void 0 : x.toString() })}?type=${m.type}&search=${
|
|
9029
|
+
return a ? /* @__PURE__ */ s.jsxs(at, { to: `${Jr(o, { id: (x = m.id) == null ? void 0 : x.toString() })}?type=${m.type}&search=${f ?? ""}`, 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 }),
|
|
9031
9031
|
m.description && /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-muted mt-2", children: m.description })
|
|
9032
|
-
] }, m.id) : /* @__PURE__ */ s.jsx(Ax, { item: m, children: /* @__PURE__ */ s.jsx(at, { to: `${Jr(o, { id: (D = m.id) == null ? void 0 : D.toString() })}?type=${m.type}&search=${
|
|
9032
|
+
] }, m.id) : /* @__PURE__ */ s.jsx(Ax, { item: m, children: /* @__PURE__ */ s.jsx(at, { to: `${Jr(o, { id: (D = m.id) == null ? void 0 : D.toString() })}?type=${m.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((y = m.id) == null ? void 0 : y.toString()) ? "active" : ""}`, children: /* @__PURE__ */ s.jsx(ae, { variant: "body2", children: m.name }) }) }, m.id);
|
|
9033
9033
|
}) }, b.id)) }) }) : null;
|
|
9034
9034
|
}, ow = ({ label: e, to: t, value: r }) => /* @__PURE__ */ s.jsxs(ot, { label: e, children: [
|
|
9035
9035
|
/* @__PURE__ */ s.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
9036
9036
|
t ? /* @__PURE__ */ s.jsx(at, { to: t, className: "border-bottom luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r }) : /* @__PURE__ */ s.jsx("div", { className: "luminus-dropdown-picker-link form-control d-flex justify-content-end align-items-center", children: r })
|
|
9037
9037
|
] }), iw = () => {
|
|
9038
|
-
const { localizationContext: e } =
|
|
9038
|
+
const { localizationContext: e } = Q(ve), { language: t, setLanguage: r } = Q(e), n = (a) => {
|
|
9039
9039
|
r(a);
|
|
9040
9040
|
};
|
|
9041
9041
|
return /* @__PURE__ */ s.jsx(nt, { onClick: (a) => {
|
|
@@ -9060,7 +9060,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9060
9060
|
/* @__PURE__ */ s.jsx("span", { children: "EN" })
|
|
9061
9061
|
] }) });
|
|
9062
9062
|
}, sw = ({ controlId: e, ...t }) => /* @__PURE__ */ s.jsx(_e.Group, { controlId: e, ...t }), lw = ({ employeeId: e, alt: t, noPhotoImage: r, cafmApiUrl: n, showLargeInLightBox: a = !1 }) => {
|
|
9063
|
-
const { user: o } =
|
|
9063
|
+
const { user: o } = Q(qt), { photoPath: i, photoPathSm: l } = Dd(e);
|
|
9064
9064
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: e && /* @__PURE__ */ s.jsx(s.Fragment, { children: a ? /* @__PURE__ */ s.jsx(fb, { baseUrl: n, customToken: o.cafmToken ?? void 0, photos: [
|
|
9065
9065
|
{
|
|
9066
9066
|
id: e.toString(),
|
|
@@ -9112,7 +9112,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9112
9112
|
"card-title-link": "_card-title-link_1gvpy_22",
|
|
9113
9113
|
cardTitleLink: $x
|
|
9114
9114
|
}, Gx = ({ reportsLastUsedGet: e, getReportRoute: t, getReportName: r }) => {
|
|
9115
|
-
const { texts: { reports: n } } =
|
|
9115
|
+
const { texts: { reports: n } } = Q(ve), { data: a } = fr(e);
|
|
9116
9116
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(Qr, { defaultOpen: !0, title: n.index.lastUsedReports, children: /* @__PURE__ */ s.jsx(ha, { children: a && a.map((o) => o.versions.map((i) => /* @__PURE__ */ s.jsxs(dn, { as: at, to: t(o, i.id), className: "p-1 px-2", action: !0, children: [
|
|
9117
9117
|
/* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-uppercase", children: r(o) }),
|
|
9118
9118
|
/* @__PURE__ */ s.jsxs(ae, { variant: "caption", className: "d-flex justify-content-between align-items-center gap-3 text-dark", children: [
|
|
@@ -9121,7 +9121,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9121
9121
|
] })
|
|
9122
9122
|
] }))) }) }) });
|
|
9123
9123
|
}, Pi = ({ reportVersion: e, getReportRoute: t, report: r }) => /* @__PURE__ */ s.jsx(dn, { as: at, to: t(r, e.id), className: "p-1 px-2", action: !0, children: /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "d-flex justify-content-between align-items-center gap-3", children: /* @__PURE__ */ s.jsx("div", { className: "link", children: e.name }) }) }), Gr = 5, Ti = ({ versionsList: e, getReportRoute: t, report: r }) => {
|
|
9124
|
-
const { ProjectIconComponent: n } =
|
|
9124
|
+
const { ProjectIconComponent: n } = Q(ve), [a, o] = M(!0), i = Y(() => e.length <= Gr ? e : e.slice(0, Gr - 1), [e]), l = Y(() => e.length <= Gr ? [] : e.slice(Gr - 1), [e]);
|
|
9125
9125
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(ha, { children: [
|
|
9126
9126
|
i.map((c) => /* @__PURE__ */ s.jsx(Pi, { reportVersion: c, getReportRoute: t, report: r })),
|
|
9127
9127
|
a ? null : l.map((c) => /* @__PURE__ */ s.jsx(Pi, { reportVersion: c, getReportRoute: t, report: r })),
|
|
@@ -9149,20 +9149,20 @@ 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 } } =
|
|
9152
|
+
const { texts: { reports: l } } = Q(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:
|
|
9156
|
-
if (
|
|
9155
|
+
})), [e]), { data: f } = fr(t, { dataTransformer: u }), v = Y(() => {
|
|
9156
|
+
if (f === null)
|
|
9157
9157
|
return {};
|
|
9158
9158
|
const b = {};
|
|
9159
9159
|
return e.forEach((m) => {
|
|
9160
|
-
b[m] =
|
|
9160
|
+
b[m] = f.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
|
-
}, [d, e,
|
|
9162
|
+
}, [d, e, f, a, n]), g = Y(() => e.filter((b) => {
|
|
9163
9163
|
var m;
|
|
9164
|
-
return ((m =
|
|
9165
|
-
}), [
|
|
9164
|
+
return ((m = v[b]) == null ? void 0 : m.length) > 0;
|
|
9165
|
+
}), [v, e]), { isMobile: h } = sn();
|
|
9166
9166
|
return /* @__PURE__ */ s.jsxs(ts, { unavailableOnMobile: !0, variant: "fullScreen", sideContent: /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(Gx, { reportsLastUsedGet: r, getReportName: n, getReportRoute: i }) }), children: [
|
|
9167
9167
|
/* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(_e.Control, { className: "mb-3", type: "search", value: c, onChange: (b) => {
|
|
9168
9168
|
var m;
|
|
@@ -9170,7 +9170,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9170
9170
|
}, placeholder: l.index.search }) }),
|
|
9171
9171
|
/* @__PURE__ */ s.jsx("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: g.map((b) => /* @__PURE__ */ s.jsxs("div", { className: j($t.cardsGroup, { [$t.mobile]: h }), children: [
|
|
9172
9172
|
/* @__PURE__ */ s.jsx("div", { className: j("group-title z-1", $t.groupTitle), children: /* @__PURE__ */ s.jsx(kx, { text: o(b) }) }),
|
|
9173
|
-
/* @__PURE__ */ s.jsx("div", { className: j($t.groupContent), children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3"), children:
|
|
9173
|
+
/* @__PURE__ */ s.jsx("div", { className: j($t.groupContent), children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3"), children: v[b].map((m) => /* @__PURE__ */ s.jsx(Wx, { report: m, getReportRoute: i, getReportName: n, getReportDescription: a })) }) })
|
|
9174
9174
|
] }, b)) })
|
|
9175
9175
|
] });
|
|
9176
9176
|
}, Ux = "_mini-detail-popover_obryf_1", Hx = "_sm_obryf_5", zx = "_lg_obryf_9", Ai = {
|
|
@@ -9179,15 +9179,15 @@ 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
|
|
9182
|
+
const { user: i } = Q(qt), [l, c] = M(!1), { isLoading: p, detail: d, heading: u, tooltipWidth: f } = t({
|
|
9183
9183
|
...r,
|
|
9184
|
-
enabled: i
|
|
9185
|
-
}), v =
|
|
9184
|
+
enabled: l && !(i != null && i.external)
|
|
9185
|
+
}), v = ee(null);
|
|
9186
9186
|
return /* @__PURE__ */ s.jsx("div", { onMouseEnter: () => {
|
|
9187
|
-
v.current = window.setTimeout(() =>
|
|
9187
|
+
v.current = window.setTimeout(() => c(!0), o);
|
|
9188
9188
|
}, onMouseLeave: () => {
|
|
9189
|
-
v.current && clearTimeout(v.current),
|
|
9190
|
-
}, children: i ? /* @__PURE__ */ s.jsx(nd, { heading:
|
|
9189
|
+
v.current && clearTimeout(v.current), c(!1);
|
|
9190
|
+
}, children: l && !(i != null && i.external) ? /* @__PURE__ */ s.jsx(nd, { heading: p ? /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ s.jsx("span", { className: "placeholder bg-primary col-6" }) }) : u, content: /* @__PURE__ */ s.jsx(s.Fragment, { children: p ? /* @__PURE__ */ s.jsxs(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,32 +9208,32 @@ 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
|
-
] }) :
|
|
9211
|
+
] }) : d }), placement: n, trigger: a, popoverClassName: j(Ai.miniDetailPopover, Ai[f]), 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
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
|
-
const { register:
|
|
9216
|
+
const { register: f, formState: v, setValue: g } = Et(), [h, b] = M(void 0), [m, x] = M(!1);
|
|
9217
9217
|
$(() => {
|
|
9218
9218
|
const D = t.split(".");
|
|
9219
|
-
let y =
|
|
9219
|
+
let y = v.errors;
|
|
9220
9220
|
D.forEach((C) => {
|
|
9221
9221
|
y !== void 0 && (y = y[C]);
|
|
9222
9222
|
}), b(y);
|
|
9223
|
-
}, [
|
|
9224
|
-
|
|
9225
|
-
}, [
|
|
9223
|
+
}, [v, t]), $(() => {
|
|
9224
|
+
v.isSubmitted && x(!0);
|
|
9225
|
+
}, [v]);
|
|
9226
9226
|
const N = h !== void 0;
|
|
9227
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
|
-
/* @__PURE__ */ s.jsx(_e.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...
|
|
9228
|
+
/* @__PURE__ */ s.jsx(_e.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...f(t, {
|
|
9229
9229
|
onChange: (D) => {
|
|
9230
9230
|
n && n.forEach((y) => g(y, null, { shouldDirty: !0, shouldValidate: m })), d && d(D.target.value ?? null);
|
|
9231
9231
|
}
|
|
9232
|
-
}), isInvalid: N, hidden: i, disabled: l ||
|
|
9232
|
+
}), isInvalid: N, hidden: i, disabled: l || v.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: d, formState: u, setValue:
|
|
9236
|
+
const { register: d, formState: u, setValue: f, watch: v } = Et(), [g, h] = M(void 0), [b, m] = M(!1), x = Y(() => n, [n]);
|
|
9237
9237
|
$(() => {
|
|
9238
9238
|
const D = r.split(".");
|
|
9239
9239
|
let y = u.errors;
|
|
@@ -9245,25 +9245,25 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9245
9245
|
}, [u]);
|
|
9246
9246
|
const N = g !== void 0;
|
|
9247
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:
|
|
9248
|
+
x.map((D) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${D.id}`, label: D.name, type: "radio", value: D.id ?? "", checked: v(r) === D.id, ...d(r, {
|
|
9249
9249
|
onChange: (y) => {
|
|
9250
9250
|
var C;
|
|
9251
|
-
a && a.forEach((O) =>
|
|
9251
|
+
a && a.forEach((O) => f(O, null, { shouldDirty: !0, shouldValidate: b })), c && c((C = y.target) != null && C.value ? y.target.value.toString() : null);
|
|
9252
9252
|
}
|
|
9253
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: d, onSearchQueryChange: u, selectedItemNavigateTo:
|
|
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: f, texts: v, 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;
|
|
9260
|
-
A.forEach((
|
|
9261
|
-
F !== void 0 && (F = F[
|
|
9260
|
+
A.forEach((Z) => {
|
|
9261
|
+
F !== void 0 && (F = F[Z]);
|
|
9262
9262
|
}), X(F);
|
|
9263
9263
|
}, [H, t]), z = P((A) => {
|
|
9264
9264
|
if ((A == null ? void 0 : A.id) === k)
|
|
9265
9265
|
return;
|
|
9266
|
-
if (y && y(A), o && o.forEach((
|
|
9266
|
+
if (y && y(A), o && o.forEach((Z) => _(Z, null, { shouldDirty: !0, shouldValidate: le })), A === null) {
|
|
9267
9267
|
_(t, null, {
|
|
9268
9268
|
shouldDirty: !0,
|
|
9269
9269
|
shouldValidate: le
|
|
@@ -9285,9 +9285,9 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9285
9285
|
}, [de]), $(() => {
|
|
9286
9286
|
H.isSubmitted && ie(!0);
|
|
9287
9287
|
}, [H]);
|
|
9288
|
-
const Me =
|
|
9288
|
+
const Me = ee(null), Le = L !== void 0, Ae = f !== void 0, it = Ae && fe !== null, He = p || H.disabled;
|
|
9289
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
|
-
/* @__PURE__ */ s.jsxs(va, { currentSelection: fe, selectedItemNavigateTo:
|
|
9290
|
+
/* @__PURE__ */ s.jsxs(va, { currentSelection: fe, selectedItemNavigateTo: f, 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) => {
|
|
9293
9293
|
A.currentTarget.focus(), A.preventDefault();
|
|
@@ -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: d, currentSelection: fe, onSelectionChange: ue, onSearchQueryChange: u, texts:
|
|
9309
|
+
Me.current && /* @__PURE__ */ s.jsx(ma, { show: U, onCancel: V, items: d, currentSelection: fe, onSelectionChange: ue, onSearchQueryChange: u, texts: v, 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: d, withoutLabel: u, hint:
|
|
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: f, className: v }) => {
|
|
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,7 +9322,7 @@ 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, disabled: i, hidden: n, withoutLabel: u, isInvalid: S, hint:
|
|
9325
|
+
return /* @__PURE__ */ s.jsxs(e, { label: t ?? "", required: a, disabled: i, hidden: n, withoutLabel: u, isInvalid: S, hint: f, className: v, children: [
|
|
9326
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 }));
|
|
@@ -9336,8 +9336,8 @@ 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: d, noSortOptions: u, suffixIdToName:
|
|
9340
|
-
const { texts: { customSelect: C } } =
|
|
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: f, onSelect: v, className: g, appendCurrentSelectionWithName: h, hint: b, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent: N, miniDetailPlacement: D, selectedItemNavigateTo: y }) => {
|
|
9340
|
+
const { texts: { customSelect: C } } = Q(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;
|
|
9343
9343
|
z.forEach((V) => {
|
|
@@ -9346,7 +9346,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9346
9346
|
}, [O, r]), re = P((z) => {
|
|
9347
9347
|
if ((z == null ? void 0 : z.id) === L)
|
|
9348
9348
|
return;
|
|
9349
|
-
if (
|
|
9349
|
+
if (v && v(z), o && o.forEach((V) => S(V, null, { shouldDirty: !0, shouldValidate: H })), z === null) {
|
|
9350
9350
|
S(r, null, {
|
|
9351
9351
|
shouldDirty: !0,
|
|
9352
9352
|
shouldValidate: H
|
|
@@ -9358,7 +9358,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9358
9358
|
shouldDirty: !0,
|
|
9359
9359
|
shouldValidate: H
|
|
9360
9360
|
});
|
|
9361
|
-
}, [S, r, i, o, L, H,
|
|
9361
|
+
}, [S, r, i, o, L, H, v]), le = P((z) => {
|
|
9362
9362
|
J(!1), re(z);
|
|
9363
9363
|
}, [re]), ie = P((z) => {
|
|
9364
9364
|
W(z);
|
|
@@ -9370,8 +9370,8 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9370
9370
|
}, [O]);
|
|
9371
9371
|
const k = P((z) => {
|
|
9372
9372
|
var ue;
|
|
9373
|
-
return z === null ? "" : !z.name || z.name.length === 0 ? ((ue = z.id) == null ? void 0 : ue.toString()) ?? "" :
|
|
9374
|
-
}, [
|
|
9373
|
+
return z === null ? "" : !z.name || z.name.length === 0 ? ((ue = z.id) == null ? void 0 : ue.toString()) ?? "" : f ? `${z.name} (${z.id})` : z.name;
|
|
9374
|
+
}, [f]), q = Y(() => {
|
|
9375
9375
|
const z = t ? [...t] : [];
|
|
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,
|
|
@@ -9384,7 +9384,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9384
9384
|
k,
|
|
9385
9385
|
h,
|
|
9386
9386
|
L
|
|
9387
|
-
]), fe =
|
|
9387
|
+
]), fe = ee(null), de = R !== void 0;
|
|
9388
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();
|
|
@@ -9395,9 +9395,9 @@ 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: d, withoutLabel: u, step:
|
|
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: f, stepperStep: v = 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
|
-
y(_,
|
|
9400
|
+
y(_, ir(T, h, b), W);
|
|
9401
9401
|
}, [b, h, y]), G = P(() => {
|
|
9402
9402
|
const _ = l ?? null;
|
|
9403
9403
|
R(t, _ !== null ? Number(_) : null, {
|
|
@@ -9420,25 +9420,25 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9420
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
|
-
setValueAs: (_) => _ == null || _ === "" ? null :
|
|
9423
|
+
setValueAs: (_) => _ == null || _ === "" ? null : ir(Number(_), h, b),
|
|
9424
9424
|
min: h,
|
|
9425
9425
|
max: b,
|
|
9426
9426
|
onChange: (_) => {
|
|
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: d || D.disabled, className: "w-100 luminus-numeric-stepper", step:
|
|
9430
|
+
}), isInvalid: J, hidden: p, disabled: d || D.disabled, className: "w-100 luminus-numeric-stepper", step: f, min: h, max: b }),
|
|
9431
9431
|
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ s.jsx(se, { size: "sm", onClick: (_) => {
|
|
9432
|
-
_.preventDefault(), _.stopPropagation(), R(t, ((H ? Number(H) : 0) -
|
|
9432
|
+
_.preventDefault(), _.stopPropagation(), R(t, ((H ? Number(H) : 0) - v).toString(), { shouldDirty: !0, shouldValidate: I });
|
|
9433
9433
|
}, children: /* @__PURE__ */ s.jsx(Qi, {}) }) }),
|
|
9434
9434
|
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ s.jsx(se, { size: "sm", onClick: (_) => {
|
|
9435
|
-
_.preventDefault(), _.stopPropagation(), R(t, ((H ? Number(H) : 0) +
|
|
9435
|
+
_.preventDefault(), _.stopPropagation(), R(t, ((H ? Number(H) : 0) + v).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: d, step: u, size:
|
|
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: f, CustomOnChangeComponent: v, 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, {
|
|
@@ -9475,9 +9475,9 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9475
9475
|
}, hidden: c, disabled: p || S.disabled, className: j("form-control text-end w-100", {
|
|
9476
9476
|
"is-invalid": L
|
|
9477
9477
|
}, {
|
|
9478
|
-
[`form-control-${
|
|
9478
|
+
[`form-control-${f}`]: f
|
|
9479
9479
|
}), step: u, getInputRef: X, min: D, max: y }) }),
|
|
9480
|
-
|
|
9480
|
+
v && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: v })
|
|
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, {}) }) }),
|
|
9483
9483
|
G && /* @__PURE__ */ s.jsx(kt, { message: G.message })
|
|
@@ -9504,9 +9504,9 @@ 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 } } =
|
|
9507
|
+
const { texts: { reports: l } } = Q(ve), [c, p] = M(!1), d = ee(null), u = r ?? d, f = Y(() => ({
|
|
9508
9508
|
localization: n
|
|
9509
|
-
}), [n]),
|
|
9509
|
+
}), [n]), v = P((m) => {
|
|
9510
9510
|
delete m[0], delete m[1], delete m[2];
|
|
9511
9511
|
const x = [
|
|
9512
9512
|
{
|
|
@@ -9531,7 +9531,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9531
9531
|
}), m;
|
|
9532
9532
|
}, [u, l.collapseAll, l.expand, l.expandAll]), g = (m) => {
|
|
9533
9533
|
const x = m.getTabs();
|
|
9534
|
-
m.getTabs = () =>
|
|
9534
|
+
m.getTabs = () => v(x);
|
|
9535
9535
|
};
|
|
9536
9536
|
$(() => {
|
|
9537
9537
|
var m;
|
|
@@ -9573,7 +9573,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9573
9573
|
xd,
|
|
9574
9574
|
{
|
|
9575
9575
|
ref: u,
|
|
9576
|
-
global:
|
|
9576
|
+
global: f,
|
|
9577
9577
|
licenseKey: a,
|
|
9578
9578
|
toolbar: !0,
|
|
9579
9579
|
height: "100%",
|
|
@@ -9587,7 +9587,7 @@ 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 } } =
|
|
9590
|
+
const { texts: { reports: a } } = Q(ve), { prompt: o } = od(), { confirm: i } = cn(), l = wt(), { user: c } = Q(qt), { startLoading: p, stopLoading: d } = Q(Ir), { addNotification: u } = es(), f = P(async (m) => {
|
|
9591
9591
|
p("report-versionSavingAs");
|
|
9592
9592
|
try {
|
|
9593
9593
|
const x = await l.post("/reports/version", m);
|
|
@@ -9595,7 +9595,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9595
9595
|
} finally {
|
|
9596
9596
|
d("report-versionSavingAs");
|
|
9597
9597
|
}
|
|
9598
|
-
}, [u, n, l, a.saveSuccessful, p, d]),
|
|
9598
|
+
}, [u, n, l, a.saveSuccessful, p, d]), v = P(async () => {
|
|
9599
9599
|
if (r === null) {
|
|
9600
9600
|
u("none open", "warning");
|
|
9601
9601
|
return;
|
|
@@ -9603,7 +9603,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9603
9603
|
if (!await i(a.confirmOverwriteSave))
|
|
9604
9604
|
return;
|
|
9605
9605
|
const x = Ri(t);
|
|
9606
|
-
|
|
9606
|
+
f({
|
|
9607
9607
|
reportSourceName: e,
|
|
9608
9608
|
reportVersionId: r,
|
|
9609
9609
|
settings: x
|
|
@@ -9614,19 +9614,19 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9614
9614
|
t,
|
|
9615
9615
|
e,
|
|
9616
9616
|
a.confirmOverwriteSave,
|
|
9617
|
-
|
|
9617
|
+
f,
|
|
9618
9618
|
r
|
|
9619
9619
|
]), g = P(async () => {
|
|
9620
9620
|
const m = await o(a.enterName, { input: "input", required: !0 });
|
|
9621
9621
|
if (m === null)
|
|
9622
9622
|
return;
|
|
9623
9623
|
const x = Ri(t);
|
|
9624
|
-
|
|
9624
|
+
f({
|
|
9625
9625
|
reportSourceName: e,
|
|
9626
9626
|
name: m,
|
|
9627
9627
|
settings: x
|
|
9628
9628
|
});
|
|
9629
|
-
}, [t, o, e, a.enterName,
|
|
9629
|
+
}, [t, o, e, a.enterName, f]), h = P(async () => {
|
|
9630
9630
|
p("report-versionSavingAs");
|
|
9631
9631
|
try {
|
|
9632
9632
|
await l.post("/reports/version", {
|
|
@@ -9669,9 +9669,9 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9669
9669
|
d,
|
|
9670
9670
|
c.personalNumber
|
|
9671
9671
|
]);
|
|
9672
|
-
return { saveAs: g, save:
|
|
9672
|
+
return { saveAs: g, save: v, archive: h, detach: b };
|
|
9673
9673
|
}, Jx = (e) => {
|
|
9674
|
-
const t = wt(), { startLoading: r, stopLoading: n } =
|
|
9674
|
+
const t = wt(), { startLoading: r, stopLoading: n } = Q(Ir);
|
|
9675
9675
|
return { changeEmployeeRights: P(async (o, i) => {
|
|
9676
9676
|
let l = null;
|
|
9677
9677
|
r("reportSharing-addPerson");
|
|
@@ -9691,22 +9691,22 @@ 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 } } =
|
|
9694
|
+
const { ProjectIconComponent: i, texts: { reports: l } } = Q(ve), { confirm: c } = cn(), [p, d] = M(null), { changeEmployeeRights: u } = Jx(n), f = P((h) => {
|
|
9695
9695
|
o((b) => b === null ? null : {
|
|
9696
9696
|
...b,
|
|
9697
9697
|
users: h.filter((m) => m.isReportOwner === !1)
|
|
9698
9698
|
});
|
|
9699
|
-
}, [o]),
|
|
9699
|
+
}, [o]), v = P(async () => {
|
|
9700
9700
|
if (p === null)
|
|
9701
9701
|
return;
|
|
9702
9702
|
const h = await u(p.id, !0);
|
|
9703
|
-
|
|
9704
|
-
}, [p, u,
|
|
9703
|
+
f(h), d(null);
|
|
9704
|
+
}, [p, u, f]), g = P(async (h) => {
|
|
9705
9705
|
if (!await c(l.removeSharingWith(h)))
|
|
9706
9706
|
return;
|
|
9707
9707
|
const m = await u(h, !1);
|
|
9708
|
-
|
|
9709
|
-
}, [u, c, l,
|
|
9708
|
+
f(m);
|
|
9709
|
+
}, [u, c, l, f]);
|
|
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: [
|
|
@@ -9732,7 +9732,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9732
9732
|
}
|
|
9733
9733
|
d(h);
|
|
9734
9734
|
}, value: p }) }),
|
|
9735
|
-
/* @__PURE__ */ s.jsx(Yr, { onClick:
|
|
9735
|
+
/* @__PURE__ */ s.jsx(Yr, { onClick: v, disabled: p === null, children: l.add })
|
|
9736
9736
|
] })
|
|
9737
9737
|
] })
|
|
9738
9738
|
] });
|
|
@@ -9745,18 +9745,18 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9745
9745
|
});
|
|
9746
9746
|
}, [t, e]), { mappings: r };
|
|
9747
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 } } =
|
|
9748
|
+
const { texts: { reports: u } } = Q(ve), { confirm: f } = cn(), v = 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
|
+
v(Jr(a(e), { id: q }) + "?" + g.toString(), {
|
|
9751
9751
|
replace: !0,
|
|
9752
9752
|
flushSync: !0
|
|
9753
9753
|
});
|
|
9754
|
-
}, [a,
|
|
9754
|
+
}, [a, v, e, g]), [x, N] = M(!1), D = ee(null), { user: y } = Q(qt), { data: C, reloadData: O } = fr(`/reports/${e}`), { mappings: S } = Zx(c, p), [I, B] = M({}), R = P((k) => {
|
|
9755
9755
|
const q = k.target.value, fe = q === "" ? null : Number(q);
|
|
9756
9756
|
m(fe);
|
|
9757
9757
|
}, [m]), G = P(async (k) => {
|
|
9758
9758
|
await O(), m(k);
|
|
9759
|
-
}, [O, m]), { data: E, setData: J } =
|
|
9759
|
+
}, [O, m]), { data: E, setData: J } = fr(`/reports/version/${b}`, { enabled: b !== null, nullStateBeforeLoad: !1, nullStateOnFail: !0 });
|
|
9760
9760
|
$(() => {
|
|
9761
9761
|
var q;
|
|
9762
9762
|
if (E === null) {
|
|
@@ -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
|
|
9775
|
-
}, [
|
|
9774
|
+
await f(u.confirmRevertChanges) && ((q = D.current) == null || q.flexmonster.setReport({ dataSource: L, ...I }));
|
|
9775
|
+
}, [f, 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
|
|
9780
|
-
}, [T,
|
|
9781
|
-
await
|
|
9782
|
-
}, [
|
|
9779
|
+
await f(u.confirmDelete(E == null ? void 0 : E.name)) && (await T(), m(null), await O());
|
|
9780
|
+
}, [T, f, O, E == null ? void 0 : E.name, u, m]), ie = P(async () => {
|
|
9781
|
+
await f(u.confirmDetach(E == null ? void 0 : E.name)) && (await W(), m(null), await O());
|
|
9782
|
+
}, [f, 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);
|
|
@@ -9795,7 +9795,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9795
9795
|
] }),
|
|
9796
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
9797
|
/* @__PURE__ */ s.jsx(ct, { icon: /* @__PURE__ */ s.jsx(ld, {}), onClick: _, className: "flex-shrink-0", children: u.saveAs }),
|
|
9798
|
-
/* @__PURE__ */ s.jsxs(
|
|
9798
|
+
/* @__PURE__ */ s.jsxs(Er, { toggle: /* @__PURE__ */ s.jsx(Cr, { as: ln }), children: [
|
|
9799
9799
|
/* @__PURE__ */ s.jsx(nt, { onClick: X, children: u.revertChanges }),
|
|
9800
9800
|
/* @__PURE__ */ s.jsx(nt, { onClick: () => N(!0), disabled: !U || (E == null ? void 0 : E.isSystem), children: u.share }),
|
|
9801
9801
|
U && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(nt, { color: "danger", onClick: le, children: u.delete }) : null,
|
|
@@ -9824,9 +9824,9 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9824
9824
|
}, className: j(`border-${n}`, t.includes(n) && `bg-${n}`), onClick: () => {
|
|
9825
9825
|
t.includes(n) ? r(t.filter((a) => a !== n)) : r([...t, n]);
|
|
9826
9826
|
} }, n)) }), ty = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ s.jsx(at, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: r }), ry = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: n, getLinksTo: a }) => {
|
|
9827
|
-
const { ProjectIconComponent: o, localizationContext: i } =
|
|
9827
|
+
const { ProjectIconComponent: o, localizationContext: i } = Q(ve), { dateFnsLocale: l } = Q(i), c = e.dateTime ? ur(e.dateTime) : null, p = c ? Cd(new Date(Date.now()), c) : 0;
|
|
9828
9828
|
return /* @__PURE__ */ s.jsxs("div", { children: [
|
|
9829
|
-
c && /* @__PURE__ */ s.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Nt, { text:
|
|
9829
|
+
c && /* @__PURE__ */ s.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Nt, { text: dr(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(ae, { variant: "caption", children: p > 2 ? dr(c, "dd.MM.yyyy") : Id(c, new Date(Date.now()), {
|
|
9830
9830
|
locale: l.code
|
|
9831
9831
|
}) }) }) }) }),
|
|
9832
9832
|
/* @__PURE__ */ s.jsx(ty, { linksTo: a(e) ?? void 0, onClick: r, children: /* @__PURE__ */ s.jsx(yb, { level: e.type, noIcon: !0, children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
|
|
@@ -9843,7 +9843,7 @@ 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 } } =
|
|
9846
|
+
const { texts: { messageBoard: i } } = Q(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
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: [
|
|
@@ -9869,11 +9869,11 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
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([]), [d, u] = M(!1), [
|
|
9873
|
-
|
|
9874
|
-
p(y), u(!0),
|
|
9872
|
+
const l = wt(), [c, p] = M([]), [d, u] = M(!1), [f, v] = M(!1), [g, h] = M(!1), b = P(async () => {
|
|
9873
|
+
v(!0), await l.get(r).then(({ data: y }) => {
|
|
9874
|
+
p(y), u(!0), v(!1);
|
|
9875
9875
|
}).catch(() => {
|
|
9876
|
-
p([]),
|
|
9876
|
+
p([]), v(!1);
|
|
9877
9877
|
});
|
|
9878
9878
|
}, [r, l]), m = P(async (y) => l.delete(`${n}${y}`).then(() => !0).catch(() => !1), [n, l]), x = P((y) => {
|
|
9879
9879
|
m(y).then((C) => {
|
|
@@ -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 = d ? !1 :
|
|
9890
|
+
const N = c.filter((y) => y.type === "danger").length, D = d ? !1 : f;
|
|
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,10 +9910,10 @@ 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, d = c.children, u = c.className,
|
|
9913
|
+
const p = c.eventKey, d = c.children, u = c.className, f = c.onClick;
|
|
9914
9914
|
return /* @__PURE__ */ s.jsxs(oe.Fragment, { children: [
|
|
9915
9915
|
/* @__PURE__ */ s.jsx(l, { ...c, className: j({ active: e === p }, u), onClick: () => {
|
|
9916
|
-
t(p),
|
|
9916
|
+
t(p), f && f(p);
|
|
9917
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);
|
|
@@ -9925,8 +9925,8 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9925
9925
|
disabled: n
|
|
9926
9926
|
}, { [qn.disabled]: n }, { vertical: a }, { [qn.vertical]: a }), onClick: () => r && !n && r(e), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(ae, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), Iw = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
|
|
9927
9927
|
var i;
|
|
9928
|
-
const { ProjectIconComponent: a } =
|
|
9929
|
-
return o ? /* @__PURE__ */ s.jsx(
|
|
9928
|
+
const { ProjectIconComponent: a } = Q(ve), { isMobile: o } = sn();
|
|
9929
|
+
return o ? /* @__PURE__ */ s.jsx(Er, { toggle: /* @__PURE__ */ s.jsx(Cr, { as: ln, text: ((i = e.find((l) => l.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ s.jsx(a, { icon: "chevron-down" }) }), ...n, children: e.map((l) => /* @__PURE__ */ s.jsx(nt, { onClick: () => r(l.id), children: l.name }, l.id)) }) : /* @__PURE__ */ s.jsx(ly, { activeTab: t, onSelect: (l) => r(l), ...n, children: e.map((l) => /* @__PURE__ */ s.jsx(py, { eventKey: l.id, children: l.name }, l.id)) });
|
|
9930
9930
|
}, fy = "_selection_1dtmm_1", vy = "_selectionBg_1dtmm_10", gy = "_selectionItemsContainer_1dtmm_18", my = "_selectionItems_1dtmm_18", Wr = {
|
|
9931
9931
|
selection: fy,
|
|
9932
9932
|
selectionBg: vy,
|
|
@@ -9944,12 +9944,12 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9944
9944
|
] })
|
|
9945
9945
|
] });
|
|
9946
9946
|
}, ec = () => {
|
|
9947
|
-
const e =
|
|
9947
|
+
const e = Q(rs);
|
|
9948
9948
|
if (e === void 0)
|
|
9949
9949
|
throw new Error("ShortcutLinksProvider not initilized. Probably tried to use useShortcutLinks outside ShortcutLinksProvider.");
|
|
9950
9950
|
return e;
|
|
9951
9951
|
}, hy = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n }) => {
|
|
9952
|
-
const { ProjectIconComponent: a } =
|
|
9952
|
+
const { ProjectIconComponent: a } = Q(ve), [o, i] = M(e.icon), [l, c] = M(e.name);
|
|
9953
9953
|
console.log(o, typeof o);
|
|
9954
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);
|
|
@@ -9965,7 +9965,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9965
9965
|
] }) })
|
|
9966
9966
|
] });
|
|
9967
9967
|
}, by = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n, deleteShortcutLink: a }) => {
|
|
9968
|
-
const { ProjectIconComponent: o } =
|
|
9968
|
+
const { ProjectIconComponent: o } = Q(ve), i = P(() => {
|
|
9969
9969
|
a(e.id);
|
|
9970
9970
|
}, [a, e.id]);
|
|
9971
9971
|
return /* @__PURE__ */ s.jsx("tr", { className: "mb-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -9977,7 +9977,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9977
9977
|
/* @__PURE__ */ s.jsx(hy, { shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n })
|
|
9978
9978
|
] }) });
|
|
9979
9979
|
}, jw = ({ IconComponent: e, IconTypeArray: t }) => {
|
|
9980
|
-
const { texts: r } =
|
|
9980
|
+
const { texts: r } = Q(ve), { shortcutLinks: n, editShortcutLink: a, deleteShortcutLink: o } = ec();
|
|
9981
9981
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: n !== null && n.length > 0 ? /* @__PURE__ */ s.jsxs(Wd, { title: r.shortcutLinks.shortcutLinksSetting, children: [
|
|
9982
9982
|
/* @__PURE__ */ s.jsx("thead", { className: "fw-bold", children: /* @__PURE__ */ s.jsxs("tr", { children: [
|
|
9983
9983
|
/* @__PURE__ */ s.jsx("th", {}),
|
|
@@ -9993,16 +9993,16 @@ 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 } =
|
|
9996
|
+
const i = hd(), { texts: l } = Q(ve), [c, p] = M("star-outline"), [d, u] = M(n ? document.title.replace(n, "") : document.title), f = P(async () => {
|
|
9997
9997
|
await r({ icon: c, name: d, url: i.pathname + i.search }), e();
|
|
9998
|
-
}, [e, r, c, i.pathname, i.search, d]),
|
|
9998
|
+
}, [e, r, c, i.pathname, i.search, d]), v = 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: [
|
|
10002
10002
|
/* @__PURE__ */ s.jsxs("div", { className: Wt.createLinkRow, children: [
|
|
10003
10003
|
/* @__PURE__ */ s.jsx(ae, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.target }),
|
|
10004
|
-
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold text-muted", children:
|
|
10005
|
-
|
|
10004
|
+
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold text-muted", children: v.length <= 23 ? v : /* @__PURE__ */ s.jsx(Nt, { placement: "bottom", text: v, children: /* @__PURE__ */ s.jsxs("span", { children: [
|
|
10005
|
+
v.slice(0, 21),
|
|
10006
10006
|
"..."
|
|
10007
10007
|
] }) }) })
|
|
10008
10008
|
] }),
|
|
@@ -10015,10 +10015,10 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
10015
10015
|
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(Zl, { icon: c, setIcon: p, IconComponent: a, IconTypeArray: o }) })
|
|
10016
10016
|
] })
|
|
10017
10017
|
] }),
|
|
10018
|
-
/* @__PURE__ */ s.jsx($e.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Yr, { onClick:
|
|
10018
|
+
/* @__PURE__ */ s.jsx($e.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Yr, { onClick: f, children: l.shortcutLinks.addShortcut }) })
|
|
10019
10019
|
] });
|
|
10020
10020
|
}, Ey = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: n }) => {
|
|
10021
|
-
const { ProjectIconComponent: a, texts: o } =
|
|
10021
|
+
const { ProjectIconComponent: a, texts: o } = Q(ve), [i, l] = M(!1), [c] = fa(i, 100);
|
|
10022
10022
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10023
10023
|
/* @__PURE__ */ s.jsx(Nt, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: j(Wt.linkButton, Wt.linkAddButton), onClick: () => l(!0), children: /* @__PURE__ */ s.jsx(a, { icon: "add" }) }) }),
|
|
10024
10024
|
(i || c) && /* @__PURE__ */ s.jsx(Ny, { IconComponent: e, IconTypeArray: t, closeModal: () => l(!1), createLink: n, isOpen: i, pageTitlePrefix: r })
|
|
@@ -10030,7 +10030,7 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
10030
10030
|
o && /* @__PURE__ */ s.jsx(Ey, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: a })
|
|
10031
10031
|
] }) });
|
|
10032
10032
|
}, Cy = (e) => {
|
|
10033
|
-
const t = wt(), { startLoading: r, stopLoading: n } =
|
|
10033
|
+
const t = wt(), { startLoading: r, stopLoading: n } = Q(Ir), a = P(async (l) => {
|
|
10034
10034
|
r("submit-createShortcutLink");
|
|
10035
10035
|
try {
|
|
10036
10036
|
await t.post(`/dynamicForms/insert?referenceId=${e}`, l);
|
|
@@ -10062,27 +10062,27 @@ const Jy = ({ InputContainer: e = Sr, value: t, onChange: r, debounceMs: n, labe
|
|
|
10062
10062
|
throw new Error("Tried to make operation on null shortcutLinks.");
|
|
10063
10063
|
return e;
|
|
10064
10064
|
}, _w = ({ children: e, referenceId: t }) => {
|
|
10065
|
-
const { user: r } =
|
|
10065
|
+
const { user: r } = Q(qt), n = P((v) => v.map((g) => ({ id: g.id, icon: g.icon, name: g.name, url: g.url })), []), { data: a, reloadData: o } = fr(`/dynamicForms/lookup-data-all?referenceId=${t}&employee=${r == null ? void 0 : r.personalNumber}`, {
|
|
10066
10066
|
silent: !0,
|
|
10067
10067
|
dataTransformer: n,
|
|
10068
10068
|
enabled: r !== null
|
|
10069
|
-
}), { create: i, update: l, remove: c } = Cy(t), p = P(async (
|
|
10069
|
+
}), { create: i, update: l, remove: c } = Cy(t), p = P(async (v) => {
|
|
10070
10070
|
const g = Vi(r);
|
|
10071
10071
|
if (Sy(a).length >= sa)
|
|
10072
10072
|
throw new Error("Cannot add more shortcut links.");
|
|
10073
|
-
await i({ ...
|
|
10074
|
-
}, [i, o, a, r]), d = P(async (
|
|
10073
|
+
await i({ ...v, employee: g.personalNumber }), await o();
|
|
10074
|
+
}, [i, o, a, r]), d = P(async (v) => {
|
|
10075
10075
|
const g = Vi(r);
|
|
10076
|
-
await l({ ...
|
|
10077
|
-
}, [o, l, r]), u = P(async (
|
|
10078
|
-
await c(
|
|
10079
|
-
}, [o, c]),
|
|
10076
|
+
await l({ ...v, employee: g.personalNumber }), await o();
|
|
10077
|
+
}, [o, l, r]), u = P(async (v) => {
|
|
10078
|
+
await c(v), await o();
|
|
10079
|
+
}, [o, c]), f = Y(() => ({
|
|
10080
10080
|
shortcutLinks: a,
|
|
10081
10081
|
createShortcutLink: p,
|
|
10082
10082
|
editShortcutLink: d,
|
|
10083
10083
|
deleteShortcutLink: u
|
|
10084
10084
|
}), [p, u, d, a]);
|
|
10085
|
-
return /* @__PURE__ */ s.jsx(rs.Provider, { value:
|
|
10085
|
+
return /* @__PURE__ */ s.jsx(rs.Provider, { value: f, children: e });
|
|
10086
10086
|
};
|
|
10087
10087
|
export {
|
|
10088
10088
|
on as Alert,
|
|
@@ -10101,11 +10101,11 @@ export {
|
|
|
10101
10101
|
ct as ContextButton,
|
|
10102
10102
|
ow as DisabledRowLabelLink,
|
|
10103
10103
|
Aw as Documents,
|
|
10104
|
-
|
|
10104
|
+
Er as Dropdown,
|
|
10105
10105
|
Zc as DropdownDivider,
|
|
10106
10106
|
nt as DropdownItem,
|
|
10107
10107
|
Yy as DropdownPicker,
|
|
10108
|
-
|
|
10108
|
+
Cr as DropdownToggle,
|
|
10109
10109
|
nw as DynamicForm,
|
|
10110
10110
|
lw as EmployeeSmallPhoto,
|
|
10111
10111
|
eu as ErrorBoundary,
|