@helpwave/hightide 0.5.1 → 0.5.2

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.js CHANGED
@@ -11543,24 +11543,22 @@ var VerticalDivider = ({
11543
11543
  };
11544
11544
 
11545
11545
  // src/components/layout/Visibility.tsx
11546
+ var import_jsx_runtime36 = require("react/jsx-runtime");
11546
11547
  function Visibility({ children, isVisible }) {
11547
- if (isVisible) {
11548
- return children;
11549
- }
11550
- return void 0;
11548
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: isVisible && children });
11551
11549
  }
11552
11550
 
11553
11551
  // src/components/loading-states/ErrorComponent.tsx
11554
11552
  var import_lucide_react8 = require("lucide-react");
11555
11553
  var import_clsx26 = __toESM(require("clsx"));
11556
- var import_jsx_runtime36 = require("react/jsx-runtime");
11554
+ var import_jsx_runtime37 = require("react/jsx-runtime");
11557
11555
  var ErrorComponent = ({
11558
11556
  errorText,
11559
11557
  classname
11560
11558
  }) => {
11561
11559
  const translation = useHightideTranslation();
11562
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: (0, import_clsx26.default)("flex-col-4 items-center justify-center w-full h-24", classname), children: [
11563
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react8.AlertOctagon, { size: 64, className: "text-warning" }),
11560
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: (0, import_clsx26.default)("flex-col-4 items-center justify-center w-full h-24", classname), children: [
11561
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react8.AlertOctagon, { size: 64, className: "text-warning" }),
11564
11562
  errorText ?? `${translation("errorOccurred")} :(`
11565
11563
  ] });
11566
11564
  };
@@ -11570,14 +11568,14 @@ var import_react30 = require("react");
11570
11568
 
11571
11569
  // src/components/loading-states/LoadingContainer.tsx
11572
11570
  var import_clsx27 = require("clsx");
11573
- var import_jsx_runtime37 = require("react/jsx-runtime");
11571
+ var import_jsx_runtime38 = require("react/jsx-runtime");
11574
11572
  var LoadingContainer = ({ className }) => {
11575
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0, import_clsx27.clsx)("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
11573
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_clsx27.clsx)("relative overflow-hidden shimmer bg-disabled/30 rounded-md", className) });
11576
11574
  };
11577
11575
 
11578
11576
  // src/components/loading-states/LoadingAndErrorComponent.tsx
11579
11577
  var import_clsx28 = require("clsx");
11580
- var import_jsx_runtime38 = require("react/jsx-runtime");
11578
+ var import_jsx_runtime39 = require("react/jsx-runtime");
11581
11579
  var LoadingAndErrorComponent = ({
11582
11580
  children,
11583
11581
  isLoading = false,
@@ -11597,40 +11595,40 @@ var LoadingAndErrorComponent = ({
11597
11595
  }, minimumLoadingDuration);
11598
11596
  }
11599
11597
  if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
11600
- return loadingComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)(className) });
11598
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: loadingComponent ?? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)(className) }) });
11601
11599
  }
11602
11600
  if (hasError) {
11603
- return errorComponent ?? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)("bg-negative", className) });
11601
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: errorComponent ?? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LoadingContainer, { className: (0, import_clsx28.clsx)("bg-negative", className) }) });
11604
11602
  }
11605
- return children;
11603
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children });
11606
11604
  };
11607
11605
 
11608
11606
  // src/components/loading-states/LoadingAnimation.tsx
11609
11607
  var import_clsx29 = __toESM(require("clsx"));
11610
- var import_jsx_runtime39 = require("react/jsx-runtime");
11608
+ var import_jsx_runtime40 = require("react/jsx-runtime");
11611
11609
  var LoadingAnimation = ({
11612
11610
  loadingText,
11613
11611
  classname
11614
11612
  }) => {
11615
11613
  const translation = useHightideTranslation();
11616
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: (0, import_clsx29.default)("flex-col-2 items-center justify-center w-full h-24", classname), children: [
11617
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(HelpwaveLogo, { animate: "loading" }),
11614
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: (0, import_clsx29.default)("flex-col-2 items-center justify-center w-full h-24", classname), children: [
11615
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HelpwaveLogo, { animate: "loading" }),
11618
11616
  loadingText ?? `${translation("loading")}...`
11619
11617
  ] });
11620
11618
  };
11621
11619
 
11622
11620
  // src/components/loading-states/LoadingButton.tsx
11623
11621
  var import_clsx30 = __toESM(require("clsx"));
11624
- var import_jsx_runtime40 = require("react/jsx-runtime");
11622
+ var import_jsx_runtime41 = require("react/jsx-runtime");
11625
11623
  var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
11626
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "inline-block relative", children: [
11627
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: (0, import_clsx30.default)("flex-row-2 absolute inset-0 items-center justify-center bg-white/40"), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
11628
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, { ...rest, size, disabled: rest.disabled, onClick })
11624
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "inline-block relative", children: [
11625
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: (0, import_clsx30.default)("flex-row-2 absolute inset-0 items-center justify-center bg-white/40"), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(HelpwaveLogo, { animate: "loading", className: "text-white" }) }),
11626
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { ...rest, size, disabled: rest.disabled, onClick })
11629
11627
  ] });
11630
11628
  };
11631
11629
 
11632
11630
  // src/components/loading-states/ProgressIndicator.tsx
11633
- var import_jsx_runtime41 = require("react/jsx-runtime");
11631
+ var import_jsx_runtime42 = require("react/jsx-runtime");
11634
11632
  var sizeMapping = { small: 16, medium: 24, big: 48 };
