react-luminus-components 1.4.19 → 1.4.20
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/.vite/manifest.json +14 -14
- package/dist/{FormDisabledProvider-Ivy5y4wP.js → FormDisabledProvider--NF9w6Lv.js} +1 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useScrollSave/useScrollSave.d.ts +8 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +111 -80
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +121 -118
- package/dist/models/index.d.ts +1 -0
- package/dist/models/types/UseScrollSaveOptions.d.ts +20 -0
- package/dist/{nivo-bar.es-Cr3RGn0C.js → nivo-bar.es-CMdSkNQH.js} +2 -2
- package/dist/{useGetApiData-vqVw7uCt.js → useGetApiData-A6rMrI30.js} +1 -1
- package/dist/utils.es.js +2 -2
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as s, c as I, t as Ae, s as go, g as vo, m as gc, d as Qr, a as vc, b as mc, e as ht, f as ha, h as hc, i as bc, k as xc, l as yc, n as wc, o as Dc, p as Nc, T as ts, q as rs, r as mo, E as Sc, u as ns, v as ba, w as as, x as Cc, y as _e, z as xa, F as os, A as Ec, B as jc, C as Ic, D as Oc, M as _c, G as Pc, H as Ac, I as Tc, J as Rc, K as kc, L as ra, N as Bc, O as Mc, P as ce, Q as xr, R as Lc, S as Fc, U as Vc, V as Lt, W as oe, X as ya, Y as Oe, Z as wa, _ as $c, $ as pt, a0 as Gc, a1 as Ve, a2 as
|
|
2
|
-
import { bw as mD, bx as hD, bu as bD, bv as xD } from "./nivo-bar.es-
|
|
1
|
+
import { j as s, c as I, t as Ae, s as go, g as vo, m as gc, d as Qr, a as vc, b as mc, e as ht, f as ha, h as hc, i as bc, k as xc, l as yc, n as wc, o as Dc, p as Nc, T as ts, q as rs, r as mo, E as Sc, u as ns, v as ba, w as as, x as Cc, y as _e, z as xa, F as os, A as Ec, B as jc, C as Ic, D as Oc, M as _c, G as Pc, H as Ac, I as Tc, J as Rc, K as kc, L as ra, N as Bc, O as Mc, P as ce, Q as xr, R as Lc, S as Fc, U as Vc, V as Lt, W as oe, X as ya, Y as Oe, Z as wa, _ as $c, $ as pt, a0 as Gc, a1 as Ve, a2 as X, a3 as Zt, a4 as st, a5 as Da, a6 as Na, a7 as is, a8 as Sa, a9 as Et, aa as ss, ab as ls, ac as ze, ad as ft, ae as $t, af as tn, ag as Wc, ah as yt, ai as Uc, aj as Hc, ak as zc, al as Ar, am as ct, an as jt, ao as er, ap as Ca, aq as Ea, ar as gn, as as ja, at as qc, au as Yc, av as Kc, aw as tr, ax as rr, ay as Tr, az as rt, aA as cs, aB as Ft, aC as Ge, aD as vn, aE as mn, aF as ds, aG as tt, aH as Ia, aI as Xc, aJ as Qc, aK as Jc, aL as us, aM as Zc, aN as ed, aO as td, aP as rd, aQ as it, aR as nd, aS as ad, aT as rn, aU as te, aV as ps, aW as od, aX as id, aY as sd, aZ as fs, a_ as gs, a$ as ld, b0 as cd, b1 as dd, b2 as ud, b3 as pd, b4 as fd, b5 as gd, b6 as vd, b7 as wt, b8 as md, b9 as hd, ba as bd, bb as xd, bc as yd, bd as nn, be as wd, bf as jn, bg as Dd, bh as Ut, bi as Nd, bj as Sd, bk as vs, bl as an, bm as Cd, bn as ms, bo as $r, bp as Ed, bq as hs, br as In, bs as jd, bt as Id } from "./nivo-bar.es-CMdSkNQH.js";
|
|
2
|
+
import { bw as mD, bx as hD, bu as bD, bv as xD } from "./nivo-bar.es-CMdSkNQH.js";
|
|
3
3
|
import * as Ne from "react";
|
|
4
4
|
import se, { useCallback as P, useMemo as M, useState as F, useRef as ee, useEffect as W, useContext as z, useId as Od, Component as _d, isValidElement as ho, Suspense as Pd, useLayoutEffect as Oa, useReducer as Ad, Fragment as Td } from "react";
|
|
5
|
-
import { c as dt, L as bo, F as Rd } from "./FormDisabledProvider
|
|
5
|
+
import { c as dt, L as bo, F as Rd } from "./FormDisabledProvider--NF9w6Lv.js";
|
|
6
6
|
import { InteractionType as kd } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as Bd } from "@azure/msal-react";
|
|
8
8
|
import { useNavigate as hn, Link as Je, useSearchParams as Md, useParams as bs, generatePath as yr, useLocation as Ld, Navigate as Gr } from "react-router-dom";
|
|
@@ -10,7 +10,7 @@ import wr, { unstable_batchedUpdates as Fd } from "react-dom";
|
|
|
10
10
|
import { useFormContext as gt, Controller as _a, useForm as Vd, FormProvider as $d } from "react-hook-form";
|
|
11
11
|
import { Pivot as Gd } from "react-flexmonster";
|
|
12
12
|
import { u as Wd, a as Ud, b as xs, c as Hd } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
|
|
13
|
-
import { u as lt } from "./useGetApiData-
|
|
13
|
+
import { u as lt } from "./useGetApiData-A6rMrI30.js";
|
|
14
14
|
import { l as vr, g as xo } from "./apiPathUtils-DiqvB8mF.js";
|
|
15
15
|
const bw = ({ fileLoader: e, fileName: t, children: r }) => {
|
|
16
16
|
const n = P(async () => {
|
|
@@ -966,7 +966,10 @@ const Du = (e) => (r) => {
|
|
|
966
966
|
}, [t]);
|
|
967
967
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
968
968
|
/* @__PURE__ */ s.jsx(oe, { onClick: o, disabled: e === null, children: /* @__PURE__ */ s.jsx(r, { icon: "qr-code" }) }),
|
|
969
|
-
/* @__PURE__ */ s.jsx(Ve, { show: n, onHide: i, size: "sm", children: /* @__PURE__ */ s.
|
|
969
|
+
/* @__PURE__ */ s.jsx(Ve, { show: n, onHide: i, size: "sm", children: /* @__PURE__ */ s.jsxs(Ve.Body, { className: "d-flex flex-column align-items-center", children: [
|
|
970
|
+
/* @__PURE__ */ s.jsx(Ou, { value: `${l}:${e}` }),
|
|
971
|
+
/* @__PURE__ */ s.jsx(X, { variant: "subtitle", children: e })
|
|
972
|
+
] }) })
|
|
970
973
|
] });
|
|
971
974
|
}, qt = ({ contactType: e, value: t, className: r, children: n, showIconWithChildren: a }) => {
|
|
972
975
|
const { ProjectIconComponent: o } = z(ce), i = M(() => {
|
|
@@ -1004,7 +1007,7 @@ const Du = (e) => (r) => {
|
|
|
1004
1007
|
n && n(((g = f.target) == null ? void 0 : g.checked) ?? !1);
|
|
1005
1008
|
}, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
|
|
1006
1009
|
}, yw = ({ value: e, label: t, InputContainer: r = Zt, className: n, withoutLabel: a, hidden: o, disabled: i, contactType: l, ...c }) => o ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: I("d-flex align-items-center", n), children: [
|
|
1007
|
-
!a && /* @__PURE__ */ s.jsx(
|
|
1010
|
+
!a && /* @__PURE__ */ s.jsx(X, { variant: "form-label", className: "text-muted w-50", children: t }),
|
|
1008
1011
|
/* @__PURE__ */ s.jsxs("div", { className: "w-50 d-flex gap-1 align-items-center", children: [
|
|
1009
1012
|
i ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1010
1013
|
/* @__PURE__ */ s.jsx(qt, { contactType: l, value: e, className: "d-flex flex-grow-1", children: /* @__PURE__ */ s.jsx(st, { type: "text", value: e, disabled: !0, InputContainer: r, size: "sm", withoutLabel: !0, className: "pe-none flex-grow-1", ...c }) }),
|
|
@@ -1026,7 +1029,7 @@ const Du = (e) => (r) => {
|
|
|
1026
1029
|
}, [i, b]);
|
|
1027
1030
|
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: [
|
|
1028
1031
|
/* @__PURE__ */ s.jsxs(Da, { currentSelection: i, selectedItemNavigateTo: r, children: [
|
|
1029
|
-
b && (i == null ? void 0 : i.name) && /* @__PURE__ */ s.jsx(
|
|
1032
|
+
b && (i == null ? void 0 : i.name) && /* @__PURE__ */ s.jsx(X, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: i.name }),
|
|
1030
1033
|
/* @__PURE__ */ s.jsx(Na, { value: (i == null ? void 0 : i.id) ?? null, MiniDetailComponent: j, miniDetailPlacement: O, children: /* @__PURE__ */ s.jsxs(
|
|
1031
1034
|
Oe.Select,
|
|
1032
1035
|
{
|
|
@@ -1757,7 +1760,7 @@ const Sw = ({ InputContainer: e = Zt, value: t, onChange: r, debounceMs: n, labe
|
|
|
1757
1760
|
}, Iw = ({ label: e, InputContainer: t = ze, className: r, withoutLabel: n, hidden: a, disabled: o, contactType: i, formField: l, ...c }) => {
|
|
1758
1761
|
const { watch: p } = gt(), d = p(l), u = ft({ falseIfNotInit: !0 }), f = M(() => o || u, [o, u]);
|
|
1759
1762
|
return a ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { className: I("d-flex align-items-center", r), children: [
|
|
1760
|
-
!n && /* @__PURE__ */ s.jsx(
|
|
1763
|
+
!n && /* @__PURE__ */ s.jsx(X, { variant: "form-label", className: "text-muted w-50", children: e }),
|
|
1761
1764
|
/* @__PURE__ */ s.jsxs("div", { className: "w-50 d-flex gap-1 align-items-center", children: [
|
|
1762
1765
|
f ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1763
1766
|
/* @__PURE__ */ s.jsx(qt, { contactType: i, value: d, className: "d-flex flex-grow-1", children: /* @__PURE__ */ s.jsx(tn, { type: "text", formField: l, disabled: !0, InputContainer: t, size: "sm", withoutLabel: !0, className: "pe-none flex-grow-1", ...c }) }),
|
|
@@ -1802,7 +1805,7 @@ const Sw = ({ InputContainer: e = Zt, value: t, onChange: r, debounceMs: n, labe
|
|
|
1802
1805
|
Y.isSubmitted && H(!0);
|
|
1803
1806
|
}, [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: [
|
|
1804
1807
|
/* @__PURE__ */ s.jsxs(Da, { currentSelection: le, selectedItemNavigateTo: f, children: [
|
|
1805
|
-
N && (le == null ? void 0 : le.name) && /* @__PURE__ */ s.jsx(
|
|
1808
|
+
N && (le == null ? void 0 : le.name) && /* @__PURE__ */ s.jsx(X, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: le.name }),
|
|
1806
1809
|
/* @__PURE__ */ s.jsx(_a, { control: $, name: t, render: () => /* @__PURE__ */ s.jsx(Na, { value: U, MiniDetailComponent: k, miniDetailPlacement: L, children: /* @__PURE__ */ s.jsx(Oe.Select, { size: n, onMouseDown: (T) => {
|
|
1807
1810
|
T.currentTarget.focus(), T.preventDefault();
|
|
1808
1811
|
}, onClick: () => {
|
|
@@ -2243,7 +2246,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2243
2246
|
return /* @__PURE__ */ s.jsxs(Ve, { show: e, onHide: t, children: [
|
|
2244
2247
|
/* @__PURE__ */ s.jsx(Ve.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Ve.Title, { children: l.reportSharing }) }),
|
|
2245
2248
|
/* @__PURE__ */ s.jsxs(Ve.Body, { children: [
|
|
2246
|
-
/* @__PURE__ */ s.jsx(
|
|
2249
|
+
/* @__PURE__ */ s.jsx(X, { variant: "h6", children: l.sharedWith }),
|
|
2247
2250
|
/* @__PURE__ */ s.jsxs(Ea, { variant: "flush", children: [
|
|
2248
2251
|
r && r.length === 0 ? /* @__PURE__ */ s.jsx("div", { className: "px-2 text-muted", children: l.noone.toLowerCase() }) : null,
|
|
2249
2252
|
r == null ? void 0 : r.map((b) => /* @__PURE__ */ s.jsxs(gn, { className: "d-flex justify-content-between align-items-center gap-3 border-bottom px-2 py-1", children: [
|
|
@@ -2256,7 +2259,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2256
2259
|
/* @__PURE__ */ s.jsx(oe, { color: "danger", onClick: () => v(b.id), children: /* @__PURE__ */ s.jsx(i, { icon: "delete" }) })
|
|
2257
2260
|
] }, b.id))
|
|
2258
2261
|
] }),
|
|
2259
|
-
/* @__PURE__ */ s.jsx(
|
|
2262
|
+
/* @__PURE__ */ s.jsx(X, { variant: "h6", className: "mt-2 mb-2", children: l.addSharing }),
|
|
2260
2263
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-2 align-items-center", children: [
|
|
2261
2264
|
/* @__PURE__ */ s.jsx("div", { className: "flex-grow-1", children: /* @__PURE__ */ s.jsx(a, { label: l.shareWith, onSelect: (b) => {
|
|
2262
2265
|
if (b === null || typeof b.id != "number") {
|
|
@@ -2318,7 +2321,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2318
2321
|
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);
|
|
2319
2322
|
}, [S == null ? void 0 : S.reportVersions, h, m]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2320
2323
|
/* @__PURE__ */ s.jsx(ja, { variant: "fullScreen", title: /* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
|
|
2321
|
-
/* @__PURE__ */ s.jsx(
|
|
2324
|
+
/* @__PURE__ */ s.jsx(X, { variant: "h3", children: t }),
|
|
2322
2325
|
n,
|
|
2323
2326
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
|
|
2324
2327
|
/* @__PURE__ */ s.jsxs(qc, { size: "sm", value: h ?? void 0, onChange: k, children: [
|
|
@@ -2359,19 +2362,19 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2359
2362
|
} }, n)) }), cp = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ s.jsx(Je, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: r }), dp = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: n, getLinksTo: a }) => {
|
|
2360
2363
|
const { ProjectIconComponent: o, localizationContext: i } = z(ce), { dateFnsLocale: l } = z(i), c = e.dateTime ? Ft(e.dateTime) : null, p = c ? Yd(new Date(Date.now()), c) : 0;
|
|
2361
2364
|
return /* @__PURE__ */ s.jsxs("div", { children: [
|
|
2362
|
-
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(
|
|
2365
|
+
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(X, { variant: "caption", children: p > 2 ? Lt(c, "dd.MM.yyyy") : Xd(c, new Date(Date.now()), {
|
|
2363
2366
|
locale: l.code
|
|
2364
2367
|
}) }) }) }) }),
|
|
2365
2368
|
/* @__PURE__ */ s.jsx(cp, { linksTo: a(e) ?? void 0, onClick: r, children: /* @__PURE__ */ s.jsx(ey, { level: e.type, noIcon: !0, children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
|
|
2366
2369
|
n(e),
|
|
2367
2370
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
|
|
2368
2371
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
2369
|
-
/* @__PURE__ */ s.jsx(
|
|
2372
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body2", className: "fw-bold", children: e.subject }),
|
|
2370
2373
|
/* @__PURE__ */ s.jsx(oe, { size: "sm", onClick: (d) => {
|
|
2371
2374
|
d.preventDefault(), d.stopPropagation(), t(e.id);
|
|
2372
2375
|
}, children: /* @__PURE__ */ s.jsx(o, { icon: "delete" }) })
|
|
2373
2376
|
] }),
|
|
2374
|
-
/* @__PURE__ */ s.jsx(
|
|
2377
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body2", children: e.text })
|
|
2375
2378
|
] })
|
|
2376
2379
|
] }) }) })
|
|
2377
2380
|
] });
|
|
@@ -2456,7 +2459,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2456
2459
|
vertical: xp
|
|
2457
2460
|
}, yp = ({ 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", kn.tab, t, {
|
|
2458
2461
|
disabled: n
|
|
2459
|
-
}, { [kn.disabled]: n }, { vertical: a }, { [kn.vertical]: a }), onClick: () => r && !n && r(e), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(
|
|
2462
|
+
}, { [kn.disabled]: n }, { vertical: a }, { [kn.vertical]: a }), onClick: () => r && !n && r(e), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(X, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), Lw = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
|
|
2460
2463
|
var i;
|
|
2461
2464
|
const { ProjectIconComponent: a } = z(ce), { isMobile: o } = mn();
|
|
2462
2465
|
return o ? /* @__PURE__ */ s.jsx(tr, { toggle: /* @__PURE__ */ s.jsx(rr, { as: Tr, 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(rt, { onClick: () => r(l.id), children: l.name }, l.id)) }) : /* @__PURE__ */ s.jsx(mp, { activeTab: t, onSelect: (l) => r(l), ...n, children: e.map((l) => /* @__PURE__ */ s.jsx(yp, { eventKey: l.id, children: l.name }, l.id)) });
|
|
@@ -2533,18 +2536,18 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2533
2536
|
/* @__PURE__ */ s.jsx(Ve.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Ve.Title, { children: l.shortcutLinks.newShortcut }) }),
|
|
2534
2537
|
/* @__PURE__ */ s.jsxs(Ve.Body, { children: [
|
|
2535
2538
|
/* @__PURE__ */ s.jsxs("div", { className: Kt.createLinkRow, children: [
|
|
2536
|
-
/* @__PURE__ */ s.jsx(
|
|
2539
|
+
/* @__PURE__ */ s.jsx(X, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.target }),
|
|
2537
2540
|
/* @__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: [
|
|
2538
2541
|
g.slice(0, 21),
|
|
2539
2542
|
"..."
|
|
2540
2543
|
] }) }) })
|
|
2541
2544
|
] }),
|
|
2542
2545
|
/* @__PURE__ */ s.jsxs("div", { className: Kt.createLinkRow, children: [
|
|
2543
|
-
/* @__PURE__ */ s.jsx(
|
|
2546
|
+
/* @__PURE__ */ s.jsx(X, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
|
|
2544
2547
|
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(st, { type: "text", maxLength: 25, value: d, onChange: u, className: "w-100", InputContainer: ze, withoutLabel: !0 }) })
|
|
2545
2548
|
] }),
|
|
2546
2549
|
/* @__PURE__ */ s.jsxs("div", { className: Kt.createLinkRow, children: [
|
|
2547
|
-
/* @__PURE__ */ s.jsx(
|
|
2550
|
+
/* @__PURE__ */ s.jsx(X, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
|
|
2548
2551
|
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(Ys, { icon: c, setIcon: p, IconComponent: a, IconTypeArray: o }) })
|
|
2549
2552
|
] })
|
|
2550
2553
|
] }),
|
|
@@ -2643,14 +2646,14 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2643
2646
|
backgroundImage: u.img ? `url(${u.img})` : void 0
|
|
2644
2647
|
} }),
|
|
2645
2648
|
/* @__PURE__ */ s.jsx("div", { className: Ye.widgetTitleSpacer }),
|
|
2646
|
-
/* @__PURE__ */ s.jsx("div", { className: I(Ye.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(
|
|
2649
|
+
/* @__PURE__ */ s.jsx("div", { className: I(Ye.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(X, { variant: "body", className: I(Ye.title, "text-white text-truncate"), children: u.name }) })
|
|
2647
2650
|
] }, u.id) })) }) }) }, d.id)),
|
|
2648
2651
|
c.some((d) => d.group === void 0) && /* @__PURE__ */ s.jsx(on, { 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", Ye.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", Ye.widget), onClick: () => a(d.id), children: [
|
|
2649
2652
|
/* @__PURE__ */ s.jsx("div", { className: Ye.widgetImg, style: {
|
|
2650
2653
|
backgroundImage: d.img ? `url(${d.img})` : void 0
|
|
2651
2654
|
} }),
|
|
2652
2655
|
/* @__PURE__ */ s.jsx("div", { className: Ye.widgetTitleSpacer }),
|
|
2653
|
-
/* @__PURE__ */ s.jsx("div", { className: I(Ye.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(
|
|
2656
|
+
/* @__PURE__ */ s.jsx("div", { className: I(Ye.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(X, { variant: "body", className: I(Ye.title, "text-white text-truncate"), children: d.name }) })
|
|
2654
2657
|
] }, d.id) })) }) }) })
|
|
2655
2658
|
] }) })
|
|
2656
2659
|
] });
|
|
@@ -2761,7 +2764,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2761
2764
|
i(a);
|
|
2762
2765
|
}, [a]), /* @__PURE__ */ s.jsxs("div", { className: r ?? "", children: [
|
|
2763
2766
|
/* @__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: [
|
|
2764
|
-
/* @__PURE__ */ s.jsx(
|
|
2767
|
+
/* @__PURE__ */ s.jsx(X, { variant: "h6", children: e }),
|
|
2765
2768
|
/* @__PURE__ */ s.jsx(us, { className: I(qo.collapseIcon, {
|
|
2766
2769
|
[qo.collapsed]: l
|
|
2767
2770
|
}) })
|
|
@@ -2801,8 +2804,8 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2801
2804
|
var d;
|
|
2802
2805
|
return /* @__PURE__ */ s.jsxs("div", { className: I(_t.group), children: [
|
|
2803
2806
|
/* @__PURE__ */ s.jsxs(Je, { to: `/search?query=${t}&type=${p.key.category}`, className: I("group-header", _t.header), onClick: r, children: [
|
|
2804
|
-
/* @__PURE__ */ s.jsx(
|
|
2805
|
-
/* @__PURE__ */ s.jsxs(
|
|
2807
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body", className: "text-primary", children: p.key.categoryName }),
|
|
2808
|
+
/* @__PURE__ */ s.jsxs(X, { variant: "caption", children: [
|
|
2806
2809
|
p.items.length,
|
|
2807
2810
|
" ",
|
|
2808
2811
|
i.amountFrom,
|
|
@@ -2817,8 +2820,8 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2817
2820
|
className: I("search-item d-flex gap-3 align-items-center justify-content-between", _t.item),
|
|
2818
2821
|
onClick: r,
|
|
2819
2822
|
children: [
|
|
2820
|
-
/* @__PURE__ */ s.jsx(
|
|
2821
|
-
/* @__PURE__ */ s.jsx(
|
|
2823
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body2", className: "text-nowrap text-truncate", children: u.name }),
|
|
2824
|
+
/* @__PURE__ */ s.jsx(X, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(td, {}) })
|
|
2822
2825
|
]
|
|
2823
2826
|
},
|
|
2824
2827
|
f
|
|
@@ -2886,7 +2889,7 @@ e.label === "", Fo = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Vo =
|
|
|
2886
2889
|
l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : d(!p));
|
|
2887
2890
|
}, children: [
|
|
2888
2891
|
/* @__PURE__ */ s.jsxs("div", { className: I("header-content", Pt.headerContent), children: [
|
|
2889
|
-
/* @__PURE__ */ s.jsx(
|
|
2892
|
+
/* @__PURE__ */ s.jsx(X, { variant: "h6", className: I("text-primary", Pt.title), children: e }),
|
|
2890
2893
|
t ?? null
|
|
2891
2894
|
] }),
|
|
2892
2895
|
l.collapsible && /* @__PURE__ */ s.jsx(us, { className: I(Pt.collapseIcon, {
|
|
@@ -3857,7 +3860,7 @@ function Tg(e, t) {
|
|
|
3857
3860
|
return e;
|
|
3858
3861
|
}, t);
|
|
3859
3862
|
}
|
|
3860
|
-
var ge = ll,
|
|
3863
|
+
var ge = ll, Q = Tg, Rg = process.env.NODE_ENV === "production", $n = "Invariant failed";
|
|
3861
3864
|
function ui(e, t) {
|
|
3862
3865
|
if (Rg)
|
|
3863
3866
|
throw new Error($n);
|
|
@@ -6913,10 +6916,10 @@ var Jm = function(e, t) {
|
|
|
6913
6916
|
function yh(e, t) {
|
|
6914
6917
|
var r = ge(function() {
|
|
6915
6918
|
return xh(e);
|
|
6916
|
-
}, [e]), n = ee(null), a = ee(null), o =
|
|
6919
|
+
}, [e]), n = ee(null), a = ee(null), o = Q(Te(function(u) {
|
|
6917
6920
|
var f = a.current;
|
|
6918
6921
|
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.textContent = u;
|
|
6919
|
-
}), []), i =
|
|
6922
|
+
}), []), i = Q(function(u) {
|
|
6920
6923
|
var f = n.current;
|
|
6921
6924
|
f || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot set dynamic style element if it is not set") : w()), f.textContent = u;
|
|
6922
6925
|
}, []);
|
|
@@ -6931,15 +6934,15 @@ function yh(e, t) {
|
|
|
6931
6934
|
g(n), g(a);
|
|
6932
6935
|
};
|
|
6933
6936
|
}, [t, i, o, r.always, r.resting, e]);
|
|
6934
|
-
var l =
|
|
6937
|
+
var l = Q(function() {
|
|
6935
6938
|
return o(r.dragging);
|
|
6936
|
-
}, [o, r.dragging]), c =
|
|
6939
|
+
}, [o, r.dragging]), c = Q(function(u) {
|
|
6937
6940
|
if (u === "DROP") {
|
|
6938
6941
|
o(r.dropAnimating);
|
|
6939
6942
|
return;
|
|
6940
6943
|
}
|
|
6941
6944
|
o(r.userCancel);
|
|
6942
|
-
}, [o, r.dropAnimating, r.userCancel]), p =
|
|
6945
|
+
}, [o, r.dropAnimating, r.userCancel]), p = Q(function() {
|
|
6943
6946
|
a.current && o(r.resting);
|
|
6944
6947
|
}, [o, r.resting]), d = ge(function() {
|
|
6945
6948
|
return {
|
|
@@ -6966,7 +6969,7 @@ function Yl(e, t) {
|
|
|
6966
6969
|
return a ? Lr(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);
|
|
6967
6970
|
}
|
|
6968
6971
|
function wh(e) {
|
|
6969
|
-
var t = ee({}), r = ee(null), n = ee(null), a = ee(!1), o =
|
|
6972
|
+
var t = ee({}), r = ee(null), n = ee(null), a = ee(!1), o = Q(function(f, g) {
|
|
6970
6973
|
var v = {
|
|
6971
6974
|
id: f,
|
|
6972
6975
|
focus: g
|
|
@@ -6975,18 +6978,18 @@ function wh(e) {
|
|
|
6975
6978
|
var h = t.current, m = h[f];
|
|
6976
6979
|
m !== v && delete h[f];
|
|
6977
6980
|
};
|
|
6978
|
-
}, []), i =
|
|
6981
|
+
}, []), i = Q(function(f) {
|
|
6979
6982
|
var g = Yl(e, f);
|
|
6980
6983
|
g && g !== document.activeElement && g.focus();
|
|
6981
|
-
}, [e]), l =
|
|
6984
|
+
}, [e]), l = Q(function(f, g) {
|
|
6982
6985
|
r.current === f && (r.current = g);
|
|
6983
|
-
}, []), c =
|
|
6986
|
+
}, []), c = Q(function() {
|
|
6984
6987
|
n.current || a.current && (n.current = requestAnimationFrame(function() {
|
|
6985
6988
|
n.current = null;
|
|
6986
6989
|
var f = r.current;
|
|
6987
6990
|
f && i(f);
|
|
6988
6991
|
}));
|
|
6989
|
-
}, [i]), p =
|
|
6992
|
+
}, [i]), p = Q(function(f) {
|
|
6990
6993
|
r.current = null;
|
|
6991
6994
|
var g = document.activeElement;
|
|
6992
6995
|
g && g.getAttribute(Jt.draggableId) === f && (r.current = f);
|
|
@@ -7133,7 +7136,7 @@ function Eh(e) {
|
|
|
7133
7136
|
});
|
|
7134
7137
|
};
|
|
7135
7138
|
}, [t]);
|
|
7136
|
-
var n =
|
|
7139
|
+
var n = Q(function(a) {
|
|
7137
7140
|
var o = r.current;
|
|
7138
7141
|
if (o) {
|
|
7139
7142
|
o.textContent = a;
|
|
@@ -7426,21 +7429,21 @@ function Qh(e) {
|
|
|
7426
7429
|
}
|
|
7427
7430
|
}
|
|
7428
7431
|
};
|
|
7429
|
-
}, [e]), o =
|
|
7432
|
+
}, [e]), o = Q(function() {
|
|
7430
7433
|
var u = {
|
|
7431
7434
|
passive: !1,
|
|
7432
7435
|
capture: !0
|
|
7433
7436
|
};
|
|
7434
7437
|
r.current = Xe(window, [a, n], u);
|
|
7435
|
-
}, [a, n]), i =
|
|
7438
|
+
}, [a, n]), i = Q(function() {
|
|
7436
7439
|
var d = t.current;
|
|
7437
7440
|
d.type !== "IDLE" && (t.current = Mi, r.current(), o());
|
|
7438
|
-
}, [o]), l =
|
|
7441
|
+
}, [o]), l = Q(function() {
|
|
7439
7442
|
var d = t.current;
|
|
7440
7443
|
i(), d.type === "DRAGGING" && d.actions.cancel({
|
|
7441
7444
|
shouldBlockNextClick: !0
|
|
7442
7445
|
}), d.type === "PENDING" && d.actions.abort();
|
|
7443
|
-
}, [i]), c =
|
|
7446
|
+
}, [i]), c = Q(function() {
|
|
7444
7447
|
var u = {
|
|
7445
7448
|
capture: !0,
|
|
7446
7449
|
passive: !1
|
|
@@ -7455,7 +7458,7 @@ function Qh(e) {
|
|
|
7455
7458
|
}
|
|
7456
7459
|
});
|
|
7457
7460
|
r.current = Xe(window, f, u);
|
|
7458
|
-
}, [l, i]), p =
|
|
7461
|
+
}, [l, i]), p = Q(function(u, f) {
|
|
7459
7462
|
t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected to move from IDLE to PENDING drag") : w()), t.current = {
|
|
7460
7463
|
type: "PENDING",
|
|
7461
7464
|
point: f,
|
|
@@ -7565,7 +7568,7 @@ function tb(e) {
|
|
|
7565
7568
|
});
|
|
7566
7569
|
}
|
|
7567
7570
|
};
|
|
7568
|
-
}, [e]), n =
|
|
7571
|
+
}, [e]), n = Q(function() {
|
|
7569
7572
|
var o = {
|
|
7570
7573
|
passive: !1,
|
|
7571
7574
|
capture: !0
|
|
@@ -7681,9 +7684,9 @@ function ob(e) {
|
|
|
7681
7684
|
}];
|
|
7682
7685
|
}
|
|
7683
7686
|
function ib(e) {
|
|
7684
|
-
var t = ee(Kn), r = ee(Dt), n =
|
|
7687
|
+
var t = ee(Kn), r = ee(Dt), n = Q(function() {
|
|
7685
7688
|
return t.current;
|
|
7686
|
-
}, []), a =
|
|
7689
|
+
}, []), a = Q(function(g) {
|
|
7687
7690
|
t.current = g;
|
|
7688
7691
|
}, []), o = ge(function() {
|
|
7689
7692
|
return {
|
|
@@ -7706,21 +7709,21 @@ function ib(e) {
|
|
|
7706
7709
|
}
|
|
7707
7710
|
}
|
|
7708
7711
|
};
|
|
7709
|
-
}, [e]), i =
|
|
7712
|
+
}, [e]), i = Q(function() {
|
|
7710
7713
|
var g = {
|
|
7711
7714
|
capture: !0,
|
|
7712
7715
|
passive: !1
|
|
7713
7716
|
};
|
|
7714
7717
|
r.current = Xe(window, [o], g);
|
|
7715
|
-
}, [o]), l =
|
|
7718
|
+
}, [o]), l = Q(function() {
|
|
7716
7719
|
var f = t.current;
|
|
7717
7720
|
f.type !== "IDLE" && (f.type === "PENDING" && clearTimeout(f.longPressTimerId), a(Kn), r.current(), i());
|
|
7718
|
-
}, [i, a]), c =
|
|
7721
|
+
}, [i, a]), c = Q(function() {
|
|
7719
7722
|
var f = t.current;
|
|
7720
7723
|
l(), f.type === "DRAGGING" && f.actions.cancel({
|
|
7721
7724
|
shouldBlockNextClick: !0
|
|
7722
7725
|
}), f.type === "PENDING" && f.actions.abort();
|
|
7723
|
-
}, [l]), p =
|
|
7726
|
+
}, [l]), p = Q(function() {
|
|
7724
7727
|
var g = {
|
|
7725
7728
|
capture: !0,
|
|
7726
7729
|
passive: !1
|
|
@@ -7732,7 +7735,7 @@ function ib(e) {
|
|
|
7732
7735
|
r.current = function() {
|
|
7733
7736
|
b(), h();
|
|
7734
7737
|
};
|
|
7735
|
-
}, [c, n, l]), d =
|
|
7738
|
+
}, [c, n, l]), d = Q(function() {
|
|
7736
7739
|
var g = n();
|
|
7737
7740
|
g.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot start dragging from phase " + g.type) : w());
|
|
7738
7741
|
var v = g.actions.fluidLift(g.point);
|
|
@@ -7741,7 +7744,7 @@ function ib(e) {
|
|
|
7741
7744
|
actions: v,
|
|
7742
7745
|
hasMoved: !1
|
|
7743
7746
|
});
|
|
7744
|
-
}, [n, a]), u =
|
|
7747
|
+
}, [n, a]), u = Q(function(g, v) {
|
|
7745
7748
|
n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? w(!1, "Expected to move from IDLE to PENDING drag") : w());
|
|
7746
7749
|
var b = setTimeout(d, rb);
|
|
7747
7750
|
a({
|
|
@@ -8024,7 +8027,7 @@ var yb = [Qh, tb, ib];
|
|
|
8024
8027
|
function wb(e) {
|
|
8025
8028
|
var t = e.contextId, r = e.store, n = e.registry, a = e.customSensors, o = e.enableDefaultSensors, i = [].concat(o ? yb : [], a || []), l = F(function() {
|
|
8026
8029
|
return Mh();
|
|
8027
|
-
})[0], c =
|
|
8030
|
+
})[0], c = Q(function(x, D) {
|
|
8028
8031
|
x.isDragging && !D.isDragging && l.tryAbandon();
|
|
8029
8032
|
}, [l]);
|
|
8030
8033
|
He(function() {
|
|
@@ -8036,14 +8039,14 @@ function wb(e) {
|
|
|
8036
8039
|
}, [l, r, c]), He(function() {
|
|
8037
8040
|
return l.tryAbandon;
|
|
8038
8041
|
}, [l.tryAbandon]);
|
|
8039
|
-
var p =
|
|
8042
|
+
var p = Q(function(m) {
|
|
8040
8043
|
return ec({
|
|
8041
8044
|
lockAPI: l,
|
|
8042
8045
|
registry: n,
|
|
8043
8046
|
store: r,
|
|
8044
8047
|
draggableId: m
|
|
8045
8048
|
});
|
|
8046
|
-
}, [l, n, r]), d =
|
|
8049
|
+
}, [l, n, r]), d = Q(function(m, x, D) {
|
|
8047
8050
|
return xb({
|
|
8048
8051
|
lockAPI: l,
|
|
8049
8052
|
registry: n,
|
|
@@ -8053,14 +8056,14 @@ function wb(e) {
|
|
|
8053
8056
|
forceSensorStop: x,
|
|
8054
8057
|
sourceEvent: D && D.sourceEvent ? D.sourceEvent : null
|
|
8055
8058
|
});
|
|
8056
|
-
}, [t, l, n, r]), u =
|
|
8059
|
+
}, [t, l, n, r]), u = Q(function(m) {
|
|
8057
8060
|
return mb(t, m);
|
|
8058
|
-
}, [t]), f =
|
|
8061
|
+
}, [t]), f = Q(function(m) {
|
|
8059
8062
|
var x = n.draggable.findById(m);
|
|
8060
8063
|
return x ? x.options : null;
|
|
8061
|
-
}, [n.draggable]), g =
|
|
8064
|
+
}, [n.draggable]), g = Q(function() {
|
|
8062
8065
|
l.isClaimed() && (l.tryAbandon(), r.getState().phase !== "IDLE" && r.dispatch(Ja()));
|
|
8063
|
-
}, [l, r]), v =
|
|
8066
|
+
}, [l, r]), v = Q(l.isClaimed, [l]), b = ge(function() {
|
|
8064
8067
|
return {
|
|
8065
8068
|
canGetLock: p,
|
|
8066
8069
|
tryGetLock: d,
|
|
@@ -8089,12 +8092,12 @@ function gr(e) {
|
|
|
8089
8092
|
function Nb(e) {
|
|
8090
8093
|
var t = e.contextId, r = e.setCallbacks, n = e.sensors, a = e.nonce, o = e.dragHandleUsageInstructions, i = ee(null);
|
|
8091
8094
|
Bh();
|
|
8092
|
-
var l = co(e), c =
|
|
8095
|
+
var l = co(e), c = Q(function() {
|
|
8093
8096
|
return Db(l.current);
|
|
8094
8097
|
}, [l]), p = Eh(t), d = _h({
|
|
8095
8098
|
contextId: t,
|
|
8096
8099
|
text: o
|
|
8097
|
-
}), u = yh(t, a), f =
|
|
8100
|
+
}), u = yh(t, a), f = Q(function(E) {
|
|
8098
8101
|
gr(i).dispatch(E);
|
|
8099
8102
|
}, []), g = ge(function() {
|
|
8100
8103
|
return Zo({
|
|
@@ -8124,10 +8127,10 @@ function Nb(e) {
|
|
|
8124
8127
|
});
|
|
8125
8128
|
}, [p, h, b, m, c, u]);
|
|
8126
8129
|
process.env.NODE_ENV !== "production" && i.current && i.current !== x && process.env.NODE_ENV !== "production" && we("unexpected store change"), i.current = x;
|
|
8127
|
-
var D =
|
|
8130
|
+
var D = Q(function() {
|
|
8128
8131
|
var E = gr(i), A = E.getState();
|
|
8129
8132
|
A.phase !== "IDLE" && E.dispatch(Ja());
|
|
8130
|
-
}, []), N =
|
|
8133
|
+
}, []), N = Q(function() {
|
|
8131
8134
|
var E = gr(i).getState();
|
|
8132
8135
|
return E.isDragging || E.phase === "DROP_ANIMATING";
|
|
8133
8136
|
}, []), y = ge(function() {
|
|
@@ -8137,9 +8140,9 @@ function Nb(e) {
|
|
|
8137
8140
|
};
|
|
8138
8141
|
}, [N, D]);
|
|
8139
8142
|
r(y);
|
|
8140
|
-
var S =
|
|
8143
|
+
var S = Q(function(E) {
|
|
8141
8144
|
return Wl(gr(i).getState(), E);
|
|
8142
|
-
}, []), j =
|
|
8145
|
+
}, []), j = Q(function() {
|
|
8143
8146
|
return Bt(gr(i).getState());
|
|
8144
8147
|
}, []), O = ge(function() {
|
|
8145
8148
|
return {
|
|
@@ -8368,15 +8371,15 @@ function Vb(e) {
|
|
|
8368
8371
|
};
|
|
8369
8372
|
o.updateDroppableScroll(l.id, S);
|
|
8370
8373
|
});
|
|
8371
|
-
}, [l.id, o]), d =
|
|
8374
|
+
}, [l.id, o]), d = Q(function() {
|
|
8372
8375
|
var N = t.current;
|
|
8373
8376
|
return !N || !N.env.closestScrollable ? Re : va(N.env.closestScrollable);
|
|
8374
|
-
}, []), u =
|
|
8377
|
+
}, []), u = Q(function() {
|
|
8375
8378
|
var N = d();
|
|
8376
8379
|
p(N.x, N.y);
|
|
8377
8380
|
}, [d, p]), f = ge(function() {
|
|
8378
8381
|
return Cr(u);
|
|
8379
|
-
}, [u]), g =
|
|
8382
|
+
}, [u]), g = Q(function() {
|
|
8380
8383
|
var N = t.current, y = Yr(N);
|
|
8381
8384
|
N && y || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find scroll options while scrolling") : w());
|
|
8382
8385
|
var S = N.scrollOptions;
|
|
@@ -8385,7 +8388,7 @@ function Vb(e) {
|
|
|
8385
8388
|
return;
|
|
8386
8389
|
}
|
|
8387
8390
|
f();
|
|
8388
|
-
}, [f, u]), v =
|
|
8391
|
+
}, [f, u]), v = Q(function(N, y) {
|
|
8389
8392
|
t.current && (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect a droppable while a drag is occurring") : w());
|
|
8390
8393
|
var S = i.current, j = S.getDroppableRef();
|
|
8391
8394
|
j || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot collect without a droppable ref") : w());
|
|
@@ -8407,15 +8410,15 @@ function Vb(e) {
|
|
|
8407
8410
|
shouldClipSubject: !S.ignoreContainerClipping
|
|
8408
8411
|
}), k = O.closestScrollable;
|
|
8409
8412
|
return k && (k.setAttribute(Ti.contextId, r.contextId), k.addEventListener("scroll", g, Fi(E.scrollOptions)), process.env.NODE_ENV !== "production" && Ab(k)), A;
|
|
8410
|
-
}, [r.contextId, l, g, i]), b =
|
|
8413
|
+
}, [r.contextId, l, g, i]), b = Q(function() {
|
|
8411
8414
|
var N = t.current, y = Yr(N);
|
|
8412
8415
|
return N && y || (process.env.NODE_ENV !== "production" ? w(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : w()), va(y);
|
|
8413
|
-
}, []), h =
|
|
8416
|
+
}, []), h = Q(function() {
|
|
8414
8417
|
var N = t.current;
|
|
8415
8418
|
N || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot stop drag when no active drag") : w());
|
|
8416
8419
|
var y = Yr(N);
|
|
8417
8420
|
t.current = null, y && (f.cancel(), y.removeAttribute(Ti.contextId), y.removeEventListener("scroll", g, Fi(N.scrollOptions)));
|
|
8418
|
-
}, [g, f]), m =
|
|
8421
|
+
}, [g, f]), m = Q(function(N) {
|
|
8419
8422
|
var y = t.current;
|
|
8420
8423
|
y || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot scroll when there is no drag") : w());
|
|
8421
8424
|
var S = Yr(y);
|
|
@@ -8479,7 +8482,7 @@ var Vi = {
|
|
|
8479
8482
|
};
|
|
8480
8483
|
};
|
|
8481
8484
|
function Wb(e) {
|
|
8482
|
-
var t = ee(null), r =
|
|
8485
|
+
var t = ee(null), r = Q(function() {
|
|
8483
8486
|
t.current && (clearTimeout(t.current), t.current = null);
|
|
8484
8487
|
}, []), n = e.animate, a = e.onTransitionEnd, o = e.onClose, i = e.contextId, l = F(e.animate === "open"), c = l[0], p = l[1];
|
|
8485
8488
|
W(function() {
|
|
@@ -8487,7 +8490,7 @@ function Wb(e) {
|
|
|
8487
8490
|
t.current = null, p(!1);
|
|
8488
8491
|
}), r) : Xn;
|
|
8489
8492
|
}, [n, c, r]);
|
|
8490
|
-
var d =
|
|
8493
|
+
var d = Q(function(f) {
|
|
8491
8494
|
f.propertyName === "height" && (a(), n === "close" && o());
|
|
8492
8495
|
}, [n, o, a]), u = Gb({
|
|
8493
8496
|
isAnimatingOpenOnMount: c,
|
|
@@ -8656,7 +8659,7 @@ function nx(e) {
|
|
|
8656
8659
|
shouldRespectForcePress: i,
|
|
8657
8660
|
isEnabled: l
|
|
8658
8661
|
};
|
|
8659
|
-
}, [o, l, i]), p =
|
|
8662
|
+
}, [o, l, i]), p = Q(function(g) {
|
|
8660
8663
|
var v = a();
|
|
8661
8664
|
return v || (process.env.NODE_ENV !== "production" ? w(!1, "Cannot get dimension when no ref is set") : w()), rx(r, v, g);
|
|
8662
8665
|
}, [r, a]), d = ge(function() {
|
|
@@ -8702,9 +8705,9 @@ function ix(e) {
|
|
|
8702
8705
|
e.preventDefault();
|
|
8703
8706
|
}
|
|
8704
8707
|
function sx(e) {
|
|
8705
|
-
var t = ee(null), r =
|
|
8708
|
+
var t = ee(null), r = Q(function(E) {
|
|
8706
8709
|
t.current = E;
|
|
8707
|
-
}, []), n =
|
|
8710
|
+
}, []), n = Q(function() {
|
|
8708
8711
|
return t.current;
|
|
8709
8712
|
}, []), a = fn(Sn), o = a.contextId, i = a.dragHandleUsageInstructionsId, l = a.registry, c = fn(fo), p = c.type, d = c.droppableId, u = ge(function() {
|
|
8710
8713
|
return {
|
|
@@ -8737,7 +8740,7 @@ function sx(e) {
|
|
|
8737
8740
|
draggable: !1,
|
|
8738
8741
|
onDragStart: ix
|
|
8739
8742
|
} : null;
|
|
8740
|
-
}, [o, i, g, v]), S =
|
|
8743
|
+
}, [o, i, g, v]), S = Q(function(E) {
|
|
8741
8744
|
x.type === "DRAGGING" && x.dropping && E.propertyName === "transform" && D();
|
|
8742
8745
|
}, [D, x]), j = ge(function() {
|
|
8743
8746
|
var E = tx(x), A = x.type === "DRAGGING" && x.dropping ? S : null, k = {
|
|
@@ -8932,13 +8935,13 @@ function mx(e) {
|
|
|
8932
8935
|
function hx(e) {
|
|
8933
8936
|
var t = z(Sn);
|
|
8934
8937
|
t || (process.env.NODE_ENV !== "production" ? w(!1, "Could not find app context") : w());
|
|
8935
|
-
var r = t.contextId, n = t.isMovementAllowed, a = ee(null), o = ee(null), i = e.children, l = e.droppableId, c = e.type, p = e.mode, d = e.direction, u = e.ignoreContainerClipping, f = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot, b = e.useClone, h = e.updateViewportMaxScroll, m = e.getContainerForClone, x =
|
|
8938
|
+
var r = t.contextId, n = t.isMovementAllowed, a = ee(null), o = ee(null), i = e.children, l = e.droppableId, c = e.type, p = e.mode, d = e.direction, u = e.ignoreContainerClipping, f = e.isDropDisabled, g = e.isCombineEnabled, v = e.snapshot, b = e.useClone, h = e.updateViewportMaxScroll, m = e.getContainerForClone, x = Q(function() {
|
|
8936
8939
|
return a.current;
|
|
8937
|
-
}, []), D =
|
|
8940
|
+
}, []), D = Q(function(L) {
|
|
8938
8941
|
a.current = L;
|
|
8939
|
-
}, []), N =
|
|
8942
|
+
}, []), N = Q(function() {
|
|
8940
8943
|
return o.current;
|
|
8941
|
-
}, []), y =
|
|
8944
|
+
}, []), y = Q(function(L) {
|
|
8942
8945
|
o.current = L;
|
|
8943
8946
|
}, []);
|
|
8944
8947
|
Yb({
|
|
@@ -8946,7 +8949,7 @@ function hx(e) {
|
|
|
8946
8949
|
getDroppableRef: x,
|
|
8947
8950
|
getPlaceholderRef: N
|
|
8948
8951
|
});
|
|
8949
|
-
var S =
|
|
8952
|
+
var S = Q(function() {
|
|
8950
8953
|
n() && h({
|
|
8951
8954
|
maxScroll: Gl()
|
|
8952
8955
|
});
|
|
@@ -9328,7 +9331,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9328
9331
|
] }),
|
|
9329
9332
|
/* @__PURE__ */ s.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ s.jsx(Et, { style: { fontSize: "32px" } }) })
|
|
9330
9333
|
] }),
|
|
9331
|
-
v.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(
|
|
9334
|
+
v.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(X, { variant: "body", children: o ?? "No photos available" }) }),
|
|
9332
9335
|
x && /* @__PURE__ */ s.jsxs("div", { className: Me.photoContainer, children: [
|
|
9333
9336
|
/* @__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(ya, { style: { fontSize: "40px" } }) }),
|
|
9334
9337
|
/* @__PURE__ */ s.jsx(u, { src: x.lgSrc, alt: x.alt, className: I("rounded", Me.photo), baseUrl: c, customToken: p, placeholder: d, renderAsDivBg: !0 }),
|
|
@@ -9409,7 +9412,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9409
9412
|
}, [a, e]);
|
|
9410
9413
|
return /* @__PURE__ */ s.jsxs("div", { className: I("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !n }, ea.item, ea[`level-${e}`]), children: [
|
|
9411
9414
|
!n && /* @__PURE__ */ s.jsx("div", { className: I(ea.typeIcon), children: r ?? o() }),
|
|
9412
|
-
/* @__PURE__ */ s.jsx(
|
|
9415
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body2", className: "w-100", children: t })
|
|
9413
9416
|
] });
|
|
9414
9417
|
}, zw = ({ version: e }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
9415
9418
|
position: "fixed",
|
|
@@ -9419,7 +9422,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9419
9422
|
backgroundColor: "rgba(255, 255, 255, 0.5)",
|
|
9420
9423
|
padding: "4px",
|
|
9421
9424
|
pointerEvents: "all"
|
|
9422
|
-
}, children: /* @__PURE__ */ s.jsxs(
|
|
9425
|
+
}, children: /* @__PURE__ */ s.jsxs(X, { variant: "caption", className: "w-100 text-end", children: [
|
|
9423
9426
|
"verze ",
|
|
9424
9427
|
e
|
|
9425
9428
|
] }) }), ty = "_submit-container_j8pmc_1", ry = "_spacer_j8pmc_14", Wi = {
|
|
@@ -9444,16 +9447,16 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9444
9447
|
"step-icon": "_step-icon_g1754_14",
|
|
9445
9448
|
stepIcon: dy
|
|
9446
9449
|
}, uy = ({ steps: e, dontSort: t }) => /* @__PURE__ */ s.jsx("div", { className: Tt.timeline, children: e.sort((r, n) => t ? 0 : qd(r.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((r, n) => /* @__PURE__ */ s.jsxs("div", { className: I("row g-0 gx-3", Tt.stepContainer), children: [
|
|
9447
|
-
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: r.date && /* @__PURE__ */ s.jsxs(
|
|
9450
|
+
/* @__PURE__ */ s.jsx("div", { className: "col-3", children: r.date && /* @__PURE__ */ s.jsxs(X, { variant: "caption", className: I("h-100 d-flex flex-column align-items-end justify-content-center gap-0", Tt.stepDate), children: [
|
|
9448
9451
|
/* @__PURE__ */ s.jsx("div", { children: Lt(r.date, "dd.MM.yyyy") }),
|
|
9449
9452
|
r.dateFormat === "date" ? null : /* @__PURE__ */ s.jsx("div", { children: Lt(r.date, "HH:mm") })
|
|
9450
9453
|
] }) }),
|
|
9451
9454
|
/* @__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", Tt.stepContent), children: [
|
|
9452
9455
|
/* @__PURE__ */ s.jsxs("div", { className: I("d-flex gap-2 align-items-center", Tt.contentHeader), children: [
|
|
9453
9456
|
r.person && /* @__PURE__ */ s.jsx(cs, { name: r.person.name ?? "", size: 22, fontSize: 12 }),
|
|
9454
|
-
typeof r.title == "string" ? /* @__PURE__ */ s.jsx(
|
|
9457
|
+
typeof r.title == "string" ? /* @__PURE__ */ s.jsx(X, { variant: "body", className: "fw-bold", children: r.title }) : r.title
|
|
9455
9458
|
] }),
|
|
9456
|
-
r.text && /* @__PURE__ */ s.jsx(
|
|
9459
|
+
r.text && /* @__PURE__ */ s.jsx(X, { variant: "body2", className: Tt.contentText, children: r.text }),
|
|
9457
9460
|
/* @__PURE__ */ s.jsx("div", { className: I("text-primary", Tt.stepIcon), children: r.icon ?? /* @__PURE__ */ s.jsx(vd, {}) })
|
|
9458
9461
|
] }) })
|
|
9459
9462
|
] }, n)) }), py = (e, t, r, n = !0) => {
|
|
@@ -9639,13 +9642,13 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9639
9642
|
return { transform: `translate(${p}, ${d})` };
|
|
9640
9643
|
}, [e.point.x, e.point.y]);
|
|
9641
9644
|
return /* @__PURE__ */ s.jsxs("div", { className: "bg-white shadow-sm px-2 py-1 rounded", style: i, children: [
|
|
9642
|
-
/* @__PURE__ */ s.jsx(
|
|
9645
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body", children: t(e.point.serieId) }),
|
|
9643
9646
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex", children: [
|
|
9644
|
-
/* @__PURE__ */ s.jsxs(
|
|
9647
|
+
/* @__PURE__ */ s.jsxs(X, { variant: "body", className: "pe-1", children: [
|
|
9645
9648
|
(l = e.point.data.x) == null ? void 0 : l.toString(),
|
|
9646
9649
|
":"
|
|
9647
9650
|
] }),
|
|
9648
|
-
/* @__PURE__ */ s.jsx(
|
|
9651
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body", className: "fw-bold", children: (c = r == null ? void 0 : r[o]) == null ? void 0 : c[a] })
|
|
9649
9652
|
] })
|
|
9650
9653
|
] });
|
|
9651
9654
|
}, Qw = ({ data: e, xKey: t, yKeys: r, translateKey: n, usePercentageValue: a = !1, variant: o = "default", legendPosition: i, noSort: l = !1 }) => {
|
|
@@ -9737,11 +9740,11 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9737
9740
|
return n.toLowerCase() === "others" ? "Obecné" : ((o = (a = t.columns) == null ? void 0 : a.find((i) => i.field === n)) == null ? void 0 : o.caption) ?? n;
|
|
9738
9741
|
};
|
|
9739
9742
|
return /* @__PURE__ */ s.jsx("div", { className: "alert alert-danger w-100 m-0 p-2", children: /* @__PURE__ */ s.jsx("table", { children: /* @__PURE__ */ s.jsx("tbody", { children: e.map((n) => /* @__PURE__ */ s.jsxs("tr", { children: [
|
|
9740
|
-
/* @__PURE__ */ s.jsx("td", { className: "fw-bold pe-2", children: /* @__PURE__ */ s.jsxs(
|
|
9743
|
+
/* @__PURE__ */ s.jsx("td", { className: "fw-bold pe-2", children: /* @__PURE__ */ s.jsxs(X, { variant: "body", children: [
|
|
9741
9744
|
r(n.name),
|
|
9742
9745
|
":"
|
|
9743
9746
|
] }) }),
|
|
9744
|
-
/* @__PURE__ */ s.jsx("td", { className: "", children: /* @__PURE__ */ s.jsx(
|
|
9747
|
+
/* @__PURE__ */ s.jsx("td", { className: "", children: /* @__PURE__ */ s.jsx(X, { variant: "body", children: n.errors }) })
|
|
9745
9748
|
] }, n.name)) }) }) });
|
|
9746
9749
|
}, pc = (e) => {
|
|
9747
9750
|
const t = {};
|
|
@@ -9821,7 +9824,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
9821
9824
|
var m, x;
|
|
9822
9825
|
return ((m = h.id) == null ? void 0 : m.toString()) === ((x = v == null ? void 0 : v.id) == null ? void 0 : x.toString());
|
|
9823
9826
|
})) && l && (console.log("adding to values for select"), l({ id: ((b = v.id) == null ? void 0 : b.toString()) ?? "", name: v.name }));
|
|
9824
|
-
}, disabled: a ? !0 : n ? !o : !1 }) : /* @__PURE__ */ s.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ s.jsxs(
|
|
9827
|
+
}, disabled: a ? !0 : n ? !o : !1 }) : /* @__PURE__ */ s.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ s.jsxs(X, { variant: "body", children: [
|
|
9825
9828
|
"Neznámý typ ",
|
|
9826
9829
|
e
|
|
9827
9830
|
] }) });
|
|
@@ -10121,14 +10124,14 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10121
10124
|
!U || !t || (t > K && r(K), t < 1 && r(1));
|
|
10122
10125
|
}, [t, U, K, r]), /* @__PURE__ */ s.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
|
|
10123
10126
|
/* @__PURE__ */ s.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-center", children: [
|
|
10124
|
-
/* @__PURE__ */ s.jsx(
|
|
10127
|
+
/* @__PURE__ */ s.jsx(X, { variant: "h3", children: (y == null ? void 0 : y.name) ?? "" }),
|
|
10125
10128
|
/* @__PURE__ */ s.jsxs(tr, { toggle: /* @__PURE__ */ s.jsx(rr, { as: Tr }), children: [
|
|
10126
10129
|
/* @__PURE__ */ s.jsx(rt, { onClick: () => Z(!C), children: C ? h.hideArchived : h.showArchived }),
|
|
10127
10130
|
/* @__PURE__ */ s.jsx(Dd, {}),
|
|
10128
10131
|
/* @__PURE__ */ s.jsx(rt, { onClick: fe, icon: /* @__PURE__ */ s.jsx(m, { icon: "file-download" }), children: h.downloadExport })
|
|
10129
10132
|
] })
|
|
10130
10133
|
] }),
|
|
10131
|
-
(y == null ? void 0 : y.description) && /* @__PURE__ */ s.jsx(
|
|
10134
|
+
(y == null ? void 0 : y.description) && /* @__PURE__ */ s.jsx(X, { variant: "body2", className: "mb-3", children: y == null ? void 0 : y.description }),
|
|
10132
10135
|
(y == null ? void 0 : y.masterReference) && /* @__PURE__ */ s.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ s.jsx(Wy, { label: ((de = (me = y.columns) == null ? void 0 : me.find((ne) => ne.field === y.masterReferenceColumn)) == null ? void 0 : de.caption) ?? "", options: ((Ze = (Be = y.columns) == null ? void 0 : Be.find((ne) => ne.field === y.masterReferenceColumn)) == null ? void 0 : Ze.values) ?? [], master: le, onChange: (ne) => De(ne) }) }),
|
|
10133
10136
|
(y == null ? void 0 : y.slaves) && y.slaves.length > 0 && /* @__PURE__ */ s.jsx("div", { className: "mb-3 d-flex align-items-center flex-start gap-1", children: y.slaves.map((ne) => {
|
|
10134
10137
|
var ve;
|
|
@@ -10145,7 +10148,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10145
10148
|
/* @__PURE__ */ s.jsx(oe, { color: "primary", onClick: () => J(t + 1), disabled: !ae, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-right" }) }),
|
|
10146
10149
|
/* @__PURE__ */ s.jsx(oe, { color: "primary", onClick: () => J(K), disabled: !ae, children: /* @__PURE__ */ s.jsx(m, { icon: "chevron-double-right" }) })
|
|
10147
10150
|
] }),
|
|
10148
|
-
/* @__PURE__ */ s.jsxs(
|
|
10151
|
+
/* @__PURE__ */ s.jsxs(X, { variant: "body", children: [
|
|
10149
10152
|
h.tablePage,
|
|
10150
10153
|
" ",
|
|
10151
10154
|
t,
|
|
@@ -10183,9 +10186,9 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10183
10186
|
}, [b, d]), g.length > 0 ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: v.map((h) => /* @__PURE__ */ s.jsx(on, { title: h.name, defaultOpen: !0, children: h.items.map((m) => {
|
|
10184
10187
|
var x, D, N, y;
|
|
10185
10188
|
return a ? /* @__PURE__ */ s.jsxs(Je, { to: `${yr(o, { id: (x = m.id) == null ? void 0 : x.toString() })}?type=${m.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((D = m.id) == null ? void 0 : D.toString()) ? "active" : ""}`, children: [
|
|
10186
|
-
/* @__PURE__ */ s.jsx(
|
|
10187
|
-
m.description && /* @__PURE__ */ s.jsx(
|
|
10188
|
-
] }, m.id) : /* @__PURE__ */ s.jsx(Hy, { item: m, children: /* @__PURE__ */ s.jsx(Je, { to: `${yr(o, { id: (N = m.id) == null ? void 0 : N.toString() })}?type=${m.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((y = m.id) == null ? void 0 : y.toString()) ? "active" : ""}`, children: /* @__PURE__ */ s.jsx(
|
|
10189
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body", children: m.name }),
|
|
10190
|
+
m.description && /* @__PURE__ */ s.jsx(X, { variant: "body2", className: "text-muted mt-2", children: m.description })
|
|
10191
|
+
] }, m.id) : /* @__PURE__ */ s.jsx(Hy, { item: m, children: /* @__PURE__ */ s.jsx(Je, { to: `${yr(o, { id: (N = m.id) == null ? void 0 : N.toString() })}?type=${m.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((y = m.id) == null ? void 0 : y.toString()) ? "active" : ""}`, children: /* @__PURE__ */ s.jsx(X, { variant: "body2", children: m.name }) }) }, m.id);
|
|
10189
10192
|
}) }, h.id)) }) }) : null;
|
|
10190
10193
|
}, eD = ({ label: e, to: t, value: r }) => /* @__PURE__ */ s.jsxs(ze, { label: e, children: [
|
|
10191
10194
|
/* @__PURE__ */ s.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
@@ -10270,13 +10273,13 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10270
10273
|
}, ew = ({ reportsLastUsedGet: e, getReportRoute: t, getReportName: r }) => {
|
|
10271
10274
|
const { texts: { reports: n } } = z(ce), { data: a } = lt(e);
|
|
10272
10275
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(on, { defaultOpen: !0, title: n.index.lastUsedReports, children: /* @__PURE__ */ s.jsx(Ea, { children: a && a.map((o) => o.versions.map((i) => /* @__PURE__ */ s.jsxs(gn, { as: Je, to: t(o, i.id), className: "p-1 px-2", action: !0, children: [
|
|
10273
|
-
/* @__PURE__ */ s.jsx(
|
|
10274
|
-
/* @__PURE__ */ s.jsxs(
|
|
10276
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body2", className: "text-uppercase", children: r(o) }),
|
|
10277
|
+
/* @__PURE__ */ s.jsxs(X, { variant: "caption", className: "d-flex justify-content-between align-items-center gap-3 text-dark", children: [
|
|
10275
10278
|
i.name,
|
|
10276
|
-
/* @__PURE__ */ s.jsx(
|
|
10279
|
+
/* @__PURE__ */ s.jsx(X, { variant: "caption", className: "text-end opacity-50", children: vs(i.lastUsedDate) })
|
|
10277
10280
|
] })
|
|
10278
10281
|
] }))) }) }) });
|
|
10279
|
-
}, Ji = ({ reportVersion: e, getReportRoute: t, report: r }) => /* @__PURE__ */ s.jsx(gn, { as: Je, to: t(r, e.id), className: "p-1 px-2", action: !0, children: /* @__PURE__ */ s.jsx(
|
|
10282
|
+
}, Ji = ({ reportVersion: e, getReportRoute: t, report: r }) => /* @__PURE__ */ s.jsx(gn, { as: Je, to: t(r, e.id), className: "p-1 px-2", action: !0, children: /* @__PURE__ */ s.jsx(X, { variant: "body2", className: "d-flex justify-content-between align-items-center gap-3", children: /* @__PURE__ */ s.jsx("div", { className: "link", children: e.name }) }) }), Xr = 5, Zi = ({ versionsList: e, getReportRoute: t, report: r }) => {
|
|
10280
10283
|
const { ProjectIconComponent: n } = z(ce), [a, o] = F(!0), i = M(() => e.length <= Xr ? e : e.slice(0, Xr - 1), [e]), l = M(() => e.length <= Xr ? [] : e.slice(Xr - 1), [e]);
|
|
10281
10284
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(Ea, { children: [
|
|
10282
10285
|
i.map((c) => /* @__PURE__ */ s.jsx(Ji, { reportVersion: c, getReportRoute: t, report: r })),
|
|
@@ -10293,7 +10296,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10293
10296
|
className: I(zt.reportCard, "shadow h-100 d-flex flex-column"),
|
|
10294
10297
|
contentClassName: "d-flex flex-column gap-2 h-100",
|
|
10295
10298
|
children: [
|
|
10296
|
-
/* @__PURE__ */ s.jsx(
|
|
10299
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body2", className: "px-2", children: n(e) }),
|
|
10297
10300
|
/* @__PURE__ */ s.jsxs(Ra, { className: "h-100 g-2", children: [
|
|
10298
10301
|
e.versions && e.versions.length > 0 ? /* @__PURE__ */ s.jsx(an, { ...a, children: /* @__PURE__ */ s.jsx(Zi, { versionsList: e.versions, getReportRoute: t, report: e }) }) : null,
|
|
10299
10302
|
e.versionsCustom && e.versionsCustom.length > 0 ? /* @__PURE__ */ s.jsx(an, { ...a, children: /* @__PURE__ */ s.jsx(Zi, { versionsList: e.versionsCustom, getReportRoute: t, report: e }) }) : null
|
|
@@ -10343,7 +10346,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10343
10346
|
g.current = window.setTimeout(() => c(!0), o);
|
|
10344
10347
|
}, onMouseLeave: () => {
|
|
10345
10348
|
g.current && clearTimeout(g.current), c(!1);
|
|
10346
|
-
}, children: l && !(i != null && i.external) ? /* @__PURE__ */ s.jsx(Cd, { heading: p ? /* @__PURE__ */ s.jsx(
|
|
10349
|
+
}, children: l && !(i != null && i.external) ? /* @__PURE__ */ s.jsx(Cd, { heading: p ? /* @__PURE__ */ s.jsx(X, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ s.jsx("span", { className: "placeholder bg-primary col-6" }) }) : u, content: /* @__PURE__ */ s.jsx(s.Fragment, { children: p ? /* @__PURE__ */ s.jsxs(X, { variant: "body2", className: "placeholder-glow", children: [
|
|
10347
10350
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between py-1", children: [
|
|
10348
10351
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
|
|
10349
10352
|
/* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
|
|
@@ -10366,8 +10369,8 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10366
10369
|
] })
|
|
10367
10370
|
] }) : d }), placement: n, trigger: a, popoverClassName: I(es.miniDetailPopover, es[f]), children: /* @__PURE__ */ s.jsx("div", { children: e }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) });
|
|
10368
10371
|
}, cD = ({ label: e, value: t }) => /* @__PURE__ */ s.jsxs("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
|
|
10369
|
-
/* @__PURE__ */ s.jsx(
|
|
10370
|
-
/* @__PURE__ */ s.jsx(
|
|
10372
|
+
/* @__PURE__ */ s.jsx(X, { variant: "caption", children: e }),
|
|
10373
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body2", className: "text-end", children: t ?? "-" })
|
|
10371
10374
|
] }), dD = ({ route: e, variant: t = "link", children: r, className: n, disabled: a = !1, routeParams: o }) => {
|
|
10372
10375
|
const { checkUserHasPermissions: i } = ms(), l = M(() => a || !(e.permissions === void 0 || i(e.permissions)), [i, a, e.permissions]), c = r ?? e.name, p = M(() => {
|
|
10373
10376
|
switch (t) {
|
|
@@ -10401,7 +10404,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10401
10404
|
return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(uy, { dontSort: !0, steps: [
|
|
10402
10405
|
a != null && a.startDate ? {
|
|
10403
10406
|
date: Ft(a.startDate),
|
|
10404
|
-
title: /* @__PURE__ */ s.jsx(
|
|
10407
|
+
title: /* @__PURE__ */ s.jsx(X, { variant: "body2", children: r.startDate }),
|
|
10405
10408
|
dateFormat: "date"
|
|
10406
10409
|
} : null,
|
|
10407
10410
|
...((i = a == null ? void 0 : a.approvalLevels) == null ? void 0 : i.map((l) => {
|
|
@@ -10409,8 +10412,8 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10409
10412
|
return {
|
|
10410
10413
|
date: void 0,
|
|
10411
10414
|
title: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center justify-content-between w-100", children: [
|
|
10412
|
-
/* @__PURE__ */ s.jsx(
|
|
10413
|
-
/* @__PURE__ */ s.jsx(
|
|
10415
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body", className: "fw-bold", children: r.getLevelText(l.index) }),
|
|
10416
|
+
/* @__PURE__ */ s.jsx(X, { variant: "caption", className: "text-end", children: r.getThresholdText(l.threshold) })
|
|
10414
10417
|
] }),
|
|
10415
10418
|
icon: o(l.state),
|
|
10416
10419
|
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: [
|
|
@@ -10418,15 +10421,15 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10418
10421
|
fontSize: "14px"
|
|
10419
10422
|
}, children: "A" }) }) }) : o(p.state, !0),
|
|
10420
10423
|
/* @__PURE__ */ s.jsxs("div", { className: "text-end", children: [
|
|
10421
|
-
/* @__PURE__ */ s.jsx(
|
|
10422
|
-
p.responseDate ? /* @__PURE__ */ s.jsx(
|
|
10424
|
+
/* @__PURE__ */ s.jsx(X, { variant: "body2", children: p.delegatedApprover ? p.delegatedApprover.name : p.approver.name }),
|
|
10425
|
+
p.responseDate ? /* @__PURE__ */ s.jsx(X, { variant: "caption", children: vs(p.responseDate) }) : null
|
|
10423
10426
|
] })
|
|
10424
10427
|
] }) }, p.id)) }) : null
|
|
10425
10428
|
};
|
|
10426
10429
|
})) ?? [],
|
|
10427
10430
|
a != null && a.finishedDate ? {
|
|
10428
10431
|
date: Ft(a.finishedDate),
|
|
10429
|
-
title: /* @__PURE__ */ s.jsx(
|
|
10432
|
+
title: /* @__PURE__ */ s.jsx(X, { variant: "body2", children: r.finishedDate }),
|
|
10430
10433
|
dateFormat: "date"
|
|
10431
10434
|
} : null
|
|
10432
10435
|
].filter((l) => l !== null).map((l) => l) }) });
|
|
@@ -10526,7 +10529,7 @@ const uc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
|
|
|
10526
10529
|
await o(i.deleteConfirm) && (await n.delete(`/permissions/substitutions/${t}`), g(), a(e));
|
|
10527
10530
|
}, [n, o, t, a, g, i, e]), h = M(() => u !== (r == null ? void 0 : r.personalNumber) && !v(["ZASTUP_MODIFY"]), [v, u, r == null ? void 0 : r.personalNumber]), m = d.watch("roles"), x = M(() => f == null ? void 0 : f.filter((y) => y.canBeRepresented), [f]), D = M(() => (x == null ? void 0 : x.every((y) => m == null ? void 0 : m.includes(y.name))) ?? !1, [x, m]);
|
|
10528
10531
|
return /* @__PURE__ */ s.jsx(ja, { title: /* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
|
|
10529
|
-
/* @__PURE__ */ s.jsx(
|
|
10532
|
+
/* @__PURE__ */ s.jsx(X, { variant: "h3", children: i.title }),
|
|
10530
10533
|
/* @__PURE__ */ s.jsx(tr, { toggle: /* @__PURE__ */ s.jsx(rr, { as: Tr }), children: /* @__PURE__ */ s.jsx(rt, { onClick: () => b(), children: i.delete }) })
|
|
10531
10534
|
] }), children: /* @__PURE__ */ s.jsx($d, { ...d, children: /* @__PURE__ */ s.jsx(Rd, { disabled: h, children: /* @__PURE__ */ s.jsxs(Oe, { onSubmit: d.handleSubmit(p), className: "h-100", children: [
|
|
10532
10535
|
/* @__PURE__ */ s.jsxs(Ra, { className: "h-100", children: [
|
|
@@ -10664,7 +10667,7 @@ export {
|
|
|
10664
10667
|
st as TextInput,
|
|
10665
10668
|
uy as Timeline,
|
|
10666
10669
|
rD as TypedFormGroup,
|
|
10667
|
-
|
|
10670
|
+
X as Typography,
|
|
10668
10671
|
xD as UserAvatarToggle,
|
|
10669
10672
|
kw as UserAvatarValueFormat,
|
|
10670
10673
|
zw as VersionInfo,
|