@helpwave/hightide 0.1.6 → 0.1.7-alpha.1

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 (495) hide show
  1. package/dist/coloring/{shading.d.cts → shading.d.mts} +1 -1
  2. package/dist/coloring/shading.js +14 -3329
  3. package/dist/coloring/shading.js.map +1 -1
  4. package/dist/coloring/shading.mjs +47 -0
  5. package/dist/coloring/shading.mjs.map +1 -0
  6. package/dist/coloring/types.js +26 -2
  7. package/dist/coloring/types.js.map +1 -1
  8. package/dist/coloring/types.mjs +6 -0
  9. package/dist/coloring/{types.cjs.map → types.mjs.map} +1 -1
  10. package/dist/components/branding/HelpwaveBadge.js +59 -25
  11. package/dist/components/branding/HelpwaveBadge.js.map +1 -1
  12. package/dist/components/branding/HelpwaveBadge.mjs +122 -0
  13. package/dist/components/branding/HelpwaveBadge.mjs.map +1 -0
  14. package/dist/components/date/{DatePicker.d.cts → DatePicker.d.mts} +5 -5
  15. package/dist/components/date/DatePicker.js +117 -82
  16. package/dist/components/date/DatePicker.js.map +1 -1
  17. package/dist/components/date/{DatePicker.cjs → DatePicker.mjs} +83 -119
  18. package/dist/components/date/DatePicker.mjs.map +1 -0
  19. package/dist/components/date/{DayPicker.d.cts → DayPicker.d.mts} +1 -1
  20. package/dist/components/date/DayPicker.js +55 -18
  21. package/dist/components/date/DayPicker.js.map +1 -1
  22. package/dist/components/date/{DayPicker.cjs → DayPicker.mjs} +19 -57
  23. package/dist/components/date/DayPicker.mjs.map +1 -0
  24. package/dist/components/date/{TimeDisplay.d.cts → TimeDisplay.d.mts} +2 -2
  25. package/dist/components/date/TimeDisplay.js +35 -9
  26. package/dist/components/date/TimeDisplay.js.map +1 -1
  27. package/dist/components/date/{TimeDisplay.cjs → TimeDisplay.mjs} +10 -37
  28. package/dist/components/date/TimeDisplay.mjs.map +1 -0
  29. package/dist/components/date/TimePicker.js +57 -22
  30. package/dist/components/date/TimePicker.js.map +1 -1
  31. package/dist/components/date/{TimePicker.cjs → TimePicker.mjs} +23 -59
  32. package/dist/components/date/TimePicker.mjs.map +1 -0
  33. package/dist/components/date/{YearMonthPicker.d.cts → YearMonthPicker.d.mts} +1 -1
  34. package/dist/components/date/YearMonthPicker.d.ts +1 -1
  35. package/dist/components/date/YearMonthPicker.js +72 -37
  36. package/dist/components/date/YearMonthPicker.js.map +1 -1
  37. package/dist/components/date/{YearMonthPicker.cjs → YearMonthPicker.mjs} +38 -74
  38. package/dist/components/date/YearMonthPicker.mjs.map +1 -0
  39. package/dist/components/dialogs/{ConfirmDialog.d.cts → ConfirmDialog.d.mts} +4 -4
  40. package/dist/components/dialogs/ConfirmDialog.js +98 -62
  41. package/dist/components/dialogs/ConfirmDialog.js.map +1 -1
  42. package/dist/components/dialogs/{ConfirmDialog.cjs → ConfirmDialog.mjs} +63 -100
  43. package/dist/components/dialogs/ConfirmDialog.mjs.map +1 -0
  44. package/dist/components/icons-and-geometry/Avatar.js +47 -10
  45. package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
  46. package/dist/components/icons-and-geometry/Avatar.mjs +81 -0
  47. package/dist/components/icons-and-geometry/{Avatar.cjs.map → Avatar.mjs.map} +1 -1
  48. package/dist/components/icons-and-geometry/Circle.js +40 -6
  49. package/dist/components/icons-and-geometry/Circle.js.map +1 -1
  50. package/dist/components/icons-and-geometry/Circle.mjs +27 -0
  51. package/dist/components/icons-and-geometry/{Circle.cjs.map → Circle.mjs.map} +1 -1
  52. package/dist/components/icons-and-geometry/Helpwave.js +38 -14
  53. package/dist/components/icons-and-geometry/Helpwave.js.map +1 -1
  54. package/dist/components/icons-and-geometry/Helpwave.mjs +75 -0
  55. package/dist/components/icons-and-geometry/{Helpwave.cjs.map → Helpwave.mjs.map} +1 -1
  56. package/dist/components/icons-and-geometry/Ring.js +74 -37
  57. package/dist/components/icons-and-geometry/Ring.js.map +1 -1
  58. package/dist/components/icons-and-geometry/{Ring.cjs → Ring.mjs} +38 -76
  59. package/dist/components/icons-and-geometry/{Ring.cjs.map → Ring.mjs.map} +1 -1
  60. package/dist/components/icons-and-geometry/Tag.js +28 -4
  61. package/dist/components/icons-and-geometry/Tag.js.map +1 -1
  62. package/dist/components/icons-and-geometry/Tag.mjs +22 -0
  63. package/dist/components/icons-and-geometry/{Tag.cjs.map → Tag.mjs.map} +1 -1
  64. package/dist/components/layout-and-navigation/BreadCrumb.js +195 -191
  65. package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
  66. package/dist/components/layout-and-navigation/{BreadCrumb.cjs → BreadCrumb.mjs} +191 -198
  67. package/dist/components/layout-and-navigation/{BreadCrumb.cjs.map → BreadCrumb.mjs.map} +1 -1
  68. package/dist/components/layout-and-navigation/Carousel.js +68 -34
  69. package/dist/components/layout-and-navigation/Carousel.js.map +1 -1
  70. package/dist/components/layout-and-navigation/{Carousel.cjs → Carousel.mjs} +35 -70
  71. package/dist/components/layout-and-navigation/{Carousel.cjs.map → Carousel.mjs.map} +1 -1
  72. package/dist/components/layout-and-navigation/Chip.js +43 -8
  73. package/dist/components/layout-and-navigation/Chip.js.map +1 -1
  74. package/dist/components/layout-and-navigation/Chip.mjs +69 -0
  75. package/dist/components/layout-and-navigation/{Chip.cjs.map → Chip.mjs.map} +1 -1
  76. package/dist/components/layout-and-navigation/DividerInserter.js +39 -5
  77. package/dist/components/layout-and-navigation/DividerInserter.js.map +1 -1
  78. package/dist/components/layout-and-navigation/DividerInserter.mjs +25 -0
  79. package/dist/components/layout-and-navigation/{DividerInserter.cjs.map → DividerInserter.mjs.map} +1 -1
  80. package/dist/components/layout-and-navigation/Expandable.js +52 -17
  81. package/dist/components/layout-and-navigation/Expandable.js.map +1 -1
  82. package/dist/components/layout-and-navigation/Expandable.mjs +81 -0
  83. package/dist/components/layout-and-navigation/Expandable.mjs.map +1 -0
  84. package/dist/components/layout-and-navigation/{FAQSection.d.cts → FAQSection.d.mts} +1 -1
  85. package/dist/components/layout-and-navigation/FAQSection.js +75 -41
  86. package/dist/components/layout-and-navigation/FAQSection.js.map +1 -1
  87. package/dist/components/layout-and-navigation/{FAQSection.cjs → FAQSection.mjs} +42 -77
  88. package/dist/components/layout-and-navigation/FAQSection.mjs.map +1 -0
  89. package/dist/components/layout-and-navigation/{MarkdownInterpreter.d.cts → MarkdownInterpreter.d.mts} +1 -1
  90. package/dist/components/layout-and-navigation/MarkdownInterpreter.d.ts +1 -1
  91. package/dist/components/layout-and-navigation/MarkdownInterpreter.js +43 -18
  92. package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +1 -1
  93. package/dist/components/layout-and-navigation/{MarkdownInterpreter.cjs → MarkdownInterpreter.mjs} +19 -45
  94. package/dist/components/layout-and-navigation/{MarkdownInterpreter.cjs.map → MarkdownInterpreter.mjs.map} +1 -1
  95. package/dist/components/layout-and-navigation/{Overlay.d.cts → Overlay.d.mts} +3 -3
  96. package/dist/components/layout-and-navigation/Overlay.d.ts +1 -1
  97. package/dist/components/layout-and-navigation/Overlay.js +91 -54
  98. package/dist/components/layout-and-navigation/Overlay.js.map +1 -1
  99. package/dist/components/layout-and-navigation/{Overlay.cjs → Overlay.mjs} +55 -93
  100. package/dist/components/layout-and-navigation/Overlay.mjs.map +1 -0
  101. package/dist/components/layout-and-navigation/{Pagination.d.cts → Pagination.d.mts} +2 -2
  102. package/dist/components/layout-and-navigation/Pagination.js +53 -19
  103. package/dist/components/layout-and-navigation/Pagination.js.map +1 -1
  104. package/dist/components/layout-and-navigation/Pagination.mjs +82 -0
  105. package/dist/components/layout-and-navigation/Pagination.mjs.map +1 -0
  106. package/dist/components/layout-and-navigation/{SearchableList.d.cts → SearchableList.d.mts} +2 -2
  107. package/dist/components/layout-and-navigation/SearchableList.js +76 -42
  108. package/dist/components/layout-and-navigation/SearchableList.js.map +1 -1
  109. package/dist/components/layout-and-navigation/SearchableList.mjs +252 -0
  110. package/dist/components/layout-and-navigation/SearchableList.mjs.map +1 -0
  111. package/dist/components/layout-and-navigation/{StepperBar.d.cts → StepperBar.d.mts} +2 -2
  112. package/dist/components/layout-and-navigation/StepperBar.js +69 -34
  113. package/dist/components/layout-and-navigation/StepperBar.js.map +1 -1
  114. package/dist/components/layout-and-navigation/{StepperBar.cjs → StepperBar.mjs} +35 -71
  115. package/dist/components/layout-and-navigation/StepperBar.mjs.map +1 -0
  116. package/dist/components/layout-and-navigation/{Table.d.cts → Table.d.mts} +4 -4
  117. package/dist/components/layout-and-navigation/Table.d.ts +3 -3
  118. package/dist/components/layout-and-navigation/Table.js +108 -65
  119. package/dist/components/layout-and-navigation/Table.js.map +1 -1
  120. package/dist/components/layout-and-navigation/{Table.cjs → Table.mjs} +66 -110
  121. package/dist/components/layout-and-navigation/Table.mjs.map +1 -0
  122. package/dist/components/layout-and-navigation/{TextImage.d.cts → TextImage.d.mts} +2 -2
  123. package/dist/components/layout-and-navigation/TextImage.js +54 -18
  124. package/dist/components/layout-and-navigation/TextImage.js.map +1 -1
  125. package/dist/components/layout-and-navigation/TextImage.mjs +101 -0
  126. package/dist/components/layout-and-navigation/TextImage.mjs.map +1 -0
  127. package/dist/components/layout-and-navigation/Tile.js +42 -8
  128. package/dist/components/layout-and-navigation/Tile.js.map +1 -1
  129. package/dist/components/layout-and-navigation/Tile.mjs +23 -0
  130. package/dist/components/layout-and-navigation/{Tile.cjs.map → Tile.mjs.map} +1 -1
  131. package/dist/components/layout-and-navigation/VerticalDivider.js +33 -9
  132. package/dist/components/layout-and-navigation/VerticalDivider.js.map +1 -1
  133. package/dist/components/layout-and-navigation/VerticalDivider.mjs +56 -0
  134. package/dist/components/layout-and-navigation/{VerticalDivider.cjs.map → VerticalDivider.mjs.map} +1 -1
  135. package/dist/components/loading-states/{ErrorComponent.d.cts → ErrorComponent.d.mts} +2 -2
  136. package/dist/components/loading-states/ErrorComponent.js +46 -12
  137. package/dist/components/loading-states/ErrorComponent.js.map +1 -1
  138. package/dist/components/loading-states/ErrorComponent.mjs +68 -0
  139. package/dist/components/loading-states/ErrorComponent.mjs.map +1 -0
  140. package/dist/components/loading-states/{LoadingAndErrorComponent.d.cts → LoadingAndErrorComponent.d.mts} +5 -5
  141. package/dist/components/loading-states/LoadingAndErrorComponent.d.ts +1 -1
  142. package/dist/components/loading-states/LoadingAndErrorComponent.js +68 -34
  143. package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
  144. package/dist/components/loading-states/LoadingAndErrorComponent.mjs +194 -0
  145. package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -0
  146. package/dist/components/loading-states/{LoadingAnimation.d.cts → LoadingAnimation.d.mts} +2 -2
  147. package/dist/components/loading-states/LoadingAnimation.js +59 -23
  148. package/dist/components/loading-states/LoadingAnimation.js.map +1 -1
  149. package/dist/components/loading-states/LoadingAnimation.mjs +139 -0
  150. package/dist/components/loading-states/LoadingAnimation.mjs.map +1 -0
  151. package/dist/components/loading-states/{LoadingButton.d.cts → LoadingButton.d.mts} +1 -1
  152. package/dist/components/loading-states/LoadingButton.js +62 -28
  153. package/dist/components/loading-states/LoadingButton.js.map +1 -1
  154. package/dist/components/loading-states/{LoadingButton.cjs → LoadingButton.mjs} +29 -64
  155. package/dist/components/loading-states/LoadingButton.mjs.map +1 -0
  156. package/dist/components/loading-states/ProgressIndicator.js +30 -6
  157. package/dist/components/loading-states/ProgressIndicator.js.map +1 -1
  158. package/dist/components/loading-states/ProgressIndicator.mjs +59 -0
  159. package/dist/components/loading-states/{ProgressIndicator.cjs.map → ProgressIndicator.mjs.map} +1 -1
  160. package/dist/components/modals/{ConfirmModal.d.cts → ConfirmModal.d.mts} +4 -4
  161. package/dist/components/modals/ConfirmModal.js +99 -63
  162. package/dist/components/modals/ConfirmModal.js.map +1 -1
  163. package/dist/components/modals/{ConfirmModal.cjs → ConfirmModal.mjs} +64 -101
  164. package/dist/components/modals/ConfirmModal.mjs.map +1 -0
  165. package/dist/components/modals/{DiscardChangesModal.d.cts → DiscardChangesModal.d.mts} +5 -5
  166. package/dist/components/modals/DiscardChangesModal.js +101 -65
  167. package/dist/components/modals/DiscardChangesModal.js.map +1 -1
  168. package/dist/components/modals/{DiscardChangesModal.cjs → DiscardChangesModal.mjs} +66 -103
  169. package/dist/components/modals/DiscardChangesModal.mjs.map +1 -0
  170. package/dist/components/modals/{InputModal.d.cts → InputModal.d.mts} +7 -7
  171. package/dist/components/modals/InputModal.js +124 -88
  172. package/dist/components/modals/InputModal.js.map +1 -1
  173. package/dist/components/modals/{InputModal.cjs → InputModal.mjs} +89 -126
  174. package/dist/components/modals/InputModal.mjs.map +1 -0
  175. package/dist/components/modals/{LanguageModal.d.cts → LanguageModal.d.mts} +3 -3
  176. package/dist/components/modals/LanguageModal.js +129 -93
  177. package/dist/components/modals/LanguageModal.js.map +1 -1
  178. package/dist/components/modals/{LanguageModal.cjs → LanguageModal.mjs} +94 -131
  179. package/dist/components/modals/LanguageModal.mjs.map +1 -0
  180. package/dist/components/modals/{ThemeModal.d.cts → ThemeModal.d.mts} +4 -4
  181. package/dist/components/modals/ThemeModal.js +133 -97
  182. package/dist/components/modals/ThemeModal.js.map +1 -1
  183. package/dist/components/modals/{ThemeModal.cjs → ThemeModal.mjs} +98 -135
  184. package/dist/components/modals/ThemeModal.mjs.map +1 -0
  185. package/dist/components/properties/{CheckboxProperty.d.cts → CheckboxProperty.d.mts} +3 -3
  186. package/dist/components/properties/CheckboxProperty.js +82 -48
  187. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  188. package/dist/components/properties/{CheckboxProperty.cjs → CheckboxProperty.mjs} +49 -84
  189. package/dist/components/properties/CheckboxProperty.mjs.map +1 -0
  190. package/dist/components/properties/{DateProperty.d.cts → DateProperty.d.mts} +3 -3
  191. package/dist/components/properties/DateProperty.js +92 -58
  192. package/dist/components/properties/DateProperty.js.map +1 -1
  193. package/dist/components/properties/{DateProperty.cjs → DateProperty.mjs} +59 -94
  194. package/dist/components/properties/DateProperty.mjs.map +1 -0
  195. package/dist/components/properties/{MultiSelectProperty.d.cts → MultiSelectProperty.d.mts} +5 -5
  196. package/dist/components/properties/MultiSelectProperty.js +151 -117
  197. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  198. package/dist/components/properties/{MultiSelectProperty.cjs → MultiSelectProperty.mjs} +118 -153
  199. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -0
  200. package/dist/components/properties/{NumberProperty.d.cts → NumberProperty.d.mts} +3 -3
  201. package/dist/components/properties/NumberProperty.js +93 -59
  202. package/dist/components/properties/NumberProperty.js.map +1 -1
  203. package/dist/components/properties/{NumberProperty.cjs → NumberProperty.mjs} +60 -95
  204. package/dist/components/properties/NumberProperty.mjs.map +1 -0
  205. package/dist/components/properties/{PropertyBase.d.cts → PropertyBase.d.mts} +2 -2
  206. package/dist/components/properties/PropertyBase.js +61 -27
  207. package/dist/components/properties/PropertyBase.js.map +1 -1
  208. package/dist/components/properties/{PropertyBase.cjs → PropertyBase.mjs} +28 -63
  209. package/dist/components/properties/{PropertyBase.cjs.map → PropertyBase.mjs.map} +1 -1
  210. package/dist/components/properties/{SelectProperty.d.cts → SelectProperty.d.mts} +5 -5
  211. package/dist/components/properties/SelectProperty.js +116 -82
  212. package/dist/components/properties/SelectProperty.js.map +1 -1
  213. package/dist/components/properties/{SelectProperty.cjs → SelectProperty.mjs} +83 -118
  214. package/dist/components/properties/SelectProperty.mjs.map +1 -0
  215. package/dist/components/properties/{TextProperty.d.cts → TextProperty.d.mts} +3 -3
  216. package/dist/components/properties/TextProperty.js +90 -56
  217. package/dist/components/properties/TextProperty.js.map +1 -1
  218. package/dist/components/properties/{TextProperty.cjs → TextProperty.mjs} +57 -92
  219. package/dist/components/properties/TextProperty.mjs.map +1 -0
  220. package/dist/components/user-action/Button.js +67 -28
  221. package/dist/components/user-action/Button.js.map +1 -1
  222. package/dist/components/user-action/{Button.cjs → Button.mjs} +29 -69
  223. package/dist/components/user-action/{Button.cjs.map → Button.mjs.map} +1 -1
  224. package/dist/components/user-action/{Checkbox.d.cts → Checkbox.d.mts} +1 -1
  225. package/dist/components/user-action/Checkbox.js +55 -20
  226. package/dist/components/user-action/Checkbox.js.map +1 -1
  227. package/dist/components/user-action/Checkbox.mjs +122 -0
  228. package/dist/components/user-action/{Checkbox.cjs.map → Checkbox.mjs.map} +1 -1
  229. package/dist/components/user-action/{DateAndTimePicker.d.cts → DateAndTimePicker.d.mts} +7 -7
  230. package/dist/components/user-action/DateAndTimePicker.js +140 -106
  231. package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
  232. package/dist/components/user-action/{DateAndTimePicker.cjs → DateAndTimePicker.mjs} +107 -142
  233. package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -0
  234. package/dist/components/user-action/{Input.d.cts → Input.d.mts} +1 -1
  235. package/dist/components/user-action/Input.js +62 -26
  236. package/dist/components/user-action/Input.js.map +1 -1
  237. package/dist/components/user-action/Input.mjs +186 -0
  238. package/dist/components/user-action/Input.mjs.map +1 -0
  239. package/dist/components/user-action/Label.js +39 -5
  240. package/dist/components/user-action/Label.js.map +1 -1
  241. package/dist/components/user-action/Label.mjs +21 -0
  242. package/dist/components/user-action/{Label.cjs.map → Label.mjs.map} +1 -1
  243. package/dist/components/user-action/Menu.js +54 -19
  244. package/dist/components/user-action/Menu.js.map +1 -1
  245. package/dist/components/user-action/Menu.mjs +127 -0
  246. package/dist/components/user-action/Menu.mjs.map +1 -0
  247. package/dist/components/user-action/{MultiSelect.d.cts → MultiSelect.d.mts} +3 -3
  248. package/dist/components/user-action/MultiSelect.js +114 -80
  249. package/dist/components/user-action/MultiSelect.js.map +1 -1
  250. package/dist/components/user-action/{MultiSelect.cjs → MultiSelect.mjs} +81 -116
  251. package/dist/components/user-action/MultiSelect.mjs.map +1 -0
  252. package/dist/components/user-action/ScrollPicker.js +49 -15
  253. package/dist/components/user-action/ScrollPicker.js.map +1 -1
  254. package/dist/components/user-action/{ScrollPicker.cjs → ScrollPicker.mjs} +16 -51
  255. package/dist/components/user-action/ScrollPicker.mjs.map +1 -0
  256. package/dist/components/user-action/{Select.d.cts → Select.d.mts} +1 -1
  257. package/dist/components/user-action/Select.js +87 -51
  258. package/dist/components/user-action/Select.js.map +1 -1
  259. package/dist/components/user-action/{Select.cjs → Select.mjs} +52 -89
  260. package/dist/components/user-action/Select.mjs.map +1 -0
  261. package/dist/components/user-action/{Textarea.d.cts → Textarea.d.mts} +1 -1
  262. package/dist/components/user-action/Textarea.js +60 -25
  263. package/dist/components/user-action/Textarea.js.map +1 -1
  264. package/dist/components/user-action/Textarea.mjs +163 -0
  265. package/dist/components/user-action/Textarea.mjs.map +1 -0
  266. package/dist/components/user-action/ToggleableInput.js +61 -26
  267. package/dist/components/user-action/ToggleableInput.js.map +1 -1
  268. package/dist/components/user-action/ToggleableInput.mjs +156 -0
  269. package/dist/components/user-action/ToggleableInput.mjs.map +1 -0
  270. package/dist/components/user-action/Tooltip.js +41 -15
  271. package/dist/components/user-action/Tooltip.js.map +1 -1
  272. package/dist/components/user-action/{Tooltip.cjs → Tooltip.mjs} +16 -43
  273. package/dist/components/user-action/Tooltip.mjs.map +1 -0
  274. package/dist/hooks/useHoverState.js +31 -7
  275. package/dist/hooks/useHoverState.js.map +1 -1
  276. package/dist/hooks/useHoverState.mjs +47 -0
  277. package/dist/hooks/{useHoverState.cjs.map → useHoverState.mjs.map} +1 -1
  278. package/dist/hooks/useLocalStorage.js +31 -7
  279. package/dist/hooks/useLocalStorage.js.map +1 -1
  280. package/dist/hooks/useLocalStorage.mjs +58 -0
  281. package/dist/hooks/{useLocalStorage.cjs.map → useLocalStorage.mjs.map} +1 -1
  282. package/dist/hooks/useOutsideClick.js +28 -4
  283. package/dist/hooks/useOutsideClick.js.map +1 -1
  284. package/dist/hooks/useOutsideClick.mjs +23 -0
  285. package/dist/hooks/{useOutsideClick.cjs.map → useOutsideClick.mjs.map} +1 -1
  286. package/dist/hooks/useSaveDelay.js +30 -6
  287. package/dist/hooks/useSaveDelay.js.map +1 -1
  288. package/dist/hooks/useSaveDelay.mjs +43 -0
  289. package/dist/hooks/{useSaveDelay.cjs.map → useSaveDelay.mjs.map} +1 -1
  290. package/dist/{index.d.cts → index.d.mts} +78 -78
  291. package/dist/index.js +1028 -875
  292. package/dist/index.js.map +1 -1
  293. package/dist/{index.cjs → index.mjs} +876 -1028
  294. package/dist/index.mjs.map +1 -0
  295. package/dist/localization/{LanguageProvider.d.cts → LanguageProvider.d.mts} +1 -1
  296. package/dist/localization/LanguageProvider.js +43 -16
  297. package/dist/localization/LanguageProvider.js.map +1 -1
  298. package/dist/localization/{LanguageProvider.cjs → LanguageProvider.mjs} +17 -45
  299. package/dist/localization/LanguageProvider.mjs.map +1 -0
  300. package/dist/localization/{useTranslation.d.cts → useTranslation.d.mts} +1 -1
  301. package/dist/localization/useTranslation.js +33 -7
  302. package/dist/localization/useTranslation.js.map +1 -1
  303. package/dist/localization/useTranslation.mjs +42 -0
  304. package/dist/localization/useTranslation.mjs.map +1 -0
  305. package/dist/localization/util.js +26 -2
  306. package/dist/localization/util.js.map +1 -1
  307. package/dist/localization/util.mjs +16 -0
  308. package/dist/localization/{util.cjs.map → util.mjs.map} +1 -1
  309. package/dist/theming/{useTheme.d.cts → useTheme.d.mts} +2 -2
  310. package/dist/theming/useTheme.js +37 -10
  311. package/dist/theming/useTheme.js.map +1 -1
  312. package/dist/theming/useTheme.mjs +48 -0
  313. package/dist/theming/useTheme.mjs.map +1 -0
  314. package/dist/util/array.js +32 -2
  315. package/dist/util/array.js.map +1 -1
  316. package/dist/util/{array.cjs → array.mjs} +3 -34
  317. package/dist/util/{array.cjs.map → array.mjs.map} +1 -1
  318. package/dist/util/builder.js +26 -2
  319. package/dist/util/builder.js.map +1 -1
  320. package/dist/util/builder.mjs +9 -0
  321. package/dist/util/{builder.cjs.map → builder.mjs.map} +1 -1
  322. package/dist/util/date.js +39 -2
  323. package/dist/util/date.js.map +1 -1
  324. package/dist/util/{date.cjs → date.mjs} +3 -41
  325. package/dist/util/date.mjs.map +1 -0
  326. package/dist/util/easeFunctions.js +28 -2
  327. package/dist/util/easeFunctions.js.map +1 -1
  328. package/dist/util/easeFunctions.mjs +36 -0
  329. package/dist/util/easeFunctions.mjs.map +1 -0
  330. package/dist/util/emailValidation.js +26 -2
  331. package/dist/util/emailValidation.js.map +1 -1
  332. package/dist/util/emailValidation.mjs +8 -0
  333. package/dist/util/{emailValidation.cjs.map → emailValidation.mjs.map} +1 -1
  334. package/dist/util/loopingArray.js +26 -2
  335. package/dist/util/loopingArray.js.map +1 -1
  336. package/dist/util/{loopingArray.cjs → loopingArray.mjs} +3 -28
  337. package/dist/util/{loopingArray.cjs.map → loopingArray.mjs.map} +1 -1
  338. package/dist/util/math.js +26 -2
  339. package/dist/util/math.js.map +1 -1
  340. package/dist/util/math.mjs +8 -0
  341. package/dist/util/{math.cjs.map → math.mjs.map} +1 -1
  342. package/dist/util/news.d.mts +101 -0
  343. package/dist/util/news.d.ts +54 -54
  344. package/dist/util/news.js +39 -12
  345. package/dist/util/news.js.map +1 -1
  346. package/dist/util/news.mjs +49 -0
  347. package/dist/util/news.mjs.map +1 -0
  348. package/dist/util/noop.d.mts +3 -0
  349. package/dist/util/noop.d.ts +1 -1
  350. package/dist/util/noop.js +26 -2
  351. package/dist/util/noop.js.map +1 -1
  352. package/dist/util/noop.mjs +6 -0
  353. package/dist/util/noop.mjs.map +1 -0
  354. package/dist/util/simpleSearch.js +29 -2
  355. package/dist/util/simpleSearch.js.map +1 -1
  356. package/dist/util/simpleSearch.mjs +26 -0
  357. package/dist/util/{simpleSearch.cjs.map → simpleSearch.mjs.map} +1 -1
  358. package/dist/util/storage.js +27 -2
  359. package/dist/util/storage.js.map +1 -1
  360. package/dist/util/storage.mjs +38 -0
  361. package/dist/util/{storage.cjs.map → storage.mjs.map} +1 -1
  362. package/dist/util/types.js +17 -0
  363. package/dist/util/types.js.map +1 -1
  364. package/dist/util/types.mjs +1 -0
  365. package/dist/util/types.mjs.map +1 -0
  366. package/package.json +5 -7
  367. package/dist/coloring/shading.cjs +0 -3402
  368. package/dist/coloring/shading.cjs.map +0 -1
  369. package/dist/coloring/types.cjs +0 -31
  370. package/dist/components/branding/HelpwaveBadge.cjs +0 -157
  371. package/dist/components/branding/HelpwaveBadge.cjs.map +0 -1
  372. package/dist/components/date/DatePicker.cjs.map +0 -1
  373. package/dist/components/date/DayPicker.cjs.map +0 -1
  374. package/dist/components/date/TimeDisplay.cjs.map +0 -1
  375. package/dist/components/date/TimePicker.cjs.map +0 -1
  376. package/dist/components/date/YearMonthPicker.cjs.map +0 -1
  377. package/dist/components/dialogs/ConfirmDialog.cjs.map +0 -1
  378. package/dist/components/icons-and-geometry/Avatar.cjs +0 -119
  379. package/dist/components/icons-and-geometry/Circle.cjs +0 -62
  380. package/dist/components/icons-and-geometry/Helpwave.cjs +0 -100
  381. package/dist/components/icons-and-geometry/Tag.cjs +0 -47
  382. package/dist/components/layout-and-navigation/Chip.cjs +0 -105
  383. package/dist/components/layout-and-navigation/DividerInserter.cjs +0 -60
  384. package/dist/components/layout-and-navigation/Expandable.cjs +0 -117
  385. package/dist/components/layout-and-navigation/Expandable.cjs.map +0 -1
  386. package/dist/components/layout-and-navigation/FAQSection.cjs.map +0 -1
  387. package/dist/components/layout-and-navigation/Overlay.cjs.map +0 -1
  388. package/dist/components/layout-and-navigation/Pagination.cjs +0 -117
  389. package/dist/components/layout-and-navigation/Pagination.cjs.map +0 -1
  390. package/dist/components/layout-and-navigation/SearchableList.cjs +0 -287
  391. package/dist/components/layout-and-navigation/SearchableList.cjs.map +0 -1
  392. package/dist/components/layout-and-navigation/StepperBar.cjs.map +0 -1
  393. package/dist/components/layout-and-navigation/Table.cjs.map +0 -1
  394. package/dist/components/layout-and-navigation/TextImage.cjs +0 -138
  395. package/dist/components/layout-and-navigation/TextImage.cjs.map +0 -1
  396. package/dist/components/layout-and-navigation/Tile.cjs +0 -58
  397. package/dist/components/layout-and-navigation/VerticalDivider.cjs +0 -81
  398. package/dist/components/loading-states/ErrorComponent.cjs +0 -103
  399. package/dist/components/loading-states/ErrorComponent.cjs.map +0 -1
  400. package/dist/components/loading-states/LoadingAndErrorComponent.cjs +0 -229
  401. package/dist/components/loading-states/LoadingAndErrorComponent.cjs.map +0 -1
  402. package/dist/components/loading-states/LoadingAnimation.cjs +0 -176
  403. package/dist/components/loading-states/LoadingAnimation.cjs.map +0 -1
  404. package/dist/components/loading-states/LoadingButton.cjs.map +0 -1
  405. package/dist/components/loading-states/ProgressIndicator.cjs +0 -84
  406. package/dist/components/modals/ConfirmModal.cjs.map +0 -1
  407. package/dist/components/modals/DiscardChangesModal.cjs.map +0 -1
  408. package/dist/components/modals/InputModal.cjs.map +0 -1
  409. package/dist/components/modals/LanguageModal.cjs.map +0 -1
  410. package/dist/components/modals/ThemeModal.cjs.map +0 -1
  411. package/dist/components/properties/CheckboxProperty.cjs.map +0 -1
  412. package/dist/components/properties/DateProperty.cjs.map +0 -1
  413. package/dist/components/properties/MultiSelectProperty.cjs.map +0 -1
  414. package/dist/components/properties/NumberProperty.cjs.map +0 -1
  415. package/dist/components/properties/SelectProperty.cjs.map +0 -1
  416. package/dist/components/properties/TextProperty.cjs.map +0 -1
  417. package/dist/components/user-action/Checkbox.cjs +0 -158
  418. package/dist/components/user-action/DateAndTimePicker.cjs.map +0 -1
  419. package/dist/components/user-action/Input.cjs +0 -223
  420. package/dist/components/user-action/Input.cjs.map +0 -1
  421. package/dist/components/user-action/Label.cjs +0 -56
  422. package/dist/components/user-action/Menu.cjs +0 -163
  423. package/dist/components/user-action/Menu.cjs.map +0 -1
  424. package/dist/components/user-action/MultiSelect.cjs.map +0 -1
  425. package/dist/components/user-action/ScrollPicker.cjs.map +0 -1
  426. package/dist/components/user-action/Select.cjs.map +0 -1
  427. package/dist/components/user-action/Textarea.cjs +0 -199
  428. package/dist/components/user-action/Textarea.cjs.map +0 -1
  429. package/dist/components/user-action/ToggleableInput.cjs +0 -192
  430. package/dist/components/user-action/ToggleableInput.cjs.map +0 -1
  431. package/dist/components/user-action/Tooltip.cjs.map +0 -1
  432. package/dist/hooks/useHoverState.cjs +0 -72
  433. package/dist/hooks/useLocalStorage.cjs +0 -83
  434. package/dist/hooks/useOutsideClick.cjs +0 -48
  435. package/dist/hooks/useSaveDelay.cjs +0 -68
  436. package/dist/index.cjs.map +0 -1
  437. package/dist/localization/LanguageProvider.cjs.map +0 -1
  438. package/dist/localization/useTranslation.cjs +0 -69
  439. package/dist/localization/useTranslation.cjs.map +0 -1
  440. package/dist/localization/util.cjs +0 -41
  441. package/dist/theming/useTheme.cjs +0 -76
  442. package/dist/theming/useTheme.cjs.map +0 -1
  443. package/dist/util/builder.cjs +0 -34
  444. package/dist/util/date.cjs.map +0 -1
  445. package/dist/util/easeFunctions.cjs +0 -63
  446. package/dist/util/easeFunctions.cjs.map +0 -1
  447. package/dist/util/emailValidation.cjs +0 -33
  448. package/dist/util/math.cjs +0 -33
  449. package/dist/util/news.cjs +0 -77
  450. package/dist/util/news.cjs.map +0 -1
  451. package/dist/util/news.d.cts +0 -101
  452. package/dist/util/noop.cjs +0 -31
  453. package/dist/util/noop.cjs.map +0 -1
  454. package/dist/util/noop.d.cts +0 -3
  455. package/dist/util/simpleSearch.cjs +0 -54
  456. package/dist/util/storage.cjs +0 -64
  457. package/dist/util/types.cjs +0 -19
  458. package/dist/util/types.cjs.map +0 -1
  459. /package/dist/coloring/{types.d.cts → types.d.mts} +0 -0
  460. /package/dist/components/branding/{HelpwaveBadge.d.cts → HelpwaveBadge.d.mts} +0 -0
  461. /package/dist/components/date/{TimePicker.d.cts → TimePicker.d.mts} +0 -0
  462. /package/dist/components/icons-and-geometry/{Avatar.d.cts → Avatar.d.mts} +0 -0
  463. /package/dist/components/icons-and-geometry/{Circle.d.cts → Circle.d.mts} +0 -0
  464. /package/dist/components/icons-and-geometry/{Helpwave.d.cts → Helpwave.d.mts} +0 -0
  465. /package/dist/components/icons-and-geometry/{Ring.d.cts → Ring.d.mts} +0 -0
  466. /package/dist/components/icons-and-geometry/{Tag.d.cts → Tag.d.mts} +0 -0
  467. /package/dist/components/layout-and-navigation/{BreadCrumb.d.cts → BreadCrumb.d.mts} +0 -0
  468. /package/dist/components/layout-and-navigation/{Carousel.d.cts → Carousel.d.mts} +0 -0
  469. /package/dist/components/layout-and-navigation/{Chip.d.cts → Chip.d.mts} +0 -0
  470. /package/dist/components/layout-and-navigation/{DividerInserter.d.cts → DividerInserter.d.mts} +0 -0
  471. /package/dist/components/layout-and-navigation/{Expandable.d.cts → Expandable.d.mts} +0 -0
  472. /package/dist/components/layout-and-navigation/{Tile.d.cts → Tile.d.mts} +0 -0
  473. /package/dist/components/layout-and-navigation/{VerticalDivider.d.cts → VerticalDivider.d.mts} +0 -0
  474. /package/dist/components/loading-states/{ProgressIndicator.d.cts → ProgressIndicator.d.mts} +0 -0
  475. /package/dist/components/user-action/{Button.d.cts → Button.d.mts} +0 -0
  476. /package/dist/components/user-action/{Label.d.cts → Label.d.mts} +0 -0
  477. /package/dist/components/user-action/{Menu.d.cts → Menu.d.mts} +0 -0
  478. /package/dist/components/user-action/{ScrollPicker.d.cts → ScrollPicker.d.mts} +0 -0
  479. /package/dist/components/user-action/{ToggleableInput.d.cts → ToggleableInput.d.mts} +0 -0
  480. /package/dist/components/user-action/{Tooltip.d.cts → Tooltip.d.mts} +0 -0
  481. /package/dist/hooks/{useHoverState.d.cts → useHoverState.d.mts} +0 -0
  482. /package/dist/hooks/{useLocalStorage.d.cts → useLocalStorage.d.mts} +0 -0
  483. /package/dist/hooks/{useOutsideClick.d.cts → useOutsideClick.d.mts} +0 -0
  484. /package/dist/hooks/{useSaveDelay.d.cts → useSaveDelay.d.mts} +0 -0
  485. /package/dist/localization/{util.d.cts → util.d.mts} +0 -0
  486. /package/dist/util/{array.d.cts → array.d.mts} +0 -0
  487. /package/dist/util/{builder.d.cts → builder.d.mts} +0 -0
  488. /package/dist/util/{date.d.cts → date.d.mts} +0 -0
  489. /package/dist/util/{easeFunctions.d.cts → easeFunctions.d.mts} +0 -0
  490. /package/dist/util/{emailValidation.d.cts → emailValidation.d.mts} +0 -0
  491. /package/dist/util/{loopingArray.d.cts → loopingArray.d.mts} +0 -0
  492. /package/dist/util/{math.d.cts → math.d.mts} +0 -0
  493. /package/dist/util/{simpleSearch.d.cts → simpleSearch.d.mts} +0 -0
  494. /package/dist/util/{storage.d.cts → storage.d.mts} +0 -0
  495. /package/dist/util/{types.d.cts → types.d.mts} +0 -0
