react-luminus-components 1.4.53 → 1.4.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { j as o, c as I, t as Re, s as Io, g as _o, m as kc, d as sn, a as Bc, b as Mc, e as wt, f as _a, h as Lc, i as Fc, k as Vc, l as $c, n as Gc, o as Wc, p as Uc, T as vs, q as hs, r as Oo, E as Hc, u as bs, v as Oa, w as xs, x as zc, y as Te, z as Pa, F as ys, A as qc, B as Yc, C as Kc, D as Xc, M as Qc, G as Jc, H as Zc, I as ed, J as td, K as rd, L as ca, N as nd, O as ad, P as J, Q as Gt, R as od, S as id, U as Wt, V as re, W as Ta, X as Ee, Y as Aa, Z as ht, _ as Je, $ as Oe, a0 as It, a1 as Y, a2 as wn, a3 as sd, a4 as ld, a5 as cd, a6 as ws, a7 as dd, a8 as ud, a9 as pt, aa as pd, ab as fd, ac as un, ad as ne, ae as Ns, af as md, ag as gd, ah as vd, ai as Ds, aj as js, ak as Cs, al as da, am as Ot, an as hd, ao as Ue, ap as bd, aq as xd, ar as yd, as as Pt, at as wd, au as Ss, av as Nd, aw as ft, ax as ir, ay as Dd, az as st, aA as Ra, aB as ka, aC as Es, aD as Ba, aE as Is, aF as _s, aG as Pe, aH as jt, aI as jd, aJ as Cd, aK as at, aL as sr, aM as lr, aN as Sd, aO as ot, aP as Ut, aQ as Ed, aR as Id, aS as xr, aT as lt, aU as Os, aV as cr, aW as Ma, aX as dr, aY as _d, aZ as An, a_ as $r, a$ as Od, b0 as Kt, b1 as Pd, b2 as Td, b3 as _r, b4 as Nn, b5 as Ps, b6 as pn, b7 as La, b8 as tr, b9 as Ad, ba as Ts, bb as Kr, bc as bt, bd as zt, be as ua, bf as Rd, bg as kd, bh as As, bi as Rn, bj as Bd, bk as Md, bl as Ld, bm as Fd, bn as Vd, bo as $d, bp as Rs, bq as Gd, br as Wd, bs as Ud, bt as Hd, bu as zd, bv as qd } from "./ShortcutLinksContext-D-3_1QWF.js";
1
+ import { j as o, c as I, t as Re, s as Io, g as _o, m as kc, d as sn, a as Bc, b as Mc, e as wt, f as _a, h as Lc, i as Fc, k as Vc, l as $c, n as Gc, o as Wc, p as Uc, T as vs, q as hs, r as Oo, E as Hc, u as bs, v as Oa, w as xs, x as zc, y as Te, z as Pa, F as ys, A as qc, B as Yc, C as Kc, D as Xc, M as Qc, G as Jc, H as Zc, I as ed, J as td, K as rd, L as ca, N as nd, O as ad, P as J, Q as Gt, R as od, S as id, U as Wt, V as re, W as Ta, X as Ee, Y as Aa, Z as ht, _ as Je, $ as Oe, a0 as It, a1 as q, a2 as wn, a3 as sd, a4 as ld, a5 as cd, a6 as ws, a7 as dd, a8 as ud, a9 as pt, aa as pd, ab as fd, ac as un, ad as ne, ae as Ns, af as md, ag as gd, ah as vd, ai as Ds, aj as js, ak as Cs, al as da, am as Ot, an as hd, ao as Ue, ap as bd, aq as xd, ar as yd, as as Pt, at as wd, au as Ss, av as Nd, aw as ft, ax as ir, ay as Dd, az as st, aA as Ra, aB as ka, aC as Es, aD as Ba, aE as Is, aF as _s, aG as Pe, aH as jt, aI as jd, aJ as Cd, aK as at, aL as sr, aM as lr, aN as Sd, aO as ot, aP as Ut, aQ as Ed, aR as Id, aS as xr, aT as lt, aU as Os, aV as cr, aW as Ma, aX as dr, aY as _d, aZ as An, a_ as $r, a$ as Od, b0 as Kt, b1 as Pd, b2 as Td, b3 as _r, b4 as Nn, b5 as Ps, b6 as pn, b7 as La, b8 as tr, b9 as Ad, ba as Ts, bb as Kr, bc as bt, bd as zt, be as ua, bf as Rd, bg as kd, bh as As, bi as Rn, bj as Bd, bk as Md, bl as Ld, bm as Fd, bn as Vd, bo as $d, bp as Rs, bq as Gd, br as Wd, bs as Ud, bt as Hd, bu as zd, bv as qd } from "./ShortcutLinksContext-D-3_1QWF.js";
2
2
  import { by as OD, bw as PD, bx as TD } from "./ShortcutLinksContext-D-3_1QWF.js";
3
3
  import * as Se from "react";
4
- import le, { useCallback as P, useMemo as A, useState as R, useRef as ee, useEffect as q, useContext as H, useId as Yd, Component as Kd, isValidElement as Po, Suspense as Xd, useLayoutEffect as Fa, useReducer as Qd, Fragment as Jd } from "react";
4
+ import le, { useCallback as P, useMemo as A, useState as R, useRef as ee, useEffect as U, useContext as H, useId as Yd, Component as Kd, isValidElement as Po, Suspense as Xd, useLayoutEffect as Fa, useReducer as Qd, Fragment as Jd } from "react";
5
5
  import { c as gt, a as Zd, b as eu, L as pa, F as tu } from "./FormDisabledProvider-CbNzR9vC.js";
6
6
  import { InteractionType as ru } from "@azure/msal-browser";
7
7
  import { MsalAuthenticationTemplate as nu } from "@azure/msal-react";
