react-luminus-components 1.4.5 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/common/Timeline/Timeline.d.ts +2 -1
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +557 -545
- package/dist/models/api/approval/ApprovalTimelineModel.d.ts +2 -0
- package/dist/models/texts/ApprovalTexts.d.ts +2 -0
- package/dist/models/types/TimelineStep.d.ts +1 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { j as s, c as
|
|
1
|
+
import { j as s, c as I, t as Te, s as po, g as fo, m as uc, d as Xr, a as pc, b as fc, e as gt, f as va, h as gc, i as vc, k as mc, l as hc, n as bc, o as xc, p as yc, T as Qi, q as Zi, r as go, E as wc, u as es, v as ma, w as ts, x as Dc, y as _e, z as ha, F as rs, A as Nc, B as Sc, C as Cc, D as Ec, M as jc, G as Ic, H as Oc, I as _c, J as Pc, K as Tc, L as ea, N as Ac, O as Rc, P as ce, Q as hr, R as kc, S as Bc, U as Mc, V as ns, W as Lc, X as Lt, Y as le, Z as ba, _ as Oe, $ as xa, a0 as Fc, a1 as ut, a2 as ht, a3 as $e, a4 as pn, a5 as Q, a6 as fn, a7 as Vc, a8 as $c, a9 as Gc, aa as as, ab as Wc, ac as Qt, ad as Zt, ae as _r, af as tt, ag as Uc, ah as Hc, ai as zc, aj as lt, ak as ya, al as qc, am as it, an as Yc, ao as Kc, ap as en, aq as te, ar as os, as as Xc, at as Jc, au as Qc, av as is, aw as Zc, ax as ed, ay as St, az as td, aA as Ge, aB as rd, aC as nd, aD as ad, aE as Ct, aF as od, aG as ss, aH as id, aI as Pr, aJ as wa, aK as Da, aL as ls, aM as Na, aN as cs, aO as ds, aP as Je, aQ as bt, aR as sd, aS as ld, aT as xt, aU as et, aV as cd, aW as Ft, aX as dd, aY as ud, aZ as tn, a_ as er, a$ as Sa, b0 as Tr, b1 as pd, b2 as Cn, b3 as fd, b4 as Ut, b5 as gd, b6 as vd, b7 as Ca, b8 as gn, b9 as us, ba as rn, bb as Ea, bc as md, bd as ps, be as Vr, bf as Et, bg as $t, bh as hd, bi as bd, bj as fs, bk as En, bl as xd, bm as yd, bn as vo, bo as wd, bp as Dd, bq as Nd, br as Sd, bs as gs } from "./ShortcutLinksContext-BM6qftLD.js";
|
|
2
2
|
import { bv as sD, bw as lD, bt as cD, bu as dD } from "./ShortcutLinksContext-BM6qftLD.js";
|
|
3
3
|
import * as Ne from "react";
|
|
4
|
-
import ie, { useCallback as P, useMemo as V, useState as L, useRef as ee, useEffect as W, useContext as q, useId as Cd, Component as Ed, isValidElement as mo, Suspense as
|
|
4
|
+
import ie, { useCallback as P, useMemo as V, useState as L, useRef as ee, useEffect as W, useContext as q, useId as Cd, Component as Ed, isValidElement as mo, Suspense as jd, useLayoutEffect as ja, useReducer as Id, Fragment as Od } from "react";
|
|
5
5
|
import { c as ct, L as ho, F as _d } from "./FormDisabledProvider-BlLJQjAY.js";
|
|
6
6
|
import { InteractionType as Pd } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as Td } from "@azure/msal-react";
|
|
8
8
|
import { useNavigate as vn, Link as nt, Navigate as $r, generatePath as br, useParams as vs, useSearchParams as Ad, useLocation as Rd } from "react-router-dom";
|
|
9
9
|
import xr, { unstable_batchedUpdates as kd } from "react-dom";
|
|
10
|
-
import { useFormContext as
|
|
10
|
+
import { useFormContext as jt, Controller as Ia, useForm as Bd, FormProvider as Md } from "react-hook-form";
|
|
11
11
|
import { Pivot as Ld } from "react-flexmonster";
|
|
12
12
|
import { u as Fd, a as Vd, b as ms, c as $d } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
|
|
13
13
|
import { u as st } from "./useGetApiData-BNEUNBJx.js";
|
|
14
|
-
import { l as
|
|
14
|
+
import { l as fr } from "./numberUtils-Bwf8nio8.js";
|
|
15
15
|
const uw = ({ fileLoader: e, fileName: t, children: r }) => {
|
|
16
16
|
const n = P(async () => {
|
|
17
17
|
var l, c;
|
|
@@ -22,10 +22,10 @@ const uw = ({ fileLoader: e, fileName: t, children: r }) => {
|
|
|
22
22
|
i.href = o, i.setAttribute("download", t), (l = document.body) == null || l.appendChild(i), i.click(), (c = document.body) == null || c.removeChild(i);
|
|
23
23
|
}, [e, t]);
|
|
24
24
|
return /* @__PURE__ */ s.jsx("div", { role: "button", onClick: n, children: r });
|
|
25
|
-
}, Gd = ({ className: e, size: t, ...r }) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
26
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
27
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
28
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
25
|
+
}, Gd = ({ className: e, size: t, ...r }) => /* @__PURE__ */ s.jsxs("div", { className: I("luminus-loading", ct.loading, ct.loadingBlock, t === "line" ? ct.sizeLine : void 0, t === "fill" ? ct.sizeFill : void 0, e), ...r, children: [
|
|
26
|
+
/* @__PURE__ */ s.jsx("div", { className: I("spinner-grow", ct.spinnerGrow, "text-primary"), role: "status" }),
|
|
27
|
+
/* @__PURE__ */ s.jsx("div", { className: I("spinner-grow", ct.spinnerGrow, "text-primary", ct.second), role: "status" }),
|
|
28
|
+
/* @__PURE__ */ s.jsx("div", { className: I("spinner-grow", ct.spinnerGrow, "text-primary", ct.third), role: "status" })
|
|
29
29
|
] });
|
|
30
30
|
function Wd(e, t) {
|
|
31
31
|
const r = Te(e), n = Te(t), a = r.getTime() - n.getTime();
|
|
@@ -39,7 +39,7 @@ function xo(e) {
|
|
|
39
39
|
const t = Te(e);
|
|
40
40
|
return Math.trunc(t.getMonth() / 3) + 1;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function jn(e, t) {
|
|
43
43
|
const r = Te(e), n = Te(t), a = r.getFullYear() - n.getFullYear(), o = xo(r) - xo(n);
|
|
44
44
|
return a * 4 + o;
|
|
45
45
|
}
|
|
@@ -47,7 +47,7 @@ function yo(e, t, r) {
|
|
|
47
47
|
const n = po(e, r), a = po(t, r), o = +n - fo(n), i = +a - fo(a);
|
|
48
48
|
return Math.round((o - i) / uc);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function In(e, t) {
|
|
51
51
|
const r = Te(e), n = Te(t);
|
|
52
52
|
return r.getFullYear() - n.getFullYear();
|
|
53
53
|
}
|
|
@@ -113,10 +113,10 @@ function zd(e, t, r) {
|
|
|
113
113
|
let n = 0, a;
|
|
114
114
|
const o = Te(e), i = Te(t);
|
|
115
115
|
if (r != null && r.unit)
|
|
116
|
-
a = r == null ? void 0 : r.unit, a === "second" ? n = On(o, i) : a === "minute" ? n = No(o, i) : a === "hour" ? n = Do(o, i) : a === "day" ? n = Xr(o, i) : a === "week" ? n = yo(o, i) : a === "month" ? n = bo(o, i) : a === "quarter" ? n =
|
|
116
|
+
a = r == null ? void 0 : r.unit, a === "second" ? n = On(o, i) : a === "minute" ? n = No(o, i) : a === "hour" ? n = Do(o, i) : a === "day" ? n = Xr(o, i) : a === "week" ? n = yo(o, i) : a === "month" ? n = bo(o, i) : a === "quarter" ? n = jn(o, i) : a === "year" && (n = In(o, i));
|
|
117
117
|
else {
|
|
118
118
|
const c = On(o, i);
|
|
119
|
-
Math.abs(c) < gc ? (n = On(o, i), a = "second") : Math.abs(c) < vc ? (n = No(o, i), a = "minute") : Math.abs(c) < mc && Math.abs(Xr(o, i)) < 1 ? (n = Do(o, i), a = "hour") : Math.abs(c) < hc && (n = Xr(o, i)) && Math.abs(n) < 7 ? a = "day" : Math.abs(c) < bc ? (n = yo(o, i), a = "week") : Math.abs(c) < xc ? (n = bo(o, i), a = "month") : Math.abs(c) < yc &&
|
|
119
|
+
Math.abs(c) < gc ? (n = On(o, i), a = "second") : Math.abs(c) < vc ? (n = No(o, i), a = "minute") : Math.abs(c) < mc && Math.abs(Xr(o, i)) < 1 ? (n = Do(o, i), a = "hour") : Math.abs(c) < hc && (n = Xr(o, i)) && Math.abs(n) < 7 ? a = "day" : Math.abs(c) < bc ? (n = yo(o, i), a = "week") : Math.abs(c) < xc ? (n = bo(o, i), a = "month") : Math.abs(c) < yc && jn(o, i) < 4 ? (n = jn(o, i), a = "quarter") : (n = In(o, i), a = "year");
|
|
120
120
|
}
|
|
121
121
|
return new Intl.RelativeTimeFormat(r == null ? void 0 : r.locale, {
|
|
122
122
|
localeMatcher: r == null ? void 0 : r.localeMatcher,
|
|
@@ -134,7 +134,7 @@ function ra(e, t) {
|
|
|
134
134
|
const r = Te(e);
|
|
135
135
|
return isNaN(+r) ? va(e, NaN) : (r.setFullYear(t), r);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function cr(...e) {
|
|
138
138
|
return e.filter((t) => t != null).reduce((t, r) => {
|
|
139
139
|
if (typeof r != "function")
|
|
140
140
|
throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
@@ -175,16 +175,16 @@ const Xd = {
|
|
|
175
175
|
getDimensionValue: g = Kd,
|
|
176
176
|
...v
|
|
177
177
|
}, b) => {
|
|
178
|
-
const h = typeof l == "function" ? l() : l, m = V(() =>
|
|
178
|
+
const h = typeof l == "function" ? l() : l, m = V(() => cr((S) => {
|
|
179
179
|
S.style[h] = "0";
|
|
180
|
-
}, e), [h, e]), x = V(() =>
|
|
181
|
-
const
|
|
182
|
-
S.style[h] = `${S[
|
|
183
|
-
}, t), [h, t]), D = V(() =>
|
|
180
|
+
}, e), [h, e]), x = V(() => cr((S) => {
|
|
181
|
+
const j = `scroll${h[0].toUpperCase()}${h.slice(1)}`;
|
|
182
|
+
S.style[h] = `${S[j]}px`;
|
|
183
|
+
}, t), [h, t]), D = V(() => cr((S) => {
|
|
184
184
|
S.style[h] = null;
|
|
185
|
-
}, r), [h, r]), N = V(() =>
|
|
185
|
+
}, r), [h, r]), N = V(() => cr((S) => {
|
|
186
186
|
S.style[h] = `${g(h, S)}px`, Dc(S);
|
|
187
|
-
}, n), [n, g, h]), y = V(() =>
|
|
187
|
+
}, n), [n, g, h]), y = V(() => cr((S) => {
|
|
188
188
|
S.style[h] = null;
|
|
189
189
|
}, a), [h, a]);
|
|
190
190
|
return /* @__PURE__ */ s.jsx(Qi, {
|
|
@@ -203,9 +203,9 @@ const Xd = {
|
|
|
203
203
|
mountOnEnter: d,
|
|
204
204
|
unmountOnExit: u,
|
|
205
205
|
appear: f,
|
|
206
|
-
children: (S,
|
|
207
|
-
...
|
|
208
|
-
className:
|
|
206
|
+
children: (S, j) => /* @__PURE__ */ ie.cloneElement(i, {
|
|
207
|
+
...j,
|
|
208
|
+
className: I(o, i.props.className, Xd[S], h === "width" && "collapse-horizontal")
|
|
209
209
|
})
|
|
210
210
|
});
|
|
211
211
|
}), Pa = /* @__PURE__ */ Ne.forwardRef(({
|
|
@@ -215,7 +215,7 @@ const Xd = {
|
|
|
215
215
|
...n
|
|
216
216
|
}, a) => (t = _e(t, "card-body"), /* @__PURE__ */ s.jsx(r, {
|
|
217
217
|
ref: a,
|
|
218
|
-
className:
|
|
218
|
+
className: I(e, t),
|
|
219
219
|
...n
|
|
220
220
|
})));
|
|
221
221
|
Pa.displayName = "CardBody";
|
|
@@ -226,7 +226,7 @@ const bs = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
226
226
|
...n
|
|
227
227
|
}, a) => (t = _e(t, "card-footer"), /* @__PURE__ */ s.jsx(r, {
|
|
228
228
|
ref: a,
|
|
229
|
-
className:
|
|
229
|
+
className: I(e, t),
|
|
230
230
|
...n
|
|
231
231
|
})));
|
|
232
232
|
bs.displayName = "CardFooter";
|
|
@@ -247,7 +247,7 @@ const ys = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
247
247
|
children: /* @__PURE__ */ s.jsx(r, {
|
|
248
248
|
ref: a,
|
|
249
249
|
...n,
|
|
250
|
-
className:
|
|
250
|
+
className: I(t, o)
|
|
251
251
|
})
|
|
252
252
|
});
|
|
253
253
|
});
|
|
@@ -264,7 +264,7 @@ const ws = /* @__PURE__ */ Ne.forwardRef(
|
|
|
264
264
|
const i = _e(e, "card-img");
|
|
265
265
|
return /* @__PURE__ */ s.jsx(n, {
|
|
266
266
|
ref: o,
|
|
267
|
-
className:
|
|
267
|
+
className: I(r ? `${i}-${r}` : i, t),
|
|
268
268
|
...a
|
|
269
269
|
});
|
|
270
270
|
}
|
|
@@ -277,7 +277,7 @@ const Ds = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
277
277
|
...n
|
|
278
278
|
}, a) => (t = _e(t, "card-img-overlay"), /* @__PURE__ */ s.jsx(r, {
|
|
279
279
|
ref: a,
|
|
280
|
-
className:
|
|
280
|
+
className: I(e, t),
|
|
281
281
|
...n
|
|
282
282
|
})));
|
|
283
283
|
Ds.displayName = "CardImgOverlay";
|
|
@@ -288,7 +288,7 @@ const Ns = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
288
288
|
...n
|
|
289
289
|
}, a) => (t = _e(t, "card-link"), /* @__PURE__ */ s.jsx(r, {
|
|
290
290
|
ref: a,
|
|
291
|
-
className:
|
|
291
|
+
className: I(e, t),
|
|
292
292
|
...n
|
|
293
293
|
})));
|
|
294
294
|
Ns.displayName = "CardLink";
|
|
@@ -299,7 +299,7 @@ const Jd = ha("h6"), Ss = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
299
299
|
...n
|
|
300
300
|
}, a) => (t = _e(t, "card-subtitle"), /* @__PURE__ */ s.jsx(r, {
|
|
301
301
|
ref: a,
|
|
302
|
-
className:
|
|
302
|
+
className: I(e, t),
|
|
303
303
|
...n
|
|
304
304
|
})));
|
|
305
305
|
Ss.displayName = "CardSubtitle";
|
|
@@ -310,7 +310,7 @@ const Cs = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
310
310
|
...n
|
|
311
311
|
}, a) => (t = _e(t, "card-text"), /* @__PURE__ */ s.jsx(r, {
|
|
312
312
|
ref: a,
|
|
313
|
-
className:
|
|
313
|
+
className: I(e, t),
|
|
314
314
|
...n
|
|
315
315
|
})));
|
|
316
316
|
Cs.displayName = "CardText";
|
|
@@ -321,11 +321,11 @@ const Qd = ha("h5"), Es = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
321
321
|
...n
|
|
322
322
|
}, a) => (t = _e(t, "card-title"), /* @__PURE__ */ s.jsx(r, {
|
|
323
323
|
ref: a,
|
|
324
|
-
className:
|
|
324
|
+
className: I(e, t),
|
|
325
325
|
...n
|
|
326
326
|
})));
|
|
327
327
|
Es.displayName = "CardTitle";
|
|
328
|
-
const
|
|
328
|
+
const js = /* @__PURE__ */ Ne.forwardRef(({
|
|
329
329
|
bsPrefix: e,
|
|
330
330
|
className: t,
|
|
331
331
|
bg: r,
|
|
@@ -341,14 +341,14 @@ const Is = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
341
341
|
return /* @__PURE__ */ s.jsx(l, {
|
|
342
342
|
ref: p,
|
|
343
343
|
...c,
|
|
344
|
-
className:
|
|
344
|
+
className: I(t, d, r && `bg-${r}`, n && `text-${n}`, a && `border-${a}`),
|
|
345
345
|
children: o ? /* @__PURE__ */ s.jsx(Pa, {
|
|
346
346
|
children: i
|
|
347
347
|
}) : i
|
|
348
348
|
});
|
|
349
349
|
});
|
|
350
|
-
|
|
351
|
-
const So = Object.assign(
|
|
350
|
+
js.displayName = "Card";
|
|
351
|
+
const So = Object.assign(js, {
|
|
352
352
|
Img: ws,
|
|
353
353
|
Title: Es,
|
|
354
354
|
Subtitle: Ss,
|
|
@@ -365,7 +365,7 @@ const So = Object.assign(Is, {
|
|
|
365
365
|
...n
|
|
366
366
|
}, a) => (t = _e(t, "input-group-text"), /* @__PURE__ */ s.jsx(r, {
|
|
367
367
|
ref: a,
|
|
368
|
-
className:
|
|
368
|
+
className: I(e, t),
|
|
369
369
|
...n
|
|
370
370
|
})));
|
|
371
371
|
mn.displayName = "InputGroupText";
|
|
@@ -379,7 +379,7 @@ const Zd = (e) => /* @__PURE__ */ s.jsx(mn, {
|
|
|
379
379
|
type: "radio",
|
|
380
380
|
...e
|
|
381
381
|
})
|
|
382
|
-
}),
|
|
382
|
+
}), Is = /* @__PURE__ */ Ne.forwardRef(({
|
|
383
383
|
bsPrefix: e,
|
|
384
384
|
size: t,
|
|
385
385
|
hasValidation: r,
|
|
@@ -395,12 +395,12 @@ const Zd = (e) => /* @__PURE__ */ s.jsx(mn, {
|
|
|
395
395
|
children: /* @__PURE__ */ s.jsx(a, {
|
|
396
396
|
ref: i,
|
|
397
397
|
...o,
|
|
398
|
-
className:
|
|
398
|
+
className: I(n, e, t && `${e}-${t}`, r && "has-validation")
|
|
399
399
|
})
|
|
400
400
|
});
|
|
401
401
|
});
|
|
402
|
-
|
|
403
|
-
const Jr = Object.assign(
|
|
402
|
+
Is.displayName = "InputGroup";
|
|
403
|
+
const Jr = Object.assign(Is, {
|
|
404
404
|
Text: mn,
|
|
405
405
|
Radio: eu,
|
|
406
406
|
Checkbox: Zd
|
|
@@ -467,7 +467,7 @@ const nu = ru({
|
|
|
467
467
|
...n
|
|
468
468
|
}, a) => (t = _e(t, "offcanvas-body"), /* @__PURE__ */ s.jsx(r, {
|
|
469
469
|
ref: a,
|
|
470
|
-
className:
|
|
470
|
+
className: I(e, t),
|
|
471
471
|
...n
|
|
472
472
|
})));
|
|
473
473
|
Os.displayName = "OffcanvasBody";
|
|
@@ -494,7 +494,7 @@ const au = {
|
|
|
494
494
|
childRef: r.ref,
|
|
495
495
|
children: (p, d) => /* @__PURE__ */ Ne.cloneElement(r, {
|
|
496
496
|
...d,
|
|
497
|
-
className:
|
|
497
|
+
className: I(t, r.props.className, (p === ma || p === es) && `${e}-toggling`, au[p])
|
|
498
498
|
})
|
|
499
499
|
})));
|
|
500
500
|
_s.displayName = "OffcanvasToggling";
|
|
@@ -507,7 +507,7 @@ const Ps = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
507
507
|
}, o) => (e = _e(e, "offcanvas-header"), /* @__PURE__ */ s.jsx(Cc, {
|
|
508
508
|
ref: o,
|
|
509
509
|
...a,
|
|
510
|
-
className:
|
|
510
|
+
className: I(t, e),
|
|
511
511
|
closeLabel: r,
|
|
512
512
|
closeButton: n
|
|
513
513
|
})));
|
|
@@ -519,7 +519,7 @@ const ou = ha("h5"), Ts = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
519
519
|
...n
|
|
520
520
|
}, a) => (t = _e(t, "offcanvas-title"), /* @__PURE__ */ s.jsx(r, {
|
|
521
521
|
ref: a,
|
|
522
|
-
className:
|
|
522
|
+
className: I(e, t),
|
|
523
523
|
...n
|
|
524
524
|
})));
|
|
525
525
|
Ts.displayName = "OffcanvasTitle";
|
|
@@ -558,7 +558,7 @@ const As = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
558
558
|
onExiting: N,
|
|
559
559
|
onEnter: y,
|
|
560
560
|
onEntering: S,
|
|
561
|
-
onExited:
|
|
561
|
+
onExited: j,
|
|
562
562
|
backdropClassName: O,
|
|
563
563
|
manager: E,
|
|
564
564
|
renderStaticNode: T = !1,
|
|
@@ -581,21 +581,21 @@ const As = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
581
581
|
const z = (oe, ...H) => {
|
|
582
582
|
oe && (oe.style.visibility = "visible"), y == null || y(oe, ...H);
|
|
583
583
|
}, K = (oe, ...H) => {
|
|
584
|
-
oe && (oe.style.visibility = ""),
|
|
584
|
+
oe && (oe.style.visibility = ""), j == null || j(...H);
|
|
585
585
|
}, re = P((oe) => /* @__PURE__ */ s.jsx("div", {
|
|
586
586
|
...oe,
|
|
587
|
-
className:
|
|
587
|
+
className: I(`${e}-backdrop`, O)
|
|
588
588
|
}), [O, e]), ae = (oe) => /* @__PURE__ */ s.jsx("div", {
|
|
589
589
|
...oe,
|
|
590
590
|
...k,
|
|
591
|
-
className:
|
|
591
|
+
className: I(t, o ? `${e}-${o}` : e, `${e}-${a}`),
|
|
592
592
|
"aria-labelledby": n,
|
|
593
593
|
children: r
|
|
594
594
|
});
|
|
595
595
|
return /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
596
|
-
children: [!Z && (o || T) && ae({}), /* @__PURE__ */ s.jsx(
|
|
596
|
+
children: [!Z && (o || T) && ae({}), /* @__PURE__ */ s.jsx(jc.Provider, {
|
|
597
597
|
value: $,
|
|
598
|
-
children: /* @__PURE__ */ s.jsx(
|
|
598
|
+
children: /* @__PURE__ */ s.jsx(Ic, {
|
|
599
599
|
show: Z,
|
|
600
600
|
ref: M,
|
|
601
601
|
backdrop: l,
|
|
@@ -643,7 +643,7 @@ function Rs({
|
|
|
643
643
|
}] = Tc(a);
|
|
644
644
|
return {
|
|
645
645
|
...i,
|
|
646
|
-
className:
|
|
646
|
+
className: I(o, e ? `${r}-${e}` : r, n && `${r}-${n}`, t && `bg-${t}`)
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
649
|
const ks = /* @__PURE__ */ Ne.forwardRef((e, t) => {
|
|
@@ -689,7 +689,7 @@ const vt = Object.assign(Bs, {
|
|
|
689
689
|
}), /* @__PURE__ */ s.jsx(r, {
|
|
690
690
|
ref: a,
|
|
691
691
|
...n,
|
|
692
|
-
className:
|
|
692
|
+
className: I(t, o, ...p)
|
|
693
693
|
});
|
|
694
694
|
});
|
|
695
695
|
Ta.displayName = "Row";
|
|
@@ -705,7 +705,7 @@ const lu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
705
705
|
responsive: c,
|
|
706
706
|
...p
|
|
707
707
|
}, d) => {
|
|
708
|
-
const u = _e(e, "table"), f =
|
|
708
|
+
const u = _e(e, "table"), f = I(t, u, l && `${u}-${l}`, i && `${u}-${i}`, r && `${u}-${typeof r == "string" ? `striped-${r}` : "striped"}`, n && `${u}-bordered`, a && `${u}-borderless`, o && `${u}-hover`), g = /* @__PURE__ */ s.jsx("table", {
|
|
709
709
|
...p,
|
|
710
710
|
className: f,
|
|
711
711
|
ref: d
|
|
@@ -721,11 +721,11 @@ const lu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
721
721
|
}), cu = ({ children: e, onStorno: t, noSpacer: r, disabled: n }) => {
|
|
722
722
|
const { texts: { formSubmit: a } } = q(ce);
|
|
723
723
|
return /* @__PURE__ */ s.jsxs(Hb, { noSpacer: r, children: [
|
|
724
|
-
/* @__PURE__ */ s.jsxs(
|
|
724
|
+
/* @__PURE__ */ s.jsxs(hr, { as: "button", color: "primary", size: "lg", type: "submit", disabled: n, children: [
|
|
725
725
|
/* @__PURE__ */ s.jsx(kc, {}),
|
|
726
726
|
e
|
|
727
727
|
] }),
|
|
728
|
-
t && /* @__PURE__ */ s.jsxs(
|
|
728
|
+
t && /* @__PURE__ */ s.jsxs(hr, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: t, children: [
|
|
729
729
|
/* @__PURE__ */ s.jsx(Bc, {}),
|
|
730
730
|
a.storno
|
|
731
731
|
] })
|
|
@@ -735,7 +735,7 @@ const lu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
735
735
|
d.target.files && (a(d.target.files), d.target.value = "");
|
|
736
736
|
};
|
|
737
737
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
738
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className:
|
|
738
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: I(`luminus-context-button btn text-${e} ${o ?? ""}`, Mc.button), ...c, children: [
|
|
739
739
|
t,
|
|
740
740
|
i
|
|
741
741
|
] }),
|
|
@@ -751,7 +751,7 @@ const lu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
751
751
|
}
|
|
752
752
|
}, [e]), i = Cd();
|
|
753
753
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
754
|
-
/* @__PURE__ */ s.jsx("label", { htmlFor: i, className:
|
|
754
|
+
/* @__PURE__ */ s.jsx("label", { htmlFor: i, className: I("btn luminus-context-button text-primary", `btn-${a}`, n), children: r }),
|
|
755
755
|
/* @__PURE__ */ s.jsx("input", { id: i, type: "file", accept: t, onChange: o, hidden: !0 })
|
|
756
756
|
] });
|
|
757
757
|
}, du = "_select_14f33_1", uu = "_sm_14f33_11", pu = "_lg_14f33_23", Gr = {
|
|
@@ -776,29 +776,29 @@ const lu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
776
776
|
});
|
|
777
777
|
return v;
|
|
778
778
|
}, [r]);
|
|
779
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
779
|
+
return /* @__PURE__ */ s.jsxs("div", { className: I("card d-flex flex-row align-items-center justify-content-center m-0 p-1 gap-2", o, {
|
|
780
780
|
[Gr[c]]: c
|
|
781
781
|
}), children: [
|
|
782
782
|
/* @__PURE__ */ s.jsx(le, { onClick: () => p(-1), disabled: e.getFullYear() < n || e.getFullYear() === n && e.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(ba, {}) }),
|
|
783
783
|
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getMonth(), onChange: (f) => {
|
|
784
784
|
var g;
|
|
785
785
|
return ((g = f.target) == null ? void 0 : g.value) && t(qd(e, Number(f.target.value)));
|
|
786
|
-
}, className:
|
|
786
|
+
}, className: I(Gr.select, Gr.month, i), children: u.map((f) => /* @__PURE__ */ s.jsx("option", { value: f.id, children: f.name }, f.id)) }),
|
|
787
787
|
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getFullYear(), onChange: (f) => {
|
|
788
788
|
var g;
|
|
789
789
|
return ((g = f.target) == null ? void 0 : g.value) && t(ra(e, Number(f.target.value)));
|
|
790
|
-
}, className:
|
|
790
|
+
}, className: I(Gr.select, l), children: d.map((f) => /* @__PURE__ */ s.jsx("option", { value: f, children: f }, f)) }),
|
|
791
791
|
/* @__PURE__ */ s.jsx(le, { onClick: () => p(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ s.jsx(xa, {}) })
|
|
792
792
|
] });
|
|
793
793
|
}, gu = "_select_pywmr_1", vu = {
|
|
794
794
|
select: gu
|
|
795
|
-
},
|
|
795
|
+
}, jo = 2e3, Io = 2050, mu = ({ year: e, onChangeYear: t, className: r, variant: n = "standart", ...a }) => {
|
|
796
796
|
const o = V(() => {
|
|
797
797
|
var p;
|
|
798
|
-
return a.manualOptions ? ((p = a.options) == null ? void 0 : p.at(0)) ??
|
|
798
|
+
return a.manualOptions ? ((p = a.options) == null ? void 0 : p.at(0)) ?? jo : a.optionMin ?? jo;
|
|
799
799
|
}, [a]), i = V(() => {
|
|
800
800
|
var p;
|
|
801
|
-
return a.manualOptions ? ((p = a.options) == null ? void 0 : p.at(-1)) ??
|
|
801
|
+
return a.manualOptions ? ((p = a.options) == null ? void 0 : p.at(-1)) ?? Io : a.optionMax ?? Io;
|
|
802
802
|
}, [a]), l = V(() => {
|
|
803
803
|
if (a.manualOptions)
|
|
804
804
|
return a.options;
|
|
@@ -818,12 +818,12 @@ const lu = /* @__PURE__ */ Ne.forwardRef(({
|
|
|
818
818
|
d >= o && d <= i && t(Fc(e, p));
|
|
819
819
|
}
|
|
820
820
|
}, [e, t, i, o, a, l]);
|
|
821
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
821
|
+
return /* @__PURE__ */ s.jsxs("div", { className: I("d-flex flex-row align-items-center m-0", n === "standart" ? "card p-1 gap-2" : void 0, n === "minimalist" ? "p-0 gap-0" : void 0, r ?? ""), children: [
|
|
822
822
|
/* @__PURE__ */ s.jsx(le, { onClick: () => c(-1), disabled: e.getFullYear() <= o, children: /* @__PURE__ */ s.jsx(ba, {}) }),
|
|
823
823
|
/* @__PURE__ */ s.jsx(Oe.Select, { value: e.getFullYear(), onChange: (p) => {
|
|
824
824
|
var d;
|
|
825
825
|
return ((d = p.target) == null ? void 0 : d.value) && t(ra(e, Number(p.target.value)));
|
|
826
|
-
}, className:
|
|
826
|
+
}, className: I(vu.select, "bg-transparent"), children: l.map((p) => /* @__PURE__ */ s.jsx("option", { value: p, children: p }, p)) }),
|
|
827
827
|
/* @__PURE__ */ s.jsx(le, { onClick: () => c(1), disabled: e.getFullYear() >= i, children: /* @__PURE__ */ s.jsx(xa, {}) })
|
|
828
828
|
] });
|
|
829
829
|
};
|
|
@@ -873,10 +873,10 @@ const bu = (e) => (r) => {
|
|
|
873
873
|
}, xu = bu(hu), yu = "_widget-card_e9tsb_1", wu = {
|
|
874
874
|
"widget-card": "_widget-card_e9tsb_1",
|
|
875
875
|
widgetCard: yu
|
|
876
|
-
}, Oo = ({ children: e, title: t, headerContent: r }) => /* @__PURE__ */ s.jsx(an, { className:
|
|
876
|
+
}, Oo = ({ children: e, title: t, headerContent: r }) => /* @__PURE__ */ s.jsx(an, { className: I(wu.widgetCard, "luminus-widget"), title: t, headerContent: r, contentClassName: "h-100 overflow-auto", children: e }), Du = ({ children: e, title: t }) => {
|
|
877
877
|
const { texts: { widget: r } } = q(ce), n = vn();
|
|
878
|
-
return /* @__PURE__ */ s.jsx(xu, { fallback: /* @__PURE__ */ s.jsx(Oo, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => n(-1), children: /* @__PURE__ */ s.jsx(
|
|
879
|
-
}, Nu = "_widgets-row_13gg1_1", Su = "_widget_13gg1_1", Cu = "_widget-img_13gg1_5", Eu = "_widget-title-spacer_13gg1_14",
|
|
878
|
+
return /* @__PURE__ */ s.jsx(xu, { fallback: /* @__PURE__ */ s.jsx(Oo, { title: t, children: r.fallbackError }), reloadButtonDisplay: "inject-to-child", navigateBack: () => n(-1), children: /* @__PURE__ */ s.jsx(jd, { fallback: /* @__PURE__ */ s.jsx(Oo, { title: t, children: /* @__PURE__ */ s.jsx(Gd, {}) }), children: e }) });
|
|
879
|
+
}, Nu = "_widgets-row_13gg1_1", Su = "_widget_13gg1_1", Cu = "_widget-img_13gg1_5", Eu = "_widget-title-spacer_13gg1_14", ju = "_widget-title_13gg1_14", Iu = "_title_13gg1_28", qe = {
|
|
880
880
|
"widgets-row": "_widgets-row_13gg1_1",
|
|
881
881
|
widgetsRow: Nu,
|
|
882
882
|
widget: Su,
|
|
@@ -885,8 +885,8 @@ const bu = (e) => (r) => {
|
|
|
885
885
|
"widget-title-spacer": "_widget-title-spacer_13gg1_14",
|
|
886
886
|
widgetTitleSpacer: Eu,
|
|
887
887
|
"widget-title": "_widget-title_13gg1_14",
|
|
888
|
-
widgetTitle:
|
|
889
|
-
title:
|
|
888
|
+
widgetTitle: ju,
|
|
889
|
+
title: Iu
|
|
890
890
|
}, Ou = ({ show: e, widgetGroups: t, widgets: r, handleClose: n, onWidgetPicked: a, texts: o }) => {
|
|
891
891
|
const [i, l] = L(""), c = V(() => r.filter((d) => d.id !== -1 && ht(d.name, i)), [r, i]), p = V(() => t.filter((d) => c.some((u) => u.group === d.id)), [t, c]);
|
|
892
892
|
return /* @__PURE__ */ s.jsxs($e, { show: e, onHide: () => n(), size: "lg", children: [
|
|
@@ -898,19 +898,19 @@ const bu = (e) => (r) => {
|
|
|
898
898
|
}, className: "me-3", style: { maxWidth: "200px" } })
|
|
899
899
|
] }),
|
|
900
900
|
/* @__PURE__ */ s.jsx($e.Body, { className: "flex-column gap-3", children: c.length === 0 ? /* @__PURE__ */ s.jsx(pn, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
901
|
-
p.map((d) => /* @__PURE__ */ s.jsx(nn, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className:
|
|
901
|
+
p.map((d) => /* @__PURE__ */ s.jsx(nn, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: I("row gx-3 gy-3", qe.widgetsRow), children: c.filter((u) => u.group === d.id).map((u) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: I("p-0 pt-2 bg-white rounded shadow-sm", qe.widget), onClick: () => a(u.id), children: [
|
|
902
902
|
/* @__PURE__ */ s.jsx("div", { className: qe.widgetImg, style: {
|
|
903
903
|
backgroundImage: u.img ? `url(${u.img})` : void 0
|
|
904
904
|
} }),
|
|
905
905
|
/* @__PURE__ */ s.jsx("div", { className: qe.widgetTitleSpacer }),
|
|
906
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
906
|
+
/* @__PURE__ */ s.jsx("div", { className: I(qe.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(Q, { variant: "body", className: I(qe.title, "text-white text-truncate"), children: u.name }) })
|
|
907
907
|
] }, u.id) })) }) }) }, d.id)),
|
|
908
|
-
c.some((d) => d.group === void 0) && /* @__PURE__ */ s.jsx(nn, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className:
|
|
908
|
+
c.some((d) => d.group === void 0) && /* @__PURE__ */ s.jsx(nn, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: I("row gx-3 gy-3", qe.widgetsRow), children: c.filter((d) => d.group === void 0).map((d) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: I("p-0 pt-2 bg-white rounded shadow-sm", qe.widget), onClick: () => a(d.id), children: [
|
|
909
909
|
/* @__PURE__ */ s.jsx("div", { className: qe.widgetImg, style: {
|
|
910
910
|
backgroundImage: d.img ? `url(${d.img})` : void 0
|
|
911
911
|
} }),
|
|
912
912
|
/* @__PURE__ */ s.jsx("div", { className: qe.widgetTitleSpacer }),
|
|
913
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
913
|
+
/* @__PURE__ */ s.jsx("div", { className: I(qe.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(Q, { variant: "body", className: I(qe.title, "text-white text-truncate"), children: d.name }) })
|
|
914
914
|
] }, d.id) })) }) }) })
|
|
915
915
|
] }) })
|
|
916
916
|
] });
|
|
@@ -920,7 +920,7 @@ const bu = (e) => (r) => {
|
|
|
920
920
|
}, Po = ({ widgetGroups: e, availableWidgets: t, onAdd: r, texts: n }) => {
|
|
921
921
|
const [a, o] = L(!1), { isMobile: i } = fn();
|
|
922
922
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
923
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
923
|
+
/* @__PURE__ */ s.jsx("div", { className: I("luminus-empty-widget", _o.widget, {
|
|
924
924
|
[_o.mobile]: i
|
|
925
925
|
}), children: /* @__PURE__ */ s.jsx(le, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(Vc, {}) }) }),
|
|
926
926
|
/* @__PURE__ */ s.jsx(Ou, { show: a, widgetGroups: e, widgets: t, handleClose: () => o(!1), onWidgetPicked: (l) => {
|
|
@@ -977,12 +977,12 @@ const bu = (e) => (r) => {
|
|
|
977
977
|
...i,
|
|
978
978
|
widgets: ((b = i.widgets) == null ? void 0 : b.map((h, m) => m === v ? { ...h, fullWidth: !h.fullWidth } : h)) ?? []
|
|
979
979
|
});
|
|
980
|
-
}, [i, l]), u = P((v, b, h) => v ? /* @__PURE__ */ s.jsxs("div", { className:
|
|
980
|
+
}, [i, l]), u = P((v, b, h) => v ? /* @__PURE__ */ s.jsxs("div", { className: I(ot.widgetWrapper, {
|
|
981
981
|
[ot.widgetEdit]: r && v.id !== -1
|
|
982
982
|
}, { [ot.fullWidth]: h }), children: [
|
|
983
983
|
r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
984
|
-
/* @__PURE__ */ s.jsx(le, { color: "danger", onClick: () => p(b), className:
|
|
985
|
-
/* @__PURE__ */ s.jsx(le, { color: h ? "danger" : "primary", onClick: () => d(b), className:
|
|
984
|
+
/* @__PURE__ */ s.jsx(le, { color: "danger", onClick: () => p(b), className: I(ot.removeIcon), children: /* @__PURE__ */ s.jsx($c, {}) }),
|
|
985
|
+
/* @__PURE__ */ s.jsx(le, { color: h ? "danger" : "primary", onClick: () => d(b), className: I(ot.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Gc, {}) })
|
|
986
986
|
] }),
|
|
987
987
|
v.id === -1 ? r && /* @__PURE__ */ s.jsx("div", { className: ot.widgetWrapper, children: /* @__PURE__ */ s.jsx(Po, { widgetGroups: e, availableWidgets: t, onAdd: (m) => c(b, m), texts: o }) }) : /* @__PURE__ */ s.jsx(Du, { title: v.title, children: /* @__PURE__ */ s.jsx(v.WidgetElement, { title: v.title }) }),
|
|
988
988
|
v.id > -1 && r && /* @__PURE__ */ s.jsx("div", { className: ot.widgetEditOverlay })
|
|
@@ -995,7 +995,7 @@ const bu = (e) => (r) => {
|
|
|
995
995
|
t,
|
|
996
996
|
o
|
|
997
997
|
]), { isMobile: f } = fn();
|
|
998
|
-
return /* @__PURE__ */ s.jsx("div", { className:
|
|
998
|
+
return /* @__PURE__ */ s.jsx("div", { className: I(ot.dashboard, { [ot.mobile]: f }), children: /* @__PURE__ */ s.jsxs("div", { className: I(ot.widgetsGrid), children: [
|
|
999
999
|
(g = i.widgets) == null ? void 0 : g.map((v, b) => u(t.find((h) => h.id === v.widgetId), b, v.fullWidth)),
|
|
1000
1000
|
r && /* @__PURE__ */ s.jsx(Po, { widgetGroups: e, availableWidgets: t, onAdd: (v) => {
|
|
1001
1001
|
var b;
|
|
@@ -1009,8 +1009,8 @@ const bu = (e) => (r) => {
|
|
|
1009
1009
|
lg: Hu,
|
|
1010
1010
|
light: zu
|
|
1011
1011
|
}, gw = ({ children: e, color: t = "primary", size: r = "md", rounded: n, className: a, variant: o = "filled", ...i }) => {
|
|
1012
|
-
const l = V(() => o === "filled" ?
|
|
1013
|
-
return /* @__PURE__ */ s.jsx("span", { className:
|
|
1012
|
+
const l = V(() => o === "filled" ? I(`bg-${t}`) : o === "outline" ? I(`text-${t} border-${t} border bg-white`) : "", [t, o]);
|
|
1013
|
+
return /* @__PURE__ */ s.jsx("span", { className: I("luminus-badge badge", l, a, { "rounded-pill": n }, { "text-dark": t === "light" }, { [_n.light]: t === "light" }, _n.badge, _n[r]), ...i, children: e });
|
|
1014
1014
|
}, qu = "_collapse-icon_1ahhn_1", Yu = "_collapsed_1ahhn_6", To = {
|
|
1015
1015
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
1016
1016
|
collapseIcon: qu,
|
|
@@ -1022,7 +1022,7 @@ const bu = (e) => (r) => {
|
|
|
1022
1022
|
}, [a]), /* @__PURE__ */ s.jsxs("div", { className: r ?? "", children: [
|
|
1023
1023
|
/* @__PURE__ */ s.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => n.controlled ? n.onToggle(!n.isOpen) : i(!o), children: [
|
|
1024
1024
|
/* @__PURE__ */ s.jsx(Q, { variant: "h6", children: e }),
|
|
1025
|
-
/* @__PURE__ */ s.jsx(as, { className:
|
|
1025
|
+
/* @__PURE__ */ s.jsx(as, { className: I(To.collapseIcon, {
|
|
1026
1026
|
[To.collapsed]: l
|
|
1027
1027
|
}) })
|
|
1028
1028
|
] }),
|
|
@@ -1034,7 +1034,7 @@ const bu = (e) => (r) => {
|
|
|
1034
1034
|
d.target.files && (a(d.target.files), d.target.value = "");
|
|
1035
1035
|
};
|
|
1036
1036
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1037
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className:
|
|
1037
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: I(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, Wc.item), ...c, children: [
|
|
1038
1038
|
t,
|
|
1039
1039
|
l
|
|
1040
1040
|
] }),
|
|
@@ -1050,7 +1050,7 @@ const bu = (e) => (r) => {
|
|
|
1050
1050
|
input: Zu,
|
|
1051
1051
|
"submit-button": "_submit-button_1hcpm_20",
|
|
1052
1052
|
submitButton: ep
|
|
1053
|
-
}, tp = ({ searchTypes: e, selectedType: t, setSelectedType: r }) => /* @__PURE__ */ s.jsx(
|
|
1053
|
+
}, tp = ({ searchTypes: e, selectedType: t, setSelectedType: r }) => /* @__PURE__ */ s.jsx(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { as: _r, icon: null, text: t == null ? void 0 : t.text }), children: e.map((n) => /* @__PURE__ */ s.jsx(tt, { icon: null, onClick: () => r(n.key), children: n.text }, n.key)) }), rp = "_dropdown_1ddrg_1", np = "_open_1ddrg_12", ap = "_loading-container_1ddrg_15", op = "_groups-container_1ddrg_22", ip = "_group_1ddrg_22", sp = "_header_1ddrg_26", lp = "_item_1ddrg_33", _t = {
|
|
1054
1054
|
dropdown: rp,
|
|
1055
1055
|
open: np,
|
|
1056
1056
|
"loading-container": "_loading-container_1ddrg_15",
|
|
@@ -1066,12 +1066,12 @@ const bu = (e) => (r) => {
|
|
|
1066
1066
|
const d = (u = o.find((f) => f.key === p.type)) == null ? void 0 : u.toPath;
|
|
1067
1067
|
return d ? `${d}/${p.searchKey}` : "/not-found";
|
|
1068
1068
|
}, [o]);
|
|
1069
|
-
return Uc([l], r), /* @__PURE__ */ s.jsx("div", { ref: l, className:
|
|
1069
|
+
return Uc([l], r), /* @__PURE__ */ s.jsx("div", { ref: l, className: I("luminus-app-search-dropdown shadow rounded", _t.dropdown, {
|
|
1070
1070
|
[_t.open]: e
|
|
1071
1071
|
}), children: a ? /* @__PURE__ */ s.jsx("div", { className: _t.loadingContainer, children: /* @__PURE__ */ s.jsx(Hc, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: _t.groupsContainer, children: n == null ? void 0 : n.map((p) => {
|
|
1072
1072
|
var d;
|
|
1073
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
1074
|
-
/* @__PURE__ */ s.jsxs(nt, { to: `/search?query=${t}&type=${p.key.category}`, className:
|
|
1073
|
+
return /* @__PURE__ */ s.jsxs("div", { className: I(_t.group), children: [
|
|
1074
|
+
/* @__PURE__ */ s.jsxs(nt, { to: `/search?query=${t}&type=${p.key.category}`, className: I("group-header", _t.header), onClick: r, children: [
|
|
1075
1075
|
/* @__PURE__ */ s.jsx(Q, { variant: "body", className: "text-primary", children: p.key.categoryName }),
|
|
1076
1076
|
/* @__PURE__ */ s.jsxs(Q, { variant: "caption", children: [
|
|
1077
1077
|
p.items.length,
|
|
@@ -1085,7 +1085,7 @@ const bu = (e) => (r) => {
|
|
|
1085
1085
|
nt,
|
|
1086
1086
|
{
|
|
1087
1087
|
to: c(u),
|
|
1088
|
-
className:
|
|
1088
|
+
className: I("search-item d-flex gap-3 align-items-center justify-content-between", _t.item),
|
|
1089
1089
|
onClick: r,
|
|
1090
1090
|
children: [
|
|
1091
1091
|
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-nowrap text-truncate", children: u.name }),
|
|
@@ -1123,13 +1123,13 @@ const bu = (e) => (r) => {
|
|
|
1123
1123
|
d(""), r === n && ((D = m.current) == null || D.focus());
|
|
1124
1124
|
}, [r, n]), /* @__PURE__ */ s.jsx(Oe, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (D) => {
|
|
1125
1125
|
D.preventDefault(), D.stopPropagation(), f.flush(), h(!1), u.length > 2 && t(`/search?query=${u}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
|
|
1126
|
-
}, children: /* @__PURE__ */ s.jsxs(Jr, { className:
|
|
1127
|
-
/* @__PURE__ */ s.jsx(Jr.Text, { className:
|
|
1128
|
-
/* @__PURE__ */ s.jsx(Oe.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className:
|
|
1126
|
+
}, children: /* @__PURE__ */ s.jsxs(Jr, { className: I(Ot.inputGroup, a), children: [
|
|
1127
|
+
/* @__PURE__ */ s.jsx(Jr.Text, { className: I("p-1 rounded", Ot.inputGroupText, Ot.left), children: /* @__PURE__ */ s.jsx(tp, { searchTypes: e, selectedType: c, setSelectedType: l }) }),
|
|
1128
|
+
/* @__PURE__ */ s.jsx(Oe.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: I("luminus-app-search-input", Ot.input), value: p, onChange: (D) => {
|
|
1129
1129
|
var N;
|
|
1130
1130
|
return d(((N = D.target) == null ? void 0 : N.value) ?? "");
|
|
1131
1131
|
}, onFocus: () => v.length > 0 && h(!0) }),
|
|
1132
|
-
/* @__PURE__ */ s.jsx(Jr.Text, { className:
|
|
1132
|
+
/* @__PURE__ */ s.jsx(Jr.Text, { className: I("p-0 rounded", Ot.inputGroupText, Ot.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: I("text-primary", Ot.submitButton), children: /* @__PURE__ */ s.jsx(qc, {}) }) }),
|
|
1133
1133
|
/* @__PURE__ */ s.jsx(cp, { query: u, searchTypes: e, show: b, onCancel: () => h(!1), groups: v, isLoading: g })
|
|
1134
1134
|
] }) });
|
|
1135
1135
|
}, up = "_card_19733_1", pp = "_header_19733_6", fp = "_header-content_19733_13", gp = "_title_19733_19", vp = "_collapse-icon_19733_22", mp = "_collapsed_19733_27", hp = "_content_19733_30", Pt = {
|
|
@@ -1148,23 +1148,23 @@ const bu = (e) => (r) => {
|
|
|
1148
1148
|
d(c);
|
|
1149
1149
|
}, [c]);
|
|
1150
1150
|
const f = V(() => !r || !r.toString() || r.toString().split(",").filter((g) => g && g !== "false").length === 0, [r]);
|
|
1151
|
-
return i && f ? null : /* @__PURE__ */ s.jsxs("div", { className:
|
|
1151
|
+
return i && f ? null : /* @__PURE__ */ s.jsxs("div", { className: I("luminus-card rounded shadow-sm", Pt.card, {
|
|
1152
1152
|
[n ?? ""]: n
|
|
1153
1153
|
}), children: [
|
|
1154
|
-
/* @__PURE__ */ s.jsxs("div", { role: l.collapsible ? "button" : void 0, className:
|
|
1154
|
+
/* @__PURE__ */ s.jsxs("div", { role: l.collapsible ? "button" : void 0, className: I("header", Pt.header, {
|
|
1155
1155
|
[a ?? ""]: a
|
|
1156
1156
|
}), onClick: () => {
|
|
1157
1157
|
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : d(!p));
|
|
1158
1158
|
}, children: [
|
|
1159
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
1160
|
-
/* @__PURE__ */ s.jsx(Q, { variant: "h6", className:
|
|
1159
|
+
/* @__PURE__ */ s.jsxs("div", { className: I("header-content", Pt.headerContent), children: [
|
|
1160
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "h6", className: I("text-primary", Pt.title), children: e }),
|
|
1161
1161
|
t ?? null
|
|
1162
1162
|
] }),
|
|
1163
|
-
l.collapsible && /* @__PURE__ */ s.jsx(as, { className:
|
|
1163
|
+
l.collapsible && /* @__PURE__ */ s.jsx(as, { className: I(Pt.collapseIcon, {
|
|
1164
1164
|
[Pt.collapsed]: u
|
|
1165
1165
|
}) })
|
|
1166
1166
|
] }),
|
|
1167
|
-
/* @__PURE__ */ s.jsx(hs, { in: u, children: /* @__PURE__ */ s.jsx("div", { className:
|
|
1167
|
+
/* @__PURE__ */ s.jsx(hs, { in: u, children: /* @__PURE__ */ s.jsx("div", { className: I("card-content border-top border-primary", Pt.content, {
|
|
1168
1168
|
[o ?? ""]: o
|
|
1169
1169
|
}), children: r }) })
|
|
1170
1170
|
] });
|
|
@@ -1428,10 +1428,10 @@ function Ep() {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
var Aa = /* @__PURE__ */ ie.createContext(null);
|
|
1430
1430
|
process.env.NODE_ENV !== "production" && (Aa.displayName = "ReactRedux");
|
|
1431
|
-
function
|
|
1431
|
+
function jp(e) {
|
|
1432
1432
|
e();
|
|
1433
1433
|
}
|
|
1434
|
-
var Vs =
|
|
1434
|
+
var Vs = jp, Ip = function(t) {
|
|
1435
1435
|
return Vs = t;
|
|
1436
1436
|
}, Op = function() {
|
|
1437
1437
|
return Vs;
|
|
@@ -1505,7 +1505,7 @@ function $s(e, t) {
|
|
|
1505
1505
|
};
|
|
1506
1506
|
return d;
|
|
1507
1507
|
}
|
|
1508
|
-
var Gs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ?
|
|
1508
|
+
var Gs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? ja : W;
|
|
1509
1509
|
function Ws(e) {
|
|
1510
1510
|
var t = e.store, r = e.context, n = e.children, a = V(function() {
|
|
1511
1511
|
var l = $s(t);
|
|
@@ -1646,8 +1646,8 @@ function Fp() {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
|
-
var D = o, N = e, y = l, S = r,
|
|
1650
|
-
return be.ContextConsumer = i, be.ContextProvider = D, be.Element = N, be.ForwardRef = y, be.Fragment = S, be.Lazy =
|
|
1649
|
+
var D = o, N = e, y = l, S = r, j = u, O = d, E = t, T = a, k = n, M = c;
|
|
1650
|
+
return be.ContextConsumer = i, be.ContextProvider = D, be.Element = N, be.ForwardRef = y, be.Fragment = S, be.Lazy = j, be.Memo = O, be.Portal = E, be.Profiler = T, be.StrictMode = k, be.Suspense = M, be.isAsyncMode = function() {
|
|
1651
1651
|
return !1;
|
|
1652
1652
|
}, be.isConcurrentMode = function() {
|
|
1653
1653
|
return !1;
|
|
@@ -1729,7 +1729,7 @@ function Vp() {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
|
-
var y = i, S = o,
|
|
1732
|
+
var y = i, S = o, j = e, O = l, E = r, T = u, k = d, M = t, C = a, Z = n, Y = c, B = !1, R = !1;
|
|
1733
1733
|
function $(_) {
|
|
1734
1734
|
return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1735
1735
|
}
|
|
@@ -1766,10 +1766,10 @@ function Vp() {
|
|
|
1766
1766
|
function De(_) {
|
|
1767
1767
|
return N(_) === n;
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function Ie(_) {
|
|
1770
1770
|
return N(_) === c;
|
|
1771
1771
|
}
|
|
1772
|
-
xe.ContextConsumer = y, xe.ContextProvider = S, xe.Element =
|
|
1772
|
+
xe.ContextConsumer = y, xe.ContextProvider = S, xe.Element = j, xe.ForwardRef = O, xe.Fragment = E, xe.Lazy = T, xe.Memo = k, xe.Portal = M, xe.Profiler = C, xe.StrictMode = Z, xe.Suspense = Y, xe.isAsyncMode = $, xe.isConcurrentMode = F, xe.isContextConsumer = z, xe.isContextProvider = K, xe.isElement = re, xe.isForwardRef = ae, xe.isFragment = oe, xe.isLazy = H, xe.isMemo = U, xe.isPortal = pe, xe.isProfiler = se, xe.isStrictMode = De, xe.isSuspense = Ie, xe.isValidElementType = D, xe.typeOf = N;
|
|
1773
1773
|
}()), xe;
|
|
1774
1774
|
}
|
|
1775
1775
|
process.env.NODE_ENV === "production" ? aa.exports = Fp() : aa.exports = Vp();
|
|
@@ -1836,10 +1836,10 @@ function Xp(e, t) {
|
|
|
1836
1836
|
throw new Error("storeKey has been removed and does not do anything. " + N);
|
|
1837
1837
|
}
|
|
1838
1838
|
var y = x;
|
|
1839
|
-
return function(
|
|
1840
|
-
if (process.env.NODE_ENV !== "production" && !zo.isValidElementType(
|
|
1841
|
-
throw new Error("You must pass a component to the function returned by " + (i + ". Instead received " + Hp(
|
|
1842
|
-
var O =
|
|
1839
|
+
return function(j) {
|
|
1840
|
+
if (process.env.NODE_ENV !== "production" && !zo.isValidElementType(j))
|
|
1841
|
+
throw new Error("You must pass a component to the function returned by " + (i + ". Instead received " + Hp(j)));
|
|
1842
|
+
var O = j.displayName || j.name || "Component", E = a(O), T = te({}, D, {
|
|
1843
1843
|
getDisplayName: a,
|
|
1844
1844
|
methodName: i,
|
|
1845
1845
|
renderCountProp: c,
|
|
@@ -1847,7 +1847,7 @@ function Xp(e, t) {
|
|
|
1847
1847
|
storeKey: f,
|
|
1848
1848
|
displayName: E,
|
|
1849
1849
|
wrappedComponentName: O,
|
|
1850
|
-
WrappedComponent:
|
|
1850
|
+
WrappedComponent: j
|
|
1851
1851
|
}), k = D.pure;
|
|
1852
1852
|
function M(R) {
|
|
1853
1853
|
return e(R.dispatch, T);
|
|
@@ -1870,22 +1870,22 @@ function Xp(e, t) {
|
|
|
1870
1870
|
if (!d) return Up;
|
|
1871
1871
|
var de = $s(U, oe ? null : ae.subscription), Be = de.notifyNestedSubs.bind(de);
|
|
1872
1872
|
return [de, Be];
|
|
1873
|
-
}, [U, oe, ae]), De = se[0],
|
|
1873
|
+
}, [U, oe, ae]), De = se[0], Ie = se[1], _ = V(function() {
|
|
1874
1874
|
return oe ? ae : te({}, ae, {
|
|
1875
1875
|
subscription: De
|
|
1876
1876
|
});
|
|
1877
|
-
}, [oe, ae, De]), fe =
|
|
1877
|
+
}, [oe, ae, De]), fe = Id(zp, Wp, Kp), Ce = fe[0], Le = Ce[0], ze = fe[1];
|
|
1878
1878
|
if (Le && Le.error)
|
|
1879
1879
|
throw Le.error;
|
|
1880
1880
|
var pt = ee(), G = ee(K), A = ee(), J = ee(!1), ue = C(function() {
|
|
1881
1881
|
return A.current && K === G.current ? A.current : pe(U.getState(), K);
|
|
1882
1882
|
}, [U, Le, K]);
|
|
1883
|
-
qo(qp, [G, pt, J, K, ue, A,
|
|
1883
|
+
qo(qp, [G, pt, J, K, ue, A, Ie]), qo(Yp, [d, U, De, pe, G, pt, J, A, Ie, ze], [U, De, pe]);
|
|
1884
1884
|
var Ee = V(function() {
|
|
1885
|
-
return /* @__PURE__ */ ie.createElement(
|
|
1885
|
+
return /* @__PURE__ */ ie.createElement(j, te({}, ue, {
|
|
1886
1886
|
ref: z
|
|
1887
1887
|
}));
|
|
1888
|
-
}, [z,
|
|
1888
|
+
}, [z, j, ue]), me = V(function() {
|
|
1889
1889
|
return d ? /* @__PURE__ */ ie.createElement(re.Provider, {
|
|
1890
1890
|
value: _
|
|
1891
1891
|
}, Ee) : Ee;
|
|
@@ -1893,15 +1893,15 @@ function Xp(e, t) {
|
|
|
1893
1893
|
return me;
|
|
1894
1894
|
}
|
|
1895
1895
|
var Y = k ? ie.memo(Z) : Z;
|
|
1896
|
-
if (Y.WrappedComponent =
|
|
1896
|
+
if (Y.WrappedComponent = j, Y.displayName = Z.displayName = E, h) {
|
|
1897
1897
|
var B = ie.forwardRef(function($, F) {
|
|
1898
1898
|
return /* @__PURE__ */ ie.createElement(Y, te({}, $, {
|
|
1899
1899
|
reactReduxForwardedRef: F
|
|
1900
1900
|
}));
|
|
1901
1901
|
});
|
|
1902
|
-
return B.displayName = E, B.WrappedComponent =
|
|
1902
|
+
return B.displayName = E, B.WrappedComponent = j, Wo(B, j);
|
|
1903
1903
|
}
|
|
1904
|
-
return Wo(Y,
|
|
1904
|
+
return Wo(Y, j);
|
|
1905
1905
|
};
|
|
1906
1906
|
}
|
|
1907
1907
|
function Yo(e, t) {
|
|
@@ -2077,7 +2077,7 @@ function xf(e) {
|
|
|
2077
2077
|
var t = {}, r = t.connectHOC, n = r === void 0 ? Xp : r, a = t.mapStateToPropsFactories, o = a === void 0 ? of : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? rf : i, c = t.mergePropsFactories, p = c === void 0 ? uf : c, d = t.selectorFactory, u = d === void 0 ? mf : d;
|
|
2078
2078
|
return function(g, v, b, h) {
|
|
2079
2079
|
h === void 0 && (h = {});
|
|
2080
|
-
var m = h, x = m.pure, D = x === void 0 ? !0 : x, N = m.areStatesEqual, y = N === void 0 ? bf : N, S = m.areOwnPropsEqual,
|
|
2080
|
+
var m = h, x = m.pure, D = x === void 0 ? !0 : x, N = m.areStatesEqual, y = N === void 0 ? bf : N, S = m.areOwnPropsEqual, j = S === void 0 ? Tn : S, O = m.areStatePropsEqual, E = O === void 0 ? Tn : O, T = m.areMergedPropsEqual, k = T === void 0 ? Tn : T, M = en(m, hf), C = Rn(g, o, "mapStateToProps"), Z = Rn(v, l, "mapDispatchToProps"), Y = Rn(b, p, "mergeProps");
|
|
2081
2081
|
return n(u, te({
|
|
2082
2082
|
// used in error messages
|
|
2083
2083
|
methodName: "connect",
|
|
@@ -2093,14 +2093,14 @@ function xf(e) {
|
|
|
2093
2093
|
initMergeProps: Y,
|
|
2094
2094
|
pure: D,
|
|
2095
2095
|
areStatesEqual: y,
|
|
2096
|
-
areOwnPropsEqual:
|
|
2096
|
+
areOwnPropsEqual: j,
|
|
2097
2097
|
areStatePropsEqual: E,
|
|
2098
2098
|
areMergedPropsEqual: k
|
|
2099
2099
|
}, M));
|
|
2100
2100
|
};
|
|
2101
2101
|
}
|
|
2102
2102
|
const Ks = /* @__PURE__ */ xf();
|
|
2103
|
-
|
|
2103
|
+
Ip(kd);
|
|
2104
2104
|
function yf(e, t) {
|
|
2105
2105
|
if (e.length !== t.length)
|
|
2106
2106
|
return !1;
|
|
@@ -2270,8 +2270,8 @@ var wr = function(t) {
|
|
|
2270
2270
|
return a.cancel = function() {
|
|
2271
2271
|
n && (cancelAnimationFrame(n), n = null);
|
|
2272
2272
|
}, a;
|
|
2273
|
-
},
|
|
2274
|
-
return t.replace(
|
|
2273
|
+
}, jf = process.env.NODE_ENV === "production", If = /[ \t]{2,}/g, Of = /^[ \t]*/gm, Zo = function(t) {
|
|
2274
|
+
return t.replace(If, " ").replace(Of, "").trim();
|
|
2275
2275
|
}, _f = function(t) {
|
|
2276
2276
|
return Zo(`
|
|
2277
2277
|
%creact-beautiful-dnd
|
|
@@ -2285,7 +2285,7 @@ var wr = function(t) {
|
|
|
2285
2285
|
}, Tf = "__react-beautiful-dnd-disable-dev-warnings";
|
|
2286
2286
|
function Zs(e, t) {
|
|
2287
2287
|
var r;
|
|
2288
|
-
|
|
2288
|
+
jf || typeof window < "u" && window[Tf] || (r = console)[e].apply(r, Pf(t));
|
|
2289
2289
|
}
|
|
2290
2290
|
var we = Zs.bind(null, "warn"), oa = Zs.bind(null, "error");
|
|
2291
2291
|
function yt() {
|
|
@@ -2433,12 +2433,12 @@ var kf = function(e) {
|
|
|
2433
2433
|
};
|
|
2434
2434
|
}, wt = function(t, r) {
|
|
2435
2435
|
return t.x === r.x && t.y === r.y;
|
|
2436
|
-
},
|
|
2436
|
+
}, tr = function(t) {
|
|
2437
2437
|
return {
|
|
2438
2438
|
x: t.x !== 0 ? -t.x : 0,
|
|
2439
2439
|
y: t.y !== 0 ? -t.y : 0
|
|
2440
2440
|
};
|
|
2441
|
-
},
|
|
2441
|
+
}, Vt = function(t, r, n) {
|
|
2442
2442
|
var a;
|
|
2443
2443
|
return n === void 0 && (n = 0), a = {}, a[t] = r, a[t === "x" ? "y" : "x"] = n, a;
|
|
2444
2444
|
}, Nr = function(t, r) {
|
|
@@ -2498,7 +2498,7 @@ var kf = function(e) {
|
|
|
2498
2498
|
return t;
|
|
2499
2499
|
}, Uf = function(t, r) {
|
|
2500
2500
|
return r && r.shouldClipSubject ? Vf(r.pageMarginBox, t) : rt(t);
|
|
2501
|
-
},
|
|
2501
|
+
}, Kt = function(e) {
|
|
2502
2502
|
var t = e.page, r = e.withPlaceholder, n = e.axis, a = e.frame, o = Gf(t.marginBox, a), i = Wf(o, n, r), l = Uf(i, a);
|
|
2503
2503
|
return {
|
|
2504
2504
|
page: t,
|
|
@@ -2507,7 +2507,7 @@ var kf = function(e) {
|
|
|
2507
2507
|
};
|
|
2508
2508
|
}, Fa = function(e, t) {
|
|
2509
2509
|
e.frame || (process.env.NODE_ENV, w());
|
|
2510
|
-
var r = e.frame, n = We(t, r.scroll.initial), a =
|
|
2510
|
+
var r = e.frame, n = We(t, r.scroll.initial), a = tr(n), o = te({}, r, {
|
|
2511
2511
|
scroll: {
|
|
2512
2512
|
initial: r.scroll.initial,
|
|
2513
2513
|
current: t,
|
|
@@ -2517,7 +2517,7 @@ var kf = function(e) {
|
|
|
2517
2517
|
},
|
|
2518
2518
|
max: r.scroll.max
|
|
2519
2519
|
}
|
|
2520
|
-
}), i =
|
|
2520
|
+
}), i = Kt({
|
|
2521
2521
|
page: e.subject.page,
|
|
2522
2522
|
withPlaceholder: e.subject.withPlaceholder,
|
|
2523
2523
|
axis: e.axis,
|
|
@@ -2544,7 +2544,7 @@ function Va(e, t) {
|
|
|
2544
2544
|
return r;
|
|
2545
2545
|
return -1;
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2547
|
+
function It(e, t) {
|
|
2548
2548
|
if (e.find)
|
|
2549
2549
|
return e.find(t);
|
|
2550
2550
|
var r = Va(e, t);
|
|
@@ -2566,7 +2566,7 @@ var al = Ae(function(e) {
|
|
|
2566
2566
|
return cn(e);
|
|
2567
2567
|
}), zf = Ae(function(e) {
|
|
2568
2568
|
return cn(e);
|
|
2569
|
-
}),
|
|
2569
|
+
}), Gt = Ae(function(e, t) {
|
|
2570
2570
|
var r = zf(t).filter(function(n) {
|
|
2571
2571
|
return e === n.descriptor.droppableId;
|
|
2572
2572
|
}).sort(function(n, a) {
|
|
@@ -2622,7 +2622,7 @@ var xn = Ae(function(e, t) {
|
|
|
2622
2622
|
return null;
|
|
2623
2623
|
var v = d[g];
|
|
2624
2624
|
return l(v.descriptor.id);
|
|
2625
|
-
},
|
|
2625
|
+
}, rr = function(e, t) {
|
|
2626
2626
|
return e.descriptor.droppableId === t.descriptor.id;
|
|
2627
2627
|
}, il = {
|
|
2628
2628
|
point: Re,
|
|
@@ -2776,7 +2776,7 @@ function ai(e) {
|
|
|
2776
2776
|
};
|
|
2777
2777
|
}
|
|
2778
2778
|
function dn(e) {
|
|
2779
|
-
var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate, p =
|
|
2779
|
+
var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate, p = rr(t, n);
|
|
2780
2780
|
if (l == null)
|
|
2781
2781
|
return ai({
|
|
2782
2782
|
insideDestination: r,
|
|
@@ -2784,7 +2784,7 @@ function dn(e) {
|
|
|
2784
2784
|
displacedBy: o,
|
|
2785
2785
|
destination: n
|
|
2786
2786
|
});
|
|
2787
|
-
var d =
|
|
2787
|
+
var d = It(r, function(b) {
|
|
2788
2788
|
return b.descriptor.index === l;
|
|
2789
2789
|
});
|
|
2790
2790
|
if (!d)
|
|
@@ -2867,7 +2867,7 @@ var og = function(e) {
|
|
|
2867
2867
|
});
|
|
2868
2868
|
}, lg = function(e) {
|
|
2869
2869
|
var t = e.displaced, r = e.afterCritical, n = e.combineWith, a = e.displacedBy, o = !!(t.visible[n] || t.invisible[n]);
|
|
2870
|
-
return Nt(n, r) ? o ? Re :
|
|
2870
|
+
return Nt(n, r) ? o ? Re : tr(a.point) : o ? a.point : Re;
|
|
2871
2871
|
}, cg = function(e) {
|
|
2872
2872
|
var t = e.afterCritical, r = e.impact, n = e.draggables, a = bn(r);
|
|
2873
2873
|
a || (process.env.NODE_ENV, w());
|
|
@@ -2886,15 +2886,15 @@ var og = function(e) {
|
|
|
2886
2886
|
return r[t.crossAxisStart] + n.margin[t.crossAxisStart] + n.borderBox[t.crossAxisSize] / 2;
|
|
2887
2887
|
}, oi = function(t) {
|
|
2888
2888
|
var r = t.axis, n = t.moveRelativeTo, a = t.isMoving;
|
|
2889
|
-
return
|
|
2889
|
+
return Vt(r.line, n.marginBox[r.end] + dl(r, a), Ua(r, n.marginBox, a));
|
|
2890
2890
|
}, ii = function(t) {
|
|
2891
2891
|
var r = t.axis, n = t.moveRelativeTo, a = t.isMoving;
|
|
2892
|
-
return
|
|
2892
|
+
return Vt(r.line, n.marginBox[r.start] - dg(r, a), Ua(r, n.marginBox, a));
|
|
2893
2893
|
}, ug = function(t) {
|
|
2894
2894
|
var r = t.axis, n = t.moveInto, a = t.isMoving;
|
|
2895
|
-
return
|
|
2895
|
+
return Vt(r.line, n.contentBox[r.start] + dl(r, a), Ua(r, n.contentBox, a));
|
|
2896
2896
|
}, pg = function(e) {
|
|
2897
|
-
var t = e.impact, r = e.draggable, n = e.draggables, a = e.droppable, o = e.afterCritical, i =
|
|
2897
|
+
var t = e.impact, r = e.draggable, n = e.draggables, a = e.droppable, o = e.afterCritical, i = Gt(a.descriptor.id, n), l = r.page, c = a.axis;
|
|
2898
2898
|
if (!i.length)
|
|
2899
2899
|
return ug({
|
|
2900
2900
|
axis: c,
|
|
@@ -2921,7 +2921,7 @@ var og = function(e) {
|
|
|
2921
2921
|
if (v.descriptor.id === r.descriptor.id)
|
|
2922
2922
|
return l.borderBox.center;
|
|
2923
2923
|
if (Nt(v.descriptor.id, o)) {
|
|
2924
|
-
var b = on(v.page,
|
|
2924
|
+
var b = on(v.page, tr(o.displacedBy.point));
|
|
2925
2925
|
return oi({
|
|
2926
2926
|
axis: c,
|
|
2927
2927
|
moveRelativeTo: b,
|
|
@@ -2953,7 +2953,7 @@ var og = function(e) {
|
|
|
2953
2953
|
var t = fg(e), r = e.droppable, n = r ? ia(r, t) : t;
|
|
2954
2954
|
return n;
|
|
2955
2955
|
}, ul = function(e, t) {
|
|
2956
|
-
var r = We(t, e.scroll.initial), n =
|
|
2956
|
+
var r = We(t, e.scroll.initial), n = tr(r), a = rt({
|
|
2957
2957
|
top: t.y,
|
|
2958
2958
|
bottom: t.y + e.frame.height,
|
|
2959
2959
|
left: t.x,
|
|
@@ -3034,7 +3034,7 @@ var vg = function(e) {
|
|
|
3034
3034
|
var t = e.isMovingForward, r = e.draggable, n = e.destination, a = e.draggables, o = e.previousImpact, i = e.viewport, l = e.previousPageBorderBoxCenter, c = e.previousClientSelection, p = e.afterCritical;
|
|
3035
3035
|
if (!n.isEnabled)
|
|
3036
3036
|
return null;
|
|
3037
|
-
var d =
|
|
3037
|
+
var d = Gt(n.descriptor.id, a), u = rr(r, n), f = qf({
|
|
3038
3038
|
isMovingForward: t,
|
|
3039
3039
|
draggable: r,
|
|
3040
3040
|
destination: n,
|
|
@@ -3137,7 +3137,7 @@ var vg = function(e) {
|
|
|
3137
3137
|
return Nt(t.descriptor.id, r) ? We(n, r.displacedBy.point) : n;
|
|
3138
3138
|
}, xg = function(t, r) {
|
|
3139
3139
|
var n = t.page.borderBox;
|
|
3140
|
-
return Nt(t.descriptor.id, r) ? Ar(n,
|
|
3140
|
+
return Nt(t.descriptor.id, r) ? Ar(n, tr(r.displacedBy.point)) : n;
|
|
3141
3141
|
}, yg = function(e) {
|
|
3142
3142
|
var t = e.pageBorderBoxCenter, r = e.viewport, n = e.destination, a = e.insideDestination, o = e.afterCritical, i = a.filter(function(l) {
|
|
3143
3143
|
return cl({
|
|
@@ -3155,16 +3155,16 @@ var vg = function(e) {
|
|
|
3155
3155
|
var n = r[t.line];
|
|
3156
3156
|
return {
|
|
3157
3157
|
value: n,
|
|
3158
|
-
point:
|
|
3158
|
+
point: Vt(t.line, n)
|
|
3159
3159
|
};
|
|
3160
3160
|
}), wg = function(t, r, n) {
|
|
3161
3161
|
var a = t.axis;
|
|
3162
3162
|
if (t.descriptor.mode === "virtual")
|
|
3163
|
-
return
|
|
3164
|
-
var o = t.subject.page.contentBox[a.size], i =
|
|
3163
|
+
return Vt(a.line, r[a.line]);
|
|
3164
|
+
var o = t.subject.page.contentBox[a.size], i = Gt(t.descriptor.id, n), l = i.reduce(function(d, u) {
|
|
3165
3165
|
return d + u.client.marginBox[a.size];
|
|
3166
3166
|
}, 0), c = l + r[a.line], p = c - o;
|
|
3167
|
-
return p <= 0 ? null :
|
|
3167
|
+
return p <= 0 ? null : Vt(a.line, p);
|
|
3168
3168
|
}, fl = function(t, r) {
|
|
3169
3169
|
return te({}, t, {
|
|
3170
3170
|
scroll: te({}, t.scroll, {
|
|
@@ -3173,14 +3173,14 @@ var vg = function(e) {
|
|
|
3173
3173
|
});
|
|
3174
3174
|
}, gl = function(t, r, n) {
|
|
3175
3175
|
var a = t.frame;
|
|
3176
|
-
|
|
3176
|
+
rr(r, t) && (process.env.NODE_ENV !== "production" ? w(!1, "Should not add placeholder space to home list") : w()), t.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot add placeholder size to a subject when it already has one") : w());
|
|
3177
3177
|
var o = Rr(t.axis, r.displaceBy).point, i = wg(t, o, n), l = {
|
|
3178
3178
|
placeholderSize: o,
|
|
3179
3179
|
increasedBy: i,
|
|
3180
3180
|
oldFrameMaxScroll: t.frame ? t.frame.scroll.max : null
|
|
3181
3181
|
};
|
|
3182
3182
|
if (!a) {
|
|
3183
|
-
var c =
|
|
3183
|
+
var c = Kt({
|
|
3184
3184
|
page: t.subject.page,
|
|
3185
3185
|
withPlaceholder: l,
|
|
3186
3186
|
axis: t.axis,
|
|
@@ -3190,7 +3190,7 @@ var vg = function(e) {
|
|
|
3190
3190
|
subject: c
|
|
3191
3191
|
});
|
|
3192
3192
|
}
|
|
3193
|
-
var p = i ? ke(a.scroll.max, i) : a.scroll.max, d = fl(a, p), u =
|
|
3193
|
+
var p = i ? ke(a.scroll.max, i) : a.scroll.max, d = fl(a, p), u = Kt({
|
|
3194
3194
|
page: t.subject.page,
|
|
3195
3195
|
withPlaceholder: l,
|
|
3196
3196
|
axis: t.axis,
|
|
@@ -3205,7 +3205,7 @@ var vg = function(e) {
|
|
|
3205
3205
|
r || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot remove placeholder form subject when there was none") : w());
|
|
3206
3206
|
var n = t.frame;
|
|
3207
3207
|
if (!n) {
|
|
3208
|
-
var a =
|
|
3208
|
+
var a = Kt({
|
|
3209
3209
|
page: t.subject.page,
|
|
3210
3210
|
axis: t.axis,
|
|
3211
3211
|
frame: null,
|
|
@@ -3217,7 +3217,7 @@ var vg = function(e) {
|
|
|
3217
3217
|
}
|
|
3218
3218
|
var o = r.oldFrameMaxScroll;
|
|
3219
3219
|
o || (process.env.NODE_ENV !== "production" ? w(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : w());
|
|
3220
|
-
var i = fl(n, o), l =
|
|
3220
|
+
var i = fl(n, o), l = Kt({
|
|
3221
3221
|
page: t.subject.page,
|
|
3222
3222
|
axis: t.axis,
|
|
3223
3223
|
frame: i,
|
|
@@ -3248,7 +3248,7 @@ var vg = function(e) {
|
|
|
3248
3248
|
droppable: i,
|
|
3249
3249
|
draggables: o,
|
|
3250
3250
|
afterCritical: c
|
|
3251
|
-
}), u =
|
|
3251
|
+
}), u = rr(a, i) ? i : gl(i, a, o), f = pl({
|
|
3252
3252
|
draggable: a,
|
|
3253
3253
|
destination: u,
|
|
3254
3254
|
newPageBorderBoxCenter: d,
|
|
@@ -3281,7 +3281,7 @@ var vg = function(e) {
|
|
|
3281
3281
|
});
|
|
3282
3282
|
if (!p)
|
|
3283
3283
|
return null;
|
|
3284
|
-
var d =
|
|
3284
|
+
var d = Gt(p.descriptor.id, o), u = yg({
|
|
3285
3285
|
pageBorderBoxCenter: r,
|
|
3286
3286
|
viewport: l,
|
|
3287
3287
|
destination: p,
|
|
@@ -3356,12 +3356,12 @@ function vl(e) {
|
|
|
3356
3356
|
return t(a.y) && r(a.x);
|
|
3357
3357
|
};
|
|
3358
3358
|
}
|
|
3359
|
-
function
|
|
3359
|
+
function jg(e, t) {
|
|
3360
3360
|
return e.left < t.right && e.right > t.left && e.top < t.bottom && e.bottom > t.top;
|
|
3361
3361
|
}
|
|
3362
|
-
function
|
|
3362
|
+
function Ig(e) {
|
|
3363
3363
|
var t = e.pageBorderBox, r = e.draggable, n = e.candidates, a = r.page.borderBox.center, o = n.map(function(i) {
|
|
3364
|
-
var l = i.axis, c =
|
|
3364
|
+
var l = i.axis, c = Vt(i.axis.line, t.center[l.line], i.page.borderBox.center[l.crossAxisLine]);
|
|
3365
3365
|
return {
|
|
3366
3366
|
id: i.descriptor.id,
|
|
3367
3367
|
distance: Nr(a, c)
|
|
@@ -3376,14 +3376,14 @@ function Og(e) {
|
|
|
3376
3376
|
if (!o.isEnabled)
|
|
3377
3377
|
return !1;
|
|
3378
3378
|
var i = o.subject.active;
|
|
3379
|
-
if (!i || !
|
|
3379
|
+
if (!i || !jg(t, i))
|
|
3380
3380
|
return !1;
|
|
3381
3381
|
if (vl(i)(t.center))
|
|
3382
3382
|
return !0;
|
|
3383
3383
|
var l = o.axis, c = i.center[l.crossAxisLine], p = t[l.crossAxisStart], d = t[l.crossAxisEnd], u = Xe(i[l.crossAxisStart], i[l.crossAxisEnd]), f = u(p), g = u(d);
|
|
3384
3384
|
return !f && !g ? !0 : f ? p < c : d > c;
|
|
3385
3385
|
});
|
|
3386
|
-
return a.length ? a.length === 1 ? a[0].descriptor.id :
|
|
3386
|
+
return a.length ? a.length === 1 ? a[0].descriptor.id : Ig({
|
|
3387
3387
|
pageBorderBox: t,
|
|
3388
3388
|
draggable: r,
|
|
3389
3389
|
candidates: a
|
|
@@ -3404,7 +3404,7 @@ function Pg(e) {
|
|
|
3404
3404
|
return r ? n && r.descriptor.index > t.descriptor.index ? r.descriptor.index - 1 : r.descriptor.index : null;
|
|
3405
3405
|
}
|
|
3406
3406
|
var Tg = function(e) {
|
|
3407
|
-
var t = e.pageBorderBoxWithDroppableScroll, r = e.draggable, n = e.destination, a = e.insideDestination, o = e.last, i = e.viewport, l = e.afterCritical, c = n.axis, p = Rr(n.axis, r.displaceBy), d = p.value, u = t[c.start], f = t[c.end], g = xn(r, a), v =
|
|
3407
|
+
var t = e.pageBorderBoxWithDroppableScroll, r = e.draggable, n = e.destination, a = e.insideDestination, o = e.last, i = e.viewport, l = e.afterCritical, c = n.axis, p = Rr(n.axis, r.displaceBy), d = p.value, u = t[c.start], f = t[c.end], g = xn(r, a), v = It(g, function(h) {
|
|
3408
3408
|
var m = h.descriptor.id, x = h.page.borderBox.center[c.line], D = Nt(m, l), N = hl({
|
|
3409
3409
|
displaced: o,
|
|
3410
3410
|
id: m
|
|
@@ -3413,7 +3413,7 @@ var Tg = function(e) {
|
|
|
3413
3413
|
}), b = Pg({
|
|
3414
3414
|
draggable: r,
|
|
3415
3415
|
closest: v,
|
|
3416
|
-
inHomeList:
|
|
3416
|
+
inHomeList: rr(r, n)
|
|
3417
3417
|
});
|
|
3418
3418
|
return dn({
|
|
3419
3419
|
draggable: r,
|
|
@@ -3428,7 +3428,7 @@ var Tg = function(e) {
|
|
|
3428
3428
|
var t = e.draggable, r = e.pageBorderBoxWithDroppableScroll, n = e.previousImpact, a = e.destination, o = e.insideDestination, i = e.afterCritical;
|
|
3429
3429
|
if (!a.isCombineEnabled)
|
|
3430
3430
|
return null;
|
|
3431
|
-
var l = a.axis, c = Rr(a.axis, t.displaceBy), p = c.value, d = r[l.start], u = r[l.end], f = xn(t, o), g =
|
|
3431
|
+
var l = a.axis, c = Rr(a.axis, t.displaceBy), p = c.value, d = r[l.start], u = r[l.end], f = xn(t, o), g = It(f, function(b) {
|
|
3432
3432
|
var h = b.descriptor.id, m = b.page.borderBox, x = m[l.size], D = x / Ag, N = Nt(h, i), y = hl({
|
|
3433
3433
|
displaced: n.displaced,
|
|
3434
3434
|
id: h
|
|
@@ -3457,7 +3457,7 @@ var Tg = function(e) {
|
|
|
3457
3457
|
});
|
|
3458
3458
|
if (!p)
|
|
3459
3459
|
return Yf;
|
|
3460
|
-
var d = a[p], u =
|
|
3460
|
+
var d = a[p], u = Gt(d.descriptor.id, n), f = _g(d, c);
|
|
3461
3461
|
return Rg({
|
|
3462
3462
|
pageBorderBoxWithDroppableScroll: f,
|
|
3463
3463
|
draggable: r,
|
|
@@ -3495,11 +3495,11 @@ var Tg = function(e) {
|
|
|
3495
3495
|
if (!l)
|
|
3496
3496
|
return i;
|
|
3497
3497
|
var c = n[l];
|
|
3498
|
-
if (
|
|
3498
|
+
if (rr(t, c) || c.subject.withPlaceholder)
|
|
3499
3499
|
return i;
|
|
3500
3500
|
var p = gl(c, t, r);
|
|
3501
3501
|
return za(i, p);
|
|
3502
|
-
},
|
|
3502
|
+
}, gr = function(e) {
|
|
3503
3503
|
var t = e.state, r = e.clientSelection, n = e.dimensions, a = e.viewport, o = e.impact, i = e.scrollJumpRequest, l = a || t.viewport, c = n || t.dimensions, p = r || t.current.client.selection, d = We(p, t.initial.client.selection), u = {
|
|
3504
3504
|
offset: d,
|
|
3505
3505
|
selection: p,
|
|
@@ -3595,7 +3595,7 @@ var xl = function(e) {
|
|
|
3595
3595
|
viewport: o,
|
|
3596
3596
|
afterCritical: t.afterCritical
|
|
3597
3597
|
});
|
|
3598
|
-
return
|
|
3598
|
+
return gr({
|
|
3599
3599
|
impact: f,
|
|
3600
3600
|
clientSelection: g,
|
|
3601
3601
|
state: t,
|
|
@@ -3608,7 +3608,7 @@ var xl = function(e) {
|
|
|
3608
3608
|
droppableId: e.droppableId
|
|
3609
3609
|
};
|
|
3610
3610
|
}, Dl = function(e) {
|
|
3611
|
-
var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = Rr(r.axis, t.displaceBy), i =
|
|
3611
|
+
var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = Rr(r.axis, t.displaceBy), i = Gt(r.descriptor.id, n), l = i.indexOf(t);
|
|
3612
3612
|
l === -1 && (process.env.NODE_ENV !== "production" ? w(!1, "Expected draggable to be inside home list") : w());
|
|
3613
3613
|
var c = i.slice(l + 1), p = c.reduce(function(g, v) {
|
|
3614
3614
|
return g[v.descriptor.id] = !0, g;
|
|
@@ -3722,7 +3722,7 @@ var xl = function(e) {
|
|
|
3722
3722
|
return t.movementMode === "SNAP";
|
|
3723
3723
|
}, Mn = function(t, r, n) {
|
|
3724
3724
|
var a = Fg(t.dimensions, r);
|
|
3725
|
-
return !sa(t) || n ?
|
|
3725
|
+
return !sa(t) || n ? gr({
|
|
3726
3726
|
state: t,
|
|
3727
3727
|
dimensions: a
|
|
3728
3728
|
}) : wl({
|
|
@@ -3805,7 +3805,7 @@ var ci = {
|
|
|
3805
3805
|
return e;
|
|
3806
3806
|
Bt(e) || (process.env.NODE_ENV !== "production" ? w(!1, t.type + " not permitted in phase " + e.phase) : w());
|
|
3807
3807
|
var x = t.payload.client;
|
|
3808
|
-
return wt(x, e.current.client.selection) ? e :
|
|
3808
|
+
return wt(x, e.current.client.selection) ? e : gr({
|
|
3809
3809
|
state: e,
|
|
3810
3810
|
clientSelection: x,
|
|
3811
3811
|
impact: sa(e) ? e.impact : null
|
|
@@ -3818,8 +3818,8 @@ var ci = {
|
|
|
3818
3818
|
var D = t.payload, N = D.id, y = D.newScroll, S = e.dimensions.droppables[N];
|
|
3819
3819
|
if (!S)
|
|
3820
3820
|
return e;
|
|
3821
|
-
var
|
|
3822
|
-
return Mn(e,
|
|
3821
|
+
var j = Fa(S, y);
|
|
3822
|
+
return Mn(e, j, !1);
|
|
3823
3823
|
}
|
|
3824
3824
|
if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
|
|
3825
3825
|
if (e.phase === "DROP_PENDING")
|
|
@@ -3856,7 +3856,7 @@ var ci = {
|
|
|
3856
3856
|
return sa(e) ? wl({
|
|
3857
3857
|
state: e,
|
|
3858
3858
|
viewport: F
|
|
3859
|
-
}) :
|
|
3859
|
+
}) : gr({
|
|
3860
3860
|
state: e,
|
|
3861
3861
|
viewport: F
|
|
3862
3862
|
});
|
|
@@ -3886,7 +3886,7 @@ var ci = {
|
|
|
3886
3886
|
state: e,
|
|
3887
3887
|
type: t.type
|
|
3888
3888
|
});
|
|
3889
|
-
return re ?
|
|
3889
|
+
return re ? gr({
|
|
3890
3890
|
state: e,
|
|
3891
3891
|
impact: re.impact,
|
|
3892
3892
|
clientSelection: re.clientSelection,
|
|
@@ -3918,10 +3918,10 @@ var ci = {
|
|
|
3918
3918
|
return De;
|
|
3919
3919
|
}
|
|
3920
3920
|
if (t.type === "DROP_COMPLETE") {
|
|
3921
|
-
var
|
|
3921
|
+
var Ie = t.payload.completed;
|
|
3922
3922
|
return {
|
|
3923
3923
|
phase: "IDLE",
|
|
3924
|
-
completed:
|
|
3924
|
+
completed: Ie,
|
|
3925
3925
|
shouldFlush: !1
|
|
3926
3926
|
};
|
|
3927
3927
|
}
|
|
@@ -4057,7 +4057,7 @@ function sv(e) {
|
|
|
4057
4057
|
}
|
|
4058
4058
|
function lv(e, t) {
|
|
4059
4059
|
if (process.env.NODE_ENV !== "production") {
|
|
4060
|
-
var r =
|
|
4060
|
+
var r = Gt(e.droppable.id, t.draggables);
|
|
4061
4061
|
sv(r);
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
@@ -4116,7 +4116,7 @@ var cv = function(e) {
|
|
|
4116
4116
|
outOfTheWay: 0.2,
|
|
4117
4117
|
minDropTime: 0.33,
|
|
4118
4118
|
maxDropTime: 0.55
|
|
4119
|
-
}, Tt = Xa.outOfTheWay + "s " + Ka.outOfTheWay,
|
|
4119
|
+
}, Tt = Xa.outOfTheWay + "s " + Ka.outOfTheWay, vr = {
|
|
4120
4120
|
fluid: "opacity " + Tt,
|
|
4121
4121
|
snap: "transform " + Tt + ", opacity " + Tt,
|
|
4122
4122
|
drop: function(t) {
|
|
@@ -4246,7 +4246,7 @@ var cv = function(e) {
|
|
|
4246
4246
|
}
|
|
4247
4247
|
};
|
|
4248
4248
|
};
|
|
4249
|
-
},
|
|
4249
|
+
}, jl = function() {
|
|
4250
4250
|
return {
|
|
4251
4251
|
x: window.pageXOffset,
|
|
4252
4252
|
y: window.pageYOffset
|
|
@@ -4267,7 +4267,7 @@ function hv(e) {
|
|
|
4267
4267
|
function bv(e) {
|
|
4268
4268
|
var t = e.onWindowScroll;
|
|
4269
4269
|
function r() {
|
|
4270
|
-
t(
|
|
4270
|
+
t(jl());
|
|
4271
4271
|
}
|
|
4272
4272
|
var n = wr(r), a = hv(n), o = yt;
|
|
4273
4273
|
function i() {
|
|
@@ -4357,7 +4357,7 @@ var xv = function(t) {
|
|
|
4357
4357
|
return !0;
|
|
4358
4358
|
var n = t.draggable.id === r.draggable.id && t.draggable.droppableId === r.draggable.droppableId && t.draggable.type === r.draggable.type && t.draggable.index === r.draggable.index, a = t.droppable.id === r.droppable.id && t.droppable.type === r.droppable.type;
|
|
4359
4359
|
return n && a;
|
|
4360
|
-
},
|
|
4360
|
+
}, dr = function(t, r) {
|
|
4361
4361
|
kr(), r(), Br();
|
|
4362
4362
|
}, Wr = function(t, r) {
|
|
4363
4363
|
return {
|
|
@@ -4380,7 +4380,7 @@ var xv = function(t) {
|
|
|
4380
4380
|
t(r, i), o.wasCalled() || n(a(r));
|
|
4381
4381
|
}, Ev = function(e, t) {
|
|
4382
4382
|
var r = Dv(), n = null, a = function(f, g) {
|
|
4383
|
-
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : w()),
|
|
4383
|
+
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : w()), dr("onBeforeCapture", function() {
|
|
4384
4384
|
var v = e().onBeforeCapture;
|
|
4385
4385
|
if (v) {
|
|
4386
4386
|
var b = {
|
|
@@ -4391,7 +4391,7 @@ var xv = function(t) {
|
|
|
4391
4391
|
}
|
|
4392
4392
|
});
|
|
4393
4393
|
}, o = function(f, g) {
|
|
4394
|
-
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : w()),
|
|
4394
|
+
n && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : w()), dr("onBeforeDragStart", function() {
|
|
4395
4395
|
var v = e().onBeforeDragStart;
|
|
4396
4396
|
v && v(Wr(f, g));
|
|
4397
4397
|
});
|
|
@@ -4404,7 +4404,7 @@ var xv = function(t) {
|
|
|
4404
4404
|
lastLocation: v.source,
|
|
4405
4405
|
lastCombine: null
|
|
4406
4406
|
}, r.add(function() {
|
|
4407
|
-
|
|
4407
|
+
dr("onDragStart", function() {
|
|
4408
4408
|
return Fn(e().onDragStart, v, t, Qr.onDragStart);
|
|
4409
4409
|
});
|
|
4410
4410
|
});
|
|
@@ -4422,7 +4422,7 @@ var xv = function(t) {
|
|
|
4422
4422
|
destination: v
|
|
4423
4423
|
});
|
|
4424
4424
|
r.add(function() {
|
|
4425
|
-
|
|
4425
|
+
dr("onDragUpdate", function() {
|
|
4426
4426
|
return Fn(e().onDragUpdate, D, t, Qr.onDragUpdate);
|
|
4427
4427
|
});
|
|
4428
4428
|
});
|
|
@@ -4430,7 +4430,7 @@ var xv = function(t) {
|
|
|
4430
4430
|
}, c = function() {
|
|
4431
4431
|
n || (process.env.NODE_ENV !== "production" ? w(!1, "Can only flush responders while dragging") : w()), r.flush();
|
|
4432
4432
|
}, p = function(f) {
|
|
4433
|
-
n || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : w()), n = null,
|
|
4433
|
+
n || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : w()), n = null, dr("onDragEnd", function() {
|
|
4434
4434
|
return Fn(e().onDragEnd, f, t, Qr.onDragEnd);
|
|
4435
4435
|
});
|
|
4436
4436
|
}, d = function() {
|
|
@@ -4452,7 +4452,7 @@ var xv = function(t) {
|
|
|
4452
4452
|
drop: p,
|
|
4453
4453
|
abort: d
|
|
4454
4454
|
};
|
|
4455
|
-
},
|
|
4455
|
+
}, jv = function(e, t) {
|
|
4456
4456
|
var r = Ev(e, t);
|
|
4457
4457
|
return function(n) {
|
|
4458
4458
|
return function(a) {
|
|
@@ -4480,7 +4480,7 @@ var xv = function(t) {
|
|
|
4480
4480
|
};
|
|
4481
4481
|
};
|
|
4482
4482
|
};
|
|
4483
|
-
},
|
|
4483
|
+
}, Iv = function(e) {
|
|
4484
4484
|
return function(t) {
|
|
4485
4485
|
return function(r) {
|
|
4486
4486
|
if (r.type !== "DROP_ANIMATION_FINISHED") {
|
|
@@ -4585,7 +4585,7 @@ var xv = function(t) {
|
|
|
4585
4585
|
name: "react-beautiful-dnd"
|
|
4586
4586
|
}) : Fs, Bv = function(e) {
|
|
4587
4587
|
var t = e.dimensionMarshal, r = e.focusMarshal, n = e.styleMarshal, a = e.getResponders, o = e.announce, i = e.autoScroller;
|
|
4588
|
-
return Ls(Ug, kv(Ep(dv(n), _v(t), cv(t), mv,
|
|
4588
|
+
return Ls(Ug, kv(Ep(dv(n), _v(t), cv(t), mv, Iv, Ov, Rv, Av(i), yv, Pv(r), jv(a, o))));
|
|
4589
4589
|
}, Vn = function() {
|
|
4590
4590
|
return {
|
|
4591
4591
|
additions: {},
|
|
@@ -4629,7 +4629,7 @@ function Mv(e) {
|
|
|
4629
4629
|
stop: c
|
|
4630
4630
|
};
|
|
4631
4631
|
}
|
|
4632
|
-
var
|
|
4632
|
+
var Il = function(e) {
|
|
4633
4633
|
var t = e.scrollHeight, r = e.scrollWidth, n = e.height, a = e.width, o = We({
|
|
4634
4634
|
x: r,
|
|
4635
4635
|
y: t
|
|
@@ -4645,7 +4645,7 @@ var jl = function(e) {
|
|
|
4645
4645
|
var e = document.documentElement;
|
|
4646
4646
|
return e || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find document.documentElement") : w()), e;
|
|
4647
4647
|
}, _l = function() {
|
|
4648
|
-
var e = Ol(), t =
|
|
4648
|
+
var e = Ol(), t = Il({
|
|
4649
4649
|
scrollHeight: e.scrollHeight,
|
|
4650
4650
|
scrollWidth: e.scrollWidth,
|
|
4651
4651
|
width: e.clientWidth,
|
|
@@ -4653,7 +4653,7 @@ var jl = function(e) {
|
|
|
4653
4653
|
});
|
|
4654
4654
|
return t;
|
|
4655
4655
|
}, Lv = function() {
|
|
4656
|
-
var e =
|
|
4656
|
+
var e = jl(), t = _l(), r = e.y, n = e.x, a = Ol(), o = a.clientWidth, i = a.clientHeight, l = n + o, c = r + i, p = rt({
|
|
4657
4657
|
top: r,
|
|
4658
4658
|
left: n,
|
|
4659
4659
|
right: l,
|
|
@@ -4769,7 +4769,7 @@ var Vv = function(e, t) {
|
|
|
4769
4769
|
return !(!t.isEnabled || !t.frame);
|
|
4770
4770
|
});
|
|
4771
4771
|
}), Wv = function(t, r) {
|
|
4772
|
-
var n =
|
|
4772
|
+
var n = It(Gv(r), function(a) {
|
|
4773
4773
|
return a.frame || (process.env.NODE_ENV !== "production" ? w(!1, "Invalid result") : w()), vl(a.frame.pageMarginBox)(t);
|
|
4774
4774
|
});
|
|
4775
4775
|
return n;
|
|
@@ -5085,34 +5085,34 @@ var Vv = function(e, t) {
|
|
|
5085
5085
|
stop: a.stop
|
|
5086
5086
|
};
|
|
5087
5087
|
return l;
|
|
5088
|
-
},
|
|
5089
|
-
var e =
|
|
5088
|
+
}, Xt = "data-rbd", Jt = function() {
|
|
5089
|
+
var e = Xt + "-drag-handle";
|
|
5090
5090
|
return {
|
|
5091
5091
|
base: e,
|
|
5092
5092
|
draggableId: e + "-draggable-id",
|
|
5093
5093
|
contextId: e + "-context-id"
|
|
5094
5094
|
};
|
|
5095
5095
|
}(), da = function() {
|
|
5096
|
-
var e =
|
|
5096
|
+
var e = Xt + "-draggable";
|
|
5097
5097
|
return {
|
|
5098
5098
|
base: e,
|
|
5099
5099
|
contextId: e + "-context-id",
|
|
5100
5100
|
id: e + "-id"
|
|
5101
5101
|
};
|
|
5102
5102
|
}(), am = function() {
|
|
5103
|
-
var e =
|
|
5103
|
+
var e = Xt + "-droppable";
|
|
5104
5104
|
return {
|
|
5105
5105
|
base: e,
|
|
5106
5106
|
contextId: e + "-context-id",
|
|
5107
5107
|
id: e + "-id"
|
|
5108
5108
|
};
|
|
5109
5109
|
}(), bi = {
|
|
5110
|
-
contextId:
|
|
5110
|
+
contextId: Xt + "-scroll-container-context-id"
|
|
5111
5111
|
}, om = function(t) {
|
|
5112
5112
|
return function(r) {
|
|
5113
5113
|
return "[" + r + '="' + t + '"]';
|
|
5114
5114
|
};
|
|
5115
|
-
},
|
|
5115
|
+
}, ur = function(t, r) {
|
|
5116
5116
|
return t.map(function(n) {
|
|
5117
5117
|
var a = n.styles[r];
|
|
5118
5118
|
return a ? n.selector + " { " + a + " }" : "";
|
|
@@ -5124,7 +5124,7 @@ var Vv = function(e, t) {
|
|
|
5124
5124
|
cursor: grab;
|
|
5125
5125
|
`;
|
|
5126
5126
|
return {
|
|
5127
|
-
selector: t(
|
|
5127
|
+
selector: t(Jt.contextId),
|
|
5128
5128
|
styles: {
|
|
5129
5129
|
always: `
|
|
5130
5130
|
-webkit-touch-callout: none;
|
|
@@ -5138,7 +5138,7 @@ var Vv = function(e, t) {
|
|
|
5138
5138
|
};
|
|
5139
5139
|
}(), n = function() {
|
|
5140
5140
|
var l = `
|
|
5141
|
-
transition: ` +
|
|
5141
|
+
transition: ` + vr.outOfTheWay + `;
|
|
5142
5142
|
`;
|
|
5143
5143
|
return {
|
|
5144
5144
|
selector: t(da.contextId),
|
|
@@ -5168,13 +5168,13 @@ var Vv = function(e, t) {
|
|
|
5168
5168
|
}
|
|
5169
5169
|
}, i = [n, r, a, o];
|
|
5170
5170
|
return {
|
|
5171
|
-
always:
|
|
5172
|
-
resting:
|
|
5173
|
-
dragging:
|
|
5174
|
-
dropAnimating:
|
|
5175
|
-
userCancel:
|
|
5171
|
+
always: ur(i, "always"),
|
|
5172
|
+
resting: ur(i, "resting"),
|
|
5173
|
+
dragging: ur(i, "dragging"),
|
|
5174
|
+
dropAnimating: ur(i, "dropAnimating"),
|
|
5175
|
+
userCancel: ur(i, "userCancel")
|
|
5176
5176
|
};
|
|
5177
|
-
}, He = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ?
|
|
5177
|
+
}, He = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? ja : W, $n = function() {
|
|
5178
5178
|
var t = document.querySelector("head");
|
|
5179
5179
|
return t || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find the head to append a style to") : w()), t;
|
|
5180
5180
|
}, xi = function(t) {
|
|
@@ -5194,7 +5194,7 @@ function lm(e, t) {
|
|
|
5194
5194
|
He(function() {
|
|
5195
5195
|
!n.current && !a.current || (process.env.NODE_ENV !== "production" ? w(!1, "style elements already mounted") : w());
|
|
5196
5196
|
var u = xi(t), f = xi(t);
|
|
5197
|
-
return n.current = u, a.current = f, u.setAttribute(
|
|
5197
|
+
return n.current = u, a.current = f, u.setAttribute(Xt + "-always", e), f.setAttribute(Xt + "-dynamic", e), $n().appendChild(u), $n().appendChild(f), i(r.always), o(r.resting), function() {
|
|
5198
5198
|
var g = function(b) {
|
|
5199
5199
|
var h = b.current;
|
|
5200
5200
|
h || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot unmount ref as it is not set") : w()), $n().removeChild(h), b.current = null;
|
|
@@ -5228,11 +5228,11 @@ function Mr(e) {
|
|
|
5228
5228
|
return e instanceof kl(e).HTMLElement;
|
|
5229
5229
|
}
|
|
5230
5230
|
function Bl(e, t) {
|
|
5231
|
-
var r = "[" +
|
|
5231
|
+
var r = "[" + Jt.contextId + '="' + e + '"]', n = nl(document.querySelectorAll(r));
|
|
5232
5232
|
if (!n.length)
|
|
5233
5233
|
return process.env.NODE_ENV !== "production" && we('Unable to find any drag handles in the context "' + e + '"'), null;
|
|
5234
|
-
var a =
|
|
5235
|
-
return o.getAttribute(
|
|
5234
|
+
var a = It(n, function(o) {
|
|
5235
|
+
return o.getAttribute(Jt.draggableId) === t;
|
|
5236
5236
|
});
|
|
5237
5237
|
return a ? Mr(a) ? a : (process.env.NODE_ENV !== "production" && we("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && we('Unable to find drag handle with id "' + t + '" as no handle with a matching id was found'), null);
|
|
5238
5238
|
}
|
|
@@ -5260,7 +5260,7 @@ function cm(e) {
|
|
|
5260
5260
|
}, [i]), p = X(function(f) {
|
|
5261
5261
|
r.current = null;
|
|
5262
5262
|
var g = document.activeElement;
|
|
5263
|
-
g && g.getAttribute(
|
|
5263
|
+
g && g.getAttribute(Jt.draggableId) === f && (r.current = f);
|
|
5264
5264
|
}, []);
|
|
5265
5265
|
He(function() {
|
|
5266
5266
|
return a.current = !0, function() {
|
|
@@ -5375,7 +5375,7 @@ function um() {
|
|
|
5375
5375
|
};
|
|
5376
5376
|
}, [e]), e;
|
|
5377
5377
|
}
|
|
5378
|
-
var to = ie.createContext(null),
|
|
5378
|
+
var to = ie.createContext(null), jr = function() {
|
|
5379
5379
|
var e = document.body;
|
|
5380
5380
|
return e || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot find document.body") : w()), e;
|
|
5381
5381
|
}, pm = {
|
|
@@ -5397,9 +5397,9 @@ function gm(e) {
|
|
|
5397
5397
|
}, [e]), r = ee(null);
|
|
5398
5398
|
W(function() {
|
|
5399
5399
|
var o = document.createElement("div");
|
|
5400
|
-
return r.current = o, o.id = t, o.setAttribute("aria-live", "assertive"), o.setAttribute("aria-atomic", "true"), te(o.style, pm),
|
|
5400
|
+
return r.current = o, o.id = t, o.setAttribute("aria-live", "assertive"), o.setAttribute("aria-atomic", "true"), te(o.style, pm), jr().appendChild(o), function() {
|
|
5401
5401
|
setTimeout(function() {
|
|
5402
|
-
var c =
|
|
5402
|
+
var c = jr();
|
|
5403
5403
|
c.contains(o) && c.removeChild(o), o === r.current && (r.current = null);
|
|
5404
5404
|
});
|
|
5405
5405
|
};
|
|
@@ -5446,8 +5446,8 @@ function bm(e) {
|
|
|
5446
5446
|
}, [n, t]);
|
|
5447
5447
|
return W(function() {
|
|
5448
5448
|
var i = document.createElement("div");
|
|
5449
|
-
return i.id = a, i.textContent = r, i.style.display = "none",
|
|
5450
|
-
var c =
|
|
5449
|
+
return i.id = a, i.textContent = r, i.style.display = "none", jr().appendChild(i), function() {
|
|
5450
|
+
var c = jr();
|
|
5451
5451
|
c.contains(i) && c.removeChild(i);
|
|
5452
5452
|
};
|
|
5453
5453
|
}, [a, r]), a;
|
|
@@ -5559,13 +5559,13 @@ function Cm() {
|
|
|
5559
5559
|
tryAbandon: o
|
|
5560
5560
|
};
|
|
5561
5561
|
}
|
|
5562
|
-
var Em = 9,
|
|
5562
|
+
var Em = 9, jm = 13, oo = 27, Ml = 32, Im = 33, Om = 34, _m = 35, Pm = 36, Tm = 37, Am = 38, Rm = 39, km = 40, Ur, Bm = (Ur = {}, Ur[jm] = !0, Ur[Em] = !0, Ur), Ll = function(e) {
|
|
5563
5563
|
Bm[e.keyCode] && e.preventDefault();
|
|
5564
5564
|
}, Dn = function() {
|
|
5565
5565
|
var e = "visibilitychange";
|
|
5566
5566
|
if (typeof document > "u")
|
|
5567
5567
|
return e;
|
|
5568
|
-
var t = [e, "ms" + e, "webkit" + e, "moz" + e, "o" + e], r =
|
|
5568
|
+
var t = [e, "ms" + e, "webkit" + e, "moz" + e, "o" + e], r = It(t, function(n) {
|
|
5569
5569
|
return "on" + n in document;
|
|
5570
5570
|
});
|
|
5571
5571
|
return r || e;
|
|
@@ -5739,10 +5739,10 @@ function Fm(e) {
|
|
|
5739
5739
|
};
|
|
5740
5740
|
}, [o]);
|
|
5741
5741
|
}
|
|
5742
|
-
var
|
|
5742
|
+
var Ht;
|
|
5743
5743
|
function Vm() {
|
|
5744
5744
|
}
|
|
5745
|
-
var $m = (
|
|
5745
|
+
var $m = (Ht = {}, Ht[Om] = !0, Ht[Im] = !0, Ht[Pm] = !0, Ht[_m] = !0, Ht);
|
|
5746
5746
|
function Gm(e, t) {
|
|
5747
5747
|
function r() {
|
|
5748
5748
|
t(), e.cancel();
|
|
@@ -6082,7 +6082,7 @@ var eh = function() {
|
|
|
6082
6082
|
var e = "matches";
|
|
6083
6083
|
if (typeof document > "u")
|
|
6084
6084
|
return e;
|
|
6085
|
-
var t = [e, "msMatchesSelector", "webkitMatchesSelector"], r =
|
|
6085
|
+
var t = [e, "msMatchesSelector", "webkitMatchesSelector"], r = It(t, function(n) {
|
|
6086
6086
|
return n in Element.prototype;
|
|
6087
6087
|
});
|
|
6088
6088
|
return r || e;
|
|
@@ -6094,7 +6094,7 @@ function th(e, t) {
|
|
|
6094
6094
|
return e.closest ? e.closest(t) : $l(e, t);
|
|
6095
6095
|
}
|
|
6096
6096
|
function rh(e) {
|
|
6097
|
-
return "[" +
|
|
6097
|
+
return "[" + Jt.contextId + '="' + e + '"]';
|
|
6098
6098
|
}
|
|
6099
6099
|
function nh(e, t) {
|
|
6100
6100
|
var r = t.target;
|
|
@@ -6105,10 +6105,10 @@ function nh(e, t) {
|
|
|
6105
6105
|
}
|
|
6106
6106
|
function ah(e, t) {
|
|
6107
6107
|
var r = nh(e, t);
|
|
6108
|
-
return r ? r.getAttribute(
|
|
6108
|
+
return r ? r.getAttribute(Jt.draggableId) : null;
|
|
6109
6109
|
}
|
|
6110
6110
|
function oh(e, t) {
|
|
6111
|
-
var r = "[" + da.contextId + '="' + e + '"]', n = nl(document.querySelectorAll(r)), a =
|
|
6111
|
+
var r = "[" + da.contextId + '="' + e + '"]', n = nl(document.querySelectorAll(r)), a = It(n, function(o) {
|
|
6112
6112
|
return o.getAttribute(da.id) === t;
|
|
6113
6113
|
});
|
|
6114
6114
|
return a ? Mr(a) ? a : (process.env.NODE_ENV !== "production" && we("Draggable element is not a HTMLElement"), null) : null;
|
|
@@ -6166,20 +6166,20 @@ function sh(e) {
|
|
|
6166
6166
|
function v() {
|
|
6167
6167
|
return t.isActive(u);
|
|
6168
6168
|
}
|
|
6169
|
-
function b(S,
|
|
6169
|
+
function b(S, j) {
|
|
6170
6170
|
Hr({
|
|
6171
6171
|
expected: S,
|
|
6172
6172
|
phase: f,
|
|
6173
6173
|
isLockActive: v,
|
|
6174
6174
|
shouldWarn: !0
|
|
6175
|
-
}) && n.dispatch(
|
|
6175
|
+
}) && n.dispatch(j());
|
|
6176
6176
|
}
|
|
6177
6177
|
var h = b.bind(null, "DRAGGING");
|
|
6178
6178
|
function m(S) {
|
|
6179
|
-
function
|
|
6179
|
+
function j() {
|
|
6180
6180
|
t.release(), f = "COMPLETED";
|
|
6181
6181
|
}
|
|
6182
|
-
f !== "PRE_DRAG" && (
|
|
6182
|
+
f !== "PRE_DRAG" && (j(), f !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot lift in phase " + f) : w())), n.dispatch(zg(S.liftActionArgs)), f = "DRAGGING";
|
|
6183
6183
|
function O(E, T) {
|
|
6184
6184
|
if (T === void 0 && (T = {
|
|
6185
6185
|
shouldBlockNextClick: !1
|
|
@@ -6195,7 +6195,7 @@ function sh(e) {
|
|
|
6195
6195
|
}]);
|
|
6196
6196
|
setTimeout(k);
|
|
6197
6197
|
}
|
|
6198
|
-
|
|
6198
|
+
j(), n.dispatch(Sl({
|
|
6199
6199
|
reason: E
|
|
6200
6200
|
}));
|
|
6201
6201
|
}
|
|
@@ -6218,7 +6218,7 @@ function sh(e) {
|
|
|
6218
6218
|
}, S.actions);
|
|
6219
6219
|
}
|
|
6220
6220
|
function x(S) {
|
|
6221
|
-
var
|
|
6221
|
+
var j = wr(function(E) {
|
|
6222
6222
|
h(function() {
|
|
6223
6223
|
return Nl({
|
|
6224
6224
|
client: E
|
|
@@ -6231,14 +6231,14 @@ function sh(e) {
|
|
|
6231
6231
|
movementMode: "FLUID"
|
|
6232
6232
|
},
|
|
6233
6233
|
cleanup: function() {
|
|
6234
|
-
return
|
|
6234
|
+
return j.cancel();
|
|
6235
6235
|
},
|
|
6236
6236
|
actions: {
|
|
6237
|
-
move:
|
|
6237
|
+
move: j
|
|
6238
6238
|
}
|
|
6239
6239
|
});
|
|
6240
6240
|
return te({}, O, {
|
|
6241
|
-
move:
|
|
6241
|
+
move: j
|
|
6242
6242
|
});
|
|
6243
6243
|
}
|
|
6244
6244
|
function D() {
|
|
@@ -6354,7 +6354,7 @@ var dh = function(t) {
|
|
|
6354
6354
|
onDragUpdate: t.onDragUpdate
|
|
6355
6355
|
};
|
|
6356
6356
|
};
|
|
6357
|
-
function
|
|
6357
|
+
function pr(e) {
|
|
6358
6358
|
return e.current || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find store from lazy ref") : w()), e.current;
|
|
6359
6359
|
}
|
|
6360
6360
|
function uh(e) {
|
|
@@ -6366,7 +6366,7 @@ function uh(e) {
|
|
|
6366
6366
|
contextId: t,
|
|
6367
6367
|
text: o
|
|
6368
6368
|
}), u = lm(t, a), f = X(function(E) {
|
|
6369
|
-
|
|
6369
|
+
pr(i).dispatch(E);
|
|
6370
6370
|
}, []), g = ge(function() {
|
|
6371
6371
|
return Lo({
|
|
6372
6372
|
publishWhileDragging: Yg,
|
|
@@ -6396,10 +6396,10 @@ function uh(e) {
|
|
|
6396
6396
|
}, [p, h, b, m, c, u]);
|
|
6397
6397
|
process.env.NODE_ENV !== "production" && i.current && i.current !== x && process.env.NODE_ENV !== "production" && we("unexpected store change"), i.current = x;
|
|
6398
6398
|
var D = X(function() {
|
|
6399
|
-
var E =
|
|
6399
|
+
var E = pr(i), T = E.getState();
|
|
6400
6400
|
T.phase !== "IDLE" && E.dispatch(qa());
|
|
6401
6401
|
}, []), N = X(function() {
|
|
6402
|
-
var E =
|
|
6402
|
+
var E = pr(i).getState();
|
|
6403
6403
|
return E.isDragging || E.phase === "DROP_ANIMATING";
|
|
6404
6404
|
}, []), y = ge(function() {
|
|
6405
6405
|
return {
|
|
@@ -6409,20 +6409,20 @@ function uh(e) {
|
|
|
6409
6409
|
}, [N, D]);
|
|
6410
6410
|
r(y);
|
|
6411
6411
|
var S = X(function(E) {
|
|
6412
|
-
return Pl(
|
|
6413
|
-
}, []),
|
|
6414
|
-
return Bt(
|
|
6412
|
+
return Pl(pr(i).getState(), E);
|
|
6413
|
+
}, []), j = X(function() {
|
|
6414
|
+
return Bt(pr(i).getState());
|
|
6415
6415
|
}, []), O = ge(function() {
|
|
6416
6416
|
return {
|
|
6417
6417
|
marshal: b,
|
|
6418
6418
|
focus: m,
|
|
6419
6419
|
contextId: t,
|
|
6420
6420
|
canLift: S,
|
|
6421
|
-
isMovementAllowed:
|
|
6421
|
+
isMovementAllowed: j,
|
|
6422
6422
|
dragHandleUsageInstructionsId: d,
|
|
6423
6423
|
registry: v
|
|
6424
6424
|
};
|
|
6425
|
-
}, [t, b, d, m, S,
|
|
6425
|
+
}, [t, b, d, m, S, j, v]);
|
|
6426
6426
|
return ch({
|
|
6427
6427
|
contextId: t,
|
|
6428
6428
|
store: x,
|
|
@@ -6479,7 +6479,7 @@ var io = function(t) {
|
|
|
6479
6479
|
}, xh = function() {
|
|
6480
6480
|
if (process.env.NODE_ENV === "production")
|
|
6481
6481
|
return !1;
|
|
6482
|
-
var t =
|
|
6482
|
+
var t = jr(), r = document.documentElement;
|
|
6483
6483
|
if (r || (process.env.NODE_ENV, w()), !Wl(t))
|
|
6484
6484
|
return !1;
|
|
6485
6485
|
var n = window.getComputedStyle(r), a = {
|
|
@@ -6529,7 +6529,7 @@ var io = function(t) {
|
|
|
6529
6529
|
var t = e.descriptor, r = e.isEnabled, n = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, i = e.client, l = e.page, c = e.closest, p = function() {
|
|
6530
6530
|
if (!c)
|
|
6531
6531
|
return null;
|
|
6532
|
-
var g = c.scrollSize, v = c.client, b =
|
|
6532
|
+
var g = c.scrollSize, v = c.client, b = Il({
|
|
6533
6533
|
scrollHeight: g.scrollHeight,
|
|
6534
6534
|
scrollWidth: g.scrollWidth,
|
|
6535
6535
|
height: v.paddingBox.height,
|
|
@@ -6550,7 +6550,7 @@ var io = function(t) {
|
|
|
6550
6550
|
}
|
|
6551
6551
|
}
|
|
6552
6552
|
};
|
|
6553
|
-
}(), d = o === "vertical" ? Ga : ll, u =
|
|
6553
|
+
}(), d = o === "vertical" ? Ga : ll, u = Kt({
|
|
6554
6554
|
page: l,
|
|
6555
6555
|
withPlaceholder: null,
|
|
6556
6556
|
axis: d,
|
|
@@ -6611,10 +6611,10 @@ var io = function(t) {
|
|
|
6611
6611
|
return g;
|
|
6612
6612
|
}, Eh = {
|
|
6613
6613
|
passive: !1
|
|
6614
|
-
},
|
|
6614
|
+
}, jh = {
|
|
6615
6615
|
passive: !0
|
|
6616
6616
|
}, Si = function(e) {
|
|
6617
|
-
return e.shouldPublishImmediately ? Eh :
|
|
6617
|
+
return e.shouldPublishImmediately ? Eh : jh;
|
|
6618
6618
|
};
|
|
6619
6619
|
function un(e) {
|
|
6620
6620
|
var t = q(e);
|
|
@@ -6623,7 +6623,7 @@ function un(e) {
|
|
|
6623
6623
|
var zr = function(t) {
|
|
6624
6624
|
return t && t.env.closestScrollable || null;
|
|
6625
6625
|
};
|
|
6626
|
-
function
|
|
6626
|
+
function Ih(e) {
|
|
6627
6627
|
var t = ee(null), r = un(wn), n = ro("droppable"), a = r.registry, o = r.marshal, i = ao(e), l = ge(function() {
|
|
6628
6628
|
return {
|
|
6629
6629
|
id: e.droppableId,
|
|
@@ -6658,17 +6658,17 @@ function jh(e) {
|
|
|
6658
6658
|
f();
|
|
6659
6659
|
}, [f, u]), v = X(function(N, y) {
|
|
6660
6660
|
t.current && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect a droppable while a drag is occurring") : w());
|
|
6661
|
-
var S = i.current,
|
|
6662
|
-
|
|
6663
|
-
var O = Dh(
|
|
6664
|
-
ref:
|
|
6661
|
+
var S = i.current, j = S.getDroppableRef();
|
|
6662
|
+
j || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect without a droppable ref") : w());
|
|
6663
|
+
var O = Dh(j), E = {
|
|
6664
|
+
ref: j,
|
|
6665
6665
|
descriptor: l,
|
|
6666
6666
|
env: O,
|
|
6667
6667
|
scrollOptions: y
|
|
6668
6668
|
};
|
|
6669
6669
|
t.current = E;
|
|
6670
6670
|
var T = Ch({
|
|
6671
|
-
ref:
|
|
6671
|
+
ref: j,
|
|
6672
6672
|
descriptor: l,
|
|
6673
6673
|
env: O,
|
|
6674
6674
|
windowScroll: N,
|
|
@@ -6746,7 +6746,7 @@ var Ci = {
|
|
|
6746
6746
|
flexShrink: "0",
|
|
6747
6747
|
flexGrow: "0",
|
|
6748
6748
|
pointerEvents: "none",
|
|
6749
|
-
transition: a !== "none" ?
|
|
6749
|
+
transition: a !== "none" ? vr.placeholder : null
|
|
6750
6750
|
};
|
|
6751
6751
|
};
|
|
6752
6752
|
function Ph(e) {
|
|
@@ -6871,7 +6871,7 @@ var Mh = function(e) {
|
|
|
6871
6871
|
dragging: 5e3,
|
|
6872
6872
|
dropAnimating: 4500
|
|
6873
6873
|
}, Lh = function(t, r) {
|
|
6874
|
-
return r ?
|
|
6874
|
+
return r ? vr.drop(r.duration) : t ? vr.snap : vr.fluid;
|
|
6875
6875
|
}, Fh = function(t, r) {
|
|
6876
6876
|
return t ? r ? Er.opacity.drop : Er.opacity.combining : null;
|
|
6877
6877
|
}, Vh = function(t) {
|
|
@@ -7010,7 +7010,7 @@ function Kh(e) {
|
|
|
7010
7010
|
} : null;
|
|
7011
7011
|
}, [o, i, g, v]), S = X(function(E) {
|
|
7012
7012
|
x.type === "DRAGGING" && x.dropping && E.propertyName === "transform" && D();
|
|
7013
|
-
}, [D, x]),
|
|
7013
|
+
}, [D, x]), j = ge(function() {
|
|
7014
7014
|
var E = Wh(x), T = x.type === "DRAGGING" && x.dropping ? S : null, k = {
|
|
7015
7015
|
innerRef: r,
|
|
7016
7016
|
draggableProps: {
|
|
@@ -7032,7 +7032,7 @@ function Kh(e) {
|
|
|
7032
7032
|
}
|
|
7033
7033
|
};
|
|
7034
7034
|
}, [u.droppableId, u.id, u.index, u.type]);
|
|
7035
|
-
return f(
|
|
7035
|
+
return f(j, x.snapshot, O);
|
|
7036
7036
|
}
|
|
7037
7037
|
var zl = function(e, t) {
|
|
7038
7038
|
return e === t;
|
|
@@ -7157,7 +7157,7 @@ function eb() {
|
|
|
7157
7157
|
return n(v);
|
|
7158
7158
|
if (p.displaced.invisible[l])
|
|
7159
7159
|
return null;
|
|
7160
|
-
var b =
|
|
7160
|
+
var b = tr(d.displacedBy.point), h = e(b.x, b.y);
|
|
7161
7161
|
return r(h, v, !0);
|
|
7162
7162
|
}
|
|
7163
7163
|
if (f)
|
|
@@ -7222,7 +7222,7 @@ function ob(e) {
|
|
|
7222
7222
|
maxScroll: _l()
|
|
7223
7223
|
});
|
|
7224
7224
|
}, [n, h]);
|
|
7225
|
-
|
|
7225
|
+
Ih({
|
|
7226
7226
|
droppableId: l,
|
|
7227
7227
|
type: c,
|
|
7228
7228
|
mode: p,
|
|
@@ -7232,7 +7232,7 @@ function ob(e) {
|
|
|
7232
7232
|
ignoreContainerClipping: u,
|
|
7233
7233
|
getDroppableRef: x
|
|
7234
7234
|
});
|
|
7235
|
-
var
|
|
7235
|
+
var j = ie.createElement(Mh, {
|
|
7236
7236
|
on: e.placeholder,
|
|
7237
7237
|
shouldAnimate: e.shouldAnimatePlaceholder
|
|
7238
7238
|
}, function(M) {
|
|
@@ -7248,13 +7248,13 @@ function ob(e) {
|
|
|
7248
7248
|
}), O = ge(function() {
|
|
7249
7249
|
return {
|
|
7250
7250
|
innerRef: D,
|
|
7251
|
-
placeholder:
|
|
7251
|
+
placeholder: j,
|
|
7252
7252
|
droppableProps: {
|
|
7253
7253
|
"data-rbd-droppable-id": l,
|
|
7254
7254
|
"data-rbd-droppable-context-id": r
|
|
7255
7255
|
}
|
|
7256
7256
|
};
|
|
7257
|
-
}, [r, l,
|
|
7257
|
+
}, [r, l, j, D]), E = b ? b.dragging.draggableId : null, T = ge(function() {
|
|
7258
7258
|
return {
|
|
7259
7259
|
droppableId: l,
|
|
7260
7260
|
type: c,
|
|
@@ -7282,7 +7282,7 @@ function ob(e) {
|
|
|
7282
7282
|
}
|
|
7283
7283
|
var qn = function(t, r) {
|
|
7284
7284
|
return t === r.droppable.type;
|
|
7285
|
-
},
|
|
7285
|
+
}, ji = function(t, r) {
|
|
7286
7286
|
return r.draggables[t.draggable.id];
|
|
7287
7287
|
}, ib = function() {
|
|
7288
7288
|
var t = {
|
|
@@ -7347,14 +7347,14 @@ var qn = function(t, r) {
|
|
|
7347
7347
|
var g = l.critical;
|
|
7348
7348
|
if (!qn(d, g))
|
|
7349
7349
|
return r;
|
|
7350
|
-
var v =
|
|
7350
|
+
var v = ji(g, l.dimensions), b = Ue(l.impact) === p;
|
|
7351
7351
|
return a(p, u, b, b, v, f);
|
|
7352
7352
|
}
|
|
7353
7353
|
if (l.phase === "DROP_ANIMATING") {
|
|
7354
7354
|
var h = l.completed;
|
|
7355
7355
|
if (!qn(d, h.critical))
|
|
7356
7356
|
return r;
|
|
7357
|
-
var m =
|
|
7357
|
+
var m = ji(h.critical, l.dimensions);
|
|
7358
7358
|
return a(p, u, ql(h.result) === p, Ue(h.impact) === p, m, f);
|
|
7359
7359
|
}
|
|
7360
7360
|
if (l.phase === "IDLE" && l.completed && !l.shouldFlush) {
|
|
@@ -7512,7 +7512,7 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7512
7512
|
cancelAnimationFrame(a), n(!1);
|
|
7513
7513
|
};
|
|
7514
7514
|
}, []), r ? /* @__PURE__ */ s.jsx(Xl, { ...t, children: e }) : null;
|
|
7515
|
-
}, yb = "_lightbox_11jj4_1", wb = "_show_11jj4_16", Db = "_header_11jj4_20", Nb = "_photo-actions_11jj4_26", Sb = "_photo-container_11jj4_31", Cb = "_photo_11jj4_26", Eb = "_nav-button_11jj4_46",
|
|
7515
|
+
}, yb = "_lightbox_11jj4_1", wb = "_show_11jj4_16", Db = "_header_11jj4_20", Nb = "_photo-actions_11jj4_26", Sb = "_photo-container_11jj4_31", Cb = "_photo_11jj4_26", Eb = "_nav-button_11jj4_46", jb = "_photos-preview-container_11jj4_53", Ib = "_photos-preview_11jj4_53", Ob = "_lightbox-draggable-photo_11jj4_67", _b = "_selected_11jj4_75", Pb = "_indicators_11jj4_79", Tb = "_left_11jj4_111", Ab = "_right_11jj4_114", Me = {
|
|
7516
7516
|
lightbox: yb,
|
|
7517
7517
|
show: wb,
|
|
7518
7518
|
header: Db,
|
|
@@ -7524,9 +7524,9 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7524
7524
|
"nav-button": "_nav-button_11jj4_46",
|
|
7525
7525
|
navButton: Eb,
|
|
7526
7526
|
"photos-preview-container": "_photos-preview-container_11jj4_53",
|
|
7527
|
-
photosPreviewContainer:
|
|
7527
|
+
photosPreviewContainer: jb,
|
|
7528
7528
|
"photos-preview": "_photos-preview_11jj4_53",
|
|
7529
|
-
photosPreview:
|
|
7529
|
+
photosPreview: Ib,
|
|
7530
7530
|
"lightbox-draggable-photo": "_lightbox-draggable-photo_11jj4_67",
|
|
7531
7531
|
lightboxDraggablePhoto: Ob,
|
|
7532
7532
|
selected: _b,
|
|
@@ -7559,7 +7559,7 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7559
7559
|
}, [N, D, t]), S = (E, T) => {
|
|
7560
7560
|
const k = Array.from(v), [M] = k.splice(E, 1);
|
|
7561
7561
|
return k.splice(T, 0, M), k;
|
|
7562
|
-
},
|
|
7562
|
+
}, j = (E) => {
|
|
7563
7563
|
if (!E.destination)
|
|
7564
7564
|
return;
|
|
7565
7565
|
const T = S(E.source.index, E.destination.index);
|
|
@@ -7577,11 +7577,11 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7577
7577
|
});
|
|
7578
7578
|
return /* @__PURE__ */ s.jsxs(pa, { children: [
|
|
7579
7579
|
/* @__PURE__ */ s.jsx(Qc, { show: e, onClick: t }),
|
|
7580
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
7580
|
+
/* @__PURE__ */ s.jsx("div", { className: I("luminus-lightbox rounded shadow", Me.lightbox, {
|
|
7581
7581
|
[Me.show]: e
|
|
7582
7582
|
}), ...O, children: e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
7583
7583
|
/* @__PURE__ */ s.jsxs("div", { className: Me.header, children: [
|
|
7584
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
7584
|
+
/* @__PURE__ */ s.jsxs("div", { className: I("rounded", Me.photoActions), children: [
|
|
7585
7585
|
i && /* @__PURE__ */ s.jsx(Ms, { accept: ".jpg,.jpeg,.png", onUpload: (E) => {
|
|
7586
7586
|
E.length > 0 && i(Array.from(E));
|
|
7587
7587
|
}, icon: /* @__PURE__ */ s.jsx(is, { style: { fontSize: 18 } }), multiple: !0, className: "me-1 me-lg-3", children: a ?? null }),
|
|
@@ -7601,18 +7601,18 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7601
7601
|
] }),
|
|
7602
7602
|
v.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(Q, { variant: "body", children: o ?? "No photos available" }) }),
|
|
7603
7603
|
x && /* @__PURE__ */ s.jsxs("div", { className: Me.photoContainer, children: [
|
|
7604
|
-
/* @__PURE__ */ s.jsx("div", { role: D ? "button" : void 0, className:
|
|
7605
|
-
/* @__PURE__ */ s.jsx(u, { src: x.lgSrc, alt: x.alt, className:
|
|
7606
|
-
/* @__PURE__ */ s.jsx("div", { role: N ? "button" : void 0, className:
|
|
7604
|
+
/* @__PURE__ */ s.jsx("div", { role: D ? "button" : void 0, className: I("align-items-start", Me.navButton, Me.left), onClick: () => D && m((E) => E - 1), children: D && /* @__PURE__ */ s.jsx(ba, { style: { fontSize: "40px" } }) }),
|
|
7605
|
+
/* @__PURE__ */ s.jsx(u, { src: x.lgSrc, alt: x.alt, className: I("rounded", Me.photo), baseUrl: c, customToken: p, placeholder: d, renderAsDivBg: !0 }),
|
|
7606
|
+
/* @__PURE__ */ s.jsx("div", { role: N ? "button" : void 0, className: I("align-items-end", Me.navButton, Me.right), onClick: () => N && m((E) => E + 1), children: N && /* @__PURE__ */ s.jsx(xa, { style: { fontSize: "40px" } }) })
|
|
7607
7607
|
] }),
|
|
7608
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
7608
|
+
/* @__PURE__ */ s.jsx("div", { className: I("d-flex justify-content-center", Me.photosPreviewContainer), children: /* @__PURE__ */ s.jsx(gh, { onDragEnd: j, children: /* @__PURE__ */ s.jsx(xb, { droppableId: "droppable", direction: "horizontal", children: (E) => /* @__PURE__ */ s.jsxs("div", { ...E.droppableProps, ref: E.innerRef, className: Me.photosPreview, children: [
|
|
7609
7609
|
v.map((T, k) => /* @__PURE__ */ s.jsx(ab, { draggableId: T.id, index: k, isDragDisabled: f === void 0, children: g((M) => {
|
|
7610
7610
|
var C;
|
|
7611
|
-
return /* @__PURE__ */ s.jsxs("div", { ref: M.innerRef, ...M.draggableProps, ...M.dragHandleProps, role: "button", onClick: () => m(k), className:
|
|
7612
|
-
/* @__PURE__ */ s.jsx(u, { role: k !== h ? "button" : void 0, src: T.smSrc, alt: T.alt, className:
|
|
7611
|
+
return /* @__PURE__ */ s.jsxs("div", { ref: M.innerRef, ...M.draggableProps, ...M.dragHandleProps, role: "button", onClick: () => m(k), className: I(Me.lightboxDraggablePhoto), children: [
|
|
7612
|
+
/* @__PURE__ */ s.jsx(u, { role: k !== h ? "button" : void 0, src: T.smSrc, alt: T.alt, className: I("rounded", Me.photo, {
|
|
7613
7613
|
[Me.selected]: k === h
|
|
7614
7614
|
}), baseUrl: c, customToken: p, placeholder: d }, T.id),
|
|
7615
|
-
T.isDefault || T.customIndicators && T.customIndicators.length > 0 ? /* @__PURE__ */ s.jsxs("div", { className:
|
|
7615
|
+
T.isDefault || T.customIndicators && T.customIndicators.length > 0 ? /* @__PURE__ */ s.jsxs("div", { className: I(Me.indicators, "gap-1"), children: [
|
|
7616
7616
|
T.isDefault && /* @__PURE__ */ s.jsx("div", { className: "text-primary", children: /* @__PURE__ */ s.jsx(td, {}) }),
|
|
7617
7617
|
(C = T.customIndicators) == null ? void 0 : C.map((Z, Y) => (
|
|
7618
7618
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -7646,7 +7646,7 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7646
7646
|
textShadow: "-2px 2px 4px #696969",
|
|
7647
7647
|
background: "rgba(105,105,105,0.5)"
|
|
7648
7648
|
}, children: /* @__PURE__ */ s.jsx(rd, { fontSize: 24 }) })
|
|
7649
|
-
] }) : /* @__PURE__ */ s.jsx(Ge, { text: r ?? "", placement: "left", children: /* @__PURE__ */ s.jsx("div", { role: "button", className:
|
|
7649
|
+
] }) : /* @__PURE__ */ s.jsx(Ge, { text: r ?? "", placement: "left", children: /* @__PURE__ */ s.jsx("div", { role: "button", className: I("rounded p-3 d-flex justify-content-center"), onClick: () => h(!0), children: /* @__PURE__ */ s.jsx("img", { src: l, alt: "placeholder", className: "rounded w-25" }) }) }),
|
|
7650
7650
|
/* @__PURE__ */ s.jsx(Rb, { show: b && !d, onClose: () => h(!1), photos: e, defaultIndex: f ?? 0, uploadPhotosText: r, noPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c, onChangeOrder: u })
|
|
7651
7651
|
] });
|
|
7652
7652
|
}, hw = ({ children: e }) => {
|
|
@@ -7678,8 +7678,8 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7678
7678
|
return /* @__PURE__ */ s.jsx(a, { icon: "check" });
|
|
7679
7679
|
}
|
|
7680
7680
|
}, [a, e]);
|
|
7681
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
7682
|
-
!n && /* @__PURE__ */ s.jsx("div", { className:
|
|
7681
|
+
return /* @__PURE__ */ s.jsxs("div", { className: I("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !n }, Yn.item, Yn[`level-${e}`]), children: [
|
|
7682
|
+
!n && /* @__PURE__ */ s.jsx("div", { className: I(Yn.typeIcon), children: r ?? o() }),
|
|
7683
7683
|
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "w-100", children: t })
|
|
7684
7684
|
] });
|
|
7685
7685
|
}, bw = ({ version: e }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
@@ -7693,13 +7693,13 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7693
7693
|
}, children: /* @__PURE__ */ s.jsxs(Q, { variant: "caption", className: "w-100 text-end", children: [
|
|
7694
7694
|
"verze ",
|
|
7695
7695
|
e
|
|
7696
|
-
] }) }), Wb = "_submit-container_j8pmc_1", Ub = "_spacer_j8pmc_14",
|
|
7696
|
+
] }) }), Wb = "_submit-container_j8pmc_1", Ub = "_spacer_j8pmc_14", Ii = {
|
|
7697
7697
|
"submit-container": "_submit-container_j8pmc_1",
|
|
7698
7698
|
submitContainer: Wb,
|
|
7699
7699
|
spacer: Ub
|
|
7700
7700
|
}, Hb = ({ children: e, noSpacer: t = !1 }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
7701
|
-
!t && /* @__PURE__ */ s.jsx("div", { className:
|
|
7702
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
7701
|
+
!t && /* @__PURE__ */ s.jsx("div", { className: Ii.spacer }),
|
|
7702
|
+
/* @__PURE__ */ s.jsx("div", { className: I("luminus-floating-action-container shadow", Ii.submitContainer), children: e })
|
|
7703
7703
|
] }), zb = "_timeline_g1754_1", qb = "_step-container_g1754_1", Yb = "_step-date_g1754_1", Kb = "_step-content_g1754_4", Xb = "_content-header_g1754_8", Jb = "_content-text_g1754_11", Qb = "_step-icon_g1754_14", At = {
|
|
7704
7704
|
timeline: zb,
|
|
7705
7705
|
"step-container": "_step-container_g1754_1",
|
|
@@ -7714,20 +7714,20 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7714
7714
|
contentText: Jb,
|
|
7715
7715
|
"step-icon": "_step-icon_g1754_14",
|
|
7716
7716
|
stepIcon: Qb
|
|
7717
|
-
}, Zb = ({ steps: e }) => /* @__PURE__ */ s.jsx("div", { className: At.timeline, children: e.sort((
|
|
7718
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-3", children:
|
|
7719
|
-
/* @__PURE__ */ s.jsx("div", { children: Lt(
|
|
7720
|
-
/* @__PURE__ */ s.jsx("div", { children: Lt(
|
|
7717
|
+
}, Zb = ({ steps: e, dontSort: t }) => /* @__PURE__ */ s.jsx("div", { className: At.timeline, children: e.sort((r, n) => t ? 0 : Wd(r.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((r, n) => /* @__PURE__ */ s.jsxs("div", { className: I("row g-0 gx-3", At.stepContainer), children: [
|
|
7718
|
+
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: r.date && /* @__PURE__ */ s.jsxs(Q, { variant: "caption", className: I("h-100 d-flex flex-column align-items-end justify-content-center gap-0", At.stepDate), children: [
|
|
7719
|
+
/* @__PURE__ */ s.jsx("div", { children: Lt(r.date, "dd.MM.yyyy") }),
|
|
7720
|
+
r.dateFormat === "date" ? null : /* @__PURE__ */ s.jsx("div", { children: Lt(r.date, "HH:mm") })
|
|
7721
7721
|
] }) }),
|
|
7722
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-9", children: /* @__PURE__ */ s.jsxs("div", { className:
|
|
7723
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
7724
|
-
|
|
7725
|
-
typeof
|
|
7722
|
+
/* @__PURE__ */ s.jsx("div", { className: "col-9", children: /* @__PURE__ */ s.jsxs("div", { className: I("h-100 d-flex flex-column gap-1 border-start border-2 p-3", At.stepContent), children: [
|
|
7723
|
+
/* @__PURE__ */ s.jsxs("div", { className: I("d-flex gap-2 align-items-center", At.contentHeader), children: [
|
|
7724
|
+
r.person && /* @__PURE__ */ s.jsx(ss, { name: r.person.name ?? "", size: 22, fontSize: 12 }),
|
|
7725
|
+
typeof r.title == "string" ? /* @__PURE__ */ s.jsx(Q, { variant: "body", className: "fw-bold", children: r.title }) : r.title
|
|
7726
7726
|
] }),
|
|
7727
|
-
|
|
7728
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
7727
|
+
r.text && /* @__PURE__ */ s.jsx(Q, { variant: "body2", className: At.contentText, children: r.text }),
|
|
7728
|
+
/* @__PURE__ */ s.jsx("div", { className: I("text-primary", At.stepIcon), children: r.icon ?? /* @__PURE__ */ s.jsx(id, {}) })
|
|
7729
7729
|
] }) })
|
|
7730
|
-
] },
|
|
7730
|
+
] }, n)) }), ex = (e, t, r, n = !0) => {
|
|
7731
7731
|
const a = lt({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = L(!1), [l, c] = L(null), p = P(async (d) => {
|
|
7732
7732
|
i(!0), c(null), a.get(e, {
|
|
7733
7733
|
signal: d,
|
|
@@ -7765,7 +7765,7 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7765
7765
|
var g;
|
|
7766
7766
|
n && n(((g = f.target) == null ? void 0 : g.checked) ?? !1);
|
|
7767
7767
|
}, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
|
|
7768
|
-
}, xw = ({ InputContainer: e = Pr, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: f, hidden: g, disabled: v, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon: D, hint: N, addNewOptionPath: y, refreshOptions: S, MiniDetailComponent:
|
|
7768
|
+
}, xw = ({ InputContainer: e = Pr, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: d, dropdownItemsNameWidth: u, additionalColumns: f, hidden: g, disabled: v, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon: D, hint: N, addNewOptionPath: y, refreshOptions: S, MiniDetailComponent: j, miniDetailPlacement: O, suggestedItems: E, suggestedItemsTitle: T }) => {
|
|
7769
7769
|
const [k, M] = L(!1), C = P((F) => {
|
|
7770
7770
|
l && l(F);
|
|
7771
7771
|
}, [l]), Z = P((F) => {
|
|
@@ -7774,10 +7774,10 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7774
7774
|
var F, z;
|
|
7775
7775
|
return b ? ((F = i == null ? void 0 : i.id) == null ? void 0 : F.toString()) ?? "" : i != null && i.name && i.name.length > 0 ? i.name : ((z = i == null ? void 0 : i.id) == null ? void 0 : z.toString()) ?? "";
|
|
7776
7776
|
}, [i, b]);
|
|
7777
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: g, inputContainerClassName:
|
|
7777
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: g, inputContainerClassName: I({ "luminus-dropdown-select-open": k }), className: m, hint: N, disabled: v, children: [
|
|
7778
7778
|
/* @__PURE__ */ s.jsxs(wa, { currentSelection: i, selectedItemNavigateTo: r, children: [
|
|
7779
7779
|
b && (i == null ? void 0 : i.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: i.name }),
|
|
7780
|
-
/* @__PURE__ */ s.jsx(Da, { value: (i == null ? void 0 : i.id) ?? null, MiniDetailComponent:
|
|
7780
|
+
/* @__PURE__ */ s.jsx(Da, { value: (i == null ? void 0 : i.id) ?? null, MiniDetailComponent: j, miniDetailPlacement: O, children: /* @__PURE__ */ s.jsxs(
|
|
7781
7781
|
Oe.Select,
|
|
7782
7782
|
{
|
|
7783
7783
|
ref: Y,
|
|
@@ -7791,7 +7791,7 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7791
7791
|
},
|
|
7792
7792
|
onChange: () => {
|
|
7793
7793
|
},
|
|
7794
|
-
className:
|
|
7794
|
+
className: I("w-100", {
|
|
7795
7795
|
"luminus-dropdown-picker-disabled": v,
|
|
7796
7796
|
"luminus-dropdown-picker-link": R
|
|
7797
7797
|
}),
|
|
@@ -7818,17 +7818,17 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7818
7818
|
const S = i ?? null;
|
|
7819
7819
|
r((S == null ? void 0 : S.toString()) ?? "");
|
|
7820
7820
|
}, [i, r]), m = ee(null), [x, D] = L((t == null ? void 0 : t.toString()) ?? ""), N = P((S) => {
|
|
7821
|
-
const
|
|
7822
|
-
r && r(
|
|
7821
|
+
const j = S;
|
|
7822
|
+
r && r(j || null);
|
|
7823
7823
|
}, [r]), y = P((S) => {
|
|
7824
7824
|
var O;
|
|
7825
|
-
const
|
|
7825
|
+
const j = (O = S.target) == null ? void 0 : O.value;
|
|
7826
7826
|
if (!u) {
|
|
7827
|
-
N(
|
|
7827
|
+
N(j);
|
|
7828
7828
|
return;
|
|
7829
7829
|
}
|
|
7830
|
-
D(
|
|
7831
|
-
N(
|
|
7830
|
+
D(j), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
7831
|
+
N(j);
|
|
7832
7832
|
}, u);
|
|
7833
7833
|
}, [u, N]);
|
|
7834
7834
|
return W(() => {
|
|
@@ -7845,22 +7845,22 @@ const Zl = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
7845
7845
|
r(O ? Number(O) : null);
|
|
7846
7846
|
}, [u, r]), D = ee(null), [N, y] = L((t == null ? void 0 : t.toString()) ?? ""), S = P((O) => {
|
|
7847
7847
|
const E = O;
|
|
7848
|
-
r && r(E == null || E === "" ? null :
|
|
7849
|
-
}, [h, b, r]),
|
|
7848
|
+
r && r(E == null || E === "" ? null : fr(Number(E), b, h));
|
|
7849
|
+
}, [h, b, r]), j = P((O) => {
|
|
7850
7850
|
var T;
|
|
7851
7851
|
const E = (T = O.target) == null ? void 0 : T.value;
|
|
7852
7852
|
if (!n) {
|
|
7853
7853
|
S(E);
|
|
7854
7854
|
return;
|
|
7855
7855
|
}
|
|
7856
|
-
y(
|
|
7856
|
+
y(fr(Number(E), b, h).toString()), D.current !== null && window.clearTimeout(D.current), D.current = window.setTimeout(() => {
|
|
7857
7857
|
S(E);
|
|
7858
7858
|
}, n);
|
|
7859
7859
|
}, [n, S, h, b]);
|
|
7860
7860
|
return W(() => {
|
|
7861
|
-
y(t === null ? "" :
|
|
7861
|
+
y(t === null ? "" : fr(t, b, h).toString());
|
|
7862
7862
|
}, [h, b, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className: f, disabled: p, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
7863
|
-
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? N : t ?? "", onChange:
|
|
7863
|
+
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? N : t ?? "", onChange: j, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: p ?? !1, step: g }),
|
|
7864
7864
|
/* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !p && /* @__PURE__ */ s.jsx(le, { size: "sm", onClick: (O) => {
|
|
7865
7865
|
O.preventDefault(), O.stopPropagation(), S(((t ?? 0) - v).toString());
|
|
7866
7866
|
}, children: /* @__PURE__ */ s.jsx(cs, {}) }) }),
|
|
@@ -7879,10 +7879,10 @@ function ec(e, t) {
|
|
|
7879
7879
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
7880
7880
|
return r;
|
|
7881
7881
|
}
|
|
7882
|
-
var
|
|
7882
|
+
var Ir;
|
|
7883
7883
|
(function(e) {
|
|
7884
7884
|
e.event = "event", e.props = "prop";
|
|
7885
|
-
})(
|
|
7885
|
+
})(Ir || (Ir = {}));
|
|
7886
7886
|
function mt() {
|
|
7887
7887
|
}
|
|
7888
7888
|
function tx(e) {
|
|
@@ -7897,14 +7897,14 @@ function tx(e) {
|
|
|
7897
7897
|
function Or(e) {
|
|
7898
7898
|
return !!(e || "").match(/\d/);
|
|
7899
7899
|
}
|
|
7900
|
-
function
|
|
7900
|
+
function qt(e) {
|
|
7901
7901
|
return e == null;
|
|
7902
7902
|
}
|
|
7903
7903
|
function rx(e) {
|
|
7904
7904
|
return typeof e == "number" && isNaN(e);
|
|
7905
7905
|
}
|
|
7906
7906
|
function tc(e) {
|
|
7907
|
-
return
|
|
7907
|
+
return qt(e) || rx(e) || typeof e == "number" && !isFinite(e);
|
|
7908
7908
|
}
|
|
7909
7909
|
function rc(e) {
|
|
7910
7910
|
return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
@@ -8088,14 +8088,14 @@ function ic(e, t, r, n, a, o) {
|
|
|
8088
8088
|
var h, m;
|
|
8089
8089
|
return tc(v) ? (m = "", h = "") : typeof v == "number" || b ? (m = typeof v == "number" ? ac(v) : v, h = n(m)) : (m = a(v, void 0), h = n(m)), { formattedValue: h, numAsString: m };
|
|
8090
8090
|
}), l = L(function() {
|
|
8091
|
-
return i(
|
|
8091
|
+
return i(qt(e) ? t : e, r);
|
|
8092
8092
|
}), c = l[0], p = l[1], d = function(v, b) {
|
|
8093
8093
|
v.formattedValue !== c.formattedValue && p({
|
|
8094
8094
|
formattedValue: v.formattedValue,
|
|
8095
8095
|
numAsString: v.value
|
|
8096
8096
|
}), o(v, b);
|
|
8097
8097
|
}, u = e, f = r;
|
|
8098
|
-
|
|
8098
|
+
qt(e) && (u = c.numAsString, f = !0);
|
|
8099
8099
|
var g = i(u, f);
|
|
8100
8100
|
return V(function() {
|
|
8101
8101
|
p(g);
|
|
@@ -8130,7 +8130,7 @@ function mx(e) {
|
|
|
8130
8130
|
x === void 0 && (x = fx);
|
|
8131
8131
|
var D = e.isValidInputCharacter;
|
|
8132
8132
|
D === void 0 && (D = Or);
|
|
8133
|
-
var N = e.isCharacterSame, y = ec(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = ic(m, c, !!p, i, l, d),
|
|
8133
|
+
var N = e.isCharacterSame, y = ec(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), S = ic(m, c, !!p, i, l, d), j = S[0], O = j.formattedValue, E = j.numAsString, T = S[1], k = ee(), M = ee({ formattedValue: O, numAsString: E }), C = function(G, A) {
|
|
8134
8134
|
M.current = { formattedValue: G.formattedValue, numAsString: G.value }, T(G, A);
|
|
8135
8135
|
}, Z = L(!1), Y = Z[0], B = Z[1], R = ee(null), $ = ee({
|
|
8136
8136
|
setCaretTimeout: null,
|
|
@@ -8171,10 +8171,10 @@ function mx(e) {
|
|
|
8171
8171
|
var G = M.current, A = G.formattedValue, J = G.numAsString;
|
|
8172
8172
|
(O !== A || E !== J) && C(z(O, E), {
|
|
8173
8173
|
event: void 0,
|
|
8174
|
-
source:
|
|
8174
|
+
source: Ir.props
|
|
8175
8175
|
});
|
|
8176
8176
|
}, [O, E]);
|
|
8177
|
-
var H = R.current ? Kn(R.current) : void 0, U = typeof window < "u" ?
|
|
8177
|
+
var H = R.current ? Kn(R.current) : void 0, U = typeof window < "u" ? ja : W;
|
|
8178
8178
|
U(function() {
|
|
8179
8179
|
var G = R.current;
|
|
8180
8180
|
if (O !== M.current.formattedValue && G) {
|
|
@@ -8185,8 +8185,8 @@ function mx(e) {
|
|
|
8185
8185
|
var pe = function(G, A, J) {
|
|
8186
8186
|
var ue = A.target, Ee = k.current ? sx(k.current, ue.selectionEnd) : oc(O, G), me = Object.assign(Object.assign({}, Ee), { lastValue: O }), de = l(G, me), Be = F(de);
|
|
8187
8187
|
if (de = l(Be, void 0), u && !u(z(Be, de))) {
|
|
8188
|
-
var Qe = A.target, Ze = Kn(Qe),
|
|
8189
|
-
return Qe.value = O, K(Qe,
|
|
8188
|
+
var Qe = A.target, Ze = Kn(Qe), Wt = ae(G, O, Ze);
|
|
8189
|
+
return Qe.value = O, K(Qe, Wt, O), !1;
|
|
8190
8190
|
}
|
|
8191
8191
|
return oe({
|
|
8192
8192
|
formattedValue: Be,
|
|
@@ -8201,9 +8201,9 @@ function mx(e) {
|
|
|
8201
8201
|
var J = G.selectionStart, ue = G.selectionEnd;
|
|
8202
8202
|
k.current = { selectionStart: J, selectionEnd: ue + A };
|
|
8203
8203
|
}, De = function(G) {
|
|
8204
|
-
var A = G.target, J = A.value, ue = pe(J, G,
|
|
8204
|
+
var A = G.target, J = A.value, ue = pe(J, G, Ir.event);
|
|
8205
8205
|
ue && f(G), k.current = void 0;
|
|
8206
|
-
},
|
|
8206
|
+
}, Ie = function(G) {
|
|
8207
8207
|
var A = G.target, J = G.key, ue = A.selectionStart, Ee = A.selectionEnd, me = A.value;
|
|
8208
8208
|
me === void 0 && (me = "");
|
|
8209
8209
|
var de;
|
|
@@ -8217,8 +8217,8 @@ function mx(e) {
|
|
|
8217
8217
|
}
|
|
8218
8218
|
var Ze = de;
|
|
8219
8219
|
if (Qe) {
|
|
8220
|
-
var
|
|
8221
|
-
Ze = re(me, de,
|
|
8220
|
+
var Wt = J === "ArrowLeft" ? "left" : "right";
|
|
8221
|
+
Ze = re(me, de, Wt), Ze !== de && G.preventDefault();
|
|
8222
8222
|
} else J === "Delete" && !D(me[de]) ? Ze = re(me, de, "right") : J === "Backspace" && !D(me[de]) && (Ze = re(me, de, "left"));
|
|
8223
8223
|
Ze !== de && K(A, Ze, me), g(G), se(A, Be);
|
|
8224
8224
|
}, _ = function(G) {
|
|
@@ -8247,7 +8247,7 @@ function mx(e) {
|
|
|
8247
8247
|
type: t,
|
|
8248
8248
|
value: O,
|
|
8249
8249
|
onChange: De,
|
|
8250
|
-
onKeyDown:
|
|
8250
|
+
onKeyDown: Ie,
|
|
8251
8251
|
onMouseUp: _,
|
|
8252
8252
|
onFocus: fe,
|
|
8253
8253
|
onBlur: Ce
|
|
@@ -8313,8 +8313,8 @@ function yx(e, t, r) {
|
|
|
8313
8313
|
return K && (re = 2), re && (R = R.substring(re), $ -= re, F -= re), { value: R, start: $, end: F, hasNegation: z };
|
|
8314
8314
|
}, x = m(e, d, u), D = x.hasNegation;
|
|
8315
8315
|
n = x, e = n.value, d = n.start, u = n.end;
|
|
8316
|
-
var N = m(t.lastValue, c.start, c.end), y = N.start, S = N.end,
|
|
8317
|
-
e.length &&
|
|
8316
|
+
var N = m(t.lastValue, c.start, c.end), y = N.start, S = N.end, j = N.value, O = e.substring(d, u);
|
|
8317
|
+
e.length && j.length && (y > j.length - i.length || S < o.length) && !(O && i.startsWith(O)) && (e = j);
|
|
8318
8318
|
var E = 0;
|
|
8319
8319
|
e.startsWith(o) ? E += o.length : d < o.length && (E = d), e = e.substring(E), u -= E;
|
|
8320
8320
|
var T = e.length, k = e.length - i.length;
|
|
@@ -8366,11 +8366,11 @@ function Nx(e) {
|
|
|
8366
8366
|
return Ai(B, e);
|
|
8367
8367
|
}, D = function(B, R) {
|
|
8368
8368
|
return yx(B, R, e);
|
|
8369
|
-
}, N =
|
|
8370
|
-
|
|
8369
|
+
}, N = qt(u) ? d : u, y = f ?? xx(N, p, t);
|
|
8370
|
+
qt(u) ? qt(d) || (y = y || typeof d == "number") : y = y || typeof u == "number";
|
|
8371
8371
|
var S = function(B) {
|
|
8372
8372
|
return tc(B) ? B : (typeof B == "number" && (B = ac(B)), y && typeof l == "number" ? Pi(B, l, !!c) : B);
|
|
8373
|
-
},
|
|
8373
|
+
}, j = ic(S(u), S(d), !!y, x, D, g), O = j[0], E = O.numAsString, T = O.formattedValue, k = j[1], M = function(B) {
|
|
8374
8374
|
var R = B.target, $ = B.key, F = R.selectionStart, z = R.selectionEnd, K = R.value;
|
|
8375
8375
|
if (K === void 0 && (K = ""), ($ === "Backspace" || $ === "Delete") && z < p.length) {
|
|
8376
8376
|
B.preventDefault();
|
|
@@ -8393,7 +8393,7 @@ function Nx(e) {
|
|
|
8393
8393
|
floatValue: parseFloat(R)
|
|
8394
8394
|
}, {
|
|
8395
8395
|
event: B,
|
|
8396
|
-
source:
|
|
8396
|
+
source: Ir.event
|
|
8397
8397
|
});
|
|
8398
8398
|
}
|
|
8399
8399
|
o(B);
|
|
@@ -8430,7 +8430,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8430
8430
|
return;
|
|
8431
8431
|
const M = u ?? null;
|
|
8432
8432
|
r(M ? Number(M) : null);
|
|
8433
|
-
}, [u, r]),
|
|
8433
|
+
}, [u, r]), j = ee(null), [O, E] = L((t == null ? void 0 : t.toString()) ?? ""), T = P((M) => {
|
|
8434
8434
|
const C = M;
|
|
8435
8435
|
r && r(C == null || C === "" ? null : Number(C));
|
|
8436
8436
|
}, [r]), k = P((M) => {
|
|
@@ -8440,7 +8440,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8440
8440
|
T(C.toString());
|
|
8441
8441
|
return;
|
|
8442
8442
|
}
|
|
8443
|
-
E(C.toString()),
|
|
8443
|
+
E(C.toString()), j.current !== null && window.clearTimeout(j.current), j.current = window.setTimeout(() => {
|
|
8444
8444
|
T(C.toString());
|
|
8445
8445
|
}, n);
|
|
8446
8446
|
}, [n, T]);
|
|
@@ -8453,7 +8453,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8453
8453
|
}, [t, N, D, r]), /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, className: f, hint: y, disabled: p, children: [
|
|
8454
8454
|
/* @__PURE__ */ s.jsx(co, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: h, prefix: m, suffix: x, defaultValue: "", value: n ? O : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (M) => {
|
|
8455
8455
|
!v && M.target.select();
|
|
8456
|
-
}, onChange: k, hidden: c, disabled: p, className:
|
|
8456
|
+
}, onChange: k, hidden: c, disabled: p, className: I("form-control text-end w-100", {
|
|
8457
8457
|
[`form-control-${l}`]: l
|
|
8458
8458
|
}), step: g, min: D, max: N }),
|
|
8459
8459
|
d && t !== null && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ s.jsx(St, {}) }) })
|
|
@@ -8469,28 +8469,28 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8469
8469
|
["M", "month"],
|
|
8470
8470
|
["Y", "year"],
|
|
8471
8471
|
["C", "custom"]
|
|
8472
|
-
], Sx = "_wrapper_qfqux_1", Cx = "_lg_qfqux_7", Ex = "_sm_qfqux_11",
|
|
8472
|
+
], Sx = "_wrapper_qfqux_1", Cx = "_lg_qfqux_7", Ex = "_sm_qfqux_11", jx = "_md_qfqux_14", ki = {
|
|
8473
8473
|
wrapper: Sx,
|
|
8474
8474
|
lg: Cx,
|
|
8475
8475
|
sm: Ex,
|
|
8476
|
-
md:
|
|
8476
|
+
md: jx
|
|
8477
8477
|
}, Zr = (e) => {
|
|
8478
8478
|
const t = new Date(e), r = bt(t.toISOString());
|
|
8479
8479
|
t.setUTCMonth(t.getUTCMonth() + 1), t.setUTCDate(t.getUTCDate() - 1);
|
|
8480
8480
|
const n = bt(t.toISOString());
|
|
8481
8481
|
return { from: r, to: n };
|
|
8482
|
-
},
|
|
8482
|
+
}, mr = (e) => {
|
|
8483
8483
|
const t = new Date(e), r = bt(t.toISOString());
|
|
8484
8484
|
t.setUTCFullYear(t.getUTCFullYear() + 1), t.setUTCDate(t.getUTCDate() - 1);
|
|
8485
8485
|
const n = bt(t.toISOString());
|
|
8486
8486
|
return { from: r, to: n };
|
|
8487
|
-
},
|
|
8487
|
+
}, Ix = (e, t) => {
|
|
8488
8488
|
if (e === null || t === null)
|
|
8489
8489
|
return "C";
|
|
8490
8490
|
if (e === t)
|
|
8491
8491
|
return "D";
|
|
8492
8492
|
const r = new Date(e);
|
|
8493
|
-
return Zr(r).to === t ? "M" :
|
|
8493
|
+
return Zr(r).to === t ? "M" : mr(r).to === t ? "Y" : (console.log(mr(r), t), "C");
|
|
8494
8494
|
}, Ox = (e, t, r) => {
|
|
8495
8495
|
const n = P((i, l) => {
|
|
8496
8496
|
if (e === "C") {
|
|
@@ -8510,7 +8510,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8510
8510
|
to: d
|
|
8511
8511
|
};
|
|
8512
8512
|
}
|
|
8513
|
-
return e === "M" ? Zr(p) : e === "Y" ?
|
|
8513
|
+
return e === "M" ? Zr(p) : e === "Y" ? mr(p) : c;
|
|
8514
8514
|
});
|
|
8515
8515
|
break;
|
|
8516
8516
|
case "to":
|
|
@@ -8532,7 +8532,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8532
8532
|
to: d
|
|
8533
8533
|
};
|
|
8534
8534
|
}
|
|
8535
|
-
return e === "M" ? (c.setMonth(c.getMonth() + i), Zr(c)) : e === "Y" ? (c.setFullYear(c.getFullYear() + i),
|
|
8535
|
+
return e === "M" ? (c.setMonth(c.getMonth() + i), Zr(c)) : e === "Y" ? (c.setFullYear(c.getFullYear() + i), mr(c)) : {
|
|
8536
8536
|
from: bt(c.toISOString()),
|
|
8537
8537
|
to: bt(p.toISOString())
|
|
8538
8538
|
};
|
|
@@ -8547,7 +8547,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8547
8547
|
if (l.from === null)
|
|
8548
8548
|
return l;
|
|
8549
8549
|
const c = ld(new Date(l.from).getFullYear());
|
|
8550
|
-
return
|
|
8550
|
+
return mr(c);
|
|
8551
8551
|
}), t(i);
|
|
8552
8552
|
}, [r, t]);
|
|
8553
8553
|
return { setFromToProp: n, handleArrowClick: a, handleRangeChange: o };
|
|
@@ -8555,16 +8555,16 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8555
8555
|
const { texts: { date: a }, ProjectIconComponent: o } = q(ce), [i, l] = L("C"), { handleArrowClick: c, handleRangeChange: p, setFromToProp: d } = Ox(i, l, t), u = V(() => i === "C", [i]), f = ee(!0);
|
|
8556
8556
|
return W(() => {
|
|
8557
8557
|
if (f.current) {
|
|
8558
|
-
const g =
|
|
8558
|
+
const g = Ix(e.from, e.to);
|
|
8559
8559
|
l(g), f.current = !1;
|
|
8560
8560
|
}
|
|
8561
|
-
}, [e.from, e.to]), /* @__PURE__ */ s.jsxs("div", { className:
|
|
8561
|
+
}, [e.from, e.to]), /* @__PURE__ */ s.jsxs("div", { className: I("d-inline-flex align-items-center gap-1", ki.wrapper, ki[n ?? "md"], r), children: [
|
|
8562
8562
|
/* @__PURE__ */ s.jsx(le, { disabled: u, onClick: () => {
|
|
8563
8563
|
c(-1);
|
|
8564
8564
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-left" }) }),
|
|
8565
8565
|
/* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
8566
8566
|
/* @__PURE__ */ s.jsx(xt, { type: "date", value: e.from, onChange: (g) => d("from", g === null ? null : g.toString()), InputContainer: et, size: n }),
|
|
8567
|
-
/* @__PURE__ */ s.jsx(
|
|
8567
|
+
/* @__PURE__ */ s.jsx(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { text: a[Ri.find((g) => g[0] === i)[1]].substring(0, 1), as: cd }), children: Ri.map((g) => /* @__PURE__ */ s.jsx(tt, { disabled: g[0] === i, className: I(g[0] === i ? "text-black-50" : ""), onClick: () => p(g[0]), role: "button", children: a[g[1]] }, g[0])) }),
|
|
8568
8568
|
/* @__PURE__ */ s.jsx(xt, { type: "date", value: e.to, onChange: (g) => d("to", g === null ? null : g.toString()), InputContainer: et, size: n })
|
|
8569
8569
|
] }) }),
|
|
8570
8570
|
/* @__PURE__ */ s.jsx(le, { disabled: u, onClick: () => {
|
|
@@ -8572,16 +8572,16 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8572
8572
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-right" }) })
|
|
8573
8573
|
] });
|
|
8574
8574
|
}, Cw = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: n }) => {
|
|
8575
|
-
const { localizationContext: a } = q(ce), { dateFnsLocale: o } = q(a), { searchParams: i, setSearch: l } = Vd(), c = i.get(t), p = c ?
|
|
8575
|
+
const { localizationContext: a } = q(ce), { dateFnsLocale: o } = q(a), { searchParams: i, setSearch: l } = Vd(), c = i.get(t), p = c ? Ft(c) : e, d = P((u) => {
|
|
8576
8576
|
l(t, ta(u, { representation: "date" }));
|
|
8577
8577
|
}, [t, l]);
|
|
8578
8578
|
return /* @__PURE__ */ s.jsx(fu, { month: p, onChangeMonth: d, locale: o, yearMin: r, yearMax: n });
|
|
8579
8579
|
}, Ew = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
|
|
8580
|
-
const [n, a] = ms(t, ta(e, { representation: "date" })), o = n ?
|
|
8580
|
+
const [n, a] = ms(t, ta(e, { representation: "date" })), o = n ? Ft(n) : e, i = P((l) => {
|
|
8581
8581
|
a(ta(l, { representation: "date" }));
|
|
8582
8582
|
}, [a]);
|
|
8583
8583
|
return /* @__PURE__ */ s.jsx(mu, { year: o, onChangeYear: i, ...r });
|
|
8584
|
-
},
|
|
8584
|
+
}, jw = ({ data: e, showLegend: t = !1, legendPosition: r = "left", onClick: n }) => {
|
|
8585
8585
|
const { chartColorPalette: a } = q(ce);
|
|
8586
8586
|
return /* @__PURE__ */ s.jsx(dd, { data: e, margin: {
|
|
8587
8587
|
top: 50,
|
|
@@ -8625,25 +8625,25 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8625
8625
|
/* @__PURE__ */ s.jsx(Q, { variant: "body", className: "fw-bold", children: (c = r == null ? void 0 : r[o]) == null ? void 0 : c[a] })
|
|
8626
8626
|
] })
|
|
8627
8627
|
] });
|
|
8628
|
-
},
|
|
8628
|
+
}, Iw = ({ data: e, xKey: t, yKeys: r, translateKey: n, usePercentageValue: a = !1, variant: o = "default", legendPosition: i, noSort: l = !1 }) => {
|
|
8629
8629
|
const { chartColorPalette: c } = q(ce), [p, d] = L(/* @__PURE__ */ new Set()), u = (y) => {
|
|
8630
8630
|
d((S) => {
|
|
8631
|
-
const
|
|
8632
|
-
return
|
|
8631
|
+
const j = new Set(S);
|
|
8632
|
+
return j.has(y.id) ? j.delete(y.id) : j.add(y.id), j;
|
|
8633
8633
|
});
|
|
8634
8634
|
}, f = V(() => l ? e : e.toSorted((y, S) => {
|
|
8635
|
-
var
|
|
8636
|
-
return typeof S[t] == "number" && typeof y[t] == "number" ? y[t] - S[t] : (y[t] ?? "").toString().localeCompare(((
|
|
8635
|
+
var j;
|
|
8636
|
+
return typeof S[t] == "number" && typeof y[t] == "number" ? y[t] - S[t] : (y[t] ?? "").toString().localeCompare(((j = S[t]) == null ? void 0 : j.toString()) ?? "");
|
|
8637
8637
|
}), [e, l, t]), g = V(() => {
|
|
8638
8638
|
const y = [];
|
|
8639
8639
|
return r.forEach((S) => {
|
|
8640
8640
|
if (a) {
|
|
8641
|
-
const
|
|
8642
|
-
if (
|
|
8641
|
+
const j = Math.max(...f.map((E) => E[S] ?? -1 / 0));
|
|
8642
|
+
if (j === -1 / 0)
|
|
8643
8643
|
return;
|
|
8644
8644
|
const O = [];
|
|
8645
8645
|
f.forEach((E) => {
|
|
8646
|
-
E[S] != null && O.push({ x: E[t], y:
|
|
8646
|
+
E[S] != null && O.push({ x: E[t], y: j === 0 ? 0 : E[S] / j });
|
|
8647
8647
|
}), y.push({
|
|
8648
8648
|
id: S,
|
|
8649
8649
|
data: O
|
|
@@ -8651,7 +8651,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8651
8651
|
} else
|
|
8652
8652
|
y.push({
|
|
8653
8653
|
id: S,
|
|
8654
|
-
data: f.map((
|
|
8654
|
+
data: f.map((j) => ({ x: j[t], y: j[S] }))
|
|
8655
8655
|
});
|
|
8656
8656
|
}), y;
|
|
8657
8657
|
}, [f, a, t, r]), v = P((y) => /* @__PURE__ */ s.jsx(_x, { data: f, translateKey: n, val: y }), [f, n]), b = V(() => Math.min(...e.map((y) => y[t] ?? 1 / 0)), [e, t]), h = V(() => Math.max(...e.map((y) => y[t] ?? -1 / 0)), [e, t]), m = V(() => {
|
|
@@ -8776,14 +8776,14 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8776
8776
|
case "NUM":
|
|
8777
8777
|
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(tn, { withoutLabel: !0, InputContainer: et, className: dt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, g === null ? null : Number(g)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(xt, { withoutLabel: !0, InputContainer: et, className: dt.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (g) => c(r, g === null ? null : Number(g)), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
8778
8778
|
case "STR":
|
|
8779
|
-
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(tn, { withoutLabel: !0, InputContainer: et, className: dt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(xt, { withoutLabel: !0, InputContainer: et, className:
|
|
8779
|
+
return i && i.length > 0 ? /* @__PURE__ */ s.jsx(tn, { withoutLabel: !0, InputContainer: et, className: dt.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(xt, { withoutLabel: !0, InputContainer: et, className: I(dt.input, dt.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
8780
8780
|
case "BIT":
|
|
8781
8781
|
return /* @__PURE__ */ s.jsx(fa, { InputContainer: et, className: dt.input, value: t === !0, onChange: (g) => c(r, g), disabled: a ? !0 : n ? !o : !1 });
|
|
8782
8782
|
case "DT":
|
|
8783
8783
|
return /* @__PURE__ */ s.jsx(xt, { withoutLabel: !0, InputContainer: et, className: dt.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (g) => c(r, (g == null ? void 0 : g.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: d });
|
|
8784
8784
|
default: {
|
|
8785
8785
|
const g = u == null ? void 0 : u.find((v) => v.type === e);
|
|
8786
|
-
return g ? /* @__PURE__ */ s.jsx(g.picker, { className:
|
|
8786
|
+
return g ? /* @__PURE__ */ s.jsx(g.picker, { className: I(dt.input, dt.longer), value: t ? {
|
|
8787
8787
|
id: (t == null ? void 0 : t.toString()) ?? null,
|
|
8788
8788
|
name: ((f = i == null ? void 0 : i.find((v) => {
|
|
8789
8789
|
var b;
|
|
@@ -8816,15 +8816,15 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8816
8816
|
}, []), u = (g) => (g == null ? void 0 : g.value) !== (g == null ? void 0 : g.defaultValue), f = P(() => Object.keys(c).some((g) => u(c[g])), [c]);
|
|
8817
8817
|
return W(() => {
|
|
8818
8818
|
p(n);
|
|
8819
|
-
}, [n]), /* @__PURE__ */ s.jsxs("tr", { className:
|
|
8820
|
-
/* @__PURE__ */ s.jsx("td", { className:
|
|
8819
|
+
}, [n]), /* @__PURE__ */ s.jsxs("tr", { className: I("table-row", ye.tableRow), children: [
|
|
8820
|
+
/* @__PURE__ */ s.jsx("td", { className: I("table-cell", ye.tableCell, ye.stickyFirst), children: f() && /* @__PURE__ */ s.jsx(le, { color: "success", onClick: () => a(sc(c)), children: /* @__PURE__ */ s.jsx(l, { icon: "check" }) }) }),
|
|
8821
8821
|
t.map((g) => {
|
|
8822
8822
|
var v, b;
|
|
8823
|
-
return /* @__PURE__ */ s.jsx("td", { className:
|
|
8823
|
+
return /* @__PURE__ */ s.jsx("td", { className: I("table-cell", ye.tableCell), children: /* @__PURE__ */ s.jsx(lc, { type: g.type, value: (v = c[g.field ?? ""]) == null ? void 0 : v.value, field: g.field, isReadonly: g.readOnly, isPrimary: e.primaryKey === g.field, valuesForSelect: g.valuesForSelect, addValueToValuesForSelect: (h) => {
|
|
8824
8824
|
r(t.map((m) => m.field === g.field ? { ...m, valuesForSelect: [...m.valuesForSelect ?? [], h] } : m));
|
|
8825
8825
|
}, onChangeHandler: d, hideClearIcon: !u(c[g.field ?? ""]), clearValue: (b = c[g.field ?? ""].defaultValue) == null ? void 0 : b.toString(), customPickers: i }) }, `${e.id}-${g.field}`);
|
|
8826
8826
|
}),
|
|
8827
|
-
/* @__PURE__ */ s.jsx("td", { className:
|
|
8827
|
+
/* @__PURE__ */ s.jsx("td", { className: I("table-cell", ye.tableCell, ye.stickyLast), children: /* @__PURE__ */ s.jsx(le, { color: "danger", onClick: () => o(c[e.primaryKey ?? ""].value), children: /* @__PURE__ */ s.jsx(l, { icon: "delete" }) }) })
|
|
8828
8828
|
] });
|
|
8829
8829
|
}, zx = ({ schema: e, columns: t, setColumns: r, onCreate: n, customPickers: a }) => {
|
|
8830
8830
|
const { ProjectIconComponent: o } = q(ce), [i, l] = L(null), c = P(() => {
|
|
@@ -8869,13 +8869,13 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8869
8869
|
n(t);
|
|
8870
8870
|
}, [t]), W(() => {
|
|
8871
8871
|
e.current && (e.current.style.minWidth = `${r}px`);
|
|
8872
|
-
}, [r, e]), /* @__PURE__ */ s.jsx("div", { className:
|
|
8872
|
+
}, [r, e]), /* @__PURE__ */ s.jsx("div", { className: I("luminus-column-resizer", qr.resizer), draggable: !0, onDragStart: (o) => {
|
|
8873
8873
|
a(o.currentTarget.getBoundingClientRect().x), o.currentTarget.classList.add(qr.dragging);
|
|
8874
8874
|
}, onDrag: (o) => {
|
|
8875
8875
|
a((i) => (e.current && n((l) => l + o.clientX - (i ?? 0)), o.clientX));
|
|
8876
8876
|
}, onDragEnd: (o) => {
|
|
8877
8877
|
a(null), o.currentTarget.classList.remove(qr.dragging);
|
|
8878
|
-
}, children: /* @__PURE__ */ s.jsx("div", { className:
|
|
8878
|
+
}, children: /* @__PURE__ */ s.jsx("div", { className: I("content", qr.content) }) });
|
|
8879
8879
|
}, Jx = ({ column: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Ge, { placement: "bottom", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), Qx = ({ column: e, sortByField: t, sortByType: r, setSortBy: n }) => {
|
|
8880
8880
|
const { ProjectIconComponent: a } = q(ce), o = ee(null), i = V(() => {
|
|
8881
8881
|
if (e.valuesForSelect && e.valuesForSelect.length > 0)
|
|
@@ -8893,7 +8893,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8893
8893
|
return 100;
|
|
8894
8894
|
}
|
|
8895
8895
|
}, [e.type, e.valuesForSelect]);
|
|
8896
|
-
return /* @__PURE__ */ s.jsxs("th", { ref: o, className:
|
|
8896
|
+
return /* @__PURE__ */ s.jsxs("th", { ref: o, className: I("table-head", ye.tableHead), onClick: () => {
|
|
8897
8897
|
const l = t === e.field ? r : null;
|
|
8898
8898
|
if (l === "asc") {
|
|
8899
8899
|
n(e.field, "desc");
|
|
@@ -8929,23 +8929,23 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8929
8929
|
};
|
|
8930
8930
|
})) ?? []
|
|
8931
8931
|
]);
|
|
8932
|
-
}, [e, d]), /* @__PURE__ */ s.jsxs("table", { id: `dynamic-table-${e.id}`, className:
|
|
8933
|
-
/* @__PURE__ */ s.jsxs("thead", { className:
|
|
8934
|
-
/* @__PURE__ */ s.jsxs("tr", { className:
|
|
8935
|
-
/* @__PURE__ */ s.jsx("th", { className:
|
|
8932
|
+
}, [e, d]), /* @__PURE__ */ s.jsxs("table", { id: `dynamic-table-${e.id}`, className: I("table table-borderless luminus-df-table", ye.table), children: [
|
|
8933
|
+
/* @__PURE__ */ s.jsxs("thead", { className: I("text-nowrap table-header", ye.stickyTop, ye.tableHeader), children: [
|
|
8934
|
+
/* @__PURE__ */ s.jsxs("tr", { className: I("table-row", ye.tableRow), children: [
|
|
8935
|
+
/* @__PURE__ */ s.jsx("th", { className: I("table-head", ye.tableHead, ye.actionColumn, ye.stickyFirst) }),
|
|
8936
8936
|
g.map((b) => /* @__PURE__ */ s.jsx(Qx, { column: b, sortByField: l, sortByType: c, setSortBy: p }, `${e.id}-${b.field}`)),
|
|
8937
|
-
/* @__PURE__ */ s.jsx("th", { className:
|
|
8937
|
+
/* @__PURE__ */ s.jsx("th", { className: I("table-head", ye.tableHead, ye.actionColumn, ye.stickyLast) })
|
|
8938
8938
|
] }),
|
|
8939
|
-
/* @__PURE__ */ s.jsxs("tr", { className:
|
|
8940
|
-
/* @__PURE__ */ s.jsx("th", { className:
|
|
8941
|
-
g.map((b) => /* @__PURE__ */ s.jsx("th", { className:
|
|
8939
|
+
/* @__PURE__ */ s.jsxs("tr", { className: I("table-row filters-row", ye.tableRow, ye.filtersRow), children: [
|
|
8940
|
+
/* @__PURE__ */ s.jsx("th", { className: I("table-head", ye.tableHead, ye.actionColumn, ye.stickyFirst) }),
|
|
8941
|
+
g.map((b) => /* @__PURE__ */ s.jsx("th", { className: I("table-head", ye.tableHead), children: b.valuesForSelect && b.valuesForSelect.length > 0 || b.type === "BIT" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(tn, { InputContainer: et, withoutLabel: !0, size: "sm", value: o[b.field] ?? "", onChange: (h) => i(b.field, (h == null ? void 0 : h.toString()) ?? null), options: b.type === "BIT" ? [
|
|
8942
8942
|
{ id: 1, name: f.yes },
|
|
8943
8943
|
{ id: 0, name: f.no }
|
|
8944
8944
|
] : b.valuesForSelect ?? [], isNumber: b.type === "BIT", showClearIcon: !0, dropdownWidth: 200 }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(xt, { InputContainer: et, withoutLabel: !0, size: "sm", type: b.type === "NUM" ? "number" : b.type === "DT" ? "date" : "text", value: o[b.field] ?? "", onChange: (h) => i(b.field, (h == null ? void 0 : h.toString()) ?? null) }) }) }, `${e.id}-${b.field}`)),
|
|
8945
|
-
/* @__PURE__ */ s.jsx("th", { className:
|
|
8945
|
+
/* @__PURE__ */ s.jsx("th", { className: I("table-head", ye.tableHead, ye.actionColumn, ye.stickyLast) })
|
|
8946
8946
|
] })
|
|
8947
8947
|
] }),
|
|
8948
|
-
/* @__PURE__ */ s.jsxs("tbody", { className:
|
|
8948
|
+
/* @__PURE__ */ s.jsxs("tbody", { className: I("table-body", ye.tableBody), children: [
|
|
8949
8949
|
t.filter((b) => b[e.primaryKey ?? ""]).map((b) => /* @__PURE__ */ s.jsx(Hx, { schema: e, columns: g, setColumns: v, initialItem: b, onEdit: r, onDelete: n, customPickers: u }, `${e.id}-${b[e.primaryKey ?? ""].value}`)),
|
|
8950
8950
|
/* @__PURE__ */ s.jsx(zx, { schema: e, columns: g, setColumns: v, onCreate: a, customPickers: u })
|
|
8951
8951
|
] })
|
|
@@ -8962,12 +8962,12 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8962
8962
|
apiItemCreate: "/dynamicForms/insert",
|
|
8963
8963
|
apiExportGet: "/dynamicForms/export"
|
|
8964
8964
|
}, Ow = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Li.appDetail } = Li, apiUrls: { apiSchemaGet: p = Rt.apiSchemaGet, apiDataGet: d = Rt.apiDataGet, apiItemPost: u = Rt.apiItemPost, apiItemDelete: f = Rt.apiItemDelete, apiItemCreate: g = Rt.apiItemCreate, apiExportGet: v = Rt.apiExportGet } = Rt, customPickers: b }) => {
|
|
8965
|
-
var me, de, Be, Qe, Ze,
|
|
8966
|
-
const { texts: { dynamicForms: h }, ProjectIconComponent: m } = q(ce), x = lt(), { startLoading: D, stopLoading: N } = q(
|
|
8965
|
+
var me, de, Be, Qe, Ze, Wt;
|
|
8966
|
+
const { texts: { dynamicForms: h }, ProjectIconComponent: m } = q(ce), x = lt(), { startLoading: D, stopLoading: N } = q(er), [y, S] = L(null), [j, O] = L(null), [E, T] = L(null), [k, M] = L(null), [C, Z] = L(!1), { addNotification: Y } = Sa(), [B, R] = L([]), { confirm: $ } = Tr(), F = 20, z = F + 1, K = k ? Math.ceil(k.length / F) : 1, re = t ? t > 1 : !1, ae = t ? t < K : !1, oe = t ? (t - 1) * F : 0, H = t ? t * F : F, U = V(() => k ? k.length > z : !1, [k, z]), pe = V(() => U ? (k == null ? void 0 : k.slice(oe, H)) ?? null : k ?? null, [U, k, oe, H]), [se, De] = L(null);
|
|
8967
8967
|
W(() => {
|
|
8968
8968
|
S(null), O(null), Z(!1), R([]), De(null);
|
|
8969
8969
|
}, [e]);
|
|
8970
|
-
const
|
|
8970
|
+
const Ie = P(async () => {
|
|
8971
8971
|
D("dynamicFormSchema"), await x.get(`${p}?id=${e}`).then(({ data: ne }) => {
|
|
8972
8972
|
S(ne), N("dynamicFormSchema");
|
|
8973
8973
|
}).catch(() => N("dynamicFormSchema"));
|
|
@@ -8980,8 +8980,8 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
8980
8980
|
}
|
|
8981
8981
|
D("dynamicFormData"), await x.get(`${d}?id=${e}&showArchive=${C}${y.masterReference ? `&master=${se}` : ""}`).then(({ data: ve }) => {
|
|
8982
8982
|
const Se = ve.map((he) => {
|
|
8983
|
-
var
|
|
8984
|
-
return Object.fromEntries(((
|
|
8983
|
+
var je;
|
|
8984
|
+
return Object.fromEntries(((je = y.columns) == null ? void 0 : je.filter((Pe) => Pe.field).map((Pe) => [
|
|
8985
8985
|
Pe.field,
|
|
8986
8986
|
{ value: he[Pe.field ?? ""], defaultValue: he[Pe.field ?? ""] }
|
|
8987
8987
|
])) ?? []);
|
|
@@ -9017,35 +9017,35 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9017
9017
|
}, [Y, ze, h, y, se]), J = (ne) => {
|
|
9018
9018
|
ne > K ? r(K) : ne < 1 && r(1), r(ne);
|
|
9019
9019
|
}, ue = P(() => {
|
|
9020
|
-
if (!
|
|
9020
|
+
if (!j || !y) {
|
|
9021
9021
|
T(null);
|
|
9022
9022
|
return;
|
|
9023
9023
|
}
|
|
9024
|
-
const ne =
|
|
9025
|
-
var
|
|
9024
|
+
const ne = j.filter((ve) => Object.entries(n).every(([Se, he]) => {
|
|
9025
|
+
var or, ir, sr;
|
|
9026
9026
|
if (he === null)
|
|
9027
9027
|
return !0;
|
|
9028
|
-
const
|
|
9029
|
-
if (
|
|
9028
|
+
const je = (or = ve[Se]) == null ? void 0 : or.value;
|
|
9029
|
+
if (je == null)
|
|
9030
9030
|
return !1;
|
|
9031
|
-
const Pe = (
|
|
9032
|
-
if (!
|
|
9031
|
+
const Pe = (ir = y.columns) == null ? void 0 : ir.find((Fr) => Fr.field === Se), nr = Pe == null ? void 0 : Pe.type, ar = (Pe == null ? void 0 : Pe.values) && ((sr = Pe == null ? void 0 : Pe.values) == null ? void 0 : sr.length) > 0;
|
|
9032
|
+
if (!nr)
|
|
9033
9033
|
return !1;
|
|
9034
|
-
switch (
|
|
9034
|
+
switch (nr) {
|
|
9035
9035
|
case "STR":
|
|
9036
|
-
return
|
|
9036
|
+
return ar ? je === he : je.toString().toLowerCase().includes(he.toLowerCase());
|
|
9037
9037
|
case "NUM":
|
|
9038
|
-
return
|
|
9038
|
+
return ar ? Number(je) === Number(he) : je.toString().toLowerCase().includes(he.toLowerCase());
|
|
9039
9039
|
case "DT":
|
|
9040
|
-
return
|
|
9040
|
+
return je.toString().toLowerCase().includes(he.toLowerCase());
|
|
9041
9041
|
case "BIT":
|
|
9042
|
-
return Number(
|
|
9042
|
+
return Number(je) === Number(he);
|
|
9043
9043
|
default:
|
|
9044
|
-
return
|
|
9044
|
+
return je.toString().toLowerCase().includes(he.toLowerCase());
|
|
9045
9045
|
}
|
|
9046
9046
|
}));
|
|
9047
9047
|
T(ne);
|
|
9048
|
-
}, [
|
|
9048
|
+
}, [j, n, y]), Ee = P(() => {
|
|
9049
9049
|
if (!E || !y) {
|
|
9050
9050
|
M([]);
|
|
9051
9051
|
return;
|
|
@@ -9055,21 +9055,21 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9055
9055
|
return;
|
|
9056
9056
|
}
|
|
9057
9057
|
M([...E].sort((ne, ve) => {
|
|
9058
|
-
var
|
|
9059
|
-
const Se = ((
|
|
9060
|
-
if (!
|
|
9058
|
+
var nr, ar, or, ir, sr, Fr;
|
|
9059
|
+
const Se = ((ar = (nr = ne[o]) == null ? void 0 : nr.value) == null ? void 0 : ar.toString()) ?? "", he = ((ir = (or = ve[o]) == null ? void 0 : or.value) == null ? void 0 : ir.toString()) ?? "", je = y.columns.find((at) => at.field === o), Pe = je == null ? void 0 : je.type;
|
|
9060
|
+
if (!je || !Pe || !Se && !he)
|
|
9061
9061
|
return 0;
|
|
9062
9062
|
if (!Se)
|
|
9063
9063
|
return 1;
|
|
9064
9064
|
if (!he)
|
|
9065
9065
|
return -1;
|
|
9066
|
-
if (
|
|
9067
|
-
const at = ((
|
|
9068
|
-
var
|
|
9069
|
-
return ((
|
|
9070
|
-
})) == null ? void 0 :
|
|
9071
|
-
var
|
|
9072
|
-
return ((
|
|
9066
|
+
if (je.values && je.values.length > 0) {
|
|
9067
|
+
const at = ((sr = je.values.find((Sn) => {
|
|
9068
|
+
var lr;
|
|
9069
|
+
return ((lr = Sn.id) == null ? void 0 : lr.toString()) === Se;
|
|
9070
|
+
})) == null ? void 0 : sr.name) ?? "", ft = ((Fr = je.values.find((Sn) => {
|
|
9071
|
+
var lr;
|
|
9072
|
+
return ((lr = Sn.id) == null ? void 0 : lr.toString()) === he;
|
|
9073
9073
|
})) == null ? void 0 : Fr.name) ?? "";
|
|
9074
9074
|
return i === "asc" ? at.localeCompare(ft) : ft.localeCompare(at);
|
|
9075
9075
|
}
|
|
@@ -9078,15 +9078,15 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9078
9078
|
return i === "asc" ? at - ft : ft - at;
|
|
9079
9079
|
}
|
|
9080
9080
|
if (Pe === "DT") {
|
|
9081
|
-
const at =
|
|
9081
|
+
const at = Ft(Se == null ? void 0 : Se.toString()).getTime(), ft = Ft(he == null ? void 0 : he.toString()).getTime();
|
|
9082
9082
|
return i === "asc" ? at - ft : ft - at;
|
|
9083
9083
|
}
|
|
9084
9084
|
return i === "asc" ? Se.toString().localeCompare(he.toString()) : he.toString().localeCompare(Se.toString());
|
|
9085
9085
|
}));
|
|
9086
9086
|
}, [E, y, o, i]);
|
|
9087
9087
|
return W(() => {
|
|
9088
|
-
|
|
9089
|
-
}, [
|
|
9088
|
+
Ie();
|
|
9089
|
+
}, [Ie]), W(() => {
|
|
9090
9090
|
_();
|
|
9091
9091
|
}, [_]), W(() => {
|
|
9092
9092
|
ue();
|
|
@@ -9099,7 +9099,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9099
9099
|
}, [t, U, K, r]), /* @__PURE__ */ s.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
|
|
9100
9100
|
/* @__PURE__ */ s.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
|
|
9101
9101
|
/* @__PURE__ */ s.jsx(Q, { variant: "h3", children: (y == null ? void 0 : y.name) ?? "" }),
|
|
9102
|
-
/* @__PURE__ */ s.jsxs(
|
|
9102
|
+
/* @__PURE__ */ s.jsxs(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { as: _r }), children: [
|
|
9103
9103
|
/* @__PURE__ */ s.jsx(tt, { onClick: () => Z(!C), children: C ? h.hideArchived : h.showArchived }),
|
|
9104
9104
|
/* @__PURE__ */ s.jsx(fd, {}),
|
|
9105
9105
|
/* @__PURE__ */ s.jsx(tt, { onClick: fe, icon: /* @__PURE__ */ s.jsx(m, { icon: "file-download" }), children: h.downloadExport })
|
|
@@ -9111,11 +9111,11 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9111
9111
|
var ve;
|
|
9112
9112
|
return /* @__PURE__ */ s.jsx(ut, { as: "link", href: `${br(c, { id: (ve = ne.id) == null ? void 0 : ve.toString() })}?type=dynamic-form`, children: ne.name }, ne.id);
|
|
9113
9113
|
}) }),
|
|
9114
|
-
y != null && y.masterReference && !se ? /* @__PURE__ */ s.jsx(pn, { variant: "warning", children: h.selectMaster(((
|
|
9114
|
+
y != null && y.masterReference && !se ? /* @__PURE__ */ s.jsx(pn, { variant: "warning", children: h.selectMaster(((Wt = (Ze = y.columns) == null ? void 0 : Ze.find((ne) => ne.field === y.masterReferenceColumn)) == null ? void 0 : Wt.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9115
9115
|
y && B.length > 0 && /* @__PURE__ */ s.jsx("div", { className: "mb-2", children: /* @__PURE__ */ s.jsx(Px, { errors: B, schema: y }) }),
|
|
9116
9116
|
y && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9117
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
9118
|
-
U && t && /* @__PURE__ */ s.jsxs("div", { className:
|
|
9117
|
+
/* @__PURE__ */ s.jsx("div", { className: I("rounded border overflow-auto", Mi.tableContainer), children: /* @__PURE__ */ s.jsx(Zx, { schema: y, items: !U && k && (k == null ? void 0 : k.length) > z ? [] : (U ? pe : k) ?? [], onEditItem: pt, onDeleteItem: G, onCreateItem: A, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, selectedMaster: (se == null ? void 0 : se.toString()) ?? null, customPickers: b }) }),
|
|
9118
|
+
U && t && /* @__PURE__ */ s.jsxs("div", { className: I(Mi.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
9119
9119
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
9120
9120
|
/* @__PURE__ */ s.jsx(le, { color: "primary", onClick: () => J(1), disabled: !re, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-double-left" }) }),
|
|
9121
9121
|
/* @__PURE__ */ s.jsx(le, { color: "primary", onClick: () => J(t - 1), disabled: !re, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-left" }) }),
|
|
@@ -9140,7 +9140,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9140
9140
|
}, Vi = {
|
|
9141
9141
|
apiDynamicFormsGet: "/dynamicForms"
|
|
9142
9142
|
}, ry = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Ge, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), _w = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: n, fullSize: a, appUrls: { appDetail: o = Fi.appDetail } = Fi, apiUrls: { apiDynamicFormsGet: i = Vi.apiDynamicFormsGet } = Vi }) => {
|
|
9143
|
-
const l = lt(), { startLoading: c, stopLoading: p } = q(
|
|
9143
|
+
const l = lt(), { startLoading: c, stopLoading: p } = q(er), [d, u] = L(null), [f] = ms("search", ""), g = V(() => [
|
|
9144
9144
|
...(d == null ? void 0 : d.map((h) => ({
|
|
9145
9145
|
...h,
|
|
9146
9146
|
type: "dynamic-form"
|
|
@@ -9175,21 +9175,21 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9175
9175
|
n(t === "cz" ? "en" : t === "en" ? "de" : "cz"), a.stopPropagation();
|
|
9176
9176
|
}, children: t === "cz" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9177
9177
|
/* @__PURE__ */ s.jsx("strong", { className: "fw-bold", children: "CZ" }),
|
|
9178
|
-
/* @__PURE__ */ s.jsx(
|
|
9178
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
9179
9179
|
/* @__PURE__ */ s.jsx("span", { children: "EN" }),
|
|
9180
|
-
/* @__PURE__ */ s.jsx(
|
|
9180
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
9181
9181
|
/* @__PURE__ */ s.jsx("span", { children: "DE" })
|
|
9182
9182
|
] }) : t === "en" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9183
9183
|
/* @__PURE__ */ s.jsx("strong", { className: "fw-bold", children: "EN" }),
|
|
9184
|
-
/* @__PURE__ */ s.jsx(
|
|
9184
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
9185
9185
|
/* @__PURE__ */ s.jsx("span", { children: "DE" }),
|
|
9186
|
-
/* @__PURE__ */ s.jsx(
|
|
9186
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
9187
9187
|
/* @__PURE__ */ s.jsx("span", { children: "CZ" })
|
|
9188
9188
|
] }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
9189
9189
|
/* @__PURE__ */ s.jsx("strong", { className: "fw-bold", children: "DE" }),
|
|
9190
|
-
/* @__PURE__ */ s.jsx(
|
|
9190
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
9191
9191
|
/* @__PURE__ */ s.jsx("span", { children: "CZ" }),
|
|
9192
|
-
/* @__PURE__ */ s.jsx(
|
|
9192
|
+
/* @__PURE__ */ s.jsx(Ut, {}),
|
|
9193
9193
|
/* @__PURE__ */ s.jsx("span", { children: "EN" })
|
|
9194
9194
|
] }) });
|
|
9195
9195
|
}, Aw = ({ controlId: e, ...t }) => /* @__PURE__ */ s.jsx(Oe.Group, { controlId: e, ...t }), Rw = ({ employeeId: e, alt: t, noPhotoImage: r, cafmApiUrl: n, showLargeInLightBox: a = !1 }) => {
|
|
@@ -9233,7 +9233,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9233
9233
|
modifiers: [["darker", 1.6]]
|
|
9234
9234
|
}, tooltipLabel: n }), ny = "_hrText_xxish_1", ay = {
|
|
9235
9235
|
hrText: ny
|
|
9236
|
-
}, oy = ({ text: e }) => /* @__PURE__ */ s.jsx("hr", { className:
|
|
9236
|
+
}, oy = ({ text: e }) => /* @__PURE__ */ s.jsx("hr", { className: I(ay.hrText), "data-content": e }), iy = "_cards-group_1gvpy_1", sy = "_group-title_1gvpy_1", ly = "_group-content_1gvpy_8", cy = "_report-card_1gvpy_12", dy = "_card-title-link_1gvpy_22", zt = {
|
|
9237
9237
|
"cards-group": "_cards-group_1gvpy_1",
|
|
9238
9238
|
cardsGroup: iy,
|
|
9239
9239
|
"group-title": "_group-title_1gvpy_1",
|
|
@@ -9265,9 +9265,9 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9265
9265
|
return /* @__PURE__ */ s.jsx("div", { className: "col-12 col-lg-4", children: /* @__PURE__ */ s.jsxs(
|
|
9266
9266
|
an,
|
|
9267
9267
|
{
|
|
9268
|
-
title: /* @__PURE__ */ s.jsx(nt, { to: t(e), className:
|
|
9268
|
+
title: /* @__PURE__ */ s.jsx(nt, { to: t(e), className: I(zt.cardTitleLink, "w-100 text-uppercase fw-normal"), children: r(e) }),
|
|
9269
9269
|
headerClassName: "bg-darker",
|
|
9270
|
-
className:
|
|
9270
|
+
className: I(zt.reportCard, "shadow h-100 d-flex flex-column"),
|
|
9271
9271
|
contentClassName: "d-flex flex-column gap-2 h-100",
|
|
9272
9272
|
children: [
|
|
9273
9273
|
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "px-2", children: n(e) }),
|
|
@@ -9301,9 +9301,9 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9301
9301
|
var m;
|
|
9302
9302
|
return p(((m = h.target) == null ? void 0 : m.value) ?? "");
|
|
9303
9303
|
}, placeholder: l.index.search }) }),
|
|
9304
|
-
/* @__PURE__ */ s.jsx("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: v.map((h) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
9305
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
9306
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
9304
|
+
/* @__PURE__ */ s.jsx("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: v.map((h) => /* @__PURE__ */ s.jsxs("div", { className: I(zt.cardsGroup, { [zt.mobile]: b }), children: [
|
|
9305
|
+
/* @__PURE__ */ s.jsx("div", { className: I("group-title z-1", zt.groupTitle), children: /* @__PURE__ */ s.jsx(oy, { text: o(h) }) }),
|
|
9306
|
+
/* @__PURE__ */ s.jsx("div", { className: I(zt.groupContent), children: /* @__PURE__ */ s.jsx("div", { className: I("row gx-3 gy-3"), children: g[h].map((m) => /* @__PURE__ */ s.jsx(py, { report: m, getReportRoute: i, getReportName: n, getReportDescription: a })) }) })
|
|
9307
9307
|
] }, h)) })
|
|
9308
9308
|
] });
|
|
9309
9309
|
}, fy = "_mini-detail-popover_obryf_1", gy = "_sm_obryf_5", vy = "_lg_obryf_9", Wi = {
|
|
@@ -9341,7 +9341,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9341
9341
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
|
|
9342
9342
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
|
|
9343
9343
|
] })
|
|
9344
|
-
] }) : d }), placement: n, trigger: a, popoverClassName:
|
|
9344
|
+
] }) : d }), placement: n, trigger: a, popoverClassName: I(Wi.miniDetailPopover, Wi[f]), children: /* @__PURE__ */ s.jsx("div", { children: e }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) });
|
|
9345
9345
|
}, Vw = ({ label: e, value: t }) => /* @__PURE__ */ s.jsxs("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
|
|
9346
9346
|
/* @__PURE__ */ s.jsx(Q, { variant: "caption", children: e }),
|
|
9347
9347
|
/* @__PURE__ */ s.jsx(Q, { variant: "body2", className: "text-end", children: t ?? "-" })
|
|
@@ -9349,7 +9349,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9349
9349
|
const { checkUserHasPermissions: o } = ps(), i = V(() => a || !(e.permissions === void 0 || o(e.permissions)), [o, a, e.permissions]), l = r ?? e.name, c = V(() => {
|
|
9350
9350
|
switch (t) {
|
|
9351
9351
|
case "primaryButton":
|
|
9352
|
-
return
|
|
9352
|
+
return hr;
|
|
9353
9353
|
case "contextButton":
|
|
9354
9354
|
return ut;
|
|
9355
9355
|
case "iconButton":
|
|
@@ -9358,7 +9358,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9358
9358
|
return Od;
|
|
9359
9359
|
}
|
|
9360
9360
|
}, [t]);
|
|
9361
|
-
return t === "link" ? /* @__PURE__ */ s.jsx(nt, { to: e.route, className:
|
|
9361
|
+
return t === "link" ? /* @__PURE__ */ s.jsx(nt, { to: e.route, className: I("link font-size-14", i ? "disabled" : void 0, n), children: l }) : /* @__PURE__ */ s.jsx(c, { as: "link", href: e.route, className: I(i ? "disabled" : void 0, n), children: l });
|
|
9362
9362
|
}, Gw = ({ id: e, getTimelineApiPath: t }) => {
|
|
9363
9363
|
var i;
|
|
9364
9364
|
const { texts: { approval: r }, ProjectIconComponent: n } = q(ce), { data: a } = st(t(e)), o = P((l, c = !1) => {
|
|
@@ -9375,26 +9375,38 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9375
9375
|
return null;
|
|
9376
9376
|
}
|
|
9377
9377
|
}, [r, n]);
|
|
9378
|
-
return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(Zb, {
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9378
|
+
return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(Zb, { dontSort: !0, steps: [
|
|
9379
|
+
a != null && a.startDate ? {
|
|
9380
|
+
date: Ft(a.startDate),
|
|
9381
|
+
title: /* @__PURE__ */ s.jsx(Q, { variant: "body2", children: r.startDate }),
|
|
9382
|
+
dateFormat: "date"
|
|
9383
|
+
} : null,
|
|
9384
|
+
...((i = a == null ? void 0 : a.approvalLevels) == null ? void 0 : i.map((l) => {
|
|
9385
|
+
var c;
|
|
9386
|
+
return {
|
|
9387
|
+
date: void 0,
|
|
9388
|
+
title: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center justify-content-between w-100", children: [
|
|
9389
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "body", className: "fw-bold", children: r.getLevelText(l.index) }),
|
|
9390
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "text-end", children: r.getThresholdText(l.threshold) })
|
|
9391
|
+
] }),
|
|
9392
|
+
icon: o(l.state),
|
|
9393
|
+
text: l.approvers && ((c = l.approvers) == null ? void 0 : c.length) > 0 ? /* @__PURE__ */ s.jsx("div", { className: "list-group", children: l.approvers.map((p) => /* @__PURE__ */ s.jsx("div", { className: "list-group-item p-1", children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between align-items-center gap-2", children: [
|
|
9394
|
+
p.automaticApproval ? /* @__PURE__ */ s.jsx(Ge, { placement: "left", text: r.autoApproved, children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx("div", { className: "text-success", style: {
|
|
9395
|
+
fontSize: "14px"
|
|
9396
|
+
}, children: "A" }) }) }) : o(p.state, !0),
|
|
9397
|
+
/* @__PURE__ */ s.jsxs("div", { className: "text-end", children: [
|
|
9398
|
+
/* @__PURE__ */ s.jsx(Q, { variant: "body2", children: p.delegatedApprover ? p.delegatedApprover.name : p.approver.name }),
|
|
9399
|
+
p.responseDate ? /* @__PURE__ */ s.jsx(Q, { variant: "caption", children: us(p.responseDate) }) : null
|
|
9400
|
+
] })
|
|
9401
|
+
] }) }, p.id)) }) : null
|
|
9402
|
+
};
|
|
9403
|
+
})) ?? [],
|
|
9404
|
+
a != null && a.finishedDate ? {
|
|
9405
|
+
date: Ft(a.finishedDate),
|
|
9406
|
+
title: /* @__PURE__ */ s.jsx(Q, { variant: "body2", children: r.finishedDate }),
|
|
9407
|
+
dateFormat: "date"
|
|
9408
|
+
} : null
|
|
9409
|
+
].filter((l) => l !== null).map((l) => l) }) });
|
|
9398
9410
|
}, Ww = ({ showArchived: e, BnfTableComponent: t, tableIdentifier: r, detailRoute: n }) => {
|
|
9399
9411
|
const { texts: { substitutions: a } } = q(ce), { data: o } = st(`/permissions/substitutions?archived=${e}`), i = V(() => ({ enable: !0, column: "archived" }), []), l = V(() => [
|
|
9400
9412
|
{
|
|
@@ -9435,13 +9447,13 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9435
9447
|
}), [n]);
|
|
9436
9448
|
return /* @__PURE__ */ s.jsx(t, { data: o ?? [], columnsDef: l, tableId: r, useSearchState: !0, paginationMode: "enabled", useScrollableContainer: !0, archiveHighlighting: i, rowNavigation: c });
|
|
9437
9449
|
}, Uw = ({ InputContainer: e = Je, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: p, onChange: d, className: u }) => {
|
|
9438
|
-
const { register: f, formState: g, setValue: v } =
|
|
9450
|
+
const { register: f, formState: g, setValue: v } = jt(), b = Et({ falseIfNotInit: !0 }), [h, m] = L(void 0), [x, D] = L(!1);
|
|
9439
9451
|
W(() => {
|
|
9440
9452
|
const S = t.split(".");
|
|
9441
|
-
let
|
|
9453
|
+
let j = g.errors;
|
|
9442
9454
|
S.forEach((O) => {
|
|
9443
|
-
|
|
9444
|
-
}), m(
|
|
9455
|
+
j !== void 0 && (j = j[O]);
|
|
9456
|
+
}), m(j);
|
|
9445
9457
|
}, [g, t]);
|
|
9446
9458
|
const N = V(() => l || b, [l, b]), y = h !== void 0;
|
|
9447
9459
|
return W(() => {
|
|
@@ -9449,40 +9461,40 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9449
9461
|
}, [g]), /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: r ?? "", required: o, disabled: N, isInvalid: y, withoutLabel: c, hint: p, className: u, children: [
|
|
9450
9462
|
/* @__PURE__ */ s.jsx(Oe.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...f(t, {
|
|
9451
9463
|
onChange: (S) => {
|
|
9452
|
-
n && n.forEach((
|
|
9464
|
+
n && n.forEach((j) => v(j, null, { shouldDirty: !0, shouldValidate: x })), d && d(S.target.value ?? null);
|
|
9453
9465
|
}
|
|
9454
9466
|
}), isInvalid: y, hidden: i, disabled: N, className: "w-100" }),
|
|
9455
|
-
h && /* @__PURE__ */ s.jsx(
|
|
9467
|
+
h && /* @__PURE__ */ s.jsx($t, { message: h.message })
|
|
9456
9468
|
] });
|
|
9457
9469
|
}, Hw = ({ InputContainer: e = Je, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: p }) => {
|
|
9458
|
-
const { register: d, formState: u, setValue: f, watch: g } =
|
|
9470
|
+
const { register: d, formState: u, setValue: f, watch: g } = jt(), v = Et({ falseIfNotInit: !0 }), [b, h] = L(void 0), [m, x] = L(!1), D = V(() => n, [n]), N = V(() => i || v, [i, v]);
|
|
9459
9471
|
W(() => {
|
|
9460
9472
|
const S = r.split(".");
|
|
9461
|
-
let
|
|
9473
|
+
let j = u.errors;
|
|
9462
9474
|
S.forEach((O) => {
|
|
9463
|
-
|
|
9464
|
-
}), h(
|
|
9475
|
+
j !== void 0 && (j = j[O]);
|
|
9476
|
+
}), h(j);
|
|
9465
9477
|
}, [u, r]), W(() => {
|
|
9466
9478
|
u.isSubmitted && x(!0);
|
|
9467
9479
|
}, [u]);
|
|
9468
9480
|
const y = b !== void 0;
|
|
9469
9481
|
return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: o, disabled: N, isInvalid: y, className: p, children: [
|
|
9470
9482
|
D.map((S) => /* @__PURE__ */ s.jsx(Oe.Check, { id: `radio-${S.id}`, label: S.name, type: "radio", value: S.id ?? "", checked: g(r) === S.id, ...d(r, {
|
|
9471
|
-
onChange: (
|
|
9483
|
+
onChange: (j) => {
|
|
9472
9484
|
var O;
|
|
9473
|
-
a && a.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: m })), c && c((O =
|
|
9485
|
+
a && a.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: m })), c && c((O = j.target) != null && O.value ? j.target.value.toString() : null);
|
|
9474
9486
|
}
|
|
9475
9487
|
}), isInvalid: y, hidden: l, disabled: N, className: "w-100" }, S.id)),
|
|
9476
|
-
b && /* @__PURE__ */ s.jsx(
|
|
9488
|
+
b && /* @__PURE__ */ s.jsx($t, { message: b.message })
|
|
9477
9489
|
] });
|
|
9478
|
-
}, zw = ({ InputContainer: e = Je, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: f, texts: g, dropdownItemsNameWidth: v, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: N, onSelect: y, className: S, archiveColumn:
|
|
9479
|
-
const { formState: Y, setValue: B, watch: R, control: $ } =
|
|
9490
|
+
}, zw = ({ InputContainer: e = Je, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: d, onSearchQueryChange: u, selectedItemNavigateTo: f, texts: g, dropdownItemsNameWidth: v, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: N, onSelect: y, className: S, archiveColumn: j, hint: O, addNewOptionPath: E, refreshOptions: T, MiniDetailComponent: k, miniDetailPlacement: M, suggestedItems: C, suggestedItemsTitle: Z }) => {
|
|
9491
|
+
const { formState: Y, setValue: B, watch: R, control: $ } = jt(), F = Et({ falseIfNotInit: !0 }), [z, K] = L(void 0), [re, ae] = L(!1), [oe, H] = L(!1), U = R(t) ?? null, pe = U === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : R(`${t}-DropdownName`), se = V(() => U == null ? null : { id: U ?? null, name: pe ?? "" }, [U, pe]), De = P(() => {
|
|
9480
9492
|
const A = t.split(".");
|
|
9481
9493
|
let J = Y.errors;
|
|
9482
9494
|
A.forEach((ue) => {
|
|
9483
9495
|
J !== void 0 && (J = J[ue]);
|
|
9484
9496
|
}), K(J);
|
|
9485
|
-
}, [Y, t]),
|
|
9497
|
+
}, [Y, t]), Ie = P((A) => {
|
|
9486
9498
|
if ((A == null ? void 0 : A.id) === U)
|
|
9487
9499
|
return;
|
|
9488
9500
|
if (y && y(A), o && o.forEach((ue) => B(ue, null, { shouldDirty: !0, shouldValidate: oe })), A === null) {
|
|
@@ -9498,23 +9510,23 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9498
9510
|
shouldValidate: oe
|
|
9499
9511
|
}), B(`${t}-DropdownName`, A.name ?? "");
|
|
9500
9512
|
}, [B, t, oe, i, o, U, y]), _ = P((A) => {
|
|
9501
|
-
ae(!1),
|
|
9502
|
-
}, [
|
|
9513
|
+
ae(!1), Ie(A);
|
|
9514
|
+
}, [Ie]), fe = P(() => {
|
|
9503
9515
|
ae(!1);
|
|
9504
9516
|
}, []), Ce = ee(null), Le = z !== void 0, ze = f !== void 0, pt = ze && se !== null, G = V(() => p || F, [p, F]);
|
|
9505
9517
|
return W(() => {
|
|
9506
9518
|
De();
|
|
9507
9519
|
}, [De]), W(() => {
|
|
9508
9520
|
Y.isSubmitted && H(!0);
|
|
9509
|
-
}, [Y]), /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: G, hidden: c, withoutLabel: h, isInvalid: Le, inputContainerClassName:
|
|
9521
|
+
}, [Y]), /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: G, hidden: c, withoutLabel: h, isInvalid: Le, inputContainerClassName: I({ "luminus-dropdown-select-open": re }), hint: O, className: S, children: [
|
|
9510
9522
|
/* @__PURE__ */ s.jsxs(wa, { currentSelection: se, selectedItemNavigateTo: f, children: [
|
|
9511
9523
|
N && (se == null ? void 0 : se.name) && /* @__PURE__ */ s.jsx(Q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: se.name }),
|
|
9512
|
-
/* @__PURE__ */ s.jsx(
|
|
9524
|
+
/* @__PURE__ */ s.jsx(Ia, { control: $, name: t, render: () => /* @__PURE__ */ s.jsx(Da, { value: U, MiniDetailComponent: k, miniDetailPlacement: M, children: /* @__PURE__ */ s.jsx(Oe.Select, { size: n, onMouseDown: (A) => {
|
|
9513
9525
|
A.currentTarget.focus(), A.preventDefault();
|
|
9514
9526
|
}, onClick: () => {
|
|
9515
9527
|
!ze && !G && ae(!0);
|
|
9516
9528
|
}, ref: Ce, value: U ?? "", onChange: () => {
|
|
9517
|
-
}, isInvalid: Le, hidden: c, className:
|
|
9529
|
+
}, isInvalid: Le, hidden: c, className: I("w-100", {
|
|
9518
9530
|
"luminus-dropdown-picker-disabled": G,
|
|
9519
9531
|
"luminus-dropdown-picker-link": pt
|
|
9520
9532
|
}), children: /* @__PURE__ */ s.jsx("option", { value: U, children: N ? U : (pe == null ? void 0 : pe.length) > 0 ? pe : U }) }) }) }),
|
|
@@ -9525,11 +9537,11 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9525
9537
|
x ?? null
|
|
9526
9538
|
] }) : null
|
|
9527
9539
|
] }),
|
|
9528
|
-
z && /* @__PURE__ */ s.jsx(
|
|
9529
|
-
Ce.current && /* @__PURE__ */ s.jsx(Na, { show: re, onCancel: fe, items: d, currentSelection: se, onSelectionChange: _, onSearchQueryChange: u, texts: g, itemsNameWidth: v, additionalColumns: m, displayIdAsName: N, isLoading: b, disabled: G, inputRef: Ce, archiveColumn:
|
|
9540
|
+
z && /* @__PURE__ */ s.jsx($t, { message: z.message }),
|
|
9541
|
+
Ce.current && /* @__PURE__ */ s.jsx(Na, { show: re, onCancel: fe, items: d, currentSelection: se, onSelectionChange: _, onSearchQueryChange: u, texts: g, itemsNameWidth: v, additionalColumns: m, displayIdAsName: N, isLoading: b, disabled: G, inputRef: Ce, archiveColumn: j, addNewOptionPath: E, refreshOptions: T, suggestedItems: C, suggestedItemsTitle: Z })
|
|
9530
9542
|
] }) });
|
|
9531
9543
|
}, qw = ({ InputContainer: e = Je, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept: d, withoutLabel: u, hint: f, className: g }) => {
|
|
9532
|
-
const { watch: v, setValue: b, register: h, formState: m } =
|
|
9544
|
+
const { watch: v, setValue: b, register: h, formState: m } = jt(), x = Et({ falseIfNotInit: !0 }), [D, N] = L(!1), [y, S] = L(void 0), j = P(() => {
|
|
9533
9545
|
b(r, "");
|
|
9534
9546
|
}, [b, r]), O = P(() => {
|
|
9535
9547
|
const k = r.split(".");
|
|
@@ -9548,22 +9560,22 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9548
9560
|
c && c.forEach((k) => b(k, null, { shouldDirty: !0, shouldValidate: D }));
|
|
9549
9561
|
}
|
|
9550
9562
|
}) }),
|
|
9551
|
-
l && v(r) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick:
|
|
9552
|
-
y && /* @__PURE__ */ s.jsx(
|
|
9563
|
+
l && v(r) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(St, {}) }) }),
|
|
9564
|
+
y && /* @__PURE__ */ s.jsx($t, { message: y.message })
|
|
9553
9565
|
] });
|
|
9554
9566
|
}, my = ({ children: e, onStorno: t, noSpacer: r }) => {
|
|
9555
|
-
const { formState: n } =
|
|
9567
|
+
const { formState: n } = jt(), a = Et({ falseIfNotInit: !0 }), [o, i] = L(!1);
|
|
9556
9568
|
return W(() => {
|
|
9557
9569
|
i(Object.keys(n.dirtyFields).length > 0);
|
|
9558
9570
|
}, [n]), o ? /* @__PURE__ */ s.jsx(cu, { onStorno: t, noSpacer: r, disabled: a, children: e }) : null;
|
|
9559
9571
|
}, Ui = ({ InputContainer: e = Je, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, withoutLabel: d, noSortOptions: u, suffixIdToName: f, onSelect: g, className: v, appendCurrentSelectionWithName: b, hint: h, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent: D, miniDetailPlacement: N, selectedItemNavigateTo: y }) => {
|
|
9560
|
-
const { texts: { customSelect: S } } = q(ce), { formState:
|
|
9572
|
+
const { texts: { customSelect: S } } = q(ce), { formState: j, setValue: O, watch: E, control: T } = jt(), k = Et({ falseIfNotInit: !0 }), [M, C] = L(void 0), [Z, Y] = L(!1), [B, R] = L(!1), [$, F] = L(""), z = E(r), K = V(() => t.find((_) => _.id === z) ?? null, [t, z]), re = P(() => {
|
|
9561
9573
|
const _ = r.split(".");
|
|
9562
|
-
let fe =
|
|
9574
|
+
let fe = j.errors;
|
|
9563
9575
|
_.forEach((Ce) => {
|
|
9564
9576
|
fe !== void 0 && (fe = fe[Ce]);
|
|
9565
9577
|
}), C(fe);
|
|
9566
|
-
}, [
|
|
9578
|
+
}, [j, r]), ae = P((_) => {
|
|
9567
9579
|
if ((_ == null ? void 0 : _.id) === z)
|
|
9568
9580
|
return;
|
|
9569
9581
|
if (g && g(_), o && o.forEach((Ce) => O(Ce, null, { shouldDirty: !0, shouldValidate: B })), _ === null) {
|
|
@@ -9586,8 +9598,8 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9586
9598
|
W(() => {
|
|
9587
9599
|
re();
|
|
9588
9600
|
}, [re]), W(() => {
|
|
9589
|
-
|
|
9590
|
-
}, [
|
|
9601
|
+
j.isSubmitted && R(!0);
|
|
9602
|
+
}, [j]);
|
|
9591
9603
|
const pe = P((_) => {
|
|
9592
9604
|
var fe;
|
|
9593
9605
|
return _ === null ? "" : !_.name || _.name.length === 0 ? ((fe = _.id) == null ? void 0 : fe.toString()) ?? "" : f ? `${_.name} (${_.id})` : _.name;
|
|
@@ -9604,20 +9616,20 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9604
9616
|
pe,
|
|
9605
9617
|
b,
|
|
9606
9618
|
z
|
|
9607
|
-
]), De = ee(null),
|
|
9608
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: n ?? "", required: l, disabled: U, hidden: c, withoutLabel: d, isInvalid:
|
|
9609
|
-
/* @__PURE__ */ s.jsx(wa, { currentSelection: K, selectedItemNavigateTo: y, children: /* @__PURE__ */ s.jsx(
|
|
9619
|
+
]), De = ee(null), Ie = M !== void 0;
|
|
9620
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: n ?? "", required: l, disabled: U, hidden: c, withoutLabel: d, isInvalid: Ie, inputContainerClassName: I({ "luminus-dropdown-select-open": Z }), hint: h, className: v, children: [
|
|
9621
|
+
/* @__PURE__ */ s.jsx(wa, { currentSelection: K, selectedItemNavigateTo: y, children: /* @__PURE__ */ s.jsx(Ia, { control: T, name: r, render: () => /* @__PURE__ */ s.jsx(Da, { value: z, MiniDetailComponent: D, miniDetailPlacement: N, children: /* @__PURE__ */ s.jsx(Oe.Select, { size: a, onMouseDown: (_) => {
|
|
9610
9622
|
_.currentTarget.focus(), _.preventDefault();
|
|
9611
9623
|
}, onClick: () => {
|
|
9612
9624
|
Y(!0);
|
|
9613
9625
|
}, ref: De, value: z ?? "", onChange: () => {
|
|
9614
|
-
}, isInvalid:
|
|
9615
|
-
M && /* @__PURE__ */ s.jsx(
|
|
9626
|
+
}, isInvalid: Ie, hidden: c, disabled: U, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (K == null ? void 0 : K.id) ?? "", children: pe(K) }) }) }) }) }),
|
|
9627
|
+
M && /* @__PURE__ */ s.jsx($t, { message: M.message }),
|
|
9616
9628
|
De.current && /* @__PURE__ */ s.jsx(Na, { show: Z, onCancel: () => Y(!1), items: se, currentSelection: K ?? null, onSelectionChange: oe, onSearchQueryChange: H, texts: S, disabled: U, inputRef: De, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: m, refreshOptions: x })
|
|
9617
9629
|
] }) });
|
|
9618
9630
|
}, Yw = ({ InputContainer: e = Je, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled: d, withoutLabel: u, step: f, stepperStep: g = 1, className: v, min: b, max: h, onChange: m, hint: x }) => {
|
|
9619
|
-
const { register: D, formState: N, setValue: y, watch: S } =
|
|
9620
|
-
y($,
|
|
9631
|
+
const { register: D, formState: N, setValue: y, watch: S } = jt(), j = Et({ falseIfNotInit: !0 }), [O, E] = L(void 0), [T, k] = L(!1), M = P(($, F, z) => {
|
|
9632
|
+
y($, fr(F, b, h), z);
|
|
9621
9633
|
}, [h, b, y]), C = P(() => {
|
|
9622
9634
|
const $ = l ?? null;
|
|
9623
9635
|
M(t, $ !== null ? Number($) : null, {
|
|
@@ -9630,7 +9642,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9630
9642
|
$.forEach((z) => {
|
|
9631
9643
|
F !== void 0 && (F = F[z]);
|
|
9632
9644
|
}), E(F);
|
|
9633
|
-
}, [N, t]), Y = V(() => d ||
|
|
9645
|
+
}, [N, t]), Y = V(() => d || j, [d, j]);
|
|
9634
9646
|
W(() => {
|
|
9635
9647
|
Z();
|
|
9636
9648
|
}, [Z]), W(() => {
|
|
@@ -9640,7 +9652,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9640
9652
|
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: c, disabled: Y, hidden: p, withoutLabel: u, isInvalid: B, hint: x, className: v, children: [
|
|
9641
9653
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
9642
9654
|
/* @__PURE__ */ s.jsx(Oe.Control, { type: "number", placeholder: n ?? r, size: a, ...D(t, {
|
|
9643
|
-
setValueAs: ($) => $ == null || $ === "" ? null :
|
|
9655
|
+
setValueAs: ($) => $ == null || $ === "" ? null : fr(Number($), b, h),
|
|
9644
9656
|
min: b,
|
|
9645
9657
|
max: h,
|
|
9646
9658
|
onChange: ($) => {
|
|
@@ -9656,10 +9668,10 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9656
9668
|
}, children: /* @__PURE__ */ s.jsx(ds, {}) }) })
|
|
9657
9669
|
] }),
|
|
9658
9670
|
i && S(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(St, {}) }) }),
|
|
9659
|
-
O && /* @__PURE__ */ s.jsx(
|
|
9671
|
+
O && /* @__PURE__ */ s.jsx($t, { message: O.message })
|
|
9660
9672
|
] });
|
|
9661
|
-
}, Kw = ({ InputContainer: e = Je, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: d, step: u, size: f, CustomOnChangeComponent: g, noSelectOnFocus: v, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: N, max: y, onChange: S, hint:
|
|
9662
|
-
const { formState: O, setValue: E, watch: T, control: k } =
|
|
9673
|
+
}, Kw = ({ InputContainer: e = Je, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: d, step: u, size: f, CustomOnChangeComponent: g, noSelectOnFocus: v, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: N, max: y, onChange: S, hint: j }) => {
|
|
9674
|
+
const { formState: O, setValue: E, watch: T, control: k } = jt(), M = Et({ falseIfNotInit: !0 }), [C, Z] = L(void 0), [Y, B] = L(!1), R = P(() => {
|
|
9663
9675
|
const re = i ?? null;
|
|
9664
9676
|
E(t, re !== null ? Number(re) : null, {
|
|
9665
9677
|
shouldDirty: !0,
|
|
@@ -9682,17 +9694,17 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9682
9694
|
y !== void 0 && z > y && E(t, y), N !== void 0 && z < N && E(t, N);
|
|
9683
9695
|
}, [t, z, y, N, E]);
|
|
9684
9696
|
const K = C !== void 0;
|
|
9685
|
-
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: F, hidden: c, withoutLabel: d, isInvalid: K, hint:
|
|
9697
|
+
return /* @__PURE__ */ s.jsxs(e, { label: r ?? "", required: l, disabled: F, hidden: c, withoutLabel: d, isInvalid: K, hint: j, className: b, children: [
|
|
9686
9698
|
/* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
9687
|
-
/* @__PURE__ */ s.jsx(
|
|
9699
|
+
/* @__PURE__ */ s.jsx(Ia, { control: k, name: t, render: ({ field: { ref: re, onChange: ae, name: oe, value: H } }) => /* @__PURE__ */ s.jsx(co, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: m, prefix: x, suffix: D, defaultValue: "", name: oe, value: H ?? "", placeholder: n ?? r, onFocus: (U) => {
|
|
9688
9700
|
!v && U.target.select();
|
|
9689
9701
|
}, onChange: (U) => {
|
|
9690
|
-
var De,
|
|
9691
|
-
const pe = parseFloat(((
|
|
9702
|
+
var De, Ie;
|
|
9703
|
+
const pe = parseFloat(((Ie = (De = U.target) == null ? void 0 : De.value) == null ? void 0 : Ie.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
|
|
9692
9704
|
a && a.forEach((_) => E(_, null, { shouldDirty: !0, shouldValidate: Y }));
|
|
9693
9705
|
const se = pe == null || Number.isNaN(pe) ? null : Number(pe);
|
|
9694
9706
|
ae(se), S && S(se);
|
|
9695
|
-
}, hidden: c, disabled: F, className:
|
|
9707
|
+
}, hidden: c, disabled: F, className: I("form-control text-end w-100", {
|
|
9696
9708
|
"is-invalid": K
|
|
9697
9709
|
}, {
|
|
9698
9710
|
[`form-control-${f}`]: f
|
|
@@ -9700,10 +9712,10 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9700
9712
|
g && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: g })
|
|
9701
9713
|
] }),
|
|
9702
9714
|
o && T(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(le, { color: "secondary", size: "sm", onClick: R, children: /* @__PURE__ */ s.jsx(St, {}) }) }),
|
|
9703
|
-
C && /* @__PURE__ */ s.jsx(
|
|
9715
|
+
C && /* @__PURE__ */ s.jsx($t, { message: C.message })
|
|
9704
9716
|
] });
|
|
9705
9717
|
}, hy = (e, t) => {
|
|
9706
|
-
const r = lt(), n = vn(), { startLoading: a, stopLoading: o } = q(
|
|
9718
|
+
const r = lt(), n = vn(), { startLoading: a, stopLoading: o } = q(er), { zDateRequired: i, zNumberRequired: l } = bd(), { addNotification: c } = Sa(), { refreshAvailableDelegations: p } = q(fs), { user: d } = q(Ct), { texts: { substitutions: { detail: u } } } = q(ce), f = En.object({
|
|
9707
9719
|
id: l(),
|
|
9708
9720
|
employeeId: l(),
|
|
9709
9721
|
substituteId: l(),
|
|
@@ -9760,7 +9772,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9760
9772
|
}, [n, o, t, a, g, i, e]), h = V(() => u !== (r == null ? void 0 : r.personalNumber) && !v(["ZASTUP_MODIFY"]), [v, u, r == null ? void 0 : r.personalNumber]), m = d.watch("roles"), x = V(() => f == null ? void 0 : f.filter((y) => y.canBeRepresented), [f]), D = V(() => (x == null ? void 0 : x.every((y) => m == null ? void 0 : m.includes(y.name))) ?? !1, [x, m]);
|
|
9761
9773
|
return /* @__PURE__ */ s.jsx(Ea, { title: /* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
9762
9774
|
/* @__PURE__ */ s.jsx(Q, { variant: "h3", children: i.title }),
|
|
9763
|
-
/* @__PURE__ */ s.jsx(
|
|
9775
|
+
/* @__PURE__ */ s.jsx(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { as: _r }), children: /* @__PURE__ */ s.jsx(tt, { onClick: () => b(), children: i.delete }) })
|
|
9764
9776
|
] }), children: /* @__PURE__ */ s.jsx(Md, { ...d, children: /* @__PURE__ */ s.jsx(_d, { disabled: h, children: /* @__PURE__ */ s.jsxs(Oe, { onSubmit: d.handleSubmit(p), className: "h-100", children: [
|
|
9765
9777
|
/* @__PURE__ */ s.jsxs(Ta, { className: "h-100", children: [
|
|
9766
9778
|
/* @__PURE__ */ s.jsx(rn, { sm: 12, md: 4, children: /* @__PURE__ */ s.jsxs(an, { title: i.title, children: [
|
|
@@ -9790,7 +9802,7 @@ const Dw = ({ InputContainer: e = Pr, value: t, onChange: r, debounceMs: n, labe
|
|
|
9790
9802
|
marginRight: "-12px",
|
|
9791
9803
|
padding: "0px 12px"
|
|
9792
9804
|
}, children: f == null ? void 0 : f.map((y) => /* @__PURE__ */ s.jsx(fa, { label: y.name, value: (m == null ? void 0 : m.find((S) => S === y.name)) !== void 0, disabled: h || !y.canBeRepresented, onChange: (S) => {
|
|
9793
|
-
d.setValue("roles", S ? [...m ?? [], y.name] : (m == null ? void 0 : m.filter((
|
|
9805
|
+
d.setValue("roles", S ? [...m ?? [], y.name] : (m == null ? void 0 : m.filter((j) => j !== y.name)) ?? [], { shouldDirty: !0 });
|
|
9794
9806
|
}, InputContainer: Je }, y.name)) })
|
|
9795
9807
|
] }) })
|
|
9796
9808
|
] }),
|
|
@@ -9854,7 +9866,7 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
9854
9866
|
}, [e, i, c, u]), W(() => {
|
|
9855
9867
|
var m, x, D;
|
|
9856
9868
|
if (c && i) {
|
|
9857
|
-
const { options: N, conditions: y, formats: S, slice:
|
|
9869
|
+
const { options: N, conditions: y, formats: S, slice: j, ...O } = (m = u.current) == null ? void 0 : m.flexmonster.getReport();
|
|
9858
9870
|
if (O === void 0 || typeof O == "string")
|
|
9859
9871
|
return;
|
|
9860
9872
|
const E = xy(t);
|
|
@@ -9881,9 +9893,9 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
9881
9893
|
const D = (T = x.escapedLabel) == null ? void 0 : T.toString();
|
|
9882
9894
|
if (D === void 0)
|
|
9883
9895
|
return;
|
|
9884
|
-
const N = Yi(o.url, D), y = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'", S = x.type === "header" ? "onclick='event.stopImmediatePropagation()'" : "",
|
|
9896
|
+
const N = Yi(o.url, D), y = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'", S = x.type === "header" ? "onclick='event.stopImmediatePropagation()'" : "", j = x.isDrillThrough || x.type === "header" ? `href='${N}' target='_blank'` : "";
|
|
9885
9897
|
m.style && (m.style["z-index"] = 1);
|
|
9886
|
-
const O = `<a ${
|
|
9898
|
+
const O = `<a ${j} ${y} ${S}>${x.escapedLabel}</a>`;
|
|
9887
9899
|
m.text = O;
|
|
9888
9900
|
}, [o]), h = P((m) => {
|
|
9889
9901
|
if (!o || !zi(m, o.idColumn) || qi(m))
|
|
@@ -9909,7 +9921,7 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
9909
9921
|
}
|
|
9910
9922
|
) });
|
|
9911
9923
|
}, Dy = (e, t, r, n) => {
|
|
9912
|
-
const { texts: { reports: a } } = q(ce), { prompt: o } = wd(), { confirm: i } = Tr(), l = lt(), { user: c } = q(Ct), { startLoading: p, stopLoading: d } = q(
|
|
9924
|
+
const { texts: { reports: a } } = q(ce), { prompt: o } = wd(), { confirm: i } = Tr(), l = lt(), { user: c } = q(Ct), { startLoading: p, stopLoading: d } = q(er), { addNotification: u } = Sa(), f = P(async (m) => {
|
|
9913
9925
|
p("report-versionSavingAs");
|
|
9914
9926
|
try {
|
|
9915
9927
|
const x = await l.post("/reports/version", m);
|
|
@@ -9993,7 +10005,7 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
9993
10005
|
]);
|
|
9994
10006
|
return { saveAs: v, save: g, archive: b, detach: h };
|
|
9995
10007
|
}, Ny = (e) => {
|
|
9996
|
-
const t = lt(), { startLoading: r, stopLoading: n } = q(
|
|
10008
|
+
const t = lt(), { startLoading: r, stopLoading: n } = q(er);
|
|
9997
10009
|
return { changeEmployeeRights: P(async (o, i) => {
|
|
9998
10010
|
let l = null;
|
|
9999
10011
|
r("reportSharing-addPerson");
|
|
@@ -10054,7 +10066,7 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10054
10066
|
}
|
|
10055
10067
|
d(b);
|
|
10056
10068
|
}, value: p }) }),
|
|
10057
|
-
/* @__PURE__ */ s.jsx(
|
|
10069
|
+
/* @__PURE__ */ s.jsx(hr, { onClick: g, disabled: p === null, children: l.add })
|
|
10058
10070
|
] })
|
|
10059
10071
|
] })
|
|
10060
10072
|
] });
|
|
@@ -10073,12 +10085,12 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10073
10085
|
replace: !0,
|
|
10074
10086
|
flushSync: !0
|
|
10075
10087
|
});
|
|
10076
|
-
}, [a, g, e, v]), [x, D] = L(!1), N = ee(null), { user: y } = q(Ct), { data: S, reloadData:
|
|
10088
|
+
}, [a, g, e, v]), [x, D] = L(!1), N = ee(null), { user: y } = q(Ct), { data: S, reloadData: j } = st(`/reports/${e}`), { mappings: O } = Cy(c, p), [E, T] = L({}), k = P((H) => {
|
|
10077
10089
|
const U = H.target.value, pe = U === "" ? null : Number(U);
|
|
10078
10090
|
m(pe);
|
|
10079
10091
|
}, [m]), M = P(async (H) => {
|
|
10080
|
-
await
|
|
10081
|
-
}, [
|
|
10092
|
+
await j(), m(H);
|
|
10093
|
+
}, [j, m]), { data: C, setData: Z } = st(`/reports/version/${h}`, { enabled: h !== null, nullStateBeforeLoad: !1, nullStateOnFail: !0 });
|
|
10082
10094
|
W(() => {
|
|
10083
10095
|
var U;
|
|
10084
10096
|
if (C === null) {
|
|
@@ -10098,10 +10110,10 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10098
10110
|
var H;
|
|
10099
10111
|
return (H = C == null ? void 0 : C.users) == null ? void 0 : H.some((U) => U.id === y.personalNumber && !U.isReportOwner);
|
|
10100
10112
|
}, [C == null ? void 0 : C.users, y.personalNumber]), ae = P(async () => {
|
|
10101
|
-
await f(u.confirmDelete(C == null ? void 0 : C.name)) && (await R(), m(null), await
|
|
10102
|
-
}, [R, f,
|
|
10103
|
-
await f(u.confirmDetach(C == null ? void 0 : C.name)) && (await $(), m(null), await
|
|
10104
|
-
}, [f, $,
|
|
10113
|
+
await f(u.confirmDelete(C == null ? void 0 : C.name)) && (await R(), m(null), await j());
|
|
10114
|
+
}, [R, f, j, C == null ? void 0 : C.name, u, m]), oe = P(async () => {
|
|
10115
|
+
await f(u.confirmDetach(C == null ? void 0 : C.name)) && (await $(), m(null), await j());
|
|
10116
|
+
}, [f, $, j, C == null ? void 0 : C.name, u, m]);
|
|
10105
10117
|
return W(() => {
|
|
10106
10118
|
var H, U;
|
|
10107
10119
|
h === null && m(((H = S == null ? void 0 : S.reportVersions.find((pe) => pe.isSystem === !0)) == null ? void 0 : H.reportVersionId) ?? ((U = S == null ? void 0 : S.reportVersions[0]) == null ? void 0 : U.reportVersionId) ?? null);
|
|
@@ -10117,14 +10129,14 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10117
10129
|
] }),
|
|
10118
10130
|
/* @__PURE__ */ s.jsx(ut, { icon: /* @__PURE__ */ s.jsx(Nd, {}), onClick: Y, disabled: h === null || (C == null ? void 0 : C.isSystem) || !K, children: u.save }),
|
|
10119
10131
|
/* @__PURE__ */ s.jsx(ut, { icon: /* @__PURE__ */ s.jsx(Sd, {}), onClick: B, className: "flex-shrink-0", children: u.saveAs }),
|
|
10120
|
-
/* @__PURE__ */ s.jsxs(
|
|
10132
|
+
/* @__PURE__ */ s.jsxs(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { as: _r }), children: [
|
|
10121
10133
|
/* @__PURE__ */ s.jsx(tt, { onClick: z, children: u.revertChanges }),
|
|
10122
10134
|
/* @__PURE__ */ s.jsx(tt, { onClick: () => D(!0), disabled: !K || (C == null ? void 0 : C.isSystem), children: u.share }),
|
|
10123
10135
|
K && !(C != null && C.isSystem) ? /* @__PURE__ */ s.jsx(tt, { color: "danger", onClick: ae, children: u.delete }) : null,
|
|
10124
10136
|
re && !(C != null && C.isSystem) ? /* @__PURE__ */ s.jsx(tt, { color: "danger", onClick: oe, children: u.detach }) : null
|
|
10125
10137
|
] })
|
|
10126
10138
|
] })
|
|
10127
|
-
] }), children: /* @__PURE__ */ s.jsx("div", { className:
|
|
10139
|
+
] }), children: /* @__PURE__ */ s.jsx("div", { className: I("h-100 w-100", F.data && F.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ s.jsx(wy, { dataSource: F, settings: E, pivotRef: N, enabled: F.data && F.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn: d }) }) }),
|
|
10128
10140
|
C !== null ? /* @__PURE__ */ s.jsx(
|
|
10129
10141
|
Sy,
|
|
10130
10142
|
{
|
|
@@ -10143,15 +10155,15 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10143
10155
|
borderRadius: "50%",
|
|
10144
10156
|
border: "2px solid transparent",
|
|
10145
10157
|
backgroundColor: "transparent"
|
|
10146
|
-
}, className:
|
|
10158
|
+
}, className: I(`border-${n}`, t.includes(n) && `bg-${n}`), onClick: () => {
|
|
10147
10159
|
t.includes(n) ? r(t.filter((a) => a !== n)) : r([...t, n]);
|
|
10148
|
-
} }, n)) }),
|
|
10149
|
-
const { ProjectIconComponent: o, localizationContext: i } = q(ce), { dateFnsLocale: l } = q(i), c = e.dateTime ?
|
|
10160
|
+
} }, n)) }), jy = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ s.jsx(nt, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: r }), Iy = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: n, getLinksTo: a }) => {
|
|
10161
|
+
const { ProjectIconComponent: o, localizationContext: i } = q(ce), { dateFnsLocale: l } = q(i), c = e.dateTime ? Ft(e.dateTime) : null, p = c ? Ud(new Date(Date.now()), c) : 0;
|
|
10150
10162
|
return /* @__PURE__ */ s.jsxs("div", { children: [
|
|
10151
10163
|
c && /* @__PURE__ */ s.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Ge, { text: Lt(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(Q, { variant: "caption", children: p > 2 ? Lt(c, "dd.MM.yyyy") : zd(c, new Date(Date.now()), {
|
|
10152
10164
|
locale: l.code
|
|
10153
10165
|
}) }) }) }) }),
|
|
10154
|
-
/* @__PURE__ */ s.jsx(
|
|
10166
|
+
/* @__PURE__ */ s.jsx(jy, { linksTo: a(e) ?? void 0, onClick: r, children: /* @__PURE__ */ s.jsx(Gb, { level: e.type, noIcon: !0, children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
|
|
10155
10167
|
n(e),
|
|
10156
10168
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
|
|
10157
10169
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
@@ -10184,7 +10196,7 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10184
10196
|
] }),
|
|
10185
10197
|
!t && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10186
10198
|
e.length === 0 && /* @__PURE__ */ s.jsx(pn, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
|
|
10187
|
-
/* @__PURE__ */ s.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: p.map((d) => /* @__PURE__ */ s.jsx(
|
|
10199
|
+
/* @__PURE__ */ s.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: p.map((d) => /* @__PURE__ */ s.jsx(Iy, { message: d, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }, d.id)) })
|
|
10188
10200
|
] })
|
|
10189
10201
|
] });
|
|
10190
10202
|
}, Jn = {
|
|
@@ -10199,7 +10211,7 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10199
10211
|
});
|
|
10200
10212
|
}, [r, l]), m = P(async (y) => l.delete(`${n}${y}`).then(() => !0).catch(() => !1), [n, l]), x = P((y) => {
|
|
10201
10213
|
m(y).then((S) => {
|
|
10202
|
-
S && p(c.filter((
|
|
10214
|
+
S && p(c.filter((j) => j.id !== y));
|
|
10203
10215
|
});
|
|
10204
10216
|
}, [m, c]);
|
|
10205
10217
|
W(() => {
|
|
@@ -10223,10 +10235,10 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10223
10235
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
10224
10236
|
fullHeightNoOverflow: _y,
|
|
10225
10237
|
disabled: Py
|
|
10226
|
-
}, eD = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: n, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ s.jsx("div", { className:
|
|
10238
|
+
}, eD = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: n, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ s.jsx("div", { className: I("luminus-tab-panel", Qn.tabPanel, { [Qn.fullHeightNoOverflow]: r }, { disabled: n }, { [Qn.disabled]: n }, a), children: o }), Ty = "_join-line_1q9e8_1", Ay = {
|
|
10227
10239
|
"join-line": "_join-line_1q9e8_1",
|
|
10228
10240
|
joinLine: Ty
|
|
10229
|
-
}, Ry = ({ activeTab: e, onSelect: t, children: r, vertical: n, verticalStepper: a }) => /* @__PURE__ */ s.jsx("div", { className:
|
|
10241
|
+
}, Ry = ({ activeTab: e, onSelect: t, children: r, vertical: n, verticalStepper: a }) => /* @__PURE__ */ s.jsx("div", { className: I("luminus-tabs d-flex mb-2", { "gap-1": !a }, { "gap-0": a }, {
|
|
10230
10242
|
"flex-column": n || a
|
|
10231
10243
|
}), children: r.map((o, i) => {
|
|
10232
10244
|
const l = o.type, c = o.props;
|
|
@@ -10234,21 +10246,21 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10234
10246
|
return null;
|
|
10235
10247
|
const p = c.eventKey, d = c.children, u = c.className, f = c.onClick;
|
|
10236
10248
|
return /* @__PURE__ */ s.jsxs(ie.Fragment, { children: [
|
|
10237
|
-
/* @__PURE__ */ s.jsx(l, { ...c, className:
|
|
10249
|
+
/* @__PURE__ */ s.jsx(l, { ...c, className: I({ active: e === p }, u), onClick: () => {
|
|
10238
10250
|
t(p), f && f(p);
|
|
10239
10251
|
}, vertical: n || a, children: d }),
|
|
10240
|
-
a && i < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className:
|
|
10252
|
+
a && i < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className: I("join-line", Ay.joinLine) })
|
|
10241
10253
|
] }, c.eventKey);
|
|
10242
10254
|
}) }), ky = "_tab_1tbi7_1", By = "_disabled_1tbi7_7", My = "_vertical_1tbi7_13", Zn = {
|
|
10243
10255
|
tab: ky,
|
|
10244
10256
|
disabled: By,
|
|
10245
10257
|
vertical: My
|
|
10246
|
-
}, Ly = ({ eventKey: e, className: t, onClick: r, disabled: n, vertical: a, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className:
|
|
10258
|
+
}, Ly = ({ eventKey: e, className: t, onClick: r, disabled: n, vertical: a, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: I("luminus-tab text-primary rounded", Zn.tab, t, {
|
|
10247
10259
|
disabled: n
|
|
10248
10260
|
}, { [Zn.disabled]: n }, { vertical: a }, { [Zn.vertical]: a }), onClick: () => r && !n && r(e), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(Q, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), tD = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
|
|
10249
10261
|
var i;
|
|
10250
10262
|
const { ProjectIconComponent: a } = q(ce), { isMobile: o } = fn();
|
|
10251
|
-
return o ? /* @__PURE__ */ s.jsx(
|
|
10263
|
+
return o ? /* @__PURE__ */ s.jsx(Qt, { toggle: /* @__PURE__ */ s.jsx(Zt, { as: _r, text: ((i = e.find((l) => l.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ s.jsx(a, { icon: "chevron-down" }) }), ...n, children: e.map((l) => /* @__PURE__ */ s.jsx(tt, { onClick: () => r(l.id), children: l.name }, l.id)) }) : /* @__PURE__ */ s.jsx(Ry, { activeTab: t, onSelect: (l) => r(l), ...n, children: e.map((l) => /* @__PURE__ */ s.jsx(Ly, { eventKey: l.id, children: l.name }, l.id)) });
|
|
10252
10264
|
}, Fy = "_selection_1dtmm_1", Vy = "_selectionBg_1dtmm_10", $y = "_selectionItemsContainer_1dtmm_18", Gy = "_selectionItems_1dtmm_18", Kr = {
|
|
10253
10265
|
selection: Fy,
|
|
10254
10266
|
selectionBg: Vy,
|
|
@@ -10310,39 +10322,39 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10310
10322
|
] }) }),
|
|
10311
10323
|
/* @__PURE__ */ s.jsx("tbody", { children: n == null ? void 0 : n.map((i) => /* @__PURE__ */ s.jsx(Uy, { shortcutLink: i, IconComponent: e, IconTypeArray: t, editShortcutLink: a, deleteShortcutLink: o }, i.id)) })
|
|
10312
10324
|
] }) : /* @__PURE__ */ s.jsx(pn, { variant: "info", children: r.shortcutLinks.addLinksToEditThemHereInfo }) });
|
|
10313
|
-
}, ga = 5, Hy = "_linkButton_pnlvi_1", zy = "_linkAddButton_pnlvi_31", qy = "_createLinkRow_pnlvi_39",
|
|
10325
|
+
}, ga = 5, Hy = "_linkButton_pnlvi_1", zy = "_linkAddButton_pnlvi_31", qy = "_createLinkRow_pnlvi_39", Yt = {
|
|
10314
10326
|
linkButton: Hy,
|
|
10315
10327
|
linkAddButton: zy,
|
|
10316
10328
|
createLinkRow: qy
|
|
10317
|
-
}, Yy = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ s.jsx(Ge, { text: e.name, placement: "bottom", children: /* @__PURE__ */ s.jsx(nt, { to: e.url, className:
|
|
10329
|
+
}, Yy = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ s.jsx(Ge, { text: e.name, placement: "bottom", children: /* @__PURE__ */ s.jsx(nt, { to: e.url, className: Yt.linkButton, children: /* @__PURE__ */ s.jsx(t, { icon: e.icon }) }) }), Ky = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconComponent: a, IconTypeArray: o }) => {
|
|
10318
10330
|
const i = Rd(), { texts: l } = q(ce), [c, p] = L("star-outline"), [d, u] = L(n ? document.title.replace(n, "") : document.title), f = P(async () => {
|
|
10319
10331
|
await r({ icon: c, name: d, url: i.pathname + i.search }), e();
|
|
10320
10332
|
}, [e, r, c, i.pathname, i.search, d]), g = V(() => i.pathname + i.search, [i.pathname, i.search]);
|
|
10321
10333
|
return /* @__PURE__ */ s.jsxs($e, { show: t, onHide: e, size: "sm", children: [
|
|
10322
10334
|
/* @__PURE__ */ s.jsx($e.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx($e.Title, { children: l.shortcutLinks.newShortcut }) }),
|
|
10323
10335
|
/* @__PURE__ */ s.jsxs($e.Body, { children: [
|
|
10324
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
10336
|
+
/* @__PURE__ */ s.jsxs("div", { className: Yt.createLinkRow, children: [
|
|
10325
10337
|
/* @__PURE__ */ s.jsx(Q, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.target }),
|
|
10326
10338
|
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold text-muted", children: g.length <= 23 ? g : /* @__PURE__ */ s.jsx(Ge, { placement: "bottom", text: g, children: /* @__PURE__ */ s.jsxs("span", { children: [
|
|
10327
10339
|
g.slice(0, 21),
|
|
10328
10340
|
"..."
|
|
10329
10341
|
] }) }) })
|
|
10330
10342
|
] }),
|
|
10331
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
10343
|
+
/* @__PURE__ */ s.jsxs("div", { className: Yt.createLinkRow, children: [
|
|
10332
10344
|
/* @__PURE__ */ s.jsx(Q, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
|
|
10333
10345
|
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(xt, { type: "text", maxLength: 25, value: d, onChange: u, className: "w-100", InputContainer: Je, withoutLabel: !0 }) })
|
|
10334
10346
|
] }),
|
|
10335
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
10347
|
+
/* @__PURE__ */ s.jsxs("div", { className: Yt.createLinkRow, children: [
|
|
10336
10348
|
/* @__PURE__ */ s.jsx(Q, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
|
|
10337
10349
|
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(cc, { icon: c, setIcon: p, IconComponent: a, IconTypeArray: o }) })
|
|
10338
10350
|
] })
|
|
10339
10351
|
] }),
|
|
10340
|
-
/* @__PURE__ */ s.jsx($e.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(
|
|
10352
|
+
/* @__PURE__ */ s.jsx($e.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(hr, { onClick: f, children: l.shortcutLinks.addShortcut }) })
|
|
10341
10353
|
] });
|
|
10342
10354
|
}, Xy = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: n }) => {
|
|
10343
10355
|
const { ProjectIconComponent: a, texts: o } = q(ce), [i, l] = L(!1), [c] = ya(i, 100);
|
|
10344
10356
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10345
|
-
/* @__PURE__ */ s.jsx(Ge, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ s.jsx("button", { type: "button", className:
|
|
10357
|
+
/* @__PURE__ */ s.jsx(Ge, { text: o.shortcutLinks.addShortcut, placement: "bottom", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: I(Yt.linkButton, Yt.linkAddButton), onClick: () => l(!0), children: /* @__PURE__ */ s.jsx(a, { icon: "add" }) }) }),
|
|
10346
10358
|
(i || c) && /* @__PURE__ */ s.jsx(Ky, { IconComponent: e, IconTypeArray: t, closeModal: () => l(!1), createLink: n, isOpen: i, pageTitlePrefix: r })
|
|
10347
10359
|
] });
|
|
10348
10360
|
}, nD = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r }) => {
|
|
@@ -10352,7 +10364,7 @@ e.label === "", zi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, qi =
|
|
|
10352
10364
|
o && /* @__PURE__ */ s.jsx(Xy, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: a })
|
|
10353
10365
|
] }) });
|
|
10354
10366
|
}, Jy = (e) => {
|
|
10355
|
-
const t = lt(), { startLoading: r, stopLoading: n } = q(
|
|
10367
|
+
const t = lt(), { startLoading: r, stopLoading: n } = q(er), a = P(async (l) => {
|
|
10356
10368
|
r("submit-createShortcutLink");
|
|
10357
10369
|
try {
|
|
10358
10370
|
await t.post(`/dynamicForms/insert?referenceId=${e}`, l);
|
|
@@ -10424,11 +10436,11 @@ export {
|
|
|
10424
10436
|
ut as ContextButton,
|
|
10425
10437
|
Pw as DisabledRowLabelLink,
|
|
10426
10438
|
sD as Documents,
|
|
10427
|
-
|
|
10439
|
+
Qt as Dropdown,
|
|
10428
10440
|
fd as DropdownDivider,
|
|
10429
10441
|
tt as DropdownItem,
|
|
10430
10442
|
xw as DropdownPicker,
|
|
10431
|
-
|
|
10443
|
+
Zt as DropdownToggle,
|
|
10432
10444
|
Ow as DynamicForm,
|
|
10433
10445
|
Rw as EmployeeSmallPhoto,
|
|
10434
10446
|
xu as ErrorBoundary,
|
|
@@ -10458,9 +10470,9 @@ export {
|
|
|
10458
10470
|
cc as IconPicker,
|
|
10459
10471
|
Oi as ImgApi,
|
|
10460
10472
|
Zl as ImgDirect,
|
|
10461
|
-
|
|
10473
|
+
$t as InvalidFeedback,
|
|
10462
10474
|
Tw as LanguageSwitch,
|
|
10463
|
-
|
|
10475
|
+
Iw as LineChart,
|
|
10464
10476
|
ho as Loading,
|
|
10465
10477
|
Gd as LoadingBlock,
|
|
10466
10478
|
Zw as MessageBoard,
|
|
@@ -10476,8 +10488,8 @@ export {
|
|
|
10476
10488
|
Ww as PermissionSubstituteTable,
|
|
10477
10489
|
kb as PhotoLibrary,
|
|
10478
10490
|
Rb as PhotoLightbox,
|
|
10479
|
-
|
|
10480
|
-
|
|
10491
|
+
jw as PieChart,
|
|
10492
|
+
hr as PrimaryButton,
|
|
10481
10493
|
Nw as RadioInput,
|
|
10482
10494
|
Jw as ReportPage,
|
|
10483
10495
|
Lw as ReportsIndexPage,
|