@ahrowe/ui 0.1.16 → 0.1.18

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/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import e, { Component as t, PureComponent as n, forwardRef as r, useCallback as i, useEffect as a, useImperativeHandle as o, useLayoutEffect as s, useMemo as c, useReducer as l, useRef as u, useState as d } from "react";
2
2
  import f from "classnames";
3
3
  import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
4
- import { faBell as m, faCheck as h, faChevronDown as g, faChevronLeft as _, faChevronRight as v, faChevronUp as y, faCircleCheck as b, faCircleInfo as x, faCircleXmark as S, faDoorOpen as C, faDownload as w, faDrawPolygon as T, faEnvelope as E, faEye as D, faEyeSlash as O, faGear as k, faHandPointer as A, faLayerGroup as j, faMagnifyingGlassMinus as M, faMagnifyingGlassPlus as N, faPen as P, faPhone as F, faPlus as I, faSearch as ee, faSquare as L, faTrash as R, faTriangleExclamation as te, faUpload as ne, faXmark as z, faXmarkCircle as re } from "@fortawesome/free-solid-svg-icons";
4
+ import { faBell as m, faCheck as h, faChevronDown as g, faChevronLeft as _, faChevronRight as v, faChevronUp as y, faCircleCheck as b, faCircleInfo as x, faCircleXmark as S, faDoorOpen as C, faDownload as w, faDrawPolygon as T, faEnvelope as E, faEye as D, faEyeSlash as O, faGear as k, faHandPointer as A, faLayerGroup as j, faMagnifyingGlassMinus as M, faMagnifyingGlassPlus as N, faPen as P, faPhone as F, faPlus as I, faSearch as ee, faSquare as te, faTrash as L, faTriangleExclamation as R, faUpload as ne, faXmark as z, faXmarkCircle as re } from "@fortawesome/free-solid-svg-icons";
5
5
  import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
6
6
  import { createPortal as ie } from "react-dom";
7
7
  import ae from "downshift";
8
8
  import oe from "@mona-health/react-input-mask";
9
- import { DndContext as U, DragOverlay as se, PointerSensor as W, closestCorners as ce, useDroppable as le, useSensor as G, useSensors as K } from "@dnd-kit/core";
10
- import { SortableContext as q, arrayMove as ue, useSortable as de, verticalListSortingStrategy as fe } from "@dnd-kit/sortable";
9
+ import { DndContext as U, DragOverlay as se, PointerSensor as W, closestCorners as ce, useDroppable as le, useSensor as G, useSensors as ue } from "@dnd-kit/core";
10
+ import { SortableContext as K, arrayMove as de, useSortable as q, verticalListSortingStrategy as fe } from "@dnd-kit/sortable";
11
11
  import { CSS as pe } from "@dnd-kit/utilities";
12
12
  import { NumericFormat as me } from "react-number-format";
13
13
  //#region package/common/accordion/accordion.types.ts
@@ -577,10 +577,24 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
577
577
  })]
578
578
  });
579
579
  }