@@ -175,17 +175,17 @@ const wu = {
175
175
  getDimensionValue: m = yu,
176
176
  ...g
177
177
  }, b) => {
178
- const v = typeof l == "function" ? l() : l, h = A(() => yr((j) => {
179
- j.style[v] = "0";
180
- }, e), [v, e]), w = A(() => yr((j) => {
181
- const C = `scroll${v[0].toUpperCase()}${v.slice(1)}`;
182
- j.style[v] = `${j[C]}px`;
183
- }, t), [v, t]), N = A(() => yr((j) => {
184
- j.style[v] = null;
185
- }, r), [v, r]), y = A(() => yr((j) => {
186
- j.style[v] = `${m(v, j)}px`, zc(j);
187
- }, n), [n, m, v]), x = A(() => yr((j) => {
188
- j.style[v] = null;
178
+ const v = typeof l == "function" ? l() : l, h = A(() => yr((C) => {
179
+ C.style[v] = "0";
180
+ }, e), [v, e]), w = A(() => yr((C) => {
181
+ const S = `scroll${v[0].toUpperCase()}${v.slice(1)}`;
182
+ C.style[v] = `${C[S]}px`;
183
+ }, t), [v, t]), N = A(() => yr((C) => {
184
+ C.style[v] = null;
185
+ }, r), [v, r]), y = A(() => yr((C) => {
186
+ C.style[v] = `${m(v, C)}px`, zc(C);
187
+ }, n), [n, m, v]), x = A(() => yr((C) => {
188
+ C.style[v] = null;
189
189
  }, a), [v, a]);
190
190
  return /* @__PURE__ */ o.jsx(vs, {
191
191
  ref: b,
@@ -203,9 +203,9 @@ const wu = {
203
203
  mountOnEnter: d,
204
204
  unmountOnExit: p,
205
205
  appear: f,
206
- children: (j, C) => /* @__PURE__ */ le.cloneElement(s, {
207
- ...C,
208
- className: I(i, s.props.className, wu[j], v === "width" && "collapse-horizontal")
206
+ children: (C, S) => /* @__PURE__ */ le.cloneElement(s, {
207
+ ...S,
208
+ className: I(i, s.props.className, wu[C], v === "width" && "collapse-horizontal")
209
209
  })
210
210
  });
211
211
  }), Ua = /* @__PURE__ */ Se.forwardRef(({
@@ -557,35 +557,35 @@ const Js = /* @__PURE__ */ Se.forwardRef(({
557
557
  onExit: N,
558
558
  onExiting: y,
559
559
  onEnter: x,
560
- onEntering: j,
561
- onExited: C,
562
- backdropClassName: O,
560
+ onEntering: C,
561
+ onExited: S,
562
+ backdropClassName: _,
563
563
  manager: E,
564
564
  renderStaticNode: T = !1,
565
565
  ...M
566
566
  }, V) => {
567
- const S = ee();
567
+ const D = ee();
568
568
  e = Te(e, "offcanvas");
569
- const [_, $] = R(!1), k = Xc(f), L = Iu(i || "xs", "up");
570
- q(() => {
571
- $(i ? s && !L : s);
569
+ const [O, G] = R(!1), B = Xc(f), L = Iu(i || "xs", "up");
570
+ U(() => {
571
+ G(i ? s && !L : s);
572
572
  }, [s, i, L]);
573
- const U = A(() => ({
574
- onHide: k
575
- }), [k]);
576
- function G() {
577
- return E || (u ? (S.current || (S.current = new ed({
573
+ const Y = A(() => ({
574
+ onHide: B
575
+ }), [B]);
576
+ function $() {
577
+ return E || (u ? (D.current || (D.current = new ed({
578
578
  handleContainerOverflow: !1
579
- })), S.current) : td());
579
+ })), D.current) : td());
580
580
  }
581
581
  const z = (se, ...be) => {
582
582
  se && (se.style.visibility = "visible"), x == null || x(se, ...be);
583
583
  }, X = (se, ...be) => {
584
- se && (se.style.visibility = ""), C == null || C(...be);
584
+ se && (se.style.visibility = ""), S == null || S(...be);
585
585
  }, te = P((se) => /* @__PURE__ */ o.jsx("div", {
586
586
  ...se,
587
- className: I(`${e}-backdrop`, O)
588
- }), [O, e]), ie = (se) => /* @__PURE__ */ o.jsx("div", {
587
+ className: I(`${e}-backdrop`, _)
588
+ }), [_, e]), ie = (se) => /* @__PURE__ */ o.jsx("div", {
589
589
  ...se,
590
590
  ...M,
591
591
  className: I(t, i ? `${e}-${i}` : e, `${e}-${a}`),
@@ -593,10 +593,10 @@ const Js = /* @__PURE__ */ Se.forwardRef(({
593
593
  children: r
594
594
  });
595
595
  return /* @__PURE__ */ o.jsxs(o.Fragment, {
596
- children: [!_ && (i || T) && ie({}), /* @__PURE__ */ o.jsx(Qc.Provider, {
597
- value: U,
596
+ children: [!O && (i || T) && ie({}), /* @__PURE__ */ o.jsx(Qc.Provider, {
597
+ value: Y,
598
598
  children: /* @__PURE__ */ o.jsx(Jc, {
599
- show: _,
599
+ show: O,
600
600
  ref: V,
601
601
  backdrop: l,
602
602
  container: m,
@@ -607,14 +607,14 @@ const Js = /* @__PURE__ */ Se.forwardRef(({
607
607
  restoreFocusOptions: h,
608
608
  onEscapeKeyDown: d,
609
609
  onShow: p,
610
- onHide: k,
610
+ onHide: B,
611
611
  onEnter: z,
612
- onEntering: j,
612
+ onEntering: C,
613
613
  onEntered: w,
614
614
  onExit: N,
615
615
  onExiting: y,
616
616
  onExited: X,
617
- manager: G(),
617
+ manager: $(),
618
618
  transition: Pu,
619
619
  backdropTransition: Tu,
620
620
  renderBackdrop: te,
@@ -892,14 +892,14 @@ const Wu = (e) => (r) => {
892
892
  backgroundImage: p.img ? `url(${p.img})` : void 0
893
893
  } }),
894
894
  /* @__PURE__ */ o.jsx("div", { className: Xe.widgetTitleSpacer }),
895
- /* @__PURE__ */ o.jsx("div", { className: I(Xe.widgetTitle, "rounded"), children: /* @__PURE__ */ o.jsx(Y, { variant: "body", className: I(Xe.title, "text-white text-truncate"), children: p.name }) })
895
+ /* @__PURE__ */ o.jsx("div", { className: I(Xe.widgetTitle, "rounded"), children: /* @__PURE__ */ o.jsx(q, { variant: "body", className: I(Xe.title, "text-white text-truncate"), children: p.name }) })
896
896
  ] }, p.id) })) }) }) }, d.id)),
897
897
  c.some((d) => d.group === void 0) && /* @__PURE__ */ o.jsx(fn, { defaultOpen: !0, title: i.otherWidgets, children: /* @__PURE__ */ o.jsx("div", { className: "p-1", children: /* @__PURE__ */ o.jsx("div", { className: I("row gx-3 gy-3", Xe.widgetsRow), children: c.filter((d) => d.group === void 0).map((d) => /* @__PURE__ */ o.jsx("div", { className: "col col-4", children: /* @__PURE__ */ o.jsxs("div", { role: "button", className: I("p-0 pt-2 bg-white rounded shadow-sm", Xe.widget), onClick: () => a(d.id), children: [
898
898
  /* @__PURE__ */ o.jsx("div", { className: Xe.widgetImg, style: {
899
899
  backgroundImage: d.img ? `url(${d.img})` : void 0
900
900
  } }),
901
901
  /* @__PURE__ */ o.jsx("div", { className: Xe.widgetTitleSpacer }),
902
- /* @__PURE__ */ o.jsx("div", { className: I(Xe.widgetTitle, "rounded"), children: /* @__PURE__ */ o.jsx(Y, { variant: "body", className: I(Xe.title, "text-white text-truncate"), children: d.name }) })
902
+ /* @__PURE__ */ o.jsx("div", { className: I(Xe.widgetTitle, "rounded"), children: /* @__PURE__ */ o.jsx(q, { variant: "body", className: I(Xe.title, "text-white text-truncate"), children: d.name }) })
903
903
  ] }, d.id) })) }) }) })
904
904
  ] }) })
905
905
  ] });
@@ -935,7 +935,7 @@ const Wu = (e) => (r) => {
935
935
  mobile: up
936
936
  }, pp = (e, t = "dashboardConfig") => {
937
937
  const [r, n] = R({ widgets: [] });
938
- q(() => {
938
+ U(() => {
939
939
  const i = localStorage.getItem(t);
940
940
  i ? n(JSON.parse(i)) : e && n(e);
941
941
  }, [e, t]);
@@ -1006,11 +1006,11 @@ const Wu = (e) => (r) => {
1006
1006
  collapsed: xp
1007
1007
  }, fn = ({ title: e, children: t, className: r, ...n }) => {
1008
1008
  const a = n.controlled ? !1 : n.defaultOpen ?? !1, [i, s] = R(a), l = n.controlled ? n.isOpen : i;
1009
- return q(() => {
1009
+ return U(() => {
1010
1010
  s(a);
1011
1011
  }, [a]), /* @__PURE__ */ o.jsxs("div", { className: r ?? "", children: [
1012
1012
  /* @__PURE__ */ o.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => n.controlled ? n.onToggle(!n.isOpen) : s(!i), children: [
1013
- /* @__PURE__ */ o.jsx(Y, { variant: "h6", children: e }),
1013
+ /* @__PURE__ */ o.jsx(q, { variant: "h6", children: e }),
1014
1014
  /* @__PURE__ */ o.jsx(ws, { className: I(zo.collapseIcon, {
1015
1015
  [zo.collapsed]: l
1016
1016
  }) })
@@ -1041,7 +1041,7 @@ const Wu = (e) => (r) => {
1041
1041
  content: Sp
1042
1042
  }, mn = ({ title: e, headerContent: t, children: r, className: n, headerClassName: a, contentClassName: i, dontRenderIfNoChildren: s, ...l }) => {
1043
1043
  const c = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [u, d] = R(c), p = l.collapsible ? l.controlled ? l.isOpen : u : !0;
1044
- q(() => {
1044
+ U(() => {
1045
1045
  d(c);
1046
1046
  }, [c]);
1047
1047
  const f = A(() => !r || !r.toString() || r.toString().split(",").filter((m) => m && m !== "false").length === 0, [r]);
@@ -1054,7 +1054,7 @@ const Wu = (e) => (r) => {
1054
1054
  l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : d(!u));
1055
1055
  }, children: [
1056
1056
  /* @__PURE__ */ o.jsxs("div", { className: I("header-content", At.headerContent), children: [
1057
- /* @__PURE__ */ o.jsx(Y, { variant: "h6", className: I("text-primary", At.title), children: e }),
1057
+ /* @__PURE__ */ o.jsx(q, { variant: "h6", className: I("text-primary", At.title), children: e }),
1058
1058
  t ?? null
1059
1059
  ] }),
1060
1060
  l.collapsible && /* @__PURE__ */ o.jsx(ws, { className: I(At.collapseIcon, {
@@ -1402,7 +1402,7 @@ function ol(e, t) {
1402
1402
  };
1403
1403
  return d;
1404
1404
  }
1405
- var il = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Fa : q;
1405
+ var il = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Fa : U;
1406
1406
  function sl(e) {
1407
1407
  var t = e.store, r = e.context, n = e.children, a = A(function() {
1408
1408
  var l = ol(t);
@@ -1514,64 +1514,64 @@ function Yp() {
1514
1514
  var h = Symbol.for;
1515
1515
  e = h("react.element"), t = h("react.portal"), r = h("react.fragment"), n = h("react.strict_mode"), a = h("react.profiler"), i = h("react.provider"), s = h("react.context"), l = h("react.forward_ref"), c = h("react.suspense"), u = h("react.suspense_list"), d = h("react.memo"), p = h("react.lazy"), f = h("react.block"), m = h("react.server.block"), g = h("react.fundamental"), b = h("react.debug_trace_mode"), v = h("react.legacy_hidden");
1516
1516
  }
1517
- function w(S) {
1518
- if (typeof S == "object" && S !== null) {
1519
- var _ = S.$$typeof;
1520
- switch (_) {
1517
+ function w(D) {
1518
+ if (typeof D == "object" && D !== null) {
1519
+ var O = D.$$typeof;
1520
+ switch (O) {
1521
1521
  case e:
1522
- switch (S = S.type, S) {
1522
+ switch (D = D.type, D) {
1523
1523
  case r:
1524
1524
  case a:
1525
1525
  case n:
1526
1526
  case c:
1527
1527
  case u:
1528
- return S;
1528
+ return D;
1529
1529
  default:
1530
- switch (S = S && S.$$typeof, S) {
1530
+ switch (D = D && D.$$typeof, D) {
1531
1531
  case s:
1532
1532
  case l:
1533
1533
  case p:
1534
1534
  case d:
1535
1535
  case i:
1536
- return S;
1536
+ return D;
1537
1537
  default:
1538
- return _;
1538
+ return O;
1539
1539
  }
1540
1540
  }
1541
1541
  case t:
1542
- return _;
1542
+ return O;
1543
1543
  }
1544
1544
  }
1545
1545
  }
1546
- var N = i, y = e, x = l, j = r, C = p, O = d, E = t, T = a, M = n, V = c;
1547
- return xe.ContextConsumer = s, xe.ContextProvider = N, xe.Element = y, xe.ForwardRef = x, xe.Fragment = j, xe.Lazy = C, xe.Memo = O, xe.Portal = E, xe.Profiler = T, xe.StrictMode = M, xe.Suspense = V, xe.isAsyncMode = function() {
1546
+ var N = i, y = e, x = l, C = r, S = p, _ = d, E = t, T = a, M = n, V = c;
1547
+ return xe.ContextConsumer = s, xe.ContextProvider = N, xe.Element = y, xe.ForwardRef = x, xe.Fragment = C, xe.Lazy = S, xe.Memo = _, xe.Portal = E, xe.Profiler = T, xe.StrictMode = M, xe.Suspense = V, xe.isAsyncMode = function() {
1548
1548
  return !1;
1549
1549
  }, xe.isConcurrentMode = function() {
1550
1550
  return !1;
1551
- }, xe.isContextConsumer = function(S) {
1552
- return w(S) === s;
1553
- }, xe.isContextProvider = function(S) {
1554
- return w(S) === i;
1555
- }, xe.isElement = function(S) {
1556
- return typeof S == "object" && S !== null && S.$$typeof === e;
1557
- }, xe.isForwardRef = function(S) {
1558
- return w(S) === l;
1559
- }, xe.isFragment = function(S) {
1560
- return w(S) === r;
1561
- }, xe.isLazy = function(S) {
1562
- return w(S) === p;
1563
- }, xe.isMemo = function(S) {
1564
- return w(S) === d;
1565
- }, xe.isPortal = function(S) {
1566
- return w(S) === t;
1567
- }, xe.isProfiler = function(S) {
1568
- return w(S) === a;
1569
- }, xe.isStrictMode = function(S) {
1570
- return w(S) === n;
1571
- }, xe.isSuspense = function(S) {
1572
- return w(S) === c;
1573
- }, xe.isValidElementType = function(S) {
1574
- return typeof S == "string" || typeof S == "function" || S === r || S === a || S === b || S === n || S === c || S === u || S === v || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === d || S.$$typeof === i || S.$$typeof === s || S.$$typeof === l || S.$$typeof === g || S.$$typeof === f || S[0] === m);
1551
+ }, xe.isContextConsumer = function(D) {
1552
+ return w(D) === s;
1553
+ }, xe.isContextProvider = function(D) {
1554
+ return w(D) === i;
1555
+ }, xe.isElement = function(D) {
1556
+ return typeof D == "object" && D !== null && D.$$typeof === e;
1557
+ }, xe.isForwardRef = function(D) {
1558
+ return w(D) === l;
1559
+ }, xe.isFragment = function(D) {
1560
+ return w(D) === r;
1561
+ }, xe.isLazy = function(D) {
1562
+ return w(D) === p;
1563
+ }, xe.isMemo = function(D) {
1564
+ return w(D) === d;
1565
+ }, xe.isPortal = function(D) {
1566
+ return w(D) === t;
1567
+ }, xe.isProfiler = function(D) {
1568
+ return w(D) === a;
1569
+ }, xe.isStrictMode = function(D) {
1570
+ return w(D) === n;
1571
+ }, xe.isSuspense = function(D) {
1572
+ return w(D) === c;
1573
+ }, xe.isValidElementType = function(D) {
1574
+ return typeof D == "string" || typeof D == "function" || D === r || D === a || D === b || D === n || D === c || D === u || D === v || typeof D == "object" && D !== null && (D.$$typeof === p || D.$$typeof === d || D.$$typeof === i || D.$$typeof === s || D.$$typeof === l || D.$$typeof === g || D.$$typeof === f || D[0] === m);
1575
1575
  }, xe.typeOf = w, xe;
1576
1576
  }
1577
1577
  var ye = {};
@@ -1592,15 +1592,15 @@ function Kp() {
1592
1592
  e = h("react.element"), t = h("react.portal"), r = h("react.fragment"), n = h("react.strict_mode"), a = h("react.profiler"), i = h("react.provider"), s = h("react.context"), l = h("react.forward_ref"), c = h("react.suspense"), u = h("react.suspense_list"), d = h("react.memo"), p = h("react.lazy"), f = h("react.block"), m = h("react.server.block"), g = h("react.fundamental"), h("react.scope"), h("react.opaque.id"), b = h("react.debug_trace_mode"), h("react.offscreen"), v = h("react.legacy_hidden");
1593
1593
  }
1594
1594
  var w = !1;
1595
- function N(B) {
1596
- return !!(typeof B == "string" || typeof B == "function" || B === r || B === a || B === b || B === n || B === c || B === u || B === v || w || typeof B == "object" && B !== null && (B.$$typeof === p || B.$$typeof === d || B.$$typeof === i || B.$$typeof === s || B.$$typeof === l || B.$$typeof === g || B.$$typeof === f || B[0] === m));
1595
+ function N(k) {
1596
+ return !!(typeof k == "string" || typeof k == "function" || k === r || k === a || k === b || k === n || k === c || k === u || k === v || w || typeof k == "object" && k !== null && (k.$$typeof === p || k.$$typeof === d || k.$$typeof === i || k.$$typeof === s || k.$$typeof === l || k.$$typeof === g || k.$$typeof === f || k[0] === m));
1597
1597
  }
1598
- function y(B) {
1599
- if (typeof B == "object" && B !== null) {
1600
- var de = B.$$typeof;
1598
+ function y(k) {
1599
+ if (typeof k == "object" && k !== null) {
1600
+ var de = k.$$typeof;
1601
1601
  switch (de) {
1602
1602
  case e:
1603
- var Ie = B.type;
1603
+ var Ie = k.type;
1604
1604
  switch (Ie) {
1605
1605
  case r:
1606
1606
  case a:
@@ -1626,47 +1626,47 @@ function Kp() {
1626
1626
  }
1627
1627
  }
1628
1628
  }
1629
- var x = s, j = i, C = e, O = l, E = r, T = p, M = d, V = t, S = a, _ = n, $ = c, k = !1, L = !1;
1630
- function U(B) {
1631
- return k || (k = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1629
+ var x = s, C = i, S = e, _ = l, E = r, T = p, M = d, V = t, D = a, O = n, G = c, B = !1, L = !1;
1630
+ function Y(k) {
1631
+ return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1632
1632
  }
1633
- function G(B) {
1633
+ function $(k) {
1634
1634
  return L || (L = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1635
1635
  }
1636
- function z(B) {
1637
- return y(B) === s;
1636
+ function z(k) {
1637
+ return y(k) === s;
1638
1638
  }
1639
- function X(B) {
1640
- return y(B) === i;
1639
+ function X(k) {
1640
+ return y(k) === i;
1641
1641
  }
1642
- function te(B) {
1643
- return typeof B == "object" && B !== null && B.$$typeof === e;
1642
+ function te(k) {
1643
+ return typeof k == "object" && k !== null && k.$$typeof === e;
1644
1644
  }
1645
- function ie(B) {
1646
- return y(B) === l;
1645
+ function ie(k) {
1646
+ return y(k) === l;
1647
1647
  }
1648
- function se(B) {
1649
- return y(B) === r;
1648
+ function se(k) {
1649
+ return y(k) === r;
1650
1650
  }
1651
- function be(B) {
1652
- return y(B) === p;
1651
+ function be(k) {
1652
+ return y(k) === p;
1653
1653
  }
1654
- function W(B) {
1655
- return y(B) === d;
1654
+ function W(k) {
1655
+ return y(k) === d;
1656
1656
  }
1657
- function ae(B) {
1658
- return y(B) === t;
1657
+ function ae(k) {
1658
+ return y(k) === t;
1659
1659
  }
1660
- function me(B) {
1661
- return y(B) === a;
1660
+ function me(k) {
1661
+ return y(k) === a;
1662
1662
  }
1663
- function je(B) {
1664
- return y(B) === n;
1663
+ function je(k) {
1664
+ return y(k) === n;
1665
1665
  }
1666
- function pe(B) {
1667
- return y(B) === c;
1666
+ function pe(k) {
1667
+ return y(k) === c;
1668
1668
  }
1669
- ye.ContextConsumer = x, ye.ContextProvider = j, ye.Element = C, ye.ForwardRef = O, ye.Fragment = E, ye.Lazy = T, ye.Memo = M, ye.Portal = V, ye.Profiler = S, ye.StrictMode = _, ye.Suspense = $, ye.isAsyncMode = U, ye.isConcurrentMode = G, ye.isContextConsumer = z, ye.isContextProvider = X, ye.isElement = te, ye.isForwardRef = ie, ye.isFragment = se, ye.isLazy = be, ye.isMemo = W, ye.isPortal = ae, ye.isProfiler = me, ye.isStrictMode = je, ye.isSuspense = pe, ye.isValidElementType = N, ye.typeOf = y;
1669
+ ye.ContextConsumer = x, ye.ContextProvider = C, ye.Element = S, ye.ForwardRef = _, ye.Fragment = E, ye.Lazy = T, ye.Memo = M, ye.Portal = V, ye.Profiler = D, ye.StrictMode = O, ye.Suspense = G, ye.isAsyncMode = Y, ye.isConcurrentMode = $, ye.isContextConsumer = z, ye.isContextProvider = X, ye.isElement = te, ye.isForwardRef = ie, ye.isFragment = se, ye.isLazy = be, ye.isMemo = W, ye.isPortal = ae, ye.isProfiler = me, ye.isStrictMode = je, ye.isSuspense = pe, ye.isValidElementType = N, ye.typeOf = y;
1670
1670
  }()), ye;
1671
1671
  }
1672
1672
  process.env.NODE_ENV === "production" ? ba.exports = Yp() : ba.exports = Kp();
@@ -1720,8 +1720,8 @@ var af = function() {
1720
1720
  };
1721
1721
  function of(e, t) {
1722
1722
  t === void 0 && (t = {});
1723
- var r = t, n = r.getDisplayName, a = n === void 0 ? function(j) {
1724
- return "ConnectAdvanced(" + j + ")";
1723
+ var r = t, n = r.getDisplayName, a = n === void 0 ? function(C) {
1724
+ return "ConnectAdvanced(" + C + ")";
1725
1725
  } : n, i = r.methodName, s = i === void 0 ? "connectAdvanced" : i, l = r.renderCountProp, c = l === void 0 ? void 0 : l, u = r.shouldHandleStateChanges, d = u === void 0 ? !0 : u, p = r.storeKey, f = p === void 0 ? "store" : p, m = r.withRef, g = m === void 0 ? !1 : m, b = r.forwardRef, v = b === void 0 ? !1 : b, h = r.context, w = h === void 0 ? za : h, N = un(r, Xp);
1726
1726
  if (process.env.NODE_ENV !== "production") {
1727
1727
  if (c !== void 0)
@@ -1733,32 +1733,32 @@ function of(e, t) {
1733
1733
  throw new Error("storeKey has been removed and does not do anything. " + y);
1734
1734
  }
1735
1735
  var x = w;
1736
- return function(C) {
1737
- if (process.env.NODE_ENV !== "production" && !ii.isValidElementType(C))
1738
- throw new Error("You must pass a component to the function returned by " + (s + ". Instead received " + ef(C)));
1739
- var O = C.displayName || C.name || "Component", E = a(O), T = ne({}, N, {
1736
+ return function(S) {
1737
+ if (process.env.NODE_ENV !== "production" && !ii.isValidElementType(S))
1738
+ throw new Error("You must pass a component to the function returned by " + (s + ". Instead received " + ef(S)));
1739
+ var _ = S.displayName || S.name || "Component", E = a(_), T = ne({}, N, {
1740
1740
  getDisplayName: a,
1741
1741
  methodName: s,
1742
1742
  renderCountProp: c,
1743
1743
  shouldHandleStateChanges: d,
1744
1744
  storeKey: f,
1745
1745
  displayName: E,
1746
- wrappedComponentName: O,
1747
- WrappedComponent: C
1746
+ wrappedComponentName: _,
1747
+ WrappedComponent: S
1748
1748
  }), M = N.pure;
1749
1749
  function V(L) {
1750
1750
  return e(L.dispatch, T);
1751
1751
  }
1752
- var S = M ? A : function(L) {
1752
+ var D = M ? A : function(L) {
1753
1753
  return L();
1754
1754
  };
1755
- function _(L) {
1756
- var U = A(function() {
1755
+ function O(L) {
1756
+ var Y = A(function() {
1757
1757
  var ce = L.reactReduxForwardedRef, Le = un(L, Qp);
1758
1758
  return [L.context, ce, Le];
1759
- }, [L]), G = U[0], z = U[1], X = U[2], te = A(function() {
1760
- return G && G.Consumer && ii.isContextConsumer(/* @__PURE__ */ le.createElement(G.Consumer, null)) ? G : x;
1761
- }, [G, x]), ie = H(te), se = !!L.store && !!L.store.getState && !!L.store.dispatch, be = !!ie && !!ie.store;
1759
+ }, [L]), $ = Y[0], z = Y[1], X = Y[2], te = A(function() {
1760
+ return $ && $.Consumer && ii.isContextConsumer(/* @__PURE__ */ le.createElement($.Consumer, null)) ? $ : x;
1761
+ }, [$, x]), ie = H(te), se = !!L.store && !!L.store.getState && !!L.store.dispatch, be = !!ie && !!ie.store;
1762
1762
  if (process.env.NODE_ENV !== "production" && !se && !be)
1763
1763
  throw new Error('Could not find "store" in the context of ' + ('"' + E + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + E + " in connect options."));
1764
1764
  var W = se ? L.store : ie.store, ae = A(function() {
@@ -1767,38 +1767,38 @@ function of(e, t) {
1767
1767
  if (!d) return Zp;
1768
1768
  var ce = ol(W, se ? null : ie.subscription), Le = ce.notifyNestedSubs.bind(ce);
1769
1769
  return [ce, Le];
1770
- }, [W, se, ie]), je = me[0], pe = me[1], B = A(function() {
1770
+ }, [W, se, ie]), je = me[0], pe = me[1], k = A(function() {
1771
1771
  return se ? ie : ne({}, ie, {
1772
1772
  subscription: je
1773
1773
  });
1774
1774
  }, [se, ie, je]), de = Qd(tf, Jp, af), Ie = de[0], Ge = Ie[0], Ke = de[1];
1775
1775
  if (Ge && Ge.error)
1776
1776
  throw Ge.error;
1777
- var mt = ee(), K = ee(X), F = ee(), Z = ee(!1), ue = S(function() {
1777
+ var mt = ee(), K = ee(X), F = ee(), Z = ee(!1), ue = D(function() {
1778
1778
  return F.current && X === K.current ? F.current : ae(W.getState(), X);
1779
1779
  }, [W, Ge, X]);
1780
1780
  si(rf, [K, mt, Z, X, ue, F, pe]), si(nf, [d, W, je, ae, K, mt, Z, F, pe, Ke], [W, je, ae]);
1781
1781
  var Ce = A(function() {
1782
- return /* @__PURE__ */ le.createElement(C, ne({}, ue, {
1782
+ return /* @__PURE__ */ le.createElement(S, ne({}, ue, {
1783
1783
  ref: z
1784
1784
  }));
1785
- }, [z, C, ue]), ge = A(function() {
1785
+ }, [z, S, ue]), ge = A(function() {
1786
1786
  return d ? /* @__PURE__ */ le.createElement(te.Provider, {
1787
- value: B
1787
+ value: k
1788
1788
  }, Ce) : Ce;
1789
- }, [te, Ce, B]);
1789
+ }, [te, Ce, k]);
1790
1790
  return ge;
1791
1791
  }
1792
- var $ = M ? le.memo(_) : _;
1793
- if ($.WrappedComponent = C, $.displayName = _.displayName = E, v) {
1794
- var k = le.forwardRef(function(U, G) {
1795
- return /* @__PURE__ */ le.createElement($, ne({}, U, {
1796
- reactReduxForwardedRef: G
1792
+ var G = M ? le.memo(O) : O;
1793
+ if (G.WrappedComponent = S, G.displayName = O.displayName = E, v) {
1794
+ var B = le.forwardRef(function(Y, $) {
1795
+ return /* @__PURE__ */ le.createElement(G, ne({}, Y, {
1796
+ reactReduxForwardedRef: $
1797
1797
  }));
1798
1798
  });
1799
- return k.displayName = E, k.WrappedComponent = C, ni(k, C);
1799
+ return B.displayName = E, B.WrappedComponent = S, ni(B, S);
1800
1800
  }
1801
- return ni($, C);
1801
+ return ni(G, S);
1802
1802
  };
1803
1803
  }
1804
1804
  function li(e, t) {
@@ -1944,8 +1944,8 @@ function jf(e, t, r, n, a) {
1944
1944
  return p = N, y && (m = r(p, f, d)), m;
1945
1945
  }
1946
1946
  function w(N, y) {
1947
- var x = !s(y, d), j = !i(N, u, y, d);
1948
- return u = N, d = y, x && j ? b() : x ? v() : j ? h() : m;
1947
+ var x = !s(y, d), C = !i(N, u, y, d);
1948
+ return u = N, d = y, x && C ? b() : x ? v() : C ? h() : m;
1949
1949
  }
1950
1950
  return function(y, x) {
1951
1951
  return c ? w(y, x) : g(y, x);
@@ -1974,7 +1974,7 @@ function If(e) {
1974
1974
  var t = {}, r = t.connectHOC, n = r === void 0 ? of : r, a = t.mapStateToPropsFactories, i = a === void 0 ? gf : a, s = t.mapDispatchToPropsFactories, l = s === void 0 ? pf : s, c = t.mergePropsFactories, u = c === void 0 ? yf : c, d = t.selectorFactory, p = d === void 0 ? Cf : d;
1975
1975
  return function(m, g, b, v) {
1976
1976
  v === void 0 && (v = {});
1977
- var h = v, w = h.pure, N = w === void 0 ? !0 : w, y = h.areStatesEqual, x = y === void 0 ? Ef : y, j = h.areOwnPropsEqual, C = j === void 0 ? Vn : j, O = h.areStatePropsEqual, E = O === void 0 ? Vn : O, T = h.areMergedPropsEqual, M = T === void 0 ? Vn : T, V = un(h, Sf), S = Gn(m, i, "mapStateToProps"), _ = Gn(g, l, "mapDispatchToProps"), $ = Gn(b, u, "mergeProps");
1977
+ var h = v, w = h.pure, N = w === void 0 ? !0 : w, y = h.areStatesEqual, x = y === void 0 ? Ef : y, C = h.areOwnPropsEqual, S = C === void 0 ? Vn : C, _ = h.areStatePropsEqual, E = _ === void 0 ? Vn : _, T = h.areMergedPropsEqual, M = T === void 0 ? Vn : T, V = un(h, Sf), D = Gn(m, i, "mapStateToProps"), O = Gn(g, l, "mapDispatchToProps"), G = Gn(b, u, "mergeProps");
1978
1978
  return n(p, ne({
1979
1979
  // used in error messages
1980
1980
  methodName: "connect",
@@ -1985,12 +1985,12 @@ function If(e) {
1985
1985
  // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
1986
1986
  shouldHandleStateChanges: !!m,
1987
1987
  // passed through to selectorFactory
1988
- initMapStateToProps: S,
1989
- initMapDispatchToProps: _,
1990
- initMergeProps: $,
1988
+ initMapStateToProps: D,
1989
+ initMapDispatchToProps: O,
1990
+ initMergeProps: G,
1991
1991
  pure: N,
1992
1992
  areStatesEqual: x,
1993
- areOwnPropsEqual: C,
1993
+ areOwnPropsEqual: S,
1994
1994
  areStatePropsEqual: E,
1995
1995
  areMergedPropsEqual: M
1996
1996
  }, V));
@@ -2016,7 +2016,7 @@ function ml(e, t) {
2016
2016
  inputs: t,
2017
2017
  result: e()
2018
2018
  };
2019
- return q(function() {
2019
+ return U(function() {
2020
2020
  n.current = !1, a.current = s;
2021
2021
  }, [s]), s.result;
2022
2022
  }
@@ -2210,7 +2210,7 @@ function Ar(e) {
2210
2210
  Ar.prototype.toString = function() {
2211
2211
  return this.message;
2212
2212
  };
2213
- function D(e, t) {
2213
+ function j(e, t) {
2214
2214
  throw Wf ? new Ar(mi) : new Ar(mi + ": " + (t || ""));
2215
2215
  }
2216
2216
  var Uf = function(e) {
@@ -2403,7 +2403,7 @@ var Uf = function(e) {
2403
2403
  active: l
2404
2404
  };
2405
2405
  }, Ja = function(e, t) {
2406
- e.frame || (process.env.NODE_ENV, D());
2406
+ e.frame || (process.env.NODE_ENV, j());
2407
2407
  var r = e.frame, n = He(t, r.scroll.initial), a = ur(n), i = ne({}, r, {
2408
2408
  scroll: {
2409
2409
  initial: r.scroll.initial,
@@ -2513,7 +2513,7 @@ var En = ke(function(e, t) {
2513
2513
  var f = Za(d, function(b) {
2514
2514
  return b.descriptor.id === u;
2515
2515
  });
2516
- f === -1 && (process.env.NODE_ENV !== "production" ? D(!1, "Could not find displaced item in set") : D());
2516
+ f === -1 && (process.env.NODE_ENV !== "production" ? j(!1, "Could not find displaced item in set") : j());
2517
2517
  var m = f - 1;
2518
2518
  if (m < 0)
2519
2519
  return null;
@@ -2728,7 +2728,7 @@ var mm = function(e) {
2728
2728
  return s < l || s > u ? null : s;
2729
2729
  }, vm = function(e) {
2730
2730
  var t = e.isMovingForward, r = e.isInHomeList, n = e.draggable, a = e.draggables, i = e.destination, s = e.insideDestination, l = e.previousImpact, c = e.viewport, u = e.afterCritical, d = l.at;
2731
- if (d || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot move in direction without previous impact location") : D()), d.type === "REORDER") {
2731
+ if (d || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot move in direction without previous impact location") : j()), d.type === "REORDER") {
2732
2732
  var p = gm({
2733
2733
  isMovingForward: t,
2734
2734
  isInHomeList: r,
@@ -2767,7 +2767,7 @@ var mm = function(e) {
2767
2767
  return _t(n, r) ? i ? Be : ur(a.point) : i ? a.point : Be;
2768
2768
  }, bm = function(e) {
2769
2769
  var t = e.afterCritical, r = e.impact, n = e.draggables, a = Sn(r);
2770
- a || (process.env.NODE_ENV, D());
2770
+ a || (process.env.NODE_ENV, j());
2771
2771
  var i = a.draggableId, s = n[i].page.borderBox.center, l = hm({
2772
2772
  displaced: r.displaced,
2773
2773
  afterCritical: t,
@@ -2990,7 +2990,7 @@ var jm = function(e) {
2990
2990
  };
2991
2991
  }, $e = function(t) {
2992
2992
  var r = t.subject.active;
2993
- return r || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot get clipped area from droppable") : D()), r;
2993
+ return r || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot get clipped area from droppable") : j()), r;
2994
2994
  }, Em = function(e) {
2995
2995
  var t = e.isMovingForward, r = e.pageBorderBoxCenter, n = e.source, a = e.droppables, i = e.viewport, s = n.subject.active;
2996
2996
  if (!s)
@@ -3070,7 +3070,7 @@ var jm = function(e) {
3070
3070
  });
3071
3071
  }, Tl = function(t, r, n) {
3072
3072
  var a = t.frame;
3073
- pr(r, t) && (process.env.NODE_ENV !== "production" ? D(!1, "Should not add placeholder space to home list") : D()), t.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot add placeholder size to a subject when it already has one") : D());
3073
+ pr(r, t) && (process.env.NODE_ENV !== "production" ? j(!1, "Should not add placeholder space to home list") : j()), t.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot add placeholder size to a subject when it already has one") : j());
3074
3074
  var i = Wr(t.axis, r.displaceBy).point, s = Om(t, i, n), l = {
3075
3075
  placeholderSize: i,
3076
3076
  increasedBy: s,
@@ -3099,7 +3099,7 @@ var jm = function(e) {
3099
3099
  });
3100
3100
  }, Pm = function(t) {
3101
3101
  var r = t.subject.withPlaceholder;
3102
- r || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot remove placeholder form subject when there was none") : D());
3102
+ r || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot remove placeholder form subject when there was none") : j());
3103
3103
  var n = t.frame;
3104
3104
  if (!n) {
3105
3105
  var a = nr({
@@ -3113,7 +3113,7 @@ var jm = function(e) {
3113
3113
  });
3114
3114
  }
3115
3115
  var i = r.oldFrameMaxScroll;
3116
- i || (process.env.NODE_ENV !== "production" ? D(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : D());
3116
+ i || (process.env.NODE_ENV !== "production" ? j(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : j());
3117
3117
  var s = Pl(n, i), l = nr({
3118
3118
  page: t.subject.page,
3119
3119
  axis: t.axis,
@@ -3476,9 +3476,9 @@ var Ml = function(e) {
3476
3476
  });
3477
3477
  }, Fl = function(e) {
3478
3478
  var t = e.state, r = e.dimensions, n = e.viewport;
3479
- t.movementMode !== "SNAP" && (process.env.NODE_ENV, D());
3479
+ t.movementMode !== "SNAP" && (process.env.NODE_ENV, j());
3480
3480
  var a = t.impact, i = n || t.viewport, s = r || t.dimensions, l = s.draggables, c = s.droppables, u = l[t.critical.draggable.id], d = ze(a);
3481
- d || (process.env.NODE_ENV !== "production" ? D(!1, "Must be over a destination in SNAP movement mode") : D());
3481
+ d || (process.env.NODE_ENV !== "production" ? j(!1, "Must be over a destination in SNAP movement mode") : j());
3482
3482
  var p = c[d], f = Ml({
3483
3483
  impact: a,
3484
3484
  viewport: i,
@@ -3506,7 +3506,7 @@ var Ml = function(e) {
3506
3506
  };
3507
3507
  }, Vl = function(e) {
3508
3508
  var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, i = Wr(r.axis, t.displaceBy), s = qt(r.descriptor.id, n), l = s.indexOf(t);
3509
- l === -1 && (process.env.NODE_ENV !== "production" ? D(!1, "Expected draggable to be inside home list") : D());
3509
+ l === -1 && (process.env.NODE_ENV !== "production" ? j(!1, "Expected draggable to be inside home list") : j());
3510
3510
  var c = s.slice(l + 1), u = c.reduce(function(m, g) {
3511
3511
  return m[g.descriptor.id] = !0, m;
3512
3512
  }, {}), d = {
@@ -3552,7 +3552,7 @@ var Ml = function(e) {
3552
3552
  return s;
3553
3553
  }, Xm = function(e) {
3554
3554
  var t = e.frame;
3555
- return t || (process.env.NODE_ENV !== "production" ? D(!1, "Expected Droppable to have a frame") : D()), t;
3555
+ return t || (process.env.NODE_ENV !== "production" ? j(!1, "Expected Droppable to have a frame") : j()), t;
3556
3556
  }, Qm = function(e) {
3557
3557
  var t = e.additions, r = e.updatedDroppables, n = e.viewport, a = n.scroll.diff.value;
3558
3558
  return t.map(function(i) {
@@ -3644,7 +3644,7 @@ var Di = {
3644
3644
  shouldFlush: !0
3645
3645
  });
3646
3646
  if (t.type === "INITIAL_PUBLISH") {
3647
- e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? D(!1, "INITIAL_PUBLISH must come after a IDLE phase") : D());
3647
+ e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? j(!1, "INITIAL_PUBLISH must come after a IDLE phase") : j());
3648
3648
  var r = t.payload, n = r.critical, a = r.clientSelection, i = r.viewport, s = r.dimensions, l = r.movementMode, c = s.draggables[n.draggable.id], u = s.droppables[n.droppable.id], d = {
3649
3649
  selection: a,
3650
3650
  borderBoxCenter: c.client.borderBox.center,
@@ -3656,8 +3656,8 @@ var Di = {
3656
3656
  borderBoxCenter: Me(d.selection, i.scroll.initial),
3657
3657
  offset: Me(d.selection, i.scroll.diff.value)
3658
3658
  }
3659
- }, f = Cn(s.droppables).every(function(B) {
3660
- return !B.isFixedOnPage;
3659
+ }, f = Cn(s.droppables).every(function(k) {
3660
+ return !k.isFixedOnPage;
3661
3661
  }), m = Vl({
3662
3662
  draggable: c,
3663
3663
  home: u,
@@ -3684,7 +3684,7 @@ var Di = {
3684
3684
  if (t.type === "COLLECTION_STARTING") {
3685
3685
  if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
3686
3686
  return e;
3687
- e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? D(!1, "Collection cannot start from phase " + e.phase) : D());
3687
+ e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? j(!1, "Collection cannot start from phase " + e.phase) : j());
3688
3688
  var h = ne({
3689
3689
  phase: "COLLECTING"
3690
3690
  }, e, {
@@ -3693,14 +3693,14 @@ var Di = {
3693
3693
  return h;
3694
3694
  }
3695
3695
  if (t.type === "PUBLISH_WHILE_DRAGGING")
3696
- return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? D(!1, "Unexpected " + t.type + " received in phase " + e.phase) : D()), Jm({
3696
+ return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? j(!1, "Unexpected " + t.type + " received in phase " + e.phase) : j()), Jm({
3697
3697
  state: e,
3698
3698
  published: t.payload
3699
3699
  });
3700
3700
  if (t.type === "MOVE") {
3701
3701
  if (e.phase === "DROP_PENDING")
3702
3702
  return e;
3703
- Ft(e) || (process.env.NODE_ENV !== "production" ? D(!1, t.type + " not permitted in phase " + e.phase) : D());
3703
+ Ft(e) || (process.env.NODE_ENV !== "production" ? j(!1, t.type + " not permitted in phase " + e.phase) : j());
3704
3704
  var w = t.payload.client;
3705
3705
  return St(w, e.current.client.selection) ? e : Sr({
3706
3706
  state: e,
@@ -3711,20 +3711,20 @@ var Di = {
3711
3711
  if (t.type === "UPDATE_DROPPABLE_SCROLL") {
3712
3712
  if (e.phase === "DROP_PENDING" || e.phase === "COLLECTING")
3713
3713
  return zn(e);
3714
- Ft(e) || (process.env.NODE_ENV !== "production" ? D(!1, t.type + " not permitted in phase " + e.phase) : D());
3715
- var N = t.payload, y = N.id, x = N.newScroll, j = e.dimensions.droppables[y];
3716
- if (!j)
3714
+ Ft(e) || (process.env.NODE_ENV !== "production" ? j(!1, t.type + " not permitted in phase " + e.phase) : j());
3715
+ var N = t.payload, y = N.id, x = N.newScroll, C = e.dimensions.droppables[y];
3716
+ if (!C)
3717
3717
  return e;
3718
- var C = Ja(j, x);
3719
- return Hn(e, C, !1);
3718
+ var S = Ja(C, x);
3719
+ return Hn(e, S, !1);
3720
3720
  }
3721
3721
  if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
3722
3722
  if (e.phase === "DROP_PENDING")
3723
3723
  return e;
3724
- Ft(e) || (process.env.NODE_ENV !== "production" ? D(!1, "Attempting to move in an unsupported phase " + e.phase) : D());
3725
- var O = t.payload, E = O.id, T = O.isEnabled, M = e.dimensions.droppables[E];
3726
- M || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find Droppable[id: " + E + "] to toggle its enabled state") : D()), M.isEnabled === T && (process.env.NODE_ENV !== "production" ? D(!1, "Trying to set droppable isEnabled to " + String(T) + `
3727
- but it is already ` + String(M.isEnabled)) : D());
3724
+ Ft(e) || (process.env.NODE_ENV !== "production" ? j(!1, "Attempting to move in an unsupported phase " + e.phase) : j());
3725
+ var _ = t.payload, E = _.id, T = _.isEnabled, M = e.dimensions.droppables[E];
3726
+ M || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot find Droppable[id: " + E + "] to toggle its enabled state") : j()), M.isEnabled === T && (process.env.NODE_ENV !== "production" ? j(!1, "Trying to set droppable isEnabled to " + String(T) + `
3727
+ but it is already ` + String(M.isEnabled)) : j());
3728
3728
  var V = ne({}, M, {
3729
3729
  isEnabled: T
3730
3730
  });
@@ -3733,29 +3733,29 @@ var Di = {
3733
3733
  if (t.type === "UPDATE_DROPPABLE_IS_COMBINE_ENABLED") {
3734
3734
  if (e.phase === "DROP_PENDING")
3735
3735
  return e;
3736
- Ft(e) || (process.env.NODE_ENV !== "production" ? D(!1, "Attempting to move in an unsupported phase " + e.phase) : D());
3737
- var S = t.payload, _ = S.id, $ = S.isCombineEnabled, k = e.dimensions.droppables[_];
3738
- k || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find Droppable[id: " + _ + "] to toggle its isCombineEnabled state") : D()), k.isCombineEnabled === $ && (process.env.NODE_ENV !== "production" ? D(!1, "Trying to set droppable isCombineEnabled to " + String($) + `
3739
- but it is already ` + String(k.isCombineEnabled)) : D());
3740
- var L = ne({}, k, {
3741
- isCombineEnabled: $
3736
+ Ft(e) || (process.env.NODE_ENV !== "production" ? j(!1, "Attempting to move in an unsupported phase " + e.phase) : j());
3737
+ var D = t.payload, O = D.id, G = D.isCombineEnabled, B = e.dimensions.droppables[O];
3738
+ B || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot find Droppable[id: " + O + "] to toggle its isCombineEnabled state") : j()), B.isCombineEnabled === G && (process.env.NODE_ENV !== "production" ? j(!1, "Trying to set droppable isCombineEnabled to " + String(G) + `
3739
+ but it is already ` + String(B.isCombineEnabled)) : j());
3740
+ var L = ne({}, B, {
3741
+ isCombineEnabled: G
3742
3742
  });
3743
3743
  return Hn(e, L, !0);
3744
3744
  }
3745
3745
  if (t.type === "MOVE_BY_WINDOW_SCROLL") {
3746
3746
  if (e.phase === "DROP_PENDING" || e.phase === "DROP_ANIMATING")
3747
3747
  return e;
3748
- Ft(e) || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot move by window in phase " + e.phase) : D()), e.isWindowScrollAllowed || (process.env.NODE_ENV !== "production" ? D(!1, "Window scrolling is currently not supported for fixed lists") : D());
3749
- var U = t.payload.newScroll;
3750
- if (St(e.viewport.scroll.current, U))
3748
+ Ft(e) || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot move by window in phase " + e.phase) : j()), e.isWindowScrollAllowed || (process.env.NODE_ENV !== "production" ? j(!1, "Window scrolling is currently not supported for fixed lists") : j());
3749
+ var Y = t.payload.newScroll;
3750
+ if (St(e.viewport.scroll.current, Y))
3751
3751
  return zn(e);
3752
- var G = _l(e.viewport, U);
3752
+ var $ = _l(e.viewport, Y);
3753
3753
  return wa(e) ? Fl({
3754
3754
  state: e,
3755
- viewport: G
3755
+ viewport: $
3756
3756
  }) : Sr({
3757
3757
  state: e,
3758
- viewport: G
3758
+ viewport: $
3759
3759
  });
3760
3760
  }
3761
3761
  if (t.type === "UPDATE_VIEWPORT_MAX_SCROLL") {
@@ -3778,7 +3778,7 @@ var Di = {
3778
3778
  if (t.type === "MOVE_UP" || t.type === "MOVE_DOWN" || t.type === "MOVE_LEFT" || t.type === "MOVE_RIGHT") {
3779
3779
  if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
3780
3780
  return e;
3781
- e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? D(!1, t.type + " received while not in DRAGGING phase") : D());
3781
+ e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? j(!1, t.type + " received while not in DRAGGING phase") : j());
3782
3782
  var te = km({
3783
3783
  state: e,
3784
3784
  type: t.type
@@ -3792,7 +3792,7 @@ var Di = {
3792
3792
  }
3793
3793
  if (t.type === "DROP_PENDING") {
3794
3794
  var ie = t.payload.reason;
3795
- e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ? D(!1, "Can only move into the DROP_PENDING phase from the COLLECTING phase") : D());
3795
+ e.phase !== "COLLECTING" && (process.env.NODE_ENV !== "production" ? j(!1, "Can only move into the DROP_PENDING phase from the COLLECTING phase") : j());
3796
3796
  var se = ne({
3797
3797
  phase: "DROP_PENDING"
3798
3798
  }, e, {
@@ -3804,7 +3804,7 @@ var Di = {
3804
3804
  }
3805
3805
  if (t.type === "DROP_ANIMATE") {
3806
3806
  var be = t.payload, W = be.completed, ae = be.dropDuration, me = be.newHomeClientOffset;
3807
- e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot animate drop from phase " + e.phase) : D());
3807
+ e.phase === "DRAGGING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot animate drop from phase " + e.phase) : j());
3808
3808
  var je = {
3809
3809
  phase: "DROP_ANIMATING",
3810
3810
  completed: W,
@@ -3970,7 +3970,7 @@ var bg = function(e) {
3970
3970
  var s = i.payload, l = s.id, c = s.clientSelection, u = s.movementMode, d = r();
3971
3971
  d.phase === "DROP_ANIMATING" && n(so({
3972
3972
  completed: d.completed
3973
- })), r().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? D(!1, "Unexpected phase to start a drag") : D()), n(io()), n(eg({
3973
+ })), r().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? j(!1, "Unexpected phase to start a drag") : j()), n(io()), n(eg({
3974
3974
  draggableId: l,
3975
3975
  movementMode: u
3976
3976
  }));
@@ -4092,7 +4092,7 @@ var bg = function(e) {
4092
4092
  }
4093
4093
  if (i.phase !== "IDLE") {
4094
4094
  var l = i.phase === "DROP_PENDING" && i.isWaiting;
4095
- l && (process.env.NODE_ENV !== "production" ? D(!1, "A DROP action occurred while DROP_PENDING and still waiting") : D()), i.phase === "DRAGGING" || i.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot drop in phase: " + i.phase) : D());
4095
+ l && (process.env.NODE_ENV !== "production" ? j(!1, "A DROP action occurred while DROP_PENDING and still waiting") : j()), i.phase === "DRAGGING" || i.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot drop in phase: " + i.phase) : j());
4096
4096
  var c = i.critical, u = i.dimensions, d = u.draggables[i.critical.draggable.id], p = jg({
4097
4097
  reason: s,
4098
4098
  lastImpact: i.impact,
@@ -4134,12 +4134,12 @@ var bg = function(e) {
4134
4134
  current: i.current.client.offset,
4135
4135
  destination: w,
4136
4136
  reason: s
4137
- }), j = {
4137
+ }), C = {
4138
4138
  newHomeClientOffset: w,
4139
4139
  dropDuration: x,
4140
4140
  completed: N
4141
4141
  };
4142
- r(mg(j));
4142
+ r(mg(C));
4143
4143
  }
4144
4144
  };
4145
4145
  };
@@ -4171,10 +4171,10 @@ function Eg(e) {
4171
4171
  return i !== Ct;
4172
4172
  }
4173
4173
  function l() {
4174
- s() && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot start scroll listener when already active") : D()), i = Ze(window, [a]);
4174
+ s() && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot start scroll listener when already active") : j()), i = Ze(window, [a]);
4175
4175
  }
4176
4176
  function c() {
4177
- s() || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot stop scroll listener when not active") : D()), n.cancel(), i(), i = Ct;
4177
+ s() || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot stop scroll listener when not active") : j()), n.cancel(), i(), i = Ct;
4178
4178
  }
4179
4179
  return {
4180
4180
  start: l,
@@ -4222,7 +4222,7 @@ var Ig = function(t) {
4222
4222
  var s = Za(e, function(u) {
4223
4223
  return u.timerId === i;
4224
4224
  });
4225
- s === -1 && (process.env.NODE_ENV !== "production" ? D(!1, "Could not find timer") : D());
4225
+ s === -1 && (process.env.NODE_ENV !== "production" ? j(!1, "Could not find timer") : j());
4226
4226
  var l = e.splice(s, 1), c = l[0];
4227
4227
  c.callback();
4228
4228
  }, r = function(i) {
@@ -4277,7 +4277,7 @@ var Ig = function(t) {
4277
4277
  t(r, s), i.wasCalled() || n(a(r));
4278
4278
  }, kg = function(e, t) {
4279
4279
  var r = Pg(), n = null, a = function(f, m) {
4280
- n && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : D()), wr("onBeforeCapture", function() {
4280
+ n && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : j()), wr("onBeforeCapture", function() {
4281
4281
  var g = e().onBeforeCapture;
4282
4282
  if (g) {
4283
4283
  var b = {
@@ -4288,12 +4288,12 @@ var Ig = function(t) {
4288
4288
  }
4289
4289
  });
4290
4290
  }, i = function(f, m) {
4291
- n && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : D()), wr("onBeforeDragStart", function() {
4291
+ n && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : j()), wr("onBeforeDragStart", function() {
4292
4292
  var g = e().onBeforeDragStart;
4293
4293
  g && g(Jr(f, m));
4294
4294
  });
4295
4295
  }, s = function(f, m) {
4296
- n && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : D());
4296
+ n && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : j());
4297
4297
  var g = Jr(f, m);
4298
4298
  n = {
4299
4299
  mode: m,
@@ -4307,7 +4307,7 @@ var Ig = function(t) {
4307
4307
  });
4308
4308
  }, l = function(f, m) {
4309
4309
  var g = eo(m), b = Sn(m);
4310
- n || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot fire onDragMove when onDragStart has not been called") : D());
4310
+ n || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot fire onDragMove when onDragStart has not been called") : j());
4311
4311
  var v = !Rg(f, n.lastCritical);
4312
4312
  v && (n.lastCritical = f);
4313
4313
  var h = !Tg(n.lastLocation, g);
@@ -4325,9 +4325,9 @@ var Ig = function(t) {
4325
4325
  });
4326
4326
  }
4327
4327
  }, c = function() {
4328
- n || (process.env.NODE_ENV !== "production" ? D(!1, "Can only flush responders while dragging") : D()), r.flush();
4328
+ n || (process.env.NODE_ENV !== "production" ? j(!1, "Can only flush responders while dragging") : j()), r.flush();
4329
4329
  }, u = function(f) {
4330
- n || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : D()), n = null, wr("onDragEnd", function() {
4330
+ n || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : j()), n = null, wr("onDragEnd", function() {
4331
4331
  return qn(e().onDragEnd, f, t, cn.onDragEnd);
4332
4332
  });
4333
4333
  }, d = function() {
@@ -4385,7 +4385,7 @@ var Ig = function(t) {
4385
4385
  return;
4386
4386
  }
4387
4387
  var n = e.getState();
4388
- n.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot finish a drop animating when no drop is occurring") : D()), e.dispatch(so({
4388
+ n.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot finish a drop animating when no drop is occurring") : j()), e.dispatch(so({
4389
4389
  completed: n.completed
4390
4390
  }));
4391
4391
  };
@@ -4460,7 +4460,7 @@ var Ig = function(t) {
4460
4460
  if (n.type === "INITIAL_PUBLISH") {
4461
4461
  r(n);
4462
4462
  var a = t.getState();
4463
- a.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? D(!1, "Expected phase to be DRAGGING after INITIAL_PUBLISH") : D()), e.start(a);
4463
+ a.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? j(!1, "Expected phase to be DRAGGING after INITIAL_PUBLISH") : j()), e.start(a);
4464
4464
  return;
4465
4465
  }
4466
4466
  r(n), e.scroll(t.getState());
@@ -4540,7 +4540,7 @@ var zl = function(e) {
4540
4540
  return s;
4541
4541
  }, ql = function() {
4542
4542
  var e = document.documentElement;
4543
- return e || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find document.documentElement") : D()), e;
4543
+ return e || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot find document.documentElement") : j()), e;
4544
4544
  }, Yl = function() {
4545
4545
  var e = ql(), t = zl({
4546
4546
  scrollHeight: e.scrollHeight,
@@ -4606,17 +4606,17 @@ var Kg = function(e, t) {
4606
4606
  },
4607
4607
  registry: e
4608
4608
  }), a = function(m, g) {
4609
- e.droppable.exists(m) || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot update is enabled flag of Droppable " + m + " as it is not registered") : D()), r && t.updateDroppableIsEnabled({
4609
+ e.droppable.exists(m) || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot update is enabled flag of Droppable " + m + " as it is not registered") : j()), r && t.updateDroppableIsEnabled({
4610
4610
  id: m,
4611
4611
  isEnabled: g
4612
4612
  });
4613
4613
  }, i = function(m, g) {
4614
- r && (e.droppable.exists(m) || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot update isCombineEnabled flag of Droppable " + m + " as it is not registered") : D()), t.updateDroppableIsCombineEnabled({
4614
+ r && (e.droppable.exists(m) || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot update isCombineEnabled flag of Droppable " + m + " as it is not registered") : j()), t.updateDroppableIsCombineEnabled({
4615
4615
  id: m,
4616
4616
  isCombineEnabled: g
4617
4617
  }));
4618
4618
  }, s = function(m, g) {
4619
- r && (e.droppable.exists(m) || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot update the scroll on Droppable " + m + " as it is not registered") : D()), t.updateDroppableScroll({
4619
+ r && (e.droppable.exists(m) || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot update the scroll on Droppable " + m + " as it is not registered") : j()), t.updateDroppableScroll({
4620
4620
  id: m,
4621
4621
  newScroll: g
4622
4622
  }));
@@ -4631,11 +4631,11 @@ var Kg = function(e, t) {
4631
4631
  }), r.unsubscribe(), r = null;
4632
4632
  }
4633
4633
  }, u = function(m) {
4634
- r || (process.env.NODE_ENV !== "production" ? D(!1, "Should only be subscribed when a collection is occurring") : D());
4634
+ r || (process.env.NODE_ENV !== "production" ? j(!1, "Should only be subscribed when a collection is occurring") : j());
4635
4635
  var g = r.critical.draggable;
4636
4636
  m.type === "ADDITION" && Si(e, g, m.value) && n.add(m.value), m.type === "REMOVAL" && Si(e, g, m.value) && n.remove(m.value);
4637
4637
  }, d = function(m) {
4638
- r && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot start capturing critical dimensions as there is already a collection") : D());
4638
+ r && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot start capturing critical dimensions as there is already a collection") : j());
4639
4639
  var g = e.draggable.getById(m.draggableId), b = e.droppable.getById(g.descriptor.droppableId), v = {
4640
4640
  draggable: g.descriptor,
4641
4641
  droppable: b.descriptor
@@ -4667,7 +4667,7 @@ var Kg = function(e, t) {
4667
4667
  });
4668
4668
  }), Jg = function(t, r) {
4669
4669
  var n = Tt(Qg(r), function(a) {
4670
- return a.frame || (process.env.NODE_ENV !== "production" ? D(!1, "Invalid result") : D()), Al(a.frame.pageMarginBox)(t);
4670
+ return a.frame || (process.env.NODE_ENV !== "production" ? j(!1, "Invalid result") : j()), Al(a.frame.pageMarginBox)(t);
4671
4671
  });
4672
4672
  return n;
4673
4673
  }, Zg = function(e) {
@@ -4889,7 +4889,7 @@ var Kg = function(e, t) {
4889
4889
  }
4890
4890
  }, dv = function(e) {
4891
4891
  var t = e.scrollWindow, r = e.scrollDroppable, n = Tr(t), a = Tr(r), i = null, s = function(d) {
4892
- i || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot fluid scroll if not dragging") : D());
4892
+ i || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot fluid scroll if not dragging") : j());
4893
4893
  var p = i, f = p.shouldUseTimeDampening, m = p.dragStartTime;
4894
4894
  Pi({
4895
4895
  state: d,
@@ -4899,7 +4899,7 @@ var Kg = function(e, t) {
4899
4899
  shouldUseTimeDampening: f
4900
4900
  });
4901
4901
  }, l = function(d) {
4902
- Ur(), i && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot start auto scrolling when already started") : D());
4902
+ Ur(), i && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot start auto scrolling when already started") : j());
4903
4903
  var p = Date.now(), f = !1, m = function() {
4904
4904
  f = !0;
4905
4905
  };
@@ -4951,7 +4951,7 @@ var Kg = function(e, t) {
4951
4951
  var d = u.scrollJumpRequest;
4952
4952
  if (d) {
4953
4953
  var p = ze(u.impact);
4954
- p || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot perform a jump scroll when there is no destination") : D());
4954
+ p || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot perform a jump scroll when there is no destination") : j());
4955
4955
  var f = i(u.dimensions.droppables[p], d);
4956
4956
  if (f) {
4957
4957
  var m = u.viewport, g = s(u.isWindowScrollAllowed, m, f);
@@ -5071,9 +5071,9 @@ var Kg = function(e, t) {
5071
5071
  dropAnimating: Nr(s, "dropAnimating"),
5072
5072
  userCancel: Nr(s, "userCancel")
5073
5073
  };
5074
- }, qe = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Fa : q, Kn = function() {
5074
+ }, qe = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Fa : U, Kn = function() {
5075
5075
  var t = document.querySelector("head");
5076
- return t || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find the head to append a style to") : D()), t;
5076
+ return t || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot find the head to append a style to") : j()), t;
5077
5077
  }, Ai = function(t) {
5078
5078
  var r = document.createElement("style");
5079
5079
  return t && r.setAttribute("nonce", t), r.type = "text/css", r;
@@ -5083,18 +5083,18 @@ function hv(e, t) {
5083
5083
  return vv(e);
5084
5084
  }, [e]), n = ee(null), a = ee(null), i = Q(ke(function(p) {
5085
5085
  var f = a.current;
5086
- f || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot set dynamic style element if it is not set") : D()), f.textContent = p;
5086
+ f || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot set dynamic style element if it is not set") : j()), f.textContent = p;
5087
5087
  }), []), s = Q(function(p) {
5088
5088
  var f = n.current;
5089
- f || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot set dynamic style element if it is not set") : D()), f.textContent = p;
5089
+ f || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot set dynamic style element if it is not set") : j()), f.textContent = p;
5090
5090
  }, []);
5091
5091
  qe(function() {
5092
- !n.current && !a.current || (process.env.NODE_ENV !== "production" ? D(!1, "style elements already mounted") : D());
5092
+ !n.current && !a.current || (process.env.NODE_ENV !== "production" ? j(!1, "style elements already mounted") : j());
5093
5093
  var p = Ai(t), f = Ai(t);
5094
5094
  return n.current = p, a.current = f, p.setAttribute(ar + "-always", e), f.setAttribute(ar + "-dynamic", e), Kn().appendChild(p), Kn().appendChild(f), s(r.always), i(r.resting), function() {
5095
5095
  var m = function(b) {
5096
5096
  var v = b.current;
5097
- v || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot unmount ref as it is not set") : D()), Kn().removeChild(v), b.current = null;
5097
+ v || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot unmount ref as it is not set") : j()), Kn().removeChild(v), b.current = null;
5098
5098
  };
5099
5099
  m(n), m(a);
5100
5100
  };
@@ -5197,7 +5197,7 @@ function xv() {
5197
5197
  }
5198
5198
  function i(p) {
5199
5199
  var f = a(p);
5200
- return f || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find draggable entry with id [" + p + "]") : D()), f;
5200
+ return f || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot find draggable entry with id [" + p + "]") : j()), f;
5201
5201
  }
5202
5202
  var s = {
5203
5203
  register: function(f) {
@@ -5233,7 +5233,7 @@ function xv() {
5233
5233
  }
5234
5234
  function c(p) {
5235
5235
  var f = l(p);
5236
- return f || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find droppable entry with id [" + p + "]") : D()), f;
5236
+ return f || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot find droppable entry with id [" + p + "]") : j()), f;
5237
5237
  }
5238
5238
  var u = {
5239
5239
  register: function(f) {
@@ -5266,7 +5266,7 @@ function xv() {
5266
5266
  }
5267
5267
  function yv() {
5268
5268
  var e = fe(xv, []);
5269
- return q(function() {
5269
+ return U(function() {
5270
5270
  return function() {
5271
5271
  requestAnimationFrame(e.clean);
5272
5272
  };
@@ -5274,7 +5274,7 @@ function yv() {
5274
5274
  }
5275
5275
  var go = le.createContext(null), Lr = function() {
5276
5276
  var e = document.body;
5277
- return e || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot find document.body") : D()), e;
5277
+ return e || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot find document.body") : j()), e;
5278
5278
  }, wv = {
5279
5279
  position: "absolute",
5280
5280
  width: "1px",
@@ -5292,7 +5292,7 @@ function Dv(e) {
5292
5292
  var t = fe(function() {
5293
5293
  return Nv(e);
5294
5294
  }, [e]), r = ee(null);
5295
- q(function() {
5295
+ U(function() {
5296
5296
  var i = document.createElement("div");
5297
5297
  return r.current = i, i.id = t, i.setAttribute("aria-live", "assertive"), i.setAttribute("aria-atomic", "true"), ne(i.style, wv), Lr().appendChild(i), function() {
5298
5298
  setTimeout(function() {
@@ -5341,7 +5341,7 @@ function Ev(e) {
5341
5341
  uniqueId: n
5342
5342
  });
5343
5343
  }, [n, t]);
5344
- return q(function() {
5344
+ return U(function() {
5345
5345
  var s = document.createElement("div");
5346
5346
  return s.id = a, s.textContent = r, s.style.display = "none", Lr().appendChild(s), function() {
5347
5347
  var c = Lr();
@@ -5354,7 +5354,7 @@ var _n = le.createContext(null), Iv = {
5354
5354
  "react-dom": "^16.8.5 || ^17.0.0 || ^18.0.0"
5355
5355
  }, _v = /(\d+)\.(\d+)\.(\d+)/, Ri = function(t) {
5356
5356
  var r = _v.exec(t);
5357
- r == null && (process.env.NODE_ENV !== "production" ? D(!1, "Unable to parse React version " + t) : D());
5357
+ r == null && (process.env.NODE_ENV !== "production" ? j(!1, "Unable to parse React version " + t) : j());
5358
5358
  var n = Number(r[1]), a = Number(r[2]), i = Number(r[3]);
5359
5359
  return {
5360
5360
  major: n,
@@ -5403,7 +5403,7 @@ function ho(e) {
5403
5403
  }
5404
5404
  function qr(e, t) {
5405
5405
  ho(function() {
5406
- q(function() {
5406
+ U(function() {
5407
5407
  try {
5408
5408
  e();
5409
5409
  } catch (r) {
@@ -5423,7 +5423,7 @@ function Av() {
5423
5423
  }
5424
5424
  function bo(e) {
5425
5425
  var t = ee(e);
5426
- return q(function() {
5426
+ return U(function() {
5427
5427
  t.current = e;
5428
5428
  }), t;
5429
5429
  }
@@ -5436,14 +5436,14 @@ function Rv() {
5436
5436
  return s === e;
5437
5437
  }
5438
5438
  function n(s) {
5439
- e && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot claim lock as it is already claimed") : D());
5439
+ e && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot claim lock as it is already claimed") : j());
5440
5440
  var l = {
5441
5441
  abandon: s
5442
5442
  };
5443
5443
  return e = l, l;
5444
5444
  }
5445
5445
  function a() {
5446
- e || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot release lock when there is no lock") : D()), e = null;
5446
+ e || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot release lock when there is no lock") : j()), e = null;
5447
5447
  }
5448
5448
  function i() {
5449
5449
  e && (e.abandon(), a());
@@ -5488,7 +5488,7 @@ function qv(e) {
5488
5488
  s.preventDefault(), p.actions.move(d);
5489
5489
  return;
5490
5490
  }
5491
- p.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot be IDLE") : D());
5491
+ p.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot be IDLE") : j());
5492
5492
  var f = p.point;
5493
5493
  if (zv(f, d)) {
5494
5494
  s.preventDefault();
@@ -5547,7 +5547,7 @@ function qv(e) {
5547
5547
  eventName: "webkitmouseforcedown",
5548
5548
  fn: function(s) {
5549
5549
  var l = n();
5550
- if (l.type === "IDLE" && (process.env.NODE_ENV !== "production" ? D(!1, "Unexpected phase") : D()), l.actions.shouldRespectForcePress()) {
5550
+ if (l.type === "IDLE" && (process.env.NODE_ENV !== "production" ? j(!1, "Unexpected phase") : j()), l.actions.shouldRespectForcePress()) {
5551
5551
  t();
5552
5552
  return;
5553
5553
  }
@@ -5624,7 +5624,7 @@ function Yv(e) {
5624
5624
  });
5625
5625
  r.current = Ze(window, f, p);
5626
5626
  }, [l, s]), u = Q(function(p, f) {
5627
- t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? D(!1, "Expected to move from IDLE to PENDING drag") : D()), t.current = {
5627
+ t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? j(!1, "Expected to move from IDLE to PENDING drag") : j()), t.current = {
5628
5628
  type: "PENDING",
5629
5629
  point: f,
5630
5630
  actions: p
@@ -5725,7 +5725,7 @@ function Jv(e) {
5725
5725
  var c = !0, u = l.snapLift();
5726
5726
  t.current();
5727
5727
  function d() {
5728
- c || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot stop capturing a keyboard drag when not capturing") : D()), c = !1, t.current(), n();
5728
+ c || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot stop capturing a keyboard drag when not capturing") : j()), c = !1, t.current(), n();
5729
5729
  }
5730
5730
  t.current = Ze(window, Qv(u, d), {
5731
5731
  capture: !0,
@@ -5821,7 +5821,7 @@ function rh(e) {
5821
5821
  eventName: "touchforcechange",
5822
5822
  fn: function(i) {
5823
5823
  var s = n();
5824
- s.type === "IDLE" && (process.env.NODE_ENV, D());
5824
+ s.type === "IDLE" && (process.env.NODE_ENV, j());
5825
5825
  var l = i.touches[0];
5826
5826
  if (l) {
5827
5827
  var c = l.force >= eh;
@@ -5902,7 +5902,7 @@ function nh(e) {
5902
5902
  };
5903
5903
  }, [c, n, l]), d = Q(function() {
5904
5904
  var m = n();
5905
- m.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot start dragging from phase " + m.type) : D());
5905
+ m.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot start dragging from phase " + m.type) : j());
5906
5906
  var g = m.actions.fluidLift(m.point);
5907
5907
  a({
5908
5908
  type: "DRAGGING",
@@ -5910,7 +5910,7 @@ function nh(e) {
5910
5910
  hasMoved: !1
5911
5911
  });
5912
5912
  }, [n, a]), p = Q(function(m, g) {
5913
- n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? D(!1, "Expected to move from IDLE to PENDING drag") : D());
5913
+ n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? j(!1, "Expected to move from IDLE to PENDING drag") : j());
5914
5914
  var b = setTimeout(d, Zv);
5915
5915
  a({
5916
5916
  type: "PENDING",
@@ -5942,7 +5942,7 @@ function ah(e) {
5942
5942
  ho(function() {
5943
5943
  var t = bo(e);
5944
5944
  qr(function() {
5945
- t.current.length !== e.length && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot change the amount of sensor hooks after mounting") : D(!1));
5945
+ t.current.length !== e.length && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot change the amount of sensor hooks after mounting") : j(!1));
5946
5946
  });
5947
5947
  });
5948
5948
  }
@@ -6063,24 +6063,24 @@ function vh(e) {
6063
6063
  function g() {
6064
6064
  return t.isActive(p);
6065
6065
  }
6066
- function b(j, C) {
6066
+ function b(C, S) {
6067
6067
  en({
6068
- expected: j,
6068
+ expected: C,
6069
6069
  phase: f,
6070
6070
  isLockActive: g,
6071
6071
  shouldWarn: !0
6072
- }) && n.dispatch(C());
6072
+ }) && n.dispatch(S());
6073
6073
  }
6074
6074
  var v = b.bind(null, "DRAGGING");
6075
- function h(j) {
6076
- function C() {
6075
+ function h(C) {
6076
+ function S() {
6077
6077
  t.release(), f = "COMPLETED";
6078
6078
  }
6079
- f !== "PRE_DRAG" && (C(), f !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot lift in phase " + f) : D())), n.dispatch(tg(j.liftActionArgs)), f = "DRAGGING";
6080
- function O(E, T) {
6079
+ f !== "PRE_DRAG" && (S(), f !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot lift in phase " + f) : j())), n.dispatch(tg(C.liftActionArgs)), f = "DRAGGING";
6080
+ function _(E, T) {
6081
6081
  if (T === void 0 && (T = {
6082
6082
  shouldBlockNextClick: !1
6083
- }), j.cleanup(), T.shouldBlockNextClick) {
6083
+ }), C.cleanup(), T.shouldBlockNextClick) {
6084
6084
  var M = Ze(window, [{
6085
6085
  eventName: "click",
6086
6086
  fn: gh,
@@ -6092,7 +6092,7 @@ function vh(e) {
6092
6092
  }]);
6093
6093
  setTimeout(M);
6094
6094
  }
6095
- C(), n.dispatch(Gl({
6095
+ S(), n.dispatch(Gl({
6096
6096
  reason: E
6097
6097
  }));
6098
6098
  }
@@ -6107,39 +6107,39 @@ function vh(e) {
6107
6107
  },
6108
6108
  shouldRespectForcePress: m,
6109
6109
  drop: function(T) {
6110
- return O("DROP", T);
6110
+ return _("DROP", T);
6111
6111
  },
6112
6112
  cancel: function(T) {
6113
- return O("CANCEL", T);
6113
+ return _("CANCEL", T);
6114
6114
  }
6115
- }, j.actions);
6115
+ }, C.actions);
6116
6116
  }
6117
- function w(j) {
6118
- var C = Tr(function(E) {
6117
+ function w(C) {
6118
+ var S = Tr(function(E) {
6119
6119
  v(function() {
6120
6120
  return $l({
6121
6121
  client: E
6122
6122
  });
6123
6123
  });
6124
- }), O = h({
6124
+ }), _ = h({
6125
6125
  liftActionArgs: {
6126
6126
  id: i,
6127
- clientSelection: j,
6127
+ clientSelection: C,
6128
6128
  movementMode: "FLUID"
6129
6129
  },
6130
6130
  cleanup: function() {
6131
- return C.cancel();
6131
+ return S.cancel();
6132
6132
  },
6133
6133
  actions: {
6134
- move: C
6134
+ move: S
6135
6135
  }
6136
6136
  });
6137
- return ne({}, O, {
6138
- move: C
6137
+ return ne({}, _, {
6138
+ move: S
6139
6139
  });
6140
6140
  }
6141
6141
  function N() {
6142
- var j = {
6142
+ var C = {
6143
6143
  moveUp: function() {
6144
6144
  return v(dg);
6145
6145
  },
@@ -6160,17 +6160,17 @@ function vh(e) {
6160
6160
  movementMode: "SNAP"
6161
6161
  },
6162
6162
  cleanup: Ct,
6163
- actions: j
6163
+ actions: C
6164
6164
  });
6165
6165
  }
6166
6166
  function y() {
6167
- var j = en({
6167
+ var C = en({
6168
6168
  expected: "PRE_DRAG",
6169
6169
  phase: f,
6170
6170
  isLockActive: g,
6171
6171
  shouldWarn: !0
6172
6172
  });
6173
- j && t.release();
6173
+ C && t.release();
6174
6174
  }
6175
6175
  var x = {
6176
6176
  isActive: function() {
@@ -6252,7 +6252,7 @@ var xh = function(t) {
6252
6252
  };
6253
6253
  };
6254
6254
  function Dr(e) {
6255
- return e.current || (process.env.NODE_ENV !== "production" ? D(!1, "Could not find store from lazy ref") : D()), e.current;
6255
+ return e.current || (process.env.NODE_ENV !== "production" ? j(!1, "Could not find store from lazy ref") : j()), e.current;
6256
6256
  }
6257
6257
  function yh(e) {
6258
6258
  var t = e.contextId, r = e.setCallbacks, n = e.sensors, a = e.nonce, i = e.dragHandleUsageInstructions, s = ee(null);
@@ -6305,31 +6305,31 @@ function yh(e) {
6305
6305
  };
6306
6306
  }, [y, N]);
6307
6307
  r(x);
6308
- var j = Q(function(E) {
6308
+ var C = Q(function(E) {
6309
6309
  return Kl(Dr(s).getState(), E);
6310
- }, []), C = Q(function() {
6310
+ }, []), S = Q(function() {
6311
6311
  return Ft(Dr(s).getState());
6312
- }, []), O = fe(function() {
6312
+ }, []), _ = fe(function() {
6313
6313
  return {
6314
6314
  marshal: b,
6315
6315
  focus: h,
6316
6316
  contextId: t,
6317
- canLift: j,
6318
- isMovementAllowed: C,
6317
+ canLift: C,
6318
+ isMovementAllowed: S,
6319
6319
  dragHandleUsageInstructionsId: d,
6320
6320
  registry: g
6321
6321
  };
6322
- }, [t, b, d, h, j, C, g]);
6322
+ }, [t, b, d, h, C, S, g]);
6323
6323
  return bh({
6324
6324
  contextId: t,
6325
6325
  store: w,
6326
6326
  registry: g,
6327
6327
  customSensors: n,
6328
6328
  enableDefaultSensors: e.enableDefaultSensors !== !1
6329
- }), q(function() {
6329
+ }), U(function() {
6330
6330
  return N;
6331
6331
  }, [N]), le.createElement(_n.Provider, {
6332
- value: O
6332
+ value: _
6333
6333
  }, le.createElement(sl, {
6334
6334
  context: go,
6335
6335
  store: w
@@ -6377,7 +6377,7 @@ var yo = function(t) {
6377
6377
  if (process.env.NODE_ENV === "production")
6378
6378
  return !1;
6379
6379
  var t = Lr(), r = document.documentElement;
6380
- if (r || (process.env.NODE_ENV, D()), !sc(t))
6380
+ if (r || (process.env.NODE_ENV, j()), !sc(t))
6381
6381
  return !1;
6382
6382
  var n = window.getComputedStyle(r), a = {
6383
6383
  overflowX: n.overflowX,
@@ -6515,7 +6515,7 @@ var yo = function(t) {
6515
6515
  };
6516
6516
  function yn(e) {
6517
6517
  var t = H(e);
6518
- return t || (process.env.NODE_ENV !== "production" ? D(!1, "Could not find required context") : D()), t;
6518
+ return t || (process.env.NODE_ENV !== "production" ? j(!1, "Could not find required context") : j()), t;
6519
6519
  }
6520
6520
  var tn = function(t) {
6521
6521
  return t && t.env.closestScrollable || null;
@@ -6529,12 +6529,12 @@ function Mh(e) {
6529
6529
  };
6530
6530
  }, [e.droppableId, e.mode, e.type]), c = ee(l), u = fe(function() {
6531
6531
  return ke(function(y, x) {
6532
- t.current || (process.env.NODE_ENV !== "production" ? D(!1, "Can only update scroll when dragging") : D());
6533
- var j = {
6532
+ t.current || (process.env.NODE_ENV !== "production" ? j(!1, "Can only update scroll when dragging") : j());
6533
+ var C = {
6534
6534
  x: y,
6535
6535
  y: x
6536
6536
  };
6537
- i.updateDroppableScroll(l.id, j);
6537
+ i.updateDroppableScroll(l.id, C);
6538
6538
  });
6539
6539
  }, [l.id, i]), d = Q(function() {
6540
6540
  var y = t.current;
@@ -6546,48 +6546,48 @@ function Mh(e) {
6546
6546
  return Tr(p);
6547
6547
  }, [p]), m = Q(function() {
6548
6548
  var y = t.current, x = tn(y);
6549
- y && x || (process.env.NODE_ENV !== "production" ? D(!1, "Could not find scroll options while scrolling") : D());
6550
- var j = y.scrollOptions;
6551
- if (j.shouldPublishImmediately) {
6549
+ y && x || (process.env.NODE_ENV !== "production" ? j(!1, "Could not find scroll options while scrolling") : j());
6550
+ var C = y.scrollOptions;
6551
+ if (C.shouldPublishImmediately) {
6552
6552
  p();
6553
6553
  return;
6554
6554
  }
6555
6555
  f();
6556
6556
  }, [f, p]), g = Q(function(y, x) {
6557
- t.current && (process.env.NODE_ENV !== "production" ? D(!1, "Cannot collect a droppable while a drag is occurring") : D());
6558
- var j = s.current, C = j.getDroppableRef();
6559
- C || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot collect without a droppable ref") : D());
6560
- var O = Ph(C), E = {
6561
- ref: C,
6557
+ t.current && (process.env.NODE_ENV !== "production" ? j(!1, "Cannot collect a droppable while a drag is occurring") : j());
6558
+ var C = s.current, S = C.getDroppableRef();
6559
+ S || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot collect without a droppable ref") : j());
6560
+ var _ = Ph(S), E = {
6561
+ ref: S,
6562
6562
  descriptor: l,
6563
- env: O,
6563
+ env: _,
6564
6564
  scrollOptions: x
6565
6565
  };
6566
6566
  t.current = E;
6567
6567
  var T = Rh({
6568
- ref: C,
6568
+ ref: S,
6569
6569
  descriptor: l,
6570
- env: O,
6570
+ env: _,
6571
6571
  windowScroll: y,
6572
- direction: j.direction,
6573
- isDropDisabled: j.isDropDisabled,
6574
- isCombineEnabled: j.isCombineEnabled,
6575
- shouldClipSubject: !j.ignoreContainerClipping
6576
- }), M = O.closestScrollable;
6572
+ direction: C.direction,
6573
+ isDropDisabled: C.isDropDisabled,
6574
+ isCombineEnabled: C.isCombineEnabled,
6575
+ shouldClipSubject: !C.ignoreContainerClipping
6576
+ }), M = _.closestScrollable;
6577
6577
  return M && (M.setAttribute(Ti.contextId, r.contextId), M.addEventListener("scroll", m, Li(E.scrollOptions)), process.env.NODE_ENV !== "production" && _h(M)), T;
6578
6578
  }, [r.contextId, l, m, s]), b = Q(function() {
6579
6579
  var y = t.current, x = tn(y);
6580
- return y && x || (process.env.NODE_ENV !== "production" ? D(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : D()), Ca(x);
6580
+ return y && x || (process.env.NODE_ENV !== "production" ? j(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : j()), Ca(x);
6581
6581
  }, []), v = Q(function() {
6582
6582
  var y = t.current;
6583
- y || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot stop drag when no active drag") : D());
6583
+ y || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot stop drag when no active drag") : j());
6584
6584
  var x = tn(y);
6585
6585
  t.current = null, x && (f.cancel(), x.removeAttribute(Ti.contextId), x.removeEventListener("scroll", m, Li(y.scrollOptions)));
6586
6586
  }, [m, f]), h = Q(function(y) {
6587
6587
  var x = t.current;
6588
- x || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot scroll when there is no drag") : D());
6589
- var j = tn(x);
6590
- j || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot scroll a droppable with no closest scrollable") : D()), j.scrollTop += y.y, j.scrollLeft += y.x;
6588
+ x || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot scroll when there is no drag") : j());
6589
+ var C = tn(x);
6590
+ C || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot scroll a droppable with no closest scrollable") : j()), C.scrollTop += y.y, C.scrollLeft += y.x;
6591
6591
  }, []), w = fe(function() {
6592
6592
  return {
6593
6593
  getDimensionAndWatchScroll: g,
@@ -6650,7 +6650,7 @@ function Vh(e) {
6650
6650
  var t = ee(null), r = Q(function() {
6651
6651
  t.current && (clearTimeout(t.current), t.current = null);
6652
6652
  }, []), n = e.animate, a = e.onTransitionEnd, i = e.onClose, s = e.contextId, l = R(e.animate === "open"), c = l[0], u = l[1];
6653
- q(function() {
6653
+ U(function() {
6654
6654
  return c ? n !== "open" ? (r(), u(!1), Jn) : t.current ? Jn : (t.current = setTimeout(function() {
6655
6655
  t.current = null, u(!1);
6656
6656
  }), r) : Jn;
@@ -6671,12 +6671,12 @@ function Vh(e) {
6671
6671
  }
6672
6672
  var $h = le.memo(Vh), wo = le.createContext(null);
6673
6673
  function cc(e) {
6674
- e && zr(e) || (process.env.NODE_ENV !== "production" ? D(!1, `
6674
+ e && zr(e) || (process.env.NODE_ENV !== "production" ? j(!1, `
6675
6675
  provided.innerRef has not been provided with a HTMLElement.
6676
6676
 
6677
6677
  You can find a guide on using the innerRef callback functions at:
6678
6678
  https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md
6679
- `) : D());
6679
+ `) : j());
6680
6680
  }
6681
6681
  function Zn(e) {
6682
6682
  return typeof e == "boolean";
@@ -6688,10 +6688,10 @@ function ea(e, t) {
6688
6688
  }
6689
6689
  var Gh = [function(t) {
6690
6690
  var r = t.props;
6691
- r.droppableId || (process.env.NODE_ENV !== "production" ? D(!1, "A Droppable requires a droppableId prop") : D()), typeof r.droppableId != "string" && (process.env.NODE_ENV !== "production" ? D(!1, "A Droppable requires a [string] droppableId. Provided: [" + typeof r.droppableId + "]") : D());
6691
+ r.droppableId || (process.env.NODE_ENV !== "production" ? j(!1, "A Droppable requires a droppableId prop") : j()), typeof r.droppableId != "string" && (process.env.NODE_ENV !== "production" ? j(!1, "A Droppable requires a [string] droppableId. Provided: [" + typeof r.droppableId + "]") : j());
6692
6692
  }, function(t) {
6693
6693
  var r = t.props;
6694
- Zn(r.isDropDisabled) || (process.env.NODE_ENV !== "production" ? D(!1, "isDropDisabled must be a boolean") : D()), Zn(r.isCombineEnabled) || (process.env.NODE_ENV !== "production" ? D(!1, "isCombineEnabled must be a boolean") : D()), Zn(r.ignoreContainerClipping) || (process.env.NODE_ENV !== "production" ? D(!1, "ignoreContainerClipping must be a boolean") : D());
6694
+ Zn(r.isDropDisabled) || (process.env.NODE_ENV !== "production" ? j(!1, "isDropDisabled must be a boolean") : j()), Zn(r.isCombineEnabled) || (process.env.NODE_ENV !== "production" ? j(!1, "isCombineEnabled must be a boolean") : j()), Zn(r.ignoreContainerClipping) || (process.env.NODE_ENV !== "production" ? j(!1, "ignoreContainerClipping must be a boolean") : j());
6695
6695
  }, function(t) {
6696
6696
  var r = t.getDroppableRef;
6697
6697
  cc(r());
@@ -6709,10 +6709,10 @@ var Gh = [function(t) {
6709
6709
  }
6710
6710
  }], Uh = [function(t) {
6711
6711
  var r = t.props;
6712
- r.renderClone || (process.env.NODE_ENV !== "production" ? D(!1, "Must provide a clone render function (renderClone) for virtual lists") : D());
6712
+ r.renderClone || (process.env.NODE_ENV !== "production" ? j(!1, "Must provide a clone render function (renderClone) for virtual lists") : j());
6713
6713
  }, function(t) {
6714
6714
  var r = t.getPlaceholderRef;
6715
- r() && (process.env.NODE_ENV !== "production" ? D(!1, "Expected virtual list to not have a placeholder") : D());
6715
+ r() && (process.env.NODE_ENV !== "production" ? j(!1, "Expected virtual list to not have a placeholder") : j());
6716
6716
  }];
6717
6717
  function Hh(e) {
6718
6718
  qr(function() {
@@ -6826,7 +6826,7 @@ function eb(e) {
6826
6826
  };
6827
6827
  }, [i, l, s]), u = Q(function(m) {
6828
6828
  var g = a();
6829
- return g || (process.env.NODE_ENV !== "production" ? D(!1, "Cannot get dimension when no ref is set") : D()), Zh(r, g, m);
6829
+ return g || (process.env.NODE_ENV !== "production" ? j(!1, "Cannot get dimension when no ref is set") : j()), Zh(r, g, m);
6830
6830
  }, [r, a]), d = fe(function() {
6831
6831
  return {
6832
6832
  uniqueId: t,
@@ -6854,15 +6854,15 @@ function tb(e, t, r) {
6854
6854
  return "Draggable[id: " + i + "]: ";
6855
6855
  }
6856
6856
  var a = e.draggableId;
6857
- a || (process.env.NODE_ENV !== "production" ? D(!1, "Draggable requires a draggableId") : D(!1)), typeof a != "string" && (process.env.NODE_ENV !== "production" ? D(!1, `Draggable requires a [string] draggableId.
6858
- Provided: [type: ` + typeof a + "] (value: " + a + ")") : D(!1)), em(e.index) || (process.env.NODE_ENV !== "production" ? D(!1, n(a) + " requires an integer index prop") : D(!1)), e.mapped.type !== "DRAGGING" && (cc(r()), e.isEnabled && (ec(t, a) || (process.env.NODE_ENV !== "production" ? D(!1, n(a) + " Unable to find drag handle") : D(!1))));
6857
+ a || (process.env.NODE_ENV !== "production" ? j(!1, "Draggable requires a draggableId") : j(!1)), typeof a != "string" && (process.env.NODE_ENV !== "production" ? j(!1, `Draggable requires a [string] draggableId.
6858
+ Provided: [type: ` + typeof a + "] (value: " + a + ")") : j(!1)), em(e.index) || (process.env.NODE_ENV !== "production" ? j(!1, n(a) + " requires an integer index prop") : j(!1)), e.mapped.type !== "DRAGGING" && (cc(r()), e.isEnabled && (ec(t, a) || (process.env.NODE_ENV !== "production" ? j(!1, n(a) + " Unable to find drag handle") : j(!1))));
6859
6859
  });
6860
6860
  }
6861
6861
  function rb(e) {
6862
6862
  ho(function() {
6863
6863
  var t = ee(e);
6864
6864
  qr(function() {
6865
- e !== t.current && (process.env.NODE_ENV !== "production" ? D(!1, "Draggable isClone prop value changed during component life") : D(!1));
6865
+ e !== t.current && (process.env.NODE_ENV !== "production" ? j(!1, "Draggable isClone prop value changed during component life") : j(!1));
6866
6866
  }, [e]);
6867
6867
  });
6868
6868
  }
@@ -6905,10 +6905,10 @@ function ab(e) {
6905
6905
  draggable: !1,
6906
6906
  onDragStart: nb
6907
6907
  } : null;
6908
- }, [i, s, m, g]), j = Q(function(E) {
6908
+ }, [i, s, m, g]), C = Q(function(E) {
6909
6909
  w.type === "DRAGGING" && w.dropping && E.propertyName === "transform" && N();
6910
- }, [N, w]), C = fe(function() {
6911
- var E = Jh(w), T = w.type === "DRAGGING" && w.dropping ? j : null, M = {
6910
+ }, [N, w]), S = fe(function() {
6911
+ var E = Jh(w), T = w.type === "DRAGGING" && w.dropping ? C : null, M = {
6912
6912
  innerRef: r,
6913
6913
  draggableProps: {
6914
6914
  "data-rbd-draggable-context-id": i,
@@ -6919,7 +6919,7 @@ function ab(e) {
6919
6919
  dragHandleProps: x
6920
6920
  };
6921
6921
  return M;
6922
- }, [i, x, m, w, j, r]), O = fe(function() {
6922
+ }, [i, x, m, w, C, r]), _ = fe(function() {
6923
6923
  return {
6924
6924
  draggableId: p.id,
6925
6925
  type: p.type,
@@ -6929,7 +6929,7 @@ function ab(e) {
6929
6929
  }
6930
6930
  };
6931
6931
  }, [p.droppableId, p.id, p.index, p.type]);
6932
- return f(C, w.snapshot, O);
6932
+ return f(S, w.snapshot, _);
6933
6933
  }
6934
6934
  var dc = function(e, t) {
6935
6935
  return e === t;
@@ -7099,7 +7099,7 @@ function fb(e) {
7099
7099
  }
7100
7100
  function mb(e) {
7101
7101
  var t = H(_n);
7102
- t || (process.env.NODE_ENV !== "production" ? D(!1, "Could not find app context") : D());
7102
+ t || (process.env.NODE_ENV !== "production" ? j(!1, "Could not find app context") : j());
7103
7103
  var r = t.contextId, n = t.isMovementAllowed, a = ee(null), i = ee(null), s = e.children, l = e.droppableId, c = e.type, u = e.mode, d = e.direction, p = e.ignoreContainerClipping, f = e.isDropDisabled, m = e.isCombineEnabled, g = e.snapshot, b = e.useClone, v = e.updateViewportMaxScroll, h = e.getContainerForClone, w = Q(function() {
7104
7104
  return a.current;
7105
7105
  }, []), N = Q(function(V) {
@@ -7114,7 +7114,7 @@ function mb(e) {
7114
7114
  getDroppableRef: w,
7115
7115
  getPlaceholderRef: y
7116
7116
  });
7117
- var j = Q(function() {
7117
+ var C = Q(function() {
7118
7118
  n() && v({
7119
7119
  maxScroll: Yl()
7120
7120
  });
@@ -7129,29 +7129,29 @@ function mb(e) {
7129
7129
  ignoreContainerClipping: p,
7130
7130
  getDroppableRef: w
7131
7131
  });
7132
- var C = le.createElement(zh, {
7132
+ var S = le.createElement(zh, {
7133
7133
  on: e.placeholder,
7134
7134
  shouldAnimate: e.shouldAnimatePlaceholder
7135
7135
  }, function(V) {
7136
- var S = V.onClose, _ = V.data, $ = V.animate;
7136
+ var D = V.onClose, O = V.data, G = V.animate;
7137
7137
  return le.createElement($h, {
7138
- placeholder: _,
7139
- onClose: S,
7138
+ placeholder: O,
7139
+ onClose: D,
7140
7140
  innerRef: x,
7141
- animate: $,
7141
+ animate: G,
7142
7142
  contextId: r,
7143
- onTransitionEnd: j
7143
+ onTransitionEnd: C
7144
7144
  });
7145
- }), O = fe(function() {
7145
+ }), _ = fe(function() {
7146
7146
  return {
7147
7147
  innerRef: N,
7148
- placeholder: C,
7148
+ placeholder: S,
7149
7149
  droppableProps: {
7150
7150
  "data-rbd-droppable-id": l,
7151
7151
  "data-rbd-droppable-context-id": r
7152
7152
  }
7153
7153
  };
7154
- }, [r, l, C, N]), E = b ? b.dragging.draggableId : null, T = fe(function() {
7154
+ }, [r, l, S, N]), E = b ? b.dragging.draggableId : null, T = fe(function() {
7155
7155
  return {
7156
7156
  droppableId: l,
7157
7157
  type: c,
@@ -7161,21 +7161,21 @@ function mb(e) {
7161
7161
  function M() {
7162
7162
  if (!b)
7163
7163
  return null;
7164
- var V = b.dragging, S = b.render, _ = le.createElement(fc, {
7164
+ var V = b.dragging, D = b.render, O = le.createElement(fc, {
7165
7165
  draggableId: V.draggableId,
7166
7166
  index: V.source.index,
7167
7167
  isClone: !0,
7168
7168
  isEnabled: !0,
7169
7169
  shouldRespectForcePress: !1,
7170
7170
  canDragInteractiveElements: !0
7171
- }, function($, k) {
7172
- return S($, k, V);
7171
+ }, function(G, B) {
7172
+ return D(G, B, V);
7173
7173
  });
7174
- return Or.createPortal(_, h());
7174
+ return Or.createPortal(O, h());
7175
7175
  }
7176
7176
  return le.createElement(wo.Provider, {
7177
7177
  value: T
7178
- }, s(O, g), M());
7178
+ }, s(_, g), M());
7179
7179
  }
7180
7180
  var ta = function(t, r) {
7181
7181
  return t === r.droppable.type;
@@ -7268,7 +7268,7 @@ var ta = function(t, r) {
7268
7268
  updateViewportMaxScroll: cg
7269
7269
  };
7270
7270
  function hb() {
7271
- return document.body || (process.env.NODE_ENV !== "production" ? D(!1, "document.body is not ready") : D()), document.body;
7271
+ return document.body || (process.env.NODE_ENV !== "production" ? j(!1, "document.body is not ready") : j()), document.body;
7272
7272
  }
7273
7273
  var bb = {
7274
7274
  mode: "standard",
@@ -7403,7 +7403,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7403
7403
  backgroundSize: "contain"
7404
7404
  } }) : /* @__PURE__ */ o.jsx("img", { ...s, alt: t ?? "", src: e ?? a }), Ib = ({ children: e, ...t }) => {
7405
7405
  const [r, n] = R(!1);
7406
- return q(() => {
7406
+ return U(() => {
7407
7407
  const a = requestAnimationFrame(() => n(!0));
7408
7408
  return () => {
7409
7409
  cancelAnimationFrame(a), n(!1);
@@ -7432,13 +7432,13 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7432
7432
  right: Gb
7433
7433
  }, Wb = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: i, onUploadPhotos: s, photoActions: l, baseUrl: c, customToken: u, placeholder: d, ImgComponent: p = hc, onChangeOrder: f }) => {
7434
7434
  const m = du(), [g, b] = R(r);
7435
- q(() => {
7435
+ U(() => {
7436
7436
  b(r);
7437
7437
  }, [r]);
7438
7438
  const [v, h] = R(n), w = g.at(v), N = v > 0, y = v < g.length - 1;
7439
- q(() => {
7439
+ U(() => {
7440
7440
  e && h(n);
7441
- }, [n, e]), q(() => {
7441
+ }, [n, e]), U(() => {
7442
7442
  v >= g.length && h(g.length - 1);
7443
7443
  }, [g, v]);
7444
7444
  const x = P((E) => {
@@ -7453,17 +7453,17 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7453
7453
  E.stopPropagation(), t();
7454
7454
  break;
7455
7455
  }
7456
- }, [y, N, t]), j = (E, T) => {
7456
+ }, [y, N, t]), C = (E, T) => {
7457
7457
  const M = Array.from(g), [V] = M.splice(E, 1);
7458
7458
  return M.splice(T, 0, V), M;
7459
- }, C = (E) => {
7459
+ }, S = (E) => {
7460
7460
  if (!E.destination)
7461
7461
  return;
7462
- const T = j(E.source.index, E.destination.index);
7462
+ const T = C(E.source.index, E.destination.index);
7463
7463
  f && f(E.draggableId, E.destination.index), b(T);
7464
7464
  };
7465
7465
  md(x);
7466
- const O = gd({
7466
+ const _ = gd({
7467
7467
  onSwipedLeft: (E) => {
7468
7468
  E.velocity > 0.8 && y && h((T) => T + 1);
7469
7469
  },
@@ -7476,7 +7476,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7476
7476
  /* @__PURE__ */ o.jsx(vd, { show: e, onClick: t }),
7477
7477
  /* @__PURE__ */ o.jsx("div", { className: I("luminus-lightbox rounded shadow", Fe.lightbox, {
7478
7478
  [Fe.show]: e
7479
- }), ...O, children: e && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
7479
+ }), ..._, children: e && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
7480
7480
  /* @__PURE__ */ o.jsxs("div", { className: Fe.header, children: [
7481
7481
  /* @__PURE__ */ o.jsxs("div", { className: I("rounded", Fe.photoActions), children: [
7482
7482
  s && /* @__PURE__ */ o.jsx(Ds, { accept: ".jpg,.jpeg,.png", onUpload: (E) => {
@@ -7496,24 +7496,24 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7496
7496
  ] }),
7497
7497
  /* @__PURE__ */ o.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ o.jsx(Ot, { style: { fontSize: "32px" } }) })
7498
7498
  ] }),
7499
- g.length === 0 && /* @__PURE__ */ o.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ o.jsx(Y, { variant: "body", children: i ?? "No photos available" }) }),
7499
+ g.length === 0 && /* @__PURE__ */ o.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ o.jsx(q, { variant: "body", children: i ?? "No photos available" }) }),
7500
7500
  w && /* @__PURE__ */ o.jsxs("div", { className: Fe.photoContainer, children: [
7501
7501
  /* @__PURE__ */ o.jsx("div", { role: N ? "button" : void 0, className: I("align-items-start", Fe.navButton, Fe.left), onClick: () => N && h((E) => E - 1), children: N && /* @__PURE__ */ o.jsx(Ta, { style: { fontSize: "40px" } }) }),
7502
7502
  /* @__PURE__ */ o.jsx(p, { src: w.lgSrc, alt: w.alt, className: I("rounded", Fe.photo), baseUrl: c, customToken: u, placeholder: d, renderAsDivBg: !0 }),
7503
7503
  /* @__PURE__ */ o.jsx("div", { role: y ? "button" : void 0, className: I("align-items-end", Fe.navButton, Fe.right), onClick: () => y && h((E) => E + 1), children: y && /* @__PURE__ */ o.jsx(Aa, { style: { fontSize: "40px" } }) })
7504
7504
  ] }),
7505
- /* @__PURE__ */ o.jsx("div", { className: I("d-flex justify-content-center", Fe.photosPreviewContainer), children: /* @__PURE__ */ o.jsx(Dh, { onDragEnd: C, children: /* @__PURE__ */ o.jsx(Ib, { droppableId: "droppable", direction: "horizontal", children: (E) => /* @__PURE__ */ o.jsxs("div", { ...E.droppableProps, ref: E.innerRef, className: Fe.photosPreview, children: [
7505
+ /* @__PURE__ */ o.jsx("div", { className: I("d-flex justify-content-center", Fe.photosPreviewContainer), children: /* @__PURE__ */ o.jsx(Dh, { onDragEnd: S, children: /* @__PURE__ */ o.jsx(Ib, { droppableId: "droppable", direction: "horizontal", children: (E) => /* @__PURE__ */ o.jsxs("div", { ...E.droppableProps, ref: E.innerRef, className: Fe.photosPreview, children: [
7506
7506
  g.map((T, M) => /* @__PURE__ */ o.jsx(fb, { draggableId: T.id, index: M, isDragDisabled: f === void 0, children: m((V) => {
7507
- var S;
7507
+ var D;
7508
7508
  return /* @__PURE__ */ o.jsxs("div", { ref: V.innerRef, ...V.draggableProps, ...V.dragHandleProps, role: "button", onClick: () => h(M), className: I(Fe.lightboxDraggablePhoto), children: [
7509
7509
  /* @__PURE__ */ o.jsx(p, { role: M !== v ? "button" : void 0, src: T.smSrc, alt: T.alt, className: I("rounded", Fe.photo, {
7510
7510
  [Fe.selected]: M === v
7511
7511
  }), baseUrl: c, customToken: u, placeholder: d }, T.id),
7512
7512
  T.isDefault || T.customIndicators && T.customIndicators.length > 0 ? /* @__PURE__ */ o.jsxs("div", { className: I(Fe.indicators, "gap-1"), children: [
7513
7513
  T.isDefault && /* @__PURE__ */ o.jsx("div", { className: "text-primary", children: /* @__PURE__ */ o.jsx(hd, {}) }),
7514
- (S = T.customIndicators) == null ? void 0 : S.map((_, $) => (
7514
+ (D = T.customIndicators) == null ? void 0 : D.map((O, G) => (
7515
7515
  // eslint-disable-next-line react/no-array-index-key
7516
- /* @__PURE__ */ o.jsx("div", { className: _.className, children: _.content }, $)
7516
+ /* @__PURE__ */ o.jsx("div", { className: O.className, children: O.content }, G)
7517
7517
  ))
7518
7518
  ] }) : null
7519
7519
  ] });
@@ -7524,7 +7524,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7524
7524
  ] });
7525
7525
  }, Ub = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: n, photoActions: a, baseUrl: i, customToken: s, placeholder: l, ImgComponent: c = hc, noLightboxOnlyButtonOnEmpty: u = !1, hideLightbox: d = !1, onChangeOrder: p }) => {
7526
7526
  const [f, m] = R(null), g = f !== null ? e[f] : null, [b, v] = R(!1);
7527
- return q(() => {
7527
+ return U(() => {
7528
7528
  if (e.length === 0) {
7529
7529
  m(null);
7530
7530
  return;
@@ -7577,7 +7577,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7577
7577
  }, [a, e]);
7578
7578
  return /* @__PURE__ */ o.jsxs("div", { className: I("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !n }, ra.item, ra[`level-${e}`]), children: [
7579
7579
  !n && /* @__PURE__ */ o.jsx("div", { className: I(ra.typeIcon), children: r ?? i() }),
7580
- /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "w-100", children: t })
7580
+ /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "w-100", children: t })
7581
7581
  ] });
7582
7582
  }, RN = ({ version: e }) => /* @__PURE__ */ o.jsx("div", { className: "rounded", style: {
7583
7583
  position: "fixed",
@@ -7587,7 +7587,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7587
7587
  backgroundColor: "rgba(255, 255, 255, 0.5)",
7588
7588
  padding: "4px",
7589
7589
  pointerEvents: "all"
7590
- }, children: /* @__PURE__ */ o.jsxs(Y, { variant: "caption", className: "w-100 text-end", children: [
7590
+ }, children: /* @__PURE__ */ o.jsxs(q, { variant: "caption", className: "w-100 text-end", children: [
7591
7591
  "verze ",
7592
7592
  e
7593
7593
  ] }) }), Jb = "_submit-container_j8pmc_1", Zb = "_spacer_j8pmc_14", Gi = {
@@ -7612,16 +7612,16 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7612
7612
  "step-icon": "_step-icon_g1754_14",
7613
7613
  stepIcon: sx
7614
7614
  }, lx = ({ steps: e, dontSort: t }) => /* @__PURE__ */ o.jsx("div", { className: kt.timeline, children: e.sort((r, n) => t ? 0 : mu(r.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((r, n) => /* @__PURE__ */ o.jsxs("div", { className: I("row g-0 gx-3", kt.stepContainer), children: [
7615
- /* @__PURE__ */ o.jsx("div", { className: "col-3", children: r.date && /* @__PURE__ */ o.jsxs(Y, { variant: "caption", className: I("h-100 d-flex flex-column align-items-end justify-content-center gap-0", kt.stepDate), children: [
7615
+ /* @__PURE__ */ o.jsx("div", { className: "col-3", children: r.date && /* @__PURE__ */ o.jsxs(q, { variant: "caption", className: I("h-100 d-flex flex-column align-items-end justify-content-center gap-0", kt.stepDate), children: [
7616
7616
  /* @__PURE__ */ o.jsx("div", { children: Wt(r.date, "dd.MM.yyyy") }),
7617
7617
  r.dateFormat === "date" ? null : /* @__PURE__ */ o.jsx("div", { children: Wt(r.date, "HH:mm") })
7618
7618
  ] }) }),
7619
7619
  /* @__PURE__ */ o.jsx("div", { className: "col-9", children: /* @__PURE__ */ o.jsxs("div", { className: I("h-100 d-flex flex-column gap-1 border-start border-2 p-3", kt.stepContent), children: [
7620
7620
  /* @__PURE__ */ o.jsxs("div", { className: I("d-flex gap-2 align-items-center", kt.contentHeader), children: [
7621
7621
  r.person && /* @__PURE__ */ o.jsx(Ss, { name: r.person.name ?? "", size: 22, fontSize: 12 }),
7622
- typeof r.title == "string" ? /* @__PURE__ */ o.jsx(Y, { variant: "body", className: "fw-bold", children: r.title }) : r.title
7622
+ typeof r.title == "string" ? /* @__PURE__ */ o.jsx(q, { variant: "body", className: "fw-bold", children: r.title }) : r.title
7623
7623
  ] }),
7624
- r.text && /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: kt.contentText, children: r.text }),
7624
+ r.text && /* @__PURE__ */ o.jsx(q, { variant: "body2", className: kt.contentText, children: r.text }),
7625
7625
  /* @__PURE__ */ o.jsx("div", { className: I("text-primary", kt.stepIcon), children: r.icon ?? /* @__PURE__ */ o.jsx(Nd, {}) })
7626
7626
  ] }) })
7627
7627
  ] }, n)) }), cx = (e, t, r, n = !0) => {
@@ -7635,7 +7635,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7635
7635
  s(!1), c(null);
7636
7636
  });
7637
7637
  }, [a, e]);
7638
- return q(() => {
7638
+ return U(() => {
7639
7639
  const d = new AbortController();
7640
7640
  return u(d.signal), () => {
7641
7641
  d.abort();
@@ -7643,7 +7643,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7643
7643
  }, [u]), { data: l, setData: c, reloadData: u, isLoading: i };
7644
7644
  }, Wi = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, renderAsDivBg: i, ...s }) => {
7645
7645
  const { data: l } = cx(e, r, n), [c, u] = R(null);
7646
- return q(() => {
7646
+ return U(() => {
7647
7647
  let d = null;
7648
7648
  return l !== null ? (d = URL.createObjectURL(l), u(d)) : u(null), () => {
7649
7649
  d !== null && URL.revokeObjectURL(d);
@@ -7664,7 +7664,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7664
7664
  } }) : /* @__PURE__ */ o.jsx("img", { ...s, alt: t ?? "", src: c ?? a });
7665
7665
  }, Ea = ({ InputContainer: e = ir, label: t, value: r, onChange: n, hidden: a, disabled: i, className: s, type: l, withoutLabel: c, indeterminate: u, hint: d }) => {
7666
7666
  const p = ee(null);
7667
- return q(() => {
7667
+ return U(() => {
7668
7668
  p.current && (p.current.indeterminate = u ?? !1);
7669
7669
  }, [p, u]), /* @__PURE__ */ o.jsx(e, { isForCheckInput: !0, hidden: a, label: t ?? "", withoutLabel: c, className: s, hint: d, disabled: i, children: /* @__PURE__ */ o.jsx(Ee.Check, { ref: p, id: `check-${t}`, type: l ?? "checkbox", label: t ?? "", checked: r, onChange: (f) => {
7670
7670
  var m;
@@ -7773,7 +7773,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7773
7773
  /* @__PURE__ */ o.jsx(re, { onClick: s, disabled: e === null, className: r, children: /* @__PURE__ */ o.jsx(n, { icon: "qr-code" }) }),
7774
7774
  /* @__PURE__ */ o.jsx(Oe, { show: a, onHide: l, size: "sm", children: /* @__PURE__ */ o.jsxs(Oe.Body, { className: "d-flex flex-column align-items-center", children: [
7775
7775
  /* @__PURE__ */ o.jsx(px, { value: `${c}:${e}` }),
7776
- /* @__PURE__ */ o.jsx(Y, { variant: "subtitle", children: e })
7776
+ /* @__PURE__ */ o.jsx(q, { variant: "subtitle", children: e })
7777
7777
  ] }) })
7778
7778
  ] });
7779
7779
  }, mx = ({ contactType: e, value: t, className: r, children: n, showIconWithChildren: a }) => {
@@ -7812,7 +7812,7 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7812
7812
  }, bc = ({ children: e, className: t, withoutLabel: r, label: n, contactType: a, value: i }) => {
7813
7813
  const { ProjectIconComponent: s } = H(J);
7814
7814
  return /* @__PURE__ */ o.jsxs("div", { className: I("d-flex align-items-center", t), children: [
7815
- !r && /* @__PURE__ */ o.jsx("div", { className: I("d-flex justify-content-between align-items-center w-50"), children: /* @__PURE__ */ o.jsx(Y, { variant: "form-label", className: "text-muted", children: n }) }),
7815
+ !r && /* @__PURE__ */ o.jsx("div", { className: I("d-flex justify-content-between align-items-center w-50"), children: /* @__PURE__ */ o.jsx(q, { variant: "form-label", className: "text-muted", children: n }) }),
7816
7816
  /* @__PURE__ */ o.jsxs("div", { className: I("w-50", jr.popoverContainer), children: [
7817
7817
  /* @__PURE__ */ o.jsx("div", { className: jr.textInput, children: e }),
7818
7818
  /* @__PURE__ */ o.jsxs("div", { className: I("d-flex gap-1", jr.btnsPopover), children: [
@@ -7824,29 +7824,29 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7824
7824
  ] })
7825
7825
  ] })
7826
7826
  ] });
7827
- }, BN = ({ value: e, label: t, InputContainer: r = ir, className: n, withoutLabel: a, hidden: i, disabled: s, contactType: l, ...c }) => i ? null : /* @__PURE__ */ o.jsx(bc, { contactType: l, value: e, withoutLabel: a, label: t, className: n, children: /* @__PURE__ */ o.jsx(st, { type: "text", value: e, disabled: s, InputContainer: r, size: "sm", withoutLabel: !0, ...c }) }), MN = ({ InputContainer: e = ir, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: i, value: s, onSelect: l, label: c, withoutLabel: u, size: d, dropdownItemsNameWidth: p, additionalColumns: f, hidden: m, disabled: g, displayIdAsName: b, CustomOnChangeComponent: v, className: h, archiveColumn: w, icon: N, hint: y, addNewOptionPath: x, refreshOptions: j, MiniDetailComponent: C, miniDetailPlacement: O, suggestedItems: E, suggestedItemsTitle: T }) => {
7828
- const [M, V] = R(!1), S = P((G) => {
7829
- l && l(G);
7830
- }, [l]), _ = P((G) => {
7831
- V(!1), S(G);
7832
- }, [S]), $ = ee(null), k = r !== void 0, L = k && s !== null, U = A(() => {
7833
- var G, z;
7834
- return b ? ((G = s == null ? void 0 : s.id) == null ? void 0 : G.toString()) ?? "" : s != null && s.name && s.name.length > 0 ? s.name : ((z = s == null ? void 0 : s.id) == null ? void 0 : z.toString()) ?? "";
7827
+ }, BN = ({ value: e, label: t, InputContainer: r = ir, className: n, withoutLabel: a, hidden: i, disabled: s, contactType: l, ...c }) => i ? null : /* @__PURE__ */ o.jsx(bc, { contactType: l, value: e, withoutLabel: a, label: t, className: n, children: /* @__PURE__ */ o.jsx(st, { type: "text", value: e, disabled: s, InputContainer: r, size: "sm", withoutLabel: !0, ...c }) }), MN = ({ InputContainer: e = ir, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: i, value: s, onSelect: l, label: c, withoutLabel: u, size: d, dropdownItemsNameWidth: p, additionalColumns: f, hidden: m, disabled: g, displayIdAsName: b, CustomOnChangeComponent: v, className: h, archiveColumn: w, icon: N, hint: y, addNewOptionPath: x, refreshOptions: C, MiniDetailComponent: S, miniDetailPlacement: _, suggestedItems: E, suggestedItemsTitle: T }) => {
7828
+ const [M, V] = R(!1), D = P(($) => {
7829
+ l && l($);
7830
+ }, [l]), O = P(($) => {
7831
+ V(!1), D($);
7832
+ }, [D]), G = ee(null), B = r !== void 0, L = B && s !== null, Y = A(() => {
7833
+ var $, z;
7834
+ return b ? (($ = s == null ? void 0 : s.id) == null ? void 0 : $.toString()) ?? "" : s != null && s.name && s.name.length > 0 ? s.name : ((z = s == null ? void 0 : s.id) == null ? void 0 : z.toString()) ?? "";
7835
7835
  }, [s, b]);
7836
7836
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(e, { withoutLabel: u, label: c ?? "", hidden: m, inputContainerClassName: I({ "luminus-dropdown-select-open": M }), className: h, hint: y, disabled: g, children: [
7837
7837
  /* @__PURE__ */ o.jsxs(Ra, { currentSelection: s, selectedItemNavigateTo: r, children: [
7838
- b && (s == null ? void 0 : s.name) && /* @__PURE__ */ o.jsx(Y, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: s.name }),
7839
- /* @__PURE__ */ o.jsx(ka, { value: (s == null ? void 0 : s.id) ?? null, MiniDetailComponent: C, miniDetailPlacement: O, children: /* @__PURE__ */ o.jsxs(
7838
+ b && (s == null ? void 0 : s.name) && /* @__PURE__ */ o.jsx(q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: s.name }),
7839
+ /* @__PURE__ */ o.jsx(ka, { value: (s == null ? void 0 : s.id) ?? null, MiniDetailComponent: S, miniDetailPlacement: _, children: /* @__PURE__ */ o.jsxs(
7840
7840
  Ee.Select,
7841
7841
  {
7842
- ref: $,
7842
+ ref: G,
7843
7843
  size: d,
7844
7844
  value: (s == null ? void 0 : s.id) ?? "",
7845
- onMouseDown: (G) => {
7846
- G.currentTarget.focus(), G.preventDefault();
7845
+ onMouseDown: ($) => {
7846
+ $.currentTarget.focus(), $.preventDefault();
7847
7847
  },
7848
7848
  onClick: () => {
7849
- !k && !g && V(!0);
7849
+ !B && !g && V(!0);
7850
7850
  },
7851
7851
  onChange: () => {
7852
7852
  },
@@ -7857,40 +7857,40 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7857
7857
  hidden: m,
7858
7858
  children: [
7859
7859
  /* @__PURE__ */ o.jsx("option", { value: "" }),
7860
- s && /* @__PURE__ */ o.jsx("option", { value: s.id ?? void 0, children: U })
7860
+ s && /* @__PURE__ */ o.jsx("option", { value: s.id ?? void 0, children: Y })
7861
7861
  ]
7862
7862
  }
7863
7863
  ) }),
7864
- v || !g && k ? /* @__PURE__ */ o.jsxs("div", { className: "custom-picker-button", children: [
7865
- !v && !g && k && /* @__PURE__ */ o.jsx(re, { size: "sm", color: "secondary", onClick: (G) => {
7866
- G.preventDefault(), G.stopPropagation(), V(!0);
7864
+ v || !g && B ? /* @__PURE__ */ o.jsxs("div", { className: "custom-picker-button", children: [
7865
+ !v && !g && B && /* @__PURE__ */ o.jsx(re, { size: "sm", color: "secondary", onClick: ($) => {
7866
+ $.preventDefault(), $.stopPropagation(), V(!0);
7867
7867
  }, children: N ?? /* @__PURE__ */ o.jsx(Es, {}) }),
7868
7868
  v ?? null
7869
7869
  ] }) : null
7870
7870
  ] }),
7871
- $.current && /* @__PURE__ */ o.jsx(Ba, { show: M, onCancel: () => V(!1), items: t, currentSelection: s, onSelectionChange: _, onSearchQueryChange: n, texts: a, itemsNameWidth: p, additionalColumns: f, isLoading: i, disabled: g, inputRef: $, archiveColumn: w, displayIdAsName: b, addNewOptionPath: x, refreshOptions: j, suggestedItems: E, suggestedItemsTitle: T })
7871
+ G.current && /* @__PURE__ */ o.jsx(Ba, { show: M, onCancel: () => V(!1), items: t, currentSelection: s, onSelectionChange: O, onSearchQueryChange: n, texts: a, itemsNameWidth: p, additionalColumns: f, isLoading: i, disabled: g, inputRef: G, archiveColumn: w, displayIdAsName: b, addNewOptionPath: x, refreshOptions: C, suggestedItems: E, suggestedItemsTitle: T })
7872
7872
  ] }) });
7873
7873
  }, LN = ({ InputContainer: e = ir, value: t, onChange: r, label: n, size: a, showClearIcon: i, clearValue: s, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: p, minLength: f, maxLength: m, className: g, hint: b }) => {
7874
7874
  const v = P(() => {
7875
7875
  if (!r)
7876
7876
  return;
7877
- const j = s ?? null;
7878
- r((j == null ? void 0 : j.toString()) ?? "");
7879
- }, [s, r]), h = ee(null), [w, N] = R((t == null ? void 0 : t.toString()) ?? ""), y = P((j) => {
7880
- const C = j;
7881
- r && r(C || null);
7882
- }, [r]), x = P((j) => {
7883
- var O;
7884
- const C = (O = j.target) == null ? void 0 : O.value;
7877
+ const C = s ?? null;
7878
+ r((C == null ? void 0 : C.toString()) ?? "");
7879
+ }, [s, r]), h = ee(null), [w, N] = R((t == null ? void 0 : t.toString()) ?? ""), y = P((C) => {
7880
+ const S = C;
7881
+ r && r(S || null);
7882
+ }, [r]), x = P((C) => {
7883
+ var _;
7884
+ const S = (_ = C.target) == null ? void 0 : _.value;
7885
7885
  if (!p) {
7886
- y(C);
7886
+ y(S);
7887
7887
  return;
7888
7888
  }
7889
- N(C), h.current !== null && window.clearTimeout(h.current), h.current = window.setTimeout(() => {
7890
- y(C);
7889
+ N(S), h.current !== null && window.clearTimeout(h.current), h.current = window.setTimeout(() => {
7890
+ y(S);
7891
7891
  }, p);
7892
7892
  }, [p, y]);
7893
- return q(() => {
7893
+ return U(() => {
7894
7894
  N(t === null ? "" : t.toString());
7895
7895
  }, [t]), /* @__PURE__ */ o.jsxs(e, { label: n ?? "", hidden: l, withoutLabel: d, className: g, isForTextAreaInput: !0, hint: b, disabled: c, children: [
7896
7896
  /* @__PURE__ */ o.jsx(Ee.Control, { as: "textarea", size: a, value: p ? w : t ?? "", onChange: x, hidden: l, disabled: c, rows: u ?? 2, className: "w-100", minLength: f, maxLength: m }),
@@ -7900,31 +7900,31 @@ const hc = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, render
7900
7900
  const w = P(() => {
7901
7901
  if (!r)
7902
7902
  return;
7903
- const O = p ?? null;
7904
- r(O ? Number(O) : null);
7905
- }, [p, r]), N = ee(null), [y, x] = R((t == null ? void 0 : t.toString()) ?? ""), j = P((O) => {
7906
- const E = O;
7903
+ const _ = p ?? null;
7904
+ r(_ ? Number(_) : null);
7905
+ }, [p, r]), N = ee(null), [y, x] = R((t == null ? void 0 : t.toString()) ?? ""), C = P((_) => {
7906
+ const E = _;
7907
7907
  r && r(E == null || E === "" ? null : Cr(Number(E), b, v));
7908
- }, [v, b, r]), C = P((O) => {
7908
+ }, [v, b, r]), S = P((_) => {
7909
7909
  var T;
7910
- const E = (T = O.target) == null ? void 0 : T.value;
7910
+ const E = (T = _.target) == null ? void 0 : T.value;
7911
7911
  if (!n) {
7912
- j(E);
7912
+ C(E);
7913
7913
  return;
7914
7914
  }
7915
7915
  x(Cr(Number(E), b, v).toString()), N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
7916
- j(E);
7916
+ C(E);
7917
7917
  }, n);
7918
- }, [n, j, v, b]);
7919
- return q(() => {
7918
+ }, [n, C, v, b]);
7919
+ return U(() => {
7920
7920
  x(t === null ? "" : Cr(t, b, v).toString());
7921
7921
  }, [v, b, t]), /* @__PURE__ */ o.jsx(e, { withoutLabel: i, label: a ?? "", hidden: c, hint: h, className: f, disabled: u, children: /* @__PURE__ */ o.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
7922
- /* @__PURE__ */ o.jsx(Ee.Control, { type: "number", placeholder: s ?? a, size: l, value: n ? y : t ?? "", onChange: C, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: u ?? !1, step: m }),
7923
- /* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: (O) => {
7924
- O.preventDefault(), O.stopPropagation(), j(((t ?? 0) - g).toString());
7922
+ /* @__PURE__ */ o.jsx(Ee.Control, { type: "number", placeholder: s ?? a, size: l, value: n ? y : t ?? "", onChange: S, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: u ?? !1, step: m }),
7923
+ /* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: (_) => {
7924
+ _.preventDefault(), _.stopPropagation(), C(((t ?? 0) - g).toString());
7925
7925
  }, children: /* @__PURE__ */ o.jsx(Is, {}) }) }),
7926
- /* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: (O) => {
7927
- O.preventDefault(), O.stopPropagation(), j(((t ?? 0) + g).toString());
7926
+ /* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: (_) => {
7927
+ _.preventDefault(), _.stopPropagation(), C(((t ?? 0) + g).toString());
7928
7928
  }, children: /* @__PURE__ */ o.jsx(_s, {}) }) }),
7929
7929
  d && t && r && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(re, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ o.jsx(Ot, {}) }) })
7930
7930
  ] }) });
@@ -8189,18 +8189,18 @@ function kx(e) {
8189
8189
  w === void 0 && (w = Tx);
8190
8190
  var N = e.isValidInputCharacter;
8191
8191
  N === void 0 && (N = Vr);
8192
- var y = e.isCharacterSame, x = xc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), j = Cc(h, c, !!u, s, l, d), C = j[0], O = C.formattedValue, E = C.numAsString, T = j[1], M = ee(), V = ee({ formattedValue: O, numAsString: E }), S = function(K, F) {
8192
+ var y = e.isCharacterSame, x = xc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), C = Cc(h, c, !!u, s, l, d), S = C[0], _ = S.formattedValue, E = S.numAsString, T = C[1], M = ee(), V = ee({ formattedValue: _, numAsString: E }), D = function(K, F) {
8193
8193
  V.current = { formattedValue: K.formattedValue, numAsString: K.value }, T(K, F);
8194
- }, _ = R(!1), $ = _[0], k = _[1], L = ee(null), U = ee({
8194
+ }, O = R(!1), G = O[0], B = O[1], L = ee(null), Y = ee({
8195
8195
  setCaretTimeout: null,
8196
8196
  focusTimeout: null
8197
8197
  });
8198
- q(function() {
8199
- return k(!0), function() {
8200
- clearTimeout(U.current.setCaretTimeout), clearTimeout(U.current.focusTimeout);
8198
+ U(function() {
8199
+ return B(!0), function() {
8200
+ clearTimeout(Y.current.setCaretTimeout), clearTimeout(Y.current.focusTimeout);
8201
8201
  };
8202
8202
  }, []);
8203
- var G = s, z = function(K, F) {
8203
+ var $ = s, z = function(K, F) {
8204
8204
  var Z = parseFloat(F);
8205
8205
  return {
8206
8206
  formattedValue: K,
@@ -8208,13 +8208,13 @@ function kx(e) {
8208
8208
  floatValue: isNaN(Z) ? void 0 : Z
8209
8209
  };
8210
8210
  }, X = function(K, F, Z) {
8211
- K.selectionStart === 0 && K.selectionEnd === K.value.length || ($t(K, F), U.current.setCaretTimeout = setTimeout(function() {
8211
+ K.selectionStart === 0 && K.selectionEnd === K.value.length || ($t(K, F), Y.current.setCaretTimeout = setTimeout(function() {
8212
8212
  K.value === Z && K.selectionStart !== F && $t(K, F);
8213
8213
  }, 0));
8214
8214
  }, te = function(K, F, Z) {
8215
8215
  return qi(K, F, w(K), Z);
8216
8216
  }, ie = function(K, F, Z) {
8217
- var ue = w(F), Ce = Px(F, O, K, Z, ue, N, y);
8217
+ var ue = w(F), Ce = Px(F, _, K, Z, ue, N, y);
8218
8218
  return Ce = qi(F, Ce, ue), Ce;
8219
8219
  }, se = function(K) {
8220
8220
  var F = K.formattedValue;
@@ -8224,28 +8224,28 @@ function kx(e) {
8224
8224
  var Le = K.inputValue || Z.value, tt = na(Z);
8225
8225
  Z.value = F, ce = ie(Le, F, tt), ce !== void 0 && X(Z, ce, F);
8226
8226
  }
8227
- F !== O && S(z(F, ge), { event: Ce, source: ue });
8227
+ F !== _ && D(z(F, ge), { event: Ce, source: ue });
8228
8228
  };
8229
- q(function() {
8229
+ U(function() {
8230
8230
  var K = V.current, F = K.formattedValue, Z = K.numAsString;
8231
- (O !== F || E !== Z) && S(z(O, E), {
8231
+ (_ !== F || E !== Z) && D(z(_, E), {
8232
8232
  event: void 0,
8233
8233
  source: Fr.props
8234
8234
  });
8235
- }, [O, E]);
8236
- var be = L.current ? na(L.current) : void 0, W = typeof window < "u" ? Fa : q;
8235
+ }, [_, E]);
8236
+ var be = L.current ? na(L.current) : void 0, W = typeof window < "u" ? Fa : U;
8237
8237
  W(function() {
8238
8238
  var K = L.current;
8239
- if (O !== V.current.formattedValue && K) {
8240
- var F = ie(V.current.formattedValue, O, be);
8241
- K.value = O, X(K, F, O);
8239
+ if (_ !== V.current.formattedValue && K) {
8240
+ var F = ie(V.current.formattedValue, _, be);
8241
+ K.value = _, X(K, F, _);
8242
8242
  }
8243
- }, [O]);
8243
+ }, [_]);
8244
8244
  var ae = function(K, F, Z) {
8245
- var ue = F.target, Ce = M.current ? Sx(M.current, ue.selectionEnd) : jc(O, K), ge = Object.assign(Object.assign({}, Ce), { lastValue: O }), ce = l(K, ge), Le = G(ce);
8245
+ var ue = F.target, Ce = M.current ? Sx(M.current, ue.selectionEnd) : jc(_, K), ge = Object.assign(Object.assign({}, Ce), { lastValue: _ }), ce = l(K, ge), Le = $(ce);
8246
8246
  if (ce = l(Le, void 0), p && !p(z(Le, ce))) {
8247
- var tt = F.target, rt = na(tt), Yt = ie(K, O, rt);
8248
- return tt.value = O, X(tt, Yt, O), !1;
8247
+ var tt = F.target, rt = na(tt), Yt = ie(K, _, rt);
8248
+ return tt.value = _, X(tt, Yt, _), !1;
8249
8249
  }
8250
8250
  return se({
8251
8251
  formattedValue: Le,
@@ -8280,7 +8280,7 @@ function kx(e) {
8280
8280
  rt = te(ge, ce, Yt), rt !== ce && K.preventDefault();
8281
8281
  } else Z === "Delete" && !N(ge[ce]) ? rt = te(ge, ce, "right") : Z === "Backspace" && !N(ge[ce]) && (rt = te(ge, ce, "left"));
8282
8282
  rt !== ce && X(F, rt, ge), m(K), me(F, Le);
8283
- }, B = function(K) {
8283
+ }, k = function(K) {
8284
8284
  var F = K.target, Z = function() {
8285
8285
  var ue = F.selectionStart, Ce = F.selectionEnd, ge = F.value;
8286
8286
  if (ge === void 0 && (ge = ""), ue === Ce) {
@@ -8294,25 +8294,25 @@ function kx(e) {
8294
8294
  }, de = function(K) {
8295
8295
  K.persist && K.persist();
8296
8296
  var F = K.target, Z = K.currentTarget;
8297
- L.current = F, U.current.focusTimeout = setTimeout(function() {
8297
+ L.current = F, Y.current.focusTimeout = setTimeout(function() {
8298
8298
  var ue = F.selectionStart, Ce = F.selectionEnd, ge = F.value;
8299
8299
  ge === void 0 && (ge = "");
8300
8300
  var ce = te(ge, ue);
8301
8301
  ce !== ue && !(ue === 0 && Ce === ge.length) && X(F, ce, ge), b(Object.assign(Object.assign({}, K), { currentTarget: Z }));
8302
8302
  }, 0);
8303
8303
  }, Ie = function(K) {
8304
- L.current = null, clearTimeout(U.current.focusTimeout), clearTimeout(U.current.setCaretTimeout), v(K);
8305
- }, Ge = $ && Ix() ? "numeric" : void 0, Ke = Object.assign({ inputMode: Ge }, x, {
8304
+ L.current = null, clearTimeout(Y.current.focusTimeout), clearTimeout(Y.current.setCaretTimeout), v(K);
8305
+ }, Ge = G && Ix() ? "numeric" : void 0, Ke = Object.assign({ inputMode: Ge }, x, {
8306
8306
  type: t,
8307
- value: O,
8307
+ value: _,
8308
8308
  onChange: je,
8309
8309
  onKeyDown: pe,
8310
- onMouseUp: B,
8310
+ onMouseUp: k,
8311
8311
  onFocus: de,
8312
8312
  onBlur: Ie
8313
8313
  });
8314
8314
  if (r === "text")
8315
- return a ? le.createElement(le.Fragment, null, a(O, x) || null) : le.createElement("span", Object.assign({}, x, { ref: i }), O);
8315
+ return a ? le.createElement(le.Fragment, null, a(_, x) || null) : le.createElement("span", Object.assign({}, x, { ref: i }), _);
8316
8316
  if (n) {
8317
8317
  var mt = n;
8318
8318
  return le.createElement(mt, Object.assign({}, Ke, { ref: i }));
@@ -8365,25 +8365,25 @@ function Fx(e, t, r) {
8365
8365
  var v = l === 0 ? "" : g;
8366
8366
  e = e.substring(0, d) + v + e.substring(d + 1, e.length);
8367
8367
  }
8368
- var h = function(L, U, G) {
8368
+ var h = function(L, Y, $) {
8369
8369
  var z = !1, X = !1;
8370
8370
  i.startsWith("-") ? z = !1 : L.startsWith("--") ? (z = !1, X = !0) : s.startsWith("-") && L.length === s.length ? z = !1 : L[0] === "-" && (z = !0);
8371
8371
  var te = z ? 1 : 0;
8372
- return X && (te = 2), te && (L = L.substring(te), U -= te, G -= te), { value: L, start: U, end: G, hasNegation: z };
8372
+ return X && (te = 2), te && (L = L.substring(te), Y -= te, $ -= te), { value: L, start: Y, end: $, hasNegation: z };
8373
8373
  }, w = h(e, d, p), N = w.hasNegation;
8374
8374
  n = w, e = n.value, d = n.start, p = n.end;
8375
- var y = h(t.lastValue, c.start, c.end), x = y.start, j = y.end, C = y.value, O = e.substring(d, p);
8376
- e.length && C.length && (x > C.length - s.length || j < i.length) && !(O && s.startsWith(O)) && (e = C);
8375
+ var y = h(t.lastValue, c.start, c.end), x = y.start, C = y.end, S = y.value, _ = e.substring(d, p);
8376
+ e.length && S.length && (x > S.length - s.length || C < i.length) && !(_ && s.startsWith(_)) && (e = S);
8377
8377
  var E = 0;
8378
8378
  e.startsWith(i) ? E += i.length : d < i.length && (E = d), e = e.substring(E), p -= E;
8379
8379
  var T = e.length, M = e.length - s.length;
8380
8380
  e.endsWith(s) ? T = M : (p > M || p > e.length - s.length) && (T = p), e = e.substring(0, T), e = Bx(N ? "-" + e : e, a), e = (e.match(Mx(g)) || []).join("");
8381
8381
  var V = e.indexOf(g);
8382
- e = e.replace(new RegExp(wc(g), "g"), function(L, U) {
8383
- return U === V ? "." : "";
8382
+ e = e.replace(new RegExp(wc(g), "g"), function(L, Y) {
8383
+ return Y === V ? "." : "";
8384
8384
  });
8385
- var S = No(e, a), _ = S.beforeDecimal, $ = S.afterDecimal, k = S.addNegation;
8386
- return u.end - u.start < c.end - c.start && _ === "" && b && !parseFloat($) && (e = k ? "-" : ""), e;
8385
+ var D = No(e, a), O = D.beforeDecimal, G = D.afterDecimal, B = D.addNegation;
8386
+ return u.end - u.start < c.end - c.start && O === "" && b && !parseFloat(G) && (e = B ? "-" : ""), e;
8387
8387
  }
8388
8388
  function Vx(e, t) {
8389
8389
  var r = t.prefix;
@@ -8421,62 +8421,62 @@ function Gx(e) {
8421
8421
  i === void 0 && (i = Dt);
8422
8422
  var s = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale, u = e.prefix;
8423
8423
  u === void 0 && (u = "");
8424
- var d = e.defaultValue, p = e.value, f = e.valueIsNumericString, m = e.onValueChange, g = xc(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), b = Pn(e), v = b.decimalSeparator, h = b.allowedDecimalSeparators, w = function(k) {
8425
- return Yi(k, e);
8426
- }, N = function(k, L) {
8427
- return Fx(k, L, e);
8424
+ var d = e.defaultValue, p = e.value, f = e.valueIsNumericString, m = e.onValueChange, g = xc(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), b = Pn(e), v = b.decimalSeparator, h = b.allowedDecimalSeparators, w = function(B) {
8425
+ return Yi(B, e);
8426
+ }, N = function(B, L) {
8427
+ return Fx(B, L, e);
8428
8428
  }, y = Zt(p) ? d : p, x = f ?? Lx(y, u, t);
8429
8429
  Zt(p) ? Zt(d) || (x = x || typeof d == "number") : x = x || typeof p == "number";
8430
- var j = function(k) {
8431
- return yc(k) ? k : (typeof k == "number" && (k = Dc(k)), x && typeof l == "number" ? zi(k, l, !!c) : k);
8432
- }, C = Cc(j(p), j(d), !!x, w, N, m), O = C[0], E = O.numAsString, T = O.formattedValue, M = C[1], V = function(k) {
8433
- var L = k.target, U = k.key, G = L.selectionStart, z = L.selectionEnd, X = L.value;
8434
- if (X === void 0 && (X = ""), (U === "Backspace" || U === "Delete") && z < u.length) {
8435
- k.preventDefault();
8430
+ var C = function(B) {
8431
+ return yc(B) ? B : (typeof B == "number" && (B = Dc(B)), x && typeof l == "number" ? zi(B, l, !!c) : B);
8432
+ }, S = Cc(C(p), C(d), !!x, w, N, m), _ = S[0], E = _.numAsString, T = _.formattedValue, M = S[1], V = function(B) {
8433
+ var L = B.target, Y = B.key, $ = L.selectionStart, z = L.selectionEnd, X = L.value;
8434
+ if (X === void 0 && (X = ""), (Y === "Backspace" || Y === "Delete") && z < u.length) {
8435
+ B.preventDefault();
8436
8436
  return;
8437
8437
  }
8438
- if (G !== z) {
8439
- a(k);
8438
+ if ($ !== z) {
8439
+ a(B);
8440
8440
  return;
8441
8441
  }
8442
- U === "Backspace" && X[0] === "-" && G === u.length + 1 && r && $t(L, 1), l && c && (U === "Backspace" && X[G - 1] === v ? ($t(L, G - 1), k.preventDefault()) : U === "Delete" && X[G] === v && k.preventDefault()), h != null && h.includes(U) && X[G] === v && $t(L, G + 1);
8442
+ Y === "Backspace" && X[0] === "-" && $ === u.length + 1 && r && $t(L, 1), l && c && (Y === "Backspace" && X[$ - 1] === v ? ($t(L, $ - 1), B.preventDefault()) : Y === "Delete" && X[$] === v && B.preventDefault()), h != null && h.includes(Y) && X[$] === v && $t(L, $ + 1);
8443
8443
  var te = s === !0 ? "," : s;
8444
- U === "Backspace" && X[G - 1] === te && $t(L, G - 1), U === "Delete" && X[G] === te && $t(L, G + 1), a(k);
8445
- }, S = function(k) {
8444
+ Y === "Backspace" && X[$ - 1] === te && $t(L, $ - 1), Y === "Delete" && X[$] === te && $t(L, $ + 1), a(B);
8445
+ }, D = function(B) {
8446
8446
  var L = E;
8447
8447
  if (L.match(/\d/g) || (L = ""), n || (L = Cx(L)), c && l && (L = zi(L, l, c)), L !== E) {
8448
- var U = Yi(L, e);
8448
+ var Y = Yi(L, e);
8449
8449
  M({
8450
- formattedValue: U,
8450
+ formattedValue: Y,
8451
8451
  value: L,
8452
8452
  floatValue: parseFloat(L)
8453
8453
  }, {
8454
- event: k,
8454
+ event: B,
8455
8455
  source: Fr.event
8456
8456
  });
8457
8457
  }
8458
- i(k);
8459
- }, _ = function(k) {
8460
- return k === v ? !0 : Vr(k);
8461
- }, $ = function(k) {
8462
- var L = k.currentValue, U = k.lastValue, G = k.formattedValue, z = k.currentValueIndex, X = k.formattedValueIndex, te = L[z], ie = G[X], se = jc(U, L), be = se.to, W = function(ae) {
8458
+ i(B);
8459
+ }, O = function(B) {
8460
+ return B === v ? !0 : Vr(B);
8461
+ }, G = function(B) {
8462
+ var L = B.currentValue, Y = B.lastValue, $ = B.formattedValue, z = B.currentValueIndex, X = B.formattedValueIndex, te = L[z], ie = $[X], se = jc(Y, L), be = se.to, W = function(ae) {
8463
8463
  return N(ae).indexOf(".") + u.length;
8464
8464
  };
8465
- return p === 0 && c && l && L[be.start] === v && W(L) < z && W(G) > X ? !1 : z >= be.start && z < be.end && h && h.includes(te) && ie === v ? !0 : te === ie;
8465
+ return p === 0 && c && l && L[be.start] === v && W(L) < z && W($) > X ? !1 : z >= be.start && z < be.end && h && h.includes(te) && ie === v ? !0 : te === ie;
8466
8466
  };
8467
8467
  return Object.assign(Object.assign({}, g), {
8468
8468
  value: T,
8469
8469
  valueIsNumericString: !1,
8470
- isValidInputCharacter: _,
8471
- isCharacterSame: $,
8470
+ isValidInputCharacter: O,
8471
+ isCharacterSame: G,
8472
8472
  onValueChange: M,
8473
8473
  format: w,
8474
8474
  removeFormatting: N,
8475
- getCaretBoundary: function(k) {
8476
- return Vx(k, e);
8475
+ getCaretBoundary: function(B) {
8476
+ return Vx(B, e);
8477
8477
  },
8478
8478
  onKeyDown: V,
8479
- onBlur: S
8479
+ onBlur: D
8480
8480
  });
8481
8481
  }
8482
8482
  function Do(e) {
@@ -8484,38 +8484,38 @@ function Do(e) {
8484
8484
  return le.createElement(kx, Object.assign({}, t));
8485
8485
  }
8486
8486
  const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: i, placeholder: s, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: p, className: f, step: m, noSelectOnFocus: g, decimalScale: b, fixedDecimalScale: v = !1, numberPrefix: h, numberSuffix: w, min: N, max: y, hint: x }) => {
8487
- const j = P(() => {
8487
+ const C = P(() => {
8488
8488
  if (!r)
8489
8489
  return;
8490
8490
  const V = p ?? null;
8491
8491
  r(V ? Number(V) : null);
8492
- }, [p, r]), C = ee(null), [O, E] = R((t == null ? void 0 : t.toString()) ?? ""), T = P((V) => {
8493
- const S = V;
8494
- r && r(S == null || S === "" ? null : Number(S));
8492
+ }, [p, r]), S = ee(null), [_, E] = R((t == null ? void 0 : t.toString()) ?? ""), T = P((V) => {
8493
+ const D = V;
8494
+ r && r(D == null || D === "" ? null : Number(D));
8495
8495
  }, [r]), M = P((V) => {
8496
- var _, $;
8497
- let S = parseFloat((($ = (_ = V.target) == null ? void 0 : _.value) == null ? void 0 : $.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
8498
- if (Number.isNaN(S) && (S = 0), !n) {
8499
- T(S.toString());
8496
+ var O, G;
8497
+ let D = parseFloat(((G = (O = V.target) == null ? void 0 : O.value) == null ? void 0 : G.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
8498
+ if (Number.isNaN(D) && (D = 0), !n) {
8499
+ T(D.toString());
8500
8500
  return;
8501
8501
  }
8502
- E(S.toString()), C.current !== null && window.clearTimeout(C.current), C.current = window.setTimeout(() => {
8503
- T(S.toString());
8502
+ E(D.toString()), S.current !== null && window.clearTimeout(S.current), S.current = window.setTimeout(() => {
8503
+ T(D.toString());
8504
8504
  }, n);
8505
8505
  }, [n, T]);
8506
- return q(() => {
8506
+ return U(() => {
8507
8507
  E(t === null ? "" : t.toString());
8508
- }, [y, N, t]), q(() => {
8509
- y !== void 0 && Number(O) > y && E(y.toString()), N !== void 0 && Number(O) < N && E(N.toString());
8510
- }, [O, y, N, E]), q(() => {
8508
+ }, [y, N, t]), U(() => {
8509
+ y !== void 0 && Number(_) > y && E(y.toString()), N !== void 0 && Number(_) < N && E(N.toString());
8510
+ }, [_, y, N, E]), U(() => {
8511
8511
  !r || t === null || (y !== void 0 && t > y && r(y), N !== void 0 && t < N && r(N));
8512
8512
  }, [t, y, N, r]), /* @__PURE__ */ o.jsxs(e, { withoutLabel: i, label: a ?? "", hidden: c, className: f, hint: x, disabled: u, children: [
8513
- /* @__PURE__ */ o.jsx(Do, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: v, prefix: h, suffix: w, defaultValue: "", value: n ? O : (t == null ? void 0 : t.toString()) ?? "", placeholder: s ?? a, onFocus: (V) => {
8513
+ /* @__PURE__ */ o.jsx(Do, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: v, prefix: h, suffix: w, defaultValue: "", value: n ? _ : (t == null ? void 0 : t.toString()) ?? "", placeholder: s ?? a, onFocus: (V) => {
8514
8514
  !g && V.target.select();
8515
8515
  }, onChange: M, hidden: c, disabled: u, className: I("form-control text-end w-100", {
8516
8516
  [`form-control-${l}`]: l
8517
8517
  }), step: m, min: N, max: y }),
8518
- d && t !== null && r && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ o.jsx(re, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ o.jsx(Ot, {}) }) })
8518
+ d && t !== null && r && !u && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ o.jsx(re, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ o.jsx(Ot, {}) }) })
8519
8519
  ] });
8520
8520
  }, Ux = ({ InputContainer: e = Pe, label: t, options: r, disabled: n, hidden: a, className: i, value: s, onChange: l }) => {
8521
8521
  const c = P((u) => {
@@ -8612,7 +8612,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
8612
8612
  return { setFromToProp: n, handleArrowClick: a, handleRangeChange: i };
8613
8613
  }, VN = ({ fromtoState: [e, t], className: r, size: n }) => {
8614
8614
  const { texts: { date: a }, ProjectIconComponent: i } = H(J), [s, l] = R("C"), { handleArrowClick: c, handleRangeChange: u, setFromToProp: d } = Xx(s, l, t), p = A(() => s === "C", [s]), f = ee(!0);
8615
- return q(() => {
8615
+ return U(() => {
8616
8616
  if (f.current) {
8617
8617
  const m = Kx(e.from, e.to);
8618
8618
  l(m), f.current = !1;
@@ -8675,42 +8675,42 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
8675
8675
  return { transform: `translate(${u}, ${d})` };
8676
8676
  }, [e.point.x, e.point.y]);
8677
8677
  return /* @__PURE__ */ o.jsxs("div", { className: "bg-white shadow-sm px-2 py-1 rounded", style: s, children: [
8678
- /* @__PURE__ */ o.jsx(Y, { variant: "body", children: t(e.point.serieId) }),
8678
+ /* @__PURE__ */ o.jsx(q, { variant: "body", children: t(e.point.serieId) }),
8679
8679
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex", children: [
8680
- /* @__PURE__ */ o.jsxs(Y, { variant: "body", className: "pe-1", children: [
8680
+ /* @__PURE__ */ o.jsxs(q, { variant: "body", className: "pe-1", children: [
8681
8681
  (l = e.point.data.x) == null ? void 0 : l.toString(),
8682
8682
  ":"
8683
8683
  ] }),
8684
- /* @__PURE__ */ o.jsx(Y, { variant: "body", className: "fw-bold", children: (c = r == null ? void 0 : r[i]) == null ? void 0 : c[a] })
8684
+ /* @__PURE__ */ o.jsx(q, { variant: "body", className: "fw-bold", children: (c = r == null ? void 0 : r[i]) == null ? void 0 : c[a] })
8685
8685
  ] })
8686
8686
  ] });
8687
8687
  }, UN = ({ data: e, xKey: t, yKeys: r, translateKey: n, usePercentageValue: a = !1, variant: i = "default", legendPosition: s, noSort: l = !1 }) => {
8688
8688
  const { chartColorPalette: c } = H(J), [u, d] = R(/* @__PURE__ */ new Set()), p = (x) => {
8689
- d((j) => {
8690
- const C = new Set(j);
8691
- return C.has(x.id) ? C.delete(x.id) : C.add(x.id), C;
8689
+ d((C) => {
8690
+ const S = new Set(C);
8691
+ return S.has(x.id) ? S.delete(x.id) : S.add(x.id), S;
8692
8692
  });
8693
- }, f = A(() => l ? e : e.toSorted((x, j) => {
8694
- var C;
8695
- return typeof j[t] == "number" && typeof x[t] == "number" ? x[t] - j[t] : (x[t] ?? "").toString().localeCompare(((C = j[t]) == null ? void 0 : C.toString()) ?? "");
8693
+ }, f = A(() => l ? e : e.toSorted((x, C) => {
8694
+ var S;
8695
+ return typeof C[t] == "number" && typeof x[t] == "number" ? x[t] - C[t] : (x[t] ?? "").toString().localeCompare(((S = C[t]) == null ? void 0 : S.toString()) ?? "");
8696
8696
  }), [e, l, t]), m = A(() => {
8697
8697
  const x = [];
8698
- return r.forEach((j) => {
8698
+ return r.forEach((C) => {
8699
8699
  if (a) {
8700
- const C = Math.max(...f.map((E) => E[j] ?? -1 / 0));
8701
- if (C === -1 / 0)
8700
+ const S = Math.max(...f.map((E) => E[C] ?? -1 / 0));
8701
+ if (S === -1 / 0)
8702
8702
  return;
8703
- const O = [];
8703
+ const _ = [];
8704
8704
  f.forEach((E) => {
8705
- E[j] != null && O.push({ x: E[t], y: C === 0 ? 0 : E[j] / C });
8705
+ E[C] != null && _.push({ x: E[t], y: S === 0 ? 0 : E[C] / S });
8706
8706
  }), x.push({
8707
- id: j,
8708
- data: O
8707
+ id: C,
8708
+ data: _
8709
8709
  });
8710
8710
  } else
8711
8711
  x.push({
8712
- id: j,
8713
- data: f.map((C) => ({ x: C[t], y: C[j] }))
8712
+ id: C,
8713
+ data: f.map((S) => ({ x: S[t], y: S[C] }))
8714
8714
  });
8715
8715
  }), x;
8716
8716
  }, [f, a, t, r]), g = P((x) => /* @__PURE__ */ o.jsx(Qx, { data: f, translateKey: n, val: x }), [f, n]), b = A(() => Math.min(...e.map((x) => x[t] ?? 1 / 0)), [e, t]), v = A(() => Math.max(...e.map((x) => x[t] ?? -1 / 0)), [e, t]), h = A(() => {
@@ -8730,10 +8730,10 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
8730
8730
  tickValues: i === "sideContent" ? y : void 0
8731
8731
  }, gridYValues: i === "sideContent" ? [0] : void 0, legends: w !== "none" ? [
8732
8732
  {
8733
- data: r.map((x, j) => ({
8733
+ data: r.map((x, C) => ({
8734
8734
  id: x,
8735
8735
  label: n(x),
8736
- color: c == null ? void 0 : c[j],
8736
+ color: c == null ? void 0 : c[C],
8737
8737
  hidden: u.has(x)
8738
8738
  })),
8739
8739
  onClick: p,
@@ -8773,11 +8773,11 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
8773
8773
  return n.toLowerCase() === "others" ? "Obecné" : ((i = (a = t.columns) == null ? void 0 : a.find((s) => s.field === n)) == null ? void 0 : i.caption) ?? n;
8774
8774
  };
8775
8775
  return /* @__PURE__ */ o.jsx("div", { className: "alert alert-danger w-100 m-0 p-2", children: /* @__PURE__ */ o.jsx("table", { children: /* @__PURE__ */ o.jsx("tbody", { children: e.map((n) => /* @__PURE__ */ o.jsxs("tr", { children: [
8776
- /* @__PURE__ */ o.jsx("td", { className: "fw-bold pe-2", children: /* @__PURE__ */ o.jsxs(Y, { variant: "body", children: [
8776
+ /* @__PURE__ */ o.jsx("td", { className: "fw-bold pe-2", children: /* @__PURE__ */ o.jsxs(q, { variant: "body", children: [
8777
8777
  r(n.name),
8778
8778
  ":"
8779
8779
  ] }) }),
8780
- /* @__PURE__ */ o.jsx("td", { className: "", children: /* @__PURE__ */ o.jsx(Y, { variant: "body", children: n.errors }) })
8780
+ /* @__PURE__ */ o.jsx("td", { className: "", children: /* @__PURE__ */ o.jsx(q, { variant: "body", children: n.errors }) })
8781
8781
  ] }, n.name)) }) }) });
8782
8782
  }, Sc = (e) => {
8783
8783
  const t = {};
@@ -8845,31 +8845,31 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
8845
8845
  var y;
8846
8846
  return e ? (y = e == null ? void 0 : e.toString()) == null ? void 0 : y.split(i) : [];
8847
8847
  }, [e, i]), d = P((y, x) => {
8848
- const j = y.split(i), C = x ? j.every((O) => u.includes(O)) && u.length === j.length ? null : j : y === "" ? void 0 : u.includes(y) ? u.filter((O) => O !== y) : [...u, y];
8849
- a(C != null && C.length ? C.join(i) : null);
8848
+ const C = y.split(i), S = x ? C.every((_) => u.includes(_)) && u.length === C.length ? null : C : y === "" ? void 0 : u.includes(y) ? u.filter((_) => _ !== y) : [...u, y];
8849
+ a(S != null && S.length ? S.join(i) : null);
8850
8850
  }, [a, u, i]), p = A(() => {
8851
8851
  const y = [
8852
8852
  {
8853
8853
  value: n.map((x) => {
8854
- var j;
8855
- return ((j = x.id) == null ? void 0 : j.toString()) ?? "";
8854
+ var C;
8855
+ return ((C = x.id) == null ? void 0 : C.toString()) ?? "";
8856
8856
  }).join(i),
8857
8857
  label: s.allOptionsMultiselect,
8858
8858
  specialOption: !0
8859
8859
  }
8860
8860
  ];
8861
8861
  return n.forEach((x) => {
8862
- var j, C;
8862
+ var C, S;
8863
8863
  y.push({
8864
- value: ((j = x.id) == null ? void 0 : j.toString()) ?? "",
8865
- label: ((C = x.name) == null ? void 0 : C.toString()) ?? "",
8864
+ value: ((C = x.id) == null ? void 0 : C.toString()) ?? "",
8865
+ label: ((S = x.name) == null ? void 0 : S.toString()) ?? "",
8866
8866
  specialOption: !1
8867
8867
  });
8868
8868
  }), y;
8869
8869
  }, [n, s, i]), f = ee(null), m = ee(null), [g, b] = R(!1);
8870
- return q(() => {
8870
+ return U(() => {
8871
8871
  g && m.current && m.current.focus();
8872
- }, [g]), q(() => {
8872
+ }, [g]), U(() => {
8873
8873
  p.length < Ji && c("");
8874
8874
  }, [p]), /* @__PURE__ */ o.jsxs(xr, { autoClose: "outside", onToggle: (y) => b(y), children: [
8875
8875
  /* @__PURE__ */ o.jsx(xr.Toggle, { variant: "light", ref: f, id: `multiselect-${t}`, size: "sm", className: I("bg-white border", Qt.multiselect), onKeyDown: (y) => {
@@ -8915,7 +8915,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
8915
8915
  var N, y;
8916
8916
  return ((N = w.id) == null ? void 0 : N.toString()) === ((y = v == null ? void 0 : v.id) == null ? void 0 : y.toString());
8917
8917
  })) && l && (console.log("adding to values for select"), l({ id: ((h = v.id) == null ? void 0 : h.toString()) ?? "", name: v.name }));
8918
- }, disabled: a ? !0 : n ? !i : !1 }) : /* @__PURE__ */ o.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ o.jsxs(Y, { variant: "body", children: [
8918
+ }, disabled: a ? !0 : n ? !i : !1 }) : /* @__PURE__ */ o.jsx("div", { className: "alert alert-warning p-1 m-0", children: /* @__PURE__ */ o.jsxs(q, { variant: "body", children: [
8919
8919
  "Neznámý typ ",
8920
8920
  e
8921
8921
  ] }) });
@@ -8931,7 +8931,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
8931
8931
  }
8932
8932
  }));
8933
8933
  }, []), f = (g) => (g == null ? void 0 : g.value) !== (g == null ? void 0 : g.defaultValue), m = P(() => Object.keys(u).some((g) => f(u[g])), [u]);
8934
- return q(() => {
8934
+ return U(() => {
8935
8935
  d(n);
8936
8936
  }, [n]), /* @__PURE__ */ o.jsxs("tr", { className: I("table-row", we.tableRow), children: [
8937
8937
  /* @__PURE__ */ o.jsx("td", { className: I("table-cell", we.tableCell, we.stickyFirst), children: m() && /* @__PURE__ */ o.jsx(re, { color: "success", onClick: () => a(Sc(u)), children: /* @__PURE__ */ o.jsx(c, { icon: "check" }) }) }),
@@ -8944,8 +8944,8 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
8944
8944
  /* @__PURE__ */ o.jsxs("td", { className: I("table-cell d-flex gap-1", we.tableCell, we.stickyLast), children: [
8945
8945
  e != null && e.slaves && e.slaves.length > 0 ? e.slaves.map((g, b) => {
8946
8946
  var v, h;
8947
- return /* @__PURE__ */ o.jsx(re, { as: "link", href: `${rr(l, { id: (v = g.id) == null ? void 0 : v.toString() })}?type=dynamic-form&masterId=${(h = u.id) == null ? void 0 : h.value}`, children: /* @__PURE__ */ o.jsx(Ue, { text: g.name ?? "", placement: "left", children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs(Y, { variant: "body", className: "d-flex align-items-center text-primary", children: [
8948
- e.slaves.length > 1 ? /* @__PURE__ */ o.jsx(Y, { variant: "caption", className: "text-primary", children: b + 1 }) : null,
8947
+ return /* @__PURE__ */ o.jsx(re, { as: "link", href: `${rr(l, { id: (v = g.id) == null ? void 0 : v.toString() })}?type=dynamic-form&masterId=${(h = u.id) == null ? void 0 : h.value}`, children: /* @__PURE__ */ o.jsx(Ue, { text: g.name ?? "", placement: "left", children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs(q, { variant: "body", className: "d-flex align-items-center text-primary", children: [
8948
+ e.slaves.length > 1 ? /* @__PURE__ */ o.jsx(q, { variant: "caption", className: "text-primary", children: b + 1 }) : null,
8949
8949
  /* @__PURE__ */ o.jsx(Os, {})
8950
8950
  ] }) }) }) }, g.id);
8951
8951
  }) : null,
@@ -8991,9 +8991,9 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
8991
8991
  dragging: yy
8992
8992
  }, wy = ({ cellRef: e, defaultWidth: t }) => {
8993
8993
  const [r, n] = R(t), [, a] = R(null);
8994
- return q(() => {
8994
+ return U(() => {
8995
8995
  n(t);
8996
- }, [t]), q(() => {
8996
+ }, [t]), U(() => {
8997
8997
  e.current && (e.current.style.minWidth = `${r}px`);
8998
8998
  }, [r, e]), /* @__PURE__ */ o.jsx("div", { className: I("luminus-column-resizer", rn.resizer), draggable: !0, onDragStart: (i) => {
8999
8999
  a(i.currentTarget.getBoundingClientRect().x), i.currentTarget.classList.add(rn.dragging);
@@ -9045,7 +9045,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9045
9045
  ] });
9046
9046
  }, jy = ({ schema: e, items: t, onEditItem: r, onDeleteItem: n, onCreateItem: a, filters: i, setFilter: s, sortByField: l, sortByType: c, setSortBy: u, selectedMaster: d, customPickers: p, appDetail: f }) => {
9047
9047
  const { texts: { dynamicForms: m } } = H(J), [g, b] = R([]);
9048
- return q(() => {
9048
+ return U(() => {
9049
9049
  var v, h, w;
9050
9050
  b([
9051
9051
  ...((w = (h = (v = e.columns) == null ? void 0 : v.filter((N) => !N.hidden)) == null ? void 0 : h.filter((N) => e.masterReference ? N.field !== e.masterReferenceColumn : !0)) == null ? void 0 : w.map((N) => {
@@ -9097,24 +9097,24 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9097
9097
  apiExportGet: "/dynamicForms/export"
9098
9098
  }, HN = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: i, sortByType: s, setSortBy: l, appUrls: { appDetail: c = ts.appDetail } = ts, apiUrls: { apiSchemaGet: u = Bt.apiSchemaGet, apiDataGet: d = Bt.apiDataGet, apiItemPost: p = Bt.apiItemPost, apiItemDelete: f = Bt.apiItemDelete, apiItemCreate: m = Bt.apiItemCreate, apiExportGet: g = Bt.apiExportGet } = Bt, customPickers: b }) => {
9099
9099
  var Le, tt, rt, Yt, Co, So, Eo;
9100
- const { texts: { dynamicForms: v }, ProjectIconComponent: h } = H(J), w = ft(), { startLoading: N, stopLoading: y } = H(cr), [x, j] = R(null), [C, O] = R(null), [E, T] = R(null), [M, V] = R(null), [S, _] = R(!1), { addNotification: $ } = Ma(), [k, L] = R([]), { confirm: U } = dr(), G = 20, z = G + 1, X = M ? Math.ceil(M.length / G) : 1, te = t ? t > 1 : !1, ie = t ? t < X : !1, se = t ? (t - 1) * G : 0, be = t ? t * G : G, W = A(() => M ? M.length > z : !1, [M, z]), ae = A(() => W ? (M == null ? void 0 : M.slice(se, be)) ?? null : M ?? null, [W, M, se, be]), [me, je] = $a("masterId", null, "string"), [pe, B] = R(me);
9101
- q(() => {
9102
- j(null), O(null), _(!1), L([]);
9103
- }, [e]), q(() => {
9104
- me !== null && (B(me), je(null));
9100
+ const { texts: { dynamicForms: v }, ProjectIconComponent: h } = H(J), w = ft(), { startLoading: N, stopLoading: y } = H(cr), [x, C] = R(null), [S, _] = R(null), [E, T] = R(null), [M, V] = R(null), [D, O] = R(!1), { addNotification: G } = Ma(), [B, L] = R([]), { confirm: Y } = dr(), $ = 20, z = $ + 1, X = M ? Math.ceil(M.length / $) : 1, te = t ? t > 1 : !1, ie = t ? t < X : !1, se = t ? (t - 1) * $ : 0, be = t ? t * $ : $, W = A(() => M ? M.length > z : !1, [M, z]), ae = A(() => W ? (M == null ? void 0 : M.slice(se, be)) ?? null : M ?? null, [W, M, se, be]), [me, je] = $a("masterId", null, "string"), [pe, k] = R(me);
9101
+ U(() => {
9102
+ C(null), _(null), O(!1), L([]);
9103
+ }, [e]), U(() => {
9104
+ me !== null && (k(me), je(null));
9105
9105
  }, [me, e, je]);
9106
9106
  const de = P(async () => {
9107
9107
  N("dynamicFormSchema"), await w.get(`${u}?id=${e}`).then(({ data: oe }) => {
9108
- j(oe), y("dynamicFormSchema");
9108
+ C(oe), y("dynamicFormSchema");
9109
9109
  }).catch(() => y("dynamicFormSchema"));
9110
9110
  }, [w, e, N, y, u]), Ie = P(async () => {
9111
9111
  var oe;
9112
9112
  if (!(x === null || ((oe = x.id) == null ? void 0 : oe.toString()) !== e)) {
9113
9113
  if (x.masterReference && !pe) {
9114
- O([]);
9114
+ _([]);
9115
9115
  return;
9116
9116
  }
9117
- N("dynamicFormData"), await w.get(`${d}?id=${e}&showArchive=${S}${x.masterReference ? `&master=${pe}` : ""}`).then(({ data: ve }) => {
9117
+ N("dynamicFormData"), await w.get(`${d}?id=${e}&showArchive=${D}${x.masterReference ? `&master=${pe}` : ""}`).then(({ data: ve }) => {
9118
9118
  const De = ve.map((he) => {
9119
9119
  var _e;
9120
9120
  return Object.fromEntries(((_e = x.columns) == null ? void 0 : _e.filter((Ae) => Ae.field).map((Ae) => [
@@ -9122,42 +9122,42 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9122
9122
  { value: he[Ae.field ?? ""], defaultValue: he[Ae.field ?? ""] }
9123
9123
  ])) ?? []);
9124
9124
  });
9125
- O(De), y("dynamicFormData");
9125
+ _(De), y("dynamicFormData");
9126
9126
  }).catch(() => y("dynamicFormData"));
9127
9127
  }
9128
- }, [w, e, x, N, y, S, pe, d]), Ge = P(async () => {
9128
+ }, [w, e, x, N, y, D, pe, d]), Ge = P(async () => {
9129
9129
  var oe;
9130
- x === null || ((oe = x.id) == null ? void 0 : oe.toString()) !== e || x.masterReference && !pe || (N("dynamicFormExport"), await w.get(`${g}?id=${e}&showArchive=${S}${x.masterReference ? `&master=${pe}` : ""}`, {
9130
+ x === null || ((oe = x.id) == null ? void 0 : oe.toString()) !== e || x.masterReference && !pe || (N("dynamicFormExport"), await w.get(`${g}?id=${e}&showArchive=${D}${x.masterReference ? `&master=${pe}` : ""}`, {
9131
9131
  responseType: "blob"
9132
9132
  }).then((ve) => _d(ve, { fallbackName: `export-${e}` })).finally(() => y("dynamicFormExport")));
9133
- }, [w, e, x, N, y, S, pe, g]), Ke = P(async (oe) => (N("dynamicFormEdit"), w.post(`${p}?id=${e}`, oe).then(() => (y("dynamicFormEdit"), L([]), !0)).catch((ve) => (y("dynamicFormEdit"), L(An(ve)), !1))), [w, e, N, y, p]), mt = P(async (oe) => (N("dynamicFormDelete"), w.delete(`${f}?id=${e}&pk=${oe}`).then(() => (y("dynamicFormDelete"), L([]), !0)).catch((ve) => (y("dynamicFormDelete"), L(An(ve)), !1))), [w, e, N, y, f]), K = P(async (oe) => (N("dynamicFormCreate"), w.post(`${m}?id=${e}`, oe).then(({ data: ve }) => (y("dynamicFormCreate"), L([]), ve)).catch((ve) => (y("dynamicFormCreate"), L(An(ve)), null))), [w, e, N, y, m]), F = P(async (oe) => {
9134
- x && await Ke(x.masterReference ? { ...oe, [x.masterReferenceColumn ?? ""]: pe } : oe) && ($(v.editSuccess, "success"), O((ve) => ve && ve.map((De) => {
9133
+ }, [w, e, x, N, y, D, pe, g]), Ke = P(async (oe) => (N("dynamicFormEdit"), w.post(`${p}?id=${e}`, oe).then(() => (y("dynamicFormEdit"), L([]), !0)).catch((ve) => (y("dynamicFormEdit"), L(An(ve)), !1))), [w, e, N, y, p]), mt = P(async (oe) => (N("dynamicFormDelete"), w.delete(`${f}?id=${e}&pk=${oe}`).then(() => (y("dynamicFormDelete"), L([]), !0)).catch((ve) => (y("dynamicFormDelete"), L(An(ve)), !1))), [w, e, N, y, f]), K = P(async (oe) => (N("dynamicFormCreate"), w.post(`${m}?id=${e}`, oe).then(({ data: ve }) => (y("dynamicFormCreate"), L([]), ve)).catch((ve) => (y("dynamicFormCreate"), L(An(ve)), null))), [w, e, N, y, m]), F = P(async (oe) => {
9134
+ x && await Ke(x.masterReference ? { ...oe, [x.masterReferenceColumn ?? ""]: pe } : oe) && (G(v.editSuccess, "success"), _((ve) => ve && ve.map((De) => {
9135
9135
  var he;
9136
9136
  return ((he = De[(x == null ? void 0 : x.primaryKey) ?? ""]) == null ? void 0 : he.value) === oe[(x == null ? void 0 : x.primaryKey) ?? ""] ? Qi(oe, x) : De;
9137
9137
  })));
9138
- }, [$, Ke, x, pe, v]), Z = P(async (oe) => {
9139
- await U(v.deleteConfirm) && await mt(oe) && ($(v.deleteSuccess, "success"), O((ve) => ve && ve.filter((De) => {
9138
+ }, [G, Ke, x, pe, v]), Z = P(async (oe) => {
9139
+ await Y(v.deleteConfirm) && await mt(oe) && (G(v.deleteSuccess, "success"), _((ve) => ve && ve.filter((De) => {
9140
9140
  var he;
9141
9141
  return ((he = De[(x == null ? void 0 : x.primaryKey) ?? ""]) == null ? void 0 : he.value) !== oe;
9142
9142
  })));
9143
- }, [$, mt, v, U, x]), ue = P(async (oe) => {
9143
+ }, [G, mt, v, Y, x]), ue = P(async (oe) => {
9144
9144
  if (!x)
9145
9145
  return !1;
9146
9146
  const ve = await K(x.masterReference ? { ...oe, [x.masterReferenceColumn ?? ""]: pe } : oe);
9147
9147
  if (ve !== null) {
9148
- $(v.createSuccess, "success");
9148
+ G(v.createSuccess, "success");
9149
9149
  const De = Qi(oe, x);
9150
- return De[(x == null ? void 0 : x.primaryKey) ?? ""] = { value: ve, defaultValue: ve }, O((he) => [...he ?? [], De]), !0;
9150
+ return De[(x == null ? void 0 : x.primaryKey) ?? ""] = { value: ve, defaultValue: ve }, _((he) => [...he ?? [], De]), !0;
9151
9151
  }
9152
9152
  return !1;
9153
- }, [$, K, v, x, pe]), Ce = (oe) => {
9153
+ }, [G, K, v, x, pe]), Ce = (oe) => {
9154
9154
  oe > X ? r(X) : oe < 1 && r(1), r(oe);
9155
9155
  }, ge = P(() => {
9156
- if (!C || !x) {
9156
+ if (!S || !x) {
9157
9157
  T(null);
9158
9158
  return;
9159
9159
  }
9160
- const oe = C.filter((ve) => Object.entries(n).every(([De, he]) => {
9160
+ const oe = S.filter((ve) => Object.entries(n).every(([De, he]) => {
9161
9161
  var gr, vr, hr;
9162
9162
  if (he === null)
9163
9163
  return !0;
@@ -9181,7 +9181,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9181
9181
  }
9182
9182
  }));
9183
9183
  T(oe);
9184
- }, [C, n, x]), ce = P(() => {
9184
+ }, [S, n, x]), ce = P(() => {
9185
9185
  if (!E || !x) {
9186
9186
  V([]);
9187
9187
  return;
@@ -9220,45 +9220,45 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9220
9220
  return s === "asc" ? De.toString().localeCompare(he.toString()) : he.toString().localeCompare(De.toString());
9221
9221
  }));
9222
9222
  }, [E, x, i, s]);
9223
- return q(() => {
9223
+ return U(() => {
9224
9224
  de();
9225
- }, [de]), q(() => {
9225
+ }, [de]), U(() => {
9226
9226
  Ie();
9227
- }, [Ie]), q(() => {
9227
+ }, [Ie]), U(() => {
9228
9228
  ge();
9229
- }, [ge]), q(() => {
9229
+ }, [ge]), U(() => {
9230
9230
  ce();
9231
- }, [ce]), q(() => {
9231
+ }, [ce]), U(() => {
9232
9232
  W ? t || r(1) : M && r(null);
9233
- }, [M, W, t, r]), q(() => {
9233
+ }, [M, W, t, r]), U(() => {
9234
9234
  !W || !t || (t > X && r(X), t < 1 && r(1));
9235
9235
  }, [t, W, X, r]), /* @__PURE__ */ o.jsxs("div", { className: "h-100 w-100 d-flex flex-column", children: [
9236
9236
  /* @__PURE__ */ o.jsxs("div", { className: "mb-3 d-flex justify-content-between align-items-start", children: [
9237
9237
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center gap-3", children: [
9238
- /* @__PURE__ */ o.jsx(Y, { variant: "h3", children: (x == null ? void 0 : x.name) ?? "" }),
9239
- (x == null ? void 0 : x.masterReference) && /* @__PURE__ */ o.jsx(Cy, { label: ((tt = (Le = x.columns) == null ? void 0 : Le.find((oe) => oe.field === x.masterReferenceColumn)) == null ? void 0 : tt.caption) ?? "", options: ((Yt = (rt = x.columns) == null ? void 0 : rt.find((oe) => oe.field === x.masterReferenceColumn)) == null ? void 0 : Yt.values) ?? [], master: pe, onChange: (oe) => B(oe) })
9238
+ /* @__PURE__ */ o.jsx(q, { variant: "h3", children: (x == null ? void 0 : x.name) ?? "" }),
9239
+ (x == null ? void 0 : x.masterReference) && /* @__PURE__ */ o.jsx(Cy, { label: ((tt = (Le = x.columns) == null ? void 0 : Le.find((oe) => oe.field === x.masterReferenceColumn)) == null ? void 0 : tt.caption) ?? "", options: ((Yt = (rt = x.columns) == null ? void 0 : rt.find((oe) => oe.field === x.masterReferenceColumn)) == null ? void 0 : Yt.values) ?? [], master: pe, onChange: (oe) => k(oe) })
9240
9240
  ] }),
9241
9241
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
9242
9242
  (Co = x == null ? void 0 : x.slaves) == null ? void 0 : Co.map((oe, ve) => {
9243
9243
  var De;
9244
9244
  return /* @__PURE__ */ o.jsxs(ht, { as: "link", href: `${rr(c, { id: (De = oe.id) == null ? void 0 : De.toString() })}?type=dynamic-form`, children: [
9245
9245
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
9246
- x.slaves.length > 1 ? /* @__PURE__ */ o.jsx(Y, { variant: "caption", className: "text-primary", children: ve + 1 }) : null,
9246
+ x.slaves.length > 1 ? /* @__PURE__ */ o.jsx(q, { variant: "caption", className: "text-primary", children: ve + 1 }) : null,
9247
9247
  /* @__PURE__ */ o.jsx(Os, {})
9248
9248
  ] }),
9249
9249
  oe.name
9250
9250
  ] }, oe.id);
9251
9251
  }),
9252
9252
  /* @__PURE__ */ o.jsxs(sr, { toggle: /* @__PURE__ */ o.jsx(lr, { as: $r }), children: [
9253
- /* @__PURE__ */ o.jsx(ot, { onClick: () => _(!S), children: S ? v.hideArchived : v.showArchived }),
9253
+ /* @__PURE__ */ o.jsx(ot, { onClick: () => O(!D), children: D ? v.hideArchived : v.showArchived }),
9254
9254
  /* @__PURE__ */ o.jsx(Od, {}),
9255
9255
  /* @__PURE__ */ o.jsx(ot, { onClick: Ge, icon: /* @__PURE__ */ o.jsx(h, { icon: "file-download" }), children: v.downloadExport })
9256
9256
  ] })
9257
9257
  ] })
9258
9258
  ] }),
9259
- (x == null ? void 0 : x.description) && /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "mb-3", children: x == null ? void 0 : x.description }),
9259
+ (x == null ? void 0 : x.description) && /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "mb-3", children: x == null ? void 0 : x.description }),
9260
9260
  x != null && x.masterReference && !pe ? /* @__PURE__ */ o.jsx(It, { variant: "warning", children: v.selectMaster(((Eo = (So = x.columns) == null ? void 0 : So.find((oe) => oe.field === x.masterReferenceColumn)) == null ? void 0 : Eo.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
9261
- x && k.length > 0 && /* @__PURE__ */ o.jsx("div", { className: "mb-2", children: /* @__PURE__ */ o.jsx(Jx, { errors: k, schema: x }) }),
9261
+ x && B.length > 0 && /* @__PURE__ */ o.jsx("div", { className: "mb-2", children: /* @__PURE__ */ o.jsx(Jx, { errors: B, schema: x }) }),
9262
9262
  x && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
9263
9263
  /* @__PURE__ */ o.jsx("div", { className: I("rounded border overflow-auto", es.tableContainer), children: /* @__PURE__ */ o.jsx(jy, { schema: x, items: !W && M && (M == null ? void 0 : M.length) > z ? [] : (W ? ae : M) ?? [], onEditItem: F, onDeleteItem: Z, onCreateItem: ue, filters: n, setFilter: a, sortByField: i, sortByType: s, setSortBy: l, selectedMaster: (pe == null ? void 0 : pe.toString()) ?? null, customPickers: b, appDetail: c }) }),
9264
9264
  W && t && /* @__PURE__ */ o.jsxs("div", { className: I(es.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
@@ -9268,7 +9268,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9268
9268
  /* @__PURE__ */ o.jsx(re, { color: "primary", onClick: () => Ce(t + 1), disabled: !ie, children: /* @__PURE__ */ o.jsx(h, { icon: "chevron-right" }) }),
9269
9269
  /* @__PURE__ */ o.jsx(re, { color: "primary", onClick: () => Ce(X), disabled: !ie, children: /* @__PURE__ */ o.jsx(h, { icon: "chevron-double-right" }) })
9270
9270
  ] }),
9271
- /* @__PURE__ */ o.jsxs(Y, { variant: "body", children: [
9271
+ /* @__PURE__ */ o.jsxs(q, { variant: "body", children: [
9272
9272
  v.tablePage,
9273
9273
  " ",
9274
9274
  t,
@@ -9301,14 +9301,14 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9301
9301
  p(v), u("dynamicForms");
9302
9302
  }).catch(() => u("dynamicForms"));
9303
9303
  }, [l, c, u, s]);
9304
- return q(() => {
9304
+ return U(() => {
9305
9305
  !d && b();
9306
9306
  }, [b, d]), m.length > 0 ? /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((v) => /* @__PURE__ */ o.jsx(fn, { title: v.name, defaultOpen: !0, children: v.items.map((h) => {
9307
9307
  var w, N, y, x;
9308
9308
  return a ? /* @__PURE__ */ o.jsxs(Ye, { to: `${rr(i, { id: (w = h.id) == null ? void 0 : w.toString() })}?type=${h.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((N = h.id) == null ? void 0 : N.toString()) ? "active" : ""}`, children: [
9309
- /* @__PURE__ */ o.jsx(Y, { variant: "body", children: h.name }),
9310
- h.description && /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "text-muted mt-2", children: h.description })
9311
- ] }, h.id) : /* @__PURE__ */ o.jsx(Ey, { item: h, children: /* @__PURE__ */ o.jsx(Ye, { to: `${rr(i, { id: (y = h.id) == null ? void 0 : y.toString() })}?type=${h.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((x = h.id) == null ? void 0 : x.toString()) ? "active" : ""}`, children: /* @__PURE__ */ o.jsx(Y, { variant: "body2", children: h.name }) }) }, h.id);
9309
+ /* @__PURE__ */ o.jsx(q, { variant: "body", children: h.name }),
9310
+ h.description && /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "text-muted mt-2", children: h.description })
9311
+ ] }, h.id) : /* @__PURE__ */ o.jsx(Ey, { item: h, children: /* @__PURE__ */ o.jsx(Ye, { to: `${rr(i, { id: (y = h.id) == null ? void 0 : y.toString() })}?type=${h.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((x = h.id) == null ? void 0 : x.toString()) ? "active" : ""}`, children: /* @__PURE__ */ o.jsx(q, { variant: "body2", children: h.name }) }) }, h.id);
9312
9312
  }) }, v.id)) }) }) : null;
9313
9313
  }, qN = ({ label: e, to: t, value: r }) => /* @__PURE__ */ o.jsxs(Pe, { label: e, children: [
9314
9314
  /* @__PURE__ */ o.jsx("input", { disabled: !0, className: "form-control d-none" }),
@@ -9393,13 +9393,13 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9393
9393
  }, By = ({ reportsLastUsedGet: e, getReportRoute: t, getReportName: r }) => {
9394
9394
  const { texts: { reports: n } } = H(J), { data: a } = ct(e);
9395
9395
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(fn, { defaultOpen: !0, title: n.index.lastUsedReports, children: /* @__PURE__ */ o.jsx(_r, { children: a && a.map((i) => i.versions.map((s) => /* @__PURE__ */ o.jsxs(Nn, { as: Ye, to: t(i, s.id), className: "p-1 px-2", action: !0, children: [
9396
- /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "text-uppercase", children: r(i) }),
9397
- /* @__PURE__ */ o.jsxs(Y, { variant: "caption", className: "d-flex justify-content-between align-items-center gap-3 text-dark", children: [
9396
+ /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "text-uppercase", children: r(i) }),
9397
+ /* @__PURE__ */ o.jsxs(q, { variant: "caption", className: "d-flex justify-content-between align-items-center gap-3 text-dark", children: [
9398
9398
  s.name,
9399
- /* @__PURE__ */ o.jsx(Y, { variant: "caption", className: "text-end opacity-50", children: Ps(s.lastUsedDate) })
9399
+ /* @__PURE__ */ o.jsx(q, { variant: "caption", className: "text-end opacity-50", children: Ps(s.lastUsedDate) })
9400
9400
  ] })
9401
9401
  ] }))) }) }) });
9402
- }, as = ({ reportVersion: e, getReportRoute: t, report: r }) => /* @__PURE__ */ o.jsx(Nn, { as: Ye, to: t(r, e.id), className: "p-1 px-2", action: !0, children: /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "d-flex justify-content-between align-items-center gap-3", children: /* @__PURE__ */ o.jsx("div", { className: "link", children: e.name }) }) }), nn = 5, os = ({ versionsList: e, getReportRoute: t, report: r }) => {
9402
+ }, as = ({ reportVersion: e, getReportRoute: t, report: r }) => /* @__PURE__ */ o.jsx(Nn, { as: Ye, to: t(r, e.id), className: "p-1 px-2", action: !0, children: /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "d-flex justify-content-between align-items-center gap-3", children: /* @__PURE__ */ o.jsx("div", { className: "link", children: e.name }) }) }), nn = 5, os = ({ versionsList: e, getReportRoute: t, report: r }) => {
9403
9403
  const { ProjectIconComponent: n } = H(J), [a, i] = R(!0), s = A(() => e.length <= nn ? e : e.slice(0, nn - 1), [e]), l = A(() => e.length <= nn ? [] : e.slice(nn - 1), [e]);
9404
9404
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(_r, { children: [
9405
9405
  s.map((c) => /* @__PURE__ */ o.jsx(as, { reportVersion: c, getReportRoute: t, report: r })),
@@ -9416,7 +9416,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9416
9416
  className: I(Jt.reportCard, "shadow h-100 d-flex flex-column"),
9417
9417
  contentClassName: "d-flex flex-column gap-2 h-100",
9418
9418
  children: [
9419
- /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "px-2", children: n(e) }),
9419
+ /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "px-2", children: n(e) }),
9420
9420
  /* @__PURE__ */ o.jsxs(Ha, { className: "h-100 g-2", children: [
9421
9421
  e.versions && e.versions.length > 0 ? /* @__PURE__ */ o.jsx(pn, { ...a, children: /* @__PURE__ */ o.jsx(os, { versionsList: e.versions, getReportRoute: t, report: e }) }) : null,
9422
9422
  e.versionsCustom && e.versionsCustom.length > 0 ? /* @__PURE__ */ o.jsx(pn, { ...a, children: /* @__PURE__ */ o.jsx(os, { versionsList: e.versionsCustom, getReportRoute: t, report: e }) }) : null
@@ -9466,7 +9466,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9466
9466
  m.current = window.setTimeout(() => c(!0), i);
9467
9467
  }, onMouseLeave: () => {
9468
9468
  m.current && clearTimeout(m.current), c(!1);
9469
- }, children: l && !(s != null && s.external) ? /* @__PURE__ */ o.jsx(Ad, { heading: u ? /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ o.jsx("span", { className: "placeholder bg-primary col-6" }) }) : p, content: /* @__PURE__ */ o.jsx(o.Fragment, { children: u ? /* @__PURE__ */ o.jsxs(Y, { variant: "body2", className: "placeholder-glow", children: [
9469
+ }, children: l && !(s != null && s.external) ? /* @__PURE__ */ o.jsx(Ad, { heading: u ? /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ o.jsx("span", { className: "placeholder bg-primary col-6" }) }) : p, content: /* @__PURE__ */ o.jsx(o.Fragment, { children: u ? /* @__PURE__ */ o.jsxs(q, { variant: "body2", className: "placeholder-glow", children: [
9470
9470
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex justify-content-between py-1", children: [
9471
9471
  /* @__PURE__ */ o.jsx("span", { className: "placeholder col-5" }),
9472
9472
  /* @__PURE__ */ o.jsx("span", { className: "placeholder col-4" })
@@ -9489,8 +9489,8 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9489
9489
  ] })
9490
9490
  ] }) : d }), placement: n, trigger: a, popoverClassName: I(is.miniDetailPopover, is[f]), children: /* @__PURE__ */ o.jsx("div", { children: e }) }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: e }) });
9491
9491
  }, rD = ({ label: e, value: t }) => /* @__PURE__ */ o.jsxs("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
9492
- /* @__PURE__ */ o.jsx(Y, { variant: "caption", children: e }),
9493
- /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "text-end", children: t ?? "-" })
9492
+ /* @__PURE__ */ o.jsx(q, { variant: "caption", children: e }),
9493
+ /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "text-end", children: t ?? "-" })
9494
9494
  ] }), nD = ({ route: e, variant: t = "link", children: r, className: n, disabled: a = !1, routeParams: i }) => {
9495
9495
  const { checkUserHasPermissions: s } = Ts(), l = A(() => a || !(e.permissions === void 0 || s(e.permissions)), [s, a, e.permissions]), c = r ?? e.name, u = A(() => {
9496
9496
  switch (t) {
@@ -9524,7 +9524,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9524
9524
  return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(lx, { dontSort: !0, steps: [
9525
9525
  a != null && a.startDate ? {
9526
9526
  date: Ut(a.startDate),
9527
- title: /* @__PURE__ */ o.jsx(Y, { variant: "body2", children: r.startDate }),
9527
+ title: /* @__PURE__ */ o.jsx(q, { variant: "body2", children: r.startDate }),
9528
9528
  dateFormat: "date"
9529
9529
  } : null,
9530
9530
  ...((s = a == null ? void 0 : a.approvalLevels) == null ? void 0 : s.map((l) => {
@@ -9532,8 +9532,8 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9532
9532
  return {
9533
9533
  date: void 0,
9534
9534
  title: /* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center justify-content-between w-100", children: [
9535
- /* @__PURE__ */ o.jsx(Y, { variant: "body", className: "fw-bold", children: r.getLevelText(l.index) }),
9536
- /* @__PURE__ */ o.jsx(Y, { variant: "caption", className: "text-end", children: r.getThresholdText(l.threshold) })
9535
+ /* @__PURE__ */ o.jsx(q, { variant: "body", className: "fw-bold", children: r.getLevelText(l.index) }),
9536
+ /* @__PURE__ */ o.jsx(q, { variant: "caption", className: "text-end", children: r.getThresholdText(l.threshold) })
9537
9537
  ] }),
9538
9538
  icon: i(l.state),
9539
9539
  text: l.approvers && ((c = l.approvers) == null ? void 0 : c.length) > 0 ? /* @__PURE__ */ o.jsx("div", { className: "list-group", children: l.approvers.map((u) => /* @__PURE__ */ o.jsx("div", { className: "list-group-item p-1", children: /* @__PURE__ */ o.jsxs("div", { className: "d-flex justify-content-between align-items-center gap-2", children: [
@@ -9541,15 +9541,15 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9541
9541
  fontSize: "14px"
9542
9542
  }, children: "A" }) }) }) : i(u.state, !0),
9543
9543
  /* @__PURE__ */ o.jsxs("div", { className: "text-end", children: [
9544
- /* @__PURE__ */ o.jsx(Y, { variant: "body2", children: u.delegatedApprover ? u.delegatedApprover.name : u.approver.name }),
9545
- u.responseDate ? /* @__PURE__ */ o.jsx(Y, { variant: "caption", children: Ps(u.responseDate) }) : null
9544
+ /* @__PURE__ */ o.jsx(q, { variant: "body2", children: u.delegatedApprover ? u.delegatedApprover.name : u.approver.name }),
9545
+ u.responseDate ? /* @__PURE__ */ o.jsx(q, { variant: "caption", children: Ps(u.responseDate) }) : null
9546
9546
  ] })
9547
9547
  ] }) }, u.id)) }) : null
9548
9548
  };
9549
9549
  })) ?? [],
9550
9550
  a != null && a.finishedDate ? {
9551
9551
  date: Ut(a.finishedDate),
9552
- title: /* @__PURE__ */ o.jsx(Y, { variant: "body2", children: r.finishedDate }),
9552
+ title: /* @__PURE__ */ o.jsx(q, { variant: "body2", children: r.finishedDate }),
9553
9553
  dateFormat: "date"
9554
9554
  } : null
9555
9555
  ].filter((l) => l !== null).map((l) => l) }) });
@@ -9566,13 +9566,13 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9566
9566
  right: zy,
9567
9567
  active: qy
9568
9568
  }, oD = ({ isLeftStateActive: e, toggleState: t, leftStateLabel: r, rightStateLabel: n }) => /* @__PURE__ */ o.jsxs("div", { role: "button", className: I("gap-1", nt.stateSwitch), onClick: t, children: [
9569
- /* @__PURE__ */ o.jsxs(Y, { variant: "body2", className: I(nt.switchButton, nt.left, {
9569
+ /* @__PURE__ */ o.jsxs(q, { variant: "body2", className: I(nt.switchButton, nt.left, {
9570
9570
  [nt.active]: e
9571
9571
  }), children: [
9572
9572
  /* @__PURE__ */ o.jsx("div", { className: nt.bgLayer }),
9573
9573
  /* @__PURE__ */ o.jsx("div", { className: nt.textLayer, children: r })
9574
9574
  ] }),
9575
- /* @__PURE__ */ o.jsxs(Y, { variant: "body2", className: I(nt.switchButton, nt.right, {
9575
+ /* @__PURE__ */ o.jsxs(q, { variant: "body2", className: I(nt.switchButton, nt.right, {
9576
9576
  [nt.active]: !e
9577
9577
  }), children: [
9578
9578
  /* @__PURE__ */ o.jsx("div", { className: nt.bgLayer }),
@@ -9583,22 +9583,26 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9583
9583
  {
9584
9584
  fieldName: "employeeName",
9585
9585
  caption: a.index.employeeName,
9586
- type: "string"
9586
+ type: "string",
9587
+ onMobile: { isIdentifier: !0 }
9587
9588
  },
9588
9589
  {
9589
9590
  fieldName: "substituteName",
9590
9591
  caption: a.index.substitute,
9591
- type: "string"
9592
+ type: "string",
9593
+ onMobile: { isIdentifier: !0 }
9592
9594
  },
9593
9595
  {
9594
9596
  fieldName: "from",
9595
9597
  caption: a.index.from,
9596
- type: "date"
9598
+ type: "date",
9599
+ onMobile: { displayGroup: a.index.generalInfo }
9597
9600
  },
9598
9601
  {
9599
9602
  fieldName: "to",
9600
9603
  caption: a.index.to,
9601
- type: "date"
9604
+ type: "date",
9605
+ onMobile: { displayGroup: a.index.generalInfo }
9602
9606
  },
9603
9607
  {
9604
9608
  fieldName: "archived",
@@ -9619,83 +9623,83 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9619
9623
  return /* @__PURE__ */ o.jsx(t, { data: i ?? [], columnsDef: l, tableId: r, useSearchState: !0, paginationMode: "enabled", useScrollableContainer: !0, archiveHighlighting: s, rowNavigation: c });
9620
9624
  }, sD = ({ InputContainer: e = Pe, formField: t, label: r, resetsFields: n, type: a, required: i, hidden: s, disabled: l, withoutLabel: c, hint: u, onChange: d, className: p }) => {
9621
9625
  const { register: f, formState: m, setValue: g } = xt(), b = bt({ falseIfNotInit: !0 }), [v, h] = R(void 0), [w, N] = R(!1);
9622
- q(() => {
9623
- const j = t.split(".");
9624
- let C = m.errors;
9625
- j.forEach((O) => {
9626
- C !== void 0 && (C = C[O]);
9627
- }), h(C);
9626
+ U(() => {
9627
+ const C = t.split(".");
9628
+ let S = m.errors;
9629
+ C.forEach((_) => {
9630
+ S !== void 0 && (S = S[_]);
9631
+ }), h(S);
9628
9632
  }, [m, t]);
9629
9633
  const y = A(() => l || b, [l, b]), x = v !== void 0;
9630
- return q(() => {
9634
+ return U(() => {
9631
9635
  m.isSubmitted && N(!0);
9632
9636
  }, [m]), /* @__PURE__ */ o.jsxs(e, { isForCheckInput: !0, hidden: s, label: r ?? "", required: i, disabled: y, isInvalid: x, withoutLabel: c, hint: u, className: p, children: [
9633
9637
  /* @__PURE__ */ o.jsx(Ee.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${i ? " *" : ""}`, ...f(t, {
9634
- onChange: (j) => {
9635
- n && n.forEach((C) => g(C, null, { shouldDirty: !0, shouldValidate: w })), d && d(j.target.value ?? null);
9638
+ onChange: (C) => {
9639
+ n && n.forEach((S) => g(S, null, { shouldDirty: !0, shouldValidate: w })), d && d(C.target.value ?? null);
9636
9640
  }
9637
9641
  }), isInvalid: x, hidden: s, disabled: y, className: "w-100" }),
9638
9642
  v && /* @__PURE__ */ o.jsx(zt, { message: v.message })
9639
9643
  ] });
9640
9644
  }, lD = ({ InputContainer: e = Pe, label: t, formField: r, options: n, resetsFields: a, required: i, disabled: s, hidden: l, onChange: c, className: u }) => {
9641
9645
  const { register: d, formState: p, setValue: f, watch: m } = xt(), g = bt({ falseIfNotInit: !0 }), [b, v] = R(void 0), [h, w] = R(!1), N = A(() => n, [n]), y = A(() => s || g, [s, g]);
9642
- q(() => {
9643
- const j = r.split(".");
9644
- let C = p.errors;
9645
- j.forEach((O) => {
9646
- C !== void 0 && (C = C[O]);
9647
- }), v(C);
9648
- }, [p, r]), q(() => {
9646
+ U(() => {
9647
+ const C = r.split(".");
9648
+ let S = p.errors;
9649
+ C.forEach((_) => {
9650
+ S !== void 0 && (S = S[_]);
9651
+ }), v(S);
9652
+ }, [p, r]), U(() => {
9649
9653
  p.isSubmitted && w(!0);
9650
9654
  }, [p]);
9651
9655
  const x = b !== void 0;
9652
9656
  return /* @__PURE__ */ o.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: t ?? "", required: i, disabled: y, isInvalid: x, className: u, children: [
9653
- N.map((j) => /* @__PURE__ */ o.jsx(Ee.Check, { id: `radio-${j.id}`, label: j.name, type: "radio", value: j.id ?? "", checked: m(r) === j.id, ...d(r, {
9654
- onChange: (C) => {
9655
- var O;
9656
- a && a.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: h })), c && c((O = C.target) != null && O.value ? C.target.value.toString() : null);
9657
+ N.map((C) => /* @__PURE__ */ o.jsx(Ee.Check, { id: `radio-${C.id}`, label: C.name, type: "radio", value: C.id ?? "", checked: m(r) === C.id, ...d(r, {
9658
+ onChange: (S) => {
9659
+ var _;
9660
+ a && a.forEach((E) => f(E, null, { shouldDirty: !0, shouldValidate: h })), c && c((_ = S.target) != null && _.value ? S.target.value.toString() : null);
9657
9661
  }
9658
- }), isInvalid: x, hidden: l, disabled: y, className: "w-100" }, j.id)),
9662
+ }), isInvalid: x, hidden: l, disabled: y, className: "w-100" }, C.id)),
9659
9663
  b && /* @__PURE__ */ o.jsx(zt, { message: b.message })
9660
9664
  ] });
9661
9665
  }, cD = ({ label: e, InputContainer: t = Pe, className: r, withoutLabel: n, hidden: a, disabled: i, contactType: s, formField: l, ...c }) => {
9662
9666
  const { watch: u } = xt(), d = u(l), p = bt({ falseIfNotInit: !0 }), f = A(() => i || p, [i, p]);
9663
9667
  return a ? null : /* @__PURE__ */ o.jsx(bc, { contactType: s, value: d, withoutLabel: n, label: e, className: r, children: /* @__PURE__ */ o.jsx(ua, { type: "text", formField: l, InputContainer: t, size: "sm", withoutLabel: !0, className: "flex-grow-1", disabled: f, ...c }) });
9664
- }, dD = ({ InputContainer: e = Pe, formField: t, label: r, size: n, defaultSelection: a, resetsFields: i, isNumber: s, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: p, selectedItemNavigateTo: f, texts: m, dropdownItemsNameWidth: g, isLoading: b, withoutLabel: v, additionalColumns: h, CustomOnChangeComponent: w, icon: N, displayIdAsName: y, onSelect: x, className: j, archiveColumn: C, hint: O, addNewOptionPath: E, refreshOptions: T, MiniDetailComponent: M, miniDetailPlacement: V, suggestedItems: S, suggestedItemsTitle: _ }) => {
9665
- const { formState: $, setValue: k, watch: L, control: U } = xt(), G = bt({ falseIfNotInit: !0 }), [z, X] = R(void 0), [te, ie] = R(!1), [se, be] = R(!1), W = L(t) ?? null, ae = W === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : L(`${t}-DropdownName`), me = A(() => W == null ? null : { id: W ?? null, name: ae ?? "" }, [W, ae]), je = P(() => {
9668
+ }, dD = ({ InputContainer: e = Pe, formField: t, label: r, size: n, defaultSelection: a, resetsFields: i, isNumber: s, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: p, selectedItemNavigateTo: f, texts: m, dropdownItemsNameWidth: g, isLoading: b, withoutLabel: v, additionalColumns: h, CustomOnChangeComponent: w, icon: N, displayIdAsName: y, onSelect: x, className: C, archiveColumn: S, hint: _, addNewOptionPath: E, refreshOptions: T, MiniDetailComponent: M, miniDetailPlacement: V, suggestedItems: D, suggestedItemsTitle: O }) => {
9669
+ const { formState: G, setValue: B, watch: L, control: Y } = xt(), $ = bt({ falseIfNotInit: !0 }), [z, X] = R(void 0), [te, ie] = R(!1), [se, be] = R(!1), W = L(t) ?? null, ae = W === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : L(`${t}-DropdownName`), me = A(() => W == null ? null : { id: W ?? null, name: ae ?? "" }, [W, ae]), je = P(() => {
9666
9670
  const F = t.split(".");
9667
- let Z = $.errors;
9671
+ let Z = G.errors;
9668
9672
  F.forEach((ue) => {
9669
9673
  Z !== void 0 && (Z = Z[ue]);
9670
9674
  }), X(Z);
9671
- }, [$, t]), pe = P((F) => {
9675
+ }, [G, t]), pe = P((F) => {
9672
9676
  if ((F == null ? void 0 : F.id) === W)
9673
9677
  return;
9674
- if (x && x(F), i && i.forEach((ue) => k(ue, null, { shouldDirty: !0, shouldValidate: se })), F === null) {
9675
- k(t, null, {
9678
+ if (x && x(F), i && i.forEach((ue) => B(ue, null, { shouldDirty: !0, shouldValidate: se })), F === null) {
9679
+ B(t, null, {
9676
9680
  shouldDirty: !0,
9677
9681
  shouldValidate: se
9678
- }), k(`${t}-DropdownName`, null);
9682
+ }), B(`${t}-DropdownName`, null);
9679
9683
  return;
9680
9684
  }
9681
9685
  let Z = null;
9682
- s ? Z = (F == null ? void 0 : F.id) !== null && (F == null ? void 0 : F.id) !== "" ? parseInt(F.id.toString(), 10) : null : Z = F.id === null || F.id === void 0 || F.id === "" ? null : F.id, k(t, Z, {
9686
+ s ? Z = (F == null ? void 0 : F.id) !== null && (F == null ? void 0 : F.id) !== "" ? parseInt(F.id.toString(), 10) : null : Z = F.id === null || F.id === void 0 || F.id === "" ? null : F.id, B(t, Z, {
9683
9687
  shouldDirty: !0,
9684
9688
  shouldValidate: se
9685
- }), k(`${t}-DropdownName`, F.name ?? "");
9686
- }, [k, t, se, s, i, W, x]), B = P((F) => {
9689
+ }), B(`${t}-DropdownName`, F.name ?? "");
9690
+ }, [B, t, se, s, i, W, x]), k = P((F) => {
9687
9691
  ie(!1), pe(F);
9688
9692
  }, [pe]), de = P(() => {
9689
9693
  ie(!1);
9690
- }, []), Ie = ee(null), Ge = z !== void 0, Ke = f !== void 0, mt = Ke && me !== null, K = A(() => u || G, [u, G]);
9691
- return q(() => {
9694
+ }, []), Ie = ee(null), Ge = z !== void 0, Ke = f !== void 0, mt = Ke && me !== null, K = A(() => u || $, [u, $]);
9695
+ return U(() => {
9692
9696
  je();
9693
- }, [je]), q(() => {
9694
- $.isSubmitted && be(!0);
9695
- }, [$]), /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(e, { label: r ?? "", required: l, disabled: K, hidden: c, withoutLabel: v, isInvalid: Ge, inputContainerClassName: I({ "luminus-dropdown-select-open": te }), hint: O, className: j, children: [
9697
+ }, [je]), U(() => {
9698
+ G.isSubmitted && be(!0);
9699
+ }, [G]), /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(e, { label: r ?? "", required: l, disabled: K, hidden: c, withoutLabel: v, isInvalid: Ge, inputContainerClassName: I({ "luminus-dropdown-select-open": te }), hint: _, className: C, children: [
9696
9700
  /* @__PURE__ */ o.jsxs(Ra, { currentSelection: me, selectedItemNavigateTo: f, children: [
9697
- y && (me == null ? void 0 : me.name) && /* @__PURE__ */ o.jsx(Y, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: me.name }),
9698
- /* @__PURE__ */ o.jsx(Va, { control: U, name: t, render: () => /* @__PURE__ */ o.jsx(ka, { value: W, MiniDetailComponent: M, miniDetailPlacement: V, children: /* @__PURE__ */ o.jsx(Ee.Select, { size: n, onMouseDown: (F) => {
9701
+ y && (me == null ? void 0 : me.name) && /* @__PURE__ */ o.jsx(q, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: me.name }),
9702
+ /* @__PURE__ */ o.jsx(Va, { control: Y, name: t, render: () => /* @__PURE__ */ o.jsx(ka, { value: W, MiniDetailComponent: M, miniDetailPlacement: V, children: /* @__PURE__ */ o.jsx(Ee.Select, { size: n, onMouseDown: (F) => {
9699
9703
  F.currentTarget.focus(), F.preventDefault();
9700
9704
  }, onClick: () => {
9701
9705
  !Ke && !K && ie(!0);
@@ -9712,19 +9716,19 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9712
9716
  ] }) : null
9713
9717
  ] }),
9714
9718
  z && /* @__PURE__ */ o.jsx(zt, { message: z.message }),
9715
- Ie.current && /* @__PURE__ */ o.jsx(Ba, { show: te, onCancel: de, items: d, currentSelection: me, onSelectionChange: B, onSearchQueryChange: p, texts: m, itemsNameWidth: g, additionalColumns: h, displayIdAsName: y, isLoading: b, disabled: K, inputRef: Ie, archiveColumn: C, addNewOptionPath: E, refreshOptions: T, suggestedItems: S, suggestedItemsTitle: _ })
9719
+ Ie.current && /* @__PURE__ */ o.jsx(Ba, { show: te, onCancel: de, items: d, currentSelection: me, onSelectionChange: k, onSearchQueryChange: p, texts: m, itemsNameWidth: g, additionalColumns: h, displayIdAsName: y, isLoading: b, disabled: K, inputRef: Ie, archiveColumn: S, addNewOptionPath: E, refreshOptions: T, suggestedItems: D, suggestedItemsTitle: O })
9716
9720
  ] }) });
9717
9721
  }, uD = ({ InputContainer: e = Pe, label: t, formField: r, hidden: n, required: a, placeholder: i, disabled: s, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: p, hint: f, className: m }) => {
9718
- const { watch: g, setValue: b, register: v, formState: h } = xt(), w = bt({ falseIfNotInit: !0 }), [N, y] = R(!1), [x, j] = R(void 0), C = P(() => {
9722
+ const { watch: g, setValue: b, register: v, formState: h } = xt(), w = bt({ falseIfNotInit: !0 }), [N, y] = R(!1), [x, C] = R(void 0), S = P(() => {
9719
9723
  b(r, "");
9720
- }, [b, r]), O = P(() => {
9724
+ }, [b, r]), _ = P(() => {
9721
9725
  const M = r.split(".");
9722
9726
  let V = h.errors;
9723
- M.forEach((S) => {
9724
- V !== void 0 && (V = V[S]);
9725
- }), j(V);
9727
+ M.forEach((D) => {
9728
+ V !== void 0 && (V = V[D]);
9729
+ }), C(V);
9726
9730
  }, [h, r]);
9727
- q(O, [O]), q(() => {
9731
+ U(_, [_]), U(() => {
9728
9732
  h.isSubmitted && y(!0);
9729
9733
  }, [h]);
9730
9734
  const E = A(() => s || w, [s, w]), T = x !== void 0;
@@ -9734,151 +9738,151 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9734
9738
  c && c.forEach((M) => b(M, null, { shouldDirty: !0, shouldValidate: N }));
9735
9739
  }
9736
9740
  }) }),
9737
- l && g(r) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(re, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ o.jsx(Ot, {}) }) }),
9741
+ l && g(r) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(re, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ o.jsx(Ot, {}) }) }),
9738
9742
  x && /* @__PURE__ */ o.jsx(zt, { message: x.message })
9739
9743
  ] });
9740
9744
  }, Yy = ({ children: e, onStorno: t, noSpacer: r }) => {
9741
9745
  const { formState: n } = xt(), a = bt({ falseIfNotInit: !0 }), [i, s] = R(!1);
9742
- return q(() => {
9746
+ return U(() => {
9743
9747
  s(Object.keys(n.dirtyFields).length > 0);
9744
9748
  }, [n]), i ? /* @__PURE__ */ o.jsx(Ru, { onStorno: t, noSpacer: r, disabled: a, children: e }) : null;
9745
9749
  }, ss = ({ InputContainer: e = Pe, options: t, formField: r, label: n, size: a, resetsFields: i, isNumber: s, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: p, suffixIdToName: f, onSelect: m, className: g, appendCurrentSelectionWithName: b, hint: v, addNewOptionPath: h, refreshOptions: w, MiniDetailComponent: N, miniDetailPlacement: y, selectedItemNavigateTo: x }) => {
9746
- const { texts: { customSelect: j } } = H(J), { formState: C, setValue: O, watch: E, control: T } = xt(), M = bt({ falseIfNotInit: !0 }), [V, S] = R(void 0), [_, $] = R(!1), [k, L] = R(!1), [U, G] = R(""), z = E(r), X = A(() => t.find((B) => B.id === z) ?? null, [t, z]), te = P(() => {
9747
- const B = r.split(".");
9748
- let de = C.errors;
9749
- B.forEach((Ie) => {
9750
+ const { texts: { customSelect: C } } = H(J), { formState: S, setValue: _, watch: E, control: T } = xt(), M = bt({ falseIfNotInit: !0 }), [V, D] = R(void 0), [O, G] = R(!1), [B, L] = R(!1), [Y, $] = R(""), z = E(r), X = A(() => t.find((k) => k.id === z) ?? null, [t, z]), te = P(() => {
9751
+ const k = r.split(".");
9752
+ let de = S.errors;
9753
+ k.forEach((Ie) => {
9750
9754
  de !== void 0 && (de = de[Ie]);
9751
- }), S(de);
9752
- }, [C, r]), ie = P((B) => {
9753
- if ((B == null ? void 0 : B.id) === z)
9755
+ }), D(de);
9756
+ }, [S, r]), ie = P((k) => {
9757
+ if ((k == null ? void 0 : k.id) === z)
9754
9758
  return;
9755
- if (m && m(B), i && i.forEach((Ie) => O(Ie, null, { shouldDirty: !0, shouldValidate: k })), B === null) {
9756
- O(r, null, {
9759
+ if (m && m(k), i && i.forEach((Ie) => _(Ie, null, { shouldDirty: !0, shouldValidate: B })), k === null) {
9760
+ _(r, null, {
9757
9761
  shouldDirty: !0,
9758
- shouldValidate: k
9762
+ shouldValidate: B
9759
9763
  });
9760
9764
  return;
9761
9765
  }
9762
9766
  let de = null;
9763
- s ? de = (B == null ? void 0 : B.id) !== null && (B == null ? void 0 : B.id) !== "" ? parseInt(B.id.toString(), 10) : null : de = B.id === null || B.id === void 0 || B.id === "" ? null : B.id, O(r, de, {
9767
+ s ? de = (k == null ? void 0 : k.id) !== null && (k == null ? void 0 : k.id) !== "" ? parseInt(k.id.toString(), 10) : null : de = k.id === null || k.id === void 0 || k.id === "" ? null : k.id, _(r, de, {
9764
9768
  shouldDirty: !0,
9765
- shouldValidate: k
9769
+ shouldValidate: B
9766
9770
  });
9767
- }, [O, r, s, i, z, k, m]), se = P((B) => {
9768
- $(!1), ie(B);
9769
- }, [ie]), be = P((B) => {
9770
- G(B);
9771
+ }, [_, r, s, i, z, B, m]), se = P((k) => {
9772
+ G(!1), ie(k);
9773
+ }, [ie]), be = P((k) => {
9774
+ $(k);
9771
9775
  }, []), W = A(() => u || M, [u, M]);
9772
- q(() => {
9776
+ U(() => {
9773
9777
  te();
9774
- }, [te]), q(() => {
9775
- C.isSubmitted && L(!0);
9776
- }, [C]);
9777
- const ae = P((B) => {
9778
+ }, [te]), U(() => {
9779
+ S.isSubmitted && L(!0);
9780
+ }, [S]);
9781
+ const ae = P((k) => {
9778
9782
  var de;
9779
- return B === null ? "" : !B.name || B.name.length === 0 ? ((de = B.id) == null ? void 0 : de.toString()) ?? "" : f ? `${B.name} (${B.id})` : B.name;
9783
+ return k === null ? "" : !k.name || k.name.length === 0 ? ((de = k.id) == null ? void 0 : de.toString()) ?? "" : f ? `${k.name} (${k.id})` : k.name;
9780
9784
  }, [f]), me = A(() => {
9781
- const B = t ? [...t] : [];
9782
- return b !== void 0 && z && (B.some((de) => de.id === z) || B.push({ id: z, name: b })), B.map((de) => ({
9785
+ const k = t ? [...t] : [];
9786
+ return b !== void 0 && z && (k.some((de) => de.id === z) || k.push({ id: z, name: b })), k.map((de) => ({
9783
9787
  id: de.id,
9784
9788
  name: ae(de)
9785
- })).filter((de) => Je(de.name, U)).sort((de, Ie) => p ? 0 : (de.name ?? "").localeCompare(Ie.name ?? ""));
9789
+ })).filter((de) => Je(de.name, Y)).sort((de, Ie) => p ? 0 : (de.name ?? "").localeCompare(Ie.name ?? ""));
9786
9790
  }, [
9787
9791
  t,
9788
9792
  p,
9789
- U,
9793
+ Y,
9790
9794
  ae,
9791
9795
  b,
9792
9796
  z
9793
9797
  ]), je = ee(null), pe = V !== void 0;
9794
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(e, { label: n ?? "", required: l, disabled: W, hidden: c, withoutLabel: d, isInvalid: pe, inputContainerClassName: I({ "luminus-dropdown-select-open": _ }), hint: v, className: g, children: [
9795
- /* @__PURE__ */ o.jsx(Ra, { currentSelection: X, selectedItemNavigateTo: x, children: /* @__PURE__ */ o.jsx(Va, { control: T, name: r, render: () => /* @__PURE__ */ o.jsx(ka, { value: z, MiniDetailComponent: N, miniDetailPlacement: y, children: /* @__PURE__ */ o.jsx(Ee.Select, { size: a, onMouseDown: (B) => {
9796
- B.currentTarget.focus(), B.preventDefault();
9798
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(e, { label: n ?? "", required: l, disabled: W, hidden: c, withoutLabel: d, isInvalid: pe, inputContainerClassName: I({ "luminus-dropdown-select-open": O }), hint: v, className: g, children: [
9799
+ /* @__PURE__ */ o.jsx(Ra, { currentSelection: X, selectedItemNavigateTo: x, children: /* @__PURE__ */ o.jsx(Va, { control: T, name: r, render: () => /* @__PURE__ */ o.jsx(ka, { value: z, MiniDetailComponent: N, miniDetailPlacement: y, children: /* @__PURE__ */ o.jsx(Ee.Select, { size: a, onMouseDown: (k) => {
9800
+ k.currentTarget.focus(), k.preventDefault();
9797
9801
  }, onClick: () => {
9798
- $(!0);
9802
+ G(!0);
9799
9803
  }, ref: je, value: z ?? "", onChange: () => {
9800
9804
  }, isInvalid: pe, hidden: c, disabled: W, className: "w-100", children: /* @__PURE__ */ o.jsx("option", { value: (X == null ? void 0 : X.id) ?? "", children: ae(X) }) }) }) }) }),
9801
9805
  V && /* @__PURE__ */ o.jsx(zt, { message: V.message }),
9802
- je.current && /* @__PURE__ */ o.jsx(Ba, { show: _, onCancel: () => $(!1), items: me, currentSelection: X ?? null, onSelectionChange: se, onSearchQueryChange: be, texts: j, disabled: W, inputRef: je, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: h, refreshOptions: w })
9806
+ je.current && /* @__PURE__ */ o.jsx(Ba, { show: O, onCancel: () => G(!1), items: me, currentSelection: X ?? null, onSelectionChange: se, onSearchQueryChange: be, texts: C, disabled: W, inputRef: je, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: h, refreshOptions: w })
9803
9807
  ] }) });
9804
9808
  }, pD = ({ InputContainer: e = Pe, formField: t, label: r, placeholder: n, size: a, resetsFields: i, showClearIcon: s, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: p, step: f, stepperStep: m = 1, className: g, min: b, max: v, onChange: h, hint: w }) => {
9805
- const { register: N, formState: y, setValue: x, watch: j } = xt(), C = bt({ falseIfNotInit: !0 }), [O, E] = R(void 0), [T, M] = R(!1), V = P((U, G, z) => {
9806
- x(U, Cr(G, b, v), z);
9807
- }, [v, b, x]), S = P(() => {
9808
- const U = l ?? null;
9809
- V(t, U !== null ? Number(U) : null, {
9809
+ const { register: N, formState: y, setValue: x, watch: C } = xt(), S = bt({ falseIfNotInit: !0 }), [_, E] = R(void 0), [T, M] = R(!1), V = P((Y, $, z) => {
9810
+ x(Y, Cr($, b, v), z);
9811
+ }, [v, b, x]), D = P(() => {
9812
+ const Y = l ?? null;
9813
+ V(t, Y !== null ? Number(Y) : null, {
9810
9814
  shouldDirty: !0,
9811
9815
  shouldValidate: T
9812
9816
  });
9813
- }, [l, V, t, T]), _ = P(() => {
9814
- const U = t.split(".");
9815
- let G = y.errors;
9816
- U.forEach((z) => {
9817
- G !== void 0 && (G = G[z]);
9818
- }), E(G);
9819
- }, [y, t]), $ = A(() => d || C, [d, C]);
9820
- q(() => {
9821
- _();
9822
- }, [_]), q(() => {
9817
+ }, [l, V, t, T]), O = P(() => {
9818
+ const Y = t.split(".");
9819
+ let $ = y.errors;
9820
+ Y.forEach((z) => {
9821
+ $ !== void 0 && ($ = $[z]);
9822
+ }), E($);
9823
+ }, [y, t]), G = A(() => d || S, [d, S]);
9824
+ U(() => {
9825
+ O();
9826
+ }, [O]), U(() => {
9823
9827
  y.isSubmitted && M(!0);
9824
9828
  }, [y]);
9825
- const k = O !== void 0, L = j(t);
9826
- return /* @__PURE__ */ o.jsxs(e, { label: r ?? "", required: c, disabled: $, hidden: u, withoutLabel: p, isInvalid: k, hint: w, className: g, children: [
9829
+ const B = _ !== void 0, L = C(t);
9830
+ return /* @__PURE__ */ o.jsxs(e, { label: r ?? "", required: c, disabled: G, hidden: u, withoutLabel: p, isInvalid: B, hint: w, className: g, children: [
9827
9831
  /* @__PURE__ */ o.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
9828
9832
  /* @__PURE__ */ o.jsx(Ee.Control, { type: "number", placeholder: n ?? r, size: a, ...N(t, {
9829
- setValueAs: (U) => U == null || U === "" ? null : Cr(Number(U), b, v),
9833
+ setValueAs: (Y) => Y == null || Y === "" ? null : Cr(Number(Y), b, v),
9830
9834
  min: b,
9831
9835
  max: v,
9832
- onChange: (U) => {
9833
- var G;
9834
- i && i.forEach((z) => x(z, null, { shouldDirty: !0, shouldValidate: T })), h && h((G = U.target) != null && G.value ? Number(U.target.value) ?? null : null);
9836
+ onChange: (Y) => {
9837
+ var $;
9838
+ i && i.forEach((z) => x(z, null, { shouldDirty: !0, shouldValidate: T })), h && h(($ = Y.target) != null && $.value ? Number(Y.target.value) ?? null : null);
9835
9839
  }
9836
- }), isInvalid: k, hidden: u, disabled: $, className: "w-100 luminus-numeric-stepper", step: f, min: b, max: v }),
9837
- /* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: (U) => {
9838
- U.preventDefault(), U.stopPropagation(), V(t, ((L ? Number(L) : 0) - m).toString(), { shouldDirty: !0, shouldValidate: T });
9840
+ }), isInvalid: B, hidden: u, disabled: G, className: "w-100 luminus-numeric-stepper", step: f, min: b, max: v }),
9841
+ /* @__PURE__ */ o.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: (Y) => {
9842
+ Y.preventDefault(), Y.stopPropagation(), V(t, ((L ? Number(L) : 0) - m).toString(), { shouldDirty: !0, shouldValidate: T });
9839
9843
  }, children: /* @__PURE__ */ o.jsx(Is, {}) }) }),
9840
- /* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: (U) => {
9841
- U.preventDefault(), U.stopPropagation(), V(t, ((L ? Number(L) : 0) + m).toString(), { shouldDirty: !0, shouldValidate: T });
9844
+ /* @__PURE__ */ o.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: (Y) => {
9845
+ Y.preventDefault(), Y.stopPropagation(), V(t, ((L ? Number(L) : 0) + m).toString(), { shouldDirty: !0, shouldValidate: T });
9842
9846
  }, children: /* @__PURE__ */ o.jsx(_s, {}) }) })
9843
9847
  ] }),
9844
- s && j(t) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(re, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ o.jsx(Ot, {}) }) }),
9845
- O && /* @__PURE__ */ o.jsx(zt, { message: O.message })
9848
+ s && C(t) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ o.jsx(re, { color: "secondary", size: "sm", onClick: D, children: /* @__PURE__ */ o.jsx(Ot, {}) }) }),
9849
+ _ && /* @__PURE__ */ o.jsx(zt, { message: _.message })
9846
9850
  ] });
9847
- }, fD = ({ InputContainer: e = Pe, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: i, clearValue: s, required: l, hidden: c, disabled: u, withoutLabel: d, step: p, size: f, CustomOnChangeComponent: m, noSelectOnFocus: g, className: b, decimalScale: v = 2, fixedDecimalScale: h = !1, numberPrefix: w, numberSuffix: N, min: y, max: x, onChange: j, hint: C }) => {
9848
- const { formState: O, setValue: E, watch: T, control: M } = xt(), V = bt({ falseIfNotInit: !0 }), [S, _] = R(void 0), [$, k] = R(!1), L = P(() => {
9851
+ }, fD = ({ InputContainer: e = Pe, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: i, clearValue: s, required: l, hidden: c, disabled: u, withoutLabel: d, step: p, size: f, CustomOnChangeComponent: m, noSelectOnFocus: g, className: b, decimalScale: v = 2, fixedDecimalScale: h = !1, numberPrefix: w, numberSuffix: N, min: y, max: x, onChange: C, hint: S }) => {
9852
+ const { formState: _, setValue: E, watch: T, control: M } = xt(), V = bt({ falseIfNotInit: !0 }), [D, O] = R(void 0), [G, B] = R(!1), L = P(() => {
9849
9853
  const te = s ?? null;
9850
9854
  E(t, te !== null ? Number(te) : null, {
9851
9855
  shouldDirty: !0,
9852
- shouldValidate: $
9856
+ shouldValidate: G
9853
9857
  });
9854
- }, [s, E, t, $]), U = P(() => {
9858
+ }, [s, E, t, G]), Y = P(() => {
9855
9859
  const te = t.split(".");
9856
- let ie = O.errors;
9860
+ let ie = _.errors;
9857
9861
  te.forEach((se) => {
9858
9862
  ie !== void 0 && (ie = ie[se]);
9859
- }), _(ie);
9860
- }, [O, t]), G = A(() => u || V, [u, V]);
9861
- q(() => {
9862
- U();
9863
- }, [U]), q(() => {
9864
- O.isSubmitted && k(!0);
9865
- }, [O]);
9863
+ }), O(ie);
9864
+ }, [_, t]), $ = A(() => u || V, [u, V]);
9865
+ U(() => {
9866
+ Y();
9867
+ }, [Y]), U(() => {
9868
+ _.isSubmitted && B(!0);
9869
+ }, [_]);
9866
9870
  const z = T(t);
9867
- q(() => {
9871
+ U(() => {
9868
9872
  x !== void 0 && z > x && E(t, x), y !== void 0 && z < y && E(t, y);
9869
9873
  }, [t, z, x, y, E]);
9870
- const X = S !== void 0;
9871
- return /* @__PURE__ */ o.jsxs(e, { label: r ?? "", required: l, disabled: G, hidden: c, withoutLabel: d, isInvalid: X, hint: C, className: b, children: [
9874
+ const X = D !== void 0;
9875
+ return /* @__PURE__ */ o.jsxs(e, { label: r ?? "", required: l, disabled: $, hidden: c, withoutLabel: d, isInvalid: X, hint: S, className: b, children: [
9872
9876
  /* @__PURE__ */ o.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
9873
9877
  /* @__PURE__ */ o.jsx(Va, { control: M, name: t, render: ({ field: { ref: te, onChange: ie, name: se, value: be } }) => /* @__PURE__ */ o.jsx(Do, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: v, fixedDecimalScale: h, prefix: w, suffix: N, defaultValue: "", name: se, value: be ?? "", placeholder: n ?? r, onFocus: (W) => {
9874
9878
  !g && W.target.select();
9875
9879
  }, onChange: (W) => {
9876
9880
  var je, pe;
9877
9881
  const ae = parseFloat(((pe = (je = W.target) == null ? void 0 : je.value) == null ? void 0 : pe.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
9878
- a && a.forEach((B) => E(B, null, { shouldDirty: !0, shouldValidate: $ }));
9882
+ a && a.forEach((k) => E(k, null, { shouldDirty: !0, shouldValidate: G }));
9879
9883
  const me = ae == null || Number.isNaN(ae) ? null : Number(ae);
9880
- ie(me), j && j(me);
9881
- }, hidden: c, disabled: G, className: I("form-control text-end w-100", {
9884
+ ie(me), C && C(me);
9885
+ }, hidden: c, disabled: $, className: I("form-control text-end w-100", {
9882
9886
  "is-invalid": X
9883
9887
  }, {
9884
9888
  [`form-control-${f}`]: f
@@ -9886,7 +9890,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9886
9890
  m && /* @__PURE__ */ o.jsx("div", { className: "custom-picker-button", children: m })
9887
9891
  ] }),
9888
9892
  i && T(t) && /* @__PURE__ */ o.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ o.jsx(re, { color: "secondary", size: "sm", onClick: L, children: /* @__PURE__ */ o.jsx(Ot, {}) }) }),
9889
- S && /* @__PURE__ */ o.jsx(zt, { message: S.message })
9893
+ D && /* @__PURE__ */ o.jsx(zt, { message: D.message })
9890
9894
  ] });
9891
9895
  }, Ky = (e, t) => {
9892
9896
  const r = ft(), n = Dn(), { startLoading: a, stopLoading: i } = H(cr), { zDateRequired: s, zNumberRequired: l } = kd(), { addNotification: c } = Ma(), { refreshAvailableDelegations: u } = H(As), { user: d } = H(Pt), { texts: { substitutions: { detail: p } } } = H(J), f = Rn.object({
@@ -9934,7 +9938,7 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9934
9938
  t,
9935
9939
  p
9936
9940
  ]);
9937
- return q(() => {
9941
+ return U(() => {
9938
9942
  g.reset(m);
9939
9943
  }, [m, g]), { formSchema: f, onSubmit: b, formMethods: g };
9940
9944
  }, mD = ({ indexRoute: e }) => {
@@ -9945,10 +9949,10 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9945
9949
  await i(s.deleteConfirm) && (await n.delete(`/permissions/substitutions/${t}`), m(), a(e));
9946
9950
  }, [n, i, t, a, m, s, e]), v = A(() => p !== (r == null ? void 0 : r.personalNumber) && !g(["ZASTUP_MODIFY"]), [g, p, r == null ? void 0 : r.personalNumber]), h = d.watch("roles"), w = A(() => f == null ? void 0 : f.filter((x) => x.canBeRepresented), [f]), N = A(() => (w == null ? void 0 : w.every((x) => h == null ? void 0 : h.includes(x.name))) ?? !1, [w, h]);
9947
9951
  return /* @__PURE__ */ o.jsx(tr, { title: /* @__PURE__ */ o.jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [
9948
- /* @__PURE__ */ o.jsx(Y, { variant: "h3", children: s.title }),
9952
+ /* @__PURE__ */ o.jsx(q, { variant: "h3", children: s.title }),
9949
9953
  /* @__PURE__ */ o.jsx(sr, { toggle: /* @__PURE__ */ o.jsx(lr, { as: $r }), children: /* @__PURE__ */ o.jsx(ot, { onClick: () => b(), children: s.delete }) })
9950
9954
  ] }), children: /* @__PURE__ */ o.jsx(lu, { ...d, children: /* @__PURE__ */ o.jsx(tu, { disabled: v, children: /* @__PURE__ */ o.jsxs(Ee, { onSubmit: d.handleSubmit(u), className: "h-100", children: [
9951
- /* @__PURE__ */ o.jsxs(Ha, { className: "h-100", children: [
9955
+ /* @__PURE__ */ o.jsxs(Ha, { className: "h-100 gx-3 gy-3", children: [
9952
9956
  /* @__PURE__ */ o.jsx(pn, { sm: 12, md: 4, children: /* @__PURE__ */ o.jsxs(mn, { title: s.title, children: [
9953
9957
  /* @__PURE__ */ o.jsx(ss, { formField: "employeeId", options: (c == null ? void 0 : c.map((x) => ({
9954
9958
  id: x.employeeId,
@@ -9975,8 +9979,8 @@ const Wx = ({ InputContainer: e = ir, value: t, onChange: r, debounceMs: n, labe
9975
9979
  marginLeft: "-12px",
9976
9980
  marginRight: "-12px",
9977
9981
  padding: "0px 12px"
9978
- }, children: f == null ? void 0 : f.map((x) => /* @__PURE__ */ o.jsx(Ea, { label: x.name, value: (h == null ? void 0 : h.find((j) => j === x.name)) !== void 0, disabled: v || !x.canBeRepresented, onChange: (j) => {
9979
- d.setValue("roles", j ? [...h ?? [], x.name] : (h == null ? void 0 : h.filter((C) => C !== x.name)) ?? [], { shouldDirty: !0 });
9982
+ }, children: f == null ? void 0 : f.map((x) => /* @__PURE__ */ o.jsx(Ea, { label: x.name, value: (h == null ? void 0 : h.find((C) => C === x.name)) !== void 0, disabled: v || !x.canBeRepresented, onChange: (C) => {
9983
+ d.setValue("roles", C ? [...h ?? [], x.name] : (h == null ? void 0 : h.filter((S) => S !== x.name)) ?? [], { shouldDirty: !0 });
9980
9984
  }, InputContainer: Pe }, x.name)) })
9981
9985
  ] }) })
9982
9986
  ] }),
@@ -10034,26 +10038,26 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10034
10038
  const x = y.getTabs();
10035
10039
  y.getTabs = () => g(x);
10036
10040
  }, v = A(() => e && e.mapping ? Object.values(e.mapping).filter((y) => y.caption.includes("P:")).map((y) => ({ uniqueName: y.caption.replace("P:", ""), caption: y.caption })) : [], [e]), h = A(() => {
10037
- var x, j, C, O;
10041
+ var x, C, S, _;
10038
10042
  const y = (x = f.current) == null ? void 0 : x.flexmonster.getReport();
10039
10043
  return y && y.slice ? {
10040
10044
  ...y.slice,
10041
10045
  rows: [
10042
- ...((j = y.slice.rows) == null ? void 0 : j.filter((E) => {
10046
+ ...((C = y.slice.rows) == null ? void 0 : C.filter((E) => {
10043
10047
  var T;
10044
10048
  return !((T = E.caption) != null && T.includes("P:"));
10045
10049
  })) ?? [],
10046
10050
  ...v
10047
10051
  ],
10048
10052
  columns: [
10049
- ...((C = y.slice.columns) == null ? void 0 : C.filter((E) => {
10053
+ ...((S = y.slice.columns) == null ? void 0 : S.filter((E) => {
10050
10054
  var T;
10051
10055
  return !((T = E.caption) != null && T.includes("P:"));
10052
10056
  })) ?? [],
10053
10057
  ...v
10054
10058
  ],
10055
10059
  measures: [
10056
- ...((O = y.slice.measures) == null ? void 0 : O.filter((E) => {
10060
+ ...((_ = y.slice.measures) == null ? void 0 : _.filter((E) => {
10057
10061
  var T;
10058
10062
  return !((T = E.caption) != null && T.includes("P:"));
10059
10063
  })) ?? [],
@@ -10061,26 +10065,26 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10061
10065
  ]
10062
10066
  } : null;
10063
10067
  }, [v, f]);
10064
- q(() => {
10065
- var y, x, j, C;
10068
+ U(() => {
10069
+ var y, x, C, S;
10066
10070
  if (u && l) {
10067
10071
  if (s && h) {
10068
- const O = (y = f.current) == null ? void 0 : y.flexmonster.getReport(), E = O && O.options ? {
10069
- ...O.options,
10070
- grid: { ...(x = O.options) == null ? void 0 : x.grid, autoSwitchToCompact: !1 }
10072
+ const _ = (y = f.current) == null ? void 0 : y.flexmonster.getReport(), E = _ && _.options ? {
10073
+ ..._.options,
10074
+ grid: { ...(x = _.options) == null ? void 0 : x.grid, autoSwitchToCompact: !1 }
10071
10075
  } : {};
10072
- (j = f.current) == null || j.flexmonster.setReport({
10073
- ...O,
10076
+ (C = f.current) == null || C.flexmonster.setReport({
10077
+ ..._,
10074
10078
  dataSource: e,
10075
10079
  slice: h,
10076
10080
  options: E
10077
10081
  });
10078
10082
  } else
10079
- (C = f.current) == null || C.flexmonster.updateData(e);
10083
+ (S = f.current) == null || S.flexmonster.updateData(e);
10080
10084
  console.log("Updating flexmonster dataSource to: ", e);
10081
10085
  }
10082
- }, [e, l, u, v, f, s, h]), q(() => {
10083
- var y, x, j, C, O;
10086
+ }, [e, l, u, v, f, s, h]), U(() => {
10087
+ var y, x, C, S, _;
10084
10088
  if (u && l) {
10085
10089
  const E = (y = f.current) == null ? void 0 : y.flexmonster.getReport();
10086
10090
  if (E === void 0 || typeof E == "string")
@@ -10095,32 +10099,32 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10095
10099
  }, s && (T.slice = {
10096
10100
  ...t == null ? void 0 : t.slice,
10097
10101
  rows: [
10098
- ...((C = (j = t == null ? void 0 : t.slice) == null ? void 0 : j.rows) == null ? void 0 : C.filter((V) => {
10099
- var S;
10100
- return !((S = V.caption) != null && S.includes("P:"));
10102
+ ...((S = (C = t == null ? void 0 : t.slice) == null ? void 0 : C.rows) == null ? void 0 : S.filter((V) => {
10103
+ var D;
10104
+ return !((D = V.caption) != null && D.includes("P:"));
10101
10105
  })) ?? [],
10102
10106
  ...v
10103
10107
  ]
10104
10108
  });
10105
10109
  const M = { ...E, ...T };
10106
- (O = f.current) == null || O.flexmonster.setReport(M), console.log("Refreshing flexmonster settings. New report: ", M);
10110
+ (_ = f.current) == null || _.flexmonster.setReport(M), console.log("Refreshing flexmonster settings. New report: ", M);
10107
10111
  }
10108
10112
  }, [l, u, v, f, s, t]);
10109
10113
  const w = P((y, x) => {
10110
- var V, S;
10114
+ var V, D;
10111
10115
  if (Jy(x)) {
10112
10116
  y.text = ((V = x.member) == null ? void 0 : V.caption) ?? "";
10113
- const _ = y.style["padding-left"] ?? "4px", $ = parseInt(_, 10);
10114
- y.style["padding-left"] = $ + 11 + "px";
10117
+ const O = y.style["padding-left"] ?? "4px", G = parseInt(O, 10);
10118
+ y.style["padding-left"] = G + 11 + "px";
10115
10119
  }
10116
10120
  if (!i || !cs(x, i.idColumn) || ds(x))
10117
10121
  return;
10118
- const j = (S = x.escapedLabel) == null ? void 0 : S.toString();
10119
- if (j === void 0)
10122
+ const C = (D = x.escapedLabel) == null ? void 0 : D.toString();
10123
+ if (C === void 0)
10120
10124
  return;
10121
- const C = us(i.url, j), O = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'", E = x.type === "header" ? "onclick='event.stopImmediatePropagation()'" : "", T = x.isDrillThrough || x.type === "header" ? `href='${C}' target='_blank'` : "";
10125
+ const S = us(i.url, C), _ = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'", E = x.type === "header" ? "onclick='event.stopImmediatePropagation()'" : "", T = x.isDrillThrough || x.type === "header" ? `href='${S}' target='_blank'` : "";
10122
10126
  y.style && (y.style["z-index"] = 1);
10123
- const M = `<a ${T} ${O} ${E}>${x.escapedLabel}</a>`;
10127
+ const M = `<a ${T} ${_} ${E}>${x.escapedLabel}</a>`;
10124
10128
  y.text = M;
10125
10129
  }, [i]), N = P((y) => {
10126
10130
  if (!i || !cs(y, i.idColumn) || ds(y))
@@ -10269,7 +10273,7 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10269
10273
  return /* @__PURE__ */ o.jsxs(Oe, { show: e, onHide: t, children: [
10270
10274
  /* @__PURE__ */ o.jsx(Oe.Header, { closeButton: !0, children: /* @__PURE__ */ o.jsx(Oe.Title, { children: l.reportSharing }) }),
10271
10275
  /* @__PURE__ */ o.jsxs(Oe.Body, { children: [
10272
- /* @__PURE__ */ o.jsx(Y, { variant: "h6", children: l.sharedWith }),
10276
+ /* @__PURE__ */ o.jsx(q, { variant: "h6", children: l.sharedWith }),
10273
10277
  /* @__PURE__ */ o.jsxs(_r, { variant: "flush", children: [
10274
10278
  r && r.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: "px-2 text-muted", children: l.noone.toLowerCase() }) : null,
10275
10279
  r == null ? void 0 : r.map((b) => /* @__PURE__ */ o.jsxs(Nn, { className: "d-flex justify-content-between align-items-center gap-3 border-bottom px-2 py-1", children: [
@@ -10282,7 +10286,7 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10282
10286
  /* @__PURE__ */ o.jsx(re, { color: "danger", onClick: () => g(b.id), children: /* @__PURE__ */ o.jsx(s, { icon: "delete" }) })
10283
10287
  ] }, b.id))
10284
10288
  ] }),
10285
- /* @__PURE__ */ o.jsx(Y, { variant: "h6", className: "mt-2 mb-2", children: l.addSharing }),
10289
+ /* @__PURE__ */ o.jsx(q, { variant: "h6", className: "mt-2 mb-2", children: l.addSharing }),
10286
10290
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex gap-2 align-items-center", children: [
10287
10291
  /* @__PURE__ */ o.jsx("div", { className: "flex-grow-1", children: /* @__PURE__ */ o.jsx(a, { label: l.shareWith, onSelect: (b) => {
10288
10292
  if (b === null || typeof b.id != "number") {
@@ -10297,7 +10301,7 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10297
10301
  ] });
10298
10302
  }, nw = (e, t) => {
10299
10303
  const [r, n] = R(null);
10300
- return q(() => {
10304
+ return U(() => {
10301
10305
  e.then(({ default: a }) => {
10302
10306
  const i = t !== void 0 ? t(a) : a;
10303
10307
  n(i);
@@ -10310,66 +10314,66 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10310
10314
  replace: !0,
10311
10315
  flushSync: !0
10312
10316
  });
10313
- }, [a, g, e, b]), [N, y] = R(!1), x = ee(null), { user: j } = H(Pt), { data: C, reloadData: O } = ct(`/reports/${e}`), { mappings: E } = nw(c, u), [T, M] = R({}), V = P((W) => {
10317
+ }, [a, g, e, b]), [N, y] = R(!1), x = ee(null), { user: C } = H(Pt), { data: S, reloadData: _ } = ct(`/reports/${e}`), { mappings: E } = nw(c, u), [T, M] = R({}), V = P((W) => {
10314
10318
  const ae = W.target.value, me = ae === "" ? null : Number(ae);
10315
10319
  w(me);
10316
- }, [w]), S = P(async (W) => {
10317
- await O(), w(W);
10318
- }, [O, w]), { data: _, setData: $ } = ct(`/reports/version/${h}`, { enabled: h !== null, nullStateBeforeLoad: !1, nullStateOnFail: !0 });
10319
- q(() => {
10320
+ }, [w]), D = P(async (W) => {
10321
+ await _(), w(W);
10322
+ }, [_, w]), { data: O, setData: G } = ct(`/reports/version/${h}`, { enabled: h !== null, nullStateBeforeLoad: !1, nullStateOnFail: !0 });
10323
+ U(() => {
10320
10324
  var ae;
10321
- if (_ === null) {
10325
+ if (O === null) {
10322
10326
  M({});
10323
10327
  return;
10324
10328
  }
10325
- const W = Xy(_) ?? {};
10329
+ const W = Xy(O) ?? {};
10326
10330
  M(W), (ae = x.current) == null || ae.flexmonster.refresh();
10327
- }, [_]);
10328
- const { save: k, saveAs: L, archive: U, detach: G } = ew(e, x, h, S), z = A(() => ({
10331
+ }, [O]);
10332
+ const { save: B, saveAs: L, archive: Y, detach: $ } = ew(e, x, h, D), z = A(() => ({
10329
10333
  data: r ?? [],
10330
10334
  mapping: E ?? void 0
10331
10335
  }), [r, E]), X = P(async () => {
10332
10336
  var ae;
10333
10337
  await m(f.confirmRevertChanges) && ((ae = x.current) == null || ae.flexmonster.setReport({ dataSource: z, ...T }));
10334
- }, [m, z, f.confirmRevertChanges, T]), te = A(() => (_ == null ? void 0 : _.ownerId) === j.personalNumber, [_ == null ? void 0 : _.ownerId, j.personalNumber]), ie = A(() => {
10338
+ }, [m, z, f.confirmRevertChanges, T]), te = A(() => (O == null ? void 0 : O.ownerId) === C.personalNumber, [O == null ? void 0 : O.ownerId, C.personalNumber]), ie = A(() => {
10335
10339
  var W;
10336
- return (W = _ == null ? void 0 : _.users) == null ? void 0 : W.some((ae) => ae.id === j.personalNumber && !ae.isReportOwner);
10337
- }, [_ == null ? void 0 : _.users, j.personalNumber]), se = P(async () => {
10338
- await m(f.confirmDelete(_ == null ? void 0 : _.name)) && (await U(), w(null), await O());
10339
- }, [U, m, O, _ == null ? void 0 : _.name, f, w]), be = P(async () => {
10340
- await m(f.confirmDetach(_ == null ? void 0 : _.name)) && (await G(), w(null), await O());
10341
- }, [m, G, O, _ == null ? void 0 : _.name, f, w]);
10342
- return q(() => {
10340
+ return (W = O == null ? void 0 : O.users) == null ? void 0 : W.some((ae) => ae.id === C.personalNumber && !ae.isReportOwner);
10341
+ }, [O == null ? void 0 : O.users, C.personalNumber]), se = P(async () => {
10342
+ await m(f.confirmDelete(O == null ? void 0 : O.name)) && (await Y(), w(null), await _());
10343
+ }, [Y, m, _, O == null ? void 0 : O.name, f, w]), be = P(async () => {
10344
+ await m(f.confirmDetach(O == null ? void 0 : O.name)) && (await $(), w(null), await _());
10345
+ }, [m, $, _, O == null ? void 0 : O.name, f, w]);
10346
+ return U(() => {
10343
10347
  var W, ae;
10344
- h === null && w(((W = C == null ? void 0 : C.reportVersions.find((me) => me.isSystem === !0)) == null ? void 0 : W.reportVersionId) ?? ((ae = C == null ? void 0 : C.reportVersions[0]) == null ? void 0 : ae.reportVersionId) ?? null);
10345
- }, [C == null ? void 0 : C.reportVersions, h, w]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
10348
+ h === null && w(((W = S == null ? void 0 : S.reportVersions.find((me) => me.isSystem === !0)) == null ? void 0 : W.reportVersionId) ?? ((ae = S == null ? void 0 : S.reportVersions[0]) == null ? void 0 : ae.reportVersionId) ?? null);
10349
+ }, [S == null ? void 0 : S.reportVersions, h, w]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
10346
10350
  /* @__PURE__ */ o.jsx(tr, { variant: "fullScreen", title: /* @__PURE__ */ o.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
10347
- /* @__PURE__ */ o.jsx(Y, { variant: "h3", children: t }),
10351
+ /* @__PURE__ */ o.jsx(q, { variant: "h3", children: t }),
10348
10352
  n,
10349
10353
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
10350
10354
  /* @__PURE__ */ o.jsxs(Fd, { size: "sm", value: h ?? void 0, onChange: V, children: [
10351
- /* @__PURE__ */ o.jsx("optgroup", { label: f.versionSelectSystem, children: C == null ? void 0 : C.reportVersions.filter((W) => W.isSystem === !0).map((W) => /* @__PURE__ */ o.jsx("option", { value: W.reportVersionId, children: W.name }, W.reportVersionId)) }),
10352
- /* @__PURE__ */ o.jsx("optgroup", { label: f.versionSelectYour, children: C == null ? void 0 : C.reportVersions.filter((W) => W.ownerId === j.personalNumber).map((W) => /* @__PURE__ */ o.jsx("option", { value: W.reportVersionId, children: W.name }, W.reportVersionId)) }),
10353
- /* @__PURE__ */ o.jsx("optgroup", { label: f.versionSelectSharedWithYou, children: C == null ? void 0 : C.reportVersions.filter((W) => W.isSystem === !1 && W.ownerId !== j.personalNumber).map((W) => /* @__PURE__ */ o.jsx("option", { value: W.reportVersionId, children: `${W.name} [${W.ownerId}]` }, W.reportVersionId)) })
10355
+ /* @__PURE__ */ o.jsx("optgroup", { label: f.versionSelectSystem, children: S == null ? void 0 : S.reportVersions.filter((W) => W.isSystem === !0).map((W) => /* @__PURE__ */ o.jsx("option", { value: W.reportVersionId, children: W.name }, W.reportVersionId)) }),
10356
+ /* @__PURE__ */ o.jsx("optgroup", { label: f.versionSelectYour, children: S == null ? void 0 : S.reportVersions.filter((W) => W.ownerId === C.personalNumber).map((W) => /* @__PURE__ */ o.jsx("option", { value: W.reportVersionId, children: W.name }, W.reportVersionId)) }),
10357
+ /* @__PURE__ */ o.jsx("optgroup", { label: f.versionSelectSharedWithYou, children: S == null ? void 0 : S.reportVersions.filter((W) => W.isSystem === !1 && W.ownerId !== C.personalNumber).map((W) => /* @__PURE__ */ o.jsx("option", { value: W.reportVersionId, children: `${W.name} [${W.ownerId}]` }, W.reportVersionId)) })
10354
10358
  ] }),
10355
- /* @__PURE__ */ o.jsx(ht, { icon: /* @__PURE__ */ o.jsx(Vd, {}), onClick: k, disabled: h === null || (_ == null ? void 0 : _.isSystem) || !te, children: f.save }),
10359
+ /* @__PURE__ */ o.jsx(ht, { icon: /* @__PURE__ */ o.jsx(Vd, {}), onClick: B, disabled: h === null || (O == null ? void 0 : O.isSystem) || !te, children: f.save }),
10356
10360
  /* @__PURE__ */ o.jsx(ht, { icon: /* @__PURE__ */ o.jsx($d, {}), onClick: L, className: "flex-shrink-0", children: f.saveAs }),
10357
10361
  /* @__PURE__ */ o.jsxs(sr, { toggle: /* @__PURE__ */ o.jsx(lr, { as: $r }), children: [
10358
10362
  /* @__PURE__ */ o.jsx(ot, { onClick: X, children: f.revertChanges }),
10359
- /* @__PURE__ */ o.jsx(ot, { onClick: () => y(!0), disabled: !te || (_ == null ? void 0 : _.isSystem), children: f.share }),
10360
- te && !(_ != null && _.isSystem) ? /* @__PURE__ */ o.jsx(ot, { color: "danger", onClick: se, children: f.delete }) : null,
10361
- ie && !(_ != null && _.isSystem) ? /* @__PURE__ */ o.jsx(ot, { color: "danger", onClick: be, children: f.detach }) : null
10363
+ /* @__PURE__ */ o.jsx(ot, { onClick: () => y(!0), disabled: !te || (O == null ? void 0 : O.isSystem), children: f.share }),
10364
+ te && !(O != null && O.isSystem) ? /* @__PURE__ */ o.jsx(ot, { color: "danger", onClick: se, children: f.delete }) : null,
10365
+ ie && !(O != null && O.isSystem) ? /* @__PURE__ */ o.jsx(ot, { color: "danger", onClick: be, children: f.detach }) : null
10362
10366
  ] })
10363
10367
  ] })
10364
10368
  ] }), children: /* @__PURE__ */ o.jsx("div", { className: I("h-100 w-100", z.data && z.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ o.jsx(Zy, { dataSource: z, settings: T, pivotRef: x, enabled: z.data && z.data.length > 0, roomPasportization: p, localization: i, licenseKey: s, hyperlinkColumn: d }) }) }),
10365
- _ !== null ? /* @__PURE__ */ o.jsx(
10369
+ O !== null ? /* @__PURE__ */ o.jsx(
10366
10370
  rw,
10367
10371
  {
10368
10372
  isOpen: N,
10369
10373
  onHide: () => y(!1),
10370
- usersData: _.users ?? null,
10371
- setReportVersion: $,
10372
- reportVersionId: _ == null ? void 0 : _.reportVersionId,
10374
+ usersData: O.users ?? null,
10375
+ setReportVersion: G,
10376
+ reportVersionId: O == null ? void 0 : O.reportVersionId,
10373
10377
  EmployeePicker: l
10374
10378
  }
10375
10379
  ) : null
@@ -10385,19 +10389,19 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10385
10389
  } }, n)) }), ow = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ o.jsx(Ye, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: r }), iw = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: n, getLinksTo: a }) => {
10386
10390
  const { ProjectIconComponent: i, localizationContext: s } = H(J), { dateFnsLocale: l } = H(s), c = e.dateTime ? Ut(e.dateTime) : null, u = c ? gu(new Date(Date.now()), c) : 0;
10387
10391
  return /* @__PURE__ */ o.jsxs("div", { children: [
10388
- c && /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ o.jsx(Ue, { text: Wt(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Y, { variant: "caption", children: u > 2 ? Wt(c, "dd.MM.yyyy") : hu(c, new Date(Date.now()), {
10392
+ c && /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ o.jsx(Ue, { text: Wt(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(q, { variant: "caption", children: u > 2 ? Wt(c, "dd.MM.yyyy") : hu(c, new Date(Date.now()), {
10389
10393
  locale: l.code
10390
10394
  }) }) }) }) }),
10391
10395
  /* @__PURE__ */ o.jsx(ow, { linksTo: a(e) ?? void 0, onClick: r, children: /* @__PURE__ */ o.jsx(Qb, { level: e.type, noIcon: !0, children: /* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
10392
10396
  n(e),
10393
10397
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
10394
10398
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
10395
- /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "fw-bold", children: e.subject }),
10399
+ /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "fw-bold", children: e.subject }),
10396
10400
  /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: (d) => {
10397
10401
  d.preventDefault(), d.stopPropagation(), t(e.id);
10398
10402
  }, children: /* @__PURE__ */ o.jsx(i, { icon: "delete" }) })
10399
10403
  ] }),
10400
- /* @__PURE__ */ o.jsx(Y, { variant: "body2", children: e.text })
10404
+ /* @__PURE__ */ o.jsx(q, { variant: "body2", children: e.text })
10401
10405
  ] })
10402
10406
  ] }) }) })
10403
10407
  ] });
@@ -10435,11 +10439,11 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10435
10439
  u([]), m(!1);
10436
10440
  });
10437
10441
  }, [r, l]), h = P(async (x) => l.delete(`${n}${x}`).then(() => !0).catch(() => !1), [n, l]), w = P((x) => {
10438
- h(x).then((j) => {
10439
- j && u(c.filter((C) => C.id !== x));
10442
+ h(x).then((C) => {
10443
+ C && u(c.filter((S) => S.id !== x));
10440
10444
  });
10441
10445
  }, [h, c]);
10442
- q(() => {
10446
+ U(() => {
10443
10447
  v();
10444
10448
  const x = setInterval(() => v(), 60 * 1e3);
10445
10449
  return () => {
@@ -10482,7 +10486,7 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10482
10486
  vertical: gw
10483
10487
  }, _c = ({ eventKey: e, className: t, onClick: r, disabled: n, vertical: a, children: i }) => /* @__PURE__ */ o.jsx("div", { role: "button", className: I("luminus-tab text-primary rounded", sa.tab, t, {
10484
10488
  disabled: n
10485
- }, { [sa.disabled]: n }, { vertical: a }, { [sa.vertical]: a }), onClick: () => r && !n && r(e), children: typeof i == "string" ? /* @__PURE__ */ o.jsx(Y, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: i }) : i }), bD = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
10489
+ }, { [sa.disabled]: n }, { vertical: a }, { [sa.vertical]: a }), onClick: () => r && !n && r(e), children: typeof i == "string" ? /* @__PURE__ */ o.jsx(q, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: i }) : i }), bD = ({ tabs: e, activeTab: t, onSelect: r, ...n }) => {
10486
10490
  var s;
10487
10491
  const { ProjectIconComponent: a } = H(J), { isMobile: i } = wn();
10488
10492
  return i ? /* @__PURE__ */ o.jsx(sr, { toggle: /* @__PURE__ */ o.jsx(lr, { as: $r, text: ((s = e.find((l) => l.id === t)) == null ? void 0 : s.name) ?? "", icon: /* @__PURE__ */ o.jsx(a, { icon: "chevron-down" }) }), ...n, children: e.map((l) => /* @__PURE__ */ o.jsx(ot, { onClick: () => r(l.id), children: l.name }, l.id)) }) : /* @__PURE__ */ o.jsx(Ic, { activeTab: t, onSelect: (l) => r(l), ...n, children: e.map((l) => /* @__PURE__ */ o.jsx(_c, { eventKey: l.id, children: l.name }, l.id)) });
@@ -10561,18 +10565,18 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10561
10565
  /* @__PURE__ */ o.jsx(Oe.Header, { closeButton: !0, children: /* @__PURE__ */ o.jsx(Oe.Title, { children: l.shortcutLinks.newShortcut }) }),
10562
10566
  /* @__PURE__ */ o.jsxs(Oe.Body, { children: [
10563
10567
  /* @__PURE__ */ o.jsxs("div", { className: er.createLinkRow, children: [
10564
- /* @__PURE__ */ o.jsx(Y, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.target }),
10568
+ /* @__PURE__ */ o.jsx(q, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.target }),
10565
10569
  /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-middle fw-bold text-muted", children: m.length <= 23 ? m : /* @__PURE__ */ o.jsx(Ue, { placement: "bottom", text: m, children: /* @__PURE__ */ o.jsxs("span", { children: [
10566
10570
  m.slice(0, 21),
10567
10571
  "..."
10568
10572
  ] }) }) })
10569
10573
  ] }),
10570
10574
  /* @__PURE__ */ o.jsxs("div", { className: er.createLinkRow, children: [
10571
- /* @__PURE__ */ o.jsx(Y, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
10575
+ /* @__PURE__ */ o.jsx(q, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
10572
10576
  /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ o.jsx(st, { type: "text", maxLength: 25, value: d, onChange: p, className: "w-100", InputContainer: Pe, withoutLabel: !0 }) })
10573
10577
  ] }),
10574
10578
  /* @__PURE__ */ o.jsxs("div", { className: er.createLinkRow, children: [
10575
- /* @__PURE__ */ o.jsx(Y, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
10579
+ /* @__PURE__ */ o.jsx(q, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
10576
10580
  /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ o.jsx(Oc, { icon: c, setIcon: u, IconComponent: a, IconTypeArray: i }) })
10577
10581
  ] })
10578
10582
  ] }),
@@ -10649,10 +10653,10 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10649
10653
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: e && e.sort((n, a) => (n.employeeId ?? 0) - (a.employeeId ?? 0)).map((n) => /* @__PURE__ */ o.jsxs("div", { className: "d-flex gap-2 align-items-center justify-content-between mb-1", children: [
10650
10654
  /* @__PURE__ */ o.jsx("div", { className: "text-secondary", children: /* @__PURE__ */ o.jsx("span", { className: "d-flex gap-2 ", children: n.employeeId && n.roleName === null ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
10651
10655
  /* @__PURE__ */ o.jsx(r, { icon: "user" }),
10652
- /* @__PURE__ */ o.jsx(Y, { variant: "subtitle", children: n.employeeName })
10656
+ /* @__PURE__ */ o.jsx(q, { variant: "subtitle", children: n.employeeName })
10653
10657
  ] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
10654
10658
  /* @__PURE__ */ o.jsx(r, { icon: "role" }),
10655
- /* @__PURE__ */ o.jsx(Y, { variant: "subtitle", children: n.roleName })
10659
+ /* @__PURE__ */ o.jsx(q, { variant: "subtitle", children: n.roleName })
10656
10660
  ] }) }) }),
10657
10661
  /* @__PURE__ */ o.jsx(re, { size: "sm", color: "danger", onClick: () => t(n.id), children: /* @__PURE__ */ o.jsx(r, { icon: "delete" }) })
10658
10662
  ] }, n.id)) });
@@ -10684,7 +10688,7 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10684
10688
  /* @__PURE__ */ o.jsx(_r, { className: "overflow-auto h-max-100 p-2", children: e.map((p) => /* @__PURE__ */ o.jsxs(_r.Item, { action: t !== p.id, className: `p-0 mb-2 border rounded shadow-sm ${t === p.id ? "border-1 border-primary" : ""}`, onClick: () => r(p.id), children: [
10685
10689
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex gap-2 justify-content-between align-items-center border-1 border-bottom border-primary p-2", children: [
10686
10690
  /* @__PURE__ */ o.jsx("div", { className: "text-primary", children: p.destinationId === 1 ? /* @__PURE__ */ o.jsx(c, { icon: "mail-envelope" }) : /* @__PURE__ */ o.jsx(c, { icon: "dashboard" }) }),
10687
- /* @__PURE__ */ o.jsx(Y, { className: "text-truncate text-primary", variant: "subtitle", children: p.subjectTemplate }),
10691
+ /* @__PURE__ */ o.jsx(q, { className: "text-truncate text-primary", variant: "subtitle", children: p.subjectTemplate }),
10688
10692
  /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: () => d(!0), children: /* @__PURE__ */ o.jsx(c, { icon: "add" }) })
10689
10693
  ] }),
10690
10694
  /* @__PURE__ */ o.jsx("div", { className: "my-2 ps-3 pe-2", children: p.targets.length > 0 ? /* @__PURE__ */ o.jsx(Ow, { targets: p.targets, removeNotifTarget: i }) : /* @__PURE__ */ o.jsx(It, { size: "sm", variant: "warning", children: l.noTargets }) })
@@ -10726,66 +10730,71 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10726
10730
  }, [t]);
10727
10731
  return /* @__PURE__ */ o.jsx(r, { columnsDef: i, data: a, useScrollableContainer: !0, onRowClick: s, bottomBarProps: { hidden: !0 } });
10728
10732
  }, ND = ({ kinds: e, reloadActions: t, reloadHistory: r, reloadRoles: n, onRemoveTarget: a, onPostTarget: i, EmployeePicker: s, BnfTableComponent: l }) => {
10729
- var M, V, S;
10730
- const { texts: { notifCentrum: c } } = H(J), { confirm: u } = dr(), [d, p] = R(null), [f, m] = R(null), [g, b] = fa("notif-kind-id", ((M = e == null ? void 0 : e.at(0)) == null ? void 0 : M.id) ?? 1), [v, h] = R([]);
10731
- q(() => {
10732
- t(g).then((_) => {
10733
- h(_);
10734
- }).catch((_) => {
10735
- console.log(_), h([]);
10733
+ var M, V;
10734
+ const { texts: { notifCentrum: c } } = H(J), { confirm: u } = dr(), [d, p] = R(null), [f, m] = R(null), [g, b] = fa("notif-kind-id", null);
10735
+ U(() => {
10736
+ var D;
10737
+ e.length > 0 ? b(((D = e.at(0)) == null ? void 0 : D.id) ?? null) : b(null);
10738
+ }, [e, b]);
10739
+ const [v, h] = R([]);
10740
+ U(() => {
10741
+ g && t(g).then((D) => {
10742
+ h(D);
10743
+ }).catch((D) => {
10744
+ console.log(D), h([]);
10736
10745
  });
10737
10746
  }, [t, g]);
10738
- const [w, N] = fa("notif-action-id", ((V = v == null ? void 0 : v.at(0)) == null ? void 0 : V.id) ?? null), [y, x] = R([]);
10739
- q(() => {
10740
- w === null || d === null || r(w, d).then((_) => {
10741
- x(_);
10742
- }).catch((_) => {
10743
- console.log(_), x([]);
10747
+ const [w, N] = fa("notif-action-id", ((M = v == null ? void 0 : v.at(0)) == null ? void 0 : M.id) ?? null), [y, x] = R([]);
10748
+ U(() => {
10749
+ w === null || d === null || r(w, d).then((D) => {
10750
+ x(D);
10751
+ }).catch((D) => {
10752
+ console.log(D), x([]);
10744
10753
  });
10745
10754
  }, [t, r, w, g, d]);
10746
- const [j, C] = R([]);
10747
- q(() => {
10748
- w !== null && n(w).then((_) => {
10749
- C(_);
10750
- }).catch((_) => {
10751
- console.log(_), C([]);
10755
+ const [C, S] = R([]);
10756
+ U(() => {
10757
+ w !== null && n(w).then((D) => {
10758
+ S(D);
10759
+ }).catch((D) => {
10760
+ console.log(D), S([]);
10752
10761
  });
10753
10762
  }, [n, w]);
10754
- const O = A(() => {
10755
- var _;
10756
- return !v || !w ? [] : ((_ = v.find(($) => $.id === w)) == null ? void 0 : _.templates) ?? [];
10757
- }, [v, w]), E = P((_, $) => {
10758
- i(_, $).then((k) => {
10763
+ const _ = A(() => {
10764
+ var D;
10765
+ return !v || !w ? [] : ((D = v.find((O) => O.id === w)) == null ? void 0 : D.templates) ?? [];
10766
+ }, [v, w]), E = P((D, O) => {
10767
+ i(D, O).then((G) => {
10759
10768
  h(v ? [
10760
- ...v.map((L) => L.id !== w ? L : {
10761
- ...L,
10769
+ ...v.map((B) => B.id !== w ? B : {
10770
+ ...B,
10762
10771
  templates: [
10763
- ...L.templates.map((U) => U.id !== d ? U : { ...U, targets: [...U.targets, k] })
10772
+ ...B.templates.map((L) => L.id !== d ? L : { ...L, targets: [...L.targets, G] })
10764
10773
  ]
10765
10774
  })
10766
10775
  ] : []);
10767
- }).catch((k) => console.log(k));
10768
- }, [v, i, w, d, h]), T = P(async (_) => {
10769
- await u(c.confirmTargetDelete) && a(_).then(() => h(v ? [
10770
- ...v.map(($) => $.id !== w ? $ : {
10771
- ...$,
10776
+ }).catch((G) => console.log(G));
10777
+ }, [v, i, w, d, h]), T = P(async (D) => {
10778
+ await u(c.confirmTargetDelete) && a(D).then(() => h(v ? [
10779
+ ...v.map((O) => O.id !== w ? O : {
10780
+ ...O,
10772
10781
  templates: [
10773
- ...$.templates.map((k) => k.id !== d ? k : { ...k, targets: k.targets.filter((L) => L.id !== _) })
10782
+ ...O.templates.map((G) => G.id !== d ? G : { ...G, targets: G.targets.filter((B) => B.id !== D) })
10774
10783
  ]
10775
10784
  })
10776
10785
  ] : []));
10777
10786
  }, [v, u, c, a, w, d]);
10778
10787
  return /* @__PURE__ */ o.jsxs("div", { className: "h-100 overflow-hidden", children: [
10779
10788
  /* @__PURE__ */ o.jsxs("div", { className: "row mb-2", children: [
10780
- /* @__PURE__ */ o.jsx("div", { className: "col-2", children: /* @__PURE__ */ o.jsx(lt, { label: c.kind, size: "sm", noEmptyOption: !0, options: (e == null ? void 0 : e.map((_) => ({ id: _.id, name: _.name }))) ?? [], value: g ?? null, onChange: (_) => b(Number(_)), dropdownWidth: 200 }) }),
10781
- /* @__PURE__ */ o.jsx("div", { className: "col-3", children: /* @__PURE__ */ o.jsx(lt, { label: c.subkind, size: "sm", noEmptyOption: !0, options: (v == null ? void 0 : v.map((_) => ({ id: _.id, name: _.name }))) ?? [], value: w ?? null, onChange: (_) => N(Number(_)), dropdownWidth: 250 }) })
10789
+ /* @__PURE__ */ o.jsx("div", { className: "col-2", children: /* @__PURE__ */ o.jsx(lt, { label: c.kind, size: "sm", noEmptyOption: !0, options: (e == null ? void 0 : e.map((D) => ({ id: D.id, name: D.name }))) ?? [], value: g ?? null, onChange: (D) => b(Number(D)), dropdownWidth: 200 }) }),
10790
+ /* @__PURE__ */ o.jsx("div", { className: "col-3", children: /* @__PURE__ */ o.jsx(lt, { label: c.subkind, size: "sm", noEmptyOption: !0, options: (v == null ? void 0 : v.map((D) => ({ id: D.id, name: D.name }))) ?? [], value: w ?? null, onChange: (D) => N(Number(D)), dropdownWidth: 250 }) })
10782
10791
  ] }),
10783
10792
  /* @__PURE__ */ o.jsxs("div", { className: "vh-100 overflow-hidden d-flex gap-1", children: [
10784
- /* @__PURE__ */ o.jsx("div", { className: "h-75 w-25 overflow-hidden", children: /* @__PURE__ */ o.jsx(Tw, { templates: O, roles: j ?? [], onAddNotifTarget: E, onRemoveNotifTarget: T, selectedTemplateId: d, setSelectedTemplateId: (_) => {
10785
- p(_), m(null);
10793
+ /* @__PURE__ */ o.jsx("div", { className: "h-75 w-25 overflow-hidden", children: /* @__PURE__ */ o.jsx(Tw, { templates: _, roles: C ?? [], onAddNotifTarget: E, onRemoveNotifTarget: T, selectedTemplateId: d, setSelectedTemplateId: (D) => {
10794
+ p(D), m(null);
10786
10795
  }, EmployeePicker: s }) }),
10787
- /* @__PURE__ */ o.jsx("div", { className: "w-25 h-75 overflow-hidden", children: d && /* @__PURE__ */ o.jsx(Aw, { data: y ?? [], onClick: (_) => m((y == null ? void 0 : y.find(($) => $.id === _)) ?? null), BnfTableComponent: l }) }),
10788
- d && /* @__PURE__ */ o.jsx("div", { className: "h-75 w-75 overflow-hidden bg-darker", children: /* @__PURE__ */ o.jsx("iframe", { title: "notification", className: "w-100 h-100", srcDoc: (f == null ? void 0 : f.message) ?? ((S = O.find((_) => _.id === d)) == null ? void 0 : S.textTemplate) }) })
10796
+ /* @__PURE__ */ o.jsx("div", { className: "w-25 h-75 overflow-hidden", children: d && /* @__PURE__ */ o.jsx(Aw, { data: y ?? [], onClick: (D) => m((y == null ? void 0 : y.find((O) => O.id === D)) ?? null), BnfTableComponent: l }) }),
10797
+ d && /* @__PURE__ */ o.jsx("div", { className: "h-75 w-75 overflow-hidden bg-darker", children: /* @__PURE__ */ o.jsx("iframe", { title: "notification", className: "w-100 h-100", srcDoc: (f == null ? void 0 : f.message) ?? ((V = _.find((D) => D.id === d)) == null ? void 0 : V.textTemplate) }) })
10789
10798
  ] })
10790
10799
  ] });
10791
10800
  }, Rw = ({ history: e, onClick: t, BnfTableComponent: r }) => {
@@ -10854,7 +10863,7 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10854
10863
  return /* @__PURE__ */ o.jsx(r, { columnsDef: a, data: e, useScrollableContainer: !0, paginationMode: "enabled", bottomBarProps: { hideFullScreen: !0 }, onRowClick: i });
10855
10864
  }, DD = ({ reloadUserHistory: e, EmployeePicker: t, BnfTableComponent: r }) => {
10856
10865
  const { texts: { notifCentrum: n } } = H(J), [a, i] = R(null), [s, l] = fa("notif-user", null), [c, u] = R([]);
10857
- return q(() => {
10866
+ return U(() => {
10858
10867
  s !== null && e(s.id).then((d) => {
10859
10868
  u(d);
10860
10869
  }).catch((d) => {
@@ -10893,15 +10902,15 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10893
10902
  /* @__PURE__ */ o.jsxs("div", { className: "w-100", children: [
10894
10903
  /* @__PURE__ */ o.jsx("div", { className: "w-100 text-center", children: e.success ? a.importSuccess : a.importFailed }),
10895
10904
  e.success && ((l = e.data) != null && l.added || (c = e.data) != null && c.updated || (u = e.data) != null && u.deleted) ? /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-center mt-2", children: /* @__PURE__ */ o.jsxs("div", { className: "list-group", children: [
10896
- e.data.added ? /* @__PURE__ */ o.jsx("div", { className: "list-group-item p-1 px-3", children: /* @__PURE__ */ o.jsxs(Y, { variant: "body2", className: "d-flex gap-2 align-items-center", children: [
10905
+ e.data.added ? /* @__PURE__ */ o.jsx("div", { className: "list-group-item p-1 px-3", children: /* @__PURE__ */ o.jsxs(q, { variant: "body2", className: "d-flex gap-2 align-items-center", children: [
10897
10906
  a.importAdded(e.data.added),
10898
10907
  " "
10899
10908
  ] }) }) : null,
10900
- e.data.updated ? /* @__PURE__ */ o.jsx("div", { className: "list-group-item p-1 px-3", children: /* @__PURE__ */ o.jsxs(Y, { variant: "body2", className: "d-flex gap-2 align-items-center", children: [
10909
+ e.data.updated ? /* @__PURE__ */ o.jsx("div", { className: "list-group-item p-1 px-3", children: /* @__PURE__ */ o.jsxs(q, { variant: "body2", className: "d-flex gap-2 align-items-center", children: [
10901
10910
  a.importUpdated(e.data.updated),
10902
10911
  " "
10903
10912
  ] }) }) : null,
10904
- e.data.deleted ? /* @__PURE__ */ o.jsx("div", { className: "list-group-item p-1 px-3", children: /* @__PURE__ */ o.jsxs(Y, { variant: "body2", className: "d-flex gap-2 align-items-center", children: [
10913
+ e.data.deleted ? /* @__PURE__ */ o.jsx("div", { className: "list-group-item p-1 px-3", children: /* @__PURE__ */ o.jsxs(q, { variant: "body2", className: "d-flex gap-2 align-items-center", children: [
10905
10914
  a.importDeleted(e.data.deleted),
10906
10915
  " "
10907
10916
  ] }) }) : null
@@ -10926,19 +10935,19 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
10926
10935
  }, [c]);
10927
10936
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
10928
10937
  e !== null ? /* @__PURE__ */ o.jsxs("div", { className: "d-flex border rounded p-1 ps-2 bg-white justify-content-between align-items-center mb-2", children: [
10929
- /* @__PURE__ */ o.jsx(Y, { variant: "body", children: a ? e.map((d) => d.name).join(", ") : e.name }),
10938
+ /* @__PURE__ */ o.jsx(q, { variant: "body", children: a ? e.map((d) => d.name).join(", ") : e.name }),
10930
10939
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center gap-3", children: [
10931
10940
  n ?? null,
10932
10941
  /* @__PURE__ */ o.jsx(Gt, { className: "text-nowrap", size: "sm", disabled: e === null, onClick: r, children: l.start })
10933
10942
  ] })
10934
10943
  ] }) : null,
10935
10944
  /* @__PURE__ */ o.jsxs("div", { className: I(la.uploadBox, { [la.active]: e !== null }), onDrop: u, onDragOver: (d) => d.preventDefault(), children: [
10936
- /* @__PURE__ */ o.jsx(Y, { variant: "body", children: l.dropHint }),
10945
+ /* @__PURE__ */ o.jsx(q, { variant: "body", children: l.dropHint }),
10937
10946
  /* @__PURE__ */ o.jsx("input", { type: "file", hidden: !0, id: "browse", onChange: (d) => {
10938
10947
  var p;
10939
10948
  return ((p = d.target) == null ? void 0 : p.files) && c(d.target.files);
10940
10949
  }, multiple: a, accept: i }),
10941
- /* @__PURE__ */ o.jsx("label", { htmlFor: "browse", className: la.browseBtn, children: /* @__PURE__ */ o.jsxs(Y, { variant: "body", className: "d-flex gap-2 align-items-center", children: [
10950
+ /* @__PURE__ */ o.jsx("label", { htmlFor: "browse", className: la.browseBtn, children: /* @__PURE__ */ o.jsxs(q, { variant: "body", className: "d-flex gap-2 align-items-center", children: [
10942
10951
  /* @__PURE__ */ o.jsx(s, { icon: "file-upload" }),
10943
10952
  l.pickFileHint
10944
10953
  ] }) })
@@ -11006,71 +11015,71 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
11006
11015
  n = s;
11007
11016
  }
11008
11017
  }, CD = ({ languageOptions: e, envMode: t, getOtherSettingsUrl: r, downloadXls: n, saveChanges: a, localizationFilesOptions: i, remoteLocalesRoot: s }) => {
11009
- const { texts: { localizations: l }, ProjectIconComponent: c } = H(J), [u, d] = R(1), [p, f] = R(/* @__PURE__ */ new Map()), [m, g] = R(null), [b, v] = R(""), [h, w] = R(/* @__PURE__ */ new Set()), N = P((S) => {
11010
- f(/* @__PURE__ */ new Map()), w(S);
11011
- }, []), y = A(() => e.filter((S) => !h.has(S.id)), [h, e]), x = A(() => {
11018
+ const { texts: { localizations: l }, ProjectIconComponent: c } = H(J), [u, d] = R(1), [p, f] = R(/* @__PURE__ */ new Map()), [m, g] = R(null), [b, v] = R(""), [h, w] = R(/* @__PURE__ */ new Set()), N = P((D) => {
11019
+ f(/* @__PURE__ */ new Map()), w(D);
11020
+ }, []), y = A(() => e.filter((D) => !h.has(D.id)), [h, e]), x = A(() => {
11012
11021
  if (p.size === 0)
11013
11022
  return [];
11014
- const S = /* @__PURE__ */ new Set(), _ = (G, z = "") => {
11015
- if (typeof G[1] == "object") {
11016
- Object.entries(G[1]).forEach((X) => _(X, z + G[0] + "."));
11023
+ const D = /* @__PURE__ */ new Set(), O = ($, z = "") => {
11024
+ if (typeof $[1] == "object") {
11025
+ Object.entries($[1]).forEach((X) => O(X, z + $[0] + "."));
11017
11026
  return;
11018
11027
  }
11019
- S.add(z + G[0]);
11028
+ D.add(z + $[0]);
11020
11029
  };
11021
- Array.from(p).forEach((G) => {
11022
- Object.entries(G[1]).forEach((z) => _(z));
11030
+ Array.from(p).forEach(($) => {
11031
+ Object.entries($[1]).forEach((z) => O(z));
11023
11032
  });
11024
- const $ = Array.from(S), k = i.find((G) => G.path === m);
11025
- return ((k == null ? void 0 : k.type) === "report" ? $.filter((G) => {
11026
- const z = G.split(".");
11033
+ const G = Array.from(D), B = i.find(($) => $.path === m);
11034
+ return ((B == null ? void 0 : B.type) === "report" ? G.filter(($) => {
11035
+ const z = $.split(".");
11027
11036
  return z[z.length - 1] === "caption";
11028
- }) : $).map((G) => ({
11029
- key: G,
11037
+ }) : G).map(($) => ({
11038
+ key: $,
11030
11039
  lngData: new Map(Array.from(h).map((z) => {
11031
11040
  const X = p.get(z);
11032
11041
  return [
11033
11042
  z,
11034
- (X === void 0 ? void 0 : Jw(X, G)) ?? ""
11043
+ (X === void 0 ? void 0 : Jw(X, $)) ?? ""
11035
11044
  ];
11036
11045
  }))
11037
11046
  }));
11038
- }, [p, i, m, h]), j = A(() => x.filter((S) => Je(S.key, b) || Array.from(S.lngData).some((_) => typeof (_ == null ? void 0 : _[1]) != "string" ? !1 : Je((_ == null ? void 0 : _[1]) ?? "", b))), [b, x]), C = A(() => Math.ceil(j.length / on), [j.length]), O = P((S) => {
11039
- S !== null && d(() => Math.max(1, Math.min(S, C)));
11040
- }, [C]), E = P(async () => {
11041
- const S = Array.from(h).map(($) => (async () => {
11042
- const k = await Gd.get(
11043
- `${s}${m == null ? void 0 : m.replace("{{lng}}", $)}?v=${(/* @__PURE__ */ new Date()).getTime()}`,
11047
+ }, [p, i, m, h]), C = A(() => x.filter((D) => Je(D.key, b) || Array.from(D.lngData).some((O) => typeof (O == null ? void 0 : O[1]) != "string" ? !1 : Je((O == null ? void 0 : O[1]) ?? "", b))), [b, x]), S = A(() => Math.ceil(C.length / on), [C.length]), _ = P((D) => {
11048
+ D !== null && d(() => Math.max(1, Math.min(D, S)));
11049
+ }, [S]), E = P(async () => {
11050
+ const D = Array.from(h).map((G) => (async () => {
11051
+ const B = await Gd.get(
11052
+ `${s}${m == null ? void 0 : m.replace("{{lng}}", G)}?v=${(/* @__PURE__ */ new Date()).getTime()}`,
11044
11053
  // ?v to not hit browser cache
11045
11054
  { responseType: "json" }
11046
11055
  );
11047
- return [$, k.data];
11048
- })()), _ = await Promise.allSettled(S);
11049
- f(new Map(_.map(($) => $.status === "fulfilled" ? $.value : ["", {}])));
11056
+ return [G, B.data];
11057
+ })()), O = await Promise.allSettled(D);
11058
+ f(new Map(O.map((G) => G.status === "fulfilled" ? G.value : ["", {}])));
11050
11059
  }, [s, m, h]), T = P(async () => {
11051
11060
  E();
11052
11061
  }, [E]), M = A(() => y.length > 0, [y.length]), V = A(() => h.size + 1 + (M ? 1 : 0), [M, h.size]);
11053
- return q(() => {
11054
- O(u);
11055
- }, [O, u, j]), q(() => {
11062
+ return U(() => {
11063
+ _(u);
11064
+ }, [_, u, C]), U(() => {
11056
11065
  E();
11057
11066
  }, [E]), s === void 0 ? /* @__PURE__ */ o.jsx(tr, { children: /* @__PURE__ */ o.jsxs(It, { variant: "danger", className: "fw-bold", children: [
11058
11067
  l.cantRunLocalizationSettings,
11059
11068
  /* @__PURE__ */ o.jsx("br", {}),
11060
11069
  /* @__PURE__ */ o.jsx("br", {}),
11061
11070
  l.envNotConnectedToRemote(t.toUpperCase())
11062
- ] }) }) : /* @__PURE__ */ o.jsx(tr, { title: /* @__PURE__ */ o.jsx("div", { className: "d-flex gap-4", children: /* @__PURE__ */ o.jsx(Y, { variant: "h3", children: l.localizationSettings }) }), helmet: l.localizationSettings, variant: "fullScreen", children: /* @__PURE__ */ o.jsxs("div", { className: Ve.keysTable, style: {
11071
+ ] }) }) : /* @__PURE__ */ o.jsx(tr, { title: /* @__PURE__ */ o.jsx("div", { className: "d-flex gap-4", children: /* @__PURE__ */ o.jsx(q, { variant: "h3", children: l.localizationSettings }) }), helmet: l.localizationSettings, variant: "fullScreen", children: /* @__PURE__ */ o.jsxs("div", { className: Ve.keysTable, style: {
11063
11072
  "--keys-table-columns": V,
11064
11073
  "--adding-column": M ? 1 : 0
11065
11074
  }, children: [
11066
11075
  /* @__PURE__ */ o.jsxs("div", { className: I(Ve.tableFullWidth, "d-flex align-items-center justify-content-between gap-2 px-2 mt-1"), children: [
11067
- /* @__PURE__ */ o.jsx(lt, { options: i.map((S) => ({
11068
- id: S.path,
11069
- name: S.nameTranslationKey
11070
- })), value: m, onChange: (S) => typeof S != "number" ? g(S) : null, size: "sm", label: l.localizationFile, className: Ve.fileSelect, noSortOptions: !0 }),
11076
+ /* @__PURE__ */ o.jsx(lt, { options: i.map((D) => ({
11077
+ id: D.path,
11078
+ name: D.nameTranslationKey
11079
+ })), value: m, onChange: (D) => typeof D != "number" ? g(D) : null, size: "sm", label: l.localizationFile, className: Ve.fileSelect, noSortOptions: !0 }),
11071
11080
  /* @__PURE__ */ o.jsxs("div", { className: I(Ve.searchBox, "d-flex align-items-center gap-2 border rounded"), children: [
11072
11081
  /* @__PURE__ */ o.jsx(c, { icon: "search", className: "text-muted", size: 18, iconProps: { className: "mt- me-n4" } }),
11073
- /* @__PURE__ */ o.jsx(st, { type: "text", value: b, onChange: (S) => v(typeof S == "string" ? S : ""), size: "sm", showClearIcon: b !== "", withoutLabel: !0, placeholder: "vyhledávat...", className: "placeholder-muted bg-transparent border-0 my-0 py-0 w-100" })
11082
+ /* @__PURE__ */ o.jsx(st, { type: "text", value: b, onChange: (D) => v(typeof D == "string" ? D : ""), size: "sm", showClearIcon: b !== "", withoutLabel: !0, placeholder: "vyhledávat...", className: "placeholder-muted bg-transparent border-0 my-0 py-0 w-100" })
11074
11083
  ] }),
11075
11084
  /* @__PURE__ */ o.jsxs(Cs, { children: [
11076
11085
  /* @__PURE__ */ o.jsx(da, { cKey: "export", hideOn: "always", onClick: n, icon: /* @__PURE__ */ o.jsx(Wd, { fileExtension: "xls" }), children: l.xlsExport }),
@@ -11078,37 +11087,37 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
11078
11087
  ] })
11079
11088
  ] }),
11080
11089
  /* @__PURE__ */ o.jsxs("div", { className: I(Ve.subgrid, Ve.lngSelectRow), children: [
11081
- /* @__PURE__ */ o.jsx(Y, { variant: "body", children: l.key }),
11082
- Array.from(h).map((S, _) => /* @__PURE__ */ o.jsx(lt, { options: e.filter(($) => $.id === S || !h.has($.id)), value: S, onChange: ($) => N((k) => $ === null ? (k.delete(S), new Set(k)) : (typeof $ == "string" && (k.delete(S), k.add($)), new Set(k))), size: "sm", label: `${l.language} ${_ + 1}`, withoutLabel: !0, InputContainer: Pe, className: I(Ve.lngSelect) }, S)),
11083
- M ? /* @__PURE__ */ o.jsx(lt, { options: y, value: null, onChange: (S) => N((_) => (typeof S == "string" && _.add(S), new Set(_))), size: "sm", label: l.addLanguage, InputContainer: Pe, className: I(Ve.lngSelect, Ve.addLng) }) : null
11090
+ /* @__PURE__ */ o.jsx(q, { variant: "body", children: l.key }),
11091
+ Array.from(h).map((D, O) => /* @__PURE__ */ o.jsx(lt, { options: e.filter((G) => G.id === D || !h.has(G.id)), value: D, onChange: (G) => N((B) => G === null ? (B.delete(D), new Set(B)) : (typeof G == "string" && (B.delete(D), B.add(G)), new Set(B))), size: "sm", label: `${l.language} ${O + 1}`, withoutLabel: !0, InputContainer: Pe, className: I(Ve.lngSelect) }, D)),
11092
+ M ? /* @__PURE__ */ o.jsx(lt, { options: y, value: null, onChange: (D) => N((O) => (typeof D == "string" && O.add(D), new Set(O))), size: "sm", label: l.addLanguage, InputContainer: Pe, className: I(Ve.lngSelect, Ve.addLng) }) : null
11084
11093
  ] }),
11085
11094
  /* @__PURE__ */ o.jsxs("div", { className: I(Ve.subgrid, Ve.tableBody), children: [
11086
- x.length === 0 || j.length === 0 ? /* @__PURE__ */ o.jsx(It, { variant: "warning", className: I(Ve.tableFullWidth, Ve.emptyTableAlert, "my-n1"), children: x.length === 0 ? l.noDataLoaded : j.length === 0 ? l.noDataFiltered : null }) : null,
11087
- j.slice(on * (u - 1), on * u).map((S) => /* @__PURE__ */ o.jsxs("div", { className: I(Ve.subgrid, Ve.tableItem), children: [
11088
- /* @__PURE__ */ o.jsx(Y, { variant: "form-label", children: S.key }),
11089
- Array.from(h).map((_) => /* @__PURE__ */ o.jsx(Vw, { localizationKey: S.key, lngsData: p, selLng: _, reloadData: T, saveChanges: a }, _))
11090
- ] }, S.key))
11095
+ x.length === 0 || C.length === 0 ? /* @__PURE__ */ o.jsx(It, { variant: "warning", className: I(Ve.tableFullWidth, Ve.emptyTableAlert, "my-n1"), children: x.length === 0 ? l.noDataLoaded : C.length === 0 ? l.noDataFiltered : null }) : null,
11096
+ C.slice(on * (u - 1), on * u).map((D) => /* @__PURE__ */ o.jsxs("div", { className: I(Ve.subgrid, Ve.tableItem), children: [
11097
+ /* @__PURE__ */ o.jsx(q, { variant: "form-label", children: D.key }),
11098
+ Array.from(h).map((O) => /* @__PURE__ */ o.jsx(Vw, { localizationKey: D.key, lngsData: p, selLng: O, reloadData: T, saveChanges: a }, O))
11099
+ ] }, D.key))
11091
11100
  ] }),
11092
11101
  /* @__PURE__ */ o.jsxs("div", { className: I("d-flex align-items-center justify-content-around gap-3 px-2 py-0", Ve.tableFooter), children: [
11093
- /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs(Y, { variant: "body", children: [
11102
+ /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs(q, { variant: "body", children: [
11094
11103
  l.keyCount,
11095
11104
  ":",
11096
11105
  " ",
11097
- /* @__PURE__ */ o.jsx("span", { className: "fw-bold", children: j.length })
11106
+ /* @__PURE__ */ o.jsx("span", { className: "fw-bold", children: C.length })
11098
11107
  ] }) }),
11099
11108
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
11100
- /* @__PURE__ */ o.jsxs(Y, { variant: "body", children: [
11109
+ /* @__PURE__ */ o.jsxs(q, { variant: "body", children: [
11101
11110
  l.page,
11102
11111
  ": "
11103
11112
  ] }),
11104
11113
  /* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
11105
- /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: () => O(u - 1), children: /* @__PURE__ */ o.jsx(c, { icon: "minus" }) }),
11106
- /* @__PURE__ */ o.jsx("div", { style: { width: 30 }, children: /* @__PURE__ */ o.jsx(Wx, { value: u, onChange: O, InputContainer: Pe, withoutLabel: !0, size: "sm" }) }),
11107
- /* @__PURE__ */ o.jsxs(Y, { variant: "body", children: [
11114
+ /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: () => _(u - 1), children: /* @__PURE__ */ o.jsx(c, { icon: "minus" }) }),
11115
+ /* @__PURE__ */ o.jsx("div", { style: { width: 30 }, children: /* @__PURE__ */ o.jsx(Wx, { value: u, onChange: _, InputContainer: Pe, withoutLabel: !0, size: "sm" }) }),
11116
+ /* @__PURE__ */ o.jsxs(q, { variant: "body", children: [
11108
11117
  "/",
11109
- Math.ceil(j.length / on)
11118
+ Math.ceil(C.length / on)
11110
11119
  ] }),
11111
- /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: () => O(u + 1), children: /* @__PURE__ */ o.jsx(c, { icon: "plus" }) })
11120
+ /* @__PURE__ */ o.jsx(re, { size: "sm", onClick: () => _(u + 1), children: /* @__PURE__ */ o.jsx(c, { icon: "plus" }) })
11112
11121
  ] })
11113
11122
  ] })
11114
11123
  ] })
@@ -11142,14 +11151,14 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
11142
11151
  return [];
11143
11152
  const g = [];
11144
11153
  return a.forEach((b) => {
11145
- const v = b.items.filter((h) => Je(h.name, t));
11154
+ const v = b.items.filter((h) => Je(h.name, decodeURIComponent(t)));
11146
11155
  v.length > 0 && g.push({
11147
11156
  key: { ...b.key, totalCount: v.length },
11148
11157
  items: v
11149
11158
  });
11150
11159
  }), g;
11151
11160
  }, [t, a, e]), m = A(() => f.concat(c), [c, f]);
11152
- return q(() => {
11161
+ return U(() => {
11153
11162
  p();
11154
11163
  }, [p]), { isLoading: s, searchItems: m };
11155
11164
  }, Zw = "_input-group_1hcpm_1", eN = "_input-group-text_1hcpm_5", tN = "_left_1hcpm_9", rN = "_right_1hcpm_13", nN = "_input_1hcpm_1", aN = "_submit-button_1hcpm_20", Mt = {
@@ -11181,8 +11190,8 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
11181
11190
  className: I("search-item d-flex gap-3 align-items-center justify-content-between", Vt.item),
11182
11191
  onClick: r,
11183
11192
  children: [
11184
- /* @__PURE__ */ o.jsx(Y, { variant: "body2", className: "text-nowrap text-truncate", children: i }),
11185
- /* @__PURE__ */ o.jsx(Y, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ o.jsx(Ud, {}) })
11193
+ /* @__PURE__ */ o.jsx(q, { variant: "body2", className: "text-nowrap text-truncate", children: i }),
11194
+ /* @__PURE__ */ o.jsx(q, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ o.jsx(Ud, {}) })
11186
11195
  ]
11187
11196
  }
11188
11197
  );
@@ -11194,8 +11203,8 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
11194
11203
  var u;
11195
11204
  return /* @__PURE__ */ o.jsxs("div", { className: I(Vt.group), children: [
11196
11205
  /* @__PURE__ */ o.jsxs(Ye, { to: `/search?query=${t}&type=${c.key.category}`, className: I("group-header", Vt.header), onClick: r, children: [
11197
- /* @__PURE__ */ o.jsx(Y, { variant: "body", className: "text-primary", children: c.key.categoryName }),
11198
- /* @__PURE__ */ o.jsxs(Y, { variant: "caption", children: [
11206
+ /* @__PURE__ */ o.jsx(q, { variant: "body", className: "text-primary", children: c.key.categoryName }),
11207
+ /* @__PURE__ */ o.jsxs(q, { variant: "caption", children: [
11199
11208
  c.items.length,
11200
11209
  " ",
11201
11210
  s.amountFrom,
@@ -11217,11 +11226,11 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
11217
11226
  }, SD = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: n = "/", className: a, staticAppItems: i, searchEndpointUri: s }) => {
11218
11227
  var y;
11219
11228
  const { texts: { appSearch: l } } = H(J), [c, u] = R(e.length > 0 ? ((y = e.at(0)) == null ? void 0 : y.key) ?? null : null), d = A(() => e.find((x) => x.key === c) ?? null, [e, c]), [p, f] = R(""), [m, g] = La(encodeURIComponent(p), 500), { isLoading: b, searchItems: v } = Rc(c, m, s, !1, i), [h, w] = R(!1);
11220
- q(() => {
11229
+ U(() => {
11221
11230
  (v.length > 0 || b) && w(!0);
11222
11231
  }, [v, b]);
11223
11232
  const N = ee(null);
11224
- return q(() => {
11233
+ return U(() => {
11225
11234
  var x;
11226
11235
  f(""), r === n && ((x = N.current) == null || x.focus());
11227
11236
  }, [r, n]), /* @__PURE__ */ o.jsx(Ee, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (x) => {
@@ -11229,8 +11238,8 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
11229
11238
  }, children: /* @__PURE__ */ o.jsxs(ln, { className: I(Mt.inputGroup, a), children: [
11230
11239
  /* @__PURE__ */ o.jsx(ln.Text, { className: I("p-1 rounded", Mt.inputGroupText, Mt.left), children: /* @__PURE__ */ o.jsx(oN, { searchTypes: e, selectedType: d, setSelectedType: u }) }),
11231
11240
  /* @__PURE__ */ o.jsx(Ee.Control, { ref: N, placeholder: l.searchPlaceholder, type: "text", size: "sm", className: I("luminus-app-search-input", Mt.input), value: p, onChange: (x) => {
11232
- var j;
11233
- return f(((j = x.target) == null ? void 0 : j.value) ?? "");
11241
+ var C;
11242
+ return f(((C = x.target) == null ? void 0 : C.value) ?? "");
11234
11243
  }, onFocus: () => v.length > 0 && w(!0) }),
11235
11244
  /* @__PURE__ */ o.jsx(ln.Text, { className: I("p-0 rounded", Mt.inputGroupText, Mt.right), children: /* @__PURE__ */ o.jsx("button", { type: "submit", className: I("text-primary", Mt.submitButton), children: /* @__PURE__ */ o.jsx(qd, {}) }) }),
11236
11245
  /* @__PURE__ */ o.jsx(mN, { query: m, searchTypes: e, show: h, onCancel: () => w(!1), groups: v, isLoading: b })
@@ -11243,7 +11252,7 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
11243
11252
  to: a,
11244
11253
  className: "text-nowrap list-group-item list-group-item-action d-flex justify-content-between align-items-center",
11245
11254
  children: [
11246
- /* @__PURE__ */ o.jsx(Y, { variant: "body", children: i }),
11255
+ /* @__PURE__ */ o.jsx(q, { variant: "body", children: i }),
11247
11256
  /* @__PURE__ */ o.jsx(r, { icon: "chevron-right", className: "text-primary" })
11248
11257
  ]
11249
11258
  }
@@ -11251,10 +11260,10 @@ e.label === "", cs = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, ds =
11251
11260
  }, ED = ({ query: e, type: t, appSearchTypes: r, searchEndpointUri: n, staticAppItems: a }) => {
11252
11261
  var d, p;
11253
11262
  const { texts: { appSearch: i } } = H(J), [s, l] = R(""), { searchItems: c, isLoading: u } = Rc(t, e, n, !0, a);
11254
- return q(() => {
11263
+ return U(() => {
11255
11264
  var f;
11256
11265
  s || c === null || c.length === 0 || l(((f = c[0].key) == null ? void 0 : f.category) ?? "");
11257
- }, [c, s]), c === null ? null : /* @__PURE__ */ o.jsx(tr, { variant: "fullScreen", children: u ? /* @__PURE__ */ o.jsx(pa, {}) : c.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: "alert alert-warning", children: /* @__PURE__ */ o.jsx(Y, { variant: "body", children: i.noResultsFor(e) }) }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
11266
+ }, [c, s]), c === null ? null : /* @__PURE__ */ o.jsx(tr, { variant: "fullScreen", children: u ? /* @__PURE__ */ o.jsx(pa, {}) : c.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: "alert alert-warning", children: /* @__PURE__ */ o.jsx(q, { variant: "body", children: i.noResultsFor(e) }) }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
11258
11267
  /* @__PURE__ */ o.jsx(Ic, { activeTab: s, onSelect: (f) => l((f == null ? void 0 : f.toString()) ?? ""), children: c.map((f) => {
11259
11268
  var m, g;
11260
11269
  return /* @__PURE__ */ o.jsx(_c, { eventKey: ((m = f.key) == null ? void 0 : m.category) ?? "", children: ((g = f.key) == null ? void 0 : g.categoryName) ?? "" }, f.key.category);
@@ -11374,7 +11383,7 @@ export {
11374
11383
  st as TextInput,
11375
11384
  lx as Timeline,
11376
11385
  KN as TypedFormGroup,
11377
- Y as Typography,
11386
+ q as Typography,
11378
11387
  TD as UserAvatarToggle,
11379
11388
  vD as UserAvatarValueFormat,
11380
11389
  RN as VersionInfo,