@helpwave/hightide 0.1.19 → 0.1.21

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.
Files changed (140) hide show
  1. package/dist/components/date/DatePicker.js +3 -2
  2. package/dist/components/date/DatePicker.js.map +1 -1
  3. package/dist/components/date/DatePicker.mjs +3 -2
  4. package/dist/components/date/DatePicker.mjs.map +1 -1
  5. package/dist/components/date/DayPicker.js.map +1 -1
  6. package/dist/components/date/DayPicker.mjs.map +1 -1
  7. package/dist/components/date/TimeDisplay.js.map +1 -1
  8. package/dist/components/date/TimeDisplay.mjs.map +1 -1
  9. package/dist/components/date/YearMonthPicker.js +3 -2
  10. package/dist/components/date/YearMonthPicker.js.map +1 -1
  11. package/dist/components/date/YearMonthPicker.mjs +3 -2
  12. package/dist/components/date/YearMonthPicker.mjs.map +1 -1
  13. package/dist/components/dialogs/ConfirmDialog.js +1 -1
  14. package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
  15. package/dist/components/dialogs/ConfirmDialog.mjs +1 -1
  16. package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -1
  17. package/dist/components/layout-and-navigation/Expandable.d.mts +3 -0
  18. package/dist/components/layout-and-navigation/Expandable.d.ts +3 -0
  19. package/dist/components/layout-and-navigation/Expandable.js +3 -2
  20. package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
  21. package/dist/components/layout-and-navigation/Expandable.mjs +3 -2
  22. package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -1
  23. package/dist/components/layout-and-navigation/FAQSection.js +3 -2
  24. package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
  25. package/dist/components/layout-and-navigation/FAQSection.mjs +3 -2
  26. package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -1
  27. package/dist/components/layout-and-navigation/Overlay.js +1 -1
  28. package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
  29. package/dist/components/layout-and-navigation/Overlay.mjs +1 -1
  30. package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -1
  31. package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
  32. package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -1
  33. package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
  34. package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -1
  35. package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
  36. package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -1
  37. package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
  38. package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -1
  39. package/dist/components/loading-states/ErrorComponent.js.map +1 -1
  40. package/dist/components/loading-states/ErrorComponent.mjs.map +1 -1
  41. package/dist/components/loading-states/LoadingAndErrorComponent.d.mts +5 -10
  42. package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +5 -10
  43. package/dist/components/loading-states/LoadingAndErrorComponent.js +14 -331
  44. package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
  45. package/dist/components/loading-states/LoadingAndErrorComponent.mjs +15 -322
  46. package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -1
  47. package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
  48. package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -1
  49. package/dist/components/loading-states/LoadingContainer.d.mts +8 -0
  50. package/dist/components/loading-states/LoadingContainer.d.ts +8 -0
  51. package/dist/components/loading-states/LoadingContainer.js +34 -0
  52. package/dist/components/loading-states/LoadingContainer.js.map +1 -0
  53. package/dist/components/loading-states/LoadingContainer.mjs +10 -0
  54. package/dist/components/loading-states/LoadingContainer.mjs.map +1 -0
  55. package/dist/components/modals/ConfirmModal.js +1 -1
  56. package/dist/components/modals/ConfirmModal.js.map +1 -1
  57. package/dist/components/modals/ConfirmModal.mjs +1 -1
  58. package/dist/components/modals/ConfirmModal.mjs.map +1 -1
  59. package/dist/components/modals/DiscardChangesModal.js +1 -1
  60. package/dist/components/modals/DiscardChangesModal.js.map +1 -1
  61. package/dist/components/modals/DiscardChangesModal.mjs +1 -1
  62. package/dist/components/modals/DiscardChangesModal.mjs.map +1 -1
  63. package/dist/components/modals/InputModal.js +1 -1
  64. package/dist/components/modals/InputModal.js.map +1 -1
  65. package/dist/components/modals/InputModal.mjs +1 -1
  66. package/dist/components/modals/InputModal.mjs.map +1 -1
  67. package/dist/components/modals/LanguageModal.js +7 -5
  68. package/dist/components/modals/LanguageModal.js.map +1 -1
  69. package/dist/components/modals/LanguageModal.mjs +7 -5
  70. package/dist/components/modals/LanguageModal.mjs.map +1 -1
  71. package/dist/components/modals/ThemeModal.js +7 -5
  72. package/dist/components/modals/ThemeModal.js.map +1 -1
  73. package/dist/components/modals/ThemeModal.mjs +7 -5
  74. package/dist/components/modals/ThemeModal.mjs.map +1 -1
  75. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  76. package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
  77. package/dist/components/properties/DateProperty.js.map +1 -1
  78. package/dist/components/properties/DateProperty.mjs.map +1 -1
  79. package/dist/components/properties/MultiSelectProperty.js +4 -3
  80. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  81. package/dist/components/properties/MultiSelectProperty.mjs +4 -3
  82. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  83. package/dist/components/properties/NumberProperty.js.map +1 -1
  84. package/dist/components/properties/NumberProperty.mjs.map +1 -1
  85. package/dist/components/properties/PropertyBase.js.map +1 -1
  86. package/dist/components/properties/PropertyBase.mjs.map +1 -1
  87. package/dist/components/properties/SelectProperty.js +4 -3
  88. package/dist/components/properties/SelectProperty.js.map +1 -1
  89. package/dist/components/properties/SelectProperty.mjs +4 -3
  90. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  91. package/dist/components/properties/TextProperty.js.map +1 -1
  92. package/dist/components/properties/TextProperty.mjs.map +1 -1
  93. package/dist/components/table/Table.js +1 -1
  94. package/dist/components/table/Table.js.map +1 -1
  95. package/dist/components/table/Table.mjs +1 -1
  96. package/dist/components/table/Table.mjs.map +1 -1
  97. package/dist/components/table/TableFilterButton.js +1 -1
  98. package/dist/components/table/TableFilterButton.js.map +1 -1
  99. package/dist/components/table/TableFilterButton.mjs +1 -1
  100. package/dist/components/table/TableFilterButton.mjs.map +1 -1
  101. package/dist/components/user-action/CopyToClipboardWrapper.js.map +1 -1
  102. package/dist/components/user-action/CopyToClipboardWrapper.mjs.map +1 -1
  103. package/dist/components/user-action/DateAndTimePicker.js +3 -2
  104. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  105. package/dist/components/user-action/DateAndTimePicker.mjs +3 -2
  106. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
  107. package/dist/components/user-action/Menu.js +1 -1
  108. package/dist/components/user-action/Menu.js.map +1 -1
  109. package/dist/components/user-action/Menu.mjs +1 -1
  110. package/dist/components/user-action/Menu.mjs.map +1 -1
  111. package/dist/components/user-action/MultiSelect.js +4 -3
  112. package/dist/components/user-action/MultiSelect.js.map +1 -1
  113. package/dist/components/user-action/MultiSelect.mjs +4 -3
  114. package/dist/components/user-action/MultiSelect.mjs.map +1 -1
  115. package/dist/components/user-action/SearchBar.js.map +1 -1
  116. package/dist/components/user-action/SearchBar.mjs.map +1 -1
  117. package/dist/components/user-action/Select.js +4 -3
  118. package/dist/components/user-action/Select.js.map +1 -1
  119. package/dist/components/user-action/Select.mjs +4 -3
  120. package/dist/components/user-action/Select.mjs.map +1 -1
  121. package/dist/css/globals.css +53 -6
  122. package/dist/css/uncompiled/theme/colors-semantic.css +5 -5
  123. package/dist/css/uncompiled/utitlity/animation.css +27 -1
  124. package/dist/index.d.mts +1 -0
  125. package/dist/index.d.ts +1 -0
  126. package/dist/index.js +314 -289
  127. package/dist/index.js.map +1 -1
  128. package/dist/index.mjs +278 -254
  129. package/dist/index.mjs.map +1 -1
  130. package/dist/localization/LanguageProvider.js +2 -1
  131. package/dist/localization/LanguageProvider.js.map +1 -1
  132. package/dist/localization/LanguageProvider.mjs +2 -1
  133. package/dist/localization/LanguageProvider.mjs.map +1 -1
  134. package/dist/localization/useTranslation.js.map +1 -1
  135. package/dist/localization/useTranslation.mjs.map +1 -1
  136. package/dist/theming/useTheme.js +71 -6
  137. package/dist/theming/useTheme.js.map +1 -1
  138. package/dist/theming/useTheme.mjs +69 -4
  139. package/dist/theming/useTheme.mjs.map +1 -1
  140. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2891,6 +2891,7 @@ __export(index_exports, {
2891
2891
  LoadingAndErrorComponent: () => LoadingAndErrorComponent,
2892
2892
  LoadingAnimation: () => LoadingAnimation,
2893
2893
  LoadingButton: () => LoadingButton,
2894
+ LoadingContainer: () => LoadingContainer,
2894
2895
  LocalStorageService: () => LocalStorageService,
2895
2896
  LoopingArrayCalculator: () => LoopingArrayCalculator,
2896
2897
  MarkdownInterpreter: () => MarkdownInterpreter,
@@ -3295,8 +3296,9 @@ var LanguageProvider = ({ initialLanguage, children }) => {
3295
3296
  }
3296
3297
  }, [initialLanguage]);
