react-luminus-components 1.3.215 → 1.3.216

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js CHANGED
@@ -91,17 +91,17 @@ function ea(e, t) {
91
91
  let o = "", i = "";
92
92
  const l = n === "extended" ? "-" : "", c = n === "extended" ? ":" : "";
93
93
  if (a !== "time") {
94
- const u = vt(r.getDate(), 2), d = vt(r.getMonth() + 1, 2);
95
- o = `${vt(r.getFullYear(), 4)}${l}${d}${l}${u}`;
94
+ const p = vt(r.getDate(), 2), u = vt(r.getMonth() + 1, 2);
95
+ o = `${vt(r.getFullYear(), 4)}${l}${u}${l}${p}`;
96
96
  }
97
97
  if (a !== "date") {
98
- const u = r.getTimezoneOffset();
99
- if (u !== 0) {
100
- const b = Math.abs(u), h = vt(Math.trunc(b / 60), 2), m = vt(b % 60, 2);
101
- i = `${u < 0 ? "+" : "-"}${h}:${m}`;
98
+ const p = r.getTimezoneOffset();
99
+ if (p !== 0) {
100
+ const b = Math.abs(p), h = vt(Math.trunc(b / 60), 2), m = vt(b % 60, 2);
101
+ i = `${p < 0 ? "+" : "-"}${h}:${m}`;
102
102
  } else
103
103
  i = "Z";
104
- const d = vt(r.getHours(), 2), p = vt(r.getMinutes(), 2), f = vt(r.getSeconds(), 2), v = o === "" ? "" : "T", g = [d, p, f].join(c);
104
+ const u = vt(r.getHours(), 2), d = vt(r.getMinutes(), 2), f = vt(r.getSeconds(), 2), v = o === "" ? "" : "T", g = [u, d, f].join(c);
105
105
  o = `${o}${v}${g}${i}`;
106
106
  }
107
107
  return o;
@@ -169,9 +169,9 @@ const au = {
169
169
  children: i,
170
170
  dimension: l = "height",
171
171
  in: c = !1,
172
- timeout: u = 300,
173
- mountOnEnter: d = !1,
174
- unmountOnExit: p = !1,
172
+ timeout: p = 300,
173
+ mountOnEnter: u = !1,
174
+ unmountOnExit: d = !1,
175
175
  appear: f = !1,
176
176
  getDimensionValue: v = nu,
177
177
  ...g
@@ -200,9 +200,9 @@ const au = {
200
200
  onExiting: y,
201
201
  childRef: i.ref,
202
202
  in: c,
203
- timeout: u,
204
- mountOnEnter: d,
205
- unmountOnExit: p,
203
+ timeout: p,
204
+ mountOnEnter: u,
205
+ unmountOnExit: d,
206
206
  appear: f,
207
207
  children: (C, O) => /* @__PURE__ */ le.cloneElement(i, {
208
208
  ...O,
@@ -337,12 +337,12 @@ const js = /* @__PURE__ */ xe.forwardRef(({
337
337
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
338
338
  as: l = "div",
339
339
  ...c
340
- }, u) => {
341
- const d = Ie(e, "card");
340
+ }, p) => {
341
+ const u = Ie(e, "card");
342
342
  return /* @__PURE__ */ s.jsx(l, {
343
- ref: u,
343
+ ref: p,
344
344
  ...c,
345
- className: j(t, d, r && `bg-${r}`, n && `text-${n}`, a && `border-${a}`),
345
+ className: j(t, u, r && `bg-${r}`, n && `text-${n}`, a && `border-${a}`),
346
346
  children: o ? /* @__PURE__ */ s.jsx(Ca, {
347
347
  children: i
348
348
  }) : i
@@ -424,19 +424,19 @@ function Ps({
424
424
  disabled: o
425
425
  }) {
426
426
  const i = Q(Qn), l = Q(es), c = Q(Os);
427
- let u = r;
428
- const d = {
427
+ let p = r;
428
+ const u = {
429
429
  role: a
430
430
  };
431
431
  if (l) {
432
- !a && l.role === "tablist" && (d.role = "tab");
433
- const p = l.getControllerId(e ?? null), f = l.getControlledId(e ?? null);
434
- d[ma("event-key")] = e, d.id = p || n, u = r == null && e != null ? l.activeKey === e : r, (u || !(c != null && c.unmountOnExit) && !(c != null && c.mountOnEnter)) && (d["aria-controls"] = f);
435
- }
436
- return d.role === "tab" && (d["aria-selected"] = u, u || (d.tabIndex = -1), o && (d.tabIndex = -1, d["aria-disabled"] = !0)), d.onClick = ha((p) => {
437
- o || (t == null || t(p), e != null && i && !p.isPropagationStopped() && i(e, p));
438
- }), [d, {
439
- isActive: u
432
+ !a && l.role === "tablist" && (u.role = "tab");
433
+ const d = l.getControllerId(e ?? null), f = l.getControlledId(e ?? null);
434
+ u[ma("event-key")] = e, u.id = d || n, p = r == null && e != null ? l.activeKey === e : r, (p || !(c != null && c.unmountOnExit) && !(c != null && c.mountOnEnter)) && (u["aria-controls"] = f);
435
+ }
436
+ return u.role === "tab" && (u["aria-selected"] = p, p || (u.tabIndex = -1), o && (u.tabIndex = -1, u["aria-disabled"] = !0)), u.onClick = ha((d) => {
437
+ o || (t == null || t(d), e != null && i && !d.isPropagationStopped() && i(e, d));
438
+ }), [u, {
439
+ isActive: p
440
440
  }];
441
441
  }
442
442
  const As = /* @__PURE__ */ xe.forwardRef((e, t) => {
@@ -474,9 +474,9 @@ const yo = () => {
474
474
  role: o,
475
475
  onKeyDown: i
476
476
  } = e, l = pu(e, uu);
477
- const c = Bc(), u = U(!1), d = Q(Qn), p = Q(Os);
477
+ const c = Bc(), p = U(!1), u = Q(Qn), d = Q(Os);
478
478
  let f, v;
479
- p && (o = o || "tablist", a = p.activeKey, f = p.getControlledId, v = p.getControllerId);
479
+ d && (o = o || "tablist", a = d.activeKey, f = d.getControlledId, v = d.getControllerId);
480
480
  const g = U(null), b = (D) => {
481
481
  const w = g.current;
482
482
  if (!w) return null;
@@ -487,9 +487,9 @@ const yo = () => {
487
487
  let S = O + D;
488
488
  return S >= y.length && (S = 0), S < 0 && (S = y.length - 1), y[S];
489
489
  }, h = (D, w) => {
490
- D != null && (n == null || n(D, w), d == null || d(D, w));
490
+ D != null && (n == null || n(D, w), u == null || u(D, w));
491
491
  }, m = (D) => {
492
- if (i == null || i(D), !p)
492
+ if (i == null || i(D), !d)
493
493
  return;
494
494
  let w;
495
495
  switch (D.key) {
@@ -504,14 +504,14 @@ const yo = () => {
504
504
  default:
505
505
  return;
506
506
  }
507
- w && (D.preventDefault(), h(w.dataset[Mc("EventKey")] || null, D), u.current = !0, c());
507
+ w && (D.preventDefault(), h(w.dataset[Mc("EventKey")] || null, D), p.current = !0, c());
508
508
  };
509
509
  F(() => {
510
- if (g.current && u.current) {
510
+ if (g.current && p.current) {
511
511
  const D = g.current.querySelector(`[${wo}][aria-selected=true]`);
512
512
  D == null || D.focus();
513
513
  }
514
- u.current = !1;
514
+ p.current = !1;
515
515
  });
516
516
  const x = Lc(t, g);
517
517
  return /* @__PURE__ */ s.jsx(Qn.Provider, {
@@ -545,9 +545,9 @@ const fu = Object.assign(Ts, {
545
545
  action: i,
546
546
  as: l,
547
547
  ...c
548
- }, u) => {
548
+ }, p) => {
549
549
  e = Ie(e, "list-group-item");
550
- const [d, p] = Ps({
550
+ const [u, d] = Ps({
551
551
  key: ba(n, c.href),
552
552
  active: t,
553
553
  ...c
@@ -556,16 +556,16 @@ const fu = Object.assign(Ts, {
556
556
  g.preventDefault(), g.stopPropagation();
557
557
  return;
558
558
  }
559
- d.onClick(g);
559
+ u.onClick(g);
560
560
  });
561
561
  r && c.tabIndex === void 0 && (c.tabIndex = -1, c["aria-disabled"] = !0);
562
562
  const v = l || (i ? c.href ? "a" : "button" : "div");
563
563
  return process.env.NODE_ENV !== "production" && ts(l || !(!i && c.href), "`action=false` and `href` should not be used together."), /* @__PURE__ */ s.jsx(v, {
564
- ref: u,
564
+ ref: p,
565
565
  ...c,
566
- ...d,
566
+ ...u,
567
567
  onClick: f,
568
- className: j(a, e, p.isActive && "active", r && "disabled", o && `${e}-${o}`, i && `${e}-action`)
568
+ className: j(a, e, d.isActive && "active", r && "disabled", o && `${e}-${o}`, i && `${e}-action`)
569
569
  });
570
570
  });
571
571
  Jt.displayName = "ListGroupItem";
@@ -581,13 +581,13 @@ const Rs = /* @__PURE__ */ xe.forwardRef((e, t) => {
581
581
  ...c
582
582
  } = $c(e, {
583
583
  activeKey: "onSelect"
584
- }), u = Ie(n, "list-group");
585
- let d;
586
- return o && (d = o === !0 ? "horizontal" : `horizontal-${o}`), process.env.NODE_ENV !== "production" && ts(!(o && a === "flush"), '`variant="flush"` and `horizontal` should not be used together.'), /* @__PURE__ */ s.jsx(fu, {
584
+ }), p = Ie(n, "list-group");
585
+ let u;
586
+ return o && (u = o === !0 ? "horizontal" : `horizontal-${o}`), process.env.NODE_ENV !== "production" && ts(!(o && a === "flush"), '`variant="flush"` and `horizontal` should not be used together.'), /* @__PURE__ */ s.jsx(fu, {
587
587
  ref: t,
588
588
  ...c,
589
589
  as: l,
590
- className: j(r, u, a && `${u}-${a}`, d && `${u}-${d}`, i && `${u}-numbered`)
590
+ className: j(r, p, a && `${p}-${a}`, u && `${p}-${u}`, i && `${p}-numbered`)
591
591
  });
592
592
  });
593
593
  Rs.displayName = "ListGroup";
@@ -625,20 +625,20 @@ function gu(e) {
625
625
  }
626
626
  function a(l) {
627
627
  const c = n(l);
628
- let u = e[c];
629
- return typeof u == "number" ? u = `${u - 0.2}px` : u = `calc(${u} - 0.2px)`, `(max-width: ${u})`;
628
+ let p = e[c];
629
+ return typeof p == "number" ? p = `${p - 0.2}px` : p = `calc(${p} - 0.2px)`, `(max-width: ${p})`;
630
630
  }
631
631
  function o(l) {
632
632
  let c = e[l];
633
633
  return typeof c == "number" && (c = `${c}px`), `(min-width: ${c})`;
634
634
  }
635
- function i(l, c, u) {
636
- let d;
637
- typeof l == "object" ? (d = l, u = c, c = !0) : (c = c || !0, d = {
635
+ function i(l, c, p) {
636
+ let u;
637
+ typeof l == "object" ? (u = l, p = c, c = !0) : (c = c || !0, u = {
638
638
  [l]: c
639
639
  });
640
- let p = z(() => Object.entries(d).reduce((f, [v, g]) => ((g === "up" || g === !0) && (f = r(f, o(v))), (g === "down" || g === !0) && (f = r(f, a(v))), f), ""), [JSON.stringify(d)]);
641
- return vu(p, u);
640
+ let d = z(() => Object.entries(u).reduce((f, [v, g]) => ((g === "up" || g === !0) && (f = r(f, o(v))), (g === "down" || g === !0) && (f = r(f, a(v))), f), ""), [JSON.stringify(u)]);
641
+ return vu(d, p);
642
642
  }
643
643
  return i;
644
644
  }
@@ -681,9 +681,9 @@ const hu = {
681
681
  appear: i,
682
682
  ...l,
683
683
  childRef: r.ref,
684
- children: (u, d) => /* @__PURE__ */ xe.cloneElement(r, {
685
- ...d,
686
- className: j(t, r.props.className, (u === va || u === Ji) && `${e}-toggling`, hu[u])
684
+ children: (p, u) => /* @__PURE__ */ xe.cloneElement(r, {
685
+ ...u,
686
+ className: j(t, r.props.className, (p === va || p === Ji) && `${e}-toggling`, hu[p])
687
687
  })
688
688
  })));
689
689
  Bs.displayName = "OffcanvasToggling";
@@ -733,9 +733,9 @@ const Fs = /* @__PURE__ */ xe.forwardRef(({
733
733
  show: i = !1,
734
734
  backdrop: l = !0,
735
735
  keyboard: c = !0,
736
- scroll: u = !1,
737
- onEscapeKeyDown: d,
738
- onShow: p,
736
+ scroll: p = !1,
737
+ onEscapeKeyDown: u,
738
+ onShow: d,
739
739
  onHide: f,
740
740
  container: v,
741
741
  autoFocus: g = !0,
@@ -763,7 +763,7 @@ const Fs = /* @__PURE__ */ xe.forwardRef(({
763
763
  onHide: P
764
764
  }), [P]);
765
765
  function Y() {
766
- return _ || (u ? (E.current || (E.current = new zc({
766
+ return _ || (p ? (E.current || (E.current = new zc({
767
767
  handleContainerOverflow: !1
768
768
  })), E.current) : qc());
769
769
  }
@@ -791,11 +791,11 @@ const Fs = /* @__PURE__ */ xe.forwardRef(({
791
791
  container: v,
792
792
  keyboard: c,
793
793
  autoFocus: g,
794
- enforceFocus: b && !u,
794
+ enforceFocus: b && !p,
795
795
  restoreFocus: h,
796
796
  restoreFocusOptions: m,
797
- onEscapeKeyDown: d,
798
- onShow: p,
797
+ onEscapeKeyDown: u,
798
+ onShow: d,
799
799
  onHide: P,
800
800
  onEnter: te,
801
801
  onEntering: C,
@@ -865,20 +865,20 @@ const gt = Object.assign(Gs, {
865
865
  as: r = "div",
866
866
  ...n
867
867
  }, a) => {
868
- const o = Ie(e, "row"), i = Kc(), l = Xc(), c = `${o}-cols`, u = [];
869
- return i.forEach((d) => {
870
- const p = n[d];
871
- delete n[d];
868
+ const o = Ie(e, "row"), i = Kc(), l = Xc(), c = `${o}-cols`, p = [];
869
+ return i.forEach((u) => {
870
+ const d = n[u];
871
+ delete n[u];
872
872
  let f;
873
- p != null && typeof p == "object" ? {
873
+ d != null && typeof d == "object" ? {
874
874
  cols: f
875
- } = p : f = p;
876
- const v = d !== l ? `-${d}` : "";
877
- f != null && u.push(`${c}${v}-${f}`);
875
+ } = d : f = d;
876
+ const v = u !== l ? `-${u}` : "";
877
+ f != null && p.push(`${c}${v}-${f}`);
878
878
  }), /* @__PURE__ */ s.jsx(r, {
879
879
  ref: a,
880
880
  ...n,
881
- className: j(t, o, ...u)
881
+ className: j(t, o, ...p)
882
882
  });
883
883
  });
884
884
  Ws.displayName = "Row";
@@ -911,15 +911,15 @@ const wu = /* @__PURE__ */ xe.forwardRef(({
911
911
  size: i,
912
912
  variant: l,
913
913
  responsive: c,
914
- ...u
915
- }, d) => {
916
- const p = Ie(e, "table"), f = j(t, p, l && `${p}-${l}`, i && `${p}-${i}`, r && `${p}-${typeof r == "string" ? `striped-${r}` : "striped"}`, n && `${p}-bordered`, a && `${p}-borderless`, o && `${p}-hover`), v = /* @__PURE__ */ s.jsx("table", {
917
- ...u,
914
+ ...p
915
+ }, u) => {
916
+ const d = Ie(e, "table"), f = j(t, d, l && `${d}-${l}`, i && `${d}-${i}`, r && `${d}-${typeof r == "string" ? `striped-${r}` : "striped"}`, n && `${d}-bordered`, a && `${d}-borderless`, o && `${d}-hover`), v = /* @__PURE__ */ s.jsx("table", {
917
+ ...p,
918
918
  className: f,
919
- ref: d
919
+ ref: u
920
920
  });
921
921
  if (c) {
922
- let g = `${p}-responsive`;
922
+ let g = `${d}-responsive`;
923
923
  return typeof c == "string" && (g = `${g}-${c}`), /* @__PURE__ */ s.jsx("div", {
924
924
  className: g,
925
925
  children: v
@@ -939,15 +939,15 @@ const wu = /* @__PURE__ */ xe.forwardRef(({
939
939
  ] })
940
940
  ] });
941
941
  }, Us = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(rs, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, className: o, children: i, multiple: l, ...c }) => {
942
- const u = (d) => {
943
- d.target.files && (a(d.target.files), d.target.value = "");
942
+ const p = (u) => {
943
+ u.target.files && (a(u.target.files), u.target.value = "");
944
944
  };
945
945
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
946
946
  /* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: j(`luminus-context-button btn text-${e} ${o ?? ""}`, Zc.button), ...c, children: [
947
947
  t,
948
948
  i
949
949
  ] }),
950
- /* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange: u, hidden: !0, multiple: l })
950
+ /* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange: p, hidden: !0, multiple: l })
951
951
  ] });
952
952
  }, Fw = ({ onUpload: e, accept: t, children: r, className: n, size: a = "md" }) => {
953
953
  const o = R(async (l) => {
@@ -964,35 +964,35 @@ const wu = /* @__PURE__ */ xe.forwardRef(({
964
964
  ] });
965
965
  }, Nu = "_select_dlv1t_1", In = {
966
966
  select: Nu
967
- }, Eu = ({ month: e, onChangeMonth: t, locale: r, yearMin: n = 2e3, yearMax: a = 2050 }) => {
968
- const o = R((c) => {
969
- const u = ed(e, c);
970
- u.getFullYear() < n || u.getFullYear() > a || t(u);
971
- }, [e, t, n, a]), i = z(() => {
972
- const c = [];
973
- for (let u = n; u <= a; u++)
974
- c.push(u);
975
- return c;
976
- }, [n, a]), l = z(() => {
967
+ }, Eu = ({ month: e, onChangeMonth: t, locale: r, yearMin: n = 2e3, yearMax: a = 2050, className: o, monthClassName: i, yearClassName: l }) => {
968
+ const c = R((d) => {
969
+ const f = ed(e, d);
970
+ f.getFullYear() < n || f.getFullYear() > a || t(f);
971
+ }, [e, t, n, a]), p = z(() => {
977
972
  const d = [];
978
- for (let p = 0; p <= 11; p++)
979
- d.push({
980
- id: p,
981
- name: vr(new Date(2024, p, 1), "LLLL", { locale: r })
982
- });
973
+ for (let f = n; f <= a; f++)
974
+ d.push(f);
983
975
  return d;
976
+ }, [n, a]), u = z(() => {
977
+ const v = [];
978
+ for (let g = 0; g <= 11; g++)
979
+ v.push({
980
+ id: g,
981
+ name: vr(new Date(2024, g, 1), "LLLL", { locale: r })
982
+ });
983
+ return v;
984
984
  }, [r]);
985
- return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
986
- /* @__PURE__ */ s.jsx(ce, { onClick: () => o(-1), disabled: e.getFullYear() < n || e.getFullYear() === n && e.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(xa, {}) }),
987
- /* @__PURE__ */ s.jsx(_e.Select, { value: e.getMonth(), onChange: (c) => {
988
- var u;
989
- return ((u = c.target) == null ? void 0 : u.value) && t(tu(e, Number(c.target.value)));
990
- }, className: j(In.select, In.month), children: l.map((c) => /* @__PURE__ */ s.jsx("option", { value: c.id, children: c.name }, c.id)) }),
991
- /* @__PURE__ */ s.jsx(_e.Select, { value: e.getFullYear(), onChange: (c) => {
992
- var u;
993
- return ((u = c.target) == null ? void 0 : u.value) && t(ta(e, Number(c.target.value)));
994
- }, className: j(In.select), children: i.map((c) => /* @__PURE__ */ s.jsx("option", { value: c, children: c }, c)) }),
995
- /* @__PURE__ */ s.jsx(ce, { onClick: () => o(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ s.jsx(ya, {}) })
985
+ return /* @__PURE__ */ s.jsxs("div", { className: j("card d-flex flex-row align-items-center m-0 p-1 gap-2", o), children: [
986
+ /* @__PURE__ */ s.jsx(ce, { onClick: () => c(-1), disabled: e.getFullYear() < n || e.getFullYear() === n && e.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(xa, {}) }),
987
+ /* @__PURE__ */ s.jsx(_e.Select, { value: e.getMonth(), onChange: (d) => {
988
+ var f;
989
+ return ((f = d.target) == null ? void 0 : f.value) && t(tu(e, Number(d.target.value)));
990
+ }, className: j(In.select, In.month, i), children: u.map((d) => /* @__PURE__ */ s.jsx("option", { value: d.id, children: d.name }, d.id)) }),
991
+ /* @__PURE__ */ s.jsx(_e.Select, { value: e.getFullYear(), onChange: (d) => {
992
+ var f;
993
+ return ((f = d.target) == null ? void 0 : f.value) && t(ta(e, Number(d.target.value)));
994
+ }, className: j(In.select, l), children: p.map((d) => /* @__PURE__ */ s.jsx("option", { value: d, children: d }, d)) }),
995
+ /* @__PURE__ */ s.jsx(ce, { onClick: () => c(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ s.jsx(ya, {}) })
996
996
  ] });
997
997
  }, Cu = "_select_pywmr_1", Su = {
998
998
  select: Cu
@@ -1007,26 +1007,26 @@ const wu = /* @__PURE__ */ xe.forwardRef(({
1007
1007
  if (n.manualOptions)
1008
1008
  return n.options;
1009
1009
  const c = [];
1010
- for (let u = a; u <= o; u++)
1011
- c.push(u);
1010
+ for (let p = a; p <= o; p++)
1011
+ c.push(p);
1012
1012
  return c;
1013
1013
  }, [n, o, a]), l = R((c) => {
1014
1014
  if (n.manualOptions) {
1015
- const u = i.findIndex((d) => d === e.getFullYear());
1016
- if (u !== -1) {
1017
- const d = i.at(u + c) ?? null;
1018
- d && t(ta(e, d));
1015
+ const p = i.findIndex((u) => u === e.getFullYear());
1016
+ if (p !== -1) {
1017
+ const u = i.at(p + c) ?? null;
1018
+ u && t(ta(e, u));
1019
1019
  }
1020
1020
  } else {
1021
- const u = e.getFullYear() + c;
1022
- u >= a && u <= o && t(td(e, c));
1021
+ const p = e.getFullYear() + c;
1022
+ p >= a && p <= o && t(td(e, c));
1023
1023
  }
1024
1024
  }, [e, t, o, a, n, i]);
1025
1025
  return /* @__PURE__ */ s.jsxs("div", { className: j("card d-flex flex-row align-items-center m-0 p-1 gap-2", r ?? ""), children: [
1026
1026
  /* @__PURE__ */ s.jsx(ce, { onClick: () => l(-1), disabled: e.getFullYear() <= a, children: /* @__PURE__ */ s.jsx(xa, {}) }),
1027
1027
  /* @__PURE__ */ s.jsx(_e.Select, { value: e.getFullYear(), onChange: (c) => {
1028
- var u;
1029
- return ((u = c.target) == null ? void 0 : u.value) && t(ta(e, Number(c.target.value)));
1028
+ var p;
1029
+ return ((p = c.target) == null ? void 0 : p.value) && t(ta(e, Number(c.target.value)));
1030
1030
  }, className: Su.select, children: i.map((c) => /* @__PURE__ */ s.jsx("option", { value: c, children: c }, c)) }),
1031
1031
  /* @__PURE__ */ s.jsx(ce, { onClick: () => l(1), disabled: e.getFullYear() >= o, children: /* @__PURE__ */ s.jsx(ya, {}) })
1032
1032
  ] });
@@ -1092,30 +1092,30 @@ const _u = (e) => (r) => {
1092
1092
  widgetTitle: Mu,
1093
1093
  title: Fu
1094
1094
  }, $u = ({ show: e, widgetGroups: t, widgets: r, handleClose: n, onWidgetPicked: a, texts: o }) => {
1095
- const [i, l] = L(""), c = z(() => r.filter((d) => d.id !== -1 && ut(d.name, i)), [r, i]), u = z(() => t.filter((d) => c.some((p) => p.group === d.id)), [t, c]);
1095
+ const [i, l] = L(""), c = z(() => r.filter((u) => u.id !== -1 && ut(u.name, i)), [r, i]), p = z(() => t.filter((u) => c.some((d) => d.group === u.id)), [t, c]);
1096
1096
  return /* @__PURE__ */ s.jsxs(Ue, { show: e, onHide: () => n(), size: "lg", children: [
1097
1097
  /* @__PURE__ */ s.jsxs(Ue.Header, { closeButton: !0, children: [
1098
1098
  /* @__PURE__ */ s.jsx(Ue.Title, { className: "w-100", children: o.pickWidgetToAdd }),
1099
- /* @__PURE__ */ s.jsx(_e.Control, { type: "search", size: "sm", value: i, placeholder: o.searchPlaceholder, onChange: (d) => {
1100
- var p;
1101
- return l(((p = d.target) == null ? void 0 : p.value) ?? "");
1099
+ /* @__PURE__ */ s.jsx(_e.Control, { type: "search", size: "sm", value: i, placeholder: o.searchPlaceholder, onChange: (u) => {
1100
+ var d;
1101
+ return l(((d = u.target) == null ? void 0 : d.value) ?? "");
1102
1102
  }, className: "me-3", style: { maxWidth: "200px" } })
1103
1103
  ] }),
1104
1104
  /* @__PURE__ */ s.jsx(Ue.Body, { className: "flex-column gap-3", children: c.length === 0 ? /* @__PURE__ */ s.jsx(ln, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1105
- u.map((d) => /* @__PURE__ */ s.jsx(Zr, { defaultOpen: !0, title: d.name ?? "", children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3", Ke.widgetsRow), children: c.filter((p) => p.group === d.id).map((p) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: j("p-0 pt-2 bg-white rounded shadow-sm", Ke.widget), onClick: () => a(p.id), children: [
1105
+ p.map((u) => /* @__PURE__ */ s.jsx(Zr, { defaultOpen: !0, title: u.name ?? "", children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3", Ke.widgetsRow), children: c.filter((d) => d.group === u.id).map((d) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: j("p-0 pt-2 bg-white rounded shadow-sm", Ke.widget), onClick: () => a(d.id), children: [
1106
1106
  /* @__PURE__ */ s.jsx("div", { className: Ke.widgetImg, style: {
1107
- backgroundImage: p.img ? `url(${p.img})` : void 0
1107
+ backgroundImage: d.img ? `url(${d.img})` : void 0
1108
1108
  } }),
1109
1109
  /* @__PURE__ */ s.jsx("div", { className: Ke.widgetTitleSpacer }),
1110
- /* @__PURE__ */ s.jsx("div", { className: j(Ke.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(Ke.title, "text-white text-truncate"), children: p.name }) })
1111
- ] }, p.id) })) }) }) }, d.id)),
1112
- c.some((d) => d.group === void 0) && /* @__PURE__ */ s.jsx(Zr, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3", Ke.widgetsRow), children: c.filter((d) => d.group === void 0).map((d) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: j("p-0 pt-2 bg-white rounded shadow-sm", Ke.widget), onClick: () => a(d.id), children: [
1110
+ /* @__PURE__ */ s.jsx("div", { className: j(Ke.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(Ke.title, "text-white text-truncate"), children: d.name }) })
1111
+ ] }, d.id) })) }) }) }, u.id)),
1112
+ c.some((u) => u.group === void 0) && /* @__PURE__ */ s.jsx(Zr, { defaultOpen: !0, title: o.otherWidgets, children: /* @__PURE__ */ s.jsx("div", { className: "p-1", children: /* @__PURE__ */ s.jsx("div", { className: j("row gx-3 gy-3", Ke.widgetsRow), children: c.filter((u) => u.group === void 0).map((u) => /* @__PURE__ */ s.jsx("div", { className: "col col-4", children: /* @__PURE__ */ s.jsxs("div", { role: "button", className: j("p-0 pt-2 bg-white rounded shadow-sm", Ke.widget), onClick: () => a(u.id), children: [
1113
1113
  /* @__PURE__ */ s.jsx("div", { className: Ke.widgetImg, style: {
1114
- backgroundImage: d.img ? `url(${d.img})` : void 0
1114
+ backgroundImage: u.img ? `url(${u.img})` : void 0
1115
1115
  } }),
1116
1116
  /* @__PURE__ */ s.jsx("div", { className: Ke.widgetTitleSpacer }),
1117
- /* @__PURE__ */ s.jsx("div", { className: j(Ke.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(Ke.title, "text-white text-truncate"), children: d.name }) })
1118
- ] }, d.id) })) }) }) })
1117
+ /* @__PURE__ */ s.jsx("div", { className: j(Ke.widgetTitle, "rounded"), children: /* @__PURE__ */ s.jsx(ae, { variant: "body", className: j(Ke.title, "text-white text-truncate"), children: u.name }) })
1118
+ ] }, u.id) })) }) }) })
1119
1119
  ] }) })
1120
1120
  ] });
1121
1121
  }, Vu = "_widget_19xgl_1", Gu = "_mobile_19xgl_7", Io = {
@@ -1175,18 +1175,18 @@ const _u = (e) => (r) => {
1175
1175
  ...o,
1176
1176
  widgets: ((b = o.widgets) == null ? void 0 : b.filter((h, m) => m !== v)) ?? []
1177
1177
  }) : l(v, -1);
1178
- }, [o, i, l]), u = R((v) => {
1178
+ }, [o, i, l]), p = R((v) => {
1179
1179
  var g;
1180
1180
  i({
1181
1181
  ...o,
1182
1182
  widgets: ((g = o.widgets) == null ? void 0 : g.map((b, h) => h === v ? { ...b, fullWidth: !b.fullWidth } : b)) ?? []
1183
1183
  });
1184
- }, [o, i]), d = R((v, g, b) => v ? /* @__PURE__ */ s.jsxs("div", { className: j(ot.widgetWrapper, {
1184
+ }, [o, i]), u = R((v, g, b) => v ? /* @__PURE__ */ s.jsxs("div", { className: j(ot.widgetWrapper, {
1185
1185
  [ot.widgetEdit]: r && v.id !== -1
1186
1186
  }, { [ot.fullWidth]: b }), children: [
1187
1187
  r && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1188
1188
  /* @__PURE__ */ s.jsx(ce, { color: "danger", onClick: () => c(g), className: j(ot.removeIcon), children: /* @__PURE__ */ s.jsx(ns, {}) }),
1189
- /* @__PURE__ */ s.jsx(ce, { color: b ? "danger" : "primary", onClick: () => u(g), className: j(ot.fullWidthIcon), children: /* @__PURE__ */ s.jsx(nd, {}) })
1189
+ /* @__PURE__ */ s.jsx(ce, { color: b ? "danger" : "primary", onClick: () => p(g), className: j(ot.fullWidthIcon), children: /* @__PURE__ */ s.jsx(nd, {}) })
1190
1190
  ] }),
1191
1191
  v.id === -1 ? r && /* @__PURE__ */ s.jsx("div", { className: ot.widgetWrapper, children: /* @__PURE__ */ s.jsx(jo, { widgetGroups: e, availableWidgets: t, onAdd: (h) => l(g, h), texts: a }) }) : /* @__PURE__ */ s.jsx(Tu, { title: v.title, children: /* @__PURE__ */ s.jsx(v.WidgetElement, { title: v.title }) }),
1192
1192
  v.id > -1 && r && /* @__PURE__ */ s.jsx("div", { className: ot.widgetEditOverlay })
@@ -1195,12 +1195,12 @@ const _u = (e) => (r) => {
1195
1195
  e,
1196
1196
  l,
1197
1197
  c,
1198
- u,
1198
+ p,
1199
1199
  t,
1200
1200
  a
1201
- ]), { isMobile: p } = cn();
1202
- return /* @__PURE__ */ s.jsx("div", { className: j(ot.dashboard, { [ot.mobile]: p }), children: /* @__PURE__ */ s.jsxs("div", { className: j(ot.widgetsGrid), children: [
1203
- (f = o.widgets) == null ? void 0 : f.map((v, g) => d(t.find((b) => b.id === v.widgetId), g, v.fullWidth)),
1201
+ ]), { isMobile: d } = cn();
1202
+ return /* @__PURE__ */ s.jsx("div", { className: j(ot.dashboard, { [ot.mobile]: d }), children: /* @__PURE__ */ s.jsxs("div", { className: j(ot.widgetsGrid), children: [
1203
+ (f = o.widgets) == null ? void 0 : f.map((v, g) => u(t.find((b) => b.id === v.widgetId), g, v.fullWidth)),
1204
1204
  r && /* @__PURE__ */ s.jsx(jo, { widgetGroups: e, availableWidgets: t, onAdd: (v) => {
1205
1205
  var g;
1206
1206
  return l((g = o.widgets) == null ? void 0 : g.length, v);
@@ -1234,47 +1234,47 @@ const _u = (e) => (r) => {
1234
1234
  /* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
1235
1235
  ] });
1236
1236
  }, Gw = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(rs, { size: 12 }), inputId: r = "context-file-input", accept: n = "*", onUpload: a, multiple: o, className: i, children: l, ...c }) => {
1237
- const u = (d) => {
1238
- d.target.files && (a(d.target.files), d.target.value = "");
1237
+ const p = (u) => {
1238
+ u.target.files && (a(u.target.files), u.target.value = "");
1239
1239
  };
1240
1240
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1241
1241
  /* @__PURE__ */ s.jsxs("label", { htmlFor: r, className: j(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, ad.item), ...c, children: [
1242
1242
  t,
1243
1243
  l
1244
1244
  ] }),
1245
- /* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange: u, hidden: !0, multiple: o })
1245
+ /* @__PURE__ */ s.jsx("input", { id: r, type: "file", accept: n, onChange: p, hidden: !0, multiple: o })
1246
1246
  ] });
1247
1247
  }, ip = "_divider_1e6rk_1", sp = {
1248
1248
  divider: ip
1249
1249
  }, Hs = ({ className: e }) => /* @__PURE__ */ s.jsx(od.Divider, { className: j("luminus-dropdown-divider", e, sp.divider) });
1250
1250
  function lp(e, t, r) {
1251
- var n = this, a = U(null), o = U(0), i = U(null), l = U([]), c = U(), u = U(), d = U(e), p = U(!0);
1252
- d.current = e;
1251
+ var n = this, a = U(null), o = U(0), i = U(null), l = U([]), c = U(), p = U(), u = U(e), d = U(!0);
1252
+ u.current = e;
1253
1253
  var f = typeof window < "u", v = !t && t !== 0 && f;
1254
1254
  if (typeof e != "function") throw new TypeError("Expected a function");
1255
1255
  t = +t || 0;
1256
1256
  var g = !!(r = r || {}).leading, b = !("trailing" in r) || !!r.trailing, h = "maxWait" in r, m = "debounceOnServer" in r && !!r.debounceOnServer, x = h ? Math.max(+r.maxWait || 0, t) : null;
1257
1257
  F(function() {
1258
- return p.current = !0, function() {
1259
- p.current = !1;
1258
+ return d.current = !0, function() {
1259
+ d.current = !1;
1260
1260
  };
1261
1261
  }, []);
1262
1262
  var D = z(function() {
1263
1263
  var w = function(T) {
1264
1264
  var k = l.current, G = c.current;
1265
- return l.current = c.current = null, o.current = T, u.current = d.current.apply(G, k);
1265
+ return l.current = c.current = null, o.current = T, p.current = u.current.apply(G, k);
1266
1266
  }, y = function(T, k) {
1267
1267
  v && cancelAnimationFrame(i.current), i.current = v ? requestAnimationFrame(T) : setTimeout(T, k);
1268
1268
  }, C = function(T) {
1269
- if (!p.current) return !1;
1269
+ if (!d.current) return !1;
1270
1270
  var k = T - a.current;
1271
1271
  return !a.current || k >= t || k < 0 || h && T - o.current >= x;
1272
1272
  }, O = function(T) {
1273
- return i.current = null, b && l.current ? w(T) : (l.current = c.current = null, u.current);
1273
+ return i.current = null, b && l.current ? w(T) : (l.current = c.current = null, p.current);
1274
1274
  }, S = function T() {
1275
1275
  var k = Date.now();
1276
1276
  if (C(k)) return O(k);
1277
- if (p.current) {
1277
+ if (d.current) {
1278
1278
  var G = t - (k - a.current), E = h ? Math.min(G, x - (k - o.current)) : G;
1279
1279
  y(T, E);
1280
1280
  }
@@ -1282,10 +1282,10 @@ function lp(e, t, r) {
1282
1282
  if (f || m) {
1283
1283
  var T = Date.now(), k = C(T);
1284
1284
  if (l.current = [].slice.call(arguments), c.current = n, a.current = T, k) {
1285
- if (!i.current && p.current) return o.current = a.current, y(S, t), g ? w(a.current) : u.current;
1285
+ if (!i.current && d.current) return o.current = a.current, y(S, t), g ? w(a.current) : p.current;
1286
1286
  if (h) return y(S, t), w(a.current);
1287
1287
  }
1288
- return i.current || y(S, t), u.current;
1288
+ return i.current || y(S, t), p.current;
1289
1289
  }
1290
1290
  };
1291
1291
  return _.cancel = function() {
@@ -1293,7 +1293,7 @@ function lp(e, t, r) {
1293
1293
  }, _.isPending = function() {
1294
1294
  return !!i.current;
1295
1295
  }, _.flush = function() {
1296
- return i.current ? O(Date.now()) : u.current;
1296
+ return i.current ? O(Date.now()) : p.current;
1297
1297
  }, _;
1298
1298
  }, [g, h, t, x, b, v, f, m]);
1299
1299
  return D;
@@ -1333,7 +1333,7 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
1333
1333
  actionButton: Ep,
1334
1334
  "actions-dropdown": "_actions-dropdown_1kmlk_95",
1335
1335
  actionsDropdown: Cp
1336
- }, fn = ({ show: e, onCancel: t, items: r, currentSelection: n, onSelectionChange: a, onSearchQueryChange: o, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: p, disabled: f, isLoading: v = !1, inputRef: g, archiveColumn: b = "archive", addNewOptionPath: h, refreshOptions: m }) => {
1336
+ }, fn = ({ show: e, onCancel: t, items: r, currentSelection: n, onSelectionChange: a, onSearchQueryChange: o, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: p = !1, autoHideSearch: u = !1, allItemsLength: d, disabled: f, isLoading: v = !1, inputRef: g, archiveColumn: b = "archive", addNewOptionPath: h, refreshOptions: m }) => {
1337
1337
  var Re;
1338
1338
  const { texts: { customSelect: x } } = Q(fe), D = U(null), w = U(null), y = U(null), C = U(null), O = U(null), [S, _] = L(""), [T] = pn(S, 500), [, k] = L(!1), { copyToClipboard: G } = zd(), E = (Re = g.current) == null ? void 0 : Re.getBoundingClientRect(), V = (E == null ? void 0 : E.x) ?? 0, X = ((E == null ? void 0 : E.x) ?? 0) + ((E == null ? void 0 : E.width) ?? 0), P = (E == null ? void 0 : E.y) ?? 0, I = ((E == null ? void 0 : E.y) ?? 0) + ((E == null ? void 0 : E.height) ?? 0), B = (E == null ? void 0 : E.width) ?? 0, Y = (E == null ? void 0 : E.height) ?? 0, te = 5, H = z(() => V ? V > window.innerWidth / 2 : !1, [V]), oe = z(() => P ? P > window.innerHeight / 2 : !1, [P]);
1339
1339
  F(() => {
@@ -1405,7 +1405,7 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
1405
1405
  de ? /* @__PURE__ */ s.jsx("div", { ref: O, children: /* @__PURE__ */ s.jsxs(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { as: jr, className: j("luminus-dropdown-picker-actions-dropdown", ke.actionsDropdown), icon: /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(id, { size: 16 }) }) }), children: [
1406
1406
  Ee ? /* @__PURE__ */ s.jsx(He, { icon: /* @__PURE__ */ s.jsx(sd, {}), onClick: () => {
1407
1407
  var A, M;
1408
- G(u ? ((A = n == null ? void 0 : n.id) == null ? void 0 : A.toString()) ?? "" : ((M = n == null ? void 0 : n.name) == null ? void 0 : M.toString()) ?? "");
1408
+ G(p ? ((A = n == null ? void 0 : n.id) == null ? void 0 : A.toString()) ?? "" : ((M = n == null ? void 0 : n.name) == null ? void 0 : M.toString()) ?? "");
1409
1409
  }, children: x.copySelection }) : null,
1410
1410
  Ee && (h || m) ? /* @__PURE__ */ s.jsx(Hs, {}) : null,
1411
1411
  h ? /* @__PURE__ */ s.jsx(He, { icon: /* @__PURE__ */ s.jsx(ld, {}), onClick: () => {
@@ -1425,7 +1425,7 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
1425
1425
  width: Pe,
1426
1426
  justifyContent: oe ? "flex-end" : "flex-start"
1427
1427
  }, children: /* @__PURE__ */ s.jsx("div", { ref: D, className: j("shadow rounded", ke.dropdown), children: !f && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1428
- !o || d && (p ?? r.length) <= te ? null : /* @__PURE__ */ s.jsx("div", { className: j("search-input-container border-bottom", ke.searchInputContainer), children: /* @__PURE__ */ s.jsx(_e.Control, { ref: y, type: "search", size: "sm", className: ke.searchInput, placeholder: i.searchPlaceholder, value: S, onChange: (A) => {
1428
+ !o || u && (d ?? r.length) <= te ? null : /* @__PURE__ */ s.jsx("div", { className: j("search-input-container border-bottom", ke.searchInputContainer), children: /* @__PURE__ */ s.jsx(_e.Control, { ref: y, type: "search", size: "sm", className: ke.searchInput, placeholder: i.searchPlaceholder, value: S, onChange: (A) => {
1429
1429
  var M;
1430
1430
  return _(((M = A.target) == null ? void 0 : M.value) ?? "");
1431
1431
  } }) }),
@@ -1445,7 +1445,7 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
1445
1445
  }, {
1446
1446
  archive: A.additionalColumns ? A.additionalColumns[b] : !1
1447
1447
  }), onClick: () => !f && a(A), onMouseEnter: () => re(M), children: [
1448
- /* @__PURE__ */ s.jsx("div", { className: ke.name, children: /* @__PURE__ */ s.jsx(ae, { variant: "body2", children: u ? A.id : A.name }) }),
1448
+ /* @__PURE__ */ s.jsx("div", { className: ke.name, children: /* @__PURE__ */ s.jsx(ae, { variant: "body2", children: p ? A.id : A.name }) }),
1449
1449
  c == null ? void 0 : c.filter((K) => K.key !== b).map((K) => /* @__PURE__ */ s.jsx("div", { className: ke.columnItem, style: {
1450
1450
  width: `${K.width ?? 100}px`,
1451
1451
  minWidth: `${K.width ?? 100}px`,
@@ -1476,40 +1476,40 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
1476
1476
  header: Mp,
1477
1477
  item: Fp
1478
1478
  }, $p = ({ show: e, query: t, onCancel: r, groups: n, isLoading: a, searchTypes: o }) => {
1479
- const { texts: { appSearch: i } } = Q(fe), l = U(null), c = R((u) => {
1480
- var p;
1481
- const d = (p = o.find((f) => f.key === u.type)) == null ? void 0 : p.toPath;
1482
- return d ? `${d}/${u.searchKey}` : "/not-found";
1479
+ const { texts: { appSearch: i } } = Q(fe), l = U(null), c = R((p) => {
1480
+ var d;
1481
+ const u = (d = o.find((f) => f.key === p.type)) == null ? void 0 : d.toPath;
1482
+ return u ? `${u}/${p.searchKey}` : "/not-found";
1483
1483
  }, [o]);
1484
1484
  return gs([l], r), /* @__PURE__ */ s.jsx("div", { ref: l, className: j("luminus-app-search-dropdown shadow rounded", jt.dropdown, {
1485
1485
  [jt.open]: e
1486
- }), children: a ? /* @__PURE__ */ s.jsx("div", { className: jt.loadingContainer, children: /* @__PURE__ */ s.jsx(Ia, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: jt.groupsContainer, children: n == null ? void 0 : n.map((u) => {
1487
- var d;
1486
+ }), children: a ? /* @__PURE__ */ s.jsx("div", { className: jt.loadingContainer, children: /* @__PURE__ */ s.jsx(Ia, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: jt.groupsContainer, children: n == null ? void 0 : n.map((p) => {
1487
+ var u;
1488
1488
  return /* @__PURE__ */ s.jsxs("div", { className: j(jt.group), children: [
1489
- /* @__PURE__ */ s.jsxs(nt, { to: `/search?query=${t}&type=${u.key.category}`, className: j("group-header", jt.header), onClick: r, children: [
1490
- /* @__PURE__ */ s.jsx(ae, { variant: "body", className: "text-primary", children: u.key.categoryName }),
1489
+ /* @__PURE__ */ s.jsxs(nt, { to: `/search?query=${t}&type=${p.key.category}`, className: j("group-header", jt.header), onClick: r, children: [
1490
+ /* @__PURE__ */ s.jsx(ae, { variant: "body", className: "text-primary", children: p.key.categoryName }),
1491
1491
  /* @__PURE__ */ s.jsxs(ae, { variant: "caption", children: [
1492
- u.items.length,
1492
+ p.items.length,
1493
1493
  " ",
1494
1494
  i.amountFrom,
1495
1495
  " ",
1496
- u.key.totalCount
1496
+ p.key.totalCount
1497
1497
  ] })
1498
1498
  ] }),
1499
- (d = u.items) == null ? void 0 : d.map((p, f) => /* @__PURE__ */ s.jsxs(
1499
+ (u = p.items) == null ? void 0 : u.map((d, f) => /* @__PURE__ */ s.jsxs(
1500
1500
  nt,
1501
1501
  {
1502
- to: c(p),
1502
+ to: c(d),
1503
1503
  className: j("search-item d-flex gap-3 align-items-center justify-content-between", jt.item),
1504
1504
  onClick: r,
1505
1505
  children: [
1506
- /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-nowrap text-truncate", children: p.name }),
1506
+ /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-nowrap text-truncate", children: d.name }),
1507
1507
  /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(dd, {}) })
1508
1508
  ]
1509
1509
  },
1510
1510
  f
1511
1511
  ))
1512
- ] }, u.key.category);
1512
+ ] }, p.key.category);
1513
1513
  }) }) });
1514
1514
  }, Vp = (e, t) => {
1515
1515
  const r = Nt(), [n, a] = L(!1), [o, i] = L([]), l = !e || !e.key, c = R(() => {
@@ -1517,8 +1517,8 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
1517
1517
  i([]);
1518
1518
  return;
1519
1519
  }
1520
- a(!0), r.get(`/search/${t}?count=${l ? 5 : 20}${l ? "" : `&type=${e.key}`}`).then(({ data: u }) => {
1521
- i(u), a(!1);
1520
+ a(!0), r.get(`/search/${t}?count=${l ? 5 : 20}${l ? "" : `&type=${e.key}`}`).then(({ data: p }) => {
1521
+ i(p), a(!1);
1522
1522
  }).catch(() => {
1523
1523
  a(!1);
1524
1524
  });
@@ -1528,24 +1528,24 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
1528
1528
  }, [c]), { isLoading: n, searchItems: o };
1529
1529
  }, Ww = ({ searchTypes: e, navigateFunction: t, currentPath: r, homePath: n = "/", className: a }) => {
1530
1530
  var x;
1531
- const { texts: { appSearch: o } } = Q(fe), [i, l] = L(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = z(() => e.find((D) => D.key === i) ?? null, [e, i]), [u, d] = L(""), [p, f] = pn(u, 500), { isLoading: v, searchItems: g } = Vp(c, p), [b, h] = L(!1);
1531
+ const { texts: { appSearch: o } } = Q(fe), [i, l] = L(e.length > 0 ? ((x = e.at(0)) == null ? void 0 : x.key) ?? null : null), c = z(() => e.find((D) => D.key === i) ?? null, [e, i]), [p, u] = L(""), [d, f] = pn(p, 500), { isLoading: v, searchItems: g } = Vp(c, d), [b, h] = L(!1);
1532
1532
  F(() => {
1533
1533
  (g.length > 0 || v) && h(!0);
1534
1534
  }, [g, v]);
1535
1535
  const m = U(null);
1536
1536
  return F(() => {
1537
1537
  var D;
1538
- d(""), r === n && ((D = m.current) == null || D.focus());
1538
+ u(""), r === n && ((D = m.current) == null || D.focus());
1539
1539
  }, [r, n]), /* @__PURE__ */ s.jsx(_e, { className: "w-100 d-flex align-items-center justify-content-center", onSubmit: (D) => {
1540
- D.preventDefault(), D.stopPropagation(), f.flush(), h(!1), u.length > 2 && t(`/search?query=${u}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
1540
+ D.preventDefault(), D.stopPropagation(), f.flush(), h(!1), p.length > 2 && t(`/search?query=${p}${c && c.key && `&type=${c == null ? void 0 : c.key}`}`);
1541
1541
  }, children: /* @__PURE__ */ s.jsxs(qr, { className: j(It.inputGroup, a), children: [
1542
1542
  /* @__PURE__ */ s.jsx(qr.Text, { className: j("p-1 rounded", It.inputGroupText, It.left), children: /* @__PURE__ */ s.jsx(Ap, { searchTypes: e, selectedType: c, setSelectedType: l }) }),
1543
- /* @__PURE__ */ s.jsx(_e.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: j("luminus-app-search-input", It.input), value: u, onChange: (D) => {
1543
+ /* @__PURE__ */ s.jsx(_e.Control, { ref: m, placeholder: o.searchPlaceholder, type: "text", size: "sm", className: j("luminus-app-search-input", It.input), value: p, onChange: (D) => {
1544
1544
  var w;
1545
- return d(((w = D.target) == null ? void 0 : w.value) ?? "");
1545
+ return u(encodeURIComponent(((w = D.target) == null ? void 0 : w.value) ?? ""));
1546
1546
  }, onFocus: () => g.length > 0 && h(!0) }),
1547
1547
  /* @__PURE__ */ s.jsx(qr.Text, { className: j("p-0 rounded", It.inputGroupText, It.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: j("text-primary", It.submitButton), children: /* @__PURE__ */ s.jsx(ud, {}) }) }),
1548
- /* @__PURE__ */ s.jsx($p, { query: p, searchTypes: e, show: b, onCancel: () => h(!1), groups: g, isLoading: v })
1548
+ /* @__PURE__ */ s.jsx($p, { query: d, searchTypes: e, show: b, onCancel: () => h(!1), groups: g, isLoading: v })
1549
1549
  ] }) });
1550
1550
  }, Gp = "_card_19733_1", Wp = "_header_19733_6", Up = "_header-content_19733_13", Hp = "_title_19733_19", zp = "_collapse-icon_19733_22", qp = "_collapsed_19733_27", Yp = "_content_19733_30", _t = {
1551
1551
  card: Gp,
@@ -1558,9 +1558,9 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
1558
1558
  collapsed: qp,
1559
1559
  content: Yp
1560
1560
  }, zs = ({ title: e, headerContent: t, children: r, className: n, headerClassName: a, contentClassName: o, dontRenderIfNoChildren: i, ...l }) => {
1561
- const c = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [u, d] = L(c), p = l.collapsible ? l.controlled ? l.isOpen : u : !0;
1561
+ const c = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [p, u] = L(c), d = l.collapsible ? l.controlled ? l.isOpen : p : !0;
1562
1562
  F(() => {
1563
- d(c);
1563
+ u(c);
1564
1564
  }, [c]);
1565
1565
  const f = z(() => !r || !r.toString() || r.toString().split(",").filter((v) => v && v !== "false").length === 0, [r]);
1566
1566
  return i && f ? null : /* @__PURE__ */ s.jsxs("div", { className: j("luminus-card rounded shadow-sm", _t.card, {
@@ -1569,17 +1569,17 @@ const dp = "_wrapper_1kmlk_1", up = "_open_1kmlk_9", pp = "_dropdown_1kmlk_13",
1569
1569
  /* @__PURE__ */ s.jsxs("div", { role: l.collapsible ? "button" : void 0, className: j("header", _t.header, {
1570
1570
  [a ?? ""]: a
1571
1571
  }), onClick: () => {
1572
- l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : d(!u));
1572
+ l.collapsible && (l.controlled ? l.onToggle(!l.isOpen) : u(!p));
1573
1573
  }, children: [
1574
1574
  /* @__PURE__ */ s.jsxs("div", { className: j("header-content", _t.headerContent), children: [
1575
1575
  /* @__PURE__ */ s.jsx(ae, { variant: "h6", className: j("text-primary", _t.title), children: e }),
1576
1576
  t ?? null
1577
1577
  ] }),
1578
1578
  l.collapsible && /* @__PURE__ */ s.jsx(as, { className: j(_t.collapseIcon, {
1579
- [_t.collapsed]: p
1579
+ [_t.collapsed]: d
1580
1580
  }) })
1581
1581
  ] }),
1582
- /* @__PURE__ */ s.jsx(bs, { in: p, children: /* @__PURE__ */ s.jsx("div", { className: j("card-content border-top border-primary", _t.content, {
1582
+ /* @__PURE__ */ s.jsx(bs, { in: d, children: /* @__PURE__ */ s.jsx("div", { className: j("card-content border-top border-primary", _t.content, {
1583
1583
  [o ?? ""]: o
1584
1584
  }), children: r }) })
1585
1585
  ] });
@@ -1707,25 +1707,25 @@ function qs(e, t, r) {
1707
1707
  if (typeof e != "function")
1708
1708
  throw new Error(process.env.NODE_ENV === "production" ? Ge(2) : "Expected the root reducer to be a function. Instead, received: '" + Tt(e) + "'");
1709
1709
  var a = e, o = t, i = [], l = i, c = !1;
1710
- function u() {
1710
+ function p() {
1711
1711
  l === i && (l = i.slice());
1712
1712
  }
1713
- function d() {
1713
+ function u() {
1714
1714
  if (c)
1715
1715
  throw new Error(process.env.NODE_ENV === "production" ? Ge(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
1716
1716
  return o;
1717
1717
  }
1718
- function p(b) {
1718
+ function d(b) {
1719
1719
  if (typeof b != "function")
1720
1720
  throw new Error(process.env.NODE_ENV === "production" ? Ge(4) : "Expected the listener to be a function. Instead, received: '" + Tt(b) + "'");
1721
1721
  if (c)
1722
1722
  throw new Error(process.env.NODE_ENV === "production" ? Ge(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
1723
1723
  var h = !0;
1724
- return u(), l.push(b), function() {
1724
+ return p(), l.push(b), function() {
1725
1725
  if (h) {
1726
1726
  if (c)
1727
1727
  throw new Error(process.env.NODE_ENV === "production" ? Ge(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
1728
- h = !1, u();
1728
+ h = !1, p();
1729
1729
  var x = l.indexOf(b);
1730
1730
  l.splice(x, 1), i = null;
1731
1731
  }
@@ -1757,7 +1757,7 @@ function qs(e, t, r) {
1757
1757
  });
1758
1758
  }
1759
1759
  function g() {
1760
- var b, h = p;
1760
+ var b, h = d;
1761
1761
  return b = {
1762
1762
  /**
1763
1763
  * The minimal observable subscription method.
@@ -1771,7 +1771,7 @@ function qs(e, t, r) {
1771
1771
  if (typeof x != "object" || x === null)
1772
1772
  throw new Error(process.env.NODE_ENV === "production" ? Ge(11) : "Expected the observer to be an object. Instead, received: '" + Tt(x) + "'");
1773
1773
  function D() {
1774
- x.next && x.next(d());
1774
+ x.next && x.next(u());
1775
1775
  }
1776
1776
  D();
1777
1777
  var w = h(D);
@@ -1787,8 +1787,8 @@ function qs(e, t, r) {
1787
1787
  type: To.INIT
1788
1788
  }), n = {
1789
1789
  dispatch: f,
1790
- subscribe: p,
1791
- getState: d,
1790
+ subscribe: d,
1791
+ getState: u,
1792
1792
  replaceReducer: v
1793
1793
  }, n[Ao] = g, n;
1794
1794
  }
@@ -1889,14 +1889,14 @@ var Bo = {
1889
1889
  };
1890
1890
  function Xs(e, t) {
1891
1891
  var r, n = Bo;
1892
- function a(p) {
1893
- return c(), n.subscribe(p);
1892
+ function a(d) {
1893
+ return c(), n.subscribe(d);
1894
1894
  }
1895
1895
  function o() {
1896
1896
  n.notify();
1897
1897
  }
1898
1898
  function i() {
1899
- d.onStateChange && d.onStateChange();
1899
+ u.onStateChange && u.onStateChange();
1900
1900
  }
1901
1901
  function l() {
1902
1902
  return !!r;
@@ -1904,21 +1904,21 @@ function Xs(e, t) {
1904
1904
  function c() {
1905
1905
  r || (r = t ? t.addNestedSub(i) : e.subscribe(i), n = lf());
1906
1906
  }
1907
- function u() {
1907
+ function p() {
1908
1908
  r && (r(), r = void 0, n.clear(), n = Bo);
1909
1909
  }
1910
- var d = {
1910
+ var u = {
1911
1911
  addNestedSub: a,
1912
1912
  notifyNestedSubs: o,
1913
1913
  handleChangeWrapper: i,
1914
1914
  isSubscribed: l,
1915
1915
  trySubscribe: c,
1916
- tryUnsubscribe: u,
1916
+ tryUnsubscribe: p,
1917
1917
  getListeners: function() {
1918
1918
  return n;
1919
1919
  }
1920
1920
  };
1921
- return d;
1921
+ return u;
1922
1922
  }
1923
1923
  var Js = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? wa : F;
1924
1924
  function Qs(e) {
@@ -2002,9 +2002,9 @@ function el(e, t, r) {
2002
2002
  for (var o = Lo(e), i = Lo(t), l = 0; l < a.length; ++l) {
2003
2003
  var c = a[l];
2004
2004
  if (!df[c] && !(r && r[c]) && !(i && i[c]) && !(o && o[c])) {
2005
- var u = vf(t, c);
2005
+ var p = vf(t, c);
2006
2006
  try {
2007
- pf(e, c, u);
2007
+ pf(e, c, p);
2008
2008
  } catch {
2009
2009
  }
2010
2010
  }
@@ -2027,10 +2027,10 @@ var Vo;
2027
2027
  function hf() {
2028
2028
  if (Vo) return ye;
2029
2029
  Vo = 1;
2030
- var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, u = 60120, d = 60115, p = 60116, f = 60121, v = 60122, g = 60117, b = 60129, h = 60131;
2030
+ var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, p = 60120, u = 60115, d = 60116, f = 60121, v = 60122, g = 60117, b = 60129, h = 60131;
2031
2031
  if (typeof Symbol == "function" && Symbol.for) {
2032
2032
  var m = Symbol.for;
2033
- e = m("react.element"), t = m("react.portal"), r = m("react.fragment"), n = m("react.strict_mode"), a = m("react.profiler"), o = m("react.provider"), i = m("react.context"), l = m("react.forward_ref"), c = m("react.suspense"), u = m("react.suspense_list"), d = m("react.memo"), p = m("react.lazy"), f = m("react.block"), v = m("react.server.block"), g = m("react.fundamental"), b = m("react.debug_trace_mode"), h = m("react.legacy_hidden");
2033
+ e = m("react.element"), t = m("react.portal"), r = m("react.fragment"), n = m("react.strict_mode"), a = m("react.profiler"), o = m("react.provider"), i = m("react.context"), l = m("react.forward_ref"), c = m("react.suspense"), p = m("react.suspense_list"), u = m("react.memo"), d = m("react.lazy"), f = m("react.block"), v = m("react.server.block"), g = m("react.fundamental"), b = m("react.debug_trace_mode"), h = m("react.legacy_hidden");
2034
2034
  }
2035
2035
  function x(E) {
2036
2036
  if (typeof E == "object" && E !== null) {
@@ -2042,14 +2042,14 @@ function hf() {
2042
2042
  case a:
2043
2043
  case n:
2044
2044
  case c:
2045
- case u:
2045
+ case p:
2046
2046
  return E;
2047
2047
  default:
2048
2048
  switch (E = E && E.$$typeof, E) {
2049
2049
  case i:
2050
2050
  case l:
2051
- case p:
2052
2051
  case d:
2052
+ case u:
2053
2053
  case o:
2054
2054
  return E;
2055
2055
  default:
@@ -2061,7 +2061,7 @@ function hf() {
2061
2061
  }
2062
2062
  }
2063
2063
  }
2064
- var D = o, w = e, y = l, C = r, O = p, S = d, _ = t, T = a, k = n, G = c;
2064
+ var D = o, w = e, y = l, C = r, O = d, S = u, _ = t, T = a, k = n, G = c;
2065
2065
  return ye.ContextConsumer = i, ye.ContextProvider = D, ye.Element = w, ye.ForwardRef = y, ye.Fragment = C, ye.Lazy = O, ye.Memo = S, ye.Portal = _, ye.Profiler = T, ye.StrictMode = k, ye.Suspense = G, ye.isAsyncMode = function() {
2066
2066
  return !1;
2067
2067
  }, ye.isConcurrentMode = function() {
@@ -2077,9 +2077,9 @@ function hf() {
2077
2077
  }, ye.isFragment = function(E) {
2078
2078
  return x(E) === r;
2079
2079
  }, ye.isLazy = function(E) {
2080
- return x(E) === p;
2081
- }, ye.isMemo = function(E) {
2082
2080
  return x(E) === d;
2081
+ }, ye.isMemo = function(E) {
2082
+ return x(E) === u;
2083
2083
  }, ye.isPortal = function(E) {
2084
2084
  return x(E) === t;
2085
2085
  }, ye.isProfiler = function(E) {
@@ -2089,7 +2089,7 @@ function hf() {
2089
2089
  }, ye.isSuspense = function(E) {
2090
2090
  return x(E) === c;
2091
2091
  }, ye.isValidElementType = function(E) {
2092
- return typeof E == "string" || typeof E == "function" || E === r || E === a || E === b || E === n || E === c || E === u || E === h || typeof E == "object" && E !== null && (E.$$typeof === p || E.$$typeof === d || E.$$typeof === o || E.$$typeof === i || E.$$typeof === l || E.$$typeof === g || E.$$typeof === f || E[0] === v);
2092
+ return typeof E == "string" || typeof E == "function" || E === r || E === a || E === b || E === n || E === c || E === p || E === h || typeof E == "object" && E !== null && (E.$$typeof === d || E.$$typeof === u || E.$$typeof === o || E.$$typeof === i || E.$$typeof === l || E.$$typeof === g || E.$$typeof === f || E[0] === v);
2093
2093
  }, ye.typeOf = x, ye;
2094
2094
  }
2095
2095
  var we = {};
@@ -2104,14 +2104,14 @@ var we = {};
2104
2104
  var Go;
2105
2105
  function bf() {
2106
2106
  return Go || (Go = 1, process.env.NODE_ENV !== "production" && function() {
2107
- var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, u = 60120, d = 60115, p = 60116, f = 60121, v = 60122, g = 60117, b = 60129, h = 60131;
2107
+ var e = 60103, t = 60106, r = 60107, n = 60108, a = 60114, o = 60109, i = 60110, l = 60112, c = 60113, p = 60120, u = 60115, d = 60116, f = 60121, v = 60122, g = 60117, b = 60129, h = 60131;
2108
2108
  if (typeof Symbol == "function" && Symbol.for) {
2109
2109
  var m = Symbol.for;
2110
- e = m("react.element"), t = m("react.portal"), r = m("react.fragment"), n = m("react.strict_mode"), a = m("react.profiler"), o = m("react.provider"), i = m("react.context"), l = m("react.forward_ref"), c = m("react.suspense"), u = m("react.suspense_list"), d = m("react.memo"), p = m("react.lazy"), f = m("react.block"), v = m("react.server.block"), g = m("react.fundamental"), m("react.scope"), m("react.opaque.id"), b = m("react.debug_trace_mode"), m("react.offscreen"), h = m("react.legacy_hidden");
2110
+ e = m("react.element"), t = m("react.portal"), r = m("react.fragment"), n = m("react.strict_mode"), a = m("react.profiler"), o = m("react.provider"), i = m("react.context"), l = m("react.forward_ref"), c = m("react.suspense"), p = m("react.suspense_list"), u = m("react.memo"), d = m("react.lazy"), f = m("react.block"), v = m("react.server.block"), g = m("react.fundamental"), m("react.scope"), m("react.opaque.id"), b = m("react.debug_trace_mode"), m("react.offscreen"), h = m("react.legacy_hidden");
2111
2111
  }
2112
2112
  var x = !1;
2113
2113
  function D(q) {
2114
- return !!(typeof q == "string" || typeof q == "function" || q === r || q === a || q === b || q === n || q === c || q === u || q === h || x || typeof q == "object" && q !== null && (q.$$typeof === p || q.$$typeof === d || q.$$typeof === o || q.$$typeof === i || q.$$typeof === l || q.$$typeof === g || q.$$typeof === f || q[0] === v));
2114
+ return !!(typeof q == "string" || typeof q == "function" || q === r || q === a || q === b || q === n || q === c || q === p || q === h || x || typeof q == "object" && q !== null && (q.$$typeof === d || q.$$typeof === u || q.$$typeof === o || q.$$typeof === i || q.$$typeof === l || q.$$typeof === g || q.$$typeof === f || q[0] === v));
2115
2115
  }
2116
2116
  function w(q) {
2117
2117
  if (typeof q == "object" && q !== null) {
@@ -2124,15 +2124,15 @@ function bf() {
2124
2124
  case a:
2125
2125
  case n:
2126
2126
  case c:
2127
- case u:
2127
+ case p:
2128
2128
  return Fe;
2129
2129
  default:
2130
2130
  var Ee = Fe && Fe.$$typeof;
2131
2131
  switch (Ee) {
2132
2132
  case i:
2133
2133
  case l:
2134
- case p:
2135
2134
  case d:
2135
+ case u:
2136
2136
  case o:
2137
2137
  return Ee;
2138
2138
  default:
@@ -2144,7 +2144,7 @@ function bf() {
2144
2144
  }
2145
2145
  }
2146
2146
  }
2147
- var y = i, C = o, O = e, S = l, _ = r, T = p, k = d, G = t, E = a, V = n, X = c, P = !1, I = !1;
2147
+ var y = i, C = o, O = e, S = l, _ = r, T = d, k = u, G = t, E = a, V = n, X = c, P = !1, I = !1;
2148
2148
  function B(q) {
2149
2149
  return P || (P = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
2150
2150
  }
@@ -2167,10 +2167,10 @@ function bf() {
2167
2167
  return w(q) === r;
2168
2168
  }
2169
2169
  function $(q) {
2170
- return w(q) === p;
2170
+ return w(q) === d;
2171
2171
  }
2172
2172
  function J(q) {
2173
- return w(q) === d;
2173
+ return w(q) === u;
2174
2174
  }
2175
2175
  function me(q) {
2176
2176
  return w(q) === t;
@@ -2207,17 +2207,17 @@ function Uo(e, t, r) {
2207
2207
  function Cf(e, t, r, n, a, o, i) {
2208
2208
  e.current = n, t.current = a, r.current = !1, o.current && (o.current = null, i());
2209
2209
  }
2210
- function Sf(e, t, r, n, a, o, i, l, c, u) {
2210
+ function Sf(e, t, r, n, a, o, i, l, c, p) {
2211
2211
  if (e) {
2212
- var d = !1, p = null, f = function() {
2213
- if (!d) {
2212
+ var u = !1, d = null, f = function() {
2213
+ if (!u) {
2214
2214
  var b = t.getState(), h, m;
2215
2215
  try {
2216
2216
  h = n(b, a.current);
2217
2217
  } catch (x) {
2218
- m = x, p = x;
2218
+ m = x, d = x;
2219
2219
  }
2220
- m || (p = null), h === o.current ? i.current || c() : (o.current = h, l.current = h, i.current = !0, u({
2220
+ m || (d = null), h === o.current ? i.current || c() : (o.current = h, l.current = h, i.current = !0, p({
2221
2221
  type: "STORE_UPDATED",
2222
2222
  payload: {
2223
2223
  error: m
@@ -2227,8 +2227,8 @@ function Sf(e, t, r, n, a, o, i, l, c, u) {
2227
2227
  };
2228
2228
  r.onStateChange = f, r.trySubscribe(), f();
2229
2229
  var v = function() {
2230
- if (d = !0, r.tryUnsubscribe(), r.onStateChange = null, p)
2231
- throw p;
2230
+ if (u = !0, r.tryUnsubscribe(), r.onStateChange = null, d)
2231
+ throw d;
2232
2232
  };
2233
2233
  return v;
2234
2234
  }
@@ -2240,7 +2240,7 @@ function jf(e, t) {
2240
2240
  t === void 0 && (t = {});
2241
2241
  var r = t, n = r.getDisplayName, a = n === void 0 ? function(C) {
2242
2242
  return "ConnectAdvanced(" + C + ")";
2243
- } : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l, u = r.shouldHandleStateChanges, d = u === void 0 ? !0 : u, p = r.storeKey, f = p === void 0 ? "store" : p, v = r.withRef, g = v === void 0 ? !1 : v, b = r.forwardRef, h = b === void 0 ? !1 : b, m = r.context, x = m === void 0 ? ja : m, D = Jr(r, xf);
2243
+ } : n, o = r.methodName, i = o === void 0 ? "connectAdvanced" : o, l = r.renderCountProp, c = l === void 0 ? void 0 : l, p = r.shouldHandleStateChanges, u = p === void 0 ? !0 : p, d = r.storeKey, f = d === void 0 ? "store" : d, v = r.withRef, g = v === void 0 ? !1 : v, b = r.forwardRef, h = b === void 0 ? !1 : b, m = r.context, x = m === void 0 ? ja : m, D = Jr(r, xf);
2244
2244
  if (process.env.NODE_ENV !== "production") {
2245
2245
  if (c !== void 0)
2246
2246
  throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");
@@ -2258,7 +2258,7 @@ function jf(e, t) {
2258
2258
  getDisplayName: a,
2259
2259
  methodName: i,
2260
2260
  renderCountProp: c,
2261
- shouldHandleStateChanges: d,
2261
+ shouldHandleStateChanges: u,
2262
2262
  storeKey: f,
2263
2263
  displayName: _,
2264
2264
  wrappedComponentName: S,
@@ -2282,7 +2282,7 @@ function jf(e, t) {
2282
2282
  var J = re ? I.store : ee.store, me = z(function() {
2283
2283
  return G(J);
2284
2284
  }, [J]), W = z(function() {
2285
- if (!d) return Df;
2285
+ if (!u) return Df;
2286
2286
  var ue = Xs(J, re ? null : ee.subscription), $e = ue.notifyNestedSubs.bind(ue);
2287
2287
  return [ue, $e];
2288
2288
  }, [J, re, ee]), ie = W[0], Se = W[1], q = z(function() {
@@ -2295,13 +2295,13 @@ function jf(e, t) {
2295
2295
  var Re = U(), A = U(H), M = U(), K = U(!1), pe = E(function() {
2296
2296
  return M.current && H === A.current ? M.current : me(J.getState(), H);
2297
2297
  }, [J, Ee, H]);
2298
- Uo(Cf, [A, Re, K, H, pe, M, Se]), Uo(Sf, [d, J, ie, me, A, Re, K, M, Se, de], [J, ie, me]);
2298
+ Uo(Cf, [A, Re, K, H, pe, M, Se]), Uo(Sf, [u, J, ie, me, A, Re, K, M, Se, de], [J, ie, me]);
2299
2299
  var Ce = z(function() {
2300
2300
  return /* @__PURE__ */ le.createElement(O, ne({}, pe, {
2301
2301
  ref: te
2302
2302
  }));
2303
2303
  }, [te, O, pe]), ge = z(function() {
2304
- return d ? /* @__PURE__ */ le.createElement(oe.Provider, {
2304
+ return u ? /* @__PURE__ */ le.createElement(oe.Provider, {
2305
2305
  value: q
2306
2306
  }, Ce) : Ce;
2307
2307
  }, [oe, Ce, q]);
@@ -2376,13 +2376,13 @@ function zo(e) {
2376
2376
  }
2377
2377
  function nl(e, t) {
2378
2378
  return function(n, a) {
2379
- var o = a.displayName, i = function(c, u) {
2380
- return i.dependsOnOwnProps ? i.mapToProps(c, u) : i.mapToProps(c);
2379
+ var o = a.displayName, i = function(c, p) {
2380
+ return i.dependsOnOwnProps ? i.mapToProps(c, p) : i.mapToProps(c);
2381
2381
  };
2382
- return i.dependsOnOwnProps = !0, i.mapToProps = function(c, u) {
2382
+ return i.dependsOnOwnProps = !0, i.mapToProps = function(c, p) {
2383
2383
  i.mapToProps = e, i.dependsOnOwnProps = zo(e);
2384
- var d = i(c, u);
2385
- return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps = zo(d), d = i(c, u)), process.env.NODE_ENV !== "production" && rl(d, o, t), d;
2384
+ var u = i(c, p);
2385
+ return typeof u == "function" && (i.mapToProps = u, i.dependsOnOwnProps = zo(u), u = i(c, p)), process.env.NODE_ENV !== "production" && rl(u, o, t), u;
2386
2386
  }, i;
2387
2387
  };
2388
2388
  }
@@ -2417,8 +2417,8 @@ function Mf(e, t, r) {
2417
2417
  function Ff(e) {
2418
2418
  return function(r, n) {
2419
2419
  var a = n.displayName, o = n.pure, i = n.areMergedPropsEqual, l = !1, c;
2420
- return function(d, p, f) {
2421
- var v = e(d, p, f);
2420
+ return function(u, d, f) {
2421
+ var v = e(u, d, f);
2422
2422
  return l ? (!o || !i(v, c)) && (c = v) : (l = !0, c = v, process.env.NODE_ENV !== "production" && rl(c, a, "mergeProps")), c;
2423
2423
  };
2424
2424
  };
@@ -2447,23 +2447,23 @@ function Hf(e, t, r, n) {
2447
2447
  };
2448
2448
  }
2449
2449
  function zf(e, t, r, n, a) {
2450
- var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1, u, d, p, f, v;
2450
+ var o = a.areStatesEqual, i = a.areOwnPropsEqual, l = a.areStatePropsEqual, c = !1, p, u, d, f, v;
2451
2451
  function g(D, w) {
2452
- return u = D, d = w, p = e(u, d), f = t(n, d), v = r(p, f, d), c = !0, v;
2452
+ return p = D, u = w, d = e(p, u), f = t(n, u), v = r(d, f, u), c = !0, v;
2453
2453
  }
2454
2454
  function b() {
2455
- return p = e(u, d), t.dependsOnOwnProps && (f = t(n, d)), v = r(p, f, d), v;
2455
+ return d = e(p, u), t.dependsOnOwnProps && (f = t(n, u)), v = r(d, f, u), v;
2456
2456
  }
2457
2457
  function h() {
2458
- return e.dependsOnOwnProps && (p = e(u, d)), t.dependsOnOwnProps && (f = t(n, d)), v = r(p, f, d), v;
2458
+ return e.dependsOnOwnProps && (d = e(p, u)), t.dependsOnOwnProps && (f = t(n, u)), v = r(d, f, u), v;
2459
2459
  }
2460
2460
  function m() {
2461
- var D = e(u, d), w = !l(D, p);
2462
- return p = D, w && (v = r(p, f, d)), v;
2461
+ var D = e(p, u), w = !l(D, d);
2462
+ return d = D, w && (v = r(d, f, u)), v;
2463
2463
  }
2464
2464
  function x(D, w) {
2465
- var y = !i(w, d), C = !o(D, u, w, d);
2466
- return u = D, d = w, y && C ? b() : y ? h() : C ? m() : v;
2465
+ var y = !i(w, u), C = !o(D, p, w, u);
2466
+ return p = D, u = w, y && C ? b() : y ? h() : C ? m() : v;
2467
2467
  }
2468
2468
  return function(w, y) {
2469
2469
  return c ? x(w, y) : g(w, y);
@@ -2472,8 +2472,8 @@ function zf(e, t, r, n, a) {
2472
2472
  function qf(e, t) {
2473
2473
  var r = t.initMapStateToProps, n = t.initMapDispatchToProps, a = t.initMergeProps, o = Jr(t, Uf), i = r(e, o), l = n(e, o), c = a(e, o);
2474
2474
  process.env.NODE_ENV !== "production" && Wf(i, l, c, o.displayName);
2475
- var u = o.pure ? zf : Hf;
2476
- return u(i, l, c, e, o);
2475
+ var p = o.pure ? zf : Hf;
2476
+ return p(i, l, c, e, o);
2477
2477
  }
2478
2478
  var Yf = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
2479
2479
  function An(e, t, r) {
@@ -2489,11 +2489,11 @@ function Kf(e, t) {
2489
2489
  return e === t;
2490
2490
  }
2491
2491
  function Xf(e) {
2492
- var t = {}, r = t.connectHOC, n = r === void 0 ? jf : r, a = t.mapStateToPropsFactories, o = a === void 0 ? Lf : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? Rf : i, c = t.mergePropsFactories, u = c === void 0 ? Gf : c, d = t.selectorFactory, p = d === void 0 ? qf : d;
2492
+ var t = {}, r = t.connectHOC, n = r === void 0 ? jf : r, a = t.mapStateToPropsFactories, o = a === void 0 ? Lf : a, i = t.mapDispatchToPropsFactories, l = i === void 0 ? Rf : i, c = t.mergePropsFactories, p = c === void 0 ? Gf : c, u = t.selectorFactory, d = u === void 0 ? qf : u;
2493
2493
  return function(v, g, b, h) {
2494
2494
  h === void 0 && (h = {});
2495
- var m = h, x = m.pure, D = x === void 0 ? !0 : x, w = m.areStatesEqual, y = w === void 0 ? Kf : w, C = m.areOwnPropsEqual, O = C === void 0 ? On : C, S = m.areStatePropsEqual, _ = S === void 0 ? On : S, T = m.areMergedPropsEqual, k = T === void 0 ? On : T, G = Jr(m, Yf), E = An(v, o, "mapStateToProps"), V = An(g, l, "mapDispatchToProps"), X = An(b, u, "mergeProps");
2496
- return n(p, ne({
2495
+ var m = h, x = m.pure, D = x === void 0 ? !0 : x, w = m.areStatesEqual, y = w === void 0 ? Kf : w, C = m.areOwnPropsEqual, O = C === void 0 ? On : C, S = m.areStatePropsEqual, _ = S === void 0 ? On : S, T = m.areMergedPropsEqual, k = T === void 0 ? On : T, G = Jr(m, Yf), E = An(v, o, "mapStateToProps"), V = An(g, l, "mapDispatchToProps"), X = An(b, p, "mergeProps");
2496
+ return n(d, ne({
2497
2497
  // used in error messages
2498
2498
  methodName: "connect",
2499
2499
  // used to compute Connect's displayName from the wrapped component's displayName.
@@ -2593,12 +2593,12 @@ var rt = function(t) {
2593
2593
  bottom: 0,
2594
2594
  left: 0
2595
2595
  }, Ta = function(t) {
2596
- var r = t.borderBox, n = t.margin, a = n === void 0 ? Rn : n, o = t.border, i = o === void 0 ? Rn : o, l = t.padding, c = l === void 0 ? Rn : l, u = rt(Aa(r, a)), d = rt(Yo(r, i)), p = rt(Yo(d, c));
2596
+ var r = t.borderBox, n = t.margin, a = n === void 0 ? Rn : n, o = t.border, i = o === void 0 ? Rn : o, l = t.padding, c = l === void 0 ? Rn : l, p = rt(Aa(r, a)), u = rt(Yo(r, i)), d = rt(Yo(u, c));
2597
2597
  return {
2598
- marginBox: u,
2598
+ marginBox: p,
2599
2599
  borderBox: rt(r),
2600
- paddingBox: d,
2601
- contentBox: p,
2600
+ paddingBox: u,
2601
+ contentBox: d,
2602
2602
  margin: a,
2603
2603
  border: i,
2604
2604
  padding: c
@@ -2742,8 +2742,8 @@ var pv = function(e) {
2742
2742
  An error was caught by our window 'error' event listener while a drag was occurring.
2743
2743
  The active drag has been aborted.
2744
2744
  `));
2745
- var u = l.error;
2746
- u instanceof yr && (l.preventDefault(), process.env.NODE_ENV !== "production" && aa(u.message));
2745
+ var p = l.error;
2746
+ p instanceof yr && (l.preventDefault(), process.env.NODE_ENV !== "production" && aa(p.message));
2747
2747
  }, n.getCallbacks = function() {
2748
2748
  if (!n.callbacks)
2749
2749
  throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");
@@ -3018,24 +3018,24 @@ var mn = Be(function(e, t) {
3018
3018
  at: h
3019
3019
  });
3020
3020
  }
3021
- var c = o.displaced.all, u = c.length ? c[0] : null;
3021
+ var c = o.displaced.all, p = c.length ? c[0] : null;
3022
3022
  if (t)
3023
- return u ? l(u) : null;
3024
- var d = mn(r, a);
3025
- if (!u) {
3026
- if (!d.length)
3023
+ return p ? l(p) : null;
3024
+ var u = mn(r, a);
3025
+ if (!p) {
3026
+ if (!u.length)
3027
3027
  return null;
3028
- var p = d[d.length - 1];
3029
- return l(p.descriptor.id);
3028
+ var d = u[u.length - 1];
3029
+ return l(d.descriptor.id);
3030
3030
  }
3031
- var f = ka(d, function(b) {
3032
- return b.descriptor.id === u;
3031
+ var f = ka(u, function(b) {
3032
+ return b.descriptor.id === p;
3033
3033
  });
3034
3034
  f === -1 && (process.env.NODE_ENV !== "production" ? N(!1, "Could not find displaced item in set") : N());
3035
3035
  var v = f - 1;
3036
3036
  if (v < 0)
3037
3037
  return null;
3038
- var g = d[v];
3038
+ var g = u[v];
3039
3039
  return l(g.descriptor.id);
3040
3040
  }, Zt = function(e, t) {
3041
3041
  return e.descriptor.droppableId === t.descriptor.id;
@@ -3063,11 +3063,11 @@ var mn = Be(function(e, t) {
3063
3063
  var o = t(n.top) || t(n.bottom), i = r(n.left) || r(n.right), l = o && i;
3064
3064
  if (l)
3065
3065
  return !0;
3066
- var c = n.top < e.top && n.bottom > e.bottom, u = n.left < e.left && n.right > e.right, d = c && u;
3067
- if (d)
3066
+ var c = n.top < e.top && n.bottom > e.bottom, p = n.left < e.left && n.right > e.right, u = c && p;
3067
+ if (u)
3068
3068
  return !0;
3069
- var p = c && i || u && o;
3070
- return p;
3069
+ var d = c && i || p && o;
3070
+ return d;
3071
3071
  };
3072
3072
  }, Sv = function(e) {
3073
3073
  var t = Qe(e.top, e.bottom), r = Qe(e.left, e.right);
@@ -3146,22 +3146,22 @@ function Rv(e, t) {
3146
3146
  }
3147
3147
  function Nr(e) {
3148
3148
  var t = e.afterDragging, r = e.destination, n = e.displacedBy, a = e.viewport, o = e.forceShouldAnimate, i = e.last;
3149
- return t.reduce(function(c, u) {
3150
- var d = Rv(u, n), p = u.descriptor.id;
3151
- c.all.push(p);
3149
+ return t.reduce(function(c, p) {
3150
+ var u = Rv(p, n), d = p.descriptor.id;
3151
+ c.all.push(d);
3152
3152
  var f = Pv({
3153
- target: d,
3153
+ target: u,
3154
3154
  destination: r,
3155
3155
  viewport: a,
3156
3156
  withDroppableDisplacement: !0
3157
3157
  });
3158
3158
  if (!f)
3159
- return c.invisible[u.descriptor.id] = !0, c;
3160
- var v = Tv(p, i, o), g = {
3161
- draggableId: p,
3159
+ return c.invisible[p.descriptor.id] = !0, c;
3160
+ var v = Tv(d, i, o), g = {
3161
+ draggableId: d,
3162
3162
  shouldAnimate: v
3163
3163
  };
3164
- return c.visible[p] = g, c;
3164
+ return c.visible[d] = g, c;
3165
3165
  }, {
3166
3166
  all: [],
3167
3167
  visible: {},
@@ -3191,25 +3191,25 @@ function ti(e) {
3191
3191
  };
3192
3192
  }
3193
3193
  function an(e) {
3194
- var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate, u = Zt(t, n);
3194
+ var t = e.draggable, r = e.insideDestination, n = e.destination, a = e.viewport, o = e.displacedBy, i = e.last, l = e.index, c = e.forceShouldAnimate, p = Zt(t, n);
3195
3195
  if (l == null)
3196
3196
  return ti({
3197
3197
  insideDestination: r,
3198
- inHomeList: u,
3198
+ inHomeList: p,
3199
3199
  displacedBy: o,
3200
3200
  destination: n
3201
3201
  });
3202
- var d = St(r, function(b) {
3202
+ var u = St(r, function(b) {
3203
3203
  return b.descriptor.index === l;
3204
3204
  });
3205
- if (!d)
3205
+ if (!u)
3206
3206
  return ti({
3207
3207
  insideDestination: r,
3208
- inHomeList: u,
3208
+ inHomeList: p,
3209
3209
  displacedBy: o,
3210
3210
  destination: n
3211
3211
  });
3212
- var p = mn(t, r), f = r.indexOf(d), v = p.slice(f), g = Nr({
3212
+ var d = mn(t, r), f = r.indexOf(u), v = d.slice(f), g = Nr({
3213
3213
  afterDragging: v,
3214
3214
  destination: n,
3215
3215
  displacedBy: o,
@@ -3236,31 +3236,31 @@ var Bv = function(e) {
3236
3236
  var t = e.isMovingForward, r = e.destination, n = e.draggables, a = e.combine, o = e.afterCritical;
3237
3237
  if (!r.isCombineEnabled)
3238
3238
  return null;
3239
- var i = a.draggableId, l = n[i], c = l.descriptor.index, u = Dt(i, o);
3240
- return u ? t ? c : c - 1 : t ? c + 1 : c;
3239
+ var i = a.draggableId, l = n[i], c = l.descriptor.index, p = Dt(i, o);
3240
+ return p ? t ? c : c - 1 : t ? c + 1 : c;
3241
3241
  }, Lv = function(e) {
3242
3242
  var t = e.isMovingForward, r = e.isInHomeList, n = e.insideDestination, a = e.location;
3243
3243
  if (!n.length)
3244
3244
  return null;
3245
- var o = a.index, i = t ? o + 1 : o - 1, l = n[0].descriptor.index, c = n[n.length - 1].descriptor.index, u = r ? c : c + 1;
3246
- return i < l || i > u ? null : i;
3245
+ var o = a.index, i = t ? o + 1 : o - 1, l = n[0].descriptor.index, c = n[n.length - 1].descriptor.index, p = r ? c : c + 1;
3246
+ return i < l || i > p ? null : i;
3247
3247
  }, Mv = function(e) {
3248
- var t = e.isMovingForward, r = e.isInHomeList, n = e.draggable, a = e.draggables, o = e.destination, i = e.insideDestination, l = e.previousImpact, c = e.viewport, u = e.afterCritical, d = l.at;
3249
- if (d || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot move in direction without previous impact location") : N()), d.type === "REORDER") {
3250
- var p = Lv({
3248
+ var t = e.isMovingForward, r = e.isInHomeList, n = e.draggable, a = e.draggables, o = e.destination, i = e.insideDestination, l = e.previousImpact, c = e.viewport, p = e.afterCritical, u = l.at;
3249
+ if (u || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot move in direction without previous impact location") : N()), u.type === "REORDER") {
3250
+ var d = Lv({
3251
3251
  isMovingForward: t,
3252
3252
  isInHomeList: r,
3253
- location: d.destination,
3253
+ location: u.destination,
3254
3254
  insideDestination: i
3255
3255
  });
3256
- return p == null ? null : an({
3256
+ return d == null ? null : an({
3257
3257
  draggable: n,
3258
3258
  insideDestination: i,
3259
3259
  destination: o,
3260
3260
  viewport: c,
3261
3261
  last: l.displaced,
3262
3262
  displacedBy: l.displacedBy,
3263
- index: p
3263
+ index: d
3264
3264
  });
3265
3265
  }
3266
3266
  var f = Bv({
@@ -3268,8 +3268,8 @@ var Bv = function(e) {
3268
3268
  destination: o,
3269
3269
  displaced: l.displaced,
3270
3270
  draggables: a,
3271
- combine: d.combine,
3272
- afterCritical: u
3271
+ combine: u.combine,
3272
+ afterCritical: p
3273
3273
  });
3274
3274
  return f == null ? null : an({
3275
3275
  draggable: n,
@@ -3316,16 +3316,16 @@ var Bv = function(e) {
3316
3316
  moveInto: a.page,
3317
3317
  isMoving: l
3318
3318
  });
3319
- var u = t.displaced, d = t.displacedBy, p = u.all[0];
3320
- if (p) {
3321
- var f = n[p];
3322
- if (Dt(p, o))
3319
+ var p = t.displaced, u = t.displacedBy, d = p.all[0];
3320
+ if (d) {
3321
+ var f = n[d];
3322
+ if (Dt(d, o))
3323
3323
  return ni({
3324
3324
  axis: c,
3325
3325
  moveRelativeTo: f.page,
3326
3326
  isMoving: l
3327
3327
  });
3328
- var v = en(f.page, d.point);
3328
+ var v = en(f.page, u.point);
3329
3329
  return ni({
3330
3330
  axis: c,
3331
3331
  moveRelativeTo: v,
@@ -3401,33 +3401,33 @@ function Hv(e, t) {
3401
3401
  return null;
3402
3402
  }
3403
3403
  var zv = function(e) {
3404
- var t = e.impact, r = e.viewport, n = e.destination, a = e.draggables, o = e.maxScrollChange, i = yl(r, Me(r.scroll.current, o)), l = n.frame ? Ra(n, Me(n.frame.scroll.current, o)) : n, c = t.displaced, u = Nr({
3404
+ var t = e.impact, r = e.viewport, n = e.destination, a = e.draggables, o = e.maxScrollChange, i = yl(r, Me(r.scroll.current, o)), l = n.frame ? Ra(n, Me(n.frame.scroll.current, o)) : n, c = t.displaced, p = Nr({
3405
3405
  afterDragging: ai(c.all, a),
3406
3406
  destination: n,
3407
3407
  displacedBy: t.displacedBy,
3408
3408
  viewport: i.frame,
3409
3409
  last: c,
3410
3410
  forceShouldAnimate: !1
3411
- }), d = Nr({
3411
+ }), u = Nr({
3412
3412
  afterDragging: ai(c.all, a),
3413
3413
  destination: l,
3414
3414
  displacedBy: t.displacedBy,
3415
3415
  viewport: r.frame,
3416
3416
  last: c,
3417
3417
  forceShouldAnimate: !1
3418
- }), p = {}, f = {}, v = [c, u, d];
3418
+ }), d = {}, f = {}, v = [c, p, u];
3419
3419
  c.all.forEach(function(b) {
3420
3420
  var h = Hv(b, v);
3421
3421
  if (h) {
3422
3422
  f[b] = h;
3423
3423
  return;
3424
3424
  }
3425
- p[b] = !0;
3425
+ d[b] = !0;
3426
3426
  });
3427
3427
  var g = ne({}, t, {
3428
3428
  displaced: {
3429
3429
  all: c.all,
3430
- invisible: p,
3430
+ invisible: d,
3431
3431
  visible: f
3432
3432
  }
3433
3433
  });
@@ -3438,33 +3438,33 @@ var zv = function(e) {
3438
3438
  var t = e.pageBorderBoxCenter, r = e.draggable, n = e.viewport, a = qv(n, t), o = ze(a, r.page.borderBox.center);
3439
3439
  return Me(r.client.borderBox.center, o);
3440
3440
  }, wl = function(e) {
3441
- var t = e.draggable, r = e.destination, n = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, i = e.onlyOnMainAxis, l = i === void 0 ? !1 : i, c = ze(n, t.page.borderBox.center), u = Pr(t.page.borderBox, c), d = {
3442
- target: u,
3441
+ var t = e.draggable, r = e.destination, n = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, i = e.onlyOnMainAxis, l = i === void 0 ? !1 : i, c = ze(n, t.page.borderBox.center), p = Pr(t.page.borderBox, c), u = {
3442
+ target: p,
3443
3443
  destination: r,
3444
3444
  withDroppableDisplacement: o,
3445
3445
  viewport: a
3446
3446
  };
3447
- return l ? Av(d) : bl(d);
3447
+ return l ? Av(u) : bl(u);
3448
3448
  }, Yv = function(e) {
3449
- var t = e.isMovingForward, r = e.draggable, n = e.destination, a = e.draggables, o = e.previousImpact, i = e.viewport, l = e.previousPageBorderBoxCenter, c = e.previousClientSelection, u = e.afterCritical;
3449
+ var t = e.isMovingForward, r = e.draggable, n = e.destination, a = e.draggables, o = e.previousImpact, i = e.viewport, l = e.previousPageBorderBoxCenter, c = e.previousClientSelection, p = e.afterCritical;
3450
3450
  if (!n.isEnabled)
3451
3451
  return null;
3452
- var d = Ft(n.descriptor.id, a), p = Zt(r, n), f = Ev({
3452
+ var u = Ft(n.descriptor.id, a), d = Zt(r, n), f = Ev({
3453
3453
  isMovingForward: t,
3454
3454
  draggable: r,
3455
3455
  destination: n,
3456
- insideDestination: d,
3456
+ insideDestination: u,
3457
3457
  previousImpact: o
3458
3458
  }) || Mv({
3459
3459
  isMovingForward: t,
3460
- isInHomeList: p,
3460
+ isInHomeList: d,
3461
3461
  draggable: r,
3462
3462
  draggables: a,
3463
3463
  destination: n,
3464
- insideDestination: d,
3464
+ insideDestination: u,
3465
3465
  previousImpact: o,
3466
3466
  viewport: i,
3467
- afterCritical: u
3467
+ afterCritical: p
3468
3468
  });
3469
3469
  if (!f)
3470
3470
  return null;
@@ -3473,7 +3473,7 @@ var zv = function(e) {
3473
3473
  draggable: r,
3474
3474
  droppable: n,
3475
3475
  draggables: a,
3476
- afterCritical: u
3476
+ afterCritical: p
3477
3477
  }), g = wl({
3478
3478
  draggable: r,
3479
3479
  destination: n,
@@ -3513,39 +3513,39 @@ var zv = function(e) {
3513
3513
  var t = e.isMovingForward, r = e.pageBorderBoxCenter, n = e.source, a = e.droppables, o = e.viewport, i = n.subject.active;
3514
3514
  if (!i)
3515
3515
  return null;
3516
- var l = n.axis, c = Qe(i[l.start], i[l.end]), u = vn(a).filter(function(p) {
3517
- return p !== n;
3518
- }).filter(function(p) {
3519
- return p.isEnabled;
3520
- }).filter(function(p) {
3521
- return !!p.subject.active;
3522
- }).filter(function(p) {
3523
- return ml(o.frame)(Ve(p));
3524
- }).filter(function(p) {
3525
- var f = Ve(p);
3516
+ var l = n.axis, c = Qe(i[l.start], i[l.end]), p = vn(a).filter(function(d) {
3517
+ return d !== n;
3518
+ }).filter(function(d) {
3519
+ return d.isEnabled;
3520
+ }).filter(function(d) {
3521
+ return !!d.subject.active;
3522
+ }).filter(function(d) {
3523
+ return ml(o.frame)(Ve(d));
3524
+ }).filter(function(d) {
3525
+ var f = Ve(d);
3526
3526
  return t ? i[l.crossAxisEnd] < f[l.crossAxisEnd] : f[l.crossAxisStart] < i[l.crossAxisStart];
3527
- }).filter(function(p) {
3528
- var f = Ve(p), v = Qe(f[l.start], f[l.end]);
3527
+ }).filter(function(d) {
3528
+ var f = Ve(d), v = Qe(f[l.start], f[l.end]);
3529
3529
  return c(f[l.start]) || c(f[l.end]) || v(i[l.start]) || v(i[l.end]);
3530
- }).sort(function(p, f) {
3531
- var v = Ve(p)[l.crossAxisStart], g = Ve(f)[l.crossAxisStart];
3530
+ }).sort(function(d, f) {
3531
+ var v = Ve(d)[l.crossAxisStart], g = Ve(f)[l.crossAxisStart];
3532
3532
  return t ? v - g : g - v;
3533
- }).filter(function(p, f, v) {
3534
- return Ve(p)[l.crossAxisStart] === Ve(v[0])[l.crossAxisStart];
3533
+ }).filter(function(d, f, v) {
3534
+ return Ve(d)[l.crossAxisStart] === Ve(v[0])[l.crossAxisStart];
3535
3535
  });
3536
- if (!u.length)
3536
+ if (!p.length)
3537
3537
  return null;
3538
- if (u.length === 1)
3539
- return u[0];
3540
- var d = u.filter(function(p) {
3541
- var f = Qe(Ve(p)[l.start], Ve(p)[l.end]);
3538
+ if (p.length === 1)
3539
+ return p[0];
3540
+ var u = p.filter(function(d) {
3541
+ var f = Qe(Ve(d)[l.start], Ve(d)[l.end]);
3542
3542
  return f(r[l.line]);
3543
3543
  });
3544
- return d.length === 1 ? d[0] : d.length > 1 ? d.sort(function(p, f) {
3545
- return Ve(p)[l.start] - Ve(f)[l.start];
3546
- })[0] : u.sort(function(p, f) {
3547
- var v = Zo(r, ei(Ve(p))), g = Zo(r, ei(Ve(f)));
3548
- return v !== g ? v - g : Ve(p)[l.start] - Ve(f)[l.start];
3544
+ return u.length === 1 ? u[0] : u.length > 1 ? u.sort(function(d, f) {
3545
+ return Ve(d)[l.start] - Ve(f)[l.start];
3546
+ })[0] : p.sort(function(d, f) {
3547
+ var v = Zo(r, ei(Ve(d))), g = Zo(r, ei(Ve(f)));
3548
+ return v !== g ? v - g : Ve(d)[l.start] - Ve(f)[l.start];
3549
3549
  })[0];
3550
3550
  }, oi = function(t, r) {
3551
3551
  var n = t.page.borderBox.center;
@@ -3562,8 +3562,8 @@ var zv = function(e) {
3562
3562
  withDroppableDisplacement: !0
3563
3563
  });
3564
3564
  }).sort(function(l, c) {
3565
- var u = wr(t, oa(n, oi(l, o))), d = wr(t, oa(n, oi(c, o)));
3566
- return u < d ? -1 : d < u ? 1 : l.descriptor.index - c.descriptor.index;
3565
+ var p = wr(t, oa(n, oi(l, o))), u = wr(t, oa(n, oi(c, o)));
3566
+ return p < u ? -1 : u < p ? 1 : l.descriptor.index - c.descriptor.index;
3567
3567
  });
3568
3568
  return i[0] || null;
3569
3569
  }, Ar = Be(function(t, r) {
@@ -3576,10 +3576,10 @@ var zv = function(e) {
3576
3576
  var a = t.axis;
3577
3577
  if (t.descriptor.mode === "virtual")
3578
3578
  return Bt(a.line, r[a.line]);
3579
- var o = t.subject.page.contentBox[a.size], i = Ft(t.descriptor.id, n), l = i.reduce(function(d, p) {
3580
- return d + p.client.marginBox[a.size];
3581
- }, 0), c = l + r[a.line], u = c - o;
3582
- return u <= 0 ? null : Bt(a.line, u);
3579
+ var o = t.subject.page.contentBox[a.size], i = Ft(t.descriptor.id, n), l = i.reduce(function(u, d) {
3580
+ return u + d.client.marginBox[a.size];
3581
+ }, 0), c = l + r[a.line], p = c - o;
3582
+ return p <= 0 ? null : Bt(a.line, p);
3583
3583
  }, Dl = function(t, r) {
3584
3584
  return ne({}, t, {
3585
3585
  scroll: ne({}, t.scroll, {
@@ -3605,15 +3605,15 @@ var zv = function(e) {
3605
3605
  subject: c
3606
3606
  });
3607
3607
  }
3608
- var u = i ? Me(a.scroll.max, i) : a.scroll.max, d = Dl(a, u), p = zt({
3608
+ var p = i ? Me(a.scroll.max, i) : a.scroll.max, u = Dl(a, p), d = zt({
3609
3609
  page: t.subject.page,
3610
3610
  withPlaceholder: l,
3611
3611
  axis: t.axis,
3612
- frame: d
3612
+ frame: u
3613
3613
  });
3614
3614
  return ne({}, t, {
3615
- subject: p,
3616
- frame: d
3615
+ subject: d,
3616
+ frame: u
3617
3617
  });
3618
3618
  }, Zv = function(t) {
3619
3619
  var r = t.subject.withPlaceholder;
@@ -3647,7 +3647,7 @@ var zv = function(e) {
3647
3647
  if (!r) {
3648
3648
  if (n.length)
3649
3649
  return null;
3650
- var u = {
3650
+ var p = {
3651
3651
  displaced: Dr,
3652
3652
  displacedBy: gl,
3653
3653
  at: {
@@ -3657,21 +3657,21 @@ var zv = function(e) {
3657
3657
  index: 0
3658
3658
  }
3659
3659
  }
3660
- }, d = hn({
3661
- impact: u,
3660
+ }, u = hn({
3661
+ impact: p,
3662
3662
  draggable: a,
3663
3663
  droppable: i,
3664
3664
  draggables: o,
3665
3665
  afterCritical: c
3666
- }), p = Zt(a, i) ? i : Nl(i, a, o), f = wl({
3666
+ }), d = Zt(a, i) ? i : Nl(i, a, o), f = wl({
3667
3667
  draggable: a,
3668
- destination: p,
3669
- newPageBorderBoxCenter: d,
3668
+ destination: d,
3669
+ newPageBorderBoxCenter: u,
3670
3670
  viewport: l.frame,
3671
3671
  withDroppableDisplacement: !1,
3672
3672
  onlyOnMainAxis: !0
3673
3673
  });
3674
- return f ? u : null;
3674
+ return f ? p : null;
3675
3675
  }
3676
3676
  var v = t[i.axis.line] <= r.page.borderBox.center[i.axis.line], g = function() {
3677
3677
  var h = r.descriptor.index;
@@ -3687,28 +3687,28 @@ var zv = function(e) {
3687
3687
  index: g
3688
3688
  });
3689
3689
  }, tg = function(e) {
3690
- var t = e.isMovingForward, r = e.previousPageBorderBoxCenter, n = e.draggable, a = e.isOver, o = e.draggables, i = e.droppables, l = e.viewport, c = e.afterCritical, u = Kv({
3690
+ var t = e.isMovingForward, r = e.previousPageBorderBoxCenter, n = e.draggable, a = e.isOver, o = e.draggables, i = e.droppables, l = e.viewport, c = e.afterCritical, p = Kv({
3691
3691
  isMovingForward: t,
3692
3692
  pageBorderBoxCenter: r,
3693
3693
  source: a,
3694
3694
  droppables: i,
3695
3695
  viewport: l
3696
3696
  });
3697
- if (!u)
3697
+ if (!p)
3698
3698
  return null;
3699
- var d = Ft(u.descriptor.id, o), p = Jv({
3699
+ var u = Ft(p.descriptor.id, o), d = Jv({
3700
3700
  pageBorderBoxCenter: r,
3701
3701
  viewport: l,
3702
- destination: u,
3703
- insideDestination: d,
3702
+ destination: p,
3703
+ insideDestination: u,
3704
3704
  afterCritical: c
3705
3705
  }), f = eg({
3706
3706
  previousPageBorderBoxCenter: r,
3707
- destination: u,
3707
+ destination: p,
3708
3708
  draggable: n,
3709
3709
  draggables: o,
3710
- moveRelativeTo: p,
3711
- insideDestination: d,
3710
+ moveRelativeTo: d,
3711
+ insideDestination: u,
3712
3712
  viewport: l,
3713
3713
  afterCritical: c
3714
3714
  });
@@ -3717,7 +3717,7 @@ var zv = function(e) {
3717
3717
  var v = hn({
3718
3718
  impact: f,
3719
3719
  draggable: n,
3720
- droppable: u,
3720
+ droppable: p,
3721
3721
  draggables: o,
3722
3722
  afterCritical: c
3723
3723
  }), g = $a({
@@ -3740,11 +3740,11 @@ var zv = function(e) {
3740
3740
  var t = e.state, r = e.type, n = rg(t.impact, t.dimensions.droppables), a = !!n, o = t.dimensions.droppables[t.critical.droppable.id], i = n || o, l = i.axis.direction, c = l === "vertical" && (r === "MOVE_UP" || r === "MOVE_DOWN") || l === "horizontal" && (r === "MOVE_LEFT" || r === "MOVE_RIGHT");
3741
3741
  if (c && !a)
3742
3742
  return null;
3743
- var u = r === "MOVE_DOWN" || r === "MOVE_RIGHT", d = t.dimensions.draggables[t.critical.draggable.id], p = t.current.page.borderBoxCenter, f = t.dimensions, v = f.draggables, g = f.droppables;
3743
+ var p = r === "MOVE_DOWN" || r === "MOVE_RIGHT", u = t.dimensions.draggables[t.critical.draggable.id], d = t.current.page.borderBoxCenter, f = t.dimensions, v = f.draggables, g = f.droppables;
3744
3744
  return c ? Yv({
3745
- isMovingForward: u,
3746
- previousPageBorderBoxCenter: p,
3747
- draggable: d,
3745
+ isMovingForward: p,
3746
+ previousPageBorderBoxCenter: d,
3747
+ draggable: u,
3748
3748
  destination: i,
3749
3749
  draggables: v,
3750
3750
  viewport: t.viewport,
@@ -3752,9 +3752,9 @@ var zv = function(e) {
3752
3752
  previousImpact: t.impact,
3753
3753
  afterCritical: t.afterCritical
3754
3754
  }) : tg({
3755
- isMovingForward: u,
3756
- previousPageBorderBoxCenter: p,
3757
- draggable: d,
3755
+ isMovingForward: p,
3756
+ previousPageBorderBoxCenter: d,
3757
+ draggable: u,
3758
3758
  isOver: i,
3759
3759
  draggables: v,
3760
3760
  droppables: g,
@@ -3795,8 +3795,8 @@ function ig(e) {
3795
3795
  return !1;
3796
3796
  if (El(i)(t.center))
3797
3797
  return !0;
3798
- var l = o.axis, c = i.center[l.crossAxisLine], u = t[l.crossAxisStart], d = t[l.crossAxisEnd], p = Qe(i[l.crossAxisStart], i[l.crossAxisEnd]), f = p(u), v = p(d);
3799
- return !f && !v ? !0 : f ? u < c : d > c;
3798
+ var l = o.axis, c = i.center[l.crossAxisLine], p = t[l.crossAxisStart], u = t[l.crossAxisEnd], d = Qe(i[l.crossAxisStart], i[l.crossAxisEnd]), f = d(p), v = d(u);
3799
+ return !f && !v ? !0 : f ? p < c : u > c;
3800
3800
  });
3801
3801
  return a.length ? a.length === 1 ? a[0].descriptor.id : og({
3802
3802
  pageBorderBox: t,
@@ -3819,12 +3819,12 @@ function lg(e) {
3819
3819
  return r ? n && r.descriptor.index > t.descriptor.index ? r.descriptor.index - 1 : r.descriptor.index : null;
3820
3820
  }
3821
3821
  var cg = function(e) {
3822
- var t = e.pageBorderBoxWithDroppableScroll, r = e.draggable, n = e.destination, a = e.insideDestination, o = e.last, i = e.viewport, l = e.afterCritical, c = n.axis, u = Ar(n.axis, r.displaceBy), d = u.value, p = t[c.start], f = t[c.end], v = mn(r, a), g = St(v, function(h) {
3822
+ var t = e.pageBorderBoxWithDroppableScroll, r = e.draggable, n = e.destination, a = e.insideDestination, o = e.last, i = e.viewport, l = e.afterCritical, c = n.axis, p = Ar(n.axis, r.displaceBy), u = p.value, d = t[c.start], f = t[c.end], v = mn(r, a), g = St(v, function(h) {
3823
3823
  var m = h.descriptor.id, x = h.page.borderBox.center[c.line], D = Dt(m, l), w = Sl({
3824
3824
  displaced: o,
3825
3825
  id: m
3826
3826
  });
3827
- return D ? w ? f <= x : p < x - d : w ? f <= x + d : p < x;
3827
+ return D ? w ? f <= x : d < x - u : w ? f <= x + u : d < x;
3828
3828
  }), b = lg({
3829
3829
  draggable: r,
3830
3830
  closest: g,
@@ -3836,19 +3836,19 @@ var cg = function(e) {
3836
3836
  destination: n,
3837
3837
  viewport: i,
3838
3838
  last: o,
3839
- displacedBy: u,
3839
+ displacedBy: p,
3840
3840
  index: b
3841
3841
  });
3842
3842
  }, dg = 4, ug = function(e) {
3843
3843
  var t = e.draggable, r = e.pageBorderBoxWithDroppableScroll, n = e.previousImpact, a = e.destination, o = e.insideDestination, i = e.afterCritical;
3844
3844
  if (!a.isCombineEnabled)
3845
3845
  return null;
3846
- var l = a.axis, c = Ar(a.axis, t.displaceBy), u = c.value, d = r[l.start], p = r[l.end], f = mn(t, o), v = St(f, function(b) {
3846
+ var l = a.axis, c = Ar(a.axis, t.displaceBy), p = c.value, u = r[l.start], d = r[l.end], f = mn(t, o), v = St(f, function(b) {
3847
3847
  var h = b.descriptor.id, m = b.page.borderBox, x = m[l.size], D = x / dg, w = Dt(h, i), y = Sl({
3848
3848
  displaced: n.displaced,
3849
3849
  id: h
3850
3850
  });
3851
- return w ? y ? p > m[l.start] + D && p < m[l.end] - D : d > m[l.start] - u + D && d < m[l.end] - u - D : y ? p > m[l.start] + u + D && p < m[l.end] + u - D : d > m[l.start] + D && d < m[l.end] - D;
3851
+ return w ? y ? d > m[l.start] + D && d < m[l.end] - D : u > m[l.start] - p + D && u < m[l.end] - p - D : y ? d > m[l.start] + p + D && d < m[l.end] + p - D : u > m[l.start] + D && u < m[l.end] - D;
3852
3852
  });
3853
3853
  if (!v)
3854
3854
  return null;
@@ -3865,26 +3865,26 @@ var cg = function(e) {
3865
3865
  };
3866
3866
  return g;
3867
3867
  }, Il = function(e) {
3868
- var t = e.pageOffset, r = e.draggable, n = e.draggables, a = e.droppables, o = e.previousImpact, i = e.viewport, l = e.afterCritical, c = Cl(r.page.borderBox, t), u = ig({
3868
+ var t = e.pageOffset, r = e.draggable, n = e.draggables, a = e.droppables, o = e.previousImpact, i = e.viewport, l = e.afterCritical, c = Cl(r.page.borderBox, t), p = ig({
3869
3869
  pageBorderBox: c,
3870
3870
  draggable: r,
3871
3871
  droppables: a
3872
3872
  });
3873
- if (!u)
3873
+ if (!p)
3874
3874
  return Cv;
3875
- var d = a[u], p = Ft(d.descriptor.id, n), f = sg(d, c);
3875
+ var u = a[p], d = Ft(u.descriptor.id, n), f = sg(u, c);
3876
3876
  return ug({
3877
3877
  pageBorderBoxWithDroppableScroll: f,
3878
3878
  draggable: r,
3879
3879
  previousImpact: o,
3880
- destination: d,
3881
- insideDestination: p,
3880
+ destination: u,
3881
+ insideDestination: d,
3882
3882
  afterCritical: l
3883
3883
  }) || cg({
3884
3884
  pageBorderBoxWithDroppableScroll: f,
3885
3885
  draggable: r,
3886
- destination: d,
3887
- insideDestination: p,
3886
+ destination: u,
3887
+ insideDestination: d,
3888
3888
  last: o.displaced,
3889
3889
  viewport: i,
3890
3890
  afterCritical: l
@@ -3912,19 +3912,19 @@ var cg = function(e) {
3912
3912
  var c = n[l];
3913
3913
  if (Zt(t, c) || c.subject.withPlaceholder)
3914
3914
  return i;
3915
- var u = Nl(c, t, r);
3916
- return Va(i, u);
3915
+ var p = Nl(c, t, r);
3916
+ return Va(i, p);
3917
3917
  }, ur = function(e) {
3918
- var t = e.state, r = e.clientSelection, n = e.dimensions, a = e.viewport, o = e.impact, i = e.scrollJumpRequest, l = a || t.viewport, c = n || t.dimensions, u = r || t.current.client.selection, d = ze(u, t.initial.client.selection), p = {
3919
- offset: d,
3920
- selection: u,
3921
- borderBoxCenter: Me(t.initial.client.borderBoxCenter, d)
3918
+ var t = e.state, r = e.clientSelection, n = e.dimensions, a = e.viewport, o = e.impact, i = e.scrollJumpRequest, l = a || t.viewport, c = n || t.dimensions, p = r || t.current.client.selection, u = ze(p, t.initial.client.selection), d = {
3919
+ offset: u,
3920
+ selection: p,
3921
+ borderBoxCenter: Me(t.initial.client.borderBoxCenter, u)
3922
3922
  }, f = {
3923
- selection: Me(p.selection, l.scroll.current),
3924
- borderBoxCenter: Me(p.borderBoxCenter, l.scroll.current),
3925
- offset: Me(p.offset, l.scroll.diff.value)
3923
+ selection: Me(d.selection, l.scroll.current),
3924
+ borderBoxCenter: Me(d.borderBoxCenter, l.scroll.current),
3925
+ offset: Me(d.offset, l.scroll.diff.value)
3926
3926
  }, v = {
3927
- client: p,
3927
+ client: d,
3928
3928
  page: f
3929
3929
  };
3930
3930
  if (t.phase === "COLLECTING")
@@ -3995,17 +3995,17 @@ var jl = function(e) {
3995
3995
  }, Ol = function(e) {
3996
3996
  var t = e.state, r = e.dimensions, n = e.viewport;
3997
3997
  t.movementMode !== "SNAP" && (process.env.NODE_ENV, N());
3998
- var a = t.impact, o = n || t.viewport, i = r || t.dimensions, l = i.draggables, c = i.droppables, u = l[t.critical.draggable.id], d = qe(a);
3999
- d || (process.env.NODE_ENV !== "production" ? N(!1, "Must be over a destination in SNAP movement mode") : N());
4000
- var p = c[d], f = jl({
3998
+ var a = t.impact, o = n || t.viewport, i = r || t.dimensions, l = i.draggables, c = i.droppables, p = l[t.critical.draggable.id], u = qe(a);
3999
+ u || (process.env.NODE_ENV !== "production" ? N(!1, "Must be over a destination in SNAP movement mode") : N());
4000
+ var d = c[u], f = jl({
4001
4001
  impact: a,
4002
4002
  viewport: o,
4003
- destination: p,
4003
+ destination: d,
4004
4004
  draggables: l
4005
4005
  }), v = _l({
4006
4006
  impact: f,
4007
- draggable: u,
4008
- droppable: p,
4007
+ draggable: p,
4008
+ droppable: d,
4009
4009
  draggables: l,
4010
4010
  viewport: o,
4011
4011
  afterCritical: t.afterCritical
@@ -4025,13 +4025,13 @@ var jl = function(e) {
4025
4025
  }, Pl = function(e) {
4026
4026
  var t = e.draggable, r = e.home, n = e.draggables, a = e.viewport, o = Ar(r.axis, t.displaceBy), i = Ft(r.descriptor.id, n), l = i.indexOf(t);
4027
4027
  l === -1 && (process.env.NODE_ENV !== "production" ? N(!1, "Expected draggable to be inside home list") : N());
4028
- var c = i.slice(l + 1), u = c.reduce(function(v, g) {
4028
+ var c = i.slice(l + 1), p = c.reduce(function(v, g) {
4029
4029
  return v[g.descriptor.id] = !0, v;
4030
- }, {}), d = {
4030
+ }, {}), u = {
4031
4031
  inVirtualList: r.descriptor.mode === "virtual",
4032
4032
  displacedBy: o,
4033
- effected: u
4034
- }, p = Nr({
4033
+ effected: p
4034
+ }, d = Nr({
4035
4035
  afterDragging: c,
4036
4036
  destination: r,
4037
4037
  displacedBy: o,
@@ -4039,7 +4039,7 @@ var jl = function(e) {
4039
4039
  viewport: a.frame,
4040
4040
  forceShouldAnimate: !1
4041
4041
  }), f = {
4042
- displaced: p,
4042
+ displaced: d,
4043
4043
  displacedBy: o,
4044
4044
  at: {
4045
4045
  type: "REORDER",
@@ -4048,7 +4048,7 @@ var jl = function(e) {
4048
4048
  };
4049
4049
  return {
4050
4050
  impact: f,
4051
- afterCritical: d
4051
+ afterCritical: u
4052
4052
  };
4053
4053
  }, mg = function(e, t) {
4054
4054
  return {
@@ -4074,12 +4074,12 @@ var jl = function(e) {
4074
4074
  }, xg = function(e) {
4075
4075
  var t = e.additions, r = e.updatedDroppables, n = e.viewport, a = n.scroll.diff.value;
4076
4076
  return t.map(function(o) {
4077
- var i = o.descriptor.droppableId, l = r[i], c = bg(l), u = c.scroll.diff.value, d = Me(a, u), p = hg({
4077
+ var i = o.descriptor.droppableId, l = r[i], c = bg(l), p = c.scroll.diff.value, u = Me(a, p), d = hg({
4078
4078
  draggable: o,
4079
- offset: d,
4079
+ offset: u,
4080
4080
  initialWindowScroll: n.scroll.initial
4081
4081
  });
4082
- return p;
4082
+ return d;
4083
4083
  });
4084
4084
  }, yg = function(e) {
4085
4085
  var t = e.state, r = e.published;
@@ -4098,12 +4098,12 @@ var jl = function(e) {
4098
4098
  var l = {
4099
4099
  droppables: a,
4100
4100
  draggables: i
4101
- }, c = qe(t.impact), u = c ? l.droppables[c] : null, d = l.draggables[t.critical.draggable.id], p = l.droppables[t.critical.droppable.id], f = Pl({
4102
- draggable: d,
4103
- home: p,
4101
+ }, c = qe(t.impact), p = c ? l.droppables[c] : null, u = l.draggables[t.critical.draggable.id], d = l.droppables[t.critical.droppable.id], f = Pl({
4102
+ draggable: u,
4103
+ home: d,
4104
4104
  draggables: i,
4105
4105
  viewport: t.viewport
4106
- }), v = f.impact, g = f.afterCritical, b = u && u.isCombineEnabled ? t.impact : v, h = Il({
4106
+ }), v = f.impact, g = f.afterCritical, b = p && p.isCombineEnabled ? t.impact : v, h = Il({
4107
4107
  pageOffset: t.current.page.offset,
4108
4108
  draggable: l.draggables[t.critical.draggable.id],
4109
4109
  draggables: l.draggables,
@@ -4163,22 +4163,22 @@ var ii = {
4163
4163
  });
4164
4164
  if (t.type === "INITIAL_PUBLISH") {
4165
4165
  e.phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? N(!1, "INITIAL_PUBLISH must come after a IDLE phase") : N());
4166
- var r = t.payload, n = r.critical, a = r.clientSelection, o = r.viewport, i = r.dimensions, l = r.movementMode, c = i.draggables[n.draggable.id], u = i.droppables[n.droppable.id], d = {
4166
+ var r = t.payload, n = r.critical, a = r.clientSelection, o = r.viewport, i = r.dimensions, l = r.movementMode, c = i.draggables[n.draggable.id], p = i.droppables[n.droppable.id], u = {
4167
4167
  selection: a,
4168
4168
  borderBoxCenter: c.client.borderBox.center,
4169
4169
  offset: Le
4170
- }, p = {
4171
- client: d,
4170
+ }, d = {
4171
+ client: u,
4172
4172
  page: {
4173
- selection: Me(d.selection, o.scroll.initial),
4174
- borderBoxCenter: Me(d.selection, o.scroll.initial),
4175
- offset: Me(d.selection, o.scroll.diff.value)
4173
+ selection: Me(u.selection, o.scroll.initial),
4174
+ borderBoxCenter: Me(u.selection, o.scroll.initial),
4175
+ offset: Me(u.selection, o.scroll.diff.value)
4176
4176
  }
4177
4177
  }, f = vn(i.droppables).every(function(q) {
4178
4178
  return !q.isFixedOnPage;
4179
4179
  }), v = Pl({
4180
4180
  draggable: c,
4181
- home: u,
4181
+ home: p,
4182
4182
  draggables: i.draggables,
4183
4183
  viewport: o
4184
4184
  }), g = v.impact, b = v.afterCritical, h = {
@@ -4187,8 +4187,8 @@ var ii = {
4187
4187
  critical: n,
4188
4188
  movementMode: l,
4189
4189
  dimensions: i,
4190
- initial: p,
4191
- current: p,
4190
+ initial: d,
4191
+ current: d,
4192
4192
  isWindowScrollAllowed: f,
4193
4193
  impact: g,
4194
4194
  afterCritical: b,
@@ -4485,24 +4485,24 @@ var $g = function(e) {
4485
4485
  a(o);
4486
4486
  return;
4487
4487
  }
4488
- var i = o.payload, l = i.id, c = i.clientSelection, u = i.movementMode, d = r();
4489
- d.phase === "DROP_ANIMATING" && n(Wa({
4490
- completed: d.completed
4488
+ var i = o.payload, l = i.id, c = i.clientSelection, p = i.movementMode, u = r();
4489
+ u.phase === "DROP_ANIMATING" && n(Wa({
4490
+ completed: u.completed
4491
4491
  })), r().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? N(!1, "Unexpected phase to start a drag") : N()), n(Ga()), n(Dg({
4492
4492
  draggableId: l,
4493
- movementMode: u
4493
+ movementMode: p
4494
4494
  }));
4495
- var p = {
4496
- shouldPublishImmediately: u === "SNAP"
4495
+ var d = {
4496
+ shouldPublishImmediately: p === "SNAP"
4497
4497
  }, f = {
4498
4498
  draggableId: l,
4499
- scrollOptions: p
4499
+ scrollOptions: d
4500
4500
  }, v = e.startPublishing(f), g = v.critical, b = v.dimensions, h = v.viewport;
4501
4501
  Fg(g, b), n(Eg({
4502
4502
  critical: g,
4503
4503
  dimensions: b,
4504
4504
  clientSelection: c,
4505
- movementMode: u,
4505
+ movementMode: p,
4506
4506
  viewport: h
4507
4507
  }));
4508
4508
  };
@@ -4557,14 +4557,14 @@ var $g = function(e) {
4557
4557
  var o = a / li, i = la + Gg * o, l = n === "CANCEL" ? i * Wg : i;
4558
4558
  return Number(l.toFixed(2));
4559
4559
  }, Hg = function(e) {
4560
- var t = e.impact, r = e.draggable, n = e.dimensions, a = e.viewport, o = e.afterCritical, i = n.draggables, l = n.droppables, c = qe(t), u = c ? l[c] : null, d = l[r.descriptor.droppableId], p = _l({
4560
+ var t = e.impact, r = e.draggable, n = e.dimensions, a = e.viewport, o = e.afterCritical, i = n.draggables, l = n.droppables, c = qe(t), p = c ? l[c] : null, u = l[r.descriptor.droppableId], d = _l({
4561
4561
  impact: t,
4562
4562
  draggable: r,
4563
4563
  draggables: i,
4564
4564
  afterCritical: o,
4565
- droppable: u || d,
4565
+ droppable: p || u,
4566
4566
  viewport: a
4567
- }), f = ze(p, r.client.borderBox.center);
4567
+ }), f = ze(d, r.client.borderBox.center);
4568
4568
  return f;
4569
4569
  }, zg = function(e) {
4570
4570
  var t = e.draggables, r = e.reason, n = e.lastImpact, a = e.home, o = e.viewport, i = e.onLiftImpact;
@@ -4611,7 +4611,7 @@ var $g = function(e) {
4611
4611
  if (o.phase !== "IDLE") {
4612
4612
  var l = o.phase === "DROP_PENDING" && o.isWaiting;
4613
4613
  l && (process.env.NODE_ENV !== "production" ? N(!1, "A DROP action occurred while DROP_PENDING and still waiting") : N()), o.phase === "DRAGGING" || o.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot drop in phase: " + o.phase) : N());
4614
- var c = o.critical, u = o.dimensions, d = u.draggables[o.critical.draggable.id], p = zg({
4614
+ var c = o.critical, p = o.dimensions, u = p.draggables[o.critical.draggable.id], d = zg({
4615
4615
  reason: i,
4616
4616
  lastImpact: o.impact,
4617
4617
  afterCritical: o.afterCritical,
@@ -4619,12 +4619,12 @@ var $g = function(e) {
4619
4619
  home: o.dimensions.droppables[o.critical.droppable.id],
4620
4620
  viewport: o.viewport,
4621
4621
  draggables: o.dimensions.draggables
4622
- }), f = p.impact, v = p.didDropInsideDroppable, g = v ? Ba(f) : null, b = v ? gn(f) : null, h = {
4622
+ }), f = d.impact, v = d.didDropInsideDroppable, g = v ? Ba(f) : null, b = v ? gn(f) : null, h = {
4623
4623
  index: c.draggable.index,
4624
4624
  droppableId: c.droppable.id
4625
4625
  }, m = {
4626
- draggableId: d.descriptor.id,
4627
- type: d.descriptor.type,
4626
+ draggableId: u.descriptor.id,
4627
+ type: u.descriptor.type,
4628
4628
  source: h,
4629
4629
  reason: i,
4630
4630
  mode: o.movementMode,
@@ -4632,8 +4632,8 @@ var $g = function(e) {
4632
4632
  combine: b
4633
4633
  }, x = Hg({
4634
4634
  impact: f,
4635
- draggable: d,
4636
- dimensions: u,
4635
+ draggable: u,
4636
+ dimensions: p,
4637
4637
  viewport: o.viewport,
4638
4638
  afterCritical: o.afterCritical
4639
4639
  }), D = {
@@ -4737,8 +4737,8 @@ var Xg = function(t) {
4737
4737
  }, a;
4738
4738
  }, Zg = function() {
4739
4739
  var e = [], t = function(o) {
4740
- var i = ka(e, function(u) {
4741
- return u.timerId === o;
4740
+ var i = ka(e, function(p) {
4741
+ return p.timerId === o;
4742
4742
  });
4743
4743
  i === -1 && (process.env.NODE_ENV !== "production" ? N(!1, "Could not find timer") : N());
4744
4744
  var l = e.splice(i, 1), c = l[0];
@@ -4844,18 +4844,18 @@ var Xg = function(t) {
4844
4844
  }
4845
4845
  }, c = function() {
4846
4846
  n || (process.env.NODE_ENV !== "production" ? N(!1, "Can only flush responders while dragging") : N()), r.flush();
4847
- }, u = function(f) {
4847
+ }, p = function(f) {
4848
4848
  n || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : N()), n = null, sr("onDragEnd", function() {
4849
4849
  return Ln(e().onDragEnd, f, t, Yr.onDragEnd);
4850
4850
  });
4851
- }, d = function() {
4851
+ }, u = function() {
4852
4852
  if (n) {
4853
4853
  var f = ne({}, Fr(n.lastCritical, n.mode), {
4854
4854
  combine: null,
4855
4855
  destination: null,
4856
4856
  reason: "CANCEL"
4857
4857
  });
4858
- u(f);
4858
+ p(f);
4859
4859
  }
4860
4860
  };
4861
4861
  return {
@@ -4864,8 +4864,8 @@ var Xg = function(t) {
4864
4864
  start: i,
4865
4865
  update: l,
4866
4866
  flush: c,
4867
- drop: u,
4868
- abort: d
4867
+ drop: p,
4868
+ abort: u
4869
4869
  };
4870
4870
  }, am = function(e, t) {
4871
4871
  var r = nm(e, t);
@@ -5012,7 +5012,7 @@ function vm(e) {
5012
5012
  var t = e.registry, r = e.callbacks, n = Mn(), a = null, o = function() {
5013
5013
  a || (r.collectionStarting(), a = requestAnimationFrame(function() {
5014
5014
  a = null, Tr();
5015
- var d = n, p = d.additions, f = d.removals, v = d.modified, g = Object.keys(p).map(function(m) {
5015
+ var u = n, d = u.additions, f = u.removals, v = u.modified, g = Object.keys(d).map(function(m) {
5016
5016
  return t.draggable.getById(m).getDimension(Le);
5017
5017
  }).sort(function(m, x) {
5018
5018
  return m.descriptor.index - x.descriptor.index;
@@ -5029,12 +5029,12 @@ function vm(e) {
5029
5029
  };
5030
5030
  n = Mn(), Rr(), r.publish(h);
5031
5031
  }));
5032
- }, i = function(d) {
5033
- var p = d.descriptor.id;
5034
- n.additions[p] = d, n.modified[d.descriptor.droppableId] = !0, n.removals[p] && delete n.removals[p], o();
5035
- }, l = function(d) {
5036
- var p = d.descriptor;
5037
- n.removals[p.id] = !0, n.modified[p.droppableId] = !0, n.additions[p.id] && delete n.additions[p.id], o();
5032
+ }, i = function(u) {
5033
+ var d = u.descriptor.id;
5034
+ n.additions[d] = u, n.modified[u.descriptor.droppableId] = !0, n.removals[d] && delete n.removals[d], o();
5035
+ }, l = function(u) {
5036
+ var d = u.descriptor;
5037
+ n.removals[d.id] = !0, n.modified[d.droppableId] = !0, n.additions[d.id] && delete n.additions[d.id], o();
5038
5038
  }, c = function() {
5039
5039
  a && (cancelAnimationFrame(a), a = null, n = Mn());
5040
5040
  };
@@ -5068,13 +5068,13 @@ var Ll = function(e) {
5068
5068
  });
5069
5069
  return t;
5070
5070
  }, gm = function() {
5071
- var e = Bl(), t = Fl(), r = e.y, n = e.x, a = Ml(), o = a.clientWidth, i = a.clientHeight, l = n + o, c = r + i, u = rt({
5071
+ var e = Bl(), t = Fl(), r = e.y, n = e.x, a = Ml(), o = a.clientWidth, i = a.clientHeight, l = n + o, c = r + i, p = rt({
5072
5072
  top: r,
5073
5073
  left: n,
5074
5074
  right: l,
5075
5075
  bottom: c
5076
- }), d = {
5077
- frame: u,
5076
+ }), u = {
5077
+ frame: p,
5078
5078
  scroll: {
5079
5079
  initial: e,
5080
5080
  current: e,
@@ -5085,25 +5085,25 @@ var Ll = function(e) {
5085
5085
  }
5086
5086
  }
5087
5087
  };
5088
- return d;
5088
+ return u;
5089
5089
  }, mm = function(e) {
5090
5090
  var t = e.critical, r = e.scrollOptions, n = e.registry;
5091
5091
  Tr();
5092
- var a = gm(), o = a.scroll.current, i = t.droppable, l = n.droppable.getAllByType(i.type).map(function(p) {
5093
- return p.callbacks.getDimensionAndWatchScroll(o, r);
5094
- }), c = n.draggable.getAllByType(t.draggable.type).map(function(p) {
5095
- return p.getDimension(o);
5096
- }), u = {
5092
+ var a = gm(), o = a.scroll.current, i = t.droppable, l = n.droppable.getAllByType(i.type).map(function(d) {
5093
+ return d.callbacks.getDimensionAndWatchScroll(o, r);
5094
+ }), c = n.draggable.getAllByType(t.draggable.type).map(function(d) {
5095
+ return d.getDimension(o);
5096
+ }), p = {
5097
5097
  draggables: vl(c),
5098
5098
  droppables: fl(l)
5099
5099
  };
5100
5100
  Rr();
5101
- var d = {
5102
- dimensions: u,
5101
+ var u = {
5102
+ dimensions: p,
5103
5103
  critical: t,
5104
5104
  viewport: a
5105
5105
  };
5106
- return d;
5106
+ return u;
5107
5107
  };
5108
5108
  function ci(e, t, r) {
5109
5109
  if (r.descriptor.id === t.id || r.descriptor.type !== t.type)
@@ -5148,16 +5148,16 @@ var hm = function(e, t) {
5148
5148
  return g.callbacks.dragStopped();
5149
5149
  }), r.unsubscribe(), r = null;
5150
5150
  }
5151
- }, u = function(v) {
5151
+ }, p = function(v) {
5152
5152
  r || (process.env.NODE_ENV !== "production" ? N(!1, "Should only be subscribed when a collection is occurring") : N());
5153
5153
  var g = r.critical.draggable;
5154
5154
  v.type === "ADDITION" && ci(e, g, v.value) && n.add(v.value), v.type === "REMOVAL" && ci(e, g, v.value) && n.remove(v.value);
5155
- }, d = function(v) {
5155
+ }, u = function(v) {
5156
5156
  r && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot start capturing critical dimensions as there is already a collection") : N());
5157
5157
  var g = e.draggable.getById(v.draggableId), b = e.droppable.getById(g.descriptor.droppableId), h = {
5158
5158
  draggable: g.descriptor,
5159
5159
  droppable: b.descriptor
5160
- }, m = e.subscribe(u);
5160
+ }, m = e.subscribe(p);
5161
5161
  return r = {
5162
5162
  critical: h,
5163
5163
  unsubscribe: m
@@ -5166,15 +5166,15 @@ var hm = function(e, t) {
5166
5166
  registry: e,
5167
5167
  scrollOptions: v.scrollOptions
5168
5168
  });
5169
- }, p = {
5169
+ }, d = {
5170
5170
  updateDroppableIsEnabled: a,
5171
5171
  updateDroppableIsCombineEnabled: o,
5172
5172
  scrollDroppable: l,
5173
5173
  updateDroppableScroll: i,
5174
- startPublishing: d,
5174
+ startPublishing: u,
5175
5175
  stopPublishing: c
5176
5176
  };
5177
- return p;
5177
+ return d;
5178
5178
  }, $l = function(e, t) {
5179
5179
  return e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP";
5180
5180
  }, bm = function(e) {
@@ -5290,18 +5290,18 @@ var hm = function(e, t) {
5290
5290
  dragStartTime: t,
5291
5291
  axis: hl,
5292
5292
  shouldUseTimeDampening: o
5293
- }), u = Sm({
5293
+ }), p = Sm({
5294
5294
  x: c,
5295
5295
  y: l
5296
5296
  });
5297
- if (xt(u, Le))
5297
+ if (xt(p, Le))
5298
5298
  return null;
5299
- var d = Cm({
5299
+ var u = Cm({
5300
5300
  container: r,
5301
5301
  subject: n,
5302
- proposedScroll: u
5302
+ proposedScroll: p
5303
5303
  });
5304
- return d ? xt(d, Le) ? null : d : null;
5304
+ return u ? xt(u, Le) ? null : u : null;
5305
5305
  }, Im = ul(function(e) {
5306
5306
  return e === 0 ? 0 : e > 0 ? 1 : -1;
5307
5307
  }), qa = /* @__PURE__ */ function() {
@@ -5378,59 +5378,59 @@ var hm = function(e, t) {
5378
5378
  }, vi = function(e) {
5379
5379
  var t = e.state, r = e.dragStartTime, n = e.shouldUseTimeDampening, a = e.scrollWindow, o = e.scrollDroppable, i = t.current.page.borderBoxCenter, l = t.dimensions.draggables[t.critical.draggable.id], c = l.page.marginBox;
5380
5380
  if (t.isWindowScrollAllowed) {
5381
- var u = t.viewport, d = Om({
5381
+ var p = t.viewport, u = Om({
5382
5382
  dragStartTime: r,
5383
- viewport: u,
5383
+ viewport: p,
5384
5384
  subject: c,
5385
5385
  center: i,
5386
5386
  shouldUseTimeDampening: n
5387
5387
  });
5388
- if (d) {
5389
- a(d);
5388
+ if (u) {
5389
+ a(u);
5390
5390
  return;
5391
5391
  }
5392
5392
  }
5393
- var p = wm({
5393
+ var d = wm({
5394
5394
  center: i,
5395
5395
  destination: qe(t.impact),
5396
5396
  droppables: t.dimensions.droppables
5397
5397
  });
5398
- if (p) {
5398
+ if (d) {
5399
5399
  var f = Pm({
5400
5400
  dragStartTime: r,
5401
- droppable: p,
5401
+ droppable: d,
5402
5402
  subject: c,
5403
5403
  center: i,
5404
5404
  shouldUseTimeDampening: n
5405
5405
  });
5406
- f && o(p.descriptor.id, f);
5406
+ f && o(d.descriptor.id, f);
5407
5407
  }
5408
5408
  }, Am = function(e) {
5409
- var t = e.scrollWindow, r = e.scrollDroppable, n = xr(t), a = xr(r), o = null, i = function(d) {
5409
+ var t = e.scrollWindow, r = e.scrollDroppable, n = xr(t), a = xr(r), o = null, i = function(u) {
5410
5410
  o || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot fluid scroll if not dragging") : N());
5411
- var p = o, f = p.shouldUseTimeDampening, v = p.dragStartTime;
5411
+ var d = o, f = d.shouldUseTimeDampening, v = d.dragStartTime;
5412
5412
  vi({
5413
- state: d,
5413
+ state: u,
5414
5414
  scrollWindow: n,
5415
5415
  scrollDroppable: a,
5416
5416
  dragStartTime: v,
5417
5417
  shouldUseTimeDampening: f
5418
5418
  });
5419
- }, l = function(d) {
5419
+ }, l = function(u) {
5420
5420
  Tr(), o && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot start auto scrolling when already started") : N());
5421
- var p = Date.now(), f = !1, v = function() {
5421
+ var d = Date.now(), f = !1, v = function() {
5422
5422
  f = !0;
5423
5423
  };
5424
5424
  vi({
5425
- state: d,
5425
+ state: u,
5426
5426
  dragStartTime: 0,
5427
5427
  shouldUseTimeDampening: !1,
5428
5428
  scrollWindow: v,
5429
5429
  scrollDroppable: v
5430
5430
  }), o = {
5431
- dragStartTime: p,
5431
+ dragStartTime: d,
5432
5432
  shouldUseTimeDampening: f
5433
- }, Rr(), f && i(d);
5433
+ }, Rr(), f && i(u);
5434
5434
  }, c = function() {
5435
5435
  o && (n.cancel(), a.cancel(), o = null);
5436
5436
  };
@@ -5440,40 +5440,40 @@ var hm = function(e, t) {
5440
5440
  scroll: i
5441
5441
  };
5442
5442
  }, Tm = function(e) {
5443
- var t = e.move, r = e.scrollDroppable, n = e.scrollWindow, a = function(u, d) {
5444
- var p = Me(u.current.client.selection, d);
5443
+ var t = e.move, r = e.scrollDroppable, n = e.scrollWindow, a = function(p, u) {
5444
+ var d = Me(p.current.client.selection, u);
5445
5445
  t({
5446
- client: p
5446
+ client: d
5447
5447
  });
5448
- }, o = function(u, d) {
5449
- if (!Ka(u, d))
5450
- return d;
5451
- var p = _m(u, d);
5452
- if (!p)
5453
- return r(u.descriptor.id, d), null;
5454
- var f = ze(d, p);
5455
- r(u.descriptor.id, f);
5456
- var v = ze(d, f);
5448
+ }, o = function(p, u) {
5449
+ if (!Ka(p, u))
5450
+ return u;
5451
+ var d = _m(p, u);
5452
+ if (!d)
5453
+ return r(p.descriptor.id, u), null;
5454
+ var f = ze(u, d);
5455
+ r(p.descriptor.id, f);
5456
+ var v = ze(u, f);
5457
5457
  return v;
5458
- }, i = function(u, d, p) {
5459
- if (!u || !Ya(d, p))
5460
- return p;
5461
- var f = jm(d, p);
5458
+ }, i = function(p, u, d) {
5459
+ if (!p || !Ya(u, d))
5460
+ return d;
5461
+ var f = jm(u, d);
5462
5462
  if (!f)
5463
- return n(p), null;
5464
- var v = ze(p, f);
5463
+ return n(d), null;
5464
+ var v = ze(d, f);
5465
5465
  n(v);
5466
- var g = ze(p, v);
5466
+ var g = ze(d, v);
5467
5467
  return g;
5468
- }, l = function(u) {
5469
- var d = u.scrollJumpRequest;
5470
- if (d) {
5471
- var p = qe(u.impact);
5472
- p || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot perform a jump scroll when there is no destination") : N());
5473
- var f = o(u.dimensions.droppables[p], d);
5468
+ }, l = function(p) {
5469
+ var u = p.scrollJumpRequest;
5470
+ if (u) {
5471
+ var d = qe(p.impact);
5472
+ d || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot perform a jump scroll when there is no destination") : N());
5473
+ var f = o(p.dimensions.droppables[d], u);
5474
5474
  if (f) {
5475
- var v = u.viewport, g = i(u.isWindowScrollAllowed, v, f);
5476
- g && a(u, g);
5475
+ var v = p.viewport, g = i(p.isWindowScrollAllowed, v, f);
5476
+ g && a(p, g);
5477
5477
  }
5478
5478
  }
5479
5479
  };
@@ -5486,13 +5486,13 @@ var hm = function(e, t) {
5486
5486
  move: n,
5487
5487
  scrollWindow: r,
5488
5488
  scrollDroppable: t
5489
- }), i = function(u) {
5490
- if (u.phase === "DRAGGING") {
5491
- if (u.movementMode === "FLUID") {
5492
- a.scroll(u);
5489
+ }), i = function(p) {
5490
+ if (p.phase === "DRAGGING") {
5491
+ if (p.movementMode === "FLUID") {
5492
+ a.scroll(p);
5493
5493
  return;
5494
5494
  }
5495
- u.scrollJumpRequest && o(u);
5495
+ p.scrollJumpRequest && o(p);
5496
5496
  }
5497
5497
  }, l = {
5498
5498
  scroll: i,
@@ -5599,17 +5599,17 @@ var hm = function(e, t) {
5599
5599
  function Fm(e, t) {
5600
5600
  var r = ve(function() {
5601
5601
  return Mm(e);
5602
- }, [e]), n = U(null), a = U(null), o = Z(Be(function(p) {
5602
+ }, [e]), n = U(null), a = U(null), o = Z(Be(function(d) {
5603
5603
  var f = a.current;
5604
- f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot set dynamic style element if it is not set") : N()), f.textContent = p;
5605
- }), []), i = Z(function(p) {
5604
+ f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot set dynamic style element if it is not set") : N()), f.textContent = d;
5605
+ }), []), i = Z(function(d) {
5606
5606
  var f = n.current;
5607
- f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot set dynamic style element if it is not set") : N()), f.textContent = p;
5607
+ f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot set dynamic style element if it is not set") : N()), f.textContent = d;
5608
5608
  }, []);
5609
5609
  Ye(function() {
5610
5610
  !n.current && !a.current || (process.env.NODE_ENV !== "production" ? N(!1, "style elements already mounted") : N());
5611
- var p = mi(t), f = mi(t);
5612
- return n.current = p, a.current = f, p.setAttribute(qt + "-always", e), f.setAttribute(qt + "-dynamic", e), Fn().appendChild(p), Fn().appendChild(f), i(r.always), o(r.resting), function() {
5611
+ var d = mi(t), f = mi(t);
5612
+ return n.current = d, a.current = f, d.setAttribute(qt + "-always", e), f.setAttribute(qt + "-dynamic", e), Fn().appendChild(d), Fn().appendChild(f), i(r.always), o(r.resting), function() {
5613
5613
  var v = function(b) {
5614
5614
  var h = b.current;
5615
5615
  h || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot unmount ref as it is not set") : N()), Fn().removeChild(h), b.current = null;
@@ -5619,22 +5619,22 @@ function Fm(e, t) {
5619
5619
  }, [t, i, o, r.always, r.resting, e]);
5620
5620
  var l = Z(function() {
5621
5621
  return o(r.dragging);
5622
- }, [o, r.dragging]), c = Z(function(p) {
5623
- if (p === "DROP") {
5622
+ }, [o, r.dragging]), c = Z(function(d) {
5623
+ if (d === "DROP") {
5624
5624
  o(r.dropAnimating);
5625
5625
  return;
5626
5626
  }
5627
5627
  o(r.userCancel);
5628
- }, [o, r.dropAnimating, r.userCancel]), u = Z(function() {
5628
+ }, [o, r.dropAnimating, r.userCancel]), p = Z(function() {
5629
5629
  a.current && o(r.resting);
5630
- }, [o, r.resting]), d = ve(function() {
5630
+ }, [o, r.resting]), u = ve(function() {
5631
5631
  return {
5632
5632
  dragging: l,
5633
5633
  dropping: c,
5634
- resting: u
5634
+ resting: p
5635
5635
  };
5636
- }, [l, c, u]);
5637
- return d;
5636
+ }, [l, c, p]);
5637
+ return u;
5638
5638
  }
5639
5639
  var Ul = function(e) {
5640
5640
  return e && e.ownerDocument ? e.ownerDocument.defaultView : window;
@@ -5672,7 +5672,7 @@ function $m(e) {
5672
5672
  var f = r.current;
5673
5673
  f && i(f);
5674
5674
  }));
5675
- }, [i]), u = Z(function(f) {
5675
+ }, [i]), p = Z(function(f) {
5676
5676
  r.current = null;
5677
5677
  var v = document.activeElement;
5678
5678
  v && v.getAttribute(Yt.draggableId) === f && (r.current = f);
@@ -5684,38 +5684,38 @@ function $m(e) {
5684
5684
  f && cancelAnimationFrame(f);
5685
5685
  };
5686
5686
  }, []);
5687
- var d = ve(function() {
5687
+ var u = ve(function() {
5688
5688
  return {
5689
5689
  register: o,
5690
- tryRecordFocus: u,
5690
+ tryRecordFocus: p,
5691
5691
  tryRestoreFocusRecorded: c,
5692
5692
  tryShiftRecord: l
5693
5693
  };
5694
- }, [o, u, c, l]);
5695
- return d;
5694
+ }, [o, p, c, l]);
5695
+ return u;
5696
5696
  }
5697
5697
  function Vm() {
5698
5698
  var e = {
5699
5699
  draggables: {},
5700
5700
  droppables: {}
5701
5701
  }, t = [];
5702
- function r(p) {
5703
- return t.push(p), function() {
5704
- var v = t.indexOf(p);
5702
+ function r(d) {
5703
+ return t.push(d), function() {
5704
+ var v = t.indexOf(d);
5705
5705
  v !== -1 && t.splice(v, 1);
5706
5706
  };
5707
5707
  }
5708
- function n(p) {
5708
+ function n(d) {
5709
5709
  t.length && t.forEach(function(f) {
5710
- return f(p);
5710
+ return f(d);
5711
5711
  });
5712
5712
  }
5713
- function a(p) {
5714
- return e.draggables[p] || null;
5713
+ function a(d) {
5714
+ return e.draggables[d] || null;
5715
5715
  }
5716
- function o(p) {
5717
- var f = a(p);
5718
- return f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find draggable entry with id [" + p + "]") : N()), f;
5716
+ function o(d) {
5717
+ var f = a(d);
5718
+ return f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find draggable entry with id [" + d + "]") : N()), f;
5719
5719
  }
5720
5720
  var i = {
5721
5721
  register: function(f) {
@@ -5746,14 +5746,14 @@ function Vm() {
5746
5746
  });
5747
5747
  }
5748
5748
  };
5749
- function l(p) {
5750
- return e.droppables[p] || null;
5749
+ function l(d) {
5750
+ return e.droppables[d] || null;
5751
5751
  }
5752
- function c(p) {
5753
- var f = l(p);
5754
- return f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find droppable entry with id [" + p + "]") : N()), f;
5752
+ function c(d) {
5753
+ var f = l(d);
5754
+ return f || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot find droppable entry with id [" + d + "]") : N()), f;
5755
5755
  }
5756
- var u = {
5756
+ var p = {
5757
5757
  register: function(f) {
5758
5758
  e.droppables[f.descriptor.id] = f;
5759
5759
  },
@@ -5772,14 +5772,14 @@ function Vm() {
5772
5772
  });
5773
5773
  }
5774
5774
  };
5775
- function d() {
5775
+ function u() {
5776
5776
  e.draggables = {}, e.droppables = {}, t.length = 0;
5777
5777
  }
5778
5778
  return {
5779
5779
  draggable: i,
5780
- droppable: u,
5780
+ droppable: p,
5781
5781
  subscribe: r,
5782
- clean: d
5782
+ clean: u
5783
5783
  };
5784
5784
  }
5785
5785
  function Gm() {
@@ -5996,21 +5996,21 @@ function gh(e) {
5996
5996
  return [{
5997
5997
  eventName: "mousemove",
5998
5998
  fn: function(i) {
5999
- var l = i.button, c = i.clientX, u = i.clientY;
5999
+ var l = i.button, c = i.clientX, p = i.clientY;
6000
6000
  if (l === Yl) {
6001
- var d = {
6001
+ var u = {
6002
6002
  x: c,
6003
- y: u
6004
- }, p = n();
6005
- if (p.type === "DRAGGING") {
6006
- i.preventDefault(), p.actions.move(d);
6003
+ y: p
6004
+ }, d = n();
6005
+ if (d.type === "DRAGGING") {
6006
+ i.preventDefault(), d.actions.move(u);
6007
6007
  return;
6008
6008
  }
6009
- p.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot be IDLE") : N());
6010
- var f = p.point;
6011
- if (vh(f, d)) {
6009
+ d.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot be IDLE") : N());
6010
+ var f = d.point;
6011
+ if (vh(f, u)) {
6012
6012
  i.preventDefault();
6013
- var v = p.actions.fluidLift(d);
6013
+ var v = d.actions.fluidLift(u);
6014
6014
  a({
6015
6015
  type: "DRAGGING",
6016
6016
  actions: v
@@ -6080,20 +6080,20 @@ function mh(e) {
6080
6080
  var t = U(xi), r = U(bt), n = ve(function() {
6081
6081
  return {
6082
6082
  eventName: "mousedown",
6083
- fn: function(p) {
6084
- if (!p.defaultPrevented && p.button === Yl && !(p.ctrlKey || p.metaKey || p.shiftKey || p.altKey)) {
6085
- var f = e.findClosestDraggableId(p);
6083
+ fn: function(d) {
6084
+ if (!d.defaultPrevented && d.button === Yl && !(d.ctrlKey || d.metaKey || d.shiftKey || d.altKey)) {
6085
+ var f = e.findClosestDraggableId(d);
6086
6086
  if (f) {
6087
6087
  var v = e.tryGetLock(f, i, {
6088
- sourceEvent: p
6088
+ sourceEvent: d
6089
6089
  });
6090
6090
  if (v) {
6091
- p.preventDefault();
6091
+ d.preventDefault();
6092
6092
  var g = {
6093
- x: p.clientX,
6094
- y: p.clientY
6093
+ x: d.clientX,
6094
+ y: d.clientY
6095
6095
  };
6096
- r.current(), u(v, g);
6096
+ r.current(), p(v, g);
6097
6097
  }
6098
6098
  }
6099
6099
  }
@@ -6102,32 +6102,32 @@ function mh(e) {
6102
6102
  }, [e]), a = ve(function() {
6103
6103
  return {
6104
6104
  eventName: "webkitmouseforcewillbegin",
6105
- fn: function(p) {
6106
- if (!p.defaultPrevented) {
6107
- var f = e.findClosestDraggableId(p);
6105
+ fn: function(d) {
6106
+ if (!d.defaultPrevented) {
6107
+ var f = e.findClosestDraggableId(d);
6108
6108
  if (f) {
6109
6109
  var v = e.findOptionsForDraggable(f);
6110
- v && (v.shouldRespectForcePress || e.canGetLock(f) && p.preventDefault());
6110
+ v && (v.shouldRespectForcePress || e.canGetLock(f) && d.preventDefault());
6111
6111
  }
6112
6112
  }
6113
6113
  }
6114
6114
  };
6115
6115
  }, [e]), o = Z(function() {
6116
- var p = {
6116
+ var d = {
6117
6117
  passive: !1,
6118
6118
  capture: !0
6119
6119
  };
6120
- r.current = Je(window, [a, n], p);
6120
+ r.current = Je(window, [a, n], d);
6121
6121
  }, [a, n]), i = Z(function() {
6122
- var d = t.current;
6123
- d.type !== "IDLE" && (t.current = xi, r.current(), o());
6122
+ var u = t.current;
6123
+ u.type !== "IDLE" && (t.current = xi, r.current(), o());
6124
6124
  }, [o]), l = Z(function() {
6125
- var d = t.current;
6126
- i(), d.type === "DRAGGING" && d.actions.cancel({
6125
+ var u = t.current;
6126
+ i(), u.type === "DRAGGING" && u.actions.cancel({
6127
6127
  shouldBlockNextClick: !0
6128
- }), d.type === "PENDING" && d.actions.abort();
6128
+ }), u.type === "PENDING" && u.actions.abort();
6129
6129
  }, [i]), c = Z(function() {
6130
- var p = {
6130
+ var d = {
6131
6131
  capture: !0,
6132
6132
  passive: !1
6133
6133
  }, f = gh({
@@ -6140,12 +6140,12 @@ function mh(e) {
6140
6140
  t.current = g;
6141
6141
  }
6142
6142
  });
6143
- r.current = Je(window, f, p);
6144
- }, [l, i]), u = Z(function(p, f) {
6143
+ r.current = Je(window, f, d);
6144
+ }, [l, i]), p = Z(function(d, f) {
6145
6145
  t.current.type !== "IDLE" && (process.env.NODE_ENV !== "production" ? N(!1, "Expected to move from IDLE to PENDING drag") : N()), t.current = {
6146
6146
  type: "PENDING",
6147
6147
  point: f,
6148
- actions: p
6148
+ actions: d
6149
6149
  }, c();
6150
6150
  }, [c]);
6151
6151
  Ye(function() {
@@ -6234,18 +6234,18 @@ function yh(e) {
6234
6234
  var i = e.findClosestDraggableId(o);
6235
6235
  if (!i)
6236
6236
  return;
6237
- var l = e.tryGetLock(i, d, {
6237
+ var l = e.tryGetLock(i, u, {
6238
6238
  sourceEvent: o
6239
6239
  });
6240
6240
  if (!l)
6241
6241
  return;
6242
6242
  o.preventDefault();
6243
- var c = !0, u = l.snapLift();
6243
+ var c = !0, p = l.snapLift();
6244
6244
  t.current();
6245
- function d() {
6245
+ function u() {
6246
6246
  c || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot stop capturing a keyboard drag when not capturing") : N()), c = !1, t.current(), n();
6247
6247
  }
6248
- t.current = Je(window, xh(u, d), {
6248
+ t.current = Je(window, xh(p, u), {
6249
6249
  capture: !0,
6250
6250
  passive: !1
6251
6251
  });
@@ -6308,11 +6308,11 @@ function Eh(e) {
6308
6308
  return;
6309
6309
  }
6310
6310
  i.hasMoved = !0;
6311
- var l = o.touches[0], c = l.clientX, u = l.clientY, d = {
6311
+ var l = o.touches[0], c = l.clientX, p = l.clientY, u = {
6312
6312
  x: c,
6313
- y: u
6313
+ y: p
6314
6314
  };
6315
- o.preventDefault(), i.actions.move(d);
6315
+ o.preventDefault(), i.actions.move(u);
6316
6316
  }
6317
6317
  }, {
6318
6318
  eventName: "touchend",
@@ -6344,12 +6344,12 @@ function Eh(e) {
6344
6344
  if (l) {
6345
6345
  var c = l.force >= Dh;
6346
6346
  if (c) {
6347
- var u = i.actions.shouldRespectForcePress();
6347
+ var p = i.actions.shouldRespectForcePress();
6348
6348
  if (i.type === "PENDING") {
6349
- u && t();
6349
+ p && t();
6350
6350
  return;
6351
6351
  }
6352
- if (u) {
6352
+ if (p) {
6353
6353
  if (i.hasMoved) {
6354
6354
  o.preventDefault();
6355
6355
  return;
@@ -6386,7 +6386,7 @@ function Ch(e) {
6386
6386
  x: m,
6387
6387
  y: x
6388
6388
  };
6389
- r.current(), p(b, D);
6389
+ r.current(), d(b, D);
6390
6390
  }
6391
6391
  }
6392
6392
  }
@@ -6406,7 +6406,7 @@ function Ch(e) {
6406
6406
  l(), f.type === "DRAGGING" && f.actions.cancel({
6407
6407
  shouldBlockNextClick: !0
6408
6408
  }), f.type === "PENDING" && f.actions.abort();
6409
- }, [l]), u = Z(function() {
6409
+ }, [l]), p = Z(function() {
6410
6410
  var v = {
6411
6411
  capture: !0,
6412
6412
  passive: !1
@@ -6418,7 +6418,7 @@ function Ch(e) {
6418
6418
  r.current = function() {
6419
6419
  b(), h();
6420
6420
  };
6421
- }, [c, n, l]), d = Z(function() {
6421
+ }, [c, n, l]), u = Z(function() {
6422
6422
  var v = n();
6423
6423
  v.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot start dragging from phase " + v.type) : N());
6424
6424
  var g = v.actions.fluidLift(v.point);
@@ -6427,16 +6427,16 @@ function Ch(e) {
6427
6427
  actions: g,
6428
6428
  hasMoved: !1
6429
6429
  });
6430
- }, [n, a]), p = Z(function(v, g) {
6430
+ }, [n, a]), d = Z(function(v, g) {
6431
6431
  n().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? N(!1, "Expected to move from IDLE to PENDING drag") : N());
6432
- var b = setTimeout(d, wh);
6432
+ var b = setTimeout(u, wh);
6433
6433
  a({
6434
6434
  type: "PENDING",
6435
6435
  point: g,
6436
6436
  actions: v,
6437
6437
  longPressTimerId: b
6438
- }), u();
6439
- }, [u, n, a, d]);
6438
+ }), p();
6439
+ }, [p, n, a, u]);
6440
6440
  Ye(function() {
6441
6441
  return i(), function() {
6442
6442
  r.current();
@@ -6569,17 +6569,17 @@ function Mh(e) {
6569
6569
  });
6570
6570
  if (!c)
6571
6571
  return null;
6572
- var u = a.draggable.getById(o), d = Bh(r, u.descriptor.id);
6573
- if (!d)
6572
+ var p = a.draggable.getById(o), u = Bh(r, p.descriptor.id);
6573
+ if (!u)
6574
6574
  return process.env.NODE_ENV !== "production" && Ne("Unable to find draggable element with id: " + o), null;
6575
- if (l && !u.options.canDragInteractiveElements && jh(d, l))
6575
+ if (l && !p.options.canDragInteractiveElements && jh(u, l))
6576
6576
  return null;
6577
- var p = t.claim(i || bt), f = "PRE_DRAG";
6577
+ var d = t.claim(i || bt), f = "PRE_DRAG";
6578
6578
  function v() {
6579
- return u.options.shouldRespectForcePress;
6579
+ return p.options.shouldRespectForcePress;
6580
6580
  }
6581
6581
  function g() {
6582
- return t.isActive(p);
6582
+ return t.isActive(d);
6583
6583
  }
6584
6584
  function b(C, O) {
6585
6585
  Vr({
@@ -6674,7 +6674,7 @@ function Mh(e) {
6674
6674
  return m({
6675
6675
  liftActionArgs: {
6676
6676
  id: o,
6677
- clientSelection: _h(d),
6677
+ clientSelection: _h(u),
6678
6678
  movementMode: "SNAP"
6679
6679
  },
6680
6680
  cleanup: bt,
@@ -6722,14 +6722,14 @@ function $h(e) {
6722
6722
  }, [l, r, c]), Ye(function() {
6723
6723
  return l.tryAbandon;
6724
6724
  }, [l.tryAbandon]);
6725
- var u = Z(function(m) {
6725
+ var p = Z(function(m) {
6726
6726
  return Jl({
6727
6727
  lockAPI: l,
6728
6728
  registry: n,
6729
6729
  store: r,
6730
6730
  draggableId: m
6731
6731
  });
6732
- }, [l, n, r]), d = Z(function(m, x, D) {
6732
+ }, [l, n, r]), u = Z(function(m, x, D) {
6733
6733
  return Mh({
6734
6734
  lockAPI: l,
6735
6735
  registry: n,
@@ -6739,7 +6739,7 @@ function $h(e) {
6739
6739
  forceSensorStop: x,
6740
6740
  sourceEvent: D && D.sourceEvent ? D.sourceEvent : null
6741
6741
  });
6742
- }, [t, l, n, r]), p = Z(function(m) {
6742
+ }, [t, l, n, r]), d = Z(function(m) {
6743
6743
  return kh(t, m);
6744
6744
  }, [t]), f = Z(function(m) {
6745
6745
  var x = n.draggable.findById(m);
@@ -6748,14 +6748,14 @@ function $h(e) {
6748
6748
  l.isClaimed() && (l.tryAbandon(), r.getState().phase !== "IDLE" && r.dispatch(Ga()));
6749
6749
  }, [l, r]), g = Z(l.isClaimed, [l]), b = ve(function() {
6750
6750
  return {
6751
- canGetLock: u,
6752
- tryGetLock: d,
6753
- findClosestDraggableId: p,
6751
+ canGetLock: p,
6752
+ tryGetLock: u,
6753
+ findClosestDraggableId: d,
6754
6754
  findOptionsForDraggable: f,
6755
6755
  tryReleaseLock: v,
6756
6756
  isLockClaimed: g
6757
6757
  };
6758
- }, [u, d, p, f, v, g]);
6758
+ }, [p, u, d, f, v, g]);
6759
6759
  Sh(i);
6760
6760
  for (var h = 0; h < i.length; h++)
6761
6761
  i[h](b);
@@ -6777,10 +6777,10 @@ function Gh(e) {
6777
6777
  th();
6778
6778
  var l = Za(e), c = Z(function() {
6779
6779
  return Vh(l.current);
6780
- }, [l]), u = Hm(t), d = Km({
6780
+ }, [l]), p = Hm(t), u = Km({
6781
6781
  contextId: t,
6782
6782
  text: o
6783
- }), p = Fm(t, a), f = Z(function(_) {
6783
+ }), d = Fm(t, a), f = Z(function(_) {
6784
6784
  cr(i).dispatch(_);
6785
6785
  }, []), v = ve(function() {
6786
6786
  return ko({
@@ -6801,14 +6801,14 @@ function Gh(e) {
6801
6801
  }, f)));
6802
6802
  }, [b.scrollDroppable, f]), m = $m(t), x = ve(function() {
6803
6803
  return fm({
6804
- announce: u,
6804
+ announce: p,
6805
6805
  autoScroller: h,
6806
6806
  dimensionMarshal: b,
6807
6807
  focusMarshal: m,
6808
6808
  getResponders: c,
6809
- styleMarshal: p
6809
+ styleMarshal: d
6810
6810
  });
6811
- }, [u, h, b, m, c, p]);
6811
+ }, [p, h, b, m, c, d]);
6812
6812
  process.env.NODE_ENV !== "production" && i.current && i.current !== x && process.env.NODE_ENV !== "production" && Ne("unexpected store change"), i.current = x;
6813
6813
  var D = Z(function() {
6814
6814
  var _ = cr(i), T = _.getState();
@@ -6834,10 +6834,10 @@ function Gh(e) {
6834
6834
  contextId: t,
6835
6835
  canLift: C,
6836
6836
  isMovementAllowed: O,
6837
- dragHandleUsageInstructionsId: d,
6837
+ dragHandleUsageInstructionsId: u,
6838
6838
  registry: g
6839
6839
  };
6840
- }, [t, b, d, m, C, O, g]);
6840
+ }, [t, b, u, m, C, O, g]);
6841
6841
  return $h({
6842
6842
  contextId: t,
6843
6843
  store: x,
@@ -6941,7 +6941,7 @@ var to = function(t) {
6941
6941
  isFixedOnPage: r
6942
6942
  };
6943
6943
  }, eb = function(e) {
6944
- var t = e.descriptor, r = e.isEnabled, n = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, i = e.client, l = e.page, c = e.closest, u = function() {
6944
+ var t = e.descriptor, r = e.isEnabled, n = e.isCombineEnabled, a = e.isFixedOnPage, o = e.direction, i = e.client, l = e.page, c = e.closest, p = function() {
6945
6945
  if (!c)
6946
6946
  return null;
6947
6947
  var v = c.scrollSize, g = c.client, b = Ll({
@@ -6965,21 +6965,21 @@ var to = function(t) {
6965
6965
  }
6966
6966
  }
6967
6967
  };
6968
- }(), d = o === "vertical" ? La : hl, p = zt({
6968
+ }(), u = o === "vertical" ? La : hl, d = zt({
6969
6969
  page: l,
6970
6970
  withPlaceholder: null,
6971
- axis: d,
6972
- frame: u
6971
+ axis: u,
6972
+ frame: p
6973
6973
  }), f = {
6974
6974
  descriptor: t,
6975
6975
  isCombineEnabled: n,
6976
6976
  isFixedOnPage: a,
6977
- axis: d,
6977
+ axis: u,
6978
6978
  isEnabled: r,
6979
6979
  client: i,
6980
6980
  page: l,
6981
- frame: u,
6982
- subject: p
6981
+ frame: p,
6982
+ subject: d
6983
6983
  };
6984
6984
  return f;
6985
6985
  }, tb = function(t, r) {
@@ -6991,25 +6991,25 @@ var to = function(t) {
6991
6991
  right: l,
6992
6992
  bottom: i,
6993
6993
  left: o
6994
- }, u = Aa(c, n.border), d = Ta({
6995
- borderBox: u,
6994
+ }, p = Aa(c, n.border), u = Ta({
6995
+ borderBox: p,
6996
6996
  margin: n.margin,
6997
6997
  border: n.border,
6998
6998
  padding: n.padding
6999
6999
  });
7000
- return d;
7000
+ return u;
7001
7001
  }, rb = function(e) {
7002
- var t = e.ref, r = e.descriptor, n = e.env, a = e.windowScroll, o = e.direction, i = e.isDropDisabled, l = e.isCombineEnabled, c = e.shouldClipSubject, u = n.closestScrollable, d = tb(t, u), p = tn(d, a), f = function() {
7003
- if (!u)
7002
+ var t = e.ref, r = e.descriptor, n = e.env, a = e.windowScroll, o = e.direction, i = e.isDropDisabled, l = e.isCombineEnabled, c = e.shouldClipSubject, p = n.closestScrollable, u = tb(t, p), d = tn(u, a), f = function() {
7003
+ if (!p)
7004
7004
  return null;
7005
- var g = sl(u), b = {
7006
- scrollHeight: u.scrollHeight,
7007
- scrollWidth: u.scrollWidth
7005
+ var g = sl(p), b = {
7006
+ scrollHeight: p.scrollHeight,
7007
+ scrollWidth: p.scrollWidth
7008
7008
  };
7009
7009
  return {
7010
7010
  client: g,
7011
7011
  page: tn(g, a),
7012
- scroll: da(u),
7012
+ scroll: da(p),
7013
7013
  scrollSize: b,
7014
7014
  shouldClipSubject: c
7015
7015
  };
@@ -7019,8 +7019,8 @@ var to = function(t) {
7019
7019
  isCombineEnabled: l,
7020
7020
  isFixedOnPage: n.isFixedOnPage,
7021
7021
  direction: o,
7022
- client: d,
7023
- page: p,
7022
+ client: u,
7023
+ page: d,
7024
7024
  closest: f
7025
7025
  });
7026
7026
  return v;
@@ -7045,7 +7045,7 @@ function ob(e) {
7045
7045
  type: e.type,
7046
7046
  mode: e.mode
7047
7047
  };
7048
- }, [e.droppableId, e.mode, e.type]), c = U(l), u = ve(function() {
7048
+ }, [e.droppableId, e.mode, e.type]), c = U(l), p = ve(function() {
7049
7049
  return Be(function(w, y) {
7050
7050
  t.current || (process.env.NODE_ENV !== "production" ? N(!1, "Can only update scroll when dragging") : N());
7051
7051
  var C = {
@@ -7054,24 +7054,24 @@ function ob(e) {
7054
7054
  };
7055
7055
  o.updateDroppableScroll(l.id, C);
7056
7056
  });
7057
- }, [l.id, o]), d = Z(function() {
7057
+ }, [l.id, o]), u = Z(function() {
7058
7058
  var w = t.current;
7059
7059
  return !w || !w.env.closestScrollable ? Le : da(w.env.closestScrollable);
7060
- }, []), p = Z(function() {
7061
- var w = d();
7062
- u(w.x, w.y);
7063
- }, [d, u]), f = ve(function() {
7064
- return xr(p);
7065
- }, [p]), v = Z(function() {
7060
+ }, []), d = Z(function() {
7061
+ var w = u();
7062
+ p(w.x, w.y);
7063
+ }, [u, p]), f = ve(function() {
7064
+ return xr(d);
7065
+ }, [d]), v = Z(function() {
7066
7066
  var w = t.current, y = Gr(w);
7067
7067
  w && y || (process.env.NODE_ENV !== "production" ? N(!1, "Could not find scroll options while scrolling") : N());
7068
7068
  var C = w.scrollOptions;
7069
7069
  if (C.shouldPublishImmediately) {
7070
- p();
7070
+ d();
7071
7071
  return;
7072
7072
  }
7073
7073
  f();
7074
- }, [f, p]), g = Z(function(w, y) {
7074
+ }, [f, d]), g = Z(function(w, y) {
7075
7075
  t.current && (process.env.NODE_ENV !== "production" ? N(!1, "Cannot collect a droppable while a drag is occurring") : N());
7076
7076
  var C = i.current, O = C.getDroppableRef();
7077
7077
  O || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot collect without a droppable ref") : N());
@@ -7167,23 +7167,23 @@ var Di = {
7167
7167
  function lb(e) {
7168
7168
  var t = U(null), r = Z(function() {
7169
7169
  t.current && (clearTimeout(t.current), t.current = null);
7170
- }, []), n = e.animate, a = e.onTransitionEnd, o = e.onClose, i = e.contextId, l = L(e.animate === "open"), c = l[0], u = l[1];
7170
+ }, []), n = e.animate, a = e.onTransitionEnd, o = e.onClose, i = e.contextId, l = L(e.animate === "open"), c = l[0], p = l[1];
7171
7171
  F(function() {
7172
- return c ? n !== "open" ? (r(), u(!1), Gn) : t.current ? Gn : (t.current = setTimeout(function() {
7173
- t.current = null, u(!1);
7172
+ return c ? n !== "open" ? (r(), p(!1), Gn) : t.current ? Gn : (t.current = setTimeout(function() {
7173
+ t.current = null, p(!1);
7174
7174
  }), r) : Gn;
7175
7175
  }, [n, c, r]);
7176
- var d = Z(function(f) {
7176
+ var u = Z(function(f) {
7177
7177
  f.propertyName === "height" && (a(), n === "close" && o());
7178
- }, [n, o, a]), p = sb({
7178
+ }, [n, o, a]), d = sb({
7179
7179
  isAnimatingOpenOnMount: c,
7180
7180
  animate: e.animate,
7181
7181
  placeholder: e.placeholder
7182
7182
  });
7183
7183
  return le.createElement(e.placeholder.tagName, {
7184
- style: p,
7184
+ style: d,
7185
7185
  "data-rbd-placeholder-context-id": i,
7186
- onTransitionEnd: d,
7186
+ onTransitionEnd: u,
7187
7187
  ref: e.innerRef
7188
7188
  });
7189
7189
  }
@@ -7293,7 +7293,7 @@ var vb = function(e) {
7293
7293
  return t.forceShouldAnimate != null ? t.forceShouldAnimate : t.mode === "SNAP";
7294
7294
  };
7295
7295
  function bb(e) {
7296
- var t = e.dimension, r = t.client, n = e.offset, a = e.combineWith, o = e.dropping, i = !!a, l = hb(e), c = !!o, u = c ? sa.drop(n, i) : sa.moveTo(n), d = {
7296
+ var t = e.dimension, r = t.client, n = e.offset, a = e.combineWith, o = e.dropping, i = !!a, l = hb(e), c = !!o, p = c ? sa.drop(n, i) : sa.moveTo(n), u = {
7297
7297
  position: "fixed",
7298
7298
  top: r.marginBox.top,
7299
7299
  left: r.marginBox.left,
@@ -7301,12 +7301,12 @@ function bb(e) {
7301
7301
  width: r.borderBox.width,
7302
7302
  height: r.borderBox.height,
7303
7303
  transition: gb(l, o),
7304
- transform: u,
7304
+ transform: p,
7305
7305
  opacity: mb(i, c),
7306
7306
  zIndex: c ? Ni.dropAnimating : Ni.dragging,
7307
7307
  pointerEvents: "none"
7308
7308
  };
7309
- return d;
7309
+ return u;
7310
7310
  }
7311
7311
  function xb(e) {
7312
7312
  return {
@@ -7326,14 +7326,14 @@ function wb(e, t, r) {
7326
7326
  }, c = {
7327
7327
  x: o.marginBox.width,
7328
7328
  y: o.marginBox.height
7329
- }, u = {
7329
+ }, p = {
7330
7330
  descriptor: e,
7331
7331
  placeholder: l,
7332
7332
  displaceBy: c,
7333
7333
  client: o,
7334
7334
  page: i
7335
7335
  };
7336
- return u;
7336
+ return p;
7337
7337
  }
7338
7338
  function Db(e) {
7339
7339
  var t = Ja("draggable"), r = e.descriptor, n = e.registry, a = e.getDraggableRef, o = e.canDragInteractiveElements, i = e.shouldRespectForcePress, l = e.isEnabled, c = ve(function() {
@@ -7342,29 +7342,29 @@ function Db(e) {
7342
7342
  shouldRespectForcePress: i,
7343
7343
  isEnabled: l
7344
7344
  };
7345
- }, [o, l, i]), u = Z(function(v) {
7345
+ }, [o, l, i]), p = Z(function(v) {
7346
7346
  var g = a();
7347
7347
  return g || (process.env.NODE_ENV !== "production" ? N(!1, "Cannot get dimension when no ref is set") : N()), wb(r, g, v);
7348
- }, [r, a]), d = ve(function() {
7348
+ }, [r, a]), u = ve(function() {
7349
7349
  return {
7350
7350
  uniqueId: t,
7351
7351
  descriptor: r,
7352
7352
  options: c,
7353
- getDimension: u
7353
+ getDimension: p
7354
7354
  };
7355
- }, [r, u, c, t]), p = U(d), f = U(!0);
7355
+ }, [r, p, c, t]), d = U(u), f = U(!0);
7356
7356
  Ye(function() {
7357
- return n.draggable.register(p.current), function() {
7358
- return n.draggable.unregister(p.current);
7357
+ return n.draggable.register(d.current), function() {
7358
+ return n.draggable.unregister(d.current);
7359
7359
  };
7360
7360
  }, [n.draggable]), Ye(function() {
7361
7361
  if (f.current) {
7362
7362
  f.current = !1;
7363
7363
  return;
7364
7364
  }
7365
- var v = p.current;
7366
- p.current = d, n.draggable.update(d, v);
7367
- }, [d, n.draggable]);
7365
+ var v = d.current;
7366
+ d.current = u, n.draggable.update(u, v);
7367
+ }, [u, n.draggable]);
7368
7368
  }
7369
7369
  function Nb(e, t, r) {
7370
7370
  Br(function() {
@@ -7392,25 +7392,25 @@ function Sb(e) {
7392
7392
  t.current = _;
7393
7393
  }, []), n = Z(function() {
7394
7394
  return t.current;
7395
- }, []), a = on(bn), o = a.contextId, i = a.dragHandleUsageInstructionsId, l = a.registry, c = on(ro), u = c.type, d = c.droppableId, p = ve(function() {
7395
+ }, []), a = on(bn), o = a.contextId, i = a.dragHandleUsageInstructionsId, l = a.registry, c = on(ro), p = c.type, u = c.droppableId, d = ve(function() {
7396
7396
  return {
7397
7397
  id: e.draggableId,
7398
7398
  index: e.index,
7399
- type: u,
7400
- droppableId: d
7399
+ type: p,
7400
+ droppableId: u
7401
7401
  };
7402
- }, [e.draggableId, e.index, u, d]), f = e.children, v = e.draggableId, g = e.isEnabled, b = e.shouldRespectForcePress, h = e.canDragInteractiveElements, m = e.isClone, x = e.mapped, D = e.dropAnimationFinished;
7402
+ }, [e.draggableId, e.index, p, u]), f = e.children, v = e.draggableId, g = e.isEnabled, b = e.shouldRespectForcePress, h = e.canDragInteractiveElements, m = e.isClone, x = e.mapped, D = e.dropAnimationFinished;
7403
7403
  if (Nb(e, o, n), Eb(m), !m) {
7404
7404
  var w = ve(function() {
7405
7405
  return {
7406
- descriptor: p,
7406
+ descriptor: d,
7407
7407
  registry: l,
7408
7408
  getDraggableRef: n,
7409
7409
  canDragInteractiveElements: h,
7410
7410
  shouldRespectForcePress: b,
7411
7411
  isEnabled: g
7412
7412
  };
7413
- }, [p, l, n, h, b, g]);
7413
+ }, [d, l, n, h, b, g]);
7414
7414
  Db(w);
7415
7415
  }
7416
7416
  var y = ve(function() {
@@ -7439,14 +7439,14 @@ function Sb(e) {
7439
7439
  return k;
7440
7440
  }, [o, y, v, x, C, r]), S = ve(function() {
7441
7441
  return {
7442
- draggableId: p.id,
7443
- type: p.type,
7442
+ draggableId: d.id,
7443
+ type: d.type,
7444
7444
  source: {
7445
- index: p.index,
7446
- droppableId: p.droppableId
7445
+ index: d.index,
7446
+ droppableId: d.droppableId
7447
7447
  }
7448
7448
  };
7449
- }, [p.droppableId, p.id, p.index, p.type]);
7449
+ }, [d.droppableId, d.id, d.index, d.type]);
7450
7450
  return f(O, x.snapshot, S);
7451
7451
  }
7452
7452
  var tc = function(e, t) {
@@ -7476,26 +7476,26 @@ function _b() {
7476
7476
  combineWith: l,
7477
7477
  combineTargetFor: null
7478
7478
  };
7479
- }), r = Be(function(a, o, i, l, c, u, d) {
7479
+ }), r = Be(function(a, o, i, l, c, p, u) {
7480
7480
  return {
7481
7481
  mapped: {
7482
7482
  type: "DRAGGING",
7483
7483
  dropping: null,
7484
7484
  draggingOver: c,
7485
- combineWith: u,
7485
+ combineWith: p,
7486
7486
  mode: o,
7487
7487
  offset: a,
7488
7488
  dimension: i,
7489
- forceShouldAnimate: d,
7490
- snapshot: t(o, l, c, u, null)
7489
+ forceShouldAnimate: u,
7490
+ snapshot: t(o, l, c, p, null)
7491
7491
  }
7492
7492
  };
7493
7493
  }), n = function(o, i) {
7494
7494
  if (o.isDragging) {
7495
7495
  if (o.critical.draggable.id !== i.draggableId)
7496
7496
  return null;
7497
- var l = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], u = qe(o.impact), d = jb(o.impact), p = o.forceShouldAnimate;
7498
- return r(e(l.x, l.y), o.movementMode, c, i.isClone, u, d, p);
7497
+ var l = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], p = qe(o.impact), u = jb(o.impact), d = o.forceShouldAnimate;
7498
+ return r(e(l.x, l.y), o.movementMode, c, i.isClone, p, u, d);
7499
7499
  }
7500
7500
  if (o.phase === "DROP_ANIMATING") {
7501
7501
  var f = o.completed;
@@ -7565,26 +7565,26 @@ function Pb() {
7565
7565
  };
7566
7566
  }), n = function(l) {
7567
7567
  return l ? r(Le, l, !0) : null;
7568
- }, a = function(l, c, u, d) {
7569
- var p = u.displaced.visible[l], f = !!(d.inVirtualList && d.effected[l]), v = gn(u), g = v && v.draggableId === l ? c : null;
7570
- if (!p) {
7568
+ }, a = function(l, c, p, u) {
7569
+ var d = p.displaced.visible[l], f = !!(u.inVirtualList && u.effected[l]), v = gn(p), g = v && v.draggableId === l ? c : null;
7570
+ if (!d) {
7571
7571
  if (!f)
7572
7572
  return n(g);
7573
- if (u.displaced.invisible[l])
7573
+ if (p.displaced.invisible[l])
7574
7574
  return null;
7575
- var b = Qt(d.displacedBy.point), h = e(b.x, b.y);
7575
+ var b = Qt(u.displacedBy.point), h = e(b.x, b.y);
7576
7576
  return r(h, g, !0);
7577
7577
  }
7578
7578
  if (f)
7579
7579
  return n(g);
7580
- var m = u.displacedBy.point, x = e(m.x, m.y);
7581
- return r(x, g, p.shouldAnimate);
7580
+ var m = p.displacedBy.point, x = e(m.x, m.y);
7581
+ return r(x, g, d.shouldAnimate);
7582
7582
  }, o = function(l, c) {
7583
7583
  if (l.isDragging)
7584
7584
  return l.critical.draggable.id === c.draggableId ? null : a(c.draggableId, l.critical.draggable.id, l.impact, l.afterCritical);
7585
7585
  if (l.phase === "DROP_ANIMATING") {
7586
- var u = l.completed;
7587
- return u.result.draggableId === c.draggableId ? null : a(c.draggableId, u.result.draggableId, u.impact, u.afterCritical);
7586
+ var p = l.completed;
7587
+ return p.result.draggableId === c.draggableId ? null : a(c.draggableId, p.result.draggableId, p.impact, p.afterCritical);
7588
7588
  }
7589
7589
  return null;
7590
7590
  };
@@ -7618,7 +7618,7 @@ function kb(e) {
7618
7618
  function Bb(e) {
7619
7619
  var t = Q(bn);
7620
7620
  t || (process.env.NODE_ENV !== "production" ? N(!1, "Could not find app context") : N());
7621
- var r = t.contextId, n = t.isMovementAllowed, a = U(null), o = U(null), i = e.children, l = e.droppableId, c = e.type, u = e.mode, d = e.direction, p = e.ignoreContainerClipping, f = e.isDropDisabled, v = e.isCombineEnabled, g = e.snapshot, b = e.useClone, h = e.updateViewportMaxScroll, m = e.getContainerForClone, x = Z(function() {
7621
+ var r = t.contextId, n = t.isMovementAllowed, a = U(null), o = U(null), i = e.children, l = e.droppableId, c = e.type, p = e.mode, u = e.direction, d = e.ignoreContainerClipping, f = e.isDropDisabled, v = e.isCombineEnabled, g = e.snapshot, b = e.useClone, h = e.updateViewportMaxScroll, m = e.getContainerForClone, x = Z(function() {
7622
7622
  return a.current;
7623
7623
  }, []), D = Z(function(G) {
7624
7624
  a.current = G;
@@ -7640,11 +7640,11 @@ function Bb(e) {
7640
7640
  ob({
7641
7641
  droppableId: l,
7642
7642
  type: c,
7643
- mode: u,
7644
- direction: d,
7643
+ mode: p,
7644
+ direction: u,
7645
7645
  isDropDisabled: f,
7646
7646
  isCombineEnabled: v,
7647
- ignoreContainerClipping: p,
7647
+ ignoreContainerClipping: d,
7648
7648
  getDroppableRef: x
7649
7649
  });
7650
7650
  var O = le.createElement(vb, {
@@ -7721,12 +7721,12 @@ var Hn = function(t, r) {
7721
7721
  droppableId: i.droppableId
7722
7722
  }
7723
7723
  };
7724
- }), a = Be(function(i, l, c, u, d, p) {
7725
- var f = d.descriptor.id, v = d.descriptor.droppableId === i;
7724
+ }), a = Be(function(i, l, c, p, u, d) {
7725
+ var f = u.descriptor.id, v = u.descriptor.droppableId === i;
7726
7726
  if (v) {
7727
- var g = p ? {
7728
- render: p,
7729
- dragging: n(d.descriptor)
7727
+ var g = d ? {
7728
+ render: d,
7729
+ dragging: n(u.descriptor)
7730
7730
  } : null, b = {
7731
7731
  isDraggingOver: c,
7732
7732
  draggingOverWith: c ? f : null,
@@ -7734,7 +7734,7 @@ var Hn = function(t, r) {
7734
7734
  isUsingPlaceholder: !0
7735
7735
  };
7736
7736
  return {
7737
- placeholder: d.placeholder,
7737
+ placeholder: u.placeholder,
7738
7738
  shouldAnimatePlaceholder: !1,
7739
7739
  snapshot: b,
7740
7740
  useClone: g
@@ -7742,7 +7742,7 @@ var Hn = function(t, r) {
7742
7742
  }
7743
7743
  if (!l)
7744
7744
  return r;
7745
- if (!u)
7745
+ if (!p)
7746
7746
  return t;
7747
7747
  var h = {
7748
7748
  isDraggingOver: c,
@@ -7751,32 +7751,32 @@ var Hn = function(t, r) {
7751
7751
  isUsingPlaceholder: !0
7752
7752
  };
7753
7753
  return {
7754
- placeholder: d.placeholder,
7754
+ placeholder: u.placeholder,
7755
7755
  shouldAnimatePlaceholder: !0,
7756
7756
  snapshot: h,
7757
7757
  useClone: null
7758
7758
  };
7759
7759
  }), o = function(l, c) {
7760
- var u = c.droppableId, d = c.type, p = !c.isDropDisabled, f = c.renderClone;
7760
+ var p = c.droppableId, u = c.type, d = !c.isDropDisabled, f = c.renderClone;
7761
7761
  if (l.isDragging) {
7762
7762
  var v = l.critical;
7763
- if (!Hn(d, v))
7763
+ if (!Hn(u, v))
7764
7764
  return r;
7765
- var g = Ei(v, l.dimensions), b = qe(l.impact) === u;
7766
- return a(u, p, b, b, g, f);
7765
+ var g = Ei(v, l.dimensions), b = qe(l.impact) === p;
7766
+ return a(p, d, b, b, g, f);
7767
7767
  }
7768
7768
  if (l.phase === "DROP_ANIMATING") {
7769
7769
  var h = l.completed;
7770
- if (!Hn(d, h.critical))
7770
+ if (!Hn(u, h.critical))
7771
7771
  return r;
7772
7772
  var m = Ei(h.critical, l.dimensions);
7773
- return a(u, p, rc(h.result) === u, qe(h.impact) === u, m, f);
7773
+ return a(p, d, rc(h.result) === p, qe(h.impact) === p, m, f);
7774
7774
  }
7775
7775
  if (l.phase === "IDLE" && l.completed && !l.shouldFlush) {
7776
7776
  var x = l.completed;
7777
- if (!Hn(d, x.critical))
7777
+ if (!Hn(u, x.critical))
7778
7778
  return r;
7779
- var D = qe(x.impact) === u, w = !!(x.impact.at && x.impact.at.type === "COMBINE"), y = x.critical.droppable.id === u;
7779
+ var D = qe(x.impact) === p, w = !!(x.impact.at && x.impact.at.type === "COMBINE"), y = x.critical.droppable.id === p;
7780
7780
  return D ? w ? t : r : y ? t : r;
7781
7781
  }
7782
7782
  return r;
@@ -7945,7 +7945,7 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
7945
7945
  selected: lx,
7946
7946
  "default-indicator": "_default-indicator_14f56_71",
7947
7947
  defaultIndicator: cx
7948
- }, dx = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: u, placeholder: d, ImgComponent: p = cc, onChangeOrder: f }) => {
7948
+ }, dx = ({ show: e, onClose: t, photos: r, defaultIndex: n, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: p, placeholder: u, ImgComponent: d = cc, onChangeOrder: f }) => {
7949
7949
  const v = qd(), [g, b] = L(r);
7950
7950
  F(() => {
7951
7951
  b(r);
@@ -8002,21 +8002,21 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8002
8002
  g.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(ae, { variant: "body", children: o ?? "No photos available" }) }),
8003
8003
  x && /* @__PURE__ */ s.jsxs("div", { className: We.photoContainer, children: [
8004
8004
  /* @__PURE__ */ s.jsx("div", { role: D ? "button" : void 0, className: j("align-items-start", We.navButton), onClick: () => D && m((S) => S - 1), children: D && /* @__PURE__ */ s.jsx(xa, { style: { fontSize: "40px" } }) }),
8005
- /* @__PURE__ */ s.jsx(p, { src: x.lgSrc, alt: x.alt, className: j("rounded", We.photo), baseUrl: c, customToken: u, placeholder: d }),
8005
+ /* @__PURE__ */ s.jsx(d, { src: x.lgSrc, alt: x.alt, className: j("rounded", We.photo), baseUrl: c, customToken: p, placeholder: u }),
8006
8006
  /* @__PURE__ */ s.jsx("div", { role: w ? "button" : void 0, className: j("align-items-end", We.navButton), onClick: () => w && m((S) => S + 1), children: w && /* @__PURE__ */ s.jsx(ya, { style: { fontSize: "40px" } }) })
8007
8007
  ] }),
8008
8008
  /* @__PURE__ */ s.jsx(Hh, { onDragEnd: O, children: /* @__PURE__ */ s.jsx(Qb, { droppableId: "droppable", direction: "horizontal", children: (S) => /* @__PURE__ */ s.jsxs("div", { ...S.droppableProps, ref: S.innerRef, className: We.photosPreview, children: [
8009
8009
  g.map((_, T) => /* @__PURE__ */ s.jsx(kb, { draggableId: _.id, index: T, isDragDisabled: f === void 0, children: v((k) => /* @__PURE__ */ s.jsxs("div", { ref: k.innerRef, ...k.draggableProps, ...k.dragHandleProps, role: "button", onClick: () => m(T), className: j(We.lightboxDraggablePhoto), children: [
8010
- /* @__PURE__ */ s.jsx(p, { role: T !== h ? "button" : void 0, src: _.smSrc, alt: _.alt, className: j("rounded", We.photo, {
8010
+ /* @__PURE__ */ s.jsx(d, { role: T !== h ? "button" : void 0, src: _.smSrc, alt: _.alt, className: j("rounded", We.photo, {
8011
8011
  [We.selected]: T === h
8012
- }), baseUrl: c, customToken: u, placeholder: d }, _.id),
8012
+ }), baseUrl: c, customToken: p, placeholder: u }, _.id),
8013
8013
  _.isDefault && /* @__PURE__ */ s.jsx("div", { className: j("text-primary", We.defaultIndicator), children: /* @__PURE__ */ s.jsx(vd, {}) })
8014
8014
  ] })) }, _.id)),
8015
8015
  S.placeholder
8016
8016
  ] }) }) })
8017
8017
  ] }) })
8018
8018
  ] });
8019
- }, ux = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: n, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c = cc, noLightboxOnlyButtonOnEmpty: u = !1, hideLightbox: d = !1, onChangeOrder: p }) => {
8019
+ }, ux = ({ photos: e, onUploadPhotos: t, uploadPhotosText: r, noPhotosText: n, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c = cc, noLightboxOnlyButtonOnEmpty: p = !1, hideLightbox: u = !1, onChangeOrder: d }) => {
8020
8020
  const [f, v] = L(null), g = f !== null ? e[f] : null, [b, h] = L(!1);
8021
8021
  return F(() => {
8022
8022
  if (e.length === 0) {
@@ -8025,7 +8025,7 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8025
8025
  }
8026
8026
  const m = e.findIndex((x) => x.isDefault);
8027
8027
  v(m > -1 ? m : 0);
8028
- }, [e]), !g && t && u ? /* @__PURE__ */ s.jsx(Us, { accept: ".jpg,.jpeg,.png", onUpload: (m) => {
8028
+ }, [e]), !g && t && p ? /* @__PURE__ */ s.jsx(Us, { accept: ".jpg,.jpeg,.png", onUpload: (m) => {
8029
8029
  m.length > 0 && t(Array.from(m));
8030
8030
  }, icon: /* @__PURE__ */ s.jsx(is, { style: { fontSize: 18 } }), multiple: !0, children: r ?? null }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
8031
8031
  g ? /* @__PURE__ */ s.jsxs("div", { role: "button", className: "w-100 position-relative", onClick: () => h(!0), children: [
@@ -8038,11 +8038,11 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8038
8038
  background: "rgba(105,105,105,0.5)"
8039
8039
  }, children: /* @__PURE__ */ s.jsx(gd, { fontSize: 24 }) })
8040
8040
  ] }) : /* @__PURE__ */ s.jsx(Et, { text: r ?? "", placement: "left", children: /* @__PURE__ */ s.jsx("div", { role: "button", className: j("rounded p-3 d-flex justify-content-center"), onClick: () => h(!0), children: /* @__PURE__ */ s.jsx("img", { src: l, alt: "placeholder", className: "rounded w-25" }) }) }),
8041
- /* @__PURE__ */ s.jsx(dx, { show: b && !d, onClose: () => h(!1), photos: e, defaultIndex: f ?? 0, uploadPhotosText: r, noPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c, onChangeOrder: p })
8041
+ /* @__PURE__ */ s.jsx(dx, { show: b && !u, onClose: () => h(!1), photos: e, defaultIndex: f ?? 0, uploadPhotosText: r, noPhotosText: n, onUploadPhotos: t, photoActions: a, baseUrl: o, customToken: i, placeholder: l, ImgComponent: c, onChangeOrder: d })
8042
8042
  ] });
8043
8043
  }, Uw = ({ children: e }) => {
8044
- var c, u, d;
8045
- const { useMsal: t, msalScopes: r, msalExtraScopes: n } = Q(md), { isAuthenticated: a } = hd(), { userLoginState: o } = Q(_r), i = o.state === bd.LOGGING_IN, l = o.user && ((c = o.user) == null ? void 0 : c.permissions) && ((d = (u = o.user) == null ? void 0 : u.permissions) == null ? void 0 : d.length) > 0;
8044
+ var c, p, u;
8045
+ const { useMsal: t, msalScopes: r, msalExtraScopes: n } = Q(md), { isAuthenticated: a } = hd(), { userLoginState: o } = Q(_r), i = o.state === bd.LOGGING_IN, l = o.user && ((c = o.user) == null ? void 0 : c.permissions) && ((u = (p = o.user) == null ? void 0 : p.permissions) == null ? void 0 : u.length) > 0;
8046
8046
  return t ? /* @__PURE__ */ s.jsx($d, { interactionType: Fd.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: n }, children: i || !a() ? /* @__PURE__ */ s.jsx(po, {}) : o.user ? l ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(Mr, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(Mr, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ s.jsx(po, {}) : !a() || !o.user ? /* @__PURE__ */ s.jsx(Mr, { to: "/login", replace: !0 }) : l ? e : /* @__PURE__ */ s.jsx(Mr, { to: "/user-not-permitted", replace: !0 });
8047
8047
  }, px = "_item_z9z4m_1", fx = "_level-success_z9z4m_4", vx = "_level-info_z9z4m_10", gx = "_level-warning_z9z4m_16", mx = "_level-danger_z9z4m_22", hx = "_type-icon_z9z4m_28", zn = {
8048
8048
  item: px,
@@ -8119,28 +8119,28 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8119
8119
  /* @__PURE__ */ s.jsx("div", { className: j("text-primary", Pt.stepIcon), children: t.icon ?? /* @__PURE__ */ s.jsx(xd, {}) })
8120
8120
  ] }) })
8121
8121
  ] }, r)) }), _x = (e, t, r, n = !0) => {
8122
- const a = Nt({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = L(!1), [l, c] = L(null), u = R(async (d) => {
8122
+ const a = Nt({ silent: n, differentBaseUrl: t, customToken: r }), [o, i] = L(!1), [l, c] = L(null), p = R(async (u) => {
8123
8123
  i(!0), c(null), a.get(e, {
8124
- signal: d,
8124
+ signal: u,
8125
8125
  responseType: "blob"
8126
- }).then((p) => {
8127
- i(!1), c(p.data);
8126
+ }).then((d) => {
8127
+ i(!1), c(d.data);
8128
8128
  }).catch(() => {
8129
8129
  i(!1), c(null);
8130
8130
  });
8131
8131
  }, [a, e]);
8132
8132
  return F(() => {
8133
- const d = new AbortController();
8134
- return u(d.signal), () => {
8135
- d.abort();
8133
+ const u = new AbortController();
8134
+ return p(u.signal), () => {
8135
+ u.abort();
8136
8136
  };
8137
- }, [u]), { data: l, setData: c, reloadData: u, isLoading: o };
8137
+ }, [p]), { data: l, setData: c, reloadData: p, isLoading: o };
8138
8138
  }, Ii = ({ src: e, alt: t, baseUrl: r, customToken: n, placeholder: a, ...o }) => {
8139
8139
  const { data: i } = _x(e, r, n), [l, c] = L(null);
8140
8140
  return F(() => {
8141
- let u = null;
8142
- return i !== null ? (u = URL.createObjectURL(i), c(u)) : c(null), () => {
8143
- u !== null && URL.revokeObjectURL(u);
8141
+ let p = null;
8142
+ return i !== null ? (p = URL.createObjectURL(i), c(p)) : c(null), () => {
8143
+ p !== null && URL.revokeObjectURL(p);
8144
8144
  };
8145
8145
  }, [i]), l === null && !a ? null : /* @__PURE__ */ s.jsx("img", { ...o, alt: t ?? "", src: l ?? a });
8146
8146
  }, dc = ({ currentSelection: e, selectedItemNavigateTo: t, children: r }) => {
@@ -8148,15 +8148,15 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8148
8148
  return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: r });
8149
8149
  const n = t(e);
8150
8150
  return /* @__PURE__ */ s.jsx(nt, { to: n, className: "luminus-input-container position-relative w-100 text-decoration-none", children: r });
8151
- }, Ox = ({ InputContainer: e = Lt, label: t, value: r, onChange: n, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: u, hint: d }) => {
8152
- const p = U(null);
8151
+ }, Ox = ({ InputContainer: e = Lt, label: t, value: r, onChange: n, hidden: a, disabled: o, className: i, type: l, withoutLabel: c, indeterminate: p, hint: u }) => {
8152
+ const d = U(null);
8153
8153
  return F(() => {
8154
- p.current && (p.current.indeterminate = u ?? !1);
8155
- }, [p, u]), /* @__PURE__ */ s.jsx(e, { isForCheckInput: !0, hidden: a, label: t ?? "", withoutLabel: c, className: i, hint: d, children: /* @__PURE__ */ s.jsx(_e.Check, { ref: p, id: `check-${t}`, type: l ?? "checkbox", label: t ?? "", checked: r, onChange: (f) => {
8154
+ d.current && (d.current.indeterminate = p ?? !1);
8155
+ }, [d, p]), /* @__PURE__ */ s.jsx(e, { isForCheckInput: !0, hidden: a, label: t ?? "", withoutLabel: c, className: i, hint: u, children: /* @__PURE__ */ s.jsx(_e.Check, { ref: d, id: `check-${t}`, type: l ?? "checkbox", label: t ?? "", checked: r, onChange: (f) => {
8156
8156
  var v;
8157
8157
  n && n(((v = f.target) == null ? void 0 : v.checked) ?? !1);
8158
8158
  }, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
8159
- }, wt = ({ InputContainer: e = Lt, type: t, value: r, onChange: n, debounceMs: a, label: o, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: p, clearValue: f, list: v, className: g, step: b, minLength: h, maxLength: m, noSelectOnFocus: x, hint: D, onConfirm: w }) => {
8159
+ }, wt = ({ InputContainer: e = Lt, type: t, value: r, onChange: n, debounceMs: a, label: o, withoutLabel: i, placeholder: l, size: c, hidden: p, disabled: u, showClearIcon: d, clearValue: f, list: v, className: g, step: b, minLength: h, maxLength: m, noSelectOnFocus: x, hint: D, onConfirm: w }) => {
8160
8160
  const y = t === "number", C = R(() => {
8161
8161
  if (!n)
8162
8162
  return;
@@ -8185,11 +8185,11 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8185
8185
  _(r === null ? "" : r.toString());
8186
8186
  }, [r]);
8187
8187
  const [E, V] = L(!1), X = yd(t, r ? r.toString() ?? null : null, E);
8188
- return /* @__PURE__ */ s.jsxs(e, { withoutLabel: i, label: o ?? "", hidden: u, className: g, hint: D, children: [
8189
- /* @__PURE__ */ s.jsx(_e.Control, { type: X, placeholder: l ?? o, size: c, value: a ? S : (r == null ? void 0 : r.toString()) ?? "", onChange: k, className: g ?? "", hidden: u, disabled: d ?? !1, list: v, onFocus: (P) => {
8188
+ return /* @__PURE__ */ s.jsxs(e, { withoutLabel: i, label: o ?? "", hidden: p, className: g, hint: D, children: [
8189
+ /* @__PURE__ */ s.jsx(_e.Control, { type: X, placeholder: l ?? o, size: c, value: a ? S : (r == null ? void 0 : r.toString()) ?? "", onChange: k, className: g ?? "", hidden: p, disabled: u ?? !1, list: v, onFocus: (P) => {
8190
8190
  V(!0), !x && P.target.select();
8191
8191
  }, onBlur: () => V(!1), onKeyDown: G, step: b, minLength: h, maxLength: m }),
8192
- p && r !== null && n && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
8192
+ d && r !== null && n && !u && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
8193
8193
  ] });
8194
8194
  }, yn = ({ value: e, MiniDetailComponent: t, children: r, miniDetailPlacement: n }) => !e || !t ? r : /* @__PURE__ */ s.jsx(t, { id: e.toString(), placement: n, children: r }), sn = ({
8195
8195
  InputContainer: e = Lt,
@@ -8201,9 +8201,9 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8201
8201
  isNumber: i,
8202
8202
  size: l,
8203
8203
  hidden: c,
8204
- disabled: u,
8205
- noSortOptions: d,
8206
- className: p,
8204
+ disabled: p,
8205
+ noSortOptions: u,
8206
+ className: d,
8207
8207
  suffixIdToName: f,
8208
8208
  noEmptyOption: v,
8209
8209
  // it will still add the empty option if there is no value provided or value is empty string or null
@@ -8225,28 +8225,28 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8225
8225
  return g !== void 0 && t !== void 0 && t !== null && (I.some((B) => B.id === t) || I.push({ id: t, name: g })), I.map((B) => ({
8226
8226
  id: B.id,
8227
8227
  name: G(B)
8228
- })).filter((B) => ut(B.name, S)).sort((B, Y) => d ? 0 : (B.name ?? "").localeCompare(Y.name ?? ""));
8229
- }, [r, d, S, G, g, t]), V = R((I) => {
8228
+ })).filter((B) => ut(B.name, S)).sort((B, Y) => u ? 0 : (B.name ?? "").localeCompare(Y.name ?? ""));
8229
+ }, [r, u, S, G, g, t]), V = R((I) => {
8230
8230
  var B;
8231
8231
  n && n((I == null ? void 0 : I.id) === void 0 || (I == null ? void 0 : I.id) === null ? null : i ? Number(I.id) : (B = I.id) == null ? void 0 : B.toString());
8232
8232
  }, [n, i]), X = R((I) => {
8233
8233
  O(!1), V(I);
8234
8234
  }, [V]), P = U(null);
8235
- return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, inputContainerClassName: j({ "luminus-dropdown-select-open": C }), className: p, hint: h, children: [
8235
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, inputContainerClassName: j({ "luminus-dropdown-select-open": C }), className: d, hint: h, children: [
8236
8236
  /* @__PURE__ */ s.jsx(yn, { value: t, MiniDetailComponent: D, miniDetailPlacement: w, children: /* @__PURE__ */ s.jsxs(_e.Select, { ref: P, size: l, value: t ?? "", onMouseDown: (I) => {
8237
8237
  I.currentTarget.focus(), I.preventDefault();
8238
8238
  }, onClick: () => {
8239
- !u && O(!0);
8239
+ !p && O(!0);
8240
8240
  }, onChange: () => {
8241
8241
  }, className: j("w-100", {
8242
- "luminus-dropdown-picker-disabled": u
8242
+ "luminus-dropdown-picker-disabled": p
8243
8243
  }), hidden: c, children: [
8244
8244
  v && !(t == null || t === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
8245
8245
  t != null && /* @__PURE__ */ s.jsx("option", { value: t, children: G(k) })
8246
8246
  ] }) }),
8247
- P.current && /* @__PURE__ */ s.jsx(fn, { show: C, onCancel: () => O(!1), items: E, currentSelection: k ?? null, onSelectionChange: X, onSearchQueryChange: T, texts: y, disabled: u, inputRef: P, autoHideSearch: !0, allItemsLength: r.length, itemsNameWidth: b, addNewOptionPath: m, refreshOptions: x })
8247
+ P.current && /* @__PURE__ */ s.jsx(fn, { show: C, onCancel: () => O(!1), items: E, currentSelection: k ?? null, onSelectionChange: X, onSearchQueryChange: T, texts: y, disabled: p, inputRef: P, autoHideSearch: !0, allItemsLength: r.length, itemsNameWidth: b, addNewOptionPath: m, refreshOptions: x })
8248
8248
  ] }) });
8249
- }, qw = ({ InputContainer: e = Lt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: u, size: d, dropdownItemsNameWidth: p, additionalColumns: f, hidden: v, disabled: g, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon: D, hint: w, addNewOptionPath: y, refreshOptions: C, MiniDetailComponent: O, miniDetailPlacement: S }) => {
8249
+ }, qw = ({ InputContainer: e = Lt, items: t, selectedItemNavigateTo: r, onSearchQueryChange: n, texts: a, isLoading: o, value: i, onSelect: l, label: c, withoutLabel: p, size: u, dropdownItemsNameWidth: d, additionalColumns: f, hidden: v, disabled: g, displayIdAsName: b, CustomOnChangeComponent: h, className: m, archiveColumn: x, icon: D, hint: w, addNewOptionPath: y, refreshOptions: C, MiniDetailComponent: O, miniDetailPlacement: S }) => {
8250
8250
  const [_, T] = L(!1), k = R((I) => {
8251
8251
  l && l(I);
8252
8252
  }, [l]), G = R((I) => {
@@ -8255,14 +8255,14 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8255
8255
  var I, B;
8256
8256
  return b ? ((I = i == null ? void 0 : i.id) == null ? void 0 : I.toString()) ?? "" : i != null && i.name && i.name.length > 0 ? i.name : ((B = i == null ? void 0 : i.id) == null ? void 0 : B.toString()) ?? "";
8257
8257
  }, [i, b]);
8258
- return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: u, label: c ?? "", hidden: v, inputContainerClassName: j({ "luminus-dropdown-select-open": _ }), className: m, hint: w, children: [
8258
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { withoutLabel: p, label: c ?? "", hidden: v, inputContainerClassName: j({ "luminus-dropdown-select-open": _ }), className: m, hint: w, children: [
8259
8259
  /* @__PURE__ */ s.jsxs(dc, { currentSelection: i, selectedItemNavigateTo: r, children: [
8260
8260
  b && (i == null ? void 0 : i.name) && /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: i.name }),
8261
8261
  /* @__PURE__ */ s.jsx(yn, { value: (i == null ? void 0 : i.id) ?? null, MiniDetailComponent: O, miniDetailPlacement: S, children: /* @__PURE__ */ s.jsxs(
8262
8262
  _e.Select,
8263
8263
  {
8264
8264
  ref: E,
8265
- size: d,
8265
+ size: u,
8266
8266
  value: (i == null ? void 0 : i.id) ?? "",
8267
8267
  onMouseDown: (I) => {
8268
8268
  I.currentTarget.focus(), I.preventDefault();
@@ -8290,9 +8290,9 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8290
8290
  h ?? null
8291
8291
  ] }) : null
8292
8292
  ] }),
8293
- E.current && /* @__PURE__ */ s.jsx(fn, { show: _, onCancel: () => T(!1), items: t, currentSelection: i, onSelectionChange: G, onSearchQueryChange: n, texts: a, itemsNameWidth: p, additionalColumns: f, isLoading: o, disabled: g, inputRef: E, archiveColumn: x, displayIdAsName: b, addNewOptionPath: y, refreshOptions: C })
8293
+ E.current && /* @__PURE__ */ s.jsx(fn, { show: _, onCancel: () => T(!1), items: t, currentSelection: i, onSelectionChange: G, onSearchQueryChange: n, texts: a, itemsNameWidth: d, additionalColumns: f, isLoading: o, disabled: g, inputRef: E, archiveColumn: x, displayIdAsName: b, addNewOptionPath: y, refreshOptions: C })
8294
8294
  ] }) });
8295
- }, Yw = ({ InputContainer: e = Lt, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: p, minLength: f, maxLength: v, className: g, hint: b }) => {
8295
+ }, Yw = ({ InputContainer: e = Lt, value: t, onChange: r, label: n, size: a, showClearIcon: o, clearValue: i, hidden: l, disabled: c, rows: p, withoutLabel: u, debounceMs: d, minLength: f, maxLength: v, className: g, hint: b }) => {
8296
8296
  const h = R(() => {
8297
8297
  if (!r)
8298
8298
  return;
@@ -8304,27 +8304,27 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8304
8304
  }, [r]), y = R((C) => {
8305
8305
  var S;
8306
8306
  const O = (S = C.target) == null ? void 0 : S.value;
8307
- if (!p) {
8307
+ if (!d) {
8308
8308
  w(O);
8309
8309
  return;
8310
8310
  }
8311
8311
  D(O), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
8312
8312
  w(O);
8313
- }, p);
8314
- }, [p, w]);
8313
+ }, d);
8314
+ }, [d, w]);
8315
8315
  return F(() => {
8316
8316
  D(t === null ? "" : t.toString());
8317
- }, [t]), /* @__PURE__ */ s.jsxs(e, { label: n ?? "", hidden: l, withoutLabel: d, className: g, isForTextAreaInput: !0, hint: b, children: [
8318
- /* @__PURE__ */ s.jsx(_e.Control, { as: "textarea", size: a, value: p ? x : t ?? "", onChange: y, hidden: l, disabled: c, rows: u ?? 2, className: "w-100", minLength: f, maxLength: v }),
8317
+ }, [t]), /* @__PURE__ */ s.jsxs(e, { label: n ?? "", hidden: l, withoutLabel: u, className: g, isForTextAreaInput: !0, hint: b, children: [
8318
+ /* @__PURE__ */ s.jsx(_e.Control, { as: "textarea", size: a, value: d ? x : t ?? "", onChange: y, hidden: l, disabled: c, rows: p ?? 2, className: "w-100", minLength: f, maxLength: v }),
8319
8319
  o && t && r && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: h, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
8320
8320
  ] });
8321
- }, Kw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: p, className: f, step: v, stepperStep: g = 1, min: b, max: h, hint: m }) => {
8321
+ }, Kw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: u, clearValue: d, className: f, step: v, stepperStep: g = 1, min: b, max: h, hint: m }) => {
8322
8322
  const x = R(() => {
8323
8323
  if (!r)
8324
8324
  return;
8325
- const S = p ?? null;
8325
+ const S = d ?? null;
8326
8326
  r(S ? Number(S) : null);
8327
- }, [p, r]), D = U(null), [w, y] = L((t == null ? void 0 : t.toString()) ?? ""), C = R((S) => {
8327
+ }, [d, r]), D = U(null), [w, y] = L((t == null ? void 0 : t.toString()) ?? ""), C = R((S) => {
8328
8328
  const _ = S;
8329
8329
  r && r(_ == null || _ === "" ? null : dr(Number(_), b, h));
8330
8330
  }, [h, b, r]), O = R((S) => {
@@ -8341,14 +8341,14 @@ const Xb = "_backdrop_3huvf_1", Jb = "_show_3huvf_11", Ci = {
8341
8341
  return F(() => {
8342
8342
  y(t === null ? "" : dr(t, b, h).toString());
8343
8343
  }, [h, b, t]), /* @__PURE__ */ s.jsx(e, { withoutLabel: o, label: a ?? "", hidden: c, hint: m, className: f, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
8344
- /* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? w : t ?? "", onChange: O, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: u ?? !1, step: v }),
8345
- /* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (S) => {
8344
+ /* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: i ?? a, size: l, value: n ? w : t ?? "", onChange: O, className: `luminus-numeric-stepper ${f ?? ""}`, hidden: c, disabled: p ?? !1, step: v }),
8345
+ /* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !p && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (S) => {
8346
8346
  S.preventDefault(), S.stopPropagation(), C(((t ?? 0) - g).toString());
8347
8347
  }, children: /* @__PURE__ */ s.jsx(cs, {}) }) }),
8348
- /* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (S) => {
8348
+ /* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !p && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (S) => {
8349
8349
  S.preventDefault(), S.stopPropagation(), C(((t ?? 0) + g).toString());
8350
8350
  }, children: /* @__PURE__ */ s.jsx(ds, {}) }) }),
8351
- d && t && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
8351
+ u && t && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: x, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
8352
8352
  ] }) });
8353
8353
  };
8354
8354
  function uc(e, t) {
@@ -8455,12 +8455,12 @@ function gc(e) {
8455
8455
  function _i(e, t, r) {
8456
8456
  if (["", "-"].indexOf(e) !== -1)
8457
8457
  return e;
8458
- var n = (e.indexOf(".") !== -1 || r) && t, a = no(e), o = a.beforeDecimal, i = a.afterDecimal, l = a.hasNegation, c = parseFloat("0." + (i || "0")), u = i.length <= t ? "0." + i : c.toFixed(t), d = u.split("."), p = o;
8459
- o && Number(d[0]) && (p = o.split("").reverse().reduce(function(b, h, m) {
8458
+ var n = (e.indexOf(".") !== -1 || r) && t, a = no(e), o = a.beforeDecimal, i = a.afterDecimal, l = a.hasNegation, c = parseFloat("0." + (i || "0")), p = i.length <= t ? "0." + i : c.toFixed(t), u = p.split("."), d = o;
8459
+ o && Number(u[0]) && (d = o.split("").reverse().reduce(function(b, h, m) {
8460
8460
  return b.length > m ? (Number(b[0]) + Number(h)).toString() + b.substring(1, b.length) : h + b;
8461
- }, d[0]));
8462
- var f = vc(d[1] || "", t, r), v = l ? "-" : "", g = n ? "." : "";
8463
- return "" + v + p + g + f;
8461
+ }, u[0]));
8462
+ var f = vc(u[1] || "", t, r), v = l ? "-" : "", g = n ? "." : "";
8463
+ return "" + v + d + g + f;
8464
8464
  }
8465
8465
  function kt(e, t) {
8466
8466
  if (e.value = e.value, e !== null) {
@@ -8519,9 +8519,9 @@ function Gx(e, t, r, n, a, o, i) {
8519
8519
  return w;
8520
8520
  }), c = e.slice(0, l);
8521
8521
  !t && !r.startsWith(c) && (t = c, r = c + r, n = n + c.length);
8522
- for (var u = r.length, d = e.length, p = {}, f = new Array(u), v = 0; v < u; v++) {
8522
+ for (var p = r.length, u = e.length, d = {}, f = new Array(p), v = 0; v < p; v++) {
8523
8523
  f[v] = -1;
8524
- for (var g = 0, b = d; g < b; g++) {
8524
+ for (var g = 0, b = u; g < b; g++) {
8525
8525
  var h = i({
8526
8526
  currentValue: r,
8527
8527
  lastValue: t,
@@ -8529,15 +8529,15 @@ function Gx(e, t, r, n, a, o, i) {
8529
8529
  currentValueIndex: v,
8530
8530
  formattedValueIndex: g
8531
8531
  });
8532
- if (h && p[g] !== !0) {
8533
- f[v] = g, p[g] = !0;
8532
+ if (h && d[g] !== !0) {
8533
+ f[v] = g, d[g] = !0;
8534
8534
  break;
8535
8535
  }
8536
8536
  }
8537
8537
  }
8538
- for (var m = n; m < u && (f[m] === -1 || !o(r[m])); )
8538
+ for (var m = n; m < p && (f[m] === -1 || !o(r[m])); )
8539
8539
  m++;
8540
- var x = m === u || f[m] === -1 ? d : f[m];
8540
+ var x = m === p || f[m] === -1 ? u : f[m];
8541
8541
  for (m = n - 1; m > 0 && f[m] === -1; )
8542
8542
  m--;
8543
8543
  var D = m === -1 || f[m] === -1 ? 0 : f[m] + 1;
@@ -8570,17 +8570,17 @@ function hc(e, t, r, n, a, o) {
8570
8570
  return pc(g) ? (m = "", h = "") : typeof g == "number" || b ? (m = typeof g == "number" ? gc(g) : g, h = n(m)) : (m = a(g, void 0), h = n(m)), { formattedValue: h, numAsString: m };
8571
8571
  }), l = L(function() {
8572
8572
  return i(Ut(e) ? t : e, r);
8573
- }), c = l[0], u = l[1], d = function(g, b) {
8574
- g.formattedValue !== c.formattedValue && u({
8573
+ }), c = l[0], p = l[1], u = function(g, b) {
8574
+ g.formattedValue !== c.formattedValue && p({
8575
8575
  formattedValue: g.formattedValue,
8576
8576
  numAsString: g.value
8577
8577
  }), o(g, b);
8578
- }, p = e, f = r;
8579
- Ut(e) && (p = c.numAsString, f = !0);
8580
- var v = i(p, f);
8578
+ }, d = e, f = r;
8579
+ Ut(e) && (d = c.numAsString, f = !0);
8580
+ var v = i(d, f);
8581
8581
  return z(function() {
8582
- u(v);
8583
- }, [v.formattedValue]), [c, d];
8582
+ p(v);
8583
+ }, [v.formattedValue]), [c, u];
8584
8584
  }
8585
8585
  function Ux(e) {
8586
8586
  return e.replace(/[^0-9]/g, "");
@@ -8597,7 +8597,7 @@ function zx(e) {
8597
8597
  i === void 0 && (i = Hx);
8598
8598
  var l = e.removeFormatting;
8599
8599
  l === void 0 && (l = Ux);
8600
- var c = e.defaultValue, u = e.valueIsNumericString, d = e.onValueChange, p = e.isAllowed, f = e.onChange;
8600
+ var c = e.defaultValue, p = e.valueIsNumericString, u = e.onValueChange, d = e.isAllowed, f = e.onChange;
8601
8601
  f === void 0 && (f = mt);
8602
8602
  var v = e.onKeyDown;
8603
8603
  v === void 0 && (v = mt);
@@ -8611,7 +8611,7 @@ function zx(e) {
8611
8611
  x === void 0 && (x = Wx);
8612
8612
  var D = e.isValidInputCharacter;
8613
8613
  D === void 0 && (D = Ir);
8614
- var w = e.isCharacterSame, y = uc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), C = hc(m, c, !!u, i, l, d), O = C[0], S = O.formattedValue, _ = O.numAsString, T = C[1], k = U(), G = U({ formattedValue: S, numAsString: _ }), E = function(A, M) {
8614
+ var w = e.isCharacterSame, y = uc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), C = hc(m, c, !!p, i, l, u), O = C[0], S = O.formattedValue, _ = O.numAsString, T = C[1], k = U(), G = U({ formattedValue: S, numAsString: _ }), E = function(A, M) {
8615
8615
  G.current = { formattedValue: A.formattedValue, numAsString: A.value }, T(A, M);
8616
8616
  }, V = L(!1), X = V[0], P = V[1], I = U(null), B = U({
8617
8617
  setCaretTimeout: null,
@@ -8665,7 +8665,7 @@ function zx(e) {
8665
8665
  }, [S]);
8666
8666
  var me = function(A, M, K) {
8667
8667
  var pe = M.target, Ce = k.current ? Lx(k.current, pe.selectionEnd) : mc(S, A), ge = Object.assign(Object.assign({}, Ce), { lastValue: S }), ue = l(A, ge), $e = Y(ue);
8668
- if (ue = l($e, void 0), p && !p(te($e, ue))) {
8668
+ if (ue = l($e, void 0), d && !d(te($e, ue))) {
8669
8669
  var Ze = M.target, et = qn(Ze), $t = ee(A, S, et);
8670
8670
  return Ze.value = S, H(Ze, $t, S), !1;
8671
8671
  }
@@ -8749,8 +8749,8 @@ function Pi(e, t) {
8749
8749
  var i = t.allowNegative, l = t.thousandsGroupStyle;
8750
8750
  if (l === void 0 && (l = "thousand"), e === "" || e === "-")
8751
8751
  return e;
8752
- var c = wn(t), u = c.thousandSeparator, d = c.decimalSeparator, p = r !== 0 && e.indexOf(".") !== -1 || r && n, f = no(e, i), v = f.beforeDecimal, g = f.afterDecimal, b = f.addNegation;
8753
- return r !== void 0 && (g = vc(g, r, !!n)), u && (v = Rx(v, u, l)), a && (v = a + v), o && (g = g + o), b && (v = "-" + v), e = v + (p && d || "") + g, e;
8752
+ var c = wn(t), p = c.thousandSeparator, u = c.decimalSeparator, d = r !== 0 && e.indexOf(".") !== -1 || r && n, f = no(e, i), v = f.beforeDecimal, g = f.afterDecimal, b = f.addNegation;
8753
+ return r !== void 0 && (g = vc(g, r, !!n)), p && (v = Rx(v, p, l)), a && (v = a + v), o && (g = g + o), b && (v = "-" + v), e = v + (d && u || "") + g, e;
8754
8754
  }
8755
8755
  function wn(e) {
8756
8756
  var t = e.decimalSeparator;
@@ -8780,32 +8780,32 @@ function Xx(e, t, r) {
8780
8780
  o === void 0 && (o = "");
8781
8781
  var i = r.suffix;
8782
8782
  i === void 0 && (i = "");
8783
- var l = r.decimalScale, c = t.from, u = t.to, d = u.start, p = u.end, f = wn(r), v = f.allowedDecimalSeparators, g = f.decimalSeparator, b = e[p] === g;
8783
+ var l = r.decimalScale, c = t.from, p = t.to, u = p.start, d = p.end, f = wn(r), v = f.allowedDecimalSeparators, g = f.decimalSeparator, b = e[d] === g;
8784
8784
  if (Ir(e) && (e === o || e === i) && t.lastValue === "")
8785
8785
  return e;
8786
- if (p - d === 1 && v.indexOf(e[d]) !== -1) {
8786
+ if (d - u === 1 && v.indexOf(e[u]) !== -1) {
8787
8787
  var h = l === 0 ? "" : g;
8788
- e = e.substring(0, d) + h + e.substring(d + 1, e.length);
8788
+ e = e.substring(0, u) + h + e.substring(u + 1, e.length);
8789
8789
  }
8790
8790
  var m = function(I, B, Y) {
8791
8791
  var te = !1, H = !1;
8792
8792
  o.startsWith("-") ? te = !1 : I.startsWith("--") ? (te = !1, H = !0) : i.startsWith("-") && I.length === i.length ? te = !1 : I[0] === "-" && (te = !0);
8793
8793
  var oe = te ? 1 : 0;
8794
8794
  return H && (oe = 2), oe && (I = I.substring(oe), B -= oe, Y -= oe), { value: I, start: B, end: Y, hasNegation: te };
8795
- }, x = m(e, d, p), D = x.hasNegation;
8796
- n = x, e = n.value, d = n.start, p = n.end;
8797
- var w = m(t.lastValue, c.start, c.end), y = w.start, C = w.end, O = w.value, S = e.substring(d, p);
8795
+ }, x = m(e, u, d), D = x.hasNegation;
8796
+ n = x, e = n.value, u = n.start, d = n.end;
8797
+ var w = m(t.lastValue, c.start, c.end), y = w.start, C = w.end, O = w.value, S = e.substring(u, d);
8798
8798
  e.length && O.length && (y > O.length - i.length || C < o.length) && !(S && i.startsWith(S)) && (e = O);
8799
8799
  var _ = 0;
8800
- e.startsWith(o) ? _ += o.length : d < o.length && (_ = d), e = e.substring(_), p -= _;
8800
+ e.startsWith(o) ? _ += o.length : u < o.length && (_ = u), e = e.substring(_), d -= _;
8801
8801
  var T = e.length, k = e.length - i.length;
8802
- e.endsWith(i) ? T = k : (p > k || p > e.length - i.length) && (T = p), e = e.substring(0, T), e = qx(D ? "-" + e : e, a), e = (e.match(Yx(g)) || []).join("");
8802
+ e.endsWith(i) ? T = k : (d > k || d > e.length - i.length) && (T = d), e = e.substring(0, T), e = qx(D ? "-" + e : e, a), e = (e.match(Yx(g)) || []).join("");
8803
8803
  var G = e.indexOf(g);
8804
8804
  e = e.replace(new RegExp(fc(g), "g"), function(I, B) {
8805
8805
  return B === G ? "." : "";
8806
8806
  });
8807
8807
  var E = no(e, a), V = E.beforeDecimal, X = E.afterDecimal, P = E.addNegation;
8808
- return u.end - u.start < c.end - c.start && V === "" && b && !parseFloat(X) && (e = P ? "-" : ""), e;
8808
+ return p.end - p.start < c.end - c.start && V === "" && b && !parseFloat(X) && (e = P ? "-" : ""), e;
8809
8809
  }
8810
8810
  function Jx(e, t) {
8811
8811
  var r = t.prefix;
@@ -8841,19 +8841,19 @@ function Zx(e) {
8841
8841
  a === void 0 && (a = mt);
8842
8842
  var o = e.onBlur;
8843
8843
  o === void 0 && (o = mt);
8844
- var i = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale, u = e.prefix;
8845
- u === void 0 && (u = "");
8846
- var d = e.defaultValue, p = e.value, f = e.valueIsNumericString, v = e.onValueChange, g = uc(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), b = wn(e), h = b.decimalSeparator, m = b.allowedDecimalSeparators, x = function(P) {
8844
+ var i = e.thousandSeparator, l = e.decimalScale, c = e.fixedDecimalScale, p = e.prefix;
8845
+ p === void 0 && (p = "");
8846
+ var u = e.defaultValue, d = e.value, f = e.valueIsNumericString, v = e.onValueChange, g = uc(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), b = wn(e), h = b.decimalSeparator, m = b.allowedDecimalSeparators, x = function(P) {
8847
8847
  return Pi(P, e);
8848
8848
  }, D = function(P, I) {
8849
8849
  return Xx(P, I, e);
8850
- }, w = Ut(p) ? d : p, y = f ?? Kx(w, u, t);
8851
- Ut(p) ? Ut(d) || (y = y || typeof d == "number") : y = y || typeof p == "number";
8850
+ }, w = Ut(d) ? u : d, y = f ?? Kx(w, p, t);
8851
+ Ut(d) ? Ut(u) || (y = y || typeof u == "number") : y = y || typeof d == "number";
8852
8852
  var C = function(P) {
8853
8853
  return pc(P) ? P : (typeof P == "number" && (P = gc(P)), y && typeof l == "number" ? _i(P, l, !!c) : P);
8854
- }, O = hc(C(p), C(d), !!y, x, D, v), S = O[0], _ = S.numAsString, T = S.formattedValue, k = O[1], G = function(P) {
8854
+ }, O = hc(C(d), C(u), !!y, x, D, v), S = O[0], _ = S.numAsString, T = S.formattedValue, k = O[1], G = function(P) {
8855
8855
  var I = P.target, B = P.key, Y = I.selectionStart, te = I.selectionEnd, H = I.value;
8856
- if (H === void 0 && (H = ""), (B === "Backspace" || B === "Delete") && te < u.length) {
8856
+ if (H === void 0 && (H = ""), (B === "Backspace" || B === "Delete") && te < p.length) {
8857
8857
  P.preventDefault();
8858
8858
  return;
8859
8859
  }
@@ -8861,7 +8861,7 @@ function Zx(e) {
8861
8861
  a(P);
8862
8862
  return;
8863
8863
  }
8864
- B === "Backspace" && H[0] === "-" && Y === u.length + 1 && r && kt(I, 1), l && c && (B === "Backspace" && H[Y - 1] === h ? (kt(I, Y - 1), P.preventDefault()) : B === "Delete" && H[Y] === h && P.preventDefault()), m != null && m.includes(B) && H[Y] === h && kt(I, Y + 1);
8864
+ B === "Backspace" && H[0] === "-" && Y === p.length + 1 && r && kt(I, 1), l && c && (B === "Backspace" && H[Y - 1] === h ? (kt(I, Y - 1), P.preventDefault()) : B === "Delete" && H[Y] === h && P.preventDefault()), m != null && m.includes(B) && H[Y] === h && kt(I, Y + 1);
8865
8865
  var oe = i === !0 ? "," : i;
8866
8866
  B === "Backspace" && H[Y - 1] === oe && kt(I, Y - 1), B === "Delete" && H[Y] === oe && kt(I, Y + 1), a(P);
8867
8867
  }, E = function(P) {
@@ -8882,9 +8882,9 @@ function Zx(e) {
8882
8882
  return P === h ? !0 : Ir(P);
8883
8883
  }, X = function(P) {
8884
8884
  var I = P.currentValue, B = P.lastValue, Y = P.formattedValue, te = P.currentValueIndex, H = P.formattedValueIndex, oe = I[te], ee = Y[H], re = mc(B, I), $ = re.to, J = function(me) {
8885
- return D(me).indexOf(".") + u.length;
8885
+ return D(me).indexOf(".") + p.length;
8886
8886
  };
8887
- return p === 0 && c && l && I[$.start] === h && J(I) < te && J(Y) > H ? !1 : te >= $.start && te < $.end && m && m.includes(oe) && ee === h ? !0 : oe === ee;
8887
+ return d === 0 && c && l && I[$.start] === h && J(I) < te && J(Y) > H ? !1 : te >= $.start && te < $.end && m && m.includes(oe) && ee === h ? !0 : oe === ee;
8888
8888
  };
8889
8889
  return Object.assign(Object.assign({}, g), {
8890
8890
  value: T,
@@ -8905,13 +8905,13 @@ function ao(e) {
8905
8905
  var t = Zx(e);
8906
8906
  return le.createElement(zx, Object.assign({}, t));
8907
8907
  }
8908
- const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: p, className: f, step: v, noSelectOnFocus: g, decimalScale: b, fixedDecimalScale: h = !1, numberPrefix: m, numberSuffix: x, min: D, max: w, hint: y }) => {
8908
+ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, label: a, withoutLabel: o, placeholder: i, size: l, hidden: c, disabled: p, showClearIcon: u, clearValue: d, className: f, step: v, noSelectOnFocus: g, decimalScale: b, fixedDecimalScale: h = !1, numberPrefix: m, numberSuffix: x, min: D, max: w, hint: y }) => {
8909
8909
  const C = R(() => {
8910
8910
  if (!r)
8911
8911
  return;
8912
- const G = p ?? null;
8912
+ const G = d ?? null;
8913
8913
  r(G ? Number(G) : null);
8914
- }, [p, r]), O = U(null), [S, _] = L((t == null ? void 0 : t.toString()) ?? ""), T = R((G) => {
8914
+ }, [d, r]), O = U(null), [S, _] = L((t == null ? void 0 : t.toString()) ?? ""), T = R((G) => {
8915
8915
  const E = G;
8916
8916
  r && r(E == null || E === "" ? null : Number(E));
8917
8917
  }, [r]), k = R((G) => {
@@ -8934,16 +8934,16 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
8934
8934
  }, [t, w, D, r]), /* @__PURE__ */ s.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: c, className: f, hint: y, children: [
8935
8935
  /* @__PURE__ */ s.jsx(ao, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: b, fixedDecimalScale: h, prefix: m, suffix: x, defaultValue: "", value: n ? S : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (G) => {
8936
8936
  !g && G.target.select();
8937
- }, onChange: k, hidden: c, disabled: u, className: j("form-control text-end w-100", {
8937
+ }, onChange: k, hidden: c, disabled: p, className: j("form-control text-end w-100", {
8938
8938
  [`form-control-${l}`]: l
8939
8939
  }), step: v, min: D, max: w }),
8940
- d && t !== null && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
8940
+ u && t !== null && r && !p && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(pt, {}) }) })
8941
8941
  ] });
8942
8942
  }, Jw = ({ InputContainer: e = st, label: t, options: r, disabled: n, hidden: a, className: o, value: i, onChange: l }) => {
8943
- const c = R((u) => {
8944
- l && l(u.target.value);
8943
+ const c = R((p) => {
8944
+ l && l(p.target.value);
8945
8945
  }, [l]);
8946
- return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, children: r.map((u) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${u.id}`, label: u.name, type: "radio", value: u.id ?? "", checked: i === u.id, onChange: c, hidden: a, disabled: n, className: "w-100" }, u.id)) });
8946
+ return /* @__PURE__ */ s.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, children: r.map((p) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${p.id}`, label: p.name, type: "radio", value: p.id ?? "", checked: i === p.id, onChange: c, hidden: a, disabled: n, className: "w-100" }, p.id)) });
8947
8947
  }, Ai = [
8948
8948
  ["D", "day"],
8949
8949
  // ['W', 'week'],
@@ -8983,15 +8983,15 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
8983
8983
  r((c) => {
8984
8984
  if (l === null)
8985
8985
  return c;
8986
- const u = new Date(l);
8986
+ const p = new Date(l);
8987
8987
  if (e === "D") {
8988
- const d = ht(u.toISOString());
8988
+ const u = ht(p.toISOString());
8989
8989
  return {
8990
- from: d,
8991
- to: d
8990
+ from: u,
8991
+ to: u
8992
8992
  };
8993
8993
  }
8994
- return e === "M" ? Kr(u) : e === "Y" ? fr(u) : c;
8994
+ return e === "M" ? Kr(p) : e === "Y" ? fr(p) : c;
8995
8995
  });
8996
8996
  break;
8997
8997
  case "to":
@@ -9004,18 +9004,18 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9004
9004
  return l;
9005
9005
  const c = new Date(l.from);
9006
9006
  c.setHours(c.getHours() - c.getTimezoneOffset() / 60);
9007
- const u = new Date(l.to);
9007
+ const p = new Date(l.to);
9008
9008
  if (e === "D") {
9009
9009
  c.setDate(c.getDate() + i);
9010
- const d = ht(c.toISOString());
9010
+ const u = ht(c.toISOString());
9011
9011
  return {
9012
- from: d,
9013
- to: d
9012
+ from: u,
9013
+ to: u
9014
9014
  };
9015
9015
  }
9016
9016
  return e === "M" ? (c.setMonth(c.getMonth() + i), Kr(c)) : e === "Y" ? (c.setFullYear(c.getFullYear() + i), fr(c)) : {
9017
9017
  from: ht(c.toISOString()),
9018
- to: ht(u.toISOString())
9018
+ to: ht(p.toISOString())
9019
9019
  };
9020
9020
  });
9021
9021
  }, [e, r]), o = R((i) => {
@@ -9033,30 +9033,30 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9033
9033
  }, [r, t]);
9034
9034
  return { setFromToProp: n, handleArrowClick: a, handleRangeChange: o };
9035
9035
  }, Qw = ({ fromtoState: [e, t], className: r, size: n }) => {
9036
- const { texts: { date: a }, ProjectIconComponent: o } = Q(fe), [i, l] = L("C"), { handleArrowClick: c, handleRangeChange: u, setFromToProp: d } = oy(i, l, t), p = z(() => i === "C", [i]), f = U(!0);
9036
+ const { texts: { date: a }, ProjectIconComponent: o } = Q(fe), [i, l] = L("C"), { handleArrowClick: c, handleRangeChange: p, setFromToProp: u } = oy(i, l, t), d = z(() => i === "C", [i]), f = U(!0);
9037
9037
  return F(() => {
9038
9038
  if (f.current) {
9039
9039
  const v = ay(e.from, e.to);
9040
9040
  l(v), f.current = !1;
9041
9041
  }
9042
9042
  }, [e.from, e.to]), /* @__PURE__ */ s.jsxs("div", { className: j("d-inline-flex align-items-center gap-1", Ti.wrapper, Ti[n ?? "md"], r), children: [
9043
- /* @__PURE__ */ s.jsx(ce, { disabled: p, onClick: () => {
9043
+ /* @__PURE__ */ s.jsx(ce, { disabled: d, onClick: () => {
9044
9044
  c(-1);
9045
9045
  }, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-left" }) }),
9046
9046
  /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
9047
- /* @__PURE__ */ s.jsx(wt, { type: "date", value: e.from, onChange: (v) => d("from", v === null ? null : v.toString()), InputContainer: tt, size: n }),
9048
- /* @__PURE__ */ s.jsx(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { text: a[Ai.find((v) => v[0] === i)[1]].substring(0, 1), as: Nd }), children: Ai.map((v) => /* @__PURE__ */ s.jsx(He, { disabled: v[0] === i, className: j(v[0] === i ? "text-black-50" : ""), onClick: () => u(v[0]), role: "button", children: a[v[1]] }, v[0])) }),
9049
- /* @__PURE__ */ s.jsx(wt, { type: "date", value: e.to, onChange: (v) => d("to", v === null ? null : v.toString()), InputContainer: tt, size: n })
9047
+ /* @__PURE__ */ s.jsx(wt, { type: "date", value: e.from, onChange: (v) => u("from", v === null ? null : v.toString()), InputContainer: tt, size: n }),
9048
+ /* @__PURE__ */ s.jsx(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { text: a[Ai.find((v) => v[0] === i)[1]].substring(0, 1), as: Nd }), children: Ai.map((v) => /* @__PURE__ */ s.jsx(He, { disabled: v[0] === i, className: j(v[0] === i ? "text-black-50" : ""), onClick: () => p(v[0]), role: "button", children: a[v[1]] }, v[0])) }),
9049
+ /* @__PURE__ */ s.jsx(wt, { type: "date", value: e.to, onChange: (v) => u("to", v === null ? null : v.toString()), InputContainer: tt, size: n })
9050
9050
  ] }) }),
9051
- /* @__PURE__ */ s.jsx(ce, { disabled: p, onClick: () => {
9051
+ /* @__PURE__ */ s.jsx(ce, { disabled: d, onClick: () => {
9052
9052
  c(1);
9053
9053
  }, children: /* @__PURE__ */ s.jsx(o, { icon: "chevron-right" }) })
9054
9054
  ] });
9055
9055
  }, Zw = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: n }) => {
9056
- const { localizationContext: a } = Q(fe), { dateFnsLocale: o } = Q(a), { searchParams: i, setSearch: l } = Yd(), c = i.get(t), u = c ? gr(c) : e, d = R((p) => {
9057
- l(t, ea(p, { representation: "date" }));
9056
+ const { localizationContext: a } = Q(fe), { dateFnsLocale: o } = Q(a), { searchParams: i, setSearch: l } = Yd(), c = i.get(t), p = c ? gr(c) : e, u = R((d) => {
9057
+ l(t, ea(d, { representation: "date" }));
9058
9058
  }, [t, l]);
9059
- return /* @__PURE__ */ s.jsx(Eu, { month: u, onChangeMonth: d, locale: o, yearMin: r, yearMax: n });
9059
+ return /* @__PURE__ */ s.jsx(Eu, { month: p, onChangeMonth: u, locale: o, yearMin: r, yearMax: n });
9060
9060
  }, eD = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
9061
9061
  const [n, a] = hs(t, ea(e, { representation: "date" })), o = n ? gr(n) : e, i = R((l) => {
9062
9062
  a(ea(l, { representation: "date" }));
@@ -9152,19 +9152,19 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9152
9152
  stickyBottom: by
9153
9153
  }, xy = "_input_pxkkh_1", ct = {
9154
9154
  input: xy
9155
- }, xc = ({ type: e, value: t, field: r, isPrimary: n, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon: u, clearValue: d, customPickers: p }) => {
9155
+ }, xc = ({ type: e, value: t, field: r, isPrimary: n, isReadonly: a, primaryEditable: o = !1, valuesForSelect: i, addValueToValuesForSelect: l, onChangeHandler: c, hideClearIcon: p, clearValue: u, customPickers: d }) => {
9156
9156
  var f;
9157
9157
  switch (e) {
9158
9158
  case "NUM":
9159
- return i && i.length > 0 ? /* @__PURE__ */ s.jsx(sn, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, v === null ? null : Number(v)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !u, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (v) => c(r, v === null ? null : Number(v)), disabled: a ? !0 : n ? !o : !1, showClearIcon: !u, clearValue: d });
9159
+ return i && i.length > 0 ? /* @__PURE__ */ s.jsx(sn, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, v === null ? null : Number(v)), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", type: "number", value: t === null ? null : Number(t), onChange: (v) => c(r, v === null ? null : Number(v)), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u });
9160
9160
  case "STR":
9161
- return i && i.length > 0 ? /* @__PURE__ */ s.jsx(sn, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !u, clearValue: d, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: j(ct.input, ct.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !u, clearValue: d });
9161
+ return i && i.length > 0 ? /* @__PURE__ */ s.jsx(sn, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), options: i, disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u, dropdownWidth: 200 }) : /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: j(ct.input, ct.longer), size: "sm", type: "text", value: (t == null ? void 0 : t.toString()) ?? "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u });
9162
9162
  case "BIT":
9163
9163
  return /* @__PURE__ */ s.jsx(Ox, { InputContainer: tt, className: ct.input, value: t === !0, onChange: (v) => c(r, v), disabled: a ? !0 : n ? !o : !1 });
9164
9164
  case "DT":
9165
- return /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !u, clearValue: d });
9165
+ return /* @__PURE__ */ s.jsx(wt, { withoutLabel: !0, InputContainer: tt, className: ct.input, size: "sm", type: "date", value: t ? t.toString().split("T")[0] ?? "" : "", onChange: (v) => c(r, (v == null ? void 0 : v.toString()) ?? null), disabled: a ? !0 : n ? !o : !1, showClearIcon: !p, clearValue: u });
9166
9166
  default: {
9167
- const v = p == null ? void 0 : p.find((g) => g.type === e);
9167
+ const v = d == null ? void 0 : d.find((g) => g.type === e);
9168
9168
  return v ? /* @__PURE__ */ s.jsx(v.picker, { className: j(ct.input, ct.longer), value: t ? {
9169
9169
  id: (t == null ? void 0 : t.toString()) ?? null,
9170
9170
  name: ((f = i == null ? void 0 : i.find((g) => {
@@ -9187,55 +9187,55 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9187
9187
  }
9188
9188
  }
9189
9189
  }, yy = ({ schema: e, columns: t, setColumns: r, initialItem: n, onEdit: a, onDelete: o, customPickers: i }) => {
9190
- const { ProjectIconComponent: l } = Q(fe), [c, u] = L(n), d = R((v, g) => {
9191
- console.log("changeValue", v, g), u((b) => ({
9190
+ const { ProjectIconComponent: l } = Q(fe), [c, p] = L(n), u = R((v, g) => {
9191
+ console.log("changeValue", v, g), p((b) => ({
9192
9192
  ...b,
9193
9193
  [v]: {
9194
9194
  ...b[v],
9195
9195
  value: g
9196
9196
  }
9197
9197
  }));
9198
- }, []), p = (v) => (v == null ? void 0 : v.value) !== (v == null ? void 0 : v.defaultValue), f = R(() => Object.keys(c).some((v) => p(c[v])), [c]);
9198
+ }, []), d = (v) => (v == null ? void 0 : v.value) !== (v == null ? void 0 : v.defaultValue), f = R(() => Object.keys(c).some((v) => d(c[v])), [c]);
9199
9199
  return F(() => {
9200
- u(n);
9200
+ p(n);
9201
9201
  }, [n]), /* @__PURE__ */ s.jsxs("tr", { className: j("table-row", De.tableRow), children: [
9202
9202
  /* @__PURE__ */ s.jsx("td", { className: j("table-cell", De.tableCell, De.stickyFirst), children: f() && /* @__PURE__ */ s.jsx(ce, { color: "success", onClick: () => a(bc(c)), children: /* @__PURE__ */ s.jsx(l, { icon: "check" }) }) }),
9203
9203
  t.map((v) => {
9204
9204
  var g, b;
9205
9205
  return /* @__PURE__ */ s.jsx("td", { className: j("table-cell", De.tableCell), children: /* @__PURE__ */ s.jsx(xc, { type: v.type, value: (g = c[v.field ?? ""]) == null ? void 0 : g.value, field: v.field, isReadonly: v.readOnly, isPrimary: e.primaryKey === v.field, valuesForSelect: v.valuesForSelect, addValueToValuesForSelect: (h) => {
9206
9206
  r(t.map((m) => m.field === v.field ? { ...m, valuesForSelect: [...m.valuesForSelect ?? [], h] } : m));
9207
- }, onChangeHandler: d, hideClearIcon: !p(c[v.field ?? ""]), clearValue: (b = c[v.field ?? ""].defaultValue) == null ? void 0 : b.toString(), customPickers: i }) }, `${e.id}-${v.field}`);
9207
+ }, onChangeHandler: u, hideClearIcon: !d(c[v.field ?? ""]), clearValue: (b = c[v.field ?? ""].defaultValue) == null ? void 0 : b.toString(), customPickers: i }) }, `${e.id}-${v.field}`);
9208
9208
  }),
9209
9209
  /* @__PURE__ */ s.jsx("td", { className: j("table-cell", De.tableCell, De.stickyLast), children: /* @__PURE__ */ s.jsx(ce, { color: "danger", onClick: () => o(c[e.primaryKey ?? ""].value), children: /* @__PURE__ */ s.jsx(l, { icon: "delete" }) }) })
9210
9210
  ] });
9211
9211
  }, wy = ({ schema: e, columns: t, setColumns: r, onCreate: n, customPickers: a }) => {
9212
9212
  const { ProjectIconComponent: o } = Q(fe), [i, l] = L(null), c = R(() => {
9213
- var p;
9214
- const d = {};
9215
- (p = e.columns) == null || p.forEach((f) => {
9213
+ var d;
9214
+ const u = {};
9215
+ (d = e.columns) == null || d.forEach((f) => {
9216
9216
  const v = f.type === "BIT" ? !1 : f.type === "NUM" ? null : f.type === "STR" ? "" : null;
9217
- d[f.field ?? ""] = {
9217
+ u[f.field ?? ""] = {
9218
9218
  value: v,
9219
9219
  defaultValue: v
9220
9220
  };
9221
- }), l(d);
9222
- }, [e]), u = R((d, p) => {
9221
+ }), l(u);
9222
+ }, [e]), p = R((u, d) => {
9223
9223
  l((f) => f && {
9224
9224
  ...f,
9225
- [d]: {
9226
- ...f[d],
9227
- value: p
9225
+ [u]: {
9226
+ ...f[u],
9227
+ value: d
9228
9228
  }
9229
9229
  });
9230
9230
  }, []);
9231
9231
  return i ? /* @__PURE__ */ s.jsxs("tr", { className: "sticky-bottom shadow", children: [
9232
9232
  /* @__PURE__ */ s.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ s.jsx(ce, { color: "success", onClick: async () => {
9233
- const d = bc(i);
9234
- d && await n(d) && l(null);
9233
+ const u = bc(i);
9234
+ u && await n(u) && l(null);
9235
9235
  }, children: /* @__PURE__ */ s.jsx(o, { icon: "check" }) }) }),
9236
- t.map((d) => /* @__PURE__ */ s.jsx("td", { children: /* @__PURE__ */ s.jsx(xc, { type: d.type, value: i[d.field ?? ""].value, field: d.field, isReadonly: d.readOnly, isPrimary: e.primaryKey === d.field, valuesForSelect: d.valuesForSelect, addValueToValuesForSelect: (p) => {
9237
- r(t.map((f) => f.field === d.field ? { ...f, valuesForSelect: [...f.valuesForSelect ?? [], p] } : f));
9238
- }, onChangeHandler: u, primaryEditable: !0, customPickers: a }) }, `${e.id}-${d.field}`)),
9236
+ t.map((u) => /* @__PURE__ */ s.jsx("td", { children: /* @__PURE__ */ s.jsx(xc, { type: u.type, value: i[u.field ?? ""].value, field: u.field, isReadonly: u.readOnly, isPrimary: e.primaryKey === u.field, valuesForSelect: u.valuesForSelect, addValueToValuesForSelect: (d) => {
9237
+ r(t.map((f) => f.field === u.field ? { ...f, valuesForSelect: [...f.valuesForSelect ?? [], d] } : f));
9238
+ }, onChangeHandler: p, primaryEditable: !0, customPickers: a }) }, `${e.id}-${u.field}`)),
9239
9239
  /* @__PURE__ */ s.jsx("td", { className: "sticky-last", children: /* @__PURE__ */ s.jsx(ce, { color: "danger", onClick: () => l(null), children: /* @__PURE__ */ s.jsx(o, { icon: "cancel" }) }) })
9240
9240
  ] }) : /* @__PURE__ */ s.jsxs("tr", { className: "sticky-bottom shadow", children: [
9241
9241
  /* @__PURE__ */ s.jsx("td", { className: "sticky-first", children: /* @__PURE__ */ s.jsx(ce, { onClick: c, children: /* @__PURE__ */ s.jsx(o, { icon: "add" }) }) }),
@@ -9293,7 +9293,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9293
9293
  ] }) }),
9294
9294
  /* @__PURE__ */ s.jsx(Cy, { cellRef: o, defaultWidth: i })
9295
9295
  ] });
9296
- }, jy = ({ schema: e, items: t, onEditItem: r, onDeleteItem: n, onCreateItem: a, filters: o, setFilter: i, sortByField: l, sortByType: c, setSortBy: u, selectedMaster: d, customPickers: p }) => {
9296
+ }, jy = ({ schema: e, items: t, onEditItem: r, onDeleteItem: n, onCreateItem: a, filters: o, setFilter: i, sortByField: l, sortByType: c, setSortBy: p, selectedMaster: u, customPickers: d }) => {
9297
9297
  const { texts: { dynamicForms: f } } = Q(fe), [v, g] = L([]);
9298
9298
  return F(() => {
9299
9299
  var b, h, m;
@@ -9307,15 +9307,15 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9307
9307
  field: x.field ?? "",
9308
9308
  type: x.type,
9309
9309
  readOnly: x.readOnly,
9310
- valuesForSelect: ((D = x.values) == null ? void 0 : D.filter((w) => x.valuesFilteredByMaster ? w.masterValue === d : !0).map((w) => ({ id: w.id ?? "", name: w.name }))) ?? void 0
9310
+ valuesForSelect: ((D = x.values) == null ? void 0 : D.filter((w) => x.valuesFilteredByMaster ? w.masterValue === u : !0).map((w) => ({ id: w.id ?? "", name: w.name }))) ?? void 0
9311
9311
  };
9312
9312
  })) ?? []
9313
9313
  ]);
9314
- }, [e, d]), /* @__PURE__ */ s.jsxs("table", { id: `dynamic-table-${e.id}`, className: j("table table-borderless luminus-df-table", De.table), children: [
9314
+ }, [e, u]), /* @__PURE__ */ s.jsxs("table", { id: `dynamic-table-${e.id}`, className: j("table table-borderless luminus-df-table", De.table), children: [
9315
9315
  /* @__PURE__ */ s.jsxs("thead", { className: j("text-nowrap table-header", De.stickyTop, De.tableHeader), children: [
9316
9316
  /* @__PURE__ */ s.jsxs("tr", { className: j("table-row", De.tableRow), children: [
9317
9317
  /* @__PURE__ */ s.jsx("th", { className: j("table-head", De.tableHead, De.actionColumn, De.stickyFirst) }),
9318
- v.map((b) => /* @__PURE__ */ s.jsx(Iy, { column: b, sortByField: l, sortByType: c, setSortBy: u }, `${e.id}-${b.field}`)),
9318
+ v.map((b) => /* @__PURE__ */ s.jsx(Iy, { column: b, sortByField: l, sortByType: c, setSortBy: p }, `${e.id}-${b.field}`)),
9319
9319
  /* @__PURE__ */ s.jsx("th", { className: j("table-head", De.tableHead, De.actionColumn, De.stickyLast) })
9320
9320
  ] }),
9321
9321
  /* @__PURE__ */ s.jsxs("tr", { className: j("table-row filters-row", De.tableRow, De.filtersRow), children: [
@@ -9328,8 +9328,8 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9328
9328
  ] })
9329
9329
  ] }),
9330
9330
  /* @__PURE__ */ s.jsxs("tbody", { className: j("table-body", De.tableBody), children: [
9331
- t.filter((b) => b[e.primaryKey ?? ""]).map((b) => /* @__PURE__ */ s.jsx(yy, { schema: e, columns: v, setColumns: g, initialItem: b, onEdit: r, onDelete: n, customPickers: p }, `${e.id}-${b[e.primaryKey ?? ""].value}`)),
9332
- /* @__PURE__ */ s.jsx(wy, { schema: e, columns: v, setColumns: g, onCreate: a, customPickers: p })
9331
+ t.filter((b) => b[e.primaryKey ?? ""]).map((b) => /* @__PURE__ */ s.jsx(yy, { schema: e, columns: v, setColumns: g, initialItem: b, onEdit: r, onDelete: n, customPickers: d }, `${e.id}-${b[e.primaryKey ?? ""].value}`)),
9332
+ /* @__PURE__ */ s.jsx(wy, { schema: e, columns: v, setColumns: g, onCreate: a, customPickers: d })
9333
9333
  ] })
9334
9334
  ] });
9335
9335
  }, _y = ({ master: e, onChange: t, options: r, label: n }) => /* @__PURE__ */ s.jsx("div", { style: { minWidth: "200px" }, children: /* @__PURE__ */ s.jsx(sn, { label: n, value: e, onChange: (a) => t(a ? a.toString() : null), options: r, size: "sm" }) }), Oy = "_pagination_gujwe_1", ki = {
@@ -9343,24 +9343,24 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9343
9343
  apiItemDelete: "/dynamicForms/delete",
9344
9344
  apiItemCreate: "/dynamicForms/insert",
9345
9345
  apiExportGet: "/dynamicForms/export"
9346
- }, rD = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Bi.appDetail } = Bi, apiUrls: { apiSchemaGet: u = At.apiSchemaGet, apiDataGet: d = At.apiDataGet, apiItemPost: p = At.apiItemPost, apiItemDelete: f = At.apiItemDelete, apiItemCreate: v = At.apiItemCreate, apiExportGet: g = At.apiExportGet } = At, customPickers: b }) => {
9346
+ }, rD = ({ id: e, page: t, setPage: r, filters: n, setFilter: a, sortByField: o, sortByType: i, setSortBy: l, appUrls: { appDetail: c = Bi.appDetail } = Bi, apiUrls: { apiSchemaGet: p = At.apiSchemaGet, apiDataGet: u = At.apiDataGet, apiItemPost: d = At.apiItemPost, apiItemDelete: f = At.apiItemDelete, apiItemCreate: v = At.apiItemCreate, apiExportGet: g = At.apiExportGet } = At, customPickers: b }) => {
9347
9347
  var ge, ue, $e, Ze, et, $t;
9348
9348
  const { texts: { dynamicForms: h }, ProjectIconComponent: m } = Q(fe), x = Nt(), { startLoading: D, stopLoading: w } = Q(Or), [y, C] = L(null), [O, S] = L(null), [_, T] = L(null), [k, G] = L(null), [E, V] = L(!1), { addNotification: X } = us(), [P, I] = L([]), { confirm: B } = dn(), Y = 20, te = Y + 1, H = k ? Math.ceil(k.length / Y) : 1, oe = t ? t > 1 : !1, ee = t ? t < H : !1, re = t ? (t - 1) * Y : 0, $ = t ? t * Y : Y, J = z(() => k ? k.length > te : !1, [k, te]), me = z(() => J ? (k == null ? void 0 : k.slice(re, $)) ?? null : k ?? null, [J, k, re, $]), [W, ie] = L(null);
9349
9349
  F(() => {
9350
9350
  C(null), S(null), V(!1), I([]), ie(null);
9351
9351
  }, [e]);
9352
9352
  const Se = R(async () => {
9353
- D("dynamicFormSchema"), await x.get(`${u}?id=${e}`).then(({ data: se }) => {
9353
+ D("dynamicFormSchema"), await x.get(`${p}?id=${e}`).then(({ data: se }) => {
9354
9354
  C(se), w("dynamicFormSchema");
9355
9355
  }).catch(() => w("dynamicFormSchema"));
9356
- }, [x, e, D, w, u]), q = R(async () => {
9356
+ }, [x, e, D, w, p]), q = R(async () => {
9357
9357
  var se;
9358
9358
  if (!(y === null || ((se = y.id) == null ? void 0 : se.toString()) !== e)) {
9359
9359
  if (y.masterReference && !W) {
9360
9360
  S([]);
9361
9361
  return;
9362
9362
  }
9363
- D("dynamicFormData"), await x.get(`${d}?id=${e}&showArchive=${E}${y.masterReference ? `&master=${W}` : ""}`).then(({ data: he }) => {
9363
+ D("dynamicFormData"), await x.get(`${u}?id=${e}&showArchive=${E}${y.masterReference ? `&master=${W}` : ""}`).then(({ data: he }) => {
9364
9364
  const je = he.map((be) => {
9365
9365
  var Oe;
9366
9366
  return Object.fromEntries(((Oe = y.columns) == null ? void 0 : Oe.filter((Ae) => Ae.field).map((Ae) => [
@@ -9371,12 +9371,12 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9371
9371
  S(je), w("dynamicFormData");
9372
9372
  }).catch(() => w("dynamicFormData"));
9373
9373
  }
9374
- }, [x, e, y, D, w, E, W, d]), Pe = R(async () => {
9374
+ }, [x, e, y, D, w, E, W, u]), Pe = R(async () => {
9375
9375
  var se;
9376
9376
  y === null || ((se = y.id) == null ? void 0 : se.toString()) !== e || y.masterReference && !W || (D("dynamicFormExport"), await x.get(`${g}?id=${e}&showArchive=${E}${y.masterReference ? `&master=${W}` : ""}`, {
9377
9377
  responseType: "blob"
9378
9378
  }).then((he) => Cd(he, { fallbackName: `export-${e}` })).finally(() => w("dynamicFormExport")));
9379
- }, [x, e, y, D, w, E, W, g]), Fe = R(async (se) => (D("dynamicFormEdit"), x.post(`${p}?id=${e}`, se).then(() => (w("dynamicFormEdit"), I([]), !0)).catch((he) => (w("dynamicFormEdit"), I(Nn(he)), !1))), [x, e, D, w, p]), Ee = R(async (se) => (D("dynamicFormDelete"), x.delete(`${f}?id=${e}&pk=${se}`).then(() => (w("dynamicFormDelete"), I([]), !0)).catch((he) => (w("dynamicFormDelete"), I(Nn(he)), !1))), [x, e, D, w, f]), de = R(async (se) => (D("dynamicFormCreate"), x.post(`${v}?id=${e}`, se).then(({ data: he }) => (w("dynamicFormCreate"), I([]), he)).catch((he) => (w("dynamicFormCreate"), I(Nn(he)), null))), [x, e, D, w, v]), Re = R(async (se) => {
9379
+ }, [x, e, y, D, w, E, W, g]), Fe = R(async (se) => (D("dynamicFormEdit"), x.post(`${d}?id=${e}`, se).then(() => (w("dynamicFormEdit"), I([]), !0)).catch((he) => (w("dynamicFormEdit"), I(Nn(he)), !1))), [x, e, D, w, d]), Ee = R(async (se) => (D("dynamicFormDelete"), x.delete(`${f}?id=${e}&pk=${se}`).then(() => (w("dynamicFormDelete"), I([]), !0)).catch((he) => (w("dynamicFormDelete"), I(Nn(he)), !1))), [x, e, D, w, f]), de = R(async (se) => (D("dynamicFormCreate"), x.post(`${v}?id=${e}`, se).then(({ data: he }) => (w("dynamicFormCreate"), I([]), he)).catch((he) => (w("dynamicFormCreate"), I(Nn(he)), null))), [x, e, D, w, v]), Re = R(async (se) => {
9380
9380
  y && await Fe(y.masterReference ? { ...se, [y.masterReferenceColumn ?? ""]: W } : se) && (X(h.editSuccess, "success"), S((he) => he && he.map((je) => {
9381
9381
  var be;
9382
9382
  return ((be = je[(y == null ? void 0 : y.primaryKey) ?? ""]) == null ? void 0 : be.value) === se[(y == null ? void 0 : y.primaryKey) ?? ""] ? Ri(se, y) : je;
@@ -9522,24 +9522,24 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9522
9522
  }, Mi = {
9523
9523
  apiDynamicFormsGet: "/dynamicForms"
9524
9524
  }, Py = ({ item: e, children: t }) => e.description ? /* @__PURE__ */ s.jsx(Et, { placement: "left", text: e.description ?? "", children: /* @__PURE__ */ s.jsx("div", { children: t }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: t }), nD = ({ activeId: e, otherForms: t = [], groupsDefs: r = [], searchQuery: n, fullSize: a, appUrls: { appDetail: o = Li.appDetail } = Li, apiUrls: { apiDynamicFormsGet: i = Mi.apiDynamicFormsGet } = Mi }) => {
9525
- const l = Nt(), { startLoading: c, stopLoading: u } = Q(Or), [d, p] = L(null), [f] = hs("search", ""), v = z(() => [
9526
- ...(d == null ? void 0 : d.map((h) => ({
9525
+ const l = Nt(), { startLoading: c, stopLoading: p } = Q(Or), [u, d] = L(null), [f] = hs("search", ""), v = z(() => [
9526
+ ...(u == null ? void 0 : u.map((h) => ({
9527
9527
  ...h,
9528
9528
  type: "dynamic-form"
9529
9529
  }))) ?? [],
9530
9530
  ...t
9531
- ].filter((h) => ut(h.name, n) || ut(h.description, n)).sort((h, m) => (h.name ?? "").localeCompare(m.name ?? "")) ?? [], [d, t, n]), g = z(() => r.map((h) => ({
9531
+ ].filter((h) => ut(h.name, n) || ut(h.description, n)).sort((h, m) => (h.name ?? "").localeCompare(m.name ?? "")) ?? [], [u, t, n]), g = z(() => r.map((h) => ({
9532
9532
  id: h.id,
9533
9533
  name: h.name ?? "",
9534
9534
  items: v.filter((m) => m.group === h.id)
9535
9535
  })).filter((h) => h.items.length > 0), [r, v]), b = R(async () => {
9536
9536
  c("dynamicForms"), await l.get(i).then(({ data: h }) => {
9537
- p(h), u("dynamicForms");
9538
- }).catch(() => u("dynamicForms"));
9539
- }, [l, c, u, i]);
9537
+ d(h), p("dynamicForms");
9538
+ }).catch(() => p("dynamicForms"));
9539
+ }, [l, c, p, i]);
9540
9540
  return F(() => {
9541
- !d && b();
9542
- }, [b, d]), v.length > 0 ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((h) => /* @__PURE__ */ s.jsx(Zr, { title: h.name, defaultOpen: !0, children: h.items.map((m) => {
9541
+ !u && b();
9542
+ }, [b, u]), v.length > 0 ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: g.map((h) => /* @__PURE__ */ s.jsx(Zr, { title: h.name, defaultOpen: !0, children: h.items.map((m) => {
9543
9543
  var x, D, w, y;
9544
9544
  return a ? /* @__PURE__ */ s.jsxs(nt, { to: `${Qr(o, { id: (x = m.id) == null ? void 0 : x.toString() })}?type=${m.type}&search=${f ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((D = m.id) == null ? void 0 : D.toString()) ? "active" : ""}`, children: [
9545
9545
  /* @__PURE__ */ s.jsx(ae, { variant: "body", children: m.name }),
@@ -9664,24 +9664,24 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9664
9664
  reportsGet: "/reports",
9665
9665
  reportsLastUsedGet: "/reports/last-used"
9666
9666
  }, uD = ({ groups: e, apiUrls: { reportsGet: t = Yn.reportsGet, reportsLastUsedGet: r = Yn.reportsLastUsedGet } = Yn, getReportName: n, getReportDescription: a, getGroupTitle: o, getReportRoute: i }) => {
9667
- const { texts: { reports: l } } = Q(fe), [c, u] = L(""), [d] = pn(c, 500), p = R((h) => h.map((m) => ({
9667
+ const { texts: { reports: l } } = Q(fe), [c, p] = L(""), [u] = pn(c, 500), d = R((h) => h.map((m) => ({
9668
9668
  ...m,
9669
9669
  groupId: !m.groupId || m.groupId === 0 || !e.some((x) => x === m.groupId) ? 999 : m.groupId
9670
- })), [e]), { data: f } = hr(t, { dataTransformer: p }), v = z(() => {
9670
+ })), [e]), { data: f } = hr(t, { dataTransformer: d }), v = z(() => {
9671
9671
  if (f === null)
9672
9672
  return {};
9673
9673
  const h = {};
9674
9674
  return e.forEach((m) => {
9675
- h[m] = f.filter((x) => x.groupId === m && (ut(n(x), d) || ut(a(x), d) || x.versions.some((D) => ut(D.name, d)) || x.versionsCustom.some((D) => ut(D.name, d))));
9675
+ h[m] = f.filter((x) => x.groupId === m && (ut(n(x), u) || ut(a(x), u) || x.versions.some((D) => ut(D.name, u)) || x.versionsCustom.some((D) => ut(D.name, u))));
9676
9676
  }), h;
9677
- }, [d, e, f, a, n]), g = z(() => e.filter((h) => {
9677
+ }, [u, e, f, a, n]), g = z(() => e.filter((h) => {
9678
9678
  var m;
9679
9679
  return ((m = v[h]) == null ? void 0 : m.length) > 0;
9680
9680
  }), [v, e]), { isMobile: b } = cn();
9681
9681
  return /* @__PURE__ */ s.jsxs(ps, { variant: "fullScreen", sideContent: /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx($y, { reportsLastUsedGet: r, getReportName: n, getReportRoute: i }) }), children: [
9682
9682
  /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(_e.Control, { className: "mb-3", type: "search", value: c, onChange: (h) => {
9683
9683
  var m;
9684
- return u(((m = h.target) == null ? void 0 : m.value) ?? "");
9684
+ return p(((m = h.target) == null ? void 0 : m.value) ?? "");
9685
9685
  }, placeholder: l.index.search }) }),
9686
9686
  /* @__PURE__ */ s.jsx("div", { className: "overflow-x-hidden luminus-thin-scrollbar luminus-reports-index", children: g.map((h) => /* @__PURE__ */ s.jsxs("div", { className: j(Wt.cardsGroup, { [Wt.mobile]: b }), children: [
9687
9687
  /* @__PURE__ */ s.jsx("div", { className: j("group-title z-1", Wt.groupTitle), children: /* @__PURE__ */ s.jsx(Ry, { text: o(h) }) }),
@@ -9694,7 +9694,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9694
9694
  sm: Wy,
9695
9695
  lg: Uy
9696
9696
  }, pD = ({ children: e, useMiniDetail: t, miniDetailProps: r, placement: n = "bottom", trigger: a = ["hover"], delayMs: o = 500 }) => {
9697
- const [i, l] = L(!1), { isLoading: c, detail: u, heading: d, tooltipWidth: p } = t({
9697
+ const [i, l] = L(!1), { isLoading: c, detail: p, heading: u, tooltipWidth: d } = t({
9698
9698
  ...r,
9699
9699
  enabled: i
9700
9700
  }), f = U(null);
@@ -9702,7 +9702,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9702
9702
  f.current = window.setTimeout(() => l(!0), o);
9703
9703
  }, onMouseLeave: () => {
9704
9704
  f.current && clearTimeout(f.current), l(!1);
9705
- }, children: i ? /* @__PURE__ */ s.jsx(_d, { heading: c ? /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ s.jsx("span", { className: "placeholder bg-primary col-6" }) }) : d, content: /* @__PURE__ */ s.jsx(s.Fragment, { children: c ? /* @__PURE__ */ s.jsxs(ae, { variant: "body2", className: "placeholder-glow", children: [
9705
+ }, children: i ? /* @__PURE__ */ s.jsx(_d, { heading: c ? /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "placeholder-glow", children: /* @__PURE__ */ s.jsx("span", { className: "placeholder bg-primary col-6" }) }) : u, content: /* @__PURE__ */ s.jsx(s.Fragment, { children: c ? /* @__PURE__ */ s.jsxs(ae, { variant: "body2", className: "placeholder-glow", children: [
9706
9706
  /* @__PURE__ */ s.jsxs("div", { className: "d-flex justify-content-between py-1", children: [
9707
9707
  /* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
9708
9708
  /* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
@@ -9723,11 +9723,11 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9723
9723
  /* @__PURE__ */ s.jsx("span", { className: "placeholder col-5" }),
9724
9724
  /* @__PURE__ */ s.jsx("span", { className: "placeholder col-4" })
9725
9725
  ] })
9726
- ] }) : u }), placement: n, trigger: a, popoverClassName: j(Vi.miniDetailPopover, Vi[p]), children: /* @__PURE__ */ s.jsx("div", { children: e }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) });
9726
+ ] }) : p }), placement: n, trigger: a, popoverClassName: j(Vi.miniDetailPopover, Vi[d]), children: /* @__PURE__ */ s.jsx("div", { children: e }) }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) });
9727
9727
  }, fD = ({ label: e, value: t }) => /* @__PURE__ */ s.jsxs("div", { className: "py-1 border-bottom d-flex gap-3 align-items-center justify-content-between", children: [
9728
9728
  /* @__PURE__ */ s.jsx(ae, { variant: "caption", children: e }),
9729
9729
  /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "text-end", children: t ?? "-" })
9730
- ] }), vD = ({ InputContainer: e = st, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: u, onChange: d, className: p }) => {
9730
+ ] }), vD = ({ InputContainer: e = st, formField: t, label: r, resetsFields: n, type: a, required: o, hidden: i, disabled: l, withoutLabel: c, hint: p, onChange: u, className: d }) => {
9731
9731
  const { register: f, formState: v, setValue: g } = Ct(), [b, h] = L(void 0), [m, x] = L(!1);
9732
9732
  F(() => {
9733
9733
  const w = t.split(".");
@@ -9739,36 +9739,36 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9739
9739
  v.isSubmitted && x(!0);
9740
9740
  }, [v]);
9741
9741
  const D = b !== void 0;
9742
- return /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${r}${o ? " *" : ""}`, isInvalid: D, withoutLabel: c, hint: u, className: p, children: [
9742
+ return /* @__PURE__ */ s.jsxs(e, { isForCheckInput: !0, hidden: i, label: `${r}${o ? " *" : ""}`, isInvalid: D, withoutLabel: c, hint: p, className: d, children: [
9743
9743
  /* @__PURE__ */ s.jsx(_e.Check, { id: `check-${t}`, type: a ?? "checkbox", label: `${r}${o ? " *" : ""}`, ...f(t, {
9744
9744
  onChange: (w) => {
9745
- n && n.forEach((y) => g(y, null, { shouldDirty: !0, shouldValidate: m })), d && d(w.target.value ?? null);
9745
+ n && n.forEach((y) => g(y, null, { shouldDirty: !0, shouldValidate: m })), u && u(w.target.value ?? null);
9746
9746
  }
9747
9747
  }), isInvalid: D, hidden: i, disabled: l || v.disabled, className: "w-100" }),
9748
9748
  b && /* @__PURE__ */ s.jsx(Mt, { message: b.message })
9749
9749
  ] });
9750
- }, gD = ({ InputContainer: e = st, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: u }) => {
9751
- const { register: d, formState: p, setValue: f, watch: v } = Ct(), [g, b] = L(void 0), [h, m] = L(!1), x = z(() => n, [n]);
9750
+ }, gD = ({ InputContainer: e = st, label: t, formField: r, options: n, resetsFields: a, required: o, disabled: i, hidden: l, onChange: c, className: p }) => {
9751
+ const { register: u, formState: d, setValue: f, watch: v } = Ct(), [g, b] = L(void 0), [h, m] = L(!1), x = z(() => n, [n]);
9752
9752
  F(() => {
9753
9753
  const w = r.split(".");
9754
- let y = p.errors;
9754
+ let y = d.errors;
9755
9755
  w.forEach((C) => {
9756
9756
  y !== void 0 && (y = y[C]);
9757
9757
  }), b(y);
9758
- }, [p, r]), F(() => {
9759
- p.isSubmitted && m(!0);
9760
- }, [p]);
9758
+ }, [d, r]), F(() => {
9759
+ d.isSubmitted && m(!0);
9760
+ }, [d]);
9761
9761
  const D = g !== void 0;
9762
- return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: `${t}${o ? " *" : ""}`, isInvalid: D, className: u, children: [
9763
- x.map((w) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${w.id}`, label: w.name, type: "radio", value: w.id ?? "", checked: v(r) === w.id, ...d(r, {
9762
+ return /* @__PURE__ */ s.jsxs(e, { isForRadioInput: !0, hidden: l, withoutLabel: !t, label: `${t}${o ? " *" : ""}`, isInvalid: D, className: p, children: [
9763
+ x.map((w) => /* @__PURE__ */ s.jsx(_e.Check, { id: `radio-${w.id}`, label: w.name, type: "radio", value: w.id ?? "", checked: v(r) === w.id, ...u(r, {
9764
9764
  onChange: (y) => {
9765
9765
  var C;
9766
9766
  a && a.forEach((O) => f(O, null, { shouldDirty: !0, shouldValidate: h })), c && c((C = y.target) != null && C.value ? y.target.value.toString() : null);
9767
9767
  }
9768
- }), isInvalid: D, hidden: l, disabled: i || p.disabled, className: "w-100" }, w.id)),
9768
+ }), isInvalid: D, hidden: l, disabled: i || d.disabled, className: "w-100" }, w.id)),
9769
9769
  g && /* @__PURE__ */ s.jsx(Mt, { message: g.message })
9770
9770
  ] });
9771
- }, mD = ({ InputContainer: e = st, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: p, selectedItemNavigateTo: f, texts: v, dropdownItemsNameWidth: g, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: w, onSelect: y, className: C, archiveColumn: O, hint: S, addNewOptionPath: _, refreshOptions: T, MiniDetailComponent: k, miniDetailPlacement: G }) => {
9771
+ }, mD = ({ InputContainer: e = st, formField: t, label: r, size: n, defaultSelection: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, items: u, onSearchQueryChange: d, selectedItemNavigateTo: f, texts: v, dropdownItemsNameWidth: g, isLoading: b, withoutLabel: h, additionalColumns: m, CustomOnChangeComponent: x, icon: D, displayIdAsName: w, onSelect: y, className: C, archiveColumn: O, hint: S, addNewOptionPath: _, refreshOptions: T, MiniDetailComponent: k, miniDetailPlacement: G }) => {
9772
9772
  const { formState: E, setValue: V, watch: X, control: P } = Ct(), [I, B] = L(void 0), [Y, te] = L(!1), [H, oe] = L(!1), ee = X(t) ?? null, re = ee === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : X(`${t}-DropdownName`), $ = z(() => ee == null ? null : { id: ee ?? null, name: re ?? "" }, [ee, re]), J = R(() => {
9773
9773
  const de = t.split(".");
9774
9774
  let Re = E.errors;
@@ -9800,7 +9800,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9800
9800
  }, [J]), F(() => {
9801
9801
  E.isSubmitted && oe(!0);
9802
9802
  }, [E]);
9803
- const Se = U(null), q = I !== void 0, Pe = f !== void 0, Fe = Pe && $ !== null, Ee = u || E.disabled;
9803
+ const Se = U(null), q = I !== void 0, Pe = f !== void 0, Fe = Pe && $ !== null, Ee = p || E.disabled;
9804
9804
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: q, inputContainerClassName: j({ "luminus-dropdown-select-open": Y }), hint: S, className: C, children: [
9805
9805
  /* @__PURE__ */ s.jsxs(dc, { currentSelection: $, selectedItemNavigateTo: f, children: [
9806
9806
  w && ($ == null ? void 0 : $.name) && /* @__PURE__ */ s.jsx(ae, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: $.name }),
@@ -9821,9 +9821,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9821
9821
  ] }) : null
9822
9822
  ] }),
9823
9823
  I && /* @__PURE__ */ s.jsx(Mt, { message: I.message }),
9824
- Se.current && /* @__PURE__ */ s.jsx(fn, { show: Y, onCancel: ie, items: d, currentSelection: $, onSelectionChange: W, onSearchQueryChange: p, texts: v, itemsNameWidth: g, additionalColumns: m, displayIdAsName: w, isLoading: b, disabled: Ee, inputRef: Se, archiveColumn: O, addNewOptionPath: _, refreshOptions: T })
9824
+ Se.current && /* @__PURE__ */ s.jsx(fn, { show: Y, onCancel: ie, items: u, currentSelection: $, onSelectionChange: W, onSearchQueryChange: d, texts: v, itemsNameWidth: g, additionalColumns: m, displayIdAsName: w, isLoading: b, disabled: Ee, inputRef: Se, archiveColumn: O, addNewOptionPath: _, refreshOptions: T })
9825
9825
  ] }) });
9826
- }, hD = ({ InputContainer: e = st, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: p, hint: f, className: v }) => {
9826
+ }, hD = ({ InputContainer: e = st, label: t, formField: r, hidden: n, required: a, placeholder: o, disabled: i, showClearIcon: l, resetsFields: c, multiple: p, accept: u, withoutLabel: d, hint: f, className: v }) => {
9827
9827
  const { watch: g, setValue: b, register: h, formState: m } = Ct(), [x, D] = L(!1), [w, y] = L(void 0), C = R(() => {
9828
9828
  b(r, "");
9829
9829
  }, [b, r]), O = R(() => {
@@ -9837,8 +9837,8 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9837
9837
  m.isSubmitted && D(!0);
9838
9838
  }, [m]);
9839
9839
  const S = w !== void 0;
9840
- return /* @__PURE__ */ s.jsxs(e, { label: `${t}${a ? "*" : ""}`, hidden: n, withoutLabel: p, isInvalid: S, hint: f, className: v, children: [
9841
- /* @__PURE__ */ s.jsx(Od, { type: "file", multiple: u, accept: d.join(", "), placeholder: o ?? t, isInvalid: S, hidden: n, disabled: i || m.disabled, className: "w-100", ...h(r, {
9840
+ return /* @__PURE__ */ s.jsxs(e, { label: `${t}${a ? "*" : ""}`, hidden: n, withoutLabel: d, isInvalid: S, hint: f, className: v, children: [
9841
+ /* @__PURE__ */ s.jsx(Od, { type: "file", multiple: p, accept: u.join(", "), placeholder: o ?? t, isInvalid: S, hidden: n, disabled: i || m.disabled, className: "w-100", ...h(r, {
9842
9842
  onChange: () => {
9843
9843
  c && c.forEach((_) => b(_, null, { shouldDirty: !0, shouldValidate: x }));
9844
9844
  }
@@ -9851,7 +9851,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9851
9851
  return F(() => {
9852
9852
  o(Object.keys(n.dirtyFields).length > 0);
9853
9853
  }, [n]), a ? /* @__PURE__ */ s.jsx(Du, { onStorno: t, noSpacer: r, disabled: n.disabled, children: e }) : null;
9854
- }, xD = ({ InputContainer: e = st, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: p, suffixIdToName: f, onSelect: v, className: g, appendCurrentSelectionWithName: b, hint: h, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent: D, miniDetailPlacement: w }) => {
9854
+ }, xD = ({ InputContainer: e = st, options: t, formField: r, label: n, size: a, resetsFields: o, isNumber: i, required: l, hidden: c, disabled: p, withoutLabel: u, noSortOptions: d, suffixIdToName: f, onSelect: v, className: g, appendCurrentSelectionWithName: b, hint: h, addNewOptionPath: m, refreshOptions: x, MiniDetailComponent: D, miniDetailPlacement: w }) => {
9855
9855
  const { texts: { customSelect: y } } = Q(fe), { formState: C, setValue: O, watch: S, control: _ } = Ct(), [T, k] = L(void 0), [G, E] = L(!1), [V, X] = L(!1), [P, I] = L(""), B = S(r), Y = z(() => t.find((W) => W.id === B) ?? null, [t, B]), te = R(() => {
9856
9856
  const W = r.split(".");
9857
9857
  let ie = C.errors;
@@ -9891,26 +9891,26 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9891
9891
  return b !== void 0 && B && (W.some((ie) => ie.id === B) || W.push({ id: B, name: b })), W.map((ie) => ({
9892
9892
  id: ie.id,
9893
9893
  name: re(ie)
9894
- })).filter((ie) => ut(ie.name, P)).sort((ie, Se) => p ? 0 : (ie.name ?? "").localeCompare(Se.name ?? ""));
9894
+ })).filter((ie) => ut(ie.name, P)).sort((ie, Se) => d ? 0 : (ie.name ?? "").localeCompare(Se.name ?? ""));
9895
9895
  }, [
9896
9896
  t,
9897
- p,
9897
+ d,
9898
9898
  P,
9899
9899
  re,
9900
9900
  b,
9901
9901
  B
9902
9902
  ]), J = U(null), me = T !== void 0;
9903
- return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: me, inputContainerClassName: j({ "luminus-dropdown-select-open": G }), hint: h, className: g, children: [
9903
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: me, inputContainerClassName: j({ "luminus-dropdown-select-open": G }), hint: h, className: g, children: [
9904
9904
  /* @__PURE__ */ s.jsx(Da, { control: _, name: r, render: () => /* @__PURE__ */ s.jsx(yn, { value: B, MiniDetailComponent: D, miniDetailPlacement: w, children: /* @__PURE__ */ s.jsx(_e.Select, { size: a, onMouseDown: (W) => {
9905
9905
  W.currentTarget.focus(), W.preventDefault();
9906
9906
  }, onClick: () => {
9907
9907
  E(!0);
9908
9908
  }, ref: J, value: B ?? "", onChange: () => {
9909
- }, isInvalid: me, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (Y == null ? void 0 : Y.id) ?? "", children: re(Y) }) }) }) }),
9909
+ }, isInvalid: me, hidden: c, disabled: p, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: (Y == null ? void 0 : Y.id) ?? "", children: re(Y) }) }) }) }),
9910
9910
  T && /* @__PURE__ */ s.jsx(Mt, { message: T.message }),
9911
- J.current && /* @__PURE__ */ s.jsx(fn, { show: G, onCancel: () => E(!1), items: $, currentSelection: Y ?? null, onSelectionChange: oe, onSearchQueryChange: ee, texts: y, disabled: u, inputRef: J, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: m, refreshOptions: x })
9911
+ J.current && /* @__PURE__ */ s.jsx(fn, { show: G, onCancel: () => E(!1), items: $, currentSelection: Y ?? null, onSelectionChange: oe, onSearchQueryChange: ee, texts: y, disabled: p, inputRef: J, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: m, refreshOptions: x })
9912
9912
  ] }) });
9913
- }, yD = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: p, step: f, stepperStep: v = 1, className: g, min: b, max: h, onChange: m, hint: x }) => {
9913
+ }, yD = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, size: a, resetsFields: o, showClearIcon: i, clearValue: l, required: c, hidden: p, disabled: u, withoutLabel: d, step: f, stepperStep: v = 1, className: g, min: b, max: h, onChange: m, hint: x }) => {
9914
9914
  const { register: D, formState: w, setValue: y, watch: C } = Ct(), [O, S] = L(void 0), [_, T] = L(!1), k = R((P, I, B) => {
9915
9915
  y(P, dr(I, b, h), B);
9916
9916
  }, [h, b, y]), G = R(() => {
@@ -9932,7 +9932,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9932
9932
  w.isSubmitted && T(!0);
9933
9933
  }, [w]);
9934
9934
  const V = O !== void 0, X = C(t);
9935
- return /* @__PURE__ */ s.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: u, withoutLabel: p, isInvalid: V, hint: x, className: g, children: [
9935
+ return /* @__PURE__ */ s.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: p, withoutLabel: d, isInvalid: V, hint: x, className: g, children: [
9936
9936
  /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
9937
9937
  /* @__PURE__ */ s.jsx(_e.Control, { type: "number", placeholder: n ?? r, size: a, ...D(t, {
9938
9938
  setValueAs: (P) => P == null || P === "" ? null : dr(Number(P), b, h),
@@ -9942,18 +9942,18 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9942
9942
  var I;
9943
9943
  o && o.forEach((B) => y(B, null, { shouldDirty: !0, shouldValidate: _ })), m && m((I = P.target) != null && I.value ? Number(P.target.value) ?? null : null);
9944
9944
  }
9945
- }), isInvalid: V, hidden: u, disabled: d || w.disabled, className: "w-100 luminus-numeric-stepper", step: f, min: b, max: h }),
9946
- /* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (P) => {
9945
+ }), isInvalid: V, hidden: p, disabled: u || w.disabled, className: "w-100 luminus-numeric-stepper", step: f, min: b, max: h }),
9946
+ /* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (P) => {
9947
9947
  P.preventDefault(), P.stopPropagation(), k(t, ((X ? Number(X) : 0) - v).toString(), { shouldDirty: !0, shouldValidate: _ });
9948
9948
  }, children: /* @__PURE__ */ s.jsx(cs, {}) }) }),
9949
- /* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (P) => {
9949
+ /* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (P) => {
9950
9950
  P.preventDefault(), P.stopPropagation(), k(t, ((X ? Number(X) : 0) + v).toString(), { shouldDirty: !0, shouldValidate: _ });
9951
9951
  }, children: /* @__PURE__ */ s.jsx(ds, {}) }) })
9952
9952
  ] }),
9953
9953
  i && C(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: G, children: /* @__PURE__ */ s.jsx(pt, {}) }) }),
9954
9954
  O && /* @__PURE__ */ s.jsx(Mt, { message: O.message })
9955
9955
  ] });
9956
- }, wD = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: u, withoutLabel: d, step: p, size: f, CustomOnChangeComponent: v, noSelectOnFocus: g, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: w, max: y, onChange: C, hint: O }) => {
9956
+ }, wD = ({ InputContainer: e = st, formField: t, label: r, placeholder: n, resetsFields: a, showClearIcon: o, clearValue: i, required: l, hidden: c, disabled: p, withoutLabel: u, step: d, size: f, CustomOnChangeComponent: v, noSelectOnFocus: g, className: b, decimalScale: h = 2, fixedDecimalScale: m = !1, numberPrefix: x, numberSuffix: D, min: w, max: y, onChange: C, hint: O }) => {
9957
9957
  const { formState: S, setValue: _, watch: T, control: k } = Ct(), [G, E] = L(void 0), [V, X] = L(!1), P = R(() => {
9958
9958
  const te = i ?? null;
9959
9959
  _(t, te !== null ? Number(te) : null, {
@@ -9977,7 +9977,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9977
9977
  y !== void 0 && B > y && _(t, y), w !== void 0 && B < w && _(t, w);
9978
9978
  }, [t, B, y, w, _]);
9979
9979
  const Y = G !== void 0;
9980
- return /* @__PURE__ */ s.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: Y, hint: O, className: b, children: [
9980
+ return /* @__PURE__ */ s.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: Y, hint: O, className: b, children: [
9981
9981
  /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
9982
9982
  /* @__PURE__ */ s.jsx(Da, { control: k, name: t, render: ({ field: { ref: te, onChange: H, name: oe, value: ee } }) => /* @__PURE__ */ s.jsx(ao, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: h, fixedDecimalScale: m, prefix: x, suffix: D, defaultValue: "", name: oe, value: ee ?? "", placeholder: n ?? r, onFocus: (re) => {
9983
9983
  !g && re.target.select();
@@ -9987,11 +9987,11 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
9987
9987
  a && a.forEach((ie) => _(ie, null, { shouldDirty: !0, shouldValidate: V }));
9988
9988
  const J = $ == null || Number.isNaN($) ? null : Number($);
9989
9989
  H(J), C && C(J);
9990
- }, hidden: c, disabled: u || S.disabled, className: j("form-control text-end w-100", {
9990
+ }, hidden: c, disabled: p || S.disabled, className: j("form-control text-end w-100", {
9991
9991
  "is-invalid": Y
9992
9992
  }, {
9993
9993
  [`form-control-${f}`]: f
9994
- }), step: p, getInputRef: te, min: w, max: y }) }),
9994
+ }), step: d, getInputRef: te, min: w, max: y }) }),
9995
9995
  v && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: v })
9996
9996
  ] }),
9997
9997
  o && T(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(ce, { color: "secondary", size: "sm", onClick: P, children: /* @__PURE__ */ s.jsx(pt, {}) }) }),
@@ -10019,7 +10019,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10019
10019
  t[r] = (e == null ? void 0 : e[r]) ?? void 0;
10020
10020
  }), t;
10021
10021
  }, Wi = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, Ui = (e) => !e.member && !e.isDrillThrough, Hi = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), qy = ({ dataSource: e, settings: t, pivotRef: r, localization: n, licenseKey: a, hyperlinkColumn: o, enabled: i = !0 }) => {
10022
- const { texts: { reports: l } } = Q(fe), [c, u] = L(!1), d = U(null), p = r ?? d, f = z(() => ({
10022
+ const { texts: { reports: l } } = Q(fe), [c, p] = L(!1), u = U(null), d = r ?? u, f = z(() => ({
10023
10023
  localization: n
10024
10024
  }), [n]), v = R((m) => {
10025
10025
  delete m[0], delete m[1], delete m[2];
@@ -10027,13 +10027,13 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10027
10027
  {
10028
10028
  id: "fm-tab-expand",
10029
10029
  title: l.expandAll,
10030
- handler: p.current.flexmonster.expandAllData,
10030
+ handler: d.current.flexmonster.expandAllData,
10031
10031
  icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/><path fill="none" d="M0 0h24v24H0V0z"/></svg>'
10032
10032
  },
10033
10033
  {
10034
10034
  id: "fm-tab-collapse",
10035
10035
  title: l.collapseAll,
10036
- handler: p.current.flexmonster.collapseAllData,
10036
+ handler: d.current.flexmonster.collapseAllData,
10037
10037
  icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'
10038
10038
  }
10039
10039
  ];
@@ -10044,17 +10044,17 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10044
10044
  menu: x,
10045
10045
  rightGroup: !0
10046
10046
  }), m;
10047
- }, [p, l.collapseAll, l.expand, l.expandAll]), g = (m) => {
10047
+ }, [d, l.collapseAll, l.expand, l.expandAll]), g = (m) => {
10048
10048
  const x = m.getTabs();
10049
10049
  m.getTabs = () => v(x);
10050
10050
  };
10051
10051
  F(() => {
10052
10052
  var m;
10053
- c && i && ((m = p.current) == null || m.flexmonster.updateData(e), console.log("Updating flexmonster dataSource to: ", e));
10054
- }, [e, i, c, p]), F(() => {
10053
+ c && i && ((m = d.current) == null || m.flexmonster.updateData(e), console.log("Updating flexmonster dataSource to: ", e));
10054
+ }, [e, i, c, d]), F(() => {
10055
10055
  var m, x, D;
10056
10056
  if (c && i) {
10057
- const { options: w, conditions: y, formats: C, slice: O, ...S } = (m = p.current) == null ? void 0 : m.flexmonster.getReport();
10057
+ const { options: w, conditions: y, formats: C, slice: O, ...S } = (m = d.current) == null ? void 0 : m.flexmonster.getReport();
10058
10058
  if (S === void 0 || typeof S == "string")
10059
10059
  return;
10060
10060
  const _ = zy(t);
@@ -10064,9 +10064,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10064
10064
  showFieldListSearch: !0
10065
10065
  };
10066
10066
  const T = { ...S, ..._ };
10067
- (D = p.current) == null || D.flexmonster.setReport(T), console.log("Refreshing flexmonster settings. New report: ", T);
10067
+ (D = d.current) == null || D.flexmonster.setReport(T), console.log("Refreshing flexmonster settings. New report: ", T);
10068
10068
  }
10069
- }, [i, c, p, t]);
10069
+ }, [i, c, d, t]);
10070
10070
  const b = R((m, x) => {
10071
10071
  var _;
10072
10072
  if (!o || !Wi(x, o.idColumn) || Ui(x))
@@ -10087,14 +10087,14 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10087
10087
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
10088
10088
  Hd,
10089
10089
  {
10090
- ref: p,
10090
+ ref: d,
10091
10091
  global: f,
10092
10092
  licenseKey: a,
10093
10093
  toolbar: !0,
10094
10094
  height: "100%",
10095
10095
  beforetoolbarcreated: g,
10096
10096
  ready: () => {
10097
- u(!0);
10097
+ p(!0);
10098
10098
  },
10099
10099
  width: "100%",
10100
10100
  customizeCell: b,
@@ -10102,17 +10102,17 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10102
10102
  }
10103
10103
  ) });
10104
10104
  }, Yy = (e, t, r, n) => {
10105
- const { texts: { reports: a } } = Q(fe), { prompt: o } = Pd(), { confirm: i } = dn(), l = Nt(), { user: c } = Q(_r), { startLoading: u, stopLoading: d } = Q(Or), { addNotification: p } = us(), f = R(async (m) => {
10106
- u("report-versionSavingAs");
10105
+ const { texts: { reports: a } } = Q(fe), { prompt: o } = Pd(), { confirm: i } = dn(), l = Nt(), { user: c } = Q(_r), { startLoading: p, stopLoading: u } = Q(Or), { addNotification: d } = us(), f = R(async (m) => {
10106
+ p("report-versionSavingAs");
10107
10107
  try {
10108
10108
  const x = await l.post("/reports/version", m);
10109
- p(a.saveSuccessful, "success"), await n(x.data);
10109
+ d(a.saveSuccessful, "success"), await n(x.data);
10110
10110
  } finally {
10111
- d("report-versionSavingAs");
10111
+ u("report-versionSavingAs");
10112
10112
  }
10113
- }, [p, n, l, a.saveSuccessful, u, d]), v = R(async () => {
10113
+ }, [d, n, l, a.saveSuccessful, p, u]), v = R(async () => {
10114
10114
  if (r === null) {
10115
- p("none open", "warning");
10115
+ d("none open", "warning");
10116
10116
  return;
10117
10117
  }
10118
10118
  if (!await i(a.confirmOverwriteSave))
@@ -10124,7 +10124,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10124
10124
  settings: x
10125
10125
  });
10126
10126
  }, [
10127
- p,
10127
+ d,
10128
10128
  i,
10129
10129
  t,
10130
10130
  e,
@@ -10142,26 +10142,26 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10142
10142
  settings: x
10143
10143
  });
10144
10144
  }, [t, o, e, a.enterName, f]), b = R(async () => {
10145
- u("report-versionSavingAs");
10145
+ p("report-versionSavingAs");
10146
10146
  try {
10147
10147
  await l.post("/reports/version", {
10148
10148
  reportVersionId: r ?? void 0,
10149
10149
  reportSourceName: e,
10150
10150
  isArchived: !0
10151
- }), p(a.deleteSuccessful, "success");
10151
+ }), d(a.deleteSuccessful, "success");
10152
10152
  } finally {
10153
- d("report-versionSavingAs");
10153
+ u("report-versionSavingAs");
10154
10154
  }
10155
10155
  }, [
10156
- p,
10156
+ d,
10157
10157
  l,
10158
10158
  e,
10159
10159
  a.deleteSuccessful,
10160
10160
  r,
10161
- u,
10162
- d
10161
+ p,
10162
+ u
10163
10163
  ]), h = R(async () => {
10164
- u("report-versionSavingAs");
10164
+ p("report-versionSavingAs");
10165
10165
  try {
10166
10166
  await l.post("/reports/version-restrictions", {
10167
10167
  reportVersionId: r ?? void 0,
@@ -10171,17 +10171,17 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10171
10171
  addRights: !1
10172
10172
  }
10173
10173
  ]
10174
- }), p(a.detachSuccessful, "success");
10174
+ }), d(a.detachSuccessful, "success");
10175
10175
  } finally {
10176
- d("report-versionSavingAs");
10176
+ u("report-versionSavingAs");
10177
10177
  }
10178
10178
  }, [
10179
- p,
10179
+ d,
10180
10180
  l,
10181
10181
  a.detachSuccessful,
10182
10182
  r,
10183
+ p,
10183
10184
  u,
10184
- d,
10185
10185
  c.personalNumber
10186
10186
  ]);
10187
10187
  return { saveAs: g, save: v, archive: b, detach: h };
@@ -10206,22 +10206,22 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10206
10206
  return l;
10207
10207
  }, [t, e, r, n]) };
10208
10208
  }, Xy = ({ isOpen: e, onHide: t, usersData: r, reportVersionId: n, EmployeePicker: a, setReportVersion: o }) => {
10209
- const { ProjectIconComponent: i, texts: { reports: l } } = Q(fe), { confirm: c } = dn(), [u, d] = L(null), { changeEmployeeRights: p } = Ky(n), f = R((b) => {
10209
+ const { ProjectIconComponent: i, texts: { reports: l } } = Q(fe), { confirm: c } = dn(), [p, u] = L(null), { changeEmployeeRights: d } = Ky(n), f = R((b) => {
10210
10210
  o((h) => h === null ? null : {
10211
10211
  ...h,
10212
10212
  users: b.filter((m) => m.isReportOwner === !1)
10213
10213
  });
10214
10214
  }, [o]), v = R(async () => {
10215
- if (u === null)
10215
+ if (p === null)
10216
10216
  return;
10217
- const b = await p(u.id, !0);
10218
- f(b), d(null);
10219
- }, [u, p, f]), g = R(async (b) => {
10217
+ const b = await d(p.id, !0);
10218
+ f(b), u(null);
10219
+ }, [p, d, f]), g = R(async (b) => {
10220
10220
  if (!await c(l.removeSharingWith(b)))
10221
10221
  return;
10222
- const m = await p(b, !1);
10222
+ const m = await d(b, !1);
10223
10223
  f(m);
10224
- }, [p, c, l, f]);
10224
+ }, [d, c, l, f]);
10225
10225
  return /* @__PURE__ */ s.jsxs(Ue, { show: e, onHide: t, children: [
10226
10226
  /* @__PURE__ */ s.jsx(Ue.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Ue.Title, { children: l.reportSharing }) }),
10227
10227
  /* @__PURE__ */ s.jsxs(Ue.Body, { children: [
@@ -10242,12 +10242,12 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10242
10242
  /* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-2 align-items-center", children: [
10243
10243
  /* @__PURE__ */ s.jsx("div", { className: "flex-grow-1", children: /* @__PURE__ */ s.jsx(a, { label: l.shareWith, onSelect: (b) => {
10244
10244
  if (b === null || typeof b.id != "number") {
10245
- d(null);
10245
+ u(null);
10246
10246
  return;
10247
10247
  }
10248
- d(b);
10249
- }, value: u }) }),
10250
- /* @__PURE__ */ s.jsx(Xr, { onClick: v, disabled: u === null, children: l.add })
10248
+ u(b);
10249
+ }, value: p }) }),
10250
+ /* @__PURE__ */ s.jsx(Xr, { onClick: v, disabled: p === null, children: l.add })
10251
10251
  ] })
10252
10252
  ] })
10253
10253
  ] });
@@ -10259,14 +10259,14 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10259
10259
  n(o);
10260
10260
  });
10261
10261
  }, [t, e]), { mappings: r };
10262
- }, DD = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: u, hyperlinkColumn: d }) => {
10263
- const { texts: { reports: p } } = Q(fe), { confirm: f } = dn(), v = vs(), [g] = Vd(), { id: b } = Gd(), h = z(() => b === void 0 ? null : Number(b), [b]), m = R(($) => {
10262
+ }, DD = ({ reportType: e, title: t, data: r, filterElements: n, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: l, localizationJsonFile: c, localizationTransformer: p, hyperlinkColumn: u }) => {
10263
+ const { texts: { reports: d } } = Q(fe), { confirm: f } = dn(), v = vs(), [g] = Vd(), { id: b } = Gd(), h = z(() => b === void 0 ? null : Number(b), [b]), m = R(($) => {
10264
10264
  const J = $ === null ? "" : $.toString();
10265
10265
  v(Qr(a(e), { id: J }) + "?" + g.toString(), {
10266
10266
  replace: !0,
10267
10267
  flushSync: !0
10268
10268
  });
10269
- }, [a, v, e, g]), [x, D] = L(!1), w = U(null), { user: y } = Q(_r), { data: C, reloadData: O } = hr(`/reports/${e}`), { mappings: S } = Jy(c, u), [_, T] = L({}), k = R(($) => {
10269
+ }, [a, v, e, g]), [x, D] = L(!1), w = U(null), { user: y } = Q(_r), { data: C, reloadData: O } = hr(`/reports/${e}`), { mappings: S } = Jy(c, p), [_, T] = L({}), k = R(($) => {
10270
10270
  const J = $.target.value, me = J === "" ? null : Number(J);
10271
10271
  m(me);
10272
10272
  }, [m]), G = R(async ($) => {
@@ -10286,15 +10286,15 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10286
10286
  mapping: S ?? void 0
10287
10287
  }), [r, S]), te = R(async () => {
10288
10288
  var J;
10289
- await f(p.confirmRevertChanges) && ((J = w.current) == null || J.flexmonster.setReport({ dataSource: Y, ..._ }));
10290
- }, [f, Y, p.confirmRevertChanges, _]), H = z(() => (E == null ? void 0 : E.ownerId) === y.personalNumber, [E == null ? void 0 : E.ownerId, y.personalNumber]), oe = z(() => {
10289
+ await f(d.confirmRevertChanges) && ((J = w.current) == null || J.flexmonster.setReport({ dataSource: Y, ..._ }));
10290
+ }, [f, Y, d.confirmRevertChanges, _]), H = z(() => (E == null ? void 0 : E.ownerId) === y.personalNumber, [E == null ? void 0 : E.ownerId, y.personalNumber]), oe = z(() => {
10291
10291
  var $;
10292
10292
  return ($ = E == null ? void 0 : E.users) == null ? void 0 : $.some((J) => J.id === y.personalNumber && !J.isReportOwner);
10293
10293
  }, [E == null ? void 0 : E.users, y.personalNumber]), ee = R(async () => {
10294
- await f(p.confirmDelete(E == null ? void 0 : E.name)) && (await I(), m(null), await O());
10295
- }, [I, f, O, E == null ? void 0 : E.name, p, m]), re = R(async () => {
10296
- await f(p.confirmDetach(E == null ? void 0 : E.name)) && (await B(), m(null), await O());
10297
- }, [f, B, O, E == null ? void 0 : E.name, p, m]);
10294
+ await f(d.confirmDelete(E == null ? void 0 : E.name)) && (await I(), m(null), await O());
10295
+ }, [I, f, O, E == null ? void 0 : E.name, d, m]), re = R(async () => {
10296
+ await f(d.confirmDetach(E == null ? void 0 : E.name)) && (await B(), m(null), await O());
10297
+ }, [f, B, O, E == null ? void 0 : E.name, d, m]);
10298
10298
  return F(() => {
10299
10299
  var $, J;
10300
10300
  h === null && m((($ = C == null ? void 0 : C.reportVersions.find((me) => me.isSystem === !0)) == null ? void 0 : $.reportVersionId) ?? ((J = C == null ? void 0 : C.reportVersions[0]) == null ? void 0 : J.reportVersionId) ?? null);
@@ -10304,20 +10304,20 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10304
10304
  n,
10305
10305
  /* @__PURE__ */ s.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
10306
10306
  /* @__PURE__ */ s.jsxs(Ad, { size: "sm", value: h ?? void 0, onChange: k, children: [
10307
- /* @__PURE__ */ s.jsx("optgroup", { label: p.versionSelectSystem, children: C == null ? void 0 : C.reportVersions.filter(($) => $.isSystem === !0).map(($) => /* @__PURE__ */ s.jsx("option", { value: $.reportVersionId, children: $.name }, $.reportVersionId)) }),
10308
- /* @__PURE__ */ s.jsx("optgroup", { label: p.versionSelectYour, children: C == null ? void 0 : C.reportVersions.filter(($) => $.ownerId === y.personalNumber).map(($) => /* @__PURE__ */ s.jsx("option", { value: $.reportVersionId, children: $.name }, $.reportVersionId)) }),
10309
- /* @__PURE__ */ s.jsx("optgroup", { label: p.versionSelectSharedWithYou, children: C == null ? void 0 : C.reportVersions.filter(($) => $.isSystem === !1 && $.ownerId !== y.personalNumber).map(($) => /* @__PURE__ */ s.jsx("option", { value: $.reportVersionId, children: `${$.name} [${$.ownerId}]` }, $.reportVersionId)) })
10307
+ /* @__PURE__ */ s.jsx("optgroup", { label: d.versionSelectSystem, children: C == null ? void 0 : C.reportVersions.filter(($) => $.isSystem === !0).map(($) => /* @__PURE__ */ s.jsx("option", { value: $.reportVersionId, children: $.name }, $.reportVersionId)) }),
10308
+ /* @__PURE__ */ s.jsx("optgroup", { label: d.versionSelectYour, children: C == null ? void 0 : C.reportVersions.filter(($) => $.ownerId === y.personalNumber).map(($) => /* @__PURE__ */ s.jsx("option", { value: $.reportVersionId, children: $.name }, $.reportVersionId)) }),
10309
+ /* @__PURE__ */ s.jsx("optgroup", { label: d.versionSelectSharedWithYou, children: C == null ? void 0 : C.reportVersions.filter(($) => $.isSystem === !1 && $.ownerId !== y.personalNumber).map(($) => /* @__PURE__ */ s.jsx("option", { value: $.reportVersionId, children: `${$.name} [${$.ownerId}]` }, $.reportVersionId)) })
10310
10310
  ] }),
10311
- /* @__PURE__ */ s.jsx(dt, { icon: /* @__PURE__ */ s.jsx(Td, {}), onClick: X, disabled: h === null || (E == null ? void 0 : E.isSystem) || !H, children: p.save }),
10312
- /* @__PURE__ */ s.jsx(dt, { icon: /* @__PURE__ */ s.jsx(Rd, {}), onClick: P, className: "flex-shrink-0", children: p.saveAs }),
10311
+ /* @__PURE__ */ s.jsx(dt, { icon: /* @__PURE__ */ s.jsx(Td, {}), onClick: X, disabled: h === null || (E == null ? void 0 : E.isSystem) || !H, children: d.save }),
10312
+ /* @__PURE__ */ s.jsx(dt, { icon: /* @__PURE__ */ s.jsx(Rd, {}), onClick: P, className: "flex-shrink-0", children: d.saveAs }),
10313
10313
  /* @__PURE__ */ s.jsxs(Kt, { toggle: /* @__PURE__ */ s.jsx(Xt, { as: jr }), children: [
10314
- /* @__PURE__ */ s.jsx(He, { onClick: te, children: p.revertChanges }),
10315
- /* @__PURE__ */ s.jsx(He, { onClick: () => D(!0), disabled: !H || (E == null ? void 0 : E.isSystem), children: p.share }),
10316
- H && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(He, { color: "danger", onClick: ee, children: p.delete }) : null,
10317
- oe && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(He, { color: "danger", onClick: re, children: p.detach }) : null
10314
+ /* @__PURE__ */ s.jsx(He, { onClick: te, children: d.revertChanges }),
10315
+ /* @__PURE__ */ s.jsx(He, { onClick: () => D(!0), disabled: !H || (E == null ? void 0 : E.isSystem), children: d.share }),
10316
+ H && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(He, { color: "danger", onClick: ee, children: d.delete }) : null,
10317
+ oe && !(E != null && E.isSystem) ? /* @__PURE__ */ s.jsx(He, { color: "danger", onClick: re, children: d.detach }) : null
10318
10318
  ] })
10319
10319
  ] })
10320
- ] }), children: /* @__PURE__ */ s.jsx("div", { className: j("h-100 w-100", Y.data && Y.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ s.jsx(qy, { dataSource: Y, settings: _, pivotRef: w, enabled: Y.data && Y.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn: d }) }) }),
10320
+ ] }), children: /* @__PURE__ */ s.jsx("div", { className: j("h-100 w-100", Y.data && Y.data.length > 0 ? "" : "d-none"), children: /* @__PURE__ */ s.jsx(qy, { dataSource: Y, settings: _, pivotRef: w, enabled: Y.data && Y.data.length > 0, localization: o, licenseKey: i, hyperlinkColumn: u }) }) }),
10321
10321
  E !== null ? /* @__PURE__ */ s.jsx(
10322
10322
  Xy,
10323
10323
  {
@@ -10339,9 +10339,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10339
10339
  }, className: j(`border-${n}`, t.includes(n) && `bg-${n}`), onClick: () => {
10340
10340
  t.includes(n) ? r(t.filter((a) => a !== n)) : r([...t, n]);
10341
10341
  } }, n)) }), Zy = ({ linksTo: e, onClick: t, children: r }) => e ? /* @__PURE__ */ s.jsx(nt, { to: e, className: "text-decoration-none", onClick: t, children: r }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: r }), ew = ({ message: e, onDeleteMessage: t, onClickMessage: r, getIcon: n, getLinksTo: a }) => {
10342
- const { ProjectIconComponent: o, localizationContext: i } = Q(fe), { dateFnsLocale: l } = Q(i), c = e.dateTime ? gr(e.dateTime) : null, u = c ? Qd(new Date(Date.now()), c) : 0;
10342
+ const { ProjectIconComponent: o, localizationContext: i } = Q(fe), { dateFnsLocale: l } = Q(i), c = e.dateTime ? gr(e.dateTime) : null, p = c ? Qd(new Date(Date.now()), c) : 0;
10343
10343
  return /* @__PURE__ */ s.jsxs("div", { children: [
10344
- c && /* @__PURE__ */ s.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Et, { text: vr(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(ae, { variant: "caption", children: u > 2 ? vr(c, "dd.MM.yyyy") : eu(c, new Date(Date.now()), {
10344
+ c && /* @__PURE__ */ s.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Et, { text: vr(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(ae, { variant: "caption", children: p > 2 ? vr(c, "dd.MM.yyyy") : eu(c, new Date(Date.now()), {
10345
10345
  locale: l.code
10346
10346
  }) }) }) }) }),
10347
10347
  /* @__PURE__ */ s.jsx(Zy, { linksTo: a(e) ?? void 0, onClick: r, children: /* @__PURE__ */ s.jsx(bx, { level: e.type, noIcon: !0, children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
@@ -10349,8 +10349,8 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10349
10349
  /* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
10350
10350
  /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
10351
10351
  /* @__PURE__ */ s.jsx(ae, { variant: "body2", className: "fw-bold", children: e.subject }),
10352
- /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (d) => {
10353
- d.preventDefault(), d.stopPropagation(), t(e.id);
10352
+ /* @__PURE__ */ s.jsx(ce, { size: "sm", onClick: (u) => {
10353
+ u.preventDefault(), u.stopPropagation(), t(e.id);
10354
10354
  }, children: /* @__PURE__ */ s.jsx(o, { icon: "delete" }) })
10355
10355
  ] }),
10356
10356
  /* @__PURE__ */ s.jsx(ae, { variant: "body2", children: e.text })
@@ -10358,9 +10358,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10358
10358
  ] }) }) })
10359
10359
  ] });
10360
10360
  }, zi = ["info", "warning", "danger"], qi = ({ messages: e, isLoading: t, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }) => {
10361
- const { texts: { messageBoard: i } } = Q(fe), [l, c] = L(zi), u = z(() => e.filter((d) => l.includes(d.type ?? "")), [l, e]);
10361
+ const { texts: { messageBoard: i } } = Q(fe), [l, c] = L(zi), p = z(() => e.filter((u) => l.includes(u.type ?? "")), [l, e]);
10362
10362
  return /* @__PURE__ */ s.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
10363
- /* @__PURE__ */ s.jsx(Qy, { knownTypes: zi, typeFilters: l, onChangeTypeFilters: (d) => c(d) }),
10363
+ /* @__PURE__ */ s.jsx(Qy, { knownTypes: zi, typeFilters: l, onChangeTypeFilters: (u) => c(u) }),
10364
10364
  t && /* @__PURE__ */ s.jsxs("div", { className: "p-3 w-100", children: [
10365
10365
  /* @__PURE__ */ s.jsx(gt, { as: xo.Title, animation: "glow", children: /* @__PURE__ */ s.jsx(gt, { xs: 6 }) }),
10366
10366
  /* @__PURE__ */ s.jsxs(gt, { as: xo.Text, animation: "glow", children: [
@@ -10377,22 +10377,22 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10377
10377
  ] }),
10378
10378
  !t && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
10379
10379
  e.length === 0 && /* @__PURE__ */ s.jsx(ln, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
10380
- /* @__PURE__ */ s.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: u.map((d) => /* @__PURE__ */ s.jsx(ew, { message: d, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }, d.id)) })
10380
+ /* @__PURE__ */ s.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: p.map((u) => /* @__PURE__ */ s.jsx(ew, { message: u, onDeleteMessage: r, onClickMessage: n, getIcon: a, getLinksTo: o }, u.id)) })
10381
10381
  ] })
10382
10382
  ] });
10383
10383
  }, Kn = {
10384
10384
  apiGet: "/messageBoard",
10385
10385
  apiDelete: "/messageBoard/"
10386
10386
  }, ED = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = Kn.apiGet, apiDelete: n = Kn.apiDelete } = Kn, getIcon: a, getLinksTo: o }) => {
10387
- const l = Nt(), [c, u] = L([]), [d, p] = L(!1), [f, v] = L(!1), [g, b] = L(!1), h = R(async () => {
10387
+ const l = Nt(), [c, p] = L([]), [u, d] = L(!1), [f, v] = L(!1), [g, b] = L(!1), h = R(async () => {
10388
10388
  v(!0), await l.get(r).then(({ data: y }) => {
10389
- u(y), p(!0), v(!1);
10389
+ p(y), d(!0), v(!1);
10390
10390
  }).catch(() => {
10391
- u([]), v(!1);
10391
+ p([]), v(!1);
10392
10392
  });
10393
10393
  }, [r, l]), m = R(async (y) => l.delete(`${n}${y}`).then(() => !0).catch(() => !1), [n, l]), x = R((y) => {
10394
10394
  m(y).then((C) => {
10395
- C && u(c.filter((O) => O.id !== y));
10395
+ C && p(c.filter((O) => O.id !== y));
10396
10396
  });
10397
10397
  }, [m, c]);
10398
10398
  F(() => {
@@ -10402,7 +10402,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10402
10402
  clearInterval(y);
10403
10403
  };
10404
10404
  }, [h]);
10405
- const D = c.filter((y) => y.type === "danger").length, w = d ? !1 : f;
10405
+ const D = c.filter((y) => y.type === "danger").length, w = u ? !1 : f;
10406
10406
  return e ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
10407
10407
  /* @__PURE__ */ s.jsxs("div", { className: "position-relative", children: [
10408
10408
  /* @__PURE__ */ s.jsx(ce, { size: "md", onClick: () => b(!g), children: t }),
@@ -10425,11 +10425,11 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10425
10425
  const l = o.type, c = o.props;
10426
10426
  if (!c)
10427
10427
  return null;
10428
- const u = c.eventKey, d = c.children, p = c.className, f = c.onClick;
10428
+ const p = c.eventKey, u = c.children, d = c.className, f = c.onClick;
10429
10429
  return /* @__PURE__ */ s.jsxs(le.Fragment, { children: [
10430
- /* @__PURE__ */ s.jsx(l, { ...c, className: j({ active: e === u }, p), onClick: () => {
10431
- t(u), f && f(u);
10432
- }, vertical: n || a, children: d }),
10430
+ /* @__PURE__ */ s.jsx(l, { ...c, className: j({ active: e === p }, d), onClick: () => {
10431
+ t(p), f && f(p);
10432
+ }, vertical: n || a, children: u }),
10433
10433
  a && i < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className: j("join-line", ow.joinLine) })
10434
10434
  ] }, c.eventKey);
10435
10435
  }) }), sw = "_tab_1tbi7_1", lw = "_disabled_1tbi7_7", cw = "_vertical_1tbi7_13", Jn = {
@@ -10455,7 +10455,7 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10455
10455
  /* @__PURE__ */ s.jsx(ce, { className: "rounded m-1", onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(r, { icon: e }) }),
10456
10456
  a && /* @__PURE__ */ s.jsxs("div", { className: Hr.selection, children: [
10457
10457
  /* @__PURE__ */ s.jsx("div", { className: Hr.selectionBg, onClick: () => o(!1) }),
10458
- /* @__PURE__ */ s.jsx("div", { className: Hr.selectionItemsContainer, children: /* @__PURE__ */ s.jsx("div", { className: Hr.selectionItems, children: n.filter((l, c, u) => u.indexOf(l) === c).map((l) => /* @__PURE__ */ s.jsx(ce, { className: "rounded", onClick: () => i(l), children: /* @__PURE__ */ s.jsx(r, { icon: l }) }, l)) }) })
10458
+ /* @__PURE__ */ s.jsx("div", { className: Hr.selectionItemsContainer, children: /* @__PURE__ */ s.jsx("div", { className: Hr.selectionItems, children: n.filter((l, c, p) => p.indexOf(l) === c).map((l) => /* @__PURE__ */ s.jsx(ce, { className: "rounded", onClick: () => i(l), children: /* @__PURE__ */ s.jsx(r, { icon: l }) }, l)) }) })
10459
10459
  ] })
10460
10460
  ] });
10461
10461
  }, wc = () => {
@@ -10466,17 +10466,17 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10466
10466
  }, gw = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n }) => {
10467
10467
  const { ProjectIconComponent: a } = Q(fe), [o, i] = L(e.icon), [l, c] = L(e.name);
10468
10468
  console.log(o, typeof o);
10469
- const u = z(() => !(o === e.icon && l === e.name), [o, l, e.icon, e.name]), d = R(() => {
10469
+ const p = z(() => !(o === e.icon && l === e.name), [o, l, e.icon, e.name]), u = R(() => {
10470
10470
  i(e.icon), c(e.name);
10471
- }, [e]), p = R(() => {
10471
+ }, [e]), d = R(() => {
10472
10472
  n({ ...e, icon: o, name: l });
10473
10473
  }, [n, o, l, e]);
10474
10474
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
10475
10475
  /* @__PURE__ */ s.jsx("td", { className: "align-middle", children: /* @__PURE__ */ s.jsx(wt, { type: "text", maxLength: 20, value: l, onChange: c, className: "d-flex-grow-1", InputContainer: tt }) }),
10476
10476
  /* @__PURE__ */ s.jsx("td", { className: "align-middle text-center", children: /* @__PURE__ */ s.jsx(yc, { icon: o, setIcon: i, IconComponent: t, IconTypeArray: r }) }),
10477
- /* @__PURE__ */ s.jsx("td", { className: "align-middle", style: { width: "7em" }, children: u && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
10478
- /* @__PURE__ */ s.jsx(ce, { onClick: d, color: "danger", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "cancel" }) }),
10479
- /* @__PURE__ */ s.jsx(ce, { onClick: p, color: "success", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "check" }) })
10477
+ /* @__PURE__ */ s.jsx("td", { className: "align-middle", style: { width: "7em" }, children: p && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
10478
+ /* @__PURE__ */ s.jsx(ce, { onClick: u, color: "danger", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "cancel" }) }),
10479
+ /* @__PURE__ */ s.jsx(ce, { onClick: d, color: "success", className: "d-inline mx-2", children: /* @__PURE__ */ s.jsx(a, { icon: "check" }) })
10480
10480
  ] }) })
10481
10481
  ] });
10482
10482
  }, mw = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: n, deleteShortcutLink: a }) => {
@@ -10508,9 +10508,9 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10508
10508
  linkAddButton: bw,
10509
10509
  createLinkRow: xw
10510
10510
  }, yw = ({ shortcutLink: e, IconComponent: t }) => /* @__PURE__ */ s.jsx(Et, { text: e.name, placement: "bottom", children: /* @__PURE__ */ s.jsx(nt, { to: e.url, className: Ht.linkButton, children: /* @__PURE__ */ s.jsx(t, { icon: e.icon }) }) }), ww = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: n, IconComponent: a, IconTypeArray: o }) => {
10511
- const i = Wd(), { texts: l } = Q(fe), [c, u] = L("star-outline"), [d, p] = L(n ? document.title.replace(n, "") : document.title), f = R(async () => {
10512
- await r({ icon: c, name: d, url: i.pathname + i.search }), e();
10513
- }, [e, r, c, i.pathname, i.search, d]), v = z(() => i.pathname + i.search, [i.pathname, i.search]);
10511
+ const i = Wd(), { texts: l } = Q(fe), [c, p] = L("star-outline"), [u, d] = L(n ? document.title.replace(n, "") : document.title), f = R(async () => {
10512
+ await r({ icon: c, name: u, url: i.pathname + i.search }), e();
10513
+ }, [e, r, c, i.pathname, i.search, u]), v = z(() => i.pathname + i.search, [i.pathname, i.search]);
10514
10514
  return /* @__PURE__ */ s.jsxs(Ue, { show: t, onHide: e, size: "sm", children: [
10515
10515
  /* @__PURE__ */ s.jsx(Ue.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Ue.Title, { children: l.shortcutLinks.newShortcut }) }),
10516
10516
  /* @__PURE__ */ s.jsxs(Ue.Body, { children: [
@@ -10523,11 +10523,11 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10523
10523
  ] }),
10524
10524
  /* @__PURE__ */ s.jsxs("div", { className: Ht.createLinkRow, children: [
10525
10525
  /* @__PURE__ */ s.jsx(ae, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.name }),
10526
- /* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(wt, { type: "text", maxLength: 25, value: d, onChange: p, className: "w-100", InputContainer: st, withoutLabel: !0 }) })
10526
+ /* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(wt, { type: "text", maxLength: 25, value: u, onChange: d, className: "w-100", InputContainer: st, withoutLabel: !0 }) })
10527
10527
  ] }),
10528
10528
  /* @__PURE__ */ s.jsxs("div", { className: Ht.createLinkRow, children: [
10529
10529
  /* @__PURE__ */ s.jsx(ae, { variant: "form-label", className: "pe-3 text-end", children: l.shortcutLinks.icon }),
10530
- /* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(yc, { icon: c, setIcon: u, IconComponent: a, IconTypeArray: o }) })
10530
+ /* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-middle fw-bold", children: /* @__PURE__ */ s.jsx(yc, { icon: c, setIcon: p, IconComponent: a, IconTypeArray: o }) })
10531
10531
  ] })
10532
10532
  ] }),
10533
10533
  /* @__PURE__ */ s.jsx(Ue.Footer, { className: "d-flex justify-content-end", children: /* @__PURE__ */ s.jsx(Xr, { onClick: f, children: l.shortcutLinks.addShortcut }) })
@@ -10581,22 +10581,22 @@ const Xw = ({ InputContainer: e = Lt, value: t, onChange: r, debounceMs: n, labe
10581
10581
  silent: !0,
10582
10582
  dataTransformer: n,
10583
10583
  enabled: r !== null
10584
- }), { create: i, update: l, remove: c } = Nw(t), u = R(async (v) => {
10584
+ }), { create: i, update: l, remove: c } = Nw(t), p = R(async (v) => {
10585
10585
  const g = Yi(r);
10586
10586
  if (Ew(a).length >= pa)
10587
10587
  throw new Error("Cannot add more shortcut links.");
10588
10588
  await i({ ...v, employee: g.personalNumber }), await o();
10589
- }, [i, o, a, r]), d = R(async (v) => {
10589
+ }, [i, o, a, r]), u = R(async (v) => {
10590
10590
  const g = Yi(r);
10591
10591
  await l({ ...v, employee: g.personalNumber }), await o();
10592
- }, [o, l, r]), p = R(async (v) => {
10592
+ }, [o, l, r]), d = R(async (v) => {
10593
10593
  await c(v), await o();
10594
10594
  }, [o, c]), f = z(() => ({
10595
10595
  shortcutLinks: a,
10596
- createShortcutLink: u,
10597
- editShortcutLink: d,
10598
- deleteShortcutLink: p
10599
- }), [u, p, d, a]);
10596
+ createShortcutLink: p,
10597
+ editShortcutLink: u,
10598
+ deleteShortcutLink: d
10599
+ }), [p, d, u, a]);
10600
10600
  return /* @__PURE__ */ s.jsx(fs.Provider, { value: f, children: e });
10601
10601
  };
10602
10602
  export {