react-luminus-components 1.3.215 → 1.3.216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/common/MonthPicker/MonthPicker.d.ts +4 -1
- package/dist/main.cjs.js +16 -16
- package/dist/main.es.js +1028 -1028
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -91,17 +91,17 @@ function ea(e, t) {
|
|
|
91
91
|
let o = "", i = "";
|
|
92
92
|
const l = n === "extended" ? "-" : "", c = n === "extended" ? ":" : "";
|
|
93
93
|
if (a !== "time") {
|
|
94
|
-
const
|
|
95
|
-
o = `${vt(r.getFullYear(), 4)}${l}${
|
|
94
|
+
const p = vt(r.getDate(), 2), u = vt(r.getMonth() + 1, 2);
|
|
95
|
+
o = `${vt(r.getFullYear(), 4)}${l}${u}${l}${p}`;
|
|
96
96
|
}
|
|
97
97
|
if (a !== "date") {
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
100
|
-
const b = Math.abs(
|
|
101
|
-
i = `${
|
|
98
|
+
const p = r.getTimezoneOffset();
|
|
99
|
+
if (p !== 0) {
|
|
100
|
+
const b = Math.abs(p), h = vt(Math.trunc(b / 60), 2), m = vt(b % 60, 2);
|
|
101
|
+
i = `${p < 0 ? "+" : "-"}${h}:${m}`;
|
|
102
102
|
} else
|
|
103
103
|
i = "Z";
|
|
104
|
-
const
|
|
104
|
+
const u = vt(r.getHours(), 2), d = vt(r.getMinutes(), 2), f = vt(r.getSeconds(), 2), v = o === "" ? "" : "T", g = [u, d, f].join(c);
|
|
105
105
|
o = `${o}${v}${g}${i}`;
|
|
106
106
|
}
|
|
107
107
|
return o;
|
|
@@ -169,9 +169,9 @@ const au = {
|
|
|
169
169
|
children: i,
|
|
170
170
|
dimension: l = "height",
|
|
171
171
|
in: c = !1,
|
|
172
|
-
timeout:
|
|
173
|
-
mountOnEnter:
|
|
174
|
-
unmountOnExit:
|
|
172
|
+
timeout: p = 300,
|
|
173
|
+
mountOnEnter: u = !1,
|
|
174
|
+
unmountOnExit: d = !1,
|
|
175
175
|
appear: f = !1,
|
|
176
176
|
getDimensionValue: v = nu,
|
|
177
177
|
...g
|
|
@@ -200,9 +200,9 @@ const au = {
|
|
|
200
200
|
onExiting: y,
|
|
201
201
|
childRef: i.ref,
|
|
202
202
|
in: c,
|
|
203
|
-
timeout:
|
|
204
|
-
mountOnEnter:
|
|
205
|
-
unmountOnExit:
|
|
203
|
+
timeout: p,
|
|
204
|
+
mountOnEnter: u,
|
|
205
|
+
unmountOnExit: d,
|
|
206
206
|
appear: f,
|
|
207
207
|
children: (C, O) => /* @__PURE__ */ le.cloneElement(i, {
|
|
208
208
|
...O,
|
|
@@ -337,12 +337,12 @@ const js = /* @__PURE__ */ xe.forwardRef(({
|
|
|
337
337
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
338
338
|
as: l = "div",
|
|
339
339
|
...c
|
|
340
|
-
},
|
|
341
|
-
const
|
|
340
|
+
}, p) => {
|
|
341
|
+
const u = Ie(e, "card");
|
|
342
342
|
return /* @__PURE__ */ s.jsx(l, {
|
|
343
|
-
ref:
|
|
343
|
+
ref: p,
|
|
344
344
|
...c,
|
|
345
|
-
className: j(t,
|
|
345
|
+
className: j(t, u, r && `bg-${r}`, n && `text-${n}`, a && `border-${a}`),
|
|
346
346
|
children: o ? /* @__PURE__ */ s.jsx(Ca, {
|
|
347
347
|
children: i
|
|
348
348
|
}) : i
|
|
@@ -424,19 +424,19 @@ function Ps({
|
|
|
424
424
|
disabled: o
|
|
425
425
|
}) {
|
|
426
426
|
const i = Q(Qn), l = Q(es), c = Q(Os);
|
|
427
|
-
let
|
|
428
|
-
const
|
|
427
|
+
let p = r;
|
|
428
|
+
const u = {
|
|
429
429
|
role: a
|
|
430
430
|
};
|
|
431
431
|
if (l) {
|
|
432
|
-
!a && l.role === "tablist" && (
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
}
|
|
436
|
-
return
|
|
437
|
-
o || (t == null || t(
|
|
438
|
-
}), [
|
|
439
|
-
isActive:
|
|
432
|
+
!a && l.role === "tablist" && (u.role = "tab");
|
|
433
|
+
const d = l.getControllerId(e ?? null), f = l.getControlledId(e ?? null);
|
|
434
|
+
u[ma("event-key")] = e, u.id = d || n, p = r == null && e != null ? l.activeKey === e : r, (p || !(c != null && c.unmountOnExit) && !(c != null && c.mountOnEnter)) && (u["aria-controls"] = f);
|
|
435
|
+
}
|
|
436
|
+
return u.role === "tab" && (u["aria-selected"] = p, p || (u.tabIndex = -1), o && (u.tabIndex = -1, u["aria-disabled"] = !0)), u.onClick = ha((d) => {
|
|
437
|
+
o || (t == null || t(d), e != null && i && !d.isPropagationStopped() && i(e, d));
|
|
438
|
+
}), [u, {
|
|
439
|
+
isActive: p
|
|
440
440
|
}];
|
|
441
441
|
}
|
|
442
442
|
const As = /* @__PURE__ */ xe.forwardRef((e, t) => {
|
|
@@ -474,9 +474,9 @@ const yo = () => {
|
|
|
474
474
|
role: o,
|
|
475
475
|
onKeyDown: i
|
|
476
476
|
} = e, l = pu(e, uu);
|
|
477
|
-
const c = Bc(),
|
|
477
|
+
const c = Bc(), p = U(!1), u = Q(Qn), d = Q(Os);
|
|
478
478
|
let f, v;
|
|
479
|
-
|
|
479
|
+
d && (o = o || "tablist", a = d.activeKey, f = d.getControlledId, v = d.getControllerId);
|
|
480
480
|
const g = U(null), b = (D) => {
|
|
481
481
|
const w = g.current;
|
|
482
482
|
if (!w) return null;
|
|
@@ -487,9 +487,9 @@ const yo = () => {
|
|
|
487
487
|
let S = O + D;
|
|
488
488
|
return S >= y.length && (S = 0), S < 0 && (S = y.length - 1), y[S];
|
|
489
489
|
}, h = (D, w) => {
|
|
490
|
-
D != null && (n == null || n(D, w),
|
|
490
|
+
D != null && (n == null || n(D, w), u == null || u(D, w));
|
|
491
491
|
}, m = (D) => {
|
|
492
|
-
if (i == null || i(D), !
|
|
492
|
+
if (i == null || i(D), !d)
|
|
493
493
|
return;
|
|
494
494
|
let w;
|
|
495
495
|
switch (D.key) {
|
|
@@ -504,14 +504,14 @@ const yo = () => {
|
|
|
504
504
|
default:
|
|
505
505
|
return;
|
|
506
506
|
}
|
|
507
|
-
w && (D.preventDefault(), h(w.dataset[Mc("EventKey")] || null, D),
|
|
507
|
+
w && (D.preventDefault(), h(w.dataset[Mc("EventKey")] || null, D), p.current = !0, c());
|
|
508
508
|
};
|
|
509
509
|
F(() => {
|
|
510
|
-
if (g.current &&
|
|
510
|
+
if (g.current && p.current) {
|
|
511
511
|
const D = g.current.querySelector(`[${wo}][aria-selected=true]`);
|
|
512
512
|
D == null || D.focus();
|
|
513
513
|
}
|
|
514
|
-
|
|
514
|
+
p.current = !1;
|
|
515
515
|
});
|
|
516
516
|
const x = Lc(t, g);
|
|
517
517
|
return /* @__PURE__ */ s.jsx(Qn.Provider, {
|
|
@@ -545,9 +545,9 @@ const fu = Object.assign(Ts, {
|
|
|
545
545
|
action: i,
|
|
546
546
|
as: l,
|
|
547
547
|
...c
|
|
548
|
-
},
|
|
548
|
+
}, p) => {
|
|
549
549
|
e = Ie(e, "list-group-item");
|
|
550
|
-
const [
|
|
550
|
+
const [u, d] = Ps({
|
|
551
551
|
key: ba(n, c.href),
|
|
552
552
|
active: t,
|
|
553
553
|
...c
|
|
@@ -556,16 +556,16 @@ const fu = Object.assign(Ts, {
|
|
|
556
556
|
g.preventDefault(), g.stopPropagation();
|
|
557
557
|
return;
|
|
558
558
|
}
|
|
559
|
-
|
|
559
|
+
u.onClick(g);
|
|
560
560
|
});
|
|
561
561
|
r && c.tabIndex === void 0 && (c.tabIndex = -1, c["aria-disabled"] = !0);
|
|
562
562
|
const v = l || (i ? c.href ? "a" : "button" : "div");
|
|
563
563
|
return process.env.NODE_ENV !== "production" && ts(l || !(!i && c.href), "`action=false` and `href` should not be used together."), /* @__PURE__ */ s.jsx(v, {
|
|
564
|
-
ref:
|
|
564
|
+
ref: p,
|
|
565
565
|
...c,
|
|
566
|
-
...
|
|
566
|
+
...u,
|
|
567
567
|
onClick: f,
|
|
568
|
-
className: j(a, e,
|
|
568
|
+
className: j(a, e, d.isActive && "active", r && "disabled", o && `${e}-${o}`, i && `${e}-action`)
|
|
569
569
|
});
|
|
570
570
|
});
|
|
571
571
|
Jt.displayName = "ListGroupItem";
|
|
@@ -581,13 +581,13 @@ const Rs = /* @__PURE__ */ xe.forwardRef((e, t) => {
|
|
|
581
581
|
...c
|
|
582
582
|
} = $c(e, {
|
|
583
583
|
activeKey: "onSelect"
|
|
584
|
-
}),
|
|
585
|
-
let
|
|
586
|
-
return o && (
|
|
584
|
+
}), p = Ie(n, "list-group");
|
|
585
|
+
let u;
|
|
586
|
+
return o && (u = o === !0 ? "horizontal" : `horizontal-${o}`), process.env.NODE_ENV !== "production" && ts(!(o && a === "flush"), '`variant="flush"` and `horizontal` should not be used together.'), /* @__PURE__ */ s.jsx(fu, {
|
|
587
587
|
ref: t,
|
|
588
588
|
...c,
|
|
589
589
|
as: l,
|
|
590
|
-
className: j(r,
|
|
590
|
+
className: j(r, p, a && `${p}-${a}`, u && `${p}-${u}`, i && `${p}-numbered`)
|
|
591
591
|
});
|
|
592
592
|
});
|
|
593
593
|
Rs.displayName = "ListGroup";
|
|
@@ -625,20 +625,20 @@ function gu(e) {
|
|
|
625
625
|
}
|
|
626
626
|
function a(l) {
|
|
627
627
|
const c = n(l);
|
|
628
|
-
let
|
|
629
|
-
return typeof
|
|
628
|
+
let p = e[c];
|
|
629
|
+
return typeof p == "number" ? p = `${p - 0.2}px` : p = `calc(${p} - 0.2px)`, `(max-width: ${p})`;
|
|
630
630
|
}
|
|
631
631
|
function o(l) {
|
|
632
632
|
let c = e[l];
|
|
633
633
|
return typeof c == "number" && (c = `${c}px`), `(min-width: ${c})`;
|
|
634
634
|
}
|
|
635
|
-
function i(l, c,
|
|
636
|
-
let
|
|
637
|
-
typeof l == "object" ? (
|
|
635
|
+
function i(l, c, p) {
|
|
636
|
+
let u;
|
|
637
|
+
typeof l == "object" ? (u = l, p = c, c = !0) : (c = c || !0, u = {
|
|
638
638
|
[l]: c
|
|
639
639
|
});
|
|
640
|
-
let
|
|
641
|
-
return vu(
|
|
640
|
+
let d = z(() => Object.entries(u).reduce((f, [v, g]) => ((g === "up" || g === !0) && (f = r(f, o(v))), (g === "down" || g === !0) && (f = r(f, a(v))), f), ""), [JSON.stringify(u)]);
|
|
641
|
+
return vu(d, p);
|
|
642
642
|
}
|
|
643
643
|
return i;
|
|
644
644
|
}
|
|
@@ -681,9 +681,9 @@ const hu = {
|
|
|
681
681
|
appear: i,
|
|
682
682
|
...l,
|
|
683
683
|
childRef: r.ref,
|
|
684
|
-
children: (
|
|
685
|
-
...
|
|
686
|
-
className: j(t, r.props.className, (
|
|
684
|
+
children: (p, u) => /* @__PURE__ */ xe.cloneElement(r, {
|
|
685
|
+
...u,
|
|
686
|
+
className: j(t, r.props.className, (p === va || p === Ji) && `${e}-toggling`, hu[p])
|
|
687
687
|
})
|
|
688
688
|
})));
|
|
689
689
|
Bs.displayName = "OffcanvasToggling";
|
|
@@ -733,9 +733,9 @@ const Fs = /* @__PURE__ */ xe.forwardRef(({
|
|
|
733
733
|
show: i = !1,
|
|
734
734
|
backdrop: l = !0,
|
|
735
735
|
keyboard: c = !0,
|
|
736
|
-
scroll:
|
|
737
|
-
onEscapeKeyDown:
|
|
738
|
-
onShow:
|
|
736
|
+
scroll: p = !1,
|
|
737
|
+
onEscapeKeyDown: u,
|
|
738
|
+
onShow: d,
|
|
739
739
|
onHide: f,
|
|
740
740
|
container: v,
|
|
741
741
|
autoFocus: g = !0,
|
|
@@ -763,7 +763,7 @@ const Fs = /* @__PURE__ */ xe.forwardRef(({
|
|
|
763
763
|
onHide: P
|
|
764
764
|
}), [P]);
|
|
765
765
|
function Y() {
|
|
766
|
-
return _ || (
|
|
766
|
+
return _ || (p ? (E.current || (E.current = new zc({
|
|
767
767
|
handleContainerOverflow: !1
|
|
768
768
|
})), E.current) : qc());
|
|
769
769
|
}
|
|
@@ -791,11 +791,11 @@ const Fs = /* @__PURE__ */ xe.forwardRef(({
|
|
|
791
791
|
container: v,
|
|
792
792
|
keyboard: c,
|
|
793
793
|
autoFocus: g,
|
|
794
|
-
enforceFocus: b && !
|
|
794
|
+
enforceFocus: b && !p,
|
|
795
795
|
restoreFocus: h,
|
|
796
796
|
restoreFocusOptions: m,
|
|
797
|
-
onEscapeKeyDown:
|
|
798
|
-
onShow:
|
|
797
|
+
onEscapeKeyDown: u,
|
|
798
|
+
onShow: d,
|
|
799
799
|
onHide: P,
|
|
800
800
|
onEnter: te,
|
|
801
801
|
onEntering: C,
|
|
@@ -865,20 +865,20 @@ const gt = Object.assign(Gs, {
|
|
|
865
865
|
as: r = "div",
|
|
866
866
|
...n
|
|
867
867
|
}, a) => {
|
|
868
|
-
const o = Ie(e, "row"), i = Kc(), l = Xc(), c = `${o}-cols`,
|
|
869
|
-
return i.forEach((
|
|
870
|
-
const
|
|
871
|
-
delete n[
|
|
868
|
+
const o = Ie(e, "row"), i = Kc(), l = Xc(), c = `${o}-cols`, p = [];
|
|
869
|
+
return i.forEach((u) => {
|
|
870
|
+
const d = n[u];
|
|
871
|
+
delete n[u];
|
|
872
872
|
let f;
|
|
873
|
-
|
|
873
|
+
d != null && typeof d == "object" ? {
|
|
874
874
|
cols: f
|
|
875
|
-
} =
|
|
876
|
-
const v =
|
|
877
|
-
f != null &&
|
|
875
|
+
} = d : f = d;
|
|
876
|
+
const v = u !== l ? `-${u}` : "";
|
|
877
|
+
f != null && p.push(`${c}${v}-${f}`);
|
|
878
878
|
}), /* @__PURE__ */ s.jsx(r, {
|
|
879
879
|
ref: a,
|
|
880
880
|
...n,
|
|
881
|
-
className: j(t, o, ...
|
|
881
|
+
className: j(t, o, ...p)
|
|
882
882
|
});
|
|
883
883
|
});
|
|
884
884
|
Ws.displayName = "Row";
|
|
@@ -911,15 +911,15 @@ const wu = /* @__PURE__ */ xe.forwardRef(({
|
|
|
911
911
|
size: i,
|
|
912
912
|
variant: l,
|
|
913
913
|
responsive: c,
|
|
914
|
-
...
|
|
915
|
-
},
|
|
916
|
-
const
|
|
917
|
-
...
|
|
914
|
+
...p
|
|
915
|
+
}, u) => {
|
|
916
|
+
const d = Ie(e, "table"), f = j(t, d, l && `${d}-${l}`, i && `${d}-${i}`, r && `${d}-${typeof r == "string" ? `striped-${r}` : "striped"}`, n && `${d}-bordered`, a && `${d}-borderless`, o && `${d}-hover`), v = /* @__PURE__ */ s.jsx("table", {
|
|
917
|
+
...p,
|
|
918
918
|
className: f,
|
|
919
|
-
ref:
|
|
919
|
+
ref: u
|
|
920
920
|
});
|
|
921
921
|
if (c) {
|
|
922
|
-
let g = `${
|
|
922
|
+
let g = `${d}-responsive`;
|
|
923
923
|
return typeof c == "string" && (g = `${g}-${c}`), /* @__PURE__ */ s.jsx("div", {
|
|
924
924
|
className: g,
|
|
925
925
|
children: v
|
|
@@ -939,15 +939,15 @@ const wu = /* @__PURE__ */ xe.forwardRef(({
|
|
|
939
939
|
] })
|
|
940
940
|
] });
|
|
941
941
|
}, Us = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(rs, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, className: o, children: i, multiple: l, ...c }) => {
|
|
942
|
-
const
|
|
943
|
-
|
|
942
|
+
const p = (u) => {
|
|
943
|
+
u.target.files && (a(u.target.files), u.target.value = "");
|
|
944
944
|
};
|
|
945
945
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
946
946
|
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: j(`luminus-context-button btn text-${e} ${o ?? ""}`, Zc.button), ...c, children: [
|
|
947
947
|
t,
|
|
948
948
|
i
|
|
949
949
|
] }),
|
|
950
|
-
/* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange:
|
|
950
|
+
/* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange: p, hidden: !0, multiple: l })
|
|
951
951
|
] });
|
|
952
952
|
}, Fw = ({ onUpload: e, accept: t, children: r, className: n, size: a = "md" }) => {
|
|
953
953
|
const o = R(async (l) => {
|
|
@@ -964,35 +964,35 @@ const wu = /* @__PURE__ */ xe.forwardRef(({
|
|
|
964
964
|
] });
|
|
965
965
|
}, Nu = "_select_dlv1t_1", In = {
|
|
966
966
|
select: Nu
|
|
967
|
-
}, Eu = ({ month: e, onChangeMonth: t, locale: r, yearMin: n = 2e3, yearMax: a = 2050 }) => {
|
|
968
|
-
const
|
|
969
|
-
const
|
|
970
|
-
|
|
971
|
-
}, [e, t, n, a]),
|
|
972
|
-
const c = [];
|
|
973
|
-
for (let u = n; u <= a; u++)
|
|
974
|
-
c.push(u);
|
|
975
|
-
return c;
|
|
976
|
-
}, [n, a]), l = z(() => {
|
|
967
|
+
}, Eu = ({ month: e, onChangeMonth: t, locale: r, yearMin: n = 2e3, yearMax: a = 2050, className: o, monthClassName: i, yearClassName: l }) => {
|
|
968
|
+
const c = R((d) => {
|
|
969
|
+
const f = ed(e, d);
|
|
970
|
+
f.getFullYear() < n || f.getFullYear() > a || t(f);
|
|
971
|
+
}, [e, t, n, a]), p = z(() => {
|
|
977
972
|
const d = [];
|
|
978
|
-
for (let
|
|
979
|
-
d.push(
|
|
980
|
-
id: p,
|
|
981
|
-
name: vr(new Date(2024, p, 1), "LLLL", { locale: r })
|
|
982
|
-
});
|
|
973
|
+
for (let f = n; f <= a; f++)
|
|
974
|
+
d.push(f);
|
|
983
975
|
return d;
|
|
976
|
+
}, [n, a]), u = z(() => {
|
|
977
|
+
const v = [];
|
|
978
|
+
for (let g = 0; g <= 11; g++)
|
|
979
|
+
v.push({
|
|
980
|
+
id: g,
|
|
981
|
+
name: vr(new Date(2024, g, 1), "LLLL", { locale: r })
|
|
982
|
+
});
|
|
983
|
+
return v;
|
|
984
984
|
}, [r]);
|
|
985
|
-
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
986
|
-
/* @__PURE__ */ s.jsx(ce, { onClick: () =>
|
|
987
|
-
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getMonth(), onChange: (
|
|
988
|
-
var
|
|
989
|
-
return ((
|
|
990
|
-
}, className: j(In.select, In.month), children:
|
|
991
|
-
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getFullYear(), onChange: (
|
|
992
|
-
var
|
|
993
|
-
return ((
|
|
994
|
-
}, className: j(In.select), children:
|
|
995
|
-
/* @__PURE__ */ s.jsx(ce, { onClick: () =>
|
|
985
|
+
return /* @__PURE__ */ s.jsxs("div", { className: j("card d-flex flex-row align-items-center m-0 p-1 gap-2", o), children: [
|
|
986
|
+
/* @__PURE__ */ s.jsx(ce, { onClick: () => c(-1), disabled: e.getFullYear() < n || e.getFullYear() === n && e.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(xa, {}) }),
|
|
987
|
+
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getMonth(), onChange: (d) => {
|
|
988
|
+
var f;
|
|
989
|
+
return ((f = d.target) == null ? void 0 : f.value) && t(tu(e, Number(d.target.value)));
|
|
990
|
+
}, className: j(In.select, In.month, i), children: u.map((d) => /* @__PURE__ */ s.jsx("option", { value: d.id, children: d.name }, d.id)) }),
|
|
991
|
+
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getFullYear(), onChange: (d) => {
|
|
992
|
+
var f;
|
|
993
|
+
return ((f = d.target) == null ? void 0 : f.value) && t(ta(e, Number(d.target.value)));
|
|
994
|
+
}, className: j(In.select, l), children: p.map((d) => /* @__PURE__ */ s.jsx("option", { value: d, children: d }, d)) }),
|
|
995
|
+
/* @__PURE__ */ s.jsx(ce, { onClick: () => c(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ s.jsx(ya, {}) })
|
|
996
996
|
] });
|
|
997
997
|
}, Cu = "_select_pywmr_1", Su = {
|
|
998
998
|
select: Cu
|
|
@@ -1007,26 +1007,26 @@ const wu = /* @__PURE__ */ xe.forwardRef(({
|
|
|
1007
1007
|
if (n.manualOptions)
|
|
1008
1008
|
return n.options;
|
|
1009
1009
|
const c = [];
|
|
1010
|
-
for (let
|
|
1011
|
-
c.push(
|
|
1010
|
+
for (let p = a; p <= o; p++)
|
|
1011
|
+
c.push(p);
|
|
1012
1012
|
return c;
|
|
1013
1013
|
}, [n, o, a]), l = R((c) => {
|
|
1014
1014
|
if (n.manualOptions) {
|
|
1015
|
-
const
|
|
1016
|
-
if (
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1015
|
+
const p = i.findIndex((u) => u === e.getFullYear());
|
|
1016
|
+
if (p !== -1) {
|
|
1017
|
+
const u = i.at(p + c) ?? null;
|
|
1018
|
+
u && t(ta(e, u));
|
|
1019
1019
|
}
|
|
1020
1020
|
} else {
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1021
|
+
const p = e.getFullYear() + c;
|
|
1022
|
+
p >= a && p <= o && t(td(e, c));
|
|
1023
1023
|
}
|
|
1024
1024
|
}, [e, t, o, a, n, i]);
|
|
1025
1025
|
return /* @__PURE__ */ s.jsxs("div", { className: j("card d-flex flex-row align-items-center m-0 p-1 gap-2", r ?? ""), children: [
|
|
1026
1026
|
/* @__PURE__ */ s.jsx(ce, { onClick: () => l(-1), disabled: e.getFullYear() <= a, children: /* @__PURE__ */ s.jsx(xa, {}) }),
|
|
1027
1027
|
/* @__PURE__ */ s.jsx(_e.Select, { value: e.getFullYear(), onChange: (c) => {
|
|
1028
|
-
var
|
|
1029
|
-
return ((
|
|
1028
|
+
var p;
|
|
1029
|
+
return ((p = c.target) == null ? void 0 : p.value) && t(ta(e, Number(c.target.value)));
|
|
1030
1030
|
}, className: Su.select, children: i.map((c) => /* @__PURE__ */ s.jsx("option", { value: c, children: c }, c)) }),
|
|
1031
1031
|
/* @__PURE__ */ s.jsx(ce, { onClick: () => l(1), disabled: e.getFullYear() >= o, children: /* @__PURE__ */ s.jsx(ya, {}) })
|
|
1032
1032
|
] });
|
|
@@ -1092,30 +1092,30 @@ const _u = (e) => (r) => {
|
|
|
1092
1092
|
widgetTitle: Mu,
|
|
1093
1093
|
title: Fu
|
|
1094
1094
|
}, $u = ({ show: e, widgetGroups: t, widgets: r, handleClose: n, onWidgetPicked: a, texts: o }) => {
|
|
1095
|
-
const [i, l] = L(""), c = z(() => r.filter((
|
|
1095
|
+
const [i, l] = L(""), c = z(() => r.filter((u) => u.id !== -1 && ut(u.name, i)), [r, i]), p = z(() => t.filter((u) => c.some((d) => d.group === u.id)), [t, c]);
|
|
1096
1096
|
return /* @__PURE__ */ s.jsxs(Ue, { show: e, onHide: () => n(), size: "lg", children: [
|
|
1097
1097
|
/* @__PURE__ */ s.jsxs(Ue.Header, { closeButton: !0, children: [
|
|
1098
1098
|
/* @__PURE__ */ s.jsx(Ue.Title, { className: "w-100", children: o.pickWidgetToAdd }),
|
|
1099
|
-
/* @__PURE__ */ s.jsx(_e.Control, { type: "search", size: "sm", value: i, placeholder: o.searchPlaceholder, onChange: (
|
|
1100
|
-
var
|
|
1101
|
-
return l(((
|
|
1099
|
+
/* @__PURE__ */ s.jsx(_e.Control, { type: "search", size: "sm", value: i, placeholder: o.searchPlaceholder, onChange: (u) => {
|
|
1100
|
+
var d;
|
|
1101
|
+
return l(((d = u.target) == null ? void 0 : d.value) ?? "");
|
|
1102
1102
|
}, className: "me-3", style: { maxWidth: "200px" } })
|
|
1103
1103
|
] }),
|
|
1104
1104
|
/* @__PURE__ */ s.jsx(Ue.Body, { className: "flex-column gap-3", children: c.length === 0 ? /* @__PURE__ */ s.jsx(ln, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1105
|
-
|
|
1105
|
+
p.map((u) => /* @__PURE__ */ s.jsx(Zr, { defaultOpen: !0, title: u.name ?? "", children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3", Ke.widgetsRow), children: c.filter((d) => d.group === u.id).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", Ke.widget), onClick: () => a(d.id), children: [
|
|
1106
1106
|
/* @__PURE__ */ s.jsx("div", { className: Ke.widgetImg, style: {
|
|
1107
|
-
backgroundImage:
|
|
1107
|
+
backgroundImage: d.img ? `url(${d.img})` : void 0
|
|
1108
1108
|
} }),
|
|
1109
1109
|
/* @__PURE__ */ s.jsx("div", { className: Ke.widgetTitleSpacer }),
|
|
1110
|
-
/* @__PURE__ */ s.jsx("div", { className: j(Ke.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(Ke.title, "text-white text-truncate"), children:
|
|
1111
|
-
] },
|
|
1112
|
-
c.some((
|
|
1110
|
+
/* @__PURE__ */ s.jsx("div", { className: j(Ke.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(Ke.title, "text-white text-truncate"), children: d.name }) })
|
|
1111
|
+
] }, d.id) })) }) }) }, u.id)),
|
|
1112
|
+
c.some((u) => u.group === void 0) && /* @__PURE__ */ s.jsx(Zr, { 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", Ke.widgetsRow), children: c.filter((u) => u.group === void 0).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", Ke.widget), onClick: () => a(u.id), children: [
|
|
1113
1113
|
/* @__PURE__ */ s.jsx("div", { className: Ke.widgetImg, style: {
|
|
1114
|
-
backgroundImage:
|
|
1114
|
+
backgroundImage: u.img ? `url(${u.img})` : void 0
|
|
1115
1115
|
} }),
|
|
1116
1116
|
/* @__PURE__ */ s.jsx("div", { className: Ke.widgetTitleSpacer }),
|
|
1117
|
-
/* @__PURE__ */ s.jsx("div", { className: j(Ke.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(Ke.title, "text-white text-truncate"), children:
|
|
1118
|
-
] },
|
|
1117
|
+
/* @__PURE__ */ s.jsx("div", { className: j(Ke.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(Ke.title, "text-white text-truncate"), children: u.name }) })
|
|
1118
|
+
] }, u.id) })) }) }) })
|
|
1119
1119
|
] }) })
|
|
1120
1120
|
] });
|
|
1121
1121
|
}, Vu = "_widget_19xgl_1", Gu = "_mobile_19xgl_7", Io = {
|
|
@@ -1175,18 +1175,18 @@ const _u = (e) => (r) => {
|
|
|
1175
1175
|
...o,
|
|
1176
1176
|
widgets: ((b = o.widgets) == null ? void 0 : b.filter((h, m) => m !== v)) ?? []
|
|
1177
1177
|
}) : l(v, -1);
|
|
1178
|
-
}, [o, i, l]),
|
|
1178
|
+
}, [o, i, l]), p = R((v) => {
|
|
1179
1179
|
var g;
|
|
1180
1180
|
i({
|
|
1181
1181
|
...o,
|
|
1182
1182
|
widgets: ((g = o.widgets) == null ? void 0 : g.map((b, h) => h === v ? { ...b, fullWidth: !b.fullWidth } : b)) ?? []
|
|
1183
1183
|
});
|
|
1184
|
-
}, [o, i]),
|
|
1184
|
+
}, [o, i]), u = R((v, g, b) => v ? /* @__PURE__ */ s.jsxs("div", { className: j(ot.widgetWrapper, {
|
|
1185
1185
|
[ot.widgetEdit]: r && v.id !== -1
|
|
1186
1186
|
}, { [ot.fullWidth]: b }), children: [
|
|
1187
1187
|
r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1188
1188
|
/* @__PURE__ */ s.jsx(ce, { color: "danger", onClick: () => c(g), className: j(ot.removeIcon), children: /* @__PURE__ */ s.jsx(ns, {}) }),
|
|
1189
|
-
/* @__PURE__ */ s.jsx(ce, { color: b ? "danger" : "primary", onClick: () =>
|
|
1189
|
+
/* @__PURE__ */ s.jsx(ce, { color: b ? "danger" : "primary", onClick: () => p(g), className: j(ot.fullWidthIcon), children: /* @__PURE__ */ s.jsx(nd, {}) })
|
|
1190
1190
|
] }),
|
|
1191
1191
|
v.id === -1 ? r && /* @__PURE__ */ s.jsx("div", { className: ot.widgetWrapper, children: /* @__PURE__ */ s.jsx(jo, { widgetGroups: e, availableWidgets: t, onAdd: (h) => l(g, h), texts: a }) }) : /* @__PURE__ */ s.jsx(Tu, { title: v.title, children: /* @__PURE__ */ s.jsx(v.WidgetElement, { title: v.title }) }),
|
|
1192
1192
|
v.id > -1 && r && /* @__PURE__ */ s.jsx("div", { className: ot.widgetEditOverlay })
|
|
@@ -1195,12 +1195,12 @@ const _u = (e) => (r) => {
|
|
|
1195
1195
|
e,
|
|
1196
1196
|
l,
|
|
1197
1197
|
c,
|
|
1198
|
-
|
|
1198
|
+
p,
|
|
1199
1199
|
t,
|
|
1200
1200
|
a
|
|
1201
|
-
]), { isMobile:
|
|
1202
|
-
return /* @__PURE__ */ s.jsx("div", { className: j(ot.dashboard, { [ot.mobile]:
|
|
1203
|
-
(f = o.widgets) == null ? void 0 : f.map((v, g) =>
|
|
1201
|
+
]), { isMobile: d } = cn();
|
|
1202
|
+
return /* @__PURE__ */ s.jsx("div", { className: j(ot.dashboard, { [ot.mobile]: d }), children: /* @__PURE__ */ s.jsxs("div", { className: j(ot.widgetsGrid), children: [
|
|
1203
|
+
(f = o.widgets) == null ? void 0 : f.map((v, g) => u(t.find((b) => b.id === v.widgetId), g, v.fullWidth)),
|
|
1204
1204
|
r && /* @__PURE__ */ s.jsx(jo, { widgetGroups: e, availableWidgets: t, onAdd: (v) => {
|
|
1205
1205
|
var g;
|
|
1206
1206
|
return l((g = o.widgets) == null ? void 0 : g.length, v);
|
|
@@ -1234,47 +1234,47 @@ const _u = (e) => (r) => {
|
|
|
1234
1234
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
1235
1235
|
] });
|
|
1236
1236
|
}, Gw = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(rs, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, multiple: o, className: i, children: l, ...c }) => {
|
|
1237
|
-
const
|
|
1238
|
-
|
|
1237
|
+
const p = (u) => {
|
|
1238
|
+
u.target.files && (a(u.target.files), u.target.value = "");
|
|
1239
1239
|
};
|
|
1240
1240
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1241
1241
|
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: j(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, ad.item), ...c, children: [
|
|
1242
1242
|
t,
|
|
1243
1243
|
l
|
|
1244
1244
|
] }),
|
|
1245
|
-
/* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange:
|
|
1245
|
+
/* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange: p, hidden: !0, multiple: o })
|
|
1246
1246
|
] });
|
|
1247
1247
|
}, ip = "_divider_1e6rk_1", sp = {
|
|
1248
1248
|
divider: ip
|
|
1249
1249
|
}, Hs = ({ className: e }) => /* @__PURE__ */ s.jsx(od.Divider, { className: j("luminus-dropdown-divider", e, sp.divider) });
|
|
1250
1250
|
function lp(e, t, r) {
|
|
1251
|
-
var n = this, a = U(null), o = U(0), i = U(null), l = U([]), c = U(),
|
|
1252
|
-
|
|
1251
|
+
var n = this, a = U(null), o = U(0), i = U(null), l = U([]), c = U(), p = U(), u = U(e), d = U(!0);
|
|
1252
|
+
u.current = e;
|
|
1253
1253
|
var f = typeof window < "u", v = !t && t !== 0 && f;
|
|
1254
1254
|
if (typeof e != "function") throw new TypeError("Expected a function");
|
|
1255
1255
|
t = +t || 0;
|
|
1256
1256
|
var g = !!(r = r || {}).leading, b = !("trailing" in r) || !!r.trailing, h = "maxWait" in r, m = "debounceOnServer" in r && !!r.debounceOnServer, x = h ? Math.max(+r.maxWait || 0, t) : null;
|
|
1257
1257
|
F(function() {
|
|
1258
|
-
return
|
|
1259
|
-
|
|
1258
|
+
return d.current = !0, function() {
|
|
1259
|
+
d.current = !1;
|
|
1260
1260
|
};
|
|
1261
1261
|
}, []);
|
|
1262
1262
|
var D = z(function() {
|
|
1263
1263
|
var w = function(T) {
|
|
1264
1264
|
var k = l.current, G = c.current;
|
|
1265
|
-
return l.current = c.current = null, o.current = T,
|
|
1265
|
+
return l.current = c.current = null, o.current = T, p.current = u.current.apply(G, k);
|
|
1266
1266
|
}, y = function(T, k) {
|
|
1267
1267
|
v && cancelAnimationFrame(i.current), i.current = v ? requestAnimationFrame(T) : setTimeout(T, k);
|
|
1268
1268
|
}, C = function(T) {
|
|
1269
|
-
if (!
|
|
1269
|
+
if (!d.current) return !1;
|
|
1270
1270
|
var k = T - a.current;
|
|
1271
1271
|
return !a.current || k >= t || k < 0 || h && T - o.current >= x;
|
|
1272
1272
|
}, O = function(T) {
|
|
1273
|
-
return i.current = null, b && l.current ? w(T) : (l.current = c.current = null,
|
|
1273
|
+
return i.current = null, b && l.current ? w(T) : (l.current = c.current = null, p.current);
|
|
1274
1274
|
}, S = function T() {
|
|
1275
1275
|
var k = Date.now();
|
|
1276
1276
|
if (C(k)) return O(k);
|
|
1277
|
-
if (
|
|
1277
|
+
if (d.current) {
|
|
1278
1278
|
var G = t - (k - a.current), E = h ? Math.min(G, x - (k - o.current)) : G;
|
|
1279
1279
|
y(T, E);
|
|
1280
1280
|
}
|
|
@@ -1282,10 +1282,10 @@ function lp(e, t, r) {
|
|
|
1282
1282
|
if (f || m) {
|
|
1283
1283
|
var T = Date.now(), k = C(T);
|
|
1284
1284
|
if (l.current = [].slice.call(arguments), c.current = n, a.current = T, k) {
|
|
1285
|
-
if (!i.current &&
|
|
1285
|
+
if (!i.current && d.current) return o.current = a.current, y(S, t), g ? w(a.current) : p.current;
|
|
1286
1286
|
if (h) return y(S, t), w(a.current);
|
|
1287
1287
|
}
|
|
1288
|
-
return i.current || y(S, t),
|
|
1288
|
+
return i.current || y(S, t), p.current;
|
|
1289
1289
|
}
|
|
1290
1290
|
};
|
|
1291
1291
|
return _.cancel = function() {
|
|
@@ -1293,7 +1293,7 @@ function lp(e, t, r) {
|
|
|
1293
1293
|
}, _.isPending = function() {
|
|
1294
1294
|
return !!i.current;
|
|
1295
1295
|
}, _.flush = function() {
|
|
1296
|
-
return i.current ? O(Date.now()) :
|
|
1296
|
+
return i.current ? O(Date.now()) : p.current;
|
|
1297
1297
|
}, _;
|
|
1298
1298
|
}, [g, h, t, x, b, v, f, m]);
|
|
1299
1299
|
return D;
|
|
@@ -1333,7 +1333,7 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
|
|
|
1333
1333
|
actionButton: Ep,
|
|
1334
1334
|
"actions-dropdown": "_actions-dropdown_1kmlk_95",
|
|
1335
1335
|
actionsDropdown: Cp
|
|
1336
|
-
}, fn = ({ show: e, onCancel: t, items: r, currentSelection: n, onSelectionChange: a, onSearchQueryChange: o, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName:
|
|
1336
|
+
}, fn = ({ show: e, onCancel: t, items: r, currentSelection: n, onSelectionChange: a, onSearchQueryChange: o, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: p = !1, autoHideSearch: u = !1, allItemsLength: d, disabled: f, isLoading: v = !1, inputRef: g, archiveColumn: b = "archive", addNewOptionPath: h, refreshOptions: m }) => {
|
|
1337
1337
|
var Re;
|
|
1338
1338
|
const { texts: { customSelect: x } } = Q(fe), D = U(null), w = U(null), y = U(null), C = U(null), O = U(null), [S, _] = L(""), [T] = pn(S, 500), [, k] = L(!1), { copyToClipboard: G } = zd(), E = (Re = g.current) == null ? void 0 : Re.getBoundingClientRect(), V = (E == null ? void 0 : E.x) ?? 0, X = ((E == null ? void 0 : E.x) ?? 0) + ((E == null ? void 0 : E.width) ?? 0), P = (E == null ? void 0 : E.y) ?? 0, I = ((E == null ? void 0 : E.y) ?? 0) + ((E == null ? void 0 : E.height) ?? 0), B = (E == null ? void 0 : E.width) ?? 0, Y = (E == null ? void 0 : E.height) ?? 0, te = 5, H = z(() => V ? V > window.innerWidth / 2 : !1, [V]), oe = z(() => P ? P > window.innerHeight / 2 : !1, [P]);
|
|
1339
1339
|
F(() => {
|
|
@@ -1405,7 +1405,7 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
|
|
|
1405
1405
|
de ? /* @__PURE__ */ s.jsx("div", { ref: O, children: /* @__PURE__ */ s.jsxs(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { as: jr, className: j("luminus-dropdown-picker-actions-dropdown", ke.actionsDropdown), icon: /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(id, { size: 16 }) }) }), children: [
|
|
1406
1406
|
Ee ? /* @__PURE__ */ s.jsx(He, { icon: /* @__PURE__ */ s.jsx(sd, {}), onClick: () => {
|
|
1407
1407
|
var A, M;
|
|
1408
|
-
G(
|
|
1408
|
+
G(p ? ((A = n == null ? void 0 : n.id) == null ? void 0 : A.toString()) ?? "" : ((M = n == null ? void 0 : n.name) == null ? void 0 : M.toString()) ?? "");
|
|
1409
1409
|
}, children: x.copySelection }) : null,
|
|
1410
1410
|
Ee && (h || m) ? /* @__PURE__ */ s.jsx(Hs, {}) : null,
|
|
1411
1411
|
h ? /* @__PURE__ */ s.jsx(He, { icon: /* @__PURE__ */ s.jsx(ld, {}), onClick: () => {
|
|
@@ -1425,7 +1425,7 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
|
|
|
1425
1425
|
width: Pe,
|
|
1426
1426
|
justifyContent: oe ? "flex-end" : "flex-start"
|
|
1427
1427
|
}, children: /* @__PURE__ */ s.jsx("div", { ref: D, className: j("shadow rounded", ke.dropdown), children: !f && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1428
|
-
!o ||
|
|
1428
|
+
!o || u && (d ?? r.length) <= te ? null : /* @__PURE__ */ s.jsx("div", { className: j("search-input-container border-bottom", ke.searchInputContainer), children: /* @__PURE__ */ s.jsx(_e.Control, { ref: y, type: "search", size: "sm", className: ke.searchInput, placeholder: i.searchPlaceholder, value: S, onChange: (A) => {
|
|
1429
1429
|
var M;
|
|
1430
1430
|
return _(((M = A.target) == null ? void 0 : M.value) ?? "");
|
|
1431
1431
|
} }) }),
|
|
@@ -1445,7 +1445,7 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
|
|
|
1445
1445
|
}, {
|
|
1446
1446
|
archive: A.additionalColumns ? A.additionalColumns[b] : !1
|
|
1447
1447
|
}), onClick: () => !f && a(A), onMouseEnter: () => re(M), children: [
|
|
1448
|
-
/* @__PURE__ */ s.jsx("div", { className: ke.name, children: /* @__PURE__ */ s.jsx(ae, { variant: "body2", children:
|
|
1448
|
+
/* @__PURE__ */ s.jsx("div", { className: ke.name, children: /* @__PURE__ */ s.jsx(ae, { variant: "body2", children: p ? A.id : A.name }) }),
|
|
1449
1449
|
c == null ? void 0 : c.filter((K) => K.key !== b).map((K) => /* @__PURE__ */ s.jsx("div", { className: ke.columnItem, style: {
|
|
1450
1450
|
width: `${K.width ?? 100}px`,
|
|
1451
1451
|
minWidth: `${K.width ?? 100}px`,
|
|
@@ -1476,40 +1476,40 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
|
|
|
1476
1476
|
header: Mp,
|
|
1477
1477
|
item: Fp
|
|
1478
1478
|
}, $p = ({ show: e, query: t, onCancel: r, groups: n, isLoading: a, searchTypes: o }) => {
|
|
1479
|
-
const { texts: { appSearch: i } } = Q(fe), l = U(null), c = R((
|
|
1480
|
-
var
|
|
1481
|
-
const
|
|
1482
|
-
return
|
|
1479
|
+
const { texts: { appSearch: i } } = Q(fe), l = U(null), c = R((p) => {
|
|
1480
|
+
var d;
|
|
1481
|
+
const u = (d = o.find((f) => f.key === p.type)) == null ? void 0 : d.toPath;
|
|
1482
|
+
return u ? `${u}/${p.searchKey}` : "/not-found";
|
|
1483
1483
|
}, [o]);
|
|
1484
1484
|
return gs([l], r), /* @__PURE__ */ s.jsx("div", { ref: l, className: j("luminus-app-search-dropdown shadow rounded", jt.dropdown, {
|
|
1485
1485
|
[jt.open]: e
|
|
1486
|
-
}), children: a ? /* @__PURE__ */ s.jsx("div", { className: jt.loadingContainer, children: /* @__PURE__ */ s.jsx(Ia, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: jt.groupsContainer, children: n == null ? void 0 : n.map((
|
|
1487
|
-
var
|
|
1486
|
+
}), children: a ? /* @__PURE__ */ s.jsx("div", { className: jt.loadingContainer, children: /* @__PURE__ */ s.jsx(Ia, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: jt.groupsContainer, children: n == null ? void 0 : n.map((p) => {
|
|
1487
|
+
var u;
|
|
1488
1488
|
return /* @__PURE__ */ s.jsxs("div", { className: j(jt.group), children: [
|
|
1489
|
-
/* @__PURE__ */ s.jsxs(nt, { to: `/search?query=${t}&type=${
|
|
1490
|
-
/* @__PURE__ */ s.jsx(ae, { variant: "body", className: "text-primary", children:
|
|
1489
|
+
/* @__PURE__ */ s.jsxs(nt, { to: `/search?query=${t}&type=${p.key.category}`, className: j("group-header", jt.header), onClick: r, children: [
|
|
1490
|
+
/* @__PURE__ */ s.jsx(ae, { variant: "body", className: "text-primary", children: p.key.categoryName }),
|
|
1491
1491
|
/* @__PURE__ */ s.jsxs(ae, { variant: "caption", children: [
|
|
1492
|
-
|
|
1492
|
+
p.items.length,
|
|
1493
1493
|
" ",
|
|
1494
1494
|
i.amountFrom,
|
|
1495
1495
|
" ",
|
|
1496
|
-
|
|
1496
|
+
p.key.totalCount
|
|
1497
1497
|
] })
|
|
1498
1498
|
] }),
|
|
1499
|
-
(
|
|
1499
|
+
(u = p.items) == null ? void 0 : u.map((d, f) => /* @__PURE__ */ s.jsxs(
|
|
1500
1500
|
nt,
|
|
1501
1501
|
{
|
|
1502
|
-
to: c(
|
|
1502
|
+
to: c(d),
|
|
1503
1503
|
className: j("search-item d-flex gap-3 align-items-center justify-content-between", jt.item),
|
|
1504
1504
|
onClick: r,
|
|
1505
1505
|
children: [
|
|
1506
|
-
/* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-nowrap text-truncate", children:
|
|
1506
|
+
/* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-nowrap text-truncate", children: d.name }),
|
|
1507
1507
|
/* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(dd, {}) })
|
|
1508
1508
|
]
|
|
1509
1509
|
},
|
|
1510
1510
|
f
|
|
1511
1511
|
))
|
|
1512
|
-
] },
|
|
1512
|
+
] }, p.key.category);
|
|
1513
1513
|
}) }) });
|
|
1514
1514
|
}, Vp = (e, t) => {
|
|
1515
1515
|
const r = Nt(), [n, a] = L(!1), [o, i] = L([]), l = !e || !e.key, c = R(() => {
|
|
@@ -1517,8 +1517,8 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
|
|
|
1517
1517
|
i([]);
|
|
1518
1518
|
return;
|
|
1519
1519
|
}
|
|
1520
|
-
a(!0), r.get(`/search/${t}?count=${l ? 5 : 20}${l ? "" : `&type=${e.key}`}`).then(({ data:
|
|
1521
|
-
i(
|
|
1520
|
+
a(!0), r.get(`/search/${t}?count=${l ? 5 : 20}${l ? "" : `&type=${e.key}`}`).then(({ data: p }) => {
|
|
1521
|
+
i(p), a(!1);
|
|
1522
1522
|
}).catch(() => {
|
|
1523
1523
|
a(!1);
|
|
1524
1524
|
});
|
|
@@ -1528,24 +1528,24 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
|
|
|
1528
1528
|
}, [c]), { isLoading: n, searchItems: o };
|
|
1529
1529
|
}, Ww = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: n = "/", className: a }) => {
|
|
1530
1530
|
var x;
|
|
1531
|
-
const { texts: { appSearch: o } } = Q(fe), [i, l] = L(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = z(() => e.find((D) => D.key === i) ?? null, [e, i]), [
|
|
1531
|
+
const { texts: { appSearch: o } } = Q(fe), [i, l] = L(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = z(() => e.find((D) => D.key === i) ?? null, [e, i]), [p, u] = L(""), [d, f] = pn(p, 500), { isLoading: v, searchItems: g } = Vp(c, d), [b, h] = L(!1);
|
|
1532
1532
|
F(() => {
|
|
1533
1533
|
(g.length > 0 || v) && h(!0);
|
|
1534
1534
|
}, [g, v]);
|
|
1535
1535
|
const m = U(null);
|
|
1536
1536
|
return F(() => {
|
|
1537
1537
|
var D;
|
|
1538
|
-
|
|
1538
|
+
u(""), r === n && ((D = m.current) == null || D.focus());
|
|
1539
1539
|
}, [r, n]), /* @__PURE__ */ s.jsx(_e, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (D) => {
|
|
1540
|
-
D.preventDefault(), D.stopPropagation(), f.flush(), h(!1),
|
|
1540
|
+
D.preventDefault(), D.stopPropagation(), f.flush(), h(!1), p.length > 2 && t(`/search?query=${p}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
|
|
1541
1541
|
}, children: /* @__PURE__ */ s.jsxs(qr, { className: j(It.inputGroup, a), children: [
|
|
1542
1542
|
/* @__PURE__ */ s.jsx(qr.Text, { className: j("p-1 rounded", It.inputGroupText, It.left), children: /* @__PURE__ */ s.jsx(Ap, { searchTypes: e, selectedType: c, setSelectedType: l }) }),
|
|
1543
|
-
/* @__PURE__ */ s.jsx(_e.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: j("luminus-app-search-input", It.input), value:
|
|
1543
|
+
/* @__PURE__ */ s.jsx(_e.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: j("luminus-app-search-input", It.input), value: p, onChange: (D) => {
|
|
1544
1544
|
var w;
|
|
1545
|
-
return
|
|
1545
|
+
return u(encodeURIComponent(((w = D.target) == null ? void 0 : w.value) ?? ""));
|
|
1546
1546
|
}, onFocus: () => g.length > 0 && h(!0) }),
|
|
1547
1547
|
/* @__PURE__ */ s.jsx(qr.Text, { className: j("p-0 rounded", It.inputGroupText, It.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: j("text-primary", It.submitButton), children: /* @__PURE__ */ s.jsx(ud, {}) }) }),
|
|
1548
|
-
/* @__PURE__ */ s.jsx($p, { query:
|
|
1548
|
+
/* @__PURE__ */ s.jsx($p, { query: d, searchTypes: e, show: b, onCancel: () => h(!1), groups: g, isLoading: v })
|
|
1549
1549
|
] }) });
|
|
1550
1550
|
}, Gp = "_card_19733_1", Wp = "_header_19733_6", Up = "_header-content_19733_13", Hp = "_title_19733_19", zp = "_collapse-icon_19733_22", qp = "_collapsed_19733_27", Yp = "_content_19733_30", _t = {
|
|
1551
1551
|
card: Gp,
|
|
@@ -1558,9 +1558,9 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
|
|
|
1558
1558
|
collapsed: qp,
|
|
1559
1559
|
content: Yp
|
|
1560
1560
|
}, zs = ({ title: e, headerContent: t, children: r, className: n, headerClassName: a, contentClassName: o, dontRenderIfNoChildren: i, ...l }) => {
|
|
1561
|
-
const c = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [
|
|
1561
|
+
const c = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [p, u] = L(c), d = l.collapsible ? l.controlled ? l.isOpen : p : !0;
|
|
1562
1562
|
F(() => {
|
|
1563
|
-
|
|
1563
|
+
u(c);
|
|
1564
1564
|
}, [c]);
|
|
1565
1565
|
const f = z(() => !r || !r.toString() || r.toString().split(",").filter((v) => v && v !== "false").length === 0, [r]);
|
|
1566
1566
|
return i && f ? null : /* @__PURE__ */ s.jsxs("div", { className: j("luminus-card rounded shadow-sm", _t.card, {
|
|
@@ -1569,17 +1569,17 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
|
|
|
1569
1569
|
/* @__PURE__ */ s.jsxs("div", { role: l.collapsible ? "button" : void 0, className: j("header", _t.header, {
|
|
1570
1570
|
[a ?? ""]: a
|
|
1571
1571
|
}), onClick: () => {
|
|
1572
|
-
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) :
|
|
1572
|
+
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : u(!p));
|
|
1573
1573
|
}, children: [
|
|
1574
1574
|
/* @__PURE__ */ s.jsxs("div", { className: j("header-content", _t.headerContent), children: [
|
|
1575
1575
|
/* @__PURE__ */ s.jsx(ae, { variant: "h6", className: j("text-primary", _t.title), children: e }),
|
|
1576
1576
|
t ?? null
|
|
1577
1577
|
] }),
|
|
1578
1578
|
l.collapsible && /* @__PURE__ */ s.jsx(as, { className: j(_t.collapseIcon, {
|
|
1579
|
-
[_t.collapsed]:
|
|
1579
|
+
[_t.collapsed]: d
|
|
1580
1580
|
}) })
|
|
1581
1581
|
] }),
|
|
1582
|
-
/* @__PURE__ */ s.jsx(bs, { in:
|
|
1582
|
+
/* @__PURE__ */ s.jsx(bs, { in: d, children: /* @__PURE__ */ s.jsx("div", { className: j("card-content border-top border-primary", _t.content, {
|
|
1583
1583
|
[o ?? ""]: o
|
|
1584
1584
|
}), children: r }) })
|
|
1585
1585
|
] });
|
|
@@ -1707,25 +1707,25 @@ function qs(e, t, r) {
|
|
|
1707
1707
|
if (typeof e != "function")
|
|
1708
1708
|
throw new Error(process.env.NODE_ENV === "production" ? Ge(2) : "Expected the root reducer to be a function. Instead, received: '" + Tt(e) + "'");
|
|
1709
1709
|
var a = e, o = t, i = [], l = i, c = !1;
|
|
1710
|
-
function
|
|
1710
|
+
function p() {
|
|
1711
1711
|
l === i && (l = i.slice());
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1713
|
+
function u() {
|
|
1714
1714
|
if (c)
|
|
1715
1715
|
throw new Error(process.env.NODE_ENV === "production" ? Ge(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
1716
1716
|
return o;
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function d(b) {
|
|
1719
1719
|
if (typeof b != "function")
|
|
1720
1720
|
throw new Error(process.env.NODE_ENV === "production" ? Ge(4) : "Expected the listener to be a function. Instead, received: '" + Tt(b) + "'");
|
|
1721
1721
|
if (c)
|
|
1722
1722
|
throw new Error(process.env.NODE_ENV === "production" ? Ge(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
1723
1723
|
var h = !0;
|
|
1724
|
-
return
|
|
1724
|
+
return p(), l.push(b), function() {
|
|
1725
1725
|
if (h) {
|
|
1726
1726
|
if (c)
|
|
1727
1727
|
throw new Error(process.env.NODE_ENV === "production" ? Ge(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
1728
|
-
h = !1,
|
|
1728
|
+
h = !1, p();
|
|
1729
1729
|
var x = l.indexOf(b);
|
|
1730
1730
|
l.splice(x, 1), i = null;
|
|
1731
1731
|
}
|
|
@@ -1757,7 +1757,7 @@ function qs(e, t, r) {
|
|
|
1757
1757
|
});
|
|
1758
1758
|
}
|
|
1759
1759
|
function g() {
|
|
1760
|
-
var b, h =
|
|
1760
|
+
var b, h = d;
|
|
1761
1761
|
return b = {
|
|
1762
1762
|
/**
|
|
1763
1763
|
* The minimal observable subscription method.
|
|
@@ -1771,7 +1771,7 @@ function qs(e, t, r) {
|
|
|
1771
1771
|
if (typeof x != "object" || x === null)
|
|
1772
1772
|
throw new Error(process.env.NODE_ENV === "production" ? Ge(11) : "Expected the observer to be an object. Instead, received: '" + Tt(x) + "'");
|
|
1773
1773
|
function D() {
|
|
1774
|
-
x.next && x.next(
|
|
1774
|
+
x.next && x.next(u());
|
|
1775
1775
|
}
|
|
1776
1776
|
D();
|
|
1777
1777
|
var w = h(D);
|
|
@@ -1787,8 +1787,8 @@ function qs(e, t, r) {
|
|
|
1787
1787
|
type: To.INIT
|
|
1788
1788
|
}), n = {
|
|
1789
1789
|
dispatch: f,
|
|
1790
|
-
subscribe:
|
|
1791
|
-
getState:
|
|
1790
|
+
subscribe: d,
|
|
1791
|
+
getState: u,
|
|
1792
1792
|
replaceReducer: v
|
|
1793
1793
|
}, n[Ao] = g, n;
|
|
1794
1794
|
}
|
|
@@ -1889,14 +1889,14 @@ var Bo = {
|
|
|
1889
1889
|
};
|
|
1890
1890
|
function Xs(e, t) {
|
|
1891
1891
|
var r, n = Bo;
|
|
1892
|
-
function a(
|
|
1893
|
-
return c(), n.subscribe(
|
|
1892
|
+
function a(d) {
|
|
1893
|
+
return c(), n.subscribe(d);
|
|
1894
1894
|
}
|
|
1895
1895
|
function o() {
|
|
1896
1896
|
n.notify();
|
|
1897
1897
|
}
|
|
1898
1898
|
function i() {
|
|
1899
|
-
|
|
1899
|
+
u.onStateChange && u.onStateChange();
|
|
1900
1900
|
}
|
|
1901
1901
|
function l() {
|
|
1902
1902
|
return !!r;
|
|
@@ -1904,21 +1904,21 @@ function Xs(e, t) {
|
|
|
1904
1904
|
function c() {
|
|
1905
1905
|
r || (r = t ? t.addNestedSub(i) : e.subscribe(i), n = lf());
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function p() {
|
|
1908
1908
|
r && (r(), r = void 0, n.clear(), n = Bo);
|
|
1909
1909
|
}
|
|
1910
|
-
var
|
|
1910
|
+
var u = {
|
|
1911
1911
|
addNestedSub: a,
|
|
1912
1912
|
notifyNestedSubs: o,
|
|
1913
1913
|
handleChangeWrapper: i,
|
|
1914
1914
|
isSubscribed: l,
|
|
1915
1915
|
trySubscribe: c,
|
|
1916
|
-
tryUnsubscribe:
|
|
1916
|
+
tryUnsubscribe: p,
|
|
1917
1917
|
getListeners: function() {
|
|
1918
1918
|
return n;
|
|
1919
1919
|
}
|
|
1920
1920
|
};
|
|
1921
|
-
return
|
|
1921
|
+
return u;
|
|
1922
1922
|
}
|
|
1923
1923
|
var Js = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? wa : F;
|
|
1924
1924
|
function Qs(e) {
|
|
@@ -2002,9 +2002,9 @@ function el(e, t, r) {
|
|
|
2002
2002
|
for (var o = Lo(e), i = Lo(t), l = 0; l < a.length; ++l) {
|
|
2003
2003
|
var c = a[l];
|
|
2004
2004
|
if (!df[c] && !(r && r[c]) && !(i && i[c]) && !(o && o[c])) {
|
|
2005
|
-
var
|
|
2005
|
+
var p = vf(t, c);
|
|
2006
2006
|
try {
|
|
2007
|
-
pf(e, c,
|
|
2007
|
+
pf(e, c, p);
|
|
2008
2008
|
} catch {
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
@@ -2027,10 +2027,10 @@ var Vo;
|
|
|
2027
2027
|
function hf() {
|
|
2028
2028
|
if (Vo) return ye;
|
|
2029
2029
|
Vo = 1;
|
|
2030
|
-
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113,
|
|
2030
|
+
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, p = 60120, u = 60115, d = 60116, f = 60121, v = 60122, g = 60117, b = 60129, h = 60131;
|
|
2031
2031
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
2032
2032
|
var m = Symbol.for;
|
|
2033
|
-
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"),
|
|
2033
|
+
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"), u = m("react.memo"), d = m("react.lazy"), f = m("react.block"), v = m("react.server.block"), g = m("react.fundamental"), b = m("react.debug_trace_mode"), h = m("react.legacy_hidden");
|
|
2034
2034
|
}
|
|
2035
2035
|
function x(E) {
|
|
2036
2036
|
if (typeof E == "object" && E !== null) {
|
|
@@ -2042,14 +2042,14 @@ function hf() {
|
|
|
2042
2042
|
case a:
|
|
2043
2043
|
case n:
|
|
2044
2044
|
case c:
|
|
2045
|
-
case
|
|
2045
|
+
case p:
|
|
2046
2046
|
return E;
|
|
2047
2047
|
default:
|
|
2048
2048
|
switch (E = E && E.$$typeof, E) {
|
|
2049
2049
|
case i:
|
|
2050
2050
|
case l:
|
|
2051
|
-
case p:
|
|
2052
2051
|
case d:
|
|
2052
|
+
case u:
|
|
2053
2053
|
case o:
|
|
2054
2054
|
return E;
|
|
2055
2055
|
default:
|
|
@@ -2061,7 +2061,7 @@ function hf() {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
|
-
var D = o, w = e, y = l, C = r, O =
|
|
2064
|
+
var D = o, w = e, y = l, C = r, O = d, S = u, _ = t, T = a, k = n, G = c;
|
|
2065
2065
|
return ye.ContextConsumer = i, ye.ContextProvider = D, ye.Element = w, ye.ForwardRef = y, ye.Fragment = C, ye.Lazy = O, ye.Memo = S, ye.Portal = _, ye.Profiler = T, ye.StrictMode = k, ye.Suspense = G, ye.isAsyncMode = function() {
|
|
2066
2066
|
return !1;
|
|
2067
2067
|
}, ye.isConcurrentMode = function() {
|
|
@@ -2077,9 +2077,9 @@ function hf() {
|
|
|
2077
2077
|
}, ye.isFragment = function(E) {
|
|
2078
2078
|
return x(E) === r;
|
|
2079
2079
|
}, ye.isLazy = function(E) {
|
|
2080
|
-
return x(E) === p;
|
|
2081
|
-
}, ye.isMemo = function(E) {
|
|
2082
2080
|
return x(E) === d;
|
|
2081
|
+
}, ye.isMemo = function(E) {
|
|
2082
|
+
return x(E) === u;
|
|
2083
2083
|
}, ye.isPortal = function(E) {
|
|
2084
2084
|
return x(E) === t;
|
|
2085
2085
|
}, ye.isProfiler = function(E) {
|
|
@@ -2089,7 +2089,7 @@ function hf() {
|
|
|
2089
2089
|
}, ye.isSuspense = function(E) {
|
|
2090
2090
|
return x(E) === c;
|
|
2091
2091
|
}, ye.isValidElementType = function(E) {
|
|
2092
|
-
return typeof E == "string" || typeof E == "function" || E === r || E === a || E === b || E === n || E === c || E ===
|
|
2092
|
+
return typeof E == "string" || typeof E == "function" || E === r || E === a || E === b || E === n || E === c || E === p || E === h || typeof E == "object" && E !== null && (E.$$typeof === d || E.$$typeof === u || E.$$typeof === o || E.$$typeof === i || E.$$typeof === l || E.$$typeof === g || E.$$typeof === f || E[0] === v);
|
|
2093
2093
|
}, ye.typeOf = x, ye;
|
|
2094
2094
|
}
|
|
2095
2095
|
var we = {};
|
|
@@ -2104,14 +2104,14 @@ var we = {};
|
|
|
2104
2104
|
var Go;
|
|
2105
2105
|
function bf() {
|
|
2106
2106
|
return Go || (Go = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2107
|
-
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113,
|
|
2107
|
+
var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, p = 60120, u = 60115, d = 60116, f = 60121, v = 60122, g = 60117, b = 60129, h = 60131;
|
|
2108
2108
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
2109
2109
|
var m = Symbol.for;
|
|
2110
|
-
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"),
|
|
2110
|
+
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"), u = m("react.memo"), d = m("react.lazy"), f = m("react.block"), v = m("react.server.block"), g = m("react.fundamental"), m("react.scope"), m("react.opaque.id"), b = m("react.debug_trace_mode"), m("react.offscreen"), h = m("react.legacy_hidden");
|
|
2111
2111
|
}
|
|
2112
2112
|
var x = !1;
|
|
2113
2113
|
function D(q) {
|
|
2114
|
-
return !!(typeof q == "string" || typeof q == "function" || q === r || q === a || q === b || q === n || q === c || q ===
|
|
2114
|
+
return !!(typeof q == "string" || typeof q == "function" || q === r || q === a || q === b || q === n || q === c || q === p || q === h || x || typeof q == "object" && q !== null && (q.$$typeof === d || q.$$typeof === u || q.$$typeof === o || q.$$typeof === i || q.$$typeof === l || q.$$typeof === g || q.$$typeof === f || q[0] === v));
|
|
2115
2115
|
}
|
|
2116
2116
|
function w(q) {
|
|
2117
2117
|
if (typeof q == "object" && q !== null) {
|
|
@@ -2124,15 +2124,15 @@ function bf() {
|
|
|
2124
2124
|
case a:
|
|
2125
2125
|
case n:
|
|
2126
2126
|
case c:
|
|
2127
|
-
case
|
|
2127
|
+
case p:
|
|
2128
2128
|
return Fe;
|
|
2129
2129
|
default:
|
|
2130
2130
|
var Ee = Fe && Fe.$$typeof;
|
|
2131
2131
|
switch (Ee) {
|
|
2132
2132
|
case i:
|
|
2133
2133
|
case l:
|
|
2134
|
-
case p:
|
|
2135
2134
|
case d:
|
|
2135
|
+
case u:
|
|
2136
2136
|
case o:
|
|
2137
2137
|
return Ee;
|
|
2138
2138
|
default:
|
|
@@ -2144,7 +2144,7 @@ function bf() {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
|
-
var y = i, C = o, O = e, S = l, _ = r, T =
|
|
2147
|
+
var y = i, C = o, O = e, S = l, _ = r, T = d, k = u, G = t, E = a, V = n, X = c, P = !1, I = !1;
|
|
2148
2148
|
function B(q) {
|
|
2149
2149
|
return P || (P = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
2150
2150
|
}
|
|
@@ -2167,10 +2167,10 @@ function bf() {
|
|
|
2167
2167
|
return w(q) === r;
|
|
2168
2168
|
}
|
|
2169
2169
|
function $(q) {
|
|
2170
|
-
return w(q) ===
|
|
2170
|
+
return w(q) === d;
|
|
2171
2171
|
}
|
|
2172
2172
|
function J(q) {
|
|
2173
|
-
return w(q) ===
|
|
2173
|
+
return w(q) === u;
|
|
2174
2174
|
}
|
|
2175
2175
|
function me(q) {
|
|
2176
2176
|
return w(q) === t;
|
|
@@ -2207,17 +2207,17 @@ function Uo(e, t, r) {
|
|
|
2207
2207
|
function Cf(e, t, r, n, a, o, i) {
|
|
2208
2208
|
e.current = n, t.current = a, r.current = !1, o.current && (o.current = null, i());
|
|
2209
2209
|
}
|
|
2210
|
-
function Sf(e, t, r, n, a, o, i, l, c,
|
|
2210
|
+
function Sf(e, t, r, n, a, o, i, l, c, p) {
|
|
2211
2211
|
if (e) {
|
|
2212
|
-
var
|
|
2213
|
-
if (!
|
|
2212
|
+
var u = !1, d = null, f = function() {
|
|
2213
|
+
if (!u) {
|
|
2214
2214
|
var b = t.getState(), h, m;
|
|
2215
2215
|
try {
|
|
2216
2216
|
h = n(b, a.current);
|
|
2217
2217
|
} catch (x) {
|
|
2218
|
-
m = x,
|
|
2218
|
+
m = x, d = x;
|
|
2219
2219
|
}
|
|
2220
|
-
m || (
|
|
2220
|
+
m || (d = null), h === o.current ? i.current || c() : (o.current = h, l.current = h, i.current = !0, p({
|
|
2221
2221
|
type: "STORE_UPDATED",
|
|
2222
2222
|
payload: {
|
|
2223
2223
|
error: m
|
|
@@ -2227,8 +2227,8 @@ function Sf(e, t, r, n, a, o, i, l, c, u) {
|
|
|
2227
2227
|
};
|
|
2228
2228
|
r.onStateChange = f, r.trySubscribe(), f();
|
|
2229
2229
|
var v = function() {
|
|
2230
|
-
if (
|
|
2231
|
-
throw
|
|
2230
|
+
if (u = !0, r.tryUnsubscribe(), r.onStateChange = null, d)
|
|
2231
|
+
throw d;
|
|
2232
2232
|
};
|
|
2233
2233
|
return v;
|
|
2234
2234
|
}
|
|
@@ -2240,7 +2240,7 @@ function jf(e, t) {
|
|
|
2240
2240
|
t === void 0 && (t = {});
|
|
2241
2241
|
var r = t, n = r.getDisplayName, a = n === void 0 ? function(C) {
|
|
2242
2242
|
return "ConnectAdvanced(" + C + ")";
|
|
2243
|
-
} : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l,
|
|
2243
|
+
} : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l, p = r.shouldHandleStateChanges, u = p === void 0 ? !0 : p, d = r.storeKey, f = d === void 0 ? "store" : d, v = r.withRef, g = v === void 0 ? !1 : v, b = r.forwardRef, h = b === void 0 ? !1 : b, m = r.context, x = m === void 0 ? ja : m, D = Jr(r, xf);
|
|
2244
2244
|
if (process.env.NODE_ENV !== "production") {
|
|
2245
2245
|
if (c !== void 0)
|
|
2246
2246
|
throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
|
|
@@ -2258,7 +2258,7 @@ function jf(e, t) {
|
|
|
2258
2258
|
getDisplayName: a,
|
|
2259
2259
|
methodName: i,
|
|
2260
2260
|
renderCountProp: c,
|
|
2261
|
-
shouldHandleStateChanges:
|
|
2261
|
+
shouldHandleStateChanges: u,
|
|
2262
2262
|
storeKey: f,
|
|
2263
2263
|
displayName: _,
|
|
2264
2264
|
wrappedComponentName: S,
|
|
@@ -2282,7 +2282,7 @@ function jf(e, t) {
|
|
|
2282
2282
|
var J = re ? I.store : ee.store, me = z(function() {
|
|
2283
2283
|
return G(J);
|
|
2284
2284
|
}, [J]), W = z(function() {
|
|
2285
|
-
if (!
|
|
2285
|
+
if (!u) return Df;
|
|
2286
2286
|
var ue = Xs(J, re ? null : ee.subscription), $e = ue.notifyNestedSubs.bind(ue);
|
|
2287
2287
|
return [ue, $e];
|
|
2288
2288
|
}, [J, re, ee]), ie = W[0], Se = W[1], q = z(function() {
|
|
@@ -2295,13 +2295,13 @@ function jf(e, t) {
|
|
|
2295
2295
|
var Re = U(), A = U(H), M = U(), K = U(!1), pe = E(function() {
|
|
2296
2296
|
return M.current && H === A.current ? M.current : me(J.getState(), H);
|
|
2297
2297
|
}, [J, Ee, H]);
|
|
2298
|
-
Uo(Cf, [A, Re, K, H, pe, M, Se]), Uo(Sf, [
|
|
2298
|
+
Uo(Cf, [A, Re, K, H, pe, M, Se]), Uo(Sf, [u, J, ie, me, A, Re, K, M, Se, de], [J, ie, me]);
|
|
2299
2299
|
var Ce = z(function() {
|
|
2300
2300
|
return /* @__PURE__ */ le.createElement(O, ne({}, pe, {
|
|
2301
2301
|
ref: te
|
|
2302
2302
|
}));
|
|
2303
2303
|
}, [te, O, pe]), ge = z(function() {
|
|
2304
|
-
return
|
|
2304
|
+
return u ? /* @__PURE__ */ le.createElement(oe.Provider, {
|
|
2305
2305
|
value: q
|
|
2306
2306
|
}, Ce) : Ce;
|
|
2307
2307
|
}, [oe, Ce, q]);
|
|
@@ -2376,13 +2376,13 @@ function zo(e) {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
function nl(e, t) {
|
|
2378
2378
|
return function(n, a) {
|
|
2379
|
-
var o = a.displayName, i = function(c,
|
|
2380
|
-
return i.dependsOnOwnProps ? i.mapToProps(c,
|
|
2379
|
+
var o = a.displayName, i = function(c, p) {
|
|
2380
|
+
return i.dependsOnOwnProps ? i.mapToProps(c, p) : i.mapToProps(c);
|
|
2381
2381
|
};
|
|
2382
|
-
return i.dependsOnOwnProps = !0, i.mapToProps = function(c,
|
|
2382
|
+
return i.dependsOnOwnProps = !0, i.mapToProps = function(c, p) {
|
|
2383
2383
|
i.mapToProps = e, i.dependsOnOwnProps = zo(e);
|
|
2384
|
-
var
|
|
2385
|
-
return typeof
|
|
2384
|
+
var u = i(c, p);
|
|
2385
|
+
return typeof u == "function" && (i.mapToProps = u, i.dependsOnOwnProps = zo(u), u = i(c, p)), process.env.NODE_ENV !== "production" && rl(u, o, t), u;
|
|
2386
2386
|
}, i;
|
|
2387
2387
|
};
|
|
2388
2388
|
}
|
|
@@ -2417,8 +2417,8 @@ function Mf(e, t, r) {
|
|
|
2417
2417
|
function Ff(e) {
|
|
2418
2418
|
return function(r, n) {
|
|
2419
2419
|
var a = n.displayName, o = n.pure, i = n.areMergedPropsEqual, l = !1, c;
|
|
2420
|
-
return function(
|
|
2421
|
-
var v = e(
|
|
2420
|
+
return function(u, d, f) {
|
|
2421
|
+
var v = e(u, d, f);
|
|
2422
2422
|
return l ? (!o || !i(v, c)) && (c = v) : (l = !0, c = v, process.env.NODE_ENV !== "production" && rl(c, a, "mergeProps")), c;
|
|
2423
2423
|
};
|
|
2424
2424
|
};
|
|
@@ -2447,23 +2447,23 @@ function Hf(e, t, r, n) {
|
|
|
2447
2447
|
};
|
|
2448
2448
|
}
|
|
2449
2449
|
function zf(e, t, r, n, a) {
|
|
2450
|
-
var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1, u, d,
|
|
2450
|
+
var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1, p, u, d, f, v;
|
|
2451
2451
|
function g(D, w) {
|
|
2452
|
-
return
|
|
2452
|
+
return p = D, u = w, d = e(p, u), f = t(n, u), v = r(d, f, u), c = !0, v;
|
|
2453
2453
|
}
|
|
2454
2454
|
function b() {
|
|
2455
|
-
return
|
|
2455
|
+
return d = e(p, u), t.dependsOnOwnProps && (f = t(n, u)), v = r(d, f, u), v;
|
|
2456
2456
|
}
|
|
2457
2457
|
function h() {
|
|
2458
|
-
return e.dependsOnOwnProps && (
|
|
2458
|
+
return e.dependsOnOwnProps && (d = e(p, u)), t.dependsOnOwnProps && (f = t(n, u)), v = r(d, f, u), v;
|
|
2459
2459
|
}
|
|
2460
2460
|
function m() {
|
|
2461
|
-
var D = e(
|
|
2462
|
-
return
|
|
2461
|
+
var D = e(p, u), w = !l(D, d);
|
|
2462
|
+
return d = D, w && (v = r(d, f, u)), v;
|
|
2463
2463
|
}
|
|
2464
2464
|
function x(D, w) {
|
|
2465
|
-
var y = !i(w,
|
|
2466
|
-
return
|
|
2465
|
+
var y = !i(w, u), C = !o(D, p, w, u);
|
|
2466
|
+
return p = D, u = w, y && C ? b() : y ? h() : C ? m() : v;
|
|
2467
2467
|
}
|
|
2468
2468
|
return function(w, y) {
|
|
2469
2469
|
return c ? x(w, y) : g(w, y);
|
|
@@ -2472,8 +2472,8 @@ function zf(e, t, r, n, a) {
|
|
|
2472
2472
|
function qf(e, t) {
|
|
2473
2473
|
var r = t.initMapStateToProps, n = t.initMapDispatchToProps, a = t.initMergeProps, o = Jr(t, Uf), i = r(e, o), l = n(e, o), c = a(e, o);
|
|
2474
2474
|
process.env.NODE_ENV !== "production" && Wf(i, l, c, o.displayName);
|
|
2475
|
-
var
|
|
2476
|
-
return
|
|
2475
|
+
var p = o.pure ? zf : Hf;
|
|
2476
|
+
return p(i, l, c, e, o);
|
|
2477
2477
|
}
|
|
2478
2478
|
var Yf = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
|
|
2479
2479
|
function An(e, t, r) {
|
|
@@ -2489,11 +2489,11 @@ function Kf(e, t) {
|
|
|
2489
2489
|
return e === t;
|
|
2490
2490
|
}
|
|
2491
2491
|
function Xf(e) {
|
|
2492
|
-
var t = {}, r = t.connectHOC, n = r === void 0 ? jf : r, a = t.mapStateToPropsFactories, o = a === void 0 ? Lf : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? Rf : i, c = t.mergePropsFactories,
|
|
2492
|
+
var t = {}, r = t.connectHOC, n = r === void 0 ? jf : r, a = t.mapStateToPropsFactories, o = a === void 0 ? Lf : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? Rf : i, c = t.mergePropsFactories, p = c === void 0 ? Gf : c, u = t.selectorFactory, d = u === void 0 ? qf : u;
|
|
2493
2493
|
return function(v, g, b, h) {
|
|
2494
2494
|
h === void 0 && (h = {});
|
|
2495
|
-
var m = h, x = m.pure, D = x === void 0 ? !0 : x, w = m.areStatesEqual, y = w === void 0 ? Kf : w, C = m.areOwnPropsEqual, O = C === void 0 ? On : C, S = m.areStatePropsEqual, _ = S === void 0 ? On : S, T = m.areMergedPropsEqual, k = T === void 0 ? On : T, G = Jr(m, Yf), E = An(v, o, "mapStateToProps"), V = An(g, l, "mapDispatchToProps"), X = An(b,
|
|
2496
|
-
return n(
|
|
2495
|
+
var m = h, x = m.pure, D = x === void 0 ? !0 : x, w = m.areStatesEqual, y = w === void 0 ? Kf : w, C = m.areOwnPropsEqual, O = C === void 0 ? On : C, S = m.areStatePropsEqual, _ = S === void 0 ? On : S, T = m.areMergedPropsEqual, k = T === void 0 ? On : T, G = Jr(m, Yf), E = An(v, o, "mapStateToProps"), V = An(g, l, "mapDispatchToProps"), X = An(b, p, "mergeProps");
|
|
2496
|
+
return n(d, ne({
|
|
2497
2497
|
// used in error messages
|
|
2498
2498
|
methodName: "connect",
|
|
2499
2499
|
// used to compute Connect's displayName from the wrapped component's displayName.
|
|
@@ -2593,12 +2593,12 @@ var rt = function(t) {
|
|
|
2593
2593
|
bottom: 0,
|
|
2594
2594
|
left: 0
|
|
2595
2595
|
}, Ta = function(t) {
|
|
2596
|
-
var r = t.borderBox, n = t.margin, a = n === void 0 ? Rn : n, o = t.border, i = o === void 0 ? Rn : o, l = t.padding, c = l === void 0 ? Rn : l,
|
|
2596
|
+
var r = t.borderBox, n = t.margin, a = n === void 0 ? Rn : n, o = t.border, i = o === void 0 ? Rn : o, l = t.padding, c = l === void 0 ? Rn : l, p = rt(Aa(r, a)), u = rt(Yo(r, i)), d = rt(Yo(u, c));
|
|
2597
2597
|
return {
|
|
2598
|
-
marginBox:
|
|
2598
|
+
marginBox: p,
|
|
2599
2599
|
borderBox: rt(r),
|
|
2600
|
-
paddingBox:
|
|
2601
|
-
contentBox:
|
|
2600
|
+
paddingBox: u,
|
|
2601
|
+
contentBox: d,
|
|
2602
2602
|
margin: a,
|
|
2603
2603
|
border: i,
|
|
2604
2604
|
padding: c
|
|
@@ -2742,8 +2742,8 @@ var pv = function(e) {
|
|
|
2742
2742
|
An error was caught by our window 'error' event listener while a drag was occurring.
|
|
2743
2743
|
The active drag has been aborted.
|
|
2744
2744
|
`));
|
|
2745
|
-
var
|
|
2746
|
-
|
|
2745
|
+
var p = l.error;
|
|
2746
|
+
p instanceof yr && (l.preventDefault(), process.env.NODE_ENV !== "production" && aa(p.message));
|
|
2747
2747
|
}, n.getCallbacks = function() {
|
|
2748
2748
|
if (!n.callbacks)
|
|
2749
2749
|
throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");
|
|
@@ -3018,24 +3018,24 @@ var mn = Be(function(e, t) {
|
|
|
3018
3018
|
at: h
|
|
3019
3019
|
});
|
|
3020
3020
|
}
|
|
3021
|
-
var c = o.displaced.all,
|
|
3021
|
+
var c = o.displaced.all, p = c.length ? c[0] : null;
|
|
3022
3022
|
if (t)
|
|
3023
|
-
return
|
|
3024
|
-
var
|
|
3025
|
-
if (!
|
|
3026
|
-
if (!
|
|
3023
|
+
return p ? l(p) : null;
|
|
3024
|
+
var u = mn(r, a);
|
|
3025
|
+
if (!p) {
|
|
3026
|
+
if (!u.length)
|
|
3027
3027
|
return null;
|
|
3028
|
-
var
|
|
3029
|
-
return l(
|
|
3028
|
+
var d = u[u.length - 1];
|
|
3029
|
+
return l(d.descriptor.id);
|
|
3030
3030
|
}
|
|
3031
|
-
var f = ka(
|
|
3032
|
-
return b.descriptor.id ===
|
|
3031
|
+
var f = ka(u, function(b) {
|
|
3032
|
+
return b.descriptor.id === p;
|
|
3033
3033
|
});
|
|
3034
3034
|
f === -1 && (process.env.NODE_ENV !== "production" ? N(!1, "Could not find displaced item in set") : N());
|
|
3035
3035
|
var v = f - 1;
|
|
3036
3036
|
if (v < 0)
|
|
3037
3037
|
return null;
|
|
3038
|
-
var g =
|
|
3038
|
+
var g = u[v];
|
|
3039
3039
|
return l(g.descriptor.id);
|
|
3040
3040
|
}, Zt = function(e, t) {
|
|
3041
3041
|
return e.descriptor.droppableId === t.descriptor.id;
|
|
@@ -3063,11 +3063,11 @@ var mn = Be(function(e, t) {
|
|
|
3063
3063
|
var o = t(n.top) || t(n.bottom), i = r(n.left) || r(n.right), l = o && i;
|
|
3064
3064
|
if (l)
|
|
3065
3065
|
return !0;
|
|
3066
|
-
var c = n.top < e.top && n.bottom > e.bottom,
|
|
3067
|
-
if (
|
|
3066
|
+
var c = n.top < e.top && n.bottom > e.bottom, p = n.left < e.left && n.right > e.right, u = c && p;
|
|
3067
|
+
if (u)
|
|
3068
3068
|
return !0;
|
|
3069
|
-
var
|
|
3070
|
-
return
|
|
3069
|
+
var d = c && i || p && o;
|
|
3070
|
+
return d;
|
|
3071
3071
|
};
|
|
3072
3072
|
}, Sv = function(e) {
|
|
3073
3073
|
var t = Qe(e.top, e.bottom), r = Qe(e.left, e.right);
|
|
@@ -3146,22 +3146,22 @@ function Rv(e, t) {
|
|
|
3146
3146
|
}
|
|
3147
3147
|
function Nr(e) {
|
|
3148
3148
|
var t = e.afterDragging, r = e.destination, n = e.displacedBy, a = e.viewport, o = e.forceShouldAnimate, i = e.last;
|
|
3149
|
-
return t.reduce(function(c,
|
|
3150
|
-
var
|
|
3151
|
-
c.all.push(
|
|
3149
|
+
return t.reduce(function(c, p) {
|
|
3150
|
+
var u = Rv(p, n), d = p.descriptor.id;
|
|
3151
|
+
c.all.push(d);
|
|
3152
3152
|
var f = Pv({
|
|
3153
|
-
target:
|
|
3153
|
+
target: u,
|
|
3154
3154
|
destination: r,
|
|
3155
3155
|
viewport: a,
|
|
3156
3156
|
withDroppableDisplacement: !0
|
|
3157
3157
|
});
|
|
3158
3158
|
if (!f)
|
|
3159
|
-
return c.invisible[
|
|
3160
|
-
var v = Tv(
|
|
3161
|
-
draggableId:
|
|
3159
|
+
return c.invisible[p.descriptor.id] = !0, c;
|
|
3160
|
+
var v = Tv(d, i, o), g = {
|
|
3161
|
+
draggableId: d,
|
|
3162
3162
|
shouldAnimate: v
|
|
3163
3163
|
};
|
|
3164
|
-
return c.visible[
|
|
3164
|
+
return c.visible[d] = g, c;
|
|
3165
3165
|
}, {
|
|
3166
3166
|
all: [],
|
|
3167
3167
|
visible: {},
|
|
@@ -3191,25 +3191,25 @@ function ti(e) {
|
|
|
3191
3191
|
};
|
|
3192
3192
|
}
|
|
3193
3193
|
function an(e) {
|
|
3194
|
-
var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate,
|
|
3194
|
+
var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate, p = Zt(t, n);
|
|
3195
3195
|
if (l == null)
|
|
3196
3196
|
return ti({
|
|
3197
3197
|
insideDestination: r,
|
|
3198
|
-
inHomeList:
|
|
3198
|
+
inHomeList: p,
|
|
3199
3199
|
displacedBy: o,
|
|
3200
3200
|
destination: n
|
|
3201
3201
|
});
|
|
3202
|
-
var
|
|
3202
|
+
var u = St(r, function(b) {
|
|
3203
3203
|
return b.descriptor.index === l;
|
|
3204
3204
|
});
|
|
3205
|
-
if (!
|
|
3205
|
+
if (!u)
|
|
3206
3206
|
return ti({
|
|
3207
3207
|
insideDestination: r,
|
|
3208
|
-
inHomeList:
|
|
3208
|
+
inHomeList: p,
|
|
3209
3209
|
displacedBy: o,
|
|
3210
3210
|
destination: n
|
|
3211
3211
|
});
|
|
3212
|
-
var
|
|
3212
|
+
var d = mn(t, r), f = r.indexOf(u), v = d.slice(f), g = Nr({
|
|
3213
3213
|
afterDragging: v,
|
|
3214
3214
|
destination: n,
|
|
3215
3215
|
displacedBy: o,
|
|
@@ -3236,31 +3236,31 @@ var Bv = function(e) {
|
|
|
3236
3236
|
var t = e.isMovingForward, r = e.destination, n = e.draggables, a = e.combine, o = e.afterCritical;
|
|
3237
3237
|
if (!r.isCombineEnabled)
|
|
3238
3238
|
return null;
|
|
3239
|
-
var i = a.draggableId, l = n[i], c = l.descriptor.index,
|
|
3240
|
-
return
|
|
3239
|
+
var i = a.draggableId, l = n[i], c = l.descriptor.index, p = Dt(i, o);
|
|
3240
|
+
return p ? t ? c : c - 1 : t ? c + 1 : c;
|
|
3241
3241
|
}, Lv = function(e) {
|
|
3242
3242
|
var t = e.isMovingForward, r = e.isInHomeList, n = e.insideDestination, a = e.location;
|
|
3243
3243
|
if (!n.length)
|
|
3244
3244
|
return null;
|
|
3245
|
-
var o = a.index, i = t ? o + 1 : o - 1, l = n[0].descriptor.index, c = n[n.length - 1].descriptor.index,
|
|
3246
|
-
return i < l || i >
|
|
3245
|
+
var o = a.index, i = t ? o + 1 : o - 1, l = n[0].descriptor.index, c = n[n.length - 1].descriptor.index, p = r ? c : c + 1;
|
|
3246
|
+
return i < l || i > p ? null : i;
|
|
3247
3247
|
}, Mv = function(e) {
|
|
3248
|
-
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,
|
|
3249
|
-
if (
|
|
3250
|
-
var
|
|
3248
|
+
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, u = l.at;
|
|
3249
|
+
if (u || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot move in direction without previous impact location") : N()), u.type === "REORDER") {
|
|
3250
|
+
var d = Lv({
|
|
3251
3251
|
isMovingForward: t,
|
|
3252
3252
|
isInHomeList: r,
|
|
3253
|
-
location:
|
|
3253
|
+
location: u.destination,
|
|
3254
3254
|
insideDestination: i
|
|
3255
3255
|
});
|
|
3256
|
-
return
|
|
3256
|
+
return d == null ? null : an({
|
|
3257
3257
|
draggable: n,
|
|
3258
3258
|
insideDestination: i,
|
|
3259
3259
|
destination: o,
|
|
3260
3260
|
viewport: c,
|
|
3261
3261
|
last: l.displaced,
|
|
3262
3262
|
displacedBy: l.displacedBy,
|
|
3263
|
-
index:
|
|
3263
|
+
index: d
|
|
3264
3264
|
});
|
|
3265
3265
|
}
|
|
3266
3266
|
var f = Bv({
|
|
@@ -3268,8 +3268,8 @@ var Bv = function(e) {
|
|
|
3268
3268
|
destination: o,
|
|
3269
3269
|
displaced: l.displaced,
|
|
3270
3270
|
draggables: a,
|
|
3271
|
-
combine:
|
|
3272
|
-
afterCritical:
|
|
3271
|
+
combine: u.combine,
|
|
3272
|
+
afterCritical: p
|
|
3273
3273
|
});
|
|
3274
3274
|
return f == null ? null : an({
|
|
3275
3275
|
draggable: n,
|
|
@@ -3316,16 +3316,16 @@ var Bv = function(e) {
|
|
|
3316
3316
|
moveInto: a.page,
|
|
3317
3317
|
isMoving: l
|
|
3318
3318
|
});
|
|
3319
|
-
var
|
|
3320
|
-
if (
|
|
3321
|
-
var f = n[
|
|
3322
|
-
if (Dt(
|
|
3319
|
+
var p = t.displaced, u = t.displacedBy, d = p.all[0];
|
|
3320
|
+
if (d) {
|
|
3321
|
+
var f = n[d];
|
|
3322
|
+
if (Dt(d, o))
|
|
3323
3323
|
return ni({
|
|
3324
3324
|
axis: c,
|
|
3325
3325
|
moveRelativeTo: f.page,
|
|
3326
3326
|
isMoving: l
|
|
3327
3327
|
});
|
|
3328
|
-
var v = en(f.page,
|
|
3328
|
+
var v = en(f.page, u.point);
|
|
3329
3329
|
return ni({
|
|
3330
3330
|
axis: c,
|
|
3331
3331
|
moveRelativeTo: v,
|
|
@@ -3401,33 +3401,33 @@ function Hv(e, t) {
|
|
|
3401
3401
|
return null;
|
|
3402
3402
|
}
|
|
3403
3403
|
var zv = function(e) {
|
|
3404
|
-
var t = e.impact, r = e.viewport, n = e.destination, a = e.draggables, o = e.maxScrollChange, i = yl(r, Me(r.scroll.current, o)), l = n.frame ? Ra(n, Me(n.frame.scroll.current, o)) : n, c = t.displaced,
|
|
3404
|
+
var t = e.impact, r = e.viewport, n = e.destination, a = e.draggables, o = e.maxScrollChange, i = yl(r, Me(r.scroll.current, o)), l = n.frame ? Ra(n, Me(n.frame.scroll.current, o)) : n, c = t.displaced, p = Nr({
|
|
3405
3405
|
afterDragging: ai(c.all, a),
|
|
3406
3406
|
destination: n,
|
|
3407
3407
|
displacedBy: t.displacedBy,
|
|
3408
3408
|
viewport: i.frame,
|
|
3409
3409
|
last: c,
|
|
3410
3410
|
forceShouldAnimate: !1
|
|
3411
|
-
}),
|
|
3411
|
+
}), u = Nr({
|
|
3412
3412
|
afterDragging: ai(c.all, a),
|
|
3413
3413
|
destination: l,
|
|
3414
3414
|
displacedBy: t.displacedBy,
|
|
3415
3415
|
viewport: r.frame,
|
|
3416
3416
|
last: c,
|
|
3417
3417
|
forceShouldAnimate: !1
|
|
3418
|
-
}),
|
|
3418
|
+
}), d = {}, f = {}, v = [c, p, u];
|
|
3419
3419
|
c.all.forEach(function(b) {
|
|
3420
3420
|
var h = Hv(b, v);
|
|
3421
3421
|
if (h) {
|
|
3422
3422
|
f[b] = h;
|
|
3423
3423
|
return;
|
|
3424
3424
|
}
|
|
3425
|
-
|
|
3425
|
+
d[b] = !0;
|
|
3426
3426
|
});
|
|
3427
3427
|
var g = ne({}, t, {
|
|
3428
3428
|
displaced: {
|
|
3429
3429
|
all: c.all,
|
|
3430
|
-
invisible:
|
|
3430
|
+
invisible: d,
|
|
3431
3431
|
visible: f
|
|
3432
3432
|
}
|
|
3433
3433
|
});
|
|
@@ -3438,33 +3438,33 @@ var zv = function(e) {
|
|
|
3438
3438
|
var t = e.pageBorderBoxCenter, r = e.draggable, n = e.viewport, a = qv(n, t), o = ze(a, r.page.borderBox.center);
|
|
3439
3439
|
return Me(r.client.borderBox.center, o);
|
|
3440
3440
|
}, wl = function(e) {
|
|
3441
|
-
var t = e.draggable, r = e.destination, n = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, i = e.onlyOnMainAxis, l = i === void 0 ? !1 : i, c = ze(n, t.page.borderBox.center),
|
|
3442
|
-
target:
|
|
3441
|
+
var t = e.draggable, r = e.destination, n = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, i = e.onlyOnMainAxis, l = i === void 0 ? !1 : i, c = ze(n, t.page.borderBox.center), p = Pr(t.page.borderBox, c), u = {
|
|
3442
|
+
target: p,
|
|
3443
3443
|
destination: r,
|
|
3444
3444
|
withDroppableDisplacement: o,
|
|
3445
3445
|
viewport: a
|
|
3446
3446
|
};
|
|
3447
|
-
return l ? Av(
|
|
3447
|
+
return l ? Av(u) : bl(u);
|
|
3448
3448
|
}, Yv = function(e) {
|
|
3449
|
-
var t = e.isMovingForward, r = e.draggable, n = e.destination, a = e.draggables, o = e.previousImpact, i = e.viewport, l = e.previousPageBorderBoxCenter, c = e.previousClientSelection,
|
|
3449
|
+
var t = e.isMovingForward, r = e.draggable, n = e.destination, a = e.draggables, o = e.previousImpact, i = e.viewport, l = e.previousPageBorderBoxCenter, c = e.previousClientSelection, p = e.afterCritical;
|
|
3450
3450
|
if (!n.isEnabled)
|
|
3451
3451
|
return null;
|
|
3452
|
-
var
|
|
3452
|
+
var u = Ft(n.descriptor.id, a), d = Zt(r, n), f = Ev({
|
|
3453
3453
|
isMovingForward: t,
|
|
3454
3454
|
draggable: r,
|
|
3455
3455
|
destination: n,
|
|
3456
|
-
insideDestination:
|
|
3456
|
+
insideDestination: u,
|
|
3457
3457
|
previousImpact: o
|
|
3458
3458
|
}) || Mv({
|
|
3459
3459
|
isMovingForward: t,
|
|
3460
|
-
isInHomeList:
|
|
3460
|
+
isInHomeList: d,
|
|
3461
3461
|
draggable: r,
|
|
3462
3462
|
draggables: a,
|
|
3463
3463
|
destination: n,
|
|
3464
|
-
insideDestination:
|
|
3464
|
+
insideDestination: u,
|
|
3465
3465
|
previousImpact: o,
|
|
3466
3466
|
viewport: i,
|
|
3467
|
-
afterCritical:
|
|
3467
|
+
afterCritical: p
|
|
3468
3468
|
});
|
|
3469
3469
|
if (!f)
|
|
3470
3470
|
return null;
|
|
@@ -3473,7 +3473,7 @@ var zv = function(e) {
|
|
|
3473
3473
|
draggable: r,
|
|
3474
3474
|
droppable: n,
|
|
3475
3475
|
draggables: a,
|
|
3476
|
-
afterCritical:
|
|
3476
|
+
afterCritical: p
|
|
3477
3477
|
}), g = wl({
|
|
3478
3478
|
draggable: r,
|
|
3479
3479
|
destination: n,
|
|
@@ -3513,39 +3513,39 @@ var zv = function(e) {
|
|
|
3513
3513
|
var t = e.isMovingForward, r = e.pageBorderBoxCenter, n = e.source, a = e.droppables, o = e.viewport, i = n.subject.active;
|
|
3514
3514
|
if (!i)
|
|
3515
3515
|
return null;
|
|
3516
|
-
var l = n.axis, c = Qe(i[l.start], i[l.end]),
|
|
3517
|
-
return
|
|
3518
|
-
}).filter(function(
|
|
3519
|
-
return
|
|
3520
|
-
}).filter(function(
|
|
3521
|
-
return !!
|
|
3522
|
-
}).filter(function(
|
|
3523
|
-
return ml(o.frame)(Ve(
|
|
3524
|
-
}).filter(function(
|
|
3525
|
-
var f = Ve(
|
|
3516
|
+
var l = n.axis, c = Qe(i[l.start], i[l.end]), p = vn(a).filter(function(d) {
|
|
3517
|
+
return d !== n;
|
|
3518
|
+
}).filter(function(d) {
|
|
3519
|
+
return d.isEnabled;
|
|
3520
|
+
}).filter(function(d) {
|
|
3521
|
+
return !!d.subject.active;
|
|
3522
|
+
}).filter(function(d) {
|
|
3523
|
+
return ml(o.frame)(Ve(d));
|
|
3524
|
+
}).filter(function(d) {
|
|
3525
|
+
var f = Ve(d);
|
|
3526
3526
|
return t ? i[l.crossAxisEnd] < f[l.crossAxisEnd] : f[l.crossAxisStart] < i[l.crossAxisStart];
|
|
3527
|
-
}).filter(function(
|
|
3528
|
-
var f = Ve(
|
|
3527
|
+
}).filter(function(d) {
|
|
3528
|
+
var f = Ve(d), v = Qe(f[l.start], f[l.end]);
|
|
3529
3529
|
return c(f[l.start]) || c(f[l.end]) || v(i[l.start]) || v(i[l.end]);
|
|
3530
|
-
}).sort(function(
|
|
3531
|
-
var v = Ve(
|
|
3530
|
+
}).sort(function(d, f) {
|
|
3531
|
+
var v = Ve(d)[l.crossAxisStart], g = Ve(f)[l.crossAxisStart];
|
|
3532
3532
|
return t ? v - g : g - v;
|
|
3533
|
-
}).filter(function(
|
|
3534
|
-
return Ve(
|
|
3533
|
+
}).filter(function(d, f, v) {
|
|
3534
|
+
return Ve(d)[l.crossAxisStart] === Ve(v[0])[l.crossAxisStart];
|
|
3535
3535
|
});
|
|
3536
|
-
if (!
|
|
3536
|
+
if (!p.length)
|
|
3537
3537
|
return null;
|
|
3538
|
-
if (
|
|
3539
|
-
return
|
|
3540
|
-
var
|
|
3541
|
-
var f = Qe(Ve(
|
|
3538
|
+
if (p.length === 1)
|
|
3539
|
+
return p[0];
|
|
3540
|
+
var u = p.filter(function(d) {
|
|
3541
|
+
var f = Qe(Ve(d)[l.start], Ve(d)[l.end]);
|
|
3542
3542
|
return f(r[l.line]);
|
|
3543
3543
|
});
|
|
3544
|
-
return
|
|
3545
|
-
return Ve(
|
|
3546
|
-
})[0] :
|
|
3547
|
-
var v = Zo(r, ei(Ve(
|
|
3548
|
-
return v !== g ? v - g : Ve(
|
|
3544
|
+
return u.length === 1 ? u[0] : u.length > 1 ? u.sort(function(d, f) {
|
|
3545
|
+
return Ve(d)[l.start] - Ve(f)[l.start];
|
|
3546
|
+
})[0] : p.sort(function(d, f) {
|
|
3547
|
+
var v = Zo(r, ei(Ve(d))), g = Zo(r, ei(Ve(f)));
|
|
3548
|
+
return v !== g ? v - g : Ve(d)[l.start] - Ve(f)[l.start];
|
|
3549
3549
|
})[0];
|
|
3550
3550
|
}, oi = function(t, r) {
|
|
3551
3551
|
var n = t.page.borderBox.center;
|
|
@@ -3562,8 +3562,8 @@ var zv = function(e) {
|
|
|
3562
3562
|
withDroppableDisplacement: !0
|
|
3563
3563
|
});
|
|
3564
3564
|
}).sort(function(l, c) {
|
|
3565
|
-
var
|
|
3566
|
-
return
|
|
3565
|
+
var p = wr(t, oa(n, oi(l, o))), u = wr(t, oa(n, oi(c, o)));
|
|
3566
|
+
return p < u ? -1 : u < p ? 1 : l.descriptor.index - c.descriptor.index;
|
|
3567
3567
|
});
|
|
3568
3568
|
return i[0] || null;
|
|
3569
3569
|
}, Ar = Be(function(t, r) {
|
|
@@ -3576,10 +3576,10 @@ var zv = function(e) {
|
|
|
3576
3576
|
var a = t.axis;
|
|
3577
3577
|
if (t.descriptor.mode === "virtual")
|
|
3578
3578
|
return Bt(a.line, r[a.line]);
|
|
3579
|
-
var o = t.subject.page.contentBox[a.size], i = Ft(t.descriptor.id, n), l = i.reduce(function(
|
|
3580
|
-
return
|
|
3581
|
-
}, 0), c = l + r[a.line],
|
|
3582
|
-
return
|
|
3579
|
+
var o = t.subject.page.contentBox[a.size], i = Ft(t.descriptor.id, n), l = i.reduce(function(u, d) {
|
|
3580
|
+
return u + d.client.marginBox[a.size];
|
|
3581
|
+
}, 0), c = l + r[a.line], p = c - o;
|
|
3582
|
+
return p <= 0 ? null : Bt(a.line, p);
|
|
3583
3583
|
}, Dl = function(t, r) {
|
|
3584
3584
|
return ne({}, t, {
|
|
3585
3585
|
scroll: ne({}, t.scroll, {
|
|
@@ -3605,15 +3605,15 @@ var zv = function(e) {
|
|
|
3605
3605
|
subject: c
|
|
3606
3606
|
});
|
|
3607
3607
|
}
|
|
3608
|
-
var
|
|
3608
|
+
var p = i ? Me(a.scroll.max, i) : a.scroll.max, u = Dl(a, p), d = zt({
|
|
3609
3609
|
page: t.subject.page,
|
|
3610
3610
|
withPlaceholder: l,
|
|
3611
3611
|
axis: t.axis,
|
|
3612
|
-
frame:
|
|
3612
|
+
frame: u
|
|
3613
3613
|
});
|
|
3614
3614
|
return ne({}, t, {
|
|
3615
|
-
subject:
|
|
3616
|
-
frame:
|
|
3615
|
+
subject: d,
|
|
3616
|
+
frame: u
|
|
3617
3617
|
});
|
|
3618
3618
|
}, Zv = function(t) {
|
|
3619
3619
|
var r = t.subject.withPlaceholder;
|
|
@@ -3647,7 +3647,7 @@ var zv = function(e) {
|
|
|
3647
3647
|
if (!r) {
|
|
3648
3648
|
if (n.length)
|
|
3649
3649
|
return null;
|
|
3650
|
-
var
|
|
3650
|
+
var p = {
|
|
3651
3651
|
displaced: Dr,
|
|
3652
3652
|
displacedBy: gl,
|
|
3653
3653
|
at: {
|
|
@@ -3657,21 +3657,21 @@ var zv = function(e) {
|
|
|
3657
3657
|
index: 0
|
|
3658
3658
|
}
|
|
3659
3659
|
}
|
|
3660
|
-
},
|
|
3661
|
-
impact:
|
|
3660
|
+
}, u = hn({
|
|
3661
|
+
impact: p,
|
|
3662
3662
|
draggable: a,
|
|
3663
3663
|
droppable: i,
|
|
3664
3664
|
draggables: o,
|
|
3665
3665
|
afterCritical: c
|
|
3666
|
-
}),
|
|
3666
|
+
}), d = Zt(a, i) ? i : Nl(i, a, o), f = wl({
|
|
3667
3667
|
draggable: a,
|
|
3668
|
-
destination:
|
|
3669
|
-
newPageBorderBoxCenter:
|
|
3668
|
+
destination: d,
|
|
3669
|
+
newPageBorderBoxCenter: u,
|
|
3670
3670
|
viewport: l.frame,
|
|
3671
3671
|
withDroppableDisplacement: !1,
|
|
3672
3672
|
onlyOnMainAxis: !0
|
|
3673
3673
|
});
|
|
3674
|
-
return f ?
|
|
3674
|
+
return f ? p : null;
|
|
3675
3675
|
}
|
|
3676
3676
|
var v = t[i.axis.line] <= r.page.borderBox.center[i.axis.line], g = function() {
|
|
3677
3677
|
var h = r.descriptor.index;
|
|
@@ -3687,28 +3687,28 @@ var zv = function(e) {
|
|
|
3687
3687
|
index: g
|
|
3688
3688
|
});
|
|
3689
3689
|
}, tg = function(e) {
|
|
3690
|
-
var t = e.isMovingForward, r = e.previousPageBorderBoxCenter, n = e.draggable, a = e.isOver, o = e.draggables, i = e.droppables, l = e.viewport, c = e.afterCritical,
|
|
3690
|
+
var t = e.isMovingForward, r = e.previousPageBorderBoxCenter, n = e.draggable, a = e.isOver, o = e.draggables, i = e.droppables, l = e.viewport, c = e.afterCritical, p = Kv({
|
|
3691
3691
|
isMovingForward: t,
|
|
3692
3692
|
pageBorderBoxCenter: r,
|
|
3693
3693
|
source: a,
|
|
3694
3694
|
droppables: i,
|
|
3695
3695
|
viewport: l
|
|
3696
3696
|
});
|
|
3697
|
-
if (!
|
|
3697
|
+
if (!p)
|
|
3698
3698
|
return null;
|
|
3699
|
-
var
|
|
3699
|
+
var u = Ft(p.descriptor.id, o), d = Jv({
|
|
3700
3700
|
pageBorderBoxCenter: r,
|
|
3701
3701
|
viewport: l,
|
|
3702
|
-
destination:
|
|
3703
|
-
insideDestination:
|
|
3702
|
+
destination: p,
|
|
3703
|
+
insideDestination: u,
|
|
3704
3704
|
afterCritical: c
|
|
3705
3705
|
}), f = eg({
|
|
3706
3706
|
previousPageBorderBoxCenter: r,
|
|
3707
|
-
destination:
|
|
3707
|
+
destination: p,
|
|
3708
3708
|
draggable: n,
|
|
3709
3709
|
draggables: o,
|
|
3710
|
-
moveRelativeTo:
|
|
3711
|
-
insideDestination:
|
|
3710
|
+
moveRelativeTo: d,
|
|
3711
|
+
insideDestination: u,
|
|
3712
3712
|
viewport: l,
|
|
3713
3713
|
afterCritical: c
|
|
3714
3714
|
});
|
|
@@ -3717,7 +3717,7 @@ var zv = function(e) {
|
|
|
3717
3717
|
var v = hn({
|
|
3718
3718
|
impact: f,
|
|
3719
3719
|
draggable: n,
|
|
3720
|
-
droppable:
|
|
3720
|
+
droppable: p,
|
|
3721
3721
|
draggables: o,
|
|
3722
3722
|
afterCritical: c
|
|
3723
3723
|
}), g = $a({
|
|
@@ -3740,11 +3740,11 @@ var zv = function(e) {
|
|
|
3740
3740
|
var t = e.state, r = e.type, n = rg(t.impact, t.dimensions.droppables), a = !!n, o = t.dimensions.droppables[t.critical.droppable.id], i = n || o, l = i.axis.direction, c = l === "vertical" && (r === "MOVE_UP" || r === "MOVE_DOWN") || l === "horizontal" && (r === "MOVE_LEFT" || r === "MOVE_RIGHT");
|
|
3741
3741
|
if (c && !a)
|
|
3742
3742
|
return null;
|
|
3743
|
-
var
|
|
3743
|
+
var p = r === "MOVE_DOWN" || r === "MOVE_RIGHT", u = t.dimensions.draggables[t.critical.draggable.id], d = t.current.page.borderBoxCenter, f = t.dimensions, v = f.draggables, g = f.droppables;
|
|
3744
3744
|
return c ? Yv({
|
|
3745
|
-
isMovingForward:
|
|
3746
|
-
previousPageBorderBoxCenter:
|
|
3747
|
-
draggable:
|
|
3745
|
+
isMovingForward: p,
|
|
3746
|
+
previousPageBorderBoxCenter: d,
|
|
3747
|
+
draggable: u,
|
|
3748
3748
|
destination: i,
|
|
3749
3749
|
draggables: v,
|
|
3750
3750
|
viewport: t.viewport,
|
|
@@ -3752,9 +3752,9 @@ var zv = function(e) {
|
|
|
3752
3752
|
previousImpact: t.impact,
|
|
3753
3753
|
afterCritical: t.afterCritical
|
|
3754
3754
|
}) : tg({
|
|
3755
|
-
isMovingForward:
|
|
3756
|
-
previousPageBorderBoxCenter:
|
|
3757
|
-
draggable:
|
|
3755
|
+
isMovingForward: p,
|
|
3756
|
+
previousPageBorderBoxCenter: d,
|
|
3757
|
+
draggable: u,
|
|
3758
3758
|
isOver: i,
|
|
3759
3759
|
draggables: v,
|
|
3760
3760
|
droppables: g,
|
|
@@ -3795,8 +3795,8 @@ function ig(e) {
|
|
|
3795
3795
|
return !1;
|
|
3796
3796
|
if (El(i)(t.center))
|
|
3797
3797
|
return !0;
|
|
3798
|
-
var l = o.axis, c = i.center[l.crossAxisLine],
|
|
3799
|
-
return !f && !v ? !0 : f ?
|
|
3798
|
+
var l = o.axis, c = i.center[l.crossAxisLine], p = t[l.crossAxisStart], u = t[l.crossAxisEnd], d = Qe(i[l.crossAxisStart], i[l.crossAxisEnd]), f = d(p), v = d(u);
|
|
3799
|
+
return !f && !v ? !0 : f ? p < c : u > c;
|
|
3800
3800
|
});
|
|
3801
3801
|
return a.length ? a.length === 1 ? a[0].descriptor.id : og({
|
|
3802
3802
|
pageBorderBox: t,
|
|
@@ -3819,12 +3819,12 @@ function lg(e) {
|
|
|
3819
3819
|
return r ? n && r.descriptor.index > t.descriptor.index ? r.descriptor.index - 1 : r.descriptor.index : null;
|
|
3820
3820
|
}
|
|
3821
3821
|
var cg = function(e) {
|
|
3822
|
-
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,
|
|
3822
|
+
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), u = p.value, d = t[c.start], f = t[c.end], v = mn(r, a), g = St(v, function(h) {
|
|
3823
3823
|
var m = h.descriptor.id, x = h.page.borderBox.center[c.line], D = Dt(m, l), w = Sl({
|
|
3824
3824
|
displaced: o,
|
|
3825
3825
|
id: m
|
|
3826
3826
|
});
|
|
3827
|
-
return D ? w ? f <= x :
|
|
3827
|
+
return D ? w ? f <= x : d < x - u : w ? f <= x + u : d < x;
|
|
3828
3828
|
}), b = lg({
|
|
3829
3829
|
draggable: r,
|
|
3830
3830
|
closest: g,
|
|
@@ -3836,19 +3836,19 @@ var cg = function(e) {
|
|
|
3836
3836
|
destination: n,
|
|
3837
3837
|
viewport: i,
|
|
3838
3838
|
last: o,
|
|
3839
|
-
displacedBy:
|
|
3839
|
+
displacedBy: p,
|
|
3840
3840
|
index: b
|
|
3841
3841
|
});
|
|
3842
3842
|
}, dg = 4, ug = function(e) {
|
|
3843
3843
|
var t = e.draggable, r = e.pageBorderBoxWithDroppableScroll, n = e.previousImpact, a = e.destination, o = e.insideDestination, i = e.afterCritical;
|
|
3844
3844
|
if (!a.isCombineEnabled)
|
|
3845
3845
|
return null;
|
|
3846
|
-
var l = a.axis, c = Ar(a.axis, t.displaceBy),
|
|
3846
|
+
var l = a.axis, c = Ar(a.axis, t.displaceBy), p = c.value, u = r[l.start], d = r[l.end], f = mn(t, o), v = St(f, function(b) {
|
|
3847
3847
|
var h = b.descriptor.id, m = b.page.borderBox, x = m[l.size], D = x / dg, w = Dt(h, i), y = Sl({
|
|
3848
3848
|
displaced: n.displaced,
|
|
3849
3849
|
id: h
|
|
3850
3850
|
});
|
|
3851
|
-
return w ? y ?
|
|
3851
|
+
return w ? y ? d > m[l.start] + D && d < m[l.end] - D : u > m[l.start] - p + D && u < m[l.end] - p - D : y ? d > m[l.start] + p + D && d < m[l.end] + p - D : u > m[l.start] + D && u < m[l.end] - D;
|
|
3852
3852
|
});
|
|
3853
3853
|
if (!v)
|
|
3854
3854
|
return null;
|
|
@@ -3865,26 +3865,26 @@ var cg = function(e) {
|
|
|
3865
3865
|
};
|
|
3866
3866
|
return g;
|
|
3867
3867
|
}, Il = function(e) {
|
|
3868
|
-
var t = e.pageOffset, r = e.draggable, n = e.draggables, a = e.droppables, o = e.previousImpact, i = e.viewport, l = e.afterCritical, c = Cl(r.page.borderBox, t),
|
|
3868
|
+
var t = e.pageOffset, r = e.draggable, n = e.draggables, a = e.droppables, o = e.previousImpact, i = e.viewport, l = e.afterCritical, c = Cl(r.page.borderBox, t), p = ig({
|
|
3869
3869
|
pageBorderBox: c,
|
|
3870
3870
|
draggable: r,
|
|
3871
3871
|
droppables: a
|
|
3872
3872
|
});
|
|
3873
|
-
if (!
|
|
3873
|
+
if (!p)
|
|
3874
3874
|
return Cv;
|
|
3875
|
-
var
|
|
3875
|
+
var u = a[p], d = Ft(u.descriptor.id, n), f = sg(u, c);
|
|
3876
3876
|
return ug({
|
|
3877
3877
|
pageBorderBoxWithDroppableScroll: f,
|
|
3878
3878
|
draggable: r,
|
|
3879
3879
|
previousImpact: o,
|
|
3880
|
-
destination:
|
|
3881
|
-
insideDestination:
|
|
3880
|
+
destination: u,
|
|
3881
|
+
insideDestination: d,
|
|
3882
3882
|
afterCritical: l
|
|
3883
3883
|
}) || cg({
|
|
3884
3884
|
pageBorderBoxWithDroppableScroll: f,
|
|
3885
3885
|
draggable: r,
|
|
3886
|
-
destination:
|
|
3887
|
-
insideDestination:
|
|
3886
|
+
destination: u,
|
|
3887
|
+
insideDestination: d,
|
|
3888
3888
|
last: o.displaced,
|
|
3889
3889
|
viewport: i,
|
|
3890
3890
|
afterCritical: l
|
|
@@ -3912,19 +3912,19 @@ var cg = function(e) {
|
|
|
3912
3912
|
var c = n[l];
|
|
3913
3913
|
if (Zt(t, c) || c.subject.withPlaceholder)
|
|
3914
3914
|
return i;
|
|
3915
|
-
var
|
|
3916
|
-
return Va(i,
|
|
3915
|
+
var p = Nl(c, t, r);
|
|
3916
|
+
return Va(i, p);
|
|
3917
3917
|
}, ur = function(e) {
|
|
3918
|
-
var t = e.state, r = e.clientSelection, n = e.dimensions, a = e.viewport, o = e.impact, i = e.scrollJumpRequest, l = a || t.viewport, c = n || t.dimensions,
|
|
3919
|
-
offset:
|
|
3920
|
-
selection:
|
|
3921
|
-
borderBoxCenter: Me(t.initial.client.borderBoxCenter,
|
|
3918
|
+
var t = e.state, r = e.clientSelection, n = e.dimensions, a = e.viewport, o = e.impact, i = e.scrollJumpRequest, l = a || t.viewport, c = n || t.dimensions, p = r || t.current.client.selection, u = ze(p, t.initial.client.selection), d = {
|
|
3919
|
+
offset: u,
|
|
3920
|
+
selection: p,
|
|
3921
|
+
borderBoxCenter: Me(t.initial.client.borderBoxCenter, u)
|
|
3922
3922
|
}, f = {
|
|
3923
|
-
selection: Me(
|
|
3924
|
-
borderBoxCenter: Me(
|
|
3925
|
-
offset: Me(
|
|
3923
|
+
selection: Me(d.selection, l.scroll.current),
|
|
3924
|
+
borderBoxCenter: Me(d.borderBoxCenter, l.scroll.current),
|
|
3925
|
+
offset: Me(d.offset, l.scroll.diff.value)
|
|
3926
3926
|
}, v = {
|
|
3927
|
-
client:
|
|
3927
|
+
client: d,
|
|
3928
3928
|
page: f
|
|
3929
3929
|
};
|
|
3930
3930
|
if (t.phase === "COLLECTING")
|
|
@@ -3995,17 +3995,17 @@ var jl = function(e) {
|
|
|
3995
3995
|
}, Ol = function(e) {
|
|
3996
3996
|
var t = e.state, r = e.dimensions, n = e.viewport;
|
|
3997
3997
|
t.movementMode !== "SNAP" && (process.env.NODE_ENV, N());
|
|
3998
|
-
var a = t.impact, o = n || t.viewport, i = r || t.dimensions, l = i.draggables, c = i.droppables,
|
|
3999
|
-
|
|
4000
|
-
var
|
|
3998
|
+
var a = t.impact, o = n || t.viewport, i = r || t.dimensions, l = i.draggables, c = i.droppables, p = l[t.critical.draggable.id], u = qe(a);
|
|
3999
|
+
u || (process.env.NODE_ENV !== "production" ? N(!1, "Must be over a destination in SNAP movement mode") : N());
|
|
4000
|
+
var d = c[u], f = jl({
|
|
4001
4001
|
impact: a,
|
|
4002
4002
|
viewport: o,
|
|
4003
|
-
destination:
|
|
4003
|
+
destination: d,
|
|
4004
4004
|
draggables: l
|
|
4005
4005
|
}), v = _l({
|
|
4006
4006
|
impact: f,
|
|
4007
|
-
draggable:
|
|
4008
|
-
droppable:
|
|
4007
|
+
draggable: p,
|
|
4008
|
+
droppable: d,
|
|
4009
4009
|
draggables: l,
|
|
4010
4010
|
viewport: o,
|
|
4011
4011
|
afterCritical: t.afterCritical
|
|
@@ -4025,13 +4025,13 @@ var jl = function(e) {
|
|
|
4025
4025
|
}, Pl = function(e) {
|
|
4026
4026
|
var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = Ar(r.axis, t.displaceBy), i = Ft(r.descriptor.id, n), l = i.indexOf(t);
|
|
4027
4027
|
l === -1 && (process.env.NODE_ENV !== "production" ? N(!1, "Expected draggable to be inside home list") : N());
|
|
4028
|
-
var c = i.slice(l + 1),
|
|
4028
|
+
var c = i.slice(l + 1), p = c.reduce(function(v, g) {
|
|
4029
4029
|
return v[g.descriptor.id] = !0, v;
|
|
4030
|
-
}, {}),
|
|
4030
|
+
}, {}), u = {
|
|
4031
4031
|
inVirtualList: r.descriptor.mode === "virtual",
|
|
4032
4032
|
displacedBy: o,
|
|
4033
|
-
effected:
|
|
4034
|
-
},
|
|
4033
|
+
effected: p
|
|
4034
|
+
}, d = Nr({
|
|
4035
4035
|
afterDragging: c,
|
|
4036
4036
|
destination: r,
|
|
4037
4037
|
displacedBy: o,
|
|
@@ -4039,7 +4039,7 @@ var jl = function(e) {
|
|
|
4039
4039
|
viewport: a.frame,
|
|
4040
4040
|
forceShouldAnimate: !1
|
|
4041
4041
|
}), f = {
|
|
4042
|
-
displaced:
|
|
4042
|
+
displaced: d,
|
|
4043
4043
|
displacedBy: o,
|
|
4044
4044
|
at: {
|
|
4045
4045
|
type: "REORDER",
|
|
@@ -4048,7 +4048,7 @@ var jl = function(e) {
|
|
|
4048
4048
|
};
|
|
4049
4049
|
return {
|
|
4050
4050
|
impact: f,
|
|
4051
|
-
afterCritical:
|
|
4051
|
+
afterCritical: u
|
|
4052
4052
|
};
|
|
4053
4053
|
}, mg = function(e, t) {
|
|
4054
4054
|
return {
|
|
@@ -4074,12 +4074,12 @@ var jl = function(e) {
|
|
|
4074
4074
|
}, xg = function(e) {
|
|
4075
4075
|
var t = e.additions, r = e.updatedDroppables, n = e.viewport, a = n.scroll.diff.value;
|
|
4076
4076
|
return t.map(function(o) {
|
|
4077
|
-
var i = o.descriptor.droppableId, l = r[i], c = bg(l),
|
|
4077
|
+
var i = o.descriptor.droppableId, l = r[i], c = bg(l), p = c.scroll.diff.value, u = Me(a, p), d = hg({
|
|
4078
4078
|
draggable: o,
|
|
4079
|
-
offset:
|
|
4079
|
+
offset: u,
|
|
4080
4080
|
initialWindowScroll: n.scroll.initial
|
|
4081
4081
|
});
|
|
4082
|
-
return
|
|
4082
|
+
return d;
|
|
4083
4083
|
});
|
|
4084
4084
|
}, yg = function(e) {
|
|
4085
4085
|
var t = e.state, r = e.published;
|
|
@@ -4098,12 +4098,12 @@ var jl = function(e) {
|
|
|
4098
4098
|
var l = {
|
|
4099
4099
|
droppables: a,
|
|
4100
4100
|
draggables: i
|
|
4101
|
-
}, c = qe(t.impact),
|
|
4102
|
-
draggable:
|
|
4103
|
-
home:
|
|
4101
|
+
}, c = qe(t.impact), p = c ? l.droppables[c] : null, u = l.draggables[t.critical.draggable.id], d = l.droppables[t.critical.droppable.id], f = Pl({
|
|
4102
|
+
draggable: u,
|
|
4103
|
+
home: d,
|
|
4104
4104
|
draggables: i,
|
|
4105
4105
|
viewport: t.viewport
|
|
4106
|
-
}), v = f.impact, g = f.afterCritical, b =
|
|
4106
|
+
}), v = f.impact, g = f.afterCritical, b = p && p.isCombineEnabled ? t.impact : v, h = Il({
|
|
4107
4107
|
pageOffset: t.current.page.offset,
|
|
4108
4108
|
draggable: l.draggables[t.critical.draggable.id],
|
|
4109
4109
|
draggables: l.draggables,
|
|
@@ -4163,22 +4163,22 @@ var ii = {
|
|
|
4163
4163
|
});
|
|
4164
4164
|
if (t.type === "INITIAL_PUBLISH") {
|
|
4165
4165
|
e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? N(!1, "INITIAL_PUBLISH must come after a IDLE phase") : N());
|
|
4166
|
-
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],
|
|
4166
|
+
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], u = {
|
|
4167
4167
|
selection: a,
|
|
4168
4168
|
borderBoxCenter: c.client.borderBox.center,
|
|
4169
4169
|
offset: Le
|
|
4170
|
-
},
|
|
4171
|
-
client:
|
|
4170
|
+
}, d = {
|
|
4171
|
+
client: u,
|
|
4172
4172
|
page: {
|
|
4173
|
-
selection: Me(
|
|
4174
|
-
borderBoxCenter: Me(
|
|
4175
|
-
offset: Me(
|
|
4173
|
+
selection: Me(u.selection, o.scroll.initial),
|
|
4174
|
+
borderBoxCenter: Me(u.selection, o.scroll.initial),
|
|
4175
|
+
offset: Me(u.selection, o.scroll.diff.value)
|
|
4176
4176
|
}
|
|
4177
4177
|
}, f = vn(i.droppables).every(function(q) {
|
|
4178
4178
|
return !q.isFixedOnPage;
|
|
4179
4179
|
}), v = Pl({
|
|
4180
4180
|
draggable: c,
|
|
4181
|
-
home:
|
|
4181
|
+
home: p,
|
|
4182
4182
|
draggables: i.draggables,
|
|
4183
4183
|
viewport: o
|
|
4184
4184
|
}), g = v.impact, b = v.afterCritical, h = {
|
|
@@ -4187,8 +4187,8 @@ var ii = {
|
|
|
4187
4187
|
critical: n,
|
|
4188
4188
|
movementMode: l,
|
|
4189
4189
|
dimensions: i,
|
|
4190
|
-
initial:
|
|
4191
|
-
current:
|
|
4190
|
+
initial: d,
|
|
4191
|
+
current: d,
|
|
4192
4192
|
isWindowScrollAllowed: f,
|
|
4193
4193
|
impact: g,
|
|
4194
4194
|
afterCritical: b,
|
|
@@ -4485,24 +4485,24 @@ var $g = function(e) {
|
|
|
4485
4485
|
a(o);
|
|
4486
4486
|
return;
|
|
4487
4487
|
}
|
|
4488
|
-
var i = o.payload, l = i.id, c = i.clientSelection,
|
|
4489
|
-
|
|
4490
|
-
completed:
|
|
4488
|
+
var i = o.payload, l = i.id, c = i.clientSelection, p = i.movementMode, u = r();
|
|
4489
|
+
u.phase === "DROP_ANIMATING" && n(Wa({
|
|
4490
|
+
completed: u.completed
|
|
4491
4491
|
})), r().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? N(!1, "Unexpected phase to start a drag") : N()), n(Ga()), n(Dg({
|
|
4492
4492
|
draggableId: l,
|
|
4493
|
-
movementMode:
|
|
4493
|
+
movementMode: p
|
|
4494
4494
|
}));
|
|
4495
|
-
var
|
|
4496
|
-
shouldPublishImmediately:
|
|
4495
|
+
var d = {
|
|
4496
|
+
shouldPublishImmediately: p === "SNAP"
|
|
4497
4497
|
}, f = {
|
|
4498
4498
|
draggableId: l,
|
|
4499
|
-
scrollOptions:
|
|
4499
|
+
scrollOptions: d
|
|
4500
4500
|
}, v = e.startPublishing(f), g = v.critical, b = v.dimensions, h = v.viewport;
|
|
4501
4501
|
Fg(g, b), n(Eg({
|
|
4502
4502
|
critical: g,
|
|
4503
4503
|
dimensions: b,
|
|
4504
4504
|
clientSelection: c,
|
|
4505
|
-
movementMode:
|
|
4505
|
+
movementMode: p,
|
|
4506
4506
|
viewport: h
|
|
4507
4507
|
}));
|
|
4508
4508
|
};
|
|
@@ -4557,14 +4557,14 @@ var $g = function(e) {
|
|
|
4557
4557
|
var o = a / li, i = la + Gg * o, l = n === "CANCEL" ? i * Wg : i;
|
|
4558
4558
|
return Number(l.toFixed(2));
|
|
4559
4559
|
}, Hg = function(e) {
|
|
4560
|
-
var t = e.impact, r = e.draggable, n = e.dimensions, a = e.viewport, o = e.afterCritical, i = n.draggables, l = n.droppables, c = qe(t),
|
|
4560
|
+
var t = e.impact, r = e.draggable, n = e.dimensions, a = e.viewport, o = e.afterCritical, i = n.draggables, l = n.droppables, c = qe(t), p = c ? l[c] : null, u = l[r.descriptor.droppableId], d = _l({
|
|
4561
4561
|
impact: t,
|
|
4562
4562
|
draggable: r,
|
|
4563
4563
|
draggables: i,
|
|
4564
4564
|
afterCritical: o,
|
|
4565
|
-
droppable:
|
|
4565
|
+
droppable: p || u,
|
|
4566
4566
|
viewport: a
|
|
4567
|
-
}), f = ze(
|
|
4567
|
+
}), f = ze(d, r.client.borderBox.center);
|
|
4568
4568
|
return f;
|
|
4569
4569
|
}, zg = function(e) {
|
|
4570
4570
|
var t = e.draggables, r = e.reason, n = e.lastImpact, a = e.home, o = e.viewport, i = e.onLiftImpact;
|
|
@@ -4611,7 +4611,7 @@ var $g = function(e) {
|
|
|
4611
4611
|
if (o.phase !== "IDLE") {
|
|
4612
4612
|
var l = o.phase === "DROP_PENDING" && o.isWaiting;
|
|
4613
4613
|
l && (process.env.NODE_ENV !== "production" ? N(!1, "A DROP action occurred while DROP_PENDING and still waiting") : N()), o.phase === "DRAGGING" || o.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot drop in phase: " + o.phase) : N());
|
|
4614
|
-
var c = o.critical,
|
|
4614
|
+
var c = o.critical, p = o.dimensions, u = p.draggables[o.critical.draggable.id], d = zg({
|
|
4615
4615
|
reason: i,
|
|
4616
4616
|
lastImpact: o.impact,
|
|
4617
4617
|
afterCritical: o.afterCritical,
|
|
@@ -4619,12 +4619,12 @@ var $g = function(e) {
|
|
|
4619
4619
|
home: o.dimensions.droppables[o.critical.droppable.id],
|
|
4620
4620
|
viewport: o.viewport,
|
|
4621
4621
|
draggables: o.dimensions.draggables
|
|
4622
|
-
}), f =
|
|
4622
|
+
}), f = d.impact, v = d.didDropInsideDroppable, g = v ? Ba(f) : null, b = v ? gn(f) : null, h = {
|
|
4623
4623
|
index: c.draggable.index,
|
|
4624
4624
|
droppableId: c.droppable.id
|
|
4625
4625
|
}, m = {
|
|
4626
|
-
draggableId:
|
|
4627
|
-
type:
|
|
4626
|
+
draggableId: u.descriptor.id,
|
|
4627
|
+
type: u.descriptor.type,
|
|
4628
4628
|
source: h,
|
|
4629
4629
|
reason: i,
|
|
4630
4630
|
mode: o.movementMode,
|
|
@@ -4632,8 +4632,8 @@ var $g = function(e) {
|
|
|
4632
4632
|
combine: b
|
|
4633
4633
|
}, x = Hg({
|
|
4634
4634
|
impact: f,
|
|
4635
|
-
draggable:
|
|
4636
|
-
dimensions:
|
|
4635
|
+
draggable: u,
|
|
4636
|
+
dimensions: p,
|
|
4637
4637
|
viewport: o.viewport,
|
|
4638
4638
|
afterCritical: o.afterCritical
|
|
4639
4639
|
}), D = {
|
|
@@ -4737,8 +4737,8 @@ var Xg = function(t) {
|
|
|
4737
4737
|
}, a;
|
|
4738
4738
|
}, Zg = function() {
|
|
4739
4739
|
var e = [], t = function(o) {
|
|
4740
|
-
var i = ka(e, function(
|
|
4741
|
-
return
|
|
4740
|
+
var i = ka(e, function(p) {
|
|
4741
|
+
return p.timerId === o;
|
|
4742
4742
|
});
|
|
4743
4743
|
i === -1 && (process.env.NODE_ENV !== "production" ? N(!1, "Could not find timer") : N());
|
|
4744
4744
|
var l = e.splice(i, 1), c = l[0];
|
|
@@ -4844,18 +4844,18 @@ var Xg = function(t) {
|
|
|
4844
4844
|
}
|
|
4845
4845
|
}, c = function() {
|
|
4846
4846
|
n || (process.env.NODE_ENV !== "production" ? N(!1, "Can only flush responders while dragging") : N()), r.flush();
|
|
4847
|
-
},
|
|
4847
|
+
}, p = function(f) {
|
|
4848
4848
|
n || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : N()), n = null, sr("onDragEnd", function() {
|
|
4849
4849
|
return Ln(e().onDragEnd, f, t, Yr.onDragEnd);
|
|
4850
4850
|
});
|
|
4851
|
-
},
|
|
4851
|
+
}, u = function() {
|
|
4852
4852
|
if (n) {
|
|
4853
4853
|
var f = ne({}, Fr(n.lastCritical, n.mode), {
|
|
4854
4854
|
combine: null,
|
|
4855
4855
|
destination: null,
|
|
4856
4856
|
reason: "CANCEL"
|
|
4857
4857
|
});
|
|
4858
|
-
|
|
4858
|
+
p(f);
|
|
4859
4859
|
}
|
|
4860
4860
|
};
|
|
4861
4861
|
return {
|
|
@@ -4864,8 +4864,8 @@ var Xg = function(t) {
|
|
|
4864
4864
|
start: i,
|
|
4865
4865
|
update: l,
|
|
4866
4866
|
flush: c,
|
|
4867
|
-
drop:
|
|
4868
|
-
abort:
|
|
4867
|
+
drop: p,
|
|
4868
|
+
abort: u
|
|
4869
4869
|
};
|
|
4870
4870
|
}, am = function(e, t) {
|
|
4871
4871
|
var r = nm(e, t);
|
|
@@ -5012,7 +5012,7 @@ function vm(e) {
|
|
|
5012
5012
|
var t = e.registry, r = e.callbacks, n = Mn(), a = null, o = function() {
|
|
5013
5013
|
a || (r.collectionStarting(), a = requestAnimationFrame(function() {
|
|
5014
5014
|
a = null, Tr();
|
|
5015
|
-
var
|
|
5015
|
+
var u = n, d = u.additions, f = u.removals, v = u.modified, g = Object.keys(d).map(function(m) {
|
|
5016
5016
|
return t.draggable.getById(m).getDimension(Le);
|
|
5017
5017
|
}).sort(function(m, x) {
|
|
5018
5018
|
return m.descriptor.index - x.descriptor.index;
|
|
@@ -5029,12 +5029,12 @@ function vm(e) {
|
|
|
5029
5029
|
};
|
|
5030
5030
|
n = Mn(), Rr(), r.publish(h);
|
|
5031
5031
|
}));
|
|
5032
|
-
}, i = function(
|
|
5033
|
-
var
|
|
5034
|
-
n.additions[
|
|
5035
|
-
}, l = function(
|
|
5036
|
-
var
|
|
5037
|
-
n.removals[
|
|
5032
|
+
}, i = function(u) {
|
|
5033
|
+
var d = u.descriptor.id;
|
|
5034
|
+
n.additions[d] = u, n.modified[u.descriptor.droppableId] = !0, n.removals[d] && delete n.removals[d], o();
|
|
5035
|
+
}, l = function(u) {
|
|
5036
|
+
var d = u.descriptor;
|
|
5037
|
+
n.removals[d.id] = !0, n.modified[d.droppableId] = !0, n.additions[d.id] && delete n.additions[d.id], o();
|
|
5038
5038
|
}, c = function() {
|
|
5039
5039
|
a && (cancelAnimationFrame(a), a = null, n = Mn());
|
|
5040
5040
|
};
|
|
@@ -5068,13 +5068,13 @@ var Ll = function(e) {
|
|
|
5068
5068
|
});
|
|
5069
5069
|
return t;
|
|
5070
5070
|
}, gm = function() {
|
|
5071
|
-
var e = Bl(), t = Fl(), r = e.y, n = e.x, a = Ml(), o = a.clientWidth, i = a.clientHeight, l = n + o, c = r + i,
|
|
5071
|
+
var e = Bl(), t = Fl(), r = e.y, n = e.x, a = Ml(), o = a.clientWidth, i = a.clientHeight, l = n + o, c = r + i, p = rt({
|
|
5072
5072
|
top: r,
|
|
5073
5073
|
left: n,
|
|
5074
5074
|
right: l,
|
|
5075
5075
|
bottom: c
|
|
5076
|
-
}),
|
|
5077
|
-
frame:
|
|
5076
|
+
}), u = {
|
|
5077
|
+
frame: p,
|
|
5078
5078
|
scroll: {
|
|
5079
5079
|
initial: e,
|
|
5080
5080
|
current: e,
|
|
@@ -5085,25 +5085,25 @@ var Ll = function(e) {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
}
|
|
5087
5087
|
};
|
|
5088
|
-
return
|
|
5088
|
+
return u;
|
|
5089
5089
|
}, mm = function(e) {
|
|
5090
5090
|
var t = e.critical, r = e.scrollOptions, n = e.registry;
|
|
5091
5091
|
Tr();
|
|
5092
|
-
var a = gm(), o = a.scroll.current, i = t.droppable, l = n.droppable.getAllByType(i.type).map(function(
|
|
5093
|
-
return
|
|
5094
|
-
}), c = n.draggable.getAllByType(t.draggable.type).map(function(
|
|
5095
|
-
return
|
|
5096
|
-
}),
|
|
5092
|
+
var a = gm(), o = a.scroll.current, i = t.droppable, l = n.droppable.getAllByType(i.type).map(function(d) {
|
|
5093
|
+
return d.callbacks.getDimensionAndWatchScroll(o, r);
|
|
5094
|
+
}), c = n.draggable.getAllByType(t.draggable.type).map(function(d) {
|
|
5095
|
+
return d.getDimension(o);
|
|
5096
|
+
}), p = {
|
|
5097
5097
|
draggables: vl(c),
|
|
5098
5098
|
droppables: fl(l)
|
|
5099
5099
|
};
|
|
5100
5100
|
Rr();
|
|
5101
|
-
var
|
|
5102
|
-
dimensions:
|
|
5101
|
+
var u = {
|
|
5102
|
+
dimensions: p,
|
|
5103
5103
|
critical: t,
|
|
5104
5104
|
viewport: a
|
|
5105
5105
|
};
|
|
5106
|
-
return
|
|
5106
|
+
return u;
|
|
5107
5107
|
};
|
|
5108
5108
|
function ci(e, t, r) {
|
|
5109
5109
|
if (r.descriptor.id === t.id || r.descriptor.type !== t.type)
|
|
@@ -5148,16 +5148,16 @@ var hm = function(e, t) {
|
|
|
5148
5148
|
return g.callbacks.dragStopped();
|
|
5149
5149
|
}), r.unsubscribe(), r = null;
|
|
5150
5150
|
}
|
|
5151
|
-
},
|
|
5151
|
+
}, p = function(v) {
|
|
5152
5152
|
r || (process.env.NODE_ENV !== "production" ? N(!1, "Should only be subscribed when a collection is occurring") : N());
|
|
5153
5153
|
var g = r.critical.draggable;
|
|
5154
5154
|
v.type === "ADDITION" && ci(e, g, v.value) && n.add(v.value), v.type === "REMOVAL" && ci(e, g, v.value) && n.remove(v.value);
|
|
5155
|
-
},
|
|
5155
|
+
}, u = function(v) {
|
|
5156
5156
|
r && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot start capturing critical dimensions as there is already a collection") : N());
|
|
5157
5157
|
var g = e.draggable.getById(v.draggableId), b = e.droppable.getById(g.descriptor.droppableId), h = {
|
|
5158
5158
|
draggable: g.descriptor,
|
|
5159
5159
|
droppable: b.descriptor
|
|
5160
|
-
}, m = e.subscribe(
|
|
5160
|
+
}, m = e.subscribe(p);
|
|
5161
5161
|
return r = {
|
|
5162
5162
|
critical: h,
|
|
5163
5163
|
unsubscribe: m
|
|
@@ -5166,15 +5166,15 @@ var hm = function(e, t) {
|
|
|
5166
5166
|
registry: e,
|
|
5167
5167
|
scrollOptions: v.scrollOptions
|
|
5168
5168
|
});
|
|
5169
|
-
},
|
|
5169
|
+
}, d = {
|
|
5170
5170
|
updateDroppableIsEnabled: a,
|
|
5171
5171
|
updateDroppableIsCombineEnabled: o,
|
|
5172
5172
|
scrollDroppable: l,
|
|
5173
5173
|
updateDroppableScroll: i,
|
|
5174
|
-
startPublishing:
|
|
5174
|
+
startPublishing: u,
|
|
5175
5175
|
stopPublishing: c
|
|
5176
5176
|
};
|
|
5177
|
-
return
|
|
5177
|
+
return d;
|
|
5178
5178
|
}, $l = function(e, t) {
|
|
5179
5179
|
return e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP";
|
|
5180
5180
|
}, bm = function(e) {
|
|
@@ -5290,18 +5290,18 @@ var hm = function(e, t) {
|
|
|
5290
5290
|
dragStartTime: t,
|
|
5291
5291
|
axis: hl,
|
|
5292
5292
|
shouldUseTimeDampening: o
|
|
5293
|
-
}),
|
|
5293
|
+
}), p = Sm({
|
|
5294
5294
|
x: c,
|
|
5295
5295
|
y: l
|
|
5296
5296
|
});
|
|
5297
|
-
if (xt(
|
|
5297
|
+
if (xt(p, Le))
|
|
5298
5298
|
return null;
|
|
5299
|
-
var
|
|
5299
|
+
var u = Cm({
|
|
5300
5300
|
container: r,
|
|
5301
5301
|
subject: n,
|
|
5302
|
-
proposedScroll:
|
|
5302
|
+
proposedScroll: p
|
|
5303
5303
|
});
|
|
5304
|
-
return
|
|
5304
|
+
return u ? xt(u, Le) ? null : u : null;
|
|
5305
5305
|
}, Im = ul(function(e) {
|
|
5306
5306
|
return e === 0 ? 0 : e > 0 ? 1 : -1;
|
|
5307
5307
|
}), qa = /* @__PURE__ */ function() {
|
|
@@ -5378,59 +5378,59 @@ var hm = function(e, t) {
|
|
|
5378
5378
|
}, vi = function(e) {
|
|
5379
5379
|
var t = e.state, r = e.dragStartTime, n = e.shouldUseTimeDampening, a = e.scrollWindow, o = e.scrollDroppable, i = t.current.page.borderBoxCenter, l = t.dimensions.draggables[t.critical.draggable.id], c = l.page.marginBox;
|
|
5380
5380
|
if (t.isWindowScrollAllowed) {
|
|
5381
|
-
var
|
|
5381
|
+
var p = t.viewport, u = Om({
|
|
5382
5382
|
dragStartTime: r,
|
|
5383
|
-
viewport:
|
|
5383
|
+
viewport: p,
|
|
5384
5384
|
subject: c,
|
|
5385
5385
|
center: i,
|
|
5386
5386
|
shouldUseTimeDampening: n
|
|
5387
5387
|
});
|
|
5388
|
-
if (
|
|
5389
|
-
a(
|
|
5388
|
+
if (u) {
|
|
5389
|
+
a(u);
|
|
5390
5390
|
return;
|
|
5391
5391
|
}
|
|
5392
5392
|
}
|
|
5393
|
-
var
|
|
5393
|
+
var d = wm({
|
|
5394
5394
|
center: i,
|
|
5395
5395
|
destination: qe(t.impact),
|
|
5396
5396
|
droppables: t.dimensions.droppables
|
|
5397
5397
|
});
|
|
5398
|
-
if (
|
|
5398
|
+
if (d) {
|
|
5399
5399
|
var f = Pm({
|
|
5400
5400
|
dragStartTime: r,
|
|
5401
|
-
droppable:
|
|
5401
|
+
droppable: d,
|
|
5402
5402
|
subject: c,
|
|
5403
5403
|
center: i,
|
|
5404
5404
|
shouldUseTimeDampening: n
|
|
5405
5405
|
});
|
|
5406
|
-
f && o(
|
|
5406
|
+
f && o(d.descriptor.id, f);
|
|
5407
5407
|
}
|
|
5408
5408
|
}, Am = function(e) {
|
|
5409
|
-
var t = e.scrollWindow, r = e.scrollDroppable, n = xr(t), a = xr(r), o = null, i = function(
|
|
5409
|
+
var t = e.scrollWindow, r = e.scrollDroppable, n = xr(t), a = xr(r), o = null, i = function(u) {
|
|
5410
5410
|
o || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot fluid scroll if not dragging") : N());
|
|
5411
|
-
var
|
|
5411
|
+
var d = o, f = d.shouldUseTimeDampening, v = d.dragStartTime;
|
|
5412
5412
|
vi({
|
|
5413
|
-
state:
|
|
5413
|
+
state: u,
|
|
5414
5414
|
scrollWindow: n,
|
|
5415
5415
|
scrollDroppable: a,
|
|
5416
5416
|
dragStartTime: v,
|
|
5417
5417
|
shouldUseTimeDampening: f
|
|
5418
5418
|
});
|
|
5419
|
-
}, l = function(
|
|
5419
|
+
}, l = function(u) {
|
|
5420
5420
|
Tr(), o && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot start auto scrolling when already started") : N());
|
|
5421
|
-
var
|
|
5421
|
+
var d = Date.now(), f = !1, v = function() {
|
|
5422
5422
|
f = !0;
|
|
5423
5423
|
};
|
|
5424
5424
|
vi({
|
|
5425
|
-
state:
|
|
5425
|
+
state: u,
|
|
5426
5426
|
dragStartTime: 0,
|
|
5427
5427
|
shouldUseTimeDampening: !1,
|
|
5428
5428
|
scrollWindow: v,
|
|
5429
5429
|
scrollDroppable: v
|
|
5430
5430
|
}), o = {
|
|
5431
|
-
dragStartTime:
|
|
5431
|
+
dragStartTime: d,
|
|
5432
5432
|
shouldUseTimeDampening: f
|
|
5433
|
-
}, Rr(), f && i(
|
|
5433
|
+
}, Rr(), f && i(u);
|
|
5434
5434
|
}, c = function() {
|
|
5435
5435
|
o && (n.cancel(), a.cancel(), o = null);
|
|
5436
5436
|
};
|
|
@@ -5440,40 +5440,40 @@ var hm = function(e, t) {
|
|
|
5440
5440
|
scroll: i
|
|
5441
5441
|
};
|
|
5442
5442
|
}, Tm = function(e) {
|
|
5443
|
-
var t = e.move, r = e.scrollDroppable, n = e.scrollWindow, a = function(
|
|
5444
|
-
var
|
|
5443
|
+
var t = e.move, r = e.scrollDroppable, n = e.scrollWindow, a = function(p, u) {
|
|
5444
|
+
var d = Me(p.current.client.selection, u);
|
|
5445
5445
|
t({
|
|
5446
|
-
client:
|
|
5446
|
+
client: d
|
|
5447
5447
|
});
|
|
5448
|
-
}, o = function(
|
|
5449
|
-
if (!Ka(
|
|
5450
|
-
return
|
|
5451
|
-
var
|
|
5452
|
-
if (!
|
|
5453
|
-
return r(
|
|
5454
|
-
var f = ze(
|
|
5455
|
-
r(
|
|
5456
|
-
var v = ze(
|
|
5448
|
+
}, o = function(p, u) {
|
|
5449
|
+
if (!Ka(p, u))
|
|
5450
|
+
return u;
|
|
5451
|
+
var d = _m(p, u);
|
|
5452
|
+
if (!d)
|
|
5453
|
+
return r(p.descriptor.id, u), null;
|
|
5454
|
+
var f = ze(u, d);
|
|
5455
|
+
r(p.descriptor.id, f);
|
|
5456
|
+
var v = ze(u, f);
|
|
5457
5457
|
return v;
|
|
5458
|
-
}, i = function(u, d
|
|
5459
|
-
if (!
|
|
5460
|
-
return
|
|
5461
|
-
var f = jm(
|
|
5458
|
+
}, i = function(p, u, d) {
|
|
5459
|
+
if (!p || !Ya(u, d))
|
|
5460
|
+
return d;
|
|
5461
|
+
var f = jm(u, d);
|
|
5462
5462
|
if (!f)
|
|
5463
|
-
return n(
|
|
5464
|
-
var v = ze(
|
|
5463
|
+
return n(d), null;
|
|
5464
|
+
var v = ze(d, f);
|
|
5465
5465
|
n(v);
|
|
5466
|
-
var g = ze(
|
|
5466
|
+
var g = ze(d, v);
|
|
5467
5467
|
return g;
|
|
5468
|
-
}, l = function(
|
|
5469
|
-
var
|
|
5470
|
-
if (
|
|
5471
|
-
var
|
|
5472
|
-
|
|
5473
|
-
var f = o(
|
|
5468
|
+
}, l = function(p) {
|
|
5469
|
+
var u = p.scrollJumpRequest;
|
|
5470
|
+
if (u) {
|
|
5471
|
+
var d = qe(p.impact);
|
|
5472
|
+
d || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot perform a jump scroll when there is no destination") : N());
|
|
5473
|
+
var f = o(p.dimensions.droppables[d], u);
|
|
5474
5474
|
if (f) {
|
|
5475
|
-
var v =
|
|
5476
|
-
g && a(
|
|
5475
|
+
var v = p.viewport, g = i(p.isWindowScrollAllowed, v, f);
|
|
5476
|
+
g && a(p, g);
|
|
5477
5477
|
}
|
|
5478
5478
|
}
|
|
5479
5479
|
};
|
|
@@ -5486,13 +5486,13 @@ var hm = function(e, t) {
|
|
|
5486
5486
|
move: n,
|
|
5487
5487
|
scrollWindow: r,
|
|
5488
5488
|
scrollDroppable: t
|
|
5489
|
-
}), i = function(
|
|
5490
|
-
if (
|
|
5491
|
-
if (
|
|
5492
|
-
a.scroll(
|
|
5489
|
+
}), i = function(p) {
|
|
5490
|
+
if (p.phase === "DRAGGING") {
|
|
5491
|
+
if (p.movementMode === "FLUID") {
|
|
5492
|
+
a.scroll(p);
|
|
5493
5493
|
return;
|
|
5494
5494
|
}
|
|
5495
|
-
|
|
5495
|
+
p.scrollJumpRequest && o(p);
|
|
5496
5496
|
}
|
|
5497
5497
|
}, l = {
|
|
5498
5498
|
scroll: i,
|
|
@@ -5599,17 +5599,17 @@ var hm = function(e, t) {
|
|
|
5599
5599
|
function Fm(e, t) {
|
|
5600
5600
|
var r = ve(function() {
|
|
5601
5601
|
return Mm(e);
|
|
5602
|
-
}, [e]), n = U(null), a = U(null), o = Z(Be(function(
|
|
5602
|
+
}, [e]), n = U(null), a = U(null), o = Z(Be(function(d) {
|
|
5603
5603
|
var f = a.current;
|
|
5604
|
-
f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot set dynamic style element if it is not set") : N()), f.textContent =
|
|
5605
|
-
}), []), i = Z(function(
|
|
5604
|
+
f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot set dynamic style element if it is not set") : N()), f.textContent = d;
|
|
5605
|
+
}), []), i = Z(function(d) {
|
|
5606
5606
|
var f = n.current;
|
|
5607
|
-
f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot set dynamic style element if it is not set") : N()), f.textContent =
|
|
5607
|
+
f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot set dynamic style element if it is not set") : N()), f.textContent = d;
|
|
5608
5608
|
}, []);
|
|
5609
5609
|
Ye(function() {
|
|
5610
5610
|
!n.current && !a.current || (process.env.NODE_ENV !== "production" ? N(!1, "style elements already mounted") : N());
|
|
5611
|
-
var
|
|
5612
|
-
return n.current =
|
|
5611
|
+
var d = mi(t), f = mi(t);
|
|
5612
|
+
return n.current = d, a.current = f, d.setAttribute(qt + "-always", e), f.setAttribute(qt + "-dynamic", e), Fn().appendChild(d), Fn().appendChild(f), i(r.always), o(r.resting), function() {
|
|
5613
5613
|
var v = function(b) {
|
|
5614
5614
|
var h = b.current;
|
|
5615
5615
|
h || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot unmount ref as it is not set") : N()), Fn().removeChild(h), b.current = null;
|
|
@@ -5619,22 +5619,22 @@ function Fm(e, t) {
|
|
|
5619
5619
|
}, [t, i, o, r.always, r.resting, e]);
|
|
5620
5620
|
var l = Z(function() {
|
|
5621
5621
|
return o(r.dragging);
|
|
5622
|
-
}, [o, r.dragging]), c = Z(function(
|
|
5623
|
-
if (
|
|
5622
|
+
}, [o, r.dragging]), c = Z(function(d) {
|
|
5623
|
+
if (d === "DROP") {
|
|
5624
5624
|
o(r.dropAnimating);
|
|
5625
5625
|
return;
|
|
5626
5626
|
}
|
|
5627
5627
|
o(r.userCancel);
|
|
5628
|
-
}, [o, r.dropAnimating, r.userCancel]),
|
|
5628
|
+
}, [o, r.dropAnimating, r.userCancel]), p = Z(function() {
|
|
5629
5629
|
a.current && o(r.resting);
|
|
5630
|
-
}, [o, r.resting]),
|
|
5630
|
+
}, [o, r.resting]), u = ve(function() {
|
|
5631
5631
|
return {
|
|
5632
5632
|
dragging: l,
|
|
5633
5633
|
dropping: c,
|
|
5634
|
-
resting:
|
|
5634
|
+
resting: p
|
|
5635
5635
|
};
|
|
5636
|
-
}, [l, c,
|
|
5637
|
-
return
|
|
5636
|
+
}, [l, c, p]);
|
|
5637
|
+
return u;
|
|
5638
5638
|
}
|
|
5639
5639
|
var Ul = function(e) {
|
|
5640
5640
|
return e && e.ownerDocument ? e.ownerDocument.defaultView : window;
|
|
@@ -5672,7 +5672,7 @@ function $m(e) {
|
|
|
5672
5672
|
var f = r.current;
|
|
5673
5673
|
f && i(f);
|
|
5674
5674
|
}));
|
|
5675
|
-
}, [i]),
|
|
5675
|
+
}, [i]), p = Z(function(f) {
|
|
5676
5676
|
r.current = null;
|
|
5677
5677
|
var v = document.activeElement;
|
|
5678
5678
|
v && v.getAttribute(Yt.draggableId) === f && (r.current = f);
|
|
@@ -5684,38 +5684,38 @@ function $m(e) {
|
|
|
5684
5684
|
f && cancelAnimationFrame(f);
|
|
5685
5685
|
};
|
|
5686
5686
|
}, []);
|
|
5687
|
-
var
|
|
5687
|
+
var u = ve(function() {
|
|
5688
5688
|
return {
|
|
5689
5689
|
register: o,
|
|
5690
|
-
tryRecordFocus:
|
|
5690
|
+
tryRecordFocus: p,
|
|
5691
5691
|
tryRestoreFocusRecorded: c,
|
|
5692
5692
|
tryShiftRecord: l
|
|
5693
5693
|
};
|
|
5694
|
-
}, [o,
|
|
5695
|
-
return
|
|
5694
|
+
}, [o, p, c, l]);
|
|
5695
|
+
return u;
|
|
5696
5696
|
}
|
|
5697
5697
|
function Vm() {
|
|
5698
5698
|
var e = {
|
|
5699
5699
|
draggables: {},
|
|
5700
5700
|
droppables: {}
|
|
5701
5701
|
}, t = [];
|
|
5702
|
-
function r(
|
|
5703
|
-
return t.push(
|
|
5704
|
-
var v = t.indexOf(
|
|
5702
|
+
function r(d) {
|
|
5703
|
+
return t.push(d), function() {
|
|
5704
|
+
var v = t.indexOf(d);
|
|
5705
5705
|
v !== -1 && t.splice(v, 1);
|
|
5706
5706
|
};
|
|
5707
5707
|
}
|
|
5708
|
-
function n(
|
|
5708
|
+
function n(d) {
|
|
5709
5709
|
t.length && t.forEach(function(f) {
|
|
5710
|
-
return f(
|
|
5710
|
+
return f(d);
|
|
5711
5711
|
});
|
|
5712
5712
|
}
|
|
5713
|
-
function a(
|
|
5714
|
-
return e.draggables[
|
|
5713
|
+
function a(d) {
|
|
5714
|
+
return e.draggables[d] || null;
|
|
5715
5715
|
}
|
|
5716
|
-
function o(
|
|
5717
|
-
var f = a(
|
|
5718
|
-
return f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find draggable entry with id [" +
|
|
5716
|
+
function o(d) {
|
|
5717
|
+
var f = a(d);
|
|
5718
|
+
return f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find draggable entry with id [" + d + "]") : N()), f;
|
|
5719
5719
|
}
|
|
5720
5720
|
var i = {
|
|
5721
5721
|
register: function(f) {
|
|
@@ -5746,14 +5746,14 @@ function Vm() {
|
|
|
5746
5746
|
});
|
|
5747
5747
|
}
|
|
5748
5748
|
};
|
|
5749
|
-
function l(
|
|
5750
|
-
return e.droppables[
|
|
5749
|
+
function l(d) {
|
|
5750
|
+
return e.droppables[d] || null;
|
|
5751
5751
|
}
|
|
5752
|
-
function c(
|
|
5753
|
-
var f = l(
|
|
5754
|
-
return f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find droppable entry with id [" +
|
|
5752
|
+
function c(d) {
|
|
5753
|
+
var f = l(d);
|
|
5754
|
+
return f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find droppable entry with id [" + d + "]") : N()), f;
|
|
5755
5755
|
}
|
|
5756
|
-
var
|
|
5756
|
+
var p = {
|
|
5757
5757
|
register: function(f) {
|
|
5758
5758
|
e.droppables[f.descriptor.id] = f;
|
|
5759
5759
|
},
|
|
@@ -5772,14 +5772,14 @@ function Vm() {
|
|
|
5772
5772
|
});
|
|
5773
5773
|
}
|
|
5774
5774
|
};
|
|
5775
|
-
function
|
|
5775
|
+
function u() {
|
|
5776
5776
|
e.draggables = {}, e.droppables = {}, t.length = 0;
|
|
5777
5777
|
}
|
|
5778
5778
|
return {
|
|
5779
5779
|
draggable: i,
|
|
5780
|
-
droppable:
|
|
5780
|
+
droppable: p,
|
|
5781
5781
|
subscribe: r,
|
|
5782
|
-
clean:
|
|
5782
|
+
clean: u
|
|
5783
5783
|
};
|
|
5784
5784
|
}
|
|
5785
5785
|
function Gm() {
|
|
@@ -5996,21 +5996,21 @@ function gh(e) {
|
|
|
5996
5996
|
return [{
|
|
5997
5997
|
eventName: "mousemove",
|
|
5998
5998
|
fn: function(i) {
|
|
5999
|
-
var l = i.button, c = i.clientX,
|
|
5999
|
+
var l = i.button, c = i.clientX, p = i.clientY;
|
|
6000
6000
|
if (l === Yl) {
|
|
6001
|
-
var
|
|
6001
|
+
var u = {
|
|
6002
6002
|
x: c,
|
|
6003
|
-
y:
|
|
6004
|
-
},
|
|
6005
|
-
if (
|
|
6006
|
-
i.preventDefault(),
|
|
6003
|
+
y: p
|
|
6004
|
+
}, d = n();
|
|
6005
|
+
if (d.type === "DRAGGING") {
|
|
6006
|
+
i.preventDefault(), d.actions.move(u);
|
|
6007
6007
|
return;
|
|
6008
6008
|
}
|
|
6009
|
-
|
|
6010
|
-
var f =
|
|
6011
|
-
if (vh(f,
|
|
6009
|
+
d.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot be IDLE") : N());
|
|
6010
|
+
var f = d.point;
|
|
6011
|
+
if (vh(f, u)) {
|
|
6012
6012
|
i.preventDefault();
|
|
6013
|
-
var v =
|
|
6013
|
+
var v = d.actions.fluidLift(u);
|
|
6014
6014
|
a({
|
|
6015
6015
|
type: "DRAGGING",
|
|
6016
6016
|
actions: v
|
|
@@ -6080,20 +6080,20 @@ function mh(e) {
|
|
|
6080
6080
|
var t = U(xi), r = U(bt), n = ve(function() {
|
|
6081
6081
|
return {
|
|
6082
6082
|
eventName: "mousedown",
|
|
6083
|
-
fn: function(
|
|
6084
|
-
if (!
|
|
6085
|
-
var f = e.findClosestDraggableId(
|
|
6083
|
+
fn: function(d) {
|
|
6084
|
+
if (!d.defaultPrevented && d.button === Yl && !(d.ctrlKey || d.metaKey || d.shiftKey || d.altKey)) {
|
|
6085
|
+
var f = e.findClosestDraggableId(d);
|
|
6086
6086
|
if (f) {
|
|
6087
6087
|
var v = e.tryGetLock(f, i, {
|
|
6088
|
-
sourceEvent:
|
|
6088
|
+
sourceEvent: d
|
|
6089
6089
|
});
|
|
6090
6090
|
if (v) {
|
|
6091
|
-
|
|
6091
|
+
d.preventDefault();
|
|
6092
6092
|
var g = {
|
|
6093
|
-
x:
|
|
6094
|
-
y:
|
|
6093
|
+
x: d.clientX,
|
|
6094
|
+
y: d.clientY
|
|
6095
6095
|
};
|
|
6096
|
-
r.current(),
|
|
6096
|
+
r.current(), p(v, g);
|
|
6097
6097
|
}
|
|
6098
6098
|
}
|
|
6099
6099
|
}
|
|
@@ -6102,32 +6102,32 @@ function mh(e) {
|
|
|
6102
6102
|
}, [e]), a = ve(function() {
|
|
6103
6103
|
return {
|
|
6104
6104
|
eventName: "webkitmouseforcewillbegin",
|
|
6105
|
-
fn: function(
|
|
6106
|
-
if (!
|
|
6107
|
-
var f = e.findClosestDraggableId(
|
|
6105
|
+
fn: function(d) {
|
|
6106
|
+
if (!d.defaultPrevented) {
|
|
6107
|
+
var f = e.findClosestDraggableId(d);
|
|
6108
6108
|
if (f) {
|
|
6109
6109
|
var v = e.findOptionsForDraggable(f);
|
|
6110
|
-
v && (v.shouldRespectForcePress || e.canGetLock(f) &&
|
|
6110
|
+
v && (v.shouldRespectForcePress || e.canGetLock(f) && d.preventDefault());
|
|
6111
6111
|
}
|
|
6112
6112
|
}
|
|
6113
6113
|
}
|
|
6114
6114
|
};
|
|
6115
6115
|
}, [e]), o = Z(function() {
|
|
6116
|
-
var
|
|
6116
|
+
var d = {
|
|
6117
6117
|
passive: !1,
|
|
6118
6118
|
capture: !0
|
|
6119
6119
|
};
|
|
6120
|
-
r.current = Je(window, [a, n],
|
|
6120
|
+
r.current = Je(window, [a, n], d);
|
|
6121
6121
|
}, [a, n]), i = Z(function() {
|
|
6122
|
-
var
|
|
6123
|
-
|
|
6122
|
+
var u = t.current;
|
|
6123
|
+
u.type !== "IDLE" && (t.current = xi, r.current(), o());
|
|
6124
6124
|
}, [o]), l = Z(function() {
|
|
6125
|
-
var
|
|
6126
|
-
i(),
|
|
6125
|
+
var u = t.current;
|
|
6126
|
+
i(), u.type === "DRAGGING" && u.actions.cancel({
|
|
6127
6127
|
shouldBlockNextClick: !0
|
|
6128
|
-
}),
|
|
6128
|
+
}), u.type === "PENDING" && u.actions.abort();
|
|
6129
6129
|
}, [i]), c = Z(function() {
|
|
6130
|
-
var
|
|
6130
|
+
var d = {
|
|
6131
6131
|
capture: !0,
|
|
6132
6132
|
passive: !1
|
|
6133
6133
|
}, f = gh({
|
|
@@ -6140,12 +6140,12 @@ function mh(e) {
|
|
|
6140
6140
|
t.current = g;
|
|
6141
6141
|
}
|
|
6142
6142
|
});
|
|
6143
|
-
r.current = Je(window, f,
|
|
6144
|
-
}, [l, i]),
|
|
6143
|
+
r.current = Je(window, f, d);
|
|
6144
|
+
}, [l, i]), p = Z(function(d, f) {
|
|
6145
6145
|
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? N(!1, "Expected to move from IDLE to PENDING drag") : N()), t.current = {
|
|
6146
6146
|
type: "PENDING",
|
|
6147
6147
|
point: f,
|
|
6148
|
-
actions:
|
|
6148
|
+
actions: d
|
|
6149
6149
|
}, c();
|
|
6150
6150
|
}, [c]);
|
|
6151
6151
|
Ye(function() {
|
|
@@ -6234,18 +6234,18 @@ function yh(e) {
|
|
|
6234
6234
|
var i = e.findClosestDraggableId(o);
|
|
6235
6235
|
if (!i)
|
|
6236
6236
|
return;
|
|
6237
|
-
var l = e.tryGetLock(i,
|
|
6237
|
+
var l = e.tryGetLock(i, u, {
|
|
6238
6238
|
sourceEvent: o
|
|
6239
6239
|
});
|
|
6240
6240
|
if (!l)
|
|
6241
6241
|
return;
|
|
6242
6242
|
o.preventDefault();
|
|
6243
|
-
var c = !0,
|
|
6243
|
+
var c = !0, p = l.snapLift();
|
|
6244
6244
|
t.current();
|
|
6245
|
-
function
|
|
6245
|
+
function u() {
|
|
6246
6246
|
c || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot stop capturing a keyboard drag when not capturing") : N()), c = !1, t.current(), n();
|
|
6247
6247
|
}
|
|
6248
|
-
t.current = Je(window, xh(
|
|
6248
|
+
t.current = Je(window, xh(p, u), {
|
|
6249
6249
|
capture: !0,
|
|
6250
6250
|
passive: !1
|
|
6251
6251
|
});
|
|
@@ -6308,11 +6308,11 @@ function Eh(e) {
|
|
|
6308
6308
|
return;
|
|
6309
6309
|
}
|
|
6310
6310
|
i.hasMoved = !0;
|
|
6311
|
-
var l = o.touches[0], c = l.clientX,
|
|
6311
|
+
var l = o.touches[0], c = l.clientX, p = l.clientY, u = {
|
|
6312
6312
|
x: c,
|
|
6313
|
-
y:
|
|
6313
|
+
y: p
|
|
6314
6314
|
};
|
|
6315
|
-
o.preventDefault(), i.actions.move(
|
|
6315
|
+
o.preventDefault(), i.actions.move(u);
|
|
6316
6316
|
}
|
|
6317
6317
|
}, {
|
|
6318
6318
|
eventName: "touchend",
|
|
@@ -6344,12 +6344,12 @@ function Eh(e) {
|
|
|
6344
6344
|
if (l) {
|
|
6345
6345
|
var c = l.force >= Dh;
|
|
6346
6346
|
if (c) {
|
|
6347
|
-
var
|
|
6347
|
+
var p = i.actions.shouldRespectForcePress();
|
|
6348
6348
|
if (i.type === "PENDING") {
|
|
6349
|
-
|
|
6349
|
+
p && t();
|
|
6350
6350
|
return;
|
|
6351
6351
|
}
|
|
6352
|
-
if (
|
|
6352
|
+
if (p) {
|
|
6353
6353
|
if (i.hasMoved) {
|
|
6354
6354
|
o.preventDefault();
|
|
6355
6355
|
return;
|
|
@@ -6386,7 +6386,7 @@ function Ch(e) {
|
|
|
6386
6386
|
x: m,
|
|
6387
6387
|
y: x
|
|
6388
6388
|
};
|
|
6389
|
-
r.current(),
|
|
6389
|
+
r.current(), d(b, D);
|
|
6390
6390
|
}
|
|
6391
6391
|
}
|
|
6392
6392
|
}
|
|
@@ -6406,7 +6406,7 @@ function Ch(e) {
|
|
|
6406
6406
|
l(), f.type === "DRAGGING" && f.actions.cancel({
|
|
6407
6407
|
shouldBlockNextClick: !0
|
|
6408
6408
|
}), f.type === "PENDING" && f.actions.abort();
|
|
6409
|
-
}, [l]),
|
|
6409
|
+
}, [l]), p = Z(function() {
|
|
6410
6410
|
var v = {
|
|
6411
6411
|
capture: !0,
|
|
6412
6412
|
passive: !1
|
|
@@ -6418,7 +6418,7 @@ function Ch(e) {
|
|
|
6418
6418
|
r.current = function() {
|
|
6419
6419
|
b(), h();
|
|
6420
6420
|
};
|
|
6421
|
-
}, [c, n, l]),
|
|
6421
|
+
}, [c, n, l]), u = Z(function() {
|
|
6422
6422
|
var v = n();
|
|
6423
6423
|
v.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot start dragging from phase " + v.type) : N());
|
|
6424
6424
|
var g = v.actions.fluidLift(v.point);
|
|
@@ -6427,16 +6427,16 @@ function Ch(e) {
|
|
|
6427
6427
|
actions: g,
|
|
6428
6428
|
hasMoved: !1
|
|
6429
6429
|
});
|
|
6430
|
-
}, [n, a]),
|
|
6430
|
+
}, [n, a]), d = Z(function(v, g) {
|
|
6431
6431
|
n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? N(!1, "Expected to move from IDLE to PENDING drag") : N());
|
|
6432
|
-
var b = setTimeout(
|
|
6432
|
+
var b = setTimeout(u, wh);
|
|
6433
6433
|
a({
|
|
6434
6434
|
type: "PENDING",
|
|
6435
6435
|
point: g,
|
|
6436
6436
|
actions: v,
|
|
6437
6437
|
longPressTimerId: b
|
|
6438
|
-
}),
|
|
6439
|
-
}, [
|
|
6438
|
+
}), p();
|
|
6439
|
+
}, [p, n, a, u]);
|
|
6440
6440
|
Ye(function() {
|
|
6441
6441
|
return i(), function() {
|
|
6442
6442
|
r.current();
|
|
@@ -6569,17 +6569,17 @@ function Mh(e) {
|
|
|
6569
6569
|
});
|
|
6570
6570
|
if (!c)
|
|
6571
6571
|
return null;
|
|
6572
|
-
var
|
|
6573
|
-
if (!
|
|
6572
|
+
var p = a.draggable.getById(o), u = Bh(r, p.descriptor.id);
|
|
6573
|
+
if (!u)
|
|
6574
6574
|
return process.env.NODE_ENV !== "production" && Ne("Unable to find draggable element with id: " + o), null;
|
|
6575
|
-
if (l && !
|
|
6575
|
+
if (l && !p.options.canDragInteractiveElements && jh(u, l))
|
|
6576
6576
|
return null;
|
|
6577
|
-
var
|
|
6577
|
+
var d = t.claim(i || bt), f = "PRE_DRAG";
|
|
6578
6578
|
function v() {
|
|
6579
|
-
return
|
|
6579
|
+
return p.options.shouldRespectForcePress;
|
|
6580
6580
|
}
|
|
6581
6581
|
function g() {
|
|
6582
|
-
return t.isActive(
|
|
6582
|
+
return t.isActive(d);
|
|
6583
6583
|
}
|
|
6584
6584
|
function b(C, O) {
|
|
6585
6585
|
Vr({
|
|
@@ -6674,7 +6674,7 @@ function Mh(e) {
|
|
|
6674
6674
|
return m({
|
|
6675
6675
|
liftActionArgs: {
|
|
6676
6676
|
id: o,
|
|
6677
|
-
clientSelection: _h(
|
|
6677
|
+
clientSelection: _h(u),
|
|
6678
6678
|
movementMode: "SNAP"
|
|
6679
6679
|
},
|
|
6680
6680
|
cleanup: bt,
|
|
@@ -6722,14 +6722,14 @@ function $h(e) {
|
|
|
6722
6722
|
}, [l, r, c]), Ye(function() {
|
|
6723
6723
|
return l.tryAbandon;
|
|
6724
6724
|
}, [l.tryAbandon]);
|
|
6725
|
-
var
|
|
6725
|
+
var p = Z(function(m) {
|
|
6726
6726
|
return Jl({
|
|
6727
6727
|
lockAPI: l,
|
|
6728
6728
|
registry: n,
|
|
6729
6729
|
store: r,
|
|
6730
6730
|
draggableId: m
|
|
6731
6731
|
});
|
|
6732
|
-
}, [l, n, r]),
|
|
6732
|
+
}, [l, n, r]), u = Z(function(m, x, D) {
|
|
6733
6733
|
return Mh({
|
|
6734
6734
|
lockAPI: l,
|
|
6735
6735
|
registry: n,
|
|
@@ -6739,7 +6739,7 @@ function $h(e) {
|
|
|
6739
6739
|
forceSensorStop: x,
|
|
6740
6740
|
sourceEvent: D && D.sourceEvent ? D.sourceEvent : null
|
|
6741
6741
|
});
|
|
6742
|
-
}, [t, l, n, r]),
|
|
6742
|
+
}, [t, l, n, r]), d = Z(function(m) {
|
|
6743
6743
|
return kh(t, m);
|
|
6744
6744
|
}, [t]), f = Z(function(m) {
|
|
6745
6745
|
var x = n.draggable.findById(m);
|
|
@@ -6748,14 +6748,14 @@ function $h(e) {
|
|
|
6748
6748
|
l.isClaimed() && (l.tryAbandon(), r.getState().phase !== "IDLE" && r.dispatch(Ga()));
|
|
6749
6749
|
}, [l, r]), g = Z(l.isClaimed, [l]), b = ve(function() {
|
|
6750
6750
|
return {
|
|
6751
|
-
canGetLock:
|
|
6752
|
-
tryGetLock:
|
|
6753
|
-
findClosestDraggableId:
|
|
6751
|
+
canGetLock: p,
|
|
6752
|
+
tryGetLock: u,
|
|
6753
|
+
findClosestDraggableId: d,
|
|
6754
6754
|
findOptionsForDraggable: f,
|
|
6755
6755
|
tryReleaseLock: v,
|
|
6756
6756
|
isLockClaimed: g
|
|
6757
6757
|
};
|
|
6758
|
-
}, [u, d,
|
|
6758
|
+
}, [p, u, d, f, v, g]);
|
|
6759
6759
|
Sh(i);
|
|
6760
6760
|
for (var h = 0; h < i.length; h++)
|
|
6761
6761
|
i[h](b);
|
|
@@ -6777,10 +6777,10 @@ function Gh(e) {
|
|
|
6777
6777
|
th();
|
|
6778
6778
|
var l = Za(e), c = Z(function() {
|
|
6779
6779
|
return Vh(l.current);
|
|
6780
|
-
}, [l]),
|
|
6780
|
+
}, [l]), p = Hm(t), u = Km({
|
|
6781
6781
|
contextId: t,
|
|
6782
6782
|
text: o
|
|
6783
|
-
}),
|
|
6783
|
+
}), d = Fm(t, a), f = Z(function(_) {
|
|
6784
6784
|
cr(i).dispatch(_);
|
|
6785
6785
|
}, []), v = ve(function() {
|
|
6786
6786
|
return ko({
|
|
@@ -6801,14 +6801,14 @@ function Gh(e) {
|
|
|
6801
6801
|
}, f)));
|
|
6802
6802
|
}, [b.scrollDroppable, f]), m = $m(t), x = ve(function() {
|
|
6803
6803
|
return fm({
|
|
6804
|
-
announce:
|
|
6804
|
+
announce: p,
|
|
6805
6805
|
autoScroller: h,
|
|
6806
6806
|
dimensionMarshal: b,
|
|
6807
6807
|
focusMarshal: m,
|
|
6808
6808
|
getResponders: c,
|
|
6809
|
-
styleMarshal:
|
|
6809
|
+
styleMarshal: d
|
|
6810
6810
|
});
|
|
6811
|
-
}, [
|
|
6811
|
+
}, [p, h, b, m, c, d]);
|
|
6812
6812
|
process.env.NODE_ENV !== "production" && i.current && i.current !== x && process.env.NODE_ENV !== "production" && Ne("unexpected store change"), i.current = x;
|
|
6813
6813
|
var D = Z(function() {
|
|
6814
6814
|
var _ = cr(i), T = _.getState();
|
|
@@ -6834,10 +6834,10 @@ function Gh(e) {
|
|
|
6834
6834
|
contextId: t,
|
|
6835
6835
|
canLift: C,
|
|
6836
6836
|
isMovementAllowed: O,
|
|
6837
|
-
dragHandleUsageInstructionsId:
|
|
6837
|
+
dragHandleUsageInstructionsId: u,
|
|
6838
6838
|
registry: g
|
|
6839
6839
|
};
|
|
6840
|
-
}, [t, b,
|
|
6840
|
+
}, [t, b, u, m, C, O, g]);
|
|
6841
6841
|
return $h({
|
|
6842
6842
|
contextId: t,
|
|
6843
6843
|
store: x,
|
|
@@ -6941,7 +6941,7 @@ var to = function(t) {
|
|
|
6941
6941
|
isFixedOnPage: r
|
|
6942
6942
|
};
|
|
6943
6943
|
}, eb = function(e) {
|
|
6944
|
-
var t = e.descriptor, r = e.isEnabled, n = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, i = e.client, l = e.page, c = e.closest,
|
|
6944
|
+
var t = e.descriptor, r = e.isEnabled, n = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, i = e.client, l = e.page, c = e.closest, p = function() {
|
|
6945
6945
|
if (!c)
|
|
6946
6946
|
return null;
|
|
6947
6947
|
var v = c.scrollSize, g = c.client, b = Ll({
|
|
@@ -6965,21 +6965,21 @@ var to = function(t) {
|
|
|
6965
6965
|
}
|
|
6966
6966
|
}
|
|
6967
6967
|
};
|
|
6968
|
-
}(),
|
|
6968
|
+
}(), u = o === "vertical" ? La : hl, d = zt({
|
|
6969
6969
|
page: l,
|
|
6970
6970
|
withPlaceholder: null,
|
|
6971
|
-
axis:
|
|
6972
|
-
frame:
|
|
6971
|
+
axis: u,
|
|
6972
|
+
frame: p
|
|
6973
6973
|
}), f = {
|
|
6974
6974
|
descriptor: t,
|
|
6975
6975
|
isCombineEnabled: n,
|
|
6976
6976
|
isFixedOnPage: a,
|
|
6977
|
-
axis:
|
|
6977
|
+
axis: u,
|
|
6978
6978
|
isEnabled: r,
|
|
6979
6979
|
client: i,
|
|
6980
6980
|
page: l,
|
|
6981
|
-
frame:
|
|
6982
|
-
subject:
|
|
6981
|
+
frame: p,
|
|
6982
|
+
subject: d
|
|
6983
6983
|
};
|
|
6984
6984
|
return f;
|
|
6985
6985
|
}, tb = function(t, r) {
|
|
@@ -6991,25 +6991,25 @@ var to = function(t) {
|
|
|
6991
6991
|
right: l,
|
|
6992
6992
|
bottom: i,
|
|
6993
6993
|
left: o
|
|
6994
|
-
},
|
|
6995
|
-
borderBox:
|
|
6994
|
+
}, p = Aa(c, n.border), u = Ta({
|
|
6995
|
+
borderBox: p,
|
|
6996
6996
|
margin: n.margin,
|
|
6997
6997
|
border: n.border,
|
|
6998
6998
|
padding: n.padding
|
|
6999
6999
|
});
|
|
7000
|
-
return
|
|
7000
|
+
return u;
|
|
7001
7001
|
}, rb = function(e) {
|
|
7002
|
-
var t = e.ref, r = e.descriptor, n = e.env, a = e.windowScroll, o = e.direction, i = e.isDropDisabled, l = e.isCombineEnabled, c = e.shouldClipSubject,
|
|
7003
|
-
if (!
|
|
7002
|
+
var t = e.ref, r = e.descriptor, n = e.env, a = e.windowScroll, o = e.direction, i = e.isDropDisabled, l = e.isCombineEnabled, c = e.shouldClipSubject, p = n.closestScrollable, u = tb(t, p), d = tn(u, a), f = function() {
|
|
7003
|
+
if (!p)
|
|
7004
7004
|
return null;
|
|
7005
|
-
var g = sl(
|
|
7006
|
-
scrollHeight:
|
|
7007
|
-
scrollWidth:
|
|
7005
|
+
var g = sl(p), b = {
|
|
7006
|
+
scrollHeight: p.scrollHeight,
|
|
7007
|
+
scrollWidth: p.scrollWidth
|
|
7008
7008
|
};
|
|
7009
7009
|
return {
|
|
7010
7010
|
client: g,
|
|
7011
7011
|
page: tn(g, a),
|
|
7012
|
-
scroll: da(
|
|
7012
|
+
scroll: da(p),
|
|
7013
7013
|
scrollSize: b,
|
|
7014
7014
|
shouldClipSubject: c
|
|
7015
7015
|
};
|
|
@@ -7019,8 +7019,8 @@ var to = function(t) {
|
|
|
7019
7019
|
isCombineEnabled: l,
|
|
7020
7020
|
isFixedOnPage: n.isFixedOnPage,
|
|
7021
7021
|
direction: o,
|
|
7022
|
-
client:
|
|
7023
|
-
page:
|
|
7022
|
+
client: u,
|
|
7023
|
+
page: d,
|
|
7024
7024
|
closest: f
|
|
7025
7025
|
});
|
|
7026
7026
|
return v;
|
|
@@ -7045,7 +7045,7 @@ function ob(e) {
|
|
|
7045
7045
|
type: e.type,
|
|
7046
7046
|
mode: e.mode
|
|
7047
7047
|
};
|
|
7048
|
-
}, [e.droppableId, e.mode, e.type]), c = U(l),
|
|
7048
|
+
}, [e.droppableId, e.mode, e.type]), c = U(l), p = ve(function() {
|
|
7049
7049
|
return Be(function(w, y) {
|
|
7050
7050
|
t.current || (process.env.NODE_ENV !== "production" ? N(!1, "Can only update scroll when dragging") : N());
|
|
7051
7051
|
var C = {
|
|
@@ -7054,24 +7054,24 @@ function ob(e) {
|
|
|
7054
7054
|
};
|
|
7055
7055
|
o.updateDroppableScroll(l.id, C);
|
|
7056
7056
|
});
|
|
7057
|
-
}, [l.id, o]),
|
|
7057
|
+
}, [l.id, o]), u = Z(function() {
|
|
7058
7058
|
var w = t.current;
|
|
7059
7059
|
return !w || !w.env.closestScrollable ? Le : da(w.env.closestScrollable);
|
|
7060
|
-
}, []),
|
|
7061
|
-
var w =
|
|
7062
|
-
|
|
7063
|
-
}, [
|
|
7064
|
-
return xr(
|
|
7065
|
-
}, [
|
|
7060
|
+
}, []), d = Z(function() {
|
|
7061
|
+
var w = u();
|
|
7062
|
+
p(w.x, w.y);
|
|
7063
|
+
}, [u, p]), f = ve(function() {
|
|
7064
|
+
return xr(d);
|
|
7065
|
+
}, [d]), v = Z(function() {
|
|
7066
7066
|
var w = t.current, y = Gr(w);
|
|
7067
7067
|
w && y || (process.env.NODE_ENV !== "production" ? N(!1, "Could not find scroll options while scrolling") : N());
|
|
7068
7068
|
var C = w.scrollOptions;
|
|
7069
7069
|
if (C.shouldPublishImmediately) {
|
|
7070
|
-
|
|
7070
|
+
d();
|
|
7071
7071
|
return;
|
|
7072
7072
|
}
|
|
7073
7073
|
f();
|
|
7074
|
-
}, [f,
|
|
7074
|
+
}, [f, d]), g = Z(function(w, y) {
|
|
7075
7075
|
t.current && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot collect a droppable while a drag is occurring") : N());
|
|
7076
7076
|
var C = i.current, O = C.getDroppableRef();
|
|
7077
7077
|
O || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot collect without a droppable ref") : N());
|
|
@@ -7167,23 +7167,23 @@ var Di = {
|
|
|
7167
7167
|
function lb(e) {
|
|
7168
7168
|
var t = U(null), r = Z(function() {
|
|
7169
7169
|
t.current && (clearTimeout(t.current), t.current = null);
|
|
7170
|
-
}, []), n = e.animate, a = e.onTransitionEnd, o = e.onClose, i = e.contextId, l = L(e.animate === "open"), c = l[0],
|
|
7170
|
+
}, []), n = e.animate, a = e.onTransitionEnd, o = e.onClose, i = e.contextId, l = L(e.animate === "open"), c = l[0], p = l[1];
|
|
7171
7171
|
F(function() {
|
|
7172
|
-
return c ? n !== "open" ? (r(),
|
|
7173
|
-
t.current = null,
|
|
7172
|
+
return c ? n !== "open" ? (r(), p(!1), Gn) : t.current ? Gn : (t.current = setTimeout(function() {
|
|
7173
|
+
t.current = null, p(!1);
|
|
7174
7174
|
}), r) : Gn;
|
|
7175
7175
|
}, [n, c, r]);
|
|
7176
|
-
var
|
|
7176
|
+
var u = Z(function(f) {
|
|
7177
7177
|
f.propertyName === "height" && (a(), n === "close" && o());
|
|
7178
|
-
}, [n, o, a]),
|
|
7178
|
+
}, [n, o, a]), d = sb({
|
|
7179
7179
|
isAnimatingOpenOnMount: c,
|
|
7180
7180
|
animate: e.animate,
|
|
7181
7181
|
placeholder: e.placeholder
|
|
7182
7182
|
});
|
|
7183
7183
|
return le.createElement(e.placeholder.tagName, {
|
|
7184
|
-
style:
|
|
7184
|
+
style: d,
|
|
7185
7185
|
"data-rbd-placeholder-context-id": i,
|
|
7186
|
-
onTransitionEnd:
|
|
7186
|
+
onTransitionEnd: u,
|
|
7187
7187
|
ref: e.innerRef
|
|
7188
7188
|
});
|
|
7189
7189
|
}
|
|
@@ -7293,7 +7293,7 @@ var vb = function(e) {
|
|
|
7293
7293
|
return t.forceShouldAnimate != null ? t.forceShouldAnimate : t.mode === "SNAP";
|
|
7294
7294
|
};
|
|
7295
7295
|
function bb(e) {
|
|
7296
|
-
var t = e.dimension, r = t.client, n = e.offset, a = e.combineWith, o = e.dropping, i = !!a, l = hb(e), c = !!o,
|
|
7296
|
+
var t = e.dimension, r = t.client, n = e.offset, a = e.combineWith, o = e.dropping, i = !!a, l = hb(e), c = !!o, p = c ? sa.drop(n, i) : sa.moveTo(n), u = {
|
|
7297
7297
|
position: "fixed",
|
|
7298
7298
|
top: r.marginBox.top,
|
|
7299
7299
|
left: r.marginBox.left,
|
|
@@ -7301,12 +7301,12 @@ function bb(e) {
|
|
|
7301
7301
|
width: r.borderBox.width,
|
|
7302
7302
|
height: r.borderBox.height,
|
|
7303
7303
|
transition: gb(l, o),
|
|
7304
|
-
transform:
|
|
7304
|
+
transform: p,
|
|
7305
7305
|
opacity: mb(i, c),
|
|
7306
7306
|
zIndex: c ? Ni.dropAnimating : Ni.dragging,
|
|
7307
7307
|
pointerEvents: "none"
|
|
7308
7308
|
};
|
|
7309
|
-
return
|
|
7309
|
+
return u;
|
|
7310
7310
|
}
|
|
7311
7311
|
function xb(e) {
|
|
7312
7312
|
return {
|
|
@@ -7326,14 +7326,14 @@ function wb(e, t, r) {
|
|
|
7326
7326
|
}, c = {
|
|
7327
7327
|
x: o.marginBox.width,
|
|
7328
7328
|
y: o.marginBox.height
|
|
7329
|
-
},
|
|
7329
|
+
}, p = {
|
|
7330
7330
|
descriptor: e,
|
|
7331
7331
|
placeholder: l,
|
|
7332
7332
|
displaceBy: c,
|
|
7333
7333
|
client: o,
|
|
7334
7334
|
page: i
|
|
7335
7335
|
};
|
|
7336
|
-
return
|
|
7336
|
+
return p;
|
|
7337
7337
|
}
|
|
7338
7338
|
function Db(e) {
|
|
7339
7339
|
var t = Ja("draggable"), r = e.descriptor, n = e.registry, a = e.getDraggableRef, o = e.canDragInteractiveElements, i = e.shouldRespectForcePress, l = e.isEnabled, c = ve(function() {
|
|
@@ -7342,29 +7342,29 @@ function Db(e) {
|
|
|
7342
7342
|
shouldRespectForcePress: i,
|
|
7343
7343
|
isEnabled: l
|
|
7344
7344
|
};
|
|
7345
|
-
}, [o, l, i]),
|
|
7345
|
+
}, [o, l, i]), p = Z(function(v) {
|
|
7346
7346
|
var g = a();
|
|
7347
7347
|
return g || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot get dimension when no ref is set") : N()), wb(r, g, v);
|
|
7348
|
-
}, [r, a]),
|
|
7348
|
+
}, [r, a]), u = ve(function() {
|
|
7349
7349
|
return {
|
|
7350
7350
|
uniqueId: t,
|
|
7351
7351
|
descriptor: r,
|
|
7352
7352
|
options: c,
|
|
7353
|
-
getDimension:
|
|
7353
|
+
getDimension: p
|
|
7354
7354
|
};
|
|
7355
|
-
}, [r,
|
|
7355
|
+
}, [r, p, c, t]), d = U(u), f = U(!0);
|
|
7356
7356
|
Ye(function() {
|
|
7357
|
-
return n.draggable.register(
|
|
7358
|
-
return n.draggable.unregister(
|
|
7357
|
+
return n.draggable.register(d.current), function() {
|
|
7358
|
+
return n.draggable.unregister(d.current);
|
|
7359
7359
|
};
|
|
7360
7360
|
}, [n.draggable]), Ye(function() {
|
|
7361
7361
|
if (f.current) {
|
|
7362
7362
|
f.current = !1;
|
|
7363
7363
|
return;
|
|
7364
7364
|
}
|
|
7365
|
-
var v =
|
|
7366
|
-
|
|
7367
|
-
}, [
|
|
7365
|
+
var v = d.current;
|
|
7366
|
+
d.current = u, n.draggable.update(u, v);
|
|
7367
|
+
}, [u, n.draggable]);
|
|
7368
7368
|
}
|
|
7369
7369
|
function Nb(e, t, r) {
|
|
7370
7370
|
Br(function() {
|
|
@@ -7392,25 +7392,25 @@ function Sb(e) {
|
|
|
7392
7392
|
t.current = _;
|
|
7393
7393
|
}, []), n = Z(function() {
|
|
7394
7394
|
return t.current;
|
|
7395
|
-
}, []), a = on(bn), o = a.contextId, i = a.dragHandleUsageInstructionsId, l = a.registry, c = on(ro),
|
|
7395
|
+
}, []), a = on(bn), o = a.contextId, i = a.dragHandleUsageInstructionsId, l = a.registry, c = on(ro), p = c.type, u = c.droppableId, d = ve(function() {
|
|
7396
7396
|
return {
|
|
7397
7397
|
id: e.draggableId,
|
|
7398
7398
|
index: e.index,
|
|
7399
|
-
type:
|
|
7400
|
-
droppableId:
|
|
7399
|
+
type: p,
|
|
7400
|
+
droppableId: u
|
|
7401
7401
|
};
|
|
7402
|
-
}, [e.draggableId, e.index,
|
|
7402
|
+
}, [e.draggableId, e.index, p, u]), f = e.children, v = e.draggableId, g = e.isEnabled, b = e.shouldRespectForcePress, h = e.canDragInteractiveElements, m = e.isClone, x = e.mapped, D = e.dropAnimationFinished;
|
|
7403
7403
|
if (Nb(e, o, n), Eb(m), !m) {
|
|
7404
7404
|
var w = ve(function() {
|
|
7405
7405
|
return {
|
|
7406
|
-
descriptor:
|
|
7406
|
+
descriptor: d,
|
|
7407
7407
|
registry: l,
|
|
7408
7408
|
getDraggableRef: n,
|
|
7409
7409
|
canDragInteractiveElements: h,
|
|
7410
7410
|
shouldRespectForcePress: b,
|
|
7411
7411
|
isEnabled: g
|
|
7412
7412
|
};
|
|
7413
|
-
}, [
|
|
7413
|
+
}, [d, l, n, h, b, g]);
|
|
7414
7414
|
Db(w);
|
|
7415
7415
|
}
|
|
7416
7416
|
var y = ve(function() {
|
|
@@ -7439,14 +7439,14 @@ function Sb(e) {
|
|
|
7439
7439
|
return k;
|
|
7440
7440
|
}, [o, y, v, x, C, r]), S = ve(function() {
|
|
7441
7441
|
return {
|
|
7442
|
-
draggableId:
|
|
7443
|
-
type:
|
|
7442
|
+
draggableId: d.id,
|
|
7443
|
+
type: d.type,
|
|
7444
7444
|
source: {
|
|
7445
|
-
index:
|
|
7446
|
-
droppableId:
|
|
7445
|
+
index: d.index,
|
|
7446
|
+
droppableId: d.droppableId
|
|
7447
7447
|
}
|
|
7448
7448
|
};
|
|
7449
|
-
}, [
|
|
7449
|
+
}, [d.droppableId, d.id, d.index, d.type]);
|
|
7450
7450
|
return f(O, x.snapshot, S);
|
|
7451
7451
|
}
|
|
7452
7452
|
var tc = function(e, t) {
|
|
@@ -7476,26 +7476,26 @@ function _b() {
|
|
|
7476
7476
|
combineWith: l,
|
|
7477
7477
|
combineTargetFor: null
|
|
7478
7478
|
};
|
|
7479
|
-
}), r = Be(function(a, o, i, l, c,
|
|
7479
|
+
}), r = Be(function(a, o, i, l, c, p, u) {
|
|
7480
7480
|
return {
|
|
7481
7481
|
mapped: {
|
|
7482
7482
|
type: "DRAGGING",
|
|
7483
7483
|
dropping: null,
|
|
7484
7484
|
draggingOver: c,
|
|
7485
|
-
combineWith:
|
|
7485
|
+
combineWith: p,
|
|
7486
7486
|
mode: o,
|
|
7487
7487
|
offset: a,
|
|
7488
7488
|
dimension: i,
|
|
7489
|
-
forceShouldAnimate:
|
|
7490
|
-
snapshot: t(o, l, c,
|
|
7489
|
+
forceShouldAnimate: u,
|
|
7490
|
+
snapshot: t(o, l, c, p, null)
|
|
7491
7491
|
}
|
|
7492
7492
|
};
|
|
7493
7493
|
}), n = function(o, i) {
|
|
7494
7494
|
if (o.isDragging) {
|
|
7495
7495
|
if (o.critical.draggable.id !== i.draggableId)
|
|
7496
7496
|
return null;
|
|
7497
|
-
var l = o.current.client.offset, c = o.dimensions.draggables[i.draggableId],
|
|
7498
|
-
return r(e(l.x, l.y), o.movementMode, c, i.isClone, u, d
|
|
7497
|
+
var l = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], p = qe(o.impact), u = jb(o.impact), d = o.forceShouldAnimate;
|
|
7498
|
+
return r(e(l.x, l.y), o.movementMode, c, i.isClone, p, u, d);
|
|
7499
7499
|
}
|
|
7500
7500
|
if (o.phase === "DROP_ANIMATING") {
|
|
7501
7501
|
var f = o.completed;
|
|
@@ -7565,26 +7565,26 @@ function Pb() {
|
|
|
7565
7565
|
};
|
|
7566
7566
|
}), n = function(l) {
|
|
7567
7567
|
return l ? r(Le, l, !0) : null;
|
|
7568
|
-
}, a = function(l, c,
|
|
7569
|
-
var
|
|
7570
|
-
if (!
|
|
7568
|
+
}, a = function(l, c, p, u) {
|
|
7569
|
+
var d = p.displaced.visible[l], f = !!(u.inVirtualList && u.effected[l]), v = gn(p), g = v && v.draggableId === l ? c : null;
|
|
7570
|
+
if (!d) {
|
|
7571
7571
|
if (!f)
|
|
7572
7572
|
return n(g);
|
|
7573
|
-
if (
|
|
7573
|
+
if (p.displaced.invisible[l])
|
|
7574
7574
|
return null;
|
|
7575
|
-
var b = Qt(
|
|
7575
|
+
var b = Qt(u.displacedBy.point), h = e(b.x, b.y);
|
|
7576
7576
|
return r(h, g, !0);
|
|
7577
7577
|
}
|
|
7578
7578
|
if (f)
|
|
7579
7579
|
return n(g);
|
|
7580
|
-
var m =
|
|
7581
|
-
return r(x, g,
|
|
7580
|
+
var m = p.displacedBy.point, x = e(m.x, m.y);
|
|
7581
|
+
return r(x, g, d.shouldAnimate);
|
|
7582
7582
|
}, o = function(l, c) {
|
|
7583
7583
|
if (l.isDragging)
|
|
7584
7584
|
return l.critical.draggable.id === c.draggableId ? null : a(c.draggableId, l.critical.draggable.id, l.impact, l.afterCritical);
|
|
7585
7585
|
if (l.phase === "DROP_ANIMATING") {
|
|
7586
|
-
var
|
|
7587
|
-
return
|
|
7586
|
+
var p = l.completed;
|
|
7587
|
+
return p.result.draggableId === c.draggableId ? null : a(c.draggableId, p.result.draggableId, p.impact, p.afterCritical);
|
|
7588
7588
|
}
|
|
7589
7589
|
return null;
|
|
7590
7590
|
};
|
|
@@ -7618,7 +7618,7 @@ function kb(e) {
|
|
|
7618
7618
|
function Bb(e) {
|
|
7619
7619
|
var t = Q(bn);
|
|
7620
7620
|
t || (process.env.NODE_ENV !== "production" ? N(!1, "Could not find app context") : N());
|
|
7621
|
-
var r = t.contextId, n = t.isMovementAllowed, a = U(null), o = U(null), i = e.children, l = e.droppableId, c = e.type,
|
|
7621
|
+
var r = t.contextId, n = t.isMovementAllowed, a = U(null), o = U(null), i = e.children, l = e.droppableId, c = e.type, p = e.mode, u = e.direction, d = e.ignoreContainerClipping, f = e.isDropDisabled, v = e.isCombineEnabled, g = e.snapshot, b = e.useClone, h = e.updateViewportMaxScroll, m = e.getContainerForClone, x = Z(function() {
|
|
7622
7622
|
return a.current;
|
|
7623
7623
|
}, []), D = Z(function(G) {
|
|
7624
7624
|
a.current = G;
|
|
@@ -7640,11 +7640,11 @@ function Bb(e) {
|
|
|
7640
7640
|
ob({
|
|
7641
7641
|
droppableId: l,
|
|
7642
7642
|
type: c,
|
|
7643
|
-
mode:
|
|
7644
|
-
direction:
|
|
7643
|
+
mode: p,
|
|
7644
|
+
direction: u,
|
|
7645
7645
|
isDropDisabled: f,
|
|
7646
7646
|
isCombineEnabled: v,
|
|
7647
|
-
ignoreContainerClipping:
|
|
7647
|
+
ignoreContainerClipping: d,
|
|
7648
7648
|
getDroppableRef: x
|
|
7649
7649
|
});
|
|
7650
7650
|
var O = le.createElement(vb, {
|
|
@@ -7721,12 +7721,12 @@ var Hn = function(t, r) {
|
|
|
7721
7721
|
droppableId: i.droppableId
|
|
7722
7722
|
}
|
|
7723
7723
|
};
|
|
7724
|
-
}), a = Be(function(i, l, c, u, d
|
|
7725
|
-
var f =
|
|
7724
|
+
}), a = Be(function(i, l, c, p, u, d) {
|
|
7725
|
+
var f = u.descriptor.id, v = u.descriptor.droppableId === i;
|
|
7726
7726
|
if (v) {
|
|
7727
|
-
var g =
|
|
7728
|
-
render:
|
|
7729
|
-
dragging: n(
|
|
7727
|
+
var g = d ? {
|
|
7728
|
+
render: d,
|
|
7729
|
+
dragging: n(u.descriptor)
|
|
7730
7730
|
} : null, b = {
|
|
7731
7731
|
isDraggingOver: c,
|
|
7732
7732
|
draggingOverWith: c ? f : null,
|
|
@@ -7734,7 +7734,7 @@ var Hn = function(t, r) {
|
|
|
7734
7734
|
isUsingPlaceholder: !0
|
|
7735
7735
|
};
|
|
7736
7736
|
return {
|
|
7737
|
-
placeholder:
|
|
7737
|
+
placeholder: u.placeholder,
|
|
7738
7738
|
shouldAnimatePlaceholder: !1,
|
|
7739
7739
|
snapshot: b,
|
|
7740
7740
|
useClone: g
|
|
@@ -7742,7 +7742,7 @@ var Hn = function(t, r) {
|
|
|
7742
7742
|
}
|
|
7743
7743
|
if (!l)
|
|
7744
7744
|
return r;
|
|
7745
|
-
if (!
|
|
7745
|
+
if (!p)
|
|
7746
7746
|
return t;
|
|
7747
7747
|
var h = {
|
|
7748
7748
|
isDraggingOver: c,
|
|
@@ -7751,32 +7751,32 @@ var Hn = function(t, r) {
|
|
|
7751
7751
|
isUsingPlaceholder: !0
|
|
7752
7752
|
};
|
|
7753
7753
|
return {
|
|
7754
|
-
placeholder:
|
|
7754
|
+
placeholder: u.placeholder,
|
|
7755
7755
|
shouldAnimatePlaceholder: !0,
|
|
7756
7756
|
snapshot: h,
|
|
7757
7757
|
useClone: null
|
|
7758
7758
|
};
|
|
7759
7759
|
}), o = function(l, c) {
|
|
7760
|
-
var
|
|
7760
|
+
var p = c.droppableId, u = c.type, d = !c.isDropDisabled, f = c.renderClone;
|
|
7761
7761
|
if (l.isDragging) {
|
|
7762
7762
|
var v = l.critical;
|
|
7763
|
-
if (!Hn(
|
|
7763
|
+
if (!Hn(u, v))
|
|
7764
7764
|
return r;
|
|
7765
|
-
var g = Ei(v, l.dimensions), b = qe(l.impact) ===
|
|
7766
|
-
return a(
|
|
7765
|
+
var g = Ei(v, l.dimensions), b = qe(l.impact) === p;
|
|
7766
|
+
return a(p, d, b, b, g, f);
|
|
7767
7767
|
}
|
|
7768
7768
|
if (l.phase === "DROP_ANIMATING") {
|
|
7769
7769
|
var h = l.completed;
|
|
7770
|
-
if (!Hn(
|
|
7770
|
+
if (!Hn(u, h.critical))
|
|
7771
7771
|
return r;
|
|
7772
7772
|
var m = Ei(h.critical, l.dimensions);
|
|
7773
|
-
return a(
|
|
7773
|
+
return a(p, d, rc(h.result) === p, qe(h.impact) === p, m, f);
|
|
7774
7774
|
}
|
|
7775
7775
|
if (l.phase === "IDLE" && l.completed && !l.shouldFlush) {
|
|
7776
7776
|
var x = l.completed;
|
|
7777
|
-
if (!Hn(
|
|
7777
|
+
if (!Hn(u, x.critical))
|
|
7778
7778
|
return r;
|
|
7779
|
-
var D = qe(x.impact) ===
|
|
7779
|
+
var D = qe(x.impact) === p, w = !!(x.impact.at && x.impact.at.type === "COMBINE"), y = x.critical.droppable.id === p;
|
|
7780
7780
|
return D ? w ? t : r : y ? t : r;
|
|
7781
7781
|
}
|
|
7782
7782
|
return r;
|
|
@@ -7945,7 +7945,7 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
7945
7945
|
selected: lx,
|
|
7946
7946
|
"default-indicator": "_default-indicator_14f56_71",
|
|
7947
7947
|
defaultIndicator: cx
|
|
7948
|
-
}, dx = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken:
|
|
7948
|
+
}, dx = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: p, placeholder: u, ImgComponent: d = cc, onChangeOrder: f }) => {
|
|
7949
7949
|
const v = qd(), [g, b] = L(r);
|
|
7950
7950
|
F(() => {
|
|
7951
7951
|
b(r);
|
|
@@ -8002,21 +8002,21 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8002
8002
|
g.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(ae, { variant: "body", children: o ?? "No photos available" }) }),
|
|
8003
8003
|
x && /* @__PURE__ */ s.jsxs("div", { className: We.photoContainer, children: [
|
|
8004
8004
|
/* @__PURE__ */ s.jsx("div", { role: D ? "button" : void 0, className: j("align-items-start", We.navButton), onClick: () => D && m((S) => S - 1), children: D && /* @__PURE__ */ s.jsx(xa, { style: { fontSize: "40px" } }) }),
|
|
8005
|
-
/* @__PURE__ */ s.jsx(
|
|
8005
|
+
/* @__PURE__ */ s.jsx(d, { src: x.lgSrc, alt: x.alt, className: j("rounded", We.photo), baseUrl: c, customToken: p, placeholder: u }),
|
|
8006
8006
|
/* @__PURE__ */ s.jsx("div", { role: w ? "button" : void 0, className: j("align-items-end", We.navButton), onClick: () => w && m((S) => S + 1), children: w && /* @__PURE__ */ s.jsx(ya, { style: { fontSize: "40px" } }) })
|
|
8007
8007
|
] }),
|
|
8008
8008
|
/* @__PURE__ */ s.jsx(Hh, { onDragEnd: O, children: /* @__PURE__ */ s.jsx(Qb, { droppableId: "droppable", direction: "horizontal", children: (S) => /* @__PURE__ */ s.jsxs("div", { ...S.droppableProps, ref: S.innerRef, className: We.photosPreview, children: [
|
|
8009
8009
|
g.map((_, T) => /* @__PURE__ */ s.jsx(kb, { draggableId: _.id, index: T, isDragDisabled: f === void 0, children: v((k) => /* @__PURE__ */ s.jsxs("div", { ref: k.innerRef, ...k.draggableProps, ...k.dragHandleProps, role: "button", onClick: () => m(T), className: j(We.lightboxDraggablePhoto), children: [
|
|
8010
|
-
/* @__PURE__ */ s.jsx(
|
|
8010
|
+
/* @__PURE__ */ s.jsx(d, { role: T !== h ? "button" : void 0, src: _.smSrc, alt: _.alt, className: j("rounded", We.photo, {
|
|
8011
8011
|
[We.selected]: T === h
|
|
8012
|
-
}), baseUrl: c, customToken:
|
|
8012
|
+
}), baseUrl: c, customToken: p, placeholder: u }, _.id),
|
|
8013
8013
|
_.isDefault && /* @__PURE__ */ s.jsx("div", { className: j("text-primary", We.defaultIndicator), children: /* @__PURE__ */ s.jsx(vd, {}) })
|
|
8014
8014
|
] })) }, _.id)),
|
|
8015
8015
|
S.placeholder
|
|
8016
8016
|
] }) }) })
|
|
8017
8017
|
] }) })
|
|
8018
8018
|
] });
|
|
8019
|
-
}, ux = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: n, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c = cc, noLightboxOnlyButtonOnEmpty:
|
|
8019
|
+
}, ux = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: n, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c = cc, noLightboxOnlyButtonOnEmpty: p = !1, hideLightbox: u = !1, onChangeOrder: d }) => {
|
|
8020
8020
|
const [f, v] = L(null), g = f !== null ? e[f] : null, [b, h] = L(!1);
|
|
8021
8021
|
return F(() => {
|
|
8022
8022
|
if (e.length === 0) {
|
|
@@ -8025,7 +8025,7 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8025
8025
|
}
|
|
8026
8026
|
const m = e.findIndex((x) => x.isDefault);
|
|
8027
8027
|
v(m > -1 ? m : 0);
|
|
8028
|
-
}, [e]), !g && t &&
|
|
8028
|
+
}, [e]), !g && t && p ? /* @__PURE__ */ s.jsx(Us, { accept: ".jpg,.jpeg,.png", onUpload: (m) => {
|
|
8029
8029
|
m.length > 0 && t(Array.from(m));
|
|
8030
8030
|
}, icon: /* @__PURE__ */ s.jsx(is, { style: { fontSize: 18 } }), multiple: !0, children: r ?? null }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
8031
8031
|
g ? /* @__PURE__ */ s.jsxs("div", { role: "button", className: "w-100 position-relative", onClick: () => h(!0), children: [
|
|
@@ -8038,11 +8038,11 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8038
8038
|
background: "rgba(105,105,105,0.5)"
|
|
8039
8039
|
}, children: /* @__PURE__ */ s.jsx(gd, { fontSize: 24 }) })
|
|
8040
8040
|
] }) : /* @__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" }) }) }),
|
|
8041
|
-
/* @__PURE__ */ s.jsx(dx, { show: b && !
|
|
8041
|
+
/* @__PURE__ */ s.jsx(dx, { show: b && !u, 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: d })
|
|
8042
8042
|
] });
|
|
8043
8043
|
}, Uw = ({ children: e }) => {
|
|
8044
|
-
var c,
|
|
8045
|
-
const { useMsal: t, msalScopes: r, msalExtraScopes: n } = Q(md), { isAuthenticated: a } = hd(), { userLoginState: o } = Q(_r), i = o.state === bd.LOGGING_IN, l = o.user && ((c = o.user) == null ? void 0 : c.permissions) && ((
|
|
8044
|
+
var c, p, u;
|
|
8045
|
+
const { useMsal: t, msalScopes: r, msalExtraScopes: n } = Q(md), { isAuthenticated: a } = hd(), { userLoginState: o } = Q(_r), i = o.state === bd.LOGGING_IN, l = o.user && ((c = o.user) == null ? void 0 : c.permissions) && ((u = (p = o.user) == null ? void 0 : p.permissions) == null ? void 0 : u.length) > 0;
|
|
8046
8046
|
return t ? /* @__PURE__ */ s.jsx($d, { interactionType: Fd.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: n }, children: i || !a() ? /* @__PURE__ */ s.jsx(po, {}) : o.user ? l ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(Mr, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(Mr, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ s.jsx(po, {}) : !a() || !o.user ? /* @__PURE__ */ s.jsx(Mr, { to: "/login", replace: !0 }) : l ? e : /* @__PURE__ */ s.jsx(Mr, { to: "/user-not-permitted", replace: !0 });
|
|
8047
8047
|
}, px = "_item_z9z4m_1", fx = "_level-success_z9z4m_4", vx = "_level-info_z9z4m_10", gx = "_level-warning_z9z4m_16", mx = "_level-danger_z9z4m_22", hx = "_type-icon_z9z4m_28", zn = {
|
|
8048
8048
|
item: px,
|
|
@@ -8119,28 +8119,28 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8119
8119
|
/* @__PURE__ */ s.jsx("div", { className: j("text-primary", Pt.stepIcon), children: t.icon ?? /* @__PURE__ */ s.jsx(xd, {}) })
|
|
8120
8120
|
] }) })
|
|
8121
8121
|
] }, r)) }), _x = (e, t, r, n = !0) => {
|
|
8122
|
-
const a = Nt({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = L(!1), [l, c] = L(null),
|
|
8122
|
+
const a = Nt({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = L(!1), [l, c] = L(null), p = R(async (u) => {
|
|
8123
8123
|
i(!0), c(null), a.get(e, {
|
|
8124
|
-
signal:
|
|
8124
|
+
signal: u,
|
|
8125
8125
|
responseType: "blob"
|
|
8126
|
-
}).then((
|
|
8127
|
-
i(!1), c(
|
|
8126
|
+
}).then((d) => {
|
|
8127
|
+
i(!1), c(d.data);
|
|
8128
8128
|
}).catch(() => {
|
|
8129
8129
|
i(!1), c(null);
|
|
8130
8130
|
});
|
|
8131
8131
|
}, [a, e]);
|
|
8132
8132
|
return F(() => {
|
|
8133
|
-
const
|
|
8134
|
-
return u
|
|
8135
|
-
|
|
8133
|
+
const u = new AbortController();
|
|
8134
|
+
return p(u.signal), () => {
|
|
8135
|
+
u.abort();
|
|
8136
8136
|
};
|
|
8137
|
-
}, [
|
|
8137
|
+
}, [p]), { data: l, setData: c, reloadData: p, isLoading: o };
|
|
8138
8138
|
}, Ii = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }) => {
|
|
8139
8139
|
const { data: i } = _x(e, r, n), [l, c] = L(null);
|
|
8140
8140
|
return F(() => {
|
|
8141
|
-
let
|
|
8142
|
-
return i !== null ? (
|
|
8143
|
-
|
|
8141
|
+
let p = null;
|
|
8142
|
+
return i !== null ? (p = URL.createObjectURL(i), c(p)) : c(null), () => {
|
|
8143
|
+
p !== null && URL.revokeObjectURL(p);
|
|
8144
8144
|
};
|
|
8145
8145
|
}, [i]), l === null && !a ? null : /* @__PURE__ */ s.jsx("img", { ...o, alt: t ?? "", src: l ?? a });
|
|
8146
8146
|
}, dc = ({ currentSelection: e, selectedItemNavigateTo: t, children: r }) => {
|
|
@@ -8148,15 +8148,15 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8148
8148
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: r });
|
|
8149
8149
|
const n = t(e);
|
|
8150
8150
|
return /* @__PURE__ */ s.jsx(nt, { to: n, className: "luminus-input-container position-relative w-100 text-decoration-none", children: r });
|
|
8151
|
-
}, Ox = ({ InputContainer: e = Lt, label: t, value: r, onChange: n, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate:
|
|
8152
|
-
const
|
|
8151
|
+
}, Ox = ({ InputContainer: e = Lt, label: t, value: r, onChange: n, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: p, hint: u }) => {
|
|
8152
|
+
const d = U(null);
|
|
8153
8153
|
return F(() => {
|
|
8154
|
-
|
|
8155
|
-
}, [
|
|
8154
|
+
d.current && (d.current.indeterminate = p ?? !1);
|
|
8155
|
+
}, [d, p]), /* @__PURE__ */ s.jsx(e, { isForCheckInput: !0, hidden: a, label: t ?? "", withoutLabel: c, className: i, hint: u, children: /* @__PURE__ */ s.jsx(_e.Check, { ref: d, id: `check-${t}`, type: l ?? "checkbox", label: t ?? "", checked: r, onChange: (f) => {
|
|
8156
8156
|
var v;
|
|
8157
8157
|
n && n(((v = f.target) == null ? void 0 : v.checked) ?? !1);
|
|
8158
8158
|
}, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
|
|
8159
|
-
}, wt = ({ InputContainer: e = Lt, type: t, value: r, onChange: n, debounceMs: a, label: o, withoutLabel: i, placeholder: l, size: c, hidden:
|
|
8159
|
+
}, wt = ({ InputContainer: e = Lt, type: t, value: r, onChange: n, debounceMs: a, label: o, withoutLabel: i, placeholder: l, size: c, hidden: p, disabled: u, showClearIcon: d, clearValue: f, list: v, className: g, step: b, minLength: h, maxLength: m, noSelectOnFocus: x, hint: D, onConfirm: w }) => {
|
|
8160
8160
|
const y = t === "number", C = R(() => {
|
|
8161
8161
|
if (!n)
|
|
8162
8162
|
return;
|
|
@@ -8185,11 +8185,11 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8185
8185
|
_(r === null ? "" : r.toString());
|
|
8186
8186
|
}, [r]);
|
|
8187
8187
|
const [E, V] = L(!1), X = yd(t, r ? r.toString() ?? null : null, E);
|
|
8188
|
-
return /* @__PURE__ */ s.jsxs(e, { withoutLabel: i, label: o ?? "", hidden:
|
|
8189
|
-
/* @__PURE__ */ s.jsx(_e.Control, { type: X, placeholder: l ?? o, size: c, value: a ? S : (r == null ? void 0 : r.toString()) ?? "", onChange: k, className: g ?? "", hidden:
|
|
8188
|
+
return /* @__PURE__ */ s.jsxs(e, { withoutLabel: i, label: o ?? "", hidden: p, className: g, hint: D, children: [
|
|
8189
|
+
/* @__PURE__ */ s.jsx(_e.Control, { type: X, placeholder: l ?? o, size: c, value: a ? S : (r == null ? void 0 : r.toString()) ?? "", onChange: k, className: g ?? "", hidden: p, disabled: u ?? !1, list: v, onFocus: (P) => {
|
|
8190
8190
|
V(!0), !x && P.target.select();
|
|
8191
8191
|
}, onBlur: () => V(!1), onKeyDown: G, step: b, minLength: h, maxLength: m }),
|
|
8192
|
-
|
|
8192
|
+
d && r !== null && n && !u && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
|
|
8193
8193
|
] });
|
|
8194
8194
|
}, yn = ({ value: e, MiniDetailComponent: t, children: r, miniDetailPlacement: n }) => !e || !t ? r : /* @__PURE__ */ s.jsx(t, { id: e.toString(), placement: n, children: r }), sn = ({
|
|
8195
8195
|
InputContainer: e = Lt,
|
|
@@ -8201,9 +8201,9 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8201
8201
|
isNumber: i,
|
|
8202
8202
|
size: l,
|
|
8203
8203
|
hidden: c,
|
|
8204
|
-
disabled:
|
|
8205
|
-
noSortOptions:
|
|
8206
|
-
className:
|
|
8204
|
+
disabled: p,
|
|
8205
|
+
noSortOptions: u,
|
|
8206
|
+
className: d,
|
|
8207
8207
|
suffixIdToName: f,
|
|
8208
8208
|
noEmptyOption: v,
|
|
8209
8209
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
@@ -8225,28 +8225,28 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8225
8225
|
return g !== void 0 && t !== void 0 && t !== null && (I.some((B) => B.id === t) || I.push({ id: t, name: g })), I.map((B) => ({
|
|
8226
8226
|
id: B.id,
|
|
8227
8227
|
name: G(B)
|
|
8228
|
-
})).filter((B) => ut(B.name, S)).sort((B, Y) =>
|
|
8229
|
-
}, [r,
|
|
8228
|
+
})).filter((B) => ut(B.name, S)).sort((B, Y) => u ? 0 : (B.name ?? "").localeCompare(Y.name ?? ""));
|
|
8229
|
+
}, [r, u, S, G, g, t]), V = R((I) => {
|
|
8230
8230
|
var B;
|
|
8231
8231
|
n && n((I == null ? void 0 : I.id) === void 0 || (I == null ? void 0 : I.id) === null ? null : i ? Number(I.id) : (B = I.id) == null ? void 0 : B.toString());
|
|
8232
8232
|
}, [n, i]), X = R((I) => {
|
|
8233
8233
|
O(!1), V(I);
|
|
8234
8234
|
}, [V]), P = U(null);
|
|
8235
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, inputContainerClassName: j({ "luminus-dropdown-select-open": C }), className:
|
|
8235
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, inputContainerClassName: j({ "luminus-dropdown-select-open": C }), className: d, hint: h, children: [
|
|
8236
8236
|
/* @__PURE__ */ s.jsx(yn, { value: t, MiniDetailComponent: D, miniDetailPlacement: w, children: /* @__PURE__ */ s.jsxs(_e.Select, { ref: P, size: l, value: t ?? "", onMouseDown: (I) => {
|
|
8237
8237
|
I.currentTarget.focus(), I.preventDefault();
|
|
8238
8238
|
}, onClick: () => {
|
|
8239
|
-
!
|
|
8239
|
+
!p && O(!0);
|
|
8240
8240
|
}, onChange: () => {
|
|
8241
8241
|
}, className: j("w-100", {
|
|
8242
|
-
"luminus-dropdown-picker-disabled":
|
|
8242
|
+
"luminus-dropdown-picker-disabled": p
|
|
8243
8243
|
}), hidden: c, children: [
|
|
8244
8244
|
v && !(t == null || t === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
8245
8245
|
t != null && /* @__PURE__ */ s.jsx("option", { value: t, children: G(k) })
|
|
8246
8246
|
] }) }),
|
|
8247
|
-
P.current && /* @__PURE__ */ s.jsx(fn, { show: C, onCancel: () => O(!1), items: E, currentSelection: k ?? null, onSelectionChange: X, onSearchQueryChange: T, texts: y, disabled:
|
|
8247
|
+
P.current && /* @__PURE__ */ s.jsx(fn, { show: C, onCancel: () => O(!1), items: E, currentSelection: k ?? null, onSelectionChange: X, onSearchQueryChange: T, texts: y, disabled: p, inputRef: P, autoHideSearch: !0, allItemsLength: r.length, itemsNameWidth: b, addNewOptionPath: m, refreshOptions: x })
|
|
8248
8248
|
] }) });
|
|
8249
|
-
}, qw = ({ InputContainer: e = Lt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel:
|
|
8249
|
+
}, qw = ({ InputContainer: e = Lt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: u, dropdownItemsNameWidth: d, additionalColumns: f, hidden: v, disabled: g, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon: D, hint: w, addNewOptionPath: y, refreshOptions: C, MiniDetailComponent: O, miniDetailPlacement: S }) => {
|
|
8250
8250
|
const [_, T] = L(!1), k = R((I) => {
|
|
8251
8251
|
l && l(I);
|
|
8252
8252
|
}, [l]), G = R((I) => {
|
|
@@ -8255,14 +8255,14 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8255
8255
|
var I, B;
|
|
8256
8256
|
return b ? ((I = i == null ? void 0 : i.id) == null ? void 0 : I.toString()) ?? "" : i != null && i.name && i.name.length > 0 ? i.name : ((B = i == null ? void 0 : i.id) == null ? void 0 : B.toString()) ?? "";
|
|
8257
8257
|
}, [i, b]);
|
|
8258
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel:
|
|
8258
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: v, inputContainerClassName: j({ "luminus-dropdown-select-open": _ }), className: m, hint: w, children: [
|
|
8259
8259
|
/* @__PURE__ */ s.jsxs(dc, { currentSelection: i, selectedItemNavigateTo: r, children: [
|
|
8260
8260
|
b && (i == null ? void 0 : i.name) && /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: i.name }),
|
|
8261
8261
|
/* @__PURE__ */ s.jsx(yn, { value: (i == null ? void 0 : i.id) ?? null, MiniDetailComponent: O, miniDetailPlacement: S, children: /* @__PURE__ */ s.jsxs(
|
|
8262
8262
|
_e.Select,
|
|
8263
8263
|
{
|
|
8264
8264
|
ref: E,
|
|
8265
|
-
size:
|
|
8265
|
+
size: u,
|
|
8266
8266
|
value: (i == null ? void 0 : i.id) ?? "",
|
|
8267
8267
|
onMouseDown: (I) => {
|
|
8268
8268
|
I.currentTarget.focus(), I.preventDefault();
|
|
@@ -8290,9 +8290,9 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8290
8290
|
h ?? null
|
|
8291
8291
|
] }) : null
|
|
8292
8292
|
] }),
|
|
8293
|
-
E.current && /* @__PURE__ */ s.jsx(fn, { show: _, onCancel: () => T(!1), items: t, currentSelection: i, onSelectionChange: G, onSearchQueryChange: n, texts: a, itemsNameWidth:
|
|
8293
|
+
E.current && /* @__PURE__ */ s.jsx(fn, { show: _, onCancel: () => T(!1), items: t, currentSelection: i, onSelectionChange: G, onSearchQueryChange: n, texts: a, itemsNameWidth: d, additionalColumns: f, isLoading: o, disabled: g, inputRef: E, archiveColumn: x, displayIdAsName: b, addNewOptionPath: y, refreshOptions: C })
|
|
8294
8294
|
] }) });
|
|
8295
|
-
}, Yw = ({ InputContainer: e = Lt, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows:
|
|
8295
|
+
}, Yw = ({ InputContainer: e = Lt, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: p, withoutLabel: u, debounceMs: d, minLength: f, maxLength: v, className: g, hint: b }) => {
|
|
8296
8296
|
const h = R(() => {
|
|
8297
8297
|
if (!r)
|
|
8298
8298
|
return;
|
|
@@ -8304,27 +8304,27 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8304
8304
|
}, [r]), y = R((C) => {
|
|
8305
8305
|
var S;
|
|
8306
8306
|
const O = (S = C.target) == null ? void 0 : S.value;
|
|
8307
|
-
if (!
|
|
8307
|
+
if (!d) {
|
|
8308
8308
|
w(O);
|
|
8309
8309
|
return;
|
|
8310
8310
|
}
|
|
8311
8311
|
D(O), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
8312
8312
|
w(O);
|
|
8313
|
-
},
|
|
8314
|
-
}, [
|
|
8313
|
+
}, d);
|
|
8314
|
+
}, [d, w]);
|
|
8315
8315
|
return F(() => {
|
|
8316
8316
|
D(t === null ? "" : t.toString());
|
|
8317
|
-
}, [t]), /* @__PURE__ */ s.jsxs(e, { label: n ?? "", hidden: l, withoutLabel:
|
|
8318
|
-
/* @__PURE__ */ s.jsx(_e.Control, { as: "textarea", size: a, value:
|
|
8317
|
+
}, [t]), /* @__PURE__ */ s.jsxs(e, { label: n ?? "", hidden: l, withoutLabel: u, className: g, isForTextAreaInput: !0, hint: b, children: [
|
|
8318
|
+
/* @__PURE__ */ s.jsx(_e.Control, { as: "textarea", size: a, value: d ? x : t ?? "", onChange: y, hidden: l, disabled: c, rows: p ?? 2, className: "w-100", minLength: f, maxLength: v }),
|
|
8319
8319
|
o && t && r && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: h, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
|
|
8320
8320
|
] });
|
|
8321
|
-
}, Kw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled:
|
|
8321
|
+
}, Kw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: u, clearValue: d, className: f, step: v, stepperStep: g = 1, min: b, max: h, hint: m }) => {
|
|
8322
8322
|
const x = R(() => {
|
|
8323
8323
|
if (!r)
|
|
8324
8324
|
return;
|
|
8325
|
-
const S =
|
|
8325
|
+
const S = d ?? null;
|
|
8326
8326
|
r(S ? Number(S) : null);
|
|
8327
|
-
}, [
|
|
8327
|
+
}, [d, r]), D = U(null), [w, y] = L((t == null ? void 0 : t.toString()) ?? ""), C = R((S) => {
|
|
8328
8328
|
const _ = S;
|
|
8329
8329
|
r && r(_ == null || _ === "" ? null : dr(Number(_), b, h));
|
|
8330
8330
|
}, [h, b, r]), O = R((S) => {
|
|
@@ -8341,14 +8341,14 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
|
|
|
8341
8341
|
return F(() => {
|
|
8342
8342
|
y(t === null ? "" : dr(t, b, h).toString());
|
|
8343
8343
|
}, [h, b, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className: f, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
8344
|
-
/* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? w : t ?? "", onChange: O, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled:
|
|
8345
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !
|
|
8344
|
+
/* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? w : t ?? "", onChange: O, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: p ?? !1, step: v }),
|
|
8345
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !p && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (S) => {
|
|
8346
8346
|
S.preventDefault(), S.stopPropagation(), C(((t ?? 0) - g).toString());
|
|
8347
8347
|
}, children: /* @__PURE__ */ s.jsx(cs, {}) }) }),
|
|
8348
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !
|
|
8348
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !p && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (S) => {
|
|
8349
8349
|
S.preventDefault(), S.stopPropagation(), C(((t ?? 0) + g).toString());
|
|
8350
8350
|
}, children: /* @__PURE__ */ s.jsx(ds, {}) }) }),
|
|
8351
|
-
|
|
8351
|
+
u && t && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
|
|
8352
8352
|
] }) });
|
|
8353
8353
|
};
|
|
8354
8354
|
function uc(e, t) {
|
|
@@ -8455,12 +8455,12 @@ function gc(e) {
|
|
|
8455
8455
|
function _i(e, t, r) {
|
|
8456
8456
|
if (["", "-"].indexOf(e) !== -1)
|
|
8457
8457
|
return e;
|
|
8458
|
-
var n = (e.indexOf(".") !== -1 || r) && t, a = no(e), o = a.beforeDecimal, i = a.afterDecimal, l = a.hasNegation, c = parseFloat("0." + (i || "0")),
|
|
8459
|
-
o && Number(
|
|
8458
|
+
var n = (e.indexOf(".") !== -1 || r) && t, a = no(e), o = a.beforeDecimal, i = a.afterDecimal, l = a.hasNegation, c = parseFloat("0." + (i || "0")), p = i.length <= t ? "0." + i : c.toFixed(t), u = p.split("."), d = o;
|
|
8459
|
+
o && Number(u[0]) && (d = o.split("").reverse().reduce(function(b, h, m) {
|
|
8460
8460
|
return b.length > m ? (Number(b[0]) + Number(h)).toString() + b.substring(1, b.length) : h + b;
|
|
8461
|
-
},
|
|
8462
|
-
var f = vc(
|
|
8463
|
-
return "" + v +
|
|
8461
|
+
}, u[0]));
|
|
8462
|
+
var f = vc(u[1] || "", t, r), v = l ? "-" : "", g = n ? "." : "";
|
|
8463
|
+
return "" + v + d + g + f;
|
|
8464
8464
|
}
|
|
8465
8465
|
function kt(e, t) {
|
|
8466
8466
|
if (e.value = e.value, e !== null) {
|
|
@@ -8519,9 +8519,9 @@ function Gx(e, t, r, n, a, o, i) {
|
|
|
8519
8519
|
return w;
|
|
8520
8520
|
}), c = e.slice(0, l);
|
|
8521
8521
|
!t && !r.startsWith(c) && (t = c, r = c + r, n = n + c.length);
|
|
8522
|
-
for (var
|
|
8522
|
+
for (var p = r.length, u = e.length, d = {}, f = new Array(p), v = 0; v < p; v++) {
|
|
8523
8523
|
f[v] = -1;
|
|
8524
|
-
for (var g = 0, b =
|
|
8524
|
+
for (var g = 0, b = u; g < b; g++) {
|
|
8525
8525
|
var h = i({
|
|
8526
8526
|
currentValue: r,
|
|
8527
8527
|
lastValue: t,
|
|
@@ -8529,15 +8529,15 @@ function Gx(e, t, r, n, a, o, i) {
|
|
|
8529
8529
|
currentValueIndex: v,
|
|
8530
8530
|
formattedValueIndex: g
|
|
8531
8531
|
});
|
|
8532
|
-
if (h &&
|
|
8533
|
-
f[v] = g,
|
|
8532
|
+
if (h && d[g] !== !0) {
|
|
8533
|
+
f[v] = g, d[g] = !0;
|
|
8534
8534
|
break;
|
|
8535
8535
|
}
|
|
8536
8536
|
}
|
|
8537
8537
|
}
|
|
8538
|
-
for (var m = n; m <
|
|
8538
|
+
for (var m = n; m < p && (f[m] === -1 || !o(r[m])); )
|
|
8539
8539
|
m++;
|
|
8540
|
-
var x = m ===
|
|
8540
|
+
var x = m === p || f[m] === -1 ? u : f[m];
|
|
8541
8541
|
for (m = n - 1; m > 0 && f[m] === -1; )
|
|
8542
8542
|
m--;
|
|
8543
8543
|
var D = m === -1 || f[m] === -1 ? 0 : f[m] + 1;
|
|
@@ -8570,17 +8570,17 @@ function hc(e, t, r, n, a, o) {
|
|
|
8570
8570
|
return pc(g) ? (m = "", h = "") : typeof g == "number" || b ? (m = typeof g == "number" ? gc(g) : g, h = n(m)) : (m = a(g, void 0), h = n(m)), { formattedValue: h, numAsString: m };
|
|
8571
8571
|
}), l = L(function() {
|
|
8572
8572
|
return i(Ut(e) ? t : e, r);
|
|
8573
|
-
}), c = l[0],
|
|
8574
|
-
g.formattedValue !== c.formattedValue &&
|
|
8573
|
+
}), c = l[0], p = l[1], u = function(g, b) {
|
|
8574
|
+
g.formattedValue !== c.formattedValue && p({
|
|
8575
8575
|
formattedValue: g.formattedValue,
|
|
8576
8576
|
numAsString: g.value
|
|
8577
8577
|
}), o(g, b);
|
|
8578
|
-
},
|
|
8579
|
-
Ut(e) && (
|
|
8580
|
-
var v = i(
|
|
8578
|
+
}, d = e, f = r;
|
|
8579
|
+
Ut(e) && (d = c.numAsString, f = !0);
|
|
8580
|
+
var v = i(d, f);
|
|
8581
8581
|
return z(function() {
|
|
8582
|
-
|
|
8583
|
-
}, [v.formattedValue]), [c,
|
|
8582
|
+
p(v);
|
|
8583
|
+
}, [v.formattedValue]), [c, u];
|
|
8584
8584
|
}
|
|
8585
8585
|
function Ux(e) {
|
|
8586
8586
|
return e.replace(/[^0-9]/g, "");
|
|
@@ -8597,7 +8597,7 @@ function zx(e) {
|
|
|
8597
8597
|
i === void 0 && (i = Hx);
|
|
8598
8598
|
var l = e.removeFormatting;
|
|
8599
8599
|
l === void 0 && (l = Ux);
|
|
8600
|
-
var c = e.defaultValue,
|
|
8600
|
+
var c = e.defaultValue, p = e.valueIsNumericString, u = e.onValueChange, d = e.isAllowed, f = e.onChange;
|
|
8601
8601
|
f === void 0 && (f = mt);
|
|
8602
8602
|
var v = e.onKeyDown;
|
|
8603
8603
|
v === void 0 && (v = mt);
|
|
@@ -8611,7 +8611,7 @@ function zx(e) {
|
|
|
8611
8611
|
x === void 0 && (x = Wx);
|
|
8612
8612
|
var D = e.isValidInputCharacter;
|
|
8613
8613
|
D === void 0 && (D = Ir);
|
|
8614
|
-
var w = e.isCharacterSame, y = uc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), C = hc(m, c, !!
|
|
8614
|
+
var w = e.isCharacterSame, y = uc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), C = hc(m, c, !!p, i, l, u), O = C[0], S = O.formattedValue, _ = O.numAsString, T = C[1], k = U(), G = U({ formattedValue: S, numAsString: _ }), E = function(A, M) {
|
|
8615
8615
|
G.current = { formattedValue: A.formattedValue, numAsString: A.value }, T(A, M);
|
|
8616
8616
|
}, V = L(!1), X = V[0], P = V[1], I = U(null), B = U({
|
|
8617
8617
|
setCaretTimeout: null,
|
|
@@ -8665,7 +8665,7 @@ function zx(e) {
|
|
|
8665
8665
|
}, [S]);
|
|
8666
8666
|
var me = function(A, M, K) {
|
|
8667
8667
|
var pe = M.target, Ce = k.current ? Lx(k.current, pe.selectionEnd) : mc(S, A), ge = Object.assign(Object.assign({}, Ce), { lastValue: S }), ue = l(A, ge), $e = Y(ue);
|
|
8668
|
-
if (ue = l($e, void 0),
|
|
8668
|
+
if (ue = l($e, void 0), d && !d(te($e, ue))) {
|
|
8669
8669
|
var Ze = M.target, et = qn(Ze), $t = ee(A, S, et);
|
|
8670
8670
|
return Ze.value = S, H(Ze, $t, S), !1;
|
|
8671
8671
|
}
|
|
@@ -8749,8 +8749,8 @@ function Pi(e, t) {
|
|
|
8749
8749
|
var i = t.allowNegative, l = t.thousandsGroupStyle;
|
|
8750
8750
|
if (l === void 0 && (l = "thousand"), e === "" || e === "-")
|
|
8751
8751
|
return e;
|
|
8752
|
-
var c = wn(t),
|
|
8753
|
-
return r !== void 0 && (g = vc(g, r, !!n)),
|
|
8752
|
+
var c = wn(t), p = c.thousandSeparator, u = c.decimalSeparator, d = r !== 0 && e.indexOf(".") !== -1 || r && n, f = no(e, i), v = f.beforeDecimal, g = f.afterDecimal, b = f.addNegation;
|
|
8753
|
+
return r !== void 0 && (g = vc(g, r, !!n)), p && (v = Rx(v, p, l)), a && (v = a + v), o && (g = g + o), b && (v = "-" + v), e = v + (d && u || "") + g, e;
|
|
8754
8754
|
}
|
|
8755
8755
|
function wn(e) {
|
|
8756
8756
|
var t = e.decimalSeparator;
|
|
@@ -8780,32 +8780,32 @@ function Xx(e, t, r) {
|
|
|
8780
8780
|
o === void 0 && (o = "");
|
|
8781
8781
|
var i = r.suffix;
|
|
8782
8782
|
i === void 0 && (i = "");
|
|
8783
|
-
var l = r.decimalScale, c = t.from,
|
|
8783
|
+
var l = r.decimalScale, c = t.from, p = t.to, u = p.start, d = p.end, f = wn(r), v = f.allowedDecimalSeparators, g = f.decimalSeparator, b = e[d] === g;
|
|
8784
8784
|
if (Ir(e) && (e === o || e === i) && t.lastValue === "")
|
|
8785
8785
|
return e;
|
|
8786
|
-
if (
|
|
8786
|
+
if (d - u === 1 && v.indexOf(e[u]) !== -1) {
|
|
8787
8787
|
var h = l === 0 ? "" : g;
|
|
8788
|
-
e = e.substring(0,
|
|
8788
|
+
e = e.substring(0, u) + h + e.substring(u + 1, e.length);
|
|
8789
8789
|
}
|
|
8790
8790
|
var m = function(I, B, Y) {
|
|
8791
8791
|
var te = !1, H = !1;
|
|
8792
8792
|
o.startsWith("-") ? te = !1 : I.startsWith("--") ? (te = !1, H = !0) : i.startsWith("-") && I.length === i.length ? te = !1 : I[0] === "-" && (te = !0);
|
|
8793
8793
|
var oe = te ? 1 : 0;
|
|
8794
8794
|
return H && (oe = 2), oe && (I = I.substring(oe), B -= oe, Y -= oe), { value: I, start: B, end: Y, hasNegation: te };
|
|
8795
|
-
}, x = m(e,
|
|
8796
|
-
n = x, e = n.value,
|
|
8797
|
-
var w = m(t.lastValue, c.start, c.end), y = w.start, C = w.end, O = w.value, S = e.substring(
|
|
8795
|
+
}, x = m(e, u, d), D = x.hasNegation;
|
|
8796
|
+
n = x, e = n.value, u = n.start, d = n.end;
|
|
8797
|
+
var w = m(t.lastValue, c.start, c.end), y = w.start, C = w.end, O = w.value, S = e.substring(u, d);
|
|
8798
8798
|
e.length && O.length && (y > O.length - i.length || C < o.length) && !(S && i.startsWith(S)) && (e = O);
|
|
8799
8799
|
var _ = 0;
|
|
8800
|
-
e.startsWith(o) ? _ += o.length :
|
|
8800
|
+
e.startsWith(o) ? _ += o.length : u < o.length && (_ = u), e = e.substring(_), d -= _;
|
|
8801
8801
|
var T = e.length, k = e.length - i.length;
|
|
8802
|
-
e.endsWith(i) ? T = k : (
|
|
8802
|
+
e.endsWith(i) ? T = k : (d > k || d > e.length - i.length) && (T = d), e = e.substring(0, T), e = qx(D ? "-" + e : e, a), e = (e.match(Yx(g)) || []).join("");
|
|
8803
8803
|
var G = e.indexOf(g);
|
|
8804
8804
|
e = e.replace(new RegExp(fc(g), "g"), function(I, B) {
|
|
8805
8805
|
return B === G ? "." : "";
|
|
8806
8806
|
});
|
|
8807
8807
|
var E = no(e, a), V = E.beforeDecimal, X = E.afterDecimal, P = E.addNegation;
|
|
8808
|
-
return
|
|
8808
|
+
return p.end - p.start < c.end - c.start && V === "" && b && !parseFloat(X) && (e = P ? "-" : ""), e;
|
|
8809
8809
|
}
|
|
8810
8810
|
function Jx(e, t) {
|
|
8811
8811
|
var r = t.prefix;
|
|
@@ -8841,19 +8841,19 @@ function Zx(e) {
|
|
|
8841
8841
|
a === void 0 && (a = mt);
|
|
8842
8842
|
var o = e.onBlur;
|
|
8843
8843
|
o === void 0 && (o = mt);
|
|
8844
|
-
var i = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale,
|
|
8845
|
-
|
|
8846
|
-
var
|
|
8844
|
+
var i = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale, p = e.prefix;
|
|
8845
|
+
p === void 0 && (p = "");
|
|
8846
|
+
var u = e.defaultValue, d = e.value, f = e.valueIsNumericString, v = e.onValueChange, g = uc(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), b = wn(e), h = b.decimalSeparator, m = b.allowedDecimalSeparators, x = function(P) {
|
|
8847
8847
|
return Pi(P, e);
|
|
8848
8848
|
}, D = function(P, I) {
|
|
8849
8849
|
return Xx(P, I, e);
|
|
8850
|
-
}, w = Ut(
|
|
8851
|
-
Ut(
|
|
8850
|
+
}, w = Ut(d) ? u : d, y = f ?? Kx(w, p, t);
|
|
8851
|
+
Ut(d) ? Ut(u) || (y = y || typeof u == "number") : y = y || typeof d == "number";
|
|
8852
8852
|
var C = function(P) {
|
|
8853
8853
|
return pc(P) ? P : (typeof P == "number" && (P = gc(P)), y && typeof l == "number" ? _i(P, l, !!c) : P);
|
|
8854
|
-
}, O = hc(C(
|
|
8854
|
+
}, O = hc(C(d), C(u), !!y, x, D, v), S = O[0], _ = S.numAsString, T = S.formattedValue, k = O[1], G = function(P) {
|
|
8855
8855
|
var I = P.target, B = P.key, Y = I.selectionStart, te = I.selectionEnd, H = I.value;
|
|
8856
|
-
if (H === void 0 && (H = ""), (B === "Backspace" || B === "Delete") && te <
|
|
8856
|
+
if (H === void 0 && (H = ""), (B === "Backspace" || B === "Delete") && te < p.length) {
|
|
8857
8857
|
P.preventDefault();
|
|
8858
8858
|
return;
|
|
8859
8859
|
}
|
|
@@ -8861,7 +8861,7 @@ function Zx(e) {
|
|
|
8861
8861
|
a(P);
|
|
8862
8862
|
return;
|
|
8863
8863
|
}
|
|
8864
|
-
B === "Backspace" && H[0] === "-" && Y ===
|
|
8864
|
+
B === "Backspace" && H[0] === "-" && Y === p.length + 1 && r && kt(I, 1), l && c && (B === "Backspace" && H[Y - 1] === h ? (kt(I, Y - 1), P.preventDefault()) : B === "Delete" && H[Y] === h && P.preventDefault()), m != null && m.includes(B) && H[Y] === h && kt(I, Y + 1);
|
|
8865
8865
|
var oe = i === !0 ? "," : i;
|
|
8866
8866
|
B === "Backspace" && H[Y - 1] === oe && kt(I, Y - 1), B === "Delete" && H[Y] === oe && kt(I, Y + 1), a(P);
|
|
8867
8867
|
}, E = function(P) {
|
|
@@ -8882,9 +8882,9 @@ function Zx(e) {
|
|
|
8882
8882
|
return P === h ? !0 : Ir(P);
|
|
8883
8883
|
}, X = function(P) {
|
|
8884
8884
|
var I = P.currentValue, B = P.lastValue, Y = P.formattedValue, te = P.currentValueIndex, H = P.formattedValueIndex, oe = I[te], ee = Y[H], re = mc(B, I), $ = re.to, J = function(me) {
|
|
8885
|
-
return D(me).indexOf(".") +
|
|
8885
|
+
return D(me).indexOf(".") + p.length;
|
|
8886
8886
|
};
|
|
8887
|
-
return
|
|
8887
|
+
return d === 0 && c && l && I[$.start] === h && J(I) < te && J(Y) > H ? !1 : te >= $.start && te < $.end && m && m.includes(oe) && ee === h ? !0 : oe === ee;
|
|
8888
8888
|
};
|
|
8889
8889
|
return Object.assign(Object.assign({}, g), {
|
|
8890
8890
|
value: T,
|
|
@@ -8905,13 +8905,13 @@ function ao(e) {
|
|
|
8905
8905
|
var t = Zx(e);
|
|
8906
8906
|
return le.createElement(zx, Object.assign({}, t));
|
|
8907
8907
|
}
|
|
8908
|
-
const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled:
|
|
8908
|
+
const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: u, clearValue: d, className: f, step: v, noSelectOnFocus: g, decimalScale: b, fixedDecimalScale: h = !1, numberPrefix: m, numberSuffix: x, min: D, max: w, hint: y }) => {
|
|
8909
8909
|
const C = R(() => {
|
|
8910
8910
|
if (!r)
|
|
8911
8911
|
return;
|
|
8912
|
-
const G =
|
|
8912
|
+
const G = d ?? null;
|
|
8913
8913
|
r(G ? Number(G) : null);
|
|
8914
|
-
}, [
|
|
8914
|
+
}, [d, r]), O = U(null), [S, _] = L((t == null ? void 0 : t.toString()) ?? ""), T = R((G) => {
|
|
8915
8915
|
const E = G;
|
|
8916
8916
|
r && r(E == null || E === "" ? null : Number(E));
|
|
8917
8917
|
}, [r]), k = R((G) => {
|
|
@@ -8934,16 +8934,16 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
8934
8934
|
}, [t, w, D, r]), /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, className: f, hint: y, children: [
|
|
8935
8935
|
/* @__PURE__ */ s.jsx(ao, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: h, prefix: m, suffix: x, defaultValue: "", value: n ? S : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (G) => {
|
|
8936
8936
|
!g && G.target.select();
|
|
8937
|
-
}, onChange: k, hidden: c, disabled:
|
|
8937
|
+
}, onChange: k, hidden: c, disabled: p, className: j("form-control text-end w-100", {
|
|
8938
8938
|
[`form-control-${l}`]: l
|
|
8939
8939
|
}), step: v, min: D, max: w }),
|
|
8940
|
-
|
|
8940
|
+
u && t !== null && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
|
|
8941
8941
|
] });
|
|
8942
8942
|
}, Jw = ({ InputContainer: e = st, label: t, options: r, disabled: n, hidden: a, className: o, value: i, onChange: l }) => {
|
|
8943
|
-
const c = R((
|
|
8944
|
-
l && l(
|
|
8943
|
+
const c = R((p) => {
|
|
8944
|
+
l && l(p.target.value);
|
|
8945
8945
|
}, [l]);
|
|
8946
|
-
return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, children: r.map((
|
|
8946
|
+
return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, children: r.map((p) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: i === p.id, onChange: c, hidden: a, disabled: n, className: "w-100" }, p.id)) });
|
|
8947
8947
|
}, Ai = [
|
|
8948
8948
|
["D", "day"],
|
|
8949
8949
|
// ['W', 'week'],
|
|
@@ -8983,15 +8983,15 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
8983
8983
|
r((c) => {
|
|
8984
8984
|
if (l === null)
|
|
8985
8985
|
return c;
|
|
8986
|
-
const
|
|
8986
|
+
const p = new Date(l);
|
|
8987
8987
|
if (e === "D") {
|
|
8988
|
-
const
|
|
8988
|
+
const u = ht(p.toISOString());
|
|
8989
8989
|
return {
|
|
8990
|
-
from:
|
|
8991
|
-
to:
|
|
8990
|
+
from: u,
|
|
8991
|
+
to: u
|
|
8992
8992
|
};
|
|
8993
8993
|
}
|
|
8994
|
-
return e === "M" ? Kr(
|
|
8994
|
+
return e === "M" ? Kr(p) : e === "Y" ? fr(p) : c;
|
|
8995
8995
|
});
|
|
8996
8996
|
break;
|
|
8997
8997
|
case "to":
|
|
@@ -9004,18 +9004,18 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9004
9004
|
return l;
|
|
9005
9005
|
const c = new Date(l.from);
|
|
9006
9006
|
c.setHours(c.getHours() - c.getTimezoneOffset() / 60);
|
|
9007
|
-
const
|
|
9007
|
+
const p = new Date(l.to);
|
|
9008
9008
|
if (e === "D") {
|
|
9009
9009
|
c.setDate(c.getDate() + i);
|
|
9010
|
-
const
|
|
9010
|
+
const u = ht(c.toISOString());
|
|
9011
9011
|
return {
|
|
9012
|
-
from:
|
|
9013
|
-
to:
|
|
9012
|
+
from: u,
|
|
9013
|
+
to: u
|
|
9014
9014
|
};
|
|
9015
9015
|
}
|
|
9016
9016
|
return e === "M" ? (c.setMonth(c.getMonth() + i), Kr(c)) : e === "Y" ? (c.setFullYear(c.getFullYear() + i), fr(c)) : {
|
|
9017
9017
|
from: ht(c.toISOString()),
|
|
9018
|
-
to: ht(
|
|
9018
|
+
to: ht(p.toISOString())
|
|
9019
9019
|
};
|
|
9020
9020
|
});
|
|
9021
9021
|
}, [e, r]), o = R((i) => {
|
|
@@ -9033,30 +9033,30 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9033
9033
|
}, [r, t]);
|
|
9034
9034
|
return { setFromToProp: n, handleArrowClick: a, handleRangeChange: o };
|
|
9035
9035
|
}, Qw = ({ fromtoState: [e, t], className: r, size: n }) => {
|
|
9036
|
-
const { texts: { date: a }, ProjectIconComponent: o } = Q(fe), [i, l] = L("C"), { handleArrowClick: c, handleRangeChange:
|
|
9036
|
+
const { texts: { date: a }, ProjectIconComponent: o } = Q(fe), [i, l] = L("C"), { handleArrowClick: c, handleRangeChange: p, setFromToProp: u } = oy(i, l, t), d = z(() => i === "C", [i]), f = U(!0);
|
|
9037
9037
|
return F(() => {
|
|
9038
9038
|
if (f.current) {
|
|
9039
9039
|
const v = ay(e.from, e.to);
|
|
9040
9040
|
l(v), f.current = !1;
|
|
9041
9041
|
}
|
|
9042
9042
|
}, [e.from, e.to]), /* @__PURE__ */ s.jsxs("div", { className: j("d-inline-flex align-items-center gap-1", Ti.wrapper, Ti[n ?? "md"], r), children: [
|
|
9043
|
-
/* @__PURE__ */ s.jsx(ce, { disabled:
|
|
9043
|
+
/* @__PURE__ */ s.jsx(ce, { disabled: d, onClick: () => {
|
|
9044
9044
|
c(-1);
|
|
9045
9045
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-left" }) }),
|
|
9046
9046
|
/* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
9047
|
-
/* @__PURE__ */ s.jsx(wt, { type: "date", value: e.from, onChange: (v) =>
|
|
9048
|
-
/* @__PURE__ */ s.jsx(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { text: a[Ai.find((v) => v[0] === i)[1]].substring(0, 1), as: Nd }), children: Ai.map((v) => /* @__PURE__ */ s.jsx(He, { disabled: v[0] === i, className: j(v[0] === i ? "text-black-50" : ""), onClick: () =>
|
|
9049
|
-
/* @__PURE__ */ s.jsx(wt, { type: "date", value: e.to, onChange: (v) =>
|
|
9047
|
+
/* @__PURE__ */ s.jsx(wt, { type: "date", value: e.from, onChange: (v) => u("from", v === null ? null : v.toString()), InputContainer: tt, size: n }),
|
|
9048
|
+
/* @__PURE__ */ s.jsx(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { text: a[Ai.find((v) => v[0] === i)[1]].substring(0, 1), as: Nd }), children: Ai.map((v) => /* @__PURE__ */ s.jsx(He, { disabled: v[0] === i, className: j(v[0] === i ? "text-black-50" : ""), onClick: () => p(v[0]), role: "button", children: a[v[1]] }, v[0])) }),
|
|
9049
|
+
/* @__PURE__ */ s.jsx(wt, { type: "date", value: e.to, onChange: (v) => u("to", v === null ? null : v.toString()), InputContainer: tt, size: n })
|
|
9050
9050
|
] }) }),
|
|
9051
|
-
/* @__PURE__ */ s.jsx(ce, { disabled:
|
|
9051
|
+
/* @__PURE__ */ s.jsx(ce, { disabled: d, onClick: () => {
|
|
9052
9052
|
c(1);
|
|
9053
9053
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-right" }) })
|
|
9054
9054
|
] });
|
|
9055
9055
|
}, Zw = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: n }) => {
|
|
9056
|
-
const { localizationContext: a } = Q(fe), { dateFnsLocale: o } = Q(a), { searchParams: i, setSearch: l } = Yd(), c = i.get(t),
|
|
9057
|
-
l(t, ea(
|
|
9056
|
+
const { localizationContext: a } = Q(fe), { dateFnsLocale: o } = Q(a), { searchParams: i, setSearch: l } = Yd(), c = i.get(t), p = c ? gr(c) : e, u = R((d) => {
|
|
9057
|
+
l(t, ea(d, { representation: "date" }));
|
|
9058
9058
|
}, [t, l]);
|
|
9059
|
-
return /* @__PURE__ */ s.jsx(Eu, { month:
|
|
9059
|
+
return /* @__PURE__ */ s.jsx(Eu, { month: p, onChangeMonth: u, locale: o, yearMin: r, yearMax: n });
|
|
9060
9060
|
}, eD = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
|
|
9061
9061
|
const [n, a] = hs(t, ea(e, { representation: "date" })), o = n ? gr(n) : e, i = R((l) => {
|
|
9062
9062
|
a(ea(l, { representation: "date" }));
|
|
@@ -9152,19 +9152,19 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9152
9152
|
stickyBottom: by
|
|
9153
9153
|
}, xy = "_input_pxkkh_1", ct = {
|
|
9154
9154
|
input: xy
|
|
9155
|
-
}, xc = ({ type: e, value: t, field: r, isPrimary: n, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon:
|
|
9155
|
+
}, xc = ({ type: e, value: t, field: r, isPrimary: n, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon: p, clearValue: u, customPickers: d }) => {
|
|
9156
9156
|
var f;
|
|
9157
9157
|
switch (e) {
|
|
9158
9158
|
case "NUM":
|
|
9159
|
-
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(sn, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, v === null ? null : Number(v)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !
|
|
9159
|
+
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(sn, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, v === null ? null : Number(v)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (v) => c(r, v === null ? null : Number(v)), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u });
|
|
9160
9160
|
case "STR":
|
|
9161
|
-
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(sn, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !
|
|
9161
|
+
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(sn, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: j(ct.input, ct.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u });
|
|
9162
9162
|
case "BIT":
|
|
9163
9163
|
return /* @__PURE__ */ s.jsx(Ox, { InputContainer: tt, className: ct.input, value: t === !0, onChange: (v) => c(r, v), disabled: a ? !0 : n ? !o : !1 });
|
|
9164
9164
|
case "DT":
|
|
9165
|
-
return /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !
|
|
9165
|
+
return /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u });
|
|
9166
9166
|
default: {
|
|
9167
|
-
const v =
|
|
9167
|
+
const v = d == null ? void 0 : d.find((g) => g.type === e);
|
|
9168
9168
|
return v ? /* @__PURE__ */ s.jsx(v.picker, { className: j(ct.input, ct.longer), value: t ? {
|
|
9169
9169
|
id: (t == null ? void 0 : t.toString()) ?? null,
|
|
9170
9170
|
name: ((f = i == null ? void 0 : i.find((g) => {
|
|
@@ -9187,55 +9187,55 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9187
9187
|
}
|
|
9188
9188
|
}
|
|
9189
9189
|
}, yy = ({ schema: e, columns: t, setColumns: r, initialItem: n, onEdit: a, onDelete: o, customPickers: i }) => {
|
|
9190
|
-
const { ProjectIconComponent: l } = Q(fe), [c,
|
|
9191
|
-
console.log("changeValue", v, g),
|
|
9190
|
+
const { ProjectIconComponent: l } = Q(fe), [c, p] = L(n), u = R((v, g) => {
|
|
9191
|
+
console.log("changeValue", v, g), p((b) => ({
|
|
9192
9192
|
...b,
|
|
9193
9193
|
[v]: {
|
|
9194
9194
|
...b[v],
|
|
9195
9195
|
value: g
|
|
9196
9196
|
}
|
|
9197
9197
|
}));
|
|
9198
|
-
}, []),
|
|
9198
|
+
}, []), d = (v) => (v == null ? void 0 : v.value) !== (v == null ? void 0 : v.defaultValue), f = R(() => Object.keys(c).some((v) => d(c[v])), [c]);
|
|
9199
9199
|
return F(() => {
|
|
9200
|
-
|
|
9200
|
+
p(n);
|
|
9201
9201
|
}, [n]), /* @__PURE__ */ s.jsxs("tr", { className: j("table-row", De.tableRow), children: [
|
|
9202
9202
|
/* @__PURE__ */ s.jsx("td", { className: j("table-cell", De.tableCell, De.stickyFirst), children: f() && /* @__PURE__ */ s.jsx(ce, { color: "success", onClick: () => a(bc(c)), children: /* @__PURE__ */ s.jsx(l, { icon: "check" }) }) }),
|
|
9203
9203
|
t.map((v) => {
|
|
9204
9204
|
var g, b;
|
|
9205
9205
|
return /* @__PURE__ */ s.jsx("td", { className: j("table-cell", De.tableCell), children: /* @__PURE__ */ s.jsx(xc, { type: v.type, value: (g = c[v.field ?? ""]) == null ? void 0 : g.value, field: v.field, isReadonly: v.readOnly, isPrimary: e.primaryKey === v.field, valuesForSelect: v.valuesForSelect, addValueToValuesForSelect: (h) => {
|
|
9206
9206
|
r(t.map((m) => m.field === v.field ? { ...m, valuesForSelect: [...m.valuesForSelect ?? [], h] } : m));
|
|
9207
|
-
}, onChangeHandler:
|
|
9207
|
+
}, onChangeHandler: u, hideClearIcon: !d(c[v.field ?? ""]), clearValue: (b = c[v.field ?? ""].defaultValue) == null ? void 0 : b.toString(), customPickers: i }) }, `${e.id}-${v.field}`);
|
|
9208
9208
|
}),
|
|
9209
9209
|
/* @__PURE__ */ s.jsx("td", { className: j("table-cell", De.tableCell, De.stickyLast), children: /* @__PURE__ */ s.jsx(ce, { color: "danger", onClick: () => o(c[e.primaryKey ?? ""].value), children: /* @__PURE__ */ s.jsx(l, { icon: "delete" }) }) })
|
|
9210
9210
|
] });
|
|
9211
9211
|
}, wy = ({ schema: e, columns: t, setColumns: r, onCreate: n, customPickers: a }) => {
|
|
9212
9212
|
const { ProjectIconComponent: o } = Q(fe), [i, l] = L(null), c = R(() => {
|
|
9213
|
-
var
|
|
9214
|
-
const
|
|
9215
|
-
(
|
|
9213
|
+
var d;
|
|
9214
|
+
const u = {};
|
|
9215
|
+
(d = e.columns) == null || d.forEach((f) => {
|
|
9216
9216
|
const v = f.type === "BIT" ? !1 : f.type === "NUM" ? null : f.type === "STR" ? "" : null;
|
|
9217
|
-
|
|
9217
|
+
u[f.field ?? ""] = {
|
|
9218
9218
|
value: v,
|
|
9219
9219
|
defaultValue: v
|
|
9220
9220
|
};
|
|
9221
|
-
}), l(
|
|
9222
|
-
}, [e]),
|
|
9221
|
+
}), l(u);
|
|
9222
|
+
}, [e]), p = R((u, d) => {
|
|
9223
9223
|
l((f) => f && {
|
|
9224
9224
|
...f,
|
|
9225
|
-
[
|
|
9226
|
-
...f[
|
|
9227
|
-
value:
|
|
9225
|
+
[u]: {
|
|
9226
|
+
...f[u],
|
|
9227
|
+
value: d
|
|
9228
9228
|
}
|
|
9229
9229
|
});
|
|
9230
9230
|
}, []);
|
|
9231
9231
|
return i ? /* @__PURE__ */ s.jsxs("tr", { className: "sticky-bottom shadow", children: [
|
|
9232
9232
|
/* @__PURE__ */ s.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ s.jsx(ce, { color: "success", onClick: async () => {
|
|
9233
|
-
const
|
|
9234
|
-
|
|
9233
|
+
const u = bc(i);
|
|
9234
|
+
u && await n(u) && l(null);
|
|
9235
9235
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "check" }) }) }),
|
|
9236
|
-
t.map((
|
|
9237
|
-
r(t.map((f) => f.field ===
|
|
9238
|
-
}, onChangeHandler:
|
|
9236
|
+
t.map((u) => /* @__PURE__ */ s.jsx("td", { children: /* @__PURE__ */ s.jsx(xc, { type: u.type, value: i[u.field ?? ""].value, field: u.field, isReadonly: u.readOnly, isPrimary: e.primaryKey === u.field, valuesForSelect: u.valuesForSelect, addValueToValuesForSelect: (d) => {
|
|
9237
|
+
r(t.map((f) => f.field === u.field ? { ...f, valuesForSelect: [...f.valuesForSelect ?? [], d] } : f));
|
|
9238
|
+
}, onChangeHandler: p, primaryEditable: !0, customPickers: a }) }, `${e.id}-${u.field}`)),
|
|
9239
9239
|
/* @__PURE__ */ s.jsx("td", { className: "sticky-last", children: /* @__PURE__ */ s.jsx(ce, { color: "danger", onClick: () => l(null), children: /* @__PURE__ */ s.jsx(o, { icon: "cancel" }) }) })
|
|
9240
9240
|
] }) : /* @__PURE__ */ s.jsxs("tr", { className: "sticky-bottom shadow", children: [
|
|
9241
9241
|
/* @__PURE__ */ s.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ s.jsx(ce, { onClick: c, children: /* @__PURE__ */ s.jsx(o, { icon: "add" }) }) }),
|
|
@@ -9293,7 +9293,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9293
9293
|
] }) }),
|
|
9294
9294
|
/* @__PURE__ */ s.jsx(Cy, { cellRef: o, defaultWidth: i })
|
|
9295
9295
|
] });
|
|
9296
|
-
}, jy = ({ schema: e, items: t, onEditItem: r, onDeleteItem: n, onCreateItem: a, filters: o, setFilter: i, sortByField: l, sortByType: c, setSortBy:
|
|
9296
|
+
}, jy = ({ schema: e, items: t, onEditItem: r, onDeleteItem: n, onCreateItem: a, filters: o, setFilter: i, sortByField: l, sortByType: c, setSortBy: p, selectedMaster: u, customPickers: d }) => {
|
|
9297
9297
|
const { texts: { dynamicForms: f } } = Q(fe), [v, g] = L([]);
|
|
9298
9298
|
return F(() => {
|
|
9299
9299
|
var b, h, m;
|
|
@@ -9307,15 +9307,15 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9307
9307
|
field: x.field ?? "",
|
|
9308
9308
|
type: x.type,
|
|
9309
9309
|
readOnly: x.readOnly,
|
|
9310
|
-
valuesForSelect: ((D = x.values) == null ? void 0 : D.filter((w) => x.valuesFilteredByMaster ? w.masterValue ===
|
|
9310
|
+
valuesForSelect: ((D = x.values) == null ? void 0 : D.filter((w) => x.valuesFilteredByMaster ? w.masterValue === u : !0).map((w) => ({ id: w.id ?? "", name: w.name }))) ?? void 0
|
|
9311
9311
|
};
|
|
9312
9312
|
})) ?? []
|
|
9313
9313
|
]);
|
|
9314
|
-
}, [e,
|
|
9314
|
+
}, [e, u]), /* @__PURE__ */ s.jsxs("table", { id: `dynamic-table-${e.id}`, className: j("table table-borderless luminus-df-table", De.table), children: [
|
|
9315
9315
|
/* @__PURE__ */ s.jsxs("thead", { className: j("text-nowrap table-header", De.stickyTop, De.tableHeader), children: [
|
|
9316
9316
|
/* @__PURE__ */ s.jsxs("tr", { className: j("table-row", De.tableRow), children: [
|
|
9317
9317
|
/* @__PURE__ */ s.jsx("th", { className: j("table-head", De.tableHead, De.actionColumn, De.stickyFirst) }),
|
|
9318
|
-
v.map((b) => /* @__PURE__ */ s.jsx(Iy, { column: b, sortByField: l, sortByType: c, setSortBy:
|
|
9318
|
+
v.map((b) => /* @__PURE__ */ s.jsx(Iy, { column: b, sortByField: l, sortByType: c, setSortBy: p }, `${e.id}-${b.field}`)),
|
|
9319
9319
|
/* @__PURE__ */ s.jsx("th", { className: j("table-head", De.tableHead, De.actionColumn, De.stickyLast) })
|
|
9320
9320
|
] }),
|
|
9321
9321
|
/* @__PURE__ */ s.jsxs("tr", { className: j("table-row filters-row", De.tableRow, De.filtersRow), children: [
|
|
@@ -9328,8 +9328,8 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9328
9328
|
] })
|
|
9329
9329
|
] }),
|
|
9330
9330
|
/* @__PURE__ */ s.jsxs("tbody", { className: j("table-body", De.tableBody), children: [
|
|
9331
|
-
t.filter((b) => b[e.primaryKey ?? ""]).map((b) => /* @__PURE__ */ s.jsx(yy, { schema: e, columns: v, setColumns: g, initialItem: b, onEdit: r, onDelete: n, customPickers:
|
|
9332
|
-
/* @__PURE__ */ s.jsx(wy, { schema: e, columns: v, setColumns: g, onCreate: a, customPickers:
|
|
9331
|
+
t.filter((b) => b[e.primaryKey ?? ""]).map((b) => /* @__PURE__ */ s.jsx(yy, { schema: e, columns: v, setColumns: g, initialItem: b, onEdit: r, onDelete: n, customPickers: d }, `${e.id}-${b[e.primaryKey ?? ""].value}`)),
|
|
9332
|
+
/* @__PURE__ */ s.jsx(wy, { schema: e, columns: v, setColumns: g, onCreate: a, customPickers: d })
|
|
9333
9333
|
] })
|
|
9334
9334
|
] });
|
|
9335
9335
|
}, _y = ({ master: e, onChange: t, options: r, label: n }) => /* @__PURE__ */ s.jsx("div", { style: { minWidth: "200px" }, children: /* @__PURE__ */ s.jsx(sn, { label: n, value: e, onChange: (a) => t(a ? a.toString() : null), options: r, size: "sm" }) }), Oy = "_pagination_gujwe_1", ki = {
|
|
@@ -9343,24 +9343,24 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9343
9343
|
apiItemDelete: "/dynamicForms/delete",
|
|
9344
9344
|
apiItemCreate: "/dynamicForms/insert",
|
|
9345
9345
|
apiExportGet: "/dynamicForms/export"
|
|
9346
|
-
}, rD = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Bi.appDetail } = Bi, apiUrls: { apiSchemaGet:
|
|
9346
|
+
}, rD = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Bi.appDetail } = Bi, apiUrls: { apiSchemaGet: p = At.apiSchemaGet, apiDataGet: u = At.apiDataGet, apiItemPost: d = At.apiItemPost, apiItemDelete: f = At.apiItemDelete, apiItemCreate: v = At.apiItemCreate, apiExportGet: g = At.apiExportGet } = At, customPickers: b }) => {
|
|
9347
9347
|
var ge, ue, $e, Ze, et, $t;
|
|
9348
9348
|
const { texts: { dynamicForms: h }, ProjectIconComponent: m } = Q(fe), x = Nt(), { startLoading: D, stopLoading: w } = Q(Or), [y, C] = L(null), [O, S] = L(null), [_, T] = L(null), [k, G] = L(null), [E, V] = L(!1), { addNotification: X } = us(), [P, I] = L([]), { confirm: B } = dn(), Y = 20, te = Y + 1, H = k ? Math.ceil(k.length / Y) : 1, oe = t ? t > 1 : !1, ee = t ? t < H : !1, re = t ? (t - 1) * Y : 0, $ = t ? t * Y : Y, J = z(() => k ? k.length > te : !1, [k, te]), me = z(() => J ? (k == null ? void 0 : k.slice(re, $)) ?? null : k ?? null, [J, k, re, $]), [W, ie] = L(null);
|
|
9349
9349
|
F(() => {
|
|
9350
9350
|
C(null), S(null), V(!1), I([]), ie(null);
|
|
9351
9351
|
}, [e]);
|
|
9352
9352
|
const Se = R(async () => {
|
|
9353
|
-
D("dynamicFormSchema"), await x.get(`${
|
|
9353
|
+
D("dynamicFormSchema"), await x.get(`${p}?id=${e}`).then(({ data: se }) => {
|
|
9354
9354
|
C(se), w("dynamicFormSchema");
|
|
9355
9355
|
}).catch(() => w("dynamicFormSchema"));
|
|
9356
|
-
}, [x, e, D, w,
|
|
9356
|
+
}, [x, e, D, w, p]), q = R(async () => {
|
|
9357
9357
|
var se;
|
|
9358
9358
|
if (!(y === null || ((se = y.id) == null ? void 0 : se.toString()) !== e)) {
|
|
9359
9359
|
if (y.masterReference && !W) {
|
|
9360
9360
|
S([]);
|
|
9361
9361
|
return;
|
|
9362
9362
|
}
|
|
9363
|
-
D("dynamicFormData"), await x.get(`${
|
|
9363
|
+
D("dynamicFormData"), await x.get(`${u}?id=${e}&showArchive=${E}${y.masterReference ? `&master=${W}` : ""}`).then(({ data: he }) => {
|
|
9364
9364
|
const je = he.map((be) => {
|
|
9365
9365
|
var Oe;
|
|
9366
9366
|
return Object.fromEntries(((Oe = y.columns) == null ? void 0 : Oe.filter((Ae) => Ae.field).map((Ae) => [
|
|
@@ -9371,12 +9371,12 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9371
9371
|
S(je), w("dynamicFormData");
|
|
9372
9372
|
}).catch(() => w("dynamicFormData"));
|
|
9373
9373
|
}
|
|
9374
|
-
}, [x, e, y, D, w, E, W,
|
|
9374
|
+
}, [x, e, y, D, w, E, W, u]), Pe = R(async () => {
|
|
9375
9375
|
var se;
|
|
9376
9376
|
y === null || ((se = y.id) == null ? void 0 : se.toString()) !== e || y.masterReference && !W || (D("dynamicFormExport"), await x.get(`${g}?id=${e}&showArchive=${E}${y.masterReference ? `&master=${W}` : ""}`, {
|
|
9377
9377
|
responseType: "blob"
|
|
9378
9378
|
}).then((he) => Cd(he, { fallbackName: `export-${e}` })).finally(() => w("dynamicFormExport")));
|
|
9379
|
-
}, [x, e, y, D, w, E, W, g]), Fe = R(async (se) => (D("dynamicFormEdit"), x.post(`${
|
|
9379
|
+
}, [x, e, y, D, w, E, W, g]), Fe = R(async (se) => (D("dynamicFormEdit"), x.post(`${d}?id=${e}`, se).then(() => (w("dynamicFormEdit"), I([]), !0)).catch((he) => (w("dynamicFormEdit"), I(Nn(he)), !1))), [x, e, D, w, d]), Ee = R(async (se) => (D("dynamicFormDelete"), x.delete(`${f}?id=${e}&pk=${se}`).then(() => (w("dynamicFormDelete"), I([]), !0)).catch((he) => (w("dynamicFormDelete"), I(Nn(he)), !1))), [x, e, D, w, f]), de = R(async (se) => (D("dynamicFormCreate"), x.post(`${v}?id=${e}`, se).then(({ data: he }) => (w("dynamicFormCreate"), I([]), he)).catch((he) => (w("dynamicFormCreate"), I(Nn(he)), null))), [x, e, D, w, v]), Re = R(async (se) => {
|
|
9380
9380
|
y && await Fe(y.masterReference ? { ...se, [y.masterReferenceColumn ?? ""]: W } : se) && (X(h.editSuccess, "success"), S((he) => he && he.map((je) => {
|
|
9381
9381
|
var be;
|
|
9382
9382
|
return ((be = je[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : be.value) === se[(y == null ? void 0 : y.primaryKey) ?? ""] ? Ri(se, y) : je;
|
|
@@ -9522,24 +9522,24 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9522
9522
|
}, Mi = {
|
|
9523
9523
|
apiDynamicFormsGet: "/dynamicForms"
|
|
9524
9524
|
}, Py = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Et, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), nD = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: n, fullSize: a, appUrls: { appDetail: o = Li.appDetail } = Li, apiUrls: { apiDynamicFormsGet: i = Mi.apiDynamicFormsGet } = Mi }) => {
|
|
9525
|
-
const l = Nt(), { startLoading: c, stopLoading:
|
|
9526
|
-
...(
|
|
9525
|
+
const l = Nt(), { startLoading: c, stopLoading: p } = Q(Or), [u, d] = L(null), [f] = hs("search", ""), v = z(() => [
|
|
9526
|
+
...(u == null ? void 0 : u.map((h) => ({
|
|
9527
9527
|
...h,
|
|
9528
9528
|
type: "dynamic-form"
|
|
9529
9529
|
}))) ?? [],
|
|
9530
9530
|
...t
|
|
9531
|
-
].filter((h) => ut(h.name, n) || ut(h.description, n)).sort((h, m) => (h.name ?? "").localeCompare(m.name ?? "")) ?? [], [
|
|
9531
|
+
].filter((h) => ut(h.name, n) || ut(h.description, n)).sort((h, m) => (h.name ?? "").localeCompare(m.name ?? "")) ?? [], [u, t, n]), g = z(() => r.map((h) => ({
|
|
9532
9532
|
id: h.id,
|
|
9533
9533
|
name: h.name ?? "",
|
|
9534
9534
|
items: v.filter((m) => m.group === h.id)
|
|
9535
9535
|
})).filter((h) => h.items.length > 0), [r, v]), b = R(async () => {
|
|
9536
9536
|
c("dynamicForms"), await l.get(i).then(({ data: h }) => {
|
|
9537
|
-
|
|
9538
|
-
}).catch(() =>
|
|
9539
|
-
}, [l, c,
|
|
9537
|
+
d(h), p("dynamicForms");
|
|
9538
|
+
}).catch(() => p("dynamicForms"));
|
|
9539
|
+
}, [l, c, p, i]);
|
|
9540
9540
|
return F(() => {
|
|
9541
|
-
!
|
|
9542
|
-
}, [b,
|
|
9541
|
+
!u && b();
|
|
9542
|
+
}, [b, u]), v.length > 0 ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((h) => /* @__PURE__ */ s.jsx(Zr, { title: h.name, defaultOpen: !0, children: h.items.map((m) => {
|
|
9543
9543
|
var x, D, w, y;
|
|
9544
9544
|
return a ? /* @__PURE__ */ s.jsxs(nt, { to: `${Qr(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: [
|
|
9545
9545
|
/* @__PURE__ */ s.jsx(ae, { variant: "body", children: m.name }),
|
|
@@ -9664,24 +9664,24 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9664
9664
|
reportsGet: "/reports",
|
|
9665
9665
|
reportsLastUsedGet: "/reports/last-used"
|
|
9666
9666
|
}, uD = ({ groups: e, apiUrls: { reportsGet: t = Yn.reportsGet, reportsLastUsedGet: r = Yn.reportsLastUsedGet } = Yn, getReportName: n, getReportDescription: a, getGroupTitle: o, getReportRoute: i }) => {
|
|
9667
|
-
const { texts: { reports: l } } = Q(fe), [c,
|
|
9667
|
+
const { texts: { reports: l } } = Q(fe), [c, p] = L(""), [u] = pn(c, 500), d = R((h) => h.map((m) => ({
|
|
9668
9668
|
...m,
|
|
9669
9669
|
groupId: !m.groupId || m.groupId === 0 || !e.some((x) => x === m.groupId) ? 999 : m.groupId
|
|
9670
|
-
})), [e]), { data: f } = hr(t, { dataTransformer:
|
|
9670
|
+
})), [e]), { data: f } = hr(t, { dataTransformer: d }), v = z(() => {
|
|
9671
9671
|
if (f === null)
|
|
9672
9672
|
return {};
|
|
9673
9673
|
const h = {};
|
|
9674
9674
|
return e.forEach((m) => {
|
|
9675
|
-
h[m] = f.filter((x) => x.groupId === m && (ut(n(x),
|
|
9675
|
+
h[m] = f.filter((x) => x.groupId === m && (ut(n(x), u) || ut(a(x), u) || x.versions.some((D) => ut(D.name, u)) || x.versionsCustom.some((D) => ut(D.name, u))));
|
|
9676
9676
|
}), h;
|
|
9677
|
-
}, [
|
|
9677
|
+
}, [u, e, f, a, n]), g = z(() => e.filter((h) => {
|
|
9678
9678
|
var m;
|
|
9679
9679
|
return ((m = v[h]) == null ? void 0 : m.length) > 0;
|
|
9680
9680
|
}), [v, e]), { isMobile: b } = cn();
|
|
9681
9681
|
return /* @__PURE__ */ s.jsxs(ps, { variant: "fullScreen", sideContent: /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx($y, { reportsLastUsedGet: r, getReportName: n, getReportRoute: i }) }), children: [
|
|
9682
9682
|
/* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(_e.Control, { className: "mb-3", type: "search", value: c, onChange: (h) => {
|
|
9683
9683
|
var m;
|
|
9684
|
-
return
|
|
9684
|
+
return p(((m = h.target) == null ? void 0 : m.value) ?? "");
|
|
9685
9685
|
}, placeholder: l.index.search }) }),
|
|
9686
9686
|
/* @__PURE__ */ s.jsx("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: g.map((h) => /* @__PURE__ */ s.jsxs("div", { className: j(Wt.cardsGroup, { [Wt.mobile]: b }), children: [
|
|
9687
9687
|
/* @__PURE__ */ s.jsx("div", { className: j("group-title z-1", Wt.groupTitle), children: /* @__PURE__ */ s.jsx(Ry, { text: o(h) }) }),
|
|
@@ -9694,7 +9694,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9694
9694
|
sm: Wy,
|
|
9695
9695
|
lg: Uy
|
|
9696
9696
|
}, pD = ({ children: e, useMiniDetail: t, miniDetailProps: r, placement: n = "bottom", trigger: a = ["hover"], delayMs: o = 500 }) => {
|
|
9697
|
-
const [i, l] = L(!1), { isLoading: c, detail:
|
|
9697
|
+
const [i, l] = L(!1), { isLoading: c, detail: p, heading: u, tooltipWidth: d } = t({
|
|
9698
9698
|
...r,
|
|
9699
9699
|
enabled: i
|
|
9700
9700
|
}), f = U(null);
|
|
@@ -9702,7 +9702,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9702
9702
|
f.current = window.setTimeout(() => l(!0), o);
|
|
9703
9703
|
}, onMouseLeave: () => {
|
|
9704
9704
|
f.current && clearTimeout(f.current), l(!1);
|
|
9705
|
-
}, children: i ? /* @__PURE__ */ s.jsx(_d, { heading: c ? /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ s.jsx("span", { className: "placeholder bg-primary col-6" }) }) :
|
|
9705
|
+
}, children: i ? /* @__PURE__ */ s.jsx(_d, { heading: c ? /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ s.jsx("span", { className: "placeholder bg-primary col-6" }) }) : u, content: /* @__PURE__ */ s.jsx(s.Fragment, { children: c ? /* @__PURE__ */ s.jsxs(ae, { variant: "body2", className: "placeholder-glow", children: [
|
|
9706
9706
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between py-1", children: [
|
|
9707
9707
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
|
|
9708
9708
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
|
|
@@ -9723,11 +9723,11 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9723
9723
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
|
|
9724
9724
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
|
|
9725
9725
|
] })
|
|
9726
|
-
] }) :
|
|
9726
|
+
] }) : p }), placement: n, trigger: a, popoverClassName: j(Vi.miniDetailPopover, Vi[d]), children: /* @__PURE__ */ s.jsx("div", { children: e }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) });
|
|
9727
9727
|
}, fD = ({ label: e, value: t }) => /* @__PURE__ */ s.jsxs("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
|
|
9728
9728
|
/* @__PURE__ */ s.jsx(ae, { variant: "caption", children: e }),
|
|
9729
9729
|
/* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-end", children: t ?? "-" })
|
|
9730
|
-
] }), vD = ({ InputContainer: e = st, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint:
|
|
9730
|
+
] }), vD = ({ InputContainer: e = st, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: p, onChange: u, className: d }) => {
|
|
9731
9731
|
const { register: f, formState: v, setValue: g } = Ct(), [b, h] = L(void 0), [m, x] = L(!1);
|
|
9732
9732
|
F(() => {
|
|
9733
9733
|
const w = t.split(".");
|
|
@@ -9739,36 +9739,36 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9739
9739
|
v.isSubmitted && x(!0);
|
|
9740
9740
|
}, [v]);
|
|
9741
9741
|
const D = b !== void 0;
|
|
9742
|
-
return /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${r}${o ? " *" : ""}`, isInvalid: D, withoutLabel: c, hint:
|
|
9742
|
+
return /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${r}${o ? " *" : ""}`, isInvalid: D, withoutLabel: c, hint: p, className: d, children: [
|
|
9743
9743
|
/* @__PURE__ */ s.jsx(_e.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...f(t, {
|
|
9744
9744
|
onChange: (w) => {
|
|
9745
|
-
n && n.forEach((y) => g(y, null, { shouldDirty: !0, shouldValidate: m })),
|
|
9745
|
+
n && n.forEach((y) => g(y, null, { shouldDirty: !0, shouldValidate: m })), u && u(w.target.value ?? null);
|
|
9746
9746
|
}
|
|
9747
9747
|
}), isInvalid: D, hidden: i, disabled: l || v.disabled, className: "w-100" }),
|
|
9748
9748
|
b && /* @__PURE__ */ s.jsx(Mt, { message: b.message })
|
|
9749
9749
|
] });
|
|
9750
|
-
}, gD = ({ InputContainer: e = st, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className:
|
|
9751
|
-
const { register:
|
|
9750
|
+
}, gD = ({ InputContainer: e = st, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: p }) => {
|
|
9751
|
+
const { register: u, formState: d, setValue: f, watch: v } = Ct(), [g, b] = L(void 0), [h, m] = L(!1), x = z(() => n, [n]);
|
|
9752
9752
|
F(() => {
|
|
9753
9753
|
const w = r.split(".");
|
|
9754
|
-
let y =
|
|
9754
|
+
let y = d.errors;
|
|
9755
9755
|
w.forEach((C) => {
|
|
9756
9756
|
y !== void 0 && (y = y[C]);
|
|
9757
9757
|
}), b(y);
|
|
9758
|
-
}, [
|
|
9759
|
-
|
|
9760
|
-
}, [
|
|
9758
|
+
}, [d, r]), F(() => {
|
|
9759
|
+
d.isSubmitted && m(!0);
|
|
9760
|
+
}, [d]);
|
|
9761
9761
|
const D = g !== void 0;
|
|
9762
|
-
return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: `${t}${o ? " *" : ""}`, isInvalid: D, className:
|
|
9763
|
-
x.map((w) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${w.id}`, label: w.name, type: "radio", value: w.id ?? "", checked: v(r) === w.id, ...
|
|
9762
|
+
return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: `${t}${o ? " *" : ""}`, isInvalid: D, className: p, children: [
|
|
9763
|
+
x.map((w) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${w.id}`, label: w.name, type: "radio", value: w.id ?? "", checked: v(r) === w.id, ...u(r, {
|
|
9764
9764
|
onChange: (y) => {
|
|
9765
9765
|
var C;
|
|
9766
9766
|
a && a.forEach((O) => f(O, null, { shouldDirty: !0, shouldValidate: h })), c && c((C = y.target) != null && C.value ? y.target.value.toString() : null);
|
|
9767
9767
|
}
|
|
9768
|
-
}), isInvalid: D, hidden: l, disabled: i ||
|
|
9768
|
+
}), isInvalid: D, hidden: l, disabled: i || d.disabled, className: "w-100" }, w.id)),
|
|
9769
9769
|
g && /* @__PURE__ */ s.jsx(Mt, { message: g.message })
|
|
9770
9770
|
] });
|
|
9771
|
-
}, mD = ({ InputContainer: e = st, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled:
|
|
9771
|
+
}, mD = ({ InputContainer: e = st, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: u, onSearchQueryChange: d, selectedItemNavigateTo: f, texts: v, dropdownItemsNameWidth: g, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: w, onSelect: y, className: C, archiveColumn: O, hint: S, addNewOptionPath: _, refreshOptions: T, MiniDetailComponent: k, miniDetailPlacement: G }) => {
|
|
9772
9772
|
const { formState: E, setValue: V, watch: X, control: P } = Ct(), [I, B] = L(void 0), [Y, te] = L(!1), [H, oe] = L(!1), ee = X(t) ?? null, re = ee === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : X(`${t}-DropdownName`), $ = z(() => ee == null ? null : { id: ee ?? null, name: re ?? "" }, [ee, re]), J = R(() => {
|
|
9773
9773
|
const de = t.split(".");
|
|
9774
9774
|
let Re = E.errors;
|
|
@@ -9800,7 +9800,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9800
9800
|
}, [J]), F(() => {
|
|
9801
9801
|
E.isSubmitted && oe(!0);
|
|
9802
9802
|
}, [E]);
|
|
9803
|
-
const Se = U(null), q = I !== void 0, Pe = f !== void 0, Fe = Pe && $ !== null, Ee =
|
|
9803
|
+
const Se = U(null), q = I !== void 0, Pe = f !== void 0, Fe = Pe && $ !== null, Ee = p || E.disabled;
|
|
9804
9804
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: q, inputContainerClassName: j({ "luminus-dropdown-select-open": Y }), hint: S, className: C, children: [
|
|
9805
9805
|
/* @__PURE__ */ s.jsxs(dc, { currentSelection: $, selectedItemNavigateTo: f, children: [
|
|
9806
9806
|
w && ($ == null ? void 0 : $.name) && /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: $.name }),
|
|
@@ -9821,9 +9821,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9821
9821
|
] }) : null
|
|
9822
9822
|
] }),
|
|
9823
9823
|
I && /* @__PURE__ */ s.jsx(Mt, { message: I.message }),
|
|
9824
|
-
Se.current && /* @__PURE__ */ s.jsx(fn, { show: Y, onCancel: ie, items:
|
|
9824
|
+
Se.current && /* @__PURE__ */ s.jsx(fn, { show: Y, onCancel: ie, items: u, currentSelection: $, onSelectionChange: W, onSearchQueryChange: d, texts: v, itemsNameWidth: g, additionalColumns: m, displayIdAsName: w, isLoading: b, disabled: Ee, inputRef: Se, archiveColumn: O, addNewOptionPath: _, refreshOptions: T })
|
|
9825
9825
|
] }) });
|
|
9826
|
-
}, hD = ({ InputContainer: e = st, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple:
|
|
9826
|
+
}, hD = ({ InputContainer: e = st, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept: u, withoutLabel: d, hint: f, className: v }) => {
|
|
9827
9827
|
const { watch: g, setValue: b, register: h, formState: m } = Ct(), [x, D] = L(!1), [w, y] = L(void 0), C = R(() => {
|
|
9828
9828
|
b(r, "");
|
|
9829
9829
|
}, [b, r]), O = R(() => {
|
|
@@ -9837,8 +9837,8 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9837
9837
|
m.isSubmitted && D(!0);
|
|
9838
9838
|
}, [m]);
|
|
9839
9839
|
const S = w !== void 0;
|
|
9840
|
-
return /* @__PURE__ */ s.jsxs(e, { label: `${t}${a ? "*" : ""}`, hidden: n, withoutLabel:
|
|
9841
|
-
/* @__PURE__ */ s.jsx(Od, { type: "file", multiple:
|
|
9840
|
+
return /* @__PURE__ */ s.jsxs(e, { label: `${t}${a ? "*" : ""}`, hidden: n, withoutLabel: d, isInvalid: S, hint: f, className: v, children: [
|
|
9841
|
+
/* @__PURE__ */ s.jsx(Od, { type: "file", multiple: p, accept: u.join(", "), placeholder: o ?? t, isInvalid: S, hidden: n, disabled: i || m.disabled, className: "w-100", ...h(r, {
|
|
9842
9842
|
onChange: () => {
|
|
9843
9843
|
c && c.forEach((_) => b(_, null, { shouldDirty: !0, shouldValidate: x }));
|
|
9844
9844
|
}
|
|
@@ -9851,7 +9851,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9851
9851
|
return F(() => {
|
|
9852
9852
|
o(Object.keys(n.dirtyFields).length > 0);
|
|
9853
9853
|
}, [n]), a ? /* @__PURE__ */ s.jsx(Du, { onStorno: t, noSpacer: r, disabled: n.disabled, children: e }) : null;
|
|
9854
|
-
}, xD = ({ InputContainer: e = st, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled:
|
|
9854
|
+
}, xD = ({ InputContainer: e = st, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, withoutLabel: u, noSortOptions: d, suffixIdToName: f, onSelect: v, className: g, appendCurrentSelectionWithName: b, hint: h, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent: D, miniDetailPlacement: w }) => {
|
|
9855
9855
|
const { texts: { customSelect: y } } = Q(fe), { formState: C, setValue: O, watch: S, control: _ } = Ct(), [T, k] = L(void 0), [G, E] = L(!1), [V, X] = L(!1), [P, I] = L(""), B = S(r), Y = z(() => t.find((W) => W.id === B) ?? null, [t, B]), te = R(() => {
|
|
9856
9856
|
const W = r.split(".");
|
|
9857
9857
|
let ie = C.errors;
|
|
@@ -9891,26 +9891,26 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9891
9891
|
return b !== void 0 && B && (W.some((ie) => ie.id === B) || W.push({ id: B, name: b })), W.map((ie) => ({
|
|
9892
9892
|
id: ie.id,
|
|
9893
9893
|
name: re(ie)
|
|
9894
|
-
})).filter((ie) => ut(ie.name, P)).sort((ie, Se) =>
|
|
9894
|
+
})).filter((ie) => ut(ie.name, P)).sort((ie, Se) => d ? 0 : (ie.name ?? "").localeCompare(Se.name ?? ""));
|
|
9895
9895
|
}, [
|
|
9896
9896
|
t,
|
|
9897
|
-
|
|
9897
|
+
d,
|
|
9898
9898
|
P,
|
|
9899
9899
|
re,
|
|
9900
9900
|
b,
|
|
9901
9901
|
B
|
|
9902
9902
|
]), J = U(null), me = T !== void 0;
|
|
9903
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel:
|
|
9903
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: me, inputContainerClassName: j({ "luminus-dropdown-select-open": G }), hint: h, className: g, children: [
|
|
9904
9904
|
/* @__PURE__ */ s.jsx(Da, { control: _, name: r, render: () => /* @__PURE__ */ s.jsx(yn, { value: B, MiniDetailComponent: D, miniDetailPlacement: w, children: /* @__PURE__ */ s.jsx(_e.Select, { size: a, onMouseDown: (W) => {
|
|
9905
9905
|
W.currentTarget.focus(), W.preventDefault();
|
|
9906
9906
|
}, onClick: () => {
|
|
9907
9907
|
E(!0);
|
|
9908
9908
|
}, ref: J, value: B ?? "", onChange: () => {
|
|
9909
|
-
}, isInvalid: me, hidden: c, disabled:
|
|
9909
|
+
}, isInvalid: me, hidden: c, disabled: p, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (Y == null ? void 0 : Y.id) ?? "", children: re(Y) }) }) }) }),
|
|
9910
9910
|
T && /* @__PURE__ */ s.jsx(Mt, { message: T.message }),
|
|
9911
|
-
J.current && /* @__PURE__ */ s.jsx(fn, { show: G, onCancel: () => E(!1), items: $, currentSelection: Y ?? null, onSelectionChange: oe, onSearchQueryChange: ee, texts: y, disabled:
|
|
9911
|
+
J.current && /* @__PURE__ */ s.jsx(fn, { show: G, onCancel: () => E(!1), items: $, currentSelection: Y ?? null, onSelectionChange: oe, onSearchQueryChange: ee, texts: y, disabled: p, inputRef: J, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: m, refreshOptions: x })
|
|
9912
9912
|
] }) });
|
|
9913
|
-
}, yD = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden:
|
|
9913
|
+
}, yD = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled: u, withoutLabel: d, step: f, stepperStep: v = 1, className: g, min: b, max: h, onChange: m, hint: x }) => {
|
|
9914
9914
|
const { register: D, formState: w, setValue: y, watch: C } = Ct(), [O, S] = L(void 0), [_, T] = L(!1), k = R((P, I, B) => {
|
|
9915
9915
|
y(P, dr(I, b, h), B);
|
|
9916
9916
|
}, [h, b, y]), G = R(() => {
|
|
@@ -9932,7 +9932,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9932
9932
|
w.isSubmitted && T(!0);
|
|
9933
9933
|
}, [w]);
|
|
9934
9934
|
const V = O !== void 0, X = C(t);
|
|
9935
|
-
return /* @__PURE__ */ s.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden:
|
|
9935
|
+
return /* @__PURE__ */ s.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: p, withoutLabel: d, isInvalid: V, hint: x, className: g, children: [
|
|
9936
9936
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
9937
9937
|
/* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: n ?? r, size: a, ...D(t, {
|
|
9938
9938
|
setValueAs: (P) => P == null || P === "" ? null : dr(Number(P), b, h),
|
|
@@ -9942,18 +9942,18 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9942
9942
|
var I;
|
|
9943
9943
|
o && o.forEach((B) => y(B, null, { shouldDirty: !0, shouldValidate: _ })), m && m((I = P.target) != null && I.value ? Number(P.target.value) ?? null : null);
|
|
9944
9944
|
}
|
|
9945
|
-
}), isInvalid: V, hidden:
|
|
9946
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !
|
|
9945
|
+
}), isInvalid: V, hidden: p, disabled: u || w.disabled, className: "w-100 luminus-numeric-stepper", step: f, min: b, max: h }),
|
|
9946
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (P) => {
|
|
9947
9947
|
P.preventDefault(), P.stopPropagation(), k(t, ((X ? Number(X) : 0) - v).toString(), { shouldDirty: !0, shouldValidate: _ });
|
|
9948
9948
|
}, children: /* @__PURE__ */ s.jsx(cs, {}) }) }),
|
|
9949
|
-
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !
|
|
9949
|
+
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (P) => {
|
|
9950
9950
|
P.preventDefault(), P.stopPropagation(), k(t, ((X ? Number(X) : 0) + v).toString(), { shouldDirty: !0, shouldValidate: _ });
|
|
9951
9951
|
}, children: /* @__PURE__ */ s.jsx(ds, {}) }) })
|
|
9952
9952
|
] }),
|
|
9953
9953
|
i && C(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: G, children: /* @__PURE__ */ s.jsx(pt, {}) }) }),
|
|
9954
9954
|
O && /* @__PURE__ */ s.jsx(Mt, { message: O.message })
|
|
9955
9955
|
] });
|
|
9956
|
-
}, wD = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled:
|
|
9956
|
+
}, wD = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: u, step: d, size: f, CustomOnChangeComponent: v, noSelectOnFocus: g, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: w, max: y, onChange: C, hint: O }) => {
|
|
9957
9957
|
const { formState: S, setValue: _, watch: T, control: k } = Ct(), [G, E] = L(void 0), [V, X] = L(!1), P = R(() => {
|
|
9958
9958
|
const te = i ?? null;
|
|
9959
9959
|
_(t, te !== null ? Number(te) : null, {
|
|
@@ -9977,7 +9977,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9977
9977
|
y !== void 0 && B > y && _(t, y), w !== void 0 && B < w && _(t, w);
|
|
9978
9978
|
}, [t, B, y, w, _]);
|
|
9979
9979
|
const Y = G !== void 0;
|
|
9980
|
-
return /* @__PURE__ */ s.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel:
|
|
9980
|
+
return /* @__PURE__ */ s.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: Y, hint: O, className: b, children: [
|
|
9981
9981
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
9982
9982
|
/* @__PURE__ */ s.jsx(Da, { control: k, name: t, render: ({ field: { ref: te, onChange: H, name: oe, value: ee } }) => /* @__PURE__ */ s.jsx(ao, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: m, prefix: x, suffix: D, defaultValue: "", name: oe, value: ee ?? "", placeholder: n ?? r, onFocus: (re) => {
|
|
9983
9983
|
!g && re.target.select();
|
|
@@ -9987,11 +9987,11 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
9987
9987
|
a && a.forEach((ie) => _(ie, null, { shouldDirty: !0, shouldValidate: V }));
|
|
9988
9988
|
const J = $ == null || Number.isNaN($) ? null : Number($);
|
|
9989
9989
|
H(J), C && C(J);
|
|
9990
|
-
}, hidden: c, disabled:
|
|
9990
|
+
}, hidden: c, disabled: p || S.disabled, className: j("form-control text-end w-100", {
|
|
9991
9991
|
"is-invalid": Y
|
|
9992
9992
|
}, {
|
|
9993
9993
|
[`form-control-${f}`]: f
|
|
9994
|
-
}), step:
|
|
9994
|
+
}), step: d, getInputRef: te, min: w, max: y }) }),
|
|
9995
9995
|
v && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: v })
|
|
9996
9996
|
] }),
|
|
9997
9997
|
o && T(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: P, children: /* @__PURE__ */ s.jsx(pt, {}) }) }),
|
|
@@ -10019,7 +10019,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10019
10019
|
t[r] = (e == null ? void 0 : e[r]) ?? void 0;
|
|
10020
10020
|
}), t;
|
|
10021
10021
|
}, Wi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ui = (e) => !e.member && !e.isDrillThrough, Hi = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), qy = ({ dataSource: e, settings: t, pivotRef: r, localization: n, licenseKey: a, hyperlinkColumn: o, enabled: i = !0 }) => {
|
|
10022
|
-
const { texts: { reports: l } } = Q(fe), [c,
|
|
10022
|
+
const { texts: { reports: l } } = Q(fe), [c, p] = L(!1), u = U(null), d = r ?? u, f = z(() => ({
|
|
10023
10023
|
localization: n
|
|
10024
10024
|
}), [n]), v = R((m) => {
|
|
10025
10025
|
delete m[0], delete m[1], delete m[2];
|
|
@@ -10027,13 +10027,13 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10027
10027
|
{
|
|
10028
10028
|
id: "fm-tab-expand",
|
|
10029
10029
|
title: l.expandAll,
|
|
10030
|
-
handler:
|
|
10030
|
+
handler: d.current.flexmonster.expandAllData,
|
|
10031
10031
|
icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/><path fill="none" d="M0 0h24v24H0V0z"/></svg>'
|
|
10032
10032
|
},
|
|
10033
10033
|
{
|
|
10034
10034
|
id: "fm-tab-collapse",
|
|
10035
10035
|
title: l.collapseAll,
|
|
10036
|
-
handler:
|
|
10036
|
+
handler: d.current.flexmonster.collapseAllData,
|
|
10037
10037
|
icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'
|
|
10038
10038
|
}
|
|
10039
10039
|
];
|
|
@@ -10044,17 +10044,17 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10044
10044
|
menu: x,
|
|
10045
10045
|
rightGroup: !0
|
|
10046
10046
|
}), m;
|
|
10047
|
-
}, [
|
|
10047
|
+
}, [d, l.collapseAll, l.expand, l.expandAll]), g = (m) => {
|
|
10048
10048
|
const x = m.getTabs();
|
|
10049
10049
|
m.getTabs = () => v(x);
|
|
10050
10050
|
};
|
|
10051
10051
|
F(() => {
|
|
10052
10052
|
var m;
|
|
10053
|
-
c && i && ((m =
|
|
10054
|
-
}, [e, i, c,
|
|
10053
|
+
c && i && ((m = d.current) == null || m.flexmonster.updateData(e), console.log("Updating flexmonster dataSource to: ", e));
|
|
10054
|
+
}, [e, i, c, d]), F(() => {
|
|
10055
10055
|
var m, x, D;
|
|
10056
10056
|
if (c && i) {
|
|
10057
|
-
const { options: w, conditions: y, formats: C, slice: O, ...S } = (m =
|
|
10057
|
+
const { options: w, conditions: y, formats: C, slice: O, ...S } = (m = d.current) == null ? void 0 : m.flexmonster.getReport();
|
|
10058
10058
|
if (S === void 0 || typeof S == "string")
|
|
10059
10059
|
return;
|
|
10060
10060
|
const _ = zy(t);
|
|
@@ -10064,9 +10064,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10064
10064
|
showFieldListSearch: !0
|
|
10065
10065
|
};
|
|
10066
10066
|
const T = { ...S, ..._ };
|
|
10067
|
-
(D =
|
|
10067
|
+
(D = d.current) == null || D.flexmonster.setReport(T), console.log("Refreshing flexmonster settings. New report: ", T);
|
|
10068
10068
|
}
|
|
10069
|
-
}, [i, c,
|
|
10069
|
+
}, [i, c, d, t]);
|
|
10070
10070
|
const b = R((m, x) => {
|
|
10071
10071
|
var _;
|
|
10072
10072
|
if (!o || !Wi(x, o.idColumn) || Ui(x))
|
|
@@ -10087,14 +10087,14 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10087
10087
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
10088
10088
|
Hd,
|
|
10089
10089
|
{
|
|
10090
|
-
ref:
|
|
10090
|
+
ref: d,
|
|
10091
10091
|
global: f,
|
|
10092
10092
|
licenseKey: a,
|
|
10093
10093
|
toolbar: !0,
|
|
10094
10094
|
height: "100%",
|
|
10095
10095
|
beforetoolbarcreated: g,
|
|
10096
10096
|
ready: () => {
|
|
10097
|
-
|
|
10097
|
+
p(!0);
|
|
10098
10098
|
},
|
|
10099
10099
|
width: "100%",
|
|
10100
10100
|
customizeCell: b,
|
|
@@ -10102,17 +10102,17 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10102
10102
|
}
|
|
10103
10103
|
) });
|
|
10104
10104
|
}, Yy = (e, t, r, n) => {
|
|
10105
|
-
const { texts: { reports: a } } = Q(fe), { prompt: o } = Pd(), { confirm: i } = dn(), l = Nt(), { user: c } = Q(_r), { startLoading:
|
|
10106
|
-
|
|
10105
|
+
const { texts: { reports: a } } = Q(fe), { prompt: o } = Pd(), { confirm: i } = dn(), l = Nt(), { user: c } = Q(_r), { startLoading: p, stopLoading: u } = Q(Or), { addNotification: d } = us(), f = R(async (m) => {
|
|
10106
|
+
p("report-versionSavingAs");
|
|
10107
10107
|
try {
|
|
10108
10108
|
const x = await l.post("/reports/version", m);
|
|
10109
|
-
|
|
10109
|
+
d(a.saveSuccessful, "success"), await n(x.data);
|
|
10110
10110
|
} finally {
|
|
10111
|
-
|
|
10111
|
+
u("report-versionSavingAs");
|
|
10112
10112
|
}
|
|
10113
|
-
}, [
|
|
10113
|
+
}, [d, n, l, a.saveSuccessful, p, u]), v = R(async () => {
|
|
10114
10114
|
if (r === null) {
|
|
10115
|
-
|
|
10115
|
+
d("none open", "warning");
|
|
10116
10116
|
return;
|
|
10117
10117
|
}
|
|
10118
10118
|
if (!await i(a.confirmOverwriteSave))
|
|
@@ -10124,7 +10124,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10124
10124
|
settings: x
|
|
10125
10125
|
});
|
|
10126
10126
|
}, [
|
|
10127
|
-
|
|
10127
|
+
d,
|
|
10128
10128
|
i,
|
|
10129
10129
|
t,
|
|
10130
10130
|
e,
|
|
@@ -10142,26 +10142,26 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10142
10142
|
settings: x
|
|
10143
10143
|
});
|
|
10144
10144
|
}, [t, o, e, a.enterName, f]), b = R(async () => {
|
|
10145
|
-
|
|
10145
|
+
p("report-versionSavingAs");
|
|
10146
10146
|
try {
|
|
10147
10147
|
await l.post("/reports/version", {
|
|
10148
10148
|
reportVersionId: r ?? void 0,
|
|
10149
10149
|
reportSourceName: e,
|
|
10150
10150
|
isArchived: !0
|
|
10151
|
-
}),
|
|
10151
|
+
}), d(a.deleteSuccessful, "success");
|
|
10152
10152
|
} finally {
|
|
10153
|
-
|
|
10153
|
+
u("report-versionSavingAs");
|
|
10154
10154
|
}
|
|
10155
10155
|
}, [
|
|
10156
|
-
|
|
10156
|
+
d,
|
|
10157
10157
|
l,
|
|
10158
10158
|
e,
|
|
10159
10159
|
a.deleteSuccessful,
|
|
10160
10160
|
r,
|
|
10161
|
-
|
|
10162
|
-
|
|
10161
|
+
p,
|
|
10162
|
+
u
|
|
10163
10163
|
]), h = R(async () => {
|
|
10164
|
-
|
|
10164
|
+
p("report-versionSavingAs");
|
|
10165
10165
|
try {
|
|
10166
10166
|
await l.post("/reports/version-restrictions", {
|
|
10167
10167
|
reportVersionId: r ?? void 0,
|
|
@@ -10171,17 +10171,17 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10171
10171
|
addRights: !1
|
|
10172
10172
|
}
|
|
10173
10173
|
]
|
|
10174
|
-
}),
|
|
10174
|
+
}), d(a.detachSuccessful, "success");
|
|
10175
10175
|
} finally {
|
|
10176
|
-
|
|
10176
|
+
u("report-versionSavingAs");
|
|
10177
10177
|
}
|
|
10178
10178
|
}, [
|
|
10179
|
-
|
|
10179
|
+
d,
|
|
10180
10180
|
l,
|
|
10181
10181
|
a.detachSuccessful,
|
|
10182
10182
|
r,
|
|
10183
|
+
p,
|
|
10183
10184
|
u,
|
|
10184
|
-
d,
|
|
10185
10185
|
c.personalNumber
|
|
10186
10186
|
]);
|
|
10187
10187
|
return { saveAs: g, save: v, archive: b, detach: h };
|
|
@@ -10206,22 +10206,22 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10206
10206
|
return l;
|
|
10207
10207
|
}, [t, e, r, n]) };
|
|
10208
10208
|
}, Xy = ({ isOpen: e, onHide: t, usersData: r, reportVersionId: n, EmployeePicker: a, setReportVersion: o }) => {
|
|
10209
|
-
const { ProjectIconComponent: i, texts: { reports: l } } = Q(fe), { confirm: c } = dn(), [
|
|
10209
|
+
const { ProjectIconComponent: i, texts: { reports: l } } = Q(fe), { confirm: c } = dn(), [p, u] = L(null), { changeEmployeeRights: d } = Ky(n), f = R((b) => {
|
|
10210
10210
|
o((h) => h === null ? null : {
|
|
10211
10211
|
...h,
|
|
10212
10212
|
users: b.filter((m) => m.isReportOwner === !1)
|
|
10213
10213
|
});
|
|
10214
10214
|
}, [o]), v = R(async () => {
|
|
10215
|
-
if (
|
|
10215
|
+
if (p === null)
|
|
10216
10216
|
return;
|
|
10217
|
-
const b = await p
|
|
10218
|
-
f(b),
|
|
10219
|
-
}, [
|
|
10217
|
+
const b = await d(p.id, !0);
|
|
10218
|
+
f(b), u(null);
|
|
10219
|
+
}, [p, d, f]), g = R(async (b) => {
|
|
10220
10220
|
if (!await c(l.removeSharingWith(b)))
|
|
10221
10221
|
return;
|
|
10222
|
-
const m = await
|
|
10222
|
+
const m = await d(b, !1);
|
|
10223
10223
|
f(m);
|
|
10224
|
-
}, [
|
|
10224
|
+
}, [d, c, l, f]);
|
|
10225
10225
|
return /* @__PURE__ */ s.jsxs(Ue, { show: e, onHide: t, children: [
|
|
10226
10226
|
/* @__PURE__ */ s.jsx(Ue.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Ue.Title, { children: l.reportSharing }) }),
|
|
10227
10227
|
/* @__PURE__ */ s.jsxs(Ue.Body, { children: [
|
|
@@ -10242,12 +10242,12 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10242
10242
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-2 align-items-center", children: [
|
|
10243
10243
|
/* @__PURE__ */ s.jsx("div", { className: "flex-grow-1", children: /* @__PURE__ */ s.jsx(a, { label: l.shareWith, onSelect: (b) => {
|
|
10244
10244
|
if (b === null || typeof b.id != "number") {
|
|
10245
|
-
|
|
10245
|
+
u(null);
|
|
10246
10246
|
return;
|
|
10247
10247
|
}
|
|
10248
|
-
|
|
10249
|
-
}, value:
|
|
10250
|
-
/* @__PURE__ */ s.jsx(Xr, { onClick: v, disabled:
|
|
10248
|
+
u(b);
|
|
10249
|
+
}, value: p }) }),
|
|
10250
|
+
/* @__PURE__ */ s.jsx(Xr, { onClick: v, disabled: p === null, children: l.add })
|
|
10251
10251
|
] })
|
|
10252
10252
|
] })
|
|
10253
10253
|
] });
|
|
@@ -10259,14 +10259,14 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10259
10259
|
n(o);
|
|
10260
10260
|
});
|
|
10261
10261
|
}, [t, e]), { mappings: r };
|
|
10262
|
-
}, DD = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer:
|
|
10263
|
-
const { texts: { reports:
|
|
10262
|
+
}, DD = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: p, hyperlinkColumn: u }) => {
|
|
10263
|
+
const { texts: { reports: d } } = Q(fe), { confirm: f } = dn(), v = vs(), [g] = Vd(), { id: b } = Gd(), h = z(() => b === void 0 ? null : Number(b), [b]), m = R(($) => {
|
|
10264
10264
|
const J = $ === null ? "" : $.toString();
|
|
10265
10265
|
v(Qr(a(e), { id: J }) + "?" + g.toString(), {
|
|
10266
10266
|
replace: !0,
|
|
10267
10267
|
flushSync: !0
|
|
10268
10268
|
});
|
|
10269
|
-
}, [a, v, e, g]), [x, D] = L(!1), w = U(null), { user: y } = Q(_r), { data: C, reloadData: O } = hr(`/reports/${e}`), { mappings: S } = Jy(c,
|
|
10269
|
+
}, [a, v, e, g]), [x, D] = L(!1), w = U(null), { user: y } = Q(_r), { data: C, reloadData: O } = hr(`/reports/${e}`), { mappings: S } = Jy(c, p), [_, T] = L({}), k = R(($) => {
|
|
10270
10270
|
const J = $.target.value, me = J === "" ? null : Number(J);
|
|
10271
10271
|
m(me);
|
|
10272
10272
|
}, [m]), G = R(async ($) => {
|
|
@@ -10286,15 +10286,15 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10286
10286
|
mapping: S ?? void 0
|
|
10287
10287
|
}), [r, S]), te = R(async () => {
|
|
10288
10288
|
var J;
|
|
10289
|
-
await f(
|
|
10290
|
-
}, [f, Y,
|
|
10289
|
+
await f(d.confirmRevertChanges) && ((J = w.current) == null || J.flexmonster.setReport({ dataSource: Y, ..._ }));
|
|
10290
|
+
}, [f, Y, d.confirmRevertChanges, _]), H = z(() => (E == null ? void 0 : E.ownerId) === y.personalNumber, [E == null ? void 0 : E.ownerId, y.personalNumber]), oe = z(() => {
|
|
10291
10291
|
var $;
|
|
10292
10292
|
return ($ = E == null ? void 0 : E.users) == null ? void 0 : $.some((J) => J.id === y.personalNumber && !J.isReportOwner);
|
|
10293
10293
|
}, [E == null ? void 0 : E.users, y.personalNumber]), ee = R(async () => {
|
|
10294
|
-
await f(
|
|
10295
|
-
}, [I, f, O, E == null ? void 0 : E.name,
|
|
10296
|
-
await f(
|
|
10297
|
-
}, [f, B, O, E == null ? void 0 : E.name,
|
|
10294
|
+
await f(d.confirmDelete(E == null ? void 0 : E.name)) && (await I(), m(null), await O());
|
|
10295
|
+
}, [I, f, O, E == null ? void 0 : E.name, d, m]), re = R(async () => {
|
|
10296
|
+
await f(d.confirmDetach(E == null ? void 0 : E.name)) && (await B(), m(null), await O());
|
|
10297
|
+
}, [f, B, O, E == null ? void 0 : E.name, d, m]);
|
|
10298
10298
|
return F(() => {
|
|
10299
10299
|
var $, J;
|
|
10300
10300
|
h === null && m((($ = C == null ? void 0 : C.reportVersions.find((me) => me.isSystem === !0)) == null ? void 0 : $.reportVersionId) ?? ((J = C == null ? void 0 : C.reportVersions[0]) == null ? void 0 : J.reportVersionId) ?? null);
|
|
@@ -10304,20 +10304,20 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10304
10304
|
n,
|
|
10305
10305
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
|
|
10306
10306
|
/* @__PURE__ */ s.jsxs(Ad, { size: "sm", value: h ?? void 0, onChange: k, children: [
|
|
10307
|
-
/* @__PURE__ */ s.jsx("optgroup", { label:
|
|
10308
|
-
/* @__PURE__ */ s.jsx("optgroup", { label:
|
|
10309
|
-
/* @__PURE__ */ s.jsx("optgroup", { label:
|
|
10307
|
+
/* @__PURE__ */ s.jsx("optgroup", { label: d.versionSelectSystem, children: C == null ? void 0 : C.reportVersions.filter(($) => $.isSystem === !0).map(($) => /* @__PURE__ */ s.jsx("option", { value: $.reportVersionId, children: $.name }, $.reportVersionId)) }),
|
|
10308
|
+
/* @__PURE__ */ s.jsx("optgroup", { label: d.versionSelectYour, children: C == null ? void 0 : C.reportVersions.filter(($) => $.ownerId === y.personalNumber).map(($) => /* @__PURE__ */ s.jsx("option", { value: $.reportVersionId, children: $.name }, $.reportVersionId)) }),
|
|
10309
|
+
/* @__PURE__ */ s.jsx("optgroup", { label: d.versionSelectSharedWithYou, children: C == null ? void 0 : C.reportVersions.filter(($) => $.isSystem === !1 && $.ownerId !== y.personalNumber).map(($) => /* @__PURE__ */ s.jsx("option", { value: $.reportVersionId, children: `${$.name} [${$.ownerId}]` }, $.reportVersionId)) })
|
|
10310
10310
|
] }),
|
|
10311
|
-
/* @__PURE__ */ s.jsx(dt, { icon: /* @__PURE__ */ s.jsx(Td, {}), onClick: X, disabled: h === null || (E == null ? void 0 : E.isSystem) || !H, children:
|
|
10312
|
-
/* @__PURE__ */ s.jsx(dt, { icon: /* @__PURE__ */ s.jsx(Rd, {}), onClick: P, className: "flex-shrink-0", children:
|
|
10311
|
+
/* @__PURE__ */ s.jsx(dt, { icon: /* @__PURE__ */ s.jsx(Td, {}), onClick: X, disabled: h === null || (E == null ? void 0 : E.isSystem) || !H, children: d.save }),
|
|
10312
|
+
/* @__PURE__ */ s.jsx(dt, { icon: /* @__PURE__ */ s.jsx(Rd, {}), onClick: P, className: "flex-shrink-0", children: d.saveAs }),
|
|
10313
10313
|
/* @__PURE__ */ s.jsxs(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { as: jr }), children: [
|
|
10314
|
-
/* @__PURE__ */ s.jsx(He, { onClick: te, children:
|
|
10315
|
-
/* @__PURE__ */ s.jsx(He, { onClick: () => D(!0), disabled: !H || (E == null ? void 0 : E.isSystem), children:
|
|
10316
|
-
H && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(He, { color: "danger", onClick: ee, children:
|
|
10317
|
-
oe && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(He, { color: "danger", onClick: re, children:
|
|
10314
|
+
/* @__PURE__ */ s.jsx(He, { onClick: te, children: d.revertChanges }),
|
|
10315
|
+
/* @__PURE__ */ s.jsx(He, { onClick: () => D(!0), disabled: !H || (E == null ? void 0 : E.isSystem), children: d.share }),
|
|
10316
|
+
H && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(He, { color: "danger", onClick: ee, children: d.delete }) : null,
|
|
10317
|
+
oe && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(He, { color: "danger", onClick: re, children: d.detach }) : null
|
|
10318
10318
|
] })
|
|
10319
10319
|
] })
|
|
10320
|
-
] }), children: /* @__PURE__ */ s.jsx("div", { className: j("h-100 w-100", Y.data && Y.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ s.jsx(qy, { dataSource: Y, settings: _, pivotRef: w, enabled: Y.data && Y.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn:
|
|
10320
|
+
] }), children: /* @__PURE__ */ s.jsx("div", { className: j("h-100 w-100", Y.data && Y.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ s.jsx(qy, { dataSource: Y, settings: _, pivotRef: w, enabled: Y.data && Y.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn: u }) }) }),
|
|
10321
10321
|
E !== null ? /* @__PURE__ */ s.jsx(
|
|
10322
10322
|
Xy,
|
|
10323
10323
|
{
|
|
@@ -10339,9 +10339,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10339
10339
|
}, className: j(`border-${n}`, t.includes(n) && `bg-${n}`), onClick: () => {
|
|
10340
10340
|
t.includes(n) ? r(t.filter((a) => a !== n)) : r([...t, n]);
|
|
10341
10341
|
} }, n)) }), Zy = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ s.jsx(nt, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: r }), ew = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: n, getLinksTo: a }) => {
|
|
10342
|
-
const { ProjectIconComponent: o, localizationContext: i } = Q(fe), { dateFnsLocale: l } = Q(i), c = e.dateTime ? gr(e.dateTime) : null,
|
|
10342
|
+
const { ProjectIconComponent: o, localizationContext: i } = Q(fe), { dateFnsLocale: l } = Q(i), c = e.dateTime ? gr(e.dateTime) : null, p = c ? Qd(new Date(Date.now()), c) : 0;
|
|
10343
10343
|
return /* @__PURE__ */ s.jsxs("div", { children: [
|
|
10344
|
-
c && /* @__PURE__ */ s.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Et, { text: vr(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(ae, { variant: "caption", children:
|
|
10344
|
+
c && /* @__PURE__ */ s.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Et, { text: vr(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(ae, { variant: "caption", children: p > 2 ? vr(c, "dd.MM.yyyy") : eu(c, new Date(Date.now()), {
|
|
10345
10345
|
locale: l.code
|
|
10346
10346
|
}) }) }) }) }),
|
|
10347
10347
|
/* @__PURE__ */ s.jsx(Zy, { linksTo: a(e) ?? void 0, onClick: r, children: /* @__PURE__ */ s.jsx(bx, { level: e.type, noIcon: !0, children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
|
|
@@ -10349,8 +10349,8 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10349
10349
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
|
|
10350
10350
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
10351
10351
|
/* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "fw-bold", children: e.subject }),
|
|
10352
|
-
/* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (
|
|
10353
|
-
|
|
10352
|
+
/* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (u) => {
|
|
10353
|
+
u.preventDefault(), u.stopPropagation(), t(e.id);
|
|
10354
10354
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "delete" }) })
|
|
10355
10355
|
] }),
|
|
10356
10356
|
/* @__PURE__ */ s.jsx(ae, { variant: "body2", children: e.text })
|
|
@@ -10358,9 +10358,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10358
10358
|
] }) }) })
|
|
10359
10359
|
] });
|
|
10360
10360
|
}, zi = ["info", "warning", "danger"], qi = ({ messages: e, isLoading: t, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }) => {
|
|
10361
|
-
const { texts: { messageBoard: i } } = Q(fe), [l, c] = L(zi),
|
|
10361
|
+
const { texts: { messageBoard: i } } = Q(fe), [l, c] = L(zi), p = z(() => e.filter((u) => l.includes(u.type ?? "")), [l, e]);
|
|
10362
10362
|
return /* @__PURE__ */ s.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
10363
|
-
/* @__PURE__ */ s.jsx(Qy, { knownTypes: zi, typeFilters: l, onChangeTypeFilters: (
|
|
10363
|
+
/* @__PURE__ */ s.jsx(Qy, { knownTypes: zi, typeFilters: l, onChangeTypeFilters: (u) => c(u) }),
|
|
10364
10364
|
t && /* @__PURE__ */ s.jsxs("div", { className: "p-3 w-100", children: [
|
|
10365
10365
|
/* @__PURE__ */ s.jsx(gt, { as: xo.Title, animation: "glow", children: /* @__PURE__ */ s.jsx(gt, { xs: 6 }) }),
|
|
10366
10366
|
/* @__PURE__ */ s.jsxs(gt, { as: xo.Text, animation: "glow", children: [
|
|
@@ -10377,22 +10377,22 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10377
10377
|
] }),
|
|
10378
10378
|
!t && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10379
10379
|
e.length === 0 && /* @__PURE__ */ s.jsx(ln, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
|
|
10380
|
-
/* @__PURE__ */ s.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children:
|
|
10380
|
+
/* @__PURE__ */ s.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: p.map((u) => /* @__PURE__ */ s.jsx(ew, { message: u, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }, u.id)) })
|
|
10381
10381
|
] })
|
|
10382
10382
|
] });
|
|
10383
10383
|
}, Kn = {
|
|
10384
10384
|
apiGet: "/messageBoard",
|
|
10385
10385
|
apiDelete: "/messageBoard/"
|
|
10386
10386
|
}, ED = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = Kn.apiGet, apiDelete: n = Kn.apiDelete } = Kn, getIcon: a, getLinksTo: o }) => {
|
|
10387
|
-
const l = Nt(), [c,
|
|
10387
|
+
const l = Nt(), [c, p] = L([]), [u, d] = L(!1), [f, v] = L(!1), [g, b] = L(!1), h = R(async () => {
|
|
10388
10388
|
v(!0), await l.get(r).then(({ data: y }) => {
|
|
10389
|
-
|
|
10389
|
+
p(y), d(!0), v(!1);
|
|
10390
10390
|
}).catch(() => {
|
|
10391
|
-
|
|
10391
|
+
p([]), v(!1);
|
|
10392
10392
|
});
|
|
10393
10393
|
}, [r, l]), m = R(async (y) => l.delete(`${n}${y}`).then(() => !0).catch(() => !1), [n, l]), x = R((y) => {
|
|
10394
10394
|
m(y).then((C) => {
|
|
10395
|
-
C &&
|
|
10395
|
+
C && p(c.filter((O) => O.id !== y));
|
|
10396
10396
|
});
|
|
10397
10397
|
}, [m, c]);
|
|
10398
10398
|
F(() => {
|
|
@@ -10402,7 +10402,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10402
10402
|
clearInterval(y);
|
|
10403
10403
|
};
|
|
10404
10404
|
}, [h]);
|
|
10405
|
-
const D = c.filter((y) => y.type === "danger").length, w =
|
|
10405
|
+
const D = c.filter((y) => y.type === "danger").length, w = u ? !1 : f;
|
|
10406
10406
|
return e ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10407
10407
|
/* @__PURE__ */ s.jsxs("div", { className: "position-relative", children: [
|
|
10408
10408
|
/* @__PURE__ */ s.jsx(ce, { size: "md", onClick: () => b(!g), children: t }),
|
|
@@ -10425,11 +10425,11 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10425
10425
|
const l = o.type, c = o.props;
|
|
10426
10426
|
if (!c)
|
|
10427
10427
|
return null;
|
|
10428
|
-
const
|
|
10428
|
+
const p = c.eventKey, u = c.children, d = c.className, f = c.onClick;
|
|
10429
10429
|
return /* @__PURE__ */ s.jsxs(le.Fragment, { children: [
|
|
10430
|
-
/* @__PURE__ */ s.jsx(l, { ...c, className: j({ active: e ===
|
|
10431
|
-
t(
|
|
10432
|
-
}, vertical: n || a, children:
|
|
10430
|
+
/* @__PURE__ */ s.jsx(l, { ...c, className: j({ active: e === p }, d), onClick: () => {
|
|
10431
|
+
t(p), f && f(p);
|
|
10432
|
+
}, vertical: n || a, children: u }),
|
|
10433
10433
|
a && i < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className: j("join-line", ow.joinLine) })
|
|
10434
10434
|
] }, c.eventKey);
|
|
10435
10435
|
}) }), sw = "_tab_1tbi7_1", lw = "_disabled_1tbi7_7", cw = "_vertical_1tbi7_13", Jn = {
|
|
@@ -10455,7 +10455,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10455
10455
|
/* @__PURE__ */ s.jsx(ce, { className: "rounded m-1", onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(r, { icon: e }) }),
|
|
10456
10456
|
a && /* @__PURE__ */ s.jsxs("div", { className: Hr.selection, children: [
|
|
10457
10457
|
/* @__PURE__ */ s.jsx("div", { className: Hr.selectionBg, onClick: () => o(!1) }),
|
|
10458
|
-
/* @__PURE__ */ s.jsx("div", { className: Hr.selectionItemsContainer, children: /* @__PURE__ */ s.jsx("div", { className: Hr.selectionItems, children: n.filter((l, c,
|
|
10458
|
+
/* @__PURE__ */ s.jsx("div", { className: Hr.selectionItemsContainer, children: /* @__PURE__ */ s.jsx("div", { className: Hr.selectionItems, children: n.filter((l, c, p) => p.indexOf(l) === c).map((l) => /* @__PURE__ */ s.jsx(ce, { className: "rounded", onClick: () => i(l), children: /* @__PURE__ */ s.jsx(r, { icon: l }) }, l)) }) })
|
|
10459
10459
|
] })
|
|
10460
10460
|
] });
|
|
10461
10461
|
}, wc = () => {
|
|
@@ -10466,17 +10466,17 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10466
10466
|
}, gw = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n }) => {
|
|
10467
10467
|
const { ProjectIconComponent: a } = Q(fe), [o, i] = L(e.icon), [l, c] = L(e.name);
|
|
10468
10468
|
console.log(o, typeof o);
|
|
10469
|
-
const
|
|
10469
|
+
const p = z(() => !(o === e.icon && l === e.name), [o, l, e.icon, e.name]), u = R(() => {
|
|
10470
10470
|
i(e.icon), c(e.name);
|
|
10471
|
-
}, [e]),
|
|
10471
|
+
}, [e]), d = R(() => {
|
|
10472
10472
|
n({ ...e, icon: o, name: l });
|
|
10473
10473
|
}, [n, o, l, e]);
|
|
10474
10474
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10475
10475
|
/* @__PURE__ */ s.jsx("td", { className: "align-middle", children: /* @__PURE__ */ s.jsx(wt, { type: "text", maxLength: 20, value: l, onChange: c, className: "d-flex-grow-1", InputContainer: tt }) }),
|
|
10476
10476
|
/* @__PURE__ */ s.jsx("td", { className: "align-middle text-center", children: /* @__PURE__ */ s.jsx(yc, { icon: o, setIcon: i, IconComponent: t, IconTypeArray: r }) }),
|
|
10477
|
-
/* @__PURE__ */ s.jsx("td", { className: "align-middle", style: { width: "7em" }, children:
|
|
10478
|
-
/* @__PURE__ */ s.jsx(ce, { onClick:
|
|
10479
|
-
/* @__PURE__ */ s.jsx(ce, { onClick:
|
|
10477
|
+
/* @__PURE__ */ s.jsx("td", { className: "align-middle", style: { width: "7em" }, children: p && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10478
|
+
/* @__PURE__ */ s.jsx(ce, { onClick: u, color: "danger", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "cancel" }) }),
|
|
10479
|
+
/* @__PURE__ */ s.jsx(ce, { onClick: d, color: "success", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "check" }) })
|
|
10480
10480
|
] }) })
|
|
10481
10481
|
] });
|
|
10482
10482
|
}, mw = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n, deleteShortcutLink: a }) => {
|
|
@@ -10508,9 +10508,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10508
10508
|
linkAddButton: bw,
|
|
10509
10509
|
createLinkRow: xw
|
|
10510
10510
|
}, yw = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ s.jsx(Et, { text: e.name, placement: "bottom", children: /* @__PURE__ */ s.jsx(nt, { to: e.url, className: Ht.linkButton, children: /* @__PURE__ */ s.jsx(t, { icon: e.icon }) }) }), ww = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconComponent: a, IconTypeArray: o }) => {
|
|
10511
|
-
const i = Wd(), { texts: l } = Q(fe), [c,
|
|
10512
|
-
await r({ icon: c, name:
|
|
10513
|
-
}, [e, r, c, i.pathname, i.search,
|
|
10511
|
+
const i = Wd(), { texts: l } = Q(fe), [c, p] = L("star-outline"), [u, d] = L(n ? document.title.replace(n, "") : document.title), f = R(async () => {
|
|
10512
|
+
await r({ icon: c, name: u, url: i.pathname + i.search }), e();
|
|
10513
|
+
}, [e, r, c, i.pathname, i.search, u]), v = z(() => i.pathname + i.search, [i.pathname, i.search]);
|
|
10514
10514
|
return /* @__PURE__ */ s.jsxs(Ue, { show: t, onHide: e, size: "sm", children: [
|
|
10515
10515
|
/* @__PURE__ */ s.jsx(Ue.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Ue.Title, { children: l.shortcutLinks.newShortcut }) }),
|
|
10516
10516
|
/* @__PURE__ */ s.jsxs(Ue.Body, { children: [
|
|
@@ -10523,11 +10523,11 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10523
10523
|
] }),
|
|
10524
10524
|
/* @__PURE__ */ s.jsxs("div", { className: Ht.createLinkRow, children: [
|
|
10525
10525
|
/* @__PURE__ */ s.jsx(ae, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
|
|
10526
|
-
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(wt, { type: "text", maxLength: 25, value:
|
|
10526
|
+
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(wt, { type: "text", maxLength: 25, value: u, onChange: d, className: "w-100", InputContainer: st, withoutLabel: !0 }) })
|
|
10527
10527
|
] }),
|
|
10528
10528
|
/* @__PURE__ */ s.jsxs("div", { className: Ht.createLinkRow, children: [
|
|
10529
10529
|
/* @__PURE__ */ s.jsx(ae, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
|
|
10530
|
-
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(yc, { icon: c, setIcon:
|
|
10530
|
+
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(yc, { icon: c, setIcon: p, IconComponent: a, IconTypeArray: o }) })
|
|
10531
10531
|
] })
|
|
10532
10532
|
] }),
|
|
10533
10533
|
/* @__PURE__ */ s.jsx(Ue.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Xr, { onClick: f, children: l.shortcutLinks.addShortcut }) })
|
|
@@ -10581,22 +10581,22 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
|
|
|
10581
10581
|
silent: !0,
|
|
10582
10582
|
dataTransformer: n,
|
|
10583
10583
|
enabled: r !== null
|
|
10584
|
-
}), { create: i, update: l, remove: c } = Nw(t),
|
|
10584
|
+
}), { create: i, update: l, remove: c } = Nw(t), p = R(async (v) => {
|
|
10585
10585
|
const g = Yi(r);
|
|
10586
10586
|
if (Ew(a).length >= pa)
|
|
10587
10587
|
throw new Error("Cannot add more shortcut links.");
|
|
10588
10588
|
await i({ ...v, employee: g.personalNumber }), await o();
|
|
10589
|
-
}, [i, o, a, r]),
|
|
10589
|
+
}, [i, o, a, r]), u = R(async (v) => {
|
|
10590
10590
|
const g = Yi(r);
|
|
10591
10591
|
await l({ ...v, employee: g.personalNumber }), await o();
|
|
10592
|
-
}, [o, l, r]),
|
|
10592
|
+
}, [o, l, r]), d = R(async (v) => {
|
|
10593
10593
|
await c(v), await o();
|
|
10594
10594
|
}, [o, c]), f = z(() => ({
|
|
10595
10595
|
shortcutLinks: a,
|
|
10596
|
-
createShortcutLink:
|
|
10597
|
-
editShortcutLink:
|
|
10598
|
-
deleteShortcutLink:
|
|
10599
|
-
}), [
|
|
10596
|
+
createShortcutLink: p,
|
|
10597
|
+
editShortcutLink: u,
|
|
10598
|
+
deleteShortcutLink: d
|
|
10599
|
+
}), [p, d, u, a]);
|
|
10600
10600
|
return /* @__PURE__ */ s.jsx(fs.Provider, { value: f, children: e });
|
|
10601
10601
|
};
|
|
10602
10602
|
export {
|