3297
3298
  (0, import_react2.useEffect)(() => {
3299
+ document.documentElement.setAttribute("lang", language);
3298
3300
  setStoredLanguage(language);
3299
- }, [language, setStoredLanguage]);
3301
+ }, [language]);
3300
3302
  (0, import_react2.useEffect)(() => {
3301
3303
  if (storedLanguage !== null) {
3302
3304
  setLanguage(storedLanguage);
@@ -3905,7 +3907,8 @@ var Expandable = (0, import_react4.forwardRef)(function Expandable2({
3905
3907
  disabled = false,
3906
3908
  className,
3907
3909
  headerClassName,
3908
- contentClassName
3910
+ contentClassName,
3911
+ contentExpandedClassName
3909
3912
  }, ref) {
3910
3913
  const defaultIcon = (0, import_react4.useCallback)((expanded) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ExpansionIcon, { isExpanded: expanded }), []);
3911
3914
  icon ??= defaultIcon;
@@ -3941,7 +3944,7 @@ var Expandable = (0, import_react4.forwardRef)(function Expandable2({
3941
3944
  className: (0, import_clsx5.default)(
3942
3945
  "flex-col-2 px-4 transition-all duration-300 ease-in-out",
3943
3946
  {
3944
- "max-h-96 opacity-100 pb-2": isExpanded,
3947
+ [(0, import_clsx5.default)("max-h-96 opacity-100 pb-2 overflow-y-auto", contentExpandedClassName)]: isExpanded,
3945
3948
  "max-h-0 opacity-0 overflow-hidden": !isExpanded
3946
3949
  },
3947
3950
  contentClassName
@@ -4777,7 +4780,7 @@ var Overlay = ({
4777
4780
  }, []);
4778
4781
  if (!root || !isOpen) return null;
4779
4782
  return import_react_dom.default.createPortal(
4780
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: (0, import_clsx11.default)("fixed inset-0 z-[9999]"), children: [
4783
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: (0, import_clsx11.default)("fixed inset-0 z-[200]"), children: [
4781
4784
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4782
4785
  "div",
4783
4786
  {
@@ -6912,30 +6915,24 @@ var ErrorComponent = ({
6912
6915
  // src/components/loading-states/LoadingAndErrorComponent.tsx
6913
6916
  var import_react20 = require("react");
6914
6917
 
6915
- // src/components/loading-states/LoadingAnimation.tsx
6916
- var import_clsx28 = __toESM(require("clsx"));
6918
+ // src/components/loading-states/LoadingContainer.tsx
6919
+ var import_clsx28 = require("clsx");
6917
6920
  var import_jsx_runtime33 = require("react/jsx-runtime");
6918
- var LoadingAnimation = ({
6919
- overwriteTranslation,
6920
- loadingText,
6921
- classname
6922
- }) => {
6923
- const translation = useTranslation([formTranslation], overwriteTranslation);
6924
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: (0, import_clsx28.default)("flex-col-2 items-center justify-center w-full h-24", classname), children: [
6925
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Helpwave, { animate: "loading" }),
6926
- loadingText ?? `${translation("loading")}...`
6927
- ] });
6921
+ var LoadingContainer = ({ className }) => {
6922
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: (0, import_clsx28.clsx)("relative overflow-hidden shimmer bg-disabled-background rounded-md", className) });
6928
6923
  };
6929
6924
 
6930
6925
  // src/components/loading-states/LoadingAndErrorComponent.tsx
6926
+ var import_clsx29 = require("clsx");
6931
6927
  var import_jsx_runtime34 = require("react/jsx-runtime");
6932
6928
  var LoadingAndErrorComponent = ({
6933
6929
  children,
6934
6930
  isLoading = false,
6935
6931
  hasError = false,
6936
- errorProps,
6937
- loadingProps,
6938
- minimumLoadingDuration
6932
+ loadingComponent,
6933
+ errorComponent,
6934
+ minimumLoadingDuration,
6935
+ className
6939
6936
  }) => {
6940
6937
  const [isInMinimumLoading, setIsInMinimumLoading] = (0, import_react20.useState)(false);
6941
6938
  const [hasUsedMinimumLoading, setHasUsedMinimumLoading] = (0, import_react20.useState)(false);
@@ -6947,27 +6944,42 @@ var LoadingAndErrorComponent = ({
6947
6944
  }, minimumLoadingDuration);
6948
6945
  }
6949
6946
  if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
6950
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LoadingAnimation, { ...loadingProps });
6947
+ return loadingComponent ?? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LoadingContainer, { className: (0, import_clsx29.clsx)(className) });
6951
6948
  }
6952
6949
  if (hasError) {
6953
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ErrorComponent, { ...errorProps });
6950
+ return errorComponent ?? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LoadingContainer, { className: (0, import_clsx29.clsx)("bg-negative", className) });
6954
6951
  }
6955
6952
  return children;
6956
6953
  };
6957
6954
 
6958
- // src/components/loading-states/LoadingButton.tsx
6959
- var import_clsx29 = __toESM(require("clsx"));
6955
+ // src/components/loading-states/LoadingAnimation.tsx
6956
+ var import_clsx30 = __toESM(require("clsx"));
6960
6957
  var import_jsx_runtime35 = require("react/jsx-runtime");
6958
+ var LoadingAnimation = ({
6959
+ overwriteTranslation,
6960
+ loadingText,
6961
+ classname
6962
+ }) => {
6963
+ const translation = useTranslation([formTranslation], overwriteTranslation);
6964
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: (0, import_clsx30.default)("flex-col-2 items-center justify-center w-full h-24", classname), children: [
6965
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Helpwave, { animate: "loading" }),
6966
+ loadingText ?? `${translation("loading")}...`
6967
+ ] });
6968
+ };
6969
+
6970
+ // src/components/loading-states/LoadingButton.tsx
6971
+ var import_clsx31 = __toESM(require("clsx"));
6972
+ var import_jsx_runtime36 = require("react/jsx-runtime");
6961
6973
  var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
6962
6974
  const paddingClass = ButtonUtil.paddingMapping[size];
6963
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "inline-block relative", children: [
6964
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: (0, import_clsx29.default)("flex-row-2 absolute inset-0 items-center justify-center bg-white/40", paddingClass), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Helpwave, { animate: "loading", className: "text-white" }) }),
6965
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SolidButton, { ...rest, disabled: rest.disabled, onClick: isLoading ? noop : onClick })
6975
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "inline-block relative", children: [
6976
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: (0, import_clsx31.default)("flex-row-2 absolute inset-0 items-center justify-center bg-white/40", paddingClass), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Helpwave, { animate: "loading", className: "text-white" }) }),
6977
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SolidButton, { ...rest, disabled: rest.disabled, onClick: isLoading ? noop : onClick })
6966
6978
  ] });
6967
6979
  };
6968
6980
 
6969
6981
  // src/components/loading-states/ProgressIndicator.tsx
6970
- var import_jsx_runtime36 = require("react/jsx-runtime");
6982
+ var import_jsx_runtime37 = require("react/jsx-runtime");
6971
6983
  var sizeMapping = { small: 16, medium: 24, big: 48 };