11635
11633
  var ProgressIndicator = ({
11636
11634
  progress,
@@ -11647,7 +11645,7 @@ var ProgressIndicator = ({
11647
11645
  if (direction === "clockwise") {
11648
11646
  rotation += 360 * progress;
11649
11647
  }
11650
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
11648
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
11651
11649
  "svg",
11652
11650
  {
11653
11651
  style: {
@@ -11656,7 +11654,7 @@ var ProgressIndicator = ({
11656
11654
  transform: `rotate(${rotation}deg)`
11657
11655
  },
11658
11656
  children: [
11659
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
11657
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11660
11658
  "circle",
11661
11659
  {
11662
11660
  cx: center,
@@ -11667,7 +11665,7 @@ var ProgressIndicator = ({
11667
11665
  className: "stroke-progress-indicator-fill"
11668
11666
  }
11669
11667
  ),
11670
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
11668
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11671
11669
  "circle",
11672
11670
  {
11673
11671
  cx: center,
@@ -11689,12 +11687,12 @@ var ProgressIndicator = ({
11689
11687
  var import_link = __toESM(require_link2());
11690
11688
  var import_clsx31 = __toESM(require("clsx"));
11691
11689
  var import_react31 = require("react");
11692
- var import_jsx_runtime42 = require("react/jsx-runtime");
11690
+ var import_jsx_runtime43 = require("react/jsx-runtime");
11693
11691
  var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
11694
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_clsx31.default)("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
11692
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: (0, import_clsx31.default)("flex-row-0.5 items-center", containerClassName), children: crumbs.map((crumb, index) => {
11695
11693
  const isLast = index === crumbs.length - 1;
11696
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_react31.Fragment, { children: [
11697
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11694
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react31.Fragment, { children: [
11695
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11698
11696
  import_link.default,
11699
11697
  {
11700
11698
  href: crumb.link,
@@ -11709,7 +11707,7 @@ var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
11709
11707
  children: crumb.display
11710
11708
  }
11711
11709
  ),
11712
- !isLast && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: (0, import_clsx31.default)(`px-1`, "text-description"), children: "/" })
11710
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: (0, import_clsx31.default)(`px-1`, "text-description"), children: "/" })
11713
11711
  ] }, index);
11714
11712
  }) });
11715
11713
  };
@@ -11720,7 +11718,7 @@ var import_react32 = require("react");
11720
11718
  var import_react33 = require("react");
11721
11719
  var import_link2 = __toESM(require_link2());
11722
11720
  var import_clsx32 = __toESM(require("clsx"));
11723
- var import_jsx_runtime43 = require("react/jsx-runtime");
11721
+ var import_jsx_runtime44 = require("react/jsx-runtime");
11724
11722
  function isSubItem(item) {
11725
11723
  return "items" in item && Array.isArray(item.items);
11726
11724
  }
@@ -11748,8 +11746,8 @@ var NavigationItemWithSubItem = ({
11748
11746
  }
11749
11747
  }, []);
11750
11748
  const zIndex = useZIndexRegister(isOpen);
11751
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
11752
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
11749
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
11750
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
11753
11751
  "button",
11754
11752
  {
11755
11753
  id: "navigation-" + id,
@@ -11764,11 +11762,11 @@ var NavigationItemWithSubItem = ({
11764
11762
  "aria-controls": "navigation-items-" + id,
11765
11763
  children: [
11766
11764
  label,
11767
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ExpansionIcon, { isExpanded: isOpen })
11765
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ExpansionIcon, { isExpanded: isOpen })
11768
11766
  ]
11769
11767
  }
11770
11768
  ),
11771
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11769
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11772
11770
  "ul",
11773
11771
  {
11774
11772
  id: "navigation-items-" + id,
@@ -11787,7 +11785,7 @@ var NavigationItemWithSubItem = ({
11787
11785
  { "opacity-0": !style }
11788
11786
  ),
11789
11787
  style: { ...style, zIndex },
11790
- children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11788
+ children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11791
11789
  import_link2.default,
11792
11790
  {
11793
11791
  href: link,
@@ -11801,7 +11799,7 @@ var NavigationItemWithSubItem = ({
11801
11799
  ] });
11802
11800
  };
11803
11801
  var NavigationItemList = ({ items, ...restProps }) => {
11804
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { ...restProps, className: (0, import_clsx32.default)("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("li", { children: isSubItem(item) ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
11802
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("ul", { ...restProps, className: (0, import_clsx32.default)("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("li", { children: isSubItem(item) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
11805
11803
  };
11806
11804
  var Navigation = ({ ...props }) => {
11807
11805
  const [isMobileOpen, setIsMobileOpen] = (0, import_react33.useState)(false);
@@ -11811,15 +11809,15 @@ var Navigation = ({ ...props }) => {
11811
11809
  menuRef.current?.focus();
11812
11810
  }, [isMobileOpen]);
11813
11811
  const zIndex = useZIndexRegister(isMobileOpen);
11814
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("nav", { children: [
11815
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11812
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("nav", { children: [
11813
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11816
11814
  NavigationItemList,
11817
11815
  {
11818
11816
  ...props,
11819
11817
  className: (0, import_clsx32.default)("hidden", { "desktop:flex": !isMobileOpen }, props.className)
11820
11818
  }
11821
11819
  ),
11822
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11820
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11823
11821
  Button,
11824
11822
  {
11825
11823
  layout: "icon",
@@ -11830,10 +11828,10 @@ var Navigation = ({ ...props }) => {
11830
11828
  "aria-haspopup": "true",
11831
11829
  "aria-expanded": isMobileOpen,
11832
11830
  "aria-controls": "navigation-menu-" + id,
11833
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react9.Menu, { className: "w-6 h-6" })
11831
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react9.Menu, { className: "w-6 h-6" })
11834
11832
  }
11835
11833
  ),
11836
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
11834
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
11837
11835
  "div",
11838
11836
  {
11839
11837
  id: "navigation-menu-" + id,
@@ -11855,17 +11853,17 @@ var Navigation = ({ ...props }) => {
11855
11853
  ),
11856
11854
  style: { zIndex },
11857
11855
  children: [
11858
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11856
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11859
11857
  Button,
11860
11858
  {
11861
11859
  layout: "icon",
11862
11860
  coloringStyle: "text",
11863
11861
  color: "neutral",
11864
11862
  onClick: () => setIsMobileOpen(false),
11865
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react9.XIcon, {})
11863
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react9.XIcon, {})
11866
11864
  }
11867
11865
  ),
11868
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(NavigationItemList, { ...props, className: (0, import_clsx32.default)("flex-col-8", props.className) })
11866
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavigationItemList, { ...props, className: (0, import_clsx32.default)("flex-col-8", props.className) })
11869
11867
  ]
11870
11868
  }
11871
11869
  )
@@ -11876,7 +11874,7 @@ var Navigation = ({ ...props }) => {
11876
11874
  var import_lucide_react10 = require("lucide-react");
11877
11875
  var import_clsx33 = __toESM(require("clsx"));
11878
11876
  var import_react34 = require("react");
11879
- var import_jsx_runtime44 = require("react/jsx-runtime");
11877
+ var import_jsx_runtime45 = require("react/jsx-runtime");
11880
11878
  var Pagination = ({
11881
11879
  pageIndex,
11882
11880
  pageCount,
@@ -11899,8 +11897,8 @@ var Pagination = ({
11899
11897
  const changePage = (page) => {
11900
11898
  onPageChanged(page);
11901
11899
  };
11902
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: (0, import_clsx33.default)("flex-row-1", className), style, children: [
11903
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11900
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: (0, import_clsx33.default)("flex-row-1", className), style, children: [
11901
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11904
11902
  Button,
11905
11903
  {
11906
11904
  layout: "icon",
@@ -11908,10 +11906,10 @@ var Pagination = ({
11908
11906
  color: "neutral",
11909
11907
  onClick: () => changePage(0),
11910
11908
  disabled: onFirstPage || noPages,
11911
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronFirst, {})
11909
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronFirst, {})
11912
11910
  }
11913
11911
  ),
11914
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11912
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11915
11913
  Button,
11916
11914
  {
11917
11915
  layout: "icon",
@@ -11919,11 +11917,11 @@ var Pagination = ({
11919
11917
  color: "neutral",
11920
11918
  onClick: () => changePage(pageIndex - 1),
11921
11919
  disabled: onFirstPage || noPages,
11922
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronLeft, {})
11920
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronLeft, {})
11923
11921
  }
11924
11922
  ),
11925
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex-row-2 min-w-56 items-center justify-center mx-2 text-center", children: [
11926
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11923
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex-row-2 min-w-56 items-center justify-center mx-2 text-center", children: [
11924
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11927
11925
  Input,
11928
11926
  {
11929
11927
  value,
@@ -11947,8 +11945,8 @@ var Pagination = ({
11947
11945
  editCompleteOptions: { delay: 800 }
11948
11946
  }
11949
11947
  ),
11950
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "select-none w-10", children: translation("of") }),
11951
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11948
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "select-none w-10", children: translation("of") }),
11949
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11952
11950
  "span",
11953
11951
  {
11954
11952
  className: "flex-row-2 w-24 items-center justify-center select-none h-10 bg-input-background text-input-text rounded-md font-bold",
@@ -11956,7 +11954,7 @@ var Pagination = ({
11956
11954
  }
11957
11955
  )
11958
11956
  ] }),
11959
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11957
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11960
11958
  Button,
11961
11959
  {
11962
11960
  layout: "icon",
@@ -11964,10 +11962,10 @@ var Pagination = ({
11964
11962
  color: "neutral",
11965
11963
  onClick: () => changePage(pageIndex + 1),
11966
11964
  disabled: onLastPage || noPages,
11967
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronRight, {})
11965
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronRight, {})
11968
11966
  }
11969
11967
  ),
11970
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11968
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11971
11969
  Button,
11972
11970
  {
11973
11971
  layout: "icon",
@@ -11975,7 +11973,7 @@ var Pagination = ({
11975
11973
  color: "neutral",
11976
11974
  onClick: () => changePage(pageCount - 1),
11977
11975
  disabled: onLastPage || noPages,
11978
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react10.ChevronLast, {})
11976
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react10.ChevronLast, {})
11979
11977
  }
11980
11978
  )
11981
11979
  ] });
@@ -11984,7 +11982,7 @@ var Pagination = ({
11984
11982
  // src/components/navigation/StepperBar.tsx
11985
11983
  var import_lucide_react11 = require("lucide-react");
11986
11984
  var import_clsx34 = __toESM(require("clsx"));
11987
- var import_jsx_runtime45 = require("react/jsx-runtime");
11985
+ var import_jsx_runtime46 = require("react/jsx-runtime");
11988
11986
  var defaultState = {
11989
11987
  currentStep: 0,
11990
11988
  seenSteps: /* @__PURE__ */ new Set([0])
@@ -12006,12 +12004,12 @@ var StepperBar = ({
12006
12004
  seenSteps.add(newStep);
12007
12005
  onChange({ currentStep: newStep, seenSteps });
12008
12006
  };
12009
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12007
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12010
12008
  "div",
12011
12009
  {
12012
12010
  className: (0, import_clsx34.default)("flex-row-2 justify-between", className),
12013
12011
  children: [
12014
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12012
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[2] justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12015
12013
  Button,
12016
12014
  {
12017
12015
  disabled: currentStep === 0 || disabledSteps.has(currentStep),
@@ -12020,14 +12018,14 @@ var StepperBar = ({
12020
12018
  },
12021
12019
  className: "flex-row-1 items-center justify-center",
12022
12020
  children: [
12023
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.ChevronLeft, { size: 14 }),
12021
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.ChevronLeft, { size: 14 }),
12024
12022
  translation("back")
12025
12023
  ]
12026
12024
  }
12027
12025
  ) }),
12028
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
12026
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[5] justify-center items-center", children: showDots && dots.map((value, index) => {
12029
12027
  const seen = seenSteps.has(index);
12030
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
12028
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12031
12029
  "div",
12032
12030
  {
12033
12031
  onClick: () => seen && update(index),
@@ -12047,7 +12045,7 @@ var StepperBar = ({
12047
12045
  index
12048
12046
  );
12049
12047
  }) }),
12050
- currentStep !== numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12048
+ currentStep !== numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12051
12049
  Button,
12052
12050
  {
12053
12051
  onClick: () => update(currentStep + 1),
@@ -12055,18 +12053,18 @@ var StepperBar = ({
12055
12053
  disabled: disabledSteps.has(currentStep),
12056
12054
  children: [
12057
12055
  translation("next"),
12058
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.ChevronRight, { size: 14 })
12056
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.ChevronRight, { size: 14 })
12059
12057
  ]
12060
12058
  }
12061
12059
  ) }),