@@ -1,17 +1,18 @@
1
- "use strict";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
5
  var __getProtoOf = Object.getPrototypeOf;
7
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __commonJS = (cb, mod) => function __require2() {
9
14
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
15
  };
11
- var __export = (target, all) => {
12
- for (var name in all)
13
- __defProp(target, name, { get: all[name], enumerable: true });
14
- };
15
16
  var __copyProps = (to, from, except, desc) => {
16
17
  if (from && typeof from === "object" || typeof from === "function") {
17
18
  for (let key of __getOwnPropNames(from))
@@ -28,11 +29,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
29
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
30
  mod
30
31
  ));
31
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
33
  // node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
34
34
  var require_interop_require_wildcard = __commonJS({
35
- "node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports2) {
35
+ "node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
36
36
  "use strict";
37
37
  function _getRequireWildcardCache(nodeInterop) {
38
38
  if (typeof WeakMap !== "function") return null;
@@ -60,15 +60,15 @@ var require_interop_require_wildcard = __commonJS({
60
60
  if (cache) cache.set(obj, newObj);
61
61
  return newObj;
62
62
  }
63
- exports2._ = _interop_require_wildcard;
63
+ exports._ = _interop_require_wildcard;
64
64
  }
65
65
  });
66
66
 
67
67
  // node_modules/next/dist/shared/lib/router/utils/querystring.js
68
68
  var require_querystring = __commonJS({
69
- "node_modules/next/dist/shared/lib/router/utils/querystring.js"(exports2) {
69
+ "node_modules/next/dist/shared/lib/router/utils/querystring.js"(exports) {
70
70
  "use strict";
71
- Object.defineProperty(exports2, "__esModule", {
71
+ Object.defineProperty(exports, "__esModule", {
72
72
  value: true
73
73
  });
74
74
  function _export(target, all) {
@@ -77,7 +77,7 @@ var require_querystring = __commonJS({
77
77
  get: all[name]
78
78
  });
79
79
  }
80
- _export(exports2, {
80
+ _export(exports, {
81
81
  assign: function() {
82
82
  return assign;
83
83
  },
@@ -147,9 +147,9 @@ var require_querystring = __commonJS({
147
147
 
148
148
  // node_modules/next/dist/shared/lib/router/utils/format-url.js
149
149
  var require_format_url = __commonJS({
150
- "node_modules/next/dist/shared/lib/router/utils/format-url.js"(exports2) {
150
+ "node_modules/next/dist/shared/lib/router/utils/format-url.js"(exports) {
151
151
  "use strict";
152
- Object.defineProperty(exports2, "__esModule", {
152
+ Object.defineProperty(exports, "__esModule", {
153
153
  value: true
154
154
  });
155
155
  function _export(target, all) {
@@ -158,7 +158,7 @@ var require_format_url = __commonJS({
158
158
  get: all[name]
159
159
  });
160
160
  }
161
- _export(exports2, {
161
+ _export(exports, {
162
162
  formatUrl: function() {
163
163
  return formatUrl;
164
164
  },
@@ -236,12 +236,12 @@ var require_format_url = __commonJS({
236
236
 
237
237
  // node_modules/next/dist/shared/lib/router/utils/omit.js
238
238
  var require_omit = __commonJS({
239
- "node_modules/next/dist/shared/lib/router/utils/omit.js"(exports2) {
239
+ "node_modules/next/dist/shared/lib/router/utils/omit.js"(exports) {
240
240
  "use strict";
241
- Object.defineProperty(exports2, "__esModule", {
241
+ Object.defineProperty(exports, "__esModule", {
242
242
  value: true
243
243
  });
244
- Object.defineProperty(exports2, "omit", {
244
+ Object.defineProperty(exports, "omit", {
245
245
  enumerable: true,
246
246
  get: function() {
247
247
  return omit;
@@ -261,9 +261,9 @@ var require_omit = __commonJS({
261
261
 
262
262
  // node_modules/next/dist/shared/lib/utils.js
263
263
  var require_utils = __commonJS({
264
- "node_modules/next/dist/shared/lib/utils.js"(exports2) {
264
+ "node_modules/next/dist/shared/lib/utils.js"(exports) {
265
265
  "use strict";
266
- Object.defineProperty(exports2, "__esModule", {
266
+ Object.defineProperty(exports, "__esModule", {
267
267
  value: true
268
268
  });
269
269
  function _export(target, all) {
@@ -272,7 +272,7 @@ var require_utils = __commonJS({
272
272
  get: all[name]
273
273
  });
274
274
  }
275
- _export(exports2, {
275
+ _export(exports, {
276
276
  DecodeError: function() {
277
277
  return DecodeError;
278
278
  },
@@ -451,12 +451,12 @@ var require_utils = __commonJS({
451
451
 
452
452
  // node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
453
453
  var require_remove_trailing_slash = __commonJS({
454
- "node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(exports2) {
454
+ "node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js"(exports) {
455
455
  "use strict";
456
- Object.defineProperty(exports2, "__esModule", {
456
+ Object.defineProperty(exports, "__esModule", {
457
457
  value: true
458
458
  });
459
- Object.defineProperty(exports2, "removeTrailingSlash", {
459
+ Object.defineProperty(exports, "removeTrailingSlash", {
460
460
  enumerable: true,
461
461
  get: function() {
462
462
  return removeTrailingSlash;
@@ -470,12 +470,12 @@ var require_remove_trailing_slash = __commonJS({
470
470
 
471
471
  // node_modules/next/dist/shared/lib/router/utils/parse-path.js
472
472
  var require_parse_path = __commonJS({
473
- "node_modules/next/dist/shared/lib/router/utils/parse-path.js"(exports2) {
473
+ "node_modules/next/dist/shared/lib/router/utils/parse-path.js"(exports) {
474
474
  "use strict";
475
- Object.defineProperty(exports2, "__esModule", {
475
+ Object.defineProperty(exports, "__esModule", {
476
476
  value: true
477
477
  });
478
- Object.defineProperty(exports2, "parsePath", {
478
+ Object.defineProperty(exports, "parsePath", {
479
479
  enumerable: true,
480
480
  get: function() {
481
481
  return parsePath;
@@ -503,12 +503,12 @@ var require_parse_path = __commonJS({
503
503
 
504
504
  // node_modules/next/dist/client/normalize-trailing-slash.js
505
505
  var require_normalize_trailing_slash = __commonJS({
506
- "node_modules/next/dist/client/normalize-trailing-slash.js"(exports2, module2) {
506
+ "node_modules/next/dist/client/normalize-trailing-slash.js"(exports, module) {
507
507
  "use strict";
508
- Object.defineProperty(exports2, "__esModule", {
508
+ Object.defineProperty(exports, "__esModule", {
509
509
  value: true
510
510
  });
511
- Object.defineProperty(exports2, "normalizePathTrailingSlash", {
511
+ Object.defineProperty(exports, "normalizePathTrailingSlash", {
512
512
  enumerable: true,
513
513
  get: function() {
514
514
  return normalizePathTrailingSlash;
@@ -532,22 +532,22 @@ var require_normalize_trailing_slash = __commonJS({
532
532
  }
533
533
  return "" + (0, _removetrailingslash.removeTrailingSlash)(pathname) + query + hash;
534
534
  };
535
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
536
- Object.defineProperty(exports2.default, "__esModule", { value: true });
537
- Object.assign(exports2.default, exports2);
538
- module2.exports = exports2.default;
535
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
536
+ Object.defineProperty(exports.default, "__esModule", { value: true });
537
+ Object.assign(exports.default, exports);
538
+ module.exports = exports.default;
539
539
  }
540
540
  }
541
541
  });
542
542
 
543
543
  // node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
544
544
  var require_path_has_prefix = __commonJS({
545
- "node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(exports2) {
545
+ "node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js"(exports) {
546
546
  "use strict";
547
- Object.defineProperty(exports2, "__esModule", {
547
+ Object.defineProperty(exports, "__esModule", {
548
548
  value: true
549
549
  });
550
- Object.defineProperty(exports2, "pathHasPrefix", {
550
+ Object.defineProperty(exports, "pathHasPrefix", {
551
551
  enumerable: true,
552
552
  get: function() {
553
553
  return pathHasPrefix;
@@ -566,12 +566,12 @@ var require_path_has_prefix = __commonJS({
566
566
 
567
567
  // node_modules/next/dist/client/has-base-path.js
568
568
  var require_has_base_path = __commonJS({
569
- "node_modules/next/dist/client/has-base-path.js"(exports2, module2) {
569
+ "node_modules/next/dist/client/has-base-path.js"(exports, module) {
570
570
  "use strict";
571
- Object.defineProperty(exports2, "__esModule", {
571
+ Object.defineProperty(exports, "__esModule", {
572
572
  value: true
573
573
  });
574
- Object.defineProperty(exports2, "hasBasePath", {
574
+ Object.defineProperty(exports, "hasBasePath", {
575
575
  enumerable: true,
576
576
  get: function() {
577
577
  return hasBasePath;
@@ -582,22 +582,22 @@ var require_has_base_path = __commonJS({
582
582
  function hasBasePath(path) {
583
583
  return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
584
584
  }
585
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
586
- Object.defineProperty(exports2.default, "__esModule", { value: true });
587
- Object.assign(exports2.default, exports2);
588
- module2.exports = exports2.default;
585
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
586
+ Object.defineProperty(exports.default, "__esModule", { value: true });
587
+ Object.assign(exports.default, exports);
588
+ module.exports = exports.default;
589
589
  }
590
590
  }
591
591
  });
592
592
 
593
593
  // node_modules/next/dist/shared/lib/router/utils/is-local-url.js
594
594
  var require_is_local_url = __commonJS({
595
- "node_modules/next/dist/shared/lib/router/utils/is-local-url.js"(exports2) {
595
+ "node_modules/next/dist/shared/lib/router/utils/is-local-url.js"(exports) {
596
596
  "use strict";
597
- Object.defineProperty(exports2, "__esModule", {
597
+ Object.defineProperty(exports, "__esModule", {
598
598
  value: true
599
599
  });
600
- Object.defineProperty(exports2, "isLocalURL", {
600
+ Object.defineProperty(exports, "isLocalURL", {
601
601
  enumerable: true,
602
602
  get: function() {
603
603
  return isLocalURL;
@@ -620,9 +620,9 @@ var require_is_local_url = __commonJS({
620
620
 
621
621
  // node_modules/next/dist/shared/lib/router/utils/sorted-routes.js
622
622
  var require_sorted_routes = __commonJS({
623
- "node_modules/next/dist/shared/lib/router/utils/sorted-routes.js"(exports2) {
623
+ "node_modules/next/dist/shared/lib/router/utils/sorted-routes.js"(exports) {
624
624
  "use strict";
625
- Object.defineProperty(exports2, "__esModule", {
625
+ Object.defineProperty(exports, "__esModule", {
626
626
  value: true
627
627
  });
628
628
  function _export(target, all) {
@@ -631,7 +631,7 @@ var require_sorted_routes = __commonJS({
631
631
  get: all[name]
632
632
  });
633
633
  }
634
- _export(exports2, {
634
+ _export(exports, {
635
635
  getSortedRouteObjects: function() {
636
636
  return getSortedRouteObjects;
637
637
  },
@@ -830,12 +830,12 @@ var require_sorted_routes = __commonJS({
830
830
 
831
831
  // node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
832
832
  var require_ensure_leading_slash = __commonJS({
833
- "node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js"(exports2) {
833
+ "node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js"(exports) {
834
834
  "use strict";
835
- Object.defineProperty(exports2, "__esModule", {
835
+ Object.defineProperty(exports, "__esModule", {
836
836
  value: true
837
837
  });
838
- Object.defineProperty(exports2, "ensureLeadingSlash", {
838
+ Object.defineProperty(exports, "ensureLeadingSlash", {
839
839
  enumerable: true,
840
840
  get: function() {
841
841
  return ensureLeadingSlash;
@@ -849,9 +849,9 @@ var require_ensure_leading_slash = __commonJS({
849
849
 
850
850
  // node_modules/next/dist/shared/lib/segment.js
851
851
  var require_segment = __commonJS({
852
- "node_modules/next/dist/shared/lib/segment.js"(exports2) {
852
+ "node_modules/next/dist/shared/lib/segment.js"(exports) {
853
853
  "use strict";
854
- Object.defineProperty(exports2, "__esModule", {
854
+ Object.defineProperty(exports, "__esModule", {
855
855
  value: true
856
856
  });
857
857
  function _export(target, all) {
@@ -860,7 +860,7 @@ var require_segment = __commonJS({
860
860
  get: all[name]
861
861
  });
862
862
  }
863
- _export(exports2, {
863
+ _export(exports, {
864
864
  DEFAULT_SEGMENT_KEY: function() {
865
865
  return DEFAULT_SEGMENT_KEY;
866
866
  },
@@ -898,9 +898,9 @@ var require_segment = __commonJS({
898
898
 
899
899
  // node_modules/next/dist/shared/lib/router/utils/app-paths.js
900
900
  var require_app_paths = __commonJS({
901
- "node_modules/next/dist/shared/lib/router/utils/app-paths.js"(exports2) {
901
+ "node_modules/next/dist/shared/lib/router/utils/app-paths.js"(exports) {
902
902
  "use strict";
903
- Object.defineProperty(exports2, "__esModule", {
903
+ Object.defineProperty(exports, "__esModule", {
904
904
  value: true
905
905
  });
906
906
  function _export(target, all) {
@@ -909,7 +909,7 @@ var require_app_paths = __commonJS({
909
909
  get: all[name]
910
910
  });
911
911
  }
912
- _export(exports2, {
912
+ _export(exports, {
913
913
  normalizeAppPath: function() {
914
914
  return normalizeAppPath;
915
915
  },
@@ -948,9 +948,9 @@ var require_app_paths = __commonJS({
948
948
 
949
949
  // node_modules/next/dist/shared/lib/router/utils/interception-routes.js
950
950
  var require_interception_routes = __commonJS({
951
- "node_modules/next/dist/shared/lib/router/utils/interception-routes.js"(exports2) {
951
+ "node_modules/next/dist/shared/lib/router/utils/interception-routes.js"(exports) {
952
952
  "use strict";
953
- Object.defineProperty(exports2, "__esModule", {
953
+ Object.defineProperty(exports, "__esModule", {
954
954
  value: true
955
955
  });
956
956
  function _export(target, all) {
@@ -959,7 +959,7 @@ var require_interception_routes = __commonJS({
959
959
  get: all[name]
960
960
  });
961
961
  }
962
- _export(exports2, {
962
+ _export(exports, {
963
963
  INTERCEPTION_ROUTE_MARKERS: function() {
964
964
  return INTERCEPTION_ROUTE_MARKERS;
965
965
  },
@@ -1047,12 +1047,12 @@ var require_interception_routes = __commonJS({
1047
1047
 
1048
1048
  // node_modules/next/dist/shared/lib/router/utils/is-dynamic.js
1049
1049
  var require_is_dynamic = __commonJS({
1050
- "node_modules/next/dist/shared/lib/router/utils/is-dynamic.js"(exports2) {
1050
+ "node_modules/next/dist/shared/lib/router/utils/is-dynamic.js"(exports) {
1051
1051
  "use strict";
1052
- Object.defineProperty(exports2, "__esModule", {
1052
+ Object.defineProperty(exports, "__esModule", {
1053
1053
  value: true
1054
1054
  });
1055
- Object.defineProperty(exports2, "isDynamicRoute", {
1055
+ Object.defineProperty(exports, "isDynamicRoute", {
1056
1056
  enumerable: true,
1057
1057
  get: function() {
1058
1058
  return isDynamicRoute;
@@ -1076,9 +1076,9 @@ var require_is_dynamic = __commonJS({
1076
1076
 
1077
1077
  // node_modules/next/dist/shared/lib/router/utils/index.js
1078
1078
  var require_utils2 = __commonJS({
1079
- "node_modules/next/dist/shared/lib/router/utils/index.js"(exports2) {
1079
+ "node_modules/next/dist/shared/lib/router/utils/index.js"(exports) {
1080
1080
  "use strict";
1081
- Object.defineProperty(exports2, "__esModule", {
1081
+ Object.defineProperty(exports, "__esModule", {
1082
1082
  value: true
1083
1083
  });
1084
1084
  function _export(target, all) {
@@ -1087,7 +1087,7 @@ var require_utils2 = __commonJS({
1087
1087
  get: all[name]
1088
1088
  });
1089
1089
  }
1090
- _export(exports2, {
1090
+ _export(exports, {
1091
1091
  getSortedRouteObjects: function() {
1092
1092
  return _sortedroutes.getSortedRouteObjects;
1093
1093
  },
@@ -1105,12 +1105,12 @@ var require_utils2 = __commonJS({
1105
1105
 
1106
1106
  // node_modules/next/dist/shared/lib/router/utils/route-matcher.js
1107
1107
  var require_route_matcher = __commonJS({
1108
- "node_modules/next/dist/shared/lib/router/utils/route-matcher.js"(exports2) {
1108
+ "node_modules/next/dist/shared/lib/router/utils/route-matcher.js"(exports) {
1109
1109
  "use strict";
1110
- Object.defineProperty(exports2, "__esModule", {
1110
+ Object.defineProperty(exports, "__esModule", {
1111
1111
  value: true
1112
1112
  });
1113
- Object.defineProperty(exports2, "getRouteMatcher", {
1113
+ Object.defineProperty(exports, "getRouteMatcher", {
1114
1114
  enumerable: true,
1115
1115
  get: function() {
1116
1116
  return getRouteMatcher;
@@ -1152,9 +1152,9 @@ var require_route_matcher = __commonJS({
1152
1152
 
1153
1153
  // node_modules/next/dist/lib/constants.js
1154
1154
  var require_constants = __commonJS({
1155
- "node_modules/next/dist/lib/constants.js"(exports2) {
1155
+ "node_modules/next/dist/lib/constants.js"(exports) {
1156
1156
  "use strict";
1157
- Object.defineProperty(exports2, "__esModule", {
1157
+ Object.defineProperty(exports, "__esModule", {
1158
1158
  value: true
1159
1159
  });
1160
1160
  function _export(target, all) {
@@ -1163,7 +1163,7 @@ var require_constants = __commonJS({
1163
1163
  get: all[name]
1164
1164
  });
1165
1165
  }
1166
- _export(exports2, {
1166
+ _export(exports, {
1167
1167
  ACTION_SUFFIX: function() {
1168
1168
  return ACTION_SUFFIX;
1169
1169
  },
@@ -1487,12 +1487,12 @@ var require_constants = __commonJS({
1487
1487
 
1488
1488
  // node_modules/next/dist/shared/lib/escape-regexp.js
1489
1489
  var require_escape_regexp = __commonJS({
1490
- "node_modules/next/dist/shared/lib/escape-regexp.js"(exports2) {
1490
+ "node_modules/next/dist/shared/lib/escape-regexp.js"(exports) {
1491
1491
  "use strict";
1492
- Object.defineProperty(exports2, "__esModule", {
1492
+ Object.defineProperty(exports, "__esModule", {
1493
1493
  value: true
1494
1494
  });
1495
- Object.defineProperty(exports2, "escapeStringRegexp", {
1495
+ Object.defineProperty(exports, "escapeStringRegexp", {
1496
1496
  enumerable: true,
1497
1497
  get: function() {
1498
1498
  return escapeStringRegexp;
@@ -1511,9 +1511,9 @@ var require_escape_regexp = __commonJS({
1511
1511
 
1512
1512
  // node_modules/next/dist/shared/lib/router/utils/route-regex.js
1513
1513
  var require_route_regex = __commonJS({
1514
- "node_modules/next/dist/shared/lib/router/utils/route-regex.js"(exports2) {
1514
+ "node_modules/next/dist/shared/lib/router/utils/route-regex.js"(exports) {
1515
1515
  "use strict";
1516
- Object.defineProperty(exports2, "__esModule", {
1516
+ Object.defineProperty(exports, "__esModule", {
1517
1517
  value: true
1518
1518
  });
1519
1519
  function _export(target, all) {
@@ -1522,7 +1522,7 @@ var require_route_regex = __commonJS({
1522
1522
  get: all[name]
1523
1523
  });
1524
1524
  }
1525
- _export(exports2, {
1525
+ _export(exports, {
1526
1526
  getNamedMiddlewareRegex: function() {
1527
1527
  return getNamedMiddlewareRegex;
1528
1528
  },
@@ -1739,12 +1739,12 @@ var require_route_regex = __commonJS({
1739
1739
 
1740
1740
  // node_modules/next/dist/shared/lib/router/utils/interpolate-as.js
1741
1741
  var require_interpolate_as = __commonJS({
1742
- "node_modules/next/dist/shared/lib/router/utils/interpolate-as.js"(exports2) {
1742
+ "node_modules/next/dist/shared/lib/router/utils/interpolate-as.js"(exports) {
1743
1743
  "use strict";
1744
- Object.defineProperty(exports2, "__esModule", {
1744
+ Object.defineProperty(exports, "__esModule", {
1745
1745
  value: true
1746
1746
  });
1747
- Object.defineProperty(exports2, "interpolateAs", {
1747
+ Object.defineProperty(exports, "interpolateAs", {
1748
1748
  enumerable: true,
1749
1749
  get: function() {
1750
1750
  return interpolateAs;
@@ -1795,12 +1795,12 @@ var require_interpolate_as = __commonJS({
1795
1795
 
1796
1796
  // node_modules/next/dist/client/resolve-href.js
1797
1797
  var require_resolve_href = __commonJS({
1798
- "node_modules/next/dist/client/resolve-href.js"(exports2, module2) {
1798
+ "node_modules/next/dist/client/resolve-href.js"(exports, module) {
1799
1799
  "use strict";
1800
- Object.defineProperty(exports2, "__esModule", {
1800
+ Object.defineProperty(exports, "__esModule", {
1801
1801
  value: true
1802
1802
  });
1803
- Object.defineProperty(exports2, "resolveHref", {
1803
+ Object.defineProperty(exports, "resolveHref", {
1804
1804
  enumerable: true,
1805
1805
  get: function() {
1806
1806
  return resolveHref;
@@ -1861,22 +1861,22 @@ var require_resolve_href = __commonJS({
1861
1861
  ] : urlAsString;
1862
1862
  }
1863
1863
  }
1864
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
1865
- Object.defineProperty(exports2.default, "__esModule", { value: true });
1866
- Object.assign(exports2.default, exports2);
1867
- module2.exports = exports2.default;
1864
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
1865
+ Object.defineProperty(exports.default, "__esModule", { value: true });
1866
+ Object.assign(exports.default, exports);
1867
+ module.exports = exports.default;
1868
1868
  }
1869
1869
  }
1870
1870
  });
1871
1871
 
1872
1872
  // node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
1873
1873
  var require_add_path_prefix = __commonJS({
1874
- "node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(exports2) {
1874
+ "node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"(exports) {
1875
1875
  "use strict";
1876
- Object.defineProperty(exports2, "__esModule", {
1876
+ Object.defineProperty(exports, "__esModule", {
1877
1877
  value: true
1878
1878
  });
1879
- Object.defineProperty(exports2, "addPathPrefix", {
1879
+ Object.defineProperty(exports, "addPathPrefix", {
1880
1880
  enumerable: true,
1881
1881
  get: function() {
1882
1882
  return addPathPrefix;
@@ -1895,12 +1895,12 @@ var require_add_path_prefix = __commonJS({
1895
1895
 
1896
1896
  // node_modules/next/dist/shared/lib/router/utils/add-locale.js
1897
1897
  var require_add_locale = __commonJS({
1898
- "node_modules/next/dist/shared/lib/router/utils/add-locale.js"(exports2) {
1898
+ "node_modules/next/dist/shared/lib/router/utils/add-locale.js"(exports) {
1899
1899
  "use strict";
1900
- Object.defineProperty(exports2, "__esModule", {
1900
+ Object.defineProperty(exports, "__esModule", {
1901
1901
  value: true
1902
1902
  });
1903
- Object.defineProperty(exports2, "addLocale", {
1903
+ Object.defineProperty(exports, "addLocale", {
1904
1904
  enumerable: true,
1905
1905
  get: function() {
1906
1906
  return addLocale;
@@ -1922,12 +1922,12 @@ var require_add_locale = __commonJS({
1922
1922
 
1923
1923
  // node_modules/next/dist/client/add-locale.js
1924
1924
  var require_add_locale2 = __commonJS({
1925
- "node_modules/next/dist/client/add-locale.js"(exports2, module2) {
1925
+ "node_modules/next/dist/client/add-locale.js"(exports, module) {
1926
1926
  "use strict";
1927
- Object.defineProperty(exports2, "__esModule", {
1927
+ Object.defineProperty(exports, "__esModule", {
1928
1928
  value: true
1929
1929
  });
1930
- Object.defineProperty(exports2, "addLocale", {
1930
+ Object.defineProperty(exports, "addLocale", {
1931
1931
  enumerable: true,
1932
1932
  get: function() {
1933
1933
  return addLocale;
@@ -1943,40 +1943,40 @@ var require_add_locale2 = __commonJS({
1943
1943
  }
1944
1944
  return path;
1945
1945
  };
1946
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
1947
- Object.defineProperty(exports2.default, "__esModule", { value: true });
1948
- Object.assign(exports2.default, exports2);
1949
- module2.exports = exports2.default;
1946
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
1947
+ Object.defineProperty(exports.default, "__esModule", { value: true });
1948
+ Object.assign(exports.default, exports);
1949
+ module.exports = exports.default;
1950
1950
  }
1951
1951
  }
1952
1952
  });
1953
1953
 
1954
1954
  // node_modules/@swc/helpers/cjs/_interop_require_default.cjs
1955
1955
  var require_interop_require_default = __commonJS({
1956
- "node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports2) {
1956
+ "node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
1957
1957
  "use strict";
1958
1958
  function _interop_require_default(obj) {
1959
1959
  return obj && obj.__esModule ? obj : { default: obj };
1960
1960
  }
1961
- exports2._ = _interop_require_default;
1961
+ exports._ = _interop_require_default;
1962
1962
  }
1963
1963
  });
1964
1964
 
1965
1965
  // node_modules/next/dist/shared/lib/router-context.shared-runtime.js
1966
1966
  var require_router_context_shared_runtime = __commonJS({
1967
- "node_modules/next/dist/shared/lib/router-context.shared-runtime.js"(exports2) {
1967
+ "node_modules/next/dist/shared/lib/router-context.shared-runtime.js"(exports) {
1968
1968
  "use strict";
1969
- Object.defineProperty(exports2, "__esModule", {
1969
+ Object.defineProperty(exports, "__esModule", {
1970
1970
  value: true
1971
1971
  });
1972
- Object.defineProperty(exports2, "RouterContext", {
1972
+ Object.defineProperty(exports, "RouterContext", {
1973
1973
  enumerable: true,
1974
1974
  get: function() {
1975
1975
  return RouterContext;
1976
1976
  }
1977
1977
  });
1978
1978
  var _interop_require_default = require_interop_require_default();
1979
- var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
1979
+ var _react = /* @__PURE__ */ _interop_require_default._(__require("react"));
1980
1980
  var RouterContext = _react.default.createContext(null);
1981
1981
  if (process.env.NODE_ENV !== "production") {
1982
1982
  RouterContext.displayName = "RouterContext";
@@ -1986,9 +1986,9 @@ var require_router_context_shared_runtime = __commonJS({
1986
1986
 
1987
1987
  // node_modules/next/dist/client/request-idle-callback.js
1988
1988
  var require_request_idle_callback = __commonJS({
1989
- "node_modules/next/dist/client/request-idle-callback.js"(exports2, module2) {
1989
+ "node_modules/next/dist/client/request-idle-callback.js"(exports, module) {
1990
1990
  "use strict";
1991
- Object.defineProperty(exports2, "__esModule", {
1991
+ Object.defineProperty(exports, "__esModule", {
1992
1992
  value: true
1993
1993
  });
1994
1994
  function _export(target, all) {
@@ -1997,7 +1997,7 @@ var require_request_idle_callback = __commonJS({
1997
1997
  get: all[name]
1998
1998
  });
1999
1999
  }
2000
- _export(exports2, {
2000
+ _export(exports, {
2001
2001
  cancelIdleCallback: function() {
2002
2002
  return cancelIdleCallback;
2003
2003
  },
@@ -2019,28 +2019,28 @@ var require_request_idle_callback = __commonJS({
2019
2019
  var cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
2020
2020
  return clearTimeout(id);
2021
2021
  };
2022
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2023
- Object.defineProperty(exports2.default, "__esModule", { value: true });
2024
- Object.assign(exports2.default, exports2);
2025
- module2.exports = exports2.default;
2022
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2023
+ Object.defineProperty(exports.default, "__esModule", { value: true });
2024
+ Object.assign(exports.default, exports);
2025
+ module.exports = exports.default;
2026
2026
  }
2027
2027
  }
2028
2028
  });
2029
2029
 
2030
2030
  // node_modules/next/dist/client/use-intersection.js
2031
2031
  var require_use_intersection = __commonJS({
2032
- "node_modules/next/dist/client/use-intersection.js"(exports2, module2) {
2032
+ "node_modules/next/dist/client/use-intersection.js"(exports, module) {
2033
2033
  "use strict";
2034
- Object.defineProperty(exports2, "__esModule", {
2034
+ Object.defineProperty(exports, "__esModule", {
2035
2035
  value: true
2036
2036
  });
2037
- Object.defineProperty(exports2, "useIntersection", {
2037
+ Object.defineProperty(exports, "useIntersection", {
2038
2038
  enumerable: true,
2039
2039
  get: function() {
2040
2040
  return useIntersection;
2041
2041
  }
2042
2042
  });
2043
- var _react = require("react");
2043
+ var _react = __require("react");
2044
2044
  var _requestidlecallback = require_request_idle_callback();
2045
2045
  var hasIntersectionObserver = typeof IntersectionObserver === "function";
2046
2046
  var observers = /* @__PURE__ */ new Map();
@@ -2135,22 +2135,22 @@ var require_use_intersection = __commonJS({
2135
2135
  resetVisible
2136
2136
  ];
2137
2137
  }
2138
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2139
- Object.defineProperty(exports2.default, "__esModule", { value: true });
2140
- Object.assign(exports2.default, exports2);
2141
- module2.exports = exports2.default;
2138
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2139
+ Object.defineProperty(exports.default, "__esModule", { value: true });
2140
+ Object.assign(exports.default, exports);
2141
+ module.exports = exports.default;
2142
2142
  }
2143
2143
  }
2144
2144
  });
2145
2145
 
2146
2146
  // node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
2147
2147
  var require_normalize_locale_path = __commonJS({
2148
- "node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(exports2) {
2148
+ "node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js"(exports) {
2149
2149
  "use strict";
2150
- Object.defineProperty(exports2, "__esModule", {
2150
+ Object.defineProperty(exports, "__esModule", {
2151
2151
  value: true
2152
2152
  });
2153
- Object.defineProperty(exports2, "normalizeLocalePath", {
2153
+ Object.defineProperty(exports, "normalizeLocalePath", {
2154
2154
  enumerable: true,
2155
2155
  get: function() {
2156
2156
  return normalizeLocalePath;
@@ -2188,12 +2188,12 @@ var require_normalize_locale_path = __commonJS({
2188
2188
 
2189
2189
  // node_modules/next/dist/client/normalize-locale-path.js
2190
2190
  var require_normalize_locale_path2 = __commonJS({
2191
- "node_modules/next/dist/client/normalize-locale-path.js"(exports2, module2) {
2191
+ "node_modules/next/dist/client/normalize-locale-path.js"(exports, module) {
2192
2192
  "use strict";
2193
- Object.defineProperty(exports2, "__esModule", {
2193
+ Object.defineProperty(exports, "__esModule", {
2194
2194
  value: true
2195
2195
  });
2196
- Object.defineProperty(exports2, "normalizeLocalePath", {
2196
+ Object.defineProperty(exports, "normalizeLocalePath", {
2197
2197
  enumerable: true,
2198
2198
  get: function() {
2199
2199
  return normalizeLocalePath;
@@ -2208,22 +2208,22 @@ var require_normalize_locale_path2 = __commonJS({
2208
2208
  detectedLocale: void 0
2209
2209
  };
2210
2210
  };
2211
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2212
- Object.defineProperty(exports2.default, "__esModule", { value: true });
2213
- Object.assign(exports2.default, exports2);
2214
- module2.exports = exports2.default;
2211
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2212
+ Object.defineProperty(exports.default, "__esModule", { value: true });
2213
+ Object.assign(exports.default, exports);
2214
+ module.exports = exports.default;
2215
2215
  }
2216
2216
  }
2217
2217
  });
2218
2218
 
2219
2219
  // node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
2220
2220
  var require_detect_domain_locale = __commonJS({
2221
- "node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(exports2) {
2221
+ "node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js"(exports) {
2222
2222
  "use strict";
2223
- Object.defineProperty(exports2, "__esModule", {
2223
+ Object.defineProperty(exports, "__esModule", {
2224
2224
  value: true
2225
2225
  });
2226
- Object.defineProperty(exports2, "detectDomainLocale", {
2226
+ Object.defineProperty(exports, "detectDomainLocale", {
2227
2227
  enumerable: true,
2228
2228
  get: function() {
2229
2229
  return detectDomainLocale;
@@ -2247,12 +2247,12 @@ var require_detect_domain_locale = __commonJS({
2247
2247
 
2248
2248
  // node_modules/next/dist/client/detect-domain-locale.js
2249
2249
  var require_detect_domain_locale2 = __commonJS({
2250
- "node_modules/next/dist/client/detect-domain-locale.js"(exports2, module2) {
2250
+ "node_modules/next/dist/client/detect-domain-locale.js"(exports, module) {
2251
2251
  "use strict";
2252
- Object.defineProperty(exports2, "__esModule", {
2252
+ Object.defineProperty(exports, "__esModule", {
2253
2253
  value: true
2254
2254
  });
2255
- Object.defineProperty(exports2, "detectDomainLocale", {
2255
+ Object.defineProperty(exports, "detectDomainLocale", {
2256
2256
  enumerable: true,
2257
2257
  get: function() {
2258
2258
  return detectDomainLocale;
@@ -2266,22 +2266,22 @@ var require_detect_domain_locale2 = __commonJS({
2266
2266
  return require_detect_domain_locale().detectDomainLocale(...args);
2267
2267
  }
2268
2268
  };
2269
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2270
- Object.defineProperty(exports2.default, "__esModule", { value: true });
2271
- Object.assign(exports2.default, exports2);
2272
- module2.exports = exports2.default;
2269
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2270
+ Object.defineProperty(exports.default, "__esModule", { value: true });
2271
+ Object.assign(exports.default, exports);
2272
+ module.exports = exports.default;
2273
2273
  }
2274
2274
  }
2275
2275
  });
2276
2276
 
2277
2277
  // node_modules/next/dist/client/get-domain-locale.js
2278
2278
  var require_get_domain_locale = __commonJS({
2279
- "node_modules/next/dist/client/get-domain-locale.js"(exports2, module2) {
2279
+ "node_modules/next/dist/client/get-domain-locale.js"(exports, module) {
2280
2280
  "use strict";
2281
- Object.defineProperty(exports2, "__esModule", {
2281
+ Object.defineProperty(exports, "__esModule", {
2282
2282
  value: true
2283
2283
  });
2284
- Object.defineProperty(exports2, "getDomainLocale", {
2284
+ Object.defineProperty(exports, "getDomainLocale", {
2285
2285
  enumerable: true,
2286
2286
  get: function() {
2287
2287
  return getDomainLocale;
@@ -2305,22 +2305,22 @@ var require_get_domain_locale = __commonJS({
2305
2305
  return false;
2306
2306
  }
2307
2307
  }
2308
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2309
- Object.defineProperty(exports2.default, "__esModule", { value: true });
2310
- Object.assign(exports2.default, exports2);
2311
- module2.exports = exports2.default;
2308
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2309
+ Object.defineProperty(exports.default, "__esModule", { value: true });
2310
+ Object.assign(exports.default, exports);
2311
+ module.exports = exports.default;
2312
2312
  }
2313
2313
  }
2314
2314
  });
2315
2315
 
2316
2316
  // node_modules/next/dist/client/add-base-path.js
2317
2317
  var require_add_base_path = __commonJS({
2318
- "node_modules/next/dist/client/add-base-path.js"(exports2, module2) {
2318
+ "node_modules/next/dist/client/add-base-path.js"(exports, module) {
2319
2319
  "use strict";
2320
- Object.defineProperty(exports2, "__esModule", {
2320
+ Object.defineProperty(exports, "__esModule", {
2321
2321
  value: true
2322
2322
  });
2323
- Object.defineProperty(exports2, "addBasePath", {
2323
+ Object.defineProperty(exports, "addBasePath", {
2324
2324
  enumerable: true,
2325
2325
  get: function() {
2326
2326
  return addBasePath;
@@ -2332,28 +2332,28 @@ var require_add_base_path = __commonJS({
2332
2332
  function addBasePath(path, required) {
2333
2333
  return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
2334
2334
  }
2335
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2336
- Object.defineProperty(exports2.default, "__esModule", { value: true });
2337
- Object.assign(exports2.default, exports2);
2338
- module2.exports = exports2.default;
2335
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2336
+ Object.defineProperty(exports.default, "__esModule", { value: true });
2337
+ Object.assign(exports.default, exports);
2338
+ module.exports = exports.default;
2339
2339
  }
2340
2340
  }
2341
2341
  });
2342
2342
 
2343
2343
  // node_modules/next/dist/client/use-merged-ref.js
2344
2344
  var require_use_merged_ref = __commonJS({
2345
- "node_modules/next/dist/client/use-merged-ref.js"(exports2, module2) {
2345
+ "node_modules/next/dist/client/use-merged-ref.js"(exports, module) {
2346
2346
  "use strict";
2347
- Object.defineProperty(exports2, "__esModule", {
2347
+ Object.defineProperty(exports, "__esModule", {
2348
2348
  value: true
2349
2349
  });
2350
- Object.defineProperty(exports2, "useMergedRef", {
2350
+ Object.defineProperty(exports, "useMergedRef", {
2351
2351
  enumerable: true,
2352
2352
  get: function() {
2353
2353
  return useMergedRef;
2354
2354
  }
2355
2355
  });
2356
- var _react = require("react");
2356
+ var _react = __require("react");
2357
2357
  function useMergedRef(refA, refB) {
2358
2358
  const cleanupA = (0, _react.useRef)(null);
2359
2359
  const cleanupB = (0, _react.useRef)(null);
@@ -2397,22 +2397,22 @@ var require_use_merged_ref = __commonJS({
2397
2397
  };
2398
2398
  }
2399
2399
  }
2400
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2401
- Object.defineProperty(exports2.default, "__esModule", { value: true });
2402
- Object.assign(exports2.default, exports2);
2403
- module2.exports = exports2.default;
2400
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2401
+ Object.defineProperty(exports.default, "__esModule", { value: true });
2402
+ Object.assign(exports.default, exports);
2403
+ module.exports = exports.default;
2404
2404
  }
2405
2405
  }
2406
2406
  });
2407
2407
 
2408
2408
  // node_modules/next/dist/shared/lib/utils/error-once.js
2409
2409
  var require_error_once = __commonJS({
2410
- "node_modules/next/dist/shared/lib/utils/error-once.js"(exports2) {
2410
+ "node_modules/next/dist/shared/lib/utils/error-once.js"(exports) {
2411
2411
  "use strict";
2412
- Object.defineProperty(exports2, "__esModule", {
2412
+ Object.defineProperty(exports, "__esModule", {
2413
2413
  value: true
2414
2414
  });
2415
- Object.defineProperty(exports2, "errorOnce", {
2415
+ Object.defineProperty(exports, "errorOnce", {
2416
2416
  enumerable: true,
2417
2417
  get: function() {
2418
2418
  return errorOnce;
@@ -2434,10 +2434,10 @@ var require_error_once = __commonJS({
2434
2434
 
2435
2435
  // node_modules/next/dist/client/link.js
2436
2436
  var require_link = __commonJS({
2437
- "node_modules/next/dist/client/link.js"(exports2, module2) {
2438
- "use strict";
2437
+ "node_modules/next/dist/client/link.js"(exports, module) {
2439
2438
  "use client";
2440
- Object.defineProperty(exports2, "__esModule", {
2439
+ "use strict";
2440
+ Object.defineProperty(exports, "__esModule", {
2441
2441
  value: true
2442
2442
  });
2443
2443
  function _export(target, all) {
@@ -2446,7 +2446,7 @@ var require_link = __commonJS({
2446
2446
  get: all[name]
2447
2447
  });
2448
2448
  }
2449
- _export(exports2, {
2449
+ _export(exports, {
2450
2450
  default: function() {
2451
2451
  return _default;
2452
2452
  },
@@ -2455,8 +2455,8 @@ var require_link = __commonJS({
2455
2455
  }
2456
2456
  });
2457
2457
  var _interop_require_wildcard = require_interop_require_wildcard();
2458
- var _jsxruntime = require("react/jsx-runtime");
2459
- var _react = /* @__PURE__ */ _interop_require_wildcard._(require("react"));
2458
+ var _jsxruntime = __require("react/jsx-runtime");
2459
+ var _react = /* @__PURE__ */ _interop_require_wildcard._(__require("react"));
2460
2460
  var _resolvehref = require_resolve_href();
2461
2461
  var _islocalurl = require_is_local_url();
2462
2462
  var _formaturl = require_format_url();
@@ -2823,176 +2823,28 @@ var require_link = __commonJS({
2823
2823
  return (0, _react.useContext)(LinkStatusContext);
2824
2824
  };
2825
2825
  var _default = Link2;
2826
- if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2827
- Object.defineProperty(exports2.default, "__esModule", { value: true });
2828
- Object.assign(exports2.default, exports2);
2829
- module2.exports = exports2.default;
2826
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2827
+ Object.defineProperty(exports.default, "__esModule", { value: true });
2828
+ Object.assign(exports.default, exports);
2829
+ module.exports = exports.default;
2830
2830
  }
2831
2831
  }
2832
2832
  });
2833
2833
 
2834
2834
  // node_modules/next/link.js
2835
2835
  var require_link2 = __commonJS({
2836
- "node_modules/next/link.js"(exports2, module2) {
2837
- "use strict";
2838
- module2.exports = require_link();
2836
+ "node_modules/next/link.js"(exports, module) {
2837
+ module.exports = require_link();
2839
2838
  }
2840
2839
  });
2841
2840
 
2842
- // src/index.ts
2843
- var index_exports = {};
2844
- __export(index_exports, {
2845
- ASTNodeInterpreter: () => ASTNodeInterpreter,
2846
- AnimatedRing: () => AnimatedRing,
2847
- ArrayUtil: () => ArrayUtil,
2848
- Avatar: () => Avatar,
2849
- AvatarGroup: () => AvatarGroup,
2850
- BreadCrumb: () => BreadCrumb,
2851
- ButtonColorUtil: () => ButtonColorUtil,
2852
- ButtonUtil: () => ButtonUtil,
2853
- Carousel: () => Carousel,
2854
- Checkbox: () => Checkbox,
2855
- CheckboxProperty: () => CheckboxProperty,
2856
- CheckboxUncontrolled: () => CheckboxUncontrolled,
2857
- Chip: () => Chip,
2858
- ChipList: () => ChipList,
2859
- Circle: () => Circle,
2860
- ConfirmDialog: () => ConfirmDialog,
2861
- ConfirmModal: () => ConfirmModal,
2862
- DatePicker: () => DatePicker,
2863
- DatePickerUncontrolled: () => DatePickerUncontrolled,
2864
- DateProperty: () => DateProperty,
2865
- DateTimePicker: () => DateTimePicker,
2866
- DayPicker: () => DayPicker,
2867
- DayPickerUncontrolled: () => DayPickerUncontrolled,
2868
- Dialog: () => Dialog,
2869
- DiscardChangesModal: () => DiscardChangesModal,
2870
- DividerInserter: () => DividerInserter,
2871
- EaseFunctions: () => EaseFunctions,
2872
- ErrorComponent: () => ErrorComponent,
2873
- Expandable: () => Expandable,
2874
- ExpandableUncontrolled: () => ExpandableUncontrolled,
2875
- FAQSection: () => FAQSection,
2876
- FormInput: () => FormInput,
2877
- Helpwave: () => Helpwave,
2878
- HelpwaveBadge: () => HelpwaveBadge,
2879
- IconButton: () => IconButton,
2880
- Input: () => Input,
2881
- InputModal: () => InputModal,
2882
- InputUncontrolled: () => InputUncontrolled,
2883
- Label: () => Label,
2884
- LanguageContext: () => LanguageContext,
2885
- LanguageModal: () => LanguageModal,
2886
- LanguageProvider: () => LanguageProvider,
2887
- LanguageUtil: () => LanguageUtil,
2888
- LoadingAndErrorComponent: () => LoadingAndErrorComponent,
2889
- LoadingAnimation: () => LoadingAnimation,
2890
- LoadingButton: () => LoadingButton,
2891
- LocalStorageService: () => LocalStorageService,
2892
- LoopingArrayCalculator: () => LoopingArrayCalculator,
2893
- MarkdownInterpreter: () => MarkdownInterpreter,
2894
- Menu: () => Menu2,
2895
- MenuItem: () => MenuItem,
2896
- Modal: () => Modal,
2897
- MultiSearchWithMapping: () => MultiSearchWithMapping,
2898
- MultiSelect: () => MultiSelect,
2899
- MultiSelectProperty: () => MultiSelectProperty,
2900
- MultiSubjectSearchWithMapping: () => MultiSubjectSearchWithMapping,
2901
- NumberProperty: () => NumberProperty,
2902
- OutlineButton: () => OutlineButton,
2903
- Overlay: () => Overlay,
2904
- OverlayHeader: () => OverlayHeader,
2905
- Pagination: () => Pagination,
2906
- ProgressIndicator: () => ProgressIndicator,
2907
- PropertyBase: () => PropertyBase,
2908
- RadialRings: () => RadialRings,
2909
- Ring: () => Ring,
2910
- RingWave: () => RingWave,
2911
- ScrollPicker: () => ScrollPicker,
2912
- SearchableList: () => SearchableList,
2913
- SearchableSelect: () => SearchableSelect,
2914
- Select: () => Select,
2915
- SelectUncontrolled: () => SelectUncontrolled,
2916
- SessionStorageService: () => SessionStorageService,
2917
- SimpleSearch: () => SimpleSearch,
2918
- SimpleSearchWithMapping: () => SimpleSearchWithMapping,
2919
- SingleSelectProperty: () => SingleSelectProperty,
2920
- SolidButton: () => SolidButton,
2921
- SortButton: () => SortButton,
2922
- StepperBar: () => StepperBar,
2923
- StepperBarUncontrolled: () => StepperBarUncontrolled,
2924
- Table: () => Table,
2925
- TagIcon: () => TagIcon,
2926
- TextButton: () => TextButton,
2927
- TextImage: () => TextImage,
2928
- TextProperty: () => TextProperty,
2929
- Textarea: () => Textarea,
2930
- TextareaUncontrolled: () => TextareaUncontrolled,
2931
- ThemeContext: () => ThemeContext,
2932
- ThemeModal: () => ThemeModal,
2933
- ThemeProvider: () => ThemeProvider,
2934
- ThemeUtil: () => ThemeUtil,
2935
- Tile: () => Tile,
2936
- TimeDisplay: () => TimeDisplay,
2937
- TimePicker: () => TimePicker,
2938
- TimePickerUncontrolled: () => TimePickerUncontrolled,
2939
- ToggleableInput: () => ToggleableInput,
2940
- ToggleableInputUncontrolled: () => ToggleableInputUncontrolled,
2941
- Tooltip: () => Tooltip,
2942
- VerticalDivider: () => VerticalDivider,
2943
- YearMonthPicker: () => YearMonthPicker,
2944
- YearMonthPickerUncontrolled: () => YearMonthPickerUncontrolled,
2945
- addDuration: () => addDuration,
2946
- addElementToTable: () => addElementToTable,
2947
- avatarSizeMapping: () => avatarSizeMapping,
2948
- avtarSizeList: () => avtarSizeList,
2949
- builder: () => builder,
2950
- changeDuration: () => changeDuration,
2951
- changeTableSelectionSingle: () => changeTableSelectionSingle,
2952
- clamp: () => clamp,
2953
- closestMatch: () => closestMatch,
2954
- createLoopingList: () => createLoopingList,
2955
- createLoopingListWithIndex: () => createLoopingListWithIndex,
2956
- defaultTableStatePagination: () => defaultTableStatePagination,
2957
- defaultTableStateSelection: () => defaultTableStateSelection,
2958
- equalDate: () => equalDate,
2959
- equalSizeGroups: () => equalSizeGroups,
2960
- filterNews: () => filterNews,
2961
- formatDate: () => formatDate,
2962
- formatDateTime: () => formatDateTime,
2963
- generateShadingColors: () => generateShadingColors,
2964
- getBetweenDuration: () => getBetweenDuration,
2965
- getDaysInMonth: () => getDaysInMonth,
2966
- getNeighbours: () => getNeighbours,
2967
- getWeeksForCalenderMonth: () => getWeeksForCalenderMonth,
2968
- isDataObjectSelected: () => isDataObjectSelected,
2969
- isInTimeSpan: () => isInTimeSpan,
2970
- localizedNewsSchema: () => localizedNewsSchema,
2971
- monthsList: () => monthsList,
2972
- newsListSchema: () => newsListSchema,
2973
- newsSchema: () => newsSchema,
2974
- noop: () => noop,
2975
- pageForItem: () => pageForItem,
2976
- range: () => range,
2977
- removeFromTableSelection: () => removeFromTableSelection,
2978
- shadingColorValues: () => shadingColorValues,
2979
- subtractDuration: () => subtractDuration,
2980
- updatePagination: () => updatePagination,
2981
- useHoverState: () => useHoverState,
2982
- useLanguage: () => useLanguage,
2983
- useLocalStorage: () => useLocalStorage,
2984
- useLocale: () => useLocale,
2985
- useOutsideClick: () => useOutsideClick,
2986
- useSaveDelay: () => useSaveDelay,
2987
- useTheme: () => useTheme,
2988
- useTranslation: () => useTranslation,
2989
- validateEmail: () => validateEmail,
2990
- weekDayList: () => weekDayList
2991
- });
2992
- module.exports = __toCommonJS(index_exports);
2841
+ // src/coloring/shading.ts
2842
+ import tinycolor from "tinycolor2";
2843
+
2844
+ // src/coloring/types.ts
2845
+ var shadingColorValues = [0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1e3];
2993
2846
 
2994
2847
  // src/coloring/shading.ts
2995
- var import_tinycolor2 = __toESM(require("tinycolor2"), 1);
2996
2848
  var generateShadingColors = (partialShading) => {
2997
2849
  const shading = {
2998
2850
  0: "#FFFFFF",
@@ -3023,22 +2875,19 @@ var generateShadingColors = (partialShading) => {
3023
2875
  const current2 = shadingColorValues[k];
3024
2876
  const previousValue = partialShading[previous] ?? shading[previous];
3025
2877
  const nextValue = partialShading[nextFound] ?? shading[nextFound];
3026
- shading[current2] = import_tinycolor2.default.mix((0, import_tinycolor2.default)(previousValue), (0, import_tinycolor2.default)(nextValue), (current2 - previous) / interval * 100).toHexString();
2878
+ shading[current2] = tinycolor.mix(tinycolor(previousValue), tinycolor(nextValue), (current2 - previous) / interval * 100).toHexString();
3027
2879
  }
3028
2880
  index = j;
3029
2881
  }
3030
2882
  return shading;
3031
2883
  };
3032
2884
 
3033
- // src/coloring/types.ts
3034
- var shadingColorValues = [0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1e3];
3035
-
3036
2885
  // src/components/branding/HelpwaveBadge.tsx
3037
- var import_clsx3 = __toESM(require("clsx"), 1);
2886
+ import clsx3 from "clsx";
3038
2887
 
3039
2888
  // src/components/layout-and-navigation/Tile.tsx
3040
- var import_clsx = __toESM(require("clsx"), 1);
3041
- var import_jsx_runtime = require("react/jsx-runtime");
2889
+ import clsx from "clsx";
2890
+ import { jsx, jsxs } from "react/jsx-runtime";
3042
2891
  var Tile = ({
3043
2892
  title,
3044
2893
  description,
@@ -3046,19 +2895,19 @@ var Tile = ({
3046
2895
  suffix,
3047
2896
  className
3048
2897
  }) => {
3049
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_clsx.default)("row gap-x-4 w-full items-center", className), children: [
2898
+ return /* @__PURE__ */ jsxs("div", { className: clsx("row gap-x-4 w-full items-center", className), children: [
3050
2899
  prefix,
3051
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "col gap-y-0 w-full", children: [
3052
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { className: (0, import_clsx.default)(title.className ?? "textstyle-title-normal"), children: title.value }),
3053
- !!description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: (0, import_clsx.default)(description.className ?? "textstyle-description"), children: description.value })
2900
+ /* @__PURE__ */ jsxs("div", { className: "col gap-y-0 w-full", children: [
2901
+ /* @__PURE__ */ jsx("h4", { className: clsx(title.className ?? "textstyle-title-normal"), children: title.value }),
2902
+ !!description && /* @__PURE__ */ jsx("span", { className: clsx(description.className ?? "textstyle-description"), children: description.value })
3054
2903
  ] }),
3055
2904
  suffix
3056
2905
  ] });
3057
2906
  };
3058
2907
 
3059
2908
  // src/components/icons-and-geometry/Helpwave.tsx
3060
- var import_clsx2 = require("clsx");
3061
- var import_jsx_runtime2 = require("react/jsx-runtime");
2909
+ import { clsx as clsx2 } from "clsx";
2910
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
3062
2911
  var Helpwave = ({
3063
2912
  color = "currentColor",
3064
2913
  animate = "none",
@@ -3076,7 +2925,7 @@ var Helpwave = ({
3076
2925
  console.error("size cannot be less than 0");
3077
2926
  size = 64;
3078
2927
  }
3079
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2928
+ return /* @__PURE__ */ jsx2(
3080
2929
  "svg",
3081
2930
  {
3082
2931
  width: size,
@@ -3086,38 +2935,38 @@ var Helpwave = ({
3086
2935
  strokeLinecap: "round",
3087
2936
  strokeWidth: 48,
3088
2937
  ...props,
3089
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("g", { className: (0, import_clsx2.clsx)(svgAnimationKey), children: [
3090
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2938
+ children: /* @__PURE__ */ jsxs2("g", { className: clsx2(svgAnimationKey), children: [
2939
+ /* @__PURE__ */ jsx2(
3091
2940
  "path",
3092
2941
  {
3093
- className: (0, import_clsx2.clsx)({ "animate-wave-big-left-up": isLoadingAnimation }),
2942
+ className: clsx2({ "animate-wave-big-left-up": isLoadingAnimation }),
3094
2943
  d: "M144 543.235C144 423.259 232.164 326 340.92 326",
3095
2944
  stroke: color,
3096
2945
  strokeDasharray: "1000"
3097
2946
  }
3098
2947
  ),
3099
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2948
+ /* @__PURE__ */ jsx2(
3100
2949
  "path",
3101
2950
  {
3102
- className: (0, import_clsx2.clsx)({ "animate-wave-big-right-down": isLoadingAnimation }),
2951
+ className: clsx2({ "animate-wave-big-right-down": isLoadingAnimation }),
3103
2952
  d: "M537.84 544.104C429.084 544.104 340.92 446.844 340.92 326.869",
3104
2953
  stroke: color,
3105
2954
  strokeDasharray: "1000"
3106
2955
  }
3107
2956
  ),
3108
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2957
+ /* @__PURE__ */ jsx2(
3109
2958
  "path",
3110
2959
  {
3111
- className: (0, import_clsx2.clsx)({ "animate-wave-small-left-up": isLoadingAnimation }),
2960
+ className: clsx2({ "animate-wave-small-left-up": isLoadingAnimation }),
3112
2961
  d: "M462.223 518.035C462.223 432.133 525.348 362.495 603.217 362.495",
3113
2962
  stroke: color,
3114
2963
  strokeDasharray: "1000"
3115
2964
  }
3116
2965
  ),
3117
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2966
+ /* @__PURE__ */ jsx2(
3118
2967
  "path",
3119
2968
  {
3120
- className: (0, import_clsx2.clsx)({ "animate-wave-small-right-down": isLoadingAnimation }),
2969
+ className: clsx2({ "animate-wave-small-right-down": isLoadingAnimation }),
3121
2970
  d: "M745.001 519.773C666.696 519.773 603.218 450.136 603.218 364.233",
3122
2971
  stroke: color,
3123
2972
  strokeDasharray: "1000"
@@ -3129,19 +2978,19 @@ var Helpwave = ({
3129
2978
  };
3130
2979
 
3131
2980
  // src/components/branding/HelpwaveBadge.tsx
3132
- var import_jsx_runtime3 = require("react/jsx-runtime");
2981
+ import { jsx as jsx3 } from "react/jsx-runtime";
3133
2982
  var HelpwaveBadge = ({
3134
2983
  size = "small",
3135
2984
  title = "helpwave",
3136
2985
  className = ""
3137
2986
  }) => {
3138
2987
  const iconSize = size === "small" ? 24 : 64;
3139
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2988
+ return /* @__PURE__ */ jsx3(
3140
2989
  Tile,
3141
2990
  {
3142
- prefix: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Helpwave, { size: iconSize }),
2991
+ prefix: /* @__PURE__ */ jsx3(Helpwave, { size: iconSize }),
3143
2992
  title: { value: title, className: size === "small" ? "textstyle-title-lg text-base" : "textstyle-title-xl" },
3144
- className: (0, import_clsx3.default)(
2993
+ className: clsx3(
3145
2994
  {
3146
2995
  "px-2 py-1 rounded-md": size === "small",
3147
2996
  "px-4 py-1 rounded-md": size === "large"
@@ -3153,14 +3002,14 @@ var HelpwaveBadge = ({
3153
3002
  };
3154
3003
 
3155
3004
  // src/components/date/DatePicker.tsx
3156
- var import_react6 = require("react");
3157
- var import_lucide_react2 = require("lucide-react");
3005
+ import { useEffect as useEffect6, useState as useState6 } from "react";
3006
+ import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2 } from "lucide-react";
3158
3007
 
3159
3008
  // src/localization/LanguageProvider.tsx
3160
- var import_react2 = require("react");
3009
+ import { createContext, useContext, useEffect as useEffect2, useState as useState2 } from "react";
3161
3010
 
3162
3011
  // src/hooks/useLocalStorage.ts
3163
- var import_react = require("react");
3012
+ import { useCallback, useEffect, useState } from "react";
3164
3013
 
3165
3014
  // src/util/storage.ts
3166
3015
  var StorageService = class {
@@ -3198,7 +3047,7 @@ var SessionStorageService = class extends StorageService {
3198
3047
 
3199
3048
  // src/hooks/useLocalStorage.ts
3200
3049
  var useLocalStorage = (key, initValue) => {
3201
- const get = (0, import_react.useCallback)(() => {
3050
+ const get = useCallback(() => {
3202
3051
  if (typeof window === "undefined") {
3203
3052
  return initValue;
3204
3053
  }
@@ -3206,14 +3055,14 @@ var useLocalStorage = (key, initValue) => {
3206
3055
  const value = storageService.get(key);
3207
3056
  return value || initValue;
3208
3057
  }, [initValue, key]);
3209
- const [storedValue, setStoredValue] = (0, import_react.useState)(get);
3210
- const setValue = (0, import_react.useCallback)((value) => {
3058
+ const [storedValue, setStoredValue] = useState(get);
3059
+ const setValue = useCallback((value) => {
3211
3060
  const newValue = value instanceof Function ? value(storedValue) : value;
3212
3061
  const storageService = new LocalStorageService();
3213
3062
  storageService.set(key, value);
3214
3063
  setStoredValue(newValue);
3215
3064
  }, [storedValue, setStoredValue, key]);
3216
- (0, import_react.useEffect)(() => {
3065
+ useEffect(() => {
3217
3066
  setStoredValue(get());
3218
3067
  }, []);
3219
3068
  return [storedValue, setValue];
@@ -3233,12 +3082,12 @@ var LanguageUtil = {
3233
3082
  };
3234
3083
 
3235
3084
  // src/localization/LanguageProvider.tsx
3236
- var import_jsx_runtime4 = require("react/jsx-runtime");
3237
- var LanguageContext = (0, import_react2.createContext)({
3085
+ import { jsx as jsx4 } from "react/jsx-runtime";
3086
+ var LanguageContext = createContext({
3238
3087
  language: LanguageUtil.DEFAULT_LANGUAGE,
3239
3088
  setLanguage: (v) => v
3240
3089
  });
3241
- var useLanguage = () => (0, import_react2.useContext)(LanguageContext);
3090
+ var useLanguage = () => useContext(LanguageContext);
3242
3091
  var useLocale = (overWriteLanguage) => {
3243
3092
  const { language } = useLanguage();
3244
3093
  const mapping = {
@@ -3248,18 +3097,18 @@ var useLocale = (overWriteLanguage) => {
3248
3097
  return mapping[overWriteLanguage ?? language];
3249
3098
  };
3250
3099
  var LanguageProvider = ({ initialLanguage, children }) => {
3251
- const [language, setLanguage] = (0, import_react2.useState)(initialLanguage ?? LanguageUtil.DEFAULT_LANGUAGE);
3100
+ const [language, setLanguage] = useState2(initialLanguage ?? LanguageUtil.DEFAULT_LANGUAGE);
3252
3101
  const [storedLanguage, setStoredLanguage] = useLocalStorage("language", initialLanguage ?? LanguageUtil.DEFAULT_LANGUAGE);
3253
- (0, import_react2.useEffect)(() => {
3102
+ useEffect2(() => {
3254
3103
  if (language !== initialLanguage && initialLanguage) {
3255
3104
  console.warn("LanguageProvider initial state changed: Prefer using languageProvider's setLanguage instead");
3256
3105
  setLanguage(initialLanguage);
3257
3106
  }
3258
3107
  }, [initialLanguage]);
3259
- (0, import_react2.useEffect)(() => {
3108
+ useEffect2(() => {
3260
3109
  setStoredLanguage(language);
3261
3110
  }, [language, setStoredLanguage]);
3262
- (0, import_react2.useEffect)(() => {
3111
+ useEffect2(() => {
3263
3112
  if (storedLanguage !== null) {
3264
3113
  setLanguage(storedLanguage);
3265
3114
  return;
@@ -3270,7 +3119,7 @@ var LanguageProvider = ({ initialLanguage, children }) => {
3270
3119
  const firstMatch = matchingBrowserLanguage[0];
3271
3120
  setLanguage(firstMatch);
3272
3121
  }, []);
3273
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(LanguageContext.Provider, { value: {
3122
+ return /* @__PURE__ */ jsx4(LanguageContext.Provider, { value: {
3274
3123
  language,
3275
3124
  setLanguage
3276
3125
  }, children });
@@ -3511,11 +3360,11 @@ var getWeeksForCalenderMonth = (date, weekStart, weeks = 6) => {
3511
3360
  };
3512
3361
 
3513
3362
  // src/components/date/DatePicker.tsx
3514
- var import_clsx8 = __toESM(require("clsx"), 1);
3363
+ import clsx8 from "clsx";
3515
3364
 
3516
3365
  // src/components/user-action/Button.tsx
3517
- var import_clsx4 = __toESM(require("clsx"), 1);
3518
- var import_jsx_runtime5 = require("react/jsx-runtime");
3366
+ import clsx4 from "clsx";
3367
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
3519
3368
  var ButtonColorUtil = {
3520
3369
  solid: ["primary", "secondary", "tertiary", "positive", "warning", "negative", "neutral"],
3521
3370
  text: ["primary", "negative", "neutral"],
@@ -3564,25 +3413,25 @@ var SolidButton = ({
3564
3413
  negative: "text-button-solid-negative-icon",
3565
3414
  neutral: "text-button-solid-neutral-icon"
3566
3415
  }[color];
3567
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
3416
+ return /* @__PURE__ */ jsxs3(
3568
3417
  "button",
3569
3418
  {
3570
3419
  onClick: disabled ? void 0 : onClick,
3571
3420
  disabled: disabled || onClick === void 0,
3572
- className: (0, import_clsx4.default)(
3421
+ className: clsx4(
3573
3422
  {
3574
3423
  "text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
3575
- [(0, import_clsx4.default)(colorClasses, "hover:brightness-90")]: !disabled
3424
+ [clsx4(colorClasses, "hover:brightness-90")]: !disabled
3576
3425
  },
3577
3426
  ButtonUtil.paddingMapping[size],
3578
3427
  className
3579
3428
  ),
3580
3429
  ...restProps,
3581
3430
  children: [
3582
- startIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3431
+ startIcon && /* @__PURE__ */ jsx5(
3583
3432
  "span",
3584
3433
  {
3585
- className: (0, import_clsx4.default)({
3434
+ className: clsx4({
3586
3435
  [iconColorClasses]: !disabled,
3587
3436
  [`text-disabled-icon`]: disabled
3588
3437
  }),
@@ -3590,10 +3439,10 @@ var SolidButton = ({
3590
3439
  }
3591
3440
  ),
3592
3441
  children,
3593
- endIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3442
+ endIcon && /* @__PURE__ */ jsx5(
3594
3443
  "span",
3595
3444
  {
3596
- className: (0, import_clsx4.default)({
3445
+ className: clsx4({
3597
3446
  [iconColorClasses]: !disabled,
3598
3447
  [`text-disabled-icon`]: disabled
3599
3448
  }),
@@ -3621,25 +3470,25 @@ var OutlineButton = ({
3621
3470
  const iconColorClasses = {
3622
3471
  primary: "text-button-outline-primary-icon"
3623
3472
  }[color];
3624
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
3473
+ return /* @__PURE__ */ jsxs3(
3625
3474
  "button",
3626
3475
  {
3627
3476
  onClick: disabled ? void 0 : onClick,
3628
3477
  disabled: disabled || onClick === void 0,
3629
- className: (0, import_clsx4.default)(
3478
+ className: clsx4(
3630
3479
  {
3631
3480
  "text-disabled-text border-disabled-outline cursor-not-allowed": disabled,
3632
- [(0, import_clsx4.default)(colorClasses, "hover:brightness-80")]: !disabled
3481
+ [clsx4(colorClasses, "hover:brightness-80")]: !disabled
3633
3482
  },
3634
3483
  ButtonUtil.paddingMapping[size],
3635
3484
  className
3636
3485
  ),
3637
3486
  ...restProps,
3638
3487
  children: [
3639
- startIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3488
+ startIcon && /* @__PURE__ */ jsx5(
3640
3489
  "span",
3641
3490
  {
3642
- className: (0, import_clsx4.default)({
3491
+ className: clsx4({
3643
3492
  [iconColorClasses]: !disabled,
3644
3493
  [`text-disabled-icon`]: disabled
3645
3494
  }),
@@ -3647,10 +3496,10 @@ var OutlineButton = ({
3647
3496
  }
3648
3497
  ),
3649
3498
  children,
3650
- endIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3499
+ endIcon && /* @__PURE__ */ jsx5(
3651
3500
  "span",
3652
3501
  {
3653
- className: (0, import_clsx4.default)({
3502
+ className: clsx4({
3654
3503
  [iconColorClasses]: !disabled,
3655
3504
  [`text-disabled-icon`]: disabled
3656
3505
  }),
@@ -3682,25 +3531,25 @@ var TextButton = ({
3682
3531
  negative: "text-button-text-negative-icon",
3683
3532
  neutral: "text-button-text-neutral-icon"
3684
3533
  }[color];
3685
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
3534
+ return /* @__PURE__ */ jsxs3(
3686
3535
  "button",
3687
3536
  {
3688
3537
  onClick: disabled ? void 0 : onClick,
3689
3538
  disabled: disabled || onClick === void 0,
3690
- className: (0, import_clsx4.default)(
3539
+ className: clsx4(
3691
3540
  {
3692
3541
  "text-disabled-text cursor-not-allowed": disabled,
3693
- [(0, import_clsx4.default)(colorClasses, "hover:bg-button-text-hover-background rounded-full")]: !disabled
3542
+ [clsx4(colorClasses, "hover:bg-button-text-hover-background rounded-full")]: !disabled
3694
3543
  },
3695
3544
  ButtonUtil.paddingMapping[size],
3696
3545
  className
3697
3546
  ),
3698
3547
  ...restProps,
3699
3548
  children: [
3700
- startIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3549
+ startIcon && /* @__PURE__ */ jsx5(
3701
3550
  "span",
3702
3551
  {
3703
- className: (0, import_clsx4.default)({
3552
+ className: clsx4({
3704
3553
  [iconColorClasses]: !disabled,
3705
3554
  [`text-disabled-icon`]: disabled
3706
3555
  }),
@@ -3708,10 +3557,10 @@ var TextButton = ({
3708
3557
  }
3709
3558
  ),
3710
3559
  children,
3711
- endIcon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3560
+ endIcon && /* @__PURE__ */ jsx5(
3712
3561
  "span",
3713
3562
  {
3714
- className: (0, import_clsx4.default)({
3563
+ className: clsx4({
3715
3564
  [iconColorClasses]: !disabled,
3716
3565
  [`text-disabled-icon`]: disabled
3717
3566
  }),
@@ -3740,15 +3589,15 @@ var IconButton = ({
3740
3589
  negative: "bg-button-solid-negative-background text-button-solid-negative-text",
3741
3590
  neutral: "bg-button-solid-neutral-background text-button-solid-neutral-text"
3742
3591
  }[color];
3743
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3592
+ return /* @__PURE__ */ jsx5(
3744
3593
  "button",
3745
3594
  {
3746
3595
  onClick: disabled ? void 0 : onClick,
3747
3596
  disabled: disabled || onClick === void 0,
3748
- className: (0, import_clsx4.default)(
3597
+ className: clsx4(
3749
3598
  {
3750
3599
  "text-disabled-text bg-disabled-background cursor-not-allowed": disabled,
3751
- [(0, import_clsx4.default)(colorClasses, "hover:brightness-90")]: !disabled
3600
+ [clsx4(colorClasses, "hover:brightness-90")]: !disabled
3752
3601
  },
3753
3602
  ButtonUtil.iconPaddingMapping[size],
3754
3603
  className
@@ -3760,17 +3609,17 @@ var IconButton = ({
3760
3609
  };
3761
3610
 
3762
3611
  // src/components/date/YearMonthPicker.tsx
3763
- var import_react4 = require("react");
3764
- var import_react_custom_scrollbars_2 = require("react-custom-scrollbars-2");
3765
- var import_clsx6 = __toESM(require("clsx"), 1);
3612
+ import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
3613
+ import { Scrollbars } from "react-custom-scrollbars-2";
3614
+ import clsx6 from "clsx";
3766
3615
 
3767
3616
  // src/components/layout-and-navigation/Expandable.tsx
3768
- var import_react3 = require("react");
3769
- var import_lucide_react = require("lucide-react");
3770
- var import_clsx5 = __toESM(require("clsx"), 1);
3771
- var import_jsx_runtime6 = require("react/jsx-runtime");
3772
- var DefaultIcon = (expanded) => expanded ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.ChevronUp, { size: 16, className: "min-w-[16px]" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react.ChevronDown, { size: 16, className: "min-w-[16px]" });
3773
- var Expandable = (0, import_react3.forwardRef)(function Expandable2({
3617
+ import { forwardRef, useEffect as useEffect3, useState as useState3 } from "react";
3618
+ import { ChevronDown, ChevronUp } from "lucide-react";
3619
+ import clsx5 from "clsx";
3620
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
3621
+ var DefaultIcon = (expanded) => expanded ? /* @__PURE__ */ jsx6(ChevronUp, { size: 16, className: "min-w-[16px]" }) : /* @__PURE__ */ jsx6(ChevronDown, { size: 16, className: "min-w-[16px]" });
3622
+ var Expandable = forwardRef(function Expandable2({
3774
3623
  children,
3775
3624
  label,
3776
3625
  icon,
@@ -3782,17 +3631,17 @@ var Expandable = (0, import_react3.forwardRef)(function Expandable2({
3782
3631
  headerClassName = ""
3783
3632
  }, ref) {
3784
3633
  icon ??= DefaultIcon;
3785
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
3634
+ return /* @__PURE__ */ jsxs4(
3786
3635
  "div",
3787
3636
  {
3788
3637
  ref,
3789
- className: (0, import_clsx5.default)("col gap-y-0 bg-surface text-on-surface group rounded-lg shadow-sm", { "cursor-pointer": !clickOnlyOnHeader && !disabled }, className),
3638
+ className: clsx5("col gap-y-0 bg-surface text-on-surface group rounded-lg shadow-sm", { "cursor-pointer": !clickOnlyOnHeader && !disabled }, className),
3790
3639
  onClick: () => !clickOnlyOnHeader && !disabled && onChange(!isExpanded),
3791
3640
  children: [
3792
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
3641
+ /* @__PURE__ */ jsxs4(
3793
3642
  "div",
3794
3643
  {
3795
- className: (0, import_clsx5.default)(
3644
+ className: clsx5(
3796
3645
  "row py-2 px-4 rounded-lg justify-between items-center bg-surface text-on-surface select-none",
3797
3646
  {
3798
3647
  "group-hover:brightness-95": !isExpanded,
@@ -3808,21 +3657,21 @@ var Expandable = (0, import_react3.forwardRef)(function Expandable2({
3808
3657
  ]
3809
3658
  }
3810
3659
  ),
3811
- isExpanded && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "col px-4 pb-2", children })
3660
+ isExpanded && /* @__PURE__ */ jsx6("div", { className: "col px-4 pb-2", children })
3812
3661
  ]
3813
3662
  }
3814
3663
  );
3815
3664
  });
3816
- var ExpandableUncontrolled = (0, import_react3.forwardRef)(function ExpandableUncontrolled2({
3665
+ var ExpandableUncontrolled = forwardRef(function ExpandableUncontrolled2({
3817
3666
  isExpanded,
3818
3667
  onChange = noop,
3819
3668
  ...props
3820
3669
  }, ref) {
3821
- const [usedIsExpanded, setUsedIsExpanded] = (0, import_react3.useState)(isExpanded);
3822
- (0, import_react3.useEffect)(() => {
3670
+ const [usedIsExpanded, setUsedIsExpanded] = useState3(isExpanded);
3671
+ useEffect3(() => {
3823
3672
  setUsedIsExpanded(isExpanded);
3824
3673
  }, [isExpanded]);
3825
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
3674
+ return /* @__PURE__ */ jsx6(
3826
3675
  Expandable,
3827
3676
  {
3828
3677
  ...props,
@@ -3837,7 +3686,7 @@ var ExpandableUncontrolled = (0, import_react3.forwardRef)(function ExpandableUn
3837
3686
  });
3838
3687
 
3839
3688
  // src/components/date/YearMonthPicker.tsx
3840
- var import_jsx_runtime7 = require("react/jsx-runtime");
3689
+ import { jsx as jsx7 } from "react/jsx-runtime";
3841
3690
  var YearMonthPicker = ({
3842
3691
  displayedYearMonth = /* @__PURE__ */ new Date(),
3843
3692
  start = subtractDuration(/* @__PURE__ */ new Date(), { years: 50 }),
@@ -3848,8 +3697,8 @@ var YearMonthPicker = ({
3848
3697
  showValueOpen = true
3849
3698
  }) => {
3850
3699
  const locale = useLocale();
3851
- const ref = (0, import_react4.useRef)(null);
3852
- (0, import_react4.useEffect)(() => {
3700
+ const ref = useRef(null);
3701
+ useEffect4(() => {
3853
3702
  const scrollToItem = () => {
3854
3703
  if (ref.current) {
3855
3704
  ref.current.scrollIntoView({
@@ -3865,15 +3714,15 @@ var YearMonthPicker = ({
3865
3714
  return null;
3866
3715
  }
3867
3716
  const years = range(start.getFullYear(), end.getFullYear());
3868
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: (0, import_clsx6.default)("col select-none", className), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_custom_scrollbars_2.Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "col gap-y-1 mr-3", children: years.map((year) => {
3717
+ return /* @__PURE__ */ jsx7("div", { className: clsx6("col select-none", className), children: /* @__PURE__ */ jsx7(Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ jsx7("div", { className: "col gap-y-1 mr-3", children: years.map((year) => {
3869
3718
  const selectedYear = displayedYearMonth.getFullYear() === year;
3870
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3719
+ return /* @__PURE__ */ jsx7(
3871
3720
  ExpandableUncontrolled,
3872
3721
  {
3873
3722
  ref: (displayedYearMonth.getFullYear() ?? (/* @__PURE__ */ new Date()).getFullYear()) === year ? ref : void 0,
3874
- label: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: (0, import_clsx6.default)({ "text-primary font-bold": selectedYear }), children: year }),
3723
+ label: /* @__PURE__ */ jsx7("span", { className: clsx6({ "text-primary font-bold": selectedYear }), children: year }),
3875
3724
  isExpanded: showValueOpen && selectedYear,
3876
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "col gap-y-1 px-2 pb-2", children: equalSizeGroups([...monthsList], 3).map((monthList, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "row", children: monthList.map((month) => {
3725
+ children: /* @__PURE__ */ jsx7("div", { className: "col gap-y-1 px-2 pb-2", children: equalSizeGroups([...monthsList], 3).map((monthList, index) => /* @__PURE__ */ jsx7("div", { className: "row", children: monthList.map((month) => {
3877
3726
  const monthIndex = monthsList.indexOf(month);
3878
3727
  const newDate = new Date(year, monthIndex);
3879
3728
  const selectedMonth = selectedYear && monthIndex === displayedYearMonth.getMonth();
@@ -3882,11 +3731,11 @@ var YearMonthPicker = ({
3882
3731
  const isAfterStart = start === void 0 || start <= addDuration(subtractDuration(lastOfMonth, { days: 1 }), { months: 1 });
3883
3732
  const isBeforeEnd = end === void 0 || firstOfMonth <= end;
3884
3733
  const isValid = isAfterStart && isBeforeEnd;
3885
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3734
+ return /* @__PURE__ */ jsx7(
3886
3735
  "button",
3887
3736
  {
3888
3737
  disabled: !isValid,
3889
- className: (0, import_clsx6.default)(
3738
+ className: clsx6(
3890
3739
  "chip hover:brightness-95 flex-1",
3891
3740
  {
3892
3741
  "bg-gray-50 text-black": !selectedMonth && isValid,
@@ -3912,9 +3761,9 @@ var YearMonthPickerUncontrolled = ({
3912
3761
  onChange = noop,
3913
3762
  ...props
3914
3763
  }) => {
3915
- const [yearMonth, setYearMonth] = (0, import_react4.useState)(displayedYearMonth);
3916
- (0, import_react4.useEffect)(() => setYearMonth(displayedYearMonth), [displayedYearMonth]);
3917
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3764
+ const [yearMonth, setYearMonth] = useState4(displayedYearMonth);
3765
+ useEffect4(() => setYearMonth(displayedYearMonth), [displayedYearMonth]);
3766
+ return /* @__PURE__ */ jsx7(
3918
3767
  YearMonthPicker,
3919
3768
  {
3920
3769
  displayedYearMonth: yearMonth,
@@ -3928,9 +3777,9 @@ var YearMonthPickerUncontrolled = ({
3928
3777
  };
3929
3778
 
3930
3779
  // src/components/date/DayPicker.tsx
3931
- var import_clsx7 = __toESM(require("clsx"), 1);
3932
- var import_react5 = require("react");
3933
- var import_jsx_runtime8 = require("react/jsx-runtime");
3780
+ import clsx7 from "clsx";
3781
+ import { useEffect as useEffect5, useState as useState5 } from "react";
3782
+ import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
3934
3783
  var DayPicker = ({
3935
3784
  displayedMonth,
3936
3785
  selected,
@@ -3944,18 +3793,18 @@ var DayPicker = ({
3944
3793
  const locale = useLocale();
3945
3794
  const month = displayedMonth.getMonth();
3946
3795
  const weeks = getWeeksForCalenderMonth(displayedMonth, weekStart);
3947
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: (0, import_clsx7.default)("col gap-y-1 min-w-[220px] select-none", className), children: [
3948
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "row text-center", children: weeks[0].map((weekDay, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex-1 font-semibold", children: new Intl.DateTimeFormat(locale, { weekday: "long" }).format(weekDay).substring(0, 2) }, index)) }),
3949
- weeks.map((week, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "row text-center", children: week.map((date) => {
3796
+ return /* @__PURE__ */ jsxs5("div", { className: clsx7("col gap-y-1 min-w-[220px] select-none", className), children: [
3797
+ /* @__PURE__ */ jsx8("div", { className: "row text-center", children: weeks[0].map((weekDay, index) => /* @__PURE__ */ jsx8("div", { className: "flex-1 font-semibold", children: new Intl.DateTimeFormat(locale, { weekday: "long" }).format(weekDay).substring(0, 2) }, index)) }),
3798
+ weeks.map((week, index) => /* @__PURE__ */ jsx8("div", { className: "row text-center", children: week.map((date) => {
3950
3799
  const isSelected = !!selected && equalDate(selected, date);
3951
3800
  const isToday = equalDate(/* @__PURE__ */ new Date(), date);
3952
3801
  const isSameMonth = date.getMonth() === month;
3953
3802
  const isDayValid = isInTimeSpan(date, start, end);
3954
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3803
+ return /* @__PURE__ */ jsx8(
3955
3804
  "button",
3956
3805
  {
3957
3806
  disabled: !isDayValid,
3958
- className: (0, import_clsx7.default)(
3807
+ className: clsx7(
3959
3808
  "flex-1 rounded-full border-2 border-transparent shadow-sm",
3960
3809
  {
3961
3810
  "text-gray-700 bg-gray-100": !isSameMonth && isDayValid,
@@ -3975,9 +3824,9 @@ var DayPicker = ({
3975
3824
  ] });
3976
3825
  };
3977
3826
  var DayPickerUncontrolled = ({ displayedMonth, onChange = noop, ...restProps }) => {
3978
- const [date, setDate] = (0, import_react5.useState)(displayedMonth);
3979
- (0, import_react5.useEffect)(() => setDate(displayedMonth), [displayedMonth]);
3980
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3827
+ const [date, setDate] = useState5(displayedMonth);
3828
+ useEffect5(() => setDate(displayedMonth), [displayedMonth]);
3829
+ return /* @__PURE__ */ jsx8(
3981
3830
  DayPicker,
3982
3831
  {
3983
3832
  displayedMonth: date,
@@ -3991,7 +3840,7 @@ var DayPickerUncontrolled = ({ displayedMonth, onChange = noop, ...restProps })
3991
3840
  };
3992
3841
 
3993
3842
  // src/components/date/DatePicker.tsx
3994
- var import_jsx_runtime9 = require("react/jsx-runtime");
3843
+ import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
3995
3844
  var defaultDatePickerTranslation = {
3996
3845
  en: {
3997
3846
  today: "Today"
@@ -4013,28 +3862,28 @@ var DatePicker = ({
4013
3862
  }) => {
4014
3863
  const locale = useLocale();
4015
3864
  const translation = useTranslation(defaultDatePickerTranslation, overwriteTranslation);
4016
- const [displayedMonth, setDisplayedMonth] = (0, import_react6.useState)(value);
4017
- const [displayMode, setDisplayMode] = (0, import_react6.useState)(initialDisplay);
4018
- (0, import_react6.useEffect)(() => {
3865
+ const [displayedMonth, setDisplayedMonth] = useState6(value);
3866
+ const [displayMode, setDisplayMode] = useState6(initialDisplay);
3867
+ useEffect6(() => {
4019
3868
  setDisplayedMonth(value);
4020
3869
  }, [value]);
4021
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: (0, import_clsx8.default)("col gap-y-4", className), children: [
4022
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "row items-center justify-between h-7", children: [
4023
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
3870
+ return /* @__PURE__ */ jsxs6("div", { className: clsx8("col gap-y-4", className), children: [
3871
+ /* @__PURE__ */ jsxs6("div", { className: "row items-center justify-between h-7", children: [
3872
+ /* @__PURE__ */ jsxs6(
4024
3873
  TextButton,
4025
3874
  {
4026
- className: (0, import_clsx8.default)("row gap-x-1 items-center cursor-pointer select-none", {
3875
+ className: clsx8("row gap-x-1 items-center cursor-pointer select-none", {
4027
3876
  "text-disabled-text": displayMode !== "day"
4028
3877
  }),
4029
3878
  onClick: () => setDisplayMode(displayMode === "day" ? "yearMonth" : "day"),
4030
3879
  children: [
4031
3880
  `${new Intl.DateTimeFormat(locale, { month: "long" }).format(displayedMonth)} ${displayedMonth.getFullYear()}`,
4032
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react2.ChevronDown, { size: 16 })
3881
+ /* @__PURE__ */ jsx9(ChevronDown2, { size: 16 })
4033
3882
  ]
4034
3883
  }
4035
3884
  ),
4036
- displayMode === "day" && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "row justify-end", children: [
4037
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3885
+ displayMode === "day" && /* @__PURE__ */ jsxs6("div", { className: "row justify-end", children: [
3886
+ /* @__PURE__ */ jsx9(
4038
3887
  SolidButton,
4039
3888
  {
4040
3889
  size: "small",
@@ -4043,10 +3892,10 @@ var DatePicker = ({
4043
3892
  onClick: () => {
4044
3893
  setDisplayedMonth(subtractDuration(displayedMonth, { months: 1 }));
4045
3894
  },
4046
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react2.ArrowUp, { size: 20 })
3895
+ children: /* @__PURE__ */ jsx9(ArrowUp, { size: 20 })
4047
3896
  }
4048
3897
  ),
4049
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3898
+ /* @__PURE__ */ jsx9(
4050
3899
  SolidButton,
4051
3900
  {
4052
3901
  size: "small",
@@ -4055,12 +3904,12 @@ var DatePicker = ({
4055
3904
  onClick: () => {
4056
3905
  setDisplayedMonth(addDuration(displayedMonth, { months: 1 }));
4057
3906
  },
4058
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react2.ArrowDown, { size: 20 })
3907
+ children: /* @__PURE__ */ jsx9(ArrowDown, { size: 20 })
4059
3908
  }
4060
3909
  )
4061
3910
  ] })
4062
3911
  ] }),
4063
- displayMode === "yearMonth" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3912
+ displayMode === "yearMonth" ? /* @__PURE__ */ jsx9(
4064
3913
  YearMonthPicker,
4065
3914
  {
4066
3915
  ...yearMonthPickerProps,
@@ -4072,8 +3921,8 @@ var DatePicker = ({
4072
3921
  setDisplayMode("day");
4073
3922
  }
4074
3923
  }
4075
- ) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
4076
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3924
+ ) : /* @__PURE__ */ jsxs6("div", { children: [
3925
+ /* @__PURE__ */ jsx9(
4077
3926
  DayPicker,
4078
3927
  {
4079
3928
  ...dayPickerProps,
@@ -4086,7 +3935,7 @@ var DatePicker = ({
4086
3935
  }
4087
3936
  }
4088
3937
  ),
4089
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "mt-2", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3938
+ /* @__PURE__ */ jsx9("div", { className: "mt-2", children: /* @__PURE__ */ jsx9(
4090
3939
  TextButton,
4091
3940
  {
4092
3941
  onClick: () => {
@@ -4105,9 +3954,9 @@ var DatePickerUncontrolled = ({
4105
3954
  onChange = noop,
4106
3955
  ...props
4107
3956
  }) => {
4108
- const [date, setDate] = (0, import_react6.useState)(value);
4109
- (0, import_react6.useEffect)(() => setDate(value), [value]);
4110
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3957
+ const [date, setDate] = useState6(value);
3958
+ useEffect6(() => setDate(value), [value]);
3959
+ return /* @__PURE__ */ jsx9(
4111
3960
  DatePicker,
4112
3961
  {
4113
3962
  ...props,
@@ -4121,7 +3970,7 @@ var DatePickerUncontrolled = ({
4121
3970
  };
4122
3971
 
4123
3972
  // src/components/date/TimeDisplay.tsx
4124
- var import_jsx_runtime10 = require("react/jsx-runtime");
3973
+ import { jsx as jsx10 } from "react/jsx-runtime";
4125
3974
  var defaultTimeDisplayTranslations = {
4126
3975
  en: {
4127
3976
  today: "today",
@@ -4199,14 +4048,14 @@ var TimeDisplay = ({
4199
4048
  } else {
4200
4049
  fullString = `${date.getDate()}. ${monthToTranslation[date.getMonth()]} ${date.getFullYear()}`;
4201
4050
  }
4202
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: fullString });
4051
+ return /* @__PURE__ */ jsx10("span", { children: fullString });
4203
4052
  };
4204
4053
 
4205
4054
  // src/components/date/TimePicker.tsx
4206
- var import_react7 = require("react");
4207
- var import_react_custom_scrollbars_22 = require("react-custom-scrollbars-2");
4208
- var import_clsx9 = __toESM(require("clsx"), 1);
4209
- var import_jsx_runtime11 = require("react/jsx-runtime");
4055
+ import { useEffect as useEffect7, useRef as useRef2, useState as useState7 } from "react";
4056
+ import { Scrollbars as Scrollbars2 } from "react-custom-scrollbars-2";
4057
+ import clsx9 from "clsx";
4058
+ import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
4210
4059
  var TimePicker = ({
4211
4060
  time = /* @__PURE__ */ new Date(),
4212
4061
  onChange = noop,
@@ -4215,12 +4064,12 @@ var TimePicker = ({
4215
4064
  maxHeight = 300,
4216
4065
  className = ""
4217
4066
  }) => {
4218
- const minuteRef = (0, import_react7.useRef)(null);
4219
- const hourRef = (0, import_react7.useRef)(null);
4067
+ const minuteRef = useRef2(null);
4068
+ const hourRef = useRef2(null);
4220
4069
  const isPM = time.getHours() >= 11;
4221
4070
  const hours = is24HourFormat ? range(0, 23) : range(1, 12);
4222
4071
  let minutes = range(0, 59);
4223
- (0, import_react7.useEffect)(() => {
4072
+ useEffect7(() => {
4224
4073
  const scrollToItem = () => {
4225
4074
  if (minuteRef.current) {
4226
4075
  const container = minuteRef.current.parentElement;
@@ -4235,7 +4084,7 @@ var TimePicker = ({
4235
4084
  };
4236
4085
  scrollToItem();
4237
4086
  }, [minuteRef, minuteRef.current]);
4238
- (0, import_react7.useEffect)(() => {
4087
+ useEffect7(() => {
4239
4088
  const scrollToItem = () => {
4240
4089
  if (hourRef.current) {
4241
4090
  const container = hourRef.current.parentElement;
@@ -4265,7 +4114,7 @@ var TimePicker = ({
4265
4114
  break;
4266
4115
  }
4267
4116
  const closestMinute = closestMatch(minutes, (item1, item2) => Math.abs(item1 - time.getMinutes()) < Math.abs(item2 - time.getMinutes()));
4268
- const style = (selected) => (0, import_clsx9.default)(
4117
+ const style = (selected) => clsx9(
4269
4118
  "chip-full hover:brightness-90 hover:bg-primary hover:text-on-primary rounded-md mr-3",
4270
4119
  { "bg-primary text-on-primary": selected, "bg-white text-black": !selected }
4271
4120
  );
@@ -4274,10 +4123,10 @@ var TimePicker = ({
4274
4123
  transformer(newDate);
4275
4124
  onChange(newDate);
4276
4125
  };
4277
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: (0, import_clsx9.default)("row gap-x-2 w-fit min-w-[150px] select-none", className), children: [
4278
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_custom_scrollbars_22.Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "col gap-y-1 h-full", children: hours.map((hour) => {
4126
+ return /* @__PURE__ */ jsxs7("div", { className: clsx9("row gap-x-2 w-fit min-w-[150px] select-none", className), children: [
4127
+ /* @__PURE__ */ jsx11(Scrollbars2, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ jsx11("div", { className: "col gap-y-1 h-full", children: hours.map((hour) => {
4279
4128
  const currentHour = hour === time.getHours() - (!is24HourFormat && isPM ? 12 : 0);
4280
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4129
+ return /* @__PURE__ */ jsx11(
4281
4130
  "button",
4282
4131
  {
4283
4132
  ref: currentHour ? hourRef : void 0,
@@ -4288,9 +4137,9 @@ var TimePicker = ({
4288
4137
  hour
4289
4138
  );
4290
4139
  }) }) }),
4291
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_custom_scrollbars_22.Scrollbars, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "col gap-y-1 h-full", children: minutes.map((minute) => {
4140
+ /* @__PURE__ */ jsx11(Scrollbars2, { autoHeight: true, autoHeightMax: maxHeight, style: { height: "100%" }, children: /* @__PURE__ */ jsx11("div", { className: "col gap-y-1 h-full", children: minutes.map((minute) => {
4292
4141
  const currentMinute = minute === closestMinute;
4293
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4142
+ return /* @__PURE__ */ jsx11(
4294
4143
  "button",
4295
4144
  {
4296
4145
  ref: currentMinute ? minuteRef : void 0,
@@ -4301,8 +4150,8 @@ var TimePicker = ({
4301
4150
  minute + minuteIncrement
4302
4151
  );
4303
4152
  }) }) }),
4304
- !is24HourFormat && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "col gap-y-1", children: [
4305
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4153
+ !is24HourFormat && /* @__PURE__ */ jsxs7("div", { className: "col gap-y-1", children: [
4154
+ /* @__PURE__ */ jsx11(
4306
4155
  "button",
4307
4156
  {
4308
4157
  className: style(!isPM),
@@ -4310,7 +4159,7 @@ var TimePicker = ({
4310
4159
  children: "AM"
4311
4160
  }
4312
4161
  ),
4313
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4162
+ /* @__PURE__ */ jsx11(
4314
4163
  "button",
4315
4164
  {
4316
4165
  className: style(isPM),
@@ -4326,9 +4175,9 @@ var TimePickerUncontrolled = ({
4326
4175
  onChange = noop,
4327
4176
  ...props
4328
4177
  }) => {
4329
- const [value, setValue] = (0, import_react7.useState)(time);
4330
- (0, import_react7.useEffect)(() => setValue(time), [time]);
4331
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4178
+ const [value, setValue] = useState7(time);
4179
+ useEffect7(() => setValue(time), [time]);
4180
+ return /* @__PURE__ */ jsx11(
4332
4181
  TimePicker,
4333
4182
  {
4334
4183
  ...props,
@@ -4342,23 +4191,23 @@ var TimePickerUncontrolled = ({
4342
4191
  };
4343
4192
 
4344
4193
  // src/components/dialogs/ConfirmDialog.tsx
4345
- var import_clsx12 = __toESM(require("clsx"), 1);
4194
+ import clsx12 from "clsx";
4346
4195
 
4347
4196
  // src/components/layout-and-navigation/Overlay.tsx
4348
- var import_react9 = require("react");
4349
- var import_react_dom = __toESM(require("react-dom"), 1);
4350
- var import_clsx11 = __toESM(require("clsx"), 1);
4197
+ import { useEffect as useEffect9, useRef as useRef3, useState as useState9 } from "react";
4198
+ import ReactDOM from "react-dom";
4199
+ import clsx11 from "clsx";
4351
4200
 
4352
4201
  // src/hooks/useHoverState.ts
4353
- var import_react8 = require("react");
4202
+ import { useEffect as useEffect8, useState as useState8 } from "react";
4354
4203
  var defaultUseHoverStateProps = {
4355
4204
  closingDelay: 200,
4356
4205
  isDisabled: false
4357
4206
  };
4358
4207
  var useHoverState = (props = void 0) => {
4359
4208
  const { closingDelay, isDisabled } = { ...defaultUseHoverStateProps, ...props };
4360
- const [isHovered, setIsHovered] = (0, import_react8.useState)(false);
4361
- const [timer, setTimer] = (0, import_react8.useState)();
4209
+ const [isHovered, setIsHovered] = useState8(false);
4210
+ const [timer, setTimer] = useState8();
4362
4211
  const onMouseEnter = () => {
4363
4212
  if (isDisabled) {
4364
4213
  return;
@@ -4374,14 +4223,14 @@ var useHoverState = (props = void 0) => {
4374
4223
  setIsHovered(false);
4375
4224
  }, closingDelay));
4376
4225
  };
4377
- (0, import_react8.useEffect)(() => {
4226
+ useEffect8(() => {
4378
4227
  if (timer) {
4379
4228
  return () => {
4380
4229
  clearTimeout(timer);
4381
4230
  };
4382
4231
  }
4383
4232
  });
4384
- (0, import_react8.useEffect)(() => {
4233
+ useEffect8(() => {
4385
4234
  if (timer) {
4386
4235
  clearTimeout(timer);
4387
4236
  }
@@ -4394,8 +4243,8 @@ var useHoverState = (props = void 0) => {
4394
4243
  };
4395
4244
 
4396
4245
  // src/components/user-action/Tooltip.tsx
4397
- var import_clsx10 = require("clsx");
4398
- var import_jsx_runtime12 = require("react/jsx-runtime");
4246
+ import { clsx as clsx10 } from "clsx";
4247
+ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
4399
4248
  var Tooltip = ({
4400
4249
  tooltip,
4401
4250
  children,
@@ -4425,17 +4274,17 @@ var Tooltip = ({
4425
4274
  left: { borderWidth: `${triangleSize}px 0 ${triangleSize}px ${triangleSize}px` },
4426
4275
  right: { borderWidth: `${triangleSize}px ${triangleSize}px ${triangleSize}px 0` }
4427
4276
  };
4428
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
4277
+ return /* @__PURE__ */ jsxs8(
4429
4278
  "div",
4430
4279
  {
4431
- className: (0, import_clsx10.clsx)("relative inline-block", containerClassName),
4280
+ className: clsx10("relative inline-block", containerClassName),
4432
4281
  ...handlers,
4433
4282
  children: [
4434
4283
  children,
4435
- isHovered && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
4284
+ isHovered && /* @__PURE__ */ jsxs8(
4436
4285
  "div",
4437
4286
  {
4438
- className: (0, import_clsx10.clsx)(
4287
+ className: clsx10(
4439
4288
  `opacity-0 absolute text-xs font-semibold text-tooltip-text px-2 py-1 rounded whitespace-nowrap
4440
4289
  animate-tooltip-fade-in shadow-lg bg-tooltip-background`,
4441
4290
  positionClasses[position],
@@ -4444,10 +4293,10 @@ var Tooltip = ({
4444
4293
  style: { zIndex, animationDelay: animationDelay + "ms" },
4445
4294
  children: [
4446
4295
  tooltip,
4447
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4296
+ /* @__PURE__ */ jsx12(
4448
4297
  "div",
4449
4298
  {
4450
- className: (0, import_clsx10.clsx)(`absolute w-0 h-0`, triangleClasses[position]),
4299
+ className: clsx10(`absolute w-0 h-0`, triangleClasses[position]),
4451
4300
  style: { ...triangleStyle[position], zIndex }
4452
4301
  }
4453
4302
  )
@@ -4460,25 +4309,25 @@ var Tooltip = ({
4460
4309
  };
4461
4310
 
4462
4311
  // src/components/layout-and-navigation/Overlay.tsx
4463
- var import_lucide_react3 = require("lucide-react");
4464
- var import_jsx_runtime13 = require("react/jsx-runtime");
4312
+ import { X } from "lucide-react";
4313
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
4465
4314
  var Overlay = ({
4466
4315
  children,
4467
4316
  isOpen,
4468
4317
  onBackgroundClick,
4469
4318
  backgroundClassName
4470
4319
  }) => {
4471
- const [root, setRoot] = (0, import_react9.useState)();
4472
- (0, import_react9.useEffect)(() => {
4320
+ const [root, setRoot] = useState9();
4321
+ useEffect9(() => {
4473
4322
  setRoot(document.body);
4474
4323
  }, []);
4475
4324
  if (!root || !isOpen) return null;
4476
- return import_react_dom.default.createPortal(
4477
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: (0, import_clsx11.default)("fixed inset-0 z-[9999]"), children: [
4478
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4325
+ return ReactDOM.createPortal(
4326
+ /* @__PURE__ */ jsxs9("div", { className: clsx11("fixed inset-0 z-[9999]"), children: [
4327
+ /* @__PURE__ */ jsx13(
4479
4328
  "div",
4480
4329
  {
4481
- className: (0, import_clsx11.default)("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
4330
+ className: clsx11("fixed inset-0 h-screen w-screen bg-black/30", backgroundClassName),
4482
4331
  onClick: onBackgroundClick
4483
4332
  }
4484
4333
  ),
@@ -4506,21 +4355,21 @@ var OverlayHeader = ({
4506
4355
  }) => {
4507
4356
  const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
4508
4357
  const hasTitleRow = !!title || !!titleText || !!onClose;
4509
- const titleRow = /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "row justify-between items-start gap-x-8", children: [
4510
- title ?? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4358
+ const titleRow = /* @__PURE__ */ jsxs9("div", { className: "row justify-between items-start gap-x-8", children: [
4359
+ title ?? /* @__PURE__ */ jsx13(
4511
4360
  "h2",
4512
4361
  {
4513
- className: (0, import_clsx11.default)("textstyle-title-lg", {
4362
+ className: clsx11("textstyle-title-lg", {
4514
4363
  "mb-1": description || descriptionText
4515
4364
  }),
4516
4365
  children: titleText
4517
4366
  }
4518
4367
  ),
4519
- !!onClose && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react3.X, { className: "w-full h-full" }) }) })
4368
+ !!onClose && /* @__PURE__ */ jsx13(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ jsx13(IconButton, { color: "neutral", size: "small", onClick: onClose, children: /* @__PURE__ */ jsx13(X, { className: "w-full h-full" }) }) })
4520
4369
  ] });
4521
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "col", children: [
4370
+ return /* @__PURE__ */ jsxs9("div", { className: "col", children: [
4522
4371
  hasTitleRow && titleRow,
4523
- description ?? (descriptionText && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "textstyle-description", children: descriptionText }))
4372
+ description ?? (descriptionText && /* @__PURE__ */ jsx13("span", { className: "textstyle-description", children: descriptionText }))
4524
4373
  ] });
4525
4374
  };
4526
4375
  var Modal = ({
@@ -4531,8 +4380,8 @@ var Modal = ({
4531
4380
  backgroundClassName,
4532
4381
  headerProps
4533
4382
  }) => {
4534
- const ref = (0, import_react9.useRef)(null);
4535
- (0, import_react9.useEffect)(() => {
4383
+ const ref = useRef3(null);
4384
+ useEffect9(() => {
4536
4385
  if (!isOpen) return;
4537
4386
  const modal = ref.current;
4538
4387
  if (!modal) {
@@ -4569,25 +4418,25 @@ var Modal = ({
4569
4418
  overlayStack = overlayStack.filter((m) => m !== modal);
4570
4419
  };
4571
4420
  }, [isOpen, onClose]);
4572
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4421
+ return /* @__PURE__ */ jsx13(
4573
4422
  Overlay,
4574
4423
  {
4575
4424
  isOpen,
4576
4425
  onBackgroundClick: onClose,
4577
4426
  backgroundClassName,
4578
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
4427
+ children: /* @__PURE__ */ jsxs9(
4579
4428
  "div",
4580
4429
  {
4581
4430
  ref,
4582
4431
  tabIndex: -1,
4583
- className: (0, import_clsx11.default)(
4432
+ className: clsx11(
4584
4433
  "fixed left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 col p-4 bg-overlay-background text-overlay-text rounded-xl shadow-xl",
4585
4434
  className
4586
4435
  ),
4587
4436
  role: "dialog",
4588
4437
  "aria-modal": true,
4589
4438
  children: [
4590
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(OverlayHeader, { ...headerProps, onClose }),
4439
+ /* @__PURE__ */ jsx13(OverlayHeader, { ...headerProps, onClose }),
4591
4440
  children
4592
4441
  ]
4593
4442
  }
@@ -4602,8 +4451,8 @@ var Dialog = ({
4602
4451
  backgroundClassName,
4603
4452
  headerProps
4604
4453
  }) => {
4605
- const ref = (0, import_react9.useRef)(null);
4606
- (0, import_react9.useEffect)(() => {
4454
+ const ref = useRef3(null);
4455
+ useEffect9(() => {
4607
4456
  if (!isOpen) return;
4608
4457
  const dialog = ref.current;
4609
4458
  if (!dialog) {
@@ -4639,24 +4488,24 @@ var Dialog = ({
4639
4488
  overlayStack = overlayStack.filter((m) => m !== dialog);
4640
4489
  };
4641
4490
  }, [isOpen]);
4642
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4491
+ return /* @__PURE__ */ jsx13(
4643
4492
  Overlay,
4644
4493
  {
4645
4494
  isOpen,
4646
4495
  backgroundClassName,
4647
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
4496
+ children: /* @__PURE__ */ jsxs9(
4648
4497
  "div",
4649
4498
  {
4650
4499
  ref,
4651
4500
  tabIndex: -1,
4652
- className: (0, import_clsx11.default)(
4501
+ className: clsx11(
4653
4502
  "fixed left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 col p-4 bg-overlay-background text-overlay-text rounded-xl shadow-xl",
4654
4503
  className
4655
4504
  ),
4656
4505
  role: "dialog",
4657
4506
  "aria-modal": true,
4658
4507
  children: [
4659
- !!headerProps && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(OverlayHeader, { ...headerProps }),
4508
+ !!headerProps && /* @__PURE__ */ jsx13(OverlayHeader, { ...headerProps }),
4660
4509
  children
4661
4510
  ]
4662
4511
  }
@@ -4666,7 +4515,7 @@ var Dialog = ({
4666
4515
  };
4667
4516
 
4668
4517
  // src/components/dialogs/ConfirmDialog.tsx
4669
- var import_jsx_runtime14 = require("react/jsx-runtime");
4518
+ import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
4670
4519
  var defaultConfirmDialogTranslation = {
4671
4520
  en: {
4672
4521
  confirm: "Confirm",
@@ -4694,10 +4543,10 @@ var ConfirmDialog = ({
4694
4543
  positive: "positive",
4695
4544
  primary: "primary"
4696
4545
  };
4697
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Dialog, { ...restProps, className: (0, import_clsx12.default)("justify-between", className), children: [
4698
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "col grow", children }),
4699
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "row mt-3 gap-x-4 justify-end", children: [
4700
- onDecline && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4546
+ return /* @__PURE__ */ jsxs10(Dialog, { ...restProps, className: clsx12("justify-between", className), children: [
4547
+ /* @__PURE__ */ jsx14("div", { className: "col grow", children }),
4548
+ /* @__PURE__ */ jsxs10("div", { className: "row mt-3 gap-x-4 justify-end", children: [
4549
+ onDecline && /* @__PURE__ */ jsx14(
4701
4550
  SolidButton,
4702
4551
  {
4703
4552
  color: buttonOverwrites?.[0].color ?? "negative",
@@ -4706,7 +4555,7 @@ var ConfirmDialog = ({
4706
4555
  children: buttonOverwrites?.[0].text ?? translation.decline
4707
4556
  }
4708
4557
  ),
4709
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4558
+ /* @__PURE__ */ jsx14(
4710
4559
  SolidButton,
4711
4560
  {
4712
4561
  autoFocus: true,
@@ -4721,8 +4570,8 @@ var ConfirmDialog = ({
4721
4570
  };
4722
4571
 
4723
4572
  // src/components/icons-and-geometry/Avatar.tsx
4724
- var import_clsx13 = __toESM(require("clsx"), 1);
4725
- var import_jsx_runtime15 = require("react/jsx-runtime");
4573
+ import clsx13 from "clsx";
4574
+ import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
4726
4575
  var avtarSizeList = ["tiny", "small", "medium", "large"];
4727
4576
  var avatarSizeMapping = {
4728
4577
  tiny: 24,
@@ -4748,7 +4597,7 @@ var Avatar = ({ avatarUrl, alt, size = "medium", className = "" }) => {
4748
4597
  };
4749
4598
  return (
4750
4599
  // TODO transparent or white background later
4751
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: (0, import_clsx13.default)(`rounded-full bg-primary`, className), style, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4600
+ /* @__PURE__ */ jsx15("div", { className: clsx13(`rounded-full bg-primary`, className), style, children: /* @__PURE__ */ jsx15(
4752
4601
  "img",
4753
4602
  {
4754
4603
  className: "rounded-full border border-gray-200",
@@ -4771,22 +4620,22 @@ var AvatarGroup = ({
4771
4620
  const stackingOverlap = 0.5;
4772
4621
  const notDisplayedProfiles = avatars.length - maxShownProfiles;
4773
4622
  const avatarGroupWidth = diameter * (stackingOverlap * (displayedProfiles.length - 1) + 1);
4774
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "row relative", style: { height: diameter + "px" }, children: [
4775
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { width: avatarGroupWidth + "px" }, children: displayedProfiles.map((avatar, index) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4623
+ return /* @__PURE__ */ jsxs11("div", { className: "row relative", style: { height: diameter + "px" }, children: [
4624
+ /* @__PURE__ */ jsx15("div", { style: { width: avatarGroupWidth + "px" }, children: displayedProfiles.map((avatar, index) => /* @__PURE__ */ jsx15(
4776
4625
  "div",
4777
4626
  {
4778
4627
  className: "absolute",
4779
4628
  style: { left: index * diameter * stackingOverlap + "px", zIndex: maxShownProfiles - index },
4780
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Avatar, { avatarUrl: avatar.avatarUrl, alt: avatar.alt, size })
4629
+ children: /* @__PURE__ */ jsx15(Avatar, { avatarUrl: avatar.avatarUrl, alt: avatar.alt, size })
4781
4630
  },
4782
4631
  index
4783
4632
  )) }),
4784
- notDisplayedProfiles > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4633
+ notDisplayedProfiles > 0 && /* @__PURE__ */ jsx15(
4785
4634
  "div",
4786
4635
  {
4787
4636
  className: "truncate row items-center",
4788
4637
  style: { fontSize: diameter / 2 + "px", marginLeft: 1 + diameter / 16 + "px" },
4789
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { children: [
4638
+ children: /* @__PURE__ */ jsxs11("span", { children: [
4790
4639
  "+ ",
4791
4640
  notDisplayedProfiles
4792
4641
  ] })
@@ -4796,8 +4645,8 @@ var AvatarGroup = ({
4796
4645
  };
4797
4646
 
4798
4647
  // src/components/icons-and-geometry/Circle.tsx
4799
- var import_clsx14 = __toESM(require("clsx"), 1);
4800
- var import_jsx_runtime16 = require("react/jsx-runtime");
4648
+ import clsx14 from "clsx";
4649
+ import { jsx as jsx16 } from "react/jsx-runtime";
4801
4650
  var Circle = ({
4802
4651
  radius = 20,
4803
4652
  className = "bg-primary",
@@ -4805,10 +4654,10 @@ var Circle = ({
4805
4654
  ...restProps
4806
4655
  }) => {
4807
4656
  const size = radius * 2;
4808
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4657
+ return /* @__PURE__ */ jsx16(
4809
4658
  "div",
4810
4659
  {
4811
- className: (0, import_clsx14.default)(`rounded-full`, className),
4660
+ className: clsx14(`rounded-full`, className),
4812
4661
  style: {
4813
4662
  width: `${size}px`,
4814
4663
  height: `${size}px`,
@@ -4820,18 +4669,18 @@ var Circle = ({
4820
4669
  };
4821
4670
 
4822
4671
  // src/components/icons-and-geometry/Ring.tsx
4823
- var import_react10 = require("react");
4824
- var import_clsx15 = __toESM(require("clsx"), 1);
4825
- var import_jsx_runtime17 = require("react/jsx-runtime");
4672
+ import { useCallback as useCallback2, useEffect as useEffect10, useState as useState10 } from "react";
4673
+ import clsx15 from "clsx";
4674
+ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
4826
4675
  var Ring = ({
4827
4676
  innerSize = 20,
4828
4677
  width = 7,
4829
4678
  className = "outline-primary"
4830
4679
  }) => {
4831
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4680
+ return /* @__PURE__ */ jsx17(
4832
4681
  "div",
4833
4682
  {
4834
- className: (0, import_clsx15.default)(`bg-transparent rounded-full outline`, className),
4683
+ className: clsx15(`bg-transparent rounded-full outline`, className),
4835
4684
  style: {
4836
4685
  width: `${innerSize}px`,
4837
4686
  height: `${innerSize}px`,
@@ -4849,9 +4698,9 @@ var AnimatedRing = ({
4849
4698
  onAnimationFinished = noop,
4850
4699
  style
4851
4700
  }) => {
4852
- const [currentWidth, setCurrentWidth] = (0, import_react10.useState)(0);
4701
+ const [currentWidth, setCurrentWidth] = useState10(0);
4853
4702
  const milliseconds = 1e3 * fillAnimationDuration;
4854
- const animate = (0, import_react10.useCallback)((timestamp, startTime) => {
4703
+ const animate = useCallback2((timestamp, startTime) => {
4855
4704
  const progress = Math.min((timestamp - startTime) / milliseconds, 1);
4856
4705
  const newWidth = Math.min(width * progress, width);
4857
4706
  setCurrentWidth(newWidth);
@@ -4865,12 +4714,12 @@ var AnimatedRing = ({
4865
4714
  }
4866
4715
  }
4867
4716
  }, [milliseconds, onAnimationFinished, repeating, width]);
4868
- (0, import_react10.useEffect)(() => {
4717
+ useEffect10(() => {
4869
4718
  if (currentWidth < width) {
4870
4719
  requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
4871
4720
  }
4872
4721
  }, []);
4873
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4722
+ return /* @__PURE__ */ jsx17(
4874
4723
  "div",
4875
4724
  {
4876
4725
  className: "row items-center justify-center",
@@ -4879,7 +4728,7 @@ var AnimatedRing = ({
4879
4728
  height: `${innerSize + 2 * width}px`,
4880
4729
  ...style
4881
4730
  },
4882
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4731
+ children: /* @__PURE__ */ jsx17(
4883
4732
  Ring,
4884
4733
  {
4885
4734
  innerSize,
@@ -4900,10 +4749,10 @@ var RingWave = ({
4900
4749
  onAnimationFinished = noop,
4901
4750
  style
4902
4751
  }) => {
4903
- const [currentInnerSize, setCurrentInnerSize] = (0, import_react10.useState)(startInnerSize);
4752
+ const [currentInnerSize, setCurrentInnerSize] = useState10(startInnerSize);
4904
4753
  const distance = endInnerSize - startInnerSize;
4905
4754
  const milliseconds = 1e3 * fillAnimationDuration;
4906
- const animate = (0, import_react10.useCallback)((timestamp, startTime) => {
4755
+ const animate = useCallback2((timestamp, startTime) => {
4907
4756
  const progress = Math.min((timestamp - startTime) / milliseconds, 1);
4908
4757
  const newInnerSize = Math.min(
4909
4758
  startInnerSize + distance * progress,
@@ -4920,12 +4769,12 @@ var RingWave = ({
4920
4769
  }
4921
4770
  }
4922
4771
  }, [distance, endInnerSize, milliseconds, onAnimationFinished, repeating, startInnerSize]);
4923
- (0, import_react10.useEffect)(() => {
4772
+ useEffect10(() => {
4924
4773
  if (currentInnerSize < endInnerSize) {
4925
4774
  requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
4926
4775
  }
4927
4776
  }, []);
4928
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4777
+ return /* @__PURE__ */ jsx17(
4929
4778
  "div",
4930
4779
  {
4931
4780
  className: "row items-center justify-center",
@@ -4934,7 +4783,7 @@ var RingWave = ({
4934
4783
  height: `${endInnerSize + 2 * width}px`,
4935
4784
  ...style
4936
4785
  },
4937
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4786
+ children: /* @__PURE__ */ jsx17(
4938
4787
  Ring,
4939
4788
  {
4940
4789
  innerSize: currentInnerSize,
@@ -4955,9 +4804,9 @@ var RadialRings = ({
4955
4804
  sizeCircle2 = 200,
4956
4805
  sizeCircle3 = 300
4957
4806
  }) => {
4958
- const [currentRing, setCurrentRing] = (0, import_react10.useState)(0);
4807
+ const [currentRing, setCurrentRing] = useState10(0);
4959
4808
  const size = sizeCircle3;
4960
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4809
+ return /* @__PURE__ */ jsxs12(
4961
4810
  "div",
4962
4811
  {
4963
4812
  className: "relative",
@@ -4966,25 +4815,25 @@ var RadialRings = ({
4966
4815
  height: `${sizeCircle3}px`
4967
4816
  },
4968
4817
  children: [
4969
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4818
+ /* @__PURE__ */ jsx17(
4970
4819
  Circle,
4971
4820
  {
4972
4821
  radius: sizeCircle1 / 2,
4973
- className: (0, import_clsx15.default)(circle1ClassName, `absolute z-[10] -translate-y-1/2 -translate-x-1/2`),
4822
+ className: clsx15(circle1ClassName, `absolute z-[10] -translate-y-1/2 -translate-x-1/2`),
4974
4823
  style: {
4975
4824
  left: `${size / 2}px`,
4976
4825
  top: `${size / 2}px`
4977
4826
  }
4978
4827
  }
4979
4828
  ),
4980
- currentRing === 0 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4829
+ currentRing === 0 ? /* @__PURE__ */ jsx17(
4981
4830
  AnimatedRing,
4982
4831
  {
4983
4832
  innerSize: sizeCircle1,
4984
4833
  width: (sizeCircle2 - sizeCircle1) / 2,
4985
4834
  onAnimationFinished: () => currentRing === 0 ? setCurrentRing(1) : null,
4986
4835
  repeating: true,
4987
- className: (0, import_clsx15.default)(
4836
+ className: clsx15(
4988
4837
  circle2ClassName,
4989
4838
  { "opacity-5": currentRing !== 0 }
4990
4839
  ),
@@ -4997,14 +4846,14 @@ var RadialRings = ({
4997
4846
  }
4998
4847
  }
4999
4848
  ) : null,
5000
- currentRing === 2 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4849
+ currentRing === 2 ? /* @__PURE__ */ jsx17(
5001
4850
  RingWave,
5002
4851
  {
5003
4852
  startInnerSize: sizeCircle1 - waveWidth,
5004
4853
  endInnerSize: sizeCircle2,
5005
4854
  width: waveWidth,
5006
4855
  repeating: true,
5007
- className: (0, import_clsx15.default)(waveBaseColor, `opacity-5`),
4856
+ className: clsx15(waveBaseColor, `opacity-5`),
5008
4857
  style: {
5009
4858
  left: `${size / 2}px`,
5010
4859
  top: `${size / 2}px`,
@@ -5014,11 +4863,11 @@ var RadialRings = ({
5014
4863
  }
5015
4864
  }
5016
4865
  ) : null,
5017
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4866
+ /* @__PURE__ */ jsx17(
5018
4867
  Circle,
5019
4868
  {
5020
4869
  radius: sizeCircle2 / 2,
5021
- className: (0, import_clsx15.default)(
4870
+ className: clsx15(
5022
4871
  circle2ClassName,
5023
4872
  { "opacity-20": currentRing < 1 },
5024
4873
  `absolute z-[8] -translate-y-1/2 -translate-x-1/2`
@@ -5029,14 +4878,14 @@ var RadialRings = ({
5029
4878
  }
5030
4879
  }
5031
4880
  ),
5032
- currentRing === 1 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4881
+ currentRing === 1 ? /* @__PURE__ */ jsx17(
5033
4882
  AnimatedRing,
5034
4883
  {
5035
4884
  innerSize: sizeCircle2 - 1,
5036
4885
  width: (sizeCircle3 - sizeCircle2) / 2,
5037
4886
  onAnimationFinished: () => currentRing === 1 ? setCurrentRing(2) : null,
5038
4887
  repeating: true,
5039
- className: (0, import_clsx15.default)(circle3ClassName),
4888
+ className: clsx15(circle3ClassName),
5040
4889
  style: {
5041
4890
  left: `${size / 2}px`,
5042
4891
  top: `${size / 2}px`,
@@ -5046,14 +4895,14 @@ var RadialRings = ({
5046
4895
  }
5047
4896
  }
5048
4897
  ) : null,
5049
- currentRing === 2 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4898
+ currentRing === 2 ? /* @__PURE__ */ jsx17(
5050
4899
  RingWave,
5051
4900
  {
5052
4901
  startInnerSize: sizeCircle2,
5053
4902
  endInnerSize: sizeCircle3 - waveWidth,
5054
4903
  width: waveWidth,
5055
4904
  repeating: true,
5056
- className: (0, import_clsx15.default)(waveBaseColor, `opacity-5`),
4905
+ className: clsx15(waveBaseColor, `opacity-5`),
5057
4906
  style: {
5058
4907
  left: `${size / 2}px`,
5059
4908
  top: `${size / 2}px`,
@@ -5063,11 +4912,11 @@ var RadialRings = ({
5063
4912
  }
5064
4913
  }
5065
4914
  ) : null,
5066
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4915
+ /* @__PURE__ */ jsx17(
5067
4916
  Circle,
5068
4917
  {
5069
4918
  radius: sizeCircle3 / 2,
5070
- className: (0, import_clsx15.default)(
4919
+ className: clsx15(
5071
4920
  circle3ClassName,
5072
4921
  { "opacity-20": currentRing < 2 },
5073
4922
  `absolute z-[6] -translate-y-1/2 -translate-x-1/2`
@@ -5084,12 +4933,12 @@ var RadialRings = ({
5084
4933
  };
5085
4934
 
5086
4935
  // src/components/icons-and-geometry/Tag.tsx
5087
- var import_jsx_runtime18 = require("react/jsx-runtime");
4936
+ import { jsx as jsx18 } from "react/jsx-runtime";
5088
4937
  var TagIcon = ({
5089
4938
  className,
5090
4939
  size = 16
5091
4940
  }) => {
5092
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4941
+ return /* @__PURE__ */ jsx18(
5093
4942
  "img",
5094
4943
  {
5095
4944
  style: { width: `${size}px`, height: `${size}px`, minWidth: `${size}px`, minHeight: `${size}px` },
@@ -5103,28 +4952,28 @@ var TagIcon = ({
5103
4952
  };
5104
4953
 
5105
4954
  // src/components/layout-and-navigation/BreadCrumb.tsx
5106
- var import_link = __toESM(require_link2(), 1);
5107
- var import_clsx16 = __toESM(require("clsx"), 1);
5108
- var import_jsx_runtime19 = require("react/jsx-runtime");
4955
+ var import_link = __toESM(require_link2());
4956
+ import clsx16 from "clsx";
4957
+ import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
5109
4958
  var BreadCrumb = ({ crumbs, linkClassName, containerClassName }) => {
5110
4959
  const color = "text-description";
5111
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: (0, import_clsx16.default)("row gap-x-0", containerClassName), children: crumbs.map((crumb, index) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { children: [
5112
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4960
+ return /* @__PURE__ */ jsx19("div", { className: clsx16("row gap-x-0", containerClassName), children: crumbs.map((crumb, index) => /* @__PURE__ */ jsxs13("div", { children: [
4961
+ /* @__PURE__ */ jsx19(
5113
4962
  import_link.default,
5114
4963
  {
5115
4964
  href: crumb.link,
5116
- className: (0, import_clsx16.default)(linkClassName, { [`${color} hover:brightness-60`]: index !== crumbs.length - 1 }),
4965
+ className: clsx16(linkClassName, { [`${color} hover:brightness-60`]: index !== crumbs.length - 1 }),
5117
4966
  children: crumb.display
5118
4967
  }
5119
4968
  ),
5120
- index !== crumbs.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: (0, import_clsx16.default)(`px-1`, color), children: "/" })
4969
+ index !== crumbs.length - 1 && /* @__PURE__ */ jsx19("span", { className: clsx16(`px-1`, color), children: "/" })
5121
4970
  ] }, index)) });
5122
4971
  };
5123
4972
 
5124
4973
  // src/components/layout-and-navigation/Carousel.tsx
5125
- var import_react11 = require("react");
5126
- var import_clsx17 = __toESM(require("clsx"), 1);
5127
- var import_lucide_react4 = require("lucide-react");
4974
+ import { useCallback as useCallback3, useEffect as useEffect11, useMemo, useRef as useRef4, useState as useState11 } from "react";
4975
+ import clsx17 from "clsx";
4976
+ import { ChevronLeft, ChevronRight } from "lucide-react";
5128
4977
 
5129
4978
  // src/util/math.ts
5130
4979
  var clamp = (value, min = 0, max = 1) => {
@@ -5229,7 +5078,7 @@ var LoopingArrayCalculator = class _LoopingArrayCalculator {
5229
5078
  };
5230
5079
 
5231
5080
  // src/components/layout-and-navigation/Carousel.tsx
5232
- var import_jsx_runtime20 = require("react/jsx-runtime");
5081
+ import { Fragment, jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
5233
5082
  var Carousel = ({
5234
5083
  children,
5235
5084
  animationTime = 200,
@@ -5254,15 +5103,15 @@ var Carousel = ({
5254
5103
  currentPosition,
5255
5104
  dragState,
5256
5105
  animationState
5257
- }, setCarouselInformation] = (0, import_react11.useState)({
5106
+ }, setCarouselInformation] = useState11({
5258
5107
  currentPosition: 0
5259
5108
  });
5260
- const animationId = (0, import_react11.useRef)(void 0);
5261
- const timeOut = (0, import_react11.useRef)(void 0);
5109
+ const animationId = useRef4(void 0);
5110
+ const timeOut = useRef4(void 0);
5262
5111
  autoLoopingTimeOut = Math.max(0, autoLoopingTimeOut);
5263
5112
  const length = children.length;
5264
5113
  const paddingItemCount = 3;
5265
- const util = (0, import_react11.useMemo)(() => new LoopingArrayCalculator(length, isLooping, overScrollThreshold), [length, isLooping, overScrollThreshold]);
5114
+ const util = useMemo(() => new LoopingArrayCalculator(length, isLooping, overScrollThreshold), [length, isLooping, overScrollThreshold]);
5266
5115
  const currentIndex = util.getCorrectedPosition(LoopingArrayCalculator.withoutOffset(currentPosition));
5267
5116
  animationTime = Math.max(200, animationTime);
5268
5117
  autoLoopAnimationTime = Math.max(200, autoLoopAnimationTime);
@@ -5270,7 +5119,7 @@ var Carousel = ({
5270
5119
  const baseOffset = -50 + (index - currentPosition) * 100;
5271
5120
  return `${baseOffset}%`;
5272
5121
  };
5273
- const animation = (0, import_react11.useCallback)((time) => {
5122
+ const animation = useCallback3((time) => {
5274
5123
  let keepAnimating = true;
5275
5124
  setCarouselInformation((state) => {
5276
5125
  const {
@@ -5315,7 +5164,7 @@ var Carousel = ({
5315
5164
  animationId.current = requestAnimationFrame((time1) => animation(time1));
5316
5165
  }
5317
5166
  }, [animationTime, autoLoopAnimationTime, util]);
5318
- (0, import_react11.useEffect)(() => {
5167
+ useEffect11(() => {
5319
5168
  if (animationState) {
5320
5169
  animationId.current = requestAnimationFrame(animation);
5321
5170
  }
@@ -5337,7 +5186,7 @@ var Carousel = ({
5337
5186
  isAutoLooping: true
5338
5187
  }
5339
5188
  }));
5340
- (0, import_react11.useEffect)(() => {
5189
+ useEffect11(() => {
5341
5190
  if (!animationId.current && !animationState && !dragState && !timeOut.current) {
5342
5191
  if (autoLoopingTimeOut > 0) {
5343
5192
  timeOut.current = setTimeout(() => {
@@ -5469,34 +5318,34 @@ var Carousel = ({
5469
5318
  onTouchEnd: (event) => onDragEnd(event.changedTouches[0].clientX, event.target.getBoundingClientRect().width),
5470
5319
  onTouchCancel: (event) => onDragEnd(event.changedTouches[0].clientX, event.target.getBoundingClientRect().width)
5471
5320
  };
5472
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "col items-center w-full gap-y-2", children: [
5473
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: (0, import_clsx17.default)(`relative w-full overflow-hidden`, heightClassName, className), children: [
5474
- arrows && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
5475
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5321
+ return /* @__PURE__ */ jsxs14("div", { className: "col items-center w-full gap-y-2", children: [
5322
+ /* @__PURE__ */ jsxs14("div", { className: clsx17(`relative w-full overflow-hidden`, heightClassName, className), children: [
5323
+ arrows && /* @__PURE__ */ jsxs14(Fragment, { children: [
5324
+ /* @__PURE__ */ jsx20(
5476
5325
  "div",
5477
5326
  {
5478
- className: (0, import_clsx17.default)("absolute z-10 left-0 top-1/2 -translate-y-1/2 bg-gray-200 hover:bg-gray-300 rounded-lg cursor-pointer border-black border-2", { hidden: !canGoLeft() }),
5327
+ className: clsx17("absolute z-10 left-0 top-1/2 -translate-y-1/2 bg-gray-200 hover:bg-gray-300 rounded-lg cursor-pointer border-black border-2", { hidden: !canGoLeft() }),
5479
5328
  onClick: () => left(),
5480
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react4.ChevronLeft, { size: 32 })
5329
+ children: /* @__PURE__ */ jsx20(ChevronLeft, { size: 32 })
5481
5330
  }
5482
5331
  ),
5483
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5332
+ /* @__PURE__ */ jsx20(
5484
5333
  "div",
5485
5334
  {
5486
- className: (0, import_clsx17.default)("absolute z-10 right-0 top-1/2 -translate-y-1/2 bg-gray-200 hover:bg-gray-300 rounded-lg cursor-pointer border-black border-2", { hidden: !canGoRight() }),
5335
+ className: clsx17("absolute z-10 right-0 top-1/2 -translate-y-1/2 bg-gray-200 hover:bg-gray-300 rounded-lg cursor-pointer border-black border-2", { hidden: !canGoRight() }),
5487
5336
  onClick: () => right(),
5488
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react4.ChevronRight, { size: 32 })
5337
+ children: /* @__PURE__ */ jsx20(ChevronRight, { size: 32 })
5489
5338
  }
5490
5339
  )
5491
5340
  ] }),
5492
- hintNext ? /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: (0, import_clsx17.default)(`relative row h-full`, heightClassName), children: [
5493
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "relative row h-full w-full px-2 overflow-hidden", children: items.map(({
5341
+ hintNext ? /* @__PURE__ */ jsxs14("div", { className: clsx17(`relative row h-full`, heightClassName), children: [
5342
+ /* @__PURE__ */ jsx20("div", { className: "relative row h-full w-full px-2 overflow-hidden", children: items.map(({
5494
5343
  item,
5495
5344
  index
5496
- }, listIndex) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5345
+ }, listIndex) => /* @__PURE__ */ jsx20(
5497
5346
  "div",
5498
5347
  {
5499
- className: (0, import_clsx17.default)(`absolute left-[50%] h-full overflow-hidden`, widthClassName, { "!cursor-grabbing": !!dragState }),
5348
+ className: clsx17(`absolute left-[50%] h-full overflow-hidden`, widthClassName, { "!cursor-grabbing": !!dragState }),
5500
5349
  style: { translate: getStyleOffset(listIndex - (isLooping ? paddingItemCount : 0)) },
5501
5350
  ...dragHandlers,
5502
5351
  onClick: () => startAnimation(index),
@@ -5504,28 +5353,28 @@ var Carousel = ({
5504
5353
  },
5505
5354
  listIndex
5506
5355
  )) }),
5507
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5356
+ /* @__PURE__ */ jsx20(
5508
5357
  "div",
5509
5358
  {
5510
- className: (0, import_clsx17.default)(`hidden pointer-events-none desktop:block absolute left-0 h-full w-[20%] bg-gradient-to-r to-transparent`, blurColor)
5359
+ className: clsx17(`hidden pointer-events-none desktop:block absolute left-0 h-full w-[20%] bg-gradient-to-r to-transparent`, blurColor)
5511
5360
  }
5512
5361
  ),
5513
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5362
+ /* @__PURE__ */ jsx20(
5514
5363
  "div",
5515
5364
  {
5516
- className: (0, import_clsx17.default)(`hidden pointer-events-none desktop:block absolute right-0 h-full w-[20%] bg-gradient-to-l to-transparent`, blurColor)
5365
+ className: clsx17(`hidden pointer-events-none desktop:block absolute right-0 h-full w-[20%] bg-gradient-to-l to-transparent`, blurColor)
5517
5366
  }
5518
5367
  )
5519
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: (0, import_clsx17.default)("px-16 h-full", { "!cursor-grabbing": !!dragState }), ...dragHandlers, children: children[currentIndex] })
5368
+ ] }) : /* @__PURE__ */ jsx20("div", { className: clsx17("px-16 h-full", { "!cursor-grabbing": !!dragState }), ...dragHandlers, children: children[currentIndex] })
5520
5369
  ] }),
5521
- dots && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5370
+ dots && /* @__PURE__ */ jsx20(
5522
5371
  "div",
5523
5372
  {
5524
5373
  className: "row items-center justify-center w-full my-2",
5525
- children: range(0, length - 1).map((index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5374
+ children: range(0, length - 1).map((index) => /* @__PURE__ */ jsx20(
5526
5375
  "button",
5527
5376
  {
5528
- className: (0, import_clsx17.default)("w-[2rem] min-w-[2rem] h-[0.75rem] min-h-[0.75rem] hover:bg-primary hover:brightness-90 first:rounded-l-md last:rounded-r-md", {
5377
+ className: clsx17("w-[2rem] min-w-[2rem] h-[0.75rem] min-h-[0.75rem] hover:bg-primary hover:brightness-90 first:rounded-l-md last:rounded-r-md", {
5529
5378
  "bg-gray-200": currentIndex !== index,
5530
5379
  "bg-primary": currentIndex === index
5531
5380
  }),
@@ -5539,8 +5388,8 @@ var Carousel = ({
5539
5388
  };
5540
5389
 
5541
5390
  // src/components/layout-and-navigation/Chip.tsx
5542
- var import_clsx18 = __toESM(require("clsx"), 1);
5543
- var import_jsx_runtime21 = require("react/jsx-runtime");
5391
+ import clsx18 from "clsx";
5392
+ import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
5544
5393
  var Chip = ({
5545
5394
  children,
5546
5395
  trailingIcon,
@@ -5567,11 +5416,11 @@ var Chip = ({
5567
5416
  blue: "text-tag-blue-icon",
5568
5417
  pink: "text-tag-pink-icon"
5569
5418
  }[color];
5570
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5419
+ return /* @__PURE__ */ jsxs15(
5571
5420
  "div",
5572
5421
  {
5573
5422
  ...restProps,
5574
- className: (0, import_clsx18.default)(
5423
+ className: clsx18(
5575
5424
  `row w-fit px-2 py-1`,
5576
5425
  colorMapping,
5577
5426
  {
@@ -5582,7 +5431,7 @@ var Chip = ({
5582
5431
  ),
5583
5432
  children: [
5584
5433
  children,
5585
- trailingIcon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: colorMappingIcon, children: trailingIcon })
5434
+ trailingIcon && /* @__PURE__ */ jsx21("span", { className: colorMappingIcon, children: trailingIcon })
5586
5435
  ]
5587
5436
  }
5588
5437
  );
@@ -5591,7 +5440,7 @@ var ChipList = ({
5591
5440
  list,
5592
5441
  className = ""
5593
5442
  }) => {
5594
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: (0, import_clsx18.default)("flex flex-wrap gap-x-4 gap-y-2", className), children: list.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5443
+ return /* @__PURE__ */ jsx21("div", { className: clsx18("flex flex-wrap gap-x-4 gap-y-2", className), children: list.map((value, index) => /* @__PURE__ */ jsx21(
5595
5444
  Chip,
5596
5445
  {
5597
5446
  ...value,
@@ -5604,8 +5453,8 @@ var ChipList = ({
5604
5453
  };
5605
5454
 
5606
5455
  // src/components/layout-and-navigation/DividerInserter.tsx
5607
- var import_clsx19 = __toESM(require("clsx"), 1);
5608
- var import_jsx_runtime22 = require("react/jsx-runtime");
5456
+ import clsx19 from "clsx";
5457
+ import { jsx as jsx22 } from "react/jsx-runtime";
5609
5458
  var DividerInserter = ({
5610
5459
  children,
5611
5460
  divider,
@@ -5622,15 +5471,15 @@ var DividerInserter = ({
5622
5471
  }
5623
5472
  }
5624
5473
  }
5625
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: (0, import_clsx19.default)(className), ...restProps, children: nodes });
5474
+ return /* @__PURE__ */ jsx22("div", { className: clsx19(className), ...restProps, children: nodes });
5626
5475
  };
5627
5476
 
5628
5477
  // src/components/layout-and-navigation/FAQSection.tsx
5629
- var import_clsx20 = __toESM(require("clsx"), 1);
5630
- var import_lucide_react5 = require("lucide-react");
5478
+ import clsx20 from "clsx";
5479
+ import { ChevronDown as ChevronDown3, ChevronUp as ChevronUp2 } from "lucide-react";
5631
5480
 
5632
5481
  // src/components/layout-and-navigation/MarkdownInterpreter.tsx
5633
- var import_jsx_runtime23 = require("react/jsx-runtime");
5482
+ import { Fragment as Fragment2, jsx as jsx23 } from "react/jsx-runtime";
5634
5483
  var astNodeInserterType = ["helpwave", "newline"];
5635
5484
  var ASTNodeInterpreter = ({
5636
5485
  node,
@@ -5639,27 +5488,27 @@ var ASTNodeInterpreter = ({
5639
5488
  }) => {
5640
5489
  switch (node.type) {
5641
5490
  case "newline":
5642
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("br", {});
5491
+ return /* @__PURE__ */ jsx23("br", {});
5643
5492
  case "text":
5644
- return isRoot ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className, children: node.text }) : node.text;
5493
+ return isRoot ? /* @__PURE__ */ jsx23("span", { className, children: node.text }) : node.text;
5645
5494
  case "helpwave":
5646
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "font-bold font-space no-underline", children: "helpwave" });
5495
+ return /* @__PURE__ */ jsx23("span", { className: "font-bold font-space no-underline", children: "helpwave" });
5647
5496
  case "none":
5648
- return isRoot ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className, children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5497
+ return isRoot ? /* @__PURE__ */ jsx23("span", { className, children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
5649
5498
  ASTNodeInterpreter,
5650
5499
  {
5651
5500
  node: value
5652
5501
  },
5653
5502
  index
5654
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ASTNodeInterpreter, { node: value }, index)) });
5503
+ )) }) : /* @__PURE__ */ jsx23(Fragment2, { children: node.children.map((value, index) => /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: value }, index)) });
5655
5504
  case "bold":
5656
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("b", { children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ASTNodeInterpreter, { node: value }, index)) });
5505
+ return /* @__PURE__ */ jsx23("b", { children: node.children.map((value, index) => /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: value }, index)) });
5657
5506
  case "italic":
5658
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("i", { children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ASTNodeInterpreter, { node: value }, index)) });
5507
+ return /* @__PURE__ */ jsx23("i", { children: node.children.map((value, index) => /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: value }, index)) });
5659
5508
  case "underline":
5660
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("u", { children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ASTNodeInterpreter, { node: value }, index)) });
5509
+ return /* @__PURE__ */ jsx23("u", { children: node.children.map((value, index) => /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: value }, index)) });
5661
5510
  case "font-space":
5662
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "font-space", children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5511
+ return /* @__PURE__ */ jsx23("span", { className: "font-space", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
5663
5512
  ASTNodeInterpreter,
5664
5513
  {
5665
5514
  node: value
@@ -5667,7 +5516,7 @@ var ASTNodeInterpreter = ({
5667
5516
  index
5668
5517
  )) });
5669
5518
  case "primary":
5670
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-primary", children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5519
+ return /* @__PURE__ */ jsx23("span", { className: "text-primary", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
5671
5520
  ASTNodeInterpreter,
5672
5521
  {
5673
5522
  node: value
@@ -5675,7 +5524,7 @@ var ASTNodeInterpreter = ({
5675
5524
  index
5676
5525
  )) });
5677
5526
  case "secondary":
5678
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-secondary", children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5527
+ return /* @__PURE__ */ jsx23("span", { className: "text-secondary", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
5679
5528
  ASTNodeInterpreter,
5680
5529
  {
5681
5530
  node: value
@@ -5683,7 +5532,7 @@ var ASTNodeInterpreter = ({
5683
5532
  index
5684
5533
  )) });
5685
5534
  case "warn":
5686
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-warning", children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5535
+ return /* @__PURE__ */ jsx23("span", { className: "text-warning", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
5687
5536
  ASTNodeInterpreter,
5688
5537
  {
5689
5538
  node: value
@@ -5691,7 +5540,7 @@ var ASTNodeInterpreter = ({
5691
5540
  index
5692
5541
  )) });
5693
5542
  case "positive":
5694
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-positive", children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5543
+ return /* @__PURE__ */ jsx23("span", { className: "text-positive", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
5695
5544
  ASTNodeInterpreter,
5696
5545
  {
5697
5546
  node: value
@@ -5699,7 +5548,7 @@ var ASTNodeInterpreter = ({
5699
5548
  index
5700
5549
  )) });
5701
5550
  case "negative":
5702
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-negative", children: node.children.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5551
+ return /* @__PURE__ */ jsx23("span", { className: "text-negative", children: node.children.map((value, index) => /* @__PURE__ */ jsx23(
5703
5552
  ASTNodeInterpreter,
5704
5553
  {
5705
5554
  node: value
@@ -5857,34 +5706,34 @@ var optimizeTree = (node) => {
5857
5706
  var MarkdownInterpreter = ({ text, className }) => {
5858
5707
  const tree = parseMarkdown(text);
5859
5708
  const optimizedTree = optimizeTree(tree);
5860
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ASTNodeInterpreter, { node: optimizedTree, isRoot: true, className });
5709
+ return /* @__PURE__ */ jsx23(ASTNodeInterpreter, { node: optimizedTree, isRoot: true, className });
5861
5710
  };
5862
5711
 
5863
5712
  // src/components/layout-and-navigation/FAQSection.tsx
5864
- var import_jsx_runtime24 = require("react/jsx-runtime");
5713
+ import { jsx as jsx24 } from "react/jsx-runtime";
5865
5714
  var FAQSection = ({
5866
5715
  entries,
5867
5716
  expandableClassName
5868
5717
  }) => {
5869
5718
  const chevronSize = 28;
5870
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "col gap-y-4", children: entries.map(({ id, title, content, ...restProps }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5719
+ return /* @__PURE__ */ jsx24("div", { className: "col gap-y-4", children: entries.map(({ id, title, content, ...restProps }) => /* @__PURE__ */ jsx24(
5871
5720
  ExpandableUncontrolled,
5872
5721
  {
5873
5722
  ...restProps,
5874
- label: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("h3", { id, className: "textstyle-title-md", children: title }),
5723
+ label: /* @__PURE__ */ jsx24("h3", { id, className: "textstyle-title-md", children: title }),
5875
5724
  clickOnlyOnHeader: false,
5876
- icon: (expanded) => expanded ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.ChevronUp, { size: chevronSize, className: "text-primary", style: { minWidth: `${chevronSize}px` } }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react5.ChevronDown, { size: chevronSize, className: "text-primary" }),
5877
- className: (0, import_clsx20.default)("rounded-xl", expandableClassName),
5878
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "mt-2", children: content.type === "markdown" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MarkdownInterpreter, { text: content.value }) : content.value })
5725
+ icon: (expanded) => expanded ? /* @__PURE__ */ jsx24(ChevronUp2, { size: chevronSize, className: "text-primary", style: { minWidth: `${chevronSize}px` } }) : /* @__PURE__ */ jsx24(ChevronDown3, { size: chevronSize, className: "text-primary" }),
5726
+ className: clsx20("rounded-xl", expandableClassName),
5727
+ children: /* @__PURE__ */ jsx24("div", { className: "mt-2", children: content.type === "markdown" ? /* @__PURE__ */ jsx24(MarkdownInterpreter, { text: content.value }) : content.value })
5879
5728
  },
5880
5729
  id
5881
5730
  )) });
5882
5731
  };
5883
5732
 
5884
5733
  // src/components/layout-and-navigation/Pagination.tsx
5885
- var import_lucide_react6 = require("lucide-react");
5886
- var import_clsx21 = __toESM(require("clsx"), 1);
5887
- var import_jsx_runtime25 = require("react/jsx-runtime");
5734
+ import { ChevronFirst, ChevronLast, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
5735
+ import clsx21 from "clsx";
5736
+ import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
5888
5737
  var defaultPaginationTranslations = {
5889
5738
  en: {
5890
5739
  of: "of"
@@ -5906,23 +5755,23 @@ var Pagination = ({
5906
5755
  const noPages = numberOfPages === 0;
5907
5756
  const onFirstPage = page === 0 && !noPages;
5908
5757
  const onLastPage = page === numberOfPages - 1;
5909
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: (0, import_clsx21.default)("row", { "opacity-30": noPages }), children: [
5910
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => changePage(0), disabled: onFirstPage, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronFirst, { className: (0, import_clsx21.default)({ "opacity-30": onFirstPage }) }) }),
5911
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => changePage(page - 1), disabled: onFirstPage, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronLeft, { className: (0, import_clsx21.default)({ "opacity-30": onFirstPage }) }) }),
5912
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "min-w-[80px] justify-center mx-2", children: [
5913
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "select-none text-right flex-1", children: noPages ? 0 : page + 1 }),
5914
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "select-none mx-2", children: translation.of }),
5915
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "select-none text-left flex-1", children: numberOfPages })
5758
+ return /* @__PURE__ */ jsxs16("div", { className: clsx21("row", { "opacity-30": noPages }), children: [
5759
+ /* @__PURE__ */ jsx25("button", { onClick: () => changePage(0), disabled: onFirstPage, children: /* @__PURE__ */ jsx25(ChevronFirst, { className: clsx21({ "opacity-30": onFirstPage }) }) }),
5760
+ /* @__PURE__ */ jsx25("button", { onClick: () => changePage(page - 1), disabled: onFirstPage, children: /* @__PURE__ */ jsx25(ChevronLeft2, { className: clsx21({ "opacity-30": onFirstPage }) }) }),
5761
+ /* @__PURE__ */ jsxs16("div", { className: "min-w-[80px] justify-center mx-2", children: [
5762
+ /* @__PURE__ */ jsx25("span", { className: "select-none text-right flex-1", children: noPages ? 0 : page + 1 }),
5763
+ /* @__PURE__ */ jsx25("span", { className: "select-none mx-2", children: translation.of }),
5764
+ /* @__PURE__ */ jsx25("span", { className: "select-none text-left flex-1", children: numberOfPages })
5916
5765
  ] }),
5917
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => changePage(page + 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronRight, { className: (0, import_clsx21.default)({ "opacity-30": onLastPage }) }) }),
5918
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => changePage(numberOfPages - 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronLast, { className: (0, import_clsx21.default)({ "opacity-30": onLastPage }) }) })
5766
+ /* @__PURE__ */ jsx25("button", { onClick: () => changePage(page + 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ jsx25(ChevronRight2, { className: clsx21({ "opacity-30": onLastPage }) }) }),
5767
+ /* @__PURE__ */ jsx25("button", { onClick: () => changePage(numberOfPages - 1), disabled: onLastPage || noPages, children: /* @__PURE__ */ jsx25(ChevronLast, { className: clsx21({ "opacity-30": onLastPage }) }) })
5919
5768
  ] });
5920
5769
  };
5921
5770
 
5922
5771
  // src/components/layout-and-navigation/SearchableList.tsx
5923
- var import_react14 = require("react");
5924
- var import_lucide_react7 = require("lucide-react");
5925
- var import_clsx24 = __toESM(require("clsx"), 1);
5772
+ import { useEffect as useEffect14, useMemo as useMemo2, useState as useState14 } from "react";
5773
+ import { Search } from "lucide-react";
5774
+ import clsx24 from "clsx";
5926
5775
 
5927
5776
  // src/util/simpleSearch.ts
5928
5777
  var MultiSubjectSearchWithMapping = (search, objects, mapping) => {
@@ -5945,14 +5794,14 @@ var SimpleSearch = (search, objects) => {
5945
5794
  };
5946
5795
 
5947
5796
  // src/components/user-action/Input.tsx
5948
- var import_react13 = require("react");
5949
- var import_clsx23 = __toESM(require("clsx"), 1);
5797
+ import { forwardRef as forwardRef2, useEffect as useEffect13, useRef as useRef5, useState as useState13 } from "react";
5798
+ import clsx23 from "clsx";
5950
5799
 
5951
5800
  // src/hooks/useSaveDelay.ts
5952
- var import_react12 = require("react");
5801
+ import { useEffect as useEffect12, useState as useState12 } from "react";
5953
5802
  function useSaveDelay(setNotificationStatus, delay) {
5954
- const [updateTimer, setUpdateTimer] = (0, import_react12.useState)(void 0);
5955
- const [notificationTimer, setNotificationTimer] = (0, import_react12.useState)(void 0);
5803
+ const [updateTimer, setUpdateTimer] = useState12(void 0);
5804
+ const [notificationTimer, setNotificationTimer] = useState12(void 0);
5956
5805
  const restartTimer = (onSave) => {
5957
5806
  clearTimeout(updateTimer);
5958
5807
  setUpdateTimer(setTimeout(() => {
@@ -5979,7 +5828,7 @@ function useSaveDelay(setNotificationStatus, delay) {
5979
5828
  setNotificationStatus(false);
5980
5829
  }
5981
5830
  };
5982
- (0, import_react12.useEffect)(() => {
5831
+ useEffect12(() => {
5983
5832
  return () => {
5984
5833
  clearTimeout(updateTimer);
5985
5834
  clearTimeout(notificationTimer);
@@ -5989,8 +5838,8 @@ function useSaveDelay(setNotificationStatus, delay) {
5989
5838
  }
5990
5839
 
5991
5840
  // src/components/user-action/Label.tsx
5992
- var import_clsx22 = __toESM(require("clsx"), 1);
5993
- var import_jsx_runtime26 = require("react/jsx-runtime");
5841
+ import clsx22 from "clsx";
5842
+ import { jsx as jsx26 } from "react/jsx-runtime";
5994
5843
  var styleMapping = {
5995
5844
  labelSmall: "textstyle-label-sm",
5996
5845
  labelMedium: "textstyle-label-md",
@@ -6003,11 +5852,11 @@ var Label = ({
6003
5852
  className,
6004
5853
  ...props
6005
5854
  }) => {
6006
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("label", { ...props, className: (0, import_clsx22.default)(styleMapping[labelType], className), children: children ? children : name });
5855
+ return /* @__PURE__ */ jsx26("label", { ...props, className: clsx22(styleMapping[labelType], className), children: children ? children : name });
6007
5856
  };
6008
5857
 
6009
5858
  // src/components/user-action/Input.tsx
6010
- var import_jsx_runtime27 = require("react/jsx-runtime");
5859
+ import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
6011
5860
  var Input = ({
6012
5861
  id,
6013
5862
  type = "text",
@@ -6027,15 +5876,15 @@ var Input = ({
6027
5876
  restartTimer,
6028
5877
  clearUpdateTimer
6029
5878
  } = useSaveDelay(() => void 0, 3e3);
6030
- const ref = (0, import_react13.useRef)(null);
6031
- (0, import_react13.useEffect)(() => {
5879
+ const ref = useRef5(null);
5880
+ useEffect13(() => {
6032
5881
  if (autoFocus) {
6033
5882
  ref.current?.focus();
6034
5883
  }
6035
5884
  }, [autoFocus]);
6036
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: (0, import_clsx23.default)({ "w-full": expanded }, containerClassName), children: [
6037
- label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Label, { ...label, htmlFor: id, className: (0, import_clsx23.default)("mb-1", label.className) }),
6038
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
5885
+ return /* @__PURE__ */ jsxs17("div", { className: clsx23({ "w-full": expanded }, containerClassName), children: [
5886
+ label && /* @__PURE__ */ jsx27(Label, { ...label, htmlFor: id, className: clsx23("mb-1", label.className) }),
5887
+ /* @__PURE__ */ jsx27(
6039
5888
  "input",
6040
5889
  {
6041
5890
  ref,
@@ -6073,8 +5922,8 @@ var InputUncontrolled = ({
6073
5922
  onChangeText = noop,
6074
5923
  ...props
6075
5924
  }) => {
6076
- const [value, setValue] = (0, import_react13.useState)(defaultValue);
6077
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
5925
+ const [value, setValue] = useState13(defaultValue);
5926
+ return /* @__PURE__ */ jsx27(
6078
5927
  Input,
6079
5928
  {
6080
5929
  ...props,
@@ -6086,7 +5935,7 @@ var InputUncontrolled = ({
6086
5935
  }
6087
5936
  );
6088
5937
  };
6089
- var FormInput = (0, import_react13.forwardRef)(function FormInput2({
5938
+ var FormInput = forwardRef2(function FormInput2({
6090
5939
  id,
6091
5940
  labelText,
6092
5941
  errorText,
@@ -6097,13 +5946,13 @@ var FormInput = (0, import_react13.forwardRef)(function FormInput2({
6097
5946
  required,
6098
5947
  ...restProps
6099
5948
  }, ref) {
6100
- const input = /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
5949
+ const input = /* @__PURE__ */ jsx27(
6101
5950
  "input",
6102
5951
  {
6103
5952
  ref,
6104
5953
  id,
6105
5954
  ...restProps,
6106
- className: (0, import_clsx23.default)(
5955
+ className: clsx23(
6107
5956
  {
6108
5957
  "focus:border-primary focus:ring-primary": !errorText,
6109
5958
  "focus:border-negative focus:ring-negative text-negative": !!errorText
@@ -6112,18 +5961,18 @@ var FormInput = (0, import_react13.forwardRef)(function FormInput2({
6112
5961
  )
6113
5962
  }
6114
5963
  );
6115
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: (0, import_clsx23.default)("flex flex-col gap-y-1", containerClassName), children: [
6116
- labelText && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { htmlFor: id, className: (0, import_clsx23.default)("textstyle-label-md", labelClassName), children: [
5964
+ return /* @__PURE__ */ jsxs17("div", { className: clsx23("flex flex-col gap-y-1", containerClassName), children: [
5965
+ labelText && /* @__PURE__ */ jsxs17("label", { htmlFor: id, className: clsx23("textstyle-label-md", labelClassName), children: [
6117
5966
  labelText,
6118
- required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-primary font-bold", children: "*" })
5967
+ required && /* @__PURE__ */ jsx27("span", { className: "text-primary font-bold", children: "*" })
6119
5968
  ] }),
6120
5969
  input,
6121
- errorText && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("label", { htmlFor: id, className: (0, import_clsx23.default)("text-negative", errorClassName), children: errorText })
5970
+ errorText && /* @__PURE__ */ jsx27("label", { htmlFor: id, className: clsx23("text-negative", errorClassName), children: errorText })
6122
5971
  ] });
6123
5972
  });
6124
5973
 
6125
5974
  // src/components/layout-and-navigation/SearchableList.tsx
6126
- var import_jsx_runtime28 = require("react/jsx-runtime");
5975
+ import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
6127
5976
  var defaultSearchableListTranslation = {
6128
5977
  en: {
6129
5978
  search: "Search",
@@ -6143,24 +5992,24 @@ var SearchableList = ({
6143
5992
  className
6144
5993
  }) => {
6145
5994
  const translation = useTranslation(defaultSearchableListTranslation, overwriteTranslation);
6146
- const [search, setSearch] = (0, import_react14.useState)(initialSearch);
6147
- (0, import_react14.useEffect)(() => setSearch(initialSearch), [initialSearch]);
6148
- const filteredEntries = (0, import_react14.useMemo)(() => MultiSearchWithMapping(search, list, searchMapping), [search, list, searchMapping]);
6149
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: (0, import_clsx24.default)("col gap-y-2", className), children: [
6150
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "row justify-between gap-x-2 items-center", children: [
6151
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Input, { value: search, onChangeText: setSearch, placeholder: translation.search }) }),
6152
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react7.Search, { size: 20 })
5995
+ const [search, setSearch] = useState14(initialSearch);
5996
+ useEffect14(() => setSearch(initialSearch), [initialSearch]);
5997
+ const filteredEntries = useMemo2(() => MultiSearchWithMapping(search, list, searchMapping), [search, list, searchMapping]);
5998
+ return /* @__PURE__ */ jsxs18("div", { className: clsx24("col gap-y-2", className), children: [
5999
+ /* @__PURE__ */ jsxs18("div", { className: "row justify-between gap-x-2 items-center", children: [
6000
+ /* @__PURE__ */ jsx28("div", { className: "flex-1", children: /* @__PURE__ */ jsx28(Input, { value: search, onChangeText: setSearch, placeholder: translation.search }) }),
6001
+ /* @__PURE__ */ jsx28(Search, { size: 20 })
6153
6002
  ] }),
6154
- filteredEntries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "col gap-y-1", children: filteredEntries.map(itemMapper) }),
6155
- !filteredEntries.length && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "row justify-center", children: translation.nothingFound })
6003
+ filteredEntries.length > 0 && /* @__PURE__ */ jsx28("div", { className: "col gap-y-1", children: filteredEntries.map(itemMapper) }),
6004
+ !filteredEntries.length && /* @__PURE__ */ jsx28("div", { className: "row justify-center", children: translation.nothingFound })
6156
6005
  ] });
6157
6006
  };
6158
6007
 
6159
6008
  // src/components/layout-and-navigation/StepperBar.tsx
6160
- var import_lucide_react8 = require("lucide-react");
6161
- var import_clsx25 = __toESM(require("clsx"), 1);
6162
- var import_react15 = require("react");
6163
- var import_jsx_runtime29 = require("react/jsx-runtime");
6009
+ import { Check, ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
6010
+ import clsx25 from "clsx";
6011
+ import { useEffect as useEffect15, useState as useState15 } from "react";
6012
+ import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
6164
6013
  var defaultStepperBarTranslation = {
6165
6014
  en: {
6166
6015
  back: "Back",
@@ -6195,12 +6044,12 @@ var StepperBar = ({
6195
6044
  seenSteps.add(newStep);
6196
6045
  onChange({ currentStep: newStep, seenSteps });
6197
6046
  };
6198
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
6047
+ return /* @__PURE__ */ jsxs19(
6199
6048
  "div",
6200
6049
  {
6201
- className: (0, import_clsx25.default)("row justify-between", className),
6050
+ className: clsx25("row justify-between", className),
6202
6051
  children: [
6203
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "row flex-[2] justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
6052
+ /* @__PURE__ */ jsx29("div", { className: "row flex-[2] justify-start", children: /* @__PURE__ */ jsxs19(
6204
6053
  SolidButton,
6205
6054
  {
6206
6055
  disabled: currentStep === 0 || disabledSteps.has(currentStep),
@@ -6209,18 +6058,18 @@ var StepperBar = ({
6209
6058
  },
6210
6059
  className: "row gap-x-1 items-center justify-center",
6211
6060
  children: [
6212
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react8.ChevronLeft, { size: 14 }),
6061
+ /* @__PURE__ */ jsx29(ChevronLeft3, { size: 14 }),
6213
6062
  translation.back
6214
6063
  ]
6215
6064
  }
6216
6065
  ) }),
6217
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "row flex-[5] gap-x-2 justify-center items-center", children: showDots && dots.map((value, index) => {
6066
+ /* @__PURE__ */ jsx29("div", { className: "row flex-[5] gap-x-2 justify-center items-center", children: showDots && dots.map((value, index) => {
6218
6067
  const seen = seenSteps.has(index);
6219
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6068
+ return /* @__PURE__ */ jsx29(
6220
6069
  "div",
6221
6070
  {
6222
6071
  onClick: () => seen && update(index),
6223
- className: (0, import_clsx25.default)(
6072
+ className: clsx25(
6224
6073
  "rounded-full w-4 h-4",
6225
6074
  {
6226
6075
  "bg-primary hover:brightness-75": index === currentStep && seen && !disabledSteps.has(currentStep),
@@ -6236,7 +6085,7 @@ var StepperBar = ({
6236
6085
  index
6237
6086
  );
6238
6087
  }) }),
6239
- currentStep !== numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "row flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
6088
+ currentStep !== numberOfSteps && /* @__PURE__ */ jsx29("div", { className: "row flex-[2] justify-end", children: /* @__PURE__ */ jsxs19(
6240
6089
  SolidButton,
6241
6090
  {
6242
6091
  onClick: () => update(currentStep + 1),
@@ -6244,18 +6093,18 @@ var StepperBar = ({
6244
6093
  disabled: disabledSteps.has(currentStep),
6245
6094
  children: [
6246
6095
  translation.next,
6247
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react8.ChevronRight, { size: 14 })
6096
+ /* @__PURE__ */ jsx29(ChevronRight3, { size: 14 })
6248
6097
  ]
6249
6098
  }
6250
6099
  ) }),
6251
- currentStep === numberOfSteps && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "row flex-[2] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
6100
+ currentStep === numberOfSteps && /* @__PURE__ */ jsx29("div", { className: "row flex-[2] justify-end", children: /* @__PURE__ */ jsxs19(
6252
6101
  SolidButton,
6253
6102
  {
6254
6103
  disabled: disabledSteps.has(currentStep),
6255
6104
  onClick: onFinish,
6256
6105
  className: "row gap-x-1 items-center justify-center",
6257
6106
  children: [
6258
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react8.Check, { size: 14 }),
6107
+ /* @__PURE__ */ jsx29(Check, { size: 14 }),
6259
6108
  finishText ?? translation.confirm
6260
6109
  ]
6261
6110
  }
@@ -6265,11 +6114,11 @@ var StepperBar = ({
6265
6114
  );
6266
6115
  };
6267
6116
  var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
6268
- const [usedState, setUsedState] = (0, import_react15.useState)(state ?? defaultState);
6269
- (0, import_react15.useEffect)(() => {
6117
+ const [usedState, setUsedState] = useState15(state ?? defaultState);
6118
+ useEffect15(() => {
6270
6119
  setUsedState(state ?? defaultState);
6271
6120
  }, [state]);
6272
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6121
+ return /* @__PURE__ */ jsx29(
6273
6122
  StepperBar,
6274
6123
  {
6275
6124
  ...props,
@@ -6283,15 +6132,15 @@ var StepperBarUncontrolled = ({ state, onChange, ...props }) => {
6283
6132
  };
6284
6133
 
6285
6134
  // src/components/layout-and-navigation/Table.tsx
6286
- var import_react17 = require("react");
6287
- var import_react_custom_scrollbars_23 = require("react-custom-scrollbars-2");
6135
+ import { useEffect as useEffect16, useRef as useRef6, useState as useState17 } from "react";
6136
+ import { Scrollbars as Scrollbars3 } from "react-custom-scrollbars-2";
6288
6137
 
6289
6138
  // src/components/user-action/Checkbox.tsx
6290
- var import_react16 = require("react");
6291
- var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
6292
- var import_lucide_react9 = require("lucide-react");
6293
- var import_clsx26 = __toESM(require("clsx"), 1);
6294
- var import_jsx_runtime30 = require("react/jsx-runtime");
6139
+ import { useState as useState16 } from "react";
6140
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
6141
+ import { Check as Check2, Minus } from "lucide-react";
6142
+ import clsx26 from "clsx";
6143
+ import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
6295
6144
  var checkboxSizeMapping = {
6296
6145
  small: "size-4",
6297
6146
  medium: "size-6",
@@ -6327,31 +6176,31 @@ var Checkbox = ({
6327
6176
  const newValue = checked === "indeterminate" ? false : !checked;
6328
6177
  propagateChange(newValue);
6329
6178
  };
6330
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_clsx26.default)("row justify-center items-center", containerClassName), children: [
6331
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6179
+ return /* @__PURE__ */ jsxs20("div", { className: clsx26("row justify-center items-center", containerClassName), children: [
6180
+ /* @__PURE__ */ jsx30(
6332
6181
  CheckboxPrimitive.Root,
6333
6182
  {
6334
6183
  onCheckedChange: propagateChange,
6335
6184
  checked,
6336
6185
  disabled,
6337
6186
  id,
6338
- className: (0, import_clsx26.default)(usedSizeClass, `items-center border-2 rounded outline-none focus:border-primary`, {
6187
+ className: clsx26(usedSizeClass, `items-center border-2 rounded outline-none focus:border-primary`, {
6339
6188
  "text-disabled-text border-disabled-text": disabled,
6340
6189
  "border-on-background": !disabled,
6341
6190
  "bg-primary/30 border-primary text-primary": checked === true || checked === "indeterminate",
6342
6191
  "hover:border-gray-400 focus:hover:border-primary": !checked
6343
6192
  }, className),
6344
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(CheckboxPrimitive.Indicator, { children: [
6345
- checked === true && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react9.Check, { className: innerIconSize }),
6346
- checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react9.Minus, { className: innerIconSize })
6193
+ children: /* @__PURE__ */ jsxs20(CheckboxPrimitive.Indicator, { children: [
6194
+ checked === true && /* @__PURE__ */ jsx30(Check2, { className: innerIconSize }),
6195
+ checked === "indeterminate" && /* @__PURE__ */ jsx30(Minus, { className: innerIconSize })
6347
6196
  ] })
6348
6197
  }
6349
6198
  ),
6350
- label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6199
+ label && /* @__PURE__ */ jsx30(
6351
6200
  Label,
6352
6201
  {
6353
6202
  ...label,
6354
- className: (0, import_clsx26.default)("cursor-pointer", label.className),
6203
+ className: clsx26("cursor-pointer", label.className),
6355
6204
  htmlFor: id,
6356
6205
  onClick: changeValue
6357
6206
  }
@@ -6364,7 +6213,7 @@ var CheckboxUncontrolled = ({
6364
6213
  defaultValue = false,
6365
6214
  ...props
6366
6215
  }) => {
6367
- const [checked, setChecked] = (0, import_react16.useState)(defaultValue);
6216
+ const [checked, setChecked] = useState16(defaultValue);
6368
6217
  const handleChange = (checked2) => {
6369
6218
  if (onChangeTristate) {
6370
6219
  onChangeTristate(checked2);
@@ -6374,7 +6223,7 @@ var CheckboxUncontrolled = ({
6374
6223
  }
6375
6224
  setChecked(checked2);
6376
6225
  };
6377
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6226
+ return /* @__PURE__ */ jsx30(
6378
6227
  Checkbox,
6379
6228
  {
6380
6229
  ...props,
@@ -6385,9 +6234,9 @@ var CheckboxUncontrolled = ({
6385
6234
  };
6386
6235
 
6387
6236
  // src/components/layout-and-navigation/Table.tsx
6388
- var import_clsx27 = __toESM(require("clsx"), 1);
6389
- var import_lucide_react10 = require("lucide-react");
6390
- var import_jsx_runtime31 = require("react/jsx-runtime");
6237
+ import clsx27 from "clsx";
6238
+ import { ChevronDown as ChevronDown4, ChevronsUpDown, ChevronUp as ChevronUp3 } from "lucide-react";
6239
+ import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
6391
6240
  var defaultTableStatePagination = {
6392
6241
  currentPage: 0,
6393
6242
  entriesPerPage: 5
@@ -6539,8 +6388,8 @@ var Table = ({
6539
6388
  const headerPaddingHead = "pb-2";
6540
6389
  const headerPaddingBody = "pt-2";
6541
6390
  const cellPadding = "py-1 px-2";
6542
- const [scrollbarsAutoHeightMin, setScrollbarsAutoHeightMin] = (0, import_react17.useState)(0);
6543
- const tableRef = (0, import_react17.useRef)(null);
6391
+ const [scrollbarsAutoHeightMin, setScrollbarsAutoHeightMin] = useState17(0);
6392
+ const tableRef = useRef6(null);
6544
6393
  const calculateHeight = () => {
6545
6394
  if (tableRef.current) {
6546
6395
  const tableHeight = tableRef.current.offsetHeight;
@@ -6548,7 +6397,7 @@ var Table = ({
6548
6397
  setScrollbarsAutoHeightMin(tableHeight + offset);
6549
6398
  }
6550
6399
  };
6551
- (0, import_react17.useEffect)(() => {
6400
+ useEffect16(() => {
6552
6401
  calculateHeight();
6553
6402
  const handleResize = () => {
6554
6403
  calculateHeight();
@@ -6558,20 +6407,20 @@ var Table = ({
6558
6407
  window.removeEventListener("resize", handleResize);
6559
6408
  };
6560
6409
  }, [data, currentPage]);
6561
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0, import_clsx27.default)("col gap-y-4 overflow-hidden", className), children: [
6562
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_custom_scrollbars_23.Scrollbars, { autoHeight: true, autoHeightMin: scrollbarsAutoHeightMin, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("table", { ref: tableRef, className: "w-full mb-[12px]", children: [
6563
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("tr", { className: headerRow, children: [
6564
- header && tableState.selection && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("th", { className: headerPaddingHead, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6410
+ return /* @__PURE__ */ jsxs21("div", { className: clsx27("col gap-y-4 overflow-hidden", className), children: [
6411
+ /* @__PURE__ */ jsx31("div", { children: /* @__PURE__ */ jsx31(Scrollbars3, { autoHeight: true, autoHeightMin: scrollbarsAutoHeightMin, children: /* @__PURE__ */ jsxs21("table", { ref: tableRef, className: "w-full mb-[12px]", children: [
6412
+ /* @__PURE__ */ jsx31("thead", { children: /* @__PURE__ */ jsxs21("tr", { className: headerRow, children: [
6413
+ header && tableState.selection && /* @__PURE__ */ jsx31("th", { className: headerPaddingHead, children: /* @__PURE__ */ jsx31(
6565
6414
  Checkbox,
6566
6415
  {
6567
6416
  checked: tableState.selection.hasSelectedSome ? "indeterminate" : tableState.selection.hasSelectedAll,
6568
6417
  onChange: () => updateTableState(changeTableSelectionAll(tableState, data, identifierMapping))
6569
6418
  }
6570
6419
  ) }),
6571
- header && header.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("th", { className: headerPaddingHead, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "row justify-start px-2", children: value }) }, `tableHeader${index}`))
6420
+ header && header.map((value, index) => /* @__PURE__ */ jsx31("th", { className: headerPaddingHead, children: /* @__PURE__ */ jsx31("div", { className: "row justify-start px-2", children: value }) }, `tableHeader${index}`))
6572
6421
  ] }) }),
6573
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("tbody", { children: shownElements.map((value, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("tr", { children: [
6574
- tableState.selection && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("td", { className: (0, import_clsx27.default)(cellPadding, { [headerPaddingBody]: rowIndex === 0 }), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6422
+ /* @__PURE__ */ jsx31("tbody", { children: shownElements.map((value, rowIndex) => /* @__PURE__ */ jsxs21("tr", { children: [
6423
+ tableState.selection && /* @__PURE__ */ jsx31("td", { className: clsx27(cellPadding, { [headerPaddingBody]: rowIndex === 0 }), children: /* @__PURE__ */ jsx31(
6575
6424
  Checkbox,
6576
6425
  {
6577
6426
  checked: isDataObjectSelected(tableState, value, identifierMapping),
@@ -6580,17 +6429,17 @@ var Table = ({
6580
6429
  }
6581
6430
  }
6582
6431
  ) }),
6583
- rowMappingToCells(value).map((value1, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6432
+ rowMappingToCells(value).map((value1, index) => /* @__PURE__ */ jsx31(
6584
6433
  "td",
6585
6434
  {
6586
- className: (0, import_clsx27.default)(cellPadding, { [headerPaddingBody]: rowIndex === 0 }),
6435
+ className: clsx27(cellPadding, { [headerPaddingBody]: rowIndex === 0 }),
6587
6436
  children: value1
6588
6437
  },
6589
6438
  index
6590
6439
  ))
6591
6440
  ] }, identifierMapping(value))) })
6592
6441
  ] }) }) }),
6593
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "row justify-center", children: tableState.pagination && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Pagination, { page: currentPage, numberOfPages: pageCount, onPageChanged: (page) => updateTableState({
6442
+ /* @__PURE__ */ jsx31("div", { className: "row justify-center", children: tableState.pagination && /* @__PURE__ */ jsx31(Pagination, { page: currentPage, numberOfPages: pageCount, onPageChanged: (page) => updateTableState({
6594
6443
  ...tableState,
6595
6444
  pagination: { entriesPerPage, currentPage: page }
6596
6445
  }) }) })
@@ -6603,23 +6452,23 @@ var SortButton = ({
6603
6452
  onClick,
6604
6453
  ...buttonProps
6605
6454
  }) => {
6606
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6455
+ return /* @__PURE__ */ jsx31(
6607
6456
  TextButton,
6608
6457
  {
6609
6458
  color,
6610
6459
  onClick: () => onClick(ascending === "descending" ? "ascending" : "descending"),
6611
6460
  ...buttonProps,
6612
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "row gap-x-2", children: [
6461
+ children: /* @__PURE__ */ jsxs21("div", { className: "row gap-x-2", children: [
6613
6462
  children,
6614
- ascending === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react10.ChevronUp, {}) : !ascending ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react10.ChevronsUpDown, {}) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react10.ChevronDown, {})
6463
+ ascending === "ascending" ? /* @__PURE__ */ jsx31(ChevronUp3, {}) : !ascending ? /* @__PURE__ */ jsx31(ChevronsUpDown, {}) : /* @__PURE__ */ jsx31(ChevronDown4, {})
6615
6464
  ] })
6616
6465
  }
6617
6466
  );
6618
6467
  };
6619
6468
 
6620
6469
  // src/components/layout-and-navigation/TextImage.tsx
6621
- var import_clsx28 = __toESM(require("clsx"), 1);
6622
- var import_jsx_runtime32 = require("react/jsx-runtime");
6470
+ import clsx28 from "clsx";
6471
+ import { jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
6623
6472
  var defaultTextImageTranslation = {
6624
6473
  de: {
6625
6474
  showMore: "Mehr anzeigen"
@@ -6650,25 +6499,25 @@ var TextImage = ({
6650
6499
  secondary: "text-text-image-secondary-text bg-linear-to-r from-30% from-text-image-secondary-background to-text-image-secondary-background/55",
6651
6500
  dark: "text-text-image-dark-text bg-linear-to-r from-30% from-text-image-dark-background to-text-image-dark-background/55"
6652
6501
  };
6653
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
6502
+ return /* @__PURE__ */ jsx32(
6654
6503
  "div",
6655
6504
  {
6656
- className: (0, import_clsx28.default)("rounded-2xl w-full", className),
6505
+ className: clsx28("rounded-2xl w-full", className),
6657
6506
  style: {
6658
6507
  backgroundImage: `url(${imageUrl})`,
6659
6508
  backgroundSize: "cover"
6660
6509
  },
6661
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
6510
+ children: /* @__PURE__ */ jsxs22(
6662
6511
  "div",
6663
6512
  {
6664
- className: (0, import_clsx28.default)(`col px-6 py-12 rounded-2xl h-full`, colorMapping[color], contentClassName),
6513
+ className: clsx28(`col px-6 py-12 rounded-2xl h-full`, colorMapping[color], contentClassName),
6665
6514
  children: [
6666
- badge && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: (0, import_clsx28.default)(`chip-full bg-white mb-2 py-2 px-4 w-fit`, chipColorMapping[color]), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-lg font-bold", children: badge }) }),
6667
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "col gap-y-1 text-white overflow-hidden", children: [
6668
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "textstyle-title-xl", children: title }),
6669
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-ellipsis overflow-hidden", children: description })
6515
+ badge && /* @__PURE__ */ jsx32("div", { className: clsx28(`chip-full bg-white mb-2 py-2 px-4 w-fit`, chipColorMapping[color]), children: /* @__PURE__ */ jsx32("span", { className: "text-lg font-bold", children: badge }) }),
6516
+ /* @__PURE__ */ jsxs22("div", { className: "col gap-y-1 text-white overflow-hidden", children: [
6517
+ /* @__PURE__ */ jsx32("span", { className: "textstyle-title-xl", children: title }),
6518
+ /* @__PURE__ */ jsx32("span", { className: "text-ellipsis overflow-hidden", children: description })
6670
6519
  ] }),
6671
- onShowMoreClicked && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "row mt-2 text-white underline", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("button", { onClick: onShowMoreClicked, children: translation.showMore }) })
6520
+ onShowMoreClicked && /* @__PURE__ */ jsx32("div", { className: "row mt-2 text-white underline", children: /* @__PURE__ */ jsx32("button", { onClick: onShowMoreClicked, children: translation.showMore }) })
6672
6521
  ]
6673
6522
  }
6674
6523
  )
@@ -6677,7 +6526,7 @@ var TextImage = ({
6677
6526
  };
6678
6527
 
6679
6528
  // src/components/layout-and-navigation/VerticalDivider.tsx
6680
- var import_jsx_runtime33 = require("react/jsx-runtime");
6529
+ import { jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
6681
6530
  var VerticalDivider = ({
6682
6531
  width = 1,
6683
6532
  height = 100,
@@ -6685,7 +6534,7 @@ var VerticalDivider = ({
6685
6534
  dashGap = 4,
6686
6535
  dashLength = 4
6687
6536
  }) => {
6688
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: { width: width + "px", height: height + "px" }, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
6537
+ return /* @__PURE__ */ jsx33("div", { style: { width: width + "px", height: height + "px" }, children: /* @__PURE__ */ jsxs23(
6689
6538
  "svg",
6690
6539
  {
6691
6540
  width,
@@ -6694,7 +6543,7 @@ var VerticalDivider = ({
6694
6543
  fill: "none",
6695
6544
  xmlns: "http://www.w3.org/2000/svg",
6696
6545
  children: [
6697
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6546
+ /* @__PURE__ */ jsx33(
6698
6547
  "line",
6699
6548
  {
6700
6549
  opacity: "0.5",
@@ -6708,7 +6557,7 @@ var VerticalDivider = ({
6708
6557
  strokeLinecap: "round"
6709
6558
  }
6710
6559
  ),
6711
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
6560
+ /* @__PURE__ */ jsx33("defs", { children: /* @__PURE__ */ jsxs23(
6712
6561
  "linearGradient",
6713
6562
  {
6714
6563
  id: "paint_linear",
@@ -6718,9 +6567,9 @@ var VerticalDivider = ({
6718
6567
  y2: height,
6719
6568
  gradientUnits: "userSpaceOnUse",
6720
6569
  children: [
6721
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("stop", { stopOpacity: "0", stopColor: "currentColor" }),
6722
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("stop", { offset: "0.5", stopColor: "currentColor" }),
6723
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("stop", { offset: "1", stopColor: "currentColor", stopOpacity: "0" })
6570
+ /* @__PURE__ */ jsx33("stop", { stopOpacity: "0", stopColor: "currentColor" }),
6571
+ /* @__PURE__ */ jsx33("stop", { offset: "0.5", stopColor: "currentColor" }),
6572
+ /* @__PURE__ */ jsx33("stop", { offset: "1", stopColor: "currentColor", stopOpacity: "0" })
6724
6573
  ]
6725
6574
  }
6726
6575
  ) })
@@ -6730,9 +6579,9 @@ var VerticalDivider = ({
6730
6579
  };
6731
6580
 
6732
6581
  // src/components/loading-states/ErrorComponent.tsx
6733
- var import_lucide_react11 = require("lucide-react");
6734
- var import_clsx29 = __toESM(require("clsx"), 1);
6735
- var import_jsx_runtime34 = require("react/jsx-runtime");
6582
+ import { AlertOctagon } from "lucide-react";
6583
+ import clsx29 from "clsx";
6584
+ import { jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
6736
6585
  var defaultErrorComponentTranslation = {
6737
6586
  en: {
6738
6587
  errorOccurred: "An error occurred"
@@ -6747,18 +6596,18 @@ var ErrorComponent = ({
6747
6596
  classname
6748
6597
  }) => {
6749
6598
  const translation = useTranslation(defaultErrorComponentTranslation, overwriteTranslation);
6750
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: (0, import_clsx29.default)("col items-center justify-center gap-y-4 w-full h-24", classname), children: [
6751
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react11.AlertOctagon, { size: 64, className: "text-warning" }),
6599
+ return /* @__PURE__ */ jsxs24("div", { className: clsx29("col items-center justify-center gap-y-4 w-full h-24", classname), children: [
6600
+ /* @__PURE__ */ jsx34(AlertOctagon, { size: 64, className: "text-warning" }),
6752
6601
  errorText ?? `${translation.errorOccurred} :(`
6753
6602
  ] });
6754
6603
  };
6755
6604
 
6756
6605
  // src/components/loading-states/LoadingAndErrorComponent.tsx
6757
- var import_react18 = require("react");
6606
+ import { useState as useState18 } from "react";
6758
6607
 
6759
6608
  // src/components/loading-states/LoadingAnimation.tsx
6760
- var import_clsx30 = __toESM(require("clsx"), 1);
6761
- var import_jsx_runtime35 = require("react/jsx-runtime");
6609
+ import clsx30 from "clsx";
6610
+ import { jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
6762
6611
  var defaultLoadingAnimationTranslation = {
6763
6612
  en: {
6764
6613
  loading: "Loading data"
@@ -6773,14 +6622,14 @@ var LoadingAnimation = ({
6773
6622
  classname
6774
6623
  }) => {
6775
6624
  const translation = useTranslation(defaultLoadingAnimationTranslation, overwriteTranslation);
6776
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: (0, import_clsx30.default)("col items-center justify-center w-full h-24", classname), children: [
6777
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Helpwave, { animate: "loading" }),
6625
+ return /* @__PURE__ */ jsxs25("div", { className: clsx30("col items-center justify-center w-full h-24", classname), children: [
6626
+ /* @__PURE__ */ jsx35(Helpwave, { animate: "loading" }),
6778
6627
  loadingText ?? `${translation.loading}...`
6779
6628
  ] });
6780
6629
  };
6781
6630
 
6782
6631
  // src/components/loading-states/LoadingAndErrorComponent.tsx
6783
- var import_jsx_runtime36 = require("react/jsx-runtime");
6632
+ import { jsx as jsx36 } from "react/jsx-runtime";
6784
6633
  var LoadingAndErrorComponent = ({
6785
6634
  children,
6786
6635
  isLoading = false,
@@ -6789,8 +6638,8 @@ var LoadingAndErrorComponent = ({
6789
6638
  loadingProps,
6790
6639
  minimumLoadingDuration
6791
6640
  }) => {
6792
- const [isInMinimumLoading, setIsInMinimumLoading] = (0, import_react18.useState)(false);
6793
- const [hasUsedMinimumLoading, setHasUsedMinimumLoading] = (0, import_react18.useState)(false);
6641
+ const [isInMinimumLoading, setIsInMinimumLoading] = useState18(false);
6642
+ const [hasUsedMinimumLoading, setHasUsedMinimumLoading] = useState18(false);
6794
6643
  if (minimumLoadingDuration && !isInMinimumLoading && !hasUsedMinimumLoading) {
6795
6644
  setIsInMinimumLoading(true);
6796
6645
  setTimeout(() => {
@@ -6799,27 +6648,27 @@ var LoadingAndErrorComponent = ({
6799
6648
  }, minimumLoadingDuration);
6800
6649
  }
6801
6650
  if (isLoading || minimumLoadingDuration && isInMinimumLoading) {
6802
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(LoadingAnimation, { ...loadingProps });
6651
+ return /* @__PURE__ */ jsx36(LoadingAnimation, { ...loadingProps });
6803
6652
  }
6804
6653
  if (hasError) {
6805
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ErrorComponent, { ...errorProps });
6654
+ return /* @__PURE__ */ jsx36(ErrorComponent, { ...errorProps });
6806
6655
  }
6807
6656
  return children;
6808
6657
  };
6809
6658
 
6810
6659
  // src/components/loading-states/LoadingButton.tsx
6811
- var import_clsx31 = __toESM(require("clsx"), 1);
6812
- var import_jsx_runtime37 = require("react/jsx-runtime");
6660
+ import clsx31 from "clsx";
6661
+ import { jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
6813
6662
  var LoadingButton = ({ isLoading = false, size = "medium", onClick, ...rest }) => {
6814
6663
  const paddingClass = ButtonUtil.paddingMapping[size];
6815
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "inline-block relative", children: [
6816
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0, import_clsx31.default)("absolute inset-0 row items-center justify-center bg-white/40", paddingClass), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Helpwave, { animate: "loading", className: "text-white" }) }),
6817
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SolidButton, { ...rest, disabled: rest.disabled, onClick: isLoading ? noop : onClick })
6664
+ return /* @__PURE__ */ jsxs26("div", { className: "inline-block relative", children: [
6665
+ isLoading && /* @__PURE__ */ jsx37("div", { className: clsx31("absolute inset-0 row items-center justify-center bg-white/40", paddingClass), children: /* @__PURE__ */ jsx37(Helpwave, { animate: "loading", className: "text-white" }) }),
6666
+ /* @__PURE__ */ jsx37(SolidButton, { ...rest, disabled: rest.disabled, onClick: isLoading ? noop : onClick })
6818
6667
  ] });
6819
6668
  };
6820
6669
 
6821
6670
  // src/components/loading-states/ProgressIndicator.tsx
6822
- var import_jsx_runtime38 = require("react/jsx-runtime");
6671
+ import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
6823
6672
  var sizeMapping = { small: 16, medium: 24, big: 48 };
6824
6673
  var ProgressIndicator = ({
6825
6674
  progress,
@@ -6836,7 +6685,7 @@ var ProgressIndicator = ({
6836
6685
  if (direction === "clockwise") {
6837
6686
  rotation += 360 * progress;
6838
6687
  }
6839
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
6688
+ return /* @__PURE__ */ jsxs27(
6840
6689
  "svg",
6841
6690
  {
6842
6691
  style: {
@@ -6845,7 +6694,7 @@ var ProgressIndicator = ({
6845
6694
  transform: `rotate(${rotation}deg)`
6846
6695
  },
6847
6696
  children: [
6848
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6697
+ /* @__PURE__ */ jsx38(
6849
6698
  "circle",
6850
6699
  {
6851
6700
  cx: center,
@@ -6856,7 +6705,7 @@ var ProgressIndicator = ({
6856
6705
  className: "stroke-primary"
6857
6706
  }
6858
6707
  ),
6859
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6708
+ /* @__PURE__ */ jsx38(
6860
6709
  "circle",
6861
6710
  {
6862
6711
  cx: center,
@@ -6875,8 +6724,8 @@ var ProgressIndicator = ({
6875
6724
  };
6876
6725
 
6877
6726
  // src/components/modals/ConfirmModal.tsx
6878
- var import_clsx32 = __toESM(require("clsx"), 1);
6879
- var import_jsx_runtime39 = require("react/jsx-runtime");
6727
+ import clsx32 from "clsx";
6728
+ import { jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
6880
6729
  var defaultConfirmDialogTranslation2 = {
6881
6730
  en: {
6882
6731
  confirm: "Confirm",
@@ -6907,10 +6756,10 @@ var ConfirmModal = ({
6907
6756
  positive: "positive",
6908
6757
  primary: "primary"
6909
6758
  };
6910
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Modal, { ...restProps, onClose: onCancel, className: (0, import_clsx32.default)("justify-between", className), children: [
6911
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col grow", children }),
6912
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "row mt-3 gap-x-4 justify-end", children: [
6913
- onCancel && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6759
+ return /* @__PURE__ */ jsxs28(Modal, { ...restProps, onClose: onCancel, className: clsx32("justify-between", className), children: [
6760
+ /* @__PURE__ */ jsx39("div", { className: "col grow", children }),
6761
+ /* @__PURE__ */ jsxs28("div", { className: "row mt-3 gap-x-4 justify-end", children: [
6762
+ onCancel && /* @__PURE__ */ jsx39(
6914
6763
  SolidButton,
6915
6764
  {
6916
6765
  color: buttonOverwrites?.[0].color ?? "neutral",
@@ -6919,7 +6768,7 @@ var ConfirmModal = ({
6919
6768
  children: buttonOverwrites?.[0].text ?? translation.cancel
6920
6769
  }
6921
6770
  ),
6922
- onDecline && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6771
+ onDecline && /* @__PURE__ */ jsx39(
6923
6772
  SolidButton,
6924
6773
  {
6925
6774
  color: buttonOverwrites?.[1].color ?? "negative",
@@ -6928,7 +6777,7 @@ var ConfirmModal = ({
6928
6777
  children: buttonOverwrites?.[1].text ?? translation.decline
6929
6778
  }
6930
6779
  ),
6931
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6780
+ /* @__PURE__ */ jsx39(
6932
6781
  SolidButton,
6933
6782
  {
6934
6783
  autoFocus: true,
@@ -6943,7 +6792,7 @@ var ConfirmModal = ({
6943
6792
  };
6944
6793
 
6945
6794
  // src/components/modals/DiscardChangesModal.tsx
6946
- var import_jsx_runtime40 = require("react/jsx-runtime");
6795
+ import { jsx as jsx40 } from "react/jsx-runtime";
6947
6796
  var defaultDiscardChangesModalTranslation = {
6948
6797
  en: {
6949
6798
  save: "Save",
@@ -6970,7 +6819,7 @@ var DiscardChangesModal = ({
6970
6819
  ...modalProps
6971
6820
  }) => {
6972
6821
  const translation = useTranslation(defaultDiscardChangesModalTranslation, overwriteTranslation);
6973
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6822
+ return /* @__PURE__ */ jsx40(
6974
6823
  ConfirmModal,
6975
6824
  {
6976
6825
  headerProps: {
@@ -6989,28 +6838,28 @@ var DiscardChangesModal = ({
6989
6838
  };
6990
6839
 
6991
6840
  // src/components/modals/InputModal.tsx
6992
- var import_jsx_runtime41 = require("react/jsx-runtime");
6841
+ import { jsx as jsx41 } from "react/jsx-runtime";
6993
6842
  var InputModal = ({
6994
6843
  inputs,
6995
6844
  buttonOverwrites,
6996
6845
  ...restProps
6997
6846
  }) => {
6998
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6847
+ return /* @__PURE__ */ jsx41(
6999
6848
  ConfirmModal,
7000
6849
  {
7001
6850
  buttonOverwrites,
7002
6851
  ...restProps,
7003
- children: inputs.map((inputProps, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Input, { ...inputProps }, `input ${index}`))
6852
+ children: inputs.map((inputProps, index) => /* @__PURE__ */ jsx41(Input, { ...inputProps }, `input ${index}`))
7004
6853
  }
7005
6854
  );
7006
6855
  };
7007
6856
 
7008
6857
  // src/components/user-action/Select.tsx
7009
- var import_react19 = require("@headlessui/react");
7010
- var import_lucide_react12 = require("lucide-react");
7011
- var import_react20 = require("react");
7012
- var import_clsx33 = __toESM(require("clsx"), 1);
7013
- var import_jsx_runtime42 = require("react/jsx-runtime");
6858
+ import { Menu } from "@headlessui/react";
6859
+ import { ChevronDown as ChevronDown5, ChevronUp as ChevronUp4, Search as Search2 } from "lucide-react";
6860
+ import { useEffect as useEffect17, useState as useState19 } from "react";
6861
+ import clsx33 from "clsx";
6862
+ import { Fragment as Fragment3, jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
7014
6863
  var Select = ({
7015
6864
  value,
7016
6865
  label,
@@ -7035,13 +6884,13 @@ var Select = ({
7035
6884
  console.warn("The selected value is not found in the options list. This might be an error on your part or default behavior if it is complex data type on which === does not work. In case of the latter use selectedDisplayOverwrite to set your selected text or component");
7036
6885
  }
7037
6886
  const borderColor = "border-menu-border";
7038
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: (0, import_clsx33.default)(className), children: [
7039
- label && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Label, { ...label, labelType: label.labelType ?? "labelBig", className: (0, import_clsx33.default)("mb-1", label.className) }),
7040
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react19.Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
7041
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
7042
- import_react19.Menu.Button,
6887
+ return /* @__PURE__ */ jsxs29("div", { className: clsx33(className), children: [
6888
+ label && /* @__PURE__ */ jsx42(Label, { ...label, labelType: label.labelType ?? "labelBig", className: clsx33("mb-1", label.className) }),
6889
+ /* @__PURE__ */ jsx42(Menu, { as: "div", className: "relative text-menu-text", children: ({ open }) => /* @__PURE__ */ jsxs29(Fragment3, { children: [
6890
+ /* @__PURE__ */ jsxs29(
6891
+ Menu.Button,
7043
6892
  {
7044
- className: (0, import_clsx33.default)(
6893
+ className: clsx33(
7045
6894
  "inline-flex w-full justify-between items-center rounded-t-lg border-2 px-4 py-2 font-medium bg-menu-background text-menu-text",
7046
6895
  textColor,
7047
6896
  borderColor,
@@ -7053,30 +6902,30 @@ var Select = ({
7053
6902
  ),
7054
6903
  disabled: isDisabled,
7055
6904
  children: [
7056
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
7057
- open ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react12.ChevronUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react12.ChevronDown, {})
6905
+ /* @__PURE__ */ jsx42("span", { children: selectedDisplayOverwrite ?? selectedOption?.label ?? hintText }),
6906
+ open ? /* @__PURE__ */ jsx42(ChevronUp4, {}) : /* @__PURE__ */ jsx42(ChevronDown5, {})
7058
6907
  ]
7059
6908
  }
7060
6909
  ),
7061
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
7062
- import_react19.Menu.Items,
6910
+ /* @__PURE__ */ jsxs29(
6911
+ Menu.Items,
7063
6912
  {
7064
6913
  className: "absolute w-full z-10 rounded-b-lg bg-menu-background text-menu-text shadow-lg max-h-[500px] overflow-y-auto",
7065
6914
  children: [
7066
- (additionalItems ?? []).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6915
+ (additionalItems ?? []).map((item, index) => /* @__PURE__ */ jsx42(
7067
6916
  "div",
7068
6917
  {
7069
- className: (0, import_clsx33.default)(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
6918
+ className: clsx33(borderColor, "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0", {
7070
6919
  "border-b-0 rounded-b-lg": filteredOptions.length === 0 && index === (additionalItems?.length ?? 1) - 1
7071
6920
  }),
7072
6921
  children: item
7073
6922
  },
7074
6923
  `additionalItems${index}`
7075
6924
  )),
7076
- filteredOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react19.Menu.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6925
+ filteredOptions.map((option, index) => /* @__PURE__ */ jsx42(Menu.Item, { children: /* @__PURE__ */ jsx42(
7077
6926
  "div",
7078
6927
  {
7079
- className: (0, import_clsx33.default)(
6928
+ className: clsx33(
7080
6929
  "px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis border-2 border-t-0 cursor-pointer",
7081
6930
  option.className,
7082
6931
  borderColor,
@@ -7109,13 +6958,13 @@ var SelectUncontrolled = ({
7109
6958
  hintText,
7110
6959
  ...props
7111
6960
  }) => {
7112
- const [selected, setSelected] = (0, import_react20.useState)(value);
7113
- (0, import_react20.useEffect)(() => {
6961
+ const [selected, setSelected] = useState19(value);
6962
+ useEffect17(() => {
7114
6963
  if (options.find((options2) => options2.value === value)) {
7115
6964
  setSelected(value);
7116
6965
  }
7117
6966
  }, [options, value]);
7118
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6967
+ return /* @__PURE__ */ jsx42(
7119
6968
  Select,
7120
6969
  {
7121
6970
  value: selected,
@@ -7135,16 +6984,16 @@ var SearchableSelect = ({
7135
6984
  searchMapping,
7136
6985
  ...selectProps
7137
6986
  }) => {
7138
- const [search, setSearch] = (0, import_react20.useState)("");
6987
+ const [search, setSearch] = useState19("");
7139
6988
  const filteredOptions = MultiSearchWithMapping(search, options, searchMapping);
7140
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6989
+ return /* @__PURE__ */ jsx42(
7141
6990
  Select,
7142
6991
  {
7143
6992
  value,
7144
6993
  options: filteredOptions,
7145
- additionalItems: [/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "row gap-x-2 items-center", children: [
7146
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Input, { autoFocus: true, value: search, onChangeText: setSearch }),
7147
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react12.Search, {})
6994
+ additionalItems: [/* @__PURE__ */ jsxs29("div", { className: "row gap-x-2 items-center", children: [
6995
+ /* @__PURE__ */ jsx42(Input, { autoFocus: true, value: search, onChangeText: setSearch }),
6996
+ /* @__PURE__ */ jsx42(Search2, {})
7148
6997
  ] }, "selectSearch")],
7149
6998
  ...selectProps
7150
6999
  }
@@ -7152,7 +7001,7 @@ var SearchableSelect = ({
7152
7001
  };
7153
7002
 
7154
7003
  // src/components/modals/LanguageModal.tsx
7155
- var import_jsx_runtime43 = require("react/jsx-runtime");
7004
+ import { jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
7156
7005
  var defaultLanguageModalTranslation = {
7157
7006
  en: {
7158
7007
  title: "Language",
@@ -7175,7 +7024,7 @@ var LanguageModal = ({
7175
7024
  }) => {
7176
7025
  const { language, setLanguage } = useLanguage();
7177
7026
  const translation = useTranslation(defaultLanguageModalTranslation, overwriteTranslation);
7178
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7027
+ return /* @__PURE__ */ jsx43(
7179
7028
  Modal,
7180
7029
  {
7181
7030
  headerProps: {
@@ -7185,8 +7034,8 @@ var LanguageModal = ({
7185
7034
  },
7186
7035
  onClose,
7187
7036
  ...modalProps,
7188
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "w-64", children: [
7189
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7037
+ children: /* @__PURE__ */ jsxs30("div", { className: "w-64", children: [
7038
+ /* @__PURE__ */ jsx43(
7190
7039
  Select,
7191
7040
  {
7192
7041
  className: "mt-2",
@@ -7195,15 +7044,15 @@ var LanguageModal = ({
7195
7044
  onChange: (language2) => setLanguage(language2)
7196
7045
  }
7197
7046
  ),
7198
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
7047
+ /* @__PURE__ */ jsx43("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ jsx43(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
7199
7048
  ] })
7200
7049
  }
7201
7050
  );
7202
7051
  };
7203
7052
 
7204
7053
  // src/theming/useTheme.tsx
7205
- var import_react21 = require("react");
7206
- var import_jsx_runtime44 = require("react/jsx-runtime");
7054
+ import { createContext as createContext2, useContext as useContext2, useEffect as useEffect18, useState as useState20 } from "react";
7055
+ import { jsx as jsx44 } from "react/jsx-runtime";
7207
7056
  var themes = ["light", "dark"];
7208
7057
  var defaultThemeTypeTranslation = {
7209
7058
  en: {
@@ -7219,27 +7068,27 @@ var ThemeUtil = {
7219
7068
  themes,
7220
7069
  translation: defaultThemeTypeTranslation
7221
7070
  };
7222
- var ThemeContext = (0, import_react21.createContext)({
7071
+ var ThemeContext = createContext2({
7223
7072
  theme: "light",
7224
7073
  setTheme: noop
7225
7074
  });
7226
7075
  var ThemeProvider = ({ children, initialTheme = "light" }) => {
7227
- const [theme, setTheme] = (0, import_react21.useState)(initialTheme);
7228
- (0, import_react21.useEffect)(() => {
7076
+ const [theme, setTheme] = useState20(initialTheme);
7077
+ useEffect18(() => {
7229
7078
  if (theme !== initialTheme) {
7230
7079
  console.warn("ThemeProvider initial state changed: Prefer using useTheme's setTheme instead");
7231
7080
  setTheme(initialTheme);
7232
7081
  }
7233
7082
  }, [initialTheme]);
7234
- (0, import_react21.useEffect)(() => {
7083
+ useEffect18(() => {
7235
7084
  document.documentElement.setAttribute("data-theme", theme);
7236
7085
  }, [theme]);
7237
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ThemeContext.Provider, { value: { theme, setTheme }, children });
7086
+ return /* @__PURE__ */ jsx44(ThemeContext.Provider, { value: { theme, setTheme }, children });
7238
7087
  };
7239
- var useTheme = () => (0, import_react21.useContext)(ThemeContext);
7088
+ var useTheme = () => useContext2(ThemeContext);
7240
7089
 
7241
7090
  // src/components/modals/ThemeModal.tsx
7242
- var import_jsx_runtime45 = require("react/jsx-runtime");
7091
+ import { jsx as jsx45, jsxs as jsxs31 } from "react/jsx-runtime";
7243
7092
  var defaultConfirmDialogTranslation3 = {
7244
7093
  en: {
7245
7094
  title: "Theme",
@@ -7262,7 +7111,7 @@ var ThemeModal = ({
7262
7111
  }) => {
7263
7112
  const { theme, setTheme } = useTheme();
7264
7113
  const translation = useTranslation(defaultConfirmDialogTranslation3, overwriteTranslation);
7265
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7114
+ return /* @__PURE__ */ jsx45(
7266
7115
  Modal,
7267
7116
  {
7268
7117
  headerProps: {
@@ -7272,8 +7121,8 @@ var ThemeModal = ({
7272
7121
  },
7273
7122
  onClose,
7274
7123
  ...modalProps,
7275
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "w-64", children: [
7276
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
7124
+ children: /* @__PURE__ */ jsxs31("div", { className: "w-64", children: [
7125
+ /* @__PURE__ */ jsx45(
7277
7126
  Select,
7278
7127
  {
7279
7128
  className: "mt-2",
@@ -7282,19 +7131,19 @@ var ThemeModal = ({
7282
7131
  onChange: (theme2) => setTheme(theme2)
7283
7132
  }
7284
7133
  ),
7285
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
7134
+ /* @__PURE__ */ jsx45("div", { className: "row mt-3 gap-x-4 justify-end", children: /* @__PURE__ */ jsx45(SolidButton, { autoFocus: true, color: "positive", onClick: onClose, children: translation.done }) })
7286
7135
  ] })
7287
7136
  }
7288
7137
  );
7289
7138
  };
7290
7139
 
7291
7140
  // src/components/properties/CheckboxProperty.tsx
7292
- var import_lucide_react14 = require("lucide-react");
7141
+ import { Check as Check3 } from "lucide-react";
7293
7142
 
7294
7143
  // src/components/properties/PropertyBase.tsx
7295
- var import_lucide_react13 = require("lucide-react");
7296
- var import_clsx34 = __toESM(require("clsx"), 1);
7297
- var import_jsx_runtime46 = require("react/jsx-runtime");
7144
+ import { AlertTriangle } from "lucide-react";
7145
+ import clsx34 from "clsx";
7146
+ import { jsx as jsx46, jsxs as jsxs32 } from "react/jsx-runtime";
7298
7147
  var defaultPropertyBaseTranslation = {
7299
7148
  en: {
7300
7149
  remove: "Remove"
@@ -7316,11 +7165,11 @@ var PropertyBase = ({
7316
7165
  }) => {
7317
7166
  const translation = useTranslation(defaultPropertyBaseTranslation, overwriteTranslation);
7318
7167
  const requiredAndNoValue = softRequired && !hasValue;
7319
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: (0, import_clsx34.default)("row gap-x-0 group", className), children: [
7320
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7168
+ return /* @__PURE__ */ jsxs32("div", { className: clsx34("row gap-x-0 group", className), children: [
7169
+ /* @__PURE__ */ jsxs32(
7321
7170
  "div",
7322
7171
  {
7323
- className: (0, import_clsx34.default)("row gap-x-2 !w-[200px] px-4 py-2 items-center rounded-l-xl border-2 border-r-0", {
7172
+ className: clsx34("row gap-x-2 !w-[200px] px-4 py-2 items-center rounded-l-xl border-2 border-r-0", {
7324
7173
  "bg-gray-100 text-black group-hover:border-primary border-gray-400": !requiredAndNoValue,
7325
7174
  "bg-warning text-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
7326
7175
  }, className),
@@ -7330,22 +7179,22 @@ var PropertyBase = ({
7330
7179
  ]
7331
7180
  }
7332
7181
  ),
7333
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
7182
+ /* @__PURE__ */ jsxs32(
7334
7183
  "div",
7335
7184
  {
7336
- className: (0, import_clsx34.default)("row grow justify-between items-center rounded-r-xl border-2 border-l-0", {
7185
+ className: clsx34("row grow justify-between items-center rounded-r-xl border-2 border-l-0", {
7337
7186
  "bg-white group-hover:border-primary border-gray-400": !requiredAndNoValue,
7338
7187
  "bg-surface-warning group-hover:border-warning border-warning/90": requiredAndNoValue
7339
7188
  }, className),
7340
7189
  children: [
7341
7190
  input({ softRequired, hasValue }),
7342
- requiredAndNoValue && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-warning pr-4", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react13.AlertTriangle, { size: 24 }) }),
7343
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
7191
+ requiredAndNoValue && /* @__PURE__ */ jsx46("div", { className: "text-warning pr-4", children: /* @__PURE__ */ jsx46(AlertTriangle, { size: 24 }) }),
7192
+ onRemove && /* @__PURE__ */ jsx46(
7344
7193
  TextButton,
7345
7194
  {
7346
7195
  onClick: onRemove,
7347
7196
  color: "negative",
7348
- className: (0, import_clsx34.default)("pr-4 items-center", { "!text-transparent": !hasValue || readOnly }),
7197
+ className: clsx34("pr-4 items-center", { "!text-transparent": !hasValue || readOnly }),
7349
7198
  disabled: !hasValue || readOnly,
7350
7199
  children: translation.remove
7351
7200
  }
@@ -7357,7 +7206,7 @@ var PropertyBase = ({
7357
7206
  };
7358
7207
 
7359
7208
  // src/components/properties/CheckboxProperty.tsx
7360
- var import_jsx_runtime47 = require("react/jsx-runtime");
7209
+ import { jsx as jsx47 } from "react/jsx-runtime";
7361
7210
  var defaultCheckboxPropertyTranslation = {
7362
7211
  en: {
7363
7212
  yes: "Yes",
@@ -7376,14 +7225,14 @@ var CheckboxProperty = ({
7376
7225
  ...baseProps
7377
7226
  }) => {
7378
7227
  const translation = useTranslation(defaultCheckboxPropertyTranslation, overwriteTranslation);
7379
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7228
+ return /* @__PURE__ */ jsx47(
7380
7229
  PropertyBase,
7381
7230
  {
7382
7231
  ...baseProps,
7383
7232
  hasValue: true,
7384
7233
  readOnly,
7385
- icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react14.Check, { size: 16 }),
7386
- input: () => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "row py-2 px-4 items-center", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7234
+ icon: /* @__PURE__ */ jsx47(Check3, { size: 16 }),
7235
+ input: () => /* @__PURE__ */ jsx47("div", { className: "row py-2 px-4 items-center", children: /* @__PURE__ */ jsx47(
7387
7236
  Checkbox,
7388
7237
  {
7389
7238
  checked: value ?? true,
@@ -7397,9 +7246,9 @@ var CheckboxProperty = ({
7397
7246
  };
7398
7247
 
7399
7248
  // src/components/properties/DateProperty.tsx
7400
- var import_lucide_react15 = require("lucide-react");
7401
- var import_clsx35 = __toESM(require("clsx"), 1);
7402
- var import_jsx_runtime48 = require("react/jsx-runtime");
7249
+ import { CalendarDays } from "lucide-react";
7250
+ import clsx35 from "clsx";
7251
+ import { jsx as jsx48 } from "react/jsx-runtime";
7403
7252
  var DateProperty = ({
7404
7253
  value,
7405
7254
  onChange = noop,
@@ -7410,20 +7259,20 @@ var DateProperty = ({
7410
7259
  }) => {
7411
7260
  const hasValue = !!value;
7412
7261
  const dateText = value ? type === "dateTime" ? formatDateTime(value) : formatDate(value) : "";
7413
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7262
+ return /* @__PURE__ */ jsx48(
7414
7263
  PropertyBase,
7415
7264
  {
7416
7265
  ...baseProps,
7417
7266
  hasValue,
7418
- icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react15.CalendarDays, { size: 16 }),
7419
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7267
+ icon: /* @__PURE__ */ jsx48(CalendarDays, { size: 16 }),
7268
+ input: ({ softRequired }) => /* @__PURE__ */ jsx48(
7420
7269
  "div",
7421
7270
  {
7422
- className: (0, import_clsx35.default)("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired && !hasValue }),
7423
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7271
+ className: clsx35("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired && !hasValue }),
7272
+ children: /* @__PURE__ */ jsx48(
7424
7273
  Input,
7425
7274
  {
7426
- className: (0, import_clsx35.default)("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
7275
+ className: clsx35("!ring-0 !border-0 !outline-0 !p-0 !m-0 !shadow-none !w-fit !rounded-none", { "bg-surface-warning": softRequired && !hasValue }),
7427
7276
  value: dateText,
7428
7277
  type: type === "dateTime" ? "datetime-local" : "date",
7429
7278
  readOnly,
@@ -7446,22 +7295,22 @@ var DateProperty = ({
7446
7295
  };
7447
7296
 
7448
7297
  // src/components/properties/MultiSelectProperty.tsx
7449
- var import_lucide_react17 = require("lucide-react");
7450
- var import_clsx38 = __toESM(require("clsx"), 1);
7298
+ import { List } from "lucide-react";
7299
+ import clsx38 from "clsx";
7451
7300
 
7452
7301
  // src/components/user-action/MultiSelect.tsx
7453
- var import_react24 = require("react");
7454
- var import_lucide_react16 = require("lucide-react");
7455
- var import_clsx37 = __toESM(require("clsx"), 1);
7302
+ import { useState as useState21 } from "react";
7303
+ import { Search as Search3 } from "lucide-react";
7304
+ import clsx37 from "clsx";
7456
7305
 
7457
7306
  // src/components/user-action/Menu.tsx
7458
- var import_react23 = require("react");
7459
- var import_clsx36 = __toESM(require("clsx"), 1);
7307
+ import { useRef as useRef7 } from "react";
7308
+ import clsx36 from "clsx";
7460
7309
 
7461
7310
  // src/hooks/useOutsideClick.ts
7462
- var import_react22 = require("react");
7311
+ import { useEffect as useEffect19 } from "react";
7463
7312
  var useOutsideClick = (refs, handler) => {
7464
- (0, import_react22.useEffect)(() => {
7313
+ useEffect19(() => {
7465
7314
  const listener = (event) => {
7466
7315
  if (event.target === null) return;
7467
7316
  if (refs.some((ref) => !ref.current || ref.current.contains(event.target))) {
@@ -7479,16 +7328,16 @@ var useOutsideClick = (refs, handler) => {
7479
7328
  };
7480
7329
 
7481
7330
  // src/components/user-action/Menu.tsx
7482
- var import_jsx_runtime49 = require("react/jsx-runtime");
7331
+ import { jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
7483
7332
  var MenuItem = ({
7484
7333
  children,
7485
7334
  onClick,
7486
7335
  alignment = "left",
7487
7336
  className
7488
- }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7337
+ }) => /* @__PURE__ */ jsx49(
7489
7338
  "div",
7490
7339
  {
7491
- className: (0, import_clsx36.default)("block px-3 py-1 bg-menu-background text-menu-text hover:brightness-90", {
7340
+ className: clsx36("block px-3 py-1 bg-menu-background text-menu-text hover:brightness-90", {
7492
7341
  "text-right": alignment === "right",
7493
7342
  "text-left": alignment === "left"
7494
7343
  }, className),
@@ -7504,22 +7353,22 @@ var Menu2 = ({
7504
7353
  menuClassName = ""
7505
7354
  }) => {
7506
7355
  const { isHovered: isOpen, setIsHovered: setIsOpen, handlers } = useHoverState({ isDisabled: !showOnHover });
7507
- const triggerRef = (0, import_react23.useRef)(null);
7508
- const menuRef = (0, import_react23.useRef)(null);
7356
+ const triggerRef = useRef7(null);
7357
+ const menuRef = useRef7(null);
7509
7358
  useOutsideClick([triggerRef, menuRef], () => setIsOpen(false));
7510
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
7359
+ return /* @__PURE__ */ jsxs33(
7511
7360
  "div",
7512
7361
  {
7513
7362
  className: "relative",
7514
7363
  ...handlers,
7515
7364
  children: [
7516
7365
  trigger(() => setIsOpen(!isOpen), triggerRef),
7517
- isOpen ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7366
+ isOpen ? /* @__PURE__ */ jsx49(
7518
7367
  "div",
7519
7368
  {
7520
7369
  ref: menuRef,
7521
7370
  onClick: (e) => e.stopPropagation(),
7522
- className: (0, import_clsx36.default)("absolute top-full mt-1 py-2 w-60 rounded-lg bg-menu-background text-menu-text ring-1 ring-slate-900/5 text-sm leading-6 font-semibold shadow-md z-[1]", {
7371
+ className: clsx36("absolute top-full mt-1 py-2 w-60 rounded-lg bg-menu-background text-menu-text ring-1 ring-slate-900/5 text-sm leading-6 font-semibold shadow-md z-[1]", {
7523
7372
  " top-[8px]": alignment[0] === "t",
7524
7373
  " bottom-[8px]": alignment[0] === "b",
7525
7374
  " left-[-8px]": alignment[1] === "l",
@@ -7534,7 +7383,7 @@ var Menu2 = ({
7534
7383
  };
7535
7384
 
7536
7385
  // src/components/user-action/MultiSelect.tsx
7537
- var import_jsx_runtime50 = require("react/jsx-runtime");
7386
+ import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
7538
7387
  var defaultMultiSelectTranslation = {
7539
7388
  en: {
7540
7389
  select: "Select",
@@ -7561,7 +7410,7 @@ var MultiSelect = ({
7561
7410
  triggerClassName = ""
7562
7411
  }) => {
7563
7412
  const translation = useTranslation(defaultMultiSelectTranslation, overwriteTranslation);
7564
- const [searchText, setSearchText] = (0, import_react24.useState)(search?.initialSearch ?? "");
7413
+ const [searchText, setSearchText] = useState21(search?.initialSearch ?? "");
7565
7414
  let filteredOptions = options;
7566
7415
  const enableSearch = !!search;
7567
7416
  if (enableSearch && !!searchText) {
@@ -7575,28 +7424,28 @@ var MultiSelect = ({
7575
7424
  filteredOptions = filteredOptions.filter((value) => !value.disabled);
7576
7425
  }
7577
7426
  const selectedItems = options.filter((value) => value.selected);
7578
- const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: `${selectedItems.length} ${translation.selected}` });
7427
+ const menuButtonText = selectedItems.length === 0 ? hintText ?? translation.select : /* @__PURE__ */ jsx50("span", { children: `${selectedItems.length} ${translation.selected}` });
7579
7428
  const borderColor = "border-menu-border";
7580
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: (0, import_clsx37.default)(className), children: [
7581
- label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7429
+ return /* @__PURE__ */ jsxs34("div", { className: clsx37(className), children: [
7430
+ label && /* @__PURE__ */ jsx50(
7582
7431
  Label,
7583
7432
  {
7584
7433
  ...label,
7585
7434
  htmlFor: label.name,
7586
- className: (0, import_clsx37.default)(" mb-1", label.className),
7435
+ className: clsx37(" mb-1", label.className),
7587
7436
  labelType: label.labelType ?? "labelBig"
7588
7437
  }
7589
7438
  ),
7590
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7439
+ /* @__PURE__ */ jsxs34(
7591
7440
  Menu2,
7592
7441
  {
7593
7442
  alignment: "t_",
7594
- trigger: (onClick, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7443
+ trigger: (onClick, ref) => /* @__PURE__ */ jsx50(
7595
7444
  "div",
7596
7445
  {
7597
7446
  ref,
7598
7447
  onClick: disabled ? void 0 : onClick,
7599
- className: (0, import_clsx37.default)(
7448
+ className: clsx37(
7600
7449
  borderColor,
7601
7450
  "bg-menu-background text-menu-text inline-w-full justify-between items-center rounded-lg border-2 px-4 py-2 font-medium",
7602
7451
  {
@@ -7608,27 +7457,27 @@ var MultiSelect = ({
7608
7457
  children: selectedDisplay ? selectedDisplay({ items: options, disabled }) : menuButtonText
7609
7458
  }
7610
7459
  ),
7611
- menuClassName: (0, import_clsx37.default)(
7460
+ menuClassName: clsx37(
7612
7461
  "!rounded-lg !shadow-lg !max-h-[500px] !min-w-[400px] !max-w-[70vh] !overflow-y-auto !border !border-2",
7613
7462
  borderColor,
7614
7463
  { "!py-0": !enableSearch, "!pb-0": enableSearch }
7615
7464
  ),
7616
7465
  children: [
7617
- enableSearch && /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "row gap-x-2 items-center px-2 py-2", children: [
7618
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Input, { autoFocus: true, className: "w-full", value: searchText, onChangeText: setSearchText }),
7619
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react16.Search, {})
7466
+ enableSearch && /* @__PURE__ */ jsxs34("div", { className: "row gap-x-2 items-center px-2 py-2", children: [
7467
+ /* @__PURE__ */ jsx50(Input, { autoFocus: true, className: "w-full", value: searchText, onChangeText: setSearchText }),
7468
+ /* @__PURE__ */ jsx50(Search3, {})
7620
7469
  ] }, "selectSearch"),
7621
- filteredOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7470
+ filteredOptions.map((option, index) => /* @__PURE__ */ jsx50(
7622
7471
  MenuItem,
7623
7472
  {
7624
- className: (0, import_clsx37.default)({
7473
+ className: clsx37({
7625
7474
  "cursor-not-allowed !bg-disabled-background !text-disabled-text hover:brightness-100": !!option.disabled,
7626
7475
  "cursor-pointer": !option.disabled
7627
7476
  }),
7628
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
7477
+ children: /* @__PURE__ */ jsxs34(
7629
7478
  "div",
7630
7479
  {
7631
- className: (0, import_clsx37.default)("overflow-hidden whitespace-nowrap text-ellipsis row items-center gap-x-2", option.className),
7480
+ className: clsx37("overflow-hidden whitespace-nowrap text-ellipsis row items-center gap-x-2", option.className),
7632
7481
  onClick: () => {
7633
7482
  if (!option.disabled) {
7634
7483
  onChange(options.map((value) => value.value === option.value ? {
@@ -7638,7 +7487,7 @@ var MultiSelect = ({
7638
7487
  }
7639
7488
  },
7640
7489
  children: [
7641
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Checkbox, { checked: option.selected, disabled: option.disabled, size: "small" }),
7490
+ /* @__PURE__ */ jsx50(Checkbox, { checked: option.selected, disabled: option.disabled, size: "small" }),
7642
7491
  option.label
7643
7492
  ]
7644
7493
  }
@@ -7653,7 +7502,7 @@ var MultiSelect = ({
7653
7502
  };
7654
7503
 
7655
7504
  // src/components/properties/MultiSelectProperty.tsx
7656
- var import_jsx_runtime51 = require("react/jsx-runtime");
7505
+ import { jsx as jsx51 } from "react/jsx-runtime";
7657
7506
  var defaultMultiSelectPropertyTranslation = {
7658
7507
  en: {
7659
7508
  select: "Select"
@@ -7677,7 +7526,7 @@ var MultiSelectProperty = ({
7677
7526
  if (softRequired && !hasValue) {
7678
7527
  triggerClassName = "border-warning hover:brightness-90";
7679
7528
  }
7680
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7529
+ return /* @__PURE__ */ jsx51(
7681
7530
  PropertyBase,
7682
7531
  {
7683
7532
  name,
@@ -7685,23 +7534,23 @@ var MultiSelectProperty = ({
7685
7534
  readOnly,
7686
7535
  softRequired,
7687
7536
  hasValue,
7688
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react17.List, { size: 16 }),
7689
- input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7537
+ icon: /* @__PURE__ */ jsx51(List, { size: 16 }),
7538
+ input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ jsx51(
7690
7539
  "div",
7691
7540
  {
7692
- className: (0, import_clsx38.default)("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
7693
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7541
+ className: clsx38("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
7542
+ children: /* @__PURE__ */ jsx51(
7694
7543
  MultiSelect,
7695
7544
  {
7696
7545
  ...multiSelectProps,
7697
- className: (0, import_clsx38.default)("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
7546
+ className: clsx38("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
7698
7547
  triggerClassName,
7699
7548
  selectedDisplay: ({ items }) => {
7700
7549
  const selected = items.filter((value) => value.selected);
7701
7550
  if (selected.length === 0) {
7702
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: "Select" });
7551
+ return /* @__PURE__ */ jsx51("span", { children: "Select" });
7703
7552
  }
7704
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChipList, { list: selected.map((value) => ({ children: value.label })) });
7553
+ return /* @__PURE__ */ jsx51(ChipList, { list: selected.map((value) => ({ children: value.label })) });
7705
7554
  },
7706
7555
  options,
7707
7556
  disabled: readOnly,
@@ -7715,9 +7564,9 @@ var MultiSelectProperty = ({
7715
7564
  };
7716
7565
 
7717
7566
  // src/components/properties/NumberProperty.tsx
7718
- var import_lucide_react18 = require("lucide-react");
7719
- var import_clsx39 = __toESM(require("clsx"), 1);
7720
- var import_jsx_runtime52 = require("react/jsx-runtime");
7567
+ import { Binary } from "lucide-react";
7568
+ import clsx39 from "clsx";
7569
+ import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
7721
7570
  var defaultNumberPropertyTranslation = {
7722
7571
  en: {
7723
7572
  value: "Value"
@@ -7738,23 +7587,23 @@ var NumberProperty = ({
7738
7587
  }) => {
7739
7588
  const translation = useTranslation(defaultNumberPropertyTranslation, overwriteTranslation);
7740
7589
  const hasValue = value !== void 0;
7741
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7590
+ return /* @__PURE__ */ jsx52(
7742
7591
  PropertyBase,
7743
7592
  {
7744
7593
  ...baseProps,
7745
7594
  onRemove,
7746
7595
  hasValue,
7747
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react18.Binary, { size: 16 }),
7748
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7596
+ icon: /* @__PURE__ */ jsx52(Binary, { size: 16 }),
7597
+ input: ({ softRequired }) => /* @__PURE__ */ jsxs35(
7749
7598
  "div",
7750
7599
  {
7751
- className: (0, import_clsx39.default)("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired && !hasValue }),
7600
+ className: clsx39("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired && !hasValue }),
7752
7601
  children: [
7753
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7602
+ /* @__PURE__ */ jsx52(
7754
7603
  Input,
7755
7604
  {
7756
7605
  expanded: false,
7757
- 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 }),
7606
+ className: clsx39("!ring-0 !border-0 !outline-0 !p-0 !m-0 !w-fit !shadow-none !rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
7758
7607
  value: value?.toString() ?? "",
7759
7608
  type: "number",
7760
7609
  readOnly,
@@ -7777,7 +7626,7 @@ var NumberProperty = ({
7777
7626
  }
7778
7627
  }
7779
7628
  ),
7780
- suffix && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: (0, import_clsx39.default)("ml-1", { "bg-surface-warning": softRequired && !hasValue }), children: suffix })
7629
+ suffix && /* @__PURE__ */ jsx52("span", { className: clsx39("ml-1", { "bg-surface-warning": softRequired && !hasValue }), children: suffix })
7781
7630
  ]
7782
7631
  }
7783
7632
  )
@@ -7786,9 +7635,9 @@ var NumberProperty = ({
7786
7635
  };
7787
7636
 
7788
7637
  // src/components/properties/SelectProperty.tsx
7789
- var import_lucide_react19 = require("lucide-react");
7790
- var import_clsx40 = __toESM(require("clsx"), 1);
7791
- var import_jsx_runtime53 = require("react/jsx-runtime");
7638
+ import { List as List2 } from "lucide-react";
7639
+ import clsx40 from "clsx";
7640
+ import { jsx as jsx53 } from "react/jsx-runtime";
7792
7641
  var defaultSingleSelectPropertyTranslation = {
7793
7642
  en: {
7794
7643
  select: "Select"
@@ -7809,7 +7658,7 @@ var SingleSelectProperty = ({
7809
7658
  }) => {
7810
7659
  const translation = useTranslation(defaultSingleSelectPropertyTranslation, overwriteTranslation);
7811
7660
  const hasValue = value !== void 0;
7812
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7661
+ return /* @__PURE__ */ jsx53(
7813
7662
  PropertyBase,
7814
7663
  {
7815
7664
  name,
@@ -7817,19 +7666,19 @@ var SingleSelectProperty = ({
7817
7666
  readOnly,
7818
7667
  softRequired,
7819
7668
  hasValue,
7820
- icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react19.List, { size: 16 }),
7821
- input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7669
+ icon: /* @__PURE__ */ jsx53(List2, { size: 16 }),
7670
+ input: ({ softRequired: softRequired2 }) => /* @__PURE__ */ jsx53(
7822
7671
  "div",
7823
7672
  {
7824
- className: (0, import_clsx40.default)("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
7825
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7673
+ className: clsx40("row grow py-2 px-4 cursor-pointer", { "text-warning": softRequired2 && !hasValue }),
7674
+ children: /* @__PURE__ */ jsx53(
7826
7675
  SearchableSelect,
7827
7676
  {
7828
7677
  ...multiSelectProps,
7829
7678
  value,
7830
7679
  options,
7831
7680
  isDisabled: readOnly,
7832
- className: (0, import_clsx40.default)("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
7681
+ className: clsx40("w-full", { "bg-surface-warning": softRequired2 && !hasValue }),
7833
7682
  hintText: `${translation.select}...`
7834
7683
  }
7835
7684
  )
@@ -7840,13 +7689,13 @@ var SingleSelectProperty = ({
7840
7689
  };
7841
7690
 
7842
7691
  // src/components/properties/TextProperty.tsx
7843
- var import_lucide_react20 = require("lucide-react");
7844
- var import_clsx42 = __toESM(require("clsx"), 1);
7692
+ import { Text } from "lucide-react";
7693
+ import clsx42 from "clsx";
7845
7694
 
7846
7695
  // src/components/user-action/Textarea.tsx
7847
- var import_react25 = require("react");
7848
- var import_clsx41 = __toESM(require("clsx"), 1);
7849
- var import_jsx_runtime54 = require("react/jsx-runtime");
7696
+ import { useEffect as useEffect20, useState as useState22 } from "react";
7697
+ import clsx41 from "clsx";
7698
+ import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
7850
7699
  var Textarea = ({
7851
7700
  label,
7852
7701
  headline,
@@ -7861,33 +7710,33 @@ var Textarea = ({
7861
7710
  className,
7862
7711
  ...props
7863
7712
  }) => {
7864
- const [hasFocus, setHasFocus] = (0, import_react25.useState)(false);
7713
+ const [hasFocus, setHasFocus] = useState22(false);
7865
7714
  const { restartTimer, clearUpdateTimer } = useSaveDelay(() => void 0, 3e3);
7866
7715
  const onEditCompletedWrapper = (text) => {
7867
7716
  onEditCompleted(text);
7868
7717
  clearUpdateTimer();
7869
7718
  };
7870
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "w-full", children: [
7871
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7719
+ return /* @__PURE__ */ jsxs36("div", { className: "w-full", children: [
7720
+ label && /* @__PURE__ */ jsx54(
7872
7721
  Label,
7873
7722
  {
7874
7723
  ...label,
7875
7724
  htmlFor: id,
7876
- className: (0, import_clsx41.default)("mb-1", label.className),
7725
+ className: clsx41("mb-1", label.className),
7877
7726
  labelType: label.labelType ?? "labelSmall"
7878
7727
  }
7879
7728
  ),
7880
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
7729
+ /* @__PURE__ */ jsxs36(
7881
7730
  "div",
7882
7731
  {
7883
- className: `${(0, import_clsx41.default)(" bg-surface text-on-surface focus-within:border-primary relative", { "shadow border-2 border-gray-300 hover:border-primary rounded-lg": defaultStyle })}`,
7732
+ className: `${clsx41(" bg-surface text-on-surface focus-within:border-primary relative", { "shadow border-2 border-gray-300 hover:border-primary rounded-lg": defaultStyle })}`,
7884
7733
  children: [
7885
- headline && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "mx-3 mt-3 block text-gray-700 font-bold", children: headline }),
7886
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7734
+ headline && /* @__PURE__ */ jsx54("span", { className: "mx-3 mt-3 block text-gray-700 font-bold", children: headline }),
7735
+ /* @__PURE__ */ jsx54(
7887
7736
  "textarea",
7888
7737
  {
7889
7738
  id,
7890
- className: (0, import_clsx41.default)("pt-0 px-3 border-transparent focus:border-transparent focus:ring-0 appearance-none border w-full leading-tight focus:outline-none", {
7739
+ className: clsx41("pt-0 px-3 border-transparent focus:border-transparent focus:ring-0 appearance-none border w-full leading-tight focus:outline-none", {
7891
7740
  "resize-none": !resizable,
7892
7741
  "h-32": defaultStyle,
7893
7742
  "mt-3": !headline
@@ -7914,7 +7763,7 @@ var Textarea = ({
7914
7763
  ]
7915
7764
  }
7916
7765
  ),
7917
- hasFocus && disclaimer && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("label", { className: "text-negative", children: disclaimer })
7766
+ hasFocus && disclaimer && /* @__PURE__ */ jsx54("label", { className: "text-negative", children: disclaimer })
7918
7767
  ] });
7919
7768
  };
7920
7769
  var TextareaUncontrolled = ({
@@ -7922,11 +7771,11 @@ var TextareaUncontrolled = ({
7922
7771
  onChangeText = noop,
7923
7772
  ...props
7924
7773
  }) => {
7925
- const [text, setText] = (0, import_react25.useState)(value);
7926
- (0, import_react25.useEffect)(() => {
7774
+ const [text, setText] = useState22(value);
7775
+ useEffect20(() => {
7927
7776
  setText(value);
7928
7777
  }, [value]);
7929
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7778
+ return /* @__PURE__ */ jsx54(
7930
7779
  Textarea,
7931
7780
  {
7932
7781
  ...props,
@@ -7940,7 +7789,7 @@ var TextareaUncontrolled = ({
7940
7789
  };
7941
7790
 
7942
7791
  // src/components/properties/TextProperty.tsx
7943
- var import_jsx_runtime55 = require("react/jsx-runtime");
7792
+ import { jsx as jsx55 } from "react/jsx-runtime";
7944
7793
  var defaultTextPropertyTranslation = {
7945
7794
  en: {
7946
7795
  value: "Text"
@@ -7960,21 +7809,21 @@ var TextProperty = ({
7960
7809
  }) => {
7961
7810
  const translation = useTranslation(defaultTextPropertyTranslation, overwriteTranslation);
7962
7811
  const hasValue = value !== void 0;
7963
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7812
+ return /* @__PURE__ */ jsx55(
7964
7813
  PropertyBase,
7965
7814
  {
7966
7815
  ...baseProps,
7967
7816
  onRemove,
7968
7817
  hasValue,
7969
- icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react20.Text, { size: 16 }),
7970
- input: ({ softRequired }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7818
+ icon: /* @__PURE__ */ jsx55(Text, { size: 16 }),
7819
+ input: ({ softRequired }) => /* @__PURE__ */ jsx55(
7971
7820
  "div",
7972
7821
  {
7973
- className: (0, import_clsx42.default)("row grow pt-2 pb-1 px-4 cursor-pointer", { "text-warning": softRequired && !hasValue }),
7974
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7822
+ className: clsx42("row grow pt-2 pb-1 px-4 cursor-pointer", { "text-warning": softRequired && !hasValue }),
7823
+ children: /* @__PURE__ */ jsx55(
7975
7824
  Textarea,
7976
7825
  {
7977
- className: (0, import_clsx42.default)("ring-0 border-0 outline-0 p-0 m-0 shadow-none rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
7826
+ className: clsx42("ring-0 border-0 outline-0 p-0 m-0 shadow-none rounded-none", { "bg-surface-warning placeholder-warning": softRequired && !hasValue }),
7978
7827
  rows: 5,
7979
7828
  defaultStyle: false,
7980
7829
  value: value ?? "",
@@ -8003,8 +7852,8 @@ var TextProperty = ({
8003
7852
  };
8004
7853
 
8005
7854
  // src/components/user-action/DateAndTimePicker.tsx
8006
- var import_clsx43 = __toESM(require("clsx"), 1);
8007
- var import_jsx_runtime56 = require("react/jsx-runtime");
7855
+ import clsx43 from "clsx";
7856
+ import { jsx as jsx56, jsxs as jsxs37 } from "react/jsx-runtime";
8008
7857
  var defaultTimeTranslation = {
8009
7858
  en: {
8010
7859
  clear: "Clear",
@@ -8063,7 +7912,7 @@ var DateTimePicker = ({
8063
7912
  let dateDisplay;
8064
7913
  let timeDisplay;
8065
7914
  if (useDate) {
8066
- dateDisplay = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7915
+ dateDisplay = /* @__PURE__ */ jsx56(
8067
7916
  DatePicker,
8068
7917
  {
8069
7918
  ...datePickerProps,
@@ -8077,25 +7926,25 @@ var DateTimePicker = ({
8077
7926
  );
8078
7927
  }
8079
7928
  if (useTime) {
8080
- timeDisplay = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7929
+ timeDisplay = /* @__PURE__ */ jsx56(
8081
7930
  TimePicker,
8082
7931
  {
8083
7932
  ...timePickerProps,
8084
- className: (0, import_clsx43.default)("h-full", { "justify-between w-full": mode === "time" }),
7933
+ className: clsx43("h-full", { "justify-between w-full": mode === "time" }),
8085
7934
  maxHeight: 250,
8086
7935
  time: value,
8087
7936
  onChange
8088
7937
  }
8089
7938
  );
8090
7939
  }
8091
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "col w-fit", children: [
8092
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "row gap-x-4", children: [
7940
+ return /* @__PURE__ */ jsxs37("div", { className: "col w-fit", children: [
7941
+ /* @__PURE__ */ jsxs37("div", { className: "row gap-x-4", children: [
8093
7942
  dateDisplay,
8094
7943
  timeDisplay
8095
7944
  ] }),
8096
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "row justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "row gap-x-2 mt-1", children: [
8097
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation.clear }),
8098
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7945
+ /* @__PURE__ */ jsx56("div", { className: "row justify-end", children: /* @__PURE__ */ jsxs37("div", { className: "row gap-x-2 mt-1", children: [
7946
+ /* @__PURE__ */ jsx56(SolidButton, { size: "medium", color: "negative", onClick: onRemove, children: translation.clear }),
7947
+ /* @__PURE__ */ jsx56(
8099
7948
  SolidButton,
8100
7949
  {
8101
7950
  size: "medium",
@@ -8108,9 +7957,9 @@ var DateTimePicker = ({
8108
7957
  };
8109
7958
 
8110
7959
  // src/components/user-action/ScrollPicker.tsx
8111
- var import_react26 = require("react");
8112
- var import_clsx44 = __toESM(require("clsx"), 1);
8113
- var import_jsx_runtime57 = require("react/jsx-runtime");
7960
+ import { useCallback as useCallback4, useEffect as useEffect21, useState as useState23 } from "react";
7961
+ import clsx44 from "clsx";
7962
+ import { jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
8114
7963
  var up = 1;
8115
7964
  var down = -1;
8116
7965
  var ScrollPicker = ({
@@ -8129,7 +7978,7 @@ var ScrollPicker = ({
8129
7978
  transition,
8130
7979
  items,
8131
7980
  lastTimeStamp
8132
- }, setAnimation] = (0, import_react26.useState)({
7981
+ }, setAnimation] = useState23({
8133
7982
  targetIndex: selectedIndex,
8134
7983
  currentIndex: disabled ? selectedIndex : 0,
8135
7984
  velocity: 0,
@@ -8145,7 +7994,7 @@ var ScrollPicker = ({
8145
7994
  const itemHeight = 40;
8146
7995
  const distance = 8;
8147
7996
  const containerHeight = itemHeight * (itemsShownCount - 2) + distance * (itemsShownCount - 2 + 1);
8148
- const getDirection = (0, import_react26.useCallback)((targetIndex, currentIndex2, transition2, length) => {
7997
+ const getDirection = useCallback4((targetIndex, currentIndex2, transition2, length) => {
8149
7998
  if (targetIndex === currentIndex2) {
8150
7999
  return transition2 > 0 ? up : down;
8151
8000
  }
@@ -8155,7 +8004,7 @@ var ScrollPicker = ({
8155
8004
  }
8156
8005
  return distanceForward >= length / 2 ? down : up;
8157
8006
  }, []);
8158
- const animate = (0, import_react26.useCallback)((timestamp, startTime) => {
8007
+ const animate = useCallback4((timestamp, startTime) => {
8159
8008
  setAnimation((prevState) => {
8160
8009
  const {
8161
8010
  targetIndex,
@@ -8228,7 +8077,7 @@ var ScrollPicker = ({
8228
8077
  };
8229
8078
  });
8230
8079
  }, [disabled, getDirection, onChange]);
8231
- (0, import_react26.useEffect)(() => {
8080
+ useEffect21(() => {
8232
8081
  requestAnimationFrame((timestamp) => animate(timestamp, lastTimeStamp));
8233
8082
  });
8234
8083
  const opacity = (transition2, index, itemsCount) => {
@@ -8249,7 +8098,7 @@ var ScrollPicker = ({
8249
8098
  }
8250
8099
  return clamp(1 - opacityValue / max);
8251
8100
  };
8252
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8101
+ return /* @__PURE__ */ jsx57(
8253
8102
  "div",
8254
8103
  {
8255
8104
  className: "relative overflow-hidden",
@@ -8259,15 +8108,15 @@ var ScrollPicker = ({
8259
8108
  setAnimation(({ velocity, ...animationData }) => ({ ...animationData, velocity: velocity + event.deltaY }));
8260
8109
  }
8261
8110
  },
8262
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
8263
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8111
+ children: /* @__PURE__ */ jsxs38("div", { className: "absolute top-1/2 -translate-y-1/2 -translate-x-1/2 left-1/2", children: [
8112
+ /* @__PURE__ */ jsx57(
8264
8113
  "div",
8265
8114
  {
8266
8115
  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-y-2 border-x-0 border-[#00000033]",
8267
8116
  style: { height: `${itemHeight}px` }
8268
8117
  }
8269
8118
  ),
8270
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8119
+ /* @__PURE__ */ jsx57(
8271
8120
  "div",
8272
8121
  {
8273
8122
  className: "col select-none",
@@ -8275,10 +8124,10 @@ var ScrollPicker = ({
8275
8124
  transform: `translateY(${-transition * (distance + itemHeight)}px)`,
8276
8125
  columnGap: `${distance}px`
8277
8126
  },
8278
- children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8127
+ children: shownItems.map(({ name, index }, arrayIndex) => /* @__PURE__ */ jsx57(
8279
8128
  "div",
8280
8129
  {
8281
- className: (0, import_clsx44.default)(
8130
+ className: clsx44(
8282
8131
  `col items-center justify-center rounded-md`,
8283
8132
  {
8284
8133
  "text-primary font-bold": currentIndex === index,
@@ -8305,10 +8154,10 @@ var ScrollPicker = ({
8305
8154
  };
8306
8155
 
8307
8156
  // src/components/user-action/ToggleableInput.tsx
8308
- var import_react27 = require("react");
8309
- var import_lucide_react21 = require("lucide-react");
8310
- var import_clsx45 = __toESM(require("clsx"), 1);
8311
- var import_jsx_runtime58 = require("react/jsx-runtime");
8157
+ import { useEffect as useEffect22, useRef as useRef8, useState as useState24 } from "react";
8158
+ import { Pencil } from "lucide-react";
8159
+ import clsx45 from "clsx";
8160
+ import { jsx as jsx58, jsxs as jsxs39 } from "react/jsx-runtime";
8312
8161
  var ToggleableInput = ({
8313
8162
  type = "text",
8314
8163
  value,
@@ -8322,26 +8171,26 @@ var ToggleableInput = ({
8322
8171
  onBlur,
8323
8172
  ...restProps
8324
8173
  }) => {
8325
- const [isEditing, setIsEditing] = (0, import_react27.useState)(initialState !== "display");
8174
+ const [isEditing, setIsEditing] = useState24(initialState !== "display");
8326
8175
  const { restartTimer, clearUpdateTimer } = useSaveDelay(() => void 0, 3e3);
8327
- const ref = (0, import_react27.useRef)(null);
8176
+ const ref = useRef8(null);
8328
8177
  const onEditCompletedWrapper = (text) => {
8329
8178
  onEditCompleted(text);
8330
8179
  clearUpdateTimer();
8331
8180
  };
8332
- (0, import_react27.useEffect)(() => {
8181
+ useEffect22(() => {
8333
8182
  if (isEditing) {
8334
8183
  ref.current?.focus();
8335
8184
  }
8336
8185
  }, [isEditing]);
8337
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
8338
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
8186
+ return /* @__PURE__ */ jsxs39("div", { children: [
8187
+ /* @__PURE__ */ jsxs39(
8339
8188
  "div",
8340
8189
  {
8341
- className: (0, import_clsx45.default)("row items-center w-full gap-x-2 overflow-hidden", { "cursor-pointer": !isEditing }),
8190
+ className: clsx45("row items-center w-full gap-x-2 overflow-hidden", { "cursor-pointer": !isEditing }),
8342
8191
  onClick: () => !isEditing ? setIsEditing(!isEditing) : void 0,
8343
8192
  children: [
8344
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: (0, import_clsx45.default)("row overflow-hidden", { "flex-1": isEditing }), children: isEditing ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8193
+ /* @__PURE__ */ jsx58("div", { className: clsx45("row overflow-hidden", { "flex-1": isEditing }), children: isEditing ? /* @__PURE__ */ jsx58(
8345
8194
  "input",
8346
8195
  {
8347
8196
  ref,
@@ -8369,16 +8218,16 @@ var ToggleableInput = ({
8369
8218
  onEditCompletedWrapper(value);
8370
8219
  }
8371
8220
  },
8372
- className: (0, import_clsx45.default)(`w-full border-none rounded-none ring-0 outline-0 text-inherit bg-inherit shadow-transparent decoration-primary p-0 underline-offset-4`, {
8221
+ className: clsx45(`w-full border-none rounded-none ring-0 outline-0 text-inherit bg-inherit shadow-transparent decoration-primary p-0 underline-offset-4`, {
8373
8222
  underline: isEditing
8374
8223
  }, labelClassName),
8375
8224
  onFocus: (event) => event.target.select()
8376
8225
  }
8377
- ) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: (0, import_clsx45.default)("max-w-xs break-words overflow-hidden", labelClassName), children: value }) }),
8378
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8379
- import_lucide_react21.Pencil,
8226
+ ) : /* @__PURE__ */ jsx58("span", { className: clsx45("max-w-xs break-words overflow-hidden", labelClassName), children: value }) }),
8227
+ /* @__PURE__ */ jsx58(
8228
+ Pencil,
8380
8229
  {
8381
- className: (0, import_clsx45.default)(`cursor-pointer`, { "text-transparent": isEditing }),
8230
+ className: clsx45(`cursor-pointer`, { "text-transparent": isEditing }),
8382
8231
  size,
8383
8232
  style: { minWidth: `${size}px` }
8384
8233
  }
@@ -8386,7 +8235,7 @@ var ToggleableInput = ({
8386
8235
  ]
8387
8236
  }
8388
8237
  ),
8389
- isEditing && disclaimer && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("label", { className: "text-negative", children: disclaimer })
8238
+ isEditing && disclaimer && /* @__PURE__ */ jsx58("label", { className: "text-negative", children: disclaimer })
8390
8239
  ] });
8391
8240
  };
8392
8241
  var ToggleableInputUncontrolled = ({
@@ -8394,11 +8243,11 @@ var ToggleableInputUncontrolled = ({
8394
8243
  onChangeText = noop,
8395
8244
  ...restProps
8396
8245
  }) => {
8397
- const [value, setValue] = (0, import_react27.useState)(initialValue);
8398
- (0, import_react27.useEffect)(() => {
8246
+ const [value, setValue] = useState24(initialValue);
8247
+ useEffect22(() => {
8399
8248
  setValue(initialValue);
8400
8249
  }, [initialValue]);
8401
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8250
+ return /* @__PURE__ */ jsx58(
8402
8251
  ToggleableInput,
8403
8252
  {
8404
8253
  value,
@@ -8423,14 +8272,14 @@ var validateEmail = (email) => {
8423
8272
  };
8424
8273
 
8425
8274
  // src/util/news.ts
8426
- var import_zod = require("zod");
8427
- var newsSchema = import_zod.z.object({
8428
- title: import_zod.z.string(),
8429
- description: import_zod.z.string(),
8430
- date: import_zod.z.string(),
8431
- image: import_zod.z.string().url().optional(),
8432
- externalResource: import_zod.z.string().url().optional(),
8433
- keys: import_zod.z.array(import_zod.z.string())
8275
+ import { z } from "zod";
8276
+ var newsSchema = z.object({
8277
+ title: z.string(),
8278
+ description: z.string(),
8279
+ date: z.string(),
8280
+ image: z.string().url().optional(),
8281
+ externalResource: z.string().url().optional(),
8282
+ keys: z.array(z.string())
8434
8283
  }).transform((obj) => {
8435
8284
  let description = [obj.description];
8436
8285
  if (obj.image) {
@@ -8444,13 +8293,12 @@ var newsSchema = import_zod.z.object({
8444
8293
  keys: obj.keys
8445
8294
  };
8446
8295
  });
8447
- var newsListSchema = import_zod.z.array(newsSchema);
8448
- var localizedNewsSchema = import_zod.z.record(import_zod.z.enum(LanguageUtil.languages), newsListSchema);
8296
+ var newsListSchema = z.array(newsSchema);
8297
+ var localizedNewsSchema = z.record(z.enum(LanguageUtil.languages), newsListSchema);
8449
8298
  var filterNews = (localizedNews, requiredKeys) => {
8450
8299
  return localizedNews.filter((news) => requiredKeys.every((value) => news.keys.includes(value)));
8451
8300
  };
8452
- // Annotate the CommonJS export names for ESM import in node:
8453
- 0 && (module.exports = {
8301
+ export {
8454
8302
  ASTNodeInterpreter,
8455
8303
  AnimatedRing,
8456
8304
  ArrayUtil,
@@ -8500,7 +8348,7 @@ var filterNews = (localizedNews, requiredKeys) => {
8500
8348
  LocalStorageService,
8501
8349
  LoopingArrayCalculator,
8502
8350
  MarkdownInterpreter,
8503
- Menu,
8351
+ Menu2 as Menu,
8504
8352
  MenuItem,
8505
8353
  Modal,
8506
8354
  MultiSearchWithMapping,
@@ -8597,5 +8445,5 @@ var filterNews = (localizedNews, requiredKeys) => {
8597
8445
  useTranslation,
8598
8446
  validateEmail,
8599
8447
  weekDayList
8600
- });
8601
- //# sourceMappingURL=index.cjs.map
8448
+ };
8449
+ //# sourceMappingURL=index.mjs.map