580
- var Je = {
580
+ //#endregion
581
+ //#region package/common/chip/chip.types.ts
582
+ var Je = /* @__PURE__ */ function(e) {
583
+ return e.Default = "default", e.Primary = "primary", e.Info = "info", e.Warn = "warn", e.Error = "error", e;
584
+ }({}), Ye = {
581
585
  chip: "chip_rCTMl",
582
586
  "chip-clickable": "chip-clickable_WTVjG",
583
587
  chipClickable: "chip-clickable_WTVjG",
588
+ "chip-style-default": "chip-style-default_ppCDx",
589
+ chipStyleDefault: "chip-style-default_ppCDx",
590
+ "chip-style-primary": "chip-style-primary_oyE85",
591
+ chipStylePrimary: "chip-style-primary_oyE85",
592
+ "chip-style-info": "chip-style-info_GNJrm",
593
+ chipStyleInfo: "chip-style-info_GNJrm",
594
+ "chip-style-warn": "chip-style-warn_Jx3LU",
595
+ chipStyleWarn: "chip-style-warn_Jx3LU",
596
+ "chip-style-error": "chip-style-error_-Npvg",
597
+ chipStyleError: "chip-style-error_-Npvg",
584
598
  "chip-inner": "chip-inner_mfo-w",
585
599
  chipInner: "chip-inner_mfo-w",
586
600
  "chip-text": "chip-text_d1juf",
@@ -591,36 +605,40 @@ var Je = {
591
605
  chipContainer: "chip-container_oNNmF",
592
606
  "chip-container-inline": "chip-container-inline_11QHw",
593
607
  chipContainerInline: "chip-container-inline_11QHw"
608
+ }, Xe = {
609
+ default: Ye.chipStyleDefault,
610
+ primary: Ye.chipStylePrimary,
611
+ info: Ye.chipStyleInfo,
612
+ warn: Ye.chipStyleWarn,
613
+ error: Ye.chipStyleError
594
614
  };
595
- //#endregion
596
- //#region package/common/chip/chip.tsx
597
- function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon: r = !1, onClick: i, onRemove: a, ...o }) {
598
- let s = c(() => {
615
+ function Ze({ className: e = "", thumbnail: t = "", text: n = "", styleType: r = Je.Default, showRemoveIcon: i = !1, onClick: a, onRemove: o, ...s }) {
616
+ let l = c(() => {
599
617
  if (typeof t == "string" && t.startsWith("http")) return t;
600
618
  }, [t]);
601
619
  return /* @__PURE__ */ V("div", {
602
- ...o,
603
- className: f(Je.chip, i && Je.chipClickable, e),
604
- onClick: i,
620
+ ...s,
621
+ className: f(Ye.chip, Xe[r], a && Ye.chipClickable, e),
622
+ onClick: a,
605
623
  children: /* @__PURE__ */ V(ke, {
606
- disabled: !i,
624
+ disabled: !a,
607
625
  style: { borderRadius: "inherit" },
608
626
  children: /* @__PURE__ */ H("div", {
609
- className: Je.chipInner,
627
+ className: Ye.chipInner,
610
628
  children: [
611
629
  t && /* @__PURE__ */ V("div", {
612
- className: Je.chipThumbnail,
613
- style: s ? { backgroundImage: `url(${s})` } : {},
614
- children: !s && t
630
+ className: Ye.chipThumbnail,
631
+ style: l ? { backgroundImage: `url(${l})` } : {},
632
+ children: !l && t
615
633
  }),
616
634
  /* @__PURE__ */ V("div", {
617
- className: Je.chipText,
635
+ className: Ye.chipText,
618
636
  children: n
619
637
  }),
620
- r && /* @__PURE__ */ V(Re, {
638
+ i && /* @__PURE__ */ V(Re, {
621
639
  icon: re,
622
640
  onClick: (e) => {
623
- e.stopPropagation(), a?.();
641
+ e.stopPropagation(), o?.();
624
642
  }
625
643
  })
626
644
  ]
@@ -630,14 +648,14 @@ function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon
630
648
  }
631
649
  //#endregion
632
650
  //#region package/common/chip/chipContainer.tsx
633
- function Xe({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
651
+ function Qe({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
634
652
  return /* @__PURE__ */ V("div", {
635
653
  ...r,
636
- className: f(Je.chipContainer, n && Je.chipContainerInline, e),
654
+ className: f(Ye.chipContainer, n && Ye.chipContainerInline, e),
637
655
  children: t
638
656
  });
639
657
  }
640
- var Ze = {
658
+ var $e = {
641
659
  floatingMenu: "floatingMenu_E1XCy",
642
660
  "floatingMenu-content": "floatingMenu-content_AmxkA",
643
661
  floatingMenuContent: "floatingMenu-content_AmxkA",
@@ -660,15 +678,15 @@ var Ze = {
660
678
  "floatingMenu-anim": "floatingMenu-anim_5KB-f",
661
679
  floatingMenuAnim: "floatingMenu-anim_5KB-f",
662
680
  showMenu: "showMenu_AprCh"
663
- }, Qe = /* @__PURE__ */ function(e) {
681
+ }, et = /* @__PURE__ */ function(e) {
664
682
  return e.Left = "left", e.Right = "right", e.Center = "center", e;
665
683
  }({});
666
684
  //#endregion
667
685
  //#region package/common/floatingMenu/floatingMenu.tsx
668
- function $e(e) {
686
+ function tt(e) {
669
687
  return e.charAt(0).toUpperCase() + e.slice(1);
670
688
  }
671
- function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: p, ...m }) {
689
+ function nt({ align: e = et.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: p, ...m }) {
672
690
  let h = u(null), g = u(null), _ = u(i), [v, y] = d(10), [b, x] = d(null);
673
691
  a(() => {
674
692
  _.current = i;
@@ -705,19 +723,19 @@ function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen:
705
723
  return window.addEventListener("mouseup", e), () => window.removeEventListener("mouseup", e);
706
724
  }, [r, o]), /* @__PURE__ */ H("div", {
707
725
  ...m,
708
- className: f(Ze.floatingMenu, s, l?.root),
726
+ className: f($e.floatingMenu, s, l?.root),
709
727
  style: {
710
728
  ...c,
711
729
  ...p?.root
712
730
  },
713
731
  children: [/* @__PURE__ */ V("div", {
714
- className: f(Ze.floatingMenuContent, l?.trigger),
732
+ className: f($e.floatingMenuContent, l?.trigger),
715
733
  style: p?.trigger,
716
734
  ref: g,
717
735
  onClick: S,
718
736
  children: t
719
737
  }), r && /* @__PURE__ */ H("div", {
720
- className: f(Ze.floatingMenuAnim, l?.menu),
738
+ className: f($e.floatingMenuAnim, l?.menu),
721
739
  style: {
722
740
  width: `${v}px`,
723
741
  ...b && {
@@ -726,16 +744,16 @@ function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen:
726
744
  },
727
745
  ...p?.menu
728
746
  },
729
- children: [/* @__PURE__ */ V("div", { className: f(Ze.floatingMenuContainerFlag, Ze[`floatingMenuContainerFlagAlign${$e(e)}`]) }), /* @__PURE__ */ V("div", {
747
+ children: [/* @__PURE__ */ V("div", { className: f($e.floatingMenuContainerFlag, $e[`floatingMenuContainerFlagAlign${tt(e)}`]) }), /* @__PURE__ */ V("div", {
730
748
  ref: h,
731
- className: f(Ze.floatingMenuContainer, Ze[`floatingMenuContainerAlign${$e(e)}`], l?.menuContainer),
749
+ className: f($e.floatingMenuContainer, $e[`floatingMenuContainerAlign${tt(e)}`], l?.menuContainer),
732
750
  style: p?.menuContainer,
733
751
  children: n
734
752
  })]
735
753
  })]
736
754
  });
737
755
  }
738
- var tt = {
756
+ var rt = {
739
757
  tooltipBubble: "tooltipBubble_uyev0",
740
758
  tooltipDetails: "tooltipDetails_R7N16",
741
759
  "tooltipDetails-icon": "tooltipDetails-icon_rsjns",
@@ -744,25 +762,25 @@ var tt = {
744
762
  };
745
763
  //#endregion
746
764
  //#region package/common/tooltip/tooltip.tsx
747
- function nt({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
765
+ function it({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
748
766
  let [a, o] = d(!1);
749
767
  return e === "info" ? n ? /* @__PURE__ */ V("div", {
750
- className: f(tt.tooltipBubble, r),
768
+ className: f(rt.tooltipBubble, r),
751
769
  onClick: i,
752
770
  children: t
753
771
  }) : null : e === "details" ? /* @__PURE__ */ H("div", {
754
- className: tt.tooltipDetails,
772
+ className: rt.tooltipDetails,
755
773
  children: [/* @__PURE__ */ V("span", {
756
- className: tt.tooltipDetailsIcon,
774
+ className: rt.tooltipDetailsIcon,
757
775
  onMouseEnter: () => o(!0),
758
776
  onMouseLeave: () => o(!1),
759
777
  children: "?"
760
778
  }), a && /* @__PURE__ */ V("div", {
761
- className: f(tt.tooltipBubble, r),
779
+ className: f(rt.tooltipBubble, r),
762
780
  children: t
763
781
  })]
764
782
  }) : e === "error" && n ? /* @__PURE__ */ V("div", {
765
- className: f(tt.tooltipError, r),
783
+ className: f(rt.tooltipError, r),
766
784
  onClick: i,
767
785
  children: t
768
786
  }) : null;
@@ -844,8 +862,8 @@ var Y = {
844
862
  }({});
845
863
  //#endregion
846
864
  //#region package/common/input/input.tsx
847
- function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: k = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: I = !1, showCancel: L = !1, onClearClicked: R, min: te = null, max: ne = null, placeholder: re = "", useMatLabelStyle: B = !0, autoComplete: ie = null, onClick: ae = () => null, readOnly: oe = !1, customInput: U, alwaysShowCancel: se = !1, multiline: W = !1, rows: ce, autoResize: le = !1, classNames: G, styles: K, disabled: q = !1, ...ue }) {
848
- let [de, fe] = d(!1), [pe, me] = d(!1), [he, ge] = d(!1), [, _e] = d(0), ve = u(null), ye = u(A), be = i(() => {
865
+ function at({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: k = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: I = !1, showCancel: te = !1, onClearClicked: L, min: R = null, max: ne = null, placeholder: re = "", useMatLabelStyle: B = !0, autoComplete: ie = null, onClick: ae = () => null, readOnly: oe = !1, customInput: U, alwaysShowCancel: se = !1, multiline: W = !1, rows: ce, autoResize: le = !1, classNames: G, styles: ue, disabled: K = !1, ...de }) {
866
+ let [q, fe] = d(!1), [pe, me] = d(!1), [he, ge] = d(!1), [, _e] = d(0), ve = u(null), ye = u(A), be = i(() => {
849
867
  let e = ve.current;
850
868
  !e || !le || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
851
869
  }, [le]);
@@ -891,7 +909,7 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
891
909
  onClick: () => ge(!he)
892
910
  }, Me = xe(), Ne = n;
893
911
  Ne && J() && (Ne = `${Ne} *`);
894
- let Pe = A ? A.value : l, Fe = B && (de || Pe || C === X.Date);
912
+ let Pe = A ? A.value : l, Fe = B && (q || Pe || C === X.Date);
895
913
  return /* @__PURE__ */ H("div", {
896
914
  className: f(Y.input, s),
897
915
  style: c,
@@ -902,7 +920,7 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
902
920
  [Y.inputLabelColumn]: !w,
903
921
  [Y.inputLabelInBorder]: I
904
922
  }),
905
- style: K?.label,
923
+ style: ue?.label,
906
924
  children: [
907
925
  Ne && !B ? /* @__PURE__ */ H("span", {
908
926
  className: Y.inputLabelText,
@@ -913,18 +931,18 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
913
931
  }) : null,
914
932
  N && /* @__PURE__ */ V("div", {
915
933
  className: f(Y.inputUpperRightLabel, G?.upperRightLabel),
916
- style: K?.upperRightLabel,
934
+ style: ue?.upperRightLabel,
917
935
  children: N
918
936
  }),
919
937
  /* @__PURE__ */ H("div", {
920
938
  className: f(Y.inputContainer, { [Y.inputContainerMultiline]: W }, G?.container),
921
- style: K?.container,
939
+ style: ue?.container,
922
940
  onMouseEnter: Se,
923
941
  onMouseLeave: Ce,
924
942
  children: [
925
943
  m,
926
944
  e.cloneElement(U || V(W ? "textarea" : "input", {}), {
927
- ...ue,
945
+ ...de,
928
946
  className: f(Y.inputField, {
929
947
  [Y.inputFieldUppercase]: b,
930
948
  [Y.inputFieldDate]: C === X.Date,
@@ -946,29 +964,29 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
946
964
  autoComplete: ie,
947
965
  onClick: ae,
948
966
  readOnly: oe,
949
- disabled: q,
967
+ disabled: K,
950
968
  ...!W && {
951
969
  type: De(),
952
- min: te,
970
+ min: R,
953
971
  max: ne
954
972
  },
955
973
  ...W && ce !== void 0 && { rows: ce }
956
974
  }),
957
975
  M && /* @__PURE__ */ V("div", {
958
976
  className: f(Y.inputFieldSuffix, G?.suffix),
959
- style: K?.suffix,
977
+ style: ue?.suffix,
960
978
  children: M
961
979
  })
962
980
  ]
963
981
  }),
964
982
  /* @__PURE__ */ V("fieldset", {
965
983
  className: f(Y.inputFieldset, G?.fieldset, {
966
- [Y.inputContainerBorderFocused]: de,
967
- [Y.inputContainerBorderSearchFocused]: C === X.Search && (de || l),
984
+ [Y.inputContainerBorderFocused]: q,
985
+ [Y.inputContainerBorderSearchFocused]: C === X.Search && (q || l),
968
986
  [Y.inputContainerBorderInvalid]: Me,
969
987
  [Y.inputContainerBorderError]: Me
970
988
  }),
971
- style: K?.fieldset,
989
+ style: ue?.fieldset,
972
990
  children: /* @__PURE__ */ V("legend", {
973
991
  className: f(Y.inputFieldsetLegend, { [Y.inputFieldsetLegendActive]: Fe }),
974
992
  children: /* @__PURE__ */ V("span", { children: Ne })
@@ -982,13 +1000,13 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
982
1000
  children: Ne
983
1001
  }),
984
1002
  B && re && /* @__PURE__ */ V("div", {
985
- className: f(Y.inputPlaceholder, de && !Pe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
1003
+ className: f(Y.inputPlaceholder, q && !Pe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
986
1004
  children: re
987
1005
  }),
988
- /* @__PURE__ */ V(nt, {
1006
+ /* @__PURE__ */ V(it, {
989
1007
  variant: "error",
990
1008
  message: A ? A.getCurrentErrorMessage() : r || "",
991
- isVisible: Me && (de || pe)
1009
+ isVisible: Me && (q || pe)
992
1010
  })
993
1011
  ]
994
1012
  }),
@@ -1012,17 +1030,17 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
1012
1030
  icon: he ? O : D,
1013
1031
  ...je
1014
1032
  }),
1015
- (L && l && (de || pe) || se) && /* @__PURE__ */ V(p, {
1033
+ (te && l && (q || pe) || se) && /* @__PURE__ */ V(p, {
1016
1034
  icon: z,
1017
1035
  className: Y.inputFieldIcon,
1018
- onClick: R ?? void 0,
1036
+ onClick: L ?? void 0,
1019
1037
  onMouseEnter: () => me(!0),
1020
1038
  onMouseLeave: () => me(!1)
1021
1039
  })
1022
1040
  ]
1023
1041
  });
1024
1042
  }
1025
- var it = {
1043
+ var ot = {
1026
1044
  colorPicker: "colorPicker_Ts3an",
1027
1045
  swatch: "swatch_NW78g",
1028
1046
  swatchHex: "swatchHex_j7-i5",
@@ -1037,10 +1055,10 @@ var it = {
1037
1055
  };
1038
1056
  //#endregion
1039
1057
  //#region package/common/colorPicker/colorPicker.tsx
1040
- function at(e) {
1058
+ function st(e) {
1041
1059
  return /^#[0-9a-fA-F]{6}$/.test(e) || /^#[0-9a-fA-F]{8}$/.test(e);
1042
1060
  }
1043
- function ot(e) {
1061
+ function ct(e) {
1044
1062
  return /^#[0-9a-fA-F]{8}$/.test(e) ? {
1045
1063
  hex6: e.slice(0, 7),
1046
1064
  alpha: Math.round(parseInt(e.slice(7, 9), 16) / 255 * 100)
@@ -1049,13 +1067,13 @@ function ot(e) {
1049
1067
  alpha: 100
1050
1068
  };
1051
1069
  }
1052
- function st(e, t, n) {
1070
+ function lt(e, t, n) {
1053
1071
  return !n || t >= 100 ? e : `${e}${Math.round(t / 100 * 255).toString(16).padStart(2, "0")}`;
1054
1072
  }
1055
- function ct(e, t) {
1073
+ function ut(e, t) {
1056
1074
  return `rgba(${parseInt(e.slice(1, 3), 16)}, ${parseInt(e.slice(3, 5), 16)}, ${parseInt(e.slice(5, 7), 16)}, ${t / 100})`;
1057
1075
  }
1058
- function lt(e) {
1076
+ function dt(e) {
1059
1077
  let t = parseInt(e.slice(1, 3), 16) / 255, n = parseInt(e.slice(3, 5), 16) / 255, r = parseInt(e.slice(5, 7), 16) / 255, i = Math.max(t, n, r), a = i - Math.min(t, n, r), o = 0;
1060
1078
  a !== 0 && (o = i === t ? (n - r) / a % 6 : i === n ? (r - t) / a + 2 : (t - n) / a + 4, o = Math.round(o * 60), o < 0 && (o += 360));
1061
1079
  let s = i === 0 ? 0 : Math.round(a / i * 100), c = Math.round(i * 100);
@@ -1065,13 +1083,13 @@ function lt(e) {
1065
1083
  v: c
1066
1084
  };
1067
1085
  }
1068
- function ut(e, t, n) {
1086
+ function ft(e, t, n) {
1069
1087
  let r = t / 100, i = n / 100, a = i * r, o = a * (1 - Math.abs(e / 60 % 2 - 1)), s = i - a, c = 0, l = 0, u = 0;
1070
1088
  e < 60 ? (c = a, l = o, u = 0) : e < 120 ? (c = o, l = a, u = 0) : e < 180 ? (c = 0, l = a, u = o) : e < 240 ? (c = 0, l = o, u = a) : e < 300 ? (c = o, l = 0, u = a) : (c = a, l = 0, u = o);
1071
1089
  let d = (e) => Math.round((e + s) * 255).toString(16).padStart(2, "0");
1072
1090
  return `#${d(c)}${d(l)}${d(u)}`;
1073
1091
  }
1074
- function dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1092
+ function pt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1075
1093
  let [r, i] = d(e);
1076
1094
  a(() => {
1077
1095
  i(e);
@@ -1079,12 +1097,12 @@ function dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1079
1097
  function o(e) {
1080
1098
  i(e);
1081
1099
  let n = e.startsWith("#") ? e : `#${e}`;
1082
- at(n) && t(n);
1100
+ st(n) && t(n);
1083
1101
  }
1084
1102
  function s() {
1085
- at(r.startsWith("#") ? r : `#${r}`) || i(e);
1103
+ st(r.startsWith("#") ? r : `#${r}`) || i(e);
1086
1104
  }
1087
- return n ? /* @__PURE__ */ V(rt, {
1105
+ return n ? /* @__PURE__ */ V(at, {
1088
1106
  value: r,
1089
1107
  onChange: (e) => o(e),
1090
1108
  onBlur: s
@@ -1093,11 +1111,11 @@ function dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1093
1111
  value: r,
1094
1112
  onChange: (e) => o(e.target.value),
1095
1113
  onBlur: s,
1096
- className: it.hexInput,
1114
+ className: ot.hexInput,
1097
1115
  spellCheck: !1
1098
1116
  });
1099
1117
  }
1100
- function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, onAlphaChange: o, showInput: s = !0, showAlpha: c = !1 }) {
1118
+ function mt({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, onAlphaChange: o, showInput: s = !0, showAlpha: c = !1 }) {
1101
1119
  let l = u(null);
1102
1120
  function d(e) {
1103
1121
  let t = l.current.getBoundingClientRect(), n = Math.max(0, Math.min(1, (e.clientX - t.left) / t.width)), r = Math.max(0, Math.min(1, (e.clientY - t.top) / t.height));
@@ -1118,20 +1136,20 @@ function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1118
1136
  window.addEventListener("mousemove", r), window.addEventListener("mouseup", i);
1119
1137
  }
1120
1138
  function p(e) {
1121
- let { hex6: t, alpha: n } = ot(e), { h: r, s, v: l } = lt(t);
1139
+ let { hex6: t, alpha: n } = ct(e), { h: r, s, v: l } = dt(t);
1122
1140
  i(r), a(s, l), c && o(n);
1123
1141
  }
1124
- let m = ut(e, t, n), h = c ? st(m, r, !0) : m;
1142
+ let m = ft(e, t, n), h = c ? lt(m, r, !0) : m;
1125
1143
  return /* @__PURE__ */ H("div", {
1126
- className: it.panel,
1144
+ className: ot.panel,
1127
1145
  children: [
1128
1146
  /* @__PURE__ */ H("div", {
1129
1147
  ref: l,
1130
- className: it.gradientArea,
1148
+ className: ot.gradientArea,
1131
1149
  style: { "--hue": e },
1132
1150
  onMouseDown: f,
1133
- children: [/* @__PURE__ */ V("div", { className: it.gradientOverlay }), /* @__PURE__ */ V("div", {
1134
- className: it.cursor,
1151
+ children: [/* @__PURE__ */ V("div", { className: ot.gradientOverlay }), /* @__PURE__ */ V("div", {
1152
+ className: ot.cursor,
1135
1153
  style: {
1136
1154
  left: `${t}%`,
1137
1155
  top: `${100 - n}%`
@@ -1144,7 +1162,7 @@ function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1144
1162
  max: 359,
1145
1163
  value: e,
1146
1164
  onChange: (e) => i(Number(e.target.value)),
1147
- className: it.hueSlider
1165
+ className: ot.hueSlider
1148
1166
  }),
1149
1167
  c && /* @__PURE__ */ V("input", {
1150
1168
  type: "range",
@@ -1152,19 +1170,19 @@ function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1152
1170
  max: 100,
1153
1171
  value: r,
1154
1172
  onChange: (e) => o(Number(e.target.value)),
1155
- className: it.alphaSlider,
1173
+ className: ot.alphaSlider,
1156
1174
  style: { "--alpha-color": m }
1157
1175
  }),
1158
- s && /* @__PURE__ */ V(dt, {
1176
+ s && /* @__PURE__ */ V(pt, {
1159
1177
  hex: h,
1160
1178
  onChange: p
1161
1179
  })
1162
1180
  ]
1163
1181
  });
1164
1182
  }
1165
- var pt = "#3b82f6";
1166
- function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showAlpha: i = !1, inline: a = !1, ...o }) {
1167
- let [s, c] = d(!1), { hex6: l, alpha: p } = ot(at(t) ? t : pt), m = lt(l), [h, g] = d({
1183
+ var ht = "#3b82f6";
1184
+ function gt({ className: e, value: t = ht, onChange: n, showInput: r = !1, showAlpha: i = !1, inline: a = !1, ...o }) {
1185
+ let [s, c] = d(!1), { hex6: l, alpha: p } = ct(st(t) ? t : ht), m = dt(l), [h, g] = d({
1168
1186
  h: m.h,
1169
1187
  s: m.s,
1170
1188
  v: m.v,
@@ -1172,9 +1190,9 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1172
1190
  }), _ = u(h), [v, y] = d(t);
1173
1191
  if (t !== v) {
1174
1192
  y(t);
1175
- let { hex6: e, alpha: n } = ot(at(t) ? t : pt);
1176
- if (e !== ut(h.h, h.s, h.v) || n !== h.a) {
1177
- let t = lt(e);
1193
+ let { hex6: e, alpha: n } = ct(st(t) ? t : ht);
1194
+ if (e !== ft(h.h, h.s, h.v) || n !== h.a) {
1195
+ let t = dt(e);
1178
1196
  g({
1179
1197
  h: t.h,
1180
1198
  s: t.s,
@@ -1185,7 +1203,7 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1185
1203
  }
1186
1204
  let { h: b, s: x, v: S, a: C } = h;
1187
1205
  function w(e, t, r, a) {
1188
- n?.(st(ut(e, t, r), a, i));
1206
+ n?.(lt(ft(e, t, r), a, i));
1189
1207
  }
1190
1208
  function T(e) {
1191
1209
  _.current.h = e, g((t) => ({
@@ -1206,7 +1224,7 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1206
1224
  a: e
1207
1225
  })), w(_.current.h, _.current.s, _.current.v, e);
1208
1226
  }
1209
- let O = ut(b, x, S), k = i ? ct(O, C) : O, A = st(O, C, i), j = {
1227
+ let O = ft(b, x, S), k = i ? ut(O, C) : O, A = lt(O, C, i), j = {
1210
1228
  hue: b,
1211
1229
  sat: x,
1212
1230
  val: S,
@@ -1218,38 +1236,38 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1218
1236
  };
1219
1237
  return a ? /* @__PURE__ */ V("div", {
1220
1238
  ...o,
1221
- className: f(it.colorPicker, e),
1222
- children: /* @__PURE__ */ V(ft, {
1239
+ className: f(ot.colorPicker, e),
1240
+ children: /* @__PURE__ */ V(mt, {
1223
1241
  ...j,
1224
1242
  showInput: r
1225
1243
  })
1226
1244
  }) : /* @__PURE__ */ H("div", {
1227
1245
  ...o,
1228
- className: f(it.colorPicker, e),
1229
- children: [/* @__PURE__ */ V(et, {
1246
+ className: f(ot.colorPicker, e),
1247
+ children: [/* @__PURE__ */ V(nt, {
1230
1248
  isOpen: s,
1231
1249
  onOpenChange: c,
1232
1250
  dontCloseOnChildClick: !0,
1233
- align: Qe.Left,
1234
- content: /* @__PURE__ */ V(ft, { ...j }),
1251
+ align: et.Left,
1252
+ content: /* @__PURE__ */ V(mt, { ...j }),
1235
1253
  children: /* @__PURE__ */ H(Ie, {
1236
- className: it.swatch,
1254
+ className: ot.swatch,
1237
1255
  children: [/* @__PURE__ */ V("div", {
1238
- className: it.swatchFill,
1256
+ className: ot.swatchFill,
1239
1257
  style: { background: k }
1240
1258
  }), /* @__PURE__ */ V("span", {
1241
- className: it.swatchHex,
1259
+ className: ot.swatchHex,
1242
1260
  children: A
1243
1261
  })]
1244
1262
  })
1245
- }), r && /* @__PURE__ */ V(dt, {
1263
+ }), r && /* @__PURE__ */ V(pt, {
1246
1264
  hex: A,
1247
1265
  onChange: (e) => n?.(e),
1248
1266
  useInputComponent: !0
1249
1267
  })]
1250
1268
  });
1251
1269
  }
1252
- var ht = {
1270
+ var _t = {
1253
1271
  modal: "modal_L-Fkd",
1254
1272
  slideIn: "slideIn_RVIHR",
1255
1273
  fadeIn: "fadeIn_XSuIE",
@@ -1264,26 +1282,26 @@ var ht = {
1264
1282
  };
1265
1283
  //#endregion
1266
1284
  //#region package/common/modal/modal.tsx
1267
- function gt({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = () => null, className: i = "", style: o, hideHeader: s = !1, classNames: c, styles: l }) {
1285
+ function vt({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = () => null, className: i = "", style: o, hideHeader: s = !1, classNames: c, styles: l }) {
1268
1286
  let [u, m] = d(n), [h, g] = d(n);
1269
1287
  return a(() => {
1270
1288
  n ? (m(n), setTimeout(() => g(!0), 1)) : (g(!1), setTimeout(() => m(n), 300));
1271
1289
  }, [n]), u ? /* @__PURE__ */ V(ze, { children: /* @__PURE__ */ H("div", {
1272
- className: f(ht.modalContainer, c?.container),
1290
+ className: f(_t.modalContainer, c?.container),
1273
1291
  style: l?.container,
1274
1292
  children: [/* @__PURE__ */ V("div", {
1275
- className: f(ht.modalWrapper, h && ht.modalWrapperShown, c?.backdrop),
1293
+ className: f(_t.modalWrapper, h && _t.modalWrapperShown, c?.backdrop),
1276
1294
  style: l?.backdrop,
1277
1295
  onClick: r
1278
1296
  }), h && /* @__PURE__ */ H("div", {
1279
- className: f(ht.modal, h && ht.modalShown, i, c?.modal),
1297
+ className: f(_t.modal, h && _t.modalShown, i, c?.modal),
1280
1298
  style: {
1281
1299
  ...o,
1282
1300
  ...l?.modal
1283
1301
  },
1284
1302
  onClick: (e) => e.stopPropagation(),
1285
1303
  children: [!s && /* @__PURE__ */ H("div", {
1286
- className: f(ht.modalHeader, c?.header),
1304
+ className: f(_t.modalHeader, c?.header),
1287
1305
  style: l?.header,
1288
1306
  children: [/* @__PURE__ */ V("div", {
1289
1307
  className: c?.title,
@@ -1301,7 +1319,7 @@ function gt({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = ()
1301
1319
  }
1302
1320
  //#endregion
1303
1321
  //#region package/common/confirmModal/confirmModal.tsx
1304
- function _t({ children: e = null, className: t = "", onClose: n = () => {}, onConfirm: r = () => {}, title: i = "", content: a = null, isOpen: o = void 0, actionButtonsProps: s = {} }) {
1322
+ function yt({ children: e = null, className: t = "", onClose: n = () => {}, onConfirm: r = () => {}, title: i = "", content: a = null, isOpen: o = void 0, actionButtonsProps: s = {} }) {
1305
1323
  let [c, l] = d(!1), [u, f] = d(!1);
1306
1324
  function p(e = !1) {
1307
1325
  l(!1), n(e);
@@ -1314,7 +1332,7 @@ function _t({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1314
1332
  f(!1);
1315
1333
  }
1316
1334
  }
1317
- let h = /* @__PURE__ */ H(gt, {
1335
+ let h = /* @__PURE__ */ H(vt, {
1318
1336
  title: i,
1319
1337
  isOpen: o === void 0 ? c : o,
1320
1338
  onClose: () => p(),
@@ -1335,7 +1353,7 @@ function _t({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1335
1353
  }), h]
1336
1354
  }) : h;
1337
1355
  }
1338
- var vt = {
1356
+ var bt = {
1339
1357
  "datePickerMonth-item": "datePickerMonth-item_30WWy",
1340
1358
  datePickerMonthItem: "datePickerMonth-item_30WWy",
1341
1359
  "datePickerMonth-content": "datePickerMonth-content_9bbSs",
@@ -1354,7 +1372,7 @@ var vt = {
1354
1372
  datePickerMonthDayDisabled: "datePickerMonth-day-disabled_4t0Ci",
1355
1373
  "datePickerMonth-placeholder": "datePickerMonth-placeholder_gy1Yx",
1356
1374
  datePickerMonthPlaceholder: "datePickerMonth-placeholder_gy1Yx"
1357
- }, yt = [
1375
+ }, xt = [
1358
1376
  "de_AT",
1359
1377
  "de_CH",
1360
1378
  "de_DE",
@@ -1362,10 +1380,10 @@ var vt = {
1362
1380
  "en_GB",
1363
1381
  "de",
1364
1382
  "en"
1365
- ], bt = "en_US", xt = () => {
1366
- let e = navigator.languages[0]?.replace("-", "_") || bt;
1367
- return yt.includes(e) ? e === "en_GB" || e === "en" ? "en_US" : e === "de" ? "de_DE" : e : bt;
1368
- }, St = (e) => {
1383
+ ], St = "en_US", Ct = () => {
1384
+ let e = navigator.languages[0]?.replace("-", "_") || St;
1385
+ return xt.includes(e) ? e === "en_GB" || e === "en" ? "en_US" : e === "de" ? "de_DE" : e : St;
1386
+ }, wt = (e) => {
1369
1387
  switch (e) {
1370
1388
  case "en_US":
1371
1389
  case "en_GB": return "en";
@@ -1374,47 +1392,47 @@ var vt = {
1374
1392
  case "de_AT": return "de";
1375
1393
  default: return "de";
1376
1394
  }
1377
- }, Ct = xt();
1378
- async function wt(e) {
1379
- Ct = e;
1395
+ }, Tt = Ct();
1396
+ async function Et(e) {
1397
+ Tt = e;
1380
1398
  }
1381
- function Tt(e = "_") {
1382
- return Ct.replace("_", e);
1399
+ function Dt(e = "_") {
1400
+ return Tt.replace("_", e);
1383
1401
  }
1384
1402
  //#endregion
1385
1403
  //#region package/common/datePicker/dateFunctions.ts
1386
- function Et(e, t) {
1404
+ function Ot(e, t) {
1387
1405
  return new Date(t, e, 0).getDate();
1388
1406
  }
1389
- function Dt(e, t, n) {
1407
+ function kt(e, t, n) {
1390
1408
  return new Date(Date.UTC(n, t - 1, e));
1391
1409
  }
1392
- function Ot(e, t, n, r, i = !1) {
1410
+ function At(e, t, n, r, i = !1) {
1393
1411
  return new Date(Date.UTC(t, n - 1, r)).toLocaleDateString(e, { month: i ? "short" : "long" });
1394
1412
  }
1395
- function kt(e = Tt("-")) {
1396
- return Array.from(Array(12).keys()).map((t) => Ot(e, 2023, t + 1, 1));
1413
+ function jt(e = Dt("-")) {
1414
+ return Array.from(Array(12).keys()).map((t) => At(e, 2023, t + 1, 1));
1397
1415
  }
1398
- function At(e, t = !0) {
1416
+ function Mt(e, t = !0) {
1399
1417
  let n = new Date(Date.UTC(2023, 3, 10)), r = [];
1400
1418
  for (let i = 0; i < 7; i++) r.push(n.toLocaleDateString(e, { weekday: t ? "short" : "long" })), n.setDate(n.getDate() + 1);
1401
1419
  return r;
1402
1420
  }
1403
- function jt(e, t) {
1421
+ function Nt(e, t) {
1404
1422
  return new Date(Date.UTC(t, e - 1, 1)).getDay() || 7;
1405
1423
  }
1406
- function Mt(e) {
1424
+ function Pt(e) {
1407
1425
  return {
1408
1426
  day: e.getDate(),
1409
1427
  month: e.getMonth() + 1,
1410
1428
  year: e.getFullYear()
1411
1429
  };
1412
1430
  }
1413
- function Nt(e) {
1431
+ function Ft(e) {
1414
1432
  let t = e.getDate(), n = e.getMonth() + 1, r = e.getFullYear();
1415
1433
  return `${t < 10 ? `0${t}` : t}.${n < 10 ? `0${n}` : n}.${r}`;
1416
1434
  }
1417
- function Pt(e, t, n) {
1435
+ function It(e, t, n) {
1418
1436
  let r = e, i = n;
1419
1437
  return r[0] !== "_" && (r[0] > "3" ? (r = `0${r[0]}${t.substring(2)}`, i = {
1420
1438
  start: 3,
@@ -1432,18 +1450,18 @@ function Pt(e, t, n) {
1432
1450
  }
1433
1451
  //#endregion
1434
1452
  //#region package/common/datePicker/components/datePickerMonth/datePickerMonth.tsx
1435
- function Ft(e, t, n, r, i) {
1436
- let { day: a, month: o, year: s } = r ? Mt(r) : {
1453
+ function Lt(e, t, n, r, i) {
1454
+ let { day: a, month: o, year: s } = r ? Pt(r) : {
1437
1455
  day: void 0,
1438
1456
  month: void 0,
1439
1457
  year: void 0
1440
- }, { day: c, month: l, year: u } = i ? Mt(i) : {
1458
+ }, { day: c, month: l, year: u } = i ? Pt(i) : {
1441
1459
  day: void 0,
1442
1460
  month: void 0,
1443
1461
  year: void 0
1444
- }, d = Dt(e, t, n), f = e === a && t === o && n === s, p = e === c && t === l && n === u, m = !1;
1462
+ }, d = kt(e, t, n), f = e === a && t === o && n === s, p = e === c && t === l && n === u, m = !1;
1445
1463
  if (a !== void 0 && o !== void 0 && s !== void 0 && c !== void 0 && l !== void 0 && u !== void 0) {
1446
- let e = Dt(a, o, s), t = Dt(c, l, u);
1464
+ let e = kt(a, o, s), t = kt(c, l, u);
1447
1465
  m = d.getTime() >= e.getTime() && d.getTime() <= t.getTime();
1448
1466
  }
1449
1467
  return {
@@ -1452,54 +1470,54 @@ function Ft(e, t, n, r, i) {
1452
1470
  isEndDate: p
1453
1471
  };
1454
1472
  }
1455
- function It(e, t, n, r, i) {
1456
- let a = Dt(e, t, n);
1473
+ function Rt(e, t, n, r, i) {
1474
+ let a = kt(e, t, n);
1457
1475
  if (r) {
1458
- let { day: e, month: t, year: n } = Mt(r);
1459
- if (a < Dt(e, t, n)) return !0;
1476
+ let { day: e, month: t, year: n } = Pt(r);
1477
+ if (a < kt(e, t, n)) return !0;
1460
1478
  }
1461
1479
  if (i) {
1462
- let { day: e, month: t, year: n } = Mt(i);
1463
- if (a > Dt(e, t, n)) return !0;
1480
+ let { day: e, month: t, year: n } = Pt(i);
1481
+ if (a > kt(e, t, n)) return !0;
1464
1482
  }
1465
1483
  return !1;
1466
1484
  }
1467
- function Lt(e, t, n) {
1468
- let { day: r, month: i, year: a } = Mt(/* @__PURE__ */ new Date());
1485
+ function zt(e, t, n) {
1486
+ let { day: r, month: i, year: a } = Pt(/* @__PURE__ */ new Date());
1469
1487
  return e === r && t === i && n === a;
1470
1488
  }
1471
- function Rt({ className: e = "", month: t = (/* @__PURE__ */ new Date()).getMonth() + 1, year: n = (/* @__PURE__ */ new Date()).getFullYear(), onSelect: r = () => null, selectionStart: i, selectionEnd: a, minDate: o = null, maxDate: s = null }) {
1472
- let c = Tt("-"), l = Et(t, n), u = jt(t, n);
1489
+ function Bt({ className: e = "", month: t = (/* @__PURE__ */ new Date()).getMonth() + 1, year: n = (/* @__PURE__ */ new Date()).getFullYear(), onSelect: r = () => null, selectionStart: i, selectionEnd: a, minDate: o = null, maxDate: s = null }) {
1490
+ let c = Dt("-"), l = Ot(t, n), u = Nt(t, n);
1473
1491
  return /* @__PURE__ */ V("div", {
1474
- className: f(vt.datePickerMonth, e),
1492
+ className: f(bt.datePickerMonth, e),
1475
1493
  children: /* @__PURE__ */ H("div", {
1476
- className: f(vt.datePickerMonthContent),
1494
+ className: f(bt.datePickerMonthContent),
1477
1495
  children: [
1478
- At(c).map((e, t) => /* @__PURE__ */ V("div", { children: e }, t)),
1479
- Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ V("div", { className: f(vt.datePickerMonthItem, vt.datePickerMonthPlaceholder) }, e)),
1496
+ Mt(c).map((e, t) => /* @__PURE__ */ V("div", { children: e }, t)),
1497
+ Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ V("div", { className: f(bt.datePickerMonthItem, bt.datePickerMonthPlaceholder) }, e)),
1480
1498
  Array.from(Array(l).keys()).map((e) => {
1481
- let c = e + 1, l = Ft(c, t, n, i, a), u = It(c, t, n, o, s), d = Lt(c, t, n);
1499
+ let c = e + 1, l = Lt(c, t, n, i, a), u = Rt(c, t, n, o, s), d = zt(c, t, n);
1482
1500
  return /* @__PURE__ */ V(Ie, {
1483
- onClick: () => u ? null : r(Dt(c, t, n)),
1484
- className: f(vt.datePickerMonthDay, vt.datePickerMonthItem, {
1485
- [vt.datePickerMonthDaySelected]: l.isInRange,
1486
- [vt.datePickerMonthDaySelectedStart]: l.isStartDate,
1487
- [vt.datePickerMonthDaySelectedEnd]: l.isEndDate,
1488
- [vt.datePickerMonthDayDisabled]: u,
1489
- [vt.datePickerMonthDayToday]: d
1501
+ onClick: () => u ? null : r(kt(c, t, n)),
1502
+ className: f(bt.datePickerMonthDay, bt.datePickerMonthItem, {
1503
+ [bt.datePickerMonthDaySelected]: l.isInRange,
1504
+ [bt.datePickerMonthDaySelectedStart]: l.isStartDate,
1505
+ [bt.datePickerMonthDaySelectedEnd]: l.isEndDate,
1506
+ [bt.datePickerMonthDayDisabled]: u,
1507
+ [bt.datePickerMonthDayToday]: d
1490
1508
  }),
1491
1509
  children: c
1492
1510
  }, c);
1493
1511
  }),
1494
1512
  Array.from(Array(42 - (u + l - 1)).keys()).map((e) => /* @__PURE__ */ V("div", {
1495
- className: f(vt.datePickerMonthItem, vt.datePickerMonthPlaceholder),
1513
+ className: f(bt.datePickerMonthItem, bt.datePickerMonthPlaceholder),
1496
1514
  children: "\xA0"
1497
1515
  }, e))
1498
1516
  ]
1499
1517
  })
1500
1518
  });
1501
1519
  }
1502
- var zt = {
1520
+ var Vt = {
1503
1521
  infiniteBlock: "infiniteBlock_dFv-h",
1504
1522
  "spinner-wrapper": "spinner-wrapper_hsgWz",
1505
1523
  spinnerWrapper: "spinner-wrapper_hsgWz",
@@ -1507,7 +1525,7 @@ var zt = {
1507
1525
  };
1508
1526
  //#endregion
1509
1527
  //#region package/common/infiniteBlock/infiniteBlock.tsx
1510
- function Bt(e, t) {
1528
+ function Ht(e, t) {
1511
1529
  let n = e;
1512
1530
  for (; n.props.children !== null && typeof n.props.children == "object" && !Array.isArray(n.props.children);) n = n.props.children;
1513
1531
  let r = n.props.children;
@@ -1520,11 +1538,11 @@ function Bt(e, t) {
1520
1538
  }
1521
1539
  return String(r).toLowerCase().startsWith(t);
1522
1540
  }
1523
- function Vt(e, t, n) {
1541
+ function Ut(e, t, n) {
1524
1542
  let r = e + t;
1525
1543
  return r === n ? 0 : r < -1 ? n - 1 : r;
1526
1544
  }
1527
- function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1, setHighlightedIndex: o = () => null }) {
1545
+ function Wt({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1, setHighlightedIndex: o = () => null }) {
1528
1546
  let s = u(null), c = u(!1), [l, p] = d(!1), m = u(-1), h = u(null), g = i(() => {
1529
1547
  let e = s.current;
1530
1548
  if (!e) return;
@@ -1538,12 +1556,12 @@ function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1538
1556
  let i = e.Children.toArray(t), a = m.current;
1539
1557
  switch (n.key) {
1540
1558
  case "ArrowDown":
1541
- a = Vt(a, 1, i.length);
1559
+ a = Ut(a, 1, i.length);
1542
1560
  break;
1543
1561
  case "ArrowUp":
1544
- a = Vt(a, -1, i.length);
1562
+ a = Ut(a, -1, i.length);
1545
1563
  break;
1546
- default: for (let e = 0; e < i.length; e++) if (Bt(i[e], n.key)) {
1564
+ default: for (let e = 0; e < i.length; e++) if (Ht(i[e], n.key)) {
1547
1565
  if (a >= e && h.current === n.key) continue;
1548
1566
  a = e;
1549
1567
  break;
@@ -1559,17 +1577,17 @@ function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1559
1577
  }
1560
1578
  }, [t, o]);
1561
1579
  return /* @__PURE__ */ H("div", {
1562
- className: f(zt.infiniteBlock, r),
1580
+ className: f(Vt.infiniteBlock, r),
1563
1581
  onScroll: g,
1564
1582
  onKeyDown: _,
1565
1583
  tabIndex: 0,
1566
1584
  ref: s,
1567
1585
  children: [a ? /* @__PURE__ */ V("div", {
1568
- className: zt.spinnerWrapper,
1569
- children: /* @__PURE__ */ V(we, { className: zt.spinner })
1586
+ className: Vt.spinnerWrapper,
1587
+ children: /* @__PURE__ */ V(we, { className: Vt.spinner })
1570
1588
  }) : t, l && /* @__PURE__ */ V("div", {
1571
- className: zt.spinnerWrapper,
1572
- children: /* @__PURE__ */ V(we, { className: zt.spinner })
1589
+ className: Vt.spinnerWrapper,
1590
+ children: /* @__PURE__ */ V(we, { className: Vt.spinner })
1573
1591
  })]
1574
1592
  });
1575
1593
  }
@@ -1643,8 +1661,8 @@ var Z = {
1643
1661
  };
1644
1662
  //#endregion
1645
1663
  //#region package/common/dropdown/dropdown.tsx
1646
- function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r = "", isValid: i = !0, tabIndex: o = 0, isRequired: s = !1, customProps: c = {}, isRow: l = !1, disabled: m = !1, onScroll: h = () => Promise.resolve(), isListOnTop: _ = !1, onClick: v, onChange: y, onFocus: b = null, onBlur: x = null, onMouseEnter: S = null, onMouseLeave: C = null, dropdownLabel: w, isDropdownListWider: T = !1, inputClassName: E = "", dropDownIconClassName: D = "", dropDownClassName: O = "", formValidator: k = null, labelClassName: A = "", dropDownInputClassName: j = "", items: M = [], useMatLabelStyle: N = !0, placeholder: P = "", plainStyle: F = !1, scrollToSelected: I = !1, reactRef: ee, ...L }) {
1647
- let [R, te] = d(!1), [ne, z] = d(!1), [, re] = d(0), B = u(k);
1664
+ function Gt({ errorMessage: e = "", className: t = "", label: n = "", value: r = "", isValid: i = !0, tabIndex: o = 0, isRequired: s = !1, customProps: c = {}, isRow: l = !1, disabled: m = !1, onScroll: h = () => Promise.resolve(), isListOnTop: _ = !1, onClick: v, onChange: y, onFocus: b = null, onBlur: x = null, onMouseEnter: S = null, onMouseLeave: C = null, dropdownLabel: w, isDropdownListWider: T = !1, inputClassName: E = "", dropDownIconClassName: D = "", dropDownClassName: O = "", formValidator: k = null, labelClassName: A = "", dropDownInputClassName: j = "", items: M = [], useMatLabelStyle: N = !0, placeholder: P = "", plainStyle: F = !1, scrollToSelected: I = !1, reactRef: ee, ...te }) {
1665
+ let [L, R] = d(!1), [ne, z] = d(!1), [, re] = d(0), B = u(k);
1648
1666
  a(() => {
1649
1667
  if (B.current = k, !B.current) return;
1650
1668
  B.current.label = n ?? "", B.current.validate();
@@ -1656,18 +1674,18 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1656
1674
  }, oe = (e) => {
1657
1675
  z(!1), C?.(e);
1658
1676
  }, U = (e) => {
1659
- te(!0), b?.(e);
1677
+ R(!0), b?.(e);
1660
1678
  }, se = (e) => {
1661
- B.current && (B.current.touched = !0), te(!1), x?.(e);
1679
+ B.current && (B.current.touched = !0), R(!1), x?.(e);
1662
1680
  }, W = () => k ? k.touched && k.hasError() : !i || !!e, ce = () => !!(s || k?.validators.find((e) => e.validatorId === "required")), le = (e) => {
1663
1681
  k ? (k.set(e), y?.(k.value, c)) : y?.(e, c);
1664
- }, G = w, K = k ? k.value : r, q = W();
1682
+ }, G = w, ue = k ? k.value : r, K = W();
1665
1683
  M.forEach((e) => {
1666
- e.key === K && (G = e.label);
1684
+ e.key === ue && (G = e.label);
1667
1685
  });
1668
- let ue = G || K, de = ue == null || typeof ue == "string" && ue.trim() === "";
1686
+ let de = G || ue, q = de == null || typeof de == "string" && de.trim() === "";
1669
1687
  return /* @__PURE__ */ H("div", {
1670
- ...L,
1688
+ ...te,
1671
1689
  className: f(t, Z.dropdownLabel, Z.dropdown, { [Z.dropdownLabelColumn]: !l }),
1672
1690
  onMouseEnter: ie,
1673
1691
  onMouseLeave: oe,
@@ -1675,7 +1693,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1675
1693
  /* @__PURE__ */ V(ae, {
1676
1694
  onChange: (e) => le((e || { key: "" }).key),
1677
1695
  itemToString: (e) => e ? String(e.key) : "",
1678
- selectedItem: M.find((e) => e.key === K) ?? null,
1696
+ selectedItem: M.find((e) => e.key === ue) ?? null,
1679
1697
  stateReducer: (e, t) => I && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1680
1698
  ...t,
1681
1699
  highlightedIndex: t.isOpen ? M.indexOf(e.selectedItem) : null
@@ -1699,7 +1717,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1699
1717
  t().onClick?.(e), v?.(e);
1700
1718
  },
1701
1719
  ref: ee,
1702
- children: de ? "\xA0" : ue
1720
+ children: q ? "\xA0" : de
1703
1721
  }),
1704
1722
  /* @__PURE__ */ V("button", {
1705
1723
  type: "button",
@@ -1715,7 +1733,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1715
1733
  className: f(Z.dropdownInputButtonIconArrow, { [Z.dropdownInputButtonIconArrowOpen]: r })
1716
1734
  })
1717
1735
  }),
1718
- !m && r ? /* @__PURE__ */ V(Ht, {
1736
+ !m && r ? /* @__PURE__ */ V(Wt, {
1719
1737
  onScroll: h,
1720
1738
  className: f(Z.dropdownInputList, {
1721
1739
  [Z.dropdownInputListOnTop]: _,
@@ -1739,21 +1757,21 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1739
1757
  /* @__PURE__ */ V("fieldset", {
1740
1758
  className: f(Z.dropdownFieldset, {
1741
1759
  [Z.dropdownBorderPlain]: F,
1742
- [Z.dropdownBorderFocused]: R,
1743
- [Z.dropdownBorderInvalid]: q,
1744
- [Z.dropdownBorderError]: q
1760
+ [Z.dropdownBorderFocused]: L,
1761
+ [Z.dropdownBorderInvalid]: K,
1762
+ [Z.dropdownBorderError]: K
1745
1763
  }),
1746
1764
  children: /* @__PURE__ */ V("legend", {
1747
- className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (R || !de) }),
1765
+ className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (L || !q) }),
1748
1766
  children: /* @__PURE__ */ V("span", { children: n })
1749
1767
  })
1750
1768
  }),
1751
1769
  N && n && /* @__PURE__ */ V("div", {
1752
- className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: R || !de }),
1770
+ className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: L || !q }),
1753
1771
  children: n
1754
1772
  }),
1755
1773
  N && P && /* @__PURE__ */ V("div", {
1756
- className: f(Z.dropdownPlaceholder, R && !G && Z.dropdownPlaceholderShown),
1774
+ className: f(Z.dropdownPlaceholder, L && !G && Z.dropdownPlaceholderShown),
1757
1775
  children: P
1758
1776
  })
1759
1777
  ]
@@ -1766,15 +1784,15 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1766
1784
  children: "*"
1767
1785
  }) : null]
1768
1786
  }),
1769
- /* @__PURE__ */ V(nt, {
1787
+ /* @__PURE__ */ V(it, {
1770
1788
  variant: "error",
1771
1789
  message: k ? k.getCurrentErrorMessage() : e || "",
1772
- isVisible: q && (R || ne)
1790
+ isVisible: K && (L || ne)
1773
1791
  })
1774
1792
  ]
1775
1793
  });
1776
1794
  }
1777
- var Wt = {
1795
+ var Kt = {
1778
1796
  datePicker: "datePicker_ZohTp",
1779
1797
  "datePicker-header": "datePicker-header_YmSWE",
1780
1798
  datePickerHeader: "datePicker-header_YmSWE",
@@ -1791,23 +1809,23 @@ var Wt = {
1791
1809
  };
1792
1810
  //#endregion
1793
1811
  //#region package/common/datePicker/datePicker.tsx
1794
- function Gt({ className: e = "", selected: t, onSelect: n = () => null, formValidator: r = null, noInput: i = !1, noHeader: o = !1, isModal: s = !1, isInline: c = !1, onChange: l = () => null, minDate: p = null, maxDate: m = null, children: h = null, showClearButton: g = !1, label: y = "", isValid: b = !0, errorMessage: x = "", isRequired: S = !1, startDate: C, endDate: w }) {
1795
- let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [D, O] = d(E.getMonth() + 1), [k, A] = d(E.getFullYear()), [j, M] = d(!1), [N, P] = d(() => T() ? Nt(E) : ""), [F, I] = d(!1), [ee, L] = d(!1), [, R] = d(0), [te, ne] = d(t), z = u(r);
1796
- if (te !== t) {
1812
+ function qt({ className: e = "", selected: t, onSelect: n = () => null, formValidator: r = null, noInput: i = !1, noHeader: o = !1, isModal: s = !1, isInline: c = !1, onChange: l = () => null, minDate: p = null, maxDate: m = null, children: h = null, showClearButton: g = !1, label: y = "", isValid: b = !0, errorMessage: x = "", isRequired: S = !1, startDate: C, endDate: w }) {
1813
+ let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [D, O] = d(E.getMonth() + 1), [k, A] = d(E.getFullYear()), [j, M] = d(!1), [N, P] = d(() => T() ? Ft(E) : ""), [F, I] = d(!1), [ee, te] = d(!1), [, L] = d(0), [R, ne] = d(t), z = u(r);
1814
+ if (R !== t) {
1797
1815
  ne(t);
1798
1816
  let e = t ?? /* @__PURE__ */ new Date();
1799
- O(e.getMonth() + 1), A(e.getFullYear()), P(t ? Nt(t) : "");
1817
+ O(e.getMonth() + 1), A(e.getFullYear()), P(t ? Ft(t) : "");
1800
1818
  }
1801
1819
  a(() => {
1802
1820
  if (z.current = r, !r) return;
1803
1821
  let e = () => {
1804
1822
  let e = r.value;
1805
- e ? (O(e.getMonth() + 1), A(e.getFullYear()), P(Nt(e))) : P(""), R((e) => e + 1);
1823
+ e ? (O(e.getMonth() + 1), A(e.getFullYear()), P(Ft(e))) : P(""), L((e) => e + 1);
1806
1824
  };
1807
1825
  return r.registerOnUpdateListener(e), () => r.removeOnUpdateListener(e);
1808
1826
  }, [r]);
1809
1827
  let re = () => r ? r.touched && r.hasError() : !b || !!x, ie = () => !!(S || r?.validators.find((e) => e.validatorId === "required")), ae = (e) => {
1810
- P(e ? Nt(e) : ""), r && r.set(e), l(e);
1828
+ P(e ? Ft(e) : ""), r && r.set(e), l(e);
1811
1829
  }, U = (e) => {
1812
1830
  ae(e), n(e), M(!1);
1813
1831
  }, se = (e) => {
@@ -1817,13 +1835,13 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1817
1835
  });
1818
1836
  }, W = (e) => {
1819
1837
  if (e.match(/\d{2}\.\d{2}\.\d{4}/gi)) {
1820
- let [t, n, r] = e.split("."), i = Dt(Number(t), Number(n), Number(r));
1838
+ let [t, n, r] = e.split("."), i = kt(Number(t), Number(n), Number(r));
1821
1839
  if (i && i.toString() !== "Invalid Date" && (!m || i <= m) && (!p || i >= p)) return i;
1822
1840
  }
1823
1841
  return null;
1824
1842
  }, ce = ({ previousState: e, nextState: t }) => {
1825
1843
  if (!e || t.value === e.value) return t;
1826
- let n = Pt(t.value, e.value, t.selection ?? null), r = W(n.value);
1844
+ let n = It(t.value, e.value, t.selection ?? null), r = W(n.value);
1827
1845
  return r && ae(r), n;
1828
1846
  }, le = () => {
1829
1847
  let e = 400, t = (/* @__PURE__ */ new Date()).getFullYear() - 200;
@@ -1831,33 +1849,33 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1831
1849
  key: e + t,
1832
1850
  label: e + t
1833
1851
  }));
1834
- }, G = T(), K = re(), q = /* @__PURE__ */ H(B, { children: [
1852
+ }, G = T(), ue = re(), K = /* @__PURE__ */ H(B, { children: [
1835
1853
  o ? null : /* @__PURE__ */ H("div", {
1836
- className: Wt.datePickerHeader,
1854
+ className: Kt.datePickerHeader,
1837
1855
  children: [
1838
1856
  /* @__PURE__ */ V(Re, {
1839
1857
  icon: _,
1840
1858
  onClick: () => se(-1)
1841
1859
  }),
1842
1860
  /* @__PURE__ */ V("div", {
1843
- className: Wt.datePickerHeaderMonthAndYearContainer,
1861
+ className: Kt.datePickerHeaderMonthAndYearContainer,
1844
1862
  children: /* @__PURE__ */ H("div", {
1845
- className: Wt.datePickerHeaderMonthAndYear,
1846
- children: [/* @__PURE__ */ V(Ut, {
1863
+ className: Kt.datePickerHeaderMonthAndYear,
1864
+ children: [/* @__PURE__ */ V(Gt, {
1847
1865
  plainStyle: !0,
1848
1866
  scrollToSelected: !0,
1849
1867
  onChange: (e) => O(e),
1850
- className: Wt.datePickerHeaderMonth,
1851
- value: Ot(Tt("-"), k, D, 1),
1852
- items: kt().map((e, t) => ({
1868
+ className: Kt.datePickerHeaderMonth,
1869
+ value: At(Dt("-"), k, D, 1),
1870
+ items: jt().map((e, t) => ({
1853
1871
  key: t + 1,
1854
1872
  label: e
1855
1873
  }))
1856
- }), /* @__PURE__ */ V(Ut, {
1874
+ }), /* @__PURE__ */ V(Gt, {
1857
1875
  plainStyle: !0,
1858
1876
  scrollToSelected: !0,
1859
1877
  useMatLabelStyle: !1,
1860
- className: Wt.datePickerHeaderYear,
1878
+ className: Kt.datePickerHeaderYear,
1861
1879
  onChange: (e) => A(e),
1862
1880
  value: k,
1863
1881
  items: le()
@@ -1870,8 +1888,8 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1870
1888
  })
1871
1889
  ]
1872
1890
  }),
1873
- /* @__PURE__ */ V(Rt, {
1874
- className: Wt.datePickerMonth,
1891
+ /* @__PURE__ */ V(Bt, {
1892
+ className: Kt.datePickerMonth,
1875
1893
  month: D,
1876
1894
  year: k,
1877
1895
  onSelect: U,
@@ -1885,7 +1903,7 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1885
1903
  children: "Clear"
1886
1904
  }),
1887
1905
  h
1888
- ] }), ue = i ? null : /* @__PURE__ */ V(rt, {
1906
+ ] }), de = i ? null : /* @__PURE__ */ V(at, {
1889
1907
  readOnly: s,
1890
1908
  label: `${y}${ie() ? " *" : ""}`,
1891
1909
  value: N,
@@ -1900,46 +1918,46 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1900
1918
  z.current && (z.current.touched = !0), I(!1), ae(W(N));
1901
1919
  },
1902
1920
  onFocus: () => I(!0),
1903
- onMouseEnter: () => L(!0),
1904
- onMouseLeave: () => L(!1),
1905
- isValid: !K
1906
- }), de = c ? q : s ? /* @__PURE__ */ V(gt, {
1921
+ onMouseEnter: () => te(!0),
1922
+ onMouseLeave: () => te(!1),
1923
+ isValid: !ue
1924
+ }), q = c ? K : s ? /* @__PURE__ */ V(vt, {
1907
1925
  hideHeader: !0,
1908
1926
  isOpen: j,
1909
1927
  onClose: () => M(!1),
1910
- children: q
1911
- }) : /* @__PURE__ */ V(et, {
1928
+ children: K
1929
+ }) : /* @__PURE__ */ V(nt, {
1912
1930
  isOpen: j,
1913
1931
  onOpenChange: (e) => M(e),
1914
- content: q,
1915
- align: Qe.Left,
1932
+ content: K,
1933
+ align: et.Left,
1916
1934
  dontCloseOnChildClick: !0,
1917
- children: ue
1935
+ children: de
1918
1936
  });
1919
1937
  return /* @__PURE__ */ H("div", {
1920
- className: f(Wt.datePicker, e),
1938
+ className: f(Kt.datePicker, e),
1921
1939
  children: [
1922
- (s || c) && ue,
1923
- de,
1924
- /* @__PURE__ */ V(nt, {
1940
+ (s || c) && de,
1941
+ q,
1942
+ /* @__PURE__ */ V(it, {
1925
1943
  variant: "error",
1926
1944
  message: r ? r.getCurrentErrorMessage() : x || "",
1927
- isVisible: K && (F || ee)
1945
+ isVisible: ue && (F || ee)
1928
1946
  })
1929
1947
  ]
1930
1948
  });
1931
1949
  }
1932
- var Kt = { emptyState: "emptyState_KXOIx" };
1950
+ var Jt = { emptyState: "emptyState_KXOIx" };
1933
1951
  //#endregion
1934
1952
  //#region package/common/emptyState/emptyState.tsx
1935
- function qt({ className: e, icon: t, children: n, ...r }) {
1953
+ function Yt({ className: e, icon: t, children: n, ...r }) {
1936
1954
  return /* @__PURE__ */ H("div", {
1937
1955
  ...r,
1938
- className: f(Kt.emptyState, e),
1956
+ className: f(Jt.emptyState, e),
1939
1957
  children: [t && /* @__PURE__ */ V(p, { icon: t }), /* @__PURE__ */ V("div", { children: n ?? "No entries available" })]
1940
1958
  });
1941
1959
  }
1942
- var Jt = {
1960
+ var Xt = {
1943
1961
  fab: "fab_hyAAa",
1944
1962
  "fab-content": "fab-content_IBiXm",
1945
1963
  fabContent: "fab-content_IBiXm",
@@ -1947,25 +1965,25 @@ var Jt = {
1947
1965
  fabContentContainer: "fab-content-container_FQD1x",
1948
1966
  "fab-size-mini": "fab-size-mini_KP9BD",
1949
1967
  fabSizeMini: "fab-size-mini_KP9BD"
1950
- }, Yt = {
1968
+ }, Zt = {
1951
1969
  default: null,
1952
- mini: Jt.fabSizeMini
1970
+ mini: Xt.fabSizeMini
1953
1971
  };
1954
- function Xt({ children: e = null, size: t = "default", className: n = "", styleType: r = Te.Primary, onClick: i = () => {} }) {
1972
+ function Qt({ children: e = null, size: t = "default", className: n = "", styleType: r = Te.Primary, onClick: i = () => {} }) {
1955
1973
  return /* @__PURE__ */ V(Me, {
1956
1974
  styleType: r,
1957
- className: f(Jt.fab, Yt[t], n),
1975
+ className: f(Xt.fab, Zt[t], n),
1958
1976
  onClick: i,
1959
1977
  children: /* @__PURE__ */ V("div", {
1960
- className: Jt.fabContentContainer,
1978
+ className: Xt.fabContentContainer,
1961
1979
  children: /* @__PURE__ */ V("div", {
1962
- className: Jt.fabContent,
1980
+ className: Xt.fabContent,
1963
1981
  children: e
1964
1982
  })
1965
1983
  })
1966
1984
  });
1967
1985
  }
1968
- var Zt = {
1986
+ var $t = {
1969
1987
  fab: "fab_YI34X",
1970
1988
  appear: "appear_DL0wm",
1971
1989
  "fab-container": "fab-container_8uoYo",
@@ -1995,7 +2013,7 @@ var Zt = {
1995
2013
  };
1996
2014
  //#endregion
1997
2015
  //#region package/common/fab/fab.tsx
1998
- function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
2016
+ function en({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
1999
2017
  let [s, c] = d(!1);
2000
2018
  function l() {
2001
2019
  n.length > 0 && c((e) => !e), i();
@@ -2005,44 +2023,44 @@ function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMe
2005
2023
  }
2006
2024
  return /* @__PURE__ */ H("div", {
2007
2025
  ...o,
2008
- className: Zt.fabContainer,
2026
+ className: $t.fabContainer,
2009
2027
  children: [
2010
2028
  /* @__PURE__ */ V("div", {
2011
- className: f(Zt.fabMenuBackdrop, s && Zt.fabMenuBackdropOpen),
2029
+ className: f($t.fabMenuBackdrop, s && $t.fabMenuBackdropOpen),
2012
2030
  onClick: (e) => {
2013
2031
  e.stopPropagation(), c(!1);
2014
2032
  }
2015
2033
  }),
2016
2034
  /* @__PURE__ */ V("div", {
2017
2035
  onClick: (e) => e.stopPropagation(),
2018
- children: /* @__PURE__ */ V(Xt, {
2019
- className: Zt.fab,
2036
+ children: /* @__PURE__ */ V(Qt, {
2037
+ className: $t.fab,
2020
2038
  size: t,
2021
2039
  onClick: l,
2022
2040
  children: /* @__PURE__ */ H("div", {
2023
- className: f(Zt.fabIcon, s && Zt.fabIconMenuOpen),
2041
+ className: f($t.fabIcon, s && $t.fabIconMenuOpen),
2024
2042
  children: [/* @__PURE__ */ V("div", {
2025
- className: f(Zt.fabIconContent, !s && Zt.fabIconContentShown),
2043
+ className: f($t.fabIconContent, !s && $t.fabIconContentShown),
2026
2044
  children: e
2027
2045
  }), /* @__PURE__ */ V("div", {
2028
- className: f(Zt.fabIconContent, s && Zt.fabIconContentShown),
2046
+ className: f($t.fabIconContent, s && $t.fabIconContentShown),
2029
2047
  children: /* @__PURE__ */ V(p, { icon: I })
2030
2048
  })]
2031
2049
  })
2032
2050
  })
2033
2051
  }),
2034
2052
  /* @__PURE__ */ V("div", {
2035
- className: Zt.fabMenu,
2053
+ className: $t.fabMenu,
2036
2054
  children: n.map(({ id: e, label: t, icon: n }) => /* @__PURE__ */ H("div", {
2037
- className: f(Zt.fabMenuEntry, s && Zt.fabMenuEntryShown),
2055
+ className: f($t.fabMenuEntry, s && $t.fabMenuEntryShown),
2038
2056
  onClick: (t) => u(t, e),
2039
2057
  children: [t && /* @__PURE__ */ V("div", {
2040
- className: Zt.fabMenuEntryLabelContainer,
2058
+ className: $t.fabMenuEntryLabelContainer,
2041
2059
  children: /* @__PURE__ */ V("div", {
2042
- className: Zt.fabMenuEntryLabel,
2060
+ className: $t.fabMenuEntryLabel,
2043
2061
  children: t
2044
2062
  })
2045
- }), /* @__PURE__ */ V(Xt, {
2063
+ }), /* @__PURE__ */ V(Qt, {
2046
2064
  size: "mini",
2047
2065
  children: /* @__PURE__ */ V(p, { icon: n })
2048
2066
  })]
@@ -2051,7 +2069,7 @@ function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMe
2051
2069
  ]
2052
2070
  });
2053
2071
  }
2054
- var $t = {
2072
+ var tn = {
2055
2073
  iconPicker: "iconPicker_xJJmG",
2056
2074
  "iconPicker-label": "iconPicker-label_VEB2X",
2057
2075
  iconPickerLabel: "iconPicker-label_VEB2X",
@@ -2066,19 +2084,19 @@ var $t = {
2066
2084
  };
2067
2085
  //#endregion
2068
2086
  //#region package/common/iconPicker/iconPicker.tsx
2069
- function en(e) {
2087
+ function nn(e) {
2070
2088
  let { formValidator: t } = e;
2071
2089
  return t ? t.touched && t.hasError() : !1;
2072
2090
  }
2073
- function tn(e) {
2091
+ function rn(e) {
2074
2092
  let { isRequired: t, formValidator: n } = e;
2075
2093
  return !!(t || n?.validators.find((e) => e.validatorId === "required"));
2076
2094
  }
2077
- function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, formValidator: i = null, isRequired: a, className: o, style: s, classNames: c, styles: l, ...u }) {
2078
- let d = i ? i.value ?? null : t, m = en({
2095
+ function an({ data: e = [], selectedId: t = null, label: n = "", onChange: r, formValidator: i = null, isRequired: a, className: o, style: s, classNames: c, styles: l, ...u }) {
2096
+ let d = i ? i.value ?? null : t, m = nn({
2079
2097
  formValidator: i,
2080
2098
  isRequired: a
2081
- }), h = tn({
2099
+ }), h = rn({
2082
2100
  formValidator: i,
2083
2101
  isRequired: a
2084
2102
  });
@@ -2087,20 +2105,20 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2087
2105
  }
2088
2106
  return /* @__PURE__ */ H("div", {
2089
2107
  ...u,
2090
- className: f($t.iconPicker, { [$t.iconPickerError]: m }, c?.root, o),
2108
+ className: f(tn.iconPicker, { [tn.iconPickerError]: m }, c?.root, o),
2091
2109
  style: {
2092
2110
  ...l?.root,
2093
2111
  ...s
2094
2112
  },
2095
2113
  children: [n && /* @__PURE__ */ H("div", {
2096
- className: f($t.iconPickerLabel, c?.label),
2114
+ className: f(tn.iconPickerLabel, c?.label),
2097
2115
  style: l?.label,
2098
2116
  children: [n, h && " *"]
2099
2117
  }), /* @__PURE__ */ V("div", {
2100
- className: f($t.iconPickerItemContainer, c?.itemContainer),
2118
+ className: f(tn.iconPickerItemContainer, c?.itemContainer),
2101
2119
  style: l?.itemContainer,
2102
2120
  children: e.map(({ id: e, label: t, icon: n, customIcon: r }) => /* @__PURE__ */ H("div", {
2103
- className: f($t.iconPickerItem, { [$t.iconPickerItemSelected]: d === e }, c?.item),
2121
+ className: f(tn.iconPickerItem, { [tn.iconPickerItemSelected]: d === e }, c?.item),
2104
2122
  style: l?.item,
2105
2123
  title: t,
2106
2124
  tabIndex: 0,
@@ -2120,14 +2138,14 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2120
2138
  }
2121
2139
  //#endregion
2122
2140
  //#region package/common/idleManager/idleManager.tsx
2123
- var rn = [
2141
+ var on = [
2124
2142
  "click",
2125
2143
  "mousemove",
2126
2144
  "keydown",
2127
2145
  "scroll",
2128
2146
  "touchstart"
2129
2147
  ];
2130
- function an({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2148
+ function sn({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2131
2149
  let [r, o] = d(!1), s = u(null), c = i(() => {
2132
2150
  s.current !== null && clearTimeout(s.current), o(!1), s.current = setTimeout(() => {
2133
2151
  o(!0);
@@ -2136,14 +2154,14 @@ function an({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n
2136
2154
  return a(() => {
2137
2155
  c();
2138
2156
  }, [c]), a(() => {
2139
- for (let e of rn) document.addEventListener(e, c);
2157
+ for (let e of on) document.addEventListener(e, c);
2140
2158
  return () => {
2141
- for (let e of rn) document.removeEventListener(e, c);
2159
+ for (let e of on) document.removeEventListener(e, c);
2142
2160
  s.current !== null && clearTimeout(s.current);
2143
2161
  };
2144
2162
  }, [c]), /* @__PURE__ */ V(B, { children: n && r && e });
2145
2163
  }
2146
- var on = {
2164
+ var cn = {
2147
2165
  inputDropdown: "inputDropdown_UdYMa",
2148
2166
  dropdown: "dropdown_-M5-x",
2149
2167
  "dropdown-shown": "dropdown-shown_H2rFU",
@@ -2157,15 +2175,15 @@ var on = {
2157
2175
  };
2158
2176
  //#endregion
2159
2177
  //#region package/common/inputDropdown/inputDropdown.tsx
2160
- function sn(e, t) {
2178
+ function ln(e, t) {
2161
2179
  return t ? t.value ?? "" : e ?? "";
2162
2180
  }
2163
- function cn(e, t) {
2181
+ function un(e, t) {
2164
2182
  let n = t.find((t) => t.value === e);
2165
2183
  return n ? n.label ?? n.value : e;
2166
2184
  }
2167
- function ln({ label: e = "", value: t = "", formValidator: n = null, items: r = [], className: a, style: o, classNames: s, styles: c, onSelect: l = () => null, onChange: p, placeholder: m = "", ...h }) {
2168
- let g = sn(t, n), [_, v] = d(() => cn(g, r)), [y, b] = d(g), [x, S] = d(!1), [C, w] = d(null), T = u(null);
2185
+ function dn({ label: e = "", value: t = "", formValidator: n = null, items: r = [], className: a, style: o, classNames: s, styles: c, onSelect: l = () => null, onChange: p, placeholder: m = "", ...h }) {
2186
+ let g = ln(t, n), [_, v] = d(() => un(g, r)), [y, b] = d(g), [x, S] = d(!1), [C, w] = d(null), T = u(null);
2169
2187
  if (g !== y) {
2170
2188
  b(g);
2171
2189
  let e = r.find((e) => e.value === g);
@@ -2192,7 +2210,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2192
2210
  ]);
2193
2211
  return /* @__PURE__ */ H("div", {
2194
2212
  ...h,
2195
- className: f(on.inputDropdown, s?.root, a),
2213
+ className: f(cn.inputDropdown, s?.root, a),
2196
2214
  style: {
2197
2215
  ...c?.root,
2198
2216
  ...o
@@ -2200,7 +2218,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2200
2218
  onFocus: D,
2201
2219
  onBlur: O,
2202
2220
  onKeyDown: A,
2203
- children: [/* @__PURE__ */ V(rt, {
2221
+ children: [/* @__PURE__ */ V(at, {
2204
2222
  label: e,
2205
2223
  value: _,
2206
2224
  onChange: (e) => {
@@ -2208,10 +2226,10 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2208
2226
  },
2209
2227
  placeholder: m
2210
2228
  }), /* @__PURE__ */ V("div", {
2211
- className: f(on.dropdown, { [on.dropdownShown]: x }, s?.dropdown),
2229
+ className: f(cn.dropdown, { [cn.dropdownShown]: x }, s?.dropdown),
2212
2230
  style: c?.dropdown,
2213
2231
  children: x && E.map((e, t) => /* @__PURE__ */ V("div", {
2214
- className: f(on.dropdownItem, C === t && on.dropdownItemHighlighted, s?.item),
2232
+ className: f(cn.dropdownItem, C === t && cn.dropdownItemHighlighted, s?.item),
2215
2233
  style: c?.item,
2216
2234
  onClick: () => k(e),
2217
2235
  children: e.label ?? e.value
@@ -2219,7 +2237,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2219
2237
  })]
2220
2238
  });
2221
2239
  }
2222
- var un = {
2240
+ var fn = {
2223
2241
  board: "board_6KRdw",
2224
2242
  column: "column_NrNeF",
2225
2243
  "column-empty": "column-empty_5KYsJ",
@@ -2237,15 +2255,15 @@ var un = {
2237
2255
  };
2238
2256
  //#endregion
2239
2257
  //#region package/common/kanbanBoard/KanbanItem.tsx
2240
- function dn({ id: e, children: t }) {
2241
- let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = de({ id: e });
2258
+ function pn({ id: e, children: t }) {
2259
+ let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = q({ id: e });
2242
2260
  return /* @__PURE__ */ V("div", {
2243
2261
  ref: i,
2244
2262
  style: {
2245
2263
  transform: pe.Transform.toString(a),
2246
2264
  transition: o
2247
2265
  },
2248
- className: f(un.item, s && un.itemDragging),
2266
+ className: f(fn.item, s && fn.itemDragging),
2249
2267
  ...n,
2250
2268
  ...r,
2251
2269
  children: t
@@ -2253,22 +2271,22 @@ function dn({ id: e, children: t }) {
2253
2271
  }
2254
2272
  //#endregion
2255
2273
  //#region package/common/kanbanBoard/KanbanColumn.tsx
2256
- function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2274
+ function mn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2257
2275
  let { setNodeRef: c, isOver: l } = le({ id: `column-${e}` });
2258
2276
  return /* @__PURE__ */ H("div", {
2259
- className: f(un.column, l && un.columnOver, n.length === 0 && un.columnEmpty, a),
2277
+ className: f(fn.column, l && fn.columnOver, n.length === 0 && fn.columnEmpty, a),
2260
2278
  children: [/* @__PURE__ */ V("div", {
2261
- className: f(un.columnHeader, o?.header),
2279
+ className: f(fn.columnHeader, o?.header),
2262
2280
  style: s?.header,
2263
2281
  children: t
2264
- }), /* @__PURE__ */ V(q, {
2282
+ }), /* @__PURE__ */ V(K, {
2265
2283
  items: n,
2266
2284
  strategy: fe,
2267
2285
  children: /* @__PURE__ */ V("div", {
2268
2286
  ref: c,
2269
- className: f(un.columnItems, o?.items),
2287
+ className: f(fn.columnItems, o?.items),
2270
2288
  style: s?.items,
2271
- children: n.map((e) => /* @__PURE__ */ V(dn, {
2289
+ children: n.map((e) => /* @__PURE__ */ V(pn, {
2272
2290
  id: e,
2273
2291
  children: r[e] === void 0 ? null : i(r[e], e)
2274
2292
  }, e))
@@ -2278,8 +2296,8 @@ function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2278
2296
  }
2279
2297
  //#endregion
2280
2298
  //#region package/common/kanbanBoard/KanbanBoard.tsx
2281
- function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2282
- let [c, l] = d(null), [u, p] = d(null), m = K(G(W, { activationConstraint: { distance: 8 } })), h = u ?? e;
2299
+ function hn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2300
+ let [c, l] = d(null), [u, p] = d(null), m = ue(G(W, { activationConstraint: { distance: 8 } })), h = u ?? e;
2283
2301
  function g(e, t) {
2284
2302
  return e.findIndex((e) => e.itemIds.includes(t));
2285
2303
  }
@@ -2311,7 +2329,7 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2311
2329
  let e = n[a], t = e.itemIds.indexOf(r), o = e.itemIds.indexOf(i);
2312
2330
  t !== -1 && o !== -1 && t !== o && (n[a] = {
2313
2331
  ...e,
2314
- itemIds: ue(e.itemIds, t, o)
2332
+ itemIds: de(e.itemIds, t, o)
2315
2333
  });
2316
2334
  } else {
2317
2335
  n[a].itemIds = n[a].itemIds.filter((e) => e !== r);
@@ -2335,9 +2353,9 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2335
2353
  onDragOver: v,
2336
2354
  onDragEnd: y,
2337
2355
  children: [/* @__PURE__ */ V("div", {
2338
- className: f(un.board, i),
2356
+ className: f(fn.board, i),
2339
2357
  style: a,
2340
- children: h.map((e) => /* @__PURE__ */ V(fn, {
2358
+ children: h.map((e) => /* @__PURE__ */ V(mn, {
2341
2359
  id: e.id,
2342
2360
  title: e.title,
2343
2361
  itemIds: e.itemIds,
@@ -2345,13 +2363,13 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2345
2363
  renderItem: n
2346
2364
  }, e.id))
2347
2365
  }), /* @__PURE__ */ V(se, { children: c && t[c] !== void 0 ? /* @__PURE__ */ V("div", {
2348
- className: f(un.dragOverlay, o?.dragOverlay),
2366
+ className: f(fn.dragOverlay, o?.dragOverlay),
2349
2367
  style: s?.dragOverlay,
2350
2368
  children: n(t[c], c)
2351
2369
  }) : null })]
2352
2370
  });
2353
2371
  }
2354
- var mn = {
2372
+ var gn = {
2355
2373
  iconLoading: "iconLoading_wovj4",
2356
2374
  "spin-to-oblivion": "spin-to-oblivion_0tZtm",
2357
2375
  spinToOblivion: "spin-to-oblivion_0tZtm",
@@ -2366,39 +2384,39 @@ var mn = {
2366
2384
  };
2367
2385
  //#endregion
2368
2386
  //#region package/common/loading/iconLoading/iconLoading.tsx
2369
- function hn({ className: e = "" }) {
2387
+ function _n({ className: e = "" }) {
2370
2388
  return /* @__PURE__ */ V("div", {
2371
- className: f(mn.iconLoading, e),
2389
+ className: f(gn.iconLoading, e),
2372
2390
  children: /* @__PURE__ */ H("svg", {
2373
2391
  xmlns: "http://www.w3.org/2000/svg",
2374
2392
  viewBox: "-8 -1 16 14",
2375
2393
  children: [
2376
2394
  /* @__PURE__ */ V("path", {
2377
- className: mn.iconLoadingFirst,
2395
+ className: gn.iconLoadingFirst,
2378
2396
  d: "M 0 0 C 3 5 6 5 6 12",
2379
2397
  strokeWidth: "1.7",
2380
2398
  fill: "none"
2381
2399
  }),
2382
2400
  /* @__PURE__ */ V("path", {
2383
- className: mn.iconLoadingFirst,
2401
+ className: gn.iconLoadingFirst,
2384
2402
  d: "M 0 0 C -3 5 -6 5 -6 12",
2385
2403
  strokeWidth: "1.7",
2386
2404
  fill: "none"
2387
2405
  }),
2388
2406
  /* @__PURE__ */ V("path", {
2389
- className: mn.iconLoadingFirst,
2407
+ className: gn.iconLoadingFirst,
2390
2408
  d: "M 0 0 L 0 10",
2391
2409
  strokeWidth: "1.7",
2392
2410
  fill: "none"
2393
2411
  }),
2394
2412
  /* @__PURE__ */ V("path", {
2395
- className: mn.iconLoadingSecond,
2413
+ className: gn.iconLoadingSecond,
2396
2414
  d: "M 0.1 10 C -3 10 -4 10 -6 12",
2397
2415
  strokeWidth: "1.7",
2398
2416
  fill: "none"
2399
2417
  }),
2400
2418
  /* @__PURE__ */ V("path", {
2401
- className: mn.iconLoadingSecond,
2419
+ className: gn.iconLoadingSecond,
2402
2420
  d: "M -0.1 10 C 3 10 4 10 6 12",
2403
2421
  strokeWidth: "1.7",
2404
2422
  fill: "none"
@@ -2409,14 +2427,14 @@ function hn({ className: e = "" }) {
2409
2427
  }
2410
2428
  //#endregion
2411
2429
  //#region package/common/loading/iconLoading/index.ts
2412
- var gn = hn, _n = {
2430
+ var vn = _n, yn = {
2413
2431
  numberInput: "numberInput_7p2O3",
2414
2432
  arrows: "arrows_yjRlc",
2415
2433
  arrowBtn: "arrowBtn_DbJoa"
2416
2434
  };
2417
2435
  //#endregion
2418
2436
  //#region package/common/numberInput/numberInput.tsx
2419
- function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, className: a, allowNegative: o = !1, decimalSeparator: s, thousandSeparator: c, prefix: l, suffix: u, decimalScale: d, placeholder: m, sign: h, showArrows: _ = !1, step: v = 1, onKeyDown: b, ...x }) {
2437
+ function bn({ value: e, onChange: t, formValidator: n, label: r, error: i, className: a, allowNegative: o = !1, decimalSeparator: s, thousandSeparator: c, prefix: l, suffix: u, decimalScale: d, placeholder: m, sign: h, showArrows: _ = !1, step: v = 1, onKeyDown: b, ...x }) {
2420
2438
  let S = n == null ? e : n.value, C = h != null && S != null ? Math.abs(Number(S)) : S, w = C == null ? "" : String(C);
2421
2439
  function T(e) {
2422
2440
  let r = e;
@@ -2438,16 +2456,16 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2438
2456
  b?.(e);
2439
2457
  }
2440
2458
  let O = h === "-" ? "-" : h === "+" ? "+" : l, k = _ ? /* @__PURE__ */ H("div", {
2441
- className: _n.arrows,
2459
+ className: yn.arrows,
2442
2460
  children: [/* @__PURE__ */ V(Ie, {
2443
- className: _n.arrowBtn,
2461
+ className: yn.arrowBtn,
2444
2462
  tabIndex: -1,
2445
2463
  onMouseDown: (e) => {
2446
2464
  e.preventDefault(), E(e.shiftKey ? v * 10 : v);
2447
2465
  },
2448
2466
  children: /* @__PURE__ */ V(p, { icon: y })
2449
2467
  }), /* @__PURE__ */ V(Ie, {
2450
- className: _n.arrowBtn,
2468
+ className: yn.arrowBtn,
2451
2469
  tabIndex: -1,
2452
2470
  onMouseDown: (e) => {
2453
2471
  e.preventDefault(), E(e.shiftKey ? -v * 10 : -v);
@@ -2455,9 +2473,9 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2455
2473
  children: /* @__PURE__ */ V(p, { icon: g })
2456
2474
  })]
2457
2475
  }) : null;
2458
- return /* @__PURE__ */ V(rt, {
2476
+ return /* @__PURE__ */ V(at, {
2459
2477
  label: r,
2460
- className: f(_n.numberInput, a),
2478
+ className: f(yn.numberInput, a),
2461
2479
  value: w,
2462
2480
  onChange: () => {},
2463
2481
  formValidator: null,
@@ -2481,7 +2499,7 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2481
2499
  }
2482
2500
  //#endregion
2483
2501
  //#region package/common/numberInput/index.ts
2484
- var yn = vn, bn = {
2502
+ var xn = bn, Sn = {
2485
2503
  optionPicker: "optionPicker_Yx82s",
2486
2504
  "optionPicker-chip": "optionPicker-chip_ywtvr",
2487
2505
  optionPickerChip: "optionPicker-chip_ywtvr",
@@ -2492,20 +2510,20 @@ var yn = vn, bn = {
2492
2510
  };
2493
2511
  //#endregion
2494
2512
  //#region package/common/optionPicker/optionPicker.tsx
2495
- function xn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2513
+ function Cn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2496
2514
  let a = t.findIndex((e) => e.key === r) * 100 / t.length;
2497
2515
  return /* @__PURE__ */ H("div", {
2498
2516
  ...i,
2499
- className: f(bn.optionPicker, e),
2517
+ className: f(Sn.optionPicker, e),
2500
2518
  children: [/* @__PURE__ */ V("div", {
2501
- className: bn.optionPickerChip,
2519
+ className: Sn.optionPickerChip,
2502
2520
  style: {
2503
2521
  left: `${a}%`,
2504
2522
  width: `${100 / t.length}%`
2505
2523
  }
2506
2524
  }), t.map((e) => /* @__PURE__ */ V(Ie, {
2507
2525
  onClick: (t) => n(e.key, t),
2508
- className: f(bn.optionPickerOption, e.key === r && bn.optionPickerOptionActive),
2526
+ className: f(Sn.optionPickerOption, e.key === r && Sn.optionPickerOptionActive),
2509
2527
  tabIndex: e.key === r ? -1 : 0,
2510
2528
  children: e.label
2511
2529
  }, e.key))]
@@ -2513,25 +2531,25 @@ function xn({ className: e = void 0, options: t, onChange: n, value: r, ...i })
2513
2531
  }
2514
2532
  //#endregion
2515
2533
  //#region package/hooks/useWindowSize.ts
2516
- var Sn = 768;
2517
- function Cn() {
2534
+ var wn = 768;
2535
+ function Tn() {
2518
2536
  let [e, t] = d(() => ({
2519
2537
  width: window.innerWidth,
2520
2538
  height: window.innerHeight,
2521
- isMobileSize: window.innerWidth < Sn
2539
+ isMobileSize: window.innerWidth < wn
2522
2540
  }));
2523
2541
  return a(() => {
2524
2542
  function e() {
2525
2543
  t({
2526
2544
  width: window.innerWidth,
2527
2545
  height: window.innerHeight,
2528
- isMobileSize: window.innerWidth < Sn
2546
+ isMobileSize: window.innerWidth < wn
2529
2547
  });
2530
2548
  }
2531
2549
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
2532
2550
  }, []), e;
2533
2551
  }
2534
- var wn = {
2552
+ var En = {
2535
2553
  overscroll: "overscroll_Ij750",
2536
2554
  "overscroll-header": "overscroll-header_S6vYc",
2537
2555
  overscrollHeader: "overscroll-header_S6vYc",
@@ -2542,8 +2560,8 @@ var wn = {
2542
2560
  };
2543
2561
  //#endregion
2544
2562
  //#region package/common/overscroll/overscroll.tsx
2545
- function Tn({ children: e = null, overscrollContent: t = null, overscrollContentDesktop: n = null, centerHeader: r = !0, min: o = 10, max: s = 80, start: c = 30, unit: l = "%", mobileOnly: d = !0, onScrollChange: p = () => {}, scrollDisabled: m = !1 }) {
2546
- let { isMobileSize: h, height: g } = Cn(), _ = u(null), v = u(null), y = u(null), b = u(!1), x = u(null), S = u(p);
2563
+ function Dn({ children: e = null, overscrollContent: t = null, overscrollContentDesktop: n = null, centerHeader: r = !0, min: o = 10, max: s = 80, start: c = 30, unit: l = "%", mobileOnly: d = !0, onScrollChange: p = () => {}, scrollDisabled: m = !1 }) {
2564
+ let { isMobileSize: h, height: g } = Tn(), _ = u(null), v = u(null), y = u(null), b = u(!1), x = u(null), S = u(p);
2547
2565
  S.current = p;
2548
2566
  let C = i((e) => {
2549
2567
  let t;
@@ -2601,15 +2619,15 @@ function Tn({ children: e = null, overscrollContent: t = null, overscrollContent
2601
2619
  if (d && !h) return n ? /* @__PURE__ */ H("div", { children: [n, e] }) : /* @__PURE__ */ V(B, { children: e });
2602
2620
  let k = l === "%" ? `${100 - o}%` : `calc(100% - ${o}px)`;
2603
2621
  return /* @__PURE__ */ H("div", {
2604
- className: wn.overscroll,
2622
+ className: En.overscroll,
2605
2623
  ref: _,
2606
2624
  onScroll: O,
2607
2625
  children: [/* @__PURE__ */ V("div", {
2608
- className: wn.overscrollHeaderContainer,
2626
+ className: En.overscrollHeaderContainer,
2609
2627
  style: { height: `${s}${l}` },
2610
2628
  ref: y,
2611
2629
  children: /* @__PURE__ */ V("div", {
2612
- className: f(wn.overscrollHeader, r && wn.overscrollHeaderCentered),
2630
+ className: f(En.overscrollHeader, r && En.overscrollHeaderCentered),
2613
2631
  ref: v,
2614
2632
  children: t
2615
2633
  })
@@ -2619,7 +2637,7 @@ function Tn({ children: e = null, overscrollContent: t = null, overscrollContent
2619
2637
  })]
2620
2638
  });
2621
2639
  }
2622
- var En = {
2640
+ var On = {
2623
2641
  progressBar: "progressBar_LO0sX",
2624
2642
  "progressBar-fill": "progressBar-fill_rt32j",
2625
2643
  progressBarFill: "progressBar-fill_rt32j",
@@ -2632,17 +2650,17 @@ var En = {
2632
2650
  };
2633
2651
  //#endregion
2634
2652
  //#region package/common/progressBar/progressBar.tsx
2635
- function Dn(e) {
2653
+ function kn(e) {
2636
2654
  let t = e.replace("#", ""), n = parseInt(t.substring(0, 2), 16), r = parseInt(t.substring(2, 4), 16), i = parseInt(t.substring(4, 6), 16);
2637
2655
  return (.299 * n + .587 * r + .114 * i) / 255 > .5 ? "#000000" : "#ffffff";
2638
2656
  }
2639
- function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2657
+ function An({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2640
2658
  function a() {
2641
2659
  let e = [];
2642
2660
  return Array.isArray(n) ? e.push(...n) : typeof n == "object" ? e.push(n) : e.push({ amount: n }), e.map((n, i) => {
2643
2661
  let a = t ? n.amount / t * 100 : 0;
2644
2662
  return /* @__PURE__ */ V("div", {
2645
- className: f(En.progressBarFill, i === e.length - 1 && En.progressBarFillEnd, n.class),
2663
+ className: f(On.progressBarFill, i === e.length - 1 && On.progressBarFillEnd, n.class),
2646
2664
  style: {
2647
2665
  width: `${a}%`,
2648
2666
  background: n.color || void 0,
@@ -2650,8 +2668,8 @@ function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2650
2668
  },
2651
2669
  title: n.label ? `${n.label}: ${n.amount}` : void 0,
2652
2670
  children: n.label && /* @__PURE__ */ V("div", {
2653
- className: En.progressBarLabel,
2654
- style: n.color ? { color: Dn(n.color) } : {},
2671
+ className: On.progressBarLabel,
2672
+ style: n.color ? { color: kn(n.color) } : {},
2655
2673
  children: n.label
2656
2674
  })
2657
2675
  }, i);
@@ -2659,21 +2677,21 @@ function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2659
2677
  }
2660
2678
  return /* @__PURE__ */ V("div", {
2661
2679
  ...i,
2662
- className: f(En.progressBar, e),
2680
+ className: f(On.progressBar, e),
2663
2681
  style: r,
2664
2682
  children: a()
2665
2683
  });
2666
2684
  }
2667
- function kn(e) {
2685
+ function jn(e) {
2668
2686
  return Math.round(e / 5) * 5;
2669
2687
  }
2670
- function An(e) {
2688
+ function Mn(e) {
2671
2689
  return {
2672
- x: kn(e.x),
2673
- y: kn(e.y)
2690
+ x: jn(e.x),
2691
+ y: jn(e.y)
2674
2692
  };
2675
2693
  }
2676
- function jn(e, t, n) {
2694
+ function Nn(e, t, n) {
2677
2695
  let r = n.createSVGPoint();
2678
2696
  r.x = e, r.y = t;
2679
2697
  let i = n.getScreenCTM();
@@ -2682,18 +2700,18 @@ function jn(e, t, n) {
2682
2700
  y: 0
2683
2701
  };
2684
2702
  let a = r.matrixTransform(i.inverse());
2685
- return An({
2703
+ return Mn({
2686
2704
  x: a.x,
2687
2705
  y: a.y
2688
2706
  });
2689
2707
  }
2690
- function Mn(e, t) {
2708
+ function Pn(e, t) {
2691
2709
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
2692
2710
  }
2693
- function Nn(e, t, n) {
2711
+ function Fn(e, t, n) {
2694
2712
  let r = n.x - t.x, i = n.y - t.y, a = r * r + i * i;
2695
2713
  if (a === 0) return {
2696
- dist: Mn(e, t),
2714
+ dist: Pn(e, t),
2697
2715
  t: 0
2698
2716
  };
2699
2717
  let o = Math.max(0, Math.min(1, ((e.x - t.x) * r + (e.y - t.y) * i) / a)), s = t.x + o * r, c = t.y + o * i;
@@ -2702,12 +2720,12 @@ function Nn(e, t, n) {
2702
2720
  t: o
2703
2721
  };
2704
2722
  }
2705
- function Pn(e, t) {
2723
+ function In(e, t) {
2706
2724
  let n = null;
2707
2725
  for (let r of t) {
2708
2726
  let t = r.points;
2709
2727
  for (let i = 0; i < t.length; i++) {
2710
- let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Nn(e, a, o);
2728
+ let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Fn(e, a, o);
2711
2729
  s <= 8 && (!n || s < n.dist) && (n = {
2712
2730
  roomId: r.id,
2713
2731
  wallIndex: i,
@@ -2718,7 +2736,7 @@ function Pn(e, t) {
2718
2736
  }
2719
2737
  return n;
2720
2738
  }
2721
- function Fn(e, t) {
2739
+ function Ln(e, t) {
2722
2740
  let n = !1;
2723
2741
  for (let r = 0, i = t.length - 1; r < t.length; i = r++) {
2724
2742
  let a = t[r].x, o = t[r].y, s = t[i].x, c = t[i].y;
@@ -2726,13 +2744,13 @@ function Fn(e, t) {
2726
2744
  }
2727
2745
  return n;
2728
2746
  }
2729
- function In(e) {
2747
+ function Rn(e) {
2730
2748
  return {
2731
2749
  x: e.reduce((e, t) => e + t.x, 0) / e.length,
2732
2750
  y: e.reduce((e, t) => e + t.y, 0) / e.length
2733
2751
  };
2734
2752
  }
2735
- function Ln(e, t, n, r) {
2753
+ function zn(e, t, n, r) {
2736
2754
  return [
2737
2755
  {
2738
2756
  x: e,
@@ -2752,7 +2770,7 @@ function Ln(e, t, n, r) {
2752
2770
  }
2753
2771
  ];
2754
2772
  }
2755
- function Rn(e, t, n, r) {
2773
+ function Bn(e, t, n, r) {
2756
2774
  let i = t.x - e.x, a = t.y - e.y, o = Math.sqrt(i * i + a * a);
2757
2775
  if (o < .001) return null;
2758
2776
  let s = i / o, c = a / o, l = e.x + i * n, u = e.y + a * n, d = Math.min(r / 2, o / 2 - .001);
@@ -2771,13 +2789,13 @@ function Rn(e, t, n, r) {
2771
2789
  }
2772
2790
  };
2773
2791
  }
2774
- function zn(e) {
2792
+ function Vn(e) {
2775
2793
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2776
2794
  }
2777
- function Bn(e) {
2795
+ function Hn(e) {
2778
2796
  return e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z";
2779
2797
  }
2780
- function Vn(e, t) {
2798
+ function Un(e, t) {
2781
2799
  if (e.length < 2) return [];
2782
2800
  if (t.length === 0) return [e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z"];
2783
2801
  let n = e.length, r = [], i = [`M ${e[0].x.toFixed(2)},${e[0].y.toFixed(2)}`];
@@ -2800,8 +2818,8 @@ function Vn(e, t) {
2800
2818
  }
2801
2819
  return r[0] = [...i, ...r[0].slice(1)], r.map((e) => e.join(" "));
2802
2820
  }
2803
- function Hn(e, t, n) {
2804
- let r = Rn(e, t, n.t, n.width);
2821
+ function Wn(e, t, n) {
2822
+ let r = Bn(e, t, n.t, n.width);
2805
2823
  if (!r) return "";
2806
2824
  let { p1: i, p2: a, perp: o } = r, s = {
2807
2825
  x: i.x + o.x * n.width,
@@ -2809,7 +2827,7 @@ function Hn(e, t, n) {
2809
2827
  };
2810
2828
  return [`M ${i.x.toFixed(2)},${i.y.toFixed(2)} L ${a.x.toFixed(2)},${a.y.toFixed(2)}`, `M ${i.x.toFixed(2)},${i.y.toFixed(2)} A ${n.width},${n.width} 0 0,1 ${s.x.toFixed(2)},${s.y.toFixed(2)}`].join(" ");
2811
2829
  }
2812
- function Un(e, t) {
2830
+ function Gn(e, t) {
2813
2831
  let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
2814
2832
  for (let t of e) for (let e of t.points) e.x < n && (n = e.x), e.y < r && (r = e.y), e.x > i && (i = e.x), e.y > a && (a = e.y);
2815
2833
  isFinite(n) || (n = 0, r = 0, i = 400, a = 300);
@@ -2819,10 +2837,10 @@ function Un(e, t) {
2819
2837
  (i - n + 10).toFixed(2),
2820
2838
  (a - r + 10).toFixed(2)
2821
2839
  ].join(" "), s = e.map((e) => {
2822
- let n = t.filter((t) => t.roomId === e.id), r = Vn(e.points, n), i = Bn(e.points), a = In(e.points), o = r.map((e) => ` <path d="${e}" />`).join("\n"), s = n.map((t) => {
2823
- let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = Hn(n, r, t);
2840
+ let n = t.filter((t) => t.roomId === e.id), r = Un(e.points, n), i = Hn(e.points), a = Rn(e.points), o = r.map((e) => ` <path d="${e}" />`).join("\n"), s = n.map((t) => {
2841
+ let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = Wn(n, r, t);
2824
2842
  return i ? ` <path d="${i}" fill="none" />` : "";
2825
- }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${zn(e.name)}</text>` : "";
2843
+ }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${Vn(e.name)}</text>` : "";
2826
2844
  return [
2827
2845
  ` <g id="${e.id}">`,
2828
2846
  o,
@@ -2841,7 +2859,7 @@ function Un(e, t) {
2841
2859
  "</svg>"
2842
2860
  ].join("\n");
2843
2861
  }
2844
- function Wn(e) {
2862
+ function Kn(e) {
2845
2863
  let t = [];
2846
2864
  for (let n of e.matchAll(/[ML]\s*([-\d.]+)[,\s]+([-\d.]+)/gi)) t.push({
2847
2865
  x: parseFloat(n[1]),
@@ -2849,14 +2867,14 @@ function Wn(e) {
2849
2867
  });
2850
2868
  return t;
2851
2869
  }
2852
- function Gn(e) {
2870
+ function qn(e) {
2853
2871
  let t = new DOMParser().parseFromString(e, "image/svg+xml"), n = [];
2854
2872
  return t.querySelectorAll("[id^=\"room\"]").forEach((e) => {
2855
2873
  let t = e.querySelector("[id=\"background\"]");
2856
2874
  if (!t) return;
2857
2875
  let r = t.getAttribute("d");
2858
2876
  if (!r) return;
2859
- let i = Wn(r);
2877
+ let i = Kn(r);
2860
2878
  if (i.length < 3) return;
2861
2879
  let a = e.querySelector("text")?.textContent?.trim() ?? "";
2862
2880
  n.push({
@@ -2866,8 +2884,8 @@ function Gn(e) {
2866
2884
  });
2867
2885
  }), n;
2868
2886
  }
2869
- function Kn(e, t) {
2870
- let n = Un(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
2887
+ function Jn(e, t) {
2888
+ let n = Gn(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
2871
2889
  a.href = i, a.download = "room-plan.svg", a.click(), URL.revokeObjectURL(i);
2872
2890
  }
2873
2891
  var Q = {
@@ -2942,20 +2960,20 @@ var Q = {
2942
2960
  polyCloseTarget: "polyCloseTarget_snjYx",
2943
2961
  polyVertex: "polyVertex_fw0nX",
2944
2962
  vertexHandle: "vertexHandle_-z7g5"
2945
- }, qn = 6, Jn = 5, Yn = 1.25, Xn = .25, Zn = 12, Qn = 0;
2946
- function $n(e) {
2947
- return Qn += 1, `${e}${Qn}`;
2963
+ }, Yn = 6, Xn = 5, Zn = 1.25, Qn = .25, $n = 12, er = 0;
2964
+ function tr(e) {
2965
+ return er += 1, `${e}${er}`;
2948
2966
  }
2949
- var er = {
2967
+ var nr = {
2950
2968
  select: "Drag inside to move · Drag corner to reshape · Click wall to add corner · Dbl-click corner to remove · Delete to erase",
2951
2969
  rect: "Drag to draw a rectangular room",
2952
2970
  polygon: "Click to place corners · Click first point or Enter to close · Esc to cancel"
2953
2971
  };
2954
- function tr({ className: e }) {
2972
+ function rr({ className: e }) {
2955
2973
  let [t, n] = d([]), [r, i] = d([]), [o, c] = d("rect"), [l, m] = d(null), [g, _] = d(null), [v, y] = d(null), [b, x] = d(null), [S, E] = d([]), [D, O] = d(null), [k, j] = d(1), [P, F] = d({
2956
2974
  x: 0,
2957
2975
  y: 0
2958
- }), I = u(null), ee = u(null), te = u(null), z = u(null), re = u(null), ie = u({
2976
+ }), I = u(null), ee = u(null), R = u(null), z = u(null), re = u(null), ie = u({
2959
2977
  rooms: t,
2960
2978
  doors: r,
2961
2979
  tool: o,
@@ -2979,7 +2997,7 @@ function tr({ className: e }) {
2979
2997
  });
2980
2998
  function ae(e) {
2981
2999
  e.length < 3 || (n((t) => [...t, {
2982
- id: $n("room"),
3000
+ id: tr("room"),
2983
3001
  name: `Room ${t.length + 1}`,
2984
3002
  points: e
2985
3003
  }]), E([]), O(null));
@@ -2989,9 +3007,9 @@ function tr({ className: e }) {
2989
3007
  if (!e) return;
2990
3008
  function t(e) {
2991
3009
  e.preventDefault();
2992
- let { zoom: t, pan: n } = ie.current, r = jn(e.clientX, e.clientY, z.current);
3010
+ let { zoom: t, pan: n } = ie.current, r = Nn(e.clientX, e.clientY, z.current);
2993
3011
  if (!r) return;
2994
- let i = e.deltaY < 0 ? Yn : 1 / Yn, a = Math.max(Xn, Math.min(Zn, t * i));
3012
+ let i = e.deltaY < 0 ? Zn : 1 / Zn, a = Math.max(Qn, Math.min($n, t * i));
2995
3013
  F({
2996
3014
  x: r.x - (r.x - n.x) * (t / a),
2997
3015
  y: r.y - (r.y - n.y) * (t / a)
@@ -3014,7 +3032,7 @@ function tr({ className: e }) {
3014
3032
  return;
3015
3033
  }
3016
3034
  if ((e.key === "+" || e.key === "=") && !(e.target instanceof HTMLInputElement)) {
3017
- let e = Math.max(Xn, Math.min(Zn, s * Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3035
+ let e = Math.max(Qn, Math.min($n, s * Zn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3018
3036
  j(e), F({
3019
3037
  x: t - 400 / e / 2,
3020
3038
  y: n - 300 / e / 2
@@ -3022,7 +3040,7 @@ function tr({ className: e }) {
3022
3040
  return;
3023
3041
  }
3024
3042
  if (e.key === "-" && !(e.target instanceof HTMLInputElement)) {
3025
- let e = Math.max(Xn, Math.min(Zn, s / Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3043
+ let e = Math.max(Qn, Math.min($n, s / Zn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3026
3044
  j(e), F({
3027
3045
  x: t - 400 / e / 2,
3028
3046
  y: n - 300 / e / 2
@@ -3041,20 +3059,20 @@ function tr({ className: e }) {
3041
3059
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
3042
3060
  }, []);
3043
3061
  function oe(e, t = k, n = P) {
3044
- let r = Math.max(Xn, Math.min(Zn, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
3062
+ let r = Math.max(Qn, Math.min($n, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
3045
3063
  F({
3046
3064
  x: i - 400 / r / 2,
3047
3065
  y: a - 300 / r / 2
3048
3066
  }), j(r);
3049
3067
  }
3050
3068
  function U(e) {
3051
- return z.current ? jn(e.clientX, e.clientY, z.current) : null;
3069
+ return z.current ? Nn(e.clientX, e.clientY, z.current) : null;
3052
3070
  }
3053
3071
  function se(e, t) {
3054
3072
  let n = null;
3055
3073
  for (let r = 0; r < t.points.length; r++) {
3056
- let i = Mn(e, t.points[r]);
3057
- i <= qn && (!n || i < n.d) && (n = {
3074
+ let i = Pn(e, t.points[r]);
3075
+ i <= Yn && (!n || i < n.d) && (n = {
3058
3076
  index: r,
3059
3077
  d: i
3060
3078
  });
@@ -3064,8 +3082,8 @@ function tr({ className: e }) {
3064
3082
  function W(e, t) {
3065
3083
  let n = null;
3066
3084
  for (let r = 0; r < t.points.length; r++) {
3067
- let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Nn(e, i, a);
3068
- o <= Jn && (!n || o < n.d) && (n = {
3085
+ let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Fn(e, i, a);
3086
+ o <= Xn && (!n || o < n.d) && (n = {
3069
3087
  index: r,
3070
3088
  t: s,
3071
3089
  d: o
@@ -3118,7 +3136,7 @@ function tr({ className: e }) {
3118
3136
  let t = z.current;
3119
3137
  if (t) {
3120
3138
  let n = t.getBoundingClientRect();
3121
- te.current = {
3139
+ R.current = {
3122
3140
  startClient: {
3123
3141
  x: e.clientX,
3124
3142
  y: e.clientY
@@ -3137,9 +3155,9 @@ function tr({ className: e }) {
3137
3155
  if (g) {
3138
3156
  let e = t.find((e) => e.id === g);
3139
3157
  if (e) {
3140
- let t = Pn(n, [e]);
3158
+ let t = In(n, [e]);
3141
3159
  t && i((e) => [...e, {
3142
- id: $n("door"),
3160
+ id: tr("door"),
3143
3161
  roomId: t.roomId,
3144
3162
  wallIndex: t.wallIndex,
3145
3163
  t: t.t,
@@ -3153,7 +3171,7 @@ function tr({ className: e }) {
3153
3171
  return;
3154
3172
  }
3155
3173
  if (o === "polygon") {
3156
- S.length >= 3 && Mn(n, S[0]) <= 8 ? ae(S) : E((e) => [...e, n]);
3174
+ S.length >= 3 && Pn(n, S[0]) <= 8 ? ae(S) : E((e) => [...e, n]);
3157
3175
  return;
3158
3176
  }
3159
3177
  if (o === "select") {
@@ -3174,7 +3192,7 @@ function tr({ className: e }) {
3174
3192
  if (e) {
3175
3193
  let t = W(n, e);
3176
3194
  if (t) {
3177
- let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = An({
3195
+ let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = Mn({
3178
3196
  x: r.x + (i.x - r.x) * t.t,
3179
3197
  y: r.y + (i.y - r.y) * t.t
3180
3198
  }), o = ce(e.id, t.index, t.t, a);
@@ -3188,7 +3206,7 @@ function tr({ className: e }) {
3188
3206
  return;
3189
3207
  }
3190
3208
  }
3191
- let r = t.find((e) => Fn(n, e.points));
3209
+ let r = t.find((e) => Ln(n, e.points));
3192
3210
  if (r) {
3193
3211
  m(r.id), I.current = {
3194
3212
  type: "room",
@@ -3202,7 +3220,7 @@ function tr({ className: e }) {
3202
3220
  }
3203
3221
  }
3204
3222
  }
3205
- function K(e) {
3223
+ function ue(e) {
3206
3224
  if (o !== "select" || g) return;
3207
3225
  let n = U(e);
3208
3226
  if (!n) return;
@@ -3211,9 +3229,9 @@ function tr({ className: e }) {
3211
3229
  let i = se(n, r);
3212
3230
  i && (e.preventDefault(), le(r.id, i.index));
3213
3231
  }
3214
- function q(e) {
3215
- if (te.current) {
3216
- let { startClient: t, origPan: n, scaleX: r, scaleY: i } = te.current;
3232
+ function K(e) {
3233
+ if (R.current) {
3234
+ let { startClient: t, origPan: n, scaleX: r, scaleY: i } = R.current;
3217
3235
  F({
3218
3236
  x: n.x - (e.clientX - t.x) * r,
3219
3237
  y: n.y - (e.clientY - t.y) * i
@@ -3225,7 +3243,7 @@ function tr({ className: e }) {
3225
3243
  if (ee.current && g) {
3226
3244
  let e = t.find((e) => e.id === g);
3227
3245
  if (e) {
3228
- let t = Pn(r, [e]);
3246
+ let t = In(r, [e]);
3229
3247
  t && i((e) => e.map((e) => e.id === ee.current ? {
3230
3248
  ...e,
3231
3249
  wallIndex: t.wallIndex,
@@ -3245,7 +3263,7 @@ function tr({ className: e }) {
3245
3263
  if (o === "select" && !g && I.current) {
3246
3264
  let e = I.current;
3247
3265
  if (e.type === "vertex") {
3248
- let t = r.x - e.start.x, i = r.y - e.start.y, a = An({
3266
+ let t = r.x - e.start.x, i = r.y - e.start.y, a = Mn({
3249
3267
  x: e.origPt.x + t,
3250
3268
  y: e.origPt.y + i
3251
3269
  });
@@ -3270,9 +3288,9 @@ function tr({ className: e }) {
3270
3288
  }
3271
3289
  }
3272
3290
  }
3273
- function ue(e) {
3274
- if (te.current) {
3275
- te.current = null;
3291
+ function de(e) {
3292
+ if (R.current) {
3293
+ R.current = null;
3276
3294
  return;
3277
3295
  }
3278
3296
  let t = U(e);
@@ -3280,15 +3298,15 @@ function tr({ className: e }) {
3280
3298
  if (o === "rect" && v) {
3281
3299
  let e = Math.min(v.x, t.x), r = Math.min(v.y, t.y), i = Math.abs(t.x - v.x), a = Math.abs(t.y - v.y);
3282
3300
  i >= 10 && a >= 10 && n((t) => [...t, {
3283
- id: $n("room"),
3301
+ id: tr("room"),
3284
3302
  name: `Room ${t.length + 1}`,
3285
- points: Ln(e, r, i, a)
3303
+ points: zn(e, r, i, a)
3286
3304
  }]), y(null), x(null);
3287
3305
  }
3288
3306
  ee.current = null, I.current = null;
3289
3307
  }
3290
3308
  }
3291
- function de(e) {
3309
+ function q(e) {
3292
3310
  l && n((t) => t.map((t) => t.id === l ? {
3293
3311
  ...t,
3294
3312
  name: e
@@ -3318,10 +3336,10 @@ function tr({ className: e }) {
3318
3336
  r.onload = (e) => {
3319
3337
  let t = e.target?.result;
3320
3338
  if (typeof t != "string") return;
3321
- let r = Gn(t);
3339
+ let r = qn(t);
3322
3340
  r.length !== 0 && (n(r.map((e) => ({
3323
3341
  ...e,
3324
- id: $n("room")
3342
+ id: tr("room")
3325
3343
  }))), i([]), m(null), _(null), j(1), F({
3326
3344
  x: 0,
3327
3345
  y: 0
@@ -3341,7 +3359,7 @@ function tr({ className: e }) {
3341
3359
  },
3342
3360
  {
3343
3361
  t: "rect",
3344
- icon: L,
3362
+ icon: te,
3345
3363
  label: "Rectangle room"
3346
3364
  },
3347
3365
  {
@@ -3366,8 +3384,8 @@ function tr({ className: e }) {
3366
3384
  /* @__PURE__ */ V("button", {
3367
3385
  title: "Zoom in (+)",
3368
3386
  className: Q.roomDrawerToolbarBtn,
3369
- onClick: () => oe(Yn),
3370
- disabled: k >= Zn,
3387
+ onClick: () => oe(Zn),
3388
+ disabled: k >= $n,
3371
3389
  children: /* @__PURE__ */ V(p, { icon: N })
3372
3390
  }),
3373
3391
  /* @__PURE__ */ H("button", {
@@ -3384,8 +3402,8 @@ function tr({ className: e }) {
3384
3402
  /* @__PURE__ */ V("button", {
3385
3403
  title: "Zoom out (−)",
3386
3404
  className: Q.roomDrawerToolbarBtn,
3387
- onClick: () => oe(1 / Yn),
3388
- disabled: k <= Xn,
3405
+ onClick: () => oe(1 / Zn),
3406
+ disabled: k <= Qn,
3389
3407
  children: /* @__PURE__ */ V(p, { icon: M })
3390
3408
  }),
3391
3409
  /* @__PURE__ */ V("div", { className: Q.roomDrawerToolbarSep }),
@@ -3398,7 +3416,7 @@ function tr({ className: e }) {
3398
3416
  /* @__PURE__ */ V("button", {
3399
3417
  title: "Download SVG",
3400
3418
  className: Q.roomDrawerToolbarBtn,
3401
- onClick: () => Kn(t, r),
3419
+ onClick: () => Jn(t, r),
3402
3420
  disabled: t.length === 0,
3403
3421
  children: /* @__PURE__ */ V(p, { icon: w })
3404
3422
  }),
@@ -3416,9 +3434,9 @@ function tr({ className: e }) {
3416
3434
  className: f(Q.roomDrawerCanvas, Ce),
3417
3435
  viewBox: `${P.x} ${P.y} ${J} ${Se}`,
3418
3436
  onMouseDown: G,
3419
- onMouseMove: q,
3420
- onMouseUp: ue,
3421
- onDoubleClick: K,
3437
+ onMouseMove: K,
3438
+ onMouseUp: de,
3439
+ onDoubleClick: ue,
3422
3440
  children: [
3423
3441
  /* @__PURE__ */ V("defs", { children: /* @__PURE__ */ V("pattern", {
3424
3442
  id: "rd-grid",
@@ -3439,7 +3457,7 @@ function tr({ className: e }) {
3439
3457
  fill: "url(#rd-grid)"
3440
3458
  }),
3441
3459
  t.map((e) => {
3442
- let t = e.points, n = t.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x},${e.y}`).join(" ") + " Z", i = Vn(t, r.filter((t) => t.roomId === e.id)), a = In(t), o = l === e.id, s = g === e.id;
3460
+ let t = e.points, n = t.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x},${e.y}`).join(" ") + " Z", i = Un(t, r.filter((t) => t.roomId === e.id)), a = Rn(t), o = l === e.id, s = g === e.id;
3443
3461
  return /* @__PURE__ */ H("g", { children: [
3444
3462
  /* @__PURE__ */ V("path", {
3445
3463
  d: n,
@@ -3462,7 +3480,7 @@ function tr({ className: e }) {
3462
3480
  r.map((e) => {
3463
3481
  let n = t.find((t) => t.id === e.roomId);
3464
3482
  if (!n) return null;
3465
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
3483
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Bn(r, i, e.t, e.width);
3466
3484
  return a ? /* @__PURE__ */ V("line", {
3467
3485
  x1: a.p1.x,
3468
3486
  y1: a.p1.y,
@@ -3474,7 +3492,7 @@ function tr({ className: e }) {
3474
3492
  g && be.map((e) => {
3475
3493
  let n = t.find((t) => t.id === e.roomId);
3476
3494
  if (!n) return null;
3477
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
3495
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Bn(r, i, e.t, e.width);
3478
3496
  if (!a) return null;
3479
3497
  let o = {
3480
3498
  x: (a.p1.x + a.p2.x) / 2,
@@ -3533,7 +3551,7 @@ function tr({ className: e }) {
3533
3551
  /* @__PURE__ */ V("input", {
3534
3552
  className: Q.roomDrawerInfoInput,
3535
3553
  value: ve.name,
3536
- onChange: (e) => de(e.target.value),
3554
+ onChange: (e) => q(e.target.value),
3537
3555
  placeholder: "Room name"
3538
3556
  }),
3539
3557
  /* @__PURE__ */ H("button", {
@@ -3546,7 +3564,7 @@ function tr({ className: e }) {
3546
3564
  className: Q.roomDrawerInfoDelete,
3547
3565
  onClick: pe,
3548
3566
  title: "Delete room",
3549
- children: /* @__PURE__ */ V(p, { icon: R })
3567
+ children: /* @__PURE__ */ V(p, { icon: L })
3550
3568
  })
3551
3569
  ]
3552
3570
  }),
@@ -3597,7 +3615,7 @@ function tr({ className: e }) {
3597
3615
  className: Q.roomDrawerInfoDelete,
3598
3616
  onClick: () => me(e.id),
3599
3617
  title: "Delete door",
3600
- children: /* @__PURE__ */ V(p, { icon: R })
3618
+ children: /* @__PURE__ */ V(p, { icon: L })
3601
3619
  })
3602
3620
  ]
3603
3621
  }, e.id))]
@@ -3605,12 +3623,12 @@ function tr({ className: e }) {
3605
3623
  }),
3606
3624
  /* @__PURE__ */ V("div", {
3607
3625
  className: Q.roomDrawerHint,
3608
- children: g ? "Click a wall to add a door · Adjust width or delete from the list · Done or Esc to finish" : `${er[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
3626
+ children: g ? "Click a wall to add a door · Adjust width or delete from the list · Done or Esc to finish" : `${nr[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
3609
3627
  })
3610
3628
  ]
3611
3629
  });
3612
3630
  }
3613
- var nr = {
3631
+ var ir = {
3614
3632
  "roomViewer-containerLoading": "roomViewer-containerLoading_BL3M-",
3615
3633
  roomViewerContainerLoading: "roomViewer-containerLoading_BL3M-",
3616
3634
  "roomViewer-container": "roomViewer-container_YlmB8",
@@ -3628,7 +3646,7 @@ var nr = {
3628
3646
  };
3629
3647
  //#endregion
3630
3648
  //#region package/common/roomViewer/roomViewer.tsx
3631
- function rr({ data: e = [] }) {
3649
+ function ar({ data: e = [] }) {
3632
3650
  let t = u(null), [, n] = d(null), [r, i] = d(0), [o, s] = d(!0);
3633
3651
  a(() => {
3634
3652
  let i = new AbortController();
@@ -3648,15 +3666,15 @@ function rr({ data: e = [] }) {
3648
3666
  if (n) {
3649
3667
  let [e] = t.querySelectorAll(`[id="room${n}"]`);
3650
3668
  if (e) {
3651
- e.classList.remove(nr.roomViewerSelected, nr.roomViewerTint);
3669
+ e.classList.remove(ir.roomViewerSelected, ir.roomViewerTint);
3652
3670
  let [t] = e.querySelectorAll("[id=\"background\"]");
3653
- t && t.classList.remove(nr.roomViewerTint);
3671
+ t && t.classList.remove(ir.roomViewerTint);
3654
3672
  }
3655
3673
  }
3656
3674
  if (a) {
3657
- a.classList.add(nr.roomViewerSelected);
3675
+ a.classList.add(ir.roomViewerSelected);
3658
3676
  let [e] = a.querySelectorAll("[id=\"background\"]");
3659
- (e ?? a).classList.add(nr.roomViewerTint);
3677
+ (e ?? a).classList.add(ir.roomViewerTint);
3660
3678
  }
3661
3679
  return r;
3662
3680
  });
@@ -3669,19 +3687,19 @@ function rr({ data: e = [] }) {
3669
3687
  }
3670
3688
  let m = e[r]?.data ?? null;
3671
3689
  return /* @__PURE__ */ H("div", {
3672
- className: nr.roomViewer,
3690
+ className: ir.roomViewer,
3673
3691
  ref: t,
3674
3692
  children: [
3675
3693
  /* @__PURE__ */ V("h3", {
3676
- className: nr.roomViewerHeader,
3694
+ className: ir.roomViewerHeader,
3677
3695
  children: e[r]?.label ?? ""
3678
3696
  }),
3679
3697
  /* @__PURE__ */ V("div", {
3680
- className: f(nr.roomViewerContainer, o && nr.roomViewerContainerLoading),
3698
+ className: f(ir.roomViewerContainer, o && ir.roomViewerContainerLoading),
3681
3699
  children: m
3682
3700
  }, r),
3683
3701
  e.length > 1 && /* @__PURE__ */ H("div", {
3684
- className: nr.roomViewerActions,
3702
+ className: ir.roomViewerActions,
3685
3703
  children: [
3686
3704
  /* @__PURE__ */ V(p, {
3687
3705
  icon: _,
@@ -3697,21 +3715,21 @@ function rr({ data: e = [] }) {
3697
3715
  ]
3698
3716
  });
3699
3717
  }
3700
- var ir = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3718
+ var or = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3701
3719
  //#endregion
3702
3720
  //#region package/common/scrollbarProvider/scrollbarProvider.tsx
3703
- function ar({ className: e = void 0, children: t = void 0 }) {
3721
+ function sr({ className: e = void 0, children: t = void 0 }) {
3704
3722
  return /* @__PURE__ */ V("div", {
3705
- className: f(ir.scrollbarProvider, e),
3723
+ className: f(or.scrollbarProvider, e),
3706
3724
  children: t
3707
3725
  });
3708
3726
  }
3709
3727
  //#endregion
3710
3728
  //#region package/common/scrollbarProvider/index.ts
3711
- var or = ar, sr = { resultCount: "resultCount_Sn48Q" };
3729
+ var cr = sr, lr = { resultCount: "resultCount_Sn48Q" };
3712
3730
  //#endregion
3713
3731
  //#region package/common/searchInput/searchInput.tsx
3714
- function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, debounceMs: o = 500, totalAmount: s, showAmount: c = !0, className: l, width: d, ...f }) {
3732
+ function ur({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, debounceMs: o = 500, totalAmount: s, showAmount: c = !0, className: l, width: d, ...f }) {
3715
3733
  let p = u(null);
3716
3734
  a(() => () => {
3717
3735
  p.current !== null && clearTimeout(p.current);
@@ -3727,14 +3745,14 @@ function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
3727
3745
  ...f,
3728
3746
  className: l,
3729
3747
  style: d == null ? void 0 : { width: d },
3730
- children: [/* @__PURE__ */ V(rt, {
3748
+ children: [/* @__PURE__ */ V(at, {
3731
3749
  type: X.Search,
3732
3750
  label: i,
3733
3751
  placeholder: r,
3734
3752
  value: e,
3735
3753
  onChange: m
3736
3754
  }), h && /* @__PURE__ */ H("p", {
3737
- className: sr.resultCount,
3755
+ className: lr.resultCount,
3738
3756
  children: [
3739
3757
  s,
3740
3758
  " ",
@@ -3743,7 +3761,7 @@ function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
3743
3761
  })]
3744
3762
  });
3745
3763
  }
3746
- var lr = {
3764
+ var dr = {
3747
3765
  stepper: "stepper_kiS2A",
3748
3766
  "stepper-clickable": "stepper-clickable_Nm6fP",
3749
3767
  stepperClickable: "stepper-clickable_Nm6fP",
@@ -3773,7 +3791,7 @@ var lr = {
3773
3791
  };
3774
3792
  //#endregion
3775
3793
  //#region package/common/stepper/stepper.tsx
3776
- function ur() {
3794
+ function fr() {
3777
3795
  return /* @__PURE__ */ V("svg", {
3778
3796
  strokeLinejoin: "round",
3779
3797
  strokeLinecap: "round",
@@ -3789,22 +3807,22 @@ function ur() {
3789
3807
  })
3790
3808
  });
3791
3809
  }
3792
- function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", onStepClicked: i = null, nonLinear: a = !1, hideLabels: o = !1, className: s, style: c, classNames: l, styles: u, ...d }) {
3810
+ function pr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", onStepClicked: i = null, nonLinear: a = !1, hideLabels: o = !1, className: s, style: c, classNames: l, styles: u, ...d }) {
3793
3811
  let p = r === "vertical";
3794
3812
  return /* @__PURE__ */ V("div", {
3795
3813
  ...d,
3796
- className: f(lr.stepper, { [lr.stepperVertical]: p }, l?.root, s),
3814
+ className: f(dr.stepper, { [dr.stepperVertical]: p }, l?.root, s),
3797
3815
  style: {
3798
3816
  ...u?.root,
3799
3817
  ...c
3800
3818
  },
3801
3819
  children: t.map((r, s) => {
3802
- let c = s < n, d = s <= n, m = !!i && (a ? s !== n : c), h = f(lr.stepperEntry, { [lr.stepperEntryActive]: d }, { [lr.stepperEntryDone]: c }, { [lr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("div", {
3803
- className: f(lr.stepperEntryNumber, { [lr.stepperEntryNumberDone]: c }, l?.entryNumber),
3820
+ let c = s < n, d = s <= n, m = !!i && (a ? s !== n : c), h = f(dr.stepperEntry, { [dr.stepperEntryActive]: d }, { [dr.stepperEntryDone]: c }, { [dr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("div", {
3821
+ className: f(dr.stepperEntryNumber, { [dr.stepperEntryNumberDone]: c }, l?.entryNumber),
3804
3822
  style: u?.entryNumber,
3805
- children: c ? /* @__PURE__ */ V(ur, {}) : s + 1
3823
+ children: c ? /* @__PURE__ */ V(fr, {}) : s + 1
3806
3824
  }), !o && /* @__PURE__ */ V("div", {
3807
- className: f(lr.stepperEntryLabel, { [lr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3825
+ className: f(dr.stepperEntryLabel, { [dr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3808
3826
  style: u?.entryLabel,
3809
3827
  children: r.label
3810
3828
  })] });
@@ -3820,7 +3838,7 @@ function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
3820
3838
  "aria-current": s === n ? "step" : void 0,
3821
3839
  children: g
3822
3840
  }), s < t.length - 1 && /* @__PURE__ */ V("div", {
3823
- className: f(lr.stepperConnector, { [lr.stepperConnectorFilled]: c }, { [lr.stepperConnectorVertical]: p }, l?.connector),
3841
+ className: f(dr.stepperConnector, { [dr.stepperConnectorFilled]: c }, { [dr.stepperConnectorVertical]: p }, l?.connector),
3824
3842
  style: u?.connector
3825
3843
  })] }, s);
3826
3844
  })
@@ -3828,7 +3846,7 @@ function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
3828
3846
  }
3829
3847
  //#endregion
3830
3848
  //#region package/services/tenorService.ts
3831
- var fr = "https://tenor.googleapis.com/v2", pr = class {
3849
+ var mr = "https://tenor.googleapis.com/v2", hr = class {
3832
3850
  constructor(e) {
3833
3851
  this.key = e;
3834
3852
  }
@@ -3837,14 +3855,14 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3837
3855
  q: e,
3838
3856
  key: this.key
3839
3857
  });
3840
- return t.limit != null && n.set("limit", String(t.limit)), t.contentfilter != null && n.set("contentfilter", t.contentfilter), t.pos != null && n.set("pos", t.pos), (await fetch(`${fr}/search?${n}`)).json();
3858
+ return t.limit != null && n.set("limit", String(t.limit)), t.contentfilter != null && n.set("contentfilter", t.contentfilter), t.pos != null && n.set("pos", t.pos), (await fetch(`${mr}/search?${n}`)).json();
3841
3859
  }
3842
3860
  async searchSuggestions(e) {
3843
3861
  let t = new URLSearchParams({
3844
3862
  q: e,
3845
3863
  key: this.key
3846
3864
  });
3847
- return (await fetch(`${fr}/search_suggestions?${t}`)).json();
3865
+ return (await fetch(`${mr}/search_suggestions?${t}`)).json();
3848
3866
  }
3849
3867
  registerShare(e, t) {
3850
3868
  let n = new URLSearchParams({
@@ -3852,9 +3870,9 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3852
3870
  q: e,
3853
3871
  key: this.key
3854
3872
  });
3855
- fetch(`${fr}/registershare?${n}`).catch(() => null);
3873
+ fetch(`${mr}/registershare?${n}`).catch(() => null);
3856
3874
  }
3857
- }, mr = {
3875
+ }, gr = {
3858
3876
  gifPreview: "gifPreview_-ECUZ",
3859
3877
  "gifPreview-image": "gifPreview-image_Aq7-a",
3860
3878
  gifPreviewImage: "gifPreview-image_Aq7-a",
@@ -3864,25 +3882,25 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3864
3882
  };
3865
3883
  //#endregion
3866
3884
  //#region package/common/tenorPicker/components/gifPreview/gifPreview.tsx
3867
- function hr({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
3885
+ function _r({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
3868
3886
  function i(e) {
3869
3887
  let t = e.currentTarget, n = t.scrollHeight - t.clientHeight * 1.5;
3870
3888
  t.scrollTop >= n && r?.();
3871
3889
  }
3872
3890
  return /* @__PURE__ */ V(B, { children: t.length > 0 && /* @__PURE__ */ V("div", {
3873
- className: f(mr.gifPreview, e),
3891
+ className: f(gr.gifPreview, e),
3874
3892
  onScroll: i,
3875
3893
  children: t.map((e, t) => /* @__PURE__ */ V(Ie, {
3876
- className: mr.gifPreviewImageContainer,
3894
+ className: gr.gifPreviewImageContainer,
3877
3895
  onClick: () => n?.(e),
3878
3896
  children: /* @__PURE__ */ V("div", {
3879
- className: mr.gifPreviewImage,
3897
+ className: gr.gifPreviewImage,
3880
3898
  style: { backgroundImage: `url(${e.media_formats.tinygif.url})` }
3881
3899
  })
3882
3900
  }, `${e.id}_${t}`))
3883
3901
  }) });
3884
3902
  }
3885
- var gr = {
3903
+ var vr = {
3886
3904
  gifView: "gifView_Fa2zj",
3887
3905
  "gifView-loading": "gifView-loading_LfNJr",
3888
3906
  gifViewLoading: "gifView-loading_LfNJr",
@@ -3890,20 +3908,20 @@ var gr = {
3890
3908
  };
3891
3909
  //#endregion
3892
3910
  //#region package/common/tenorPicker/components/gifView/gifView.tsx
3893
- function _r({ className: e, src: t = "" }) {
3911
+ function yr({ className: e, src: t = "" }) {
3894
3912
  let [n, r] = d(!0);
3895
3913
  return a(() => {
3896
3914
  r(!0);
3897
3915
  }, [t]), /* @__PURE__ */ H("div", {
3898
- className: f(gr.gifView, e),
3916
+ className: f(vr.gifView, e),
3899
3917
  children: [/* @__PURE__ */ V("img", {
3900
- className: gr.tenorPickerSelected,
3918
+ className: vr.tenorPickerSelected,
3901
3919
  src: t,
3902
3920
  onLoad: () => r(!1)
3903
- }), n && /* @__PURE__ */ V("div", { className: gr.gifViewLoading })]
3921
+ }), n && /* @__PURE__ */ V("div", { className: vr.gifViewLoading })]
3904
3922
  });
3905
3923
  }
3906
- var vr = {
3924
+ var br = {
3907
3925
  "tenorPicker-selected": "tenorPicker-selected_IfR2z",
3908
3926
  tenorPickerSelected: "tenorPicker-selected_IfR2z",
3909
3927
  "tenorPicker-modal-content": "tenorPicker-modal-content_Vkolf",
@@ -3915,8 +3933,8 @@ var vr = {
3915
3933
  };
3916
3934
  //#endregion
3917
3935
  //#region package/common/tenorPicker/tenorPicker.tsx
3918
- function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
3919
- let a = c(() => new pr(t), [t]), [o, s] = d(""), [l, u] = d([]), [p, m] = d([]), [h, g] = d(null), [_, v] = d(!1);
3936
+ function xr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
3937
+ let a = c(() => new hr(t), [t]), [o, s] = d(""), [l, u] = d([]), [p, m] = d([]), [h, g] = d(null), [_, v] = d(!1);
3920
3938
  async function y(e) {
3921
3939
  if (s(e), !e.trim()) {
3922
3940
  u([]), m([]), g(null);
@@ -3940,25 +3958,25 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3940
3958
  await r(e), v(!1), e && a.registerShare(o, e.id);
3941
3959
  }
3942
3960
  function S() {
3943
- return /* @__PURE__ */ V(Xe, {
3961
+ return /* @__PURE__ */ V(Qe, {
3944
3962
  inline: !0,
3945
- className: vr.tenorPickerSuggestionsContainer,
3946
- children: p.map((e) => /* @__PURE__ */ V(Ye, {
3947
- className: vr.tenorPickerSuggestionsItem,
3963
+ className: br.tenorPickerSuggestionsContainer,
3964
+ children: p.map((e) => /* @__PURE__ */ V(Ze, {
3965
+ className: br.tenorPickerSuggestionsItem,
3948
3966
  text: e,
3949
3967
  onClick: () => y(e)
3950
3968
  }, e))
3951
3969
  });
3952
3970
  }
3953
3971
  function C() {
3954
- return /* @__PURE__ */ V(hr, {
3972
+ return /* @__PURE__ */ V(_r, {
3955
3973
  previewItems: l,
3956
3974
  onSelect: x,
3957
3975
  onLoadAdditional: b
3958
3976
  });
3959
3977
  }
3960
3978
  function w() {
3961
- return /* @__PURE__ */ V(cr, {
3979
+ return /* @__PURE__ */ V(ur, {
3962
3980
  label: "Pick gif",
3963
3981
  value: o,
3964
3982
  onDebounce: y,
@@ -3966,7 +3984,7 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3966
3984
  });
3967
3985
  }
3968
3986
  return n ? /* @__PURE__ */ H("div", {
3969
- className: f(vr.tenorPicker, e),
3987
+ className: f(br.tenorPicker, e),
3970
3988
  children: [
3971
3989
  /* @__PURE__ */ H("div", {
3972
3990
  className: xe.actionButtons,
@@ -3979,15 +3997,15 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3979
3997
  children: "Remove gif"
3980
3998
  })]
3981
3999
  }),
3982
- i && /* @__PURE__ */ V(_r, {
3983
- className: vr.tenorPickerSelected,
4000
+ i && /* @__PURE__ */ V(yr, {
4001
+ className: br.tenorPickerSelected,
3984
4002
  src: i
3985
4003
  }),
3986
- /* @__PURE__ */ V(gt, {
4004
+ /* @__PURE__ */ V(vt, {
3987
4005
  isOpen: _,
3988
4006
  onClose: () => v(!1),
3989
4007
  children: /* @__PURE__ */ H("div", {
3990
- className: vr.tenorPickerModalContent,
4008
+ className: br.tenorPickerModalContent,
3991
4009
  children: [
3992
4010
  w(),
3993
4011
  S(),
@@ -3997,10 +4015,10 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3997
4015
  })
3998
4016
  ]
3999
4017
  }) : /* @__PURE__ */ H("div", {
4000
- className: f(vr.tenorPicker, e),
4018
+ className: f(br.tenorPicker, e),
4001
4019
  children: [
4002
- /* @__PURE__ */ V(et, {
4003
- align: Qe.Left,
4020
+ /* @__PURE__ */ V(nt, {
4021
+ align: et.Left,
4004
4022
  isOpen: l.length > 0 && _,
4005
4023
  onOpenChange: v,
4006
4024
  content: /* @__PURE__ */ H(B, { children: [S(), C()] }),
@@ -4011,8 +4029,8 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4011
4029
  onClick: () => x(null),
4012
4030
  children: "Remove gif"
4013
4031
  }),
4014
- i && /* @__PURE__ */ V(_r, {
4015
- className: vr.tenorPickerSelected,
4032
+ i && /* @__PURE__ */ V(yr, {
4033
+ className: br.tenorPickerSelected,
4016
4034
  src: i
4017
4035
  })
4018
4036
  ]
@@ -4020,15 +4038,15 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4020
4038
  }
4021
4039
  //#endregion
4022
4040
  //#region package/common/textarea/textarea.tsx
4023
- function br(e) {
4024
- return /* @__PURE__ */ V(rt, {
4041
+ function Sr(e) {
4042
+ return /* @__PURE__ */ V(at, {
4025
4043
  ...e,
4026
4044
  multiline: !0
4027
4045
  });
4028
4046
  }
4029
4047
  //#endregion
4030
4048
  //#region package/common/themeProvider/defaultTheme.ts
4031
- var xr = {
4049
+ var Cr = {
4032
4050
  id: "default",
4033
4051
  variables: {
4034
4052
  "--grey": "#8A8A8A",
@@ -4088,14 +4106,14 @@ var xr = {
4088
4106
  "--spacing-m": "8px",
4089
4107
  "--spacing-l": "16px"
4090
4108
  }
4091
- }, Sr = { colorFade: "colorFade_eLv2g" }, Cr = class extends t {
4109
+ }, wr = { colorFade: "colorFade_eLv2g" }, Tr = class extends t {
4092
4110
  constructor(...t) {
4093
4111
  super(...t), this.state = {
4094
4112
  resolvedVariables: {},
4095
4113
  colorFadeActive: !1,
4096
4114
  currentThemeColor: null
4097
4115
  }, this.colorFadeTimeout = null, this.wrapperRef = e.createRef(), this.themeColorMeta = null, this.createdThemeColorMeta = !1, this.applyTheme = (e) => {
4098
- let t = this.props.themes ?? [xr], n = t.find((e) => !e.baseThemeId) ?? t[0], r = n ? n.variables : {}, i = t.find((t) => t.id === e), a = i ? this.resolveChain(i.id) : [], o = Object.assign({}, r, ...a);
4116
+ let t = this.props.themes ?? [Cr], n = t.find((e) => !e.baseThemeId) ?? t[0], r = n ? n.variables : {}, i = t.find((t) => t.id === e), a = i ? this.resolveChain(i.id) : [], o = Object.assign({}, r, ...a);
4099
4117
  this.setState({
4100
4118
  resolvedVariables: o,
4101
4119
  colorFadeActive: !0
@@ -4129,7 +4147,7 @@ var xr = {
4129
4147
  }
4130
4148
  }
4131
4149
  resolveChain(e) {
4132
- let t = (this.props.themes ?? [xr]).find((t) => t.id === e);
4150
+ let t = (this.props.themes ?? [Cr]).find((t) => t.id === e);
4133
4151
  return t ? [...t.baseThemeId ? this.resolveChain(t.baseThemeId) : [], t.variables] : [];
4134
4152
  }
4135
4153
  render() {
@@ -4137,7 +4155,7 @@ var xr = {
4137
4155
  return /* @__PURE__ */ V("div", {
4138
4156
  ref: this.wrapperRef,
4139
4157
  id: "themeProvider",
4140
- className: n ? Sr.colorFade : void 0,
4158
+ className: n ? wr.colorFade : void 0,
4141
4159
  style: t,
4142
4160
  children: e
4143
4161
  });
@@ -4145,7 +4163,7 @@ var xr = {
4145
4163
  };
4146
4164
  //#endregion
4147
4165
  //#region package/common/themeProvider/useTheme.ts
4148
- function wr(e = "default") {
4166
+ function Er(e = "default") {
4149
4167
  let [t, n] = d(localStorage.getItem("theme") || e);
4150
4168
  return {
4151
4169
  currentThemeId: t,
@@ -4154,7 +4172,7 @@ function wr(e = "default") {
4154
4172
  }
4155
4173
  };
4156
4174
  }
4157
- var Tr = {
4175
+ var Dr = {
4158
4176
  container: "container_krdsW",
4159
4177
  "container-top-left": "container-top-left_zfDTO",
4160
4178
  containerTopLeft: "container-top-left_zfDTO",
@@ -4191,14 +4209,14 @@ var Tr = {
4191
4209
  toastCloseButton: "toastCloseButton_n-YST",
4192
4210
  toastProgressBar: "toastProgressBar_6vBs6",
4193
4211
  toastShrink: "toastShrink_h89HS"
4194
- }, Er = {
4212
+ }, Or = {
4195
4213
  info: x,
4196
4214
  success: b,
4197
4215
  error: S,
4198
- warn: te,
4216
+ warn: R,
4199
4217
  default: m
4200
4218
  };
4201
- function Dr({ item: e, isBottom: t, onDismiss: n }) {
4219
+ function kr({ item: e, isBottom: t, onDismiss: n }) {
4202
4220
  let { id: r, content: i, options: o, dismissing: s } = e, { duration: c, showRemainingTime: l, showCloseButton: u, type: d, classNames: m, styles: h } = o;
4203
4221
  return a(() => {
4204
4222
  if (c === 0) return;
@@ -4209,28 +4227,28 @@ function Dr({ item: e, isBottom: t, onDismiss: n }) {
4209
4227
  c,
4210
4228
  n
4211
4229
  ]), /* @__PURE__ */ H("div", {
4212
- className: f(Tr.toast, t ? Tr.toastBottom : null, Tr[`toast-${d}`], s && Tr.toastDismissing, m?.root),
4230
+ className: f(Dr.toast, t ? Dr.toastBottom : null, Dr[`toast-${d}`], s && Dr.toastDismissing, m?.root),
4213
4231
  style: h?.root,
4214
4232
  children: [
4215
4233
  /* @__PURE__ */ V(p, {
4216
- icon: Er[d],
4217
- className: f(Tr.toastIcon, m?.icon),
4234
+ icon: Or[d],
4235
+ className: f(Dr.toastIcon, m?.icon),
4218
4236
  style: h?.icon
4219
4237
  }),
4220
4238
  /* @__PURE__ */ V("div", {
4221
- className: f(Tr.toastContent, m?.content),
4239
+ className: f(Dr.toastContent, m?.content),
4222
4240
  style: h?.content,
4223
4241
  children: i
4224
4242
  }),
4225
4243
  u && /* @__PURE__ */ V(Re, {
4226
4244
  icon: z,
4227
4245
  onClick: () => n(r),
4228
- className: f(Tr.toastCloseButton, m?.closeButton),
4246
+ className: f(Dr.toastCloseButton, m?.closeButton),
4229
4247
  style: h?.closeButton,
4230
4248
  "aria-label": "Close"
4231
4249
  }),
4232
4250
  l && c > 0 && /* @__PURE__ */ V("div", {
4233
- className: f(Tr.toastProgressBar, m?.progressBar),
4251
+ className: f(Dr.toastProgressBar, m?.progressBar),
4234
4252
  style: {
4235
4253
  "--toast-duration": `${c}ms`,
4236
4254
  ...h?.progressBar
@@ -4241,40 +4259,40 @@ function Dr({ item: e, isBottom: t, onDismiss: n }) {
4241
4259
  }
4242
4260
  //#endregion
4243
4261
  //#region package/common/toast/toastService.ts
4244
- var Or = null;
4245
- function kr(e) {
4246
- Or = e;
4262
+ var Ar = null;
4263
+ function jr(e) {
4264
+ Ar = e;
4247
4265
  }
4248
- function Ar() {
4249
- Or = null;
4266
+ function Mr() {
4267
+ Ar = null;
4250
4268
  }
4251
- function jr(e, t) {
4252
- if (!Or) {
4269
+ function Nr(e, t) {
4270
+ if (!Ar) {
4253
4271
  console.error("[Toast] No ToastProvider found. Wrap your app with <ToastProvider>.");
4254
4272
  return;
4255
4273
  }
4256
- Or(e, t);
4274
+ Ar(e, t);
4257
4275
  }
4258
4276
  //#endregion
4259
4277
  //#region package/common/toast/toastProvider.tsx
4260
- var Mr = {
4278
+ var Pr = {
4261
4279
  position: "top-right",
4262
4280
  duration: 4e3,
4263
4281
  showRemainingTime: !0,
4264
4282
  showCloseButton: !0,
4265
4283
  allowStacking: !0
4266
- }, Nr = 220;
4267
- function Pr(e) {
4268
- return Tr[`container-${e}`];
4284
+ }, Fr = 220;
4285
+ function Ir(e) {
4286
+ return Dr[`container-${e}`];
4269
4287
  }
4270
- function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration, showRemainingTime: r = Mr.showRemainingTime, showCloseButton: o = Mr.showCloseButton, allowStacking: s = Mr.allowStacking }) {
4288
+ function Lr({ children: e, position: t = Pr.position, duration: n = Pr.duration, showRemainingTime: r = Pr.showRemainingTime, showCloseButton: o = Pr.showCloseButton, allowStacking: s = Pr.allowStacking }) {
4271
4289
  let [c, l] = d([]), p = u(0), m = i((e) => {
4272
4290
  l((t) => t.map((t) => t.id === e ? {
4273
4291
  ...t,
4274
4292
  dismissing: !0
4275
4293
  } : t)), setTimeout(() => {
4276
4294
  l((t) => t.filter((t) => t.id !== e));
4277
- }, Nr);
4295
+ }, Fr);
4278
4296
  }, []), h = i((e, i) => {
4279
4297
  let a = {
4280
4298
  position: i?.position ?? t,
@@ -4294,7 +4312,7 @@ function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration,
4294
4312
  };
4295
4313
  l((e) => !s && e.length > 0 ? (setTimeout(() => {
4296
4314
  l([c]);
4297
- }, Nr), e.map((e) => ({
4315
+ }, Fr), e.map((e) => ({
4298
4316
  ...e,
4299
4317
  dismissing: !0
4300
4318
  }))) : [...e, c]);
@@ -4305,14 +4323,14 @@ function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration,
4305
4323
  o,
4306
4324
  s
4307
4325
  ]);
4308
- a(() => (kr(h), () => Ar()), [h]);
4326
+ a(() => (jr(h), () => Mr()), [h]);
4309
4327
  let g = c.reduce((e, t) => {
4310
4328
  let n = t.options.position;
4311
4329
  return e[n] || (e[n] = []), e[n].push(t), e;
4312
4330
  }, {});
4313
4331
  return /* @__PURE__ */ H(B, { children: [e, /* @__PURE__ */ V(ze, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ V("div", {
4314
- className: f(Tr.container, Pr(e)),
4315
- children: t.map((t) => /* @__PURE__ */ V(Dr, {
4332
+ className: f(Dr.container, Ir(e)),
4333
+ children: t.map((t) => /* @__PURE__ */ V(kr, {
4316
4334
  item: t,
4317
4335
  isBottom: e.startsWith("bottom"),
4318
4336
  onDismiss: m
@@ -4374,7 +4392,7 @@ var $ = {
4374
4392
  };
4375
4393
  //#endregion
4376
4394
  //#region package/common/virtualList/virtualRow.tsx
4377
- function Ir({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, hover: a, onClick: o, observer: c, ariaRowIndex: l, ariaPosInSet: d, ariaSetSize: p, rowRole: m, reorderable: h, draggable: g, isDragging: _, reserveToggleGutter: v, onMouseDown: y, onDragStart: b, onDragOver: x, onDragEnd: S, onDrop: C, onTouchStart: w, dropPosition: T, dropIndentPx: E, dropIndicatorClassName: D, dropIndicatorStyle: O, rowClassName: k, rowStyle: A, children: j }) {
4395
+ function Rr({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, hover: a, onClick: o, observer: c, ariaRowIndex: l, ariaPosInSet: d, ariaSetSize: p, rowRole: m, reorderable: h, draggable: g, isDragging: _, reserveToggleGutter: v, onMouseDown: y, onDragStart: b, onDragOver: x, onDragEnd: S, onDrop: C, onTouchStart: w, dropPosition: T, dropIndentPx: E, dropIndicatorClassName: D, dropIndicatorStyle: O, rowClassName: k, rowStyle: A, children: j }) {
4378
4396
  let M = u(null);
4379
4397
  return s(() => {
4380
4398
  let e = M.current;
@@ -4423,7 +4441,7 @@ function Ir({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i
4423
4441
  }
4424
4442
  //#endregion
4425
4443
  //#region package/common/virtualList/virtualList.utils.ts
4426
- function Lr(e, t, n, r = 0) {
4444
+ function zr(e, t, n, r = 0) {
4427
4445
  let i = e.length, a = Array(i + 1);
4428
4446
  a[0] = 0;
4429
4447
  for (let o = 0; o < i; o++) {
@@ -4435,7 +4453,7 @@ function Lr(e, t, n, r = 0) {
4435
4453
  totalHeight: a[i]
4436
4454
  };
4437
4455
  }
4438
- function Rr(e, t, n) {
4456
+ function Br(e, t, n) {
4439
4457
  if (n <= 0) return 0;
4440
4458
  let r = 0, i = n - 1;
4441
4459
  for (; r < i;) {
@@ -4444,34 +4462,34 @@ function Rr(e, t, n) {
4444
4462
  }
4445
4463
  return r;
4446
4464
  }
4447
- function zr(e, t, n, r, i) {
4465
+ function Vr(e, t, n, r, i) {
4448
4466
  if (i === 0) return {
4449
4467
  startIndex: 0,
4450
4468
  endIndex: -1
4451
4469
  };
4452
- let a = Rr(e, t, i), o = a;
4470
+ let a = Br(e, t, i), o = a;
4453
4471
  for (; o < i && e[o] < t + n;) o++;
4454
4472
  return {
4455
4473
  startIndex: Math.max(0, a - r),
4456
4474
  endIndex: Math.min(i - 1, o + r - 1)
4457
4475
  };
4458
4476
  }
4459
- function Br(e, t, n, r, i) {
4477
+ function Hr(e, t, n, r, i) {
4460
4478
  if (e === -1 || e === t) return null;
4461
4479
  let a = r + i / 2;
4462
4480
  return (t > e ? n >= a : n <= a) ? t : null;
4463
4481
  }
4464
- function Vr(e, t, n, r) {
4482
+ function Ur(e, t, n, r) {
4465
4483
  if (n <= 0) return "before";
4466
4484
  let i = (e - t) / n;
4467
4485
  return r ? i < 1 / 3 ? "before" : i > 2 / 3 ? "after" : "inside" : i < .5 ? "before" : "after";
4468
4486
  }
4469
- function Hr(e, t) {
4487
+ function Wr(e, t) {
4470
4488
  let n = t[e], r = e + 1;
4471
4489
  for (; r < t.length && t[r] > n;) r++;
4472
4490
  return r - 1;
4473
4491
  }
4474
- function Ur(e, t) {
4492
+ function Gr(e, t) {
4475
4493
  return e.length === 0 ? "1fr" : e.map((e) => {
4476
4494
  switch (e.width.type) {
4477
4495
  case "fixed": return `${e.width.px}px`;
@@ -4483,11 +4501,11 @@ function Ur(e, t) {
4483
4501
  }
4484
4502
  }).join(" ");
4485
4503
  }
4486
- var Wr = "ahroweui:virtuallist:columns:";
4487
- function Gr(e) {
4504
+ var Kr = "ahroweui:virtuallist:columns:";
4505
+ function qr(e) {
4488
4506
  if (!e || typeof window > "u") return null;
4489
4507
  try {
4490
- let t = window.localStorage.getItem(Wr + e);
4508
+ let t = window.localStorage.getItem(Kr + e);
4491
4509
  if (!t) return null;
4492
4510
  let n = JSON.parse(t);
4493
4511
  if (n && Array.isArray(n.visible) && Array.isArray(n.known)) return {
@@ -4497,13 +4515,13 @@ function Gr(e) {
4497
4515
  } catch {}
4498
4516
  return null;
4499
4517
  }
4500
- function Kr(e, t) {
4518
+ function Jr(e, t) {
4501
4519
  return t && t.known.includes(e.key) ? t.visible.includes(e.key) : !e.defaultHidden;
4502
4520
  }
4503
4521
  //#endregion
4504
4522
  //#region package/common/virtualList/useVirtualWindow.ts
4505
- function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l, overscan: f, onLoadMore: p, loadMoreThreshold: m, forwardedRef: h }) {
4506
- let [g, _] = d(0), [v, y] = d(0), [b, x] = d(/* @__PURE__ */ new Map()), [S, C] = d(!1), w = u(!1), T = u(null), E = u(null), D = u([]), O = u(null), k = u(0), A = u([]), [j] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4523
+ function Yr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: o, overscan: l, onLoadMore: f, loadMoreThreshold: p }) {
4524
+ let [m, h] = d(0), [g, _] = d(0), [v, y] = d(0), [b, x] = d(/* @__PURE__ */ new Map()), [S, C] = d(!1), w = u(!1), T = u(null), E = u(null), D = u([]), O = u(null), k = u(0), A = u([]), [j] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4507
4525
  x((t) => {
4508
4526
  let n = null;
4509
4527
  for (let r of e) {
@@ -4520,39 +4538,42 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4520
4538
  a(() => () => j?.disconnect(), [j]), s(() => {
4521
4539
  let e = T.current;
4522
4540
  if (!e) return;
4523
- y(e.clientHeight);
4524
- let t = new ResizeObserver(() => y(e.clientHeight));
4541
+ _(e.clientHeight), y(e.clientWidth);
4542
+ let t = new ResizeObserver(() => {
4543
+ _(e.clientHeight), y(e.clientWidth);
4544
+ });
4525
4545
  return t.observe(e), () => t.disconnect();
4526
4546
  }, []);
4527
4547
  let M = i((e) => {
4528
4548
  let t = e.currentTarget;
4529
4549
  k.current = t.scrollTop, O.current ??= requestAnimationFrame(() => {
4530
- O.current = null, _(k.current);
4531
- }), p && !w.current && t.scrollTop + t.clientHeight >= t.scrollHeight - m && (w.current = !0, C(!0), p().finally(() => {
4550
+ O.current = null, h(k.current);
4551
+ }), f && !w.current && t.scrollTop + t.clientHeight >= t.scrollHeight - p && (w.current = !0, C(!0), f().finally(() => {
4532
4552
  w.current = !1, C(!1);
4533
4553
  }));
4534
- }, [p, m]);
4554
+ }, [f, p]);
4535
4555
  a(() => () => {
4536
4556
  O.current != null && cancelAnimationFrame(O.current);
4537
4557
  }, []), s(() => {
4538
4558
  A.current = t;
4539
4559
  });
4540
- let { offsets: N, totalHeight: P } = c(() => Lr(t, b, r, l), [
4560
+ let { offsets: N, totalHeight: P } = c(() => zr(t, b, r, o), [
4541
4561
  t,
4542
4562
  b,
4543
4563
  r,
4544
- l
4564
+ o
4545
4565
  ]);
4546
4566
  s(() => {
4547
4567
  let t = T.current, n = D.current;
4548
4568
  if (D.current = N, !t || n.length === 0) return;
4549
4569
  let r = t.scrollTop;
4550
4570
  if (r <= 0) return;
4551
- let i = Rr(n, r, n.length - 1);
4571
+ let i = Br(n, r, n.length - 1);
4552
4572
  if (i >= e.length) return;
4553
4573
  let a = r - n[i], o = N[i] + a;
4554
- Math.abs(o - r) > .5 && (t.scrollTop = o, k.current = o, _(o));
4555
- }, [N, e.length]), o(h, () => {
4574
+ Math.abs(o - r) > .5 && (t.scrollTop = o, k.current = o, h(o));
4575
+ }, [N, e.length]);
4576
+ let F = c(() => {
4556
4577
  function t(e, t) {
4557
4578
  let n = T.current;
4558
4579
  if (!n) return;
@@ -4583,12 +4604,11 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4583
4604
  e,
4584
4605
  N,
4585
4606
  n
4586
- ]);
4587
- let { startIndex: F, endIndex: I } = c(() => zr(N, g, v, f, e.length), [
4607
+ ]), { startIndex: I, endIndex: ee } = c(() => Vr(N, m, g, l, e.length), [
4588
4608
  N,
4609
+ m,
4589
4610
  g,
4590
- v,
4591
- f,
4611
+ l,
4592
4612
  e.length
4593
4613
  ]);
4594
4614
  return {
@@ -4598,16 +4618,18 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4598
4618
  keysRef: A,
4599
4619
  offsets: N,
4600
4620
  totalHeight: P,
4601
- containerHeight: v,
4602
- startIndex: F,
4603
- endIndex: I,
4621
+ containerHeight: g,
4622
+ containerWidth: v,
4623
+ startIndex: I,
4624
+ endIndex: ee,
4604
4625
  handleScroll: M,
4605
- showLoadMoreSpinner: S
4626
+ showLoadMoreSpinner: S,
4627
+ scrollApi: F
4606
4628
  };
4607
4629
  }
4608
4630
  //#endregion
4609
4631
  //#region package/common/virtualList/useSelection.ts
4610
- function Jr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionChange: i }) {
4632
+ function Xr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionChange: i }) {
4611
4633
  let a = r !== void 0, [o, s] = d(/* @__PURE__ */ new Set()), c = a ? r : o;
4612
4634
  function l(e) {
4613
4635
  a || s(e), i?.(e);
@@ -4631,14 +4653,14 @@ function Jr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionC
4631
4653
  }
4632
4654
  //#endregion
4633
4655
  //#region package/common/virtualList/useColumns.ts
4634
- function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: i, persistColumnsKey: o, showColumnToggle: c, rootRef: l, startIndex: f, endIndex: p, containerHeight: m }) {
4635
- let h = r !== void 0, [g, _] = d(!1), v = u(null), [y, b] = d({}), [x, S] = d(() => {
4636
- let t = Gr(o);
4637
- return new Set((e ?? []).filter((e) => Kr(e, t)).map((e) => e.key));
4638
- }), C = u(new Set((e ?? []).map((e) => e.key)));
4656
+ function Zr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: o, persistColumnsKey: c, showColumnToggle: l, rootRef: f, startIndex: p, endIndex: m, containerHeight: h, containerWidth: g }) {
4657
+ let _ = r !== void 0, [v, y] = d(!1), b = u(null), [x, S] = d({}), [C, w] = d(() => {
4658
+ let t = qr(c);
4659
+ return new Set((e ?? []).filter((e) => Jr(e, t)).map((e) => e.key));
4660
+ }), T = u(new Set((e ?? []).map((e) => e.key)));
4639
4661
  a(() => {
4640
- if (h) return;
4641
- let t = e ?? [], n = new Set(t.map((e) => e.key)), r = C.current, i = n.size === r.size;
4662
+ if (_) return;
4663
+ let t = e ?? [], n = new Set(t.map((e) => e.key)), r = T.current, i = n.size === r.size;
4642
4664
  if (i) {
4643
4665
  for (let e of n) if (!r.has(e)) {
4644
4666
  i = !1;
@@ -4646,53 +4668,66 @@ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
4646
4668
  }
4647
4669
  }
4648
4670
  if (i) return;
4649
- C.current = n;
4650
- let a = Gr(o);
4651
- S((e) => {
4671
+ T.current = n;
4672
+ let a = qr(c);
4673
+ w((e) => {
4652
4674
  let n = /* @__PURE__ */ new Set();
4653
- for (let i of t) r.has(i.key) ? e.has(i.key) && n.add(i.key) : Kr(i, a) && n.add(i.key);
4675
+ for (let i of t) r.has(i.key) ? e.has(i.key) && n.add(i.key) : Jr(i, a) && n.add(i.key);
4654
4676
  return n;
4655
4677
  });
4656
4678
  }, [
4657
4679
  e,
4658
- h,
4659
- o
4680
+ _,
4681
+ c
4660
4682
  ]), a(() => {
4661
- if (h || !o || typeof window > "u") return;
4683
+ if (_ || !c || typeof window > "u") return;
4662
4684
  let t = e ?? [];
4663
- if (!(t.length === 0 || x.size === 0)) try {
4664
- window.localStorage.setItem(Wr + o, JSON.stringify({
4665
- visible: [...x],
4685
+ if (!(t.length === 0 || C.size === 0)) try {
4686
+ window.localStorage.setItem(Kr + c, JSON.stringify({
4687
+ visible: [...C],
4666
4688
  known: t.map((e) => e.key)
4667
4689
  }));
4668
4690
  } catch {}
4669
4691
  }, [
4670
- x,
4692
+ C,
4671
4693
  e,
4672
- h,
4673
- o
4694
+ _,
4695
+ c
4674
4696
  ]);
4675
- let w = h ? new Set(r) : x;
4697
+ let E = _ ? new Set(r) : C;
4676
4698
  a(() => {
4677
- if (!g) return;
4699
+ if (!v) return;
4678
4700
  function e(e) {
4679
- v.current && !v.current.contains(e.target) && _(!1);
4701
+ b.current && !b.current.contains(e.target) && y(!1);
4680
4702
  }
4681
4703
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
4682
- }, [g]);
4683
- let T = !!e?.length, E = T ? e.filter((e) => w.has(e.key)) : [], D = T ? e.filter((e) => !e.defaultHidden && !w.has(e.key)).length : 0, O = T ? `${n && T ? "40px " : ""}${Ur(E, y)}` : void 0, k = c !== !1 && T, A = E.filter((e) => e.width.type === "fit"), j = A.length > 0, M = A.map((e) => e.key).join("|"), [N, P] = d({
4684
- key: M,
4704
+ }, [v]);
4705
+ let D = !!e?.length, O = D ? e.filter((e) => E.has(e.key)) : [], k = D ? e.filter((e) => !e.defaultHidden && !E.has(e.key)).length : 0, A = D ? `${n && D ? "40px " : ""}${Gr(O, x)}` : void 0, j = l !== !1 && D, M = O.filter((e) => e.width.type === "fit"), N = M.length > 0, P = M.map((e) => e.key).join("|"), [F, I] = d({
4706
+ key: P,
4685
4707
  items: t
4686
4708
  });
4687
- (N.key !== M || N.items !== t) && (P({
4688
- key: M,
4709
+ (F.key !== P || F.items !== t) && (I({
4710
+ key: P,
4689
4711
  items: t
4690
- }), Object.keys(y).length > 0 && b({})), s(() => {
4691
- if (!j) return;
4692
- let e = l.current;
4693
- e && b((t) => {
4712
+ }), Object.keys(x).length > 0 && S({})), a(() => {
4713
+ let e = requestAnimationFrame(() => {
4714
+ S((e) => Object.keys(e).length > 0 ? {} : e);
4715
+ });
4716
+ return () => cancelAnimationFrame(e);
4717
+ }, []), a(() => {
4718
+ if (typeof document > "u" || !document.fonts?.ready) return;
4719
+ let e = !1;
4720
+ return document.fonts.ready.then(() => {
4721
+ e || S((e) => Object.keys(e).length > 0 ? {} : e);
4722
+ }), () => {
4723
+ e = !0;
4724
+ };
4725
+ }, []), s(() => {
4726
+ if (!N) return;
4727
+ let e = f.current;
4728
+ e && S((t) => {
4694
4729
  let n = !1, r = { ...t };
4695
- for (let i of A) {
4730
+ for (let i of M) {
4696
4731
  let a = 0;
4697
4732
  if (e.querySelectorAll(`[data-fit-key="${i.key}"]`).forEach((e) => {
4698
4733
  let t = e, n = t.scrollWidth > t.clientWidth && parseFloat(getComputedStyle(t).paddingRight) || 0, r = t.scrollWidth + n;
@@ -4704,39 +4739,42 @@ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
4704
4739
  return n ? r : t;
4705
4740
  });
4706
4741
  }, [
4707
- j,
4708
- M,
4709
- y,
4710
- f,
4742
+ N,
4743
+ P,
4744
+ x,
4711
4745
  p,
4712
- m
4746
+ m,
4747
+ h,
4748
+ g
4713
4749
  ]);
4714
- function F(e) {
4715
- let t = new Set(w);
4750
+ let ee = i(() => S({}), []);
4751
+ function te(e) {
4752
+ let t = new Set(E);
4716
4753
  if (t.has(e)) {
4717
4754
  if (t.size <= 1) return;
4718
4755
  t.delete(e);
4719
4756
  } else t.add(e);
4720
4757
  let n = [...t];
4721
- h || S(t), i?.(n);
4758
+ _ || w(t), o?.(n);
4722
4759
  }
4723
4760
  return {
4724
- hasColumns: T,
4725
- visibleColumns: E,
4726
- columnTemplate: O,
4727
- shouldShowToggle: k,
4728
- effectiveVisible: w,
4729
- manuallyHiddenCount: D,
4730
- toggleOpen: g,
4731
- setToggleOpen: _,
4732
- toggleRef: v,
4733
- handleToggleColumn: F
4761
+ hasColumns: D,
4762
+ visibleColumns: O,
4763
+ columnTemplate: A,
4764
+ shouldShowToggle: j,
4765
+ effectiveVisible: E,
4766
+ manuallyHiddenCount: k,
4767
+ toggleOpen: v,
4768
+ setToggleOpen: y,
4769
+ toggleRef: b,
4770
+ handleToggleColumn: te,
4771
+ recalculateColumns: ee
4734
4772
  };
4735
4773
  }
4736
4774
  //#endregion
4737
4775
  //#region package/common/virtualList/useRowDrag.ts
4738
- function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longPressDelay: o, dragHandle: c, treeIndentPx: l, keys: f, depths: p, isGroupAt: m, rootRef: h, keysRef: g }) {
4739
- let _ = u(null), [v, y] = d(null), [b, x] = d(null), S = u(null), C = u(n), w = u(r), T = u(t), E = u(p), D = u(m), O = u(!0), k = u(null), A = u(!1), j = u(null), M = u(0), N = u(0), P = u(null), F = u(!1), I = u(null), ee = u(0), L = u(0), R = u(0), [te] = d(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)").matches : !1);
4776
+ function Qr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longPressDelay: o, dragHandle: c, treeIndentPx: l, keys: f, depths: p, isGroupAt: m, rootRef: h, keysRef: g }) {
4777
+ let _ = u(null), [v, y] = d(null), [b, x] = d(null), S = u(null), C = u(n), w = u(r), T = u(t), E = u(p), D = u(m), O = u(!0), k = u(null), A = u(!1), j = u(null), M = u(0), N = u(0), P = u(null), F = u(!1), I = u(null), ee = u(0), te = u(0), L = u(0), [R] = d(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)").matches : !1);
4740
4778
  s(() => {
4741
4779
  C.current = n, w.current = r, T.current = t, E.current = p, S.current = b, D.current = m;
4742
4780
  });
@@ -4754,8 +4792,8 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4754
4792
  let r = _.current;
4755
4793
  if (r == null) return null;
4756
4794
  let i = f.indexOf(r);
4757
- if (i !== -1 && e >= i && e <= Hr(i, p)) return null;
4758
- let a = Vr(t, n.top, n.height, m(e));
4795
+ if (i !== -1 && e >= i && e <= Wr(i, p)) return null;
4796
+ let a = Ur(t, n.top, n.height, m(e));
4759
4797
  return {
4760
4798
  key: f[e],
4761
4799
  position: a
@@ -4780,7 +4818,7 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4780
4818
  t.preventDefault();
4781
4819
  let r = _.current;
4782
4820
  if (r == null) return;
4783
- let i = f.indexOf(r), a = t.currentTarget.getBoundingClientRect(), o = Br(i, e, t.clientY, a.top, a.height);
4821
+ let i = f.indexOf(r), a = t.currentTarget.getBoundingClientRect(), o = Hr(i, e, t.clientY, a.top, a.height);
4784
4822
  o != null && n?.(i, o);
4785
4823
  }
4786
4824
  function oe() {
@@ -4789,29 +4827,29 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4789
4827
  let U = i((e) => {
4790
4828
  let t = _.current, n = h.current;
4791
4829
  if (t == null || !n) return;
4792
- let r = I.current ? N.current - ee.current + R.current / 2 : N.current, i = document.elementFromPoint(e, r), a = i && n.contains(i) ? i.closest("[data-index]") : null;
4830
+ let r = I.current ? N.current - ee.current + L.current / 2 : N.current, i = document.elementFromPoint(e, r), a = i && n.contains(i) ? i.closest("[data-index]") : null;
4793
4831
  if (!a) return;
4794
4832
  let o = Number(a.dataset.index);
4795
4833
  if (Number.isNaN(o)) return;
4796
4834
  let s = g.current.indexOf(t), c = a.getBoundingClientRect();
4797
4835
  if (T.current) {
4798
4836
  let e = g.current, t = E.current;
4799
- if (s !== -1 && o >= s && o <= Hr(s, t)) {
4837
+ if (s !== -1 && o >= s && o <= Wr(s, t)) {
4800
4838
  x(null);
4801
4839
  return;
4802
4840
  }
4803
- let n = Vr(r, c.top, c.height, D.current(o)), i = {
4841
+ let n = Ur(r, c.top, c.height, D.current(o)), i = {
4804
4842
  key: e[o],
4805
4843
  position: n
4806
4844
  };
4807
4845
  x((e) => e?.key === i.key && e?.position === i.position ? e : i);
4808
4846
  return;
4809
4847
  }
4810
- let l = Br(s, o, r, c.top, c.height);
4848
+ let l = Hr(s, o, r, c.top, c.height);
4811
4849
  l != null && C.current?.(s, l);
4812
4850
  }, [h, g]), se = i(() => {
4813
4851
  let e = I.current;
4814
- e && (e.style.transform = `translate(${L.current}px, ${N.current - ee.current}px)`);
4852
+ e && (e.style.transform = `translate(${te.current}px, ${N.current - ee.current}px)`);
4815
4853
  }, []), W = i(() => {
4816
4854
  let e = h.current;
4817
4855
  if (!e || !A.current) {
@@ -4843,16 +4881,16 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4843
4881
  if (!e && !t || c && !r.target.closest("[data-drag-handle]") || k.current != null || A.current) return;
4844
4882
  let i = r.touches[0];
4845
4883
  i && (j.current = i.clientY, M.current = i.clientX, N.current = i.clientY, window.addEventListener("touchmove", le, { passive: !1 }), window.addEventListener("touchend", ce), window.addEventListener("touchcancel", ce), k.current = window.setTimeout(() => {
4846
- k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", K(n), P.current ??= requestAnimationFrame(W);
4884
+ k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", ue(n), P.current ??= requestAnimationFrame(W);
4847
4885
  }, o));
4848
4886
  }
4849
- function K(e) {
4887
+ function ue(e) {
4850
4888
  let t = h.current;
4851
4889
  if (!t) return;
4852
4890
  let n = g.current.indexOf(e), r = t.querySelector(`[data-index="${n}"]`);
4853
4891
  if (!r) return;
4854
4892
  let i = r.getBoundingClientRect();
4855
- ee.current = N.current - i.top, L.current = i.left, R.current = i.height;
4893
+ ee.current = N.current - i.top, te.current = i.left, L.current = i.height;
4856
4894
  let a = r.cloneNode(!0);
4857
4895
  a.removeAttribute("data-index"), a.setAttribute("data-drag-clone", "true"), a.setAttribute("aria-hidden", "true"), a.classList.add($.virtualListDragClone), Object.assign(a.style, {
4858
4896
  position: "fixed",
@@ -4870,111 +4908,116 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4870
4908
  }), t.appendChild(a), I.current = a, se();
4871
4909
  }
4872
4910
  a(() => ce, [ce]);
4873
- let q = e || t;
4874
- function ue(n, r) {
4911
+ let K = e || t;
4912
+ function de(n, r) {
4875
4913
  let i = t && b?.key === r ? b.position : void 0;
4876
4914
  return {
4877
- reorderable: q,
4878
- draggable: q && !te || void 0,
4879
- isDragging: q && r === v,
4880
- onMouseDown: q && c ? ne : void 0,
4881
- onDragStart: q ? (e) => z(r, e) : void 0,
4915
+ reorderable: K,
4916
+ draggable: K && !R || void 0,
4917
+ isDragging: K && r === v,
4918
+ onMouseDown: K && c ? ne : void 0,
4919
+ onDragStart: K ? (e) => z(r, e) : void 0,
4882
4920
  onDragOver: t ? (e) => B(n, e) : e ? (e) => ae(n, e) : void 0,
4883
4921
  onDragEnd: t ? ie : e ? oe : void 0,
4884
4922
  onDrop: t ? H : void 0,
4885
- onTouchStart: q ? (e) => G(r, e) : void 0,
4923
+ onTouchStart: K ? (e) => G(r, e) : void 0,
4886
4924
  dropPosition: i,
4887
4925
  dropIndentPx: i ? (p[n] ?? 0) * l : void 0
4888
4926
  };
4889
4927
  }
4890
- function de() {
4928
+ function q() {
4891
4929
  return F.current ? (F.current = !1, !0) : !1;
4892
4930
  }
4893
4931
  return {
4894
4932
  draggingKey: v,
4895
- dragEnabled: q,
4896
- getRowDragProps: ue,
4897
- consumeSuppressedClick: de
4933
+ dragEnabled: K,
4934
+ getRowDragProps: de,
4935
+ consumeSuppressedClick: q
4898
4936
  };
4899
4937
  }
4900
4938
  //#endregion
4901
4939
  //#region package/common/virtualList/virtualList.tsx
4902
- function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: a = 40, overscan: o = 3, rowGap: s = 0, selectedKey: l, getItemKey: u, onRowClick: d, visibleColumnKeys: m, onVisibleColumnsChange: h, persistColumnsKey: g, showColumnToggle: _, onLoadMore: v, loadMoreThreshold: y = 100, isLoading: b = !1, multiSelect: x = !1, selectedKeys: S, onSelectionChange: C, reorderable: w = !1, onReorder: T, longPressDelay: E = 400, treeReorder: D = !1, getItemDepth: O, isGroup: A, onTreeDrop: j, treeIndentPx: M = 24, dragHandle: N = !1, showDivider: P = !0, rowHover: F = !0, className: I, style: ee, classNames: L, styles: R, ...te }, ne) {
4903
- let z = i((e, t) => u ? u(e, t) : t, [u]), re = c(() => e.map((e, t) => z(e, t)), [e, z]), ie = c(() => O ? e.map((e, t) => O(e, t)) : [], [e, O]), ae = i((t) => A ? A(e[t], t) : !1, [A, e]), oe = qr({
4940
+ function $r({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: a = 40, overscan: s = 3, rowGap: l = 0, selectedKey: u, getItemKey: d, onRowClick: m, visibleColumnKeys: h, onVisibleColumnsChange: g, persistColumnsKey: _, showColumnToggle: v, onLoadMore: y, loadMoreThreshold: b = 100, isLoading: x = !1, multiSelect: S = !1, selectedKeys: C, onSelectionChange: w, reorderable: T = !1, onReorder: E, longPressDelay: D = 400, treeReorder: O = !1, getItemDepth: A, isGroup: j, onTreeDrop: M, treeIndentPx: N = 24, dragHandle: P = !1, showDivider: F = !0, rowHover: I = !0, className: ee, style: te, classNames: L, styles: R, ...ne }, z) {
4941
+ let re = i((e, t) => d ? d(e, t) : t, [d]), ie = c(() => e.map((e, t) => re(e, t)), [e, re]), ae = c(() => A ? e.map((e, t) => A(e, t)) : [], [e, A]), oe = i((t) => j ? j(e[t], t) : !1, [j, e]), U = Yr({
4904
4942
  items: e,
4905
- keys: re,
4906
- getItemKey: u,
4943
+ keys: ie,
4944
+ getItemKey: d,
4907
4945
  estimatedRowHeight: a,
4908
- rowGap: s,
4909
- overscan: o,
4910
- onLoadMore: v,
4911
- loadMoreThreshold: y,
4912
- forwardedRef: ne
4913
- }), { rootRef: U, headerRef: se, rowObserver: W, keysRef: ce, offsets: le, totalHeight: G, startIndex: K, endIndex: q } = oe, ue = Jr({
4946
+ rowGap: l,
4947
+ overscan: s,
4948
+ onLoadMore: y,
4949
+ loadMoreThreshold: b
4950
+ }), { rootRef: se, headerRef: W, rowObserver: ce, keysRef: le, offsets: G, totalHeight: ue, startIndex: K, endIndex: de } = U, q = Xr({
4914
4951
  items: e,
4915
- getKey: z,
4916
- multiSelect: x,
4917
- selectedKeys: S,
4918
- onSelectionChange: C
4919
- }), { effectiveSelectedKeys: de } = ue, { hasColumns: fe, visibleColumns: pe, columnTemplate: me, shouldShowToggle: he, effectiveVisible: ge, manuallyHiddenCount: _e, toggleOpen: ve, setToggleOpen: ye, toggleRef: be, handleToggleColumn: xe } = Yr({
4952
+ getKey: re,
4953
+ multiSelect: S,
4954
+ selectedKeys: C,
4955
+ onSelectionChange: w
4956
+ }), { effectiveSelectedKeys: fe } = q, { hasColumns: pe, visibleColumns: me, columnTemplate: he, shouldShowToggle: ge, effectiveVisible: _e, manuallyHiddenCount: ve, toggleOpen: ye, setToggleOpen: be, toggleRef: xe, handleToggleColumn: J, recalculateColumns: Se } = Zr({
4920
4957
  columns: n,
4921
4958
  items: e,
4922
- multiSelect: x,
4923
- visibleColumnKeys: m,
4924
- onVisibleColumnsChange: h,
4925
- persistColumnsKey: g,
4926
- showColumnToggle: _,
4927
- rootRef: U,
4959
+ multiSelect: S,
4960
+ visibleColumnKeys: h,
4961
+ onVisibleColumnsChange: g,
4962
+ persistColumnsKey: _,
4963
+ showColumnToggle: v,
4964
+ rootRef: se,
4928
4965
  startIndex: K,
4929
- endIndex: q,
4930
- containerHeight: oe.containerHeight
4931
- }), J = Xr({
4932
- reorderable: w,
4933
- treeReorder: D,
4934
- onReorder: T,
4935
- onTreeDrop: j,
4936
- longPressDelay: E,
4937
- dragHandle: N,
4938
- treeIndentPx: M,
4939
- keys: re,
4940
- depths: ie,
4941
- isGroupAt: ae,
4942
- rootRef: U,
4943
- keysRef: ce
4944
- }), Se = (n) => {
4945
- let r = e[n], i = z(r, n), a = l != null && i === l || de.has(i), o = J.getRowDragProps(n, i);
4946
- return /* @__PURE__ */ V(Ir, {
4966
+ endIndex: de,
4967
+ containerHeight: U.containerHeight,
4968
+ containerWidth: U.containerWidth
4969
+ });
4970
+ o(z, () => ({
4971
+ ...U.scrollApi,
4972
+ recalculateColumns: Se
4973
+ }), [U.scrollApi, Se]);
4974
+ let Ce = Qr({
4975
+ reorderable: T,
4976
+ treeReorder: O,
4977
+ onReorder: E,
4978
+ onTreeDrop: M,
4979
+ longPressDelay: D,
4980
+ dragHandle: P,
4981
+ treeIndentPx: N,
4982
+ keys: ie,
4983
+ depths: ae,
4984
+ isGroupAt: oe,
4985
+ rootRef: se,
4986
+ keysRef: le
4987
+ }), Te = (n) => {
4988
+ let r = e[n], i = re(r, n), a = u != null && i === u || fe.has(i), o = Ce.getRowDragProps(n, i);
4989
+ return /* @__PURE__ */ V(Rr, {
4947
4990
  index: n,
4948
- top: le[n],
4949
- columnTemplate: me,
4991
+ top: G[n],
4992
+ columnTemplate: he,
4950
4993
  isSelected: a,
4951
- showDivider: P,
4952
- hover: F,
4994
+ showDivider: F,
4995
+ hover: I,
4953
4996
  onClick: () => {
4954
- J.consumeSuppressedClick() || d?.(r, n);
4997
+ Ce.consumeSuppressedClick() || m?.(r, n);
4955
4998
  },
4956
- observer: W,
4957
- ariaRowIndex: fe ? n + 2 : void 0,
4958
- ariaPosInSet: fe ? void 0 : n + 1,
4959
- ariaSetSize: fe ? void 0 : e.length,
4960
- rowRole: fe ? "row" : "listitem",
4961
- reserveToggleGutter: he,
4999
+ observer: ce,
5000
+ ariaRowIndex: pe ? n + 2 : void 0,
5001
+ ariaPosInSet: pe ? void 0 : n + 1,
5002
+ ariaSetSize: pe ? void 0 : e.length,
5003
+ rowRole: pe ? "row" : "listitem",
5004
+ reserveToggleGutter: ge,
4962
5005
  ...o,
4963
5006
  dropIndicatorClassName: L?.dropIndicator,
4964
5007
  dropIndicatorStyle: R?.dropIndicator,
4965
5008
  rowClassName: L?.row,
4966
5009
  rowStyle: R?.row,
4967
- children: fe ? /* @__PURE__ */ H(B, { children: [x && /* @__PURE__ */ V("div", {
5010
+ children: pe ? /* @__PURE__ */ H(B, { children: [S && /* @__PURE__ */ V("div", {
4968
5011
  className: f($.virtualListSelectCell, L?.selectCell),
4969
5012
  style: R?.selectCell,
4970
5013
  role: "gridcell",
4971
5014
  onClick: (e) => e.stopPropagation(),
4972
5015
  children: /* @__PURE__ */ V(qe, {
4973
- selected: de.has(i),
4974
- onToggle: () => ue.handleRowSelect(i),
5016
+ selected: fe.has(i),
5017
+ onToggle: () => q.handleRowSelect(i),
4975
5018
  "aria-label": "Select row"
4976
5019
  })
4977
- }), pe.map((e) => /* @__PURE__ */ V("div", {
5020
+ }), me.map((e) => /* @__PURE__ */ V("div", {
4978
5021
  className: f($.virtualListCell, L?.cell),
4979
5022
  style: R?.cell,
4980
5023
  role: "gridcell",
@@ -4982,80 +5025,80 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4982
5025
  children: e.renderCell(r, n)
4983
5026
  }, e.key))] }) : t?.(r, n)
4984
5027
  }, i);
4985
- }, Ce = [];
4986
- for (let e = K; e <= q; e++) Ce.push(Se(e));
4987
- let Te = J.draggingKey == null ? -1 : re.indexOf(J.draggingKey);
4988
- return Te >= 0 && (Te < K || Te > q) && Ce.push(Se(Te)), /* @__PURE__ */ H("div", {
4989
- ...te,
4990
- ref: U,
4991
- className: f($.virtualList, J.draggingKey != null && $.virtualListReordering, I, L?.root),
5028
+ }, Ee = [];
5029
+ for (let e = K; e <= de; e++) Ee.push(Te(e));
5030
+ let De = Ce.draggingKey == null ? -1 : ie.indexOf(Ce.draggingKey);
5031
+ return De >= 0 && (De < K || De > de) && Ee.push(Te(De)), /* @__PURE__ */ H("div", {
5032
+ ...ne,
5033
+ ref: se,
5034
+ className: f($.virtualList, Ce.draggingKey != null && $.virtualListReordering, ee, L?.root),
4992
5035
  style: {
4993
5036
  height: r,
4994
- ...ee,
5037
+ ...te,
4995
5038
  ...R?.root
4996
5039
  },
4997
- onScroll: oe.handleScroll,
4998
- role: fe ? "grid" : "list",
4999
- "aria-rowcount": fe ? e.length + 1 : void 0,
5040
+ onScroll: U.handleScroll,
5041
+ role: pe ? "grid" : "list",
5042
+ "aria-rowcount": pe ? e.length + 1 : void 0,
5000
5043
  children: [
5001
- fe && /* @__PURE__ */ H("div", {
5002
- ref: se,
5044
+ pe && /* @__PURE__ */ H("div", {
5045
+ ref: W,
5003
5046
  className: f($.virtualListHeader, L?.header),
5004
5047
  style: {
5005
- gridTemplateColumns: me,
5006
- ...he ? { paddingRight: 32 } : {},
5048
+ gridTemplateColumns: he,
5049
+ ...ge ? { paddingRight: 32 } : {},
5007
5050
  ...R?.header
5008
5051
  },
5009
5052
  role: "row",
5010
5053
  "aria-rowindex": 1,
5011
5054
  children: [
5012
- x && /* @__PURE__ */ V("div", {
5055
+ S && /* @__PURE__ */ V("div", {
5013
5056
  className: f($.virtualListSelectCell, L?.selectCell),
5014
5057
  style: R?.selectCell,
5015
5058
  role: "columnheader",
5016
5059
  children: /* @__PURE__ */ V(qe, {
5017
- selected: ue.allSelected || ue.someSelected,
5018
- onToggle: ue.handleSelectAll,
5060
+ selected: q.allSelected || q.someSelected,
5061
+ onToggle: q.handleSelectAll,
5019
5062
  "aria-label": "Select all rows"
5020
5063
  })
5021
5064
  }),
5022
- pe.map((e) => /* @__PURE__ */ V("div", {
5065
+ me.map((e) => /* @__PURE__ */ V("div", {
5023
5066
  className: f($.virtualListHeaderCell, L?.headerCell),
5024
5067
  style: R?.headerCell,
5025
5068
  role: "columnheader",
5026
5069
  "data-fit-key": e.width.type === "fit" ? e.key : void 0,
5027
5070
  children: e.label
5028
5071
  }, e.key)),
5029
- he && /* @__PURE__ */ H("div", {
5030
- ref: be,
5072
+ ge && /* @__PURE__ */ H("div", {
5073
+ ref: xe,
5031
5074
  className: $.virtualListToggleWrapper,
5032
5075
  children: [
5033
5076
  /* @__PURE__ */ V("button", {
5034
5077
  type: "button",
5035
5078
  className: f($.virtualListHeaderToggle, L?.headerToggle),
5036
5079
  style: R?.headerToggle,
5037
- onClick: () => ye((e) => !e),
5080
+ onClick: () => be((e) => !e),
5038
5081
  "aria-label": "Toggle column visibility",
5039
5082
  children: /* @__PURE__ */ V(p, {
5040
5083
  icon: k,
5041
5084
  style: R?.headerToggle
5042
5085
  })
5043
5086
  }),
5044
- _e > 0 && /* @__PURE__ */ V("span", {
5087
+ ve > 0 && /* @__PURE__ */ V("span", {
5045
5088
  className: f($.virtualListColumnChip, L?.columnChip),
5046
5089
  style: R?.columnChip,
5047
- "data-column-hidden-count": _e,
5048
- "aria-label": `${_e} columns hidden`,
5049
- children: _e
5090
+ "data-column-hidden-count": ve,
5091
+ "aria-label": `${ve} columns hidden`,
5092
+ children: ve
5050
5093
  }),
5051
- ve && /* @__PURE__ */ V("div", {
5094
+ ye && /* @__PURE__ */ V("div", {
5052
5095
  className: f($.virtualListTogglePopover, L?.togglePopover),
5053
5096
  style: R?.togglePopover,
5054
5097
  children: n.map((e) => /* @__PURE__ */ V(qe, {
5055
5098
  className: f($.virtualListToggleItem, L?.toggleItem),
5056
5099
  style: R?.toggleItem,
5057
- selected: ge.has(e.key),
5058
- onToggle: () => xe(e.key),
5100
+ selected: _e.has(e.key),
5101
+ onToggle: () => J(e.key),
5059
5102
  cursorDefault: !1,
5060
5103
  children: e.label
5061
5104
  }, e.key))
@@ -5064,18 +5107,18 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5064
5107
  })
5065
5108
  ]
5066
5109
  }),
5067
- b ? /* @__PURE__ */ V("div", {
5110
+ x ? /* @__PURE__ */ V("div", {
5068
5111
  className: $.virtualListLoadingFull,
5069
5112
  children: /* @__PURE__ */ V(we, { className: $.virtualListSpinner })
5070
5113
  }) : /* @__PURE__ */ V("div", {
5071
5114
  className: f($.virtualListBody, L?.body),
5072
5115
  style: {
5073
- height: G,
5116
+ height: ue,
5074
5117
  ...R?.body
5075
5118
  },
5076
- children: Ce
5119
+ children: Ee
5077
5120
  }),
5078
- oe.showLoadMoreSpinner && /* @__PURE__ */ V("div", {
5121
+ U.showLoadMoreSpinner && /* @__PURE__ */ V("div", {
5079
5122
  className: f($.virtualListLoadingIndicator, L?.loadingIndicator),
5080
5123
  style: R?.loadingIndicator,
5081
5124
  children: /* @__PURE__ */ V(we, { className: $.virtualListSpinner })
@@ -5083,7 +5126,7 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5083
5126
  ]
5084
5127
  });
5085
5128
  }
5086
- var Qr = e.forwardRef(Zr), $r = {
5129
+ var ei = e.forwardRef($r), ti = {
5087
5130
  wizard: "wizard_uRBAN",
5088
5131
  "wizard-content": "wizard-content_lcl4C",
5089
5132
  wizardContent: "wizard-content_lcl4C",
@@ -5094,7 +5137,7 @@ var Qr = e.forwardRef(Zr), $r = {
5094
5137
  };
5095
5138
  //#endregion
5096
5139
  //#region package/common/wizard/wizard.tsx
5097
- function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
5140
+ function ni({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
5098
5141
  let [l, p] = d(void 0), [m, h] = d(!1), [g, _] = d(e), v = u([]), y = u(null);
5099
5142
  e !== g && (_(e), h(!0)), a(() => {
5100
5143
  if (!m) return;
@@ -5114,10 +5157,10 @@ function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5114
5157
  };
5115
5158
  return /* @__PURE__ */ V("div", {
5116
5159
  ...c,
5117
- className: f($r.wizard, o?.root, r),
5160
+ className: f(ti.wizard, o?.root, r),
5118
5161
  style: b,
5119
5162
  children: /* @__PURE__ */ V("div", {
5120
- className: f($r.wizardContentContainer, o?.container),
5163
+ className: f(ti.wizardContentContainer, o?.container),
5121
5164
  style: {
5122
5165
  width: `${t * 100}%`,
5123
5166
  marginLeft: `-${e * 100}%`,
@@ -5127,14 +5170,14 @@ function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5127
5170
  ref: (e) => {
5128
5171
  v.current[i] = e;
5129
5172
  },
5130
- className: f($r.wizardContent, o?.step),
5173
+ className: f(ti.wizardContent, o?.step),
5131
5174
  style: {
5132
5175
  width: `${100 / t}%`,
5133
5176
  marginLeft: `${100 / t * i}%`,
5134
5177
  ...s?.step
5135
5178
  },
5136
5179
  children: /* @__PURE__ */ V("div", {
5137
- className: f({ [$r.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
5180
+ className: f({ [ti.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
5138
5181
  style: s?.stepContent,
5139
5182
  inert: e === i ? void 0 : !0,
5140
5183
  children: n(i)
@@ -5145,20 +5188,20 @@ function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5145
5188
  }
5146
5189
  //#endregion
5147
5190
  //#region package/services/formValidation/formValidatorGroup.ts
5148
- function ti(e) {
5191
+ function ri(e) {
5149
5192
  let t = e;
5150
5193
  return t?.errors && Array.isArray(t.errors) ? t.errors.flatMap((e) => Object.entries(e).map(([e, t]) => ({
5151
5194
  id: e,
5152
5195
  message: t
5153
5196
  }))) : [];
5154
5197
  }
5155
- var ni = class {
5198
+ var ii = class {
5156
5199
  #e;
5157
5200
  #t;
5158
5201
  #n;
5159
5202
  #r;
5160
5203
  #i;
5161
- constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = ti, onSubmitError: o = () => void 0 } = {}) {
5204
+ constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = ri, onSubmitError: o = () => void 0 } = {}) {
5162
5205
  this.#t = !1, this.#i = [], this.getFormError = () => {
5163
5206
  let e = Object.keys(this.group);
5164
5207
  for (let t = 0; t < e.length; t += 1) {
@@ -5224,7 +5267,7 @@ var ni = class {
5224
5267
  }), this.onValidateCallback) return this.onValidateCallback(this);
5225
5268
  }, this.setValidator = (e, t) => (this.group[e] = t, this), this.group = e, this.#e = n ?? {}, this.#r = {}, this.submitCount = 0, this.onDebounce = () => {}, this.onReset = () => {}, Object.keys(this.group).forEach((e) => {
5226
5269
  let t = this.group[e], n = this.#e;
5227
- n[e] !== void 0 && t.set(n[e]), this.#r[e] = t.value, this.group[e].registerOnUpdateListener(() => {
5270
+ n[e] !== void 0 && t.set(n[e], !1), this.#r[e] = t.value, this.group[e].registerOnUpdateListener(() => {
5228
5271
  this.#a(), this.submitCount = 0, this.#n && clearTimeout(this.#n), this.#n = setTimeout(() => this.onDebounce(this.getValues()), 500);
5229
5272
  });
5230
5273
  }), this.component = t, this.onSubmitCallback = r, this.onValidateCallback = i, this.errorParser = a, this.onSubmitError = o, this.setSubmitting(!1);
@@ -5248,7 +5291,7 @@ var ni = class {
5248
5291
  };
5249
5292
  //#endregion
5250
5293
  //#region package/services/formValidation/FormValidatorGroupForm.tsx
5251
- function ri(e) {
5294
+ function ai(e) {
5252
5295
  return function({ children: t, ...n }) {
5253
5296
  return /* @__PURE__ */ V("form", {
5254
5297
  onSubmit: e.submit,
@@ -5260,16 +5303,16 @@ function ri(e) {
5260
5303
  }
5261
5304
  //#endregion
5262
5305
  //#region package/services/formValidation/FormValidatorGroupWithForm.tsx
5263
- var ii = (e) => {
5264
- jr(e[0].message, { type: "error" });
5265
- }, ai = class extends ni {
5306
+ var oi = (e) => {
5307
+ Nr(e[0].message, { type: "error" });
5308
+ }, si = class extends ii {
5266
5309
  constructor(e, t = null, n) {
5267
5310
  super(e, t, {
5268
5311
  ...n,
5269
- onSubmitError: n?.onSubmitError ?? ii
5270
- }), this.Form = ri(this);
5312
+ onSubmitError: n?.onSubmitError ?? oi
5313
+ }), this.Form = ai(this);
5271
5314
  }
5272
- }, oi = class {
5315
+ }, ci = class {
5273
5316
  #e;
5274
5317
  #t;
5275
5318
  #n;
@@ -5323,44 +5366,44 @@ var ii = (e) => {
5323
5366
  return this.#r;
5324
5367
  }
5325
5368
  };
5326
- oi.prototype.toString = function() {
5369
+ ci.prototype.toString = function() {
5327
5370
  return `${this.value}`;
5328
5371
  };
5329
5372
  //#endregion
5330
5373
  //#region package/services/regexp.ts
5331
- function si(e) {
5374
+ function li(e) {
5332
5375
  return /^[0-9]+$/.test(e);
5333
5376
  }
5334
- function ci(e) {
5377
+ function ui(e) {
5335
5378
  return /^[0-9]{2}.[0-9]{2}.[0-9]{4}$/.test(e);
5336
5379
  }
5337
- function li(e) {
5380
+ function di(e) {
5338
5381
  return /^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}Z$/.test(e);
5339
5382
  }
5340
- function ui(e) {
5383
+ function fi(e) {
5341
5384
  return /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-ZöäüÜÖÄß\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e);
5342
5385
  }
5343
- function di(e) {
5386
+ function pi(e) {
5344
5387
  return /^[A-Z]{6}[A-Z\d]{2}([A-Z\d]{3})?$/.test(e);
5345
5388
  }
5346
- function fi(e) {
5389
+ function mi(e) {
5347
5390
  return /[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}(\/[-a-zA-Z0-9@:%_+.~#?&//=]*)?$/.test(e);
5348
5391
  }
5349
- function pi(e) {
5392
+ function hi(e) {
5350
5393
  return /^[\w!@#$%^&*?±§~`'"/\\[\]{}\-,.();:><+=|öäüÖÄÜß €μ]{8,}$/.test(e);
5351
5394
  }
5352
- function mi(e) {
5395
+ function gi(e) {
5353
5396
  return /^(?=.*[a-zöäüA-ZÖÄÜß])/.test(e);
5354
5397
  }
5355
- function hi(e) {
5398
+ function _i(e) {
5356
5399
  return /^(?=.*\d)/.test(e);
5357
5400
  }
5358
- function gi(e) {
5359
- return pi(e) && mi(e) && hi(e);
5401
+ function vi(e) {
5402
+ return hi(e) && gi(e) && _i(e);
5360
5403
  }
5361
5404
  //#endregion
5362
5405
  //#region package/services/formValidation/validators.ts
5363
- var _i = { t: (e, t) => ({
5406
+ var yi = { t: (e, t) => ({
5364
5407
  "formValidators.minLength": `Must be at least ${t?.min} characters long`,
5365
5408
  "formValidators.maxLength": `Must be at most ${t?.max} characters long`,
5366
5409
  "formValidators.email": "Must be a valid email address",
@@ -5375,23 +5418,23 @@ var _i = { t: (e, t) => ({
5375
5418
  "garages.errors.bic": "Must be a valid BIC",
5376
5419
  "formValidators.minLetters": `Must contain at least ${t?.smart_count} letters`,
5377
5420
  "formValidators.minDigits": `Must contain at least ${t?.smart_count} digits`
5378
- })[e] || e }, vi = class e {
5421
+ })[e] || e }, bi = class e {
5379
5422
  static {
5380
5423
  this.minLength = (e, t) => (n) => !n || n.length < e ? {
5381
5424
  id: "minLength",
5382
- message: t || _i.t("formValidators.minLength", { min: e })
5425
+ message: t || yi.t("formValidators.minLength", { min: e })
5383
5426
  } : null;
5384
5427
  }
5385
5428
  static {
5386
5429
  this.maxLength = (e, t) => (n) => n && n.length > e ? {
5387
5430
  id: "maxLength",
5388
- message: t || _i.t("formValidators.maxLength", { max: e })
5431
+ message: t || yi.t("formValidators.maxLength", { max: e })
5389
5432
  } : null;
5390
5433
  }
5391
5434
  static {
5392
- this.email = (e) => (t) => t && !ui(t) ? {
5435
+ this.email = (e) => (t) => t && !fi(t) ? {
5393
5436
  id: "email",
5394
- message: e || _i.t("formValidators.email")
5437
+ message: e || yi.t("formValidators.email")
5395
5438
  } : null;
5396
5439
  }
5397
5440
  static {
@@ -5399,7 +5442,7 @@ var _i = { t: (e, t) => ({
5399
5442
  function t(t, n) {
5400
5443
  return !t && t !== 0 ? {
5401
5444
  id: "required",
5402
- message: e || _i.t("formValidators.required", { label: n || _i.t("formValidators.value") })
5445
+ message: e || yi.t("formValidators.required", { label: n || yi.t("formValidators.value") })
5403
5446
  } : null;
5404
5447
  }
5405
5448
  return t.validatorId = "required", t;
@@ -5408,13 +5451,13 @@ var _i = { t: (e, t) => ({
5408
5451
  static {
5409
5452
  this.mustBeNumber = (e) => (t) => t && Number.isNaN(+t) ? {
5410
5453
  id: "mustBeNumber",
5411
- message: e || _i.t("formValidators.mustBeNumber")
5454
+ message: e || yi.t("formValidators.mustBeNumber")
5412
5455
  } : null;
5413
5456
  }
5414
5457
  static {
5415
5458
  this.oneOf = (e, t) => (n) => n && !e.includes(n) ? {
5416
5459
  id: "oneOf",
5417
- message: t || _i.t("formValidators.oneOf", { allowedValues: e })
5460
+ message: t || yi.t("formValidators.oneOf", { allowedValues: e })
5418
5461
  } : null;
5419
5462
  }
5420
5463
  static {
@@ -5432,48 +5475,48 @@ var _i = { t: (e, t) => ({
5432
5475
  this.multiEmail = (e) => (t) => {
5433
5476
  if (t) {
5434
5477
  let n = t.replace(/ /g, "").replace(/,/g, ";").split(";");
5435
- for (let t = 0; t < n.length; t += 1) if (!ui(n[t])) return {
5478
+ for (let t = 0; t < n.length; t += 1) if (!fi(n[t])) return {
5436
5479
  id: "multiEmail",
5437
- message: e || _i.t("formValidators.multiEmail")
5480
+ message: e || yi.t("formValidators.multiEmail")
5438
5481
  };
5439
5482
  }
5440
5483
  return null;
5441
5484
  };
5442
5485
  }
5443
5486
  static {
5444
- this.date = (e) => (t) => t && !ci(t) && !li(t) ? {
5487
+ this.date = (e) => (t) => t && !ui(t) && !di(t) ? {
5445
5488
  id: "date",
5446
- message: e || _i.t("formValidators.date")
5489
+ message: e || yi.t("formValidators.date")
5447
5490
  } : null;
5448
5491
  }
5449
5492
  static {
5450
5493
  this.dateObject = (e) => (t) => t && !t.isValid ? {
5451
5494
  id: "date",
5452
- message: e || _i.t("formValidators.date")
5495
+ message: e || yi.t("formValidators.date")
5453
5496
  } : null;
5454
5497
  }
5455
5498
  static {
5456
- this.website = (e) => (t) => t && !fi(t) ? {
5499
+ this.website = (e) => (t) => t && !mi(t) ? {
5457
5500
  id: "website",
5458
- message: e || _i.t("garages.errors.website")
5501
+ message: e || yi.t("garages.errors.website")
5459
5502
  } : null;
5460
5503
  }
5461
5504
  static {
5462
- this.bic = (e) => (t) => t && !di(t) ? {
5505
+ this.bic = (e) => (t) => t && !pi(t) ? {
5463
5506
  id: "bic",
5464
- message: e || _i.t("garages.errors.bic")
5507
+ message: e || yi.t("garages.errors.bic")
5465
5508
  } : null;
5466
5509
  }
5467
5510
  static {
5468
5511
  this.minLetters = (e, t) => (n) => n && n.replace(/[^a-zöäüA-ZÖÄÜß]/g, "").length < e ? {
5469
5512
  id: "minLetters",
5470
- message: t || _i.t("formValidators.minLetters", { smart_count: e })
5513
+ message: t || yi.t("formValidators.minLetters", { smart_count: e })
5471
5514
  } : null;
5472
5515
  }
5473
5516
  static {
5474
5517
  this.minDigits = (e, t) => (n) => n && n.replace(/[\D]/g, "").length < e ? {
5475
5518
  id: "minDigits",
5476
- message: t || _i.t("formValidators.minDigits", { smart_count: e })
5519
+ message: t || yi.t("formValidators.minDigits", { smart_count: e })
5477
5520
  } : null;
5478
5521
  }
5479
5522
  static {
@@ -5485,7 +5528,7 @@ var _i = { t: (e, t) => ({
5485
5528
  } : r : null;
5486
5529
  };
5487
5530
  }
5488
- }, yi = class extends n {
5531
+ }, xi = class extends n {
5489
5532
  static {
5490
5533
  this.defaultProps = {
5491
5534
  formValidator: null,
@@ -5548,7 +5591,7 @@ var _i = { t: (e, t) => ({
5548
5591
  }
5549
5592
  renderTooltip() {
5550
5593
  let { errorMessage: e, formValidator: t } = this.props, { isHovered: n, isFocused: r } = this.state;
5551
- return /* @__PURE__ */ V(nt, {
5594
+ return /* @__PURE__ */ V(it, {
5552
5595
  variant: "error",
5553
5596
  message: t ? t.getCurrentErrorMessage() : e || "",
5554
5597
  isVisible: this.hasError() && (r || n)
@@ -5565,7 +5608,7 @@ var _i = { t: (e, t) => ({
5565
5608
  };
5566
5609
  //#endregion
5567
5610
  //#region package/services/formValidation/useFormValidator.ts
5568
- function bi(e) {
5611
+ function Si(e) {
5569
5612
  let [, t] = l((e) => e + 1, 0);
5570
5613
  return a(() => {
5571
5614
  if (e) return e.registerOnUpdateListener(t), () => e.removeOnUpdateListener(t);
@@ -5573,9 +5616,9 @@ function bi(e) {
5573
5616
  }
5574
5617
  //#endregion
5575
5618
  //#region package/services/formValidation/useFormValidatorGroup.ts
5576
- function xi(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5619
+ function Ci(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5577
5620
  let [, s] = l((e) => e + 1, 0), c = u(null);
5578
- c.current ||= new ai(e, null, {
5621
+ c.current ||= new si(e, null, {
5579
5622
  initialValues: t,
5580
5623
  errorParser: i,
5581
5624
  onSubmitError: o
@@ -5584,6 +5627,6 @@ function xi(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, o
5584
5627
  return f.current = n, p.current = r, a(() => (n !== void 0 && (d.onSubmitCallback = (...e) => f.current?.(...e)), r !== void 0 && (d.onValidateCallback = (...e) => p.current?.(...e)), d.registerOnUpdateListener(s), () => d.removeOnUpdateListener(s)), []), d;
5585
5628
  }
5586
5629
  //#endregion
5587
- export { be as Accordion, he as AccordionStyleType, Ne as ActionButtons, Re as ActionIcon, Qe as Align, ze as BodyEnd, Me as Button, Ee as ButtonSize, Te as ButtonStyleType, De as ButtonType, Ve as Card, Ge as CardActions, We as CardContent, He as CardHeader, Ue as CardMedia, qe as Checkbox, Ye as Chip, Xe as ChipContainer, mt as ColorPicker, _t as ConfirmModal, Gt as DatePicker, Ut as Dropdown, qt as EmptyState, Qt as Fab, et as FloatingMenu, oi as FormValidator, ai as FormValidatorGroup, gn as IconLoading, nn as IconPicker, an as IdleManager, Ht as InfiniteBlock, rt as Input, ln as InputDropdown, X as InputType, Ie as InteractableDiv, pn as KanbanBoard, fn as KanbanColumn, gt as Modal, yn as NumberInput, xn as OptionPicker, Tn as Overscroll, On as ProgressBar, ke as Ripple, tr as RoomDrawer, rr as RoomViewer, or as ScrollbarProvider, cr as SearchInput, we as SpinnerLoading, dr as Stepper, yr as TenorPicker, br as Textarea, Cr as ThemeProvider, Fr as ToastProvider, nt as Tooltip, yi as ValidatableComponent, vi as Validators, Qr as VirtualList, ei as Wizard, xr as defaultTheme, Tt as getLocale, pi as hasEightPasswordChars, hi as hasOnePasswordDigit, mi as hasOnePasswordLetter, di as isBic, ci as isDate, ui as isEmail, li as isISODate, si as isNumber, gi as isPassword, fi as isURL, St as mapLocale, wt as setLocale, jr as showToast, bi as useFormValidator, xi as useFormValidatorGroup, wr as useTheme };
5630
+ export { be as Accordion, he as AccordionStyleType, Ne as ActionButtons, Re as ActionIcon, et as Align, ze as BodyEnd, Me as Button, Ee as ButtonSize, Te as ButtonStyleType, De as ButtonType, Ve as Card, Ge as CardActions, We as CardContent, He as CardHeader, Ue as CardMedia, qe as Checkbox, Ze as Chip, Qe as ChipContainer, Je as ChipStyleType, gt as ColorPicker, yt as ConfirmModal, qt as DatePicker, Gt as Dropdown, Yt as EmptyState, en as Fab, nt as FloatingMenu, ci as FormValidator, si as FormValidatorGroup, vn as IconLoading, an as IconPicker, sn as IdleManager, Wt as InfiniteBlock, at as Input, dn as InputDropdown, X as InputType, Ie as InteractableDiv, hn as KanbanBoard, mn as KanbanColumn, vt as Modal, xn as NumberInput, Cn as OptionPicker, Dn as Overscroll, An as ProgressBar, ke as Ripple, rr as RoomDrawer, ar as RoomViewer, cr as ScrollbarProvider, ur as SearchInput, we as SpinnerLoading, pr as Stepper, xr as TenorPicker, Sr as Textarea, Tr as ThemeProvider, Lr as ToastProvider, it as Tooltip, xi as ValidatableComponent, bi as Validators, ei as VirtualList, ni as Wizard, Cr as defaultTheme, Dt as getLocale, hi as hasEightPasswordChars, _i as hasOnePasswordDigit, gi as hasOnePasswordLetter, pi as isBic, ui as isDate, fi as isEmail, di as isISODate, li as isNumber, vi as isPassword, mi as isURL, wt as mapLocale, Et as setLocale, Nr as showToast, Si as useFormValidator, Ci as useFormValidatorGroup, Er as useTheme };
5588
5631
 
5589
5632
  //# sourceMappingURL=index.mjs.map