12062
- currentStep === numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
12060
+ currentStep === numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-2 flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12063
12061
  Button,
12064
12062
  {
12065
12063
  disabled: disabledSteps.has(currentStep),
12066
12064
  onClick: onFinish,
12067
12065
  className: "flex-row-1 items-center justify-center",
12068
12066
  children: [
12069
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react11.Check, { size: 14 }),
12067
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.Check, { size: 14 }),
12070
12068
  finishText ?? translation("confirm")
12071
12069
  ]
12072
12070
  }
@@ -12077,7 +12075,7 @@ var StepperBar = ({
12077
12075
  };
12078
12076
  var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
12079
12077
  const [usedState, setUsedState] = useOverwritableState(state, onChange);
12080
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
12078
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12081
12079
  StepperBar,
12082
12080
  {
12083
12081
  ...props,
@@ -12093,7 +12091,7 @@ var import_lucide_react14 = require("lucide-react");
12093
12091
  // src/components/user-action/Checkbox.tsx
12094
12092
  var import_lucide_react12 = require("lucide-react");
12095
12093
  var import_clsx35 = __toESM(require("clsx"));
12096
- var import_jsx_runtime46 = require("react/jsx-runtime");
12094
+ var import_jsx_runtime47 = require("react/jsx-runtime");
12097
12095
  var checkboxSizeMapping = {
12098
12096
  small: "size-5 border-2",
12099
12097
  medium: "size-6 border-2",
@@ -12116,7 +12114,7 @@ var Checkbox = ({
12116
12114
  }) => {
12117
12115
  const usedSizeClass = checkboxSizeMapping[size];
12118
12116
  const innerIconSize = checkboxIconSizeMapping[size];
12119
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12117
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12120
12118
  "div",
12121
12119
  {
12122
12120
  ...props,
@@ -12147,8 +12145,8 @@ var Checkbox = ({
12147
12145
  "aria-disabled": disabled,
12148
12146
  tabIndex: disabled ? -1 : 0,
12149
12147
  children: [
12150
- !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react12.Check, { className: innerIconSize, "aria-hidden": true }),
12151
- indeterminate && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react12.Minus, { className: innerIconSize, "aria-hidden": true })
12148
+ !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react12.Check, { className: innerIconSize, "aria-hidden": true }),
12149
+ indeterminate && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react12.Minus, { className: innerIconSize, "aria-hidden": true })
12152
12150
  ]
12153
12151
  }
12154
12152
  );
@@ -12159,7 +12157,7 @@ var CheckboxUncontrolled = ({
12159
12157
  ...props
12160
12158
  }) => {
12161
12159
  const [checked, setChecked] = useOverwritableState(initialChecked, onCheckedChange);
12162
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12160
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12163
12161
  Checkbox,
12164
12162
  {
12165
12163
  ...props,
@@ -12172,7 +12170,7 @@ var CheckboxUncontrolled = ({
12172
12170
  // src/components/properties/PropertyBase.tsx
12173
12171
  var import_lucide_react13 = require("lucide-react");
12174
12172
  var import_clsx36 = __toESM(require("clsx"));
12175
- var import_jsx_runtime47 = require("react/jsx-runtime");
12173
+ var import_jsx_runtime48 = require("react/jsx-runtime");
12176
12174
  var PropertyBase = ({
12177
12175
  name,
12178
12176
  input,
@@ -12185,8 +12183,8 @@ var PropertyBase = ({
12185
12183
  }) => {
12186
12184
  const translation = useHightideTranslation();
12187
12185
  const requiredAndNoValue = softRequired && !hasValue;
12188
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: (0, import_clsx36.default)("flex-row-0 group", className), children: [
12189
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12186
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: (0, import_clsx36.default)("flex-row-0 group", className), children: [
12187
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
12190
12188
  "div",
12191
12189
  {
12192
12190
  className: (0, import_clsx36.default)(
@@ -12198,12 +12196,12 @@ var PropertyBase = ({
12198
12196
  className
12199
12197
  ),
12200
12198
  children: [
12201
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
12202
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-semibold", children: name })
12199
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "max-w-6 min-w-6 text-text-primary", children: icon }),
12200
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "font-semibold", children: name })
12203
12201
  ]
12204
12202
  }
12205
12203
  ),
12206
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12204
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
12207
12205
  "div",
12208
12206
  {
12209
12207
  className: (0, import_clsx36.default)(
@@ -12216,8 +12214,8 @@ var PropertyBase = ({
12216
12214
  ),
12217
12215
  children: [
12218
12216
  input({ softRequired, hasValue }),
12219
- requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "text-warning", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react13.AlertTriangle, { size: 24 }) }),
12220
- onRemove && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12217
+ requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "text-warning", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react13.AlertTriangle, { size: 24 }) }),
12218
+ onRemove && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12221
12219
  Button,
12222
12220
  {
12223
12221
  onClick: onRemove,
@@ -12236,7 +12234,7 @@ var PropertyBase = ({
12236
12234
 
12237
12235
  // src/components/properties/CheckboxProperty.tsx
12238
12236
  var import_react35 = require("react");
12239
- var import_jsx_runtime48 = require("react/jsx-runtime");
12237
+ var import_jsx_runtime49 = require("react/jsx-runtime");
12240
12238
  var CheckboxProperty = ({
12241
12239
  value,
12242
12240
  onChange,
@@ -12245,15 +12243,15 @@ var CheckboxProperty = ({
12245
12243
  }) => {
12246
12244
  const translation = useHightideTranslation();
12247
12245
  const id = (0, import_react35.useId)();
12248
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12246
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12249
12247
  PropertyBase,
12250
12248
  {
12251
12249
  ...baseProps,
12252
12250
  hasValue: true,
12253
12251
  readOnly,
12254
- icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react14.Check, { size: 24 }),
12255
- input: () => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex-row-2 items-center", children: [
12256
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12252
+ icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react14.Check, { size: 24 }),
12253
+ input: () => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex-row-2 items-center", children: [
12254
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12257
12255
  Checkbox,
12258
12256
  {
12259
12257
  id,
@@ -12263,7 +12261,7 @@ var CheckboxProperty = ({
12263
12261
  "aria-labelledby": id + "label"
12264
12262
  }
12265
12263
  ),
12266
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12264
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { id: id + "label", children: `${translation("yes")}/${translation("no")}` })
12267
12265
  ] })
12268
12266
  }
12269
12267
  );
@@ -12272,7 +12270,7 @@ var CheckboxProperty = ({
12272
12270
  // src/components/properties/DateProperty.tsx
12273
12271
  var import_lucide_react15 = require("lucide-react");
12274
12272
  var import_clsx37 = __toESM(require("clsx"));
12275
- var import_jsx_runtime49 = require("react/jsx-runtime");
12273
+ var import_jsx_runtime50 = require("react/jsx-runtime");
12276
12274
  var DateProperty = ({
12277
12275
  value,
12278
12276
  onChange,
@@ -12283,13 +12281,13 @@ var DateProperty = ({
12283
12281
  }) => {
12284
12282
  const hasValue = !!value;
12285
12283
  const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
12286
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12284
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12287
12285
  PropertyBase,
12288
12286
  {
12289
12287
  ...baseProps,
12290
12288
  hasValue,
12291
- icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react15.CalendarDays, { size: 24 }),
12292
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
12289
+ icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react15.CalendarDays, { size: 24 }),
12290
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12293
12291
  Input,
12294
12292
  {
12295
12293
  className: (0, import_clsx37.default)("default-style-none focus-style-none", { "bg-surface-warning": softRequired && !hasValue }),
@@ -12315,7 +12313,7 @@ var DateProperty = ({
12315
12313
  // src/components/properties/MultiSelectProperty.tsx
12316
12314
  var import_lucide_react16 = require("lucide-react");
12317
12315
  var import_clsx38 = __toESM(require("clsx"));
12318
- var import_jsx_runtime50 = require("react/jsx-runtime");
12316
+ var import_jsx_runtime51 = require("react/jsx-runtime");
12319
12317
  var MultiSelectProperty = ({
12320
12318
  children,
12321
12319
  values,
@@ -12323,13 +12321,13 @@ var MultiSelectProperty = ({
12323
12321
  ...props
12324
12322
  }) => {
12325
12323
  const hasValue = values.length > 0;
12326
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12324
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12327
12325
  PropertyBase,
12328
12326
  {
12329
12327
  ...props,
12330
12328
  hasValue,
12331
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react16.List, { size: 24 }),
12332
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
12329
+ icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react16.List, { size: 24 }),
12330
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12333
12331
  MultiSelectChipDisplay,
12334
12332
  {
12335
12333
  values,
@@ -12356,7 +12354,7 @@ var MultiSelectProperty = ({
12356
12354
  // src/components/properties/NumberProperty.tsx
12357
12355
  var import_lucide_react17 = require("lucide-react");
12358
12356
  var import_clsx39 = __toESM(require("clsx"));
12359
- var import_jsx_runtime51 = require("react/jsx-runtime");
12357
+ var import_jsx_runtime52 = require("react/jsx-runtime");
12360
12358
  var NumberProperty = ({
12361
12359
  value,
12362
12360
  onChange,
@@ -12368,21 +12366,21 @@ var NumberProperty = ({
12368
12366
  }) => {
12369
12367
  const translation = useHightideTranslation();
12370
12368
  const hasValue = value !== void 0;
12371
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12369
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12372
12370
  PropertyBase,
12373
12371
  {
12374
12372
  ...baseProps,
12375
12373
  onRemove,
12376
12374
  hasValue,
12377
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react17.Binary, { size: 24 }),
12375
+ icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react17.Binary, { size: 24 }),
12378
12376
  input: ({ softRequired }) => (
12379
12377
  // TODO this max width might be to low for some numbers
12380
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12378
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
12381
12379
  "div",
12382
12380
  {
12383
12381
  className: (0, import_clsx39.default)("relative flex-row-2 max-w-56", { "text-warning": softRequired && !hasValue }),
12384
12382
  children: [
12385
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12383
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12386
12384
  Input,
12387
12385
  {
12388
12386
  className: (0, import_clsx39.default)("default-style-none focus-style-none w-full pr-8", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
@@ -12408,7 +12406,7 @@ var NumberProperty = ({
12408
12406
  }
12409
12407
  }
12410
12408
  ),
12411
- suffix && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12409
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12412
12410
  "span",
12413
12411
  {
12414
12412
  className: (0, import_clsx39.default)(
@@ -12429,7 +12427,7 @@ var NumberProperty = ({
12429
12427
  // src/components/properties/SelectProperty.tsx
12430
12428
  var import_lucide_react18 = require("lucide-react");
12431
12429
  var import_clsx40 = __toESM(require("clsx"));
12432
- var import_jsx_runtime52 = require("react/jsx-runtime");
12430
+ var import_jsx_runtime53 = require("react/jsx-runtime");
12433
12431
  var SingleSelectProperty = ({
12434
12432
  children,
12435
12433
  value,
@@ -12438,13 +12436,13 @@ var SingleSelectProperty = ({
12438
12436
  ...props
12439
12437
  }) => {
12440
12438
  const hasValue = value !== void 0;
12441
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12439
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12442
12440
  PropertyBase,
12443
12441
  {
12444
12442
  ...props,
12445
12443
  hasValue,
12446
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react18.List, { size: 24 }),
12447
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12444
+ icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react18.List, { size: 24 }),
12445
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12448
12446
  Select,
12449
12447
  {
12450
12448
  value,
@@ -12473,7 +12471,7 @@ var import_clsx42 = __toESM(require("clsx"));
12473
12471
  // src/components/user-action/Textarea.tsx
12474
12472
  var import_react36 = require("react");
12475
12473
  var import_clsx41 = __toESM(require("clsx"));
12476
- var import_jsx_runtime53 = require("react/jsx-runtime");
12474
+ var import_jsx_runtime54 = require("react/jsx-runtime");
12477
12475
  var Textarea = (0, import_react36.forwardRef)(function Textarea2({
12478
12476
  id,
12479
12477
  onChange,
@@ -12490,7 +12488,7 @@ var Textarea = (0, import_react36.forwardRef)(function Textarea2({
12490
12488
  onEditCompleted?.(text);
12491
12489
  clearTimer();
12492
12490
  };
12493
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12491
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12494
12492
  "textarea",
12495
12493
  {
12496
12494
  ...props,
@@ -12522,7 +12520,7 @@ var TextareaUncontrolled = ({
12522
12520
  ...props
12523
12521
  }) => {
12524
12522
  const [text, setText] = useOverwritableState(value, onChangeText);
12525
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12523
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12526
12524
  Textarea,
12527
12525
  {
12528
12526
  ...props,
@@ -12542,7 +12540,7 @@ var TextareaWithHeadline = ({
12542
12540
  }) => {
12543
12541
  const genId = (0, import_react36.useId)();
12544
12542
  const usedId = id ?? genId;
12545
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
12543
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
12546
12544
  "div",
12547
12545
  {
12548
12546
  className: (0, import_clsx41.default)(
@@ -12554,8 +12552,8 @@ var TextareaWithHeadline = ({
12554
12552
  containerClassName
12555
12553
  ),
12556
12554
  children: [
12557
- headline && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12558
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12555
+ headline && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Label, { size: "md", ...headlineProps, htmlFor: usedId, children: headline }),
12556
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12559
12557
  Textarea,
12560
12558
  {
12561
12559
  ...props,
@@ -12572,7 +12570,7 @@ var TextareaWithHeadline = ({
12572
12570
  };
12573
12571
 
12574
12572
  // src/components/properties/TextProperty.tsx
12575
- var import_jsx_runtime54 = require("react/jsx-runtime");
12573
+ var import_jsx_runtime55 = require("react/jsx-runtime");
12576
12574
  var TextProperty = ({
12577
12575
  value,
12578
12576
  readOnly,
@@ -12583,14 +12581,14 @@ var TextProperty = ({
12583
12581
  }) => {
12584
12582
  const translation = useHightideTranslation();
12585
12583
  const hasValue = value !== void 0;
12586
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12584
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12587
12585
  PropertyBase,
12588
12586
  {
12589
12587
  ...baseProps,
12590
12588
  onRemove,
12591
12589
  hasValue,
12592
- icon: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react19.Text, { size: 24 }),
12593
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12590
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react19.Text, { size: 24 }),
12591
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12594
12592
  Textarea,
12595
12593
  {
12596
12594
  className: (0, import_clsx42.default)(
@@ -12623,11 +12621,11 @@ var TextProperty = ({
12623
12621
 
12624
12622
  // src/components/table/FillerRowElement.tsx
12625
12623
  var import_clsx43 = require("clsx");
12626
- var import_jsx_runtime55 = require("react/jsx-runtime");
12624
+ var import_jsx_runtime56 = require("react/jsx-runtime");
12627
12625
  var FillerRowElement = ({
12628
12626
  className
12629
12627
  }) => {
12630
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: (0, import_clsx43.clsx)("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
12628
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: (0, import_clsx43.clsx)("flex flex-row items-center w-1/2 h-4 text-disabled font-bold", className), children: "-" });
12631
12629
  };
12632
12630
 
12633
12631
  // src/components/table/Filter.ts
@@ -12651,12 +12649,12 @@ var import_react_table = require("@tanstack/react-table");
12651
12649
 
12652
12650
  // src/components/table/TableCell.tsx
12653
12651
  var import_clsx44 = require("clsx");
12654
- var import_jsx_runtime56 = require("react/jsx-runtime");
12652
+ var import_jsx_runtime57 = require("react/jsx-runtime");
12655
12653
  var TableCell = ({
12656
12654
  children,
12657
12655
  className
12658
12656
  }) => {
12659
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: (0, import_clsx44.clsx)("block max-w-full overflow-ellipsis truncate", className), children });
12657
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: (0, import_clsx44.clsx)("block max-w-full overflow-ellipsis truncate", className), children });
12660
12658
  };
12661
12659
 
12662
12660
  // src/hooks/useResizeCallbackWrapper.ts
@@ -12678,7 +12676,7 @@ var import_clsx46 = __toESM(require("clsx"));
12678
12676
  var import_react38 = require("react");
12679
12677
  var import_clsx45 = require("clsx");
12680
12678
  var import_react_dom4 = require("react-dom");
12681
- var import_jsx_runtime57 = require("react/jsx-runtime");
12679
+ var import_jsx_runtime58 = require("react/jsx-runtime");
12682
12680
  var Tooltip = ({
12683
12681
  tooltip,
12684
12682
  children,
@@ -12739,7 +12737,7 @@ var Tooltip = ({
12739
12737
  });
12740
12738
  const zIndex = useZIndexRegister(isActive);
12741
12739
  const zIndexTriangle = useZIndexRegister(isActive);
12742
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
12740
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
12743
12741
  "div",
12744
12742
  {
12745
12743
  ref: anchorRef,
@@ -12772,9 +12770,9 @@ var Tooltip = ({
12772
12770
  }),
12773
12771
  children: [
12774
12772
  children,
12775
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Visibility, { isVisible: isActive, children: [
12773
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Visibility, { isVisible: isActive, children: [
12776
12774
  (0, import_react_dom4.createPortal)(
12777
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
12775
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
12778
12776
  "div",
12779
12777
  {
12780
12778
  ref: containerRef,
@@ -12790,7 +12788,7 @@ var Tooltip = ({
12790
12788
  document.body
12791
12789
  ),
12792
12790
  (0, import_react_dom4.createPortal)(
12793
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
12791
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
12794
12792
  "div",
12795
12793
  {
12796
12794
  ref: triangleRef,
@@ -12812,7 +12810,7 @@ var Tooltip = ({
12812
12810
  };
12813
12811
 
12814
12812
  // src/components/table/TableSortButton.tsx
12815
- var import_jsx_runtime58 = require("react/jsx-runtime");
12813
+ var import_jsx_runtime59 = require("react/jsx-runtime");
12816
12814
  var TableSortButton = ({
12817
12815
  sortDirection,
12818
12816
  invert = false,
@@ -12824,16 +12822,16 @@ var TableSortButton = ({
12824
12822
  }) => {
12825
12823
  const translation = useHightideTranslation();
12826
12824
  const { sortingsCount, index } = sortingIndexDisplay;
12827
- let icon = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react20.ChevronsUpDown, { className: "size-4" });
12825
+ let icon = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react20.ChevronsUpDown, { className: "size-4" });
12828
12826
  if (sortDirection) {
12829
12827
  let usedSortDirection = sortDirection;
12830
12828
  if (invert) {
12831
12829
  usedSortDirection = usedSortDirection === "desc" ? "asc" : "desc";
12832
12830
  }
12833
- icon = usedSortDirection === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react20.ChevronUp, { className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react20.ChevronDown, { className: "size-4" });
12831
+ icon = usedSortDirection === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react20.ChevronUp, { className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react20.ChevronDown, { className: "size-4" });
12834
12832
  }
12835
12833
  const hasSortingIndex = !!sortingIndexDisplay && sortingsCount > 1 && index > 0;
12836
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
12834
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Tooltip, { tooltip: translation("rSortingOrderAfter", { otherSortings: index - 1 }), disabled: !hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
12837
12835
  Button,
12838
12836
  {
12839
12837
  layout: hasSortingIndex ? "default" : "icon",
@@ -12842,7 +12840,7 @@ var TableSortButton = ({
12842
12840
  className: (0, import_clsx46.default)("relative", className),
12843
12841
  ...props,
12844
12842
  children: [
12845
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
12843
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Visibility, { isVisible: hasSortingIndex, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
12846
12844
  "div",
12847
12845
  {
12848
12846
  className: (0, import_clsx46.default)("absolute bottom-0 right-1/2 translate-x-1/2 translate-y-2/3 z-1 primary coloring-solid rounded-full h-4 w-5 text-sm"),
@@ -12995,14 +12993,14 @@ var useOutsideClick = (refs, handler) => {
12995
12993
  };
12996
12994
 
12997
12995
  // src/components/user-action/Menu.tsx
12998
- var import_jsx_runtime59 = require("react/jsx-runtime");
12996
+ var import_jsx_runtime60 = require("react/jsx-runtime");
12999
12997
  var MenuItem = ({
13000
12998
  children,
13001
12999
  onClick,
13002
13000
  alignment = "left",
13003
13001
  isDisabled = false,
13004
13002
  className
13005
- }) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13003
+ }) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13006
13004
  "div",
13007
13005
  {
13008
13006
  className: (0, import_clsx47.default)("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold text-nowrap", {
@@ -13072,9 +13070,9 @@ var Menu = ({
13072
13070
  }
13073
13071
  }, [isOpen]);
13074
13072
  const zIndex = useZIndexRegister(isOpen);
13075
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
13073
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
13076
13074
  trigger(bag, triggerRef),
13077
- (0, import_react_dom5.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13075
+ (0, import_react_dom5.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13078
13076
  "div",
13079
13077
  {
13080
13078
  ref: menuRef,
@@ -13105,7 +13103,7 @@ var Menu = ({
13105
13103
 
13106
13104
  // src/components/table/TableFilterButton.tsx
13107
13105
  var import_react42 = require("react");
13108
- var import_jsx_runtime60 = require("react/jsx-runtime");
13106
+ var import_jsx_runtime61 = require("react/jsx-runtime");
13109
13107
  var TableFilterButton = ({
13110
13108
  filterType,
13111
13109
  column
@@ -13117,21 +13115,21 @@ var TableFilterButton = ({
13117
13115
  (0, import_react42.useEffect)(() => {
13118
13116
  setFilterValue(columnFilterValue);
13119
13117
  }, [columnFilterValue]);
13120
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13118
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13121
13119
  Menu,
13122
13120
  {
13123
- trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { ref, className: "relative", children: [
13124
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13121
+ trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { ref, className: "relative", children: [
13122
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13125
13123
  Button,
13126
13124
  {
13127
13125
  layout: "icon",
13128
13126
  color: "neutral",
13129
13127
  size: "tiny",
13130
13128
  onClick: toggleOpen,
13131
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react21.FilterIcon, { className: "size-4" })
13129
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react21.FilterIcon, { className: "size-4" })
13132
13130
  }
13133
13131
  ),
13134
- hasFilter && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13132
+ hasFilter && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13135
13133
  "div",
13136
13134
  {
13137
13135
  className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
@@ -13139,9 +13137,9 @@ var TableFilterButton = ({
13139
13137
  }
13140
13138
  )
13141
13139
  ] }),
13142
- children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
13143
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
13144
- filterType === "text" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13140
+ children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
13141
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("h4", { className: "typography-label-md-semibold", children: translation("filter") }),
13142
+ filterType === "text" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13145
13143
  Input,
13146
13144
  {
13147
13145
  value: filterValue ?? "",
@@ -13151,8 +13149,8 @@ var TableFilterButton = ({
13151
13149
  className: "h-10"
13152
13150
  }
13153
13151
  ),
13154
- filterType === "range" && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-row-2 items-center", children: [
13155
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13152
+ filterType === "range" && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-2 items-center", children: [
13153
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13156
13154
  Input,
13157
13155
  {
13158
13156
  value: filterValue?.[0] ?? "",
@@ -13165,8 +13163,8 @@ var TableFilterButton = ({
13165
13163
  className: "h-10 input-indicator-hidden w-40"
13166
13164
  }
13167
13165
  ),
13168
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "font-bold", children: "-" }),
13169
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13166
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "font-bold", children: "-" }),
13167
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13170
13168
  Input,
13171
13169
  {
13172
13170
  value: filterValue?.[1] ?? "",
@@ -13180,8 +13178,8 @@ var TableFilterButton = ({
13180
13178
  }
13181
13179
  )
13182
13180
  ] }),
13183
- filterType === "dateRange" && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
13184
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13181
+ filterType === "dateRange" && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
13182
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13185
13183
  Input,
13186
13184
  {
13187
13185
  value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
@@ -13194,7 +13192,7 @@ var TableFilterButton = ({
13194
13192
  className: "h-10 w-50"
13195
13193
  }
13196
13194
  ),
13197
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13195
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13198
13196
  Input,
13199
13197
  {
13200
13198
  value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
@@ -13208,12 +13206,12 @@ var TableFilterButton = ({
13208
13206
  }
13209
13207
  )
13210
13208
  ] }),
13211
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-row-2 justify-end w-full", children: [
13212
- hasFilter && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { color: "negative", size: "small", onClick: () => {
13209
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-2 justify-end w-full", children: [
13210
+ hasFilter && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { color: "negative", size: "small", onClick: () => {
13213
13211
  column.setFilterValue(void 0);
13214
13212
  close();
13215
13213
  }, children: translation("remove") }),
13216
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { size: "small", onClick: () => {
13214
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { size: "small", onClick: () => {
13217
13215
  column.setFilterValue(filterValue);
13218
13216
  close();
13219
13217
  }, children: translation("apply") })
@@ -13224,7 +13222,7 @@ var TableFilterButton = ({
13224
13222
  };
13225
13223
 
13226
13224
  // src/components/table/Table.tsx
13227
- var import_jsx_runtime61 = require("react/jsx-runtime");
13225
+ var import_jsx_runtime62 = require("react/jsx-runtime");
13228
13226
  var Table = ({
13229
13227
  data,
13230
13228
  fillerRow,
@@ -13344,7 +13342,7 @@ var Table = ({
13344
13342
  minSize: 60,
13345
13343
  maxSize: 700,
13346
13344
  cell: ({ cell }) => {
13347
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TableCell, { children: cell.getValue() });
13345
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TableCell, { children: cell.getValue() });
13348
13346
  },
13349
13347
  ...defaultColumn
13350
13348
  },
@@ -13429,8 +13427,8 @@ var Table = ({
13429
13427
  }
13430
13428
  return colSizes;
13431
13429
  }, [table.getState().columnSizingInfo, table.getState().columnSizing]);
13432
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { ref, className: (0, import_clsx48.default)("flex-col-4", className), children: [
13433
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_clsx48.default)("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
13430
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { ref, className: (0, import_clsx48.default)("flex-col-4", className), children: [
13431
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: (0, import_clsx48.default)("flex-col-0 w-full overflow-auto", tableContainerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13434
13432
  "table",
13435
13433
  {
13436
13434
  ref: tableRef,
@@ -13440,7 +13438,7 @@ var Table = ({
13440
13438
  width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
13441
13439
  },
13442
13440
  children: [
13443
- table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13441
+ table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13444
13442
  "col",
13445
13443
  {
13446
13444
  style: {
@@ -13451,15 +13449,15 @@ var Table = ({
13451
13449
  },
13452
13450
  header.id
13453
13451
  )) }, headerGroup.id)),
13454
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
13455
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
13452
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
13453
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13456
13454
  "th",
13457
13455
  {
13458
13456
  colSpan: header.colSpan,
13459
13457
  className: (0, import_clsx48.default)("relative group", header.column.columnDef.meta?.className),
13460
13458
  children: [
13461
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-1 items-center", children: [
13462
- header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13459
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1 items-center", children: [
13460
+ header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13463
13461
  TableSortButton,
13464
13462
  {
13465
13463
  sortDirection: header.column.getIsSorted(),
@@ -13485,7 +13483,7 @@ var Table = ({
13485
13483
  }
13486
13484
  }
13487
13485
  ),
13488
- header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13486
+ header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13489
13487
  TableFilterButton,
13490
13488
  {
13491
13489
  column: header.column,
@@ -13497,7 +13495,7 @@ var Table = ({
13497
13495
  header.getContext()
13498
13496
  )
13499
13497
  ] }) }),
13500
- header.column.getCanResize() && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13498
+ header.column.getCanResize() && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13501
13499
  "div",
13502
13500
  {
13503
13501
  onMouseDown: header.getResizeHandler(),
@@ -13516,15 +13514,15 @@ var Table = ({
13516
13514
  header.id
13517
13515
  );
13518
13516
  }) }, headerGroup.id)) }),
13519
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("tbody", { children: [
13517
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("tbody", { children: [
13520
13518
  table.getRowModel().rows.map((row) => {
13521
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13519
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13522
13520
  "tr",
13523
13521
  {
13524
13522
  onClick: () => onRowClick?.(row, table),
13525
13523
  className: table.options.meta?.bodyRowClassName,
13526
13524
  children: row.getVisibleCells().map((cell) => {
13527
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { children: (0, import_react_table.flexRender)(
13525
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("td", { children: (0, import_react_table.flexRender)(
13528
13526
  cell.column.columnDef.cell,
13529
13527
  cell.getContext()
13530
13528
  ) }, cell.id);
@@ -13534,15 +13532,15 @@ var Table = ({
13534
13532
  );
13535
13533
  }),
13536
13534
  range(table.getState().pagination.pageSize - table.getRowModel().rows.length, { allowEmptyRange: true }).map((row, index) => {
13537
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tr", { children: columns.map((column) => {
13538
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FillerRowElement, {}) }, column.id);
13535
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("tr", { children: columns.map((column) => {
13536
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FillerRowElement, {}) }, column.id);
13539
13537
  }) }, "filler-row-" + index);
13540
13538
  })
13541
13539
  ] })
13542
13540
  ]
13543
13541
  }
13544
13542
  ) }),
13545
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13543
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13546
13544
  Pagination,
13547
13545
  {
13548
13546
  pageIndex: table.getState().pagination.pageIndex,
@@ -13554,7 +13552,7 @@ var Table = ({
13554
13552
  };
13555
13553
  var TableUncontrolled = ({ data, ...props }) => {
13556
13554
  const [usedDate] = useOverwritableState(data);
13557
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13555
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13558
13556
  Table,
13559
13557
  {
13560
13558
  ...props,
@@ -13578,7 +13576,7 @@ var TableWithSelection = ({
13578
13576
  {
13579
13577
  id: selectionRowId,
13580
13578
  header: ({ table }) => {
13581
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13579
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13582
13580
  Checkbox,
13583
13581
  {
13584
13582
  checked: table.getIsAllRowsSelected(),
@@ -13591,7 +13589,7 @@ var TableWithSelection = ({
13591
13589
  );
13592
13590
  },
13593
13591
  cell: ({ row }) => {
13594
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13592
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13595
13593
  Checkbox,
13596
13594
  {
13597
13595
  disabled: !row.getCanSelect(),
@@ -13609,15 +13607,15 @@ var TableWithSelection = ({
13609
13607
  ...columns
13610
13608
  ];
13611
13609
  }, [columns, selectionRowId]);
13612
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13610
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13613
13611
  Table,
13614
13612
  {
13615
13613
  columns: columnsWithSelection,
13616
13614
  fillerRow: (columnId, table) => {
13617
13615
  if (columnId === selectionRowId) {
13618
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13616
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Checkbox, { checked: false, disabled: true, className: "max-w-6" });
13619
13617
  }
13620
- return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FillerRowElement, {});
13618
+ return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FillerRowElement, {});
13621
13619
  },
13622
13620
  state: {
13623
13621
  rowSelection,
@@ -13652,7 +13650,7 @@ var writeToClipboard = (text) => {
13652
13650
 
13653
13651
  // src/components/user-action/CopyToClipboardWrapper.tsx
13654
13652
  var import_lucide_react22 = require("lucide-react");
13655
- var import_jsx_runtime62 = require("react/jsx-runtime");
13653
+ var import_jsx_runtime63 = require("react/jsx-runtime");
13656
13654
  var CopyToClipboardWrapper = ({
13657
13655
  children,
13658
13656
  textToCopy,
@@ -13683,7 +13681,7 @@ var CopyToClipboardWrapper = ({
13683
13681
  left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
13684
13682
  right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
13685
13683
  };
13686
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13684
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
13687
13685
  "div",
13688
13686
  {
13689
13687
  className: (0, import_clsx49.clsx)("relative inline-block cursor-copy", containerClassName),
@@ -13701,7 +13699,7 @@ var CopyToClipboardWrapper = ({
13701
13699
  },
13702
13700
  children: [
13703
13701
  children,
13704
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
13702
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
13705
13703
  "div",
13706
13704
  {
13707
13705
  className: (0, import_clsx49.clsx)(
@@ -13716,15 +13714,15 @@ var CopyToClipboardWrapper = ({
13716
13714
  opacity: isShowingIndication || isShowingConfirmation ? 1 : 0
13717
13715
  },
13718
13716
  children: [
13719
- isShowingConfirmation && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1", children: [
13720
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.CheckIcon, { size: 16, className: "text-positive" }),
13717
+ isShowingConfirmation && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-1", children: [
13718
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react22.CheckIcon, { size: 16, className: "text-positive" }),
13721
13719
  translation("copied")
13722
13720
  ] }),
13723
- isShowingIndication && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1 text-description", children: [
13724
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.Copy, { size: 16 }),
13721
+ isShowingIndication && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-1 text-description", children: [
13722
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react22.Copy, { size: 16 }),
13725
13723
  translation("clickToCopy")
13726
13724
  ] }),
13727
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
13725
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
13728
13726
  "div",
13729
13727
  {
13730
13728
  className: (0, import_clsx49.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
@@ -13741,7 +13739,7 @@ var CopyToClipboardWrapper = ({
13741
13739
 
13742
13740
  // src/components/user-action/DateAndTimePicker.tsx
13743
13741
  var import_clsx50 = __toESM(require("clsx"));
13744
- var import_jsx_runtime63 = require("react/jsx-runtime");
13742
+ var import_jsx_runtime64 = require("react/jsx-runtime");
13745
13743
  var DateTimePicker = ({
13746
13744
  value = /* @__PURE__ */ new Date(),
13747
13745
  start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
@@ -13756,7 +13754,7 @@ var DateTimePicker = ({
13756
13754
  let dateDisplay;
13757
13755
  let timeDisplay;
13758
13756
  if (useDate) {
13759
- dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
13757
+ dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13760
13758
  DatePicker,
13761
13759
  {
13762
13760
  ...datePickerProps,
@@ -13770,7 +13768,7 @@ var DateTimePicker = ({
13770
13768
  );
13771
13769
  }
13772
13770
  if (useTime) {
13773
- timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
13771
+ timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13774
13772
  TimePicker,
13775
13773
  {
13776
13774
  ...timePickerProps,
@@ -13780,7 +13778,7 @@ var DateTimePicker = ({
13780
13778
  }
13781
13779
  );
13782
13780
  }
13783
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-2 min-h-71 max-h-71", children: [
13781
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex-row-2 min-h-71 max-h-71", children: [
13784
13782
  dateDisplay,
13785
13783
  timeDisplay
13786
13784
  ] });
@@ -13789,7 +13787,7 @@ var DateTimePicker = ({
13789
13787
  // src/components/user-action/ScrollPicker.tsx
13790
13788
  var import_react45 = require("react");
13791
13789
  var import_clsx51 = __toESM(require("clsx"));
13792
- var import_jsx_runtime64 = require("react/jsx-runtime");
13790
+ var import_jsx_runtime65 = require("react/jsx-runtime");
13793
13791
  var up = 1;
13794
13792
  var down = -1;
13795
13793
  var ScrollPicker = ({
@@ -13928,7 +13926,7 @@ var ScrollPicker = ({
13928
13926
  }
13929
13927
  return clamp(1 - opacityValue / max);
13930
13928
  };
13931
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13929
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13932
13930
  "div",
13933
13931
  {
13934
13932
  className: "relative overflow-hidden",
@@ -13939,15 +13937,15 @@ var ScrollPicker = ({
13939
13937
  setAnimation(({ velocity, ...animationData }) => ({ ...animationData, velocity: velocity + deltaY }));
13940
13938
  }
13941
13939
  },
13942
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
13943
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13940
+ children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
13941
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13944
13942
  "div",
13945
13943
  {
13946
13944
  className: "absolute z-[1] top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2 w-full min-w-[40px] border border-divider/50 border-y-2 border-x-0 ",
13947
13945
  style: { height: `${itemHeight}px` }
13948
13946
  }
13949
13947
  ),
13950
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13948
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13951
13949
  "div",
13952
13950
  {
13953
13951
  className: "flex-col-2 select-none",
@@ -13955,7 +13953,7 @@ var ScrollPicker = ({
13955
13953
  transform: `translateY(${-transition * (distance + itemHeight)}px)`,
13956
13954
  columnGap: `${distance}px`
13957
13955
  },
13958
- children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
13956
+ children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
13959
13957
  "div",
13960
13958
  {
13961
13959
  className: (0, import_clsx51.default)(
@@ -13988,7 +13986,7 @@ var ScrollPicker = ({
13988
13986
  var import_react46 = require("react");
13989
13987
  var import_lucide_react23 = require("lucide-react");
13990
13988
  var import_clsx52 = __toESM(require("clsx"));
13991
- var import_jsx_runtime65 = require("react/jsx-runtime");
13989
+ var import_jsx_runtime66 = require("react/jsx-runtime");
13992
13990
  var DateTimeInput = ({
13993
13991
  date,
13994
13992
  onValueChange,
@@ -14016,9 +14014,9 @@ var DateTimeInput = ({
14016
14014
  const cleanInputProps = { ...props };
14017
14015
  delete cleanInputProps["isShowingError"];
14018
14016
  delete cleanInputProps["setIsShowingError"];
14019
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
14020
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { ...containerProps, className: (0, import_clsx52.default)("relative w-full", containerProps?.className), children: [
14021
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14017
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
14018
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { ...containerProps, className: (0, import_clsx52.default)("relative w-full", containerProps?.className), children: [
14019
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14022
14020
  Input,
14023
14021
  {
14024
14022
  ...cleanInputProps,
@@ -14036,7 +14034,7 @@ var DateTimeInput = ({
14036
14034
  )
14037
14035
  }
14038
14036
  ),
14039
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14037
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14040
14038
  Button,
14041
14039
  {
14042
14040
  coloringStyle: "text",
@@ -14046,18 +14044,18 @@ var DateTimeInput = ({
14046
14044
  className: "absolute right-1 top-1/2 -translate-y-1/2",
14047
14045
  disabled: isReadOnly,
14048
14046
  onClick: () => setIsOpen((prevState) => !prevState),
14049
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react23.CalendarIcon, { className: "size-5" })
14047
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react23.CalendarIcon, { className: "size-5" })
14050
14048
  }
14051
14049
  )
14052
14050
  ] }),
14053
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
14051
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Visibility, { isVisible: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
14054
14052
  "div",
14055
14053
  {
14056
14054
  ref: containerRef,
14057
14055
  className: "absolute left-0 flex-col-3 rounded-lg shadow-xl border bg-surface-variant text-on-surface border-divider p-2",
14058
14056
  style: { zIndex },
14059
14057
  children: [
14060
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14058
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14061
14059
  DateTimePicker,
14062
14060
  {
14063
14061
  ...pickerProps,
@@ -14068,8 +14066,8 @@ var DateTimeInput = ({
14068
14066
  }
14069
14067
  }
14070
14068
  ),
14071
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex-row-2 justify-end", children: [
14072
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14069
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex-row-2 justify-end", children: [
14070
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Visibility, { isVisible: !!onRemove, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14073
14071
  Button,
14074
14072
  {
14075
14073
  size: "medium",
@@ -14081,7 +14079,7 @@ var DateTimeInput = ({
14081
14079
  children: translation("clear")
14082
14080
  }
14083
14081
  ) }),
14084
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14082
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14085
14083
  Button,
14086
14084
  {
14087
14085
  size: "medium",
@@ -14103,7 +14101,7 @@ var DateTimeInputUncontrolled = ({
14103
14101
  ...props
14104
14102
  }) => {
14105
14103
  const [date, setDate] = useOverwritableState((0, import_react46.useMemo)(() => initialDate ?? /* @__PURE__ */ new Date(), [initialDate]));
14106
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
14104
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14107
14105
  DateTimeInput,
14108
14106
  {
14109
14107
  ...props,
@@ -14124,7 +14122,7 @@ var DateTimeInputUncontrolled = ({
14124
14122
  var import_react47 = require("react");
14125
14123
  var import_react48 = require("react");
14126
14124
  var import_clsx53 = __toESM(require("clsx"));
14127
- var import_jsx_runtime66 = require("react/jsx-runtime");
14125
+ var import_jsx_runtime67 = require("react/jsx-runtime");
14128
14126
  var InsideLabelInput = (0, import_react48.forwardRef)(function InsideLabelInput2({
14129
14127
  id: customId,
14130
14128
  label,
@@ -14134,8 +14132,8 @@ var InsideLabelInput = (0, import_react48.forwardRef)(function InsideLabelInput2
14134
14132
  const [isFocused, setIsFocused] = (0, import_react48.useState)(false);
14135
14133
  const generatedId = (0, import_react47.useId)();
14136
14134
  const id = customId ?? generatedId;
14137
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: (0, import_clsx53.default)("relative"), children: [
14138
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14135
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: (0, import_clsx53.default)("relative"), children: [
14136
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14139
14137
  Input,
14140
14138
  {
14141
14139
  ...props,
@@ -14153,7 +14151,7 @@ var InsideLabelInput = (0, import_react48.forwardRef)(function InsideLabelInput2
14153
14151
  }
14154
14152
  }
14155
14153
  ),
14156
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14154
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14157
14155
  "label",
14158
14156
  {
14159
14157
  id: id + "-label",
@@ -14175,7 +14173,7 @@ var InsideLabelInputUncontrolled = ({
14175
14173
  ...props
14176
14174
  }) => {
14177
14175
  const [value, setValue] = useOverwritableState(initialValue, props.onChangeText);
14178
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
14176
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14179
14177
  InsideLabelInput,
14180
14178
  {
14181
14179
  ...props,
@@ -14188,7 +14186,7 @@ var InsideLabelInputUncontrolled = ({
14188
14186
  // src/components/user-action/input/SearchBar.tsx
14189
14187
  var import_lucide_react24 = require("lucide-react");
14190
14188
  var import_clsx54 = require("clsx");
14191
- var import_jsx_runtime67 = require("react/jsx-runtime");
14189
+ var import_jsx_runtime68 = require("react/jsx-runtime");
14192
14190
  var SearchBar = ({
14193
14191
  onSearch,
14194
14192
  searchButtonProps,
@@ -14196,8 +14194,8 @@ var SearchBar = ({
14196
14194
  ...inputProps
14197
14195
  }) => {
14198
14196
  const translation = useHightideTranslation();
14199
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { ...containerProps, className: (0, import_clsx54.clsx)("relative", containerProps?.className), children: [
14200
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14197
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { ...containerProps, className: (0, import_clsx54.clsx)("relative", containerProps?.className), children: [
14198
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14201
14199
  InputUncontrolled,
14202
14200
  {
14203
14201
  ...inputProps,
@@ -14205,7 +14203,7 @@ var SearchBar = ({
14205
14203
  className: (0, import_clsx54.clsx)("pr-10 w-full", inputProps.className)
14206
14204
  }
14207
14205
  ),
14208
- onSearch && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
14206
+ onSearch && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14209
14207
  Button,
14210
14208
  {
14211
14209
  ...searchButtonProps,
@@ -14215,7 +14213,7 @@ var SearchBar = ({
14215
14213
  coloringStyle: "text",
14216
14214
  onClick: (event) => onSearch(event),
14217
14215
  className: (0, import_clsx54.clsx)("absolute right-1 top-1/2 -translate-y-1/2", searchButtonProps?.className),
14218
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react24.Search, { className: "w-full h-full" })
14216
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react24.Search, { className: "w-full h-full" })
14219
14217
  }
14220
14218
  )
14221
14219
  ] });
@@ -14225,7 +14223,7 @@ var SearchBar = ({
14225
14223
  var import_react49 = require("react");
14226
14224
  var import_lucide_react25 = require("lucide-react");
14227
14225
  var import_clsx55 = __toESM(require("clsx"));
14228
- var import_jsx_runtime68 = require("react/jsx-runtime");
14226
+ var import_jsx_runtime69 = require("react/jsx-runtime");
14229
14227
  var ToggleableInput = (0, import_react49.forwardRef)(function ToggleableInput2({
14230
14228
  value,
14231
14229
  initialState = "display",
@@ -14240,8 +14238,8 @@ var ToggleableInput = (0, import_react49.forwardRef)(function ToggleableInput2({
14240
14238
  innerRef.current?.focus();
14241
14239
  }
14242
14240
  }, [isEditing]);
14243
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: (0, import_clsx55.default)("relative flex-row-2", { "flex-1": isEditing }), children: [
14244
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14241
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: (0, import_clsx55.default)("relative flex-row-2", { "flex-1": isEditing }), children: [
14242
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
14245
14243
  Input,
14246
14244
  {
14247
14245
  ...props,
@@ -14267,9 +14265,9 @@ var ToggleableInput = (0, import_react49.forwardRef)(function ToggleableInput2({
14267
14265
  })
14268
14266
  }
14269
14267
  ),
14270
- !isEditing && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
14271
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: (0, import_clsx55.default)(" truncate"), children: value }),
14272
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react25.Pencil, { className: (0, import_clsx55.default)(`size-force-4`, { "text-transparent": isEditing }) })
14268
+ !isEditing && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "absolute left-0 flex-row-2 items-center pointer-events-none touch-none w-full overflow-hidden", children: [
14269
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0, import_clsx55.default)(" truncate"), children: value }),
14270
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_lucide_react25.Pencil, { className: (0, import_clsx55.default)(`size-force-4`, { "text-transparent": isEditing }) })
14273
14271
  ] })
14274
14272
  ] });
14275
14273
  });
@@ -14279,7 +14277,7 @@ var ToggleableInputUncontrolled = ({
14279
14277
  ...restProps
14280
14278
  }) => {
14281
14279
  const [value, setValue] = useOverwritableState(initialValue, onChangeText);
14282
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
14280
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
14283
14281
  ToggleableInput,
14284
14282
  {
14285
14283
  value,
@@ -14293,7 +14291,7 @@ var ToggleableInputUncontrolled = ({
14293
14291
  var import_react50 = require("react");
14294
14292
  var import_react51 = require("react");
14295
14293
  var import_react52 = require("react");
14296
- var import_jsx_runtime69 = require("react/jsx-runtime");
14294
+ var import_jsx_runtime70 = require("react/jsx-runtime");
14297
14295
  var FocusTrap = (0, import_react52.forwardRef)(function FocusTrap2({
14298
14296
  active = true,
14299
14297
  initialFocus,
@@ -14303,7 +14301,7 @@ var FocusTrap = (0, import_react52.forwardRef)(function FocusTrap2({
14303
14301
  const innerRef = (0, import_react50.useRef)(null);
14304
14302
  (0, import_react51.useImperativeHandle)(forwardedRef, () => innerRef.current);
14305
14303
  useFocusTrap({ container: innerRef, active, initialFocus, focusFirst });
14306
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { ref: innerRef, ...props });
14304
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { ref: innerRef, ...props });
14307
14305
  });
14308
14306
 
14309
14307
  // src/components/utils/Transition.tsx