6972
6984
  var ProgressIndicator = ({
6973
6985
  progress,
@@ -6984,7 +6996,7 @@ var ProgressIndicator = ({
6984
6996
  if (direction === "clockwise") {
6985
6997
  rotation += 360 * progress;
6986
6998
  }
6987
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
6999
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
6988
7000
  "svg",
6989
7001
  {
6990
7002
  style: {
@@ -6993,7 +7005,7 @@ var ProgressIndicator = ({
6993
7005
  transform: `rotate(${rotation}deg)`
6994
7006
  },
6995
7007
  children: [
6996
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
7008
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6997
7009
  "circle",
6998
7010
  {
6999
7011
  cx: center,
@@ -7004,7 +7016,7 @@ var ProgressIndicator = ({
7004
7016
  className: "stroke-progress-indicator-fill"
7005
7017
  }
7006
7018
  ),
7007
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
7019
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
7008
7020
  "circle",
7009
7021
  {
7010
7022
  cx: center,
@@ -7023,8 +7035,8 @@ var ProgressIndicator = ({
7023
7035
  };
7024
7036
 
7025
7037
  // src/components/modals/ConfirmModal.tsx
7026
- var import_clsx30 = __toESM(require("clsx"));
7027
- var import_jsx_runtime37 = require("react/jsx-runtime");
7038
+ var import_clsx32 = __toESM(require("clsx"));
7039
+ var import_jsx_runtime38 = require("react/jsx-runtime");
7028
7040
  var ConfirmModal = ({
7029
7041
  overwriteTranslation,
7030
7042
  children,
@@ -7043,10 +7055,10 @@ var ConfirmModal = ({
7043
7055
  positive: "positive",
7044
7056
  primary: "primary"
7045
7057
  };
7046
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Modal, { ...restProps, onClose: onCancel, className: (0, import_clsx30.default)("justify-between", className), children: [
7047
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex-col-2 grow", children }),
7048
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex-row-4 mt-3 justify-end", children: [
7049
- onCancel && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
7058
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Modal, { ...restProps, onClose: onCancel, className: (0, import_clsx32.default)("justify-between", className), children: [
7059
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex-col-2 grow", children }),
7060
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex-row-4 mt-3 justify-end", children: [
7061
+ onCancel && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7050
7062
  SolidButton,
7051
7063
  {
7052
7064
  color: buttonOverwrites?.[0].color ?? "neutral",
@@ -7055,7 +7067,7 @@ var ConfirmModal = ({
7055
7067
  children: buttonOverwrites?.[0].text ?? translation("cancel")
7056
7068
  }
7057
7069
  ),
7058
- onDecline && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
7070
+ onDecline && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7059
7071
  SolidButton,
7060
7072
  {
7061
7073
  color: buttonOverwrites?.[1].color ?? "negative",
@@ -7064,7 +7076,7 @@ var ConfirmModal = ({
7064
7076
  children: buttonOverwrites?.[1].text ?? translation("decline")
7065
7077
  }
7066
7078
  ),
7067
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
7079
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7068
7080
  SolidButton,
7069
7081
  {
7070
7082
  autoFocus: true,
@@ -7079,7 +7091,7 @@ var ConfirmModal = ({
7079
7091
  };
7080
7092
 
7081
7093
  // src/components/modals/DiscardChangesModal.tsx
7082
- var import_jsx_runtime38 = require("react/jsx-runtime");
7094
+ var import_jsx_runtime39 = require("react/jsx-runtime");
7083
7095
  var DiscardChangesModal = ({
7084
7096
  overwriteTranslation,
7085
7097
  children,
@@ -7090,7 +7102,7 @@ var DiscardChangesModal = ({
7090
7102
  ...modalProps
7091
7103
  }) => {
7092
7104
  const translation = useTranslation([formTranslation], overwriteTranslation);
7093
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7105
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7094
7106
  ConfirmModal,
7095
7107
  {
7096
7108
  headerProps: {
@@ -7109,18 +7121,18 @@ var DiscardChangesModal = ({
7109
7121
  };
7110
7122
 
7111
7123
  // src/components/modals/InputModal.tsx
7112
- var import_jsx_runtime39 = require("react/jsx-runtime");
7124
+ var import_jsx_runtime40 = require("react/jsx-runtime");
7113
7125
  var InputModal = ({
7114
7126
  inputs,
7115
7127
  buttonOverwrites,
7116
7128
  ...restProps
7117
7129
  }) => {
7118
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7130
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
7119
7131
  ConfirmModal,
7120
7132
  {
7121
7133
  buttonOverwrites,
7122
7134
  ...restProps,
7123
- children: inputs.map((inputProps, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Input, { ...inputProps }, `input ${index}`))
7135
+ children: inputs.map((inputProps, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Input, { ...inputProps }, `input ${index}`))
7124
7136
  }
7125
7137
  );
7126
7138
  };
@@ -7128,11 +7140,11 @@ var InputModal = ({
7128
7140
  // src/components/user-action/Select.tsx
7129
7141
  var import_react23 = require("react");
7130
7142
  var import_react24 = require("react");
7131
- var import_clsx33 = __toESM(require("clsx"));
7143
+ var import_clsx35 = __toESM(require("clsx"));
7132
7144
 
7133
7145
  // src/components/user-action/Menu.tsx
7134
7146
  var import_react22 = require("react");
7135
- var import_clsx31 = __toESM(require("clsx"));
7147
+ var import_clsx33 = __toESM(require("clsx"));
7136
7148
 
7137
7149
  // src/hooks/useOutsideClick.ts
7138
7150
  var import_react21 = require("react");
@@ -7221,17 +7233,17 @@ var usePopoverPosition = (trigger, options) => {
7221
7233
 
7222
7234
  // src/components/user-action/Menu.tsx
7223
7235
  var import_react_dom2 = require("react-dom");
7224
- var import_jsx_runtime40 = require("react/jsx-runtime");
7236
+ var import_jsx_runtime41 = require("react/jsx-runtime");
7225
7237
  var MenuItem = ({
7226
7238
  children,
7227
7239
  onClick,
7228
7240
  alignment = "left",
7229
7241
  isDisabled = false,
7230
7242
  className
7231
- }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
7243
+ }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
7232
7244
  "div",
7233
7245
  {
7234
- className: (0, import_clsx31.default)("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold", {
7246
+ className: (0, import_clsx33.default)("block px-3 py-1.5 first:rounded-t-md last:rounded-b-md text-sm font-semibold", {
7235
7247
  "text-right": alignment === "right",
7236
7248
  "text-left": alignment === "left",
7237
7249
  "text-disabled-text cursor-not-allowed": isDisabled,
@@ -7297,15 +7309,15 @@ var Menu = ({
7297
7309
  setIsHidden(false);
7298
7310
  }
7299
7311
  }, [isOpen]);
7300
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
7312
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
7301
7313
  trigger(bag, triggerRef),
7302
- (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
7314
+ (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
7303
7315
  "div",
7304
7316
  {
7305
7317
  ref: menuRef,
7306
7318
  onClick: (e) => e.stopPropagation(),
7307
- className: (0, import_clsx31.default)(
7308
- "absolute rounded-md bg-menu-background text-menu-text shadow-around-lg z-10",
7319
+ className: (0, import_clsx33.default)(
7320
+ "absolute rounded-md bg-menu-background text-menu-text shadow-around-lg z-[300]",
7309
7321
  {
7310
7322
  "animate-pop-in": isOpen,
7311
7323
  "animate-pop-out": !isOpen,
@@ -7329,8 +7341,8 @@ var Menu = ({
7329
7341
 
7330
7342
  // src/components/user-action/SearchBar.tsx
7331
7343
  var import_lucide_react10 = require("lucide-react");
7332
- var import_clsx32 = require("clsx");
7333
- var import_jsx_runtime41 = require("react/jsx-runtime");
7344
+ var import_clsx34 = require("clsx");
7345
+ var import_jsx_runtime42 = require("react/jsx-runtime");
7334
7346
  var SearchBar = ({
7335
7347
  placeholder,
7336
7348
  onSearch,
@@ -7339,31 +7351,31 @@ var SearchBar = ({
7339
7351
  ...inputProps
7340
7352
  }) => {
7341
7353
  const translation = useTranslation([formTranslation]);
7342
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: (0, import_clsx32.clsx)("flex-row-2 justify-between items-center", containerClassName), children: [
7343
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
7354
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: (0, import_clsx34.clsx)("flex-row-2 justify-between items-center", containerClassName), children: [
7355
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7344
7356
  Input,
7345
7357
  {
7346
7358
  ...inputProps,
7347
7359
  placeholder: placeholder ?? translation("search")
7348
7360
  }
7349
7361
  ),
7350
- onSearch && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(IconButton, { color: "neutral", disabled: disableOnSearch, onClick: onSearch, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react10.Search, { className: "w-full h-full" }) })
7362
+ onSearch && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(IconButton, { color: "neutral", disabled: disableOnSearch, onClick: onSearch, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react10.Search, { className: "w-full h-full" }) })
7351
7363
  ] });
7352
7364
  };
7353
7365
 
7354
7366
  // src/components/user-action/Select.tsx
7355
- var import_jsx_runtime42 = require("react/jsx-runtime");
7367
+ var import_jsx_runtime43 = require("react/jsx-runtime");
7356
7368
  var SelectTile = ({
7357
7369
  className,
7358
7370
  disabledClassName,
7359
7371
  title,
7360
7372
  ...restProps
7361
7373
  }) => {
7362
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7374
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7363
7375
  Tile,
7364
7376
  {
7365
7377
  ...restProps,
7366
- className: (0, import_clsx33.default)("px-2 py-1 rounded-md", className),
7378
+ className: (0, import_clsx35.default)("px-2 py-1 rounded-md", className),
7367
7379
  disabledClassName: disabledClassName ?? "text-disabled-text cursor-not-allowed",
7368
7380
  title: { ...title, className: title.className ?? "font-semibold" }
7369
7381
  }
@@ -7393,17 +7405,17 @@ var Select = ({
7393
7405
  searchMapping: (0, import_react23.useCallback)((item) => item.searchTags, []),
7394
7406
  ...searchOptions
7395
7407
  });
7396
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: (0, import_clsx33.default)(className), children: [
7397
- label && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Label, { ...label, labelType: label.labelType ?? "labelBig", className: (0, import_clsx33.default)("mb-1", label.className) }),
7398
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7408
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: (0, import_clsx35.default)(className), children: [
7409
+ label && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Label, { ...label, labelType: label.labelType ?? "labelBig", className: (0, import_clsx35.default)("mb-1", label.className) }),
7410
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7399
7411
  Menu,
7400
7412
  {
7401
7413
  ...menuProps,
7402
- trigger: ({ toggleOpen, isOpen, disabled }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
7414
+ trigger: ({ toggleOpen, isOpen, disabled }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
7403
7415
  "button",
7404
7416
  {
7405
7417
  ref,
7406
- className: (0, import_clsx33.default)(
7418
+ className: (0, import_clsx35.default)(
7407
7419
  "btn-md justify-between w-full border-2",
7408
7420
  {
7409
7421
  "rounded-b-lg": !open,
@@ -7415,17 +7427,17 @@ var Select = ({
7415
7427
  onClick: toggleOpen,
7416
7428
  disabled,
7417
7429
  children: [
7418
- !isShowingHint && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "font-semibold", children: selectedDisplayOverwrite ?? selectedOption?.label }),
7419
- isShowingHint && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: (0, import_clsx33.default)("textstyle-description", hintTextClassName), children: hintText }),
7420
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ExpansionIcon, { isExpanded: isOpen })
7430
+ !isShowingHint && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "font-semibold", children: selectedDisplayOverwrite ?? selectedOption?.label }),
7431
+ isShowingHint && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: (0, import_clsx35.default)("textstyle-description", hintTextClassName), children: hintText }),
7432
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ExpansionIcon, { isExpanded: isOpen })
7421
7433
  ]
7422
7434
  }
7423
7435
  ),
7424
- menuClassName: (0, import_clsx33.default)("flex-col-2 p-2 max-h-96 overflow-hidden", menuProps.menuClassName),
7436
+ menuClassName: (0, import_clsx35.default)("flex-col-2 p-2 max-h-96 overflow-hidden", menuProps.menuClassName),
7425
7437
  children: (bag) => {
7426
7438
  const { close } = bag;
7427
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
7428
- !searchOptions?.disabled && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7439
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
7440
+ !searchOptions?.disabled && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7429
7441
  SearchBar,
7430
7442
  {
7431
7443
  value: search,
@@ -7433,8 +7445,8 @@ var Select = ({
7433
7445
  autoFocus: true
7434
7446
  }
7435
7447
  ),
7436
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex-col-2 overflow-y-auto", children: [
7437
- result.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7448
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex-col-2 overflow-y-auto", children: [
7449
+ result.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7438
7450
  SelectTile,
7439
7451
  {
7440
7452
  isSelected: option === selectedOption,
@@ -7468,7 +7480,7 @@ var SelectUncontrolled = ({
7468
7480
  setSelected(value);
7469
7481
  }
7470
7482
  }, [options, value]);
7471
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
7483
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7472
7484
  Select,
7473
7485
  {
7474
7486
  value: selected,
@@ -7484,7 +7496,7 @@ var SelectUncontrolled = ({
7484
7496
  };
7485
7497
 
7486
7498
  // src/components/modals/LanguageModal.tsx
7487
- var import_jsx_runtime43 = require("react/jsx-runtime");
7499
+ var import_jsx_runtime44 = require("react/jsx-runtime");
7488
7500
  var defaultLanguageModalTranslation = {
7489
7501
  en: {
7490
7502
  language: "Language",
@@ -7507,7 +7519,7 @@ var LanguageModal = ({
7507
7519
  }) => {
7508
7520
  const { language, setLanguage } = useLanguage();
7509
7521
  const translation = useTranslation([defaultLanguageModalTranslation], overwriteTranslation);
7510
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7522
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
7511
7523
  Modal,
7512
7524
  {
7513
7525
  headerProps: {
@@ -7517,17 +7529,18 @@ var LanguageModal = ({
7517
7529
  },
7518
7530
  onClose,
7519
7531
  ...modalProps,
7520
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "w-64", children: [
7521
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7532
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "w-64", children: [
7533
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
7522
7534
  Select,
7523
7535
  {
7524
7536
  className: "mt-2",
7525
7537
  value: language,
7526
7538
  options: LanguageUtil.languages.map((language2) => ({ label: translation(language2), value: language2 })),
7527
- onChange: (language2) => setLanguage(language2)
7539
+ onChange: (language2) => setLanguage(language2),
7540
+ searchOptions: { disabled: true }
7528
7541
  }
7529
7542
  ),
7530
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
7543
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
7531
7544
  ] })
7532
7545
  }
7533
7546
  );
@@ -7535,7 +7548,7 @@ var LanguageModal = ({
7535
7548
 
7536
7549
  // src/theming/useTheme.tsx
7537
7550
  var import_react25 = require("react");
7538
- var import_jsx_runtime44 = require("react/jsx-runtime");
7551
+ var import_jsx_runtime45 = require("react/jsx-runtime");
7539
7552
  var themes = ["light", "dark"];
7540
7553
  var defaultThemeTypeTranslation = {
7541
7554
  en: {
@@ -7565,6 +7578,7 @@ var ThemeContext = (0, import_react25.createContext)({
7565
7578
  });
7566
7579
  var ThemeProvider = ({ children, initialTheme = "light" }) => {
7567
7580
  const [theme, setTheme] = (0, import_react25.useState)(initialTheme);
7581
+ const [storedTheme, setStoredTheme] = useLocalStorage("theme", initialTheme);
7568
7582
  (0, import_react25.useEffect)(() => {
7569
7583
  if (theme !== initialTheme) {
7570
7584
  console.warn("ThemeProvider initial state changed: Prefer using useTheme's setTheme instead");
@@ -7573,13 +7587,22 @@ var ThemeProvider = ({ children, initialTheme = "light" }) => {
7573
7587
  }, [initialTheme]);
7574
7588
  (0, import_react25.useEffect)(() => {
7575
7589
  document.documentElement.setAttribute("data-theme", theme);
7590
+ setStoredTheme(theme);
7576
7591
  }, [theme]);
7577
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ThemeContext.Provider, { value: { theme, setTheme }, children });
7592
+ (0, import_react25.useEffect)(() => {
7593
+ if (storedTheme !== null) {
7594
+ setTheme(storedTheme);
7595
+ return;
7596
+ }
7597
+ const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
7598
+ setTheme(prefersDark ? "dark" : "light");
7599
+ }, []);
7600
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ThemeContext.Provider, { value: { theme, setTheme }, children });
7578
7601
  };
7579
7602
  var useTheme = () => (0, import_react25.useContext)(ThemeContext);
7580
7603
 
7581
7604
  // src/components/modals/ThemeModal.tsx
7582
- var import_jsx_runtime45 = require("react/jsx-runtime");
7605
+ var import_jsx_runtime46 = require("react/jsx-runtime");
7583
7606
  var defaultConfirmDialogTranslation = {
7584
7607
  en: {
7585
7608
  chooseTheme: "Choose your preferred theme"
@@ -7596,7 +7619,7 @@ var ThemeModal = ({
7596
7619
  }) => {
7597
7620
  const { theme, setTheme } = useTheme();
7598
7621
  const translation = useTranslation([defaultConfirmDialogTranslation, formTranslation, ThemeUtil.translation], overwriteTranslation);
7599
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7622
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7600
7623
  Modal,
7601
7624
  {
7602
7625
  headerProps: {
@@ -7606,17 +7629,18 @@ var ThemeModal = ({
7606
7629
  },
7607
7630
  onClose,
7608
7631
  ...modalProps,
7609
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "w-64", children: [
7610
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7632
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "w-64", children: [
7633
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7611
7634
  Select,
7612
7635
  {
7613
7636
  className: "mt-2",
7614
7637
  value: theme,
7615
7638
  options: ThemeUtil.themes.map((theme2) => ({ label: translation(theme2), value: theme2 })),
7616
- onChange: (theme2) => setTheme(theme2)
7639
+ onChange: (theme2) => setTheme(theme2),
7640
+ searchOptions: { disabled: true }
7617
7641
  }
7618
7642
  ),
7619
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
7643
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex-row-4 mt-3 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation("done") }) })
7620
7644
  ] })
7621
7645
  }
7622
7646
  );
@@ -7629,8 +7653,8 @@ var import_lucide_react13 = require("lucide-react");
7629
7653
  var import_react26 = require("react");
7630
7654
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
7631
7655
  var import_lucide_react11 = require("lucide-react");
7632
- var import_clsx34 = __toESM(require("clsx"));
7633
- var import_jsx_runtime46 = require("react/jsx-runtime");
7656
+ var import_clsx36 = __toESM(require("clsx"));
7657
+ var import_jsx_runtime47 = require("react/jsx-runtime");
7634
7658
  var checkboxSizeMapping = {
7635
7659
  small: "size-5",
7636
7660
  medium: "size-6",
@@ -7666,27 +7690,27 @@ var Checkbox = ({
7666
7690
  const newValue = checked === "indeterminate" ? false : !checked;
7667
7691
  propagateChange(newValue);
7668
7692
  };
7669
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: (0, import_clsx34.default)("group flex-row-2 items-center cursor-pointer", containerClassName), onClick: changeValue, children: [
7670
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7693
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: (0, import_clsx36.default)("group flex-row-2 items-center cursor-pointer", containerClassName), onClick: changeValue, children: [
7694
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7671
7695
  CheckboxPrimitive.Root,
7672
7696
  {
7673
7697
  onCheckedChange: propagateChange,
7674
7698
  checked,
7675
7699
  disabled,
7676
7700
  id,
7677
- className: (0, import_clsx34.default)(usedSizeClass, `items-center border-2 rounded outline-none `, {
7701
+ className: (0, import_clsx36.default)(usedSizeClass, `items-center border-2 rounded outline-none `, {
7678
7702
  "text-disabled-text border-disabled-outline bg-disabled-background cursor-not-allowed": disabled,
7679
7703
  "focus:border-primary group-hover:border-primary ": !disabled,
7680
7704
  "bg-surface": !disabled && !checked,
7681
7705
  "bg-primary/30 border-primary text-primary": !disabled && checked === true || checked === "indeterminate"
7682
7706
  }, className),
7683
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(CheckboxPrimitive.Indicator, { children: [
7684
- checked === true && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.Check, { className: innerIconSize }),
7685
- checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react11.Minus, { className: innerIconSize })
7707
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(CheckboxPrimitive.Indicator, { children: [
7708
+ checked === true && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react11.Check, { className: innerIconSize }),
7709
+ checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react11.Minus, { className: innerIconSize })
7686
7710
  ] })
7687
7711
  }
7688
7712
  ),
7689
- label && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Label, { ...label, className: (0, import_clsx34.default)(label.className), htmlFor: id })
7713
+ label && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Label, { ...label, className: (0, import_clsx36.default)(label.className), htmlFor: id })
7690
7714
  ] });
7691
7715
  };
7692
7716
  var CheckboxUncontrolled = ({
@@ -7705,7 +7729,7 @@ var CheckboxUncontrolled = ({
7705
7729
  }
7706
7730
  setChecked(checked2);
7707
7731
  };
7708
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7732
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7709
7733
  Checkbox,
7710
7734
  {
7711
7735
  ...props,
@@ -7717,8 +7741,8 @@ var CheckboxUncontrolled = ({
7717
7741
 
7718
7742
  // src/components/properties/PropertyBase.tsx
7719
7743
  var import_lucide_react12 = require("lucide-react");
7720
- var import_clsx35 = __toESM(require("clsx"));
7721
- var import_jsx_runtime47 = require("react/jsx-runtime");
7744
+ var import_clsx37 = __toESM(require("clsx"));
7745
+ var import_jsx_runtime48 = require("react/jsx-runtime");
7722
7746
  var PropertyBase = ({
7723
7747
  overwriteTranslation,
7724
7748
  name,
@@ -7732,11 +7756,11 @@ var PropertyBase = ({
7732
7756
  }) => {
7733
7757
  const translation = useTranslation([formTranslation], overwriteTranslation);
7734
7758
  const requiredAndNoValue = softRequired && !hasValue;
7735
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: (0, import_clsx35.default)("flex-row-0 group", className), children: [
7736
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
7759
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: (0, import_clsx37.default)("flex-row-0 group", className), children: [
7760
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
7737
7761
  "div",
7738
7762
  {
7739
- className: (0, import_clsx35.default)(
7763
+ className: (0, import_clsx37.default)(
7740
7764
  "flex-row-2 max-w-48 min-w-48 px-3 py-2 items-center rounded-l-xl border-2 border-r-0",
7741
7765
  {
7742
7766
  "bg-property-title-background text-property-title-text group-hover:border-primary": !requiredAndNoValue,
@@ -7745,15 +7769,15 @@ var PropertyBase = ({
7745
7769
  className
7746
7770
  ),
7747
7771
  children: [
7748
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "max-w-6 min-w-6 text-text-default", children: icon }),
7749
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-semibold", children: name })
7772
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "max-w-6 min-w-6 text-text-default", children: icon }),
7773
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "font-semibold", children: name })
7750
7774
  ]
7751
7775
  }
7752
7776
  ),
7753
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
7777
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
7754
7778
  "div",
7755
7779
  {
7756
- className: (0, import_clsx35.default)(
7780
+ className: (0, import_clsx37.default)(
7757
7781
  "flex-row-2 grow px-3 py-2 justify-between items-center rounded-r-xl border-2 border-l-0 min-h-15",
7758
7782
  {
7759
7783
  "bg-surface group-hover:border-primary": !requiredAndNoValue,
@@ -7763,13 +7787,13 @@ var PropertyBase = ({
7763
7787
  ),
7764
7788
  children: [
7765
7789
  input({ softRequired, hasValue }),
7766
- requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "text-warning", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react12.AlertTriangle, { size: 24 }) }),
7767
- onRemove && hasValue && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7790
+ requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "text-warning", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react12.AlertTriangle, { size: 24 }) }),
7791
+ onRemove && hasValue && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7768
7792
  TextButton,
7769
7793
  {
7770
7794
  onClick: onRemove,
7771
7795
  color: "negative",
7772
- className: (0, import_clsx35.default)("items-center", { "!text-transparent": !hasValue || readOnly }),
7796
+ className: (0, import_clsx37.default)("items-center", { "!text-transparent": !hasValue || readOnly }),
7773
7797
  disabled: !hasValue || readOnly,
7774
7798
  children: translation("remove")
7775
7799
  }
@@ -7781,7 +7805,7 @@ var PropertyBase = ({
7781
7805
  };
7782
7806
 
7783
7807
  // src/components/properties/CheckboxProperty.tsx
7784
- var import_jsx_runtime48 = require("react/jsx-runtime");
7808
+ var import_jsx_runtime49 = require("react/jsx-runtime");
7785
7809
  var CheckboxProperty = ({
7786
7810
  overwriteTranslation,
7787
7811
  value,
@@ -7790,14 +7814,14 @@ var CheckboxProperty = ({
7790
7814
  ...baseProps
7791
7815
  }) => {
7792
7816
  const translation = useTranslation([formTranslation], overwriteTranslation);
7793
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7817
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7794
7818
  PropertyBase,
7795
7819
  {
7796
7820
  ...baseProps,
7797
7821
  hasValue: true,
7798
7822
  readOnly,
7799
- icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react13.Check, { size: 24 }),
7800
- input: () => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7823
+ icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react13.Check, { size: 24 }),
7824
+ input: () => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7801
7825
  Checkbox,
7802
7826
  {
7803
7827
  checked: value ?? true,
@@ -7813,8 +7837,8 @@ var CheckboxProperty = ({
7813
7837
 
7814
7838
  // src/components/properties/DateProperty.tsx
7815
7839
  var import_lucide_react14 = require("lucide-react");
7816
- var import_clsx36 = __toESM(require("clsx"));
7817
- var import_jsx_runtime49 = require("react/jsx-runtime");
7840
+ var import_clsx38 = __toESM(require("clsx"));
7841
+ var import_jsx_runtime50 = require("react/jsx-runtime");
7818
7842
  var DateProperty = ({
7819
7843
  value,
7820
7844
  onChange = noop,
@@ -7825,16 +7849,16 @@ var DateProperty = ({
7825
7849
  }) => {
7826
7850
  const hasValue = !!value;
7827
7851
  const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
7828
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7852
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7829
7853
  PropertyBase,
7830
7854
  {
7831
7855
  ...baseProps,
7832
7856
  hasValue,
7833
- icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react14.CalendarDays, { size: 24 }),
7834
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7857
+ icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react14.CalendarDays, { size: 24 }),
7858
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7835
7859
  Input,
7836
7860
  {
7837
- className: (0, import_clsx36.default)("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
7861
+ className: (0, import_clsx38.default)("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
7838
7862
  value: dateText,
7839
7863
  type: type === "dateTime" ? "datetime-local" : "date",
7840
7864
  readOnly,
@@ -7856,14 +7880,14 @@ var DateProperty = ({
7856
7880
 
7857
7881
  // src/components/properties/MultiSelectProperty.tsx
7858
7882
  var import_lucide_react16 = require("lucide-react");
7859
- var import_clsx38 = __toESM(require("clsx"));
7883
+ var import_clsx40 = __toESM(require("clsx"));
7860
7884
 
7861
7885
  // src/components/user-action/MultiSelect.tsx
7862
7886
  var import_react27 = require("react");
7863
7887
  var import_react28 = require("react");
7864
- var import_clsx37 = __toESM(require("clsx"));
7888
+ var import_clsx39 = __toESM(require("clsx"));
7865
7889
  var import_lucide_react15 = require("lucide-react");
7866
- var import_jsx_runtime50 = require("react/jsx-runtime");
7890
+ var import_jsx_runtime51 = require("react/jsx-runtime");
7867
7891
  var defaultMultiSelectTranslation = {
7868
7892
  en: {
7869
7893
  selected: `{{amount}} selected`
@@ -7895,25 +7919,25 @@ var MultiSelect = ({
7895
7919
  });
7896
7920
  const selectedItems = options.filter((value) => value.selected);
7897
7921
  const isShowingHint = !selectedDisplayOverwrite && selectedItems.length === 0;
7898
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: (0, import_clsx37.default)(className), children: [
7899
- label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7922
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: (0, import_clsx39.default)(className), children: [
7923
+ label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7900
7924
  Label,
7901
7925
  {
7902
7926
  ...label,
7903
7927
  htmlFor: label.name,
7904
- className: (0, import_clsx37.default)(" mb-1", label.className),
7928
+ className: (0, import_clsx39.default)(" mb-1", label.className),
7905
7929
  labelType: label.labelType ?? "labelBig"
7906
7930
  }
7907
7931
  ),
7908
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7932
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7909
7933
  Menu,
7910
7934
  {
7911
7935
  ...menuProps,
7912
- trigger: ({ toggleOpen, isOpen, disabled }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7936
+ trigger: ({ toggleOpen, isOpen, disabled }, ref) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7913
7937
  "button",
7914
7938
  {
7915
7939
  ref,
7916
- className: (0, import_clsx37.default)(
7940
+ className: (0, import_clsx39.default)(
7917
7941
  "btn-md justify-between w-full border-2 h-auto",
7918
7942
  {
7919
7943
  "min-h-14": useChipDisplay,
@@ -7924,18 +7948,18 @@ var MultiSelect = ({
7924
7948
  ),
7925
7949
  onClick: toggleOpen,
7926
7950
  disabled,
7927
- children: useChipDisplay ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children: isShowingHint ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(IconButton, { disabled, size: "small", color: "neutral", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react15.Plus, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ChipList, { list: selectedItems.map((value) => ({ children: value.label })) }) }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
7928
- !isShowingHint && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "font-semibold", children: selectedDisplayOverwrite ?? translation("selected", { replacements: { amount: selectedItems.length.toString() } }) }),
7929
- isShowingHint && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: (0, import_clsx37.default)("textstyle-description", hintTextClassName), children: hintText ?? translation("select") }),
7930
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ExpansionIcon, { isExpanded: isOpen })
7951
+ children: useChipDisplay ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: isShowingHint ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(IconButton, { disabled, size: "small", color: "neutral", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react15.Plus, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChipList, { list: selectedItems.map((value) => ({ children: value.label })) }) }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
7952
+ !isShowingHint && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "font-semibold", children: selectedDisplayOverwrite ?? translation("selected", { replacements: { amount: selectedItems.length.toString() } }) }),
7953
+ isShowingHint && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: (0, import_clsx39.default)("textstyle-description", hintTextClassName), children: hintText ?? translation("select") }),
7954
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ExpansionIcon, { isExpanded: isOpen })
7931
7955
  ] })
7932
7956
  }
7933
7957
  ),
7934
- menuClassName: (0, import_clsx37.default)("flex-col-2 p-2 max-h-96 overflow-hidden", menuProps.menuClassName),
7958
+ menuClassName: (0, import_clsx39.default)("flex-col-2 p-2 max-h-96 overflow-hidden", menuProps.menuClassName),
7935
7959
  children: (bag) => {
7936
7960
  const { close } = bag;
7937
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
7938
- !searchOptions?.disabled && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7961
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
7962
+ !searchOptions?.disabled && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7939
7963
  SearchBar,
7940
7964
  {
7941
7965
  value: search,
@@ -7943,7 +7967,7 @@ var MultiSelect = ({
7943
7967
  autoFocus: true
7944
7968
  }
7945
7969
  ),
7946
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex-col-2 overflow-y-auto", children: [
7970
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex-col-2 overflow-y-auto", children: [
7947
7971
  result.map((option, index) => {
7948
7972
  const update = () => {
7949
7973
  onChange(options.map((value) => value.value === option.value ? {
@@ -7951,10 +7975,10 @@ var MultiSelect = ({
7951
7975
  selected: !value.selected
7952
7976
  } : value));
7953
7977
  };
7954
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7978
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7955
7979
  SelectTile,
7956
7980
  {
7957
- prefix: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7981
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7958
7982
  Checkbox,
7959
7983
  {
7960
7984
  checked: option.selected,
@@ -7972,9 +7996,9 @@ var MultiSelect = ({
7972
7996
  }),
7973
7997
  additionalItems && additionalItems({ ...bag, search })
7974
7998
  ] }),
7975
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex-row-2 justify-between", children: [
7976
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex-row-2", children: [
7977
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7999
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex-row-2 justify-between", children: [
8000
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex-row-2", children: [
8001
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7978
8002
  SolidButton,
7979
8003
  {
7980
8004
  color: "neutral",
@@ -7989,7 +8013,7 @@ var MultiSelect = ({
7989
8013
  children: translation("all")
7990
8014
  }
7991
8015
  ),
7992
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8016
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7993
8017
  SolidButton,
7994
8018
  {
7995
8019
  color: "neutral",
@@ -8004,7 +8028,7 @@ var MultiSelect = ({
8004
8028
  }
8005
8029
  )
8006
8030
  ] }),
8007
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SolidButton, { size: "small", onClick: close, children: "Done" })
8031
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SolidButton, { size: "small", onClick: close, children: "Done" })
8008
8032
  ] })
8009
8033
  ] });
8010
8034
  }
@@ -8021,7 +8045,7 @@ var MultiSelectUncontrolled = ({
8021
8045
  (0, import_react28.useEffect)(() => {
8022
8046
  setUsedOptions(options);
8023
8047
  }, [options]);
8024
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8048
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
8025
8049
  MultiSelect,
8026
8050
  {
8027
8051
  ...props,
@@ -8035,7 +8059,7 @@ var MultiSelectUncontrolled = ({
8035
8059
  };
8036
8060
 
8037
8061
  // src/components/properties/MultiSelectProperty.tsx
8038
- var import_jsx_runtime51 = require("react/jsx-runtime");
8062
+ var import_jsx_runtime52 = require("react/jsx-runtime");
8039
8063
  var MultiSelectProperty = ({
8040
8064
  overwriteTranslation,
8041
8065
  options,
@@ -8048,7 +8072,7 @@ var MultiSelectProperty = ({
8048
8072
  }) => {
8049
8073
  const translation = useTranslation([formTranslation], overwriteTranslation);
8050
8074
  const hasValue = options.some((value) => value.selected);
8051
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
8075
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
8052
8076
  PropertyBase,
8053
8077
  {
8054
8078
  name,
@@ -8056,12 +8080,12 @@ var MultiSelectProperty = ({
8056
8080
  readOnly,
8057
8081
  softRequired,
8058
8082
  hasValue,
8059
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react16.List, { size: 24 }),
8060
- input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
8083
+ icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react16.List, { size: 24 }),
8084
+ input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
8061
8085
  MultiSelect,
8062
8086
  {
8063
8087
  ...multiSelectProps,
8064
- className: (0, import_clsx38.default)("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
8088
+ className: (0, import_clsx40.default)("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
8065
8089
  options,
8066
8090
  disabled: readOnly,
8067
8091
  useChipDisplay: true,
@@ -8074,10 +8098,10 @@ var MultiSelectProperty = ({
8074
8098
  if (!onAddNew && !search.trim()) {
8075
8099
  return void 0;
8076
8100
  }
8077
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
8101
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
8078
8102
  SelectTile,
8079
8103
  {
8080
- prefix: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react16.Plus, {}),
8104
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react16.Plus, {}),
8081
8105
  title: { value: `${translation("add")} ${search.trim()}` },
8082
8106
  onClick: () => {
8083
8107
  onAddNew(search);
@@ -8087,7 +8111,7 @@ var MultiSelectProperty = ({
8087
8111
  }
8088
8112
  );
8089
8113
  },
8090
- triggerClassName: (0, import_clsx38.default)(
8114
+ triggerClassName: (0, import_clsx40.default)(
8091
8115
  "!border-none !p-0 !min-h-10",
8092
8116
  {
8093
8117
  "!bg-warning !text-surface-warning": softRequired2 && !hasValue,
@@ -8102,8 +8126,8 @@ var MultiSelectProperty = ({
8102
8126
 
8103
8127
  // src/components/properties/NumberProperty.tsx
8104
8128
  var import_lucide_react17 = require("lucide-react");
8105
- var import_clsx39 = __toESM(require("clsx"));
8106
- var import_jsx_runtime52 = require("react/jsx-runtime");
8129
+ var import_clsx41 = __toESM(require("clsx"));
8130
+ var import_jsx_runtime53 = require("react/jsx-runtime");
8107
8131
  var defaultNumberPropertyTranslation = {
8108
8132
  en: {
8109
8133
  value: "Value"
@@ -8124,23 +8148,23 @@ var NumberProperty = ({
8124
8148
  }) => {
8125
8149
  const translation = useTranslation([defaultNumberPropertyTranslation], overwriteTranslation);
8126
8150
  const hasValue = value !== void 0;
8127
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
8151
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
8128
8152
  PropertyBase,
8129
8153
  {
8130
8154
  ...baseProps,
8131
8155
  onRemove,
8132
8156
  hasValue,
8133
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react17.Binary, { size: 24 }),
8134
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
8157
+ icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react17.Binary, { size: 24 }),
8158
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
8135
8159
  "div",
8136
8160
  {
8137
- className: (0, import_clsx39.default)("flex-row-2 grow", { "text-warning": softRequired && !hasValue }),
8161
+ className: (0, import_clsx41.default)("flex-row-2 grow", { "text-warning": softRequired && !hasValue }),
8138
8162
  children: [
8139
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
8163
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
8140
8164
  Input,
8141
8165
  {
8142
8166
  expanded: false,
8143
- className: (0, import_clsx39.default)("!ring-0 !border-0 !outline-0 !p-0 !m-0 !w-fit !shadow-none !rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
8167
+ className: (0, import_clsx41.default)("!ring-0 !border-0 !outline-0 !p-0 !m-0 !w-fit !shadow-none !rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
8144
8168
  value: value?.toString() ?? "",
8145
8169
  type: "number",
8146
8170
  readOnly,
@@ -8163,7 +8187,7 @@ var NumberProperty = ({
8163
8187
  }
8164
8188
  }
8165
8189
  ),
8166
- suffix && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: (0, import_clsx39.default)("ml-1", { "bg-surface-warning": softRequired && !hasValue }), children: suffix })
8190
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: (0, import_clsx41.default)("ml-1", { "bg-surface-warning": softRequired && !hasValue }), children: suffix })
8167
8191
  ]
8168
8192
  }
8169
8193
  )
@@ -8173,8 +8197,8 @@ var NumberProperty = ({
8173
8197
 
8174
8198
  // src/components/properties/SelectProperty.tsx
8175
8199
  var import_lucide_react18 = require("lucide-react");
8176
- var import_clsx40 = __toESM(require("clsx"));
8177
- var import_jsx_runtime53 = require("react/jsx-runtime");
8200
+ var import_clsx42 = __toESM(require("clsx"));
8201
+ var import_jsx_runtime54 = require("react/jsx-runtime");
8178
8202
  var SingleSelectProperty = ({
8179
8203
  overwriteTranslation,
8180
8204
  value,
@@ -8188,7 +8212,7 @@ var SingleSelectProperty = ({
8188
8212
  }) => {
8189
8213
  const translation = useTranslation([formTranslation], overwriteTranslation);
8190
8214
  const hasValue = value !== void 0;
8191
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
8215
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8192
8216
  PropertyBase,
8193
8217
  {
8194
8218
  name,
@@ -8196,15 +8220,15 @@ var SingleSelectProperty = ({
8196
8220
  readOnly,
8197
8221
  softRequired,
8198
8222
  hasValue,
8199
- icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react18.List, { size: 24 }),
8200
- input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
8223
+ icon: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react18.List, { size: 24 }),
8224
+ input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8201
8225
  Select,
8202
8226
  {
8203
8227
  ...selectProps,
8204
8228
  value,
8205
8229
  options,
8206
8230
  disabled: readOnly,
8207
- className: (0, import_clsx40.default)("w-full"),
8231
+ className: (0, import_clsx42.default)("w-full"),
8208
8232
  hintText: `${translation("select")}...`,
8209
8233
  searchOptions: {
8210
8234
  sortingFunction: (a, b) => a.value.localeCompare(b.value),
@@ -8214,10 +8238,10 @@ var SingleSelectProperty = ({
8214
8238
  if (!onAddNew && !search.trim()) {
8215
8239
  return void 0;
8216
8240
  }
8217
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
8241
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8218
8242
  SelectTile,
8219
8243
  {
8220
- prefix: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react18.Plus, {}),
8244
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react18.Plus, {}),
8221
8245
  title: { value: `${translation("add")} ${search.trim()}` },
8222
8246
  onClick: () => {
8223
8247
  onAddNew(search);
@@ -8227,7 +8251,7 @@ var SingleSelectProperty = ({
8227
8251
  }
8228
8252
  );
8229
8253
  },
8230
- triggerClassName: (0, import_clsx40.default)(
8254
+ triggerClassName: (0, import_clsx42.default)(
8231
8255
  "!border-none",
8232
8256
  {
8233
8257
  "!bg-warning !text-surface-warning": softRequired2 && !hasValue,
@@ -8243,12 +8267,12 @@ var SingleSelectProperty = ({
8243
8267
 
8244
8268
  // src/components/properties/TextProperty.tsx
8245
8269
  var import_lucide_react19 = require("lucide-react");
8246
- var import_clsx42 = __toESM(require("clsx"));
8270
+ var import_clsx44 = __toESM(require("clsx"));
8247
8271
 
8248
8272
  // src/components/user-action/Textarea.tsx
8249
8273
  var import_react29 = require("react");
8250
- var import_clsx41 = __toESM(require("clsx"));
8251
- var import_jsx_runtime54 = require("react/jsx-runtime");
8274
+ var import_clsx43 = __toESM(require("clsx"));
8275
+ var import_jsx_runtime55 = require("react/jsx-runtime");
8252
8276
  var Textarea = ({
8253
8277
  label,
8254
8278
  headline,
@@ -8271,20 +8295,20 @@ var Textarea = ({
8271
8295
  onEditCompleted(text);
8272
8296
  clearTimer();
8273
8297
  };
8274
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "w-full", children: [
8275
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8298
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "w-full", children: [
8299
+ label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8276
8300
  Label,
8277
8301
  {
8278
8302
  ...label,
8279
8303
  htmlFor: id,
8280
- className: (0, import_clsx41.default)("mb-1", label.className),
8304
+ className: (0, import_clsx43.default)("mb-1", label.className),
8281
8305
  labelType: label.labelType ?? "labelSmall"
8282
8306
  }
8283
8307
  ),
8284
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8308
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
8285
8309
  "div",
8286
8310
  {
8287
- className: (0, import_clsx41.default)(
8311
+ className: (0, import_clsx43.default)(
8288
8312
  "bg-surface text-on-surface relative",
8289
8313
  {
8290
8314
  "shadow border-2 rounded-lg": defaultStyle,
@@ -8293,12 +8317,12 @@ var Textarea = ({
8293
8317
  }
8294
8318
  ),
8295
8319
  children: [
8296
- headline && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "mx-3 mt-3 block textstyle-label-md", children: headline }),
8297
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8320
+ headline && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "mx-3 mt-3 block textstyle-label-md", children: headline }),
8321
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8298
8322
  "textarea",
8299
8323
  {
8300
8324
  id,
8301
- className: (0, import_clsx41.default)("pt-0 px-3 border-transparent appearance-none w-full leading-tight focus:ring-0 focus:outline-none", {
8325
+ className: (0, import_clsx43.default)("pt-0 px-3 border-transparent appearance-none w-full leading-tight focus:ring-0 focus:outline-none", {
8302
8326
  "resize-none": !resizable,
8303
8327
  "h-32": defaultStyle,
8304
8328
  "mt-3": !headline,
@@ -8327,7 +8351,7 @@ var Textarea = ({
8327
8351
  ]
8328
8352
  }
8329
8353
  ),
8330
- hasFocus && disclaimer && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("label", { className: "text-negative", children: disclaimer })
8354
+ hasFocus && disclaimer && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("label", { className: "text-negative", children: disclaimer })
8331
8355
  ] });
8332
8356
  };
8333
8357
  var TextareaUncontrolled = ({
@@ -8339,7 +8363,7 @@ var TextareaUncontrolled = ({
8339
8363
  (0, import_react29.useEffect)(() => {
8340
8364
  setText(value);
8341
8365
  }, [value]);
8342
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8366
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8343
8367
  Textarea,
8344
8368
  {
8345
8369
  ...props,
@@ -8353,7 +8377,7 @@ var TextareaUncontrolled = ({
8353
8377
  };
8354
8378
 
8355
8379
  // src/components/properties/TextProperty.tsx
8356
- var import_jsx_runtime55 = require("react/jsx-runtime");
8380
+ var import_jsx_runtime56 = require("react/jsx-runtime");
8357
8381
  var defaultTextPropertyTranslation = {
8358
8382
  en: {
8359
8383
  text: "Text"
@@ -8373,17 +8397,17 @@ var TextProperty = ({
8373
8397
  }) => {
8374
8398
  const translation = useTranslation([defaultTextPropertyTranslation], overwriteTranslation);
8375
8399
  const hasValue = value !== void 0;
8376
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8400
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8377
8401
  PropertyBase,
8378
8402
  {
8379
8403
  ...baseProps,
8380
8404
  onRemove,
8381
8405
  hasValue,
8382
- icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react19.Text, { size: 24 }),
8383
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8406
+ icon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_lucide_react19.Text, { size: 24 }),
8407
+ input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8384
8408
  Textarea,
8385
8409
  {
8386
- className: (0, import_clsx42.default)("ring-0 border-0 outline-0 !px-0 p-0 m-0 shadow-none rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
8410
+ className: (0, import_clsx44.default)("ring-0 border-0 outline-0 !px-0 p-0 m-0 shadow-none rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
8387
8411
  rows: 5,
8388
8412
  defaultStyle: false,
8389
8413
  value: value ?? "",
@@ -8410,12 +8434,12 @@ var TextProperty = ({
8410
8434
  };
8411
8435
 
8412
8436
  // src/components/table/FillerRowElement.tsx
8413
- var import_clsx43 = require("clsx");
8414
- var import_jsx_runtime56 = require("react/jsx-runtime");
8437
+ var import_clsx45 = require("clsx");
8438
+ var import_jsx_runtime57 = require("react/jsx-runtime");
8415
8439
  var FillerRowElement = ({
8416
8440
  className
8417
8441
  }) => {
8418
- 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-text font-bold", className), children: "-" });
8442
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: (0, import_clsx45.clsx)("flex flex-row items-center w-1/2 h-4 text-disabled-text font-bold", className), children: "-" });
8419
8443
  };
8420
8444
 
8421
8445
  // src/components/table/Filter.ts
@@ -8434,14 +8458,14 @@ var TableFilters = {
8434
8458
 
8435
8459
  // src/components/table/Table.tsx
8436
8460
  var import_react32 = require("react");
8437
- var import_clsx46 = __toESM(require("clsx"));
8461
+ var import_clsx48 = __toESM(require("clsx"));
8438
8462
  var import_react_table = require("@tanstack/react-table");
8439
8463
  var import_react_custom_scrollbars_23 = require("react-custom-scrollbars-2");
8440
8464
 
8441
8465
  // src/components/table/TableFilterButton.tsx
8442
8466
  var import_lucide_react20 = require("lucide-react");
8443
8467
  var import_react30 = require("react");
8444
- var import_jsx_runtime57 = require("react/jsx-runtime");
8468
+ var import_jsx_runtime58 = require("react/jsx-runtime");
8445
8469
  var defaultTableFilterTranslation = {
8446
8470
  en: {
8447
8471
  filter: "Filter",
@@ -8471,12 +8495,12 @@ var TableFilterButton = ({
8471
8495
  (0, import_react30.useEffect)(() => {
8472
8496
  setFilterValue(columnFilterValue);
8473
8497
  }, [columnFilterValue]);
8474
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8498
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8475
8499
  Menu,
8476
8500
  {
8477
- trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { ref, className: "relative", children: [
8478
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(IconButton, { color: "neutral", size: "tiny", onClick: toggleOpen, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react20.FilterIcon, {}) }),
8479
- hasFilter && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8501
+ trigger: ({ toggleOpen }, ref) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { ref, className: "relative", children: [
8502
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(IconButton, { color: "neutral", size: "tiny", onClick: toggleOpen, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react20.FilterIcon, {}) }),
8503
+ hasFilter && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8480
8504
  "div",
8481
8505
  {
8482
8506
  className: "absolute top-0.5 right-0.5 w-2 h-2 rounded-full bg-primary pointer-events-none",
@@ -8484,9 +8508,9 @@ var TableFilterButton = ({
8484
8508
  }
8485
8509
  )
8486
8510
  ] }),
8487
- children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
8488
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h4", { className: "textstyle-title-sm", children: translation("filter") }),
8489
- filterType === "text" && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8511
+ children: ({ close }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex-col-1 p-2 items-start font-normal text-menu-text", children: [
8512
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("h4", { className: "textstyle-title-sm", children: translation("filter") }),
8513
+ filterType === "text" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8490
8514
  Input,
8491
8515
  {
8492
8516
  value: filterValue ?? "",
@@ -8496,8 +8520,8 @@ var TableFilterButton = ({
8496
8520
  className: "h-10"
8497
8521
  }
8498
8522
  ),
8499
- filterType === "range" && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex-row-2 items-center", children: [
8500
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8523
+ filterType === "range" && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex-row-2 items-center", children: [
8524
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8501
8525
  Input,
8502
8526
  {
8503
8527
  value: filterValue?.[0] ?? "",
@@ -8510,8 +8534,8 @@ var TableFilterButton = ({
8510
8534
  className: "h-10 input-indicator-hidden w-40"
8511
8535
  }
8512
8536
  ),
8513
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "font-bold", children: "-" }),
8514
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8537
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "font-bold", children: "-" }),
8538
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8515
8539
  Input,
8516
8540
  {
8517
8541
  value: filterValue?.[1] ?? "",
@@ -8525,8 +8549,8 @@ var TableFilterButton = ({
8525
8549
  }
8526
8550
  )
8527
8551
  ] }),
8528
- filterType === "dateRange" && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
8529
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8552
+ filterType === "dateRange" && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
8553
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8530
8554
  Input,
8531
8555
  {
8532
8556
  value: filterValue?.[0] ? filterValue?.[0].toISOString().slice(0, 16) : "",
@@ -8539,7 +8563,7 @@ var TableFilterButton = ({
8539
8563
  className: "h-10 w-50"
8540
8564
  }
8541
8565
  ),
8542
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8566
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8543
8567
  Input,
8544
8568
  {
8545
8569
  value: filterValue?.[1] ? filterValue?.[1].toISOString().slice(0, 16) : "",
@@ -8553,12 +8577,12 @@ var TableFilterButton = ({
8553
8577
  }
8554
8578
  )
8555
8579
  ] }),
8556
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex-row-2 justify-end w-full", children: [
8557
- hasFilter && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SolidButton, { color: "negative", size: "small", onClick: () => {
8580
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex-row-2 justify-end w-full", children: [
8581
+ hasFilter && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SolidButton, { color: "negative", size: "small", onClick: () => {
8558
8582
  column.setFilterValue(void 0);
8559
8583
  close();
8560
8584
  }, children: translation("remove") }),
8561
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SolidButton, { size: "small", onClick: () => {
8585
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SolidButton, { size: "small", onClick: () => {
8562
8586
  column.setFilterValue(filterValue);
8563
8587
  close();
8564
8588
  }, children: translation("apply") })
@@ -8570,8 +8594,8 @@ var TableFilterButton = ({
8570
8594
 
8571
8595
  // src/components/table/TableSortButton.tsx
8572
8596
  var import_lucide_react21 = require("lucide-react");
8573
- var import_clsx44 = __toESM(require("clsx"));
8574
- var import_jsx_runtime58 = require("react/jsx-runtime");
8597
+ var import_clsx46 = __toESM(require("clsx"));
8598
+ var import_jsx_runtime59 = require("react/jsx-runtime");
8575
8599
  var TableSortButton = ({
8576
8600
  sortDirection,
8577
8601
  invert = false,
@@ -8579,20 +8603,20 @@ var TableSortButton = ({
8579
8603
  className,
8580
8604
  ...buttonProps
8581
8605
  }) => {
8582
- let icon = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react21.ChevronsUpDown, { className: "w-full h-full" });
8606
+ let icon = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react21.ChevronsUpDown, { className: "w-full h-full" });
8583
8607
  if (sortDirection) {
8584
8608
  let usedSortDirection = sortDirection;
8585
8609
  if (invert) {
8586
8610
  usedSortDirection = usedSortDirection === "desc" ? "asc" : "desc";
8587
8611
  }
8588
- icon = usedSortDirection === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react21.ChevronUp, { className: "w-full h-full" }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react21.ChevronDown, { className: "w-full h-full" });
8612
+ icon = usedSortDirection === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react21.ChevronUp, { className: "w-full h-full" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react21.ChevronDown, { className: "w-full h-full" });
8589
8613
  }
8590
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8614
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
8591
8615
  IconButton,
8592
8616
  {
8593
8617
  size: "tiny",
8594
8618
  color,
8595
- className: (0, import_clsx44.default)(className),
8619
+ className: (0, import_clsx46.default)(className),
8596
8620
  ...buttonProps,
8597
8621
  children: icon
8598
8622
  }
@@ -8611,17 +8635,17 @@ var useResizeCallbackWrapper = (callback) => {
8611
8635
  };
8612
8636
 
8613
8637
  // src/components/table/TableCell.tsx
8614
- var import_clsx45 = require("clsx");
8615
- var import_jsx_runtime59 = require("react/jsx-runtime");
8638
+ var import_clsx47 = require("clsx");
8639
+ var import_jsx_runtime60 = require("react/jsx-runtime");
8616
8640
  var TableCell = ({
8617
8641
  children,
8618
8642
  className
8619
8643
  }) => {
8620
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: (0, import_clsx45.clsx)("block max-w-full overflow-ellipsis truncate", className), children });
8644
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: (0, import_clsx47.clsx)("block max-w-full overflow-ellipsis truncate", className), children });
8621
8645
  };
8622
8646
 
8623
8647
  // src/components/table/Table.tsx
8624
- var import_jsx_runtime60 = require("react/jsx-runtime");
8648
+ var import_jsx_runtime61 = require("react/jsx-runtime");
8625
8649
  var Table = ({
8626
8650
  data,
8627
8651
  fillerRow,
@@ -8740,7 +8764,7 @@ var Table = ({
8740
8764
  minSize: 60,
8741
8765
  maxSize: 700,
8742
8766
  cell: ({ cell }) => {
8743
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TableCell, { children: cell.getValue() });
8767
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TableCell, { children: cell.getValue() });
8744
8768
  },
8745
8769
  ...defaultColumn
8746
8770
  },
@@ -8825,24 +8849,24 @@ var Table = ({
8825
8849
  }
8826
8850
  return colSizes;
8827
8851
  }, [table.getState().columnSizingInfo, table.getState().columnSizing]);
8828
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { ref, className: (0, import_clsx46.default)("flex-col-4", className), children: [
8829
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8852
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { ref, className: (0, import_clsx48.default)("flex-col-4", className), children: [
8853
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8830
8854
  import_react_custom_scrollbars_23.Scrollbars,
8831
8855
  {
8832
8856
  autoHeight: true,
8833
8857
  autoHeightMax: tableRef.current?.offsetHeight + 2,
8834
8858
  autoHide: true,
8835
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
8859
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
8836
8860
  "table",
8837
8861
  {
8838
8862
  ref: tableRef,
8839
- className: (0, import_clsx46.default)(tableClassName),
8863
+ className: (0, import_clsx48.default)(tableClassName),
8840
8864
  style: {
8841
8865
  ...columnSizeVars,
8842
8866
  width: Math.floor(Math.max(table.getTotalSize() - columns.length, ref.current?.offsetWidth ?? table.getTotalSize()))
8843
8867
  },
8844
8868
  children: [
8845
- table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8869
+ table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("colgroup", { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8846
8870
  "col",
8847
8871
  {
8848
8872
  style: {
@@ -8853,22 +8877,22 @@ var Table = ({
8853
8877
  },
8854
8878
  header.id
8855
8879
  )) }, headerGroup.id)),
8856
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tr", { className: table.options.meta?.headerRowClassName, children: headerGroup.headers.map((header) => {
8857
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
8880
+ /* @__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) => {
8881
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
8858
8882
  "th",
8859
8883
  {
8860
8884
  colSpan: header.colSpan,
8861
- className: (0, import_clsx46.default)("relative group", header.column.columnDef.meta?.className),
8885
+ className: (0, import_clsx48.default)("relative group", header.column.columnDef.meta?.className),
8862
8886
  children: [
8863
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex-row-2 w-full", children: header.isPlaceholder ? null : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-row-1 items-center", children: [
8864
- header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8887
+ /* @__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: [
8888
+ header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8865
8889
  TableSortButton,
8866
8890
  {
8867
8891
  sortDirection: header.column.getIsSorted(),
8868
8892
  onClick: () => header.column.toggleSorting()
8869
8893
  }
8870
8894
  ),
8871
- header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8895
+ header.column.getCanFilter() && header.column.columnDef.meta?.filterType ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8872
8896
  TableFilterButton,
8873
8897
  {
8874
8898
  column: header.column,
@@ -8880,7 +8904,7 @@ var Table = ({
8880
8904
  header.getContext()
8881
8905
  )
8882
8906
  ] }) }),
8883
- header.column.getCanResize() && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8907
+ header.column.getCanResize() && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8884
8908
  "div",
8885
8909
  {
8886
8910
  onMouseDown: header.getResizeHandler(),
@@ -8899,18 +8923,18 @@ var Table = ({
8899
8923
  header.id
8900
8924
  );
8901
8925
  }) }, headerGroup.id)) }),
8902
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("tbody", { children: [
8926
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("tbody", { children: [
8903
8927
  table.getRowModel().rows.map((row) => {
8904
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tr", { onClick: () => onRowClick(row, table), className: table.options.meta?.bodyRowClassName, children: row.getVisibleCells().map((cell) => {
8905
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("td", { children: (0, import_react_table.flexRender)(
8928
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tr", { onClick: () => onRowClick(row, table), className: table.options.meta?.bodyRowClassName, children: row.getVisibleCells().map((cell) => {
8929
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { children: (0, import_react_table.flexRender)(
8906
8930
  cell.column.columnDef.cell,
8907
8931
  cell.getContext()
8908
8932
  ) }, cell.id);
8909
8933
  }) }, row.id);
8910
8934
  }),
8911
8935
  range(table.getState().pagination.pageSize - table.getRowModel().rows.length, { allowEmptyRange: true }).map((row, index) => {
8912
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("tr", { children: columns.map((column) => {
8913
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FillerRowElement, {}) }, column.id);
8936
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("tr", { children: columns.map((column) => {
8937
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { children: fillerRow ? fillerRow(column.id, table) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FillerRowElement, {}) }, column.id);
8914
8938
  }) }, "filler-row-" + index);
8915
8939
  })
8916
8940
  ] })
@@ -8919,7 +8943,7 @@ var Table = ({
8919
8943
  )
8920
8944
  }
8921
8945
  ),
8922
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8946
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex-row-2 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8923
8947
  Pagination,
8924
8948
  {
8925
8949
  pageIndex: table.getState().pagination.pageIndex,
@@ -8934,7 +8958,7 @@ var TableUncontrolled = ({ data, ...props }) => {
8934
8958
  (0, import_react32.useEffect)(() => {
8935
8959
  setUsedData(data);
8936
8960
  }, [data]);
8937
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8961
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8938
8962
  Table,
8939
8963
  {
8940
8964
  ...props,
@@ -8958,7 +8982,7 @@ var TableWithSelection = ({
8958
8982
  {
8959
8983
  id: selectionRowId,
8960
8984
  header: ({ table }) => {
8961
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8985
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8962
8986
  Checkbox,
8963
8987
  {
8964
8988
  checked: table.getIsSomeRowsSelected() ? "indeterminate" : table.getIsAllRowsSelected(),
@@ -8971,7 +8995,7 @@ var TableWithSelection = ({
8971
8995
  );
8972
8996
  },
8973
8997
  cell: ({ row }) => {
8974
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8998
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8975
8999
  Checkbox,
8976
9000
  {
8977
9001
  disabled: !row.getCanSelect(),
@@ -8990,15 +9014,15 @@ var TableWithSelection = ({
8990
9014
  ...columns
8991
9015
  ];
8992
9016
  }, [columns, selectionRowId]);
8993
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9017
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8994
9018
  Table,
8995
9019
  {
8996
9020
  columns: columnsWithSelection,
8997
9021
  fillerRow: (columnId, table) => {
8998
9022
  if (columnId === selectionRowId) {
8999
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Checkbox, { checked: false, disabled: true, containerClassName: "max-w-6" });
9023
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Checkbox, { checked: false, disabled: true, containerClassName: "max-w-6" });
9000
9024
  }
9001
- return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FillerRowElement, {});
9025
+ return fillerRow ? fillerRow(columnId, table) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FillerRowElement, {});
9002
9026
  },
9003
9027
  state: {
9004
9028
  rowSelection,
@@ -9012,7 +9036,7 @@ var TableWithSelection = ({
9012
9036
  },
9013
9037
  meta: {
9014
9038
  ...meta,
9015
- bodyRowClassName: (0, import_clsx46.default)(
9039
+ bodyRowClassName: (0, import_clsx48.default)(
9016
9040
  { "cursor-pointer": !disableClickRowClickSelection },
9017
9041
  meta?.bodyRowClassName
9018
9042
  )
@@ -9024,7 +9048,7 @@ var TableWithSelection = ({
9024
9048
 
9025
9049
  // src/components/user-action/CopyToClipboardWrapper.tsx
9026
9050
  var import_react33 = require("react");
9027
- var import_clsx47 = require("clsx");
9051
+ var import_clsx49 = require("clsx");
9028
9052
 
9029
9053
  // src/util/writeToClipboard.ts
9030
9054
  var writeToClipboard = (text) => {
@@ -9033,7 +9057,7 @@ var writeToClipboard = (text) => {
9033
9057
 
9034
9058
  // src/components/user-action/CopyToClipboardWrapper.tsx
9035
9059
  var import_lucide_react22 = require("lucide-react");
9036
- var import_jsx_runtime61 = require("react/jsx-runtime");
9060
+ var import_jsx_runtime62 = require("react/jsx-runtime");
9037
9061
  var CopyToClipboardWrapper = ({
9038
9062
  children,
9039
9063
  textToCopy,
@@ -9064,10 +9088,10 @@ var CopyToClipboardWrapper = ({
9064
9088
  left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
9065
9089
  right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
9066
9090
  };
9067
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9091
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
9068
9092
  "div",
9069
9093
  {
9070
- className: (0, import_clsx47.clsx)("relative inline-block cursor-copy", containerClassName),
9094
+ className: (0, import_clsx49.clsx)("relative inline-block cursor-copy", containerClassName),
9071
9095
  onMouseEnter: () => {
9072
9096
  setIsShowingIndication(true);
9073
9097
  },
@@ -9082,10 +9106,10 @@ var CopyToClipboardWrapper = ({
9082
9106
  },
9083
9107
  children: [
9084
9108
  children,
9085
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
9109
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
9086
9110
  "div",
9087
9111
  {
9088
- className: (0, import_clsx47.clsx)(
9112
+ className: (0, import_clsx49.clsx)(
9089
9113
  `absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
9090
9114
  shadow-around-md bg-tooltip-background cursor-default pointer-events-none`,
9091
9115
  "transition-opacity duration-200",
@@ -9097,18 +9121,18 @@ var CopyToClipboardWrapper = ({
9097
9121
  opacity: isShowingIndication || isShowingConfirmation ? 1 : 0
9098
9122
  },
9099
9123
  children: [
9100
- isShowingConfirmation && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-1", children: [
9101
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react22.CheckIcon, { size: 16, className: "text-positive" }),
9124
+ isShowingConfirmation && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1", children: [
9125
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.CheckIcon, { size: 16, className: "text-positive" }),
9102
9126
  translation("copied")
9103
9127
  ] }),
9104
- isShowingIndication && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-row-1 text-description", children: [
9105
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react22.Copy, { size: 16 }),
9128
+ isShowingIndication && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-1 text-description", children: [
9129
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.Copy, { size: 16 }),
9106
9130
  translation("clickToCopy")
9107
9131
  ] }),
9108
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9132
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9109
9133
  "div",
9110
9134
  {
9111
- className: (0, import_clsx47.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
9135
+ className: (0, import_clsx49.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
9112
9136
  style: { ...triangleStyle[position], zIndex: zIndex + 1 }
9113
9137
  }
9114
9138
  )
@@ -9121,8 +9145,8 @@ var CopyToClipboardWrapper = ({
9121
9145
  };
9122
9146
 
9123
9147
  // src/components/user-action/DateAndTimePicker.tsx
9124
- var import_clsx48 = __toESM(require("clsx"));
9125
- var import_jsx_runtime62 = require("react/jsx-runtime");
9148
+ var import_clsx50 = __toESM(require("clsx"));
9149
+ var import_jsx_runtime63 = require("react/jsx-runtime");
9126
9150
  var DateTimePicker = ({
9127
9151
  overwriteTranslation,
9128
9152
  value = /* @__PURE__ */ new Date(),
@@ -9141,7 +9165,7 @@ var DateTimePicker = ({
9141
9165
  let dateDisplay;
9142
9166
  let timeDisplay;
9143
9167
  if (useDate) {
9144
- dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9168
+ dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9145
9169
  DatePicker,
9146
9170
  {
9147
9171
  ...datePickerProps,
@@ -9155,25 +9179,25 @@ var DateTimePicker = ({
9155
9179
  );
9156
9180
  }
9157
9181
  if (useTime) {
9158
- timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9182
+ timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9159
9183
  TimePicker,
9160
9184
  {
9161
9185
  ...timePickerProps,
9162
- className: (0, import_clsx48.default)("h-full", { "justify-between w-full": mode === "time" }),
9186
+ className: (0, import_clsx50.default)("h-full", { "justify-between w-full": mode === "time" }),
9163
9187
  maxHeight: 250,
9164
9188
  time: value,
9165
9189
  onChange
9166
9190
  }
9167
9191
  );
9168
9192
  }
9169
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-col-2 w-fit", children: [
9170
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-4", children: [
9193
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-col-2 w-fit", children: [
9194
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-4", children: [
9171
9195
  dateDisplay,
9172
9196
  timeDisplay
9173
9197
  ] }),
9174
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex-row-2 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-row-2 mt-1", children: [
9175
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation("clear") }),
9176
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9198
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex-row-2 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-row-2 mt-1", children: [
9199
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation("clear") }),
9200
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9177
9201
  SolidButton,
9178
9202
  {
9179
9203
  size: "medium",
@@ -9187,8 +9211,8 @@ var DateTimePicker = ({
9187
9211
 
9188
9212
  // src/components/user-action/ScrollPicker.tsx
9189
9213
  var import_react34 = require("react");
9190
- var import_clsx49 = __toESM(require("clsx"));
9191
- var import_jsx_runtime63 = require("react/jsx-runtime");
9214
+ var import_clsx51 = __toESM(require("clsx"));
9215
+ var import_jsx_runtime64 = require("react/jsx-runtime");
9192
9216
  var up = 1;
9193
9217
  var down = -1;
9194
9218
  var ScrollPicker = ({
@@ -9327,7 +9351,7 @@ var ScrollPicker = ({
9327
9351
  }
9328
9352
  return clamp(1 - opacityValue / max);
9329
9353
  };
9330
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9354
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
9331
9355
  "div",
9332
9356
  {
9333
9357
  className: "relative overflow-hidden",
@@ -9337,15 +9361,15 @@ var ScrollPicker = ({
9337
9361
  setAnimation(({ velocity, ...animationData }) => ({ ...animationData, velocity: velocity + event.deltaY }));
9338
9362
  }
9339
9363
  },
9340
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
9341
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9364
+ 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: [
9365
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
9342
9366
  "div",
9343
9367
  {
9344
9368
  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/30 border-y-2 border-x-0 ",
9345
9369
  style: { height: `${itemHeight}px` }
9346
9370
  }
9347
9371
  ),
9348
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9372
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
9349
9373
  "div",
9350
9374
  {
9351
9375
  className: "flex-col-2 select-none",
@@ -9353,10 +9377,10 @@ var ScrollPicker = ({
9353
9377
  transform: `translateY(${-transition * (distance + itemHeight)}px)`,
9354
9378
  columnGap: `${distance}px`
9355
9379
  },
9356
- children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9380
+ children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
9357
9381
  "div",
9358
9382
  {
9359
- className: (0, import_clsx49.default)(
9383
+ className: (0, import_clsx51.default)(
9360
9384
  `flex-col-2 items-center justify-center rounded-md`,
9361
9385
  {
9362
9386
  "text-primary font-bold": currentIndex === index,
@@ -9385,8 +9409,8 @@ var ScrollPicker = ({
9385
9409
  // src/components/user-action/ToggleableInput.tsx
9386
9410
  var import_react35 = require("react");
9387
9411
  var import_lucide_react23 = require("lucide-react");
9388
- var import_clsx50 = __toESM(require("clsx"));
9389
- var import_jsx_runtime64 = require("react/jsx-runtime");
9412
+ var import_clsx52 = __toESM(require("clsx"));
9413
+ var import_jsx_runtime65 = require("react/jsx-runtime");
9390
9414
  var ToggleableInput = ({
9391
9415
  type = "text",
9392
9416
  value,
@@ -9413,14 +9437,14 @@ var ToggleableInput = ({
9413
9437
  ref.current?.focus();
9414
9438
  }
9415
9439
  }, [isEditing]);
9416
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { children: [
9417
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
9440
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { children: [
9441
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
9418
9442
  "div",
9419
9443
  {
9420
- className: (0, import_clsx50.default)("flex-row-2 items-center w-full overflow-hidden", { "cursor-pointer": !isEditing }),
9444
+ className: (0, import_clsx52.default)("flex-row-2 items-center w-full overflow-hidden", { "cursor-pointer": !isEditing }),
9421
9445
  onClick: () => !isEditing ? setIsEditing(!isEditing) : void 0,
9422
9446
  children: [
9423
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: (0, import_clsx50.default)("flex-row-2 overflow-hidden", { "flex-1": isEditing }), children: isEditing ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
9447
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: (0, import_clsx52.default)("flex-row-2 overflow-hidden", { "flex-1": isEditing }), children: isEditing ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
9424
9448
  "input",
9425
9449
  {
9426
9450
  ref,
@@ -9448,16 +9472,16 @@ var ToggleableInput = ({
9448
9472
  onEditCompletedWrapper(value);
9449
9473
  }
9450
9474
  },
9451
- className: (0, import_clsx50.default)(`w-full border-none rounded-none ring-0 outline-0 text-inherit bg-inherit shadow-transparent decoration-primary p-0 underline-offset-4`, {
9475
+ className: (0, import_clsx52.default)(`w-full border-none rounded-none ring-0 outline-0 text-inherit bg-inherit shadow-transparent decoration-primary p-0 underline-offset-4`, {
9452
9476
  underline: isEditing
9453
9477
  }, labelClassName),
9454
9478
  onFocus: (event) => event.target.select()
9455
9479
  }
9456
- ) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: (0, import_clsx50.default)("max-w-xs break-words overflow-hidden", labelClassName), children: value }) }),
9457
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
9480
+ ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: (0, import_clsx52.default)("max-w-xs break-words overflow-hidden", labelClassName), children: value }) }),
9481
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
9458
9482
  import_lucide_react23.Pencil,
9459
9483
  {
9460
- className: (0, import_clsx50.default)(`cursor-pointer`, { "text-transparent": isEditing }),
9484
+ className: (0, import_clsx52.default)(`cursor-pointer`, { "text-transparent": isEditing }),
9461
9485
  size,
9462
9486
  style: { minWidth: `${size}px` }
9463
9487
  }
@@ -9465,7 +9489,7 @@ var ToggleableInput = ({
9465
9489
  ]
9466
9490
  }
9467
9491
  ),
9468
- isEditing && disclaimer && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("label", { className: "text-negative", children: disclaimer })
9492
+ isEditing && disclaimer && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("label", { className: "text-negative", children: disclaimer })
9469
9493
  ] });
9470
9494
  };
9471
9495
  var ToggleableInputUncontrolled = ({
@@ -9477,7 +9501,7 @@ var ToggleableInputUncontrolled = ({
9477
9501
  (0, import_react35.useEffect)(() => {
9478
9502
  setValue(initialValue);
9479
9503
  }, [initialValue]);
9480
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
9504
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
9481
9505
  ToggleableInput,
9482
9506
  {
9483
9507
  value,
@@ -9592,6 +9616,7 @@ function resolveSetState(action, prev) {
9592
9616
  LoadingAndErrorComponent,
9593
9617
  LoadingAnimation,
9594
9618
  LoadingButton,
9619
+ LoadingContainer,
9595
9620
  LocalStorageService,
9596
9621
  LoopingArrayCalculator,
9597
9622
  MarkdownInterpreter,