react-luminus-components 1.3.251 → 1.3.252
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s, c as
|
|
1
|
+
import { j as s, c as j, t as Te, s as uo, g as po, m as cc, d as Yr, a as dc, b as uc, e as pt, f as ga, h as pc, i as fc, k as gc, l as vc, n as mc, o as hc, p as bc, T as Qi, q as Zi, r as fo, E as xc, u as es, v as va, w as ts, x as yc, y as _e, z as ma, F as rs, A as wc, B as Dc, C as Nc, D as Sc, M as Cc, G as Ec, H as Ic, I as jc, J as Oc, K as _c, L as Zn, N as Pc, O as Tc, P as de, Q as Qr, R as Ac, S as Rc, U as kc, V as ns, W as Bc, X as Lt, Y as le, Z as ha, _ as Oe, $ as ba, a0 as Mc, a1 as gt, a2 as Or, a3 as xa, a4 as re, a5 as ya, a6 as as, a7 as wa, a8 as Nt, a9 as os, aa as is, ab as Xe, ac as St, ad as Vt, ae as Lc, af as mt, ag as Fc, ah as Vc, ai as _r, aj as it, ak as Ct, al as Jt, am as Da, an as $e, ao as Na, ap as un, aq as Sa, ar as $c, as as Gc, at as Wc, au as Qt, av as Zt, aw as Pr, ax as et, ay as ss, az as mr, aA as Et, aB as pn, aC as fn, aD as ls, aE as bt, aF as Ze, aG as Ca, aH as Uc, aI as Hc, aJ as zc, aK as cs, aL as qc, aM as Yc, aN as Kc, aO as Xc, aP as at, aQ as Jc, aR as Qc, aS as Zr, aT as ee, aU as ds, aV as Zc, aW as ed, aX as td, aY as us, aZ as rd, a_ as nd, a$ as ad, b0 as od, b1 as id, b2 as sd, b3 as ld, b4 as cd, b5 as ht, b6 as dd, b7 as ud, b8 as pd, b9 as fd, ba as gd, bb as en, bc as vd, bd as Sn, be as md, bf as Wt, bg as hd, bh as bd, bi as xd, bj as tn, bk as yd, bl as wd, bm as ps, bn as Cn, bo as Dd, bp as Nd, bq as go } from "./nivo-bar.es-DOi9xK6m.js";
|
|
2
2
|
import { bt as oD, bu as iD, br as sD, bs as lD } from "./nivo-bar.es-DOi9xK6m.js";
|
|
3
3
|
import * as Ne from "react";
|
|
4
4
|
import ie, { useCallback as T, useMemo as V, useState as L, useRef as Z, useEffect as W, useContext as q, useId as Sd, Component as Cd, isValidElement as vo, Suspense as Ed, useLayoutEffect as Ea, useReducer as Id } from "react";
|
|
@@ -23,10 +23,10 @@ const dw = ({ fileLoader: e, fileName: t, children: r }) => {
|
|
|
23
23
|
i.href = o, i.setAttribute("download", t), (l = document.body) == null || l.appendChild(i), i.click(), (c = document.body) == null || c.removeChild(i);
|
|
24
24
|
}, [e, t]);
|
|
25
25
|
return /* @__PURE__ */ s.jsx("div", { role: "button", onClick: n, children: r });
|
|
26
|
-
}, $d = ({ className: e, size: t, ...r }) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
27
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
28
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
29
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
26
|
+
}, $d = ({ className: e, size: t, ...r }) => /* @__PURE__ */ s.jsxs("div", { className: j("luminus-loading", st.loading, st.loadingBlock, t === "line" ? st.sizeLine : void 0, t === "fill" ? st.sizeFill : void 0, e), ...r, children: [
|
|
27
|
+
/* @__PURE__ */ s.jsx("div", { className: j("spinner-grow", st.spinnerGrow, "text-primary"), role: "status" }),
|
|
28
|
+
/* @__PURE__ */ s.jsx("div", { className: j("spinner-grow", st.spinnerGrow, "text-primary", st.second), role: "status" }),
|
|
29
|
+
/* @__PURE__ */ s.jsx("div", { className: j("spinner-grow", st.spinnerGrow, "text-primary", st.third), role: "status" })
|
|
30
30
|
] });
|
|
31
31
|
function Gd(e, t) {
|
|
32
32
|
const r = Te(e), n = Te(t), a = r.getTime() - n.getTime();
|
|
@@ -179,11 +179,11 @@ const Kd = {
|
|
|
179
179
|
const h = typeof l == "function" ? l() : l, m = V(() => lr((S) => {
|
|
180
180
|
S.style[h] = "0";
|
|
181
181
|
}, e), [h, e]), x = V(() => lr((S) => {
|
|
182
|
-
const
|
|
183
|
-
S.style[h] = `${S[
|
|
184
|
-
}, t), [h, t]),
|
|
182
|
+
const I = `scroll${h[0].toUpperCase()}${h.slice(1)}`;
|
|
183
|
+
S.style[h] = `${S[I]}px`;
|
|
184
|
+
}, t), [h, t]), D = V(() => lr((S) => {
|
|
185
185
|
S.style[h] = null;
|
|
186
|
-
}, r), [h, r]),
|
|
186
|
+
}, r), [h, r]), N = V(() => lr((S) => {
|
|
187
187
|
S.style[h] = `${g(h, S)}px`, yc(S);
|
|
188
188
|
}, n), [n, g, h]), y = V(() => lr((S) => {
|
|
189
189
|
S.style[h] = null;
|
|
@@ -195,8 +195,8 @@ const Kd = {
|
|
|
195
195
|
"aria-expanded": v.role ? c : null,
|
|
196
196
|
onEnter: m,
|
|
197
197
|
onEntering: x,
|
|
198
|
-
onEntered:
|
|
199
|
-
onExit:
|
|
198
|
+
onEntered: D,
|
|
199
|
+
onExit: N,
|
|
200
200
|
onExiting: y,
|
|
201
201
|
childRef: i.ref,
|
|
202
202
|
in: c,
|
|
@@ -204,9 +204,9 @@ const Kd = {
|
|
|
204
204
|
mountOnEnter: d,
|
|
205
205
|
unmountOnExit: u,
|
|
206
206
|
appear: f,
|
|
207
|
-
children: (S,
|
|
208
|
-
...
|
|
209
|
-
className:
|
|
207
|
+
children: (S, I) => /* @__PURE__ */ ie.cloneElement(i, {
|
|
208
|
+
...I,
|
|
209
|
+
className: j(o, i.props.className, Kd[S], h === "width" && "collapse-horizontal")
|
|
210
210
|
})
|
|
211
211
|
});
|
|
212
212
|
}), _a = /* @__PURE__ */ Ne.forwardRef(({
|
|
@@ -216,7 +216,7 @@ const Kd = {
|
|
|
216
216
|
...n
|
|
217
217
|
}, a) => (t = _e(t, "card-body"), /* @__PURE__ */ s.jsx(r, {
|
|
218
218
|
ref: a,
|
|
219
|
-
className:
|
|
219
|
+
className: j(e, t),
|
|
220
220
|
...n
|
|
221
221
|
})));
|
|
222
222
|
_a.displayName = "CardBody";
|
|
@@ -227,7 +227,7 @@ const ms = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
227
227
|
...n
|
|
228
228
|
}, a) => (t = _e(t, "card-footer"), /* @__PURE__ */ s.jsx(r, {
|
|
229
229
|
ref: a,
|
|
230
|
-
className:
|
|
230
|
+
className: j(e, t),
|
|
231
231
|
...n
|
|
232
232
|
})));
|
|
233
233
|
ms.displayName = "CardFooter";
|
|
@@ -248,7 +248,7 @@ const bs = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
248
248
|
children: /* @__PURE__ */ s.jsx(r, {
|
|
249
249
|
ref: a,
|
|
250
250
|
...n,
|
|
251
|
-
className:
|
|
251
|
+
className: j(t, o)
|
|
252
252
|
})
|
|
253
253
|
});
|
|
254
254
|
});
|
|
@@ -265,7 +265,7 @@ const xs = /* @__PURE__ */ Ne.forwardRef(
|
|
|
265
265
|
const i = _e(e, "card-img");
|
|
266
266
|
return /* @__PURE__ */ s.jsx(n, {
|
|
267
267
|
ref: o,
|
|
268
|
-
className:
|
|
268
|
+
className: j(r ? `${i}-${r}` : i, t),
|
|
269
269
|
...a
|
|
270
270
|
});
|
|
271
271
|
}
|
|
@@ -278,7 +278,7 @@ const ys = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
278
278
|
...n
|
|
279
279
|
}, a) => (t = _e(t, "card-img-overlay"), /* @__PURE__ */ s.jsx(r, {
|
|
280
280
|
ref: a,
|
|
281
|
-
className:
|
|
281
|
+
className: j(e, t),
|
|
282
282
|
...n
|
|
283
283
|
})));
|
|
284
284
|
ys.displayName = "CardImgOverlay";
|
|
@@ -289,7 +289,7 @@ const ws = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
289
289
|
...n
|
|
290
290
|
}, a) => (t = _e(t, "card-link"), /* @__PURE__ */ s.jsx(r, {
|
|
291
291
|
ref: a,
|
|
292
|
-
className:
|
|
292
|
+
className: j(e, t),
|
|
293
293
|
...n
|
|
294
294
|
})));
|
|
295
295
|
ws.displayName = "CardLink";
|
|
@@ -300,7 +300,7 @@ const Xd = ma("h6"), Ds = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
300
300
|
...n
|
|
301
301
|
}, a) => (t = _e(t, "card-subtitle"), /* @__PURE__ */ s.jsx(r, {
|
|
302
302
|
ref: a,
|
|
303
|
-
className:
|
|
303
|
+
className: j(e, t),
|
|
304
304
|
...n
|
|
305
305
|
})));
|
|
306
306
|
Ds.displayName = "CardSubtitle";
|
|
@@ -311,7 +311,7 @@ const Ns = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
311
311
|
...n
|
|
312
312
|
}, a) => (t = _e(t, "card-text"), /* @__PURE__ */ s.jsx(r, {
|
|
313
313
|
ref: a,
|
|
314
|
-
className:
|
|
314
|
+
className: j(e, t),
|
|
315
315
|
...n
|
|
316
316
|
})));
|
|
317
317
|
Ns.displayName = "CardText";
|
|
@@ -322,7 +322,7 @@ const Jd = ma("h5"), Ss = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
322
322
|
...n
|
|
323
323
|
}, a) => (t = _e(t, "card-title"), /* @__PURE__ */ s.jsx(r, {
|
|
324
324
|
ref: a,
|
|
325
|
-
className:
|
|
325
|
+
className: j(e, t),
|
|
326
326
|
...n
|
|
327
327
|
})));
|
|
328
328
|
Ss.displayName = "CardTitle";
|
|
@@ -342,7 +342,7 @@ const Cs = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
342
342
|
return /* @__PURE__ */ s.jsx(l, {
|
|
343
343
|
ref: p,
|
|
344
344
|
...c,
|
|
345
|
-
className:
|
|
345
|
+
className: j(t, d, r && `bg-${r}`, n && `text-${n}`, a && `border-${a}`),
|
|
346
346
|
children: o ? /* @__PURE__ */ s.jsx(_a, {
|
|
347
347
|
children: i
|
|
348
348
|
}) : i
|
|
@@ -366,7 +366,7 @@ const No = Object.assign(Cs, {
|
|
|
366
366
|
...n
|
|
367
367
|
}, a) => (t = _e(t, "input-group-text"), /* @__PURE__ */ s.jsx(r, {
|
|
368
368
|
ref: a,
|
|
369
|
-
className:
|
|
369
|
+
className: j(e, t),
|
|
370
370
|
...n
|
|
371
371
|
})));
|
|
372
372
|
vn.displayName = "InputGroupText";
|
|
@@ -396,7 +396,7 @@ const Qd = (e) => /* @__PURE__ */ s.jsx(vn, {
|
|
|
396
396
|
children: /* @__PURE__ */ s.jsx(a, {
|
|
397
397
|
ref: i,
|
|
398
398
|
...o,
|
|
399
|
-
className:
|
|
399
|
+
className: j(n, e, t && `${e}-${t}`, r && "has-validation")
|
|
400
400
|
})
|
|
401
401
|
});
|
|
402
402
|
});
|
|
@@ -468,7 +468,7 @@ const ru = tu({
|
|
|
468
468
|
...n
|
|
469
469
|
}, a) => (t = _e(t, "offcanvas-body"), /* @__PURE__ */ s.jsx(r, {
|
|
470
470
|
ref: a,
|
|
471
|
-
className:
|
|
471
|
+
className: j(e, t),
|
|
472
472
|
...n
|
|
473
473
|
})));
|
|
474
474
|
Is.displayName = "OffcanvasBody";
|
|
@@ -495,7 +495,7 @@ const nu = {
|
|
|
495
495
|
childRef: r.ref,
|
|
496
496
|
children: (p, d) => /* @__PURE__ */ Ne.cloneElement(r, {
|
|
497
497
|
...d,
|
|
498
|
-
className:
|
|
498
|
+
className: j(t, r.props.className, (p === va || p === es) && `${e}-toggling`, nu[p])
|
|
499
499
|
})
|
|
500
500
|
})));
|
|
501
501
|
js.displayName = "OffcanvasToggling";
|
|
@@ -508,7 +508,7 @@ const Os = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
508
508
|
}, o) => (e = _e(e, "offcanvas-header"), /* @__PURE__ */ s.jsx(Nc, {
|
|
509
509
|
ref: o,
|
|
510
510
|
...a,
|
|
511
|
-
className:
|
|
511
|
+
className: j(t, e),
|
|
512
512
|
closeLabel: r,
|
|
513
513
|
closeButton: n
|
|
514
514
|
})));
|
|
@@ -520,7 +520,7 @@ const au = ma("h5"), _s = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
520
520
|
...n
|
|
521
521
|
}, a) => (t = _e(t, "offcanvas-title"), /* @__PURE__ */ s.jsx(r, {
|
|
522
522
|
ref: a,
|
|
523
|
-
className:
|
|
523
|
+
className: j(e, t),
|
|
524
524
|
...n
|
|
525
525
|
})));
|
|
526
526
|
_s.displayName = "OffcanvasTitle";
|
|
@@ -555,11 +555,11 @@ const Ps = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
555
555
|
restoreFocus: h = !0,
|
|
556
556
|
restoreFocusOptions: m,
|
|
557
557
|
onEntered: x,
|
|
558
|
-
onExit:
|
|
559
|
-
onExiting:
|
|
558
|
+
onExit: D,
|
|
559
|
+
onExiting: N,
|
|
560
560
|
onEnter: y,
|
|
561
561
|
onEntering: S,
|
|
562
|
-
onExited:
|
|
562
|
+
onExited: I,
|
|
563
563
|
backdropClassName: O,
|
|
564
564
|
manager: E,
|
|
565
565
|
renderStaticNode: P = !1,
|
|
@@ -582,14 +582,14 @@ const Ps = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
582
582
|
const z = (oe, ...H) => {
|
|
583
583
|
oe && (oe.style.visibility = "visible"), y == null || y(oe, ...H);
|
|
584
584
|
}, K = (oe, ...H) => {
|
|
585
|
-
oe && (oe.style.visibility = ""),
|
|
585
|
+
oe && (oe.style.visibility = ""), I == null || I(...H);
|
|
586
586
|
}, te = T((oe) => /* @__PURE__ */ s.jsx("div", {
|
|
587
587
|
...oe,
|
|
588
|
-
className:
|
|
588
|
+
className: j(`${e}-backdrop`, O)
|
|
589
589
|
}), [O, e]), ae = (oe) => /* @__PURE__ */ s.jsx("div", {
|
|
590
590
|
...oe,
|
|
591
591
|
...k,
|
|
592
|
-
className:
|
|
592
|
+
className: j(t, o ? `${e}-${o}` : e, `${e}-${a}`),
|
|
593
593
|
"aria-labelledby": n,
|
|
594
594
|
children: r
|
|
595
595
|
});
|
|
@@ -612,8 +612,8 @@ const Ps = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
612
612
|
onEnter: z,
|
|
613
613
|
onEntering: S,
|
|
614
614
|
onEntered: x,
|
|
615
|
-
onExit:
|
|
616
|
-
onExiting:
|
|
615
|
+
onExit: D,
|
|
616
|
+
onExiting: N,
|
|
617
617
|
onExited: K,
|
|
618
618
|
manager: F(),
|
|
619
619
|
transition: ou,
|
|
@@ -644,7 +644,7 @@ function Ts({
|
|
|
644
644
|
}] = _c(a);
|
|
645
645
|
return {
|
|
646
646
|
...i,
|
|
647
|
-
className:
|
|
647
|
+
className: j(o, e ? `${r}-${e}` : r, n && `${r}-${n}`, t && `bg-${t}`)
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
const As = /* @__PURE__ */ Ne.forwardRef((e, t) => {
|
|
@@ -690,7 +690,7 @@ const ft = Object.assign(Rs, {
|
|
|
690
690
|
}), /* @__PURE__ */ s.jsx(r, {
|
|
691
691
|
ref: a,
|
|
692
692
|
...n,
|
|
693
|
-
className:
|
|
693
|
+
className: j(t, o, ...p)
|
|
694
694
|
});
|
|
695
695
|
});
|
|
696
696
|
Pa.displayName = "Row";
|
|
@@ -706,7 +706,7 @@ const su = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
706
706
|
responsive: c,
|
|
707
707
|
...p
|
|
708
708
|
}, d) => {
|
|
709
|
-
const u = _e(e, "table"), f =
|
|
709
|
+
const u = _e(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`), g = /* @__PURE__ */ s.jsx("table", {
|
|
710
710
|
...p,
|
|
711
711
|
className: f,
|
|
712
712
|
ref: d
|
|
@@ -736,7 +736,7 @@ const su = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
736
736
|
d.target.files && (a(d.target.files), d.target.value = "");
|
|
737
737
|
};
|
|
738
738
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
739
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className:
|
|
739
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: j(`luminus-context-button btn text-${e} ${o ?? ""}`, kc.button), ...c, children: [
|
|
740
740
|
t,
|
|
741
741
|
i
|
|
742
742
|
] }),
|
|
@@ -752,7 +752,7 @@ const su = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
752
752
|
}
|
|
753
753
|
}, [e]), i = Sd();
|
|
754
754
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
755
|
-
/* @__PURE__ */ s.jsx("label", { htmlFor: i, className:
|
|
755
|
+
/* @__PURE__ */ s.jsx("label", { htmlFor: i, className: j("btn luminus-context-button text-primary", `btn-${a}`, n), children: r }),
|
|
756
756
|
/* @__PURE__ */ s.jsx("input", { id: i, type: "file", accept: t, onChange: o, hidden: !0 })
|
|
757
757
|
] });
|
|
758
758
|
}, cu = "_select_14f33_1", du = "_sm_14f33_11", uu = "_lg_14f33_23", Vr = {
|
|
@@ -777,18 +777,18 @@ const su = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
777
777
|
});
|
|
778
778
|
return v;
|
|
779
779
|
}, [r]);
|
|
780
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
780
|
+
return /* @__PURE__ */ s.jsxs("div", { className: j("card d-flex flex-row align-items-center justify-content-center m-0 p-1 gap-2", o, {
|
|
781
781
|
[Vr[c]]: c
|
|
782
782
|
}), children: [
|
|
783
783
|
/* @__PURE__ */ s.jsx(le, { onClick: () => p(-1), disabled: e.getFullYear() < n || e.getFullYear() === n && e.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(ha, {}) }),
|
|
784
784
|
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getMonth(), onChange: (f) => {
|
|
785
785
|
var g;
|
|
786
786
|
return ((g = f.target) == null ? void 0 : g.value) && t(zd(e, Number(f.target.value)));
|
|
787
|
-
}, className:
|
|
787
|
+
}, className: j(Vr.select, Vr.month, i), children: u.map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id, children: f.name }, f.id)) }),
|
|
788
788
|
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getFullYear(), onChange: (f) => {
|
|
789
789
|
var g;
|
|
790
790
|
return ((g = f.target) == null ? void 0 : g.value) && t(ta(e, Number(f.target.value)));
|
|
791
|
-
}, className:
|
|
791
|
+
}, className: j(Vr.select, l), children: d.map((f) => /* @__PURE__ */ s.jsx("option", { value: f, children: f }, f)) }),
|
|
792
792
|
/* @__PURE__ */ s.jsx(le, { onClick: () => p(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ s.jsx(ba, {}) })
|
|
793
793
|
] });
|
|
794
794
|
}, fu = "_select_pywmr_1", gu = {
|
|
@@ -819,12 +819,12 @@ const su = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
819
819
|
d >= o && d <= i && t(Mc(e, p));
|
|
820
820
|
}
|
|
821
821
|
}, [e, t, i, o, a, l]);
|
|
822
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
822
|
+
return /* @__PURE__ */ s.jsxs("div", { className: j("d-flex flex-row align-items-center m-0", n === "standart" ? "card p-1 gap-2" : void 0, n === "minimalist" ? "p-0 gap-0" : void 0, r ?? ""), children: [
|
|
823
823
|
/* @__PURE__ */ s.jsx(le, { onClick: () => c(-1), disabled: e.getFullYear() <= o, children: /* @__PURE__ */ s.jsx(ha, {}) }),
|
|
824
824
|
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getFullYear(), onChange: (p) => {
|
|
825
825
|
var d;
|
|
826
826
|
return ((d = p.target) == null ? void 0 : d.value) && t(ta(e, Number(p.target.value)));
|
|
827
|
-
}, className:
|
|
827
|
+
}, className: j(gu.select, "bg-transparent"), children: l.map((p) => /* @__PURE__ */ s.jsx("option", { value: p, children: p }, p)) }),
|
|
828
828
|
/* @__PURE__ */ s.jsx(le, { onClick: () => c(1), disabled: e.getFullYear() >= i, children: /* @__PURE__ */ s.jsx(ba, {}) })
|
|
829
829
|
] });
|
|
830
830
|
};
|
|
@@ -874,7 +874,7 @@ const hu = (e) => (r) => {
|
|
|
874
874
|
}, bu = hu(mu), xu = "_widget-card_e9tsb_1", yu = {
|
|
875
875
|
"widget-card": "_widget-card_e9tsb_1",
|
|
876
876
|
widgetCard: xu
|
|
877
|
-
}, jo = ({ children: e, title: t, headerContent: r }) => /* @__PURE__ */ s.jsx(nn, { className:
|
|
877
|
+
}, jo = ({ children: e, title: t, headerContent: r }) => /* @__PURE__ */ s.jsx(nn, { className: j(yu.widgetCard, "luminus-widget"), title: t, headerContent: r, contentClassName: "h-100 overflow-auto", children: e }), wu = ({ children: e, title: t }) => {
|
|
878
878
|
const { texts: { widget: r } } = q(de), n = gn();
|
|
879
879
|
return /* @__PURE__ */ s.jsx(bu, { fallback: /* @__PURE__ */ s.jsx(jo, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => n(-1), children: /* @__PURE__ */ s.jsx(Ed, { fallback: /* @__PURE__ */ s.jsx(jo, { title: t, children: /* @__PURE__ */ s.jsx($d, {}) }), children: e }) });
|
|
880
880
|
}, na = ({ InputContainer: e = Or, label: t, value: r, onChange: n, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: p, hint: d }) => {
|
|
@@ -885,7 +885,7 @@ const hu = (e) => (r) => {
|
|
|
885
885
|
var g;
|
|
886
886
|
n && n(((g = f.target) == null ? void 0 : g.checked) ?? !1);
|
|
887
887
|
}, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
|
|
888
|
-
}, pw = ({ InputContainer: e = Or, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: f, hidden: g, disabled: v, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon:
|
|
888
|
+
}, pw = ({ InputContainer: e = Or, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: f, hidden: g, disabled: v, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon: D, hint: N, addNewOptionPath: y, refreshOptions: S, MiniDetailComponent: I, miniDetailPlacement: O, suggestedItems: E, suggestedItemsTitle: P }) => {
|
|
889
889
|
const [k, M] = L(!1), C = T((F) => {
|
|
890
890
|
l && l(F);
|
|
891
891
|
}, [l]), Q = T((F) => {
|
|
@@ -894,10 +894,10 @@ const hu = (e) => (r) => {
|
|
|
894
894
|
var F, z;
|
|
895
895
|
return b ? ((F = i == null ? void 0 : i.id) == null ? void 0 : F.toString()) ?? "" : i != null && i.name && i.name.length > 0 ? i.name : ((z = i == null ? void 0 : i.id) == null ? void 0 : z.toString()) ?? "";
|
|
896
896
|
}, [i, b]);
|
|
897
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: g, inputContainerClassName:
|
|
897
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: g, inputContainerClassName: j({ "luminus-dropdown-select-open": k }), className: m, hint: N, disabled: v, children: [
|
|
898
898
|
/* @__PURE__ */ s.jsxs(xa, { currentSelection: i, selectedItemNavigateTo: r, children: [
|
|
899
899
|
b && (i == null ? void 0 : i.name) && /* @__PURE__ */ s.jsx(re, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: i.name }),
|
|
900
|
-
/* @__PURE__ */ s.jsx(ya, { value: (i == null ? void 0 : i.id) ?? null, MiniDetailComponent:
|
|
900
|
+
/* @__PURE__ */ s.jsx(ya, { value: (i == null ? void 0 : i.id) ?? null, MiniDetailComponent: I, miniDetailPlacement: O, children: /* @__PURE__ */ s.jsxs(
|
|
901
901
|
Oe.Select,
|
|
902
902
|
{
|
|
903
903
|
ref: Y,
|
|
@@ -911,7 +911,7 @@ const hu = (e) => (r) => {
|
|
|
911
911
|
},
|
|
912
912
|
onChange: () => {
|
|
913
913
|
},
|
|
914
|
-
className:
|
|
914
|
+
className: j("w-100", {
|
|
915
915
|
"luminus-dropdown-picker-disabled": v,
|
|
916
916
|
"luminus-dropdown-picker-link": R
|
|
917
917
|
}),
|
|
@@ -925,7 +925,7 @@ const hu = (e) => (r) => {
|
|
|
925
925
|
h || !v && B ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
926
926
|
!h && !v && B && /* @__PURE__ */ s.jsx(le, { size: "sm", color: "secondary", onClick: (F) => {
|
|
927
927
|
F.preventDefault(), F.stopPropagation(), M(!0);
|
|
928
|
-
}, children:
|
|
928
|
+
}, children: D ?? /* @__PURE__ */ s.jsx(as, {}) }),
|
|
929
929
|
h ?? null
|
|
930
930
|
] }) : null
|
|
931
931
|
] }),
|
|
@@ -937,22 +937,22 @@ const hu = (e) => (r) => {
|
|
|
937
937
|
return;
|
|
938
938
|
const S = i ?? null;
|
|
939
939
|
r((S == null ? void 0 : S.toString()) ?? "");
|
|
940
|
-
}, [i, r]), m = Z(null), [x,
|
|
941
|
-
const
|
|
942
|
-
r && r(
|
|
940
|
+
}, [i, r]), m = Z(null), [x, D] = L((t == null ? void 0 : t.toString()) ?? ""), N = T((S) => {
|
|
941
|
+
const I = S;
|
|
942
|
+
r && r(I || null);
|
|
943
943
|
}, [r]), y = T((S) => {
|
|
944
944
|
var O;
|
|
945
|
-
const
|
|
945
|
+
const I = (O = S.target) == null ? void 0 : O.value;
|
|
946
946
|
if (!u) {
|
|
947
|
-
|
|
947
|
+
N(I);
|
|
948
948
|
return;
|
|
949
949
|
}
|
|
950
|
-
|
|
951
|
-
|
|
950
|
+
D(I), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
951
|
+
N(I);
|
|
952
952
|
}, u);
|
|
953
|
-
}, [u,
|
|
953
|
+
}, [u, N]);
|
|
954
954
|
return W(() => {
|
|
955
|
-
|
|
955
|
+
D(t === null ? "" : t.toString());
|
|
956
956
|
}, [t]), /* @__PURE__ */ s.jsxs(e, { label: n ?? "", hidden: l, withoutLabel: d, className: v, isForTextAreaInput: !0, hint: b, disabled: c, children: [
|
|
957
957
|
/* @__PURE__ */ s.jsx(Oe.Control, { as: "textarea", size: a, value: u ? x : t ?? "", onChange: y, hidden: l, disabled: c, rows: p ?? 2, className: "w-100", minLength: f, maxLength: g }),
|
|
958
958
|
o && t && r && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: h, children: /* @__PURE__ */ s.jsx(Nt, {}) }) })
|
|
@@ -963,24 +963,24 @@ const hu = (e) => (r) => {
|
|
|
963
963
|
return;
|
|
964
964
|
const O = u ?? null;
|
|
965
965
|
r(O ? Number(O) : null);
|
|
966
|
-
}, [u, r]),
|
|
966
|
+
}, [u, r]), D = Z(null), [N, y] = L((t == null ? void 0 : t.toString()) ?? ""), S = T((O) => {
|
|
967
967
|
const E = O;
|
|
968
968
|
r && r(E == null || E === "" ? null : pr(Number(E), b, h));
|
|
969
|
-
}, [h, b, r]),
|
|
969
|
+
}, [h, b, r]), I = T((O) => {
|
|
970
970
|
var P;
|
|
971
971
|
const E = (P = O.target) == null ? void 0 : P.value;
|
|
972
972
|
if (!n) {
|
|
973
973
|
S(E);
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
|
-
y(pr(Number(E), b, h).toString()),
|
|
976
|
+
y(pr(Number(E), b, h).toString()), D.current !== null && window.clearTimeout(D.current), D.current = window.setTimeout(() => {
|
|
977
977
|
S(E);
|
|
978
978
|
}, n);
|
|
979
979
|
}, [n, S, h, b]);
|
|
980
980
|
return W(() => {
|
|
981
981
|
y(t === null ? "" : pr(t, b, h).toString());
|
|
982
982
|
}, [h, b, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className: f, disabled: p, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
983
|
-
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: i ?? a, size: l, value: n ?
|
|
983
|
+
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? N : t ?? "", onChange: I, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: p ?? !1, step: g }),
|
|
984
984
|
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !p && /* @__PURE__ */ s.jsx(le, { size: "sm", onClick: (O) => {
|
|
985
985
|
O.preventDefault(), O.stopPropagation(), S(((t ?? 0) - v).toString());
|
|
986
986
|
}, children: /* @__PURE__ */ s.jsx(os, {}) }) }),
|
|
@@ -1154,8 +1154,8 @@ function Tu(e) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
function Au(e, t, r, n, a, o, i) {
|
|
1156
1156
|
i === void 0 && (i = Tu);
|
|
1157
|
-
var l = a.findIndex(function(
|
|
1158
|
-
return
|
|
1157
|
+
var l = a.findIndex(function(N) {
|
|
1158
|
+
return N;
|
|
1159
1159
|
}), c = e.slice(0, l);
|
|
1160
1160
|
!t && !r.startsWith(c) && (t = c, r = c + r, n = n + c.length);
|
|
1161
1161
|
for (var p = r.length, d = e.length, u = {}, f = new Array(p), g = 0; g < p; g++) {
|
|
@@ -1179,8 +1179,8 @@ function Au(e, t, r, n, a, o, i) {
|
|
|
1179
1179
|
var x = m === p || f[m] === -1 ? d : f[m];
|
|
1180
1180
|
for (m = n - 1; m > 0 && f[m] === -1; )
|
|
1181
1181
|
m--;
|
|
1182
|
-
var
|
|
1183
|
-
return
|
|
1182
|
+
var D = m === -1 || f[m] === -1 ? 0 : f[m] + 1;
|
|
1183
|
+
return D > x ? x : n - D < x - n ? D : x;
|
|
1184
1184
|
}
|
|
1185
1185
|
function Po(e, t, r, n) {
|
|
1186
1186
|
var a = e.length;
|
|
@@ -1248,9 +1248,9 @@ function Mu(e) {
|
|
|
1248
1248
|
h === void 0 && (h = vt);
|
|
1249
1249
|
var m = e.value, x = e.getCaretBoundary;
|
|
1250
1250
|
x === void 0 && (x = Ru);
|
|
1251
|
-
var
|
|
1252
|
-
|
|
1253
|
-
var
|
|
1251
|
+
var D = e.isValidInputCharacter;
|
|
1252
|
+
D === void 0 && (D = yr);
|
|
1253
|
+
var N = e.isCharacterSame, y = Bs(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = Gs(m, c, !!p, i, l, d), I = S[0], O = I.formattedValue, E = I.numAsString, P = S[1], k = Z(), M = Z({ formattedValue: O, numAsString: E }), C = function(G, A) {
|
|
1254
1254
|
M.current = { formattedValue: G.formattedValue, numAsString: G.value }, P(G, A);
|
|
1255
1255
|
}, Q = L(!1), Y = Q[0], B = Q[1], R = Z(null), $ = Z({
|
|
1256
1256
|
setCaretTimeout: null,
|
|
@@ -1275,7 +1275,7 @@ function Mu(e) {
|
|
|
1275
1275
|
}, te = function(G, A, J) {
|
|
1276
1276
|
return Po(G, A, x(G), J);
|
|
1277
1277
|
}, ae = function(G, A, J) {
|
|
1278
|
-
var ue = x(A), Ee = Au(A, O, G, J, ue,
|
|
1278
|
+
var ue = x(A), Ee = Au(A, O, G, J, ue, D, N);
|
|
1279
1279
|
return Ee = Po(A, Ee, ue), Ee;
|
|
1280
1280
|
}, oe = function(G) {
|
|
1281
1281
|
var A = G.formattedValue;
|
|
@@ -1339,7 +1339,7 @@ function Mu(e) {
|
|
|
1339
1339
|
if (Je) {
|
|
1340
1340
|
var Gt = J === "ArrowLeft" ? "left" : "right";
|
|
1341
1341
|
Qe = te(me, ce, Gt), Qe !== ce && G.preventDefault();
|
|
1342
|
-
} else J === "Delete" && !
|
|
1342
|
+
} else J === "Delete" && !D(me[ce]) ? Qe = te(me, ce, "right") : J === "Backspace" && !D(me[ce]) && (Qe = te(me, ce, "left"));
|
|
1343
1343
|
Qe !== ce && K(A, Qe, me), g(G), se(A, Be);
|
|
1344
1344
|
}, _ = function(G) {
|
|
1345
1345
|
var A = G.target, J = function() {
|
|
@@ -1431,14 +1431,14 @@ function $u(e, t, r) {
|
|
|
1431
1431
|
o.startsWith("-") ? z = !1 : R.startsWith("--") ? (z = !1, K = !0) : i.startsWith("-") && R.length === i.length ? z = !1 : R[0] === "-" && (z = !0);
|
|
1432
1432
|
var te = z ? 1 : 0;
|
|
1433
1433
|
return K && (te = 2), te && (R = R.substring(te), $ -= te, F -= te), { value: R, start: $, end: F, hasNegation: z };
|
|
1434
|
-
}, x = m(e, d, u),
|
|
1434
|
+
}, x = m(e, d, u), D = x.hasNegation;
|
|
1435
1435
|
n = x, e = n.value, d = n.start, u = n.end;
|
|
1436
|
-
var
|
|
1437
|
-
e.length &&
|
|
1436
|
+
var N = m(t.lastValue, c.start, c.end), y = N.start, S = N.end, I = N.value, O = e.substring(d, u);
|
|
1437
|
+
e.length && I.length && (y > I.length - i.length || S < o.length) && !(O && i.startsWith(O)) && (e = I);
|
|
1438
1438
|
var E = 0;
|
|
1439
1439
|
e.startsWith(o) ? E += o.length : d < o.length && (E = d), e = e.substring(E), u -= E;
|
|
1440
1440
|
var P = e.length, k = e.length - i.length;
|
|
1441
|
-
e.endsWith(i) ? P = k : (u > k || u > e.length - i.length) && (P = u), e = e.substring(0, P), e = Lu(
|
|
1441
|
+
e.endsWith(i) ? P = k : (u > k || u > e.length - i.length) && (P = u), e = e.substring(0, P), e = Lu(D ? "-" + e : e, a), e = (e.match(Fu(v)) || []).join("");
|
|
1442
1442
|
var M = e.indexOf(v);
|
|
1443
1443
|
e = e.replace(new RegExp(Ls(v), "g"), function(R, $) {
|
|
1444
1444
|
return $ === M ? "." : "";
|
|
@@ -1484,13 +1484,13 @@ function Uu(e) {
|
|
|
1484
1484
|
p === void 0 && (p = "");
|
|
1485
1485
|
var d = e.defaultValue, u = e.value, f = e.valueIsNumericString, g = e.onValueChange, v = Bs(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), b = mn(e), h = b.decimalSeparator, m = b.allowedDecimalSeparators, x = function(B) {
|
|
1486
1486
|
return To(B, e);
|
|
1487
|
-
},
|
|
1487
|
+
}, D = function(B, R) {
|
|
1488
1488
|
return $u(B, R, e);
|
|
1489
|
-
},
|
|
1489
|
+
}, N = zt(u) ? d : u, y = f ?? Vu(N, p, t);
|
|
1490
1490
|
zt(u) ? zt(d) || (y = y || typeof d == "number") : y = y || typeof u == "number";
|
|
1491
1491
|
var S = function(B) {
|
|
1492
1492
|
return Ms(B) ? B : (typeof B == "number" && (B = Vs(B)), y && typeof l == "number" ? _o(B, l, !!c) : B);
|
|
1493
|
-
},
|
|
1493
|
+
}, I = Gs(S(u), S(d), !!y, x, D, g), O = I[0], E = O.numAsString, P = O.formattedValue, k = I[1], M = function(B) {
|
|
1494
1494
|
var R = B.target, $ = B.key, F = R.selectionStart, z = R.selectionEnd, K = R.value;
|
|
1495
1495
|
if (K === void 0 && (K = ""), ($ === "Backspace" || $ === "Delete") && z < p.length) {
|
|
1496
1496
|
B.preventDefault();
|
|
@@ -1521,7 +1521,7 @@ function Uu(e) {
|
|
|
1521
1521
|
return B === h ? !0 : yr(B);
|
|
1522
1522
|
}, Y = function(B) {
|
|
1523
1523
|
var R = B.currentValue, $ = B.lastValue, F = B.formattedValue, z = B.currentValueIndex, K = B.formattedValueIndex, te = R[z], ae = F[K], oe = $s($, R), H = oe.to, U = function(pe) {
|
|
1524
|
-
return
|
|
1524
|
+
return D(pe).indexOf(".") + p.length;
|
|
1525
1525
|
};
|
|
1526
1526
|
return u === 0 && c && l && R[H.start] === h && U(R) < z && U(F) > K ? !1 : z >= H.start && z < H.end && m && m.includes(te) && ae === h ? !0 : te === ae;
|
|
1527
1527
|
};
|
|
@@ -1532,7 +1532,7 @@ function Uu(e) {
|
|
|
1532
1532
|
isCharacterSame: Y,
|
|
1533
1533
|
onValueChange: k,
|
|
1534
1534
|
format: x,
|
|
1535
|
-
removeFormatting:
|
|
1535
|
+
removeFormatting: D,
|
|
1536
1536
|
getCaretBoundary: function(B) {
|
|
1537
1537
|
return Gu(B, e);
|
|
1538
1538
|
},
|
|
@@ -1544,13 +1544,13 @@ function Aa(e) {
|
|
|
1544
1544
|
var t = Uu(e);
|
|
1545
1545
|
return ie.createElement(Mu, Object.assign({}, t));
|
|
1546
1546
|
}
|
|
1547
|
-
const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: g, noSelectOnFocus: v, decimalScale: b, fixedDecimalScale: h = !1, numberPrefix: m, numberSuffix: x, min:
|
|
1547
|
+
const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: d, clearValue: u, className: f, step: g, noSelectOnFocus: v, decimalScale: b, fixedDecimalScale: h = !1, numberPrefix: m, numberSuffix: x, min: D, max: N, hint: y }) => {
|
|
1548
1548
|
const S = T(() => {
|
|
1549
1549
|
if (!r)
|
|
1550
1550
|
return;
|
|
1551
1551
|
const M = u ?? null;
|
|
1552
1552
|
r(M ? Number(M) : null);
|
|
1553
|
-
}, [u, r]),
|
|
1553
|
+
}, [u, r]), I = Z(null), [O, E] = L((t == null ? void 0 : t.toString()) ?? ""), P = T((M) => {
|
|
1554
1554
|
const C = M;
|
|
1555
1555
|
r && r(C == null || C === "" ? null : Number(C));
|
|
1556
1556
|
}, [r]), k = T((M) => {
|
|
@@ -1560,22 +1560,22 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1560
1560
|
P(C.toString());
|
|
1561
1561
|
return;
|
|
1562
1562
|
}
|
|
1563
|
-
E(C.toString()),
|
|
1563
|
+
E(C.toString()), I.current !== null && window.clearTimeout(I.current), I.current = window.setTimeout(() => {
|
|
1564
1564
|
P(C.toString());
|
|
1565
1565
|
}, n);
|
|
1566
1566
|
}, [n, P]);
|
|
1567
1567
|
return W(() => {
|
|
1568
1568
|
E(t === null ? "" : t.toString());
|
|
1569
|
-
}, [
|
|
1570
|
-
|
|
1571
|
-
}, [O,
|
|
1572
|
-
!r || t === null || (
|
|
1573
|
-
}, [t,
|
|
1569
|
+
}, [N, D, t]), W(() => {
|
|
1570
|
+
N !== void 0 && Number(O) > N && E(N.toString()), D !== void 0 && Number(O) < D && E(D.toString());
|
|
1571
|
+
}, [O, N, D, E]), W(() => {
|
|
1572
|
+
!r || t === null || (N !== void 0 && t > N && r(N), D !== void 0 && t < D && r(D));
|
|
1573
|
+
}, [t, N, D, r]), /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, className: f, hint: y, disabled: p, children: [
|
|
1574
1574
|
/* @__PURE__ */ s.jsx(Aa, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: h, prefix: m, suffix: x, defaultValue: "", value: n ? O : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (M) => {
|
|
1575
1575
|
!v && M.target.select();
|
|
1576
|
-
}, onChange: k, hidden: c, disabled: p, className:
|
|
1576
|
+
}, onChange: k, hidden: c, disabled: p, className: j("form-control text-end w-100", {
|
|
1577
1577
|
[`form-control-${l}`]: l
|
|
1578
|
-
}), step: g, min:
|
|
1578
|
+
}), step: g, min: D, max: N }),
|
|
1579
1579
|
d && t !== null && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ s.jsx(Nt, {}) }) })
|
|
1580
1580
|
] });
|
|
1581
1581
|
}, mw = ({ InputContainer: e = Xe, label: t, options: r, disabled: n, hidden: a, className: o, value: i, onChange: l }) => {
|
|
@@ -1584,47 +1584,47 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1584
1584
|
}, [l]);
|
|
1585
1585
|
return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, disabled: n, children: r.map((p) => /* @__PURE__ */ s.jsx(Oe.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: i === p.id, onChange: c, hidden: a, disabled: n, className: "w-100" }, p.id)) });
|
|
1586
1586
|
}, hw = ({ InputContainer: e = Xe, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: p, onChange: d, className: u }) => {
|
|
1587
|
-
const { register: f, formState: g, setValue: v } = It(), b = St({ falseIfNotInit: !0 }), [h, m] = L(void 0), [x,
|
|
1587
|
+
const { register: f, formState: g, setValue: v } = It(), b = St({ falseIfNotInit: !0 }), [h, m] = L(void 0), [x, D] = L(!1);
|
|
1588
1588
|
W(() => {
|
|
1589
1589
|
const S = t.split(".");
|
|
1590
|
-
let
|
|
1590
|
+
let I = g.errors;
|
|
1591
1591
|
S.forEach((O) => {
|
|
1592
|
-
|
|
1593
|
-
}), m(
|
|
1592
|
+
I !== void 0 && (I = I[O]);
|
|
1593
|
+
}), m(I);
|
|
1594
1594
|
}, [g, t]);
|
|
1595
|
-
const
|
|
1595
|
+
const N = V(() => l || b, [l, b]), y = h !== void 0;
|
|
1596
1596
|
return W(() => {
|
|
1597
|
-
g.isSubmitted &&
|
|
1598
|
-
}, [g]), /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: r ?? "", required: o, disabled:
|
|
1597
|
+
g.isSubmitted && D(!0);
|
|
1598
|
+
}, [g]), /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: r ?? "", required: o, disabled: N, isInvalid: y, withoutLabel: c, hint: p, className: u, children: [
|
|
1599
1599
|
/* @__PURE__ */ s.jsx(Oe.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...f(t, {
|
|
1600
1600
|
onChange: (S) => {
|
|
1601
|
-
n && n.forEach((
|
|
1601
|
+
n && n.forEach((I) => v(I, null, { shouldDirty: !0, shouldValidate: x })), d && d(S.target.value ?? null);
|
|
1602
1602
|
}
|
|
1603
|
-
}), isInvalid: y, hidden: i, disabled:
|
|
1603
|
+
}), isInvalid: y, hidden: i, disabled: N, className: "w-100" }),
|
|
1604
1604
|
h && /* @__PURE__ */ s.jsx(Vt, { message: h.message })
|
|
1605
1605
|
] });
|
|
1606
1606
|
}, bw = ({ InputContainer: e = Xe, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: p }) => {
|
|
1607
|
-
const { register: d, formState: u, setValue: f, watch: g } = It(), v = St({ falseIfNotInit: !0 }), [b, h] = L(void 0), [m, x] = L(!1),
|
|
1607
|
+
const { register: d, formState: u, setValue: f, watch: g } = It(), v = St({ falseIfNotInit: !0 }), [b, h] = L(void 0), [m, x] = L(!1), D = V(() => n, [n]), N = V(() => i || v, [i, v]);
|
|
1608
1608
|
W(() => {
|
|
1609
1609
|
const S = r.split(".");
|
|
1610
|
-
let
|
|
1610
|
+
let I = u.errors;
|
|
1611
1611
|
S.forEach((O) => {
|
|
1612
|
-
|
|
1613
|
-
}), h(
|
|
1612
|
+
I !== void 0 && (I = I[O]);
|
|
1613
|
+
}), h(I);
|
|
1614
1614
|
}, [u, r]), W(() => {
|
|
1615
1615
|
u.isSubmitted && x(!0);
|
|
1616
1616
|
}, [u]);
|
|
1617
1617
|
const y = b !== void 0;
|
|
1618
|
-
return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled:
|
|
1619
|
-
|
|
1620
|
-
onChange: (
|
|
1618
|
+
return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: N, isInvalid: y, className: p, children: [
|
|
1619
|
+
D.map((S) => /* @__PURE__ */ s.jsx(Oe.Check, { id: `radio-${S.id}`, label: S.name, type: "radio", value: S.id ?? "", checked: g(r) === S.id, ...d(r, {
|
|
1620
|
+
onChange: (I) => {
|
|
1621
1621
|
var O;
|
|
1622
|
-
a && a.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: m })), c && c((O =
|
|
1622
|
+
a && a.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: m })), c && c((O = I.target) != null && O.value ? I.target.value.toString() : null);
|
|
1623
1623
|
}
|
|
1624
|
-
}), isInvalid: y, hidden: l, disabled:
|
|
1624
|
+
}), isInvalid: y, hidden: l, disabled: N, className: "w-100" }, S.id)),
|
|
1625
1625
|
b && /* @__PURE__ */ s.jsx(Vt, { message: b.message })
|
|
1626
1626
|
] });
|
|
1627
|
-
}, xw = ({ InputContainer: e = Xe, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: f, texts: g, dropdownItemsNameWidth: v, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon:
|
|
1627
|
+
}, xw = ({ InputContainer: e = Xe, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: f, texts: g, dropdownItemsNameWidth: v, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: N, onSelect: y, className: S, archiveColumn: I, hint: O, addNewOptionPath: E, refreshOptions: P, MiniDetailComponent: k, miniDetailPlacement: M, suggestedItems: C, suggestedItemsTitle: Q }) => {
|
|
1628
1628
|
const { formState: Y, setValue: B, watch: R, control: $ } = It(), F = St({ falseIfNotInit: !0 }), [z, K] = L(void 0), [te, ae] = L(!1), [oe, H] = L(!1), U = R(t) ?? null, pe = U === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : R(`${t}-DropdownName`), se = V(() => U == null ? null : { id: U ?? null, name: pe ?? "" }, [U, pe]), De = T(() => {
|
|
1629
1629
|
const A = t.split(".");
|
|
1630
1630
|
let J = Y.errors;
|
|
@@ -1655,30 +1655,30 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1655
1655
|
De();
|
|
1656
1656
|
}, [De]), W(() => {
|
|
1657
1657
|
Y.isSubmitted && H(!0);
|
|
1658
|
-
}, [Y]), /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: G, hidden: c, withoutLabel: h, isInvalid: Le, inputContainerClassName:
|
|
1658
|
+
}, [Y]), /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: G, hidden: c, withoutLabel: h, isInvalid: Le, inputContainerClassName: j({ "luminus-dropdown-select-open": te }), hint: O, className: S, children: [
|
|
1659
1659
|
/* @__PURE__ */ s.jsxs(xa, { currentSelection: se, selectedItemNavigateTo: f, children: [
|
|
1660
|
-
|
|
1660
|
+
N && (se == null ? void 0 : se.name) && /* @__PURE__ */ s.jsx(re, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: se.name }),
|
|
1661
1661
|
/* @__PURE__ */ s.jsx(Ia, { control: $, name: t, render: () => /* @__PURE__ */ s.jsx(ya, { value: U, MiniDetailComponent: k, miniDetailPlacement: M, children: /* @__PURE__ */ s.jsx(Oe.Select, { size: n, onMouseDown: (A) => {
|
|
1662
1662
|
A.currentTarget.focus(), A.preventDefault();
|
|
1663
1663
|
}, onClick: () => {
|
|
1664
1664
|
!He && !G && ae(!0);
|
|
1665
1665
|
}, ref: Ce, value: U ?? "", onChange: () => {
|
|
1666
|
-
}, isInvalid: Le, hidden: c, className:
|
|
1666
|
+
}, isInvalid: Le, hidden: c, className: j("w-100", {
|
|
1667
1667
|
"luminus-dropdown-picker-disabled": G,
|
|
1668
1668
|
"luminus-dropdown-picker-link": dt
|
|
1669
|
-
}), children: /* @__PURE__ */ s.jsx("option", { value: U, children:
|
|
1669
|
+
}), children: /* @__PURE__ */ s.jsx("option", { value: U, children: N ? U : (pe == null ? void 0 : pe.length) > 0 ? pe : U }) }) }) }),
|
|
1670
1670
|
x || !G && He ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
|
|
1671
1671
|
!x && !G && He && /* @__PURE__ */ s.jsx(le, { size: "sm", color: "secondary", onClick: (A) => {
|
|
1672
1672
|
A.preventDefault(), A.stopPropagation(), ae(!0);
|
|
1673
|
-
}, children:
|
|
1673
|
+
}, children: D ?? /* @__PURE__ */ s.jsx(as, {}) }),
|
|
1674
1674
|
x ?? null
|
|
1675
1675
|
] }) : null
|
|
1676
1676
|
] }),
|
|
1677
1677
|
z && /* @__PURE__ */ s.jsx(Vt, { message: z.message }),
|
|
1678
|
-
Ce.current && /* @__PURE__ */ s.jsx(wa, { show: te, onCancel: fe, items: d, currentSelection: se, onSelectionChange: _, onSearchQueryChange: u, texts: g, itemsNameWidth: v, additionalColumns: m, displayIdAsName:
|
|
1678
|
+
Ce.current && /* @__PURE__ */ s.jsx(wa, { show: te, onCancel: fe, items: d, currentSelection: se, onSelectionChange: _, onSearchQueryChange: u, texts: g, itemsNameWidth: v, additionalColumns: m, displayIdAsName: N, isLoading: b, disabled: G, inputRef: Ce, archiveColumn: I, addNewOptionPath: E, refreshOptions: P, suggestedItems: C, suggestedItemsTitle: Q })
|
|
1679
1679
|
] }) });
|
|
1680
1680
|
}, yw = ({ InputContainer: e = Xe, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept: d, withoutLabel: u, hint: f, className: g }) => {
|
|
1681
|
-
const { watch: v, setValue: b, register: h, formState: m } = It(), x = St({ falseIfNotInit: !0 }), [
|
|
1681
|
+
const { watch: v, setValue: b, register: h, formState: m } = It(), x = St({ falseIfNotInit: !0 }), [D, N] = L(!1), [y, S] = L(void 0), I = T(() => {
|
|
1682
1682
|
b(r, "");
|
|
1683
1683
|
}, [b, r]), O = T(() => {
|
|
1684
1684
|
const k = r.split(".");
|
|
@@ -1688,16 +1688,16 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1688
1688
|
}), S(M);
|
|
1689
1689
|
}, [m, r]);
|
|
1690
1690
|
W(O, [O]), W(() => {
|
|
1691
|
-
m.isSubmitted &&
|
|
1691
|
+
m.isSubmitted && N(!0);
|
|
1692
1692
|
}, [m]);
|
|
1693
1693
|
const E = V(() => i || x, [i, x]), P = y !== void 0;
|
|
1694
1694
|
return /* @__PURE__ */ s.jsxs(e, { label: t ?? "", required: a, disabled: E, hidden: n, withoutLabel: u, isInvalid: P, hint: f, className: g, children: [
|
|
1695
1695
|
/* @__PURE__ */ s.jsx(Lc, { type: "file", multiple: p, accept: d.join(", "), placeholder: o ?? t, isInvalid: P, hidden: n, disabled: E, className: "w-100", ...h(r, {
|
|
1696
1696
|
onChange: () => {
|
|
1697
|
-
c && c.forEach((k) => b(k, null, { shouldDirty: !0, shouldValidate:
|
|
1697
|
+
c && c.forEach((k) => b(k, null, { shouldDirty: !0, shouldValidate: D }));
|
|
1698
1698
|
}
|
|
1699
1699
|
}) }),
|
|
1700
|
-
l && v(r) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick:
|
|
1700
|
+
l && v(r) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(Nt, {}) }) }),
|
|
1701
1701
|
y && /* @__PURE__ */ s.jsx(Vt, { message: y.message })
|
|
1702
1702
|
] });
|
|
1703
1703
|
}, Hu = ({ children: e, onStorno: t, noSpacer: r }) => {
|
|
@@ -1705,14 +1705,14 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1705
1705
|
return W(() => {
|
|
1706
1706
|
i(Object.keys(n.dirtyFields).length > 0);
|
|
1707
1707
|
}, [n]), o ? /* @__PURE__ */ s.jsx(lu, { onStorno: t, noSpacer: r, disabled: a, children: e }) : null;
|
|
1708
|
-
}, Ao = ({ InputContainer: e = Xe, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, withoutLabel: d, noSortOptions: u, suffixIdToName: f, onSelect: g, className: v, appendCurrentSelectionWithName: b, hint: h, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent:
|
|
1709
|
-
const { texts: { customSelect: S } } = q(de), { formState:
|
|
1708
|
+
}, Ao = ({ InputContainer: e = Xe, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, withoutLabel: d, noSortOptions: u, suffixIdToName: f, onSelect: g, className: v, appendCurrentSelectionWithName: b, hint: h, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent: D, miniDetailPlacement: N, selectedItemNavigateTo: y }) => {
|
|
1709
|
+
const { texts: { customSelect: S } } = q(de), { formState: I, setValue: O, watch: E, control: P } = It(), k = St({ falseIfNotInit: !0 }), [M, C] = L(void 0), [Q, Y] = L(!1), [B, R] = L(!1), [$, F] = L(""), z = E(r), K = V(() => t.find((_) => _.id === z) ?? null, [t, z]), te = T(() => {
|
|
1710
1710
|
const _ = r.split(".");
|
|
1711
|
-
let fe =
|
|
1711
|
+
let fe = I.errors;
|
|
1712
1712
|
_.forEach((Ce) => {
|
|
1713
1713
|
fe !== void 0 && (fe = fe[Ce]);
|
|
1714
1714
|
}), C(fe);
|
|
1715
|
-
}, [
|
|
1715
|
+
}, [I, r]), ae = T((_) => {
|
|
1716
1716
|
if ((_ == null ? void 0 : _.id) === z)
|
|
1717
1717
|
return;
|
|
1718
1718
|
if (g && g(_), o && o.forEach((Ce) => O(Ce, null, { shouldDirty: !0, shouldValidate: B })), _ === null) {
|
|
@@ -1735,8 +1735,8 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1735
1735
|
W(() => {
|
|
1736
1736
|
te();
|
|
1737
1737
|
}, [te]), W(() => {
|
|
1738
|
-
|
|
1739
|
-
}, [
|
|
1738
|
+
I.isSubmitted && R(!0);
|
|
1739
|
+
}, [I]);
|
|
1740
1740
|
const pe = T((_) => {
|
|
1741
1741
|
var fe;
|
|
1742
1742
|
return _ === null ? "" : !_.name || _.name.length === 0 ? ((fe = _.id) == null ? void 0 : fe.toString()) ?? "" : f ? `${_.name} (${_.id})` : _.name;
|
|
@@ -1754,8 +1754,8 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1754
1754
|
b,
|
|
1755
1755
|
z
|
|
1756
1756
|
]), De = Z(null), je = M !== void 0;
|
|
1757
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: n ?? "", required: l, disabled: U, hidden: c, withoutLabel: d, isInvalid: je, inputContainerClassName:
|
|
1758
|
-
/* @__PURE__ */ s.jsx(xa, { currentSelection: K, selectedItemNavigateTo: y, children: /* @__PURE__ */ s.jsx(Ia, { control: P, name: r, render: () => /* @__PURE__ */ s.jsx(ya, { value: z, MiniDetailComponent:
|
|
1757
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: n ?? "", required: l, disabled: U, hidden: c, withoutLabel: d, isInvalid: je, inputContainerClassName: j({ "luminus-dropdown-select-open": Q }), hint: h, className: v, children: [
|
|
1758
|
+
/* @__PURE__ */ s.jsx(xa, { currentSelection: K, selectedItemNavigateTo: y, children: /* @__PURE__ */ s.jsx(Ia, { control: P, name: r, render: () => /* @__PURE__ */ s.jsx(ya, { value: z, MiniDetailComponent: D, miniDetailPlacement: N, children: /* @__PURE__ */ s.jsx(Oe.Select, { size: a, onMouseDown: (_) => {
|
|
1759
1759
|
_.currentTarget.focus(), _.preventDefault();
|
|
1760
1760
|
}, onClick: () => {
|
|
1761
1761
|
Y(!0);
|
|
@@ -1765,7 +1765,7 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1765
1765
|
De.current && /* @__PURE__ */ s.jsx(wa, { show: Q, onCancel: () => Y(!1), items: se, currentSelection: K ?? null, onSelectionChange: oe, onSearchQueryChange: H, texts: S, disabled: U, inputRef: De, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: m, refreshOptions: x })
|
|
1766
1766
|
] }) });
|
|
1767
1767
|
}, ww = ({ InputContainer: e = Xe, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled: d, withoutLabel: u, step: f, stepperStep: g = 1, className: v, min: b, max: h, onChange: m, hint: x }) => {
|
|
1768
|
-
const { register:
|
|
1768
|
+
const { register: D, formState: N, setValue: y, watch: S } = It(), I = St({ falseIfNotInit: !0 }), [O, E] = L(void 0), [P, k] = L(!1), M = T(($, F, z) => {
|
|
1769
1769
|
y($, pr(F, b, h), z);
|
|
1770
1770
|
}, [h, b, y]), C = T(() => {
|
|
1771
1771
|
const $ = l ?? null;
|
|
@@ -1775,20 +1775,20 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1775
1775
|
});
|
|
1776
1776
|
}, [l, M, t, P]), Q = T(() => {
|
|
1777
1777
|
const $ = t.split(".");
|
|
1778
|
-
let F =
|
|
1778
|
+
let F = N.errors;
|
|
1779
1779
|
$.forEach((z) => {
|
|
1780
1780
|
F !== void 0 && (F = F[z]);
|
|
1781
1781
|
}), E(F);
|
|
1782
|
-
}, [
|
|
1782
|
+
}, [N, t]), Y = V(() => d || I, [d, I]);
|
|
1783
1783
|
W(() => {
|
|
1784
1784
|
Q();
|
|
1785
1785
|
}, [Q]), W(() => {
|
|
1786
|
-
|
|
1787
|
-
}, [
|
|
1786
|
+
N.isSubmitted && k(!0);
|
|
1787
|
+
}, [N]);
|
|
1788
1788
|
const B = O !== void 0, R = S(t);
|
|
1789
1789
|
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: c, disabled: Y, hidden: p, withoutLabel: u, isInvalid: B, hint: x, className: v, children: [
|
|
1790
1790
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
1791
|
-
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: n ?? r, size: a, ...
|
|
1791
|
+
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: n ?? r, size: a, ...D(t, {
|
|
1792
1792
|
setValueAs: ($) => $ == null || $ === "" ? null : pr(Number($), b, h),
|
|
1793
1793
|
min: b,
|
|
1794
1794
|
max: h,
|
|
@@ -1807,7 +1807,7 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1807
1807
|
i && S(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(Nt, {}) }) }),
|
|
1808
1808
|
O && /* @__PURE__ */ s.jsx(Vt, { message: O.message })
|
|
1809
1809
|
] });
|
|
1810
|
-
}, Dw = ({ InputContainer: e = Xe, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: d, step: u, size: f, CustomOnChangeComponent: g, noSelectOnFocus: v, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix:
|
|
1810
|
+
}, Dw = ({ InputContainer: e = Xe, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: d, step: u, size: f, CustomOnChangeComponent: g, noSelectOnFocus: v, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: N, max: y, onChange: S, hint: I }) => {
|
|
1811
1811
|
const { formState: O, setValue: E, watch: P, control: k } = It(), M = St({ falseIfNotInit: !0 }), [C, Q] = L(void 0), [Y, B] = L(!1), R = T(() => {
|
|
1812
1812
|
const te = i ?? null;
|
|
1813
1813
|
E(t, te !== null ? Number(te) : null, {
|
|
@@ -1828,12 +1828,12 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1828
1828
|
}, [O]);
|
|
1829
1829
|
const z = P(t);
|
|
1830
1830
|
W(() => {
|
|
1831
|
-
y !== void 0 && z > y && E(t, y),
|
|
1832
|
-
}, [t, z, y,
|
|
1831
|
+
y !== void 0 && z > y && E(t, y), N !== void 0 && z < N && E(t, N);
|
|
1832
|
+
}, [t, z, y, N, E]);
|
|
1833
1833
|
const K = C !== void 0;
|
|
1834
|
-
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: F, hidden: c, withoutLabel: d, isInvalid: K, hint:
|
|
1834
|
+
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: F, hidden: c, withoutLabel: d, isInvalid: K, hint: I, className: b, children: [
|
|
1835
1835
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
1836
|
-
/* @__PURE__ */ s.jsx(Ia, { control: k, name: t, render: ({ field: { ref: te, onChange: ae, name: oe, value: H } }) => /* @__PURE__ */ s.jsx(Aa, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: m, prefix: x, suffix:
|
|
1836
|
+
/* @__PURE__ */ s.jsx(Ia, { control: k, name: t, render: ({ field: { ref: te, onChange: ae, name: oe, value: H } }) => /* @__PURE__ */ s.jsx(Aa, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: m, prefix: x, suffix: D, defaultValue: "", name: oe, value: H ?? "", placeholder: n ?? r, onFocus: (U) => {
|
|
1837
1837
|
!v && U.target.select();
|
|
1838
1838
|
}, onChange: (U) => {
|
|
1839
1839
|
var De, je;
|
|
@@ -1841,11 +1841,11 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1841
1841
|
a && a.forEach((_) => E(_, null, { shouldDirty: !0, shouldValidate: Y }));
|
|
1842
1842
|
const se = pe == null || Number.isNaN(pe) ? null : Number(pe);
|
|
1843
1843
|
ae(se), S && S(se);
|
|
1844
|
-
}, hidden: c, disabled: F, className:
|
|
1844
|
+
}, hidden: c, disabled: F, className: j("form-control text-end w-100", {
|
|
1845
1845
|
"is-invalid": K
|
|
1846
1846
|
}, {
|
|
1847
1847
|
[`form-control-${f}`]: f
|
|
1848
|
-
}), step: u, getInputRef: te, min:
|
|
1848
|
+
}), step: u, getInputRef: te, min: N, max: y }) }),
|
|
1849
1849
|
g && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: g })
|
|
1850
1850
|
] }),
|
|
1851
1851
|
o && P(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: R, children: /* @__PURE__ */ s.jsx(Nt, {}) }) }),
|
|
@@ -1856,7 +1856,7 @@ const vw = ({ InputContainer: e = Or, value: t, onChange: r, debounceMs: n, labe
|
|
|
1856
1856
|
d.target.files && (a(d.target.files), d.target.value = "");
|
|
1857
1857
|
};
|
|
1858
1858
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1859
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className:
|
|
1859
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: j(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, Fc.item), ...c, children: [
|
|
1860
1860
|
t,
|
|
1861
1861
|
l
|
|
1862
1862
|
] }),
|
|
@@ -1918,9 +1918,9 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
1918
1918
|
var m;
|
|
1919
1919
|
c && i && ((m = u.current) == null || m.flexmonster.updateData(e), console.log("Updating flexmonster dataSource to: ", e));
|
|
1920
1920
|
}, [e, i, c, u]), W(() => {
|
|
1921
|
-
var m, x,
|
|
1921
|
+
var m, x, D;
|
|
1922
1922
|
if (c && i) {
|
|
1923
|
-
const { options:
|
|
1923
|
+
const { options: N, conditions: y, formats: S, slice: I, ...O } = (m = u.current) == null ? void 0 : m.flexmonster.getReport();
|
|
1924
1924
|
if (O === void 0 || typeof O == "string")
|
|
1925
1925
|
return;
|
|
1926
1926
|
const E = qu(t);
|
|
@@ -1930,7 +1930,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
1930
1930
|
showFieldListSearch: !0
|
|
1931
1931
|
};
|
|
1932
1932
|
const P = { ...O, ...E };
|
|
1933
|
-
(
|
|
1933
|
+
(D = u.current) == null || D.flexmonster.setReport(P), console.log("Refreshing flexmonster settings. New report: ", P);
|
|
1934
1934
|
}
|
|
1935
1935
|
}, [i, c, u, t]);
|
|
1936
1936
|
const b = T((m, x) => {
|
|
@@ -1942,12 +1942,12 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
1942
1942
|
}
|
|
1943
1943
|
if (!o || !ko(x, o.idColumn) || Bo(x))
|
|
1944
1944
|
return;
|
|
1945
|
-
const
|
|
1946
|
-
if (
|
|
1945
|
+
const D = (P = x.escapedLabel) == null ? void 0 : P.toString();
|
|
1946
|
+
if (D === void 0)
|
|
1947
1947
|
return;
|
|
1948
|
-
const
|
|
1948
|
+
const N = Mo(o.url, D), y = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'", S = x.type === "header" ? "onclick='event.stopImmediatePropagation()'" : "", I = x.isDrillThrough || x.type === "header" ? `href='${N}' target='_blank'` : "";
|
|
1949
1949
|
m.style && (m.style["z-index"] = 1);
|
|
1950
|
-
const O = `<a ${
|
|
1950
|
+
const O = `<a ${I} ${y} ${S}>${x.escapedLabel}</a>`;
|
|
1951
1951
|
m.text = O;
|
|
1952
1952
|
}, [o]), h = T((m) => {
|
|
1953
1953
|
if (!o || !ko(m, o.idColumn) || Bo(m))
|
|
@@ -2137,12 +2137,12 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2137
2137
|
replace: !0,
|
|
2138
2138
|
flushSync: !0
|
|
2139
2139
|
});
|
|
2140
|
-
}, [a, g, e, v]), [x,
|
|
2140
|
+
}, [a, g, e, v]), [x, D] = L(!1), N = Z(null), { user: y } = q(Ct), { data: S, reloadData: I } = ct(`/reports/${e}`), { mappings: O } = Zu(c, p), [E, P] = L({}), k = T((H) => {
|
|
2141
2141
|
const U = H.target.value, pe = U === "" ? null : Number(U);
|
|
2142
2142
|
m(pe);
|
|
2143
2143
|
}, [m]), M = T(async (H) => {
|
|
2144
|
-
await
|
|
2145
|
-
}, [
|
|
2144
|
+
await I(), m(H);
|
|
2145
|
+
}, [I, m]), { data: C, setData: Q } = ct(`/reports/version/${h}`, { enabled: h !== null, nullStateBeforeLoad: !1, nullStateOnFail: !0 });
|
|
2146
2146
|
W(() => {
|
|
2147
2147
|
var U;
|
|
2148
2148
|
if (C === null) {
|
|
@@ -2150,22 +2150,22 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2150
2150
|
return;
|
|
2151
2151
|
}
|
|
2152
2152
|
const H = zu(C) ?? {};
|
|
2153
|
-
P(H), (U =
|
|
2153
|
+
P(H), (U = N.current) == null || U.flexmonster.refresh();
|
|
2154
2154
|
}, [C]);
|
|
2155
|
-
const { save: Y, saveAs: B, archive: R, detach: $ } = Xu(e,
|
|
2155
|
+
const { save: Y, saveAs: B, archive: R, detach: $ } = Xu(e, N, h, M), F = V(() => ({
|
|
2156
2156
|
data: r ?? [],
|
|
2157
2157
|
mapping: O ?? void 0
|
|
2158
2158
|
}), [r, O]), z = T(async () => {
|
|
2159
2159
|
var U;
|
|
2160
|
-
await f(u.confirmRevertChanges) && ((U =
|
|
2160
|
+
await f(u.confirmRevertChanges) && ((U = N.current) == null || U.flexmonster.setReport({ dataSource: F, ...E }));
|
|
2161
2161
|
}, [f, F, u.confirmRevertChanges, E]), K = V(() => (C == null ? void 0 : C.ownerId) === y.personalNumber, [C == null ? void 0 : C.ownerId, y.personalNumber]), te = V(() => {
|
|
2162
2162
|
var H;
|
|
2163
2163
|
return (H = C == null ? void 0 : C.users) == null ? void 0 : H.some((U) => U.id === y.personalNumber && !U.isReportOwner);
|
|
2164
2164
|
}, [C == null ? void 0 : C.users, y.personalNumber]), ae = T(async () => {
|
|
2165
|
-
await f(u.confirmDelete(C == null ? void 0 : C.name)) && (await R(), m(null), await
|
|
2166
|
-
}, [R, f,
|
|
2167
|
-
await f(u.confirmDetach(C == null ? void 0 : C.name)) && (await $(), m(null), await
|
|
2168
|
-
}, [f, $,
|
|
2165
|
+
await f(u.confirmDelete(C == null ? void 0 : C.name)) && (await R(), m(null), await I());
|
|
2166
|
+
}, [R, f, I, C == null ? void 0 : C.name, u, m]), oe = T(async () => {
|
|
2167
|
+
await f(u.confirmDetach(C == null ? void 0 : C.name)) && (await $(), m(null), await I());
|
|
2168
|
+
}, [f, $, I, C == null ? void 0 : C.name, u, m]);
|
|
2169
2169
|
return W(() => {
|
|
2170
2170
|
var H, U;
|
|
2171
2171
|
h === null && m(((H = S == null ? void 0 : S.reportVersions.find((pe) => pe.isSystem === !0)) == null ? void 0 : H.reportVersionId) ?? ((U = S == null ? void 0 : S.reportVersions[0]) == null ? void 0 : U.reportVersionId) ?? null);
|
|
@@ -2183,17 +2183,17 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2183
2183
|
/* @__PURE__ */ s.jsx(gt, { icon: /* @__PURE__ */ s.jsx(Wc, {}), onClick: B, className: "flex-shrink-0", children: u.saveAs }),
|
|
2184
2184
|
/* @__PURE__ */ s.jsxs(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { as: Pr }), children: [
|
|
2185
2185
|
/* @__PURE__ */ s.jsx(et, { onClick: z, children: u.revertChanges }),
|
|
2186
|
-
/* @__PURE__ */ s.jsx(et, { onClick: () =>
|
|
2186
|
+
/* @__PURE__ */ s.jsx(et, { onClick: () => D(!0), disabled: !K || (C == null ? void 0 : C.isSystem), children: u.share }),
|
|
2187
2187
|
K && !(C != null && C.isSystem) ? /* @__PURE__ */ s.jsx(et, { color: "danger", onClick: ae, children: u.delete }) : null,
|
|
2188
2188
|
te && !(C != null && C.isSystem) ? /* @__PURE__ */ s.jsx(et, { color: "danger", onClick: oe, children: u.detach }) : null
|
|
2189
2189
|
] })
|
|
2190
2190
|
] })
|
|
2191
|
-
] }), children: /* @__PURE__ */ s.jsx("div", { className:
|
|
2191
|
+
] }), children: /* @__PURE__ */ s.jsx("div", { className: j("h-100 w-100", F.data && F.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ s.jsx(Ku, { dataSource: F, settings: E, pivotRef: N, enabled: F.data && F.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn: d }) }) }),
|
|
2192
2192
|
C !== null ? /* @__PURE__ */ s.jsx(
|
|
2193
2193
|
Qu,
|
|
2194
2194
|
{
|
|
2195
2195
|
isOpen: x,
|
|
2196
|
-
onHide: () =>
|
|
2196
|
+
onHide: () => D(!1),
|
|
2197
2197
|
usersData: C.users ?? null,
|
|
2198
2198
|
setReportVersion: Q,
|
|
2199
2199
|
reportVersionId: C == null ? void 0 : C.reportVersionId,
|
|
@@ -2207,7 +2207,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2207
2207
|
borderRadius: "50%",
|
|
2208
2208
|
border: "2px solid transparent",
|
|
2209
2209
|
backgroundColor: "transparent"
|
|
2210
|
-
}, className:
|
|
2210
|
+
}, className: j(`border-${n}`, t.includes(n) && `bg-${n}`), onClick: () => {
|
|
2211
2211
|
t.includes(n) ? r(t.filter((a) => a !== n)) : r([...t, n]);
|
|
2212
2212
|
} }, n)) }), tp = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ s.jsx(ot, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: r }), rp = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: n, getLinksTo: a }) => {
|
|
2213
2213
|
const { ProjectIconComponent: o, localizationContext: i } = q(de), { dateFnsLocale: l } = q(i), c = e.dateTime ? mr(e.dateTime) : null, p = c ? Wd(new Date(Date.now()), c) : 0;
|
|
@@ -2263,7 +2263,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2263
2263
|
});
|
|
2264
2264
|
}, [r, l]), m = T(async (y) => l.delete(`${n}${y}`).then(() => !0).catch(() => !1), [n, l]), x = T((y) => {
|
|
2265
2265
|
m(y).then((S) => {
|
|
2266
|
-
S && p(c.filter((
|
|
2266
|
+
S && p(c.filter((I) => I.id !== y));
|
|
2267
2267
|
});
|
|
2268
2268
|
}, [m, c]);
|
|
2269
2269
|
W(() => {
|
|
@@ -2273,24 +2273,24 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2273
2273
|
clearInterval(y);
|
|
2274
2274
|
};
|
|
2275
2275
|
}, [h]);
|
|
2276
|
-
const
|
|
2276
|
+
const D = c.filter((y) => y.type === "danger").length, N = d ? !1 : f;
|
|
2277
2277
|
return e ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2278
2278
|
/* @__PURE__ */ s.jsxs("div", { className: "position-relative", children: [
|
|
2279
2279
|
/* @__PURE__ */ s.jsx(le, { size: "md", onClick: () => b(!v), children: t }),
|
|
2280
|
-
|
|
2280
|
+
D > 0 && /* @__PURE__ */ s.jsx("div", { className: "badge rounded-pill bg-danger p-1 px-2 text-white", style: { position: "absolute", top: "-6px", right: "-10px", fontSize: "10px" }, children: D })
|
|
2281
2281
|
] }),
|
|
2282
|
-
/* @__PURE__ */ s.jsx(Co, { show: v, onHide: () => b(!1), placement: "end", children: /* @__PURE__ */ s.jsx(Co.Body, { children: /* @__PURE__ */ s.jsx(Fo, { messages: c, isLoading:
|
|
2283
|
-
] }) : /* @__PURE__ */ s.jsx(Fo, { messages: c, isLoading:
|
|
2282
|
+
/* @__PURE__ */ s.jsx(Co, { show: v, onHide: () => b(!1), placement: "end", children: /* @__PURE__ */ s.jsx(Co.Body, { children: /* @__PURE__ */ s.jsx(Fo, { messages: c, isLoading: N, onDeleteMessage: x, onClickMessage: () => b(!1), getIcon: a, getLinksTo: o }) }) })
|
|
2283
|
+
] }) : /* @__PURE__ */ s.jsx(Fo, { messages: c, isLoading: N, onDeleteMessage: x, getIcon: a, getLinksTo: o });
|
|
2284
2284
|
}, np = "_tab-panel_d8l8q_1", ap = "_full-height-no-overflow_d8l8q_5", op = "_disabled_d8l8q_12", Pn = {
|
|
2285
2285
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
2286
2286
|
tabPanel: np,
|
|
2287
2287
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
2288
2288
|
fullHeightNoOverflow: ap,
|
|
2289
2289
|
disabled: op
|
|
2290
|
-
}, Iw = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: n, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ s.jsx("div", { className:
|
|
2290
|
+
}, Iw = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: n, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ s.jsx("div", { className: j("luminus-tab-panel", Pn.tabPanel, { [Pn.fullHeightNoOverflow]: r }, { disabled: n }, { [Pn.disabled]: n }, a), children: o }), ip = "_join-line_1q9e8_1", sp = {
|
|
2291
2291
|
"join-line": "_join-line_1q9e8_1",
|
|
2292
2292
|
joinLine: ip
|
|
2293
|
-
}, lp = ({ activeTab: e, onSelect: t, children: r, vertical: n, verticalStepper: a }) => /* @__PURE__ */ s.jsx("div", { className:
|
|
2293
|
+
}, lp = ({ activeTab: e, onSelect: t, children: r, vertical: n, verticalStepper: a }) => /* @__PURE__ */ s.jsx("div", { className: j("luminus-tabs d-flex mb-2", { "gap-1": !a }, { "gap-0": a }, {
|
|
2294
2294
|
"flex-column": n || a
|
|
2295
2295
|
}), children: r.map((o, i) => {
|
|
2296
2296
|
const l = o.type, c = o.props;
|
|
@@ -2298,16 +2298,16 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2298
2298
|
return null;
|
|
2299
2299
|
const p = c.eventKey, d = c.children, u = c.className, f = c.onClick;
|
|
2300
2300
|
return /* @__PURE__ */ s.jsxs(ie.Fragment, { children: [
|
|
2301
|
-
/* @__PURE__ */ s.jsx(l, { ...c, className:
|
|
2301
|
+
/* @__PURE__ */ s.jsx(l, { ...c, className: j({ active: e === p }, u), onClick: () => {
|
|
2302
2302
|
t(p), f && f(p);
|
|
2303
2303
|
}, vertical: n || a, children: d }),
|
|
2304
|
-
a && i < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className:
|
|
2304
|
+
a && i < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className: j("join-line", sp.joinLine) })
|
|
2305
2305
|
] }, c.eventKey);
|
|
2306
2306
|
}) }), cp = "_tab_1tbi7_1", dp = "_disabled_1tbi7_7", up = "_vertical_1tbi7_13", Tn = {
|
|
2307
2307
|
tab: cp,
|
|
2308
2308
|
disabled: dp,
|
|
2309
2309
|
vertical: up
|
|
2310
|
-
}, pp = ({ eventKey: e, className: t, onClick: r, disabled: n, vertical: a, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className:
|
|
2310
|
+
}, pp = ({ eventKey: e, className: t, onClick: r, disabled: n, vertical: a, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: j("luminus-tab text-primary rounded", Tn.tab, t, {
|
|
2311
2311
|
disabled: n
|
|
2312
2312
|
}, { [Tn.disabled]: n }, { vertical: a }, { [Tn.vertical]: a }), onClick: () => r && !n && r(e), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(re, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), jw = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
|
|
2313
2313
|
var i;
|
|
@@ -2406,7 +2406,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2406
2406
|
}, Sp = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: n }) => {
|
|
2407
2407
|
const { ProjectIconComponent: a, texts: o } = q(de), [i, l] = L(!1), [c] = Ca(i, 100);
|
|
2408
2408
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2409
|
-
/* @__PURE__ */ s.jsx(Et, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ s.jsx("button", { type: "button", className:
|
|
2409
|
+
/* @__PURE__ */ s.jsx(Et, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: j(qt.linkButton, qt.linkAddButton), onClick: () => l(!0), children: /* @__PURE__ */ s.jsx(a, { icon: "add" }) }) }),
|
|
2410
2410
|
(i || c) && /* @__PURE__ */ s.jsx(Np, { IconComponent: e, IconTypeArray: t, closeModal: () => l(!1), createLink: n, isOpen: i, pageTitlePrefix: r })
|
|
2411
2411
|
] });
|
|
2412
2412
|
}, _w = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r }) => {
|
|
@@ -2491,19 +2491,19 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2491
2491
|
}, className: "me-3", style: { maxWidth: "200px" } })
|
|
2492
2492
|
] }),
|
|
2493
2493
|
/* @__PURE__ */ s.jsx($e.Body, { className: "flex-column gap-3", children: c.length === 0 ? /* @__PURE__ */ s.jsx(pn, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2494
|
-
p.map((d) => /* @__PURE__ */ s.jsx(rn, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className:
|
|
2494
|
+
p.map((d) => /* @__PURE__ */ s.jsx(rn, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3", ze.widgetsRow), children: c.filter((u) => u.group === d.id).map((u) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: j("p-0 pt-2 bg-white rounded shadow-sm", ze.widget), onClick: () => a(u.id), children: [
|
|
2495
2495
|
/* @__PURE__ */ s.jsx("div", { className: ze.widgetImg, style: {
|
|
2496
2496
|
backgroundImage: u.img ? `url(${u.img})` : void 0
|
|
2497
2497
|
} }),
|
|
2498
2498
|
/* @__PURE__ */ s.jsx("div", { className: ze.widgetTitleSpacer }),
|
|
2499
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2499
|
+
/* @__PURE__ */ s.jsx("div", { className: j(ze.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(re, { variant: "body", className: j(ze.title, "text-white text-truncate"), children: u.name }) })
|
|
2500
2500
|
] }, u.id) })) }) }) }, d.id)),
|
|
2501
|
-
c.some((d) => d.group === void 0) && /* @__PURE__ */ s.jsx(rn, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className:
|
|
2501
|
+
c.some((d) => d.group === void 0) && /* @__PURE__ */ s.jsx(rn, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3", ze.widgetsRow), children: c.filter((d) => d.group === void 0).map((d) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: j("p-0 pt-2 bg-white rounded shadow-sm", ze.widget), onClick: () => a(d.id), children: [
|
|
2502
2502
|
/* @__PURE__ */ s.jsx("div", { className: ze.widgetImg, style: {
|
|
2503
2503
|
backgroundImage: d.img ? `url(${d.img})` : void 0
|
|
2504
2504
|
} }),
|
|
2505
2505
|
/* @__PURE__ */ s.jsx("div", { className: ze.widgetTitleSpacer }),
|
|
2506
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2506
|
+
/* @__PURE__ */ s.jsx("div", { className: j(ze.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(re, { variant: "body", className: j(ze.title, "text-white text-truncate"), children: d.name }) })
|
|
2507
2507
|
] }, d.id) })) }) }) })
|
|
2508
2508
|
] }) })
|
|
2509
2509
|
] });
|
|
@@ -2513,7 +2513,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2513
2513
|
}, Go = ({ widgetGroups: e, availableWidgets: t, onAdd: r, texts: n }) => {
|
|
2514
2514
|
const [a, o] = L(!1), { isMobile: i } = fn();
|
|
2515
2515
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2516
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
2516
|
+
/* @__PURE__ */ s.jsx("div", { className: j("luminus-empty-widget", $o.widget, {
|
|
2517
2517
|
[$o.mobile]: i
|
|
2518
2518
|
}), children: /* @__PURE__ */ s.jsx(le, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(Uc, {}) }) }),
|
|
2519
2519
|
/* @__PURE__ */ s.jsx(Ap, { show: a, widgetGroups: e, widgets: t, handleClose: () => o(!1), onWidgetPicked: (l) => {
|
|
@@ -2556,7 +2556,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2556
2556
|
widgets: [...i.widgets, { widgetId: b, fullWidth: !1 }]
|
|
2557
2557
|
}) : l({
|
|
2558
2558
|
...i,
|
|
2559
|
-
widgets: ((m = i.widgets) == null ? void 0 : m.map((x,
|
|
2559
|
+
widgets: ((m = i.widgets) == null ? void 0 : m.map((x, D) => D === v ? { widgetId: b, fullWidth: !1 } : x)) ?? []
|
|
2560
2560
|
});
|
|
2561
2561
|
}, [i, l]), p = T((v) => {
|
|
2562
2562
|
var b, h;
|
|
@@ -2570,12 +2570,12 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2570
2570
|
...i,
|
|
2571
2571
|
widgets: ((b = i.widgets) == null ? void 0 : b.map((h, m) => m === v ? { ...h, fullWidth: !h.fullWidth } : h)) ?? []
|
|
2572
2572
|
});
|
|
2573
|
-
}, [i, l]), u = T((v, b, h) => v ? /* @__PURE__ */ s.jsxs("div", { className:
|
|
2573
|
+
}, [i, l]), u = T((v, b, h) => v ? /* @__PURE__ */ s.jsxs("div", { className: j(nt.widgetWrapper, {
|
|
2574
2574
|
[nt.widgetEdit]: r && v.id !== -1
|
|
2575
2575
|
}, { [nt.fullWidth]: h }), children: [
|
|
2576
2576
|
r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2577
|
-
/* @__PURE__ */ s.jsx(le, { color: "danger", onClick: () => p(b), className:
|
|
2578
|
-
/* @__PURE__ */ s.jsx(le, { color: h ? "danger" : "primary", onClick: () => d(b), className:
|
|
2577
|
+
/* @__PURE__ */ s.jsx(le, { color: "danger", onClick: () => p(b), className: j(nt.removeIcon), children: /* @__PURE__ */ s.jsx(Hc, {}) }),
|
|
2578
|
+
/* @__PURE__ */ s.jsx(le, { color: h ? "danger" : "primary", onClick: () => d(b), className: j(nt.fullWidthIcon), children: /* @__PURE__ */ s.jsx(zc, {}) })
|
|
2579
2579
|
] }),
|
|
2580
2580
|
v.id === -1 ? r && /* @__PURE__ */ s.jsx("div", { className: nt.widgetWrapper, children: /* @__PURE__ */ s.jsx(Go, { widgetGroups: e, availableWidgets: t, onAdd: (m) => c(b, m), texts: o }) }) : /* @__PURE__ */ s.jsx(wu, { title: v.title, children: /* @__PURE__ */ s.jsx(v.WidgetElement, { title: v.title }) }),
|
|
2581
2581
|
v.id > -1 && r && /* @__PURE__ */ s.jsx("div", { className: nt.widgetEditOverlay })
|
|
@@ -2588,7 +2588,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2588
2588
|
t,
|
|
2589
2589
|
o
|
|
2590
2590
|
]), { isMobile: f } = fn();
|
|
2591
|
-
return /* @__PURE__ */ s.jsx("div", { className:
|
|
2591
|
+
return /* @__PURE__ */ s.jsx("div", { className: j(nt.dashboard, { [nt.mobile]: f }), children: /* @__PURE__ */ s.jsxs("div", { className: j(nt.widgetsGrid), children: [
|
|
2592
2592
|
(g = i.widgets) == null ? void 0 : g.map((v, b) => u(t.find((h) => h.id === v.widgetId), b, v.fullWidth)),
|
|
2593
2593
|
r && /* @__PURE__ */ s.jsx(Go, { widgetGroups: e, availableWidgets: t, onAdd: (v) => {
|
|
2594
2594
|
var b;
|
|
@@ -2602,8 +2602,8 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2602
2602
|
lg: Kp,
|
|
2603
2603
|
light: Xp
|
|
2604
2604
|
}, Aw = ({ children: e, color: t = "primary", size: r = "md", rounded: n, className: a, variant: o = "filled", ...i }) => {
|
|
2605
|
-
const l = V(() => o === "filled" ?
|
|
2606
|
-
return /* @__PURE__ */ s.jsx("span", { className:
|
|
2605
|
+
const l = V(() => o === "filled" ? j(`bg-${t}`) : o === "outline" ? j(`text-${t} border-${t} border bg-white`) : "", [t, o]);
|
|
2606
|
+
return /* @__PURE__ */ s.jsx("span", { className: j("luminus-badge badge", l, a, { "rounded-pill": n }, { "text-dark": t === "light" }, { [An.light]: t === "light" }, An.badge, An[r]), ...i, children: e });
|
|
2607
2607
|
}, Jp = "_collapse-icon_1ahhn_1", Qp = "_collapsed_1ahhn_6", Wo = {
|
|
2608
2608
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
2609
2609
|
collapseIcon: Jp,
|
|
@@ -2615,7 +2615,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2615
2615
|
}, [a]), /* @__PURE__ */ s.jsxs("div", { className: r ?? "", children: [
|
|
2616
2616
|
/* @__PURE__ */ s.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => n.controlled ? n.onToggle(!n.isOpen) : i(!o), children: [
|
|
2617
2617
|
/* @__PURE__ */ s.jsx(re, { variant: "h6", children: e }),
|
|
2618
|
-
/* @__PURE__ */ s.jsx(cs, { className:
|
|
2618
|
+
/* @__PURE__ */ s.jsx(cs, { className: j(Wo.collapseIcon, {
|
|
2619
2619
|
[Wo.collapsed]: l
|
|
2620
2620
|
}) })
|
|
2621
2621
|
] }),
|
|
@@ -2648,12 +2648,12 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2648
2648
|
const d = (u = o.find((f) => f.key === p.type)) == null ? void 0 : u.toPath;
|
|
2649
2649
|
return d ? `${d}/${p.searchKey}` : "/not-found";
|
|
2650
2650
|
}, [o]);
|
|
2651
|
-
return qc([l], r), /* @__PURE__ */ s.jsx("div", { ref: l, className:
|
|
2651
|
+
return qc([l], r), /* @__PURE__ */ s.jsx("div", { ref: l, className: j("luminus-app-search-dropdown shadow rounded", _t.dropdown, {
|
|
2652
2652
|
[_t.open]: e
|
|
2653
2653
|
}), children: a ? /* @__PURE__ */ s.jsx("div", { className: _t.loadingContainer, children: /* @__PURE__ */ s.jsx(Yc, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: _t.groupsContainer, children: n == null ? void 0 : n.map((p) => {
|
|
2654
2654
|
var d;
|
|
2655
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
2656
|
-
/* @__PURE__ */ s.jsxs(ot, { to: `/search?query=${t}&type=${p.key.category}`, className:
|
|
2655
|
+
return /* @__PURE__ */ s.jsxs("div", { className: j(_t.group), children: [
|
|
2656
|
+
/* @__PURE__ */ s.jsxs(ot, { to: `/search?query=${t}&type=${p.key.category}`, className: j("group-header", _t.header), onClick: r, children: [
|
|
2657
2657
|
/* @__PURE__ */ s.jsx(re, { variant: "body", className: "text-primary", children: p.key.categoryName }),
|
|
2658
2658
|
/* @__PURE__ */ s.jsxs(re, { variant: "caption", children: [
|
|
2659
2659
|
p.items.length,
|
|
@@ -2667,7 +2667,7 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2667
2667
|
ot,
|
|
2668
2668
|
{
|
|
2669
2669
|
to: c(u),
|
|
2670
|
-
className:
|
|
2670
|
+
className: j("search-item d-flex gap-3 align-items-center justify-content-between", _t.item),
|
|
2671
2671
|
onClick: r,
|
|
2672
2672
|
children: [
|
|
2673
2673
|
/* @__PURE__ */ s.jsx(re, { variant: "body2", className: "text-nowrap text-truncate", children: u.name }),
|
|
@@ -2695,23 +2695,23 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2695
2695
|
}, [c]), { isLoading: n, searchItems: o };
|
|
2696
2696
|
}, Rw = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: n = "/", className: a }) => {
|
|
2697
2697
|
var x;
|
|
2698
|
-
const { texts: { appSearch: o } } = q(de), [i, l] = L(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = V(() => e.find((
|
|
2698
|
+
const { texts: { appSearch: o } } = q(de), [i, l] = L(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = V(() => e.find((D) => D.key === i) ?? null, [e, i]), [p, d] = L(""), [u, f] = Ca(encodeURIComponent(p), 500), { isLoading: g, searchItems: v } = vf(c, u), [b, h] = L(!1);
|
|
2699
2699
|
W(() => {
|
|
2700
2700
|
(v.length > 0 || g) && h(!0);
|
|
2701
2701
|
}, [v, g]);
|
|
2702
2702
|
const m = Z(null);
|
|
2703
2703
|
return W(() => {
|
|
2704
|
-
var
|
|
2705
|
-
d(""), r === n && ((
|
|
2706
|
-
}, [r, n]), /* @__PURE__ */ s.jsx(Oe, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (
|
|
2707
|
-
|
|
2708
|
-
}, children: /* @__PURE__ */ s.jsxs(Kr, { className:
|
|
2709
|
-
/* @__PURE__ */ s.jsx(Kr.Text, { className:
|
|
2710
|
-
/* @__PURE__ */ s.jsx(Oe.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className:
|
|
2711
|
-
var
|
|
2712
|
-
return d(((
|
|
2704
|
+
var D;
|
|
2705
|
+
d(""), r === n && ((D = m.current) == null || D.focus());
|
|
2706
|
+
}, [r, n]), /* @__PURE__ */ s.jsx(Oe, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (D) => {
|
|
2707
|
+
D.preventDefault(), D.stopPropagation(), f.flush(), h(!1), u.length > 2 && t(`/search?query=${u}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
|
|
2708
|
+
}, children: /* @__PURE__ */ s.jsxs(Kr, { className: j(Ot.inputGroup, a), children: [
|
|
2709
|
+
/* @__PURE__ */ s.jsx(Kr.Text, { className: j("p-1 rounded", Ot.inputGroupText, Ot.left), children: /* @__PURE__ */ s.jsx(of, { searchTypes: e, selectedType: c, setSelectedType: l }) }),
|
|
2710
|
+
/* @__PURE__ */ s.jsx(Oe.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: j("luminus-app-search-input", Ot.input), value: p, onChange: (D) => {
|
|
2711
|
+
var N;
|
|
2712
|
+
return d(((N = D.target) == null ? void 0 : N.value) ?? "");
|
|
2713
2713
|
}, onFocus: () => v.length > 0 && h(!0) }),
|
|
2714
|
-
/* @__PURE__ */ s.jsx(Kr.Text, { className:
|
|
2714
|
+
/* @__PURE__ */ s.jsx(Kr.Text, { className: j("p-0 rounded", Ot.inputGroupText, Ot.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: j("text-primary", Ot.submitButton), children: /* @__PURE__ */ s.jsx(Xc, {}) }) }),
|
|
2715
2715
|
/* @__PURE__ */ s.jsx(gf, { query: u, searchTypes: e, show: b, onCancel: () => h(!1), groups: v, isLoading: g })
|
|
2716
2716
|
] }) });
|
|
2717
2717
|
}, mf = "_card_19733_1", hf = "_header_19733_6", bf = "_header-content_19733_13", xf = "_title_19733_19", yf = "_collapse-icon_19733_22", wf = "_collapsed_19733_27", Df = "_content_19733_30", Pt = {
|
|
@@ -2730,23 +2730,23 @@ e.label === "", ko = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Bo =
|
|
|
2730
2730
|
d(c);
|
|
2731
2731
|
}, [c]);
|
|
2732
2732
|
const f = V(() => !r || !r.toString() || r.toString().split(",").filter((g) => g && g !== "false").length === 0, [r]);
|
|
2733
|
-
return i && f ? null : /* @__PURE__ */ s.jsxs("div", { className:
|
|
2733
|
+
return i && f ? null : /* @__PURE__ */ s.jsxs("div", { className: j("luminus-card rounded shadow-sm", Pt.card, {
|
|
2734
2734
|
[n ?? ""]: n
|
|
2735
2735
|
}), children: [
|
|
2736
|
-
/* @__PURE__ */ s.jsxs("div", { role: l.collapsible ? "button" : void 0, className:
|
|
2736
|
+
/* @__PURE__ */ s.jsxs("div", { role: l.collapsible ? "button" : void 0, className: j("header", Pt.header, {
|
|
2737
2737
|
[a ?? ""]: a
|
|
2738
2738
|
}), onClick: () => {
|
|
2739
2739
|
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : d(!p));
|
|
2740
2740
|
}, children: [
|
|
2741
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
2742
|
-
/* @__PURE__ */ s.jsx(re, { variant: "h6", className:
|
|
2741
|
+
/* @__PURE__ */ s.jsxs("div", { className: j("header-content", Pt.headerContent), children: [
|
|
2742
|
+
/* @__PURE__ */ s.jsx(re, { variant: "h6", className: j("text-primary", Pt.title), children: e }),
|
|
2743
2743
|
t ?? null
|
|
2744
2744
|
] }),
|
|
2745
|
-
l.collapsible && /* @__PURE__ */ s.jsx(cs, { className:
|
|
2745
|
+
l.collapsible && /* @__PURE__ */ s.jsx(cs, { className: j(Pt.collapseIcon, {
|
|
2746
2746
|
[Pt.collapsed]: u
|
|
2747
2747
|
}) })
|
|
2748
2748
|
] }),
|
|
2749
|
-
/* @__PURE__ */ s.jsx(vs, { in: u, children: /* @__PURE__ */ s.jsx("div", { className:
|
|
2749
|
+
/* @__PURE__ */ s.jsx(vs, { in: u, children: /* @__PURE__ */ s.jsx("div", { className: j("card-content border-top border-primary", Pt.content, {
|
|
2750
2750
|
[o ?? ""]: o
|
|
2751
2751
|
}), children: r }) })
|
|
2752
2752
|
] });
|
|
@@ -2937,13 +2937,13 @@ function Hs(e, t, r) {
|
|
|
2937
2937
|
subscribe: function(x) {
|
|
2938
2938
|
if (typeof x != "object" || x === null)
|
|
2939
2939
|
throw new Error(process.env.NODE_ENV === "production" ? Ve(11) : "Expected the observer to be an object. Instead, received: '" + kt(x) + "'");
|
|
2940
|
-
function
|
|
2940
|
+
function D() {
|
|
2941
2941
|
x.next && x.next(d());
|
|
2942
2942
|
}
|
|
2943
|
-
|
|
2944
|
-
var
|
|
2943
|
+
D();
|
|
2944
|
+
var N = h(D);
|
|
2945
2945
|
return {
|
|
2946
|
-
unsubscribe:
|
|
2946
|
+
unsubscribe: N
|
|
2947
2947
|
};
|
|
2948
2948
|
}
|
|
2949
2949
|
}, b[zo] = function() {
|
|
@@ -3228,8 +3228,8 @@ function Uf() {
|
|
|
3228
3228
|
}
|
|
3229
3229
|
}
|
|
3230
3230
|
}
|
|
3231
|
-
var
|
|
3232
|
-
return be.ContextConsumer = i, be.ContextProvider =
|
|
3231
|
+
var D = o, N = e, y = l, S = r, I = u, O = d, E = t, P = a, k = n, M = c;
|
|
3232
|
+
return be.ContextConsumer = i, be.ContextProvider = D, be.Element = N, be.ForwardRef = y, be.Fragment = S, be.Lazy = I, be.Memo = O, be.Portal = E, be.Profiler = P, be.StrictMode = k, be.Suspense = M, be.isAsyncMode = function() {
|
|
3233
3233
|
return !1;
|
|
3234
3234
|
}, be.isConcurrentMode = function() {
|
|
3235
3235
|
return !1;
|
|
@@ -3277,10 +3277,10 @@ function Hf() {
|
|
|
3277
3277
|
e = m("react.element"), t = m("react.portal"), r = m("react.fragment"), n = m("react.strict_mode"), a = m("react.profiler"), o = m("react.provider"), i = m("react.context"), l = m("react.forward_ref"), c = m("react.suspense"), p = m("react.suspense_list"), d = m("react.memo"), u = m("react.lazy"), f = m("react.block"), g = m("react.server.block"), v = m("react.fundamental"), m("react.scope"), m("react.opaque.id"), b = m("react.debug_trace_mode"), m("react.offscreen"), h = m("react.legacy_hidden");
|
|
3278
3278
|
}
|
|
3279
3279
|
var x = !1;
|
|
3280
|
-
function
|
|
3280
|
+
function D(_) {
|
|
3281
3281
|
return !!(typeof _ == "string" || typeof _ == "function" || _ === r || _ === a || _ === b || _ === n || _ === c || _ === p || _ === h || x || typeof _ == "object" && _ !== null && (_.$$typeof === u || _.$$typeof === d || _.$$typeof === o || _.$$typeof === i || _.$$typeof === l || _.$$typeof === v || _.$$typeof === f || _[0] === g));
|
|
3282
3282
|
}
|
|
3283
|
-
function
|
|
3283
|
+
function N(_) {
|
|
3284
3284
|
if (typeof _ == "object" && _ !== null) {
|
|
3285
3285
|
var fe = _.$$typeof;
|
|
3286
3286
|
switch (fe) {
|
|
@@ -3311,7 +3311,7 @@ function Hf() {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
3313
|
}
|
|
3314
|
-
var y = i, S = o,
|
|
3314
|
+
var y = i, S = o, I = e, O = l, E = r, P = u, k = d, M = t, C = a, Q = n, Y = c, B = !1, R = !1;
|
|
3315
3315
|
function $(_) {
|
|
3316
3316
|
return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
3317
3317
|
}
|
|
@@ -3319,39 +3319,39 @@ function Hf() {
|
|
|
3319
3319
|
return R || (R = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
3320
3320
|
}
|
|
3321
3321
|
function z(_) {
|
|
3322
|
-
return
|
|
3322
|
+
return N(_) === i;
|
|
3323
3323
|
}
|
|
3324
3324
|
function K(_) {
|
|
3325
|
-
return
|
|
3325
|
+
return N(_) === o;
|
|
3326
3326
|
}
|
|
3327
3327
|
function te(_) {
|
|
3328
3328
|
return typeof _ == "object" && _ !== null && _.$$typeof === e;
|
|
3329
3329
|
}
|
|
3330
3330
|
function ae(_) {
|
|
3331
|
-
return
|
|
3331
|
+
return N(_) === l;
|
|
3332
3332
|
}
|
|
3333
3333
|
function oe(_) {
|
|
3334
|
-
return
|
|
3334
|
+
return N(_) === r;
|
|
3335
3335
|
}
|
|
3336
3336
|
function H(_) {
|
|
3337
|
-
return
|
|
3337
|
+
return N(_) === u;
|
|
3338
3338
|
}
|
|
3339
3339
|
function U(_) {
|
|
3340
|
-
return
|
|
3340
|
+
return N(_) === d;
|
|
3341
3341
|
}
|
|
3342
3342
|
function pe(_) {
|
|
3343
|
-
return
|
|
3343
|
+
return N(_) === t;
|
|
3344
3344
|
}
|
|
3345
3345
|
function se(_) {
|
|
3346
|
-
return
|
|
3346
|
+
return N(_) === a;
|
|
3347
3347
|
}
|
|
3348
3348
|
function De(_) {
|
|
3349
|
-
return
|
|
3349
|
+
return N(_) === n;
|
|
3350
3350
|
}
|
|
3351
3351
|
function je(_) {
|
|
3352
|
-
return
|
|
3352
|
+
return N(_) === c;
|
|
3353
3353
|
}
|
|
3354
|
-
xe.ContextConsumer = y, xe.ContextProvider = S, xe.Element =
|
|
3354
|
+
xe.ContextConsumer = y, xe.ContextProvider = S, xe.Element = I, xe.ForwardRef = O, xe.Fragment = E, xe.Lazy = P, xe.Memo = k, xe.Portal = M, xe.Profiler = C, xe.StrictMode = Q, xe.Suspense = Y, xe.isAsyncMode = $, xe.isConcurrentMode = F, xe.isContextConsumer = z, xe.isContextProvider = K, xe.isElement = te, xe.isForwardRef = ae, xe.isFragment = oe, xe.isLazy = H, xe.isMemo = U, xe.isPortal = pe, xe.isProfiler = se, xe.isStrictMode = De, xe.isSuspense = je, xe.isValidElementType = D, xe.typeOf = N;
|
|
3355
3355
|
}()), xe;
|
|
3356
3356
|
}
|
|
3357
3357
|
process.env.NODE_ENV === "production" ? oa.exports = Uf() : oa.exports = Hf();
|
|
@@ -3407,21 +3407,21 @@ function tg(e, t) {
|
|
|
3407
3407
|
t === void 0 && (t = {});
|
|
3408
3408
|
var r = t, n = r.getDisplayName, a = n === void 0 ? function(S) {
|
|
3409
3409
|
return "ConnectAdvanced(" + S + ")";
|
|
3410
|
-
} : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l, p = r.shouldHandleStateChanges, d = p === void 0 ? !0 : p, u = r.storeKey, f = u === void 0 ? "store" : u, g = r.withRef, v = g === void 0 ? !1 : g, b = r.forwardRef, h = b === void 0 ? !1 : b, m = r.context, x = m === void 0 ? ka : m,
|
|
3410
|
+
} : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l, p = r.shouldHandleStateChanges, d = p === void 0 ? !0 : p, u = r.storeKey, f = u === void 0 ? "store" : u, g = r.withRef, v = g === void 0 ? !1 : g, b = r.forwardRef, h = b === void 0 ? !1 : b, m = r.context, x = m === void 0 ? ka : m, D = Zr(r, zf);
|
|
3411
3411
|
if (process.env.NODE_ENV !== "production") {
|
|
3412
3412
|
if (c !== void 0)
|
|
3413
3413
|
throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
|
|
3414
3414
|
if (v)
|
|
3415
3415
|
throw new Error("withRef is removed. To access the wrapped instance, use a ref on the connected component");
|
|
3416
|
-
var
|
|
3416
|
+
var N = "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";
|
|
3417
3417
|
if (f !== "store")
|
|
3418
|
-
throw new Error("storeKey has been removed and does not do anything. " +
|
|
3418
|
+
throw new Error("storeKey has been removed and does not do anything. " + N);
|
|
3419
3419
|
}
|
|
3420
3420
|
var y = x;
|
|
3421
|
-
return function(
|
|
3422
|
-
if (process.env.NODE_ENV !== "production" && !ni.isValidElementType(
|
|
3423
|
-
throw new Error("You must pass a component to the function returned by " + (i + ". Instead received " + Xf(
|
|
3424
|
-
var O =
|
|
3421
|
+
return function(I) {
|
|
3422
|
+
if (process.env.NODE_ENV !== "production" && !ni.isValidElementType(I))
|
|
3423
|
+
throw new Error("You must pass a component to the function returned by " + (i + ". Instead received " + Xf(I)));
|
|
3424
|
+
var O = I.displayName || I.name || "Component", E = a(O), P = ee({}, D, {
|
|
3425
3425
|
getDisplayName: a,
|
|
3426
3426
|
methodName: i,
|
|
3427
3427
|
renderCountProp: c,
|
|
@@ -3429,8 +3429,8 @@ function tg(e, t) {
|
|
|
3429
3429
|
storeKey: f,
|
|
3430
3430
|
displayName: E,
|
|
3431
3431
|
wrappedComponentName: O,
|
|
3432
|
-
WrappedComponent:
|
|
3433
|
-
}), k =
|
|
3432
|
+
WrappedComponent: I
|
|
3433
|
+
}), k = D.pure;
|
|
3434
3434
|
function M(R) {
|
|
3435
3435
|
return e(R.dispatch, P);
|
|
3436
3436
|
}
|
|
@@ -3464,10 +3464,10 @@ function tg(e, t) {
|
|
|
3464
3464
|
}, [U, Le, K]);
|
|
3465
3465
|
ai(Qf, [G, dt, J, K, ue, A, je]), ai(Zf, [d, U, De, pe, G, dt, J, A, je, He], [U, De, pe]);
|
|
3466
3466
|
var Ee = V(function() {
|
|
3467
|
-
return /* @__PURE__ */ ie.createElement(
|
|
3467
|
+
return /* @__PURE__ */ ie.createElement(I, ee({}, ue, {
|
|
3468
3468
|
ref: z
|
|
3469
3469
|
}));
|
|
3470
|
-
}, [z,
|
|
3470
|
+
}, [z, I, ue]), me = V(function() {
|
|
3471
3471
|
return d ? /* @__PURE__ */ ie.createElement(te.Provider, {
|
|
3472
3472
|
value: _
|
|
3473
3473
|
}, Ee) : Ee;
|
|
@@ -3475,15 +3475,15 @@ function tg(e, t) {
|
|
|
3475
3475
|
return me;
|
|
3476
3476
|
}
|
|
3477
3477
|
var Y = k ? ie.memo(Q) : Q;
|
|
3478
|
-
if (Y.WrappedComponent =
|
|
3478
|
+
if (Y.WrappedComponent = I, Y.displayName = Q.displayName = E, h) {
|
|
3479
3479
|
var B = ie.forwardRef(function($, F) {
|
|
3480
3480
|
return /* @__PURE__ */ ie.createElement(Y, ee({}, $, {
|
|
3481
3481
|
reactReduxForwardedRef: F
|
|
3482
3482
|
}));
|
|
3483
3483
|
});
|
|
3484
|
-
return B.displayName = E, B.WrappedComponent =
|
|
3484
|
+
return B.displayName = E, B.WrappedComponent = I, ei(B, I);
|
|
3485
3485
|
}
|
|
3486
|
-
return ei(Y,
|
|
3486
|
+
return ei(Y, I);
|
|
3487
3487
|
};
|
|
3488
3488
|
}
|
|
3489
3489
|
function oi(e, t) {
|
|
@@ -3615,8 +3615,8 @@ function bg(e, t, r, n) {
|
|
|
3615
3615
|
}
|
|
3616
3616
|
function xg(e, t, r, n, a) {
|
|
3617
3617
|
var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1, p, d, u, f, g;
|
|
3618
|
-
function v(
|
|
3619
|
-
return p =
|
|
3618
|
+
function v(D, N) {
|
|
3619
|
+
return p = D, d = N, u = e(p, d), f = t(n, d), g = r(u, f, d), c = !0, g;
|
|
3620
3620
|
}
|
|
3621
3621
|
function b() {
|
|
3622
3622
|
return u = e(p, d), t.dependsOnOwnProps && (f = t(n, d)), g = r(u, f, d), g;
|
|
@@ -3625,15 +3625,15 @@ function xg(e, t, r, n, a) {
|
|
|
3625
3625
|
return e.dependsOnOwnProps && (u = e(p, d)), t.dependsOnOwnProps && (f = t(n, d)), g = r(u, f, d), g;
|
|
3626
3626
|
}
|
|
3627
3627
|
function m() {
|
|
3628
|
-
var
|
|
3629
|
-
return u =
|
|
3628
|
+
var D = e(p, d), N = !l(D, u);
|
|
3629
|
+
return u = D, N && (g = r(u, f, d)), g;
|
|
3630
3630
|
}
|
|
3631
|
-
function x(
|
|
3632
|
-
var y = !i(
|
|
3633
|
-
return p =
|
|
3631
|
+
function x(D, N) {
|
|
3632
|
+
var y = !i(N, d), S = !o(D, p, N, d);
|
|
3633
|
+
return p = D, d = N, y && S ? b() : y ? h() : S ? m() : g;
|
|
3634
3634
|
}
|
|
3635
|
-
return function(
|
|
3636
|
-
return c ? x(
|
|
3635
|
+
return function(N, y) {
|
|
3636
|
+
return c ? x(N, y) : v(N, y);
|
|
3637
3637
|
};
|
|
3638
3638
|
}
|
|
3639
3639
|
function yg(e, t) {
|
|
@@ -3659,7 +3659,7 @@ function Ng(e) {
|
|
|
3659
3659
|
var t = {}, r = t.connectHOC, n = r === void 0 ? tg : r, a = t.mapStateToPropsFactories, o = a === void 0 ? dg : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? sg : i, c = t.mergePropsFactories, p = c === void 0 ? vg : c, d = t.selectorFactory, u = d === void 0 ? yg : d;
|
|
3660
3660
|
return function(g, v, b, h) {
|
|
3661
3661
|
h === void 0 && (h = {});
|
|
3662
|
-
var m = h, x = m.pure,
|
|
3662
|
+
var m = h, x = m.pure, D = x === void 0 ? !0 : x, N = m.areStatesEqual, y = N === void 0 ? Dg : N, S = m.areOwnPropsEqual, I = S === void 0 ? kn : S, O = m.areStatePropsEqual, E = O === void 0 ? kn : O, P = m.areMergedPropsEqual, k = P === void 0 ? kn : P, M = Zr(m, wg), C = Mn(g, o, "mapStateToProps"), Q = Mn(v, l, "mapDispatchToProps"), Y = Mn(b, p, "mergeProps");
|
|
3663
3663
|
return n(u, ee({
|
|
3664
3664
|
// used in error messages
|
|
3665
3665
|
methodName: "connect",
|
|
@@ -3673,9 +3673,9 @@ function Ng(e) {
|
|
|
3673
3673
|
initMapStateToProps: C,
|
|
3674
3674
|
initMapDispatchToProps: Q,
|
|
3675
3675
|
initMergeProps: Y,
|
|
3676
|
-
pure:
|
|
3676
|
+
pure: D,
|
|
3677
3677
|
areStatesEqual: y,
|
|
3678
|
-
areOwnPropsEqual:
|
|
3678
|
+
areOwnPropsEqual: I,
|
|
3679
3679
|
areStatePropsEqual: E,
|
|
3680
3680
|
areMergedPropsEqual: k
|
|
3681
3681
|
}, M));
|
|
@@ -3895,7 +3895,7 @@ function Nr(e) {
|
|
|
3895
3895
|
Nr.prototype.toString = function() {
|
|
3896
3896
|
return this.message;
|
|
3897
3897
|
};
|
|
3898
|
-
function
|
|
3898
|
+
function w(e, t) {
|
|
3899
3899
|
throw Lg ? new Nr(ui) : new Nr(ui + ": " + (t || ""));
|
|
3900
3900
|
}
|
|
3901
3901
|
var Fg = function(e) {
|
|
@@ -4088,7 +4088,7 @@ var Fg = function(e) {
|
|
|
4088
4088
|
active: l
|
|
4089
4089
|
};
|
|
4090
4090
|
}, $a = function(e, t) {
|
|
4091
|
-
e.frame || (process.env.NODE_ENV,
|
|
4091
|
+
e.frame || (process.env.NODE_ENV, w());
|
|
4092
4092
|
var r = e.frame, n = Ge(t, r.scroll.initial), a = er(n), o = ee({}, r, {
|
|
4093
4093
|
scroll: {
|
|
4094
4094
|
initial: r.scroll.initial,
|
|
@@ -4198,7 +4198,7 @@ var xn = Ae(function(e, t) {
|
|
|
4198
4198
|
var f = Ga(d, function(b) {
|
|
4199
4199
|
return b.descriptor.id === p;
|
|
4200
4200
|
});
|
|
4201
|
-
f === -1 && (process.env.NODE_ENV !== "production" ?
|
|
4201
|
+
f === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Could not find displaced item in set") : w());
|
|
4202
4202
|
var g = f - 1;
|
|
4203
4203
|
if (g < 0)
|
|
4204
4204
|
return null;
|
|
@@ -4413,7 +4413,7 @@ var cv = function(e) {
|
|
|
4413
4413
|
return i < l || i > p ? null : i;
|
|
4414
4414
|
}, uv = function(e) {
|
|
4415
4415
|
var t = e.isMovingForward, r = e.isInHomeList, n = e.draggable, a = e.draggables, o = e.destination, i = e.insideDestination, l = e.previousImpact, c = e.viewport, p = e.afterCritical, d = l.at;
|
|
4416
|
-
if (d || (process.env.NODE_ENV !== "production" ?
|
|
4416
|
+
if (d || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot move in direction without previous impact location") : w()), d.type === "REORDER") {
|
|
4417
4417
|
var u = dv({
|
|
4418
4418
|
isMovingForward: t,
|
|
4419
4419
|
isInHomeList: r,
|
|
@@ -4452,7 +4452,7 @@ var cv = function(e) {
|
|
|
4452
4452
|
return Dt(n, r) ? o ? Re : er(a.point) : o ? a.point : Re;
|
|
4453
4453
|
}, fv = function(e) {
|
|
4454
4454
|
var t = e.afterCritical, r = e.impact, n = e.draggables, a = bn(r);
|
|
4455
|
-
a || (process.env.NODE_ENV,
|
|
4455
|
+
a || (process.env.NODE_ENV, w());
|
|
4456
4456
|
var o = a.draggableId, i = n[o].page.borderBox.center, l = pv({
|
|
4457
4457
|
displaced: r.displaced,
|
|
4458
4458
|
afterCritical: t,
|
|
@@ -4675,7 +4675,7 @@ var xv = function(e) {
|
|
|
4675
4675
|
};
|
|
4676
4676
|
}, Fe = function(t) {
|
|
4677
4677
|
var r = t.subject.active;
|
|
4678
|
-
return r || (process.env.NODE_ENV !== "production" ?
|
|
4678
|
+
return r || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot get clipped area from droppable") : w()), r;
|
|
4679
4679
|
}, Dv = function(e) {
|
|
4680
4680
|
var t = e.isMovingForward, r = e.pageBorderBoxCenter, n = e.source, a = e.droppables, o = e.viewport, i = n.subject.active;
|
|
4681
4681
|
if (!i)
|
|
@@ -4755,7 +4755,7 @@ var xv = function(e) {
|
|
|
4755
4755
|
});
|
|
4756
4756
|
}, wl = function(t, r, n) {
|
|
4757
4757
|
var a = t.frame;
|
|
4758
|
-
tr(r, t) && (process.env.NODE_ENV !== "production" ?
|
|
4758
|
+
tr(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());
|
|
4759
4759
|
var o = Ar(t.axis, r.displaceBy).point, i = Cv(t, o, n), l = {
|
|
4760
4760
|
placeholderSize: o,
|
|
4761
4761
|
increasedBy: i,
|
|
@@ -4784,7 +4784,7 @@ var xv = function(e) {
|
|
|
4784
4784
|
});
|
|
4785
4785
|
}, Ev = function(t) {
|
|
4786
4786
|
var r = t.subject.withPlaceholder;
|
|
4787
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
4787
|
+
r || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot remove placeholder form subject when there was none") : w());
|
|
4788
4788
|
var n = t.frame;
|
|
4789
4789
|
if (!n) {
|
|
4790
4790
|
var a = Yt({
|
|
@@ -4798,7 +4798,7 @@ var xv = function(e) {
|
|
|
4798
4798
|
});
|
|
4799
4799
|
}
|
|
4800
4800
|
var o = r.oldFrameMaxScroll;
|
|
4801
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
4801
|
+
o || (process.env.NODE_ENV !== "production" ? w(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : w());
|
|
4802
4802
|
var i = yl(n, o), l = Yt({
|
|
4803
4803
|
page: t.subject.page,
|
|
4804
4804
|
axis: t.axis,
|
|
@@ -4987,11 +4987,11 @@ function kv(e) {
|
|
|
4987
4987
|
}
|
|
4988
4988
|
var Bv = function(e) {
|
|
4989
4989
|
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 = Ar(n.axis, r.displaceBy), d = p.value, u = t[c.start], f = t[c.end], g = xn(r, a), v = jt(g, function(h) {
|
|
4990
|
-
var m = h.descriptor.id, x = h.page.borderBox.center[c.line],
|
|
4990
|
+
var m = h.descriptor.id, x = h.page.borderBox.center[c.line], D = Dt(m, l), N = Sl({
|
|
4991
4991
|
displaced: o,
|
|
4992
4992
|
id: m
|
|
4993
4993
|
});
|
|
4994
|
-
return
|
|
4994
|
+
return D ? N ? f <= x : u < x - d : N ? f <= x + d : u < x;
|
|
4995
4995
|
}), b = kv({
|
|
4996
4996
|
draggable: r,
|
|
4997
4997
|
closest: v,
|
|
@@ -5011,11 +5011,11 @@ var Bv = function(e) {
|
|
|
5011
5011
|
if (!a.isCombineEnabled)
|
|
5012
5012
|
return null;
|
|
5013
5013
|
var l = a.axis, c = Ar(a.axis, t.displaceBy), p = c.value, d = r[l.start], u = r[l.end], f = xn(t, o), g = jt(f, function(b) {
|
|
5014
|
-
var h = b.descriptor.id, m = b.page.borderBox, x = m[l.size],
|
|
5014
|
+
var h = b.descriptor.id, m = b.page.borderBox, x = m[l.size], D = x / Mv, N = Dt(h, i), y = Sl({
|
|
5015
5015
|
displaced: n.displaced,
|
|
5016
5016
|
id: h
|
|
5017
5017
|
});
|
|
5018
|
-
return
|
|
5018
|
+
return N ? y ? u > m[l.start] + D && u < m[l.end] - D : d > m[l.start] - p + D && d < m[l.end] - p - D : y ? u > m[l.start] + p + D && u < m[l.end] + p - D : d > m[l.start] + D && d < m[l.end] - D;
|
|
5019
5019
|
});
|
|
5020
5020
|
if (!g)
|
|
5021
5021
|
return null;
|
|
@@ -5161,9 +5161,9 @@ var El = function(e) {
|
|
|
5161
5161
|
});
|
|
5162
5162
|
}, jl = function(e) {
|
|
5163
5163
|
var t = e.state, r = e.dimensions, n = e.viewport;
|
|
5164
|
-
t.movementMode !== "SNAP" && (process.env.NODE_ENV,
|
|
5164
|
+
t.movementMode !== "SNAP" && (process.env.NODE_ENV, w());
|
|
5165
5165
|
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);
|
|
5166
|
-
d || (process.env.NODE_ENV !== "production" ?
|
|
5166
|
+
d || (process.env.NODE_ENV !== "production" ? w(!1, "Must be over a destination in SNAP movement mode") : w());
|
|
5167
5167
|
var u = c[d], f = El({
|
|
5168
5168
|
impact: a,
|
|
5169
5169
|
viewport: o,
|
|
@@ -5191,7 +5191,7 @@ var El = function(e) {
|
|
|
5191
5191
|
};
|
|
5192
5192
|
}, Ol = function(e) {
|
|
5193
5193
|
var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = Ar(r.axis, t.displaceBy), i = $t(r.descriptor.id, n), l = i.indexOf(t);
|
|
5194
|
-
l === -1 && (process.env.NODE_ENV !== "production" ?
|
|
5194
|
+
l === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Expected draggable to be inside home list") : w());
|
|
5195
5195
|
var c = i.slice(l + 1), p = c.reduce(function(g, v) {
|
|
5196
5196
|
return g[v.descriptor.id] = !0, g;
|
|
5197
5197
|
}, {}), d = {
|
|
@@ -5237,7 +5237,7 @@ var El = function(e) {
|
|
|
5237
5237
|
return i;
|
|
5238
5238
|
}, Hv = function(e) {
|
|
5239
5239
|
var t = e.frame;
|
|
5240
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
5240
|
+
return t || (process.env.NODE_ENV !== "production" ? w(!1, "Expected Droppable to have a frame") : w()), t;
|
|
5241
5241
|
}, zv = function(e) {
|
|
5242
5242
|
var t = e.additions, r = e.updatedDroppables, n = e.viewport, a = n.scroll.diff.value;
|
|
5243
5243
|
return t.map(function(o) {
|
|
@@ -5251,16 +5251,16 @@ var El = function(e) {
|
|
|
5251
5251
|
}, qv = function(e) {
|
|
5252
5252
|
var t = e.state, r = e.published;
|
|
5253
5253
|
Rr();
|
|
5254
|
-
var n = r.modified.map(function(
|
|
5255
|
-
var
|
|
5254
|
+
var n = r.modified.map(function(D) {
|
|
5255
|
+
var N = t.dimensions.droppables[D.droppableId], y = $a(N, D.scroll);
|
|
5256
5256
|
return y;
|
|
5257
5257
|
}), a = ee({}, t.dimensions.droppables, {}, ul(n)), o = pl(zv({
|
|
5258
5258
|
additions: r.additions,
|
|
5259
5259
|
updatedDroppables: a,
|
|
5260
5260
|
viewport: t.viewport
|
|
5261
5261
|
})), i = ee({}, t.dimensions.draggables, {}, o);
|
|
5262
|
-
r.removals.forEach(function(
|
|
5263
|
-
delete i[
|
|
5262
|
+
r.removals.forEach(function(D) {
|
|
5263
|
+
delete i[D];
|
|
5264
5264
|
});
|
|
5265
5265
|
var l = {
|
|
5266
5266
|
droppables: a,
|
|
@@ -5329,7 +5329,7 @@ var yi = {
|
|
|
5329
5329
|
shouldFlush: !0
|
|
5330
5330
|
});
|
|
5331
5331
|
if (t.type === "INITIAL_PUBLISH") {
|
|
5332
|
-
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
5332
|
+
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "INITIAL_PUBLISH must come after a IDLE phase") : w());
|
|
5333
5333
|
var r = t.payload, n = r.critical, a = r.clientSelection, o = r.viewport, i = r.dimensions, l = r.movementMode, c = i.draggables[n.draggable.id], p = i.droppables[n.droppable.id], d = {
|
|
5334
5334
|
selection: a,
|
|
5335
5335
|
borderBoxCenter: c.client.borderBox.center,
|
|
@@ -5369,7 +5369,7 @@ var yi = {
|
|
|
5369
5369
|
if (t.type === "COLLECTION_STARTING") {
|
|
5370
5370
|
if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
|
|
5371
5371
|
return e;
|
|
5372
|
-
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
5372
|
+
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? w(!1, "Collection cannot start from phase " + e.phase) : w());
|
|
5373
5373
|
var m = ee({
|
|
5374
5374
|
phase: "COLLECTING"
|
|
5375
5375
|
}, e, {
|
|
@@ -5378,14 +5378,14 @@ var yi = {
|
|
|
5378
5378
|
return m;
|
|
5379
5379
|
}
|
|
5380
5380
|
if (t.type === "PUBLISH_WHILE_DRAGGING")
|
|
5381
|
-
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ?
|
|
5381
|
+
return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? w(!1, "Unexpected " + t.type + " received in phase " + e.phase) : w()), qv({
|
|
5382
5382
|
state: e,
|
|
5383
5383
|
published: t.payload
|
|
5384
5384
|
});
|
|
5385
5385
|
if (t.type === "MOVE") {
|
|
5386
5386
|
if (e.phase === "DROP_PENDING")
|
|
5387
5387
|
return e;
|
|
5388
|
-
Bt(e) || (process.env.NODE_ENV !== "production" ?
|
|
5388
|
+
Bt(e) || (process.env.NODE_ENV !== "production" ? w(!1, t.type + " not permitted in phase " + e.phase) : w());
|
|
5389
5389
|
var x = t.payload.client;
|
|
5390
5390
|
return yt(x, e.current.client.selection) ? e : fr({
|
|
5391
5391
|
state: e,
|
|
@@ -5396,20 +5396,20 @@ var yi = {
|
|
|
5396
5396
|
if (t.type === "UPDATE_DROPPABLE_SCROLL") {
|
|
5397
5397
|
if (e.phase === "DROP_PENDING" || e.phase === "COLLECTING")
|
|
5398
5398
|
return $n(e);
|
|
5399
|
-
Bt(e) || (process.env.NODE_ENV !== "production" ?
|
|
5400
|
-
var
|
|
5399
|
+
Bt(e) || (process.env.NODE_ENV !== "production" ? w(!1, t.type + " not permitted in phase " + e.phase) : w());
|
|
5400
|
+
var D = t.payload, N = D.id, y = D.newScroll, S = e.dimensions.droppables[N];
|
|
5401
5401
|
if (!S)
|
|
5402
5402
|
return e;
|
|
5403
|
-
var
|
|
5404
|
-
return Vn(e,
|
|
5403
|
+
var I = $a(S, y);
|
|
5404
|
+
return Vn(e, I, !1);
|
|
5405
5405
|
}
|
|
5406
5406
|
if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
|
|
5407
5407
|
if (e.phase === "DROP_PENDING")
|
|
5408
5408
|
return e;
|
|
5409
|
-
Bt(e) || (process.env.NODE_ENV !== "production" ?
|
|
5409
|
+
Bt(e) || (process.env.NODE_ENV !== "production" ? w(!1, "Attempting to move in an unsupported phase " + e.phase) : w());
|
|
5410
5410
|
var O = t.payload, E = O.id, P = O.isEnabled, k = e.dimensions.droppables[E];
|
|
5411
|
-
k || (process.env.NODE_ENV !== "production" ?
|
|
5412
|
-
but it is already ` + String(k.isEnabled)) :
|
|
5411
|
+
k || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find Droppable[id: " + E + "] to toggle its enabled state") : w()), k.isEnabled === P && (process.env.NODE_ENV !== "production" ? w(!1, "Trying to set droppable isEnabled to " + String(P) + `
|
|
5412
|
+
but it is already ` + String(k.isEnabled)) : w());
|
|
5413
5413
|
var M = ee({}, k, {
|
|
5414
5414
|
isEnabled: P
|
|
5415
5415
|
});
|
|
@@ -5418,10 +5418,10 @@ var yi = {
|
|
|
5418
5418
|
if (t.type === "UPDATE_DROPPABLE_IS_COMBINE_ENABLED") {
|
|
5419
5419
|
if (e.phase === "DROP_PENDING")
|
|
5420
5420
|
return e;
|
|
5421
|
-
Bt(e) || (process.env.NODE_ENV !== "production" ?
|
|
5421
|
+
Bt(e) || (process.env.NODE_ENV !== "production" ? w(!1, "Attempting to move in an unsupported phase " + e.phase) : w());
|
|
5422
5422
|
var C = t.payload, Q = C.id, Y = C.isCombineEnabled, B = e.dimensions.droppables[Q];
|
|
5423
|
-
B || (process.env.NODE_ENV !== "production" ?
|
|
5424
|
-
but it is already ` + String(B.isCombineEnabled)) :
|
|
5423
|
+
B || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find Droppable[id: " + Q + "] to toggle its isCombineEnabled state") : w()), B.isCombineEnabled === Y && (process.env.NODE_ENV !== "production" ? w(!1, "Trying to set droppable isCombineEnabled to " + String(Y) + `
|
|
5424
|
+
but it is already ` + String(B.isCombineEnabled)) : w());
|
|
5425
5425
|
var R = ee({}, B, {
|
|
5426
5426
|
isCombineEnabled: Y
|
|
5427
5427
|
});
|
|
@@ -5430,7 +5430,7 @@ var yi = {
|
|
|
5430
5430
|
if (t.type === "MOVE_BY_WINDOW_SCROLL") {
|
|
5431
5431
|
if (e.phase === "DROP_PENDING" || e.phase === "DROP_ANIMATING")
|
|
5432
5432
|
return e;
|
|
5433
|
-
Bt(e) || (process.env.NODE_ENV !== "production" ?
|
|
5433
|
+
Bt(e) || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot move by window in phase " + e.phase) : w()), e.isWindowScrollAllowed || (process.env.NODE_ENV !== "production" ? w(!1, "Window scrolling is currently not supported for fixed lists") : w());
|
|
5434
5434
|
var $ = t.payload.newScroll;
|
|
5435
5435
|
if (yt(e.viewport.scroll.current, $))
|
|
5436
5436
|
return $n(e);
|
|
@@ -5463,7 +5463,7 @@ var yi = {
|
|
|
5463
5463
|
if (t.type === "MOVE_UP" || t.type === "MOVE_DOWN" || t.type === "MOVE_LEFT" || t.type === "MOVE_RIGHT") {
|
|
5464
5464
|
if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
|
|
5465
5465
|
return e;
|
|
5466
|
-
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
5466
|
+
e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? w(!1, t.type + " received while not in DRAGGING phase") : w());
|
|
5467
5467
|
var te = _v({
|
|
5468
5468
|
state: e,
|
|
5469
5469
|
type: t.type
|
|
@@ -5477,7 +5477,7 @@ var yi = {
|
|
|
5477
5477
|
}
|
|
5478
5478
|
if (t.type === "DROP_PENDING") {
|
|
5479
5479
|
var ae = t.payload.reason;
|
|
5480
|
-
e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ?
|
|
5480
|
+
e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ? w(!1, "Can only move into the DROP_PENDING phase from the COLLECTING phase") : w());
|
|
5481
5481
|
var oe = ee({
|
|
5482
5482
|
phase: "DROP_PENDING"
|
|
5483
5483
|
}, e, {
|
|
@@ -5489,7 +5489,7 @@ var yi = {
|
|
|
5489
5489
|
}
|
|
5490
5490
|
if (t.type === "DROP_ANIMATE") {
|
|
5491
5491
|
var H = t.payload, U = H.completed, pe = H.dropDuration, se = H.newHomeClientOffset;
|
|
5492
|
-
e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ?
|
|
5492
|
+
e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot animate drop from phase " + e.phase) : w());
|
|
5493
5493
|
var De = {
|
|
5494
5494
|
phase: "DROP_ANIMATING",
|
|
5495
5495
|
completed: U,
|
|
@@ -5655,7 +5655,7 @@ var fm = function(e) {
|
|
|
5655
5655
|
var i = o.payload, l = i.id, c = i.clientSelection, p = i.movementMode, d = r();
|
|
5656
5656
|
d.phase === "DROP_ANIMATING" && n(Xa({
|
|
5657
5657
|
completed: d.completed
|
|
5658
|
-
})), r().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
5658
|
+
})), r().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Unexpected phase to start a drag") : w()), n(Ka()), n(Kv({
|
|
5659
5659
|
draggableId: l,
|
|
5660
5660
|
movementMode: p
|
|
5661
5661
|
}));
|
|
@@ -5777,7 +5777,7 @@ var fm = function(e) {
|
|
|
5777
5777
|
}
|
|
5778
5778
|
if (o.phase !== "IDLE") {
|
|
5779
5779
|
var l = o.phase === "DROP_PENDING" && o.isWaiting;
|
|
5780
|
-
l && (process.env.NODE_ENV !== "production" ?
|
|
5780
|
+
l && (process.env.NODE_ENV !== "production" ? w(!1, "A DROP action occurred while DROP_PENDING and still waiting") : w()), o.phase === "DRAGGING" || o.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot drop in phase: " + o.phase) : w());
|
|
5781
5781
|
var c = o.critical, p = o.dimensions, d = p.draggables[o.critical.draggable.id], u = xm({
|
|
5782
5782
|
reason: i,
|
|
5783
5783
|
lastImpact: o.impact,
|
|
@@ -5803,15 +5803,15 @@ var fm = function(e) {
|
|
|
5803
5803
|
dimensions: p,
|
|
5804
5804
|
viewport: o.viewport,
|
|
5805
5805
|
afterCritical: o.afterCritical
|
|
5806
|
-
}),
|
|
5806
|
+
}), D = {
|
|
5807
5807
|
critical: o.critical,
|
|
5808
5808
|
afterCritical: o.afterCritical,
|
|
5809
5809
|
result: m,
|
|
5810
5810
|
impact: f
|
|
5811
|
-
},
|
|
5812
|
-
if (!
|
|
5811
|
+
}, N = !yt(o.current.client.offset, x) || !!m.combine;
|
|
5812
|
+
if (!N) {
|
|
5813
5813
|
r(Xa({
|
|
5814
|
-
completed:
|
|
5814
|
+
completed: D
|
|
5815
5815
|
}));
|
|
5816
5816
|
return;
|
|
5817
5817
|
}
|
|
@@ -5822,7 +5822,7 @@ var fm = function(e) {
|
|
|
5822
5822
|
}), S = {
|
|
5823
5823
|
newHomeClientOffset: x,
|
|
5824
5824
|
dropDuration: y,
|
|
5825
|
-
completed:
|
|
5825
|
+
completed: D
|
|
5826
5826
|
};
|
|
5827
5827
|
r(cm(S));
|
|
5828
5828
|
}
|
|
@@ -5856,10 +5856,10 @@ function Dm(e) {
|
|
|
5856
5856
|
return o !== xt;
|
|
5857
5857
|
}
|
|
5858
5858
|
function l() {
|
|
5859
|
-
i() && (process.env.NODE_ENV !== "production" ?
|
|
5859
|
+
i() && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start scroll listener when already active") : w()), o = Ye(window, [a]);
|
|
5860
5860
|
}
|
|
5861
5861
|
function c() {
|
|
5862
|
-
i() || (process.env.NODE_ENV !== "production" ?
|
|
5862
|
+
i() || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot stop scroll listener when not active") : w()), n.cancel(), o(), o = xt;
|
|
5863
5863
|
}
|
|
5864
5864
|
return {
|
|
5865
5865
|
start: l,
|
|
@@ -5907,7 +5907,7 @@ var Nm = function(t) {
|
|
|
5907
5907
|
var i = Ga(e, function(p) {
|
|
5908
5908
|
return p.timerId === o;
|
|
5909
5909
|
});
|
|
5910
|
-
i === -1 && (process.env.NODE_ENV !== "production" ?
|
|
5910
|
+
i === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Could not find timer") : w());
|
|
5911
5911
|
var l = e.splice(i, 1), c = l[0];
|
|
5912
5912
|
c.callback();
|
|
5913
5913
|
}, r = function(o) {
|
|
@@ -5962,7 +5962,7 @@ var Nm = function(t) {
|
|
|
5962
5962
|
t(r, i), o.wasCalled() || n(a(r));
|
|
5963
5963
|
}, _m = function(e, t) {
|
|
5964
5964
|
var r = Em(), n = null, a = function(f, g) {
|
|
5965
|
-
n && (process.env.NODE_ENV !== "production" ?
|
|
5965
|
+
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : w()), cr("onBeforeCapture", function() {
|
|
5966
5966
|
var v = e().onBeforeCapture;
|
|
5967
5967
|
if (v) {
|
|
5968
5968
|
var b = {
|
|
@@ -5973,12 +5973,12 @@ var Nm = function(t) {
|
|
|
5973
5973
|
}
|
|
5974
5974
|
});
|
|
5975
5975
|
}, o = function(f, g) {
|
|
5976
|
-
n && (process.env.NODE_ENV !== "production" ?
|
|
5976
|
+
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : w()), cr("onBeforeDragStart", function() {
|
|
5977
5977
|
var v = e().onBeforeDragStart;
|
|
5978
5978
|
v && v(Gr(f, g));
|
|
5979
5979
|
});
|
|
5980
5980
|
}, i = function(f, g) {
|
|
5981
|
-
n && (process.env.NODE_ENV !== "production" ?
|
|
5981
|
+
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : w());
|
|
5982
5982
|
var v = Gr(f, g);
|
|
5983
5983
|
n = {
|
|
5984
5984
|
mode: g,
|
|
@@ -5992,27 +5992,27 @@ var Nm = function(t) {
|
|
|
5992
5992
|
});
|
|
5993
5993
|
}, l = function(f, g) {
|
|
5994
5994
|
var v = Wa(g), b = bn(g);
|
|
5995
|
-
n || (process.env.NODE_ENV !== "production" ?
|
|
5995
|
+
n || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onDragMove when onDragStart has not been called") : w());
|
|
5996
5996
|
var h = !Om(f, n.lastCritical);
|
|
5997
5997
|
h && (n.lastCritical = f);
|
|
5998
5998
|
var m = !Im(n.lastLocation, v);
|
|
5999
5999
|
m && (n.lastLocation = v);
|
|
6000
6000
|
var x = !jm(n.lastCombine, b);
|
|
6001
6001
|
if (x && (n.lastCombine = b), !(!h && !m && !x)) {
|
|
6002
|
-
var
|
|
6002
|
+
var D = ee({}, Gr(f, n.mode), {
|
|
6003
6003
|
combine: b,
|
|
6004
6004
|
destination: v
|
|
6005
6005
|
});
|
|
6006
6006
|
r.add(function() {
|
|
6007
6007
|
cr("onDragUpdate", function() {
|
|
6008
|
-
return Gn(e().onDragUpdate,
|
|
6008
|
+
return Gn(e().onDragUpdate, D, t, Xr.onDragUpdate);
|
|
6009
6009
|
});
|
|
6010
6010
|
});
|
|
6011
6011
|
}
|
|
6012
6012
|
}, c = function() {
|
|
6013
|
-
n || (process.env.NODE_ENV !== "production" ?
|
|
6013
|
+
n || (process.env.NODE_ENV !== "production" ? w(!1, "Can only flush responders while dragging") : w()), r.flush();
|
|
6014
6014
|
}, p = function(f) {
|
|
6015
|
-
n || (process.env.NODE_ENV !== "production" ?
|
|
6015
|
+
n || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : w()), n = null, cr("onDragEnd", function() {
|
|
6016
6016
|
return Gn(e().onDragEnd, f, t, Xr.onDragEnd);
|
|
6017
6017
|
});
|
|
6018
6018
|
}, d = function() {
|
|
@@ -6070,7 +6070,7 @@ var Nm = function(t) {
|
|
|
6070
6070
|
return;
|
|
6071
6071
|
}
|
|
6072
6072
|
var n = e.getState();
|
|
6073
|
-
n.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ?
|
|
6073
|
+
n.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot finish a drop animating when no drop is occurring") : w()), e.dispatch(Xa({
|
|
6074
6074
|
completed: n.completed
|
|
6075
6075
|
}));
|
|
6076
6076
|
};
|
|
@@ -6145,7 +6145,7 @@ var Nm = function(t) {
|
|
|
6145
6145
|
if (n.type === "INITIAL_PUBLISH") {
|
|
6146
6146
|
r(n);
|
|
6147
6147
|
var a = t.getState();
|
|
6148
|
-
a.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ?
|
|
6148
|
+
a.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected phase to be DRAGGING after INITIAL_PUBLISH") : w()), e.start(a);
|
|
6149
6149
|
return;
|
|
6150
6150
|
}
|
|
6151
6151
|
r(n), e.scroll(t.getState());
|
|
@@ -6184,10 +6184,10 @@ function $m(e) {
|
|
|
6184
6184
|
}).sort(function(m, x) {
|
|
6185
6185
|
return m.descriptor.index - x.descriptor.index;
|
|
6186
6186
|
}), b = Object.keys(g).map(function(m) {
|
|
6187
|
-
var x = t.droppable.getById(m),
|
|
6187
|
+
var x = t.droppable.getById(m), D = x.callbacks.getScrollWhileDragging();
|
|
6188
6188
|
return {
|
|
6189
6189
|
droppableId: m,
|
|
6190
|
-
scroll:
|
|
6190
|
+
scroll: D
|
|
6191
6191
|
};
|
|
6192
6192
|
}), h = {
|
|
6193
6193
|
additions: v,
|
|
@@ -6225,7 +6225,7 @@ var kl = function(e) {
|
|
|
6225
6225
|
return i;
|
|
6226
6226
|
}, Bl = function() {
|
|
6227
6227
|
var e = document.documentElement;
|
|
6228
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
6228
|
+
return e || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find document.documentElement") : w()), e;
|
|
6229
6229
|
}, Ml = function() {
|
|
6230
6230
|
var e = Bl(), t = kl({
|
|
6231
6231
|
scrollHeight: e.scrollHeight,
|
|
@@ -6291,17 +6291,17 @@ var Um = function(e, t) {
|
|
|
6291
6291
|
},
|
|
6292
6292
|
registry: e
|
|
6293
6293
|
}), a = function(g, v) {
|
|
6294
|
-
e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ?
|
|
6294
|
+
e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot update is enabled flag of Droppable " + g + " as it is not registered") : w()), r && t.updateDroppableIsEnabled({
|
|
6295
6295
|
id: g,
|
|
6296
6296
|
isEnabled: v
|
|
6297
6297
|
});
|
|
6298
6298
|
}, o = function(g, v) {
|
|
6299
|
-
r && (e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ?
|
|
6299
|
+
r && (e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot update isCombineEnabled flag of Droppable " + g + " as it is not registered") : w()), t.updateDroppableIsCombineEnabled({
|
|
6300
6300
|
id: g,
|
|
6301
6301
|
isCombineEnabled: v
|
|
6302
6302
|
}));
|
|
6303
6303
|
}, i = function(g, v) {
|
|
6304
|
-
r && (e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ?
|
|
6304
|
+
r && (e.droppable.exists(g) || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot update the scroll on Droppable " + g + " as it is not registered") : w()), t.updateDroppableScroll({
|
|
6305
6305
|
id: g,
|
|
6306
6306
|
newScroll: v
|
|
6307
6307
|
}));
|
|
@@ -6316,11 +6316,11 @@ var Um = function(e, t) {
|
|
|
6316
6316
|
}), r.unsubscribe(), r = null;
|
|
6317
6317
|
}
|
|
6318
6318
|
}, p = function(g) {
|
|
6319
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
6319
|
+
r || (process.env.NODE_ENV !== "production" ? w(!1, "Should only be subscribed when a collection is occurring") : w());
|
|
6320
6320
|
var v = r.critical.draggable;
|
|
6321
6321
|
g.type === "ADDITION" && Ni(e, v, g.value) && n.add(g.value), g.type === "REMOVAL" && Ni(e, v, g.value) && n.remove(g.value);
|
|
6322
6322
|
}, d = function(g) {
|
|
6323
|
-
r && (process.env.NODE_ENV !== "production" ?
|
|
6323
|
+
r && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start capturing critical dimensions as there is already a collection") : w());
|
|
6324
6324
|
var v = e.draggable.getById(g.draggableId), b = e.droppable.getById(v.descriptor.droppableId), h = {
|
|
6325
6325
|
draggable: v.descriptor,
|
|
6326
6326
|
droppable: b.descriptor
|
|
@@ -6352,7 +6352,7 @@ var Um = function(e, t) {
|
|
|
6352
6352
|
});
|
|
6353
6353
|
}), qm = function(t, r) {
|
|
6354
6354
|
var n = jt(zm(r), function(a) {
|
|
6355
|
-
return a.frame || (process.env.NODE_ENV !== "production" ?
|
|
6355
|
+
return a.frame || (process.env.NODE_ENV !== "production" ? w(!1, "Invalid result") : w()), Dl(a.frame.pageMarginBox)(t);
|
|
6356
6356
|
});
|
|
6357
6357
|
return n;
|
|
6358
6358
|
}, Ym = function(e) {
|
|
@@ -6574,7 +6574,7 @@ var Um = function(e, t) {
|
|
|
6574
6574
|
}
|
|
6575
6575
|
}, oh = function(e) {
|
|
6576
6576
|
var t = e.scrollWindow, r = e.scrollDroppable, n = Dr(t), a = Dr(r), o = null, i = function(d) {
|
|
6577
|
-
o || (process.env.NODE_ENV !== "production" ?
|
|
6577
|
+
o || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fluid scroll if not dragging") : w());
|
|
6578
6578
|
var u = o, f = u.shouldUseTimeDampening, g = u.dragStartTime;
|
|
6579
6579
|
ji({
|
|
6580
6580
|
state: d,
|
|
@@ -6584,7 +6584,7 @@ var Um = function(e, t) {
|
|
|
6584
6584
|
shouldUseTimeDampening: f
|
|
6585
6585
|
});
|
|
6586
6586
|
}, l = function(d) {
|
|
6587
|
-
Rr(), o && (process.env.NODE_ENV !== "production" ?
|
|
6587
|
+
Rr(), o && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start auto scrolling when already started") : w());
|
|
6588
6588
|
var u = Date.now(), f = !1, g = function() {
|
|
6589
6589
|
f = !0;
|
|
6590
6590
|
};
|
|
@@ -6636,7 +6636,7 @@ var Um = function(e, t) {
|
|
|
6636
6636
|
var d = p.scrollJumpRequest;
|
|
6637
6637
|
if (d) {
|
|
6638
6638
|
var u = We(p.impact);
|
|
6639
|
-
u || (process.env.NODE_ENV !== "production" ?
|
|
6639
|
+
u || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot perform a jump scroll when there is no destination") : w());
|
|
6640
6640
|
var f = o(p.dimensions.droppables[u], d);
|
|
6641
6641
|
if (f) {
|
|
6642
6642
|
var g = p.viewport, v = i(p.isWindowScrollAllowed, g, f);
|
|
@@ -6758,7 +6758,7 @@ var Um = function(e, t) {
|
|
|
6758
6758
|
};
|
|
6759
6759
|
}, Ue = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Ea : W, Un = function() {
|
|
6760
6760
|
var t = document.querySelector("head");
|
|
6761
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
6761
|
+
return t || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find the head to append a style to") : w()), t;
|
|
6762
6762
|
}, _i = function(t) {
|
|
6763
6763
|
var r = document.createElement("style");
|
|
6764
6764
|
return t && r.setAttribute("nonce", t), r.type = "text/css", r;
|
|
@@ -6768,18 +6768,18 @@ function ph(e, t) {
|
|
|
6768
6768
|
return uh(e);
|
|
6769
6769
|
}, [e]), n = Z(null), a = Z(null), o = X(Ae(function(u) {
|
|
6770
6770
|
var f = a.current;
|
|
6771
|
-
f || (process.env.NODE_ENV !== "production" ?
|
|
6771
|
+
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.textContent = u;
|
|
6772
6772
|
}), []), i = X(function(u) {
|
|
6773
6773
|
var f = n.current;
|
|
6774
|
-
f || (process.env.NODE_ENV !== "production" ?
|
|
6774
|
+
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.textContent = u;
|
|
6775
6775
|
}, []);
|
|
6776
6776
|
Ue(function() {
|
|
6777
|
-
!n.current && !a.current || (process.env.NODE_ENV !== "production" ?
|
|
6777
|
+
!n.current && !a.current || (process.env.NODE_ENV !== "production" ? w(!1, "style elements already mounted") : w());
|
|
6778
6778
|
var u = _i(t), f = _i(t);
|
|
6779
6779
|
return n.current = u, a.current = f, u.setAttribute(Kt + "-always", e), f.setAttribute(Kt + "-dynamic", e), Un().appendChild(u), Un().appendChild(f), i(r.always), o(r.resting), function() {
|
|
6780
6780
|
var g = function(b) {
|
|
6781
6781
|
var h = b.current;
|
|
6782
|
-
h || (process.env.NODE_ENV !== "production" ?
|
|
6782
|
+
h || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot unmount ref as it is not set") : w()), Un().removeChild(h), b.current = null;
|
|
6783
6783
|
};
|
|
6784
6784
|
g(n), g(a);
|
|
6785
6785
|
};
|
|
@@ -6882,7 +6882,7 @@ function gh() {
|
|
|
6882
6882
|
}
|
|
6883
6883
|
function o(u) {
|
|
6884
6884
|
var f = a(u);
|
|
6885
|
-
return f || (process.env.NODE_ENV !== "production" ?
|
|
6885
|
+
return f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find draggable entry with id [" + u + "]") : w()), f;
|
|
6886
6886
|
}
|
|
6887
6887
|
var i = {
|
|
6888
6888
|
register: function(f) {
|
|
@@ -6918,7 +6918,7 @@ function gh() {
|
|
|
6918
6918
|
}
|
|
6919
6919
|
function c(u) {
|
|
6920
6920
|
var f = l(u);
|
|
6921
|
-
return f || (process.env.NODE_ENV !== "production" ?
|
|
6921
|
+
return f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find droppable entry with id [" + u + "]") : w()), f;
|
|
6922
6922
|
}
|
|
6923
6923
|
var p = {
|
|
6924
6924
|
register: function(f) {
|
|
@@ -6959,7 +6959,7 @@ function vh() {
|
|
|
6959
6959
|
}
|
|
6960
6960
|
var no = ie.createContext(null), jr = function() {
|
|
6961
6961
|
var e = document.body;
|
|
6962
|
-
return e || (process.env.NODE_ENV !== "production" ?
|
|
6962
|
+
return e || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find document.body") : w()), e;
|
|
6963
6963
|
}, mh = {
|
|
6964
6964
|
position: "absolute",
|
|
6965
6965
|
width: "1px",
|
|
@@ -7039,7 +7039,7 @@ var wn = ie.createContext(null), Nh = {
|
|
|
7039
7039
|
"react-dom": "^16.8.5 || ^17.0.0 || ^18.0.0"
|
|
7040
7040
|
}, Sh = /(\d+)\.(\d+)\.(\d+)/, Pi = function(t) {
|
|
7041
7041
|
var r = Sh.exec(t);
|
|
7042
|
-
r == null && (process.env.NODE_ENV !== "production" ?
|
|
7042
|
+
r == null && (process.env.NODE_ENV !== "production" ? w(!1, "Unable to parse React version " + t) : w());
|
|
7043
7043
|
var n = Number(r[1]), a = Number(r[2]), o = Number(r[3]);
|
|
7044
7044
|
return {
|
|
7045
7045
|
major: n,
|
|
@@ -7121,14 +7121,14 @@ function Oh() {
|
|
|
7121
7121
|
return i === e;
|
|
7122
7122
|
}
|
|
7123
7123
|
function n(i) {
|
|
7124
|
-
e && (process.env.NODE_ENV !== "production" ?
|
|
7124
|
+
e && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot claim lock as it is already claimed") : w());
|
|
7125
7125
|
var l = {
|
|
7126
7126
|
abandon: i
|
|
7127
7127
|
};
|
|
7128
7128
|
return e = l, l;
|
|
7129
7129
|
}
|
|
7130
7130
|
function a() {
|
|
7131
|
-
e || (process.env.NODE_ENV !== "production" ?
|
|
7131
|
+
e || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot release lock when there is no lock") : w()), e = null;
|
|
7132
7132
|
}
|
|
7133
7133
|
function o() {
|
|
7134
7134
|
e && (e.abandon(), a());
|
|
@@ -7173,7 +7173,7 @@ function Gh(e) {
|
|
|
7173
7173
|
i.preventDefault(), u.actions.move(d);
|
|
7174
7174
|
return;
|
|
7175
7175
|
}
|
|
7176
|
-
u.type !== "PENDING" && (process.env.NODE_ENV !== "production" ?
|
|
7176
|
+
u.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot be IDLE") : w());
|
|
7177
7177
|
var f = u.point;
|
|
7178
7178
|
if ($h(f, d)) {
|
|
7179
7179
|
i.preventDefault();
|
|
@@ -7232,7 +7232,7 @@ function Gh(e) {
|
|
|
7232
7232
|
eventName: "webkitmouseforcedown",
|
|
7233
7233
|
fn: function(i) {
|
|
7234
7234
|
var l = n();
|
|
7235
|
-
if (l.type === "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
7235
|
+
if (l.type === "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Unexpected phase") : w()), l.actions.shouldRespectForcePress()) {
|
|
7236
7236
|
t();
|
|
7237
7237
|
return;
|
|
7238
7238
|
}
|
|
@@ -7309,7 +7309,7 @@ function Wh(e) {
|
|
|
7309
7309
|
});
|
|
7310
7310
|
r.current = Ye(window, f, u);
|
|
7311
7311
|
}, [l, i]), p = X(function(u, f) {
|
|
7312
|
-
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
7312
|
+
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected to move from IDLE to PENDING drag") : w()), t.current = {
|
|
7313
7313
|
type: "PENDING",
|
|
7314
7314
|
point: f,
|
|
7315
7315
|
actions: u
|
|
@@ -7410,7 +7410,7 @@ function qh(e) {
|
|
|
7410
7410
|
var c = !0, p = l.snapLift();
|
|
7411
7411
|
t.current();
|
|
7412
7412
|
function d() {
|
|
7413
|
-
c || (process.env.NODE_ENV !== "production" ?
|
|
7413
|
+
c || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot stop capturing a keyboard drag when not capturing") : w()), c = !1, t.current(), n();
|
|
7414
7414
|
}
|
|
7415
7415
|
t.current = Ye(window, zh(p, d), {
|
|
7416
7416
|
capture: !0,
|
|
@@ -7506,7 +7506,7 @@ function Jh(e) {
|
|
|
7506
7506
|
eventName: "touchforcechange",
|
|
7507
7507
|
fn: function(o) {
|
|
7508
7508
|
var i = n();
|
|
7509
|
-
i.type === "IDLE" && (process.env.NODE_ENV,
|
|
7509
|
+
i.type === "IDLE" && (process.env.NODE_ENV, w());
|
|
7510
7510
|
var l = o.touches[0];
|
|
7511
7511
|
if (l) {
|
|
7512
7512
|
var c = l.force >= Kh;
|
|
@@ -7549,11 +7549,11 @@ function Qh(e) {
|
|
|
7549
7549
|
sourceEvent: g
|
|
7550
7550
|
});
|
|
7551
7551
|
if (b) {
|
|
7552
|
-
var h = g.touches[0], m = h.clientX, x = h.clientY,
|
|
7552
|
+
var h = g.touches[0], m = h.clientX, x = h.clientY, D = {
|
|
7553
7553
|
x: m,
|
|
7554
7554
|
y: x
|
|
7555
7555
|
};
|
|
7556
|
-
r.current(), u(b,
|
|
7556
|
+
r.current(), u(b, D);
|
|
7557
7557
|
}
|
|
7558
7558
|
}
|
|
7559
7559
|
}
|
|
@@ -7587,7 +7587,7 @@ function Qh(e) {
|
|
|
7587
7587
|
};
|
|
7588
7588
|
}, [c, n, l]), d = X(function() {
|
|
7589
7589
|
var g = n();
|
|
7590
|
-
g.type !== "PENDING" && (process.env.NODE_ENV !== "production" ?
|
|
7590
|
+
g.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start dragging from phase " + g.type) : w());
|
|
7591
7591
|
var v = g.actions.fluidLift(g.point);
|
|
7592
7592
|
a({
|
|
7593
7593
|
type: "DRAGGING",
|
|
@@ -7595,7 +7595,7 @@ function Qh(e) {
|
|
|
7595
7595
|
hasMoved: !1
|
|
7596
7596
|
});
|
|
7597
7597
|
}, [n, a]), u = X(function(g, v) {
|
|
7598
|
-
n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ?
|
|
7598
|
+
n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected to move from IDLE to PENDING drag") : w());
|
|
7599
7599
|
var b = setTimeout(d, Yh);
|
|
7600
7600
|
a({
|
|
7601
7601
|
type: "PENDING",
|
|
@@ -7627,7 +7627,7 @@ function Zh(e) {
|
|
|
7627
7627
|
oo(function() {
|
|
7628
7628
|
var t = io(e);
|
|
7629
7629
|
Mr(function() {
|
|
7630
|
-
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ?
|
|
7630
|
+
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot change the amount of sensor hooks after mounting") : w(!1));
|
|
7631
7631
|
});
|
|
7632
7632
|
});
|
|
7633
7633
|
}
|
|
@@ -7748,20 +7748,20 @@ function ub(e) {
|
|
|
7748
7748
|
function v() {
|
|
7749
7749
|
return t.isActive(u);
|
|
7750
7750
|
}
|
|
7751
|
-
function b(S,
|
|
7751
|
+
function b(S, I) {
|
|
7752
7752
|
Ur({
|
|
7753
7753
|
expected: S,
|
|
7754
7754
|
phase: f,
|
|
7755
7755
|
isLockActive: v,
|
|
7756
7756
|
shouldWarn: !0
|
|
7757
|
-
}) && n.dispatch(
|
|
7757
|
+
}) && n.dispatch(I());
|
|
7758
7758
|
}
|
|
7759
7759
|
var h = b.bind(null, "DRAGGING");
|
|
7760
7760
|
function m(S) {
|
|
7761
|
-
function
|
|
7761
|
+
function I() {
|
|
7762
7762
|
t.release(), f = "COMPLETED";
|
|
7763
7763
|
}
|
|
7764
|
-
f !== "PRE_DRAG" && (
|
|
7764
|
+
f !== "PRE_DRAG" && (I(), f !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot lift in phase " + f) : w())), n.dispatch(Xv(S.liftActionArgs)), f = "DRAGGING";
|
|
7765
7765
|
function O(E, P) {
|
|
7766
7766
|
if (P === void 0 && (P = {
|
|
7767
7767
|
shouldBlockNextClick: !1
|
|
@@ -7777,7 +7777,7 @@ function ub(e) {
|
|
|
7777
7777
|
}]);
|
|
7778
7778
|
setTimeout(k);
|
|
7779
7779
|
}
|
|
7780
|
-
|
|
7780
|
+
I(), n.dispatch(Pl({
|
|
7781
7781
|
reason: E
|
|
7782
7782
|
}));
|
|
7783
7783
|
}
|
|
@@ -7800,7 +7800,7 @@ function ub(e) {
|
|
|
7800
7800
|
}, S.actions);
|
|
7801
7801
|
}
|
|
7802
7802
|
function x(S) {
|
|
7803
|
-
var
|
|
7803
|
+
var I = Dr(function(E) {
|
|
7804
7804
|
h(function() {
|
|
7805
7805
|
return _l({
|
|
7806
7806
|
client: E
|
|
@@ -7813,17 +7813,17 @@ function ub(e) {
|
|
|
7813
7813
|
movementMode: "FLUID"
|
|
7814
7814
|
},
|
|
7815
7815
|
cleanup: function() {
|
|
7816
|
-
return
|
|
7816
|
+
return I.cancel();
|
|
7817
7817
|
},
|
|
7818
7818
|
actions: {
|
|
7819
|
-
move:
|
|
7819
|
+
move: I
|
|
7820
7820
|
}
|
|
7821
7821
|
});
|
|
7822
7822
|
return ee({}, O, {
|
|
7823
|
-
move:
|
|
7823
|
+
move: I
|
|
7824
7824
|
});
|
|
7825
7825
|
}
|
|
7826
|
-
function
|
|
7826
|
+
function D() {
|
|
7827
7827
|
var S = {
|
|
7828
7828
|
moveUp: function() {
|
|
7829
7829
|
return h(om);
|
|
@@ -7848,7 +7848,7 @@ function ub(e) {
|
|
|
7848
7848
|
actions: S
|
|
7849
7849
|
});
|
|
7850
7850
|
}
|
|
7851
|
-
function
|
|
7851
|
+
function N() {
|
|
7852
7852
|
var S = Ur({
|
|
7853
7853
|
expected: "PRE_DRAG",
|
|
7854
7854
|
phase: f,
|
|
@@ -7868,8 +7868,8 @@ function ub(e) {
|
|
|
7868
7868
|
},
|
|
7869
7869
|
shouldRespectForcePress: g,
|
|
7870
7870
|
fluidLift: x,
|
|
7871
|
-
snapLift:
|
|
7872
|
-
abort:
|
|
7871
|
+
snapLift: D,
|
|
7872
|
+
abort: N
|
|
7873
7873
|
};
|
|
7874
7874
|
return y;
|
|
7875
7875
|
}
|
|
@@ -7877,15 +7877,15 @@ var pb = [Wh, qh, Qh];
|
|
|
7877
7877
|
function fb(e) {
|
|
7878
7878
|
var t = e.contextId, r = e.store, n = e.registry, a = e.customSensors, o = e.enableDefaultSensors, i = [].concat(o ? pb : [], a || []), l = L(function() {
|
|
7879
7879
|
return Oh();
|
|
7880
|
-
})[0], c = X(function(x,
|
|
7881
|
-
x.isDragging && !
|
|
7880
|
+
})[0], c = X(function(x, D) {
|
|
7881
|
+
x.isDragging && !D.isDragging && l.tryAbandon();
|
|
7882
7882
|
}, [l]);
|
|
7883
7883
|
Ue(function() {
|
|
7884
|
-
var x = r.getState(),
|
|
7885
|
-
var
|
|
7886
|
-
c(x,
|
|
7884
|
+
var x = r.getState(), D = r.subscribe(function() {
|
|
7885
|
+
var N = r.getState();
|
|
7886
|
+
c(x, N), x = N;
|
|
7887
7887
|
});
|
|
7888
|
-
return
|
|
7888
|
+
return D;
|
|
7889
7889
|
}, [l, r, c]), Ue(function() {
|
|
7890
7890
|
return l.tryAbandon;
|
|
7891
7891
|
}, [l.tryAbandon]);
|
|
@@ -7896,7 +7896,7 @@ function fb(e) {
|
|
|
7896
7896
|
store: r,
|
|
7897
7897
|
draggableId: m
|
|
7898
7898
|
});
|
|
7899
|
-
}, [l, n, r]), d = X(function(m, x,
|
|
7899
|
+
}, [l, n, r]), d = X(function(m, x, D) {
|
|
7900
7900
|
return ub({
|
|
7901
7901
|
lockAPI: l,
|
|
7902
7902
|
registry: n,
|
|
@@ -7904,7 +7904,7 @@ function fb(e) {
|
|
|
7904
7904
|
store: r,
|
|
7905
7905
|
draggableId: m,
|
|
7906
7906
|
forceSensorStop: x,
|
|
7907
|
-
sourceEvent:
|
|
7907
|
+
sourceEvent: D && D.sourceEvent ? D.sourceEvent : null
|
|
7908
7908
|
});
|
|
7909
7909
|
}, [t, l, n, r]), u = X(function(m) {
|
|
7910
7910
|
return lb(t, m);
|
|
@@ -7937,7 +7937,7 @@ var gb = function(t) {
|
|
|
7937
7937
|
};
|
|
7938
7938
|
};
|
|
7939
7939
|
function ur(e) {
|
|
7940
|
-
return e.current || (process.env.NODE_ENV !== "production" ?
|
|
7940
|
+
return e.current || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find store from lazy ref") : w()), e.current;
|
|
7941
7941
|
}
|
|
7942
7942
|
function vb(e) {
|
|
7943
7943
|
var t = e.contextId, r = e.setCallbacks, n = e.sensors, a = e.nonce, o = e.dragHandleUsageInstructions, i = Z(null);
|
|
@@ -7977,22 +7977,22 @@ function vb(e) {
|
|
|
7977
7977
|
});
|
|
7978
7978
|
}, [p, h, b, m, c, u]);
|
|
7979
7979
|
process.env.NODE_ENV !== "production" && i.current && i.current !== x && process.env.NODE_ENV !== "production" && we("unexpected store change"), i.current = x;
|
|
7980
|
-
var
|
|
7980
|
+
var D = X(function() {
|
|
7981
7981
|
var E = ur(i), P = E.getState();
|
|
7982
7982
|
P.phase !== "IDLE" && E.dispatch(Ka());
|
|
7983
|
-
}, []),
|
|
7983
|
+
}, []), N = X(function() {
|
|
7984
7984
|
var E = ur(i).getState();
|
|
7985
7985
|
return E.isDragging || E.phase === "DROP_ANIMATING";
|
|
7986
7986
|
}, []), y = ge(function() {
|
|
7987
7987
|
return {
|
|
7988
|
-
isDragging:
|
|
7989
|
-
tryAbort:
|
|
7988
|
+
isDragging: N,
|
|
7989
|
+
tryAbort: D
|
|
7990
7990
|
};
|
|
7991
|
-
}, [
|
|
7991
|
+
}, [N, D]);
|
|
7992
7992
|
r(y);
|
|
7993
7993
|
var S = X(function(E) {
|
|
7994
7994
|
return Ll(ur(i).getState(), E);
|
|
7995
|
-
}, []),
|
|
7995
|
+
}, []), I = X(function() {
|
|
7996
7996
|
return Bt(ur(i).getState());
|
|
7997
7997
|
}, []), O = ge(function() {
|
|
7998
7998
|
return {
|
|
@@ -8000,11 +8000,11 @@ function vb(e) {
|
|
|
8000
8000
|
focus: m,
|
|
8001
8001
|
contextId: t,
|
|
8002
8002
|
canLift: S,
|
|
8003
|
-
isMovementAllowed:
|
|
8003
|
+
isMovementAllowed: I,
|
|
8004
8004
|
dragHandleUsageInstructionsId: d,
|
|
8005
8005
|
registry: v
|
|
8006
8006
|
};
|
|
8007
|
-
}, [t, b, d, m, S,
|
|
8007
|
+
}, [t, b, d, m, S, I, v]);
|
|
8008
8008
|
return fb({
|
|
8009
8009
|
contextId: t,
|
|
8010
8010
|
store: x,
|
|
@@ -8012,8 +8012,8 @@ function vb(e) {
|
|
|
8012
8012
|
customSensors: n,
|
|
8013
8013
|
enableDefaultSensors: e.enableDefaultSensors !== !1
|
|
8014
8014
|
}), W(function() {
|
|
8015
|
-
return
|
|
8016
|
-
}, [
|
|
8015
|
+
return D;
|
|
8016
|
+
}, [D]), ie.createElement(wn.Provider, {
|
|
8017
8017
|
value: O
|
|
8018
8018
|
}, ie.createElement(Xs, {
|
|
8019
8019
|
context: no,
|
|
@@ -8062,7 +8062,7 @@ var lo = function(t) {
|
|
|
8062
8062
|
if (process.env.NODE_ENV === "production")
|
|
8063
8063
|
return !1;
|
|
8064
8064
|
var t = jr(), r = document.documentElement;
|
|
8065
|
-
if (r || (process.env.NODE_ENV,
|
|
8065
|
+
if (r || (process.env.NODE_ENV, w()), !Xl(t))
|
|
8066
8066
|
return !1;
|
|
8067
8067
|
var n = window.getComputedStyle(r), a = {
|
|
8068
8068
|
overflowX: n.overflowX,
|
|
@@ -8200,7 +8200,7 @@ var lo = function(t) {
|
|
|
8200
8200
|
};
|
|
8201
8201
|
function dn(e) {
|
|
8202
8202
|
var t = q(e);
|
|
8203
|
-
return t || (process.env.NODE_ENV !== "production" ?
|
|
8203
|
+
return t || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find required context") : w()), t;
|
|
8204
8204
|
}
|
|
8205
8205
|
var Hr = function(t) {
|
|
8206
8206
|
return t && t.env.closestScrollable || null;
|
|
@@ -8213,47 +8213,47 @@ function Tb(e) {
|
|
|
8213
8213
|
mode: e.mode
|
|
8214
8214
|
};
|
|
8215
8215
|
}, [e.droppableId, e.mode, e.type]), c = Z(l), p = ge(function() {
|
|
8216
|
-
return Ae(function(
|
|
8217
|
-
t.current || (process.env.NODE_ENV !== "production" ?
|
|
8216
|
+
return Ae(function(N, y) {
|
|
8217
|
+
t.current || (process.env.NODE_ENV !== "production" ? w(!1, "Can only update scroll when dragging") : w());
|
|
8218
8218
|
var S = {
|
|
8219
|
-
x:
|
|
8219
|
+
x: N,
|
|
8220
8220
|
y
|
|
8221
8221
|
};
|
|
8222
8222
|
o.updateDroppableScroll(l.id, S);
|
|
8223
8223
|
});
|
|
8224
8224
|
}, [l.id, o]), d = X(function() {
|
|
8225
|
-
var
|
|
8226
|
-
return !
|
|
8225
|
+
var N = t.current;
|
|
8226
|
+
return !N || !N.env.closestScrollable ? Re : pa(N.env.closestScrollable);
|
|
8227
8227
|
}, []), u = X(function() {
|
|
8228
|
-
var
|
|
8229
|
-
p(
|
|
8228
|
+
var N = d();
|
|
8229
|
+
p(N.x, N.y);
|
|
8230
8230
|
}, [d, p]), f = ge(function() {
|
|
8231
8231
|
return Dr(u);
|
|
8232
8232
|
}, [u]), g = X(function() {
|
|
8233
|
-
var
|
|
8234
|
-
|
|
8235
|
-
var S =
|
|
8233
|
+
var N = t.current, y = Hr(N);
|
|
8234
|
+
N && y || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find scroll options while scrolling") : w());
|
|
8235
|
+
var S = N.scrollOptions;
|
|
8236
8236
|
if (S.shouldPublishImmediately) {
|
|
8237
8237
|
u();
|
|
8238
8238
|
return;
|
|
8239
8239
|
}
|
|
8240
8240
|
f();
|
|
8241
|
-
}, [f, u]), v = X(function(
|
|
8242
|
-
t.current && (process.env.NODE_ENV !== "production" ?
|
|
8243
|
-
var S = i.current,
|
|
8244
|
-
|
|
8245
|
-
var O = Eb(
|
|
8246
|
-
ref:
|
|
8241
|
+
}, [f, u]), v = X(function(N, y) {
|
|
8242
|
+
t.current && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect a droppable while a drag is occurring") : w());
|
|
8243
|
+
var S = i.current, I = S.getDroppableRef();
|
|
8244
|
+
I || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect without a droppable ref") : w());
|
|
8245
|
+
var O = Eb(I), E = {
|
|
8246
|
+
ref: I,
|
|
8247
8247
|
descriptor: l,
|
|
8248
8248
|
env: O,
|
|
8249
8249
|
scrollOptions: y
|
|
8250
8250
|
};
|
|
8251
8251
|
t.current = E;
|
|
8252
8252
|
var P = Ob({
|
|
8253
|
-
ref:
|
|
8253
|
+
ref: I,
|
|
8254
8254
|
descriptor: l,
|
|
8255
8255
|
env: O,
|
|
8256
|
-
windowScroll:
|
|
8256
|
+
windowScroll: N,
|
|
8257
8257
|
direction: S.direction,
|
|
8258
8258
|
isDropDisabled: S.isDropDisabled,
|
|
8259
8259
|
isCombineEnabled: S.isCombineEnabled,
|
|
@@ -8261,18 +8261,18 @@ function Tb(e) {
|
|
|
8261
8261
|
}), k = O.closestScrollable;
|
|
8262
8262
|
return k && (k.setAttribute(Oi.contextId, r.contextId), k.addEventListener("scroll", g, ki(E.scrollOptions)), process.env.NODE_ENV !== "production" && Sb(k)), P;
|
|
8263
8263
|
}, [r.contextId, l, g, i]), b = X(function() {
|
|
8264
|
-
var
|
|
8265
|
-
return
|
|
8264
|
+
var N = t.current, y = Hr(N);
|
|
8265
|
+
return N && y || (process.env.NODE_ENV !== "production" ? w(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : w()), pa(y);
|
|
8266
8266
|
}, []), h = X(function() {
|
|
8267
|
-
var
|
|
8268
|
-
|
|
8269
|
-
var y = Hr(
|
|
8270
|
-
t.current = null, y && (f.cancel(), y.removeAttribute(Oi.contextId), y.removeEventListener("scroll", g, ki(
|
|
8271
|
-
}, [g, f]), m = X(function(
|
|
8267
|
+
var N = t.current;
|
|
8268
|
+
N || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot stop drag when no active drag") : w());
|
|
8269
|
+
var y = Hr(N);
|
|
8270
|
+
t.current = null, y && (f.cancel(), y.removeAttribute(Oi.contextId), y.removeEventListener("scroll", g, ki(N.scrollOptions)));
|
|
8271
|
+
}, [g, f]), m = X(function(N) {
|
|
8272
8272
|
var y = t.current;
|
|
8273
|
-
y || (process.env.NODE_ENV !== "production" ?
|
|
8273
|
+
y || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot scroll when there is no drag") : w());
|
|
8274
8274
|
var S = Hr(y);
|
|
8275
|
-
S || (process.env.NODE_ENV !== "production" ?
|
|
8275
|
+
S || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot scroll a droppable with no closest scrollable") : w()), S.scrollTop += N.y, S.scrollLeft += N.x;
|
|
8276
8276
|
}, []), x = ge(function() {
|
|
8277
8277
|
return {
|
|
8278
8278
|
getDimensionAndWatchScroll: v,
|
|
@@ -8280,7 +8280,7 @@ function Tb(e) {
|
|
|
8280
8280
|
dragStopped: h,
|
|
8281
8281
|
scroll: m
|
|
8282
8282
|
};
|
|
8283
|
-
}, [h, v, b, m]),
|
|
8283
|
+
}, [h, v, b, m]), D = ge(function() {
|
|
8284
8284
|
return {
|
|
8285
8285
|
uniqueId: n,
|
|
8286
8286
|
descriptor: l,
|
|
@@ -8288,10 +8288,10 @@ function Tb(e) {
|
|
|
8288
8288
|
};
|
|
8289
8289
|
}, [x, l, n]);
|
|
8290
8290
|
Ue(function() {
|
|
8291
|
-
return c.current =
|
|
8292
|
-
t.current && (process.env.NODE_ENV !== "production" && we("Unsupported: changing the droppableId or type of a Droppable during a drag"), h()), a.droppable.unregister(
|
|
8291
|
+
return c.current = D.descriptor, a.droppable.register(D), function() {
|
|
8292
|
+
t.current && (process.env.NODE_ENV !== "production" && we("Unsupported: changing the droppableId or type of a Droppable during a drag"), h()), a.droppable.unregister(D);
|
|
8293
8293
|
};
|
|
8294
|
-
}, [x, l, h,
|
|
8294
|
+
}, [x, l, h, D, o, a.droppable]), Ue(function() {
|
|
8295
8295
|
t.current && o.updateDroppableIsEnabled(c.current.id, !e.isDropDisabled);
|
|
8296
8296
|
}, [e.isDropDisabled, o]), Ue(function() {
|
|
8297
8297
|
t.current && o.updateDroppableIsCombineEnabled(c.current.id, e.isCombineEnabled);
|
|
@@ -8356,12 +8356,12 @@ function kb(e) {
|
|
|
8356
8356
|
}
|
|
8357
8357
|
var Bb = ie.memo(kb), co = ie.createContext(null);
|
|
8358
8358
|
function Ql(e) {
|
|
8359
|
-
e && Br(e) || (process.env.NODE_ENV !== "production" ?
|
|
8359
|
+
e && Br(e) || (process.env.NODE_ENV !== "production" ? w(!1, `
|
|
8360
8360
|
provided.innerRef has not been provided with a HTMLElement.
|
|
8361
8361
|
|
|
8362
8362
|
You can find a guide on using the innerRef callback functions at:
|
|
8363
8363
|
https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md
|
|
8364
|
-
`) :
|
|
8364
|
+
`) : w());
|
|
8365
8365
|
}
|
|
8366
8366
|
function Yn(e) {
|
|
8367
8367
|
return typeof e == "boolean";
|
|
@@ -8373,10 +8373,10 @@ function Kn(e, t) {
|
|
|
8373
8373
|
}
|
|
8374
8374
|
var Mb = [function(t) {
|
|
8375
8375
|
var r = t.props;
|
|
8376
|
-
r.droppableId || (process.env.NODE_ENV !== "production" ?
|
|
8376
|
+
r.droppableId || (process.env.NODE_ENV !== "production" ? w(!1, "A Droppable requires a droppableId prop") : w()), typeof r.droppableId != "string" && (process.env.NODE_ENV !== "production" ? w(!1, "A Droppable requires a [string] droppableId. Provided: [" + typeof r.droppableId + "]") : w());
|
|
8377
8377
|
}, function(t) {
|
|
8378
8378
|
var r = t.props;
|
|
8379
|
-
Yn(r.isDropDisabled) || (process.env.NODE_ENV !== "production" ?
|
|
8379
|
+
Yn(r.isDropDisabled) || (process.env.NODE_ENV !== "production" ? w(!1, "isDropDisabled must be a boolean") : w()), Yn(r.isCombineEnabled) || (process.env.NODE_ENV !== "production" ? w(!1, "isCombineEnabled must be a boolean") : w()), Yn(r.ignoreContainerClipping) || (process.env.NODE_ENV !== "production" ? w(!1, "ignoreContainerClipping must be a boolean") : w());
|
|
8380
8380
|
}, function(t) {
|
|
8381
8381
|
var r = t.getDroppableRef;
|
|
8382
8382
|
Ql(r());
|
|
@@ -8394,10 +8394,10 @@ var Mb = [function(t) {
|
|
|
8394
8394
|
}
|
|
8395
8395
|
}], Fb = [function(t) {
|
|
8396
8396
|
var r = t.props;
|
|
8397
|
-
r.renderClone || (process.env.NODE_ENV !== "production" ?
|
|
8397
|
+
r.renderClone || (process.env.NODE_ENV !== "production" ? w(!1, "Must provide a clone render function (renderClone) for virtual lists") : w());
|
|
8398
8398
|
}, function(t) {
|
|
8399
8399
|
var r = t.getPlaceholderRef;
|
|
8400
|
-
r() && (process.env.NODE_ENV !== "production" ?
|
|
8400
|
+
r() && (process.env.NODE_ENV !== "production" ? w(!1, "Expected virtual list to not have a placeholder") : w());
|
|
8401
8401
|
}];
|
|
8402
8402
|
function Vb(e) {
|
|
8403
8403
|
Mr(function() {
|
|
@@ -8511,7 +8511,7 @@ function Kb(e) {
|
|
|
8511
8511
|
};
|
|
8512
8512
|
}, [o, l, i]), p = X(function(g) {
|
|
8513
8513
|
var v = a();
|
|
8514
|
-
return v || (process.env.NODE_ENV !== "production" ?
|
|
8514
|
+
return v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot get dimension when no ref is set") : w()), Yb(r, v, g);
|
|
8515
8515
|
}, [r, a]), d = ge(function() {
|
|
8516
8516
|
return {
|
|
8517
8517
|
uniqueId: t,
|
|
@@ -8539,15 +8539,15 @@ function Xb(e, t, r) {
|
|
|
8539
8539
|
return "Draggable[id: " + o + "]: ";
|
|
8540
8540
|
}
|
|
8541
8541
|
var a = e.draggableId;
|
|
8542
|
-
a || (process.env.NODE_ENV !== "production" ?
|
|
8543
|
-
Provided: [type: ` + typeof a + "] (value: " + a + ")") :
|
|
8542
|
+
a || (process.env.NODE_ENV !== "production" ? w(!1, "Draggable requires a draggableId") : w(!1)), typeof a != "string" && (process.env.NODE_ENV !== "production" ? w(!1, `Draggable requires a [string] draggableId.
|
|
8543
|
+
Provided: [type: ` + typeof a + "] (value: " + a + ")") : w(!1)), Kg(e.index) || (process.env.NODE_ENV !== "production" ? w(!1, n(a) + " requires an integer index prop") : w(!1)), e.mapped.type !== "DRAGGING" && (Ql(r()), e.isEnabled && (Wl(t, a) || (process.env.NODE_ENV !== "production" ? w(!1, n(a) + " Unable to find drag handle") : w(!1))));
|
|
8544
8544
|
});
|
|
8545
8545
|
}
|
|
8546
8546
|
function Jb(e) {
|
|
8547
8547
|
oo(function() {
|
|
8548
8548
|
var t = Z(e);
|
|
8549
8549
|
Mr(function() {
|
|
8550
|
-
e !== t.current && (process.env.NODE_ENV !== "production" ?
|
|
8550
|
+
e !== t.current && (process.env.NODE_ENV !== "production" ? w(!1, "Draggable isClone prop value changed during component life") : w(!1));
|
|
8551
8551
|
}, [e]);
|
|
8552
8552
|
});
|
|
8553
8553
|
}
|
|
@@ -8566,9 +8566,9 @@ function Zb(e) {
|
|
|
8566
8566
|
type: p,
|
|
8567
8567
|
droppableId: d
|
|
8568
8568
|
};
|
|
8569
|
-
}, [e.draggableId, e.index, p, d]), f = e.children, g = e.draggableId, v = e.isEnabled, b = e.shouldRespectForcePress, h = e.canDragInteractiveElements, m = e.isClone, x = e.mapped,
|
|
8569
|
+
}, [e.draggableId, e.index, p, d]), f = e.children, g = e.draggableId, v = e.isEnabled, b = e.shouldRespectForcePress, h = e.canDragInteractiveElements, m = e.isClone, x = e.mapped, D = e.dropAnimationFinished;
|
|
8570
8570
|
if (Xb(e, o, n), Jb(m), !m) {
|
|
8571
|
-
var
|
|
8571
|
+
var N = ge(function() {
|
|
8572
8572
|
return {
|
|
8573
8573
|
descriptor: u,
|
|
8574
8574
|
registry: l,
|
|
@@ -8578,7 +8578,7 @@ function Zb(e) {
|
|
|
8578
8578
|
isEnabled: v
|
|
8579
8579
|
};
|
|
8580
8580
|
}, [u, l, n, h, b, v]);
|
|
8581
|
-
Kb(
|
|
8581
|
+
Kb(N);
|
|
8582
8582
|
}
|
|
8583
8583
|
var y = ge(function() {
|
|
8584
8584
|
return v ? {
|
|
@@ -8591,8 +8591,8 @@ function Zb(e) {
|
|
|
8591
8591
|
onDragStart: Qb
|
|
8592
8592
|
} : null;
|
|
8593
8593
|
}, [o, i, g, v]), S = X(function(E) {
|
|
8594
|
-
x.type === "DRAGGING" && x.dropping && E.propertyName === "transform" &&
|
|
8595
|
-
}, [
|
|
8594
|
+
x.type === "DRAGGING" && x.dropping && E.propertyName === "transform" && D();
|
|
8595
|
+
}, [D, x]), I = ge(function() {
|
|
8596
8596
|
var E = qb(x), P = x.type === "DRAGGING" && x.dropping ? S : null, k = {
|
|
8597
8597
|
innerRef: r,
|
|
8598
8598
|
draggableProps: {
|
|
@@ -8614,7 +8614,7 @@ function Zb(e) {
|
|
|
8614
8614
|
}
|
|
8615
8615
|
};
|
|
8616
8616
|
}, [u.droppableId, u.id, u.index, u.type]);
|
|
8617
|
-
return f(
|
|
8617
|
+
return f(I, x.snapshot, O);
|
|
8618
8618
|
}
|
|
8619
8619
|
var Zl = function(e, t) {
|
|
8620
8620
|
return e === t;
|
|
@@ -8668,8 +8668,8 @@ function rx() {
|
|
|
8668
8668
|
var f = o.completed;
|
|
8669
8669
|
if (f.result.draggableId !== i.draggableId)
|
|
8670
8670
|
return null;
|
|
8671
|
-
var g = i.isClone, v = o.dimensions.draggables[i.draggableId], b = f.result, h = b.mode, m = ec(b), x = ex(b),
|
|
8672
|
-
duration:
|
|
8671
|
+
var g = i.isClone, v = o.dimensions.draggables[i.draggableId], b = f.result, h = b.mode, m = ec(b), x = ex(b), D = o.dropDuration, N = {
|
|
8672
|
+
duration: D,
|
|
8673
8673
|
curve: Ja.drop,
|
|
8674
8674
|
moveTo: o.newHomeClientOffset,
|
|
8675
8675
|
opacity: x ? Ir.opacity.drop : null,
|
|
@@ -8680,12 +8680,12 @@ function rx() {
|
|
|
8680
8680
|
type: "DRAGGING",
|
|
8681
8681
|
offset: o.newHomeClientOffset,
|
|
8682
8682
|
dimension: v,
|
|
8683
|
-
dropping:
|
|
8683
|
+
dropping: N,
|
|
8684
8684
|
draggingOver: m,
|
|
8685
8685
|
combineWith: x,
|
|
8686
8686
|
mode: h,
|
|
8687
8687
|
forceShouldAnimate: null,
|
|
8688
|
-
snapshot: t(h, g, m, x,
|
|
8688
|
+
snapshot: t(h, g, m, x, N)
|
|
8689
8689
|
}
|
|
8690
8690
|
};
|
|
8691
8691
|
}
|
|
@@ -8784,12 +8784,12 @@ function lx(e) {
|
|
|
8784
8784
|
}
|
|
8785
8785
|
function cx(e) {
|
|
8786
8786
|
var t = q(wn);
|
|
8787
|
-
t || (process.env.NODE_ENV !== "production" ?
|
|
8787
|
+
t || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find app context") : w());
|
|
8788
8788
|
var r = t.contextId, n = t.isMovementAllowed, a = Z(null), o = Z(null), i = e.children, l = e.droppableId, c = e.type, p = e.mode, d = e.direction, u = e.ignoreContainerClipping, f = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot, b = e.useClone, h = e.updateViewportMaxScroll, m = e.getContainerForClone, x = X(function() {
|
|
8789
8789
|
return a.current;
|
|
8790
|
-
}, []),
|
|
8790
|
+
}, []), D = X(function(M) {
|
|
8791
8791
|
a.current = M;
|
|
8792
|
-
}, []),
|
|
8792
|
+
}, []), N = X(function() {
|
|
8793
8793
|
return o.current;
|
|
8794
8794
|
}, []), y = X(function(M) {
|
|
8795
8795
|
o.current = M;
|
|
@@ -8797,7 +8797,7 @@ function cx(e) {
|
|
|
8797
8797
|
Vb({
|
|
8798
8798
|
props: e,
|
|
8799
8799
|
getDroppableRef: x,
|
|
8800
|
-
getPlaceholderRef:
|
|
8800
|
+
getPlaceholderRef: N
|
|
8801
8801
|
});
|
|
8802
8802
|
var S = X(function() {
|
|
8803
8803
|
n() && h({
|
|
@@ -8814,7 +8814,7 @@ function cx(e) {
|
|
|
8814
8814
|
ignoreContainerClipping: u,
|
|
8815
8815
|
getDroppableRef: x
|
|
8816
8816
|
});
|
|
8817
|
-
var
|
|
8817
|
+
var I = ie.createElement($b, {
|
|
8818
8818
|
on: e.placeholder,
|
|
8819
8819
|
shouldAnimate: e.shouldAnimatePlaceholder
|
|
8820
8820
|
}, function(M) {
|
|
@@ -8829,14 +8829,14 @@ function cx(e) {
|
|
|
8829
8829
|
});
|
|
8830
8830
|
}), O = ge(function() {
|
|
8831
8831
|
return {
|
|
8832
|
-
innerRef:
|
|
8833
|
-
placeholder:
|
|
8832
|
+
innerRef: D,
|
|
8833
|
+
placeholder: I,
|
|
8834
8834
|
droppableProps: {
|
|
8835
8835
|
"data-rbd-droppable-id": l,
|
|
8836
8836
|
"data-rbd-droppable-context-id": r
|
|
8837
8837
|
}
|
|
8838
8838
|
};
|
|
8839
|
-
}, [r, l,
|
|
8839
|
+
}, [r, l, I, D]), E = b ? b.dragging.draggableId : null, P = ge(function() {
|
|
8840
8840
|
return {
|
|
8841
8841
|
droppableId: l,
|
|
8842
8842
|
type: c,
|
|
@@ -8943,8 +8943,8 @@ var Xn = function(t, r) {
|
|
|
8943
8943
|
var x = l.completed;
|
|
8944
8944
|
if (!Xn(d, x.critical))
|
|
8945
8945
|
return r;
|
|
8946
|
-
var
|
|
8947
|
-
return
|
|
8946
|
+
var D = We(x.impact) === p, N = !!(x.impact.at && x.impact.at.type === "COMBINE"), y = x.critical.droppable.id === p;
|
|
8947
|
+
return D ? N ? t : r : y ? t : r;
|
|
8948
8948
|
}
|
|
8949
8949
|
return r;
|
|
8950
8950
|
};
|
|
@@ -8953,7 +8953,7 @@ var Xn = function(t, r) {
|
|
|
8953
8953
|
updateViewportMaxScroll: am
|
|
8954
8954
|
};
|
|
8955
8955
|
function px() {
|
|
8956
|
-
return document.body || (process.env.NODE_ENV !== "production" ?
|
|
8956
|
+
return document.body || (process.env.NODE_ENV !== "production" ? w(!1, "document.body is not ready") : w()), document.body;
|
|
8957
8957
|
}
|
|
8958
8958
|
var fx = {
|
|
8959
8959
|
mode: "standard",
|
|
@@ -9120,7 +9120,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9120
9120
|
W(() => {
|
|
9121
9121
|
b(r);
|
|
9122
9122
|
}, [r]);
|
|
9123
|
-
const [h, m] = L(n), x = v.at(h),
|
|
9123
|
+
const [h, m] = L(n), x = v.at(h), D = h > 0, N = h < v.length - 1;
|
|
9124
9124
|
W(() => {
|
|
9125
9125
|
e && m(n);
|
|
9126
9126
|
}, [n, e]), W(() => {
|
|
@@ -9129,19 +9129,19 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9129
9129
|
const y = T((E) => {
|
|
9130
9130
|
switch (E.key) {
|
|
9131
9131
|
case "ArrowLeft":
|
|
9132
|
-
E.stopPropagation(),
|
|
9132
|
+
E.stopPropagation(), D && m((P) => P - 1);
|
|
9133
9133
|
break;
|
|
9134
9134
|
case "ArrowRight":
|
|
9135
|
-
E.stopPropagation(),
|
|
9135
|
+
E.stopPropagation(), N && m((P) => P + 1);
|
|
9136
9136
|
break;
|
|
9137
9137
|
case "Escape":
|
|
9138
9138
|
E.stopPropagation(), t();
|
|
9139
9139
|
break;
|
|
9140
9140
|
}
|
|
9141
|
-
}, [
|
|
9141
|
+
}, [N, D, t]), S = (E, P) => {
|
|
9142
9142
|
const k = Array.from(v), [M] = k.splice(E, 1);
|
|
9143
9143
|
return k.splice(P, 0, M), k;
|
|
9144
|
-
},
|
|
9144
|
+
}, I = (E) => {
|
|
9145
9145
|
if (!E.destination)
|
|
9146
9146
|
return;
|
|
9147
9147
|
const P = S(E.source.index, E.destination.index);
|
|
@@ -9150,20 +9150,20 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9150
9150
|
Zc(y);
|
|
9151
9151
|
const O = ed({
|
|
9152
9152
|
onSwipedLeft: (E) => {
|
|
9153
|
-
E.velocity > 0.8 &&
|
|
9153
|
+
E.velocity > 0.8 && N && m((P) => P + 1);
|
|
9154
9154
|
},
|
|
9155
9155
|
onSwipedRight: (E) => {
|
|
9156
|
-
E.velocity > 0.8 &&
|
|
9156
|
+
E.velocity > 0.8 && D && m((P) => P - 1);
|
|
9157
9157
|
},
|
|
9158
9158
|
delta: 100
|
|
9159
9159
|
});
|
|
9160
9160
|
return /* @__PURE__ */ s.jsxs(fa, { children: [
|
|
9161
9161
|
/* @__PURE__ */ s.jsx(td, { show: e, onClick: t }),
|
|
9162
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
9162
|
+
/* @__PURE__ */ s.jsx("div", { className: j("luminus-lightbox rounded shadow", Me.lightbox, {
|
|
9163
9163
|
[Me.show]: e
|
|
9164
9164
|
}), ...O, children: e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9165
9165
|
/* @__PURE__ */ s.jsxs("div", { className: Me.header, children: [
|
|
9166
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
9166
|
+
/* @__PURE__ */ s.jsxs("div", { className: j("rounded", Me.photoActions), children: [
|
|
9167
9167
|
i && /* @__PURE__ */ s.jsx(ks, { accept: ".jpg,.jpeg,.png", onUpload: (E) => {
|
|
9168
9168
|
E.length > 0 && i(Array.from(E));
|
|
9169
9169
|
}, icon: /* @__PURE__ */ s.jsx(us, { style: { fontSize: 18 } }), multiple: !0, className: "me-1 me-lg-3", children: a ?? null }),
|
|
@@ -9183,18 +9183,18 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9183
9183
|
] }),
|
|
9184
9184
|
v.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(re, { variant: "body", children: o ?? "No photos available" }) }),
|
|
9185
9185
|
x && /* @__PURE__ */ s.jsxs("div", { className: Me.photoContainer, children: [
|
|
9186
|
-
/* @__PURE__ */ s.jsx("div", { role:
|
|
9187
|
-
/* @__PURE__ */ s.jsx(u, { src: x.lgSrc, alt: x.alt, className:
|
|
9188
|
-
/* @__PURE__ */ s.jsx("div", { role:
|
|
9186
|
+
/* @__PURE__ */ s.jsx("div", { role: D ? "button" : void 0, className: j("align-items-start", Me.navButton, Me.left), onClick: () => D && m((E) => E - 1), children: D && /* @__PURE__ */ s.jsx(ha, { style: { fontSize: "40px" } }) }),
|
|
9187
|
+
/* @__PURE__ */ s.jsx(u, { src: x.lgSrc, alt: x.alt, className: j("rounded", Me.photo), baseUrl: c, customToken: p, placeholder: d, renderAsDivBg: !0 }),
|
|
9188
|
+
/* @__PURE__ */ s.jsx("div", { role: N ? "button" : void 0, className: j("align-items-end", Me.navButton, Me.right), onClick: () => N && m((E) => E + 1), children: N && /* @__PURE__ */ s.jsx(ba, { style: { fontSize: "40px" } }) })
|
|
9189
9189
|
] }),
|
|
9190
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
9190
|
+
/* @__PURE__ */ s.jsx("div", { className: j("d-flex justify-content-center", Me.photosPreviewContainer), children: /* @__PURE__ */ s.jsx(bb, { onDragEnd: I, children: /* @__PURE__ */ s.jsx(Nx, { droppableId: "droppable", direction: "horizontal", children: (E) => /* @__PURE__ */ s.jsxs("div", { ...E.droppableProps, ref: E.innerRef, className: Me.photosPreview, children: [
|
|
9191
9191
|
v.map((P, k) => /* @__PURE__ */ s.jsx(lx, { draggableId: P.id, index: k, isDragDisabled: f === void 0, children: g((M) => {
|
|
9192
9192
|
var C;
|
|
9193
|
-
return /* @__PURE__ */ s.jsxs("div", { ref: M.innerRef, ...M.draggableProps, ...M.dragHandleProps, role: "button", onClick: () => m(k), className:
|
|
9194
|
-
/* @__PURE__ */ s.jsx(u, { role: k !== h ? "button" : void 0, src: P.smSrc, alt: P.alt, className:
|
|
9193
|
+
return /* @__PURE__ */ s.jsxs("div", { ref: M.innerRef, ...M.draggableProps, ...M.dragHandleProps, role: "button", onClick: () => m(k), className: j(Me.lightboxDraggablePhoto), children: [
|
|
9194
|
+
/* @__PURE__ */ s.jsx(u, { role: k !== h ? "button" : void 0, src: P.smSrc, alt: P.alt, className: j("rounded", Me.photo, {
|
|
9195
9195
|
[Me.selected]: k === h
|
|
9196
9196
|
}), baseUrl: c, customToken: p, placeholder: d }, P.id),
|
|
9197
|
-
P.isDefault || P.customIndicators && P.customIndicators.length > 0 ? /* @__PURE__ */ s.jsxs("div", { className:
|
|
9197
|
+
P.isDefault || P.customIndicators && P.customIndicators.length > 0 ? /* @__PURE__ */ s.jsxs("div", { className: j(Me.indicators, "gap-1"), children: [
|
|
9198
9198
|
P.isDefault && /* @__PURE__ */ s.jsx("div", { className: "text-primary", children: /* @__PURE__ */ s.jsx(ad, {}) }),
|
|
9199
9199
|
(C = P.customIndicators) == null ? void 0 : C.map((Q, Y) => (
|
|
9200
9200
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -9228,7 +9228,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9228
9228
|
textShadow: "-2px 2px 4px #696969",
|
|
9229
9229
|
background: "rgba(105,105,105,0.5)"
|
|
9230
9230
|
}, children: /* @__PURE__ */ s.jsx(od, { fontSize: 24 }) })
|
|
9231
|
-
] }) : /* @__PURE__ */ s.jsx(Et, { text: r ?? "", placement: "left", children: /* @__PURE__ */ s.jsx("div", { role: "button", className:
|
|
9231
|
+
] }) : /* @__PURE__ */ s.jsx(Et, { text: r ?? "", placement: "left", children: /* @__PURE__ */ s.jsx("div", { role: "button", className: j("rounded p-3 d-flex justify-content-center"), onClick: () => h(!0), children: /* @__PURE__ */ s.jsx("img", { src: l, alt: "placeholder", className: "rounded w-25" }) }) }),
|
|
9232
9232
|
/* @__PURE__ */ s.jsx(Lx, { show: b && !d, onClose: () => h(!1), photos: e, defaultIndex: f ?? 0, uploadPhotosText: r, noPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c, onChangeOrder: u })
|
|
9233
9233
|
] });
|
|
9234
9234
|
}, kw = ({ children: e }) => {
|
|
@@ -9260,8 +9260,8 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9260
9260
|
return /* @__PURE__ */ s.jsx(a, { icon: "check" });
|
|
9261
9261
|
}
|
|
9262
9262
|
}, [a, e]);
|
|
9263
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
9264
|
-
!n && /* @__PURE__ */ s.jsx("div", { className:
|
|
9263
|
+
return /* @__PURE__ */ s.jsxs("div", { className: j("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !n }, Jn.item, Jn[`level-${e}`]), children: [
|
|
9264
|
+
!n && /* @__PURE__ */ s.jsx("div", { className: j(Jn.typeIcon), children: r ?? o() }),
|
|
9265
9265
|
/* @__PURE__ */ s.jsx(re, { variant: "body2", className: "w-100", children: t })
|
|
9266
9266
|
] });
|
|
9267
9267
|
}, Bw = ({ version: e }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
@@ -9281,7 +9281,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9281
9281
|
spacer: Yx
|
|
9282
9282
|
}, Kx = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9283
9283
|
!t && /* @__PURE__ */ s.jsx("div", { className: Fi.spacer }),
|
|
9284
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
9284
|
+
/* @__PURE__ */ s.jsx("div", { className: j("luminus-floating-action-container shadow", Fi.submitContainer), children: e })
|
|
9285
9285
|
] }), Xx = "_timeline_g1754_1", Jx = "_step-container_g1754_1", Qx = "_step-date_g1754_1", Zx = "_step-content_g1754_4", ey = "_content-header_g1754_8", ty = "_content-text_g1754_11", ry = "_step-icon_g1754_14", At = {
|
|
9286
9286
|
timeline: Xx,
|
|
9287
9287
|
"step-container": "_step-container_g1754_1",
|
|
@@ -9296,18 +9296,18 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9296
9296
|
contentText: ty,
|
|
9297
9297
|
"step-icon": "_step-icon_g1754_14",
|
|
9298
9298
|
stepIcon: ry
|
|
9299
|
-
}, Mw = ({ steps: e }) => /* @__PURE__ */ s.jsx("div", { className: At.timeline, children: e.sort((t, r) => Gd(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
9300
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ s.jsxs(re, { variant: "caption", className:
|
|
9299
|
+
}, Mw = ({ steps: e }) => /* @__PURE__ */ s.jsx("div", { className: At.timeline, children: e.sort((t, r) => Gd(t.date ?? /* @__PURE__ */ new Date(), r.date ?? /* @__PURE__ */ new Date())).map((t, r) => /* @__PURE__ */ s.jsxs("div", { className: j("row g-0 gx-3", At.stepContainer), children: [
|
|
9300
|
+
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: t.date && /* @__PURE__ */ s.jsxs(re, { variant: "caption", className: j("h-100 d-flex flex-column align-items-end justify-content-center gap-0", At.stepDate), children: [
|
|
9301
9301
|
/* @__PURE__ */ s.jsx("div", { children: Lt(t.date, "dd.MM.yyyy") }),
|
|
9302
9302
|
/* @__PURE__ */ s.jsx("div", { children: Lt(t.date, "HH:mm") })
|
|
9303
9303
|
] }) }),
|
|
9304
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-9", children: /* @__PURE__ */ s.jsxs("div", { className:
|
|
9305
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
9304
|
+
/* @__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", At.stepContent), children: [
|
|
9305
|
+
/* @__PURE__ */ s.jsxs("div", { className: j("d-flex gap-2 align-items-center", At.contentHeader), children: [
|
|
9306
9306
|
t.person && /* @__PURE__ */ s.jsx(ss, { name: t.person.name ?? "", size: 22, fontSize: 12 }),
|
|
9307
9307
|
typeof t.title == "string" ? /* @__PURE__ */ s.jsx(re, { variant: "body", className: "fw-bold", children: t.title }) : t.title
|
|
9308
9308
|
] }),
|
|
9309
9309
|
t.text && /* @__PURE__ */ s.jsx(re, { variant: "body2", className: At.contentText, children: t.text }),
|
|
9310
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
9310
|
+
/* @__PURE__ */ s.jsx("div", { className: j("text-primary", At.stepIcon), children: t.icon ?? /* @__PURE__ */ s.jsx(cd, {}) })
|
|
9311
9311
|
] }) })
|
|
9312
9312
|
] }, r)) }), ny = (e, t, r, n = !0) => {
|
|
9313
9313
|
const a = it({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = L(!1), [l, c] = L(null), p = T(async (d) => {
|
|
@@ -9434,13 +9434,13 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9434
9434
|
const g = ly(e.from, e.to);
|
|
9435
9435
|
l(g), f.current = !1;
|
|
9436
9436
|
}
|
|
9437
|
-
}, [e.from, e.to]), /* @__PURE__ */ s.jsxs("div", { className:
|
|
9437
|
+
}, [e.from, e.to]), /* @__PURE__ */ s.jsxs("div", { className: j("d-inline-flex align-items-center gap-1", Gi.wrapper, Gi[n ?? "md"], r), children: [
|
|
9438
9438
|
/* @__PURE__ */ s.jsx(le, { disabled: u, onClick: () => {
|
|
9439
9439
|
c(-1);
|
|
9440
9440
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-left" }) }),
|
|
9441
9441
|
/* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
9442
9442
|
/* @__PURE__ */ s.jsx(bt, { type: "date", value: e.from, onChange: (g) => d("from", g === null ? null : g.toString()), InputContainer: Ze, size: n }),
|
|
9443
|
-
/* @__PURE__ */ s.jsx(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { text: a[$i.find((g) => g[0] === i)[1]].substring(0, 1), as: pd }), children: $i.map((g) => /* @__PURE__ */ s.jsx(et, { disabled: g[0] === i, className:
|
|
9443
|
+
/* @__PURE__ */ s.jsx(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { text: a[$i.find((g) => g[0] === i)[1]].substring(0, 1), as: pd }), children: $i.map((g) => /* @__PURE__ */ s.jsx(et, { disabled: g[0] === i, className: j(g[0] === i ? "text-black-50" : ""), onClick: () => p(g[0]), role: "button", children: a[g[1]] }, g[0])) }),
|
|
9444
9444
|
/* @__PURE__ */ s.jsx(bt, { type: "date", value: e.to, onChange: (g) => d("to", g === null ? null : g.toString()), InputContainer: Ze, size: n })
|
|
9445
9445
|
] }) }),
|
|
9446
9446
|
/* @__PURE__ */ s.jsx(le, { disabled: u, onClick: () => {
|
|
@@ -9486,55 +9486,58 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9486
9486
|
}
|
|
9487
9487
|
] : [], onClick: (o) => n && n(o.data) });
|
|
9488
9488
|
}, dy = ({ val: e, translateKey: t, data: r }) => {
|
|
9489
|
-
var
|
|
9490
|
-
const n = e.point.id.split("."), a = V(() => {
|
|
9491
|
-
const
|
|
9492
|
-
return { transform: `translate(${
|
|
9489
|
+
var l, c;
|
|
9490
|
+
const n = e.point.id.split("."), a = n[0], o = Number(n[1]), i = V(() => {
|
|
9491
|
+
const p = e.point.x < 100 ? "56%" : "-56%", d = e.point.y < 60 ? "70px" : "8px";
|
|
9492
|
+
return { transform: `translate(${p}, ${d})` };
|
|
9493
9493
|
}, [e.point.x, e.point.y]);
|
|
9494
|
-
return /* @__PURE__ */ s.jsxs("div", { className: "bg-white shadow-sm px-2 py-1 rounded", style:
|
|
9494
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "bg-white shadow-sm px-2 py-1 rounded", style: i, children: [
|
|
9495
9495
|
/* @__PURE__ */ s.jsx(re, { variant: "body", children: t(e.point.serieId) }),
|
|
9496
9496
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex", children: [
|
|
9497
9497
|
/* @__PURE__ */ s.jsxs(re, { variant: "body", className: "pe-1", children: [
|
|
9498
|
-
(
|
|
9498
|
+
(l = e.point.data.x) == null ? void 0 : l.toString(),
|
|
9499
9499
|
":"
|
|
9500
9500
|
] }),
|
|
9501
|
-
/* @__PURE__ */ s.jsx(re, { variant: "body", className: "fw-bold", children: (
|
|
9501
|
+
/* @__PURE__ */ s.jsx(re, { variant: "body", className: "fw-bold", children: (c = r == null ? void 0 : r[o]) == null ? void 0 : c[a] })
|
|
9502
9502
|
] })
|
|
9503
9503
|
] });
|
|
9504
9504
|
}, Wi = (e, t) => t ? e : e.toSorted((r, n) => {
|
|
9505
9505
|
var a;
|
|
9506
9506
|
return typeof n.x == "number" && typeof r.x == "number" ? n.x - r.x : (n.x ?? "").toString().localeCompare(((a = r.x) == null ? void 0 : a.toString()) ?? "");
|
|
9507
9507
|
}), Gw = ({ data: e, xKey: t, yKeys: r, translateKey: n, usePercentageValue: a = !1, variant: o = "default", legendPosition: i, noSort: l = !1 }) => {
|
|
9508
|
-
const { chartColorPalette: c } = q(de), [p, d] = L(/* @__PURE__ */ new Set()), u = (
|
|
9509
|
-
d((
|
|
9510
|
-
const
|
|
9511
|
-
return
|
|
9508
|
+
const { chartColorPalette: c } = q(de), [p, d] = L(/* @__PURE__ */ new Set()), u = (y) => {
|
|
9509
|
+
d((S) => {
|
|
9510
|
+
const I = new Set(S);
|
|
9511
|
+
return I.has(y.id) ? I.delete(y.id) : I.add(y.id), I;
|
|
9512
9512
|
});
|
|
9513
|
-
}, f = V(() => {
|
|
9514
|
-
|
|
9515
|
-
return
|
|
9513
|
+
}, f = V(() => l ? e : e.toSorted((y, S) => {
|
|
9514
|
+
var I;
|
|
9515
|
+
return typeof S[t] == "number" && typeof y[t] == "number" ? S[t] - y[t] : (y[t] ?? "").toString().localeCompare(((I = S[t]) == null ? void 0 : I.toString()) ?? "");
|
|
9516
|
+
}), [e, l, t]), g = V(() => {
|
|
9517
|
+
const y = [];
|
|
9518
|
+
return r.forEach((S) => {
|
|
9516
9519
|
if (a) {
|
|
9517
|
-
const
|
|
9518
|
-
if (
|
|
9520
|
+
const I = Math.max(...f.map((E) => E[S] ?? -1 / 0));
|
|
9521
|
+
if (I === -1 / 0)
|
|
9519
9522
|
return;
|
|
9520
|
-
const
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
}),
|
|
9524
|
-
id:
|
|
9525
|
-
data: Wi(
|
|
9523
|
+
const O = [];
|
|
9524
|
+
f.forEach((E) => {
|
|
9525
|
+
E[S] != null && O.push({ x: E[t], y: I === 0 ? 0 : E[S] / I });
|
|
9526
|
+
}), y.push({
|
|
9527
|
+
id: S,
|
|
9528
|
+
data: Wi(O, l)
|
|
9526
9529
|
});
|
|
9527
9530
|
} else
|
|
9528
|
-
|
|
9529
|
-
id:
|
|
9530
|
-
data: Wi(
|
|
9531
|
+
y.push({
|
|
9532
|
+
id: S,
|
|
9533
|
+
data: Wi(f.map((I) => ({ x: I[t], y: I[S] })), l)
|
|
9531
9534
|
});
|
|
9532
|
-
}),
|
|
9533
|
-
}, [r, a,
|
|
9534
|
-
var
|
|
9535
|
-
return typeof ((
|
|
9536
|
-
}, [e, t]),
|
|
9537
|
-
return console.log(
|
|
9535
|
+
}), y;
|
|
9536
|
+
}, [r, a, f, l, t]), v = T((y) => /* @__PURE__ */ s.jsx(dy, { data: f, translateKey: n, val: y }), [f, n]), b = V(() => Math.min(...e.map((y) => y[t] ?? 1 / 0)), [e, t]), h = V(() => Math.max(...e.map((y) => y[t] ?? -1 / 0)), [e, t]), m = V(() => {
|
|
9537
|
+
var y;
|
|
9538
|
+
return typeof ((y = e == null ? void 0 : e[0]) == null ? void 0 : y[t]);
|
|
9539
|
+
}, [e, t]), x = i ?? (o === "sideContent" ? "bottom" : "right"), D = V(() => !a && o !== "sideContent", [a, o]), N = V(() => [b, h], [h, b]);
|
|
9540
|
+
return console.log(g), /* @__PURE__ */ s.jsx(gd, { data: g, xScale: m === "string" ? { type: "point" } : { type: "linear", min: b }, yScale: { type: "linear", nice: !0 }, axisLeft: D ? {
|
|
9538
9541
|
tickSize: 5,
|
|
9539
9542
|
tickPadding: 5,
|
|
9540
9543
|
tickRotation: 0,
|
|
@@ -9545,21 +9548,21 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9545
9548
|
// format: val => `${val * 100} %`,
|
|
9546
9549
|
} : null, axisBottom: {
|
|
9547
9550
|
tickValues: o === "sideContent" ? N : void 0
|
|
9548
|
-
},
|
|
9551
|
+
}, gridYValues: o === "sideContent" ? [0] : void 0, legends: x !== "none" ? [
|
|
9549
9552
|
{
|
|
9550
|
-
data: r.map((
|
|
9551
|
-
id:
|
|
9552
|
-
label: n(
|
|
9553
|
-
color: c == null ? void 0 : c[
|
|
9554
|
-
hidden: p.has(
|
|
9553
|
+
data: r.map((y, S) => ({
|
|
9554
|
+
id: y,
|
|
9555
|
+
label: n(y),
|
|
9556
|
+
color: c == null ? void 0 : c[S],
|
|
9557
|
+
hidden: p.has(y)
|
|
9555
9558
|
})),
|
|
9556
9559
|
onClick: u,
|
|
9557
|
-
anchor:
|
|
9558
|
-
direction:
|
|
9560
|
+
anchor: x,
|
|
9561
|
+
direction: x === "right" ? "column" : "row",
|
|
9559
9562
|
toggleSerie: !0,
|
|
9560
9563
|
justify: !1,
|
|
9561
|
-
translateX:
|
|
9562
|
-
translateY:
|
|
9564
|
+
translateX: x === "right" ? 120 : void 0,
|
|
9565
|
+
translateY: x === "right" ? 0 : x === "bottom" ? 44 : void 0,
|
|
9563
9566
|
itemsSpacing: 0,
|
|
9564
9567
|
itemDirection: "left-to-right",
|
|
9565
9568
|
itemWidth: 100,
|
|
@@ -9580,10 +9583,10 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9580
9583
|
}
|
|
9581
9584
|
] : void 0, pointSize: 6, pointColor: { theme: "background" }, pointBorderWidth: 2, pointBorderColor: { from: "serieColor" }, margin: {
|
|
9582
9585
|
top: 10,
|
|
9583
|
-
right:
|
|
9584
|
-
bottom:
|
|
9585
|
-
left:
|
|
9586
|
-
}, colors: c, isInteractive: !0, enableCrosshair: !0, enableTouchCrosshair: !0, useMesh: !0, animate: !1, tooltip:
|
|
9586
|
+
right: x === "right" ? 130 : 20,
|
|
9587
|
+
bottom: x === "bottom" ? 44 : 20,
|
|
9588
|
+
left: D ? 50 : 20
|
|
9589
|
+
}, colors: c, isInteractive: !0, enableCrosshair: !0, enableTouchCrosshair: !0, useMesh: !0, animate: !1, tooltip: v });
|
|
9587
9590
|
}, uy = ({ errors: e, schema: t }) => {
|
|
9588
9591
|
const r = (n) => {
|
|
9589
9592
|
var a, o;
|
|
@@ -9652,14 +9655,14 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9652
9655
|
case "NUM":
|
|
9653
9656
|
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(en, { withoutLabel: !0, InputContainer: Ze, className: lt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, g === null ? null : Number(g)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(bt, { withoutLabel: !0, InputContainer: Ze, className: lt.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (g) => c(r, g === null ? null : Number(g)), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
9654
9657
|
case "STR":
|
|
9655
|
-
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(en, { withoutLabel: !0, InputContainer: Ze, className: lt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(bt, { withoutLabel: !0, InputContainer: Ze, className:
|
|
9658
|
+
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(en, { withoutLabel: !0, InputContainer: Ze, className: lt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(bt, { withoutLabel: !0, InputContainer: Ze, className: j(lt.input, lt.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
9656
9659
|
case "BIT":
|
|
9657
9660
|
return /* @__PURE__ */ s.jsx(na, { InputContainer: Ze, className: lt.input, value: t === !0, onChange: (g) => c(r, g), disabled: a ? !0 : n ? !o : !1 });
|
|
9658
9661
|
case "DT":
|
|
9659
9662
|
return /* @__PURE__ */ s.jsx(bt, { withoutLabel: !0, InputContainer: Ze, className: lt.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
9660
9663
|
default: {
|
|
9661
9664
|
const g = u == null ? void 0 : u.find((v) => v.type === e);
|
|
9662
|
-
return g ? /* @__PURE__ */ s.jsx(g.picker, { className:
|
|
9665
|
+
return g ? /* @__PURE__ */ s.jsx(g.picker, { className: j(lt.input, lt.longer), value: t ? {
|
|
9663
9666
|
id: (t == null ? void 0 : t.toString()) ?? null,
|
|
9664
9667
|
name: ((f = i == null ? void 0 : i.find((v) => {
|
|
9665
9668
|
var b;
|
|
@@ -9692,15 +9695,15 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9692
9695
|
}, []), u = (g) => (g == null ? void 0 : g.value) !== (g == null ? void 0 : g.defaultValue), f = T(() => Object.keys(c).some((g) => u(c[g])), [c]);
|
|
9693
9696
|
return W(() => {
|
|
9694
9697
|
p(n);
|
|
9695
|
-
}, [n]), /* @__PURE__ */ s.jsxs("tr", { className:
|
|
9696
|
-
/* @__PURE__ */ s.jsx("td", { className:
|
|
9698
|
+
}, [n]), /* @__PURE__ */ s.jsxs("tr", { className: j("table-row", ye.tableRow), children: [
|
|
9699
|
+
/* @__PURE__ */ s.jsx("td", { className: j("table-cell", ye.tableCell, ye.stickyFirst), children: f() && /* @__PURE__ */ s.jsx(le, { color: "success", onClick: () => a(sc(c)), children: /* @__PURE__ */ s.jsx(l, { icon: "check" }) }) }),
|
|
9697
9700
|
t.map((g) => {
|
|
9698
9701
|
var v, b;
|
|
9699
|
-
return /* @__PURE__ */ s.jsx("td", { className:
|
|
9702
|
+
return /* @__PURE__ */ s.jsx("td", { className: j("table-cell", ye.tableCell), children: /* @__PURE__ */ s.jsx(lc, { type: g.type, value: (v = c[g.field ?? ""]) == null ? void 0 : v.value, field: g.field, isReadonly: g.readOnly, isPrimary: e.primaryKey === g.field, valuesForSelect: g.valuesForSelect, addValueToValuesForSelect: (h) => {
|
|
9700
9703
|
r(t.map((m) => m.field === g.field ? { ...m, valuesForSelect: [...m.valuesForSelect ?? [], h] } : m));
|
|
9701
9704
|
}, onChangeHandler: d, hideClearIcon: !u(c[g.field ?? ""]), clearValue: (b = c[g.field ?? ""].defaultValue) == null ? void 0 : b.toString(), customPickers: i }) }, `${e.id}-${g.field}`);
|
|
9702
9705
|
}),
|
|
9703
|
-
/* @__PURE__ */ s.jsx("td", { className:
|
|
9706
|
+
/* @__PURE__ */ s.jsx("td", { className: j("table-cell", ye.tableCell, ye.stickyLast), children: /* @__PURE__ */ s.jsx(le, { color: "danger", onClick: () => o(c[e.primaryKey ?? ""].value), children: /* @__PURE__ */ s.jsx(l, { icon: "delete" }) }) })
|
|
9704
9707
|
] });
|
|
9705
9708
|
}, Ey = ({ schema: e, columns: t, setColumns: r, onCreate: n, customPickers: a }) => {
|
|
9706
9709
|
const { ProjectIconComponent: o } = q(de), [i, l] = L(null), c = T(() => {
|
|
@@ -9745,13 +9748,13 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9745
9748
|
n(t);
|
|
9746
9749
|
}, [t]), W(() => {
|
|
9747
9750
|
e.current && (e.current.style.minWidth = `${r}px`);
|
|
9748
|
-
}, [r, e]), /* @__PURE__ */ s.jsx("div", { className:
|
|
9751
|
+
}, [r, e]), /* @__PURE__ */ s.jsx("div", { className: j("luminus-column-resizer", zr.resizer), draggable: !0, onDragStart: (o) => {
|
|
9749
9752
|
a(o.currentTarget.getBoundingClientRect().x), o.currentTarget.classList.add(zr.dragging);
|
|
9750
9753
|
}, onDrag: (o) => {
|
|
9751
9754
|
a((i) => (e.current && n((l) => l + o.clientX - (i ?? 0)), o.clientX));
|
|
9752
9755
|
}, onDragEnd: (o) => {
|
|
9753
9756
|
a(null), o.currentTarget.classList.remove(zr.dragging);
|
|
9754
|
-
}, children: /* @__PURE__ */ s.jsx("div", { className:
|
|
9757
|
+
}, children: /* @__PURE__ */ s.jsx("div", { className: j("content", zr.content) }) });
|
|
9755
9758
|
}, Py = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Et, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), Ty = ({ column: e, sortByField: t, sortByType: r, setSortBy: n }) => {
|
|
9756
9759
|
const { ProjectIconComponent: a } = q(de), o = Z(null), i = V(() => {
|
|
9757
9760
|
if (e.valuesForSelect && e.valuesForSelect.length > 0)
|
|
@@ -9769,7 +9772,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9769
9772
|
return 100;
|
|
9770
9773
|
}
|
|
9771
9774
|
}, [e.type, e.valuesForSelect]);
|
|
9772
|
-
return /* @__PURE__ */ s.jsxs("th", { ref: o, className:
|
|
9775
|
+
return /* @__PURE__ */ s.jsxs("th", { ref: o, className: j("table-head", ye.tableHead), onClick: () => {
|
|
9773
9776
|
const l = t === e.field ? r : null;
|
|
9774
9777
|
if (l === "asc") {
|
|
9775
9778
|
n(e.field, "desc");
|
|
@@ -9793,7 +9796,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9793
9796
|
var b, h, m;
|
|
9794
9797
|
v([
|
|
9795
9798
|
...((m = (h = (b = e.columns) == null ? void 0 : b.filter((x) => !x.hidden)) == null ? void 0 : h.filter((x) => e.masterReference ? x.field !== e.masterReferenceColumn : !0)) == null ? void 0 : m.map((x) => {
|
|
9796
|
-
var
|
|
9799
|
+
var D;
|
|
9797
9800
|
return {
|
|
9798
9801
|
label: x.caption ?? "",
|
|
9799
9802
|
width: 100,
|
|
@@ -9801,27 +9804,27 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9801
9804
|
field: x.field ?? "",
|
|
9802
9805
|
type: x.type,
|
|
9803
9806
|
readOnly: x.readOnly,
|
|
9804
|
-
valuesForSelect: ((
|
|
9807
|
+
valuesForSelect: ((D = x.values) == null ? void 0 : D.filter((N) => x.valuesFilteredByMaster ? N.masterValue === d : !0).map((N) => ({ id: N.id ?? "", name: N.name }))) ?? void 0
|
|
9805
9808
|
};
|
|
9806
9809
|
})) ?? []
|
|
9807
9810
|
]);
|
|
9808
|
-
}, [e, d]), /* @__PURE__ */ s.jsxs("table", { id: `dynamic-table-${e.id}`, className:
|
|
9809
|
-
/* @__PURE__ */ s.jsxs("thead", { className:
|
|
9810
|
-
/* @__PURE__ */ s.jsxs("tr", { className:
|
|
9811
|
-
/* @__PURE__ */ s.jsx("th", { className:
|
|
9811
|
+
}, [e, d]), /* @__PURE__ */ s.jsxs("table", { id: `dynamic-table-${e.id}`, className: j("table table-borderless luminus-df-table", ye.table), children: [
|
|
9812
|
+
/* @__PURE__ */ s.jsxs("thead", { className: j("text-nowrap table-header", ye.stickyTop, ye.tableHeader), children: [
|
|
9813
|
+
/* @__PURE__ */ s.jsxs("tr", { className: j("table-row", ye.tableRow), children: [
|
|
9814
|
+
/* @__PURE__ */ s.jsx("th", { className: j("table-head", ye.tableHead, ye.actionColumn, ye.stickyFirst) }),
|
|
9812
9815
|
g.map((b) => /* @__PURE__ */ s.jsx(Ty, { column: b, sortByField: l, sortByType: c, setSortBy: p }, `${e.id}-${b.field}`)),
|
|
9813
|
-
/* @__PURE__ */ s.jsx("th", { className:
|
|
9816
|
+
/* @__PURE__ */ s.jsx("th", { className: j("table-head", ye.tableHead, ye.actionColumn, ye.stickyLast) })
|
|
9814
9817
|
] }),
|
|
9815
|
-
/* @__PURE__ */ s.jsxs("tr", { className:
|
|
9816
|
-
/* @__PURE__ */ s.jsx("th", { className:
|
|
9817
|
-
g.map((b) => /* @__PURE__ */ s.jsx("th", { className:
|
|
9818
|
+
/* @__PURE__ */ s.jsxs("tr", { className: j("table-row filters-row", ye.tableRow, ye.filtersRow), children: [
|
|
9819
|
+
/* @__PURE__ */ s.jsx("th", { className: j("table-head", ye.tableHead, ye.actionColumn, ye.stickyFirst) }),
|
|
9820
|
+
g.map((b) => /* @__PURE__ */ s.jsx("th", { className: j("table-head", ye.tableHead), children: b.valuesForSelect && b.valuesForSelect.length > 0 || b.type === "BIT" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(en, { InputContainer: Ze, withoutLabel: !0, size: "sm", value: o[b.field] ?? "", onChange: (h) => i(b.field, (h == null ? void 0 : h.toString()) ?? null), options: b.type === "BIT" ? [
|
|
9818
9821
|
{ id: 1, name: f.yes },
|
|
9819
9822
|
{ id: 0, name: f.no }
|
|
9820
9823
|
] : b.valuesForSelect ?? [], isNumber: b.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(bt, { InputContainer: Ze, withoutLabel: !0, size: "sm", type: b.type === "NUM" ? "number" : b.type === "DT" ? "date" : "text", value: o[b.field] ?? "", onChange: (h) => i(b.field, (h == null ? void 0 : h.toString()) ?? null) }) }) }, `${e.id}-${b.field}`)),
|
|
9821
|
-
/* @__PURE__ */ s.jsx("th", { className:
|
|
9824
|
+
/* @__PURE__ */ s.jsx("th", { className: j("table-head", ye.tableHead, ye.actionColumn, ye.stickyLast) })
|
|
9822
9825
|
] })
|
|
9823
9826
|
] }),
|
|
9824
|
-
/* @__PURE__ */ s.jsxs("tbody", { className:
|
|
9827
|
+
/* @__PURE__ */ s.jsxs("tbody", { className: j("table-body", ye.tableBody), children: [
|
|
9825
9828
|
t.filter((b) => b[e.primaryKey ?? ""]).map((b) => /* @__PURE__ */ s.jsx(Cy, { schema: e, columns: g, setColumns: v, initialItem: b, onEdit: r, onDelete: n, customPickers: u }, `${e.id}-${b[e.primaryKey ?? ""].value}`)),
|
|
9826
9829
|
/* @__PURE__ */ s.jsx(Ey, { schema: e, columns: g, setColumns: v, onCreate: a, customPickers: u })
|
|
9827
9830
|
] })
|
|
@@ -9839,22 +9842,22 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9839
9842
|
apiExportGet: "/dynamicForms/export"
|
|
9840
9843
|
}, Ww = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = zi.appDetail } = zi, apiUrls: { apiSchemaGet: p = Rt.apiSchemaGet, apiDataGet: d = Rt.apiDataGet, apiItemPost: u = Rt.apiItemPost, apiItemDelete: f = Rt.apiItemDelete, apiItemCreate: g = Rt.apiItemCreate, apiExportGet: v = Rt.apiExportGet } = Rt, customPickers: b }) => {
|
|
9841
9844
|
var me, ce, Be, Je, Qe, Gt;
|
|
9842
|
-
const { texts: { dynamicForms: h }, ProjectIconComponent: m } = q(de), x = it(), { startLoading:
|
|
9845
|
+
const { texts: { dynamicForms: h }, ProjectIconComponent: m } = q(de), x = it(), { startLoading: D, stopLoading: N } = q(Jt), [y, S] = L(null), [I, O] = L(null), [E, P] = L(null), [k, M] = L(null), [C, Q] = L(!1), { addNotification: Y } = Da(), [B, R] = L([]), { confirm: $ } = _r(), F = 20, z = F + 1, K = k ? Math.ceil(k.length / F) : 1, te = t ? t > 1 : !1, ae = t ? t < K : !1, oe = t ? (t - 1) * F : 0, H = t ? t * F : F, U = V(() => k ? k.length > z : !1, [k, z]), pe = V(() => U ? (k == null ? void 0 : k.slice(oe, H)) ?? null : k ?? null, [U, k, oe, H]), [se, De] = L(null);
|
|
9843
9846
|
W(() => {
|
|
9844
9847
|
S(null), O(null), Q(!1), R([]), De(null);
|
|
9845
9848
|
}, [e]);
|
|
9846
9849
|
const je = T(async () => {
|
|
9847
|
-
|
|
9848
|
-
S(ne),
|
|
9849
|
-
}).catch(() =>
|
|
9850
|
-
}, [x, e,
|
|
9850
|
+
D("dynamicFormSchema"), await x.get(`${p}?id=${e}`).then(({ data: ne }) => {
|
|
9851
|
+
S(ne), N("dynamicFormSchema");
|
|
9852
|
+
}).catch(() => N("dynamicFormSchema"));
|
|
9853
|
+
}, [x, e, D, N, p]), _ = T(async () => {
|
|
9851
9854
|
var ne;
|
|
9852
9855
|
if (!(y === null || ((ne = y.id) == null ? void 0 : ne.toString()) !== e)) {
|
|
9853
9856
|
if (y.masterReference && !se) {
|
|
9854
9857
|
O([]);
|
|
9855
9858
|
return;
|
|
9856
9859
|
}
|
|
9857
|
-
|
|
9860
|
+
D("dynamicFormData"), await x.get(`${d}?id=${e}&showArchive=${C}${y.masterReference ? `&master=${se}` : ""}`).then(({ data: ve }) => {
|
|
9858
9861
|
const Se = ve.map((he) => {
|
|
9859
9862
|
var Ie;
|
|
9860
9863
|
return Object.fromEntries(((Ie = y.columns) == null ? void 0 : Ie.filter((Pe) => Pe.field).map((Pe) => [
|
|
@@ -9862,15 +9865,15 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9862
9865
|
{ value: he[Pe.field ?? ""], defaultValue: he[Pe.field ?? ""] }
|
|
9863
9866
|
])) ?? []);
|
|
9864
9867
|
});
|
|
9865
|
-
O(Se),
|
|
9866
|
-
}).catch(() =>
|
|
9868
|
+
O(Se), N("dynamicFormData");
|
|
9869
|
+
}).catch(() => N("dynamicFormData"));
|
|
9867
9870
|
}
|
|
9868
|
-
}, [x, e, y,
|
|
9871
|
+
}, [x, e, y, D, N, C, se, d]), fe = T(async () => {
|
|
9869
9872
|
var ne;
|
|
9870
|
-
y === null || ((ne = y.id) == null ? void 0 : ne.toString()) !== e || y.masterReference && !se || (
|
|
9873
|
+
y === null || ((ne = y.id) == null ? void 0 : ne.toString()) !== e || y.masterReference && !se || (D("dynamicFormExport"), await x.get(`${v}?id=${e}&showArchive=${C}${y.masterReference ? `&master=${se}` : ""}`, {
|
|
9871
9874
|
responseType: "blob"
|
|
9872
|
-
}).then((ve) => vd(ve, { fallbackName: `export-${e}` })).finally(() =>
|
|
9873
|
-
}, [x, e, y,
|
|
9875
|
+
}).then((ve) => vd(ve, { fallbackName: `export-${e}` })).finally(() => N("dynamicFormExport")));
|
|
9876
|
+
}, [x, e, y, D, N, C, se, v]), Ce = T(async (ne) => (D("dynamicFormEdit"), x.post(`${u}?id=${e}`, ne).then(() => (N("dynamicFormEdit"), R([]), !0)).catch((ve) => (N("dynamicFormEdit"), R(Sn(ve)), !1))), [x, e, D, N, u]), Le = T(async (ne) => (D("dynamicFormDelete"), x.delete(`${f}?id=${e}&pk=${ne}`).then(() => (N("dynamicFormDelete"), R([]), !0)).catch((ve) => (N("dynamicFormDelete"), R(Sn(ve)), !1))), [x, e, D, N, f]), He = T(async (ne) => (D("dynamicFormCreate"), x.post(`${g}?id=${e}`, ne).then(({ data: ve }) => (N("dynamicFormCreate"), R([]), ve)).catch((ve) => (N("dynamicFormCreate"), R(Sn(ve)), null))), [x, e, D, N, g]), dt = T(async (ne) => {
|
|
9874
9877
|
y && await Ce(y.masterReference ? { ...ne, [y.masterReferenceColumn ?? ""]: se } : ne) && (Y(h.editSuccess, "success"), O((ve) => ve && ve.map((Se) => {
|
|
9875
9878
|
var he;
|
|
9876
9879
|
return ((he = Se[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : he.value) === ne[(y == null ? void 0 : y.primaryKey) ?? ""] ? Ui(ne, y) : Se;
|
|
@@ -9893,11 +9896,11 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9893
9896
|
}, [Y, He, h, y, se]), J = (ne) => {
|
|
9894
9897
|
ne > K ? r(K) : ne < 1 && r(1), r(ne);
|
|
9895
9898
|
}, ue = T(() => {
|
|
9896
|
-
if (!
|
|
9899
|
+
if (!I || !y) {
|
|
9897
9900
|
P(null);
|
|
9898
9901
|
return;
|
|
9899
9902
|
}
|
|
9900
|
-
const ne =
|
|
9903
|
+
const ne = I.filter((ve) => Object.entries(n).every(([Se, he]) => {
|
|
9901
9904
|
var ar, or, ir;
|
|
9902
9905
|
if (he === null)
|
|
9903
9906
|
return !0;
|
|
@@ -9921,7 +9924,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9921
9924
|
}
|
|
9922
9925
|
}));
|
|
9923
9926
|
P(ne);
|
|
9924
|
-
}, [
|
|
9927
|
+
}, [I, n, y]), Ee = T(() => {
|
|
9925
9928
|
if (!E || !y) {
|
|
9926
9929
|
M([]);
|
|
9927
9930
|
return;
|
|
@@ -9990,8 +9993,8 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9990
9993
|
y != null && y.masterReference && !se ? /* @__PURE__ */ s.jsx(pn, { variant: "warning", children: h.selectMaster(((Gt = (Qe = y.columns) == null ? void 0 : Qe.find((ne) => ne.field === y.masterReferenceColumn)) == null ? void 0 : Gt.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9991
9994
|
y && B.length > 0 && /* @__PURE__ */ s.jsx("div", { className: "mb-2", children: /* @__PURE__ */ s.jsx(uy, { errors: B, schema: y }) }),
|
|
9992
9995
|
y && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9993
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
9994
|
-
U && t && /* @__PURE__ */ s.jsxs("div", { className:
|
|
9996
|
+
/* @__PURE__ */ s.jsx("div", { className: j("rounded border overflow-auto", Hi.tableContainer), children: /* @__PURE__ */ s.jsx(Ay, { schema: y, items: !U && k && (k == null ? void 0 : k.length) > z ? [] : (U ? pe : k) ?? [], onEditItem: dt, onDeleteItem: G, onCreateItem: A, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, selectedMaster: (se == null ? void 0 : se.toString()) ?? null, customPickers: b }) }),
|
|
9997
|
+
U && t && /* @__PURE__ */ s.jsxs("div", { className: j(Hi.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
9995
9998
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
9996
9999
|
/* @__PURE__ */ s.jsx(le, { color: "primary", onClick: () => J(1), disabled: !te, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-double-left" }) }),
|
|
9997
10000
|
/* @__PURE__ */ s.jsx(le, { color: "primary", onClick: () => J(t - 1), disabled: !te, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-left" }) }),
|
|
@@ -10034,11 +10037,11 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10034
10037
|
return W(() => {
|
|
10035
10038
|
!d && b();
|
|
10036
10039
|
}, [b, d]), g.length > 0 ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: v.map((h) => /* @__PURE__ */ s.jsx(rn, { title: h.name, defaultOpen: !0, children: h.items.map((m) => {
|
|
10037
|
-
var x,
|
|
10038
|
-
return a ? /* @__PURE__ */ s.jsxs(ot, { to: `${hr(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()) === ((
|
|
10040
|
+
var x, D, N, y;
|
|
10041
|
+
return a ? /* @__PURE__ */ s.jsxs(ot, { to: `${hr(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()) === ((D = m.id) == null ? void 0 : D.toString()) ? "active" : ""}`, children: [
|
|
10039
10042
|
/* @__PURE__ */ s.jsx(re, { variant: "body", children: m.name }),
|
|
10040
10043
|
m.description && /* @__PURE__ */ s.jsx(re, { variant: "body2", className: "text-muted mt-2", children: m.description })
|
|
10041
|
-
] }, m.id) : /* @__PURE__ */ s.jsx(By, { item: m, children: /* @__PURE__ */ s.jsx(ot, { to: `${hr(o, { id: (
|
|
10044
|
+
] }, m.id) : /* @__PURE__ */ s.jsx(By, { item: m, children: /* @__PURE__ */ s.jsx(ot, { to: `${hr(o, { id: (N = m.id) == null ? void 0 : N.toString() })}?type=${m.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((y = m.id) == null ? void 0 : y.toString()) ? "active" : ""}`, children: /* @__PURE__ */ s.jsx(re, { variant: "body2", children: m.name }) }) }, m.id);
|
|
10042
10045
|
}) }, h.id)) }) }) : null;
|
|
10043
10046
|
}, Hw = ({ label: e, to: t, value: r }) => /* @__PURE__ */ s.jsxs(Xe, { label: e, children: [
|
|
10044
10047
|
/* @__PURE__ */ s.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
@@ -10109,7 +10112,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10109
10112
|
modifiers: [["darker", 1.6]]
|
|
10110
10113
|
}, tooltipLabel: n }), My = "_hrText_xxish_1", Ly = {
|
|
10111
10114
|
hrText: My
|
|
10112
|
-
}, Fy = ({ text: e }) => /* @__PURE__ */ s.jsx("hr", { className:
|
|
10115
|
+
}, Fy = ({ text: e }) => /* @__PURE__ */ s.jsx("hr", { className: j(Ly.hrText), "data-content": e }), Vy = "_cards-group_1gvpy_1", $y = "_group-title_1gvpy_1", Gy = "_group-content_1gvpy_8", Wy = "_report-card_1gvpy_12", Uy = "_card-title-link_1gvpy_22", Ht = {
|
|
10113
10116
|
"cards-group": "_cards-group_1gvpy_1",
|
|
10114
10117
|
cardsGroup: Vy,
|
|
10115
10118
|
"group-title": "_group-title_1gvpy_1",
|
|
@@ -10141,9 +10144,9 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10141
10144
|
return /* @__PURE__ */ s.jsx("div", { className: "col-12 col-lg-4", children: /* @__PURE__ */ s.jsxs(
|
|
10142
10145
|
nn,
|
|
10143
10146
|
{
|
|
10144
|
-
title: /* @__PURE__ */ s.jsx(ot, { to: t(e), className:
|
|
10147
|
+
title: /* @__PURE__ */ s.jsx(ot, { to: t(e), className: j(Ht.cardTitleLink, "w-100 text-uppercase fw-normal"), children: r(e) }),
|
|
10145
10148
|
headerClassName: "bg-darker",
|
|
10146
|
-
className:
|
|
10149
|
+
className: j(Ht.reportCard, "shadow h-100 d-flex flex-column"),
|
|
10147
10150
|
contentClassName: "d-flex flex-column gap-2 h-100",
|
|
10148
10151
|
children: [
|
|
10149
10152
|
/* @__PURE__ */ s.jsx(re, { variant: "body2", className: "px-2", children: n(e) }),
|
|
@@ -10166,7 +10169,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10166
10169
|
return {};
|
|
10167
10170
|
const h = {};
|
|
10168
10171
|
return e.forEach((m) => {
|
|
10169
|
-
h[m] = f.filter((x) => x.groupId === m && (mt(n(x), d) || mt(a(x), d) || x.versions.some((
|
|
10172
|
+
h[m] = f.filter((x) => x.groupId === m && (mt(n(x), d) || mt(a(x), d) || x.versions.some((D) => mt(D.name, d)) || x.versionsCustom.some((D) => mt(D.name, d))));
|
|
10170
10173
|
}), h;
|
|
10171
10174
|
}, [d, e, f, a, n]), v = V(() => e.filter((h) => {
|
|
10172
10175
|
var m;
|
|
@@ -10177,9 +10180,9 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10177
10180
|
var m;
|
|
10178
10181
|
return p(((m = h.target) == null ? void 0 : m.value) ?? "");
|
|
10179
10182
|
}, placeholder: l.index.search }) }),
|
|
10180
|
-
/* @__PURE__ */ s.jsx("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: v.map((h) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
10181
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
10182
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
10183
|
+
/* @__PURE__ */ s.jsx("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: v.map((h) => /* @__PURE__ */ s.jsxs("div", { className: j(Ht.cardsGroup, { [Ht.mobile]: b }), children: [
|
|
10184
|
+
/* @__PURE__ */ s.jsx("div", { className: j("group-title z-1", Ht.groupTitle), children: /* @__PURE__ */ s.jsx(Fy, { text: o(h) }) }),
|
|
10185
|
+
/* @__PURE__ */ s.jsx("div", { className: j(Ht.groupContent), children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3"), children: g[h].map((m) => /* @__PURE__ */ s.jsx(zy, { report: m, getReportRoute: i, getReportName: n, getReportDescription: a })) }) })
|
|
10183
10186
|
] }, h)) })
|
|
10184
10187
|
] });
|
|
10185
10188
|
}, qy = "_mini-detail-popover_obryf_1", Yy = "_sm_obryf_5", Ky = "_lg_obryf_9", Ji = {
|
|
@@ -10217,7 +10220,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10217
10220
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
|
|
10218
10221
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
|
|
10219
10222
|
] })
|
|
10220
|
-
] }) : d }), placement: n, trigger: a, popoverClassName:
|
|
10223
|
+
] }) : d }), placement: n, trigger: a, popoverClassName: j(Ji.miniDetailPopover, Ji[f]), children: /* @__PURE__ */ s.jsx("div", { children: e }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) });
|
|
10221
10224
|
}, eD = ({ label: e, value: t }) => /* @__PURE__ */ s.jsxs("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
|
|
10222
10225
|
/* @__PURE__ */ s.jsx(re, { variant: "caption", children: e }),
|
|
10223
10226
|
/* @__PURE__ */ s.jsx(re, { variant: "body2", className: "text-end", children: t ?? "-" })
|
|
@@ -10310,12 +10313,12 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10310
10313
|
v.reset(g);
|
|
10311
10314
|
}, [g, v]), { formSchema: f, onSubmit: b, formMethods: v };
|
|
10312
10315
|
}, rD = ({ indexRoute: e }) => {
|
|
10313
|
-
var
|
|
10316
|
+
var N;
|
|
10314
10317
|
const { id: t } = fs(), { user: r } = q(Ct), n = it(), a = gn(), { confirm: o } = _r(), { texts: { substitutions: { detail: i } } } = q(de), { data: l } = ct(`/permissions/substitutions/${t}`, {
|
|
10315
10318
|
enabled: t !== void 0
|
|
10316
|
-
}), { data: c } = ct("/permissions/users"), { onSubmit: p, formMethods: d } = Xy(l, e), u = d.watch("employeeId"), { data: f } = ct(`/permissions/roles?userName=${(
|
|
10319
|
+
}), { data: c } = ct("/permissions/users"), { onSubmit: p, formMethods: d } = Xy(l, e), u = d.watch("employeeId"), { data: f } = ct(`/permissions/roles?userName=${(N = c == null ? void 0 : c.find((y) => y.employeeId === u)) == null ? void 0 : N.name}`, { enabled: u > 0 && !!c }), { refreshAvailableDelegations: g } = q(ps), { checkUserHasPermissions: v } = Vd(), b = T(async () => {
|
|
10317
10320
|
await o(i.deleteConfirm) && (await n.delete(`/permissions/substitutions/${t}`), g(), a(e));
|
|
10318
|
-
}, [n, o, t, a, g, i, e]), h = V(() => u !== (r == null ? void 0 : r.personalNumber) && !v(["ZASTUP_MODIFY"]), [v, u, r == null ? void 0 : r.personalNumber]), m = d.watch("roles"), x = V(() => f == null ? void 0 : f.filter((y) => y.canBeRepresented), [f]),
|
|
10321
|
+
}, [n, o, t, a, g, i, e]), h = V(() => u !== (r == null ? void 0 : r.personalNumber) && !v(["ZASTUP_MODIFY"]), [v, u, r == null ? void 0 : r.personalNumber]), m = d.watch("roles"), x = V(() => f == null ? void 0 : f.filter((y) => y.canBeRepresented), [f]), D = V(() => (x == null ? void 0 : x.every((y) => m == null ? void 0 : m.includes(y.name))) ?? !1, [x, m]);
|
|
10319
10322
|
return /* @__PURE__ */ s.jsx(Sa, { title: /* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
10320
10323
|
/* @__PURE__ */ s.jsx(re, { variant: "h3", children: i.title }),
|
|
10321
10324
|
/* @__PURE__ */ s.jsx(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { as: Pr }), children: /* @__PURE__ */ s.jsx(et, { onClick: () => b(), children: i.delete }) })
|
|
@@ -10339,8 +10342,8 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10339
10342
|
marginRight: "-12px",
|
|
10340
10343
|
marginTop: "-12px",
|
|
10341
10344
|
padding: "0px 12px"
|
|
10342
|
-
}, children: /* @__PURE__ */ s.jsx(na, { label:
|
|
10343
|
-
d.setValue("roles",
|
|
10345
|
+
}, children: /* @__PURE__ */ s.jsx(na, { label: D ? i.uncheckAllRoles : i.checkAllRoles, indeterminate: !D && (m == null ? void 0 : m.length) > 0, value: D, disabled: h, onChange: () => {
|
|
10346
|
+
d.setValue("roles", D ? [] : (x == null ? void 0 : x.map((y) => y.name)) ?? [], { shouldDirty: !0 });
|
|
10344
10347
|
}, InputContainer: Xe }) }),
|
|
10345
10348
|
/* @__PURE__ */ s.jsx("div", { className: "overflow-auto", style: {
|
|
10346
10349
|
maxHeight: "60vh",
|
|
@@ -10348,7 +10351,7 @@ const ic = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10348
10351
|
marginRight: "-12px",
|
|
10349
10352
|
padding: "0px 12px"
|
|
10350
10353
|
}, children: f == null ? void 0 : f.map((y) => /* @__PURE__ */ s.jsx(na, { label: y.name, value: (m == null ? void 0 : m.find((S) => S === y.name)) !== void 0, disabled: h || !y.canBeRepresented, onChange: (S) => {
|
|
10351
|
-
d.setValue("roles", S ? [...m ?? [], y.name] : (m == null ? void 0 : m.filter((
|
|
10354
|
+
d.setValue("roles", S ? [...m ?? [], y.name] : (m == null ? void 0 : m.filter((I) => I !== y.name)) ?? [], { shouldDirty: !0 });
|
|
10352
10355
|
}, InputContainer: Xe }, y.name)) })
|
|
10353
10356
|
] }) })
|
|
10354
10357
|
] }),
|