react-luminus-components 1.5.34 → 1.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs.js +21 -21
- package/dist/main.es.js +423 -401
- package/dist/models/index.d.ts +1 -1
- package/dist/models/texts/ReportsTexts.d.ts +1 -0
- package/dist/models/types/dynamicForms/index.d.ts +1 -0
- package/dist/models/types/dynamicForms/types/DynamicFormModifyResult.d.ts +5 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as a, c as _, t as Ae, a as Rr, s as Fi, g as Vi, m as qc, d as xr, b as Yc, e as Kc, f as It, h as Xc, i as Jc, k as Qc, l as Zc, n as ed, o as td, p as nd, T as _s, q as Os, r as $i, E as rd, u as Ps, v as Ga, w as Ts, x as ad, y as Re, z as Ua, F as As, A as id, B as od, C as sd, D as ld, M as cd, G as dd, H as ud, I as pd, J as fd, K as md, L as Ca, N as gd, O as vd, P as X, Q as mt, R as hd, S as bd, U as bt, V as te, W as Ha, X as
|
|
1
|
+
import { j as a, c as _, t as Ae, a as Rr, s as Fi, g as Vi, m as qc, d as xr, b as Yc, e as Kc, f as It, h as Xc, i as Jc, k as Qc, l as Zc, n as ed, o as td, p as nd, T as _s, q as Os, r as $i, E as rd, u as Ps, v as Ga, w as Ts, x as ad, y as Re, z as Ua, F as As, A as id, B as od, C as sd, D as ld, M as cd, G as dd, H as ud, I as pd, J as fd, K as md, L as Ca, N as gd, O as vd, P as X, Q as mt, R as hd, S as bd, U as bt, V as te, W as Ha, X as xe, Y as Wa, Z as dt, _ as qe, $ as pe, a0 as Ke, a1 as L, a2 as kr, a3 as xd, a4 as yd, a5 as wd, a6 as Rs, a7 as jd, a8 as Nd, a9 as ht, aa as Dd, ab as Sd, ac as Dr, ad as oe, ae as ks, af as Cd, ag as Ed, ah as Id, ai as Bs, aj as Ls, ak as za, al as Sr, am as Bt, an as _d, ao as ze, ap as Od, aq as Pd, ar as Td, as as Lt, at as Ad, au as Ms, av as Rd, aw as Xe, ax as en, ay as kd, az as Qe, aA as qa, aB as Ya, aC as Fs, aD as Ka, aE as Vs, aF as $s, aG as Te, aH as Pt, aI as Bd, aJ as Ld, aK as ct, aL as Mt, aM as Ft, aN as Md, aO as Ye, aP as pt, aQ as Fd, aR as Dt, aS as Vd, aT as $d, aU as In, aV as ft, aW as Gs, aX as xt, aY as tn, aZ as Gd, a_ as Jr, a$ as nn, b0 as Us, b1 as Ud, b2 as Hd, b3 as Fn, b4 as Br, b5 as mn, b6 as Cr, b7 as Xa, b8 as Nt, b9 as Wd, ba as Hs, bb as or, bc as St, bd as rn, be as gn, bf as zd, bg as Lr, bh as Ws, bi as dn, bj as Mr, bk as Ja, bl as qd, bm as Yd, bn as Kd, bo as Xd, bp as Jd, bq as Qd, br as zs, bs as Zd, bt as eu, bu as tu, bv as nu, bw as ru, bx as au } from "./ShortcutLinksContext-CXaPhocV.js";
|
|
2
2
|
import { bA as iD, by as oD, bz as sD } from "./ShortcutLinksContext-CXaPhocV.js";
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
3
|
+
import * as Oe from "react";
|
|
4
|
+
import ue, { useCallback as R, useMemo as k, useState as B, useRef as ae, useEffect as U, useContext as $, useId as iu, Component as ou, isValidElement as Gi, Suspense as su, useLayoutEffect as Qa, useReducer as lu, Fragment as cu } from "react";
|
|
5
5
|
import { c as wt, a as du, b as uu, L as Ea, F as pu } from "./FormDisabledProvider-BtMzHh7e.js";
|
|
6
6
|
import { InteractionType as fu } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as mu } from "@azure/msal-react";
|
|
@@ -162,7 +162,7 @@ const Au = {
|
|
|
162
162
|
[Ps]: "collapsing",
|
|
163
163
|
[Ga]: "collapsing",
|
|
164
164
|
[Ts]: "collapse show"
|
|
165
|
-
}, Ys = /* @__PURE__ */
|
|
165
|
+
}, Ys = /* @__PURE__ */ ue.forwardRef(({
|
|
166
166
|
onEnter: e,
|
|
167
167
|
onEntering: t,
|
|
168
168
|
onEntered: n,
|
|
@@ -207,12 +207,12 @@ const Au = {
|
|
|
207
207
|
mountOnEnter: d,
|
|
208
208
|
unmountOnExit: p,
|
|
209
209
|
appear: f,
|
|
210
|
-
children: (j, S) => /* @__PURE__ */
|
|
210
|
+
children: (j, S) => /* @__PURE__ */ ue.cloneElement(s, {
|
|
211
211
|
...S,
|
|
212
212
|
className: _(o, s.props.className, Au[j], b === "width" && "collapse-horizontal")
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
|
-
}), ni = /* @__PURE__ */
|
|
215
|
+
}), ni = /* @__PURE__ */ Oe.forwardRef(({
|
|
216
216
|
className: e,
|
|
217
217
|
bsPrefix: t,
|
|
218
218
|
as: n = "div",
|
|
@@ -223,7 +223,7 @@ const Au = {
|
|
|
223
223
|
...r
|
|
224
224
|
})));
|
|
225
225
|
ni.displayName = "CardBody";
|
|
226
|
-
const Ks = /* @__PURE__ */
|
|
226
|
+
const Ks = /* @__PURE__ */ Oe.forwardRef(({
|
|
227
227
|
className: e,
|
|
228
228
|
bsPrefix: t,
|
|
229
229
|
as: n = "div",
|
|
@@ -234,9 +234,9 @@ const Ks = /* @__PURE__ */ _e.forwardRef(({
|
|
|
234
234
|
...r
|
|
235
235
|
})));
|
|
236
236
|
Ks.displayName = "CardFooter";
|
|
237
|
-
const Xs = /* @__PURE__ */
|
|
237
|
+
const Xs = /* @__PURE__ */ Oe.createContext(null);
|
|
238
238
|
Xs.displayName = "CardHeaderContext";
|
|
239
|
-
const Js = /* @__PURE__ */
|
|
239
|
+
const Js = /* @__PURE__ */ Oe.forwardRef(({
|
|
240
240
|
bsPrefix: e,
|
|
241
241
|
className: t,
|
|
242
242
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -256,7 +256,7 @@ const Js = /* @__PURE__ */ _e.forwardRef(({
|
|
|
256
256
|
});
|
|
257
257
|
});
|
|
258
258
|
Js.displayName = "CardHeader";
|
|
259
|
-
const Qs = /* @__PURE__ */
|
|
259
|
+
const Qs = /* @__PURE__ */ Oe.forwardRef(
|
|
260
260
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
261
261
|
({
|
|
262
262
|
bsPrefix: e,
|
|
@@ -274,7 +274,7 @@ const Qs = /* @__PURE__ */ _e.forwardRef(
|
|
|
274
274
|
}
|
|
275
275
|
);
|
|
276
276
|
Qs.displayName = "CardImg";
|
|
277
|
-
const Zs = /* @__PURE__ */
|
|
277
|
+
const Zs = /* @__PURE__ */ Oe.forwardRef(({
|
|
278
278
|
className: e,
|
|
279
279
|
bsPrefix: t,
|
|
280
280
|
as: n = "div",
|
|
@@ -285,7 +285,7 @@ const Zs = /* @__PURE__ */ _e.forwardRef(({
|
|
|
285
285
|
...r
|
|
286
286
|
})));
|
|
287
287
|
Zs.displayName = "CardImgOverlay";
|
|
288
|
-
const el = /* @__PURE__ */
|
|
288
|
+
const el = /* @__PURE__ */ Oe.forwardRef(({
|
|
289
289
|
className: e,
|
|
290
290
|
bsPrefix: t,
|
|
291
291
|
as: n = "a",
|
|
@@ -296,7 +296,7 @@ const el = /* @__PURE__ */ _e.forwardRef(({
|
|
|
296
296
|
...r
|
|
297
297
|
})));
|
|
298
298
|
el.displayName = "CardLink";
|
|
299
|
-
const Ru = Ua("h6"), tl = /* @__PURE__ */
|
|
299
|
+
const Ru = Ua("h6"), tl = /* @__PURE__ */ Oe.forwardRef(({
|
|
300
300
|
className: e,
|
|
301
301
|
bsPrefix: t,
|
|
302
302
|
as: n = Ru,
|
|
@@ -307,7 +307,7 @@ const Ru = Ua("h6"), tl = /* @__PURE__ */ _e.forwardRef(({
|
|
|
307
307
|
...r
|
|
308
308
|
})));
|
|
309
309
|
tl.displayName = "CardSubtitle";
|
|
310
|
-
const nl = /* @__PURE__ */
|
|
310
|
+
const nl = /* @__PURE__ */ Oe.forwardRef(({
|
|
311
311
|
className: e,
|
|
312
312
|
bsPrefix: t,
|
|
313
313
|
as: n = "p",
|
|
@@ -318,7 +318,7 @@ const nl = /* @__PURE__ */ _e.forwardRef(({
|
|
|
318
318
|
...r
|
|
319
319
|
})));
|
|
320
320
|
nl.displayName = "CardText";
|
|
321
|
-
const ku = Ua("h5"), rl = /* @__PURE__ */
|
|
321
|
+
const ku = Ua("h5"), rl = /* @__PURE__ */ Oe.forwardRef(({
|
|
322
322
|
className: e,
|
|
323
323
|
bsPrefix: t,
|
|
324
324
|
as: n = ku,
|
|
@@ -329,7 +329,7 @@ const ku = Ua("h5"), rl = /* @__PURE__ */ _e.forwardRef(({
|
|
|
329
329
|
...r
|
|
330
330
|
})));
|
|
331
331
|
rl.displayName = "CardTitle";
|
|
332
|
-
const al = /* @__PURE__ */
|
|
332
|
+
const al = /* @__PURE__ */ Oe.forwardRef(({
|
|
333
333
|
bsPrefix: e,
|
|
334
334
|
className: t,
|
|
335
335
|
bg: n,
|
|
@@ -362,7 +362,7 @@ const Ki = Object.assign(al, {
|
|
|
362
362
|
Header: Js,
|
|
363
363
|
Footer: Ks,
|
|
364
364
|
ImgOverlay: Zs
|
|
365
|
-
}), Gr = /* @__PURE__ */
|
|
365
|
+
}), Gr = /* @__PURE__ */ Oe.forwardRef(({
|
|
366
366
|
className: e,
|
|
367
367
|
bsPrefix: t,
|
|
368
368
|
as: n = "span",
|
|
@@ -383,7 +383,7 @@ const Bu = (e) => /* @__PURE__ */ a.jsx(Gr, {
|
|
|
383
383
|
type: "radio",
|
|
384
384
|
...e
|
|
385
385
|
})
|
|
386
|
-
}), il = /* @__PURE__ */
|
|
386
|
+
}), il = /* @__PURE__ */ Oe.forwardRef(({
|
|
387
387
|
bsPrefix: e,
|
|
388
388
|
size: t,
|
|
389
389
|
hasValidation: n,
|
|
@@ -464,7 +464,7 @@ const Vu = Fu({
|
|
|
464
464
|
lg: 992,
|
|
465
465
|
xl: 1200,
|
|
466
466
|
xxl: 1400
|
|
467
|
-
}), ol = /* @__PURE__ */
|
|
467
|
+
}), ol = /* @__PURE__ */ Oe.forwardRef(({
|
|
468
468
|
className: e,
|
|
469
469
|
bsPrefix: t,
|
|
470
470
|
as: n = "div",
|
|
@@ -478,7 +478,7 @@ ol.displayName = "OffcanvasBody";
|
|
|
478
478
|
const $u = {
|
|
479
479
|
[Ga]: "show",
|
|
480
480
|
[Ts]: "show"
|
|
481
|
-
}, sl = /* @__PURE__ */
|
|
481
|
+
}, sl = /* @__PURE__ */ Oe.forwardRef(({
|
|
482
482
|
bsPrefix: e,
|
|
483
483
|
className: t,
|
|
484
484
|
children: n,
|
|
@@ -496,13 +496,13 @@ const $u = {
|
|
|
496
496
|
appear: s,
|
|
497
497
|
...l,
|
|
498
498
|
childRef: n.ref,
|
|
499
|
-
children: (u, d) => /* @__PURE__ */
|
|
499
|
+
children: (u, d) => /* @__PURE__ */ Oe.cloneElement(n, {
|
|
500
500
|
...d,
|
|
501
501
|
className: _(t, n.props.className, (u === Ga || u === Ps) && `${e}-toggling`, $u[u])
|
|
502
502
|
})
|
|
503
503
|
})));
|
|
504
504
|
sl.displayName = "OffcanvasToggling";
|
|
505
|
-
const ll = /* @__PURE__ */
|
|
505
|
+
const ll = /* @__PURE__ */ Oe.forwardRef(({
|
|
506
506
|
bsPrefix: e,
|
|
507
507
|
className: t,
|
|
508
508
|
closeLabel: n = "Close",
|
|
@@ -516,7 +516,7 @@ const ll = /* @__PURE__ */ _e.forwardRef(({
|
|
|
516
516
|
closeButton: r
|
|
517
517
|
})));
|
|
518
518
|
ll.displayName = "OffcanvasHeader";
|
|
519
|
-
const Gu = Ua("h5"), cl = /* @__PURE__ */
|
|
519
|
+
const Gu = Ua("h5"), cl = /* @__PURE__ */ Oe.forwardRef(({
|
|
520
520
|
className: e,
|
|
521
521
|
bsPrefix: t,
|
|
522
522
|
as: n = Gu,
|
|
@@ -537,7 +537,7 @@ function Hu(e) {
|
|
|
537
537
|
...e
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
const dl = /* @__PURE__ */
|
|
540
|
+
const dl = /* @__PURE__ */ Oe.forwardRef(({
|
|
541
541
|
bsPrefix: e,
|
|
542
542
|
className: t,
|
|
543
543
|
children: n,
|
|
@@ -650,7 +650,7 @@ function ul({
|
|
|
650
650
|
className: _(o, e ? `${n}-${e}` : n, r && `${n}-${r}`, t && `bg-${t}`)
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
|
-
const pl = /* @__PURE__ */
|
|
653
|
+
const pl = /* @__PURE__ */ Oe.forwardRef((e, t) => {
|
|
654
654
|
const n = ul(e);
|
|
655
655
|
return /* @__PURE__ */ a.jsx(Ca, {
|
|
656
656
|
...n,
|
|
@@ -660,7 +660,7 @@ const pl = /* @__PURE__ */ _e.forwardRef((e, t) => {
|
|
|
660
660
|
});
|
|
661
661
|
});
|
|
662
662
|
pl.displayName = "PlaceholderButton";
|
|
663
|
-
const fl = /* @__PURE__ */
|
|
663
|
+
const fl = /* @__PURE__ */ Oe.forwardRef(({
|
|
664
664
|
as: e = "span",
|
|
665
665
|
...t
|
|
666
666
|
}, n) => {
|
|
@@ -673,7 +673,7 @@ const fl = /* @__PURE__ */ _e.forwardRef(({
|
|
|
673
673
|
fl.displayName = "Placeholder";
|
|
674
674
|
const _t = Object.assign(fl, {
|
|
675
675
|
Button: pl
|
|
676
|
-
}), ri = /* @__PURE__ */
|
|
676
|
+
}), ri = /* @__PURE__ */ Oe.forwardRef(({
|
|
677
677
|
bsPrefix: e,
|
|
678
678
|
className: t,
|
|
679
679
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -697,7 +697,7 @@ const _t = Object.assign(fl, {
|
|
|
697
697
|
});
|
|
698
698
|
});
|
|
699
699
|
ri.displayName = "Row";
|
|
700
|
-
const Wu = /* @__PURE__ */
|
|
700
|
+
const Wu = /* @__PURE__ */ Oe.forwardRef(({
|
|
701
701
|
bsPrefix: e,
|
|
702
702
|
className: t,
|
|
703
703
|
striped: n,
|
|
@@ -773,11 +773,11 @@ const Wu = /* @__PURE__ */ _e.forwardRef(({
|
|
|
773
773
|
[lr[c]]: c
|
|
774
774
|
}), children: [
|
|
775
775
|
/* @__PURE__ */ a.jsx(te, { onClick: () => u(-1), disabled: e.getFullYear() < r || e.getFullYear() === r && e.getMonth() <= 0, children: /* @__PURE__ */ a.jsx(Ha, {}) }),
|
|
776
|
-
/* @__PURE__ */ a.jsx(
|
|
776
|
+
/* @__PURE__ */ a.jsx(xe.Select, { value: e.getMonth(), onChange: (f) => {
|
|
777
777
|
var m;
|
|
778
778
|
return ((m = f.target) == null ? void 0 : m.value) && t(Ou(e, Number(f.target.value)));
|
|
779
779
|
}, className: _(lr.select, lr.month, s), children: p.map((f) => /* @__PURE__ */ a.jsx("option", { value: f.id, children: f.name }, f.id)) }),
|
|
780
|
-
/* @__PURE__ */ a.jsx(
|
|
780
|
+
/* @__PURE__ */ a.jsx(xe.Select, { value: e.getFullYear(), onChange: (f) => {
|
|
781
781
|
var m;
|
|
782
782
|
return ((m = f.target) == null ? void 0 : m.value) && t(_a(e, Number(f.target.value)));
|
|
783
783
|
}, className: _(lr.select, l), children: d.map((f) => /* @__PURE__ */ a.jsx("option", { value: f, children: f }, f)) }),
|
|
@@ -813,7 +813,7 @@ const Wu = /* @__PURE__ */ _e.forwardRef(({
|
|
|
813
813
|
}, [e, t, s, o, i, l]);
|
|
814
814
|
return /* @__PURE__ */ a.jsxs("div", { className: _("d-flex flex-row align-items-center m-0", r === "standart" ? "card p-1 gap-2" : void 0, r === "minimalist" ? "p-0 gap-0" : void 0, n ?? ""), children: [
|
|
815
815
|
/* @__PURE__ */ a.jsx(te, { onClick: () => c(-1), disabled: e.getFullYear() <= o, children: /* @__PURE__ */ a.jsx(Ha, {}) }),
|
|
816
|
-
/* @__PURE__ */ a.jsx(
|
|
816
|
+
/* @__PURE__ */ a.jsx(xe.Select, { value: e.getFullYear(), onChange: (u) => {
|
|
817
817
|
var d;
|
|
818
818
|
return ((d = u.target) == null ? void 0 : d.value) && t(_a(e, Number(u.target.value)));
|
|
819
819
|
}, className: _(Qu.select, "bg-transparent"), children: l.map((u) => /* @__PURE__ */ a.jsx("option", { value: u, children: u }, u)) }),
|
|
@@ -838,12 +838,12 @@ class ep extends ou {
|
|
|
838
838
|
}
|
|
839
839
|
render() {
|
|
840
840
|
const { fallback: t, fallbackOn404: n, children: r, texts: i, reloadButtonDisplay: o = "append-after-child" } = this.props;
|
|
841
|
-
return this.state.hasError ? o === "inject-to-child" && !this.state.is404Error && Gi(t) ?
|
|
841
|
+
return this.state.hasError ? o === "inject-to-child" && !this.state.is404Error && Gi(t) ? ue.cloneElement(t, {
|
|
842
842
|
...t.props
|
|
843
843
|
}, /* @__PURE__ */ a.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
844
844
|
...t.props.children,
|
|
845
845
|
/* @__PURE__ */ a.jsx("div", { className: "d-flex gap-2 justify-content-center", children: /* @__PURE__ */ a.jsx(dt, { type: "button", onClick: this.reload, children: i.reloadButtonContent }) })
|
|
846
|
-
] })) : o === "inject-to-child" && this.state.is404Error && Gi(n) ?
|
|
846
|
+
] })) : o === "inject-to-child" && this.state.is404Error && Gi(n) ? ue.cloneElement(n, {
|
|
847
847
|
...n.props
|
|
848
848
|
}, /* @__PURE__ */ a.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
849
849
|
...n.props.children,
|
|
@@ -882,15 +882,15 @@ const tp = (e) => (n) => {
|
|
|
882
882
|
title: up
|
|
883
883
|
}, pp = ({ show: e, widgetGroups: t, widgets: n, handleClose: r, onWidgetPicked: i, texts: o }) => {
|
|
884
884
|
const [s, l] = B(""), c = k(() => n.filter((d) => d.id !== -1 && qe(d.name, s)), [n, s]), u = k(() => t.filter((d) => c.some((p) => p.group === d.id)), [t, c]);
|
|
885
|
-
return /* @__PURE__ */ a.jsxs(
|
|
886
|
-
/* @__PURE__ */ a.jsxs(
|
|
887
|
-
/* @__PURE__ */ a.jsx(
|
|
888
|
-
/* @__PURE__ */ a.jsx(
|
|
885
|
+
return /* @__PURE__ */ a.jsxs(pe, { show: e, onHide: () => r(), size: "lg", children: [
|
|
886
|
+
/* @__PURE__ */ a.jsxs(pe.Header, { closeButton: !0, children: [
|
|
887
|
+
/* @__PURE__ */ a.jsx(pe.Title, { className: "w-100", children: o.pickWidgetToAdd }),
|
|
888
|
+
/* @__PURE__ */ a.jsx(xe.Control, { type: "search", size: "sm", value: s, placeholder: o.searchPlaceholder, onChange: (d) => {
|
|
889
889
|
var p;
|
|
890
890
|
return l(((p = d.target) == null ? void 0 : p.value) ?? "");
|
|
891
891
|
}, className: "me-3", style: { maxWidth: "200px" } })
|
|
892
892
|
] }),
|
|
893
|
-
/* @__PURE__ */ a.jsx(
|
|
893
|
+
/* @__PURE__ */ a.jsx(pe.Body, { className: "flex-column gap-3", children: c.length === 0 ? /* @__PURE__ */ a.jsx(Ke, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
894
894
|
u.map((d) => /* @__PURE__ */ a.jsx(Er, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ a.jsx("div", { className: "p-1", children: /* @__PURE__ */ a.jsx("div", { className: _("row gx-3 gy-3", nt.widgetsRow), children: c.filter((p) => p.group === d.id).map((p) => /* @__PURE__ */ a.jsx("div", { className: "col col-4", children: /* @__PURE__ */ a.jsxs("div", { role: "button", className: _("p-0 pt-2 bg-white rounded shadow-sm", nt.widget), onClick: () => i(p.id), children: [
|
|
895
895
|
/* @__PURE__ */ a.jsx("div", { className: nt.widgetImg, style: {
|
|
896
896
|
backgroundImage: p.img ? `url(${p.img})` : void 0
|
|
@@ -1327,7 +1327,7 @@ function qp() {
|
|
|
1327
1327
|
};
|
|
1328
1328
|
};
|
|
1329
1329
|
}
|
|
1330
|
-
var ai = /* @__PURE__ */
|
|
1330
|
+
var ai = /* @__PURE__ */ ue.createContext(null);
|
|
1331
1331
|
process.env.NODE_ENV !== "production" && (ai.displayName = "ReactRedux");
|
|
1332
1332
|
function Yp(e) {
|
|
1333
1333
|
e();
|
|
@@ -1424,7 +1424,7 @@ function xl(e) {
|
|
|
1424
1424
|
};
|
|
1425
1425
|
}, [i, o]);
|
|
1426
1426
|
var s = n || ai;
|
|
1427
|
-
return /* @__PURE__ */
|
|
1427
|
+
return /* @__PURE__ */ ue.createElement(s.Provider, {
|
|
1428
1428
|
value: i
|
|
1429
1429
|
}, r);
|
|
1430
1430
|
}
|
|
@@ -1500,7 +1500,7 @@ function wl(e, t, n) {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
var of = wl;
|
|
1502
1502
|
const go = /* @__PURE__ */ Sd(of);
|
|
1503
|
-
var Pa = { exports: {} },
|
|
1503
|
+
var Pa = { exports: {} }, Ne = {};
|
|
1504
1504
|
/** @license React v17.0.2
|
|
1505
1505
|
* react-is.production.min.js
|
|
1506
1506
|
*
|
|
@@ -1511,7 +1511,7 @@ var Pa = { exports: {} }, je = {};
|
|
|
1511
1511
|
*/
|
|
1512
1512
|
var vo;
|
|
1513
1513
|
function sf() {
|
|
1514
|
-
if (vo) return
|
|
1514
|
+
if (vo) return Ne;
|
|
1515
1515
|
vo = 1;
|
|
1516
1516
|
var e = 60103, t = 60106, n = 60107, r = 60108, i = 60114, o = 60109, s = 60110, l = 60112, c = 60113, u = 60120, d = 60115, p = 60116, f = 60121, m = 60122, g = 60117, h = 60129, b = 60131;
|
|
1517
1517
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
@@ -1548,37 +1548,37 @@ function sf() {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
1550
|
var N = o, w = e, y = l, j = n, S = p, E = d, I = t, O = i, T = r, M = c;
|
|
1551
|
-
return
|
|
1551
|
+
return Ne.ContextConsumer = s, Ne.ContextProvider = N, Ne.Element = w, Ne.ForwardRef = y, Ne.Fragment = j, Ne.Lazy = S, Ne.Memo = E, Ne.Portal = I, Ne.Profiler = O, Ne.StrictMode = T, Ne.Suspense = M, Ne.isAsyncMode = function() {
|
|
1552
1552
|
return !1;
|
|
1553
|
-
},
|
|
1553
|
+
}, Ne.isConcurrentMode = function() {
|
|
1554
1554
|
return !1;
|
|
1555
|
-
},
|
|
1555
|
+
}, Ne.isContextConsumer = function(C) {
|
|
1556
1556
|
return x(C) === s;
|
|
1557
|
-
},
|
|
1557
|
+
}, Ne.isContextProvider = function(C) {
|
|
1558
1558
|
return x(C) === o;
|
|
1559
|
-
},
|
|
1559
|
+
}, Ne.isElement = function(C) {
|
|
1560
1560
|
return typeof C == "object" && C !== null && C.$$typeof === e;
|
|
1561
|
-
},
|
|
1561
|
+
}, Ne.isForwardRef = function(C) {
|
|
1562
1562
|
return x(C) === l;
|
|
1563
|
-
},
|
|
1563
|
+
}, Ne.isFragment = function(C) {
|
|
1564
1564
|
return x(C) === n;
|
|
1565
|
-
},
|
|
1565
|
+
}, Ne.isLazy = function(C) {
|
|
1566
1566
|
return x(C) === p;
|
|
1567
|
-
},
|
|
1567
|
+
}, Ne.isMemo = function(C) {
|
|
1568
1568
|
return x(C) === d;
|
|
1569
|
-
},
|
|
1569
|
+
}, Ne.isPortal = function(C) {
|
|
1570
1570
|
return x(C) === t;
|
|
1571
|
-
},
|
|
1571
|
+
}, Ne.isProfiler = function(C) {
|
|
1572
1572
|
return x(C) === i;
|
|
1573
|
-
},
|
|
1573
|
+
}, Ne.isStrictMode = function(C) {
|
|
1574
1574
|
return x(C) === r;
|
|
1575
|
-
},
|
|
1575
|
+
}, Ne.isSuspense = function(C) {
|
|
1576
1576
|
return x(C) === c;
|
|
1577
|
-
},
|
|
1577
|
+
}, Ne.isValidElementType = function(C) {
|
|
1578
1578
|
return typeof C == "string" || typeof C == "function" || C === n || C === i || C === h || C === r || C === c || C === u || C === b || typeof C == "object" && C !== null && (C.$$typeof === p || C.$$typeof === d || C.$$typeof === o || C.$$typeof === s || C.$$typeof === l || C.$$typeof === g || C.$$typeof === f || C[0] === m);
|
|
1579
|
-
},
|
|
1579
|
+
}, Ne.typeOf = x, Ne;
|
|
1580
1580
|
}
|
|
1581
|
-
var
|
|
1581
|
+
var De = {};
|
|
1582
1582
|
/** @license React v17.0.2
|
|
1583
1583
|
* react-is.development.js
|
|
1584
1584
|
*
|
|
@@ -1604,16 +1604,16 @@ function lf() {
|
|
|
1604
1604
|
var re = Q.$$typeof;
|
|
1605
1605
|
switch (re) {
|
|
1606
1606
|
case e:
|
|
1607
|
-
var
|
|
1608
|
-
switch (
|
|
1607
|
+
var de = Q.type;
|
|
1608
|
+
switch (de) {
|
|
1609
1609
|
case n:
|
|
1610
1610
|
case i:
|
|
1611
1611
|
case r:
|
|
1612
1612
|
case c:
|
|
1613
1613
|
case u:
|
|
1614
|
-
return
|
|
1614
|
+
return de;
|
|
1615
1615
|
default:
|
|
1616
|
-
var Pe =
|
|
1616
|
+
var Pe = de && de.$$typeof;
|
|
1617
1617
|
switch (Pe) {
|
|
1618
1618
|
case s:
|
|
1619
1619
|
case l:
|
|
@@ -1664,14 +1664,14 @@ function lf() {
|
|
|
1664
1664
|
function le(Q) {
|
|
1665
1665
|
return w(Q) === i;
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Ie(Q) {
|
|
1668
1668
|
return w(Q) === r;
|
|
1669
1669
|
}
|
|
1670
1670
|
function me(Q) {
|
|
1671
1671
|
return w(Q) === c;
|
|
1672
1672
|
}
|
|
1673
|
-
|
|
1674
|
-
}()),
|
|
1673
|
+
De.ContextConsumer = y, De.ContextProvider = j, De.Element = S, De.ForwardRef = E, De.Fragment = I, De.Lazy = O, De.Memo = T, De.Portal = M, De.Profiler = C, De.StrictMode = P, De.Suspense = z, De.isAsyncMode = q, De.isConcurrentMode = H, De.isContextConsumer = W, De.isContextProvider = A, De.isElement = K, De.isForwardRef = Z, De.isFragment = ne, De.isLazy = ve, De.isMemo = se, De.isPortal = J, De.isProfiler = le, De.isStrictMode = Ie, De.isSuspense = me, De.isValidElementType = N, De.typeOf = w;
|
|
1674
|
+
}()), De;
|
|
1675
1675
|
}
|
|
1676
1676
|
process.env.NODE_ENV === "production" ? Pa.exports = sf() : Pa.exports = lf();
|
|
1677
1677
|
var bo = Pa.exports, cf = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"], df = ["reactReduxForwardedRef"], uf = [], pf = [null, null], ff = function(t) {
|
|
@@ -1761,7 +1761,7 @@ function bf(e, t) {
|
|
|
1761
1761
|
var fe = V.reactReduxForwardedRef, Ve = Dr(V, df);
|
|
1762
1762
|
return [V.context, fe, Ve];
|
|
1763
1763
|
}, [V]), H = q[0], W = q[1], A = q[2], K = k(function() {
|
|
1764
|
-
return H && H.Consumer && bo.isContextConsumer(/* @__PURE__ */
|
|
1764
|
+
return H && H.Consumer && bo.isContextConsumer(/* @__PURE__ */ ue.createElement(H.Consumer, null)) ? H : y;
|
|
1765
1765
|
}, [H, y]), Z = $(K), ne = !!V.store && !!V.store.getState && !!V.store.dispatch, ve = !!Z && !!Z.store;
|
|
1766
1766
|
if (process.env.NODE_ENV !== "production" && !ne && !ve)
|
|
1767
1767
|
throw new Error('Could not find "store" in the context of ' + ('"' + I + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + I + " in connect options."));
|
|
@@ -1771,32 +1771,32 @@ function bf(e, t) {
|
|
|
1771
1771
|
if (!d) return pf;
|
|
1772
1772
|
var fe = hl(se, ne ? null : Z.subscription), Ve = fe.notifyNestedSubs.bind(fe);
|
|
1773
1773
|
return [fe, Ve];
|
|
1774
|
-
}, [se, ne, Z]),
|
|
1774
|
+
}, [se, ne, Z]), Ie = le[0], me = le[1], Q = k(function() {
|
|
1775
1775
|
return ne ? Z : oe({}, Z, {
|
|
1776
|
-
subscription:
|
|
1776
|
+
subscription: Ie
|
|
1777
1777
|
});
|
|
1778
|
-
}, [ne, Z,
|
|
1778
|
+
}, [ne, Z, Ie]), re = lu(mf, uf, hf), de = re[0], Pe = de[0], tt = re[1];
|
|
1779
1779
|
if (Pe && Pe.error)
|
|
1780
1780
|
throw Pe.error;
|
|
1781
1781
|
var yt = ae(), Y = ae(A), G = ae(), ie = ae(!1), ge = C(function() {
|
|
1782
1782
|
return G.current && A === Y.current ? G.current : J(se.getState(), A);
|
|
1783
1783
|
}, [se, Pe, A]);
|
|
1784
|
-
xo(gf, [Y, yt, ie, A, ge, G, me]), xo(vf, [d, se,
|
|
1785
|
-
var
|
|
1786
|
-
return /* @__PURE__ */
|
|
1784
|
+
xo(gf, [Y, yt, ie, A, ge, G, me]), xo(vf, [d, se, Ie, J, Y, yt, ie, G, me, tt], [se, Ie, J]);
|
|
1785
|
+
var _e = k(function() {
|
|
1786
|
+
return /* @__PURE__ */ ue.createElement(S, oe({}, ge, {
|
|
1787
1787
|
ref: W
|
|
1788
1788
|
}));
|
|
1789
|
-
}, [W, S, ge]),
|
|
1790
|
-
return d ? /* @__PURE__ */
|
|
1789
|
+
}, [W, S, ge]), ye = k(function() {
|
|
1790
|
+
return d ? /* @__PURE__ */ ue.createElement(K.Provider, {
|
|
1791
1791
|
value: Q
|
|
1792
|
-
},
|
|
1793
|
-
}, [K,
|
|
1794
|
-
return
|
|
1792
|
+
}, _e) : _e;
|
|
1793
|
+
}, [K, _e, Q]);
|
|
1794
|
+
return ye;
|
|
1795
1795
|
}
|
|
1796
|
-
var z = T ?
|
|
1796
|
+
var z = T ? ue.memo(P) : P;
|
|
1797
1797
|
if (z.WrappedComponent = S, z.displayName = P.displayName = I, b) {
|
|
1798
|
-
var F =
|
|
1799
|
-
return /* @__PURE__ */
|
|
1798
|
+
var F = ue.forwardRef(function(q, H) {
|
|
1799
|
+
return /* @__PURE__ */ ue.createElement(z, oe({}, q, {
|
|
1800
1800
|
reactReduxForwardedRef: H
|
|
1801
1801
|
}));
|
|
1802
1802
|
});
|
|
@@ -2188,7 +2188,7 @@ function _l(e, t) {
|
|
|
2188
2188
|
var n;
|
|
2189
2189
|
Yf || typeof window < "u" && window[Zf] || (n = console)[e].apply(n, Qf(t));
|
|
2190
2190
|
}
|
|
2191
|
-
var
|
|
2191
|
+
var Ee = _l.bind(null, "warn"), Ta = _l.bind(null, "error");
|
|
2192
2192
|
function Tt() {
|
|
2193
2193
|
}
|
|
2194
2194
|
function em(e, t) {
|
|
@@ -2224,7 +2224,7 @@ var nm = function(e) {
|
|
|
2224
2224
|
o[s] = arguments[s];
|
|
2225
2225
|
return r = e.call.apply(e, [this].concat(o)) || this, r.callbacks = null, r.unbind = Tt, r.onWindowError = function(l) {
|
|
2226
2226
|
var c = r.getCallbacks();
|
|
2227
|
-
c.isDragging() && (c.tryAbort(), process.env.NODE_ENV !== "production" &&
|
|
2227
|
+
c.isDragging() && (c.tryAbort(), process.env.NODE_ENV !== "production" && Ee(`
|
|
2228
2228
|
An error was caught by our window 'error' event listener while a drag was occurring.
|
|
2229
2229
|
The active drag has been aborted.
|
|
2230
2230
|
`));
|
|
@@ -2255,7 +2255,7 @@ var nm = function(e) {
|
|
|
2255
2255
|
}, n.render = function() {
|
|
2256
2256
|
return this.props.children(this.setCallbacks);
|
|
2257
2257
|
}, t;
|
|
2258
|
-
}(
|
|
2258
|
+
}(ue.Component), rm = `
|
|
2259
2259
|
Press space bar to start a drag.
|
|
2260
2260
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
2261
2261
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
@@ -2327,7 +2327,7 @@ var nm = function(e) {
|
|
|
2327
2327
|
x: t.x + n.x,
|
|
2328
2328
|
y: t.y + n.y
|
|
2329
2329
|
};
|
|
2330
|
-
},
|
|
2330
|
+
}, Je = function(t, n) {
|
|
2331
2331
|
return {
|
|
2332
2332
|
x: t.x - n.x,
|
|
2333
2333
|
y: t.y - n.y
|
|
@@ -2408,7 +2408,7 @@ var nm = function(e) {
|
|
|
2408
2408
|
};
|
|
2409
2409
|
}, di = function(e, t) {
|
|
2410
2410
|
e.frame || (process.env.NODE_ENV, D());
|
|
2411
|
-
var n = e.frame, r =
|
|
2411
|
+
var n = e.frame, r = Je(t, n.scroll.initial), i = yn(r), o = oe({}, n, {
|
|
2412
2412
|
scroll: {
|
|
2413
2413
|
initial: n.scroll.initial,
|
|
2414
2414
|
current: t,
|
|
@@ -2854,7 +2854,7 @@ var Cm = function(e) {
|
|
|
2854
2854
|
var t = Rm(e), n = e.droppable, r = n ? Aa(n, t) : t;
|
|
2855
2855
|
return r;
|
|
2856
2856
|
}, $l = function(e, t) {
|
|
2857
|
-
var n =
|
|
2857
|
+
var n = Je(t, e.scroll.initial), r = yn(n), i = ut({
|
|
2858
2858
|
top: t.y,
|
|
2859
2859
|
bottom: t.y + e.frame.height,
|
|
2860
2860
|
left: t.x,
|
|
@@ -2921,10 +2921,10 @@ var Bm = function(e) {
|
|
|
2921
2921
|
}, Lm = function(e, t) {
|
|
2922
2922
|
return Fe(e.scroll.diff.displacement, t);
|
|
2923
2923
|
}, vi = function(e) {
|
|
2924
|
-
var t = e.pageBorderBoxCenter, n = e.draggable, r = e.viewport, i = Lm(r, t), o =
|
|
2924
|
+
var t = e.pageBorderBoxCenter, n = e.draggable, r = e.viewport, i = Lm(r, t), o = Je(i, n.page.borderBox.center);
|
|
2925
2925
|
return Fe(n.client.borderBox.center, o);
|
|
2926
2926
|
}, Gl = function(e) {
|
|
2927
|
-
var t = e.draggable, n = e.destination, r = e.newPageBorderBoxCenter, i = e.viewport, o = e.withDroppableDisplacement, s = e.onlyOnMainAxis, l = s === void 0 ? !1 : s, c =
|
|
2927
|
+
var t = e.draggable, n = e.destination, r = e.newPageBorderBoxCenter, i = e.viewport, o = e.withDroppableDisplacement, s = e.onlyOnMainAxis, l = s === void 0 ? !1 : s, c = Je(r, t.page.borderBox.center), u = Zn(t.page.borderBox, c), d = {
|
|
2928
2928
|
target: u,
|
|
2929
2929
|
destination: n,
|
|
2930
2930
|
withDroppableDisplacement: o,
|
|
@@ -2980,7 +2980,7 @@ var Bm = function(e) {
|
|
|
2980
2980
|
scrollJumpRequest: null
|
|
2981
2981
|
};
|
|
2982
2982
|
}
|
|
2983
|
-
var b =
|
|
2983
|
+
var b = Je(m, l), v = Bm({
|
|
2984
2984
|
impact: f,
|
|
2985
2985
|
viewport: s,
|
|
2986
2986
|
destination: r,
|
|
@@ -3035,7 +3035,7 @@ var Bm = function(e) {
|
|
|
3035
3035
|
})[0];
|
|
3036
3036
|
}, Ro = function(t, n) {
|
|
3037
3037
|
var r = t.page.borderBox.center;
|
|
3038
|
-
return kt(t.descriptor.id, n) ?
|
|
3038
|
+
return kt(t.descriptor.id, n) ? Je(r, n.displacedBy.point) : r;
|
|
3039
3039
|
}, Vm = function(t, n) {
|
|
3040
3040
|
var r = t.page.borderBox;
|
|
3041
3041
|
return kt(t.descriptor.id, n) ? Zn(r, yn(n.displacedBy.point)) : r;
|
|
@@ -3216,11 +3216,11 @@ var Bm = function(e) {
|
|
|
3216
3216
|
impact: f,
|
|
3217
3217
|
scrollJumpRequest: null
|
|
3218
3218
|
};
|
|
3219
|
-
},
|
|
3219
|
+
}, Ze = function(e) {
|
|
3220
3220
|
var t = e.at;
|
|
3221
3221
|
return t ? t.type === "REORDER" ? t.destination.droppableId : t.combine.droppableId : null;
|
|
3222
3222
|
}, zm = function(t, n) {
|
|
3223
|
-
var r =
|
|
3223
|
+
var r = Ze(t);
|
|
3224
3224
|
return r ? n[r] : null;
|
|
3225
3225
|
}, qm = function(e) {
|
|
3226
3226
|
var t = e.state, n = e.type, r = zm(t.impact, t.dimensions.droppables), i = !!r, o = t.dimensions.droppables[t.critical.droppable.id], s = r || o, l = s.axis.direction, c = l === "vertical" && (n === "MOVE_UP" || n === "MOVE_DOWN") || l === "horizontal" && (n === "MOVE_LEFT" || n === "MOVE_RIGHT");
|
|
@@ -3379,7 +3379,7 @@ var Zm = function(e) {
|
|
|
3379
3379
|
var n;
|
|
3380
3380
|
return oe({}, e, (n = {}, n[t.descriptor.id] = t, n));
|
|
3381
3381
|
}, ng = function(t) {
|
|
3382
|
-
var n = t.previousImpact, r = t.impact, i = t.droppables, o =
|
|
3382
|
+
var n = t.previousImpact, r = t.impact, i = t.droppables, o = Ze(n), s = Ze(r);
|
|
3383
3383
|
if (!o || o === s)
|
|
3384
3384
|
return i;
|
|
3385
3385
|
var l = i[o];
|
|
@@ -3392,7 +3392,7 @@ var Zm = function(e) {
|
|
|
3392
3392
|
previousImpact: i,
|
|
3393
3393
|
impact: o,
|
|
3394
3394
|
droppables: r
|
|
3395
|
-
}), l =
|
|
3395
|
+
}), l = Ze(o);
|
|
3396
3396
|
if (!l)
|
|
3397
3397
|
return s;
|
|
3398
3398
|
var c = r[l];
|
|
@@ -3401,7 +3401,7 @@ var Zm = function(e) {
|
|
|
3401
3401
|
var u = Hl(c, t, n);
|
|
3402
3402
|
return hi(s, u);
|
|
3403
3403
|
}, Bn = function(e) {
|
|
3404
|
-
var t = e.state, n = e.clientSelection, r = e.dimensions, i = e.viewport, o = e.impact, s = e.scrollJumpRequest, l = i || t.viewport, c = r || t.dimensions, u = n || t.current.client.selection, d =
|
|
3404
|
+
var t = e.state, n = e.clientSelection, r = e.dimensions, i = e.viewport, o = e.impact, s = e.scrollJumpRequest, l = i || t.viewport, c = r || t.dimensions, u = n || t.current.client.selection, d = Je(u, t.initial.client.selection), p = {
|
|
3405
3405
|
offset: d,
|
|
3406
3406
|
selection: u,
|
|
3407
3407
|
borderBoxCenter: Fe(t.initial.client.borderBoxCenter, d)
|
|
@@ -3481,7 +3481,7 @@ var Kl = function(e) {
|
|
|
3481
3481
|
}, Jl = function(e) {
|
|
3482
3482
|
var t = e.state, n = e.dimensions, r = e.viewport;
|
|
3483
3483
|
t.movementMode !== "SNAP" && (process.env.NODE_ENV, D());
|
|
3484
|
-
var i = t.impact, o = r || t.viewport, s = n || t.dimensions, l = s.draggables, c = s.droppables, u = l[t.critical.draggable.id], d =
|
|
3484
|
+
var i = t.impact, o = r || t.viewport, s = n || t.dimensions, l = s.draggables, c = s.droppables, u = l[t.critical.draggable.id], d = Ze(i);
|
|
3485
3485
|
d || (process.env.NODE_ENV !== "production" ? D(!1, "Must be over a destination in SNAP movement mode") : D());
|
|
3486
3486
|
var p = c[d], f = Kl({
|
|
3487
3487
|
impact: i,
|
|
@@ -3584,7 +3584,7 @@ var Kl = function(e) {
|
|
|
3584
3584
|
var l = {
|
|
3585
3585
|
droppables: i,
|
|
3586
3586
|
draggables: s
|
|
3587
|
-
}, c =
|
|
3587
|
+
}, c = Ze(t.impact), u = c ? l.droppables[c] : null, d = l.draggables[t.critical.draggable.id], p = l.droppables[t.critical.droppable.id], f = Ql({
|
|
3588
3588
|
draggable: d,
|
|
3589
3589
|
home: p,
|
|
3590
3590
|
draggables: s,
|
|
@@ -3809,14 +3809,14 @@ var ko = {
|
|
|
3809
3809
|
if (t.type === "DROP_ANIMATE") {
|
|
3810
3810
|
var ve = t.payload, se = ve.completed, J = ve.dropDuration, le = ve.newHomeClientOffset;
|
|
3811
3811
|
e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot animate drop from phase " + e.phase) : D());
|
|
3812
|
-
var
|
|
3812
|
+
var Ie = {
|
|
3813
3813
|
phase: "DROP_ANIMATING",
|
|
3814
3814
|
completed: se,
|
|
3815
3815
|
dropDuration: J,
|
|
3816
3816
|
newHomeClientOffset: le,
|
|
3817
3817
|
dimensions: e.dimensions
|
|
3818
3818
|
};
|
|
3819
|
-
return
|
|
3819
|
+
return Ie;
|
|
3820
3820
|
}
|
|
3821
3821
|
if (t.type === "DROP_COMPLETE") {
|
|
3822
3822
|
var me = t.payload.completed;
|
|
@@ -3946,7 +3946,7 @@ function Ig(e) {
|
|
|
3946
3946
|
var c = !!n[l];
|
|
3947
3947
|
return c ? "[🔥" + l + "]" : "" + l;
|
|
3948
3948
|
}).join(", ");
|
|
3949
|
-
process.env.NODE_ENV !== "production" &&
|
|
3949
|
+
process.env.NODE_ENV !== "production" && Ee(`
|
|
3950
3950
|
Detected non-consecutive <Draggable /> indexes.
|
|
3951
3951
|
|
|
3952
3952
|
(This can cause unexpected bugs)
|
|
@@ -4043,14 +4043,14 @@ var Og = function(e) {
|
|
|
4043
4043
|
var o = i / Lo, s = Ba + Tg * o, l = r === "CANCEL" ? s * Ag : s;
|
|
4044
4044
|
return Number(l.toFixed(2));
|
|
4045
4045
|
}, kg = function(e) {
|
|
4046
|
-
var t = e.impact, n = e.draggable, r = e.dimensions, i = e.viewport, o = e.afterCritical, s = r.draggables, l = r.droppables, c =
|
|
4046
|
+
var t = e.impact, n = e.draggable, r = e.dimensions, i = e.viewport, o = e.afterCritical, s = r.draggables, l = r.droppables, c = Ze(t), u = c ? l[c] : null, d = l[n.descriptor.droppableId], p = Xl({
|
|
4047
4047
|
impact: t,
|
|
4048
4048
|
draggable: n,
|
|
4049
4049
|
draggables: s,
|
|
4050
4050
|
afterCritical: o,
|
|
4051
4051
|
droppable: u || d,
|
|
4052
4052
|
viewport: i
|
|
4053
|
-
}), f =
|
|
4053
|
+
}), f = Je(p, n.client.borderBox.center);
|
|
4054
4054
|
return f;
|
|
4055
4055
|
}, Bg = function(e) {
|
|
4056
4056
|
var t = e.draggables, n = e.reason, r = e.lastImpact, i = e.home, o = e.viewport, s = e.onLiftImpact;
|
|
@@ -4206,11 +4206,11 @@ var Vg = function(t) {
|
|
|
4206
4206
|
n = !0;
|
|
4207
4207
|
}), i = function(s) {
|
|
4208
4208
|
if (t) {
|
|
4209
|
-
process.env.NODE_ENV !== "production" &&
|
|
4209
|
+
process.env.NODE_ENV !== "production" && Ee("Announcement already made. Not making a second announcement");
|
|
4210
4210
|
return;
|
|
4211
4211
|
}
|
|
4212
4212
|
if (n) {
|
|
4213
|
-
process.env.NODE_ENV !== "production" &&
|
|
4213
|
+
process.env.NODE_ENV !== "production" && Ee(`
|
|
4214
4214
|
Announcements cannot be made asynchronously.
|
|
4215
4215
|
Default message has already been announced.
|
|
4216
4216
|
`);
|
|
@@ -4531,7 +4531,7 @@ function av(e) {
|
|
|
4531
4531
|
};
|
|
4532
4532
|
}
|
|
4533
4533
|
var ac = function(e) {
|
|
4534
|
-
var t = e.scrollHeight, n = e.scrollWidth, r = e.height, i = e.width, o =
|
|
4534
|
+
var t = e.scrollHeight, n = e.scrollWidth, r = e.height, i = e.width, o = Je({
|
|
4535
4535
|
x: n,
|
|
4536
4536
|
y: t
|
|
4537
4537
|
}, {
|
|
@@ -4595,7 +4595,7 @@ function Mo(e, t, n) {
|
|
|
4595
4595
|
if (n.descriptor.id === t.id || n.descriptor.type !== t.type)
|
|
4596
4596
|
return !1;
|
|
4597
4597
|
var r = e.droppable.getById(n.descriptor.droppableId);
|
|
4598
|
-
return r.descriptor.mode !== "virtual" ? (process.env.NODE_ENV !== "production" &&
|
|
4598
|
+
return r.descriptor.mode !== "virtual" ? (process.env.NODE_ENV !== "production" && Ee(`
|
|
4599
4599
|
You are attempting to add or remove a Draggable [id: ` + n.descriptor.id + `]
|
|
4600
4600
|
while a drag is occurring. This is only supported for virtual lists.
|
|
4601
4601
|
|
|
@@ -4702,7 +4702,7 @@ var sv = function(e, t) {
|
|
|
4702
4702
|
}, lc = function(e) {
|
|
4703
4703
|
var t = e.startOfRange, n = e.endOfRange, r = e.current, i = n - t;
|
|
4704
4704
|
if (i === 0)
|
|
4705
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4705
|
+
return process.env.NODE_ENV !== "production" && Ee(`
|
|
4706
4706
|
Detected distance range of 0 in the fluid auto scroller
|
|
4707
4707
|
This is unexpected and would cause a divide by 0 issue.
|
|
4708
4708
|
Not allowing an auto scroll
|
|
@@ -4878,7 +4878,7 @@ var sv = function(e, t) {
|
|
|
4878
4878
|
}
|
|
4879
4879
|
var p = uv({
|
|
4880
4880
|
center: s,
|
|
4881
|
-
destination:
|
|
4881
|
+
destination: Ze(t.impact),
|
|
4882
4882
|
droppables: t.dimensions.droppables
|
|
4883
4883
|
});
|
|
4884
4884
|
if (p) {
|
|
@@ -4937,9 +4937,9 @@ var sv = function(e, t) {
|
|
|
4937
4937
|
var p = xv(u, d);
|
|
4938
4938
|
if (!p)
|
|
4939
4939
|
return n(u.descriptor.id, d), null;
|
|
4940
|
-
var f =
|
|
4940
|
+
var f = Je(d, p);
|
|
4941
4941
|
n(u.descriptor.id, f);
|
|
4942
|
-
var m =
|
|
4942
|
+
var m = Je(d, f);
|
|
4943
4943
|
return m;
|
|
4944
4944
|
}, s = function(u, d, p) {
|
|
4945
4945
|
if (!u || !Di(d, p))
|
|
@@ -4947,14 +4947,14 @@ var sv = function(e, t) {
|
|
|
4947
4947
|
var f = bv(d, p);
|
|
4948
4948
|
if (!f)
|
|
4949
4949
|
return r(p), null;
|
|
4950
|
-
var m =
|
|
4950
|
+
var m = Je(p, f);
|
|
4951
4951
|
r(m);
|
|
4952
|
-
var g =
|
|
4952
|
+
var g = Je(p, m);
|
|
4953
4953
|
return g;
|
|
4954
4954
|
}, l = function(u) {
|
|
4955
4955
|
var d = u.scrollJumpRequest;
|
|
4956
4956
|
if (d) {
|
|
4957
|
-
var p =
|
|
4957
|
+
var p = Ze(u.impact);
|
|
4958
4958
|
p || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot perform a jump scroll when there is no destination") : D());
|
|
4959
4959
|
var f = o(u.dimensions.droppables[p], d);
|
|
4960
4960
|
if (f) {
|
|
@@ -5075,7 +5075,7 @@ var sv = function(e, t) {
|
|
|
5075
5075
|
dropAnimating: Pn(s, "dropAnimating"),
|
|
5076
5076
|
userCancel: Pn(s, "userCancel")
|
|
5077
5077
|
};
|
|
5078
|
-
},
|
|
5078
|
+
}, et = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Qa : U, pa = function() {
|
|
5079
5079
|
var t = document.querySelector("head");
|
|
5080
5080
|
return t || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find the head to append a style to") : D()), t;
|
|
5081
5081
|
}, Wo = function(t) {
|
|
@@ -5092,7 +5092,7 @@ function _v(e, t) {
|
|
|
5092
5092
|
var f = r.current;
|
|
5093
5093
|
f || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot set dynamic style element if it is not set") : D()), f.textContent = p;
|
|
5094
5094
|
}, []);
|
|
5095
|
-
|
|
5095
|
+
et(function() {
|
|
5096
5096
|
!r.current && !i.current || (process.env.NODE_ENV !== "production" ? D(!1, "style elements already mounted") : D());
|
|
5097
5097
|
var p = Wo(t), f = Wo(t);
|
|
5098
5098
|
return r.current = p, i.current = f, p.setAttribute(bn + "-always", e), f.setAttribute(bn + "-dynamic", e), pa().appendChild(p), pa().appendChild(f), s(n.always), o(n.resting), function() {
|
|
@@ -5131,11 +5131,11 @@ function rr(e) {
|
|
|
5131
5131
|
function pc(e, t) {
|
|
5132
5132
|
var n = "[" + xn.contextId + '="' + e + '"]', r = Al(document.querySelectorAll(n));
|
|
5133
5133
|
if (!r.length)
|
|
5134
|
-
return process.env.NODE_ENV !== "production" &&
|
|
5134
|
+
return process.env.NODE_ENV !== "production" && Ee('Unable to find any drag handles in the context "' + e + '"'), null;
|
|
5135
5135
|
var i = Vt(r, function(o) {
|
|
5136
5136
|
return o.getAttribute(xn.draggableId) === t;
|
|
5137
5137
|
});
|
|
5138
|
-
return i ? rr(i) ? i : (process.env.NODE_ENV !== "production" &&
|
|
5138
|
+
return i ? rr(i) ? i : (process.env.NODE_ENV !== "production" && Ee("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && Ee('Unable to find drag handle with id "' + t + '" as no handle with a matching id was found'), null);
|
|
5139
5139
|
}
|
|
5140
5140
|
function Ov(e) {
|
|
5141
5141
|
var t = ae({}), n = ae(null), r = ae(null), i = ae(!1), o = ee(function(f, m) {
|
|
@@ -5163,7 +5163,7 @@ function Ov(e) {
|
|
|
5163
5163
|
var m = document.activeElement;
|
|
5164
5164
|
m && m.getAttribute(xn.draggableId) === f && (n.current = f);
|
|
5165
5165
|
}, []);
|
|
5166
|
-
|
|
5166
|
+
et(function() {
|
|
5167
5167
|
return i.current = !0, function() {
|
|
5168
5168
|
i.current = !1;
|
|
5169
5169
|
var f = r.current;
|
|
@@ -5276,7 +5276,7 @@ function Tv() {
|
|
|
5276
5276
|
};
|
|
5277
5277
|
}, [e]), e;
|
|
5278
5278
|
}
|
|
5279
|
-
var Ci =
|
|
5279
|
+
var Ci = ue.createContext(null), Kn = function() {
|
|
5280
5280
|
var e = document.body;
|
|
5281
5281
|
return e || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find document.body") : D()), e;
|
|
5282
5282
|
}, Av = {
|
|
@@ -5311,7 +5311,7 @@ function kv(e) {
|
|
|
5311
5311
|
o.textContent = i;
|
|
5312
5312
|
return;
|
|
5313
5313
|
}
|
|
5314
|
-
process.env.NODE_ENV !== "production" &&
|
|
5314
|
+
process.env.NODE_ENV !== "production" && Ee(`
|
|
5315
5315
|
A screen reader message was trying to be announced but it was unable to do so.
|
|
5316
5316
|
This can occur if you unmount your <DragDropContext /> in your onDragEnd.
|
|
5317
5317
|
Consider calling provided.announce() before the unmount so that the instruction will
|
|
@@ -5353,7 +5353,7 @@ function Fv(e) {
|
|
|
5353
5353
|
};
|
|
5354
5354
|
}, [i, n]), i;
|
|
5355
5355
|
}
|
|
5356
|
-
var qr =
|
|
5356
|
+
var qr = ue.createContext(null), Vv = {
|
|
5357
5357
|
react: "^16.8.5 || ^17.0.0 || ^18.0.0",
|
|
5358
5358
|
"react-dom": "^16.8.5 || ^17.0.0 || ^18.0.0"
|
|
5359
5359
|
}, $v = /(\d+)\.(\d+)\.(\d+)/, zo = function(t) {
|
|
@@ -5370,7 +5370,7 @@ var qr = de.createContext(null), Vv = {
|
|
|
5370
5370
|
return n.major > t.major ? !0 : n.major < t.major ? !1 : n.minor > t.minor ? !0 : n.minor < t.minor ? !1 : n.patch >= t.patch;
|
|
5371
5371
|
}, Uv = function(e, t) {
|
|
5372
5372
|
var n = zo(e), r = zo(t);
|
|
5373
|
-
Gv(n, r) || process.env.NODE_ENV !== "production" &&
|
|
5373
|
+
Gv(n, r) || process.env.NODE_ENV !== "production" && Ee(`
|
|
5374
5374
|
React version: [` + r.raw + `]
|
|
5375
5375
|
does not satisfy expected peer dependency version: [` + n.raw + `]
|
|
5376
5376
|
|
|
@@ -5384,18 +5384,18 @@ var qr = de.createContext(null), Vv = {
|
|
|
5384
5384
|
`, Hv = function(e) {
|
|
5385
5385
|
var t = e.doctype;
|
|
5386
5386
|
if (!t) {
|
|
5387
|
-
process.env.NODE_ENV !== "production" &&
|
|
5387
|
+
process.env.NODE_ENV !== "production" && Ee(`
|
|
5388
5388
|
No <!doctype html> found.
|
|
5389
5389
|
|
|
5390
5390
|
` + fa + `
|
|
5391
5391
|
`);
|
|
5392
5392
|
return;
|
|
5393
5393
|
}
|
|
5394
|
-
t.name.toLowerCase() !== "html" && process.env.NODE_ENV !== "production" &&
|
|
5394
|
+
t.name.toLowerCase() !== "html" && process.env.NODE_ENV !== "production" && Ee(`
|
|
5395
5395
|
Unexpected <!doctype> found: (` + t.name + `)
|
|
5396
5396
|
|
|
5397
5397
|
` + fa + `
|
|
5398
|
-
`), t.publicId !== "" && process.env.NODE_ENV !== "production" &&
|
|
5398
|
+
`), t.publicId !== "" && process.env.NODE_ENV !== "production" && Ee(`
|
|
5399
5399
|
Unexpected <!doctype> publicId found: (` + t.publicId + `)
|
|
5400
5400
|
A html5 doctype does not have a publicId
|
|
5401
5401
|
|
|
@@ -5422,7 +5422,7 @@ function ar(e, t) {
|
|
|
5422
5422
|
}
|
|
5423
5423
|
function Wv() {
|
|
5424
5424
|
ar(function() {
|
|
5425
|
-
Uv(Vv.react,
|
|
5425
|
+
Uv(Vv.react, ue.version), Hv(document);
|
|
5426
5426
|
}, []);
|
|
5427
5427
|
}
|
|
5428
5428
|
function _i(e) {
|
|
@@ -5634,7 +5634,7 @@ function oh(e) {
|
|
|
5634
5634
|
actions: p
|
|
5635
5635
|
}, c();
|
|
5636
5636
|
}, [c]);
|
|
5637
|
-
|
|
5637
|
+
et(function() {
|
|
5638
5638
|
return o(), function() {
|
|
5639
5639
|
n.current();
|
|
5640
5640
|
};
|
|
@@ -5744,7 +5744,7 @@ function dh(e) {
|
|
|
5744
5744
|
};
|
|
5745
5745
|
t.current = at(window, [n], o);
|
|
5746
5746
|
}, [n]);
|
|
5747
|
-
|
|
5747
|
+
et(function() {
|
|
5748
5748
|
return r(), function() {
|
|
5749
5749
|
t.current();
|
|
5750
5750
|
};
|
|
@@ -5923,13 +5923,13 @@ function gh(e) {
|
|
|
5923
5923
|
longPressTimerId: h
|
|
5924
5924
|
}), u();
|
|
5925
5925
|
}, [u, r, i, d]);
|
|
5926
|
-
|
|
5926
|
+
et(function() {
|
|
5927
5927
|
return s(), function() {
|
|
5928
5928
|
n.current();
|
|
5929
5929
|
var g = r();
|
|
5930
5930
|
g.type === "PENDING" && (clearTimeout(g.longPressTimerId), i(ma));
|
|
5931
5931
|
};
|
|
5932
|
-
}, [r, s, i]),
|
|
5932
|
+
}, [r, s, i]), et(function() {
|
|
5933
5933
|
var m = at(window, [{
|
|
5934
5934
|
eventName: "touchmove",
|
|
5935
5935
|
fn: function() {
|
|
@@ -6000,9 +6000,9 @@ function Nh(e) {
|
|
|
6000
6000
|
function Dh(e, t) {
|
|
6001
6001
|
var n = t.target;
|
|
6002
6002
|
if (!yh(n))
|
|
6003
|
-
return process.env.NODE_ENV !== "production" &&
|
|
6003
|
+
return process.env.NODE_ENV !== "production" && Ee("event.target must be a Element"), null;
|
|
6004
6004
|
var r = Nh(e), i = jh(n, r);
|
|
6005
|
-
return i ? rr(i) ? i : (process.env.NODE_ENV !== "production" &&
|
|
6005
|
+
return i ? rr(i) ? i : (process.env.NODE_ENV !== "production" && Ee("drag handle must be a HTMLElement"), null) : null;
|
|
6006
6006
|
}
|
|
6007
6007
|
function Sh(e, t) {
|
|
6008
6008
|
var n = Dh(e, t);
|
|
@@ -6012,14 +6012,14 @@ function Ch(e, t) {
|
|
|
6012
6012
|
var n = "[" + La.contextId + '="' + e + '"]', r = Al(document.querySelectorAll(n)), i = Vt(r, function(o) {
|
|
6013
6013
|
return o.getAttribute(La.id) === t;
|
|
6014
6014
|
});
|
|
6015
|
-
return i ? rr(i) ? i : (process.env.NODE_ENV !== "production" &&
|
|
6015
|
+
return i ? rr(i) ? i : (process.env.NODE_ENV !== "production" && Ee("Draggable element is not a HTMLElement"), null) : null;
|
|
6016
6016
|
}
|
|
6017
6017
|
function Eh(e) {
|
|
6018
6018
|
e.preventDefault();
|
|
6019
6019
|
}
|
|
6020
6020
|
function ur(e) {
|
|
6021
6021
|
var t = e.expected, n = e.phase, r = e.isLockActive, i = e.shouldWarn;
|
|
6022
|
-
return r() ? t !== n ? (i && process.env.NODE_ENV !== "production" &&
|
|
6022
|
+
return r() ? t !== n ? (i && process.env.NODE_ENV !== "production" && Ee(`
|
|
6023
6023
|
Cannot perform action.
|
|
6024
6024
|
The actions you used belong to an outdated phase
|
|
6025
6025
|
|
|
@@ -6029,7 +6029,7 @@ function ur(e) {
|
|
|
6029
6029
|
Tips:
|
|
6030
6030
|
|
|
6031
6031
|
- Do not use preDragActions actions after calling preDragActions.lift()
|
|
6032
|
-
`), !1) : !0 : (i && process.env.NODE_ENV !== "production" &&
|
|
6032
|
+
`), !1) : !0 : (i && process.env.NODE_ENV !== "production" && Ee(`
|
|
6033
6033
|
Cannot perform action.
|
|
6034
6034
|
The sensor no longer has an action lock.
|
|
6035
6035
|
|
|
@@ -6044,7 +6044,7 @@ function bc(e) {
|
|
|
6044
6044
|
if (t.isClaimed())
|
|
6045
6045
|
return !1;
|
|
6046
6046
|
var o = r.draggable.findById(i);
|
|
6047
|
-
return o ? !(!o.options.isEnabled || !sc(n.getState(), i)) : (process.env.NODE_ENV !== "production" &&
|
|
6047
|
+
return o ? !(!o.options.isEnabled || !sc(n.getState(), i)) : (process.env.NODE_ENV !== "production" && Ee("Unable to find draggable with id: " + i), !1);
|
|
6048
6048
|
}
|
|
6049
6049
|
function Ih(e) {
|
|
6050
6050
|
var t = e.lockAPI, n = e.contextId, r = e.store, i = e.registry, o = e.draggableId, s = e.forceSensorStop, l = e.sourceEvent, c = bc({
|
|
@@ -6057,7 +6057,7 @@ function Ih(e) {
|
|
|
6057
6057
|
return null;
|
|
6058
6058
|
var u = i.draggable.getById(o), d = Ch(n, u.descriptor.id);
|
|
6059
6059
|
if (!d)
|
|
6060
|
-
return process.env.NODE_ENV !== "production" &&
|
|
6060
|
+
return process.env.NODE_ENV !== "production" && Ee("Unable to find draggable element with id: " + o), null;
|
|
6061
6061
|
if (l && !u.options.canDragInteractiveElements && bh(d, l))
|
|
6062
6062
|
return null;
|
|
6063
6063
|
var p = t.claim(s || Tt), f = "PRE_DRAG";
|
|
@@ -6199,13 +6199,13 @@ function Oh(e) {
|
|
|
6199
6199
|
})[0], c = ee(function(x, N) {
|
|
6200
6200
|
x.isDragging && !N.isDragging && l.tryAbandon();
|
|
6201
6201
|
}, [l]);
|
|
6202
|
-
|
|
6202
|
+
et(function() {
|
|
6203
6203
|
var x = n.getState(), N = n.subscribe(function() {
|
|
6204
6204
|
var w = n.getState();
|
|
6205
6205
|
c(x, w), x = w;
|
|
6206
6206
|
});
|
|
6207
6207
|
return N;
|
|
6208
|
-
}, [l, n, c]),
|
|
6208
|
+
}, [l, n, c]), et(function() {
|
|
6209
6209
|
return l.tryAbandon;
|
|
6210
6210
|
}, [l.tryAbandon]);
|
|
6211
6211
|
var u = ee(function(v) {
|
|
@@ -6295,7 +6295,7 @@ function Th(e) {
|
|
|
6295
6295
|
styleMarshal: p
|
|
6296
6296
|
});
|
|
6297
6297
|
}, [u, b, h, v, c, p]);
|
|
6298
|
-
process.env.NODE_ENV !== "production" && s.current && s.current !== x && process.env.NODE_ENV !== "production" &&
|
|
6298
|
+
process.env.NODE_ENV !== "production" && s.current && s.current !== x && process.env.NODE_ENV !== "production" && Ee("unexpected store change"), s.current = x;
|
|
6299
6299
|
var N = ee(function() {
|
|
6300
6300
|
var I = Tn(s), O = I.getState();
|
|
6301
6301
|
O.phase !== "IDLE" && I.dispatch(bi());
|
|
@@ -6332,9 +6332,9 @@ function Th(e) {
|
|
|
6332
6332
|
enableDefaultSensors: e.enableDefaultSensors !== !1
|
|
6333
6333
|
}), U(function() {
|
|
6334
6334
|
return N;
|
|
6335
|
-
}, [N]),
|
|
6335
|
+
}, [N]), ue.createElement(qr.Provider, {
|
|
6336
6336
|
value: E
|
|
6337
|
-
},
|
|
6337
|
+
}, ue.createElement(xl, {
|
|
6338
6338
|
context: Ci,
|
|
6339
6339
|
store: x
|
|
6340
6340
|
}, e.children));
|
|
@@ -6347,8 +6347,8 @@ function Rh() {
|
|
|
6347
6347
|
}
|
|
6348
6348
|
function kh(e) {
|
|
6349
6349
|
var t = Rh(), n = e.dragHandleUsageInstructions || jr.dragHandleUsageInstructions;
|
|
6350
|
-
return
|
|
6351
|
-
return
|
|
6350
|
+
return ue.createElement(nm, null, function(r) {
|
|
6351
|
+
return ue.createElement(Th, {
|
|
6352
6352
|
nonce: e.nonce,
|
|
6353
6353
|
contextId: t,
|
|
6354
6354
|
setCallbacks: r,
|
|
@@ -6387,7 +6387,7 @@ var Pi = function(t) {
|
|
|
6387
6387
|
overflowX: r.overflowX,
|
|
6388
6388
|
overflowY: r.overflowY
|
|
6389
6389
|
};
|
|
6390
|
-
return Fh(i, Mh) || process.env.NODE_ENV !== "production" &&
|
|
6390
|
+
return Fh(i, Mh) || process.env.NODE_ENV !== "production" && Ee(`
|
|
6391
6391
|
We have detected that your <body> element might be a scroll container.
|
|
6392
6392
|
We have found no reliable way of detecting whether the <body> element is a scroll container.
|
|
6393
6393
|
Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)
|
|
@@ -6402,7 +6402,7 @@ var Pi = function(t) {
|
|
|
6402
6402
|
}, $h = function(e) {
|
|
6403
6403
|
if (e) {
|
|
6404
6404
|
var t = yc(e.parentElement);
|
|
6405
|
-
t && process.env.NODE_ENV !== "production" &&
|
|
6405
|
+
t && process.env.NODE_ENV !== "production" && Ee(`
|
|
6406
6406
|
Droppable: unsupported nested scroll container detected.
|
|
6407
6407
|
A Droppable can only have one scroll parent (which can be itself)
|
|
6408
6408
|
Nested scroll containers are currently not supported.
|
|
@@ -6606,13 +6606,13 @@ function Kh(e) {
|
|
|
6606
6606
|
callbacks: x
|
|
6607
6607
|
};
|
|
6608
6608
|
}, [x, l, r]);
|
|
6609
|
-
|
|
6609
|
+
et(function() {
|
|
6610
6610
|
return c.current = N.descriptor, i.droppable.register(N), function() {
|
|
6611
|
-
t.current && (process.env.NODE_ENV !== "production" &&
|
|
6611
|
+
t.current && (process.env.NODE_ENV !== "production" && Ee("Unsupported: changing the droppableId or type of a Droppable during a drag"), b()), i.droppable.unregister(N);
|
|
6612
6612
|
};
|
|
6613
|
-
}, [x, l, b, N, o, i.droppable]),
|
|
6613
|
+
}, [x, l, b, N, o, i.droppable]), et(function() {
|
|
6614
6614
|
t.current && o.updateDroppableIsEnabled(c.current.id, !e.isDropDisabled);
|
|
6615
|
-
}, [e.isDropDisabled, o]),
|
|
6615
|
+
}, [e.isDropDisabled, o]), et(function() {
|
|
6616
6616
|
t.current && o.updateDroppableIsCombineEnabled(c.current.id, e.isCombineEnabled);
|
|
6617
6617
|
}, [e.isCombineEnabled, o]);
|
|
6618
6618
|
}
|
|
@@ -6666,14 +6666,14 @@ function Qh(e) {
|
|
|
6666
6666
|
animate: e.animate,
|
|
6667
6667
|
placeholder: e.placeholder
|
|
6668
6668
|
});
|
|
6669
|
-
return
|
|
6669
|
+
return ue.createElement(e.placeholder.tagName, {
|
|
6670
6670
|
style: p,
|
|
6671
6671
|
"data-rbd-placeholder-context-id": s,
|
|
6672
6672
|
onTransitionEnd: d,
|
|
6673
6673
|
ref: e.innerRef
|
|
6674
6674
|
});
|
|
6675
6675
|
}
|
|
6676
|
-
var Zh =
|
|
6676
|
+
var Zh = ue.memo(Qh), Ti = ue.createContext(null);
|
|
6677
6677
|
function wc(e) {
|
|
6678
6678
|
e && rr(e) || (process.env.NODE_ENV !== "production" ? D(!1, `
|
|
6679
6679
|
provided.innerRef has not been provided with a HTMLElement.
|
|
@@ -6703,7 +6703,7 @@ var eb = [function(t) {
|
|
|
6703
6703
|
var n = t.props, r = t.getPlaceholderRef;
|
|
6704
6704
|
if (n.placeholder) {
|
|
6705
6705
|
var i = r();
|
|
6706
|
-
i || process.env.NODE_ENV !== "production" &&
|
|
6706
|
+
i || process.env.NODE_ENV !== "production" && Ee(`
|
|
6707
6707
|
Droppable setup issue [droppableId: "` + n.droppableId + `"]:
|
|
6708
6708
|
DroppableProvided > placeholder could not be found.
|
|
6709
6709
|
|
|
@@ -6768,7 +6768,7 @@ var ab = function(e) {
|
|
|
6768
6768
|
};
|
|
6769
6769
|
return this.props.children(i);
|
|
6770
6770
|
}, t;
|
|
6771
|
-
}(
|
|
6771
|
+
}(ue.PureComponent), Qo = {
|
|
6772
6772
|
dragging: 5e3,
|
|
6773
6773
|
dropAnimating: 4500
|
|
6774
6774
|
}, ib = function(t, n) {
|
|
@@ -6839,11 +6839,11 @@ function pb(e) {
|
|
|
6839
6839
|
getDimension: u
|
|
6840
6840
|
};
|
|
6841
6841
|
}, [n, u, c, t]), p = ae(d), f = ae(!0);
|
|
6842
|
-
|
|
6842
|
+
et(function() {
|
|
6843
6843
|
return r.draggable.register(p.current), function() {
|
|
6844
6844
|
return r.draggable.unregister(p.current);
|
|
6845
6845
|
};
|
|
6846
|
-
}, [r.draggable]),
|
|
6846
|
+
}, [r.draggable]), et(function() {
|
|
6847
6847
|
if (f.current) {
|
|
6848
6848
|
f.current = !1;
|
|
6849
6849
|
return;
|
|
@@ -6980,7 +6980,7 @@ function xb() {
|
|
|
6980
6980
|
if (o.isDragging) {
|
|
6981
6981
|
if (o.critical.draggable.id !== s.draggableId)
|
|
6982
6982
|
return null;
|
|
6983
|
-
var l = o.current.client.offset, c = o.dimensions.draggables[s.draggableId], u =
|
|
6983
|
+
var l = o.current.client.offset, c = o.dimensions.draggables[s.draggableId], u = Ze(o.impact), d = bb(o.impact), p = o.forceShouldAnimate;
|
|
6984
6984
|
return n(e(l.x, l.y), o.movementMode, c, s.isClone, u, d, p);
|
|
6985
6985
|
}
|
|
6986
6986
|
if (o.phase === "DROP_ANIMATING") {
|
|
@@ -7090,11 +7090,11 @@ var jb = function() {
|
|
|
7090
7090
|
})(vb);
|
|
7091
7091
|
function Sc(e) {
|
|
7092
7092
|
var t = Ar(Ti), n = t.isUsingCloneFor;
|
|
7093
|
-
return n === e.draggableId && !e.isClone ? null :
|
|
7093
|
+
return n === e.draggableId && !e.isClone ? null : ue.createElement(Db, e);
|
|
7094
7094
|
}
|
|
7095
7095
|
function Sb(e) {
|
|
7096
7096
|
var t = typeof e.isDragDisabled == "boolean" ? !e.isDragDisabled : !0, n = !!e.disableInteractiveElementBlocking, r = !!e.shouldRespectForcePress;
|
|
7097
|
-
return
|
|
7097
|
+
return ue.createElement(Sc, oe({}, e, {
|
|
7098
7098
|
isClone: !1,
|
|
7099
7099
|
isEnabled: t,
|
|
7100
7100
|
canDragInteractiveElements: n,
|
|
@@ -7133,12 +7133,12 @@ function Cb(e) {
|
|
|
7133
7133
|
ignoreContainerClipping: p,
|
|
7134
7134
|
getDroppableRef: x
|
|
7135
7135
|
});
|
|
7136
|
-
var S =
|
|
7136
|
+
var S = ue.createElement(ab, {
|
|
7137
7137
|
on: e.placeholder,
|
|
7138
7138
|
shouldAnimate: e.shouldAnimatePlaceholder
|
|
7139
7139
|
}, function(M) {
|
|
7140
7140
|
var C = M.onClose, P = M.data, z = M.animate;
|
|
7141
|
-
return
|
|
7141
|
+
return ue.createElement(Zh, {
|
|
7142
7142
|
placeholder: P,
|
|
7143
7143
|
onClose: C,
|
|
7144
7144
|
innerRef: y,
|
|
@@ -7165,7 +7165,7 @@ function Cb(e) {
|
|
|
7165
7165
|
function T() {
|
|
7166
7166
|
if (!h)
|
|
7167
7167
|
return null;
|
|
7168
|
-
var M = h.dragging, C = h.render, P =
|
|
7168
|
+
var M = h.dragging, C = h.render, P = ue.createElement(Sc, {
|
|
7169
7169
|
draggableId: M.draggableId,
|
|
7170
7170
|
index: M.source.index,
|
|
7171
7171
|
isClone: !0,
|
|
@@ -7177,7 +7177,7 @@ function Cb(e) {
|
|
|
7177
7177
|
});
|
|
7178
7178
|
return Vn.createPortal(P, v());
|
|
7179
7179
|
}
|
|
7180
|
-
return
|
|
7180
|
+
return ue.createElement(Ti.Provider, {
|
|
7181
7181
|
value: O
|
|
7182
7182
|
}, s(E, g), T());
|
|
7183
7183
|
}
|
|
@@ -7248,7 +7248,7 @@ var ba = function(t, n) {
|
|
|
7248
7248
|
var m = l.critical;
|
|
7249
7249
|
if (!ba(d, m))
|
|
7250
7250
|
return n;
|
|
7251
|
-
var g = Zo(m, l.dimensions), h =
|
|
7251
|
+
var g = Zo(m, l.dimensions), h = Ze(l.impact) === u;
|
|
7252
7252
|
return i(u, p, h, h, g, f);
|
|
7253
7253
|
}
|
|
7254
7254
|
if (l.phase === "DROP_ANIMATING") {
|
|
@@ -7256,13 +7256,13 @@ var ba = function(t, n) {
|
|
|
7256
7256
|
if (!ba(d, b.critical))
|
|
7257
7257
|
return n;
|
|
7258
7258
|
var v = Zo(b.critical, l.dimensions);
|
|
7259
|
-
return i(u, p, Nc(b.result) === u,
|
|
7259
|
+
return i(u, p, Nc(b.result) === u, Ze(b.impact) === u, v, f);
|
|
7260
7260
|
}
|
|
7261
7261
|
if (l.phase === "IDLE" && l.completed && !l.shouldFlush) {
|
|
7262
7262
|
var x = l.completed;
|
|
7263
7263
|
if (!ba(d, x.critical))
|
|
7264
7264
|
return n;
|
|
7265
|
-
var N =
|
|
7265
|
+
var N = Ze(x.impact) === u, w = !!(x.impact.at && x.impact.at.type === "COMBINE"), y = x.critical.droppable.id === u;
|
|
7266
7266
|
return N ? w ? t : n : y ? t : n;
|
|
7267
7267
|
}
|
|
7268
7268
|
return n;
|
|
@@ -7330,7 +7330,7 @@ var Ec = function(e) {
|
|
|
7330
7330
|
return Pb ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), Vn.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
|
|
7331
7331
|
}
|
|
7332
7332
|
}]), t;
|
|
7333
|
-
}(
|
|
7333
|
+
}(ue.Component);
|
|
7334
7334
|
Ec.propTypes = {
|
|
7335
7335
|
children: ht.node.isRequired,
|
|
7336
7336
|
node: ht.any
|
|
@@ -7385,7 +7385,7 @@ var Ic = function(e) {
|
|
|
7385
7385
|
value: function(r) {
|
|
7386
7386
|
!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode));
|
|
7387
7387
|
var i = this.props.children;
|
|
7388
|
-
typeof this.props.children.type == "function" && (i =
|
|
7388
|
+
typeof this.props.children.type == "function" && (i = ue.cloneElement(this.props.children)), this.portal = Vn.unstable_renderSubtreeIntoContainer(this, i, this.props.node || this.defaultNode);
|
|
7389
7389
|
}
|
|
7390
7390
|
}, {
|
|
7391
7391
|
key: "render",
|
|
@@ -7393,7 +7393,7 @@ var Ic = function(e) {
|
|
|
7393
7393
|
return null;
|
|
7394
7394
|
}
|
|
7395
7395
|
}]), t;
|
|
7396
|
-
}(
|
|
7396
|
+
}(ue.Component);
|
|
7397
7397
|
Ic.propTypes = {
|
|
7398
7398
|
children: ht.node.isRequired,
|
|
7399
7399
|
node: ht.any
|
|
@@ -7629,7 +7629,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7629
7629
|
/* @__PURE__ */ a.jsx("div", { className: _("text-primary", Ut.stepIcon), children: n.icon ?? /* @__PURE__ */ a.jsx(Rd, {}) })
|
|
7630
7630
|
] }) })
|
|
7631
7631
|
] }, r)) }), wx = (e, t, n, r = !0) => {
|
|
7632
|
-
const i =
|
|
7632
|
+
const i = Xe({ silent: r, differentBaseUrl: t, customToken: n }), [o, s] = B(!1), [l, c] = B(null), u = R(async (d) => {
|
|
7633
7633
|
s(!0), c(null), i.get(e, {
|
|
7634
7634
|
signal: d,
|
|
7635
7635
|
responseType: "blob"
|
|
@@ -7670,7 +7670,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7670
7670
|
const p = ae(null);
|
|
7671
7671
|
return U(() => {
|
|
7672
7672
|
p.current && (p.current.indeterminate = u ?? !1);
|
|
7673
|
-
}, [p, u]), /* @__PURE__ */ a.jsx(e, { isForCheckInput: !0, hidden: i, label: t ?? "", withoutLabel: c, className: s, hint: d, disabled: o, children: /* @__PURE__ */ a.jsx(
|
|
7673
|
+
}, [p, u]), /* @__PURE__ */ a.jsx(e, { isForCheckInput: !0, hidden: i, label: t ?? "", withoutLabel: c, className: s, hint: d, disabled: o, children: /* @__PURE__ */ a.jsx(xe.Check, { ref: p, id: `check-${t}`, type: l ?? "checkbox", label: t ?? "", checked: n, onChange: (f) => {
|
|
7674
7674
|
var m;
|
|
7675
7675
|
r && r(((m = f.target) == null ? void 0 : m.checked) ?? !1);
|
|
7676
7676
|
}, className: s ?? "", hidden: i ?? !1, disabled: o ?? !1 }) });
|
|
@@ -7775,7 +7775,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7775
7775
|
}, [t]);
|
|
7776
7776
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7777
7777
|
/* @__PURE__ */ a.jsx(te, { onClick: s, disabled: e === null, className: n, children: /* @__PURE__ */ a.jsx(r, { icon: "qr-code" }) }),
|
|
7778
|
-
/* @__PURE__ */ a.jsx(
|
|
7778
|
+
/* @__PURE__ */ a.jsx(pe, { show: i, onHide: l, size: "sm", children: /* @__PURE__ */ a.jsxs(pe.Body, { className: "d-flex flex-column align-items-center", children: [
|
|
7779
7779
|
/* @__PURE__ */ a.jsx(Dx, { value: `${c}:${e}` }),
|
|
7780
7780
|
/* @__PURE__ */ a.jsx(L, { variant: "subtitle", children: e })
|
|
7781
7781
|
] }) })
|
|
@@ -7828,7 +7828,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7828
7828
|
] })
|
|
7829
7829
|
] })
|
|
7830
7830
|
] });
|
|
7831
|
-
}, iN = ({ value: e, label: t, InputContainer: n = en, className: r, withoutLabel: i, hidden: o, disabled: s, contactType: l, ...c }) => o ? null : /* @__PURE__ */ a.jsx(Oc, { contactType: l, value: e, withoutLabel: i, label: t, className: r, children: /* @__PURE__ */ a.jsx(
|
|
7831
|
+
}, iN = ({ value: e, label: t, InputContainer: n = en, className: r, withoutLabel: i, hidden: o, disabled: s, contactType: l, ...c }) => o ? null : /* @__PURE__ */ a.jsx(Oc, { contactType: l, value: e, withoutLabel: i, label: t, className: r, children: /* @__PURE__ */ a.jsx(Qe, { type: "text", value: e, disabled: s, InputContainer: n, size: "sm", withoutLabel: !0, ...c }) }), oN = ({ InputContainer: e = en, items: t, selectedItemNavigateTo: n, onSearchQueryChange: r, texts: i, isLoading: o, value: s, onSelect: l, label: c, withoutLabel: u, size: d, dropdownItemsNameWidth: p, additionalColumns: f, hidden: m, disabled: g, displayIdAsName: h, CustomOnChangeComponent: b, className: v, archiveColumn: x, icon: N, hint: w, addNewOptionPath: y, refreshOptions: j, MiniDetailComponent: S, miniDetailPlacement: E, suggestedItems: I, suggestedItemsTitle: O, customEllipsisOptions: T }) => {
|
|
7832
7832
|
const [M, C] = B(!1), P = R((W) => {
|
|
7833
7833
|
l && l(W);
|
|
7834
7834
|
}, [l]), z = R((W) => {
|
|
@@ -7841,7 +7841,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7841
7841
|
/* @__PURE__ */ a.jsxs(qa, { currentSelection: s, selectedItemNavigateTo: n, children: [
|
|
7842
7842
|
h && (s == null ? void 0 : s.name) && /* @__PURE__ */ a.jsx(L, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: s.name }),
|
|
7843
7843
|
/* @__PURE__ */ a.jsx(Ya, { value: (s == null ? void 0 : s.id) ?? null, MiniDetailComponent: S, miniDetailPlacement: E, children: /* @__PURE__ */ a.jsxs(
|
|
7844
|
-
|
|
7844
|
+
xe.Select,
|
|
7845
7845
|
{
|
|
7846
7846
|
ref: F,
|
|
7847
7847
|
size: d,
|
|
@@ -7897,7 +7897,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7897
7897
|
return U(() => {
|
|
7898
7898
|
N(t === null ? "" : t.toString());
|
|
7899
7899
|
}, [t]), /* @__PURE__ */ a.jsxs(e, { label: r ?? "", hidden: l, withoutLabel: d, className: g, isForTextAreaInput: !0, hint: h, disabled: c, children: [
|
|
7900
|
-
/* @__PURE__ */ a.jsx(
|
|
7900
|
+
/* @__PURE__ */ a.jsx(xe.Control, { as: "textarea", size: i, value: p ? x : t ?? "", onChange: y, hidden: l, disabled: c, rows: u ?? 2, className: "w-100", minLength: f, maxLength: m }),
|
|
7901
7901
|
o && t && n && !c && /* @__PURE__ */ a.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ a.jsx(te, { color: "secondary", size: "sm", onClick: b, children: /* @__PURE__ */ a.jsx(Bt, {}) }) })
|
|
7902
7902
|
] });
|
|
7903
7903
|
}, lN = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, label: i, withoutLabel: o, placeholder: s, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: p, className: f, step: m, stepperStep: g = 1, min: h, max: b, hint: v }) => {
|
|
@@ -7923,7 +7923,7 @@ const _c = ({ src: e, alt: t, baseUrl: n, customToken: r, placeholder: i, render
|
|
|
7923
7923
|
return U(() => {
|
|
7924
7924
|
y(t === null ? "" : kn(t, h, b).toString());
|
|
7925
7925
|
}, [b, h, t]), /* @__PURE__ */ a.jsx(e, { withoutLabel: o, label: i ?? "", hidden: c, hint: v, className: f, disabled: u, children: /* @__PURE__ */ a.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
7926
|
-
/* @__PURE__ */ a.jsx(
|
|
7926
|
+
/* @__PURE__ */ a.jsx(xe.Control, { type: "number", placeholder: s ?? i, size: l, value: r ? w : t ?? "", onChange: S, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: u ?? !1, step: m }),
|
|
7927
7927
|
/* @__PURE__ */ a.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ a.jsx(te, { size: "sm", onClick: (E) => {
|
|
7928
7928
|
E.preventDefault(), E.stopPropagation(), j(((t ?? 0) - g).toString());
|
|
7929
7929
|
}, children: /* @__PURE__ */ a.jsx(Vs, {}) }) }),
|
|
@@ -8218,17 +8218,17 @@ function qx(e) {
|
|
|
8218
8218
|
}, K = function(Y, G, ie) {
|
|
8219
8219
|
return is(Y, G, x(Y), ie);
|
|
8220
8220
|
}, Z = function(Y, G, ie) {
|
|
8221
|
-
var ge = x(G),
|
|
8222
|
-
return
|
|
8221
|
+
var ge = x(G), _e = Ux(G, E, Y, ie, ge, N, w);
|
|
8222
|
+
return _e = is(G, _e, ge), _e;
|
|
8223
8223
|
}, ne = function(Y) {
|
|
8224
8224
|
var G = Y.formattedValue;
|
|
8225
8225
|
G === void 0 && (G = "");
|
|
8226
|
-
var ie = Y.input, ge = Y.source,
|
|
8226
|
+
var ie = Y.input, ge = Y.source, _e = Y.event, ye = Y.numAsString, fe;
|
|
8227
8227
|
if (ie) {
|
|
8228
8228
|
var Ve = Y.inputValue || ie.value, ot = ya(ie);
|
|
8229
8229
|
ie.value = G, fe = Z(Ve, G, ot), fe !== void 0 && A(ie, fe, G);
|
|
8230
8230
|
}
|
|
8231
|
-
G !== E && C(W(G,
|
|
8231
|
+
G !== E && C(W(G, ye), { event: _e, source: ge });
|
|
8232
8232
|
};
|
|
8233
8233
|
U(function() {
|
|
8234
8234
|
var Y = M.current, G = Y.formattedValue, ie = Y.numAsString;
|
|
@@ -8246,7 +8246,7 @@ function qx(e) {
|
|
|
8246
8246
|
}
|
|
8247
8247
|
}, [E]);
|
|
8248
8248
|
var J = function(Y, G, ie) {
|
|
8249
|
-
var ge = G.target,
|
|
8249
|
+
var ge = G.target, _e = T.current ? Mx(T.current, ge.selectionEnd) : Bc(E, Y), ye = Object.assign(Object.assign({}, _e), { lastValue: E }), fe = l(Y, ye), Ve = H(fe);
|
|
8250
8250
|
if (fe = l(Ve, void 0), p && !p(W(Ve, fe))) {
|
|
8251
8251
|
var ot = G.target, st = ya(ot), on = Z(Y, E, st);
|
|
8252
8252
|
return ot.value = E, A(ot, on, E), !1;
|
|
@@ -8263,33 +8263,33 @@ function qx(e) {
|
|
|
8263
8263
|
G === void 0 && (G = 0);
|
|
8264
8264
|
var ie = Y.selectionStart, ge = Y.selectionEnd;
|
|
8265
8265
|
T.current = { selectionStart: ie, selectionEnd: ge + G };
|
|
8266
|
-
},
|
|
8266
|
+
}, Ie = function(Y) {
|
|
8267
8267
|
var G = Y.target, ie = G.value, ge = J(ie, Y, Jn.event);
|
|
8268
8268
|
ge && f(Y), T.current = void 0;
|
|
8269
8269
|
}, me = function(Y) {
|
|
8270
|
-
var G = Y.target, ie = Y.key, ge = G.selectionStart,
|
|
8271
|
-
|
|
8270
|
+
var G = Y.target, ie = Y.key, ge = G.selectionStart, _e = G.selectionEnd, ye = G.value;
|
|
8271
|
+
ye === void 0 && (ye = "");
|
|
8272
8272
|
var fe;
|
|
8273
|
-
ie === "ArrowLeft" || ie === "Backspace" ? fe = Math.max(ge - 1, 0) : ie === "ArrowRight" ? fe = Math.min(ge + 1,
|
|
8273
|
+
ie === "ArrowLeft" || ie === "Backspace" ? fe = Math.max(ge - 1, 0) : ie === "ArrowRight" ? fe = Math.min(ge + 1, ye.length) : ie === "Delete" && (fe = ge);
|
|
8274
8274
|
var Ve = 0;
|
|
8275
|
-
ie === "Delete" && ge ===
|
|
8275
|
+
ie === "Delete" && ge === _e && (Ve = 1);
|
|
8276
8276
|
var ot = ie === "ArrowLeft" || ie === "ArrowRight";
|
|
8277
|
-
if (fe === void 0 || ge !==
|
|
8277
|
+
if (fe === void 0 || ge !== _e && !ot) {
|
|
8278
8278
|
m(Y), le(G, Ve);
|
|
8279
8279
|
return;
|
|
8280
8280
|
}
|
|
8281
8281
|
var st = fe;
|
|
8282
8282
|
if (ot) {
|
|
8283
8283
|
var on = ie === "ArrowLeft" ? "left" : "right";
|
|
8284
|
-
st = K(
|
|
8285
|
-
} else ie === "Delete" && !N(
|
|
8286
|
-
st !== fe && A(G, st,
|
|
8284
|
+
st = K(ye, fe, on), st !== fe && Y.preventDefault();
|
|
8285
|
+
} else ie === "Delete" && !N(ye[fe]) ? st = K(ye, fe, "right") : ie === "Backspace" && !N(ye[fe]) && (st = K(ye, fe, "left"));
|
|
8286
|
+
st !== fe && A(G, st, ye), m(Y), le(G, Ve);
|
|
8287
8287
|
}, Q = function(Y) {
|
|
8288
8288
|
var G = Y.target, ie = function() {
|
|
8289
|
-
var ge = G.selectionStart,
|
|
8290
|
-
if (
|
|
8291
|
-
var fe = K(
|
|
8292
|
-
fe !== ge && A(G, fe,
|
|
8289
|
+
var ge = G.selectionStart, _e = G.selectionEnd, ye = G.value;
|
|
8290
|
+
if (ye === void 0 && (ye = ""), ge === _e) {
|
|
8291
|
+
var fe = K(ye, ge);
|
|
8292
|
+
fe !== ge && A(G, fe, ye);
|
|
8293
8293
|
}
|
|
8294
8294
|
};
|
|
8295
8295
|
ie(), requestAnimationFrame(function() {
|
|
@@ -8299,29 +8299,29 @@ function qx(e) {
|
|
|
8299
8299
|
Y.persist && Y.persist();
|
|
8300
8300
|
var G = Y.target, ie = Y.currentTarget;
|
|
8301
8301
|
V.current = G, q.current.focusTimeout = setTimeout(function() {
|
|
8302
|
-
var ge = G.selectionStart,
|
|
8303
|
-
|
|
8304
|
-
var fe = K(
|
|
8305
|
-
fe !== ge && !(ge === 0 &&
|
|
8302
|
+
var ge = G.selectionStart, _e = G.selectionEnd, ye = G.value;
|
|
8303
|
+
ye === void 0 && (ye = "");
|
|
8304
|
+
var fe = K(ye, ge);
|
|
8305
|
+
fe !== ge && !(ge === 0 && _e === ye.length) && A(G, fe, ye), h(Object.assign(Object.assign({}, Y), { currentTarget: ie }));
|
|
8306
8306
|
}, 0);
|
|
8307
|
-
},
|
|
8307
|
+
}, de = function(Y) {
|
|
8308
8308
|
V.current = null, clearTimeout(q.current.focusTimeout), clearTimeout(q.current.setCaretTimeout), b(Y);
|
|
8309
8309
|
}, Pe = z && Vx() ? "numeric" : void 0, tt = Object.assign({ inputMode: Pe }, y, {
|
|
8310
8310
|
type: t,
|
|
8311
8311
|
value: E,
|
|
8312
|
-
onChange:
|
|
8312
|
+
onChange: Ie,
|
|
8313
8313
|
onKeyDown: me,
|
|
8314
8314
|
onMouseUp: Q,
|
|
8315
8315
|
onFocus: re,
|
|
8316
|
-
onBlur:
|
|
8316
|
+
onBlur: de
|
|
8317
8317
|
});
|
|
8318
8318
|
if (n === "text")
|
|
8319
|
-
return i ?
|
|
8319
|
+
return i ? ue.createElement(ue.Fragment, null, i(E, y) || null) : ue.createElement("span", Object.assign({}, y, { ref: o }), E);
|
|
8320
8320
|
if (r) {
|
|
8321
8321
|
var yt = r;
|
|
8322
|
-
return
|
|
8322
|
+
return ue.createElement(yt, Object.assign({}, tt, { ref: o }));
|
|
8323
8323
|
}
|
|
8324
|
-
return
|
|
8324
|
+
return ue.createElement("input", Object.assign({}, tt, { ref: o }));
|
|
8325
8325
|
}
|
|
8326
8326
|
function os(e, t) {
|
|
8327
8327
|
var n = t.decimalScale, r = t.fixedDecimalScale, i = t.prefix;
|
|
@@ -8485,7 +8485,7 @@ function ey(e) {
|
|
|
8485
8485
|
}
|
|
8486
8486
|
function Ri(e) {
|
|
8487
8487
|
var t = ey(e);
|
|
8488
|
-
return
|
|
8488
|
+
return ue.createElement(qx, Object.assign({}, t));
|
|
8489
8489
|
}
|
|
8490
8490
|
const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, label: i, withoutLabel: o, placeholder: s, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: p, className: f, step: m, noSelectOnFocus: g, decimalScale: h, fixedDecimalScale: b = !1, numberPrefix: v, numberSuffix: x, min: N, max: w, hint: y }) => {
|
|
8491
8491
|
const j = R(() => {
|
|
@@ -8525,7 +8525,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
8525
8525
|
const c = R((u) => {
|
|
8526
8526
|
l && l(u.target.value);
|
|
8527
8527
|
}, [l]);
|
|
8528
|
-
return /* @__PURE__ */ a.jsx(e, { isForRadioInput: !0, hidden: i, withoutLabel: !t, label: `${t}`, className: o, disabled: r, children: n.map((u) => /* @__PURE__ */ a.jsx(
|
|
8528
|
+
return /* @__PURE__ */ a.jsx(e, { isForRadioInput: !0, hidden: i, withoutLabel: !t, label: `${t}`, className: o, disabled: r, children: n.map((u) => /* @__PURE__ */ a.jsx(xe.Check, { id: `radio-${u.id}`, label: u.name, type: "radio", value: u.id ?? "", checked: s === u.id, onChange: c, hidden: i, disabled: r, className: "w-100" }, u.id)) });
|
|
8529
8529
|
}, ss = [
|
|
8530
8530
|
["D", "day"],
|
|
8531
8531
|
// ['W', 'week'],
|
|
@@ -8626,9 +8626,9 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
8626
8626
|
c(-1);
|
|
8627
8627
|
}, children: /* @__PURE__ */ a.jsx(o, { icon: "chevron-left" }) }),
|
|
8628
8628
|
/* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
8629
|
-
/* @__PURE__ */ a.jsx(
|
|
8629
|
+
/* @__PURE__ */ a.jsx(Qe, { type: "date", value: e.from, onChange: (m) => d("from", m === null ? null : m.toString()), InputContainer: ct, size: r }),
|
|
8630
8630
|
/* @__PURE__ */ a.jsx(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { text: i[ss.find((m) => m[0] === s)[1]].substring(0, 1), as: Md }), children: ss.map((m) => /* @__PURE__ */ a.jsx(Ye, { disabled: m[0] === s, className: _(m[0] === s ? "text-black-50" : ""), onClick: () => u(m[0]), role: "button", children: i[m[1]] }, m[0])) }),
|
|
8631
|
-
/* @__PURE__ */ a.jsx(
|
|
8631
|
+
/* @__PURE__ */ a.jsx(Qe, { type: "date", value: e.to, onChange: (m) => d("to", m === null ? null : m.toString()), InputContainer: ct, size: r })
|
|
8632
8632
|
] }) }),
|
|
8633
8633
|
/* @__PURE__ */ a.jsx(te, { disabled: p, onClick: () => {
|
|
8634
8634
|
c(1);
|
|
@@ -8827,7 +8827,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
8827
8827
|
}
|
|
8828
8828
|
n[r] = { value: i, defaultValue: i };
|
|
8829
8829
|
}), n;
|
|
8830
|
-
}, uy = "_table_1klfy_1", py = "_table-header_1klfy_10", fy = "_table-row_1klfy_10", my = "_table-head_1klfy_10", gy = "_filters-row_1klfy_19", vy = "_table-body_1klfy_30", hy = "_table-cell_1klfy_30", by = "_action-column_1klfy_43", xy = "_sticky-top_1klfy_47", yy = "_sticky-first_1klfy_54", wy = "_sticky-last_1klfy_61", jy = "_sticky-bottom_1klfy_68",
|
|
8830
|
+
}, uy = "_table_1klfy_1", py = "_table-header_1klfy_10", fy = "_table-row_1klfy_10", my = "_table-head_1klfy_10", gy = "_filters-row_1klfy_19", vy = "_table-body_1klfy_30", hy = "_table-cell_1klfy_30", by = "_action-column_1klfy_43", xy = "_sticky-top_1klfy_47", yy = "_sticky-first_1klfy_54", wy = "_sticky-last_1klfy_61", jy = "_sticky-bottom_1klfy_68", Ce = {
|
|
8831
8831
|
table: uy,
|
|
8832
8832
|
"table-header": "_table-header_1klfy_10",
|
|
8833
8833
|
tableHeader: py,
|
|
@@ -8904,8 +8904,8 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
8904
8904
|
top: (x = f.current) == null ? void 0 : x.getBoundingClientRect().bottom,
|
|
8905
8905
|
maxWidth: `max(300px, ${(N = f.current) == null ? void 0 : N.getBoundingClientRect().width}px)`
|
|
8906
8906
|
}, children: [
|
|
8907
|
-
p.length >= ds ? /* @__PURE__ */ a.jsx(In.Item, { className: _("rounded", ln.dropdownItem, ln.searchItem), children: /* @__PURE__ */ a.jsx(
|
|
8908
|
-
p.filter((w) => w.specialOption ? !0 : l ? qe(w.value, l) : !0).map((w) => /* @__PURE__ */ a.jsx(In.Item, { onClick: () => !n && d(w.value, w.specialOption), disabled: n, className: _("rounded", ln.dropdownItem, { [ln.specialOption]: w.specialOption }, { "text-muted": n }), children: /* @__PURE__ */ a.jsx(
|
|
8907
|
+
p.length >= ds ? /* @__PURE__ */ a.jsx(In.Item, { className: _("rounded", ln.dropdownItem, ln.searchItem), children: /* @__PURE__ */ a.jsx(xe.Control, { ref: m, type: "search", size: "sm", value: l, onChange: (w) => c(w.target.value ?? ""), className: "w-100" }) }) : null,
|
|
8908
|
+
p.filter((w) => w.specialOption ? !0 : l ? qe(w.value, l) : !0).map((w) => /* @__PURE__ */ a.jsx(In.Item, { onClick: () => !n && d(w.value, w.specialOption), disabled: n, className: _("rounded", ln.dropdownItem, { [ln.specialOption]: w.specialOption }, { "text-muted": n }), children: /* @__PURE__ */ a.jsx(xe.Check, { disabled: n, label: w.label, checked: w.specialOption ? u.length === w.value.split(o).length && u.every((y) => w.value.split(o).includes(y)) : u.includes(w.value), onChange: () => {
|
|
8909
8909
|
} }) }, w.value))
|
|
8910
8910
|
] })
|
|
8911
8911
|
] });
|
|
@@ -8914,15 +8914,15 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
8914
8914
|
const h = g || i ? !0 : r ? !o : !1;
|
|
8915
8915
|
switch (e) {
|
|
8916
8916
|
case "NUM":
|
|
8917
|
-
return s && s.length > 0 ? f ? /* @__PURE__ */ a.jsx(us, { field: n, value: (t == null ? void 0 : t.toString()) ?? "", separator: m ?? ",", onChangeHandler: (v) => c(n, v), valuesForSelect: s, disabled: h }) : /* @__PURE__ */ a.jsx(ft, { withoutLabel: !0, InputContainer: ct, className: jt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(n, v === null ? null : Number(v)), options: s, disabled: h, showClearIcon: !u, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ a.jsx(
|
|
8917
|
+
return s && s.length > 0 ? f ? /* @__PURE__ */ a.jsx(us, { field: n, value: (t == null ? void 0 : t.toString()) ?? "", separator: m ?? ",", onChangeHandler: (v) => c(n, v), valuesForSelect: s, disabled: h }) : /* @__PURE__ */ a.jsx(ft, { withoutLabel: !0, InputContainer: ct, className: jt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(n, v === null ? null : Number(v)), options: s, disabled: h, showClearIcon: !u, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ a.jsx(Qe, { withoutLabel: !0, InputContainer: ct, className: jt.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (v) => c(n, v === null ? null : Number(v)), disabled: h, showClearIcon: !u, clearValue: d });
|
|
8918
8918
|
case "STR":
|
|
8919
8919
|
return s && s.length > 0 ? f ? /* @__PURE__ */ a.jsx(us, { field: n, value: (t == null ? void 0 : t.toString()) ?? "", separator: m ?? ",", onChangeHandler: (v) => {
|
|
8920
8920
|
c(n, v);
|
|
8921
|
-
}, valuesForSelect: s, disabled: h }) : /* @__PURE__ */ a.jsx(ft, { withoutLabel: !0, InputContainer: ct, className: jt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(n, (v == null ? void 0 : v.toString()) ?? null), options: s, disabled: h, showClearIcon: !u, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ a.jsx(
|
|
8921
|
+
}, valuesForSelect: s, disabled: h }) : /* @__PURE__ */ a.jsx(ft, { withoutLabel: !0, InputContainer: ct, className: jt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(n, (v == null ? void 0 : v.toString()) ?? null), options: s, disabled: h, showClearIcon: !u, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ a.jsx(Qe, { withoutLabel: !0, InputContainer: ct, className: _(jt.input, jt.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(n, (v == null ? void 0 : v.toString()) ?? null), disabled: h, showClearIcon: !u, clearValue: d });
|
|
8922
8922
|
case "BIT":
|
|
8923
8923
|
return /* @__PURE__ */ a.jsx(Xn, { InputContainer: ct, className: jt.input, value: t === !0, onChange: (v) => c(n, v), disabled: h });
|
|
8924
8924
|
case "DT":
|
|
8925
|
-
return /* @__PURE__ */ a.jsx(
|
|
8925
|
+
return /* @__PURE__ */ a.jsx(Qe, { withoutLabel: !0, InputContainer: ct, className: jt.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (v) => c(n, (v == null ? void 0 : v.toString()) ?? null), disabled: h, showClearIcon: !u, clearValue: d });
|
|
8926
8926
|
default: {
|
|
8927
8927
|
const v = p == null ? void 0 : p.find((x) => x.type === e);
|
|
8928
8928
|
return v ? /* @__PURE__ */ a.jsx(v.picker, { className: _(jt.input, jt.longer), value: t ? {
|
|
@@ -8958,15 +8958,15 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
8958
8958
|
}, []), f = (g) => (g == null ? void 0 : g.value) !== (g == null ? void 0 : g.defaultValue), m = R(() => Object.keys(u).some((g) => f(u[g])), [u]);
|
|
8959
8959
|
return U(() => {
|
|
8960
8960
|
d(r);
|
|
8961
|
-
}, [r]), /* @__PURE__ */ a.jsxs("tr", { className: _("table-row",
|
|
8962
|
-
e.userCanModify && /* @__PURE__ */ a.jsx("td", { className: _("table-cell",
|
|
8961
|
+
}, [r]), /* @__PURE__ */ a.jsxs("tr", { className: _("table-row", Ce.tableRow), children: [
|
|
8962
|
+
e.userCanModify && /* @__PURE__ */ a.jsx("td", { className: _("table-cell", Ce.tableCell, Ce.stickyFirst), children: m() && /* @__PURE__ */ a.jsx(te, { color: "success", onClick: () => i(Mc(u)), children: /* @__PURE__ */ a.jsx(c, { icon: "check" }) }) }),
|
|
8963
8963
|
t.map((g) => {
|
|
8964
8964
|
var h, b;
|
|
8965
|
-
return /* @__PURE__ */ a.jsx("td", { className: _("table-cell",
|
|
8965
|
+
return /* @__PURE__ */ a.jsx("td", { className: _("table-cell", Ce.tableCell), children: /* @__PURE__ */ a.jsx(Fc, { type: g.type, value: (h = u[g.field ?? ""]) == null ? void 0 : h.value, field: g.field, isReadonly: g.readOnly, isPrimary: e.primaryKey === g.field, valuesForSelect: g.valuesForSelect, addValueToValuesForSelect: (v) => {
|
|
8966
8966
|
n(t.map((x) => x.field === g.field ? { ...x, valuesForSelect: [...x.valuesForSelect ?? [], v] } : x));
|
|
8967
8967
|
}, onChangeHandler: p, hideClearIcon: !f(u[g.field ?? ""]), clearValue: (b = u[g.field ?? ""].defaultValue) == null ? void 0 : b.toString(), customPickers: s, isMultiChoice: g.multiChoice ?? !1, multiChoiceSeparator: g.multiChoiceSeparator ?? null, disabled: !e.userCanModify }) }, `${e.id}-${g.field}`);
|
|
8968
8968
|
}),
|
|
8969
|
-
/* @__PURE__ */ a.jsxs("td", { className: _("table-cell d-flex gap-1",
|
|
8969
|
+
/* @__PURE__ */ a.jsxs("td", { className: _("table-cell d-flex gap-1", Ce.tableCell, Ce.stickyLast), children: [
|
|
8970
8970
|
e != null && e.slaves && e.slaves.length > 0 ? e.slaves.map((g, h) => {
|
|
8971
8971
|
var b, v;
|
|
8972
8972
|
return /* @__PURE__ */ a.jsx(te, { as: "link", href: `${vn(l, { id: (b = g.id) == null ? void 0 : b.toString() })}?type=dynamic-form&masterId=${(v = u.id) == null ? void 0 : v.value}`, children: /* @__PURE__ */ a.jsx(ze, { text: g.name ?? "", placement: "left", children: /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsxs(L, { variant: "body", className: "d-flex align-items-center text-primary", children: [
|
|
@@ -9050,7 +9050,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9050
9050
|
return 100;
|
|
9051
9051
|
}
|
|
9052
9052
|
}, [e.type, e.valuesForSelect]);
|
|
9053
|
-
return /* @__PURE__ */ a.jsxs("th", { ref: o, className: _("table-head",
|
|
9053
|
+
return /* @__PURE__ */ a.jsxs("th", { ref: o, className: _("table-head", Ce.tableHead), onClick: () => {
|
|
9054
9054
|
const l = t === e.field ? n : null;
|
|
9055
9055
|
if (l === "asc") {
|
|
9056
9056
|
r(e.field, "desc");
|
|
@@ -9088,23 +9088,23 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9088
9088
|
};
|
|
9089
9089
|
})) ?? []
|
|
9090
9090
|
]);
|
|
9091
|
-
}, [e, d]), /* @__PURE__ */ a.jsxs("table", { id: `dynamic-table-${e.id}`, className: _("table table-borderless luminus-df-table",
|
|
9092
|
-
/* @__PURE__ */ a.jsxs("thead", { className: _("text-nowrap table-header",
|
|
9093
|
-
/* @__PURE__ */ a.jsxs("tr", { className: _("table-row",
|
|
9094
|
-
e.userCanModify && /* @__PURE__ */ a.jsx("th", { className: _("table-head",
|
|
9091
|
+
}, [e, d]), /* @__PURE__ */ a.jsxs("table", { id: `dynamic-table-${e.id}`, className: _("table table-borderless luminus-df-table", Ce.table), children: [
|
|
9092
|
+
/* @__PURE__ */ a.jsxs("thead", { className: _("text-nowrap table-header", Ce.stickyTop, Ce.tableHeader), children: [
|
|
9093
|
+
/* @__PURE__ */ a.jsxs("tr", { className: _("table-row", Ce.tableRow), children: [
|
|
9094
|
+
e.userCanModify && /* @__PURE__ */ a.jsx("th", { className: _("table-head", Ce.tableHead, Ce.actionColumn, Ce.stickyFirst) }),
|
|
9095
9095
|
g.map((b) => /* @__PURE__ */ a.jsx(ky, { column: b, sortByField: l, sortByType: c, setSortBy: u }, `${e.id}-${b.field}`)),
|
|
9096
|
-
/* @__PURE__ */ a.jsx("th", { className: _("table-head",
|
|
9096
|
+
/* @__PURE__ */ a.jsx("th", { className: _("table-head", Ce.tableHead, Ce.actionColumn, Ce.stickyLast) })
|
|
9097
9097
|
] }),
|
|
9098
|
-
/* @__PURE__ */ a.jsxs("tr", { className: _("table-row filters-row",
|
|
9099
|
-
e.userCanModify && /* @__PURE__ */ a.jsx("th", { className: _("table-head",
|
|
9100
|
-
g.map((b) => /* @__PURE__ */ a.jsx("th", { className: _("table-head",
|
|
9098
|
+
/* @__PURE__ */ a.jsxs("tr", { className: _("table-row filters-row", Ce.tableRow, Ce.filtersRow), children: [
|
|
9099
|
+
e.userCanModify && /* @__PURE__ */ a.jsx("th", { className: _("table-head", Ce.tableHead, Ce.actionColumn, Ce.stickyFirst) }),
|
|
9100
|
+
g.map((b) => /* @__PURE__ */ a.jsx("th", { className: _("table-head", Ce.tableHead), children: b.valuesForSelect && b.valuesForSelect.length > 0 || b.type === "BIT" ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(ft, { InputContainer: ct, withoutLabel: !0, size: "sm", value: o[b.field] ?? "", onChange: (v) => s(b.field, (v == null ? void 0 : v.toString()) ?? null), options: b.type === "BIT" ? [
|
|
9101
9101
|
{ id: 1, name: m.yes },
|
|
9102
9102
|
{ id: 0, name: m.no }
|
|
9103
|
-
] : b.valuesForSelect ?? [], isNumber: b.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
9104
|
-
/* @__PURE__ */ a.jsx("th", { className: _("table-head",
|
|
9103
|
+
] : b.valuesForSelect ?? [], isNumber: b.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(Qe, { InputContainer: ct, withoutLabel: !0, size: "sm", type: b.type === "NUM" ? "number" : b.type === "DT" ? "date" : "text", value: o[b.field] ?? "", onChange: (v) => s(b.field, (v == null ? void 0 : v.toString()) ?? null) }) }) }, `${e.id}-${b.field}`)),
|
|
9104
|
+
/* @__PURE__ */ a.jsx("th", { className: _("table-head", Ce.tableHead, Ce.actionColumn, Ce.stickyLast) })
|
|
9105
9105
|
] })
|
|
9106
9106
|
] }),
|
|
9107
|
-
/* @__PURE__ */ a.jsxs("tbody", { className: _("table-body",
|
|
9107
|
+
/* @__PURE__ */ a.jsxs("tbody", { className: _("table-body", Ce.tableBody), children: [
|
|
9108
9108
|
t.filter((b) => b[e.primaryKey ?? ""]).map((b) => /* @__PURE__ */ a.jsx(Iy, { schema: e, columns: g, setColumns: h, initialItem: b, onEdit: n, onDelete: r, customPickers: p, appDetail: f }, `${e.id}-${b[e.primaryKey ?? ""].value}`)),
|
|
9109
9109
|
/* @__PURE__ */ a.jsx(_y, { schema: e, columns: g, setColumns: h, onCreate: i, customPickers: p })
|
|
9110
9110
|
] })
|
|
@@ -9122,87 +9122,109 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9122
9122
|
apiExportGet: "/dynamicForms/export"
|
|
9123
9123
|
}, mN = ({ id: e, page: t, setPage: n, filters: r, setFilter: i, sortByField: o, sortByType: s, setSortBy: l, appUrls: { appDetail: c = fs.appDetail } = fs, apiUrls: { apiSchemaGet: u = Ht.apiSchemaGet, apiDataGet: d = Ht.apiDataGet, apiItemPost: p = Ht.apiItemPost, apiItemDelete: f = Ht.apiItemDelete, apiItemCreate: m = Ht.apiItemCreate, apiExportGet: g = Ht.apiExportGet } = Ht, customPickers: h }) => {
|
|
9124
9124
|
var Ve, ot, st, on, Bi, Li, Mi;
|
|
9125
|
-
const { texts: { dynamicForms: b }, ProjectIconComponent: v } = $(X), x =
|
|
9125
|
+
const { texts: { dynamicForms: b }, ProjectIconComponent: v } = $(X), x = Xe(), { startLoading: N, stopLoading: w } = $(xt), [y, j] = B(null), [S, E] = B(null), [I, O] = B(null), [T, M] = B(null), [C, P] = B(!1), { addNotification: z } = tn(), [F, V] = B([]), { confirm: q } = Dt(), H = 20, W = H + 1, A = T ? Math.ceil(T.length / H) : 1, K = t ? t > 1 : !1, Z = t ? t < A : !1, ne = t ? (t - 1) * H : 0, ve = t ? t * H : H, se = k(() => T ? T.length > W : !1, [T, W]), J = k(() => se ? (T == null ? void 0 : T.slice(ne, ve)) ?? null : T ?? null, [se, T, ne, ve]), [le, Ie] = Jt("masterId", null, "string"), [me, Q] = B(le);
|
|
9126
9126
|
U(() => {
|
|
9127
9127
|
j(null), E(null), P(!1), V([]);
|
|
9128
9128
|
}, [e]), U(() => {
|
|
9129
|
-
le !== null && (Q(le),
|
|
9130
|
-
}, [le, e,
|
|
9129
|
+
le !== null && (Q(le), Ie(null));
|
|
9130
|
+
}, [le, e, Ie]);
|
|
9131
9131
|
const re = R(async () => {
|
|
9132
9132
|
N("dynamicFormSchema"), await x.get(`${u}?id=${e}`).then(({ data: ce }) => {
|
|
9133
9133
|
j(ce), w("dynamicFormSchema");
|
|
9134
9134
|
}).catch(() => w("dynamicFormSchema"));
|
|
9135
|
-
}, [x, e, N, w, u]),
|
|
9135
|
+
}, [x, e, N, w, u]), de = R(async () => {
|
|
9136
9136
|
var ce;
|
|
9137
9137
|
if (!(y === null || ((ce = y.id) == null ? void 0 : ce.toString()) !== e)) {
|
|
9138
9138
|
if (y.masterReference && !me) {
|
|
9139
9139
|
E([]);
|
|
9140
9140
|
return;
|
|
9141
9141
|
}
|
|
9142
|
-
N("dynamicFormData"), await x.get(`${d}?id=${e}&showArchive=${C}${y.masterReference ? `&master=${me}` : ""}`).then(({ data:
|
|
9143
|
-
const
|
|
9144
|
-
var
|
|
9145
|
-
return Object.fromEntries(((
|
|
9142
|
+
N("dynamicFormData"), await x.get(`${d}?id=${e}&showArchive=${C}${y.masterReference ? `&master=${me}` : ""}`).then(({ data: be }) => {
|
|
9143
|
+
const we = be.map((je) => {
|
|
9144
|
+
var Se;
|
|
9145
|
+
return Object.fromEntries(((Se = y.columns) == null ? void 0 : Se.filter((ke) => ke.field).map((ke) => [
|
|
9146
9146
|
ke.field,
|
|
9147
|
-
{ value:
|
|
9147
|
+
{ value: je[ke.field ?? ""], defaultValue: je[ke.field ?? ""] }
|
|
9148
9148
|
])) ?? []);
|
|
9149
9149
|
});
|
|
9150
|
-
E(
|
|
9150
|
+
E(we), w("dynamicFormData");
|
|
9151
9151
|
}).catch(() => w("dynamicFormData"));
|
|
9152
9152
|
}
|
|
9153
9153
|
}, [x, e, y, N, w, C, me, d]), Pe = R(async () => {
|
|
9154
9154
|
var ce;
|
|
9155
9155
|
y === null || ((ce = y.id) == null ? void 0 : ce.toString()) !== e || y.masterReference && !me || (N("dynamicFormExport"), await x.get(`${g}?id=${e}&showArchive=${C}${y.masterReference ? `&master=${me}` : ""}`, {
|
|
9156
9156
|
responseType: "blob"
|
|
9157
|
-
}).then((
|
|
9158
|
-
}, [x, e, y, N, w, C, me, g]), tt = R(async (ce) => (N("dynamicFormEdit"), x.post(`${p}?id=${e}`, ce).then(() => (w("dynamicFormEdit"), V([]),
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9157
|
+
}).then((be) => Gd(be, { fallbackName: `export-${e}` })).finally(() => w("dynamicFormExport")));
|
|
9158
|
+
}, [x, e, y, N, w, C, me, g]), tt = R(async (ce) => (N("dynamicFormEdit"), x.post(`${p}?id=${e}`, ce).then(({ data: be }) => (w("dynamicFormEdit"), V([]), be)).catch((be) => (w("dynamicFormEdit"), V(Jr(be.response.data)), null))), [x, e, N, w, p]), yt = R(async (ce) => (N("dynamicFormDelete"), x.delete(`${f}?id=${e}&pk=${ce}`).then(({ data: be }) => (w("dynamicFormDelete"), V([]), be)).catch((be) => (w("dynamicFormDelete"), V(Jr(be.response.data)), null))), [x, e, N, w, f]), Y = R(async (ce) => (N("dynamicFormCreate"), x.post(`${m}?id=${e}`, ce).then(({ data: be }) => (w("dynamicFormCreate"), V([]), be)).catch((be) => (w("dynamicFormCreate"), V(Jr(be.response.data)), null))), [x, e, N, w, m]), G = R(async (ce) => {
|
|
9159
|
+
if (!y)
|
|
9160
|
+
return;
|
|
9161
|
+
const be = await tt(y.masterReference ? { ...ce, [y.masterReferenceColumn ?? ""]: me } : ce);
|
|
9162
|
+
if (be !== null) {
|
|
9163
|
+
if (z(b.editSuccess, "success"), be.affectedOtherRowsByTrigger) {
|
|
9164
|
+
de();
|
|
9165
|
+
return;
|
|
9166
|
+
}
|
|
9167
|
+
E((we) => we && we.map((je) => {
|
|
9168
|
+
var Se;
|
|
9169
|
+
return ((Se = je[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : Se.value) === ce[(y == null ? void 0 : y.primaryKey) ?? ""] ? cs(ce, y) : je;
|
|
9170
|
+
}));
|
|
9171
|
+
}
|
|
9172
|
+
}, [z, tt, y, me, b, de]), ie = R(async (ce) => {
|
|
9173
|
+
if (await q(b.deleteConfirm)) {
|
|
9174
|
+
const be = await yt(ce);
|
|
9175
|
+
if (be !== null) {
|
|
9176
|
+
if (z(b.deleteSuccess, "success"), be.affectedOtherRowsByTrigger) {
|
|
9177
|
+
de();
|
|
9178
|
+
return;
|
|
9179
|
+
}
|
|
9180
|
+
E((we) => we && we.filter((je) => {
|
|
9181
|
+
var Se;
|
|
9182
|
+
return ((Se = je[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : Se.value) !== ce;
|
|
9183
|
+
}));
|
|
9184
|
+
}
|
|
9185
|
+
}
|
|
9186
|
+
}, [z, yt, b, q, y, de]), ge = R(async (ce) => {
|
|
9169
9187
|
if (!y)
|
|
9170
9188
|
return !1;
|
|
9171
|
-
const
|
|
9172
|
-
if (
|
|
9173
|
-
z(b.createSuccess, "success")
|
|
9174
|
-
|
|
9175
|
-
|
|
9189
|
+
const be = await Y(y.masterReference ? { ...ce, [y.masterReferenceColumn ?? ""]: me } : ce);
|
|
9190
|
+
if (be !== null) {
|
|
9191
|
+
if (z(b.createSuccess, "success"), be.affectedOtherRowsByTrigger)
|
|
9192
|
+
return de(), !0;
|
|
9193
|
+
const we = cs(ce, y);
|
|
9194
|
+
return we[(y == null ? void 0 : y.primaryKey) ?? ""] = {
|
|
9195
|
+
value: be.primaryKey,
|
|
9196
|
+
defaultValue: be.primaryKey
|
|
9197
|
+
}, E((je) => [...je ?? [], we]), !0;
|
|
9176
9198
|
}
|
|
9177
9199
|
return !1;
|
|
9178
|
-
}, [z, Y, b, y, me]),
|
|
9200
|
+
}, [z, Y, b, y, me, de]), _e = (ce) => {
|
|
9179
9201
|
ce > A ? n(A) : ce < 1 && n(1), n(ce);
|
|
9180
|
-
},
|
|
9202
|
+
}, ye = R(() => {
|
|
9181
9203
|
if (!S || !y) {
|
|
9182
9204
|
O(null);
|
|
9183
9205
|
return;
|
|
9184
9206
|
}
|
|
9185
|
-
const ce = S.filter((
|
|
9207
|
+
const ce = S.filter((be) => Object.entries(r).every(([we, je]) => {
|
|
9186
9208
|
var Dn, Sn, Cn;
|
|
9187
|
-
if (
|
|
9209
|
+
if (je === null)
|
|
9188
9210
|
return !0;
|
|
9189
|
-
const
|
|
9190
|
-
if (
|
|
9211
|
+
const Se = (Dn = be[we]) == null ? void 0 : Dn.value;
|
|
9212
|
+
if (Se == null)
|
|
9191
9213
|
return !1;
|
|
9192
|
-
const ke = (Sn = y.columns) == null ? void 0 : Sn.find((ir) => ir.field ===
|
|
9214
|
+
const ke = (Sn = y.columns) == null ? void 0 : Sn.find((ir) => ir.field === we), jn = ke == null ? void 0 : ke.type, Nn = (ke == null ? void 0 : ke.values) && ((Cn = ke == null ? void 0 : ke.values) == null ? void 0 : Cn.length) > 0;
|
|
9193
9215
|
if (!jn)
|
|
9194
9216
|
return !1;
|
|
9195
9217
|
switch (jn) {
|
|
9196
9218
|
case "STR":
|
|
9197
|
-
return Nn ?
|
|
9219
|
+
return Nn ? Se === je : Se.toString().toLowerCase().includes(je.toLowerCase());
|
|
9198
9220
|
case "NUM":
|
|
9199
|
-
return Nn ? Number(
|
|
9221
|
+
return Nn ? Number(Se) === Number(je) : Se.toString().toLowerCase().includes(je.toLowerCase());
|
|
9200
9222
|
case "DT":
|
|
9201
|
-
return
|
|
9223
|
+
return Se.toString().toLowerCase().includes(je.toLowerCase());
|
|
9202
9224
|
case "BIT":
|
|
9203
|
-
return Number(
|
|
9225
|
+
return Number(Se) === Number(je);
|
|
9204
9226
|
default:
|
|
9205
|
-
return
|
|
9227
|
+
return Se.toString().toLowerCase().includes(je.toLowerCase());
|
|
9206
9228
|
}
|
|
9207
9229
|
}));
|
|
9208
9230
|
O(ce);
|
|
@@ -9215,43 +9237,43 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9215
9237
|
M(I);
|
|
9216
9238
|
return;
|
|
9217
9239
|
}
|
|
9218
|
-
M([...I].sort((ce,
|
|
9240
|
+
M([...I].sort((ce, be) => {
|
|
9219
9241
|
var jn, Nn, Dn, Sn, Cn, ir;
|
|
9220
|
-
const
|
|
9221
|
-
if (!
|
|
9242
|
+
const we = ((Nn = (jn = ce[o]) == null ? void 0 : jn.value) == null ? void 0 : Nn.toString()) ?? "", je = ((Sn = (Dn = be[o]) == null ? void 0 : Dn.value) == null ? void 0 : Sn.toString()) ?? "", Se = y.columns.find((gt) => gt.field === o), ke = Se == null ? void 0 : Se.type;
|
|
9243
|
+
if (!Se || !ke || !we && !je)
|
|
9222
9244
|
return 0;
|
|
9223
|
-
if (!Ee)
|
|
9224
|
-
return 1;
|
|
9225
9245
|
if (!we)
|
|
9246
|
+
return 1;
|
|
9247
|
+
if (!je)
|
|
9226
9248
|
return -1;
|
|
9227
|
-
if (
|
|
9228
|
-
const gt = ((Cn =
|
|
9229
|
-
var En;
|
|
9230
|
-
return ((En = Xr.id) == null ? void 0 : En.toString()) === Ee;
|
|
9231
|
-
})) == null ? void 0 : Cn.name) ?? "", Et = ((ir = Oe.values.find((Xr) => {
|
|
9249
|
+
if (Se.values && Se.values.length > 0) {
|
|
9250
|
+
const gt = ((Cn = Se.values.find((Xr) => {
|
|
9232
9251
|
var En;
|
|
9233
9252
|
return ((En = Xr.id) == null ? void 0 : En.toString()) === we;
|
|
9253
|
+
})) == null ? void 0 : Cn.name) ?? "", Et = ((ir = Se.values.find((Xr) => {
|
|
9254
|
+
var En;
|
|
9255
|
+
return ((En = Xr.id) == null ? void 0 : En.toString()) === je;
|
|
9234
9256
|
})) == null ? void 0 : ir.name) ?? "";
|
|
9235
9257
|
return s === "asc" ? gt.localeCompare(Et) : Et.localeCompare(gt);
|
|
9236
9258
|
}
|
|
9237
9259
|
if (ke === "NUM") {
|
|
9238
|
-
const gt = Number(
|
|
9260
|
+
const gt = Number(we), Et = Number(je);
|
|
9239
9261
|
return s === "asc" ? gt - Et : Et - gt;
|
|
9240
9262
|
}
|
|
9241
9263
|
if (ke === "DT") {
|
|
9242
|
-
const gt = pt(
|
|
9264
|
+
const gt = pt(we == null ? void 0 : we.toString()).getTime(), Et = pt(je == null ? void 0 : je.toString()).getTime();
|
|
9243
9265
|
return s === "asc" ? gt - Et : Et - gt;
|
|
9244
9266
|
}
|
|
9245
|
-
return s === "asc" ?
|
|
9267
|
+
return s === "asc" ? we.toString().localeCompare(je.toString()) : je.toString().localeCompare(we.toString());
|
|
9246
9268
|
}));
|
|
9247
9269
|
}, [I, y, o, s]);
|
|
9248
9270
|
return U(() => {
|
|
9249
9271
|
re();
|
|
9250
9272
|
}, [re]), U(() => {
|
|
9251
|
-
|
|
9252
|
-
}, [
|
|
9253
|
-
|
|
9254
|
-
}, [
|
|
9273
|
+
de();
|
|
9274
|
+
}, [de]), U(() => {
|
|
9275
|
+
ye();
|
|
9276
|
+
}, [ye]), U(() => {
|
|
9255
9277
|
fe();
|
|
9256
9278
|
}, [fe]), U(() => {
|
|
9257
9279
|
se ? t || n(1) : T && n(null);
|
|
@@ -9264,11 +9286,11 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9264
9286
|
(y == null ? void 0 : y.masterReference) && /* @__PURE__ */ a.jsx(Ly, { label: ((ot = (Ve = y.columns) == null ? void 0 : Ve.find((ce) => ce.field === y.masterReferenceColumn)) == null ? void 0 : ot.caption) ?? "", options: ((on = (st = y.columns) == null ? void 0 : st.find((ce) => ce.field === y.masterReferenceColumn)) == null ? void 0 : on.values) ?? [], master: me, onChange: (ce) => Q(ce) })
|
|
9265
9287
|
] }),
|
|
9266
9288
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
9267
|
-
(Bi = y == null ? void 0 : y.slaves) == null ? void 0 : Bi.map((ce,
|
|
9268
|
-
var
|
|
9269
|
-
return /* @__PURE__ */ a.jsxs(dt, { as: "link", href: `${vn(c, { id: (
|
|
9289
|
+
(Bi = y == null ? void 0 : y.slaves) == null ? void 0 : Bi.map((ce, be) => {
|
|
9290
|
+
var we;
|
|
9291
|
+
return /* @__PURE__ */ a.jsxs(dt, { as: "link", href: `${vn(c, { id: (we = ce.id) == null ? void 0 : we.toString() })}?type=dynamic-form`, children: [
|
|
9270
9292
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
9271
|
-
y.slaves.length > 1 ? /* @__PURE__ */ a.jsx(L, { variant: "caption", className: "text-primary", children:
|
|
9293
|
+
y.slaves.length > 1 ? /* @__PURE__ */ a.jsx(L, { variant: "caption", className: "text-primary", children: be + 1 }) : null,
|
|
9272
9294
|
/* @__PURE__ */ a.jsx(Gs, {})
|
|
9273
9295
|
] }),
|
|
9274
9296
|
ce.name
|
|
@@ -9282,16 +9304,16 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9282
9304
|
] })
|
|
9283
9305
|
] }),
|
|
9284
9306
|
(y == null ? void 0 : y.description) && /* @__PURE__ */ a.jsx(L, { variant: "body2", className: "mb-3", children: y == null ? void 0 : y.description }),
|
|
9285
|
-
y != null && y.masterReference && !me ? /* @__PURE__ */ a.jsx(
|
|
9307
|
+
y != null && y.masterReference && !me ? /* @__PURE__ */ a.jsx(Ke, { variant: "warning", children: b.selectMaster(((Mi = (Li = y.columns) == null ? void 0 : Li.find((ce) => ce.field === y.masterReferenceColumn)) == null ? void 0 : Mi.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
9286
9308
|
y && F.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "mb-2", children: /* @__PURE__ */ a.jsx(dy, { errors: F, schema: y }) }),
|
|
9287
9309
|
y && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
9288
9310
|
/* @__PURE__ */ a.jsx("div", { className: _("rounded border overflow-auto", ps.tableContainer), children: /* @__PURE__ */ a.jsx(By, { schema: y, items: !se && T && (T == null ? void 0 : T.length) > W ? [] : (se ? J : T) ?? [], onEditItem: G, onDeleteItem: ie, onCreateItem: ge, filters: r, setFilter: i, sortByField: o, sortByType: s, setSortBy: l, selectedMaster: (me == null ? void 0 : me.toString()) ?? null, customPickers: h, appDetail: c }) }),
|
|
9289
9311
|
se && t && /* @__PURE__ */ a.jsxs("div", { className: _(ps.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
9290
9312
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
9291
|
-
/* @__PURE__ */ a.jsx(te, { color: "primary", onClick: () =>
|
|
9292
|
-
/* @__PURE__ */ a.jsx(te, { color: "primary", onClick: () =>
|
|
9293
|
-
/* @__PURE__ */ a.jsx(te, { color: "primary", onClick: () =>
|
|
9294
|
-
/* @__PURE__ */ a.jsx(te, { color: "primary", onClick: () =>
|
|
9313
|
+
/* @__PURE__ */ a.jsx(te, { color: "primary", onClick: () => _e(1), disabled: !K, children: /* @__PURE__ */ a.jsx(v, { icon: "chevron-double-left" }) }),
|
|
9314
|
+
/* @__PURE__ */ a.jsx(te, { color: "primary", onClick: () => _e(t - 1), disabled: !K, children: /* @__PURE__ */ a.jsx(v, { icon: "chevron-left" }) }),
|
|
9315
|
+
/* @__PURE__ */ a.jsx(te, { color: "primary", onClick: () => _e(t + 1), disabled: !Z, children: /* @__PURE__ */ a.jsx(v, { icon: "chevron-right" }) }),
|
|
9316
|
+
/* @__PURE__ */ a.jsx(te, { color: "primary", onClick: () => _e(A), disabled: !Z, children: /* @__PURE__ */ a.jsx(v, { icon: "chevron-double-right" }) })
|
|
9295
9317
|
] }),
|
|
9296
9318
|
/* @__PURE__ */ a.jsxs(L, { variant: "body", children: [
|
|
9297
9319
|
b.tablePage,
|
|
@@ -9317,7 +9339,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9317
9339
|
e.description && /* @__PURE__ */ a.jsx(L, { variant: "body2", className: "text-muted mt-2", children: e.description })
|
|
9318
9340
|
] }) : /* @__PURE__ */ a.jsx(Fy, { item: e, children: /* @__PURE__ */ a.jsx(vs, { disabled: !!o, to: `${vn(n, { id: (c = e.id) == null ? void 0 : c.toString() })}?type=${e.type}&search=${r ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(i == null ? void 0 : i.toString()) === ((u = e.id) == null ? void 0 : u.toString()) ? "active" : ""}`, children: /* @__PURE__ */ a.jsx(L, { variant: "body2", children: e.name }) }) }, e.id);
|
|
9319
9341
|
}, gN = ({ activeId: e, anchoredForms: t, otherForms: n = [], groupsDefs: r = [], searchQuery: i, fullSize: o, appUrls: { appDetail: s = ms.appDetail } = ms, apiUrls: { apiDynamicFormsGet: l = gs.apiDynamicFormsGet } = gs }) => {
|
|
9320
|
-
const c =
|
|
9342
|
+
const c = Xe(), { startLoading: u, stopLoading: d } = $(xt), [p, f] = B(null), [m] = Jt("search", ""), g = k(() => (t == null ? void 0 : t.filter((x) => qe(x.name, i) || qe(x.description, i)).sort((x, N) => (x.name ?? "").localeCompare(N.name ?? ""))) ?? [], [t, i]), h = k(() => [
|
|
9321
9343
|
...(p == null ? void 0 : p.map((x) => ({
|
|
9322
9344
|
...x,
|
|
9323
9345
|
type: "dynamic-form"
|
|
@@ -9361,7 +9383,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9361
9383
|
"fw-bold": t === "de"
|
|
9362
9384
|
}), children: "DE" })
|
|
9363
9385
|
] }) });
|
|
9364
|
-
}, bN = ({ controlId: e, ...t }) => /* @__PURE__ */ a.jsx(
|
|
9386
|
+
}, bN = ({ controlId: e, ...t }) => /* @__PURE__ */ a.jsx(xe.Group, { controlId: e, ...t }), xN = ({ employeeId: e, alt: t, noPhotoImage: n, cafmApiUrl: r, showLargeInLightBox: i = !1 }) => {
|
|
9365
9387
|
const { user: o } = $(Lt), { photoPath: s, photoPathSm: l } = wu(e);
|
|
9366
9388
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsx(a.Fragment, { children: i ? /* @__PURE__ */ a.jsx(nx, { baseUrl: r, customToken: o.cafmToken ?? void 0, photos: [
|
|
9367
9389
|
{
|
|
@@ -9377,7 +9399,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9377
9399
|
t(o);
|
|
9378
9400
|
};
|
|
9379
9401
|
return /* @__PURE__ */ a.jsxs(wr, { className: `${r}`, children: [
|
|
9380
|
-
/* @__PURE__ */ a.jsx(
|
|
9402
|
+
/* @__PURE__ */ a.jsx(xe.Control, { value: e, onChange: (o) => t(o.target.value) }),
|
|
9381
9403
|
e && /* @__PURE__ */ a.jsx(Ca, { onClick: () => i(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ a.jsx(Bt, {}) }),
|
|
9382
9404
|
/* @__PURE__ */ a.jsx(Ca, { onClick: () => n && n(e), variant: "link", className: "border", children: /* @__PURE__ */ a.jsx(Ud, {}) })
|
|
9383
9405
|
] });
|
|
@@ -9453,7 +9475,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9453
9475
|
}, Jy = ({ searchQuery: e, setSearchQuery: t, reportsTexts: n, filteredGroups: r, filteredReports: i, getGroupTitle: o, getReportRoute: s, getReportName: l, getReportDescription: c }) => {
|
|
9454
9476
|
const { isMobile: u } = kr();
|
|
9455
9477
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
9456
|
-
/* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(
|
|
9478
|
+
/* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(xe.Control, { className: "mb-3", type: "search", value: e, onChange: (d) => {
|
|
9457
9479
|
var p;
|
|
9458
9480
|
return t(((p = d.target) == null ? void 0 : p.value) ?? "");
|
|
9459
9481
|
}, placeholder: n.index.search }) }),
|
|
@@ -9667,7 +9689,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9667
9689
|
return U(() => {
|
|
9668
9690
|
m.isSubmitted && N(!0);
|
|
9669
9691
|
}, [m]), /* @__PURE__ */ a.jsxs(e, { isForCheckInput: !0, hidden: s, label: n ?? "", required: o, disabled: w, isInvalid: y, withoutLabel: c, hint: u, className: p, children: [
|
|
9670
|
-
/* @__PURE__ */ a.jsx(
|
|
9692
|
+
/* @__PURE__ */ a.jsx(xe.Check, { id: `check-${t}`, type: i ?? "checkbox", label: `${n}${o ? " *" : ""}`, ...f(t, {
|
|
9671
9693
|
onChange: (j) => {
|
|
9672
9694
|
r && r.forEach((S) => g(S, null, { shouldDirty: !0, shouldValidate: x })), d && d(j.target.value ?? null);
|
|
9673
9695
|
}
|
|
@@ -9687,7 +9709,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9687
9709
|
}, [p]);
|
|
9688
9710
|
const y = h !== void 0;
|
|
9689
9711
|
return /* @__PURE__ */ a.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: w, isInvalid: y, className: u, children: [
|
|
9690
|
-
N.map((j) => /* @__PURE__ */ a.jsx(
|
|
9712
|
+
N.map((j) => /* @__PURE__ */ a.jsx(xe.Check, { id: `radio-${j.id}`, label: j.name, type: "radio", value: j.id ?? "", checked: m(n) === j.id, ...d(n, {
|
|
9691
9713
|
onChange: (S) => {
|
|
9692
9714
|
var E;
|
|
9693
9715
|
i && i.forEach((I) => f(I, null, { shouldDirty: !0, shouldValidate: v })), c && c((E = S.target) != null && E.value ? S.target.value.toString() : null);
|
|
@@ -9699,7 +9721,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9699
9721
|
const { watch: u } = Ct(), d = u(l), p = St({ falseIfNotInit: !0 }), f = k(() => o || p, [o, p]);
|
|
9700
9722
|
return i ? null : /* @__PURE__ */ a.jsx(Oc, { contactType: s, value: d, withoutLabel: r, label: e, className: n, children: /* @__PURE__ */ a.jsx(gn, { type: "text", formField: l, InputContainer: t, size: "sm", withoutLabel: !0, className: "flex-grow-1", disabled: f, ...c }) });
|
|
9701
9723
|
}, AN = ({ InputContainer: e = Te, formField: t, label: n, size: r, defaultSelection: i, resetsFields: o, isNumber: s, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: p, selectedItemNavigateTo: f, texts: m, dropdownItemsNameWidth: g, isLoading: h, withoutLabel: b, additionalColumns: v, CustomOnChangeComponent: x, icon: N, displayIdAsName: w, onSelect: y, className: j, archiveColumn: S, hint: E, addNewOptionPath: I, refreshOptions: O, MiniDetailComponent: T, miniDetailPlacement: M, suggestedItems: C, suggestedItemsTitle: P }) => {
|
|
9702
|
-
const { formState: z, setValue: F, watch: V, control: q } = Ct(), H = St({ falseIfNotInit: !0 }), [W, A] = B(void 0), [K, Z] = B(!1), [ne, ve] = B(!1), se = V(t) ?? null, J = se === (i == null ? void 0 : i.id) ? i == null ? void 0 : i.name : V(`${t}-DropdownName`), le = k(() => se == null ? null : { id: se ?? null, name: J ?? "" }, [se, J]),
|
|
9724
|
+
const { formState: z, setValue: F, watch: V, control: q } = Ct(), H = St({ falseIfNotInit: !0 }), [W, A] = B(void 0), [K, Z] = B(!1), [ne, ve] = B(!1), se = V(t) ?? null, J = se === (i == null ? void 0 : i.id) ? i == null ? void 0 : i.name : V(`${t}-DropdownName`), le = k(() => se == null ? null : { id: se ?? null, name: J ?? "" }, [se, J]), Ie = R(() => {
|
|
9703
9725
|
const G = t.split(".");
|
|
9704
9726
|
let ie = z.errors;
|
|
9705
9727
|
G.forEach((ge) => {
|
|
@@ -9724,19 +9746,19 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9724
9746
|
Z(!1), me(G);
|
|
9725
9747
|
}, [me]), re = R(() => {
|
|
9726
9748
|
Z(!1);
|
|
9727
|
-
}, []),
|
|
9749
|
+
}, []), de = ae(null), Pe = W !== void 0, tt = f !== void 0, yt = tt && le !== null, Y = k(() => u || H, [u, H]);
|
|
9728
9750
|
return U(() => {
|
|
9729
|
-
|
|
9730
|
-
}, [
|
|
9751
|
+
Ie();
|
|
9752
|
+
}, [Ie]), U(() => {
|
|
9731
9753
|
z.isSubmitted && ve(!0);
|
|
9732
9754
|
}, [z]), /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: l, disabled: Y, hidden: c, withoutLabel: b, isInvalid: Pe, inputContainerClassName: _({ "luminus-dropdown-select-open": K }), hint: E, className: j, children: [
|
|
9733
9755
|
/* @__PURE__ */ a.jsxs(qa, { currentSelection: le, selectedItemNavigateTo: f, children: [
|
|
9734
9756
|
w && (le == null ? void 0 : le.name) && /* @__PURE__ */ a.jsx(L, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: le.name }),
|
|
9735
|
-
/* @__PURE__ */ a.jsx(Za, { control: q, name: t, render: () => /* @__PURE__ */ a.jsx(Ya, { value: se, MiniDetailComponent: T, miniDetailPlacement: M, children: /* @__PURE__ */ a.jsx(
|
|
9757
|
+
/* @__PURE__ */ a.jsx(Za, { control: q, name: t, render: () => /* @__PURE__ */ a.jsx(Ya, { value: se, MiniDetailComponent: T, miniDetailPlacement: M, children: /* @__PURE__ */ a.jsx(xe.Select, { size: r, onMouseDown: (G) => {
|
|
9736
9758
|
G.currentTarget.focus(), G.preventDefault();
|
|
9737
9759
|
}, onClick: () => {
|
|
9738
9760
|
!tt && !Y && Z(!0);
|
|
9739
|
-
}, ref:
|
|
9761
|
+
}, ref: de, value: se ?? "", onChange: () => {
|
|
9740
9762
|
}, isInvalid: Pe, hidden: c, className: _("w-100", {
|
|
9741
9763
|
"luminus-dropdown-picker-disabled": Y,
|
|
9742
9764
|
"luminus-dropdown-picker-link": yt
|
|
@@ -9749,7 +9771,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9749
9771
|
] }) : null
|
|
9750
9772
|
] }),
|
|
9751
9773
|
W && /* @__PURE__ */ a.jsx(rn, { message: W.message }),
|
|
9752
|
-
|
|
9774
|
+
de.current && /* @__PURE__ */ a.jsx(Ka, { show: K, onCancel: re, items: d, currentSelection: le, onSelectionChange: Q, onSearchQueryChange: p, texts: m, itemsNameWidth: g, additionalColumns: v, displayIdAsName: w, isLoading: h, disabled: Y, inputRef: de, archiveColumn: S, addNewOptionPath: I, refreshOptions: O, suggestedItems: C, suggestedItemsTitle: P })
|
|
9753
9775
|
] }) });
|
|
9754
9776
|
}, RN = ({ InputContainer: e = Te, label: t, formField: n, hidden: r, required: i, placeholder: o, disabled: s, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: p, hint: f, className: m }) => {
|
|
9755
9777
|
const { watch: g, setValue: h, register: b, formState: v } = Ct(), x = St({ falseIfNotInit: !0 }), [N, w] = B(!1), [y, j] = B(void 0), S = R(() => {
|
|
@@ -9782,10 +9804,10 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9782
9804
|
}, Va = ({ InputContainer: e = Te, options: t, formField: n, label: r, size: i, resetsFields: o, isNumber: s, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: p, suffixIdToName: f, onSelect: m, className: g, appendCurrentSelectionWithName: h, hint: b, addNewOptionPath: v, refreshOptions: x, MiniDetailComponent: N, miniDetailPlacement: w, selectedItemNavigateTo: y, noRemoveButton: j }) => {
|
|
9783
9805
|
const { texts: { customSelect: S } } = $(X), { formState: E, setValue: I, watch: O, control: T } = Ct(), M = St({ falseIfNotInit: !0 }), [C, P] = B(void 0), [z, F] = B(!1), [V, q] = B(!1), [H, W] = B(""), A = O(n), K = k(() => t.find((re) => re.id === A) ?? null, [t, A]), Z = R(() => {
|
|
9784
9806
|
const re = n.split(".");
|
|
9785
|
-
let
|
|
9807
|
+
let de = E.errors;
|
|
9786
9808
|
re.forEach((Pe) => {
|
|
9787
|
-
|
|
9788
|
-
}), P(
|
|
9809
|
+
de !== void 0 && (de = de[Pe]);
|
|
9810
|
+
}), P(de);
|
|
9789
9811
|
}, [E, n]), ne = R((re) => {
|
|
9790
9812
|
if ((re == null ? void 0 : re.id) === A)
|
|
9791
9813
|
return;
|
|
@@ -9796,8 +9818,8 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9796
9818
|
});
|
|
9797
9819
|
return;
|
|
9798
9820
|
}
|
|
9799
|
-
let
|
|
9800
|
-
s ?
|
|
9821
|
+
let de = null;
|
|
9822
|
+
s ? de = (re == null ? void 0 : re.id) !== null && (re == null ? void 0 : re.id) !== "" ? parseInt(re.id.toString(), 10) : null : de = re.id === null || re.id === void 0 || re.id === "" ? null : re.id, I(n, de, {
|
|
9801
9823
|
shouldDirty: !0,
|
|
9802
9824
|
shouldValidate: V
|
|
9803
9825
|
});
|
|
@@ -9812,14 +9834,14 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9812
9834
|
E.isSubmitted && q(!0);
|
|
9813
9835
|
}, [E]);
|
|
9814
9836
|
const le = R((re) => {
|
|
9815
|
-
var
|
|
9816
|
-
return re === null ? "" : !re.name || re.name.length === 0 ? ((
|
|
9817
|
-
}, [f]),
|
|
9837
|
+
var de;
|
|
9838
|
+
return re === null ? "" : !re.name || re.name.length === 0 ? ((de = re.id) == null ? void 0 : de.toString()) ?? "" : f ? `${re.name} (${re.id})` : re.name;
|
|
9839
|
+
}, [f]), Ie = k(() => {
|
|
9818
9840
|
const re = t ? [...t] : [];
|
|
9819
|
-
return h !== void 0 && A && (re.some((
|
|
9820
|
-
id:
|
|
9821
|
-
name: le(
|
|
9822
|
-
})).filter((
|
|
9841
|
+
return h !== void 0 && A && (re.some((de) => de.id === A) || re.push({ id: A, name: h })), re.map((de) => ({
|
|
9842
|
+
id: de.id,
|
|
9843
|
+
name: le(de)
|
|
9844
|
+
})).filter((de) => qe(de.name, H)).sort((de, Pe) => p ? 0 : (de.name ?? "").localeCompare(Pe.name ?? ""));
|
|
9823
9845
|
}, [
|
|
9824
9846
|
t,
|
|
9825
9847
|
p,
|
|
@@ -9829,14 +9851,14 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9829
9851
|
A
|
|
9830
9852
|
]), me = ae(null), Q = C !== void 0;
|
|
9831
9853
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(e, { label: r ?? "", required: l, disabled: J, hidden: c, withoutLabel: d, isInvalid: Q, inputContainerClassName: _({ "luminus-dropdown-select-open": z }), hint: b, className: g, children: [
|
|
9832
|
-
/* @__PURE__ */ a.jsx(qa, { currentSelection: K, selectedItemNavigateTo: y, children: /* @__PURE__ */ a.jsx(Za, { control: T, name: n, render: () => /* @__PURE__ */ a.jsx(Ya, { value: A, MiniDetailComponent: N, miniDetailPlacement: w, children: /* @__PURE__ */ a.jsx(
|
|
9854
|
+
/* @__PURE__ */ a.jsx(qa, { currentSelection: K, selectedItemNavigateTo: y, children: /* @__PURE__ */ a.jsx(Za, { control: T, name: n, render: () => /* @__PURE__ */ a.jsx(Ya, { value: A, MiniDetailComponent: N, miniDetailPlacement: w, children: /* @__PURE__ */ a.jsx(xe.Select, { size: i, onMouseDown: (re) => {
|
|
9833
9855
|
re.currentTarget.focus(), re.preventDefault();
|
|
9834
9856
|
}, onClick: () => {
|
|
9835
9857
|
F(!0);
|
|
9836
9858
|
}, ref: me, value: A ?? "", onChange: () => {
|
|
9837
9859
|
}, isInvalid: Q, hidden: c, disabled: J, className: "w-100", children: /* @__PURE__ */ a.jsx("option", { value: (K == null ? void 0 : K.id) ?? "", children: le(K) }) }) }) }) }),
|
|
9838
9860
|
C && /* @__PURE__ */ a.jsx(rn, { message: C.message }),
|
|
9839
|
-
me.current && /* @__PURE__ */ a.jsx(Ka, { show: z, onCancel: () => F(!1), items:
|
|
9861
|
+
me.current && /* @__PURE__ */ a.jsx(Ka, { show: z, onCancel: () => F(!1), items: Ie, currentSelection: K ?? null, onSelectionChange: ve, onSearchQueryChange: se, texts: S, disabled: J, inputRef: me, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: v, refreshOptions: x, noRemoveButton: j })
|
|
9840
9862
|
] }) });
|
|
9841
9863
|
}, kN = ({ InputContainer: e = Te, formField: t, label: n, placeholder: r, size: i, resetsFields: o, showClearIcon: s, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: p, step: f, stepperStep: m = 1, className: g, min: h, max: b, onChange: v, hint: x }) => {
|
|
9842
9864
|
const { register: N, formState: w, setValue: y, watch: j } = Ct(), S = St({ falseIfNotInit: !0 }), [E, I] = B(void 0), [O, T] = B(!1), M = R((q, H, W) => {
|
|
@@ -9862,7 +9884,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9862
9884
|
const F = E !== void 0, V = j(t);
|
|
9863
9885
|
return /* @__PURE__ */ a.jsxs(e, { label: n ?? "", required: c, disabled: z, hidden: u, withoutLabel: p, isInvalid: F, hint: x, className: g, children: [
|
|
9864
9886
|
/* @__PURE__ */ a.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
9865
|
-
/* @__PURE__ */ a.jsx(
|
|
9887
|
+
/* @__PURE__ */ a.jsx(xe.Control, { type: "number", placeholder: r ?? n, size: i, ...N(t, {
|
|
9866
9888
|
setValueAs: (q) => q == null || q === "" ? null : kn(Number(q), h, b),
|
|
9867
9889
|
min: h,
|
|
9868
9890
|
max: b,
|
|
@@ -9910,8 +9932,8 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9910
9932
|
/* @__PURE__ */ a.jsx(Za, { control: T, name: t, render: ({ field: { ref: K, onChange: Z, name: ne, value: ve } }) => /* @__PURE__ */ a.jsx(Ri, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: v, prefix: x, suffix: N, defaultValue: "", name: ne, value: ve ?? "", placeholder: r ?? n, onFocus: (se) => {
|
|
9911
9933
|
!g && se.target.select();
|
|
9912
9934
|
}, onChange: (se) => {
|
|
9913
|
-
var
|
|
9914
|
-
const J = parseFloat(((me = (
|
|
9935
|
+
var Ie, me;
|
|
9936
|
+
const J = parseFloat(((me = (Ie = se.target) == null ? void 0 : Ie.value) == null ? void 0 : me.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
|
|
9915
9937
|
i && i.forEach((Q) => I(Q, null, { shouldDirty: !0, shouldValidate: z }));
|
|
9916
9938
|
const le = J == null || Number.isNaN(J) ? null : Number(J);
|
|
9917
9939
|
Z(le), j && j(le);
|
|
@@ -9926,7 +9948,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9926
9948
|
C && /* @__PURE__ */ a.jsx(rn, { message: C.message })
|
|
9927
9949
|
] });
|
|
9928
9950
|
}, dw = (e, t) => {
|
|
9929
|
-
const n =
|
|
9951
|
+
const n = Xe(), r = Fr(), { startLoading: i, stopLoading: o } = $(xt), { zDateRequired: s, zNumberRequired: l } = Lr(), { addNotification: c } = tn(), { refreshAvailableDelegations: u } = $(Ws), { user: d } = $(Lt), { texts: { substitutions: { detail: p } } } = $(X), f = dn.object({
|
|
9930
9952
|
id: l(),
|
|
9931
9953
|
employeeId: l(),
|
|
9932
9954
|
substituteId: l(),
|
|
@@ -9976,7 +9998,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9976
9998
|
}, [m, g]), { formSchema: f, onSubmit: h, formMethods: g };
|
|
9977
9999
|
}, LN = ({ indexRoute: e }) => {
|
|
9978
10000
|
var y;
|
|
9979
|
-
const { id: t } = qs(), { user: n } = $(Lt), r =
|
|
10001
|
+
const { id: t } = qs(), { user: n } = $(Lt), r = Xe(), i = Fr(), { confirm: o } = Dt(), { texts: { substitutions: { detail: s } } } = $(X), { data: l } = Be(`/permissions/substitutions/${t}`, {
|
|
9980
10002
|
enabled: t !== void 0
|
|
9981
10003
|
}), { data: c } = Be("/permissions/users"), { onSubmit: u, formMethods: d } = dw(l, e), p = d.watch("employeeId"), { data: f } = Be(`/permissions/roles?userName=${(y = c == null ? void 0 : c.find((j) => j.employeeId === p)) == null ? void 0 : y.name}`, { enabled: p > 0 && !!c }), { refreshAvailableDelegations: m } = $(Ws), { checkUserHasPermissions: g } = Hs(), h = R(async () => {
|
|
9982
10004
|
await o(s.deleteConfirm) && (await r.delete(`/permissions/substitutions/${t}`), m(), i(e));
|
|
@@ -9987,7 +10009,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
9987
10009
|
return /* @__PURE__ */ a.jsx(Nt, { title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
9988
10010
|
/* @__PURE__ */ a.jsx(L, { variant: "h3", children: s.title }),
|
|
9989
10011
|
/* @__PURE__ */ a.jsx(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { as: nn }), children: /* @__PURE__ */ a.jsx(Ye, { onClick: () => h(), children: s.delete }) })
|
|
9990
|
-
] }), children: /* @__PURE__ */ a.jsx($r, { ...d, children: /* @__PURE__ */ a.jsx(pu, { disabled: b, children: /* @__PURE__ */ a.jsxs(
|
|
10012
|
+
] }), children: /* @__PURE__ */ a.jsx($r, { ...d, children: /* @__PURE__ */ a.jsx(pu, { disabled: b, children: /* @__PURE__ */ a.jsxs(xe, { onSubmit: d.handleSubmit(u), className: "h-100", children: [
|
|
9991
10013
|
/* @__PURE__ */ a.jsxs(ri, { className: "h-100 gx-3 gy-3", children: [
|
|
9992
10014
|
/* @__PURE__ */ a.jsx(Cr, { sm: 12, md: 4, children: /* @__PURE__ */ a.jsxs(Qt, { title: s.title, children: [
|
|
9993
10015
|
/* @__PURE__ */ a.jsx(Va, { formField: "employeeId", options: w, label: s.employee, isNumber: !0, required: !0, disabled: !g(["ZASTUP_MODIFY"]), resetsFields: ["roles"] }),
|
|
@@ -10062,7 +10084,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
10062
10084
|
}, [t, n]);
|
|
10063
10085
|
return /* @__PURE__ */ a.jsx(e, { tableId: r, columnsDef: s, data: o, onRowClick: l, useSearchState: !0, useScrollableContainer: !0 });
|
|
10064
10086
|
}, pw = (e, t = "/approval/delegation/runningProcess", n = "/approval/delegation", r = (i) => `/approval/delegation/${i}`) => {
|
|
10065
|
-
const i =
|
|
10087
|
+
const i = Xe(), { startLoading: o, stopLoading: s } = $(xt), l = R(async (d, p) => {
|
|
10066
10088
|
let f = null;
|
|
10067
10089
|
o("getHasRunningProcesses");
|
|
10068
10090
|
try {
|
|
@@ -10106,20 +10128,20 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
10106
10128
|
}, j = R(async () => {
|
|
10107
10129
|
await g(u.delegations.deleteConfirm) && await w() && (m(u.delegations.deleteSuccess, "success"), n());
|
|
10108
10130
|
}, [g, u, w, m, n]);
|
|
10109
|
-
return /* @__PURE__ */ a.jsxs(
|
|
10110
|
-
/* @__PURE__ */ a.jsxs(
|
|
10111
|
-
/* @__PURE__ */ a.jsx(
|
|
10131
|
+
return /* @__PURE__ */ a.jsxs(pe, { show: e !== null, onHide: () => t(), children: [
|
|
10132
|
+
/* @__PURE__ */ a.jsxs(pe.Header, { closeButton: !0, children: [
|
|
10133
|
+
/* @__PURE__ */ a.jsx(pe.Title, { className: "w-100", children: e != null && e.id ? u.delegations.detailTitle : u.delegations.newTitle }),
|
|
10112
10134
|
e != null && e.id ? /* @__PURE__ */ a.jsx(Mt, { toggle: /* @__PURE__ */ a.jsx(Ft, { as: nn }), className: "modalHeaderDropdown", children: /* @__PURE__ */ a.jsx(Ye, { color: "danger", icon: /* @__PURE__ */ a.jsx(c, { icon: "delete" }), onClick: j, children: u.delegations.delete }) }) : null
|
|
10113
10135
|
] }),
|
|
10114
|
-
/* @__PURE__ */ a.jsx($r, { ...v, children: /* @__PURE__ */ a.jsxs(
|
|
10115
|
-
/* @__PURE__ */ a.jsxs(
|
|
10136
|
+
/* @__PURE__ */ a.jsx($r, { ...v, children: /* @__PURE__ */ a.jsxs(xe, { onSubmit: v.handleSubmit(y), noValidate: !0, children: [
|
|
10137
|
+
/* @__PURE__ */ a.jsxs(pe.Body, { children: [
|
|
10116
10138
|
/* @__PURE__ */ a.jsx(Va, { label: u.delegations.detail.approval, isNumber: !0, formField: "approval.id", options: h ?? [], required: !0 }),
|
|
10117
10139
|
/* @__PURE__ */ a.jsx(l, { label: u.delegations.detail.employee, formField: "employee.id", defaultSelection: (S = e == null ? void 0 : e.employee) != null && S.id ? { id: e.employee.id, name: e.employee.name } : null, required: !0 }),
|
|
10118
10140
|
/* @__PURE__ */ a.jsx(l, { label: u.delegations.detail.delegate, formField: "delegate.id", defaultSelection: (E = e == null ? void 0 : e.delegate) != null && E.id ? { id: e.delegate.id, name: e.delegate.name } : null, required: !0 }),
|
|
10119
10141
|
/* @__PURE__ */ a.jsx(gn, { label: u.delegations.detail.dateFrom, formField: "dateFrom", type: "date", required: !0 }),
|
|
10120
10142
|
/* @__PURE__ */ a.jsx(gn, { label: u.delegations.detail.dateTo, formField: "dateTo", type: "date" })
|
|
10121
10143
|
] }),
|
|
10122
|
-
/* @__PURE__ */ a.jsx(
|
|
10144
|
+
/* @__PURE__ */ a.jsx(pe.Footer, { className: "justify-content-end", children: /* @__PURE__ */ a.jsx(mt, { type: "submit", children: e != null && e.id ? u.delegations.save : u.delegations.create }) })
|
|
10123
10145
|
] }) })
|
|
10124
10146
|
] });
|
|
10125
10147
|
}, cn = {
|
|
@@ -10152,7 +10174,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
10152
10174
|
}, EmployeePickerComponent: l, apiApprovalDefinitions: i, apiHasRunningProcess: t, apiPostEditDelegation: n, apiDeleteDelegation: r })
|
|
10153
10175
|
] });
|
|
10154
10176
|
}, mw = ({ show: e, handleClose: t, onConfirm: n, currentEmployee: r, approvalApproverId: i, apiPostChangeEmployee: o, EmployeePickerComponent: s }) => {
|
|
10155
|
-
const { texts: { approval: l } } = $(X), { zNumberRequired: c } = Lr(), u =
|
|
10177
|
+
const { texts: { approval: l } } = $(X), { zNumberRequired: c } = Lr(), u = Xe(), { startLoading: d, stopLoading: p } = $(xt), { addNotification: f } = tn(), m = dn.object({
|
|
10156
10178
|
employeeId: c()
|
|
10157
10179
|
}), g = Vr({
|
|
10158
10180
|
resolver: Mr(m)
|
|
@@ -10166,11 +10188,11 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
10166
10188
|
}).then(() => !0).catch((x) => (Ja(g, x), !1)).finally(() => p("approvalChangeEmployee"))), [u, i, g, d, p, o]), b = async (v) => {
|
|
10167
10189
|
await h(v.employeeId) && (f(l.definitions.changeEmployeeSuccess, "success"), n());
|
|
10168
10190
|
};
|
|
10169
|
-
return /* @__PURE__ */ a.jsxs(
|
|
10170
|
-
/* @__PURE__ */ a.jsx(
|
|
10171
|
-
/* @__PURE__ */ a.jsx($r, { ...g, children: /* @__PURE__ */ a.jsxs(
|
|
10172
|
-
/* @__PURE__ */ a.jsx(
|
|
10173
|
-
/* @__PURE__ */ a.jsx(
|
|
10191
|
+
return /* @__PURE__ */ a.jsxs(pe, { show: e, onHide: () => t(), children: [
|
|
10192
|
+
/* @__PURE__ */ a.jsx(pe.Header, { closeButton: !0, children: /* @__PURE__ */ a.jsx(pe.Title, { children: l.definitions.changeEmployeeTitle }) }),
|
|
10193
|
+
/* @__PURE__ */ a.jsx($r, { ...g, children: /* @__PURE__ */ a.jsxs(xe, { onSubmit: g.handleSubmit(b), noValidate: !0, children: [
|
|
10194
|
+
/* @__PURE__ */ a.jsx(pe.Body, { children: /* @__PURE__ */ a.jsx(s, { formField: "employeeId", defaultSelection: r, label: l.definitions.changeEmployeeNewEmployee, required: !0 }) }),
|
|
10195
|
+
/* @__PURE__ */ a.jsx(pe.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ a.jsx(mt, { type: "submit", children: l.definitions.changeEmployeeConfirm }) })
|
|
10174
10196
|
] }) })
|
|
10175
10197
|
] });
|
|
10176
10198
|
}, gw = ({ level: e, reloadApproval: t, appEmployeeDetail: n, apiPostChangeEmployee: r, EmployeePickerComponent: i }) => {
|
|
@@ -10229,7 +10251,7 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
10229
10251
|
] })
|
|
10230
10252
|
] }, l.id);
|
|
10231
10253
|
}) }) : null }),
|
|
10232
|
-
s && s.length === 0 ? /* @__PURE__ */ a.jsx(
|
|
10254
|
+
s && s.length === 0 ? /* @__PURE__ */ a.jsx(Ke, { variant: "secondary", size: "sm", children: i.delegations.noDelegations }) : null
|
|
10233
10255
|
] });
|
|
10234
10256
|
}, hw = ({ approval: e, reloadApproval: t, appEmployeeDetail: n, apiPostChangeEmployee: r, apiApprovalDelegations: i, EmployeePickerComponent: o }) => {
|
|
10235
10257
|
var l, c;
|
|
@@ -10286,10 +10308,10 @@ const ty = ({ InputContainer: e = en, value: t, onChange: n, debounceMs: r, labe
|
|
|
10286
10308
|
/* @__PURE__ */ a.jsx(L, { variant: "h3", children: n.title }),
|
|
10287
10309
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-1 align-items-center justify-content-start", children: [
|
|
10288
10310
|
/* @__PURE__ */ a.jsx(te, { onClick: () => l(-1), children: /* @__PURE__ */ a.jsx(t, { icon: "chevron-left" }) }),
|
|
10289
|
-
/* @__PURE__ */ a.jsx(
|
|
10311
|
+
/* @__PURE__ */ a.jsx(Qe, { type: "date", withoutLabel: !0, value: r, onChange: (p) => i((p == null ? void 0 : p.toString()) ?? ""), size: "sm", className: "mb-1" }),
|
|
10290
10312
|
/* @__PURE__ */ a.jsx(te, { onClick: () => l(1), children: /* @__PURE__ */ a.jsx(t, { icon: "chevron-right" }) })
|
|
10291
10313
|
] })
|
|
10292
|
-
] }), children: s !== null && s.length < 1 ? /* @__PURE__ */ a.jsx(
|
|
10314
|
+
] }), children: s !== null && s.length < 1 ? /* @__PURE__ */ a.jsx(Ke, { variant: "warning", children: n.noMails }) : /* @__PURE__ */ a.jsxs("div", { className: "d-flex overflow-hidden gap-3 h-100", children: [
|
|
10293
10315
|
/* @__PURE__ */ a.jsx("div", { className: "h-100 overflow-y-auto overflow-x-hidden", style: { minWidth: "260px" }, children: /* @__PURE__ */ a.jsx("div", { className: "list-group", children: s == null ? void 0 : s.map((p) => /* @__PURE__ */ a.jsxs("div", { role: "button", onClick: () => u(p.id), className: _("list-group-item list-group-item-action d-flex gap-3 justify-content-between p-2", { active: c === p.id }), children: [
|
|
10294
10316
|
/* @__PURE__ */ a.jsx(L, { variant: "body2", children: p.subject }),
|
|
10295
10317
|
/* @__PURE__ */ a.jsx(L, { variant: "caption", children: bt(pt(p.date ?? ""), "HH:mm") })
|
|
@@ -10495,7 +10517,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10495
10517
|
}
|
|
10496
10518
|
) });
|
|
10497
10519
|
}, jw = (e, t, n, r) => {
|
|
10498
|
-
const { texts: { reports: i } } = $(X), { prompt: o } = Kd(), { confirm: s } = Dt(), l =
|
|
10520
|
+
const { texts: { reports: i } } = $(X), { prompt: o } = Kd(), { confirm: s } = Dt(), l = Xe(), { user: c } = $(Lt), { startLoading: u, stopLoading: d } = $(xt), { addNotification: p } = tn(), f = R(async (v) => {
|
|
10499
10521
|
u("report-versionSavingAs");
|
|
10500
10522
|
try {
|
|
10501
10523
|
const x = await l.post("/reports/version", v);
|
|
@@ -10579,7 +10601,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10579
10601
|
]);
|
|
10580
10602
|
return { saveAs: g, save: m, archive: h, detach: b };
|
|
10581
10603
|
}, Nw = (e) => {
|
|
10582
|
-
const t =
|
|
10604
|
+
const t = Xe(), { startLoading: n, stopLoading: r } = $(xt);
|
|
10583
10605
|
return { changeEmployeeRights: R(async (o, s) => {
|
|
10584
10606
|
let l = null;
|
|
10585
10607
|
n("reportSharing-addPerson");
|
|
@@ -10615,9 +10637,9 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10615
10637
|
const v = await p(h, !1);
|
|
10616
10638
|
f(v);
|
|
10617
10639
|
}, [p, c, l, f]);
|
|
10618
|
-
return /* @__PURE__ */ a.jsxs(
|
|
10619
|
-
/* @__PURE__ */ a.jsx(
|
|
10620
|
-
/* @__PURE__ */ a.jsxs(
|
|
10640
|
+
return /* @__PURE__ */ a.jsxs(pe, { show: e, onHide: t, children: [
|
|
10641
|
+
/* @__PURE__ */ a.jsx(pe.Header, { closeButton: !0, children: /* @__PURE__ */ a.jsx(pe.Title, { children: l.reportSharing }) }),
|
|
10642
|
+
/* @__PURE__ */ a.jsxs(pe.Body, { children: [
|
|
10621
10643
|
/* @__PURE__ */ a.jsx(L, { variant: "h6", children: l.sharedWith }),
|
|
10622
10644
|
/* @__PURE__ */ a.jsxs(Fn, { variant: "flush", children: [
|
|
10623
10645
|
n && n.length === 0 ? /* @__PURE__ */ a.jsx("div", { className: "px-2 text-muted", children: l.noone.toLowerCase() }) : null,
|
|
@@ -10660,8 +10682,8 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10660
10682
|
flushSync: !0
|
|
10661
10683
|
});
|
|
10662
10684
|
}, [i, g, e, h]), [N, w] = B(!1), y = ae(null), { user: j } = $(Lt), { data: S, reloadData: E } = Be(`/reports/${e}`), { mappings: I } = Sw(c, u), [O, T] = B(void 0), M = R((J) => {
|
|
10663
|
-
const le = J.target.value,
|
|
10664
|
-
x(
|
|
10685
|
+
const le = J.target.value, Ie = le === "" ? null : Number(le);
|
|
10686
|
+
x(Ie);
|
|
10665
10687
|
}, [x]), C = R(async (J) => {
|
|
10666
10688
|
await E(), x(J);
|
|
10667
10689
|
}, [E, x]), { data: P, setData: z, isLoading: F } = Be(`/reports/version/${v}`, {
|
|
@@ -10698,9 +10720,9 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10698
10720
|
}, [m, W, E, P == null ? void 0 : P.name, f, x]);
|
|
10699
10721
|
return U(() => {
|
|
10700
10722
|
var J, le;
|
|
10701
|
-
v === null && x(((J = S == null ? void 0 : S.reportVersions.find((
|
|
10723
|
+
v === null && x(((J = S == null ? void 0 : S.reportVersions.find((Ie) => Ie.isSystem === !0)) == null ? void 0 : J.reportVersionId) ?? ((le = S == null ? void 0 : S.reportVersions[0]) == null ? void 0 : le.reportVersionId) ?? null);
|
|
10702
10724
|
}, [S == null ? void 0 : S.reportVersions, v, x]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10703
|
-
/* @__PURE__ */ a.jsx(Nt, { variant: "fullScreen", title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
|
|
10725
|
+
/* @__PURE__ */ a.jsx(Nt, { variant: "fullScreen", title: /* @__PURE__ */ a.jsxs("div", { className: "d-flex justify-content-start gap-3 align-items-center", children: [
|
|
10704
10726
|
/* @__PURE__ */ a.jsx(L, { variant: "h3", children: t }),
|
|
10705
10727
|
r,
|
|
10706
10728
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
|
|
@@ -10718,7 +10740,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10718
10740
|
ne && !(P != null && P.isSystem) ? /* @__PURE__ */ a.jsx(Ye, { color: "danger", onClick: se, children: f.detach }) : null
|
|
10719
10741
|
] })
|
|
10720
10742
|
] })
|
|
10721
|
-
] }), children: /* @__PURE__ */ a.jsx("div", { className:
|
|
10743
|
+
] }), children: A.data && A.data.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: "h-100 w-100", children: /* @__PURE__ */ a.jsx(ww, { dataSource: A, settings: O, pivotRef: y, enabled: A.data && A.data.length > 0, roomPasportization: p, localization: o, licenseKey: s, hyperlinkColumn: d }) }) : /* @__PURE__ */ a.jsx(Ke, { children: f.emptyReportDataSource }) }),
|
|
10722
10744
|
P !== null ? /* @__PURE__ */ a.jsx(
|
|
10723
10745
|
Dw,
|
|
10724
10746
|
{
|
|
@@ -10777,7 +10799,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10777
10799
|
] })
|
|
10778
10800
|
] }),
|
|
10779
10801
|
!t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10780
|
-
e.length === 0 && /* @__PURE__ */ a.jsx(
|
|
10802
|
+
e.length === 0 && /* @__PURE__ */ a.jsx(Ke, { variant: "info", size: "sm", className: "mt-2", children: s.noMessages }),
|
|
10781
10803
|
/* @__PURE__ */ a.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: u.map((d) => /* @__PURE__ */ a.jsx(Iw, { message: d, onDeleteMessage: n, onClickMessage: r, getIcon: i, getLinksTo: o }, d.id)) })
|
|
10782
10804
|
] })
|
|
10783
10805
|
] });
|
|
@@ -10785,7 +10807,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10785
10807
|
apiGet: "/messageBoard",
|
|
10786
10808
|
apiDelete: "/messageBoard/"
|
|
10787
10809
|
}, UN = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: n = ja.apiGet, apiDelete: r = ja.apiDelete } = ja, getIcon: i, getLinksTo: o }) => {
|
|
10788
|
-
const l =
|
|
10810
|
+
const l = Xe(), [c, u] = B([]), [d, p] = B(!1), [f, m] = B(!1), [g, h] = B(!1), b = R(async () => {
|
|
10789
10811
|
m(!0), await l.get(n).then(({ data: y }) => {
|
|
10790
10812
|
u(y), p(!0), m(!1);
|
|
10791
10813
|
}).catch(() => {
|
|
@@ -10827,7 +10849,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10827
10849
|
if (!c)
|
|
10828
10850
|
return null;
|
|
10829
10851
|
const u = c.eventKey, d = c.children, p = c.className, f = c.onClick;
|
|
10830
|
-
return /* @__PURE__ */ a.jsxs(
|
|
10852
|
+
return /* @__PURE__ */ a.jsxs(ue.Fragment, { children: [
|
|
10831
10853
|
/* @__PURE__ */ a.jsx(l, { ...c, className: _({ active: e === u }, p), onClick: () => {
|
|
10832
10854
|
t(u), f && f(u);
|
|
10833
10855
|
}, vertical: r || i, children: d }),
|
|
@@ -10873,7 +10895,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10873
10895
|
r({ ...e, icon: s, name: c });
|
|
10874
10896
|
}, [r, s, c, e]);
|
|
10875
10897
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10876
|
-
/* @__PURE__ */ a.jsx("td", { className: "align-middle", children: /* @__PURE__ */ a.jsx(
|
|
10898
|
+
/* @__PURE__ */ a.jsx("td", { className: "align-middle", children: /* @__PURE__ */ a.jsx(Qe, { type: "text", maxLength: 20, value: c, onChange: u, className: "d-flex-grow-1", InputContainer: ct, size: "sm" }) }),
|
|
10877
10899
|
/* @__PURE__ */ a.jsx("td", { className: "align-middle", children: /* @__PURE__ */ a.jsx("div", { className: "d-flex justify-content-center align-items-center", children: /* @__PURE__ */ a.jsx(Gc, { icon: s, setIcon: l, IconComponent: t, IconTypeArray: n }) }) }),
|
|
10878
10900
|
/* @__PURE__ */ a.jsx("td", { className: "align-middle", style: { width: "7em" }, children: /* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-2 align-items-center justify-content-end", children: [
|
|
10879
10901
|
d && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -10904,7 +10926,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10904
10926
|
/* @__PURE__ */ a.jsx("th", {})
|
|
10905
10927
|
] }) }),
|
|
10906
10928
|
/* @__PURE__ */ a.jsx("tbody", { children: r == null ? void 0 : r.map((s) => /* @__PURE__ */ a.jsx(Uw, { shortcutLink: s, IconComponent: e, IconTypeArray: t, editShortcutLink: i, deleteShortcutLink: o }, s.id)) })
|
|
10907
|
-
] }) : /* @__PURE__ */ a.jsx(
|
|
10929
|
+
] }) : /* @__PURE__ */ a.jsx(Ke, { variant: "info", size: "sm", children: n.shortcutLinks.addLinksToEditThemHereInfo }) });
|
|
10908
10930
|
}, $a = 5, Hw = "_linkButton_pnlvi_1", Ww = "_linkAddButton_pnlvi_31", zw = "_createLinkRow_pnlvi_39", fn = {
|
|
10909
10931
|
linkButton: Hw,
|
|
10910
10932
|
linkAddButton: Ww,
|
|
@@ -10913,11 +10935,11 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10913
10935
|
const s = vu(), { texts: l } = $(X), [c, u] = B("star-outline"), [d, p] = B(r ? document.title.replace(r, "") : document.title), f = R(async () => {
|
|
10914
10936
|
await n({ icon: c, name: d, url: s.pathname + s.search }), e();
|
|
10915
10937
|
}, [e, n, c, s.pathname, s.search, d]), m = k(() => s.pathname + s.search, [s.pathname, s.search]);
|
|
10916
|
-
return /* @__PURE__ */ a.jsx(
|
|
10938
|
+
return /* @__PURE__ */ a.jsx(pe, { show: t, onHide: e, size: "sm", children: /* @__PURE__ */ a.jsxs("div", { onKeyDown: (g) => {
|
|
10917
10939
|
g.code !== "Escape" && g.stopPropagation();
|
|
10918
10940
|
}, children: [
|
|
10919
|
-
/* @__PURE__ */ a.jsx(
|
|
10920
|
-
/* @__PURE__ */ a.jsxs(
|
|
10941
|
+
/* @__PURE__ */ a.jsx(pe.Header, { closeButton: !0, children: /* @__PURE__ */ a.jsx(pe.Title, { children: l.shortcutLinks.newShortcut }) }),
|
|
10942
|
+
/* @__PURE__ */ a.jsxs(pe.Body, { children: [
|
|
10921
10943
|
/* @__PURE__ */ a.jsxs("div", { className: fn.createLinkRow, children: [
|
|
10922
10944
|
/* @__PURE__ */ a.jsx(L, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.target }),
|
|
10923
10945
|
/* @__PURE__ */ a.jsx("div", { className: "d-flex align-items-middle fw-bold text-muted", children: m.length <= 23 ? m : /* @__PURE__ */ a.jsx(ze, { placement: "bottom", text: m, children: /* @__PURE__ */ a.jsxs("span", { children: [
|
|
@@ -10927,14 +10949,14 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10927
10949
|
] }),
|
|
10928
10950
|
/* @__PURE__ */ a.jsxs("div", { className: fn.createLinkRow, children: [
|
|
10929
10951
|
/* @__PURE__ */ a.jsx(L, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
|
|
10930
|
-
/* @__PURE__ */ a.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ a.jsx(
|
|
10952
|
+
/* @__PURE__ */ a.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ a.jsx(Qe, { type: "text", maxLength: 25, value: d, onChange: p, className: "w-100", InputContainer: Te, withoutLabel: !0 }) })
|
|
10931
10953
|
] }),
|
|
10932
10954
|
/* @__PURE__ */ a.jsxs("div", { className: fn.createLinkRow, children: [
|
|
10933
10955
|
/* @__PURE__ */ a.jsx(L, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
|
|
10934
10956
|
/* @__PURE__ */ a.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ a.jsx(Gc, { icon: c, setIcon: u, IconComponent: i, IconTypeArray: o }) })
|
|
10935
10957
|
] })
|
|
10936
10958
|
] }),
|
|
10937
|
-
/* @__PURE__ */ a.jsx(
|
|
10959
|
+
/* @__PURE__ */ a.jsx(pe.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ a.jsx(mt, { onClick: f, children: l.shortcutLinks.addShortcut }) })
|
|
10938
10960
|
] }) });
|
|
10939
10961
|
}, Kw = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: n, createLink: r }) => {
|
|
10940
10962
|
const { ProjectIconComponent: i, texts: o } = $(X), [s, l] = B(!1), [c] = Xa(s, 100);
|
|
@@ -10949,7 +10971,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
10949
10971
|
o && /* @__PURE__ */ a.jsx(Kw, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: n, createLink: i })
|
|
10950
10972
|
] }) });
|
|
10951
10973
|
}, Xw = (e) => {
|
|
10952
|
-
const t =
|
|
10974
|
+
const t = Xe(), { startLoading: n, stopLoading: r } = $(xt), i = R(async (l) => {
|
|
10953
10975
|
n("submit-createShortcutLink");
|
|
10954
10976
|
try {
|
|
10955
10977
|
await t.post(`/dynamicForms/insert?referenceId=${e}`, l);
|
|
@@ -11018,16 +11040,16 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11018
11040
|
const { texts: { notifCentrum: s } } = $(X), [l, c] = B(null), [u, d] = B(null), [p, f] = B("R"), m = R(() => {
|
|
11019
11041
|
c(null), d(null), t();
|
|
11020
11042
|
}, [t]);
|
|
11021
|
-
return /* @__PURE__ */ a.jsxs(
|
|
11022
|
-
/* @__PURE__ */ a.jsx(
|
|
11023
|
-
/* @__PURE__ */ a.jsxs(
|
|
11043
|
+
return /* @__PURE__ */ a.jsxs(pe, { show: e, onHide: () => m(), children: [
|
|
11044
|
+
/* @__PURE__ */ a.jsx(pe.Header, { closeButton: !0, children: /* @__PURE__ */ a.jsx(pe.Title, { children: s.addNewTarget }) }),
|
|
11045
|
+
/* @__PURE__ */ a.jsxs(pe.Body, { children: [
|
|
11024
11046
|
/* @__PURE__ */ a.jsx(ny, { options: [
|
|
11025
11047
|
{ id: "E", name: s.employee },
|
|
11026
11048
|
{ id: "R", name: s.role }
|
|
11027
11049
|
], value: p, onChange: (g) => f(g), InputContainer: Te }),
|
|
11028
11050
|
p === "E" ? /* @__PURE__ */ a.jsx(i, { InputContainer: Te, label: s.employee, value: { id: (l == null ? void 0 : l.id) ?? null, name: (l == null ? void 0 : l.name) ?? "" }, onSelect: (g) => c({ id: Number(g == null ? void 0 : g.id) ?? null, name: (g == null ? void 0 : g.name) ?? "" }) }) : /* @__PURE__ */ a.jsx(ft, { InputContainer: Te, label: s.role, options: n.map((g) => ({ id: g, name: g })), value: u, onChange: (g) => d((g == null ? void 0 : g.toString()) ?? "") })
|
|
11029
11051
|
] }),
|
|
11030
|
-
/* @__PURE__ */ a.jsx(
|
|
11052
|
+
/* @__PURE__ */ a.jsx(pe.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ a.jsx(mt, { onClick: () => {
|
|
11031
11053
|
r({
|
|
11032
11054
|
templateId: o ?? 0,
|
|
11033
11055
|
targetId: null,
|
|
@@ -11045,7 +11067,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11045
11067
|
/* @__PURE__ */ a.jsx(L, { className: "text-truncate text-primary", variant: "subtitle", children: p.subjectTemplate }),
|
|
11046
11068
|
/* @__PURE__ */ a.jsx(te, { size: "sm", onClick: () => d(!0), children: /* @__PURE__ */ a.jsx(c, { icon: "add" }) })
|
|
11047
11069
|
] }),
|
|
11048
|
-
/* @__PURE__ */ a.jsx("div", { className: "my-2 ps-3 pe-2", children: p.targets.length > 0 ? /* @__PURE__ */ a.jsx(Qw, { targets: p.targets, removeNotifTarget: o }) : /* @__PURE__ */ a.jsx(
|
|
11070
|
+
/* @__PURE__ */ a.jsx("div", { className: "my-2 ps-3 pe-2", children: p.targets.length > 0 ? /* @__PURE__ */ a.jsx(Qw, { targets: p.targets, removeNotifTarget: o }) : /* @__PURE__ */ a.jsx(Ke, { size: "sm", variant: "warning", children: l.noTargets }) })
|
|
11049
11071
|
] }, p.id)) }),
|
|
11050
11072
|
/* @__PURE__ */ a.jsx(Zw, { show: u, onHide: () => d(!1), roles: r ?? [], onAddTarget: i, EmployeePicker: s, templateId: t })
|
|
11051
11073
|
] });
|
|
@@ -11057,22 +11079,22 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11057
11079
|
const u = R(() => {
|
|
11058
11080
|
!o || !l || (r(o, l), t());
|
|
11059
11081
|
}, [l, r, t, o]);
|
|
11060
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children: n && /* @__PURE__ */ a.jsxs(
|
|
11061
|
-
/* @__PURE__ */ a.jsx(
|
|
11062
|
-
/* @__PURE__ */ a.jsxs(
|
|
11063
|
-
/* @__PURE__ */ a.jsxs(
|
|
11064
|
-
/* @__PURE__ */ a.jsx(
|
|
11065
|
-
/* @__PURE__ */ a.jsx(
|
|
11082
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: n && /* @__PURE__ */ a.jsxs(pe, { show: e, onHide: t, size: "lg", scrollable: !0, children: [
|
|
11083
|
+
/* @__PURE__ */ a.jsx(pe.Header, { children: /* @__PURE__ */ a.jsx(pe.Title, { children: i.editTemplate }) }),
|
|
11084
|
+
/* @__PURE__ */ a.jsxs(pe.Body, { style: { minHeight: "50vh" }, children: [
|
|
11085
|
+
/* @__PURE__ */ a.jsxs(xe.Group, { controlId: "subject", children: [
|
|
11086
|
+
/* @__PURE__ */ a.jsx(xe.Label, { children: /* @__PURE__ */ a.jsx(L, { variant: "form-label", className: "text-primary", children: i.subject }) }),
|
|
11087
|
+
/* @__PURE__ */ a.jsx(xe.Control, { value: o ?? "", onChange: (d) => s(d.target.value) })
|
|
11066
11088
|
] }),
|
|
11067
|
-
/* @__PURE__ */ a.jsxs(
|
|
11068
|
-
/* @__PURE__ */ a.jsx(
|
|
11069
|
-
/* @__PURE__ */ a.jsx(
|
|
11089
|
+
/* @__PURE__ */ a.jsxs(xe.Group, { controlId: "text", children: [
|
|
11090
|
+
/* @__PURE__ */ a.jsx(xe.Label, { children: /* @__PURE__ */ a.jsx(L, { variant: "form-label", className: "text-primary", children: i.text }) }),
|
|
11091
|
+
/* @__PURE__ */ a.jsx(xe.Control, { as: "textarea", rows: 10, value: l ?? "", onChange: (d) => c(d.target.value), style: {
|
|
11070
11092
|
resize: "vertical",
|
|
11071
11093
|
minHeight: "400px"
|
|
11072
11094
|
} })
|
|
11073
11095
|
] })
|
|
11074
11096
|
] }),
|
|
11075
|
-
/* @__PURE__ */ a.jsx(
|
|
11097
|
+
/* @__PURE__ */ a.jsx(pe.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ a.jsx(mt, { onClick: () => {
|
|
11076
11098
|
console.log(o), console.log(l), u();
|
|
11077
11099
|
}, children: i.save }) })
|
|
11078
11100
|
] }) });
|
|
@@ -11156,7 +11178,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11156
11178
|
}, EmployeePicker: c }) }),
|
|
11157
11179
|
f && /* @__PURE__ */ a.jsx("div", { className: "h-75 w-75 overflow-hidden border rounded bg-white", children: /* @__PURE__ */ a.jsx("iframe", { title: "notification", className: "w-100 h-100", srcDoc: (g == null ? void 0 : g.message) ?? ((W = P.find((A) => A.id === f)) == null ? void 0 : W.textTemplate) }) }),
|
|
11158
11180
|
f && /* @__PURE__ */ a.jsx("div", { className: "w-25 h-75 overflow-y-scroll", children: O.length > 0 ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
11159
|
-
/* @__PURE__ */ a.jsx(
|
|
11181
|
+
/* @__PURE__ */ a.jsx(Qe, { type: "text", value: x, onChange: (A) => N((A == null ? void 0 : A.toString()) ?? ""), InputContainer: en, label: u.historyLookup, size: "sm", className: "mx-1 mb-1" }),
|
|
11160
11182
|
/* @__PURE__ */ a.jsx("div", { children: O.filter((A) => {
|
|
11161
11183
|
var K;
|
|
11162
11184
|
return x ? (K = A.recipients) == null ? void 0 : K.map((Z) => Z.name).join(",").toLocaleLowerCase().includes(x) : A;
|
|
@@ -11167,7 +11189,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11167
11189
|
/* @__PURE__ */ a.jsx("div", { className: "d-flex gap-1", children: (K = A.recipients) == null ? void 0 : K.map((Z) => /* @__PURE__ */ a.jsx(L, { variant: "caption", children: `${Z.name}` }, Z.email)) })
|
|
11168
11190
|
] }, A.id);
|
|
11169
11191
|
}) })
|
|
11170
|
-
] }) : /* @__PURE__ */ a.jsx(
|
|
11192
|
+
] }) : /* @__PURE__ */ a.jsx(Ke, { variant: "warning", children: "Empty" }) }),
|
|
11171
11193
|
/* @__PURE__ */ a.jsx(tj, { show: b, onHide: () => v(!1), template: P.find((A) => A.id === f) ?? null, onEdit: F })
|
|
11172
11194
|
] })
|
|
11173
11195
|
] });
|
|
@@ -11272,7 +11294,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11272
11294
|
width: 500
|
|
11273
11295
|
}
|
|
11274
11296
|
], [i.row, i.column, i.error]);
|
|
11275
|
-
return e ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
11297
|
+
return e ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(Ke, { variant: e.success ? "success" : "danger", size: "sm", className: "mb-2 p-2", children: /* @__PURE__ */ a.jsxs("div", { className: "d-flex gap-3 align-items-start", children: [
|
|
11276
11298
|
/* @__PURE__ */ a.jsxs("div", { className: "w-100", children: [
|
|
11277
11299
|
/* @__PURE__ */ a.jsx("div", { className: "w-100 text-center", children: e.success ? i.importSuccess : i.importFailed }),
|
|
11278
11300
|
e.success && ((l = e.data) != null && l.added || (c = e.data) != null && c.updated || (u = e.data) != null && u.deleted) ? /* @__PURE__ */ a.jsx("div", { className: "d-flex justify-content-center mt-2", children: /* @__PURE__ */ a.jsxs("div", { className: "list-group", children: [
|
|
@@ -11357,7 +11379,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11357
11379
|
await i([{ fileName: e + ".json", items: [{ key: n, value: l }] }]), await r();
|
|
11358
11380
|
}, [n, r, i, e, l]), d = k(() => l !== s, [s, l]);
|
|
11359
11381
|
return /* @__PURE__ */ a.jsxs("div", { className: "d-flex", children: [
|
|
11360
|
-
/* @__PURE__ */ a.jsx(
|
|
11382
|
+
/* @__PURE__ */ a.jsx(Qe, { label: e + n, type: "text", value: l, onChange: (p) => {
|
|
11361
11383
|
c(typeof p != "string" ? "" : p);
|
|
11362
11384
|
}, InputContainer: Te, withoutLabel: !0, className: "flex-grow-1" }),
|
|
11363
11385
|
d ? /* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
@@ -11439,7 +11461,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11439
11461
|
E(u);
|
|
11440
11462
|
}, [E, u, j]), U(() => {
|
|
11441
11463
|
I();
|
|
11442
|
-
}, [I]), s === void 0 ? /* @__PURE__ */ a.jsx(Nt, { children: /* @__PURE__ */ a.jsxs(
|
|
11464
|
+
}, [I]), s === void 0 ? /* @__PURE__ */ a.jsx(Nt, { children: /* @__PURE__ */ a.jsxs(Ke, { variant: "danger", className: "fw-bold", children: [
|
|
11443
11465
|
l.cantRunLocalizationSettings,
|
|
11444
11466
|
/* @__PURE__ */ a.jsx("br", {}),
|
|
11445
11467
|
/* @__PURE__ */ a.jsx("br", {}),
|
|
@@ -11455,7 +11477,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11455
11477
|
})), value: m, onChange: (C) => typeof C != "number" ? g(C) : null, size: "sm", label: l.localizationFile, className: Ge.fileSelect, noSortOptions: !0 }),
|
|
11456
11478
|
/* @__PURE__ */ a.jsxs("div", { className: _(Ge.searchBox, "d-flex align-items-center gap-2 border rounded"), children: [
|
|
11457
11479
|
/* @__PURE__ */ a.jsx(c, { icon: "search", className: "text-muted", size: 18, iconProps: { className: "mt- me-n4" } }),
|
|
11458
|
-
/* @__PURE__ */ a.jsx(
|
|
11480
|
+
/* @__PURE__ */ a.jsx(Qe, { type: "text", value: h, onChange: (C) => b(typeof C == "string" ? C : ""), size: "sm", showClearIcon: h !== "", withoutLabel: !0, placeholder: "vyhledávat...", className: "placeholder-muted bg-transparent border-0 my-0 py-0 w-100" })
|
|
11459
11481
|
] }),
|
|
11460
11482
|
/* @__PURE__ */ a.jsxs(za, { children: [
|
|
11461
11483
|
/* @__PURE__ */ a.jsx(Sr, { cKey: "export", hideOn: "always", onClick: r, icon: /* @__PURE__ */ a.jsx(eu, { fileExtension: "xls" }), children: l.xlsExport }),
|
|
@@ -11468,7 +11490,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11468
11490
|
T ? /* @__PURE__ */ a.jsx(ft, { options: w, value: null, onChange: (C) => N((P) => (typeof C == "string" && P.add(C), new Set(P))), size: "sm", label: l.addLanguage, InputContainer: Te, className: _(Ge.lngSelect, Ge.addLng) }) : null
|
|
11469
11491
|
] }),
|
|
11470
11492
|
/* @__PURE__ */ a.jsxs("div", { className: _(Ge.subgrid, Ge.tableBody), children: [
|
|
11471
|
-
y.length === 0 || j.length === 0 ? /* @__PURE__ */ a.jsx(
|
|
11493
|
+
y.length === 0 || j.length === 0 ? /* @__PURE__ */ a.jsx(Ke, { variant: "warning", className: _(Ge.tableFullWidth, Ge.emptyTableAlert, "my-n1"), children: y.length === 0 ? l.noDataLoaded : j.length === 0 ? l.noDataFiltered : null }) : null,
|
|
11472
11494
|
j.slice(hr * (u - 1), hr * u).map((C) => /* @__PURE__ */ a.jsxs("div", { className: _(Ge.subgrid, Ge.tableItem), children: [
|
|
11473
11495
|
/* @__PURE__ */ a.jsx(L, { variant: "form-label", children: C.key }),
|
|
11474
11496
|
Array.from(v).map((P) => /* @__PURE__ */ a.jsx(lj, { localizationKey: C.key, lngsData: p, selLng: P, reloadData: O, saveChanges: i }, P))
|
|
@@ -11508,7 +11530,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11508
11530
|
var n;
|
|
11509
11531
|
return ((n = t == null ? void 0 : t.customNameBuilder) == null ? void 0 : n.call(t, e)) ?? e.name;
|
|
11510
11532
|
}, zc = (e, t, n, r, i) => {
|
|
11511
|
-
const o =
|
|
11533
|
+
const o = Xe(), [s, l] = B(!1), [c, u] = B([]), d = e === "", p = R(() => {
|
|
11512
11534
|
u([]), !(t.length < Is) && (l(!0), o.get(Ia(n, {
|
|
11513
11535
|
path: { query: t },
|
|
11514
11536
|
query: {
|
|
@@ -11609,11 +11631,11 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11609
11631
|
return U(() => {
|
|
11610
11632
|
var y;
|
|
11611
11633
|
f(""), n === r && ((y = N.current) == null || y.focus());
|
|
11612
|
-
}, [n, r]), /* @__PURE__ */ a.jsx(
|
|
11634
|
+
}, [n, r]), /* @__PURE__ */ a.jsx(xe, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (y) => {
|
|
11613
11635
|
y.preventDefault(), y.stopPropagation(), g.flush(), x(!1), m.length > 2 && t(`/search?query=${m}${d && d.key && `&type=${d == null ? void 0 : d.key}`}`);
|
|
11614
11636
|
}, children: /* @__PURE__ */ a.jsxs(wr, { className: _(Wt.inputGroup, i), children: [
|
|
11615
11637
|
/* @__PURE__ */ a.jsx(wr.Text, { className: _("p-1 rounded", Wt.inputGroupText, Wt.left), children: /* @__PURE__ */ a.jsx(Ej, { searchTypes: e, selectedType: d, setSelectedType: u }) }),
|
|
11616
|
-
/* @__PURE__ */ a.jsx(
|
|
11638
|
+
/* @__PURE__ */ a.jsx(xe.Control, { ref: N, placeholder: l.searchPlaceholder, type: "text", size: "sm", className: _("luminus-app-search-input", Wt.input), value: p, onChange: (y) => {
|
|
11617
11639
|
var j;
|
|
11618
11640
|
return f(((j = y.target) == null ? void 0 : j.value) ?? "");
|
|
11619
11641
|
}, onFocus: () => b.length > 0 && x(!0) }),
|
|
@@ -11653,7 +11675,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11653
11675
|
const { texts: { userSettings: e } } = $(X), [t, n] = $n("file-download-try-opening", !0);
|
|
11654
11676
|
return /* @__PURE__ */ a.jsx(Qt, { collapsible: !0, title: e.downloads, defaultOpen: !0, children: /* @__PURE__ */ a.jsx(Xn, { type: "switch", value: t === void 0 ? !0 : t, onChange: n, label: e.tryOpenFileLabel }) });
|
|
11655
11677
|
}, Mj = ({ show: e, handleClose: t, onConfirm: n, apiCreateBackup: r }) => {
|
|
11656
|
-
const { texts: { userSettings: i } } = $(X), { zStringRequired: o } = Lr(), { addNotification: s } = tn(), l =
|
|
11678
|
+
const { texts: { userSettings: i } } = $(X), { zStringRequired: o } = Lr(), { addNotification: s } = tn(), l = Xe(), { startLoading: c, stopLoading: u } = $(xt), [d, p] = B(null), f = dn.object({
|
|
11657
11679
|
name: o()
|
|
11658
11680
|
}), m = Vr({ resolver: Mr(f) }), g = R(async (b, v) => (c("localStorageSettingPost"), l.post(r, {
|
|
11659
11681
|
name: b,
|
|
@@ -11663,14 +11685,14 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11663
11685
|
};
|
|
11664
11686
|
return U(() => {
|
|
11665
11687
|
e && p(ju());
|
|
11666
|
-
}, [e]), /* @__PURE__ */ a.jsxs(
|
|
11667
|
-
/* @__PURE__ */ a.jsx(
|
|
11668
|
-
/* @__PURE__ */ a.jsx($r, { ...m, children: /* @__PURE__ */ a.jsxs(
|
|
11669
|
-
/* @__PURE__ */ a.jsxs(
|
|
11670
|
-
/* @__PURE__ */ a.jsx(
|
|
11688
|
+
}, [e]), /* @__PURE__ */ a.jsxs(pe, { show: e, onHide: () => t(), children: [
|
|
11689
|
+
/* @__PURE__ */ a.jsx(pe.Header, { closeButton: !0, children: /* @__PURE__ */ a.jsx(pe.Title, { children: i.localStorageCreateBackup }) }),
|
|
11690
|
+
/* @__PURE__ */ a.jsx($r, { ...m, children: /* @__PURE__ */ a.jsxs(xe, { onSubmit: m.handleSubmit(h), noValidate: !0, children: [
|
|
11691
|
+
/* @__PURE__ */ a.jsxs(pe.Body, { children: [
|
|
11692
|
+
/* @__PURE__ */ a.jsx(Ke, { variant: "info", size: "sm", children: i.localStorageCreateBackupInfo(Object.keys(d || {}).length) }),
|
|
11671
11693
|
/* @__PURE__ */ a.jsx(gn, { required: !0, label: i.localStorageCreateBackupName, formField: "name", type: "text" })
|
|
11672
11694
|
] }),
|
|
11673
|
-
/* @__PURE__ */ a.jsx(
|
|
11695
|
+
/* @__PURE__ */ a.jsx(pe.Footer, { className: "justify-content-end", children: /* @__PURE__ */ a.jsx(mt, { type: "submit", children: i.localStorageCreateBackupSave }) })
|
|
11674
11696
|
] }) })
|
|
11675
11697
|
] });
|
|
11676
11698
|
}, br = {
|
|
@@ -11678,7 +11700,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11678
11700
|
apiCreateBackup: "/localStorageSettings",
|
|
11679
11701
|
apiDeleteBackup: "/localStorageSettings"
|
|
11680
11702
|
}, tD = ({ apiUrls: { apiGetBackups: e = br.apiGetBackups, apiCreateBackup: t = br.apiCreateBackup, apiDeleteBackup: n = br.apiDeleteBackup } = br }) => {
|
|
11681
|
-
const { ProjectIconComponent: r, texts: { userSettings: i } } = $(X), { confirm: o } = Dt(), s =
|
|
11703
|
+
const { ProjectIconComponent: r, texts: { userSettings: i } } = $(X), { confirm: o } = Dt(), s = Xe(), { startLoading: l, stopLoading: c } = $(xt), { addNotification: u } = tn(), [d, p] = B(!1), { data: f, setData: m, reloadData: g } = Be(e), h = R(async (x) => (l("localStorageSettingDelete"), s.delete(`${n}/${x}`).then(() => !0).catch(() => !1).finally(() => c("localStorageSettingDelete"))), [s, n, l, c]), b = R(async (x) => {
|
|
11682
11704
|
await o(i.localStorageDeleteBackupConfirm) && await h(x) && (u(i.localStorageDeleteBackupSuccess, "success"), m((N) => (N == null ? void 0 : N.filter((w) => w.id !== x)) ?? null));
|
|
11683
11705
|
}, [o, i, h, u, m]), v = R(async (x) => {
|
|
11684
11706
|
x.setting && await o(i.localStorageLoadBackup) && (Nu(x.setting) ? u(i.localStorageLoadBackupSuccess, "success") : u(i.localStorageLoadBackupError, "danger"));
|
|
@@ -11702,7 +11724,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11702
11724
|
]
|
|
11703
11725
|
},
|
|
11704
11726
|
N
|
|
11705
|
-
)) }) : f ? /* @__PURE__ */ a.jsx(
|
|
11727
|
+
)) }) : f ? /* @__PURE__ */ a.jsx(Ke, { variant: "secondary", size: "sm", children: i.localStorageNoBackups }) : null,
|
|
11706
11728
|
/* @__PURE__ */ a.jsx(Mj, { show: d, handleClose: () => p(!1), onConfirm: () => {
|
|
11707
11729
|
p(!1), g();
|
|
11708
11730
|
}, apiCreateBackup: t })
|
|
@@ -11712,7 +11734,7 @@ e.label === "", js = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ns =
|
|
|
11712
11734
|
return /* @__PURE__ */ a.jsx(Qt, { collapsible: !0, title: e.searchSettings, defaultOpen: !0, children: /* @__PURE__ */ a.jsx(Xn, { type: "switch", value: t === void 0 ? !0 : t, onChange: n, label: e.searchSettingsUseAsterisk }) });
|
|
11713
11735
|
};
|
|
11714
11736
|
export {
|
|
11715
|
-
|
|
11737
|
+
Ke as Alert,
|
|
11716
11738
|
cx as AlertItem,
|
|
11717
11739
|
Jj as ApiFileDownloadButton,
|
|
11718
11740
|
QN as AppSearch,
|
|
@@ -11823,7 +11845,7 @@ export {
|
|
|
11823
11845
|
Tw as TabPanel,
|
|
11824
11846
|
Vc as Tabs,
|
|
11825
11847
|
sN as TextAreaInput,
|
|
11826
|
-
|
|
11848
|
+
Qe as TextInput,
|
|
11827
11849
|
yx as Timeline,
|
|
11828
11850
|
bN as TypedFormGroup,
|
|
11829
11851
|
L as Typography,
|