@povio/ui 3.4.0-rc.2 → 3.4.0-rc.20

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 (1105) hide show
  1. package/README.md +32 -2
  2. package/dist/Accordion-CgNQw-pZ.d.ts +58 -0
  3. package/dist/Accordion-DT1wcBFP.js +552 -0
  4. package/dist/ActionModal-DLeVinly.d.ts +26 -0
  5. package/dist/Alert-1gjUqXaO.js +240 -0
  6. package/dist/Alert-C0GAvkdO.d.ts +33 -0
  7. package/dist/Autocomplete-CYT1Vk1F.d.ts +15 -0
  8. package/dist/BottomSheet-BWKej2PR.d.ts +34 -0
  9. package/dist/BottomSheet-Cwci3M8j.js +448 -0
  10. package/dist/Breadcrumbs-DrmLNtmQ.js +534 -0
  11. package/dist/Breadcrumbs-pSLRyeOe.d.ts +19 -0
  12. package/dist/Button-C_FOjIn-.d.ts +30 -0
  13. package/dist/Button-Cq7t4Xxl.js +160 -0
  14. package/dist/Button-Dlm1NyTJ.js +690 -0
  15. package/dist/ButtonContent-17xvQXod.js +122 -0
  16. package/dist/Calendar-C9Dbdkkl.js +654 -0
  17. package/dist/CheckContent-DzWpxKGq.js +19 -0
  18. package/dist/Checkbox-DyEipBjR.js +403 -0
  19. package/dist/Checkbox-Ee9K3u2J.d.ts +24 -0
  20. package/dist/CheckboxCheckmark-C7Oq15ms.js +195 -0
  21. package/dist/CheckboxGroup-D-sNgUMN.d.ts +28 -0
  22. package/dist/DatePicker-DM_tCN-6.js +426 -0
  23. package/dist/DatePicker-DclmenVd.d.ts +43 -0
  24. package/dist/DatePickerInput-BC-q8HcY.d.ts +18 -0
  25. package/dist/DatePickerInput-C2z1kgaC.js +598 -0
  26. package/dist/DateRangePicker-BmScgvEH.js +1322 -0
  27. package/dist/DateRangePicker-DjkIlnMl.d.ts +47 -0
  28. package/dist/DateTimePicker-CAFB33ih.js +380 -0
  29. package/dist/DateTimePicker-aDvcYnVk.d.ts +42 -0
  30. package/dist/Dialog-BQN4Z3bO.js +4505 -0
  31. package/dist/Drawer-DnSLe85M.d.ts +18 -0
  32. package/dist/FileTrigger-eHfAkdXd.js +2186 -0
  33. package/dist/FileUpload-CHgnF4Nm.d.ts +7 -0
  34. package/dist/FileUpload-Cb--_Mbk.js +766 -0
  35. package/dist/FileUploadContainer-Co33mh7x.d.ts +5 -0
  36. package/dist/Form-B4Sbjn__.d.ts +49 -0
  37. package/dist/Form-CKUcoaMX.js +8 -0
  38. package/dist/FormField-DoGaUqFm.js +235 -0
  39. package/dist/FormField-FvutosEE.d.ts +80 -0
  40. package/dist/FormFieldError-BT4uxbKY.d.ts +10 -0
  41. package/dist/FormFieldError-CFg0Wn3i.js +26 -0
  42. package/dist/HeaderText-BrZaEuIn.d.ts +19 -0
  43. package/dist/Hidden-BtagiSrf.js +32 -0
  44. package/dist/IconButton-uO0Mjcqw.d.ts +14 -0
  45. package/dist/InlineIconButton-CLiZzTVJ.d.ts +16 -0
  46. package/dist/Input-TO1R-KsB.js +45 -0
  47. package/dist/InputItem-DYNprOmw.js +63 -0
  48. package/dist/InputUpload-BqKQcew0.d.ts +66 -0
  49. package/dist/InputUpload-k_RRfoeF.js +233 -0
  50. package/dist/Inputs-BapBcBa7.js +17 -0
  51. package/dist/Inputs-DncFwdP2.d.ts +13 -0
  52. package/dist/Label-C0MdchIz.js +17 -0
  53. package/dist/Link-BBMgG7TX.js +82 -0
  54. package/dist/Link-BvAKCJcB.js +42 -0
  55. package/dist/Link-DwUGkr9s.d.ts +23 -0
  56. package/dist/ListBox-HE5uFtiS.js +739 -0
  57. package/dist/Loader-C6YkWZOO.js +113 -0
  58. package/dist/Loader-Sbr1b0iU.d.ts +29 -0
  59. package/dist/Menu-CLA3gTYc.d.ts +58 -0
  60. package/dist/Menu-Db_stvqw.js +178 -0
  61. package/dist/MenuDesktop-BjK3K8gs.js +248 -0
  62. package/dist/MenuItem-ChgmtbQw.d.ts +6 -0
  63. package/dist/Modal-BVL1P0ls.d.ts +53 -0
  64. package/dist/Modal-CYvIKx5Z.js +204 -0
  65. package/dist/Modal-CkSO1C1n.js +58 -0
  66. package/dist/NumberFormatter-KUrW7GbE.js +122 -0
  67. package/dist/NumberInput-mTYSZkqH.d.ts +26 -0
  68. package/dist/NumberRangeInput-BsATw2M1.js +403 -0
  69. package/dist/NumberRangeInput-DS6_DIEc.d.ts +44 -0
  70. package/dist/OverlayArrow-BrSp26z2.js +654 -0
  71. package/dist/Pagination-YrWwwM_f.d.ts +12 -0
  72. package/dist/PaginationList-71pjqcQ0.d.ts +18 -0
  73. package/dist/PaginationList-DJfUpGY9.js +218 -0
  74. package/dist/PasswordInput-BUZPRoOL.js +63 -0
  75. package/dist/PasswordInput-XI0n5I1s.d.ts +10 -0
  76. package/dist/Pill-DSt6f4Eq.d.ts +18 -0
  77. package/dist/PillButton-NdrR6uVR.d.ts +15 -0
  78. package/dist/PressResponder-q8UTUsf0.js +63 -0
  79. package/dist/ProgressBar-C8dtVA-1.js +58 -0
  80. package/dist/ProgressBar-DG-ClG9v.d.ts +44 -0
  81. package/dist/QuerySelect-W0euIrkL.d.ts +23 -0
  82. package/dist/RSPContexts-DHQi1l7F.js +12 -0
  83. package/dist/RadioGroup-CNSTNHYN.js +569 -0
  84. package/dist/RadioGroup-D6-jU_Hb.d.ts +73 -0
  85. package/dist/ResponsivePopover-CokwzUr4.d.ts +19 -0
  86. package/dist/Segment-Cndlojxv.js +348 -0
  87. package/dist/Segment-IpdajE4h.d.ts +7 -0
  88. package/dist/Select-CCNQ4Bso.js +155 -0
  89. package/dist/Select-CNTaUjfL.d.ts +15 -0
  90. package/dist/SelectBase-C4lPY7Hc.d.ts +97 -0
  91. package/dist/SelectionIndicator-qJF4qfyY.js +758 -0
  92. package/dist/Slider-C2VnHdQq.js +818 -0
  93. package/dist/Slider-HF31GF1t.d.ts +22 -0
  94. package/dist/SplitButton-CnyLnCrQ.d.ts +15 -0
  95. package/dist/Stepper-JUO4MbZx.d.ts +113 -0
  96. package/dist/Stepper-yN3fNyGt.js +336 -0
  97. package/dist/Tag-CXfTBg6q.d.ts +34 -0
  98. package/dist/Tag-DCo_fVLl.js +95 -0
  99. package/dist/Text-BTtw_Syz.js +5 -0
  100. package/dist/TextArea-8_TYSixS.d.ts +20 -0
  101. package/dist/TextArea-CS-2txl7.js +175 -0
  102. package/dist/TextButton-BdefN7SL.d.ts +15 -0
  103. package/dist/TextEditor-CXDFpX_q.d.ts +26 -0
  104. package/dist/TextEditor-p0CqH_71.js +3439 -0
  105. package/dist/TimePicker-Bspfhoo_.d.ts +32 -0
  106. package/dist/TimePicker-DLzbOPrC.js +375 -0
  107. package/dist/Toast-4Q3O7cKx.js +957 -0
  108. package/dist/Toast-DDkev3SZ.d.ts +75 -0
  109. package/dist/Toggle-CgD4ykP4.js +177 -0
  110. package/dist/Toggle-TDp5YtaQ.d.ts +32 -0
  111. package/dist/ToggleButton-BuEhb8eu.d.ts +12 -0
  112. package/dist/ToggleButton-D94yRla8.js +216 -0
  113. package/dist/Tooltip-KfGHmXdx.js +539 -0
  114. package/dist/Tooltip-zaZ0d1jz.d.ts +56 -0
  115. package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +11 -0
  116. package/dist/TooltipWrapper-CLMp_zj4.js +71 -0
  117. package/dist/Typography-AcUd9df8.js +31 -0
  118. package/dist/Typography-BiHrVFpz.d.ts +12 -0
  119. package/dist/VisuallyHidden-DjaDVPQT.js +43 -0
  120. package/dist/autocomplete-B2Ol8qjV.d.ts +16 -0
  121. package/dist/button.cva-zMNkoZH8.d.ts +92 -0
  122. package/dist/buttonContent.cva-CIOaLH0a.d.ts +6 -0
  123. package/dist/check-M2G7r3oH.js +13 -0
  124. package/dist/checkbox-CGea408G.d.ts +9 -0
  125. package/dist/checkbox-group-BdjjQ24I.d.ts +9 -0
  126. package/dist/checkbox.cva-Caaf2Ysq.d.ts +77 -0
  127. package/dist/chevron-down-Ciz9yP9R.js +13 -0
  128. package/dist/chevron-left-VO8YZrXZ.js +13 -0
  129. package/dist/chevron-right-C_M98bh3.js +13 -0
  130. package/dist/chevron-up-CHRnDSA3.js +13 -0
  131. package/dist/chevrons-right-BXdmZ2TS.js +29 -0
  132. package/dist/clsx-CnD0nOiA.js +16 -0
  133. package/dist/common-UBFya8WY.d.ts +11 -0
  134. package/dist/components/accordion.d.ts +2 -0
  135. package/dist/components/accordion.js +2 -0
  136. package/dist/components/action-modal.d.ts +2 -0
  137. package/dist/components/action-modal.js +188 -0
  138. package/dist/components/alert.d.ts +2 -0
  139. package/dist/components/alert.js +2 -0
  140. package/dist/components/autocomplete.d.ts +2 -0
  141. package/dist/components/autocomplete.js +131 -0
  142. package/dist/components/bottom-sheet.d.ts +2 -0
  143. package/dist/components/bottom-sheet.js +2 -0
  144. package/dist/components/breadcrumbs.d.ts +2 -0
  145. package/dist/components/breadcrumbs.js +2 -0
  146. package/dist/components/button.d.ts +3 -0
  147. package/dist/components/button.js +2 -0
  148. package/dist/components/checkbox-group.d.ts +2 -0
  149. package/dist/components/checkbox-group.js +161 -0
  150. package/dist/components/checkbox.d.ts +2 -0
  151. package/dist/components/checkbox.js +2 -0
  152. package/dist/components/date-picker.d.ts +2 -0
  153. package/dist/components/date-picker.js +2 -0
  154. package/dist/components/date-range-picker.d.ts +2 -0
  155. package/dist/components/date-range-picker.js +2 -0
  156. package/dist/components/date-time-picker.d.ts +2 -0
  157. package/dist/components/date-time-picker.js +2 -0
  158. package/dist/components/drawer.d.ts +2 -0
  159. package/dist/components/drawer.js +96 -0
  160. package/dist/components/file-upload-container.d.ts +3 -0
  161. package/dist/components/file-upload-container.js +15 -0
  162. package/dist/components/file-upload.d.ts +3 -0
  163. package/dist/components/file-upload.js +2 -0
  164. package/dist/components/form-field.d.ts +2 -0
  165. package/dist/components/form-field.js +2 -0
  166. package/dist/components/icon-button.d.ts +2 -0
  167. package/dist/components/icon-button.js +51 -0
  168. package/dist/components/inline-icon-button.d.ts +2 -0
  169. package/dist/components/inline-icon-button.js +40 -0
  170. package/dist/components/input-upload.d.ts +2 -0
  171. package/dist/components/input-upload.js +2 -0
  172. package/dist/components/link.d.ts +2 -0
  173. package/dist/components/link.js +2 -0
  174. package/dist/components/loader.d.ts +2 -0
  175. package/dist/components/loader.js +2 -0
  176. package/dist/components/menu.d.ts +3 -0
  177. package/dist/components/menu.js +3 -0
  178. package/dist/components/modal.d.ts +2 -0
  179. package/dist/components/modal.js +2 -0
  180. package/dist/components/number-input.d.ts +2 -0
  181. package/dist/components/number-input.js +242 -0
  182. package/dist/components/number-range-input.d.ts +2 -0
  183. package/dist/components/number-range-input.js +2 -0
  184. package/dist/components/pagination-list.d.ts +2 -0
  185. package/dist/components/pagination-list.js +2 -0
  186. package/dist/components/pagination.d.ts +2 -0
  187. package/dist/components/pagination.js +131 -0
  188. package/dist/components/password-input.d.ts +2 -0
  189. package/dist/components/password-input.js +2 -0
  190. package/dist/components/pill-button.d.ts +2 -0
  191. package/dist/components/pill-button.js +73 -0
  192. package/dist/components/pill.d.ts +2 -0
  193. package/dist/components/pill.js +44 -0
  194. package/dist/components/progress-bar.d.ts +2 -0
  195. package/dist/components/progress-bar.js +2 -0
  196. package/dist/components/query-autocomplete.d.ts +8 -0
  197. package/dist/components/query-autocomplete.js +104 -0
  198. package/dist/components/query-select.d.ts +2 -0
  199. package/dist/components/query-select.js +114 -0
  200. package/dist/components/radio-group.d.ts +2 -0
  201. package/dist/components/radio-group.js +2 -0
  202. package/dist/components/responsive-popover.d.ts +2 -0
  203. package/dist/components/responsive-popover.js +126 -0
  204. package/dist/components/segment.d.ts +3 -0
  205. package/dist/components/segment.js +2 -0
  206. package/dist/components/select.d.ts +3 -0
  207. package/dist/components/select.js +2 -0
  208. package/dist/components/slider.d.ts +2 -0
  209. package/dist/components/slider.js +2 -0
  210. package/dist/components/split-button.d.ts +2 -0
  211. package/dist/components/split-button.js +123 -0
  212. package/dist/components/stepper.d.ts +2 -0
  213. package/dist/components/stepper.js +2 -0
  214. package/dist/components/tag.d.ts +2 -0
  215. package/dist/components/tag.js +2 -0
  216. package/dist/components/text-area.d.ts +2 -0
  217. package/dist/components/text-area.js +2 -0
  218. package/dist/components/text-button.d.ts +2 -0
  219. package/dist/components/text-button.js +36 -0
  220. package/dist/components/text-input.d.ts +2 -0
  221. package/dist/components/text-input.js +239 -0
  222. package/dist/components/time-picker.d.ts +2 -0
  223. package/dist/components/time-picker.js +2 -0
  224. package/dist/components/toast.d.ts +2 -0
  225. package/dist/components/toast.js +2 -0
  226. package/dist/components/toggle-button.d.ts +2 -0
  227. package/dist/components/toggle-button.js +34 -0
  228. package/dist/components/toggle.d.ts +2 -0
  229. package/dist/components/toggle.js +2 -0
  230. package/dist/components/tooltip-ellipsis.d.ts +2 -0
  231. package/dist/components/tooltip-ellipsis.js +46 -0
  232. package/dist/components/tooltip.d.ts +2 -0
  233. package/dist/components/tooltip.js +2 -0
  234. package/dist/components/typography.d.ts +3 -0
  235. package/dist/components/typography.js +2 -0
  236. package/dist/components/use-toast.d.ts +2 -0
  237. package/dist/components/use-toast.js +69 -0
  238. package/dist/compoundMapper-CMoX98D2.d.ts +17 -0
  239. package/dist/compoundMapper-Di3SKZnS.js +13 -0
  240. package/dist/config/confirmation.d.ts +2 -0
  241. package/dist/config/confirmation.js +2 -0
  242. package/dist/config/link-context.d.ts +3 -0
  243. package/dist/config/link-context.js +2 -0
  244. package/dist/config/resources.d.ts +2 -0
  245. package/dist/config/resources.js +2 -0
  246. package/dist/config/theme-context.d.ts +2 -0
  247. package/dist/config/theme-context.js +2 -0
  248. package/dist/config/ui-config.d.ts +2 -0
  249. package/dist/config/ui-config.js +2 -0
  250. package/dist/config/ui-overrides.d.ts +2 -0
  251. package/dist/config/ui-overrides.js +2 -0
  252. package/dist/config/ui-router.d.ts +2 -0
  253. package/dist/config/ui-router.js +2 -0
  254. package/dist/confirmation.context-BJ8gTx7U.d.ts +23 -0
  255. package/dist/confirmation.context-C1-ZF9CW.js +80 -0
  256. package/dist/context-CLFkoJMP.js +93 -0
  257. package/dist/createLucideIcon-CskCrR9z.js +125 -0
  258. package/dist/date-picker-BpSowet-.d.ts +9 -0
  259. package/dist/date-range-picker-aO65H4wV.d.ts +9 -0
  260. package/dist/date-time-picker-DWo2GFg7.d.ts +9 -0
  261. package/dist/date-time.utils-0F9qduim.js +190 -0
  262. package/dist/date-time.utils-Cu9TVj46.d.ts +45 -0
  263. package/dist/date.transforms-DLg-eFcE.js +15 -0
  264. package/dist/date.utils-B8_QF9y6.js +42 -0
  265. package/dist/date.utils-BoQnMRlF.d.ts +7 -0
  266. package/dist/datePickerValue.utils-Dh-nA1Yv.js +223 -0
  267. package/dist/dynamicInputs-4JB41qRW.js +214 -0
  268. package/dist/dynamicInputs-BekIlDGf.d.ts +753 -0
  269. package/dist/dynamicInputs-D8j0ko24.js +194 -0
  270. package/dist/fieldAdapter-C4sDFC8f.d.ts +9 -0
  271. package/dist/fieldAdapter-C_3uizcT.js +61 -0
  272. package/dist/file-upload-DDIJKLW8.d.ts +10 -0
  273. package/dist/file.utils-Crb-mIHs.d.ts +21 -0
  274. package/dist/file.utils-DqQxnuAm.js +61 -0
  275. package/dist/fileUpload.types-CQkPqELk.d.ts +106 -0
  276. package/dist/form.binding-DWlFTecs.d.ts +47 -0
  277. package/dist/form.binding-DyZ4fH8l.js +34 -0
  278. package/dist/form.types-B9Vp8q2g.d.ts +13 -0
  279. package/dist/form.types-ZNGbcqJS.d.ts +13 -0
  280. package/dist/hooks/use-filters.d.ts +2 -0
  281. package/dist/hooks/use-filters.js +2 -0
  282. package/dist/hooks/use-local-storage.d.ts +2 -0
  283. package/dist/hooks/use-local-storage.js +2 -0
  284. package/dist/hooks/use-translation-memo.d.ts +2 -0
  285. package/dist/hooks/use-translation-memo.js +2 -0
  286. package/dist/i18n-C2TBJvnh.js +300 -0
  287. package/dist/i18n-DjqhCCJq.d.ts +316 -0
  288. package/dist/icons.d.ts +2 -0
  289. package/dist/icons.js +2 -0
  290. package/dist/index-B8r_kiw4.d.ts +193 -0
  291. package/dist/index.d.ts +101 -263
  292. package/dist/index.js +99 -180
  293. package/dist/input-upload-Apyx1Mvy.d.ts +9 -0
  294. package/dist/input.cva-CfgCOIQW.d.ts +80 -0
  295. package/dist/input.cva-KYGD4Bdz.js +324 -0
  296. package/dist/intl.utils-NaOZUD2G.d.ts +9 -0
  297. package/dist/intl.utils-zwAFoZ0U.js +38 -0
  298. package/dist/intlStrings-DrQB127v.js +346 -0
  299. package/dist/link.context-BFXwgVLP.d.ts +12 -0
  300. package/dist/link.context-J7aQtMOr.js +35 -0
  301. package/dist/logger-BPhG2izn.js +309 -0
  302. package/dist/logger-N35Xhi14.d.ts +10 -0
  303. package/dist/lucide-react-BJRvqSeV.d.ts +23 -0
  304. package/dist/modal.cva-CbziPHSN.js +43 -0
  305. package/dist/number-input-D0YwMCGh.d.ts +8 -0
  306. package/dist/number-range-input-BtPXUX0k.d.ts +8 -0
  307. package/dist/numberStatic.utils-C9_kWMXJ.js +723 -0
  308. package/dist/openLink-BFEMFlhB.js +187 -0
  309. package/dist/outline.clsx-50W_vNDl.js +6 -0
  310. package/dist/outline.clsx-B1hjrX9t.d.ts +4 -0
  311. package/dist/password-input-euv4tHdl.d.ts +8 -0
  312. package/dist/pillButton.cva-Da0WFN39.d.ts +34 -0
  313. package/dist/pillButton.cva-DbwzixcK.js +263 -0
  314. package/dist/popover.cva-CXha_UMQ.js +5 -0
  315. package/dist/queries.utils-CmbhAoHU.js +18 -0
  316. package/dist/query-autocomplete-BwU-94pi.d.ts +14 -0
  317. package/dist/query-select-CBgR2Tua.d.ts +15 -0
  318. package/dist/queryAutocomplete.types-3ezR8y7k.d.ts +26 -0
  319. package/dist/radio-group-DVGKZRnt.d.ts +9 -0
  320. package/dist/react-aria/components.d.ts +1 -0
  321. package/dist/react-aria/components.js +1 -0
  322. package/dist/react-aria/hooks.d.ts +1 -0
  323. package/dist/react-aria/hooks.js +1 -0
  324. package/dist/react-aria/index.d.ts +1 -0
  325. package/dist/react-aria/index.js +1 -0
  326. package/dist/react-aria/state.d.ts +1 -0
  327. package/dist/react-aria/state.js +1 -0
  328. package/dist/react-aria/types.d.ts +1 -0
  329. package/dist/react-aria/types.js +0 -0
  330. package/dist/rhf/autocomplete.d.ts +3 -0
  331. package/dist/rhf/autocomplete.js +8 -0
  332. package/dist/rhf/checkbox-group.d.ts +3 -0
  333. package/dist/rhf/checkbox-group.js +8 -0
  334. package/dist/rhf/checkbox.d.ts +3 -0
  335. package/dist/rhf/checkbox.js +8 -0
  336. package/dist/rhf/date-picker.d.ts +3 -0
  337. package/dist/rhf/date-picker.js +9 -0
  338. package/dist/rhf/date-range-picker.d.ts +3 -0
  339. package/dist/rhf/date-range-picker.js +9 -0
  340. package/dist/rhf/date-time-picker.d.ts +3 -0
  341. package/dist/rhf/date-time-picker.js +9 -0
  342. package/dist/rhf/file-upload.d.ts +3 -0
  343. package/dist/rhf/file-upload.js +6 -0
  344. package/dist/rhf/input-upload.d.ts +3 -0
  345. package/dist/rhf/input-upload.js +6 -0
  346. package/dist/rhf/inputs.d.ts +4 -0
  347. package/dist/rhf/inputs.js +2 -0
  348. package/dist/rhf/number-input.d.ts +3 -0
  349. package/dist/rhf/number-input.js +6 -0
  350. package/dist/rhf/number-range-input.d.ts +3 -0
  351. package/dist/rhf/number-range-input.js +6 -0
  352. package/dist/rhf/password-input.d.ts +3 -0
  353. package/dist/rhf/password-input.js +6 -0
  354. package/dist/rhf/query-autocomplete.d.ts +2 -0
  355. package/dist/rhf/query-autocomplete.js +8 -0
  356. package/dist/rhf/query-select.d.ts +2 -0
  357. package/dist/rhf/query-select.js +8 -0
  358. package/dist/rhf/radio-group.d.ts +3 -0
  359. package/dist/rhf/radio-group.js +8 -0
  360. package/dist/rhf/segment.d.ts +3 -0
  361. package/dist/rhf/segment.js +6 -0
  362. package/dist/rhf/select.d.ts +3 -0
  363. package/dist/rhf/select.js +8 -0
  364. package/dist/rhf/slider.d.ts +3 -0
  365. package/dist/rhf/slider.js +6 -0
  366. package/dist/rhf/text-area.d.ts +3 -0
  367. package/dist/rhf/text-area.js +6 -0
  368. package/dist/rhf/text-editor.d.ts +3 -0
  369. package/dist/rhf/text-editor.js +6 -0
  370. package/dist/rhf/text-input.d.ts +3 -0
  371. package/dist/rhf/text-input.js +6 -0
  372. package/dist/rhf/time-picker.d.ts +3 -0
  373. package/dist/rhf/time-picker.js +9 -0
  374. package/dist/rhf/toggle.d.ts +3 -0
  375. package/dist/rhf/toggle.js +8 -0
  376. package/dist/rhf-Ca72CryM.js +256 -0
  377. package/dist/rhf.d.ts +101 -0
  378. package/dist/rhf.js +99 -0
  379. package/dist/rolldown-runtime-DUp30N8C.js +28 -0
  380. package/dist/router.context-BOYRh2p9.d.ts +16 -0
  381. package/dist/router.context-DSE1y7gW.js +63 -0
  382. package/dist/routing.utils-UTQonIhB.js +25 -0
  383. package/dist/schemas-BkfyFvBp.js +4004 -0
  384. package/dist/schemas-CAtYiHoz.d.ts +2127 -0
  385. package/dist/segment-CSZWTNMz.d.ts +9 -0
  386. package/dist/segment.types-POFeFf4n.d.ts +58 -0
  387. package/dist/select-ZL6iOiG0.d.ts +16 -0
  388. package/dist/slider--ZPodYa6.d.ts +8 -0
  389. package/dist/staticDateTimeSegments-CKL9PuGV.js +1501 -0
  390. package/dist/staticSelect.utils-DkiDwfGr.js +4041 -0
  391. package/dist/string.utils-BPgv6QwA.js +12 -0
  392. package/dist/string.utils-Cj6AB7uZ.d.ts +7 -0
  393. package/dist/styles/input.d.ts +2 -0
  394. package/dist/styles/input.js +0 -0
  395. package/dist/styles/outline.d.ts +2 -0
  396. package/dist/styles/outline.js +2 -0
  397. package/dist/tanstack/autocomplete.d.ts +2 -0
  398. package/dist/tanstack/autocomplete.js +2 -0
  399. package/dist/tanstack/checkbox-group.d.ts +2 -0
  400. package/dist/tanstack/checkbox-group.js +2 -0
  401. package/dist/tanstack/checkbox.d.ts +2 -0
  402. package/dist/tanstack/checkbox.js +2 -0
  403. package/dist/tanstack/date-picker.d.ts +2 -0
  404. package/dist/tanstack/date-picker.js +2 -0
  405. package/dist/tanstack/date-range-picker.d.ts +2 -0
  406. package/dist/tanstack/date-range-picker.js +2 -0
  407. package/dist/tanstack/date-time-picker.d.ts +2 -0
  408. package/dist/tanstack/date-time-picker.js +2 -0
  409. package/dist/tanstack/file-upload.d.ts +3 -0
  410. package/dist/tanstack/file-upload.js +2 -0
  411. package/dist/tanstack/form.d.ts +3 -0
  412. package/dist/tanstack/form.js +2 -0
  413. package/dist/tanstack/input-upload.d.ts +2 -0
  414. package/dist/tanstack/input-upload.js +2 -0
  415. package/dist/tanstack/inputs.d.ts +5 -0
  416. package/dist/tanstack/inputs.js +3 -0
  417. package/dist/tanstack/number-input.d.ts +2 -0
  418. package/dist/tanstack/number-input.js +2 -0
  419. package/dist/tanstack/number-range-input.d.ts +2 -0
  420. package/dist/tanstack/number-range-input.js +2 -0
  421. package/dist/tanstack/password-input.d.ts +2 -0
  422. package/dist/tanstack/password-input.js +2 -0
  423. package/dist/tanstack/query-autocomplete.d.ts +2 -0
  424. package/dist/tanstack/query-autocomplete.js +2 -0
  425. package/dist/tanstack/query-select.d.ts +2 -0
  426. package/dist/tanstack/query-select.js +2 -0
  427. package/dist/tanstack/radio-group.d.ts +2 -0
  428. package/dist/tanstack/radio-group.js +2 -0
  429. package/dist/tanstack/segment.d.ts +3 -0
  430. package/dist/tanstack/segment.js +2 -0
  431. package/dist/tanstack/select.d.ts +2 -0
  432. package/dist/tanstack/select.js +2 -0
  433. package/dist/tanstack/slider.d.ts +2 -0
  434. package/dist/tanstack/slider.js +2 -0
  435. package/dist/tanstack/table.d.ts +3 -0
  436. package/dist/tanstack/table.js +2 -0
  437. package/dist/tanstack/text-area.d.ts +2 -0
  438. package/dist/tanstack/text-area.js +2 -0
  439. package/dist/tanstack/text-editor.d.ts +2 -0
  440. package/dist/tanstack/text-editor.js +2 -0
  441. package/dist/tanstack/text-input.d.ts +2 -0
  442. package/dist/tanstack/text-input.js +2 -0
  443. package/dist/tanstack/time-picker.d.ts +2 -0
  444. package/dist/tanstack/time-picker.js +2 -0
  445. package/dist/tanstack/toggle.d.ts +2 -0
  446. package/dist/tanstack/toggle.js +2 -0
  447. package/dist/tanstack.d.ts +87 -0
  448. package/dist/tanstack.js +94 -0
  449. package/dist/text-area-BhZAEqfI.d.ts +8 -0
  450. package/dist/text-editor-Dq-YYIuF.d.ts +8 -0
  451. package/dist/text-editor.d.ts +2 -2
  452. package/dist/text-editor.js +1 -1
  453. package/dist/text-input-F-mBSHby.d.ts +8 -0
  454. package/dist/theme.context-CCXz56lV.js +120 -0
  455. package/dist/theme.context-rPpAYJZo.d.ts +20 -0
  456. package/dist/time-picker-5w_eDDNn.d.ts +9 -0
  457. package/dist/toggle-D-Dg5YGf.d.ts +9 -0
  458. package/dist/tw-ui-plugin.d.ts +4 -2
  459. package/dist/tw-ui-plugin.js +1 -1
  460. package/dist/types/index.d.ts +2 -0
  461. package/dist/types/index.js +0 -0
  462. package/dist/types-BV15_DBT.d.ts +1150 -0
  463. package/dist/typography.cva-7RYwLrA7.d.ts +51 -0
  464. package/dist/typography.cva-BI0FyIqm.js +129 -0
  465. package/dist/uiConfig.context-SBtRegKv.js +359 -0
  466. package/dist/uiConfig.context-pJj1iUnQ.d.ts +84 -0
  467. package/dist/uiOverrides.context-BdokYcGO.d.ts +243 -0
  468. package/dist/uiOverrides.context-Bfm2n-n8.js +399 -0
  469. package/dist/useBreakpoint-D0s71F97.js +70 -0
  470. package/dist/useButton-iUReggbG.js +55 -0
  471. package/dist/useControlledState-Bk39gTui.js +31 -0
  472. package/dist/useEvent-BROAXUSg.js +22 -0
  473. package/dist/useFieldAccessibility-CmbhtqBy.js +96 -0
  474. package/dist/useFilter-BOG2VldJ.js +44 -0
  475. package/dist/useFilters-6IOuvBTm.d.ts +11 -0
  476. package/dist/useFilters-AA70NuXo.js +190 -0
  477. package/dist/useFocusRing-DuXtCnJj.js +141 -0
  478. package/dist/useFormAutosave-BXqu0xAQ.js +296 -0
  479. package/dist/useFormReset-BhJH8XnS.js +18 -0
  480. package/dist/useFormValidation-DLZqyNVp.js +115 -0
  481. package/dist/useFormValidationState-Bpry7Uk5.js +142 -0
  482. package/dist/useHover-DwfnacVy.js +1210 -0
  483. package/dist/useIntersectionObserver-DYfHnGGU.js +98 -0
  484. package/dist/useLabel-BFvzYK5u.js +27 -0
  485. package/dist/useLabels-B3G1H2cw.js +16 -0
  486. package/dist/useLocalStorage-PlcaJ1tP.js +70 -0
  487. package/dist/useLocalStorage-kcEdRxqC.d.ts +13 -0
  488. package/dist/useLocalizedStringFormatter-C2M9mXF2.js +108 -0
  489. package/dist/useNumberFormatter-CTdFIKV_.js +10 -0
  490. package/dist/usePress-CANxCO5-.js +491 -0
  491. package/dist/useQueryAutocomplete-CraXvRm_.js +152 -0
  492. package/dist/useSpinButton-C3wyKHU7.js +577 -0
  493. package/dist/useStaticInputHandoff-COJdSrME.js +321 -0
  494. package/dist/useTableColumnConfig-_XJr8Cor.js +1638 -0
  495. package/dist/useTableNav-BoQOVqZF.d.ts +274 -0
  496. package/dist/useTextField-De01RThI.js +77 -0
  497. package/dist/useToast-gQ9gzrbt.d.ts +16 -0
  498. package/dist/useToggle-DDay--cY.js +62 -0
  499. package/dist/useToggleState-Dyx-sAjp.js +23 -0
  500. package/dist/useTranslationMemo-CrZbeyBv.js +32 -0
  501. package/dist/useTranslationMemo-Dy3p6m1g.d.ts +6 -0
  502. package/dist/utils/compound-mapper.d.ts +2 -0
  503. package/dist/utils/compound-mapper.js +2 -0
  504. package/dist/utils/date-time.d.ts +2 -0
  505. package/dist/utils/date-time.js +2 -0
  506. package/dist/utils/date.d.ts +2 -0
  507. package/dist/utils/date.js +2 -0
  508. package/dist/utils/file.d.ts +2 -0
  509. package/dist/utils/file.js +2 -0
  510. package/dist/utils/intl.d.ts +2 -0
  511. package/dist/utils/intl.js +2 -0
  512. package/dist/utils/logger.d.ts +2 -7
  513. package/dist/utils/logger.js +1 -18
  514. package/dist/utils/string.d.ts +2 -0
  515. package/dist/utils/string.js +2 -0
  516. package/dist/x-BYOEO0gW.js +16 -0
  517. package/dist/zod.utils-Nz_Tbo_v.js +24 -0
  518. package/package.json +709 -17
  519. package/dist/assets/icons/Account.d.ts +0 -2
  520. package/dist/assets/icons/AlignCenter.d.ts +0 -2
  521. package/dist/assets/icons/AlignCenter.js +0 -30
  522. package/dist/assets/icons/AlignLeft.d.ts +0 -2
  523. package/dist/assets/icons/AlignLeft.js +0 -30
  524. package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
  525. package/dist/assets/icons/AlignLeftRight.js +0 -30
  526. package/dist/assets/icons/AlignRight.d.ts +0 -2
  527. package/dist/assets/icons/AlignRight.js +0 -30
  528. package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
  529. package/dist/assets/icons/ArrowDropDown.js +0 -30
  530. package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
  531. package/dist/assets/icons/ArrowDropUp.js +0 -30
  532. package/dist/assets/icons/ArrowLeft.d.ts +0 -2
  533. package/dist/assets/icons/ArrowLeft.js +0 -30
  534. package/dist/assets/icons/ArrowRight.d.ts +0 -2
  535. package/dist/assets/icons/ArrowRight.js +0 -30
  536. package/dist/assets/icons/Board.d.ts +0 -2
  537. package/dist/assets/icons/Bold.d.ts +0 -2
  538. package/dist/assets/icons/Bold.js +0 -30
  539. package/dist/assets/icons/BulletedList.d.ts +0 -2
  540. package/dist/assets/icons/BulletedList.js +0 -30
  541. package/dist/assets/icons/Calendar.d.ts +0 -2
  542. package/dist/assets/icons/Calendar.js +0 -32
  543. package/dist/assets/icons/Check.d.ts +0 -2
  544. package/dist/assets/icons/Check.js +0 -32
  545. package/dist/assets/icons/CheckCircle.d.ts +0 -2
  546. package/dist/assets/icons/CheckCircle.js +0 -30
  547. package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
  548. package/dist/assets/icons/CheckboxCheckmark.js +0 -33
  549. package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
  550. package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
  551. package/dist/assets/icons/ChevronDown.d.ts +0 -2
  552. package/dist/assets/icons/ChevronDown.js +0 -32
  553. package/dist/assets/icons/ChevronLeft.d.ts +0 -2
  554. package/dist/assets/icons/ChevronLeft.js +0 -32
  555. package/dist/assets/icons/ChevronRight.d.ts +0 -2
  556. package/dist/assets/icons/ChevronRight.js +0 -32
  557. package/dist/assets/icons/ChevronUp.d.ts +0 -2
  558. package/dist/assets/icons/ChevronUp.js +0 -32
  559. package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
  560. package/dist/assets/icons/ChevronsLeft.js +0 -32
  561. package/dist/assets/icons/ChevronsRight.d.ts +0 -2
  562. package/dist/assets/icons/ChevronsRight.js +0 -32
  563. package/dist/assets/icons/Clock.d.ts +0 -2
  564. package/dist/assets/icons/Clock.js +0 -30
  565. package/dist/assets/icons/Close.d.ts +0 -2
  566. package/dist/assets/icons/Close.js +0 -30
  567. package/dist/assets/icons/DateTime.d.ts +0 -2
  568. package/dist/assets/icons/DateTime.js +0 -39
  569. package/dist/assets/icons/DragIndicator.d.ts +0 -2
  570. package/dist/assets/icons/DragIndicator.js +0 -30
  571. package/dist/assets/icons/Edit.d.ts +0 -2
  572. package/dist/assets/icons/Emoji.d.ts +0 -2
  573. package/dist/assets/icons/File.d.ts +0 -2
  574. package/dist/assets/icons/File.js +0 -32
  575. package/dist/assets/icons/Grid.d.ts +0 -2
  576. package/dist/assets/icons/Highlight.d.ts +0 -2
  577. package/dist/assets/icons/Highlight.js +0 -30
  578. package/dist/assets/icons/HighlightOn.d.ts +0 -6
  579. package/dist/assets/icons/HighlightOn.js +0 -55
  580. package/dist/assets/icons/Home.d.ts +0 -2
  581. package/dist/assets/icons/Home.js +0 -30
  582. package/dist/assets/icons/Image.d.ts +0 -2
  583. package/dist/assets/icons/ImageError.d.ts +0 -2
  584. package/dist/assets/icons/Info.d.ts +0 -2
  585. package/dist/assets/icons/Info.js +0 -41
  586. package/dist/assets/icons/Italic.d.ts +0 -2
  587. package/dist/assets/icons/Italic.js +0 -30
  588. package/dist/assets/icons/Link.d.ts +0 -2
  589. package/dist/assets/icons/Link.js +0 -30
  590. package/dist/assets/icons/Loader.d.ts +0 -2
  591. package/dist/assets/icons/MapPin.d.ts +0 -2
  592. package/dist/assets/icons/Menu.d.ts +0 -2
  593. package/dist/assets/icons/Menu.js +0 -30
  594. package/dist/assets/icons/Minus.d.ts +0 -2
  595. package/dist/assets/icons/MoreHoriz.d.ts +0 -2
  596. package/dist/assets/icons/NumberedList.d.ts +0 -2
  597. package/dist/assets/icons/NumberedList.js +0 -30
  598. package/dist/assets/icons/Pause.d.ts +0 -2
  599. package/dist/assets/icons/Plus.d.ts +0 -2
  600. package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
  601. package/dist/assets/icons/PointerHorizontal.js +0 -30
  602. package/dist/assets/icons/PointerVertical.d.ts +0 -2
  603. package/dist/assets/icons/PointerVertical.js +0 -30
  604. package/dist/assets/icons/Retry.d.ts +0 -2
  605. package/dist/assets/icons/Search.d.ts +0 -2
  606. package/dist/assets/icons/Search.js +0 -30
  607. package/dist/assets/icons/Send.d.ts +0 -2
  608. package/dist/assets/icons/Send.js +0 -32
  609. package/dist/assets/icons/Share.d.ts +0 -2
  610. package/dist/assets/icons/Slash.d.ts +0 -2
  611. package/dist/assets/icons/Strikethrough.d.ts +0 -2
  612. package/dist/assets/icons/Strikethrough.js +0 -30
  613. package/dist/assets/icons/TextColor.d.ts +0 -6
  614. package/dist/assets/icons/TextColor.js +0 -52
  615. package/dist/assets/icons/Today.d.ts +0 -2
  616. package/dist/assets/icons/Today.js +0 -30
  617. package/dist/assets/icons/Trash.d.ts +0 -2
  618. package/dist/assets/icons/Underlined.d.ts +0 -2
  619. package/dist/assets/icons/Underlined.js +0 -32
  620. package/dist/assets/icons/Upload.d.ts +0 -2
  621. package/dist/assets/icons/Upload.js +0 -39
  622. package/dist/assets/icons/User.d.ts +0 -2
  623. package/dist/assets/icons/Visibility.d.ts +0 -2
  624. package/dist/assets/icons/Visibility.js +0 -30
  625. package/dist/assets/icons/VisibilityOff.d.ts +0 -2
  626. package/dist/assets/icons/VisibilityOff.js +0 -30
  627. package/dist/assets/icons/WarningFilled.d.ts +0 -2
  628. package/dist/assets/icons/WarningFilled.js +0 -32
  629. package/dist/assets/icons/WarningOutlined.d.ts +0 -2
  630. package/dist/assets/locales/en/translation.json.js +0 -147
  631. package/dist/assets/locales/sl/translation.json.js +0 -145
  632. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -16
  633. package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -112
  634. package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +0 -45
  635. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +0 -27
  636. package/dist/components/Menu/Menu.d.ts +0 -21
  637. package/dist/components/Menu/Menu.js +0 -27
  638. package/dist/components/Menu/MenuDesktop.d.ts +0 -2
  639. package/dist/components/Menu/MenuDesktop.js +0 -48
  640. package/dist/components/Menu/MenuItem.d.ts +0 -3
  641. package/dist/components/Menu/MenuItem.js +0 -46
  642. package/dist/components/Menu/MenuMobile.d.ts +0 -2
  643. package/dist/components/Menu/MenuMobile.js +0 -142
  644. package/dist/components/Menu/MenuPopover.d.ts +0 -5
  645. package/dist/components/Menu/MenuPopover.js +0 -121
  646. package/dist/components/Menu/menu.cva.d.ts +0 -39
  647. package/dist/components/Menu/menu.cva.js +0 -34
  648. package/dist/components/buttons/Button/Button.d.ts +0 -28
  649. package/dist/components/buttons/Button/Button.js +0 -66
  650. package/dist/components/buttons/Button/button.cva.d.ts +0 -99
  651. package/dist/components/buttons/Button/button.cva.js +0 -661
  652. package/dist/components/buttons/IconButton/IconButton.d.ts +0 -11
  653. package/dist/components/buttons/IconButton/IconButton.js +0 -51
  654. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +0 -13
  655. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +0 -15
  656. package/dist/components/buttons/PillButton/PillButton.d.ts +0 -12
  657. package/dist/components/buttons/PillButton/PillButton.js +0 -72
  658. package/dist/components/buttons/PillButton/pillButton.cva.d.ts +0 -40
  659. package/dist/components/buttons/PillButton/pillButton.cva.js +0 -264
  660. package/dist/components/buttons/SplitButton/SplitButton.d.ts +0 -12
  661. package/dist/components/buttons/SplitButton/SplitButton.js +0 -123
  662. package/dist/components/buttons/TextButton/TextButton.d.ts +0 -12
  663. package/dist/components/buttons/TextButton/TextButton.js +0 -36
  664. package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +0 -9
  665. package/dist/components/buttons/ToggleButton/ToggleButton.js +0 -34
  666. package/dist/components/buttons/shared/ButtonContent.d.ts +0 -14
  667. package/dist/components/buttons/shared/ButtonContent.js +0 -37
  668. package/dist/components/buttons/shared/buttonContent.cva.d.ts +0 -8
  669. package/dist/components/buttons/shared/buttonContent.cva.js +0 -30
  670. package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -20
  671. package/dist/components/inputs/Checkbox/Checkbox.js +0 -236
  672. package/dist/components/inputs/Checkbox/CheckboxCheckmark.d.ts +0 -9
  673. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +0 -26
  674. package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +0 -26
  675. package/dist/components/inputs/Checkbox/CheckboxGroup.js +0 -392
  676. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -94
  677. package/dist/components/inputs/Checkbox/checkbox.cva.js +0 -161
  678. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +0 -40
  679. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +0 -422
  680. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +0 -45
  681. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +0 -883
  682. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +0 -40
  683. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +0 -382
  684. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +0 -28
  685. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +0 -644
  686. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +0 -29
  687. package/dist/components/inputs/DateTime/shared/Calendar.js +0 -177
  688. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -22
  689. package/dist/components/inputs/DateTime/shared/CalendarCell.js +0 -145
  690. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -27
  691. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +0 -54
  692. package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +0 -18
  693. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +0 -121
  694. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -17
  695. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +0 -177
  696. package/dist/components/inputs/DateTime/shared/DateField.d.ts +0 -21
  697. package/dist/components/inputs/DateTime/shared/DateField.js +0 -156
  698. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +0 -45
  699. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +0 -197
  700. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -28
  701. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +0 -124
  702. package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -18
  703. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +0 -101
  704. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -8
  705. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +0 -27
  706. package/dist/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -11
  707. package/dist/components/inputs/DateTime/shared/MonthPicker.js +0 -135
  708. package/dist/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -26
  709. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +0 -209
  710. package/dist/components/inputs/DateTime/shared/TimeField.d.ts +0 -12
  711. package/dist/components/inputs/DateTime/shared/TimeField.js +0 -38
  712. package/dist/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -10
  713. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +0 -329
  714. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +0 -24
  715. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +0 -242
  716. package/dist/components/inputs/DateTime/shared/YearPicker.d.ts +0 -12
  717. package/dist/components/inputs/DateTime/shared/YearPicker.js +0 -151
  718. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
  719. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -16
  720. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -16
  721. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
  722. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -32
  723. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
  724. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
  725. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -41
  726. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -99
  727. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
  728. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +0 -2
  729. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +0 -33
  730. package/dist/components/inputs/File/FileUpload.d.ts +0 -4
  731. package/dist/components/inputs/File/FileUpload.js +0 -253
  732. package/dist/components/inputs/File/FileUploadContainer.d.ts +0 -3
  733. package/dist/components/inputs/File/FileUploadContainer.js +0 -22
  734. package/dist/components/inputs/File/InputUpload.d.ts +0 -4
  735. package/dist/components/inputs/File/InputUpload.js +0 -157
  736. package/dist/components/inputs/File/fileUpload.types.d.ts +0 -96
  737. package/dist/components/inputs/File/index.d.ts +0 -9
  738. package/dist/components/inputs/File/inputUpload.types.d.ts +0 -37
  739. package/dist/components/inputs/File/inputUpload.types.js +0 -9
  740. package/dist/components/inputs/File/shared/FileCard.d.ts +0 -9
  741. package/dist/components/inputs/File/shared/FileCard.js +0 -121
  742. package/dist/components/inputs/File/shared/FileCardList.d.ts +0 -9
  743. package/dist/components/inputs/File/shared/FileCardList.js +0 -60
  744. package/dist/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
  745. package/dist/components/inputs/File/shared/FileUploadContent.js +0 -208
  746. package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
  747. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +0 -58
  748. package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
  749. package/dist/components/inputs/File/shared/FileUploadContentError.js +0 -113
  750. package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
  751. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +0 -118
  752. package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
  753. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +0 -80
  754. package/dist/components/inputs/File/shared/InputUploadContent.d.ts +0 -9
  755. package/dist/components/inputs/File/shared/InputUploadContent.js +0 -169
  756. package/dist/components/inputs/File/shared/InputUploadFilled.d.ts +0 -8
  757. package/dist/components/inputs/File/shared/InputUploadFilled.js +0 -69
  758. package/dist/components/inputs/File/shared/ProgressBar.d.ts +0 -6
  759. package/dist/components/inputs/File/shared/ProgressBar.js +0 -33
  760. package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -17
  761. package/dist/components/inputs/File/shared/fileUpload.cva.js +0 -42
  762. package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -27
  763. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +0 -39
  764. package/dist/components/inputs/File/shared/progressBar.cva.d.ts +0 -38
  765. package/dist/components/inputs/File/shared/progressBar.cva.js +0 -28
  766. package/dist/components/inputs/FormField/FormField.d.ts +0 -20
  767. package/dist/components/inputs/FormField/FormField.js +0 -127
  768. package/dist/components/inputs/FormField/FormFieldError.d.ts +0 -7
  769. package/dist/components/inputs/FormField/FormFieldError.js +0 -33
  770. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +0 -14
  771. package/dist/components/inputs/FormField/FormFieldHeader.js +0 -97
  772. package/dist/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
  773. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +0 -41
  774. package/dist/components/inputs/FormField/FormFieldHelper.d.ts +0 -8
  775. package/dist/components/inputs/FormField/FormFieldHelper.js +0 -34
  776. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -13
  777. package/dist/components/inputs/FormField/FormFieldLabel.js +0 -59
  778. package/dist/components/inputs/FormField/formFieldError.cva.d.ts +0 -13
  779. package/dist/components/inputs/FormField/formFieldError.cva.js +0 -14
  780. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -13
  781. package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -14
  782. package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +0 -13
  783. package/dist/components/inputs/FormField/formFieldHelper.cva.js +0 -14
  784. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +0 -23
  785. package/dist/components/inputs/Input/NumberInput/NumberInput.js +0 -492
  786. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -45
  787. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -571
  788. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -35
  789. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -337
  790. package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +0 -7
  791. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +0 -62
  792. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -8
  793. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
  794. package/dist/components/inputs/Input/TextArea/TextArea.d.ts +0 -18
  795. package/dist/components/inputs/Input/TextArea/TextArea.js +0 -345
  796. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +0 -23
  797. package/dist/components/inputs/Input/TextInput/TextInput.js +0 -468
  798. package/dist/components/inputs/Input/shared/InputContent.d.ts +0 -28
  799. package/dist/components/inputs/Input/shared/InputContent.js +0 -211
  800. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
  801. package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
  802. package/dist/components/inputs/Inputs/Form.d.ts +0 -26
  803. package/dist/components/inputs/Inputs/Form.js +0 -73
  804. package/dist/components/inputs/Inputs/InputItem.d.ts +0 -67
  805. package/dist/components/inputs/Inputs/InputItem.js +0 -112
  806. package/dist/components/inputs/Inputs/Inputs.d.ts +0 -10
  807. package/dist/components/inputs/Inputs/Inputs.js +0 -43
  808. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +0 -22
  809. package/dist/components/inputs/RadioGroup/RadioGroup.js +0 -371
  810. package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -62
  811. package/dist/components/inputs/RadioGroup/radio.cva.js +0 -85
  812. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +0 -12
  813. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +0 -165
  814. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +0 -4
  815. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +0 -176
  816. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -39
  817. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -15
  818. package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -172
  819. package/dist/components/inputs/Selection/Select/Select.d.ts +0 -12
  820. package/dist/components/inputs/Selection/Select/Select.js +0 -235
  821. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +0 -37
  822. package/dist/components/inputs/Selection/shared/SelectBase.js +0 -82
  823. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
  824. package/dist/components/inputs/Selection/shared/SelectDesktop.js +0 -419
  825. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
  826. package/dist/components/inputs/Selection/shared/SelectInput.js +0 -469
  827. package/dist/components/inputs/Selection/shared/SelectInputTags.d.ts +0 -12
  828. package/dist/components/inputs/Selection/shared/SelectInputTags.js +0 -105
  829. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
  830. package/dist/components/inputs/Selection/shared/SelectListBox.js +0 -75
  831. package/dist/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -7
  832. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +0 -104
  833. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
  834. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +0 -88
  835. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
  836. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +0 -89
  837. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
  838. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +0 -76
  839. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
  840. package/dist/components/inputs/Selection/shared/SelectMobile.js +0 -127
  841. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
  842. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
  843. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -15
  844. package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -44
  845. package/dist/components/inputs/Selection/shared/select.context.d.ts +0 -32
  846. package/dist/components/inputs/Selection/shared/select.context.js +0 -231
  847. package/dist/components/inputs/Selection/shared/select.types.d.ts +0 -64
  848. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -6
  849. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
  850. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -12
  851. package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -8
  852. package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +0 -16
  853. package/dist/components/inputs/Selection/shared/selectItem.cva.js +0 -24
  854. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
  855. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -54
  856. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
  857. package/dist/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
  858. package/dist/components/inputs/Selection/shared/useSelectItems.js +0 -84
  859. package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -83
  860. package/dist/components/inputs/Skeleton/InputFrame.js +0 -242
  861. package/dist/components/inputs/Slider/Slider.d.ts +0 -19
  862. package/dist/components/inputs/Slider/Slider.js +0 -285
  863. package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -22
  864. package/dist/components/inputs/TextEditor/TextEditor.js +0 -199
  865. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
  866. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +0 -44
  867. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
  868. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +0 -128
  869. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
  870. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +0 -221
  871. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
  872. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +0 -106
  873. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
  874. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +0 -58
  875. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
  876. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +0 -79
  877. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
  878. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +0 -60
  879. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
  880. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +0 -104
  881. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
  882. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +0 -141
  883. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
  884. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +0 -157
  885. package/dist/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
  886. package/dist/components/inputs/TextEditor/textEditor.types.js +0 -40
  887. package/dist/components/inputs/Toggle/Toggle.d.ts +0 -16
  888. package/dist/components/inputs/Toggle/Toggle.js +0 -234
  889. package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -19
  890. package/dist/components/inputs/Toggle/toggle.cva.js +0 -35
  891. package/dist/components/inputs/shared/CheckContent.d.ts +0 -9
  892. package/dist/components/inputs/shared/CheckContent.js +0 -29
  893. package/dist/components/inputs/shared/InputClear.d.ts +0 -10
  894. package/dist/components/inputs/shared/InputClear.js +0 -115
  895. package/dist/components/inputs/shared/TooltipWrapper.d.ts +0 -10
  896. package/dist/components/inputs/shared/TooltipWrapper.js +0 -60
  897. package/dist/components/inputs/shared/form.binding.d.ts +0 -27
  898. package/dist/components/inputs/shared/form.binding.js +0 -57
  899. package/dist/components/inputs/shared/form.types.d.ts +0 -13
  900. package/dist/components/inputs/shared/form.types.js +0 -8
  901. package/dist/components/inputs/shared/input.cva.d.ts +0 -90
  902. package/dist/components/inputs/shared/input.cva.js +0 -334
  903. package/dist/components/inputs/shared/label.cva.d.ts +0 -19
  904. package/dist/components/inputs/shared/label.cva.js +0 -74
  905. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -8
  906. package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
  907. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -15
  908. package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -112
  909. package/dist/components/navigation/Accordion/Accordion.d.ts +0 -3
  910. package/dist/components/navigation/Accordion/Accordion.js +0 -34
  911. package/dist/components/navigation/Accordion/AccordionItem.d.ts +0 -2
  912. package/dist/components/navigation/Accordion/AccordionItem.js +0 -63
  913. package/dist/components/navigation/Accordion/accordion.cva.d.ts +0 -110
  914. package/dist/components/navigation/Accordion/accordion.cva.js +0 -129
  915. package/dist/components/navigation/Accordion/accordion.types.d.ts +0 -52
  916. package/dist/components/navigation/Stepper/Stepper.d.ts +0 -2
  917. package/dist/components/navigation/Stepper/Stepper.js +0 -34
  918. package/dist/components/navigation/Stepper/StepperItem.d.ts +0 -2
  919. package/dist/components/navigation/Stepper/StepperItem.js +0 -126
  920. package/dist/components/navigation/Stepper/StepperSeparator.d.ts +0 -5
  921. package/dist/components/navigation/Stepper/StepperSeparator.js +0 -30
  922. package/dist/components/navigation/Stepper/stepper.cva.d.ts +0 -93
  923. package/dist/components/navigation/Stepper/stepper.cva.js +0 -116
  924. package/dist/components/navigation/Stepper/stepper.types.d.ts +0 -41
  925. package/dist/components/outline.clsx.d.ts +0 -2
  926. package/dist/components/outline.clsx.js +0 -6
  927. package/dist/components/overlays/ActionModal/ActionModal.d.ts +0 -24
  928. package/dist/components/overlays/ActionModal/ActionModal.js +0 -54
  929. package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +0 -32
  930. package/dist/components/overlays/BottomSheet/BottomSheet.js +0 -328
  931. package/dist/components/overlays/BottomSheet/BottomSheetHeader.d.ts +0 -13
  932. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +0 -78
  933. package/dist/components/overlays/Drawer/Drawer.d.ts +0 -15
  934. package/dist/components/overlays/Drawer/Drawer.js +0 -95
  935. package/dist/components/overlays/Modal/Modal.d.ts +0 -15
  936. package/dist/components/overlays/Modal/Modal.js +0 -55
  937. package/dist/components/overlays/Modal/modal.cva.d.ts +0 -37
  938. package/dist/components/overlays/Modal/modal.cva.js +0 -44
  939. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +0 -17
  940. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +0 -45
  941. package/dist/components/overlays/Tooltip/Tooltip.d.ts +0 -13
  942. package/dist/components/overlays/Tooltip/Tooltip.js +0 -163
  943. package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +0 -8
  944. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +0 -46
  945. package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +0 -49
  946. package/dist/components/overlays/Tooltip/tooltip.cva.js +0 -44
  947. package/dist/components/segment/Segment.d.ts +0 -4
  948. package/dist/components/segment/Segment.js +0 -245
  949. package/dist/components/segment/SegmentItem.d.ts +0 -2
  950. package/dist/components/segment/SegmentItem.js +0 -85
  951. package/dist/components/segment/segment.cva.d.ts +0 -20
  952. package/dist/components/segment/segment.cva.js +0 -30
  953. package/dist/components/segment/segment.types.d.ts +0 -36
  954. package/dist/components/shared/pagination/Pagination.d.ts +0 -9
  955. package/dist/components/shared/pagination/Pagination.js +0 -45
  956. package/dist/components/shared/pagination/PaginationList.d.ts +0 -15
  957. package/dist/components/shared/pagination/PaginationList.js +0 -210
  958. package/dist/components/shared/pagination/minWidth.cva.d.ts +0 -3
  959. package/dist/components/shared/pagination/minWidth.cva.js +0 -11
  960. package/dist/components/shared/popover.cva.d.ts +0 -8
  961. package/dist/components/shared/popover.cva.js +0 -5
  962. package/dist/components/status/Alert/Alert.d.ts +0 -11
  963. package/dist/components/status/Alert/Alert.js +0 -47
  964. package/dist/components/status/Alert/alert.cva.d.ts +0 -19
  965. package/dist/components/status/Alert/alert.cva.js +0 -67
  966. package/dist/components/status/Loader/Loader.d.ts +0 -5
  967. package/dist/components/status/Loader/Loader.js +0 -89
  968. package/dist/components/status/Loader/loader.cva.d.ts +0 -28
  969. package/dist/components/status/Loader/loader.cva.js +0 -27
  970. package/dist/components/status/Toast/Toast.d.ts +0 -14
  971. package/dist/components/status/Toast/Toast.js +0 -82
  972. package/dist/components/status/Toast/toast.cva.d.ts +0 -80
  973. package/dist/components/status/Toast/toast.cva.js +0 -211
  974. package/dist/components/status/Toast/useToast.d.ts +0 -13
  975. package/dist/components/status/Toast/useToast.js +0 -70
  976. package/dist/components/status/shared/status.cva.d.ts +0 -30
  977. package/dist/components/status/shared/status.cva.js +0 -65
  978. package/dist/components/table/CellText.d.ts +0 -8
  979. package/dist/components/table/CellText.js +0 -21
  980. package/dist/components/table/ColumnConfig.d.ts +0 -10
  981. package/dist/components/table/ColumnConfig.js +0 -187
  982. package/dist/components/table/HeaderText.d.ts +0 -8
  983. package/dist/components/table/HeaderText.js +0 -20
  984. package/dist/components/table/InfiniteTable.d.ts +0 -9
  985. package/dist/components/table/InfiniteTable.js +0 -28
  986. package/dist/components/table/PaginatedTable.d.ts +0 -11
  987. package/dist/components/table/PaginatedTable.js +0 -94
  988. package/dist/components/table/Table.d.ts +0 -37
  989. package/dist/components/table/Table.js +0 -267
  990. package/dist/components/table/table.cva.d.ts +0 -65
  991. package/dist/components/table/table.cva.js +0 -49
  992. package/dist/components/text/Link/Link.d.ts +0 -9
  993. package/dist/components/text/Link/Link.js +0 -33
  994. package/dist/components/text/Link/link.cva.d.ts +0 -12
  995. package/dist/components/text/Link/link.cva.js +0 -12
  996. package/dist/components/text/Pill/Pill.d.ts +0 -15
  997. package/dist/components/text/Pill/Pill.js +0 -44
  998. package/dist/components/text/Tag/Tag.d.ts +0 -15
  999. package/dist/components/text/Tag/Tag.js +0 -43
  1000. package/dist/components/text/Tag/tag.cva.d.ts +0 -16
  1001. package/dist/components/text/Tag/tag.cva.js +0 -55
  1002. package/dist/components/text/Typography/Typography.d.ts +0 -11
  1003. package/dist/components/text/Typography/Typography.js +0 -16
  1004. package/dist/components/text/Typography/typography.cva.d.ts +0 -49
  1005. package/dist/components/text/Typography/typography.cva.js +0 -129
  1006. package/dist/config/confirmation.context.d.ts +0 -20
  1007. package/dist/config/confirmation.context.js +0 -80
  1008. package/dist/config/i18n.d.ts +0 -313
  1009. package/dist/config/i18n.js +0 -10
  1010. package/dist/config/link.context.d.ts +0 -10
  1011. package/dist/config/link.context.js +0 -35
  1012. package/dist/config/router.context.d.ts +0 -14
  1013. package/dist/config/router.context.js +0 -63
  1014. package/dist/config/theme.context.d.ts +0 -17
  1015. package/dist/config/theme.context.js +0 -67
  1016. package/dist/config/uiConfig.context.d.ts +0 -68
  1017. package/dist/config/uiConfig.context.js +0 -125
  1018. package/dist/config/uiOverrides.context.d.ts +0 -205
  1019. package/dist/config/uiOverrides.context.js +0 -113
  1020. package/dist/helpers/dynamicColumns.d.ts +0 -44
  1021. package/dist/helpers/dynamicColumns.js +0 -275
  1022. package/dist/helpers/dynamicInputs.d.ts +0 -86
  1023. package/dist/helpers/dynamicInputs.js +0 -193
  1024. package/dist/hooks/useAutosave.d.ts +0 -10
  1025. package/dist/hooks/useAutosave.js +0 -87
  1026. package/dist/hooks/useBreakpoint.d.ts +0 -3
  1027. package/dist/hooks/useBreakpoint.js +0 -43
  1028. package/dist/hooks/useDebounceCallback.d.ts +0 -6
  1029. package/dist/hooks/useDebounceCallback.js +0 -25
  1030. package/dist/hooks/useDeepCompare.d.ts +0 -4
  1031. package/dist/hooks/useDeepCompare.js +0 -23
  1032. package/dist/hooks/useFilters.d.ts +0 -8
  1033. package/dist/hooks/useFilters.js +0 -188
  1034. package/dist/hooks/useForm.d.ts +0 -42
  1035. package/dist/hooks/useForm.js +0 -101
  1036. package/dist/hooks/useFormAutosave.d.ts +0 -14
  1037. package/dist/hooks/useFormAutosave.js +0 -73
  1038. package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
  1039. package/dist/hooks/useIntersectionObserver.d.ts +0 -8
  1040. package/dist/hooks/useIntersectionObserver.js +0 -98
  1041. package/dist/hooks/useKeyInteractions.d.ts +0 -20
  1042. package/dist/hooks/useKeyInteractions.js +0 -54
  1043. package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
  1044. package/dist/hooks/useLocalStorage.d.ts +0 -11
  1045. package/dist/hooks/useLocalStorage.js +0 -70
  1046. package/dist/hooks/useLongPressRepeat.d.ts +0 -9
  1047. package/dist/hooks/useLongPressRepeat.js +0 -29
  1048. package/dist/hooks/usePagination.d.ts +0 -7
  1049. package/dist/hooks/usePagination.js +0 -62
  1050. package/dist/hooks/useQueryAutocomplete.d.ts +0 -13
  1051. package/dist/hooks/useQueryAutocomplete.js +0 -103
  1052. package/dist/hooks/useScrollableListBox.d.ts +0 -3
  1053. package/dist/hooks/useScrollableListBox.js +0 -47
  1054. package/dist/hooks/useSorting.d.ts +0 -6
  1055. package/dist/hooks/useSorting.js +0 -80
  1056. package/dist/hooks/useStateAndRef.d.ts +0 -4
  1057. package/dist/hooks/useStateAndRef.js +0 -31
  1058. package/dist/hooks/useTableColumnConfig.d.ts +0 -16
  1059. package/dist/hooks/useTableColumnConfig.js +0 -133
  1060. package/dist/hooks/useTableNav.d.ts +0 -84
  1061. package/dist/hooks/useTableNav.js +0 -383
  1062. package/dist/hooks/useTranslationMemo.d.ts +0 -4
  1063. package/dist/hooks/useTranslationMemo.js +0 -32
  1064. package/dist/types/common.d.ts +0 -12
  1065. package/dist/types/error-handling.d.ts +0 -6
  1066. package/dist/types/react-query.d.ts +0 -6
  1067. package/dist/utils/array.utils.d.ts +0 -3
  1068. package/dist/utils/array.utils.js +0 -10
  1069. package/dist/utils/array.utils.spec.d.ts +0 -1
  1070. package/dist/utils/compoundMapper.d.ts +0 -19
  1071. package/dist/utils/compoundMapper.js +0 -13
  1072. package/dist/utils/compoundMapper.spec.d.ts +0 -1
  1073. package/dist/utils/date-time.utils.d.ts +0 -42
  1074. package/dist/utils/date-time.utils.js +0 -192
  1075. package/dist/utils/date-time.utils.spec.d.ts +0 -1
  1076. package/dist/utils/date.utils.d.ts +0 -5
  1077. package/dist/utils/date.utils.js +0 -19
  1078. package/dist/utils/date.utils.spec.d.ts +0 -1
  1079. package/dist/utils/dom.utils.d.ts +0 -5
  1080. package/dist/utils/dom.utils.js +0 -19
  1081. package/dist/utils/file.utils.d.ts +0 -13
  1082. package/dist/utils/file.utils.js +0 -50
  1083. package/dist/utils/intl.utils.d.ts +0 -7
  1084. package/dist/utils/intl.utils.js +0 -38
  1085. package/dist/utils/intl.utils.spec.d.ts +0 -1
  1086. package/dist/utils/isEqual.d.ts +0 -1
  1087. package/dist/utils/isEqual.js +0 -59
  1088. package/dist/utils/object.utils.d.ts +0 -10
  1089. package/dist/utils/object.utils.js +0 -38
  1090. package/dist/utils/queries.utils.d.ts +0 -4
  1091. package/dist/utils/queries.utils.js +0 -9
  1092. package/dist/utils/query.utils.d.ts +0 -4
  1093. package/dist/utils/query.utils.js +0 -8
  1094. package/dist/utils/rest.utils.d.ts +0 -10
  1095. package/dist/utils/rest.utils.js +0 -33
  1096. package/dist/utils/routing.utils.d.ts +0 -4
  1097. package/dist/utils/routing.utils.js +0 -25
  1098. package/dist/utils/string.utils.d.ts +0 -4
  1099. package/dist/utils/string.utils.js +0 -12
  1100. package/dist/utils/style-merge.util.d.ts +0 -43
  1101. package/dist/utils/style-merge.util.js +0 -233
  1102. package/dist/utils/style-merge.util.spec.d.ts +0 -1
  1103. package/dist/utils/zod.utils.d.ts +0 -20
  1104. package/dist/utils/zod.utils.js +0 -24
  1105. /package/dist/styles/{editor.css → styles/editor.css} +0 -0
@@ -0,0 +1,4041 @@
1
+ import { t as createLucideIcon } from "./createLucideIcon-CskCrR9z.js";
2
+ import { t as UIConfig } from "./uiConfig.context-SBtRegKv.js";
3
+ import { r as FormFieldLabel, t as FormField } from "./FormField-DoGaUqFm.js";
4
+ import { t as CheckboxCheckmark } from "./CheckboxCheckmark-C7Oq15ms.js";
5
+ import { o as Triangle } from "./Tooltip-KfGHmXdx.js";
6
+ import { t as X } from "./x-BYOEO0gW.js";
7
+ import { t as clsx } from "./clsx-CnD0nOiA.js";
8
+ import { B as $d4ee10de306f2510$export$4282f70798064fe0, D as $64fa3d84918910a7$export$fabf2dc03a41866e, E as $64fa3d84918910a7$export$ef03459518577ad4, K as $ff5963eb1fccf552$export$e08e3b67e392101e, L as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, N as $8ae05eaa5c114e9c$export$7f54fc3180508a52, R as $3ef42575df84b30b$export$9d1611c77c2fe928, S as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, T as $64fa3d84918910a7$export$df3a06d6289f983e, V as $d4ee10de306f2510$export$cd4e5573fbe2b576, W as $431fbd86ca7dc216$export$b204af158042fbac, X as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $64fa3d84918910a7$export$29f1550f4b0d4415, m as $507fabe10e71c6fb$export$ffd9e5021c1fb2d6, t as $6179b936705e76d3$export$ae780daf29e6d456, x as $64fa3d84918910a7$export$4d86445c2cf5e3, y as $64fa3d84918910a7$export$2881499e37b75b9a, z as $5dc95899b306f630$export$c9058316764c140e } from "./useHover-DwfnacVy.js";
9
+ import { a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, p as $c87311424ea30a05$export$e1865c3bedcd822b } from "./openLink-BFEMFlhB.js";
10
+ import { t as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-B3G1H2cw.js";
11
+ import { A as $ae20dd8cbca75726$export$d6daf82dcd84e87c, C as $168583247155ddda$export$dc9c12ed27dd1b49, F as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, L as $55f9b1ae81f22853$export$2b35b76d2e30e129, N as $5e3802645cc19319$export$1c3ebcada18427bf, O as $2a25aae57d74318e$export$a05409b8bb224a5a, T as $c5a24bc478652b5f$export$1005530eda016c13, c as $07b14b47974efb58$export$5b6b19405a83ff9d, h as $7135fc7d473fd974$export$4feb769f8ddf26c5, l as $07b14b47974efb58$export$9b9a0cd73afb7ca4, m as $7135fc7d473fd974$export$2dbbd341daed716d, r as $de32f1b87079253c$export$d2f961adcb0afbe, t as $de32f1b87079253c$export$2e1e1122cf0cba88, v as $e1995378a142960e$export$bf788dd355e3a401, w as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./Dialog-BQN4Z3bO.js";
12
+ import { f as $9daab02d461809db$export$683480f191c0e3ea, r as $fc909762b330b746$export$61c6a8c84e605fb6 } from "./OverlayArrow-BrSp26z2.js";
13
+ import { t as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-BROAXUSg.js";
14
+ import { t as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BhJH8XnS.js";
15
+ import { a as $e72dd72e1c76a225$export$2f645645f7bca764, c as $b1f0cad8af73213b$export$9145995848b05025, i as $eed445e0843c11d0$export$a11e76429ed99b4, n as $eed445e0843c11d0$export$7c5906fe4f1f2af2, o as $a02d57049d202695$export$d085fb9e920b5ca7, r as $eed445e0843c11d0$export$7ff8f37d2d81a48d, s as $b1f0cad8af73213b$export$3585ede4d035bf14, t as $eed445e0843c11d0$export$41f133550aa26f48 } from "./ListBox-HE5uFtiS.js";
16
+ import { t as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-Bk39gTui.js";
17
+ import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, r as $319e236875307eab$export$a9b970dcc4ae71a9, t as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-Cq7t4Xxl.js";
18
+ import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CLFkoJMP.js";
19
+ import { n as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-C2M9mXF2.js";
20
+ import { t as $bb77f239b46e8c72$export$3274cf84b703fff } from "./useFilter-BOG2VldJ.js";
21
+ import { n as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-DuXtCnJj.js";
22
+ import { t as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-BFvzYK5u.js";
23
+ import { i as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, n as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidationState-Bpry7Uk5.js";
24
+ import { t as $2d73ec29415bd339$export$712718f7aec83d5 } from "./useTextField-De01RThI.js";
25
+ import { t as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-C0MdchIz.js";
26
+ import { t as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-BTtw_Syz.js";
27
+ import { n as $ee014567cb39d3f0$export$ff05c3ac10437e03, t as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-CKUcoaMX.js";
28
+ import { n as $3985021b0ad6602f$export$f5b8910cec6cf069, t as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input-TO1R-KsB.js";
29
+ import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
30
+ import { t as Typography } from "./Typography-AcUd9df8.js";
31
+ import { t as Loader } from "./Loader-C6YkWZOO.js";
32
+ import "./i18n-C2TBJvnh.js";
33
+ import { t as BottomSheet } from "./BottomSheet-Cwci3M8j.js";
34
+ import { t as useBreakpoint } from "./useBreakpoint-D0s71F97.js";
35
+ import { TextButton } from "./components/text-button.js";
36
+ import { t as Tag } from "./Tag-DCo_fVLl.js";
37
+ import { r as InputClear, t as TooltipWrapper } from "./TooltipWrapper-CLMp_zj4.js";
38
+ import { a as inputSizeDefinition, n as inputClearClassDefinition, t as inputBaseDefinition } from "./input.cva-KYGD4Bdz.js";
39
+ import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
40
+ import { t as popoverDefinition } from "./popover.cva-CXha_UMQ.js";
41
+ import { TextInput } from "./components/text-input.js";
42
+ import $HgANd$react, { Fragment, createContext, forwardRef, use, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
43
+ import { c } from "react/compiler-runtime";
44
+ import { flushSync } from "react-dom";
45
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
46
+ import { useTranslation } from "react-i18next";
47
+ /**
48
+ * @license lucide-react v1.28.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
52
+ */
53
+ const Search = createLucideIcon("search", [["path", {
54
+ d: "m21 21-4.34-4.34",
55
+ key: "14j7rj"
56
+ }], ["circle", {
57
+ cx: "11",
58
+ cy: "11",
59
+ r: "8",
60
+ key: "4ej97u"
61
+ }]]);
62
+ //#endregion
63
+ //#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/useUpdateEffect.mjs
64
+ function $4f58c5f72bcf79f7$export$496315a1608d9602(cb, dependencies) {
65
+ const isInitialMount = useRef(true);
66
+ const lastDeps = useRef(null);
67
+ let cbEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(cb);
68
+ useEffect(() => {
69
+ isInitialMount.current = true;
70
+ return () => {
71
+ isInitialMount.current = false;
72
+ };
73
+ }, []);
74
+ useEffect(() => {
75
+ let prevDeps = lastDeps.current;
76
+ if (isInitialMount.current) isInitialMount.current = false;
77
+ else if (!prevDeps || dependencies.some((dep, i) => !Object.is(dep, prevDeps[i]))) cbEvent();
78
+ lastDeps.current = dependencies;
79
+ }, dependencies);
80
+ }
81
+ //#endregion
82
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ar-AE.mjs
83
+ var $02cb4c75c506befe$exports = {};
84
+ $02cb4c75c506befe$exports = {
85
+ "buttonLabel": `\u{639}\u{631}\u{636} \u{627}\u{644}\u{645}\u{642}\u{62A}\u{631}\u{62D}\u{627}\u{62A}`,
86
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
87
+ one: () => `${formatter.number(args.optionCount)} \u{62E}\u{64A}\u{627}\u{631}`,
88
+ other: () => `${formatter.number(args.optionCount)} \u{62E}\u{64A}\u{627}\u{631}\u{627}\u{62A}`
89
+ })} \u{645}\u{62A}\u{627}\u{62D}\u{629}.`,
90
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
91
+ true: () => `\u{627}\u{644}\u{645}\u{62C}\u{645}\u{648}\u{639}\u{629} \u{627}\u{644}\u{645}\u{62F}\u{62E}\u{644}\u{629} ${args.groupTitle}, \u{645}\u{639} ${formatter.plural(args.groupCount, {
92
+ one: () => `${formatter.number(args.groupCount)} \u{62E}\u{64A}\u{627}\u{631}`,
93
+ other: () => `${formatter.number(args.groupCount)} \u{62E}\u{64A}\u{627}\u{631}\u{627}\u{62A}`
94
+ })}. `,
95
+ other: ``
96
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
97
+ true: `, \u{645}\u{62D}\u{62F}\u{62F}`,
98
+ other: ``
99
+ }, args.isSelected)}`,
100
+ "listboxLabel": `\u{645}\u{642}\u{62A}\u{631}\u{62D}\u{627}\u{62A}`,
101
+ "selectedAnnouncement": (args) => `${args.optionText}\u{60C} \u{645}\u{62D}\u{62F}\u{62F}`
102
+ };
103
+ //#endregion
104
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/bg-BG.mjs
105
+ var $568b8163f1e56faf$exports = {};
106
+ $568b8163f1e56faf$exports = {
107
+ "buttonLabel": `\u{41F}\u{43E}\u{43A}\u{430}\u{436}\u{438} \u{43F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
108
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
109
+ one: () => `${formatter.number(args.optionCount)} \u{43E}\u{43F}\u{446}\u{438}\u{44F}`,
110
+ other: () => `${formatter.number(args.optionCount)} \u{43E}\u{43F}\u{446}\u{438}\u{438}`
111
+ })} \u{43D}\u{430} \u{440}\u{430}\u{437}\u{43F}\u{43E}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{435}.`,
112
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
113
+ true: () => `\u{412}\u{44A}\u{432}\u{435}\u{434}\u{435}\u{43D}\u{430} \u{433}\u{440}\u{443}\u{43F}\u{430} ${args.groupTitle}, \u{441} ${formatter.plural(args.groupCount, {
114
+ one: () => `${formatter.number(args.groupCount)} \u{43E}\u{43F}\u{446}\u{438}\u{44F}`,
115
+ other: () => `${formatter.number(args.groupCount)} \u{43E}\u{43F}\u{446}\u{438}\u{438}`
116
+ })}. `,
117
+ other: ``
118
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
119
+ true: `, \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`,
120
+ other: ``
121
+ }, args.isSelected)}`,
122
+ "listboxLabel": `\u{41F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
123
+ "selectedAnnouncement": (args) => `${args.optionText}, \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`
124
+ };
125
+ //#endregion
126
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/cs-CZ.mjs
127
+ var $87581c0202d106b8$exports = {};
128
+ $87581c0202d106b8$exports = {
129
+ "buttonLabel": `Zobrazit doporu\u{10D}en\xed`,
130
+ "countAnnouncement": (args, formatter) => `K dispozici ${formatter.plural(args.optionCount, {
131
+ one: () => `je ${formatter.number(args.optionCount)} mo\u{17E}nost`,
132
+ other: () => `jsou/je ${formatter.number(args.optionCount)} mo\u{17E}nosti/-\xed`
133
+ })}.`,
134
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
135
+ true: () => `Zadan\xe1 skupina \u{201E}${args.groupTitle}\u{201C} ${formatter.plural(args.groupCount, {
136
+ one: () => `s ${formatter.number(args.groupCount)} mo\u{17E}nost\xed`,
137
+ other: () => `se ${formatter.number(args.groupCount)} mo\u{17E}nostmi`
138
+ })}. `,
139
+ other: ``
140
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
141
+ true: ` (vybr\xe1no)`,
142
+ other: ``
143
+ }, args.isSelected)}`,
144
+ "listboxLabel": `N\xe1vrhy`,
145
+ "selectedAnnouncement": (args) => `${args.optionText}, vybr\xe1no`
146
+ };
147
+ //#endregion
148
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/da-DK.mjs
149
+ var $a10a0369f5433ed1$exports = {};
150
+ $a10a0369f5433ed1$exports = {
151
+ "buttonLabel": `Vis forslag`,
152
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
153
+ one: () => `${formatter.number(args.optionCount)} mulighed tilg\xe6ngelig`,
154
+ other: () => `${formatter.number(args.optionCount)} muligheder tilg\xe6ngelige`
155
+ })}.`,
156
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
157
+ true: () => `Angivet gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
158
+ one: () => `${formatter.number(args.groupCount)} mulighed`,
159
+ other: () => `${formatter.number(args.groupCount)} muligheder`
160
+ })}. `,
161
+ other: ``
162
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
163
+ true: `, valgt`,
164
+ other: ``
165
+ }, args.isSelected)}`,
166
+ "listboxLabel": `Forslag`,
167
+ "selectedAnnouncement": (args) => `${args.optionText}, valgt`
168
+ };
169
+ //#endregion
170
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/de-DE.mjs
171
+ var $bfd288727d5cb166$exports = {};
172
+ $bfd288727d5cb166$exports = {
173
+ "buttonLabel": `Empfehlungen anzeigen`,
174
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
175
+ one: () => `${formatter.number(args.optionCount)} Option`,
176
+ other: () => `${formatter.number(args.optionCount)} Optionen`
177
+ })} verf\xfcgbar.`,
178
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
179
+ true: () => `Eingetretene Gruppe ${args.groupTitle}, mit ${formatter.plural(args.groupCount, {
180
+ one: () => `${formatter.number(args.groupCount)} Option`,
181
+ other: () => `${formatter.number(args.groupCount)} Optionen`
182
+ })}. `,
183
+ other: ``
184
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
185
+ true: `, ausgew\xe4hlt`,
186
+ other: ``
187
+ }, args.isSelected)}`,
188
+ "listboxLabel": `Empfehlungen`,
189
+ "selectedAnnouncement": (args) => `${args.optionText}, ausgew\xe4hlt`
190
+ };
191
+ //#endregion
192
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/el-GR.mjs
193
+ var $ca177778f9a74e3c$exports = {};
194
+ $ca177778f9a74e3c$exports = {
195
+ "buttonLabel": `\u{3A0}\u{3C1}\u{3BF}\u{3B2}\u{3BF}\u{3BB}\u{3AE} \u{3C0}\u{3C1}\u{3BF}\u{3C4}\u{3AC}\u{3C3}\u{3B5}\u{3C9}\u{3BD}`,
196
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
197
+ one: () => `${formatter.number(args.optionCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,
198
+ other: () => `${formatter.number(args.optionCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AD}\u{3C2} `
199
+ })} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B5}\u{3C2}.`,
200
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
201
+ true: () => `\u{395}\u{3B9}\u{3C3}\u{3B1}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3BF}\u{3BC}\u{3AC}\u{3B4}\u{3B1} ${args.groupTitle}, \u{3BC}\u{3B5} ${formatter.plural(args.groupCount, {
202
+ one: () => `${formatter.number(args.groupCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AE}`,
203
+ other: () => `${formatter.number(args.groupCount)} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3BF}\u{3B3}\u{3AD}\u{3C2}`
204
+ })}. `,
205
+ other: ``
206
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
207
+ true: `, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF}`,
208
+ other: ``
209
+ }, args.isSelected)}`,
210
+ "listboxLabel": `\u{3A0}\u{3C1}\u{3BF}\u{3C4}\u{3AC}\u{3C3}\u{3B5}\u{3B9}\u{3C2}`,
211
+ "selectedAnnouncement": (args) => `${args.optionText}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5}`
212
+ };
213
+ //#endregion
214
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/en-US.mjs
215
+ var $9b5aa79ef84beb6c$exports = {};
216
+ $9b5aa79ef84beb6c$exports = {
217
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
218
+ true: () => `Entered group ${args.groupTitle}, with ${formatter.plural(args.groupCount, {
219
+ one: () => `${formatter.number(args.groupCount)} option`,
220
+ other: () => `${formatter.number(args.groupCount)} options`
221
+ })}. `,
222
+ other: ``
223
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
224
+ true: `, selected`,
225
+ other: ``
226
+ }, args.isSelected)}`,
227
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
228
+ one: () => `${formatter.number(args.optionCount)} option`,
229
+ other: () => `${formatter.number(args.optionCount)} options`
230
+ })} available.`,
231
+ "selectedAnnouncement": (args) => `${args.optionText}, selected`,
232
+ "buttonLabel": `Show suggestions`,
233
+ "listboxLabel": `Suggestions`
234
+ };
235
+ //#endregion
236
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/es-ES.mjs
237
+ var $57968e8209de2557$exports = {};
238
+ $57968e8209de2557$exports = {
239
+ "buttonLabel": `Mostrar sugerencias`,
240
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
241
+ one: () => `${formatter.number(args.optionCount)} opci\xf3n`,
242
+ other: () => `${formatter.number(args.optionCount)} opciones`
243
+ })} disponible(s).`,
244
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
245
+ true: () => `Se ha unido al grupo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {
246
+ one: () => `${formatter.number(args.groupCount)} opci\xf3n`,
247
+ other: () => `${formatter.number(args.groupCount)} opciones`
248
+ })}. `,
249
+ other: ``
250
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
251
+ true: `, seleccionado`,
252
+ other: ``
253
+ }, args.isSelected)}`,
254
+ "listboxLabel": `Sugerencias`,
255
+ "selectedAnnouncement": (args) => `${args.optionText}, seleccionado`
256
+ };
257
+ //#endregion
258
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/et-EE.mjs
259
+ var $60690790bf4c1c6a$exports = {};
260
+ $60690790bf4c1c6a$exports = {
261
+ "buttonLabel": `Kuva soovitused`,
262
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
263
+ one: () => `${formatter.number(args.optionCount)} valik`,
264
+ other: () => `${formatter.number(args.optionCount)} valikud`
265
+ })} saadaval.`,
266
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
267
+ true: () => `Sisestatud r\xfchm ${args.groupTitle}, valikuga ${formatter.plural(args.groupCount, {
268
+ one: () => `${formatter.number(args.groupCount)} valik`,
269
+ other: () => `${formatter.number(args.groupCount)} valikud`
270
+ })}. `,
271
+ other: ``
272
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
273
+ true: `, valitud`,
274
+ other: ``
275
+ }, args.isSelected)}`,
276
+ "listboxLabel": `Soovitused`,
277
+ "selectedAnnouncement": (args) => `${args.optionText}, valitud`
278
+ };
279
+ //#endregion
280
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/fi-FI.mjs
281
+ var $1101246e8c7d9357$exports = {};
282
+ $1101246e8c7d9357$exports = {
283
+ "buttonLabel": `N\xe4yt\xe4 ehdotukset`,
284
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
285
+ one: () => `${formatter.number(args.optionCount)} vaihtoehto`,
286
+ other: () => `${formatter.number(args.optionCount)} vaihtoehdot`
287
+ })} saatavilla.`,
288
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
289
+ true: () => `Mentiin ryhm\xe4\xe4n ${args.groupTitle}, ${formatter.plural(args.groupCount, {
290
+ one: () => `${formatter.number(args.groupCount)} vaihtoehdon`,
291
+ other: () => `${formatter.number(args.groupCount)} vaihtoehdon`
292
+ })} kanssa.`,
293
+ other: ``
294
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
295
+ true: `, valittu`,
296
+ other: ``
297
+ }, args.isSelected)}`,
298
+ "listboxLabel": `Ehdotukset`,
299
+ "selectedAnnouncement": (args) => `${args.optionText}, valittu`
300
+ };
301
+ //#endregion
302
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/fr-FR.mjs
303
+ var $6404b5cb5b241730$exports = {};
304
+ $6404b5cb5b241730$exports = {
305
+ "buttonLabel": `Afficher les suggestions`,
306
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
307
+ one: () => `${formatter.number(args.optionCount)} option`,
308
+ other: () => `${formatter.number(args.optionCount)} options`
309
+ })} disponible(s).`,
310
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
311
+ true: () => `Groupe ${args.groupTitle} rejoint, avec ${formatter.plural(args.groupCount, {
312
+ one: () => `${formatter.number(args.groupCount)} option`,
313
+ other: () => `${formatter.number(args.groupCount)} options`
314
+ })}. `,
315
+ other: ``
316
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
317
+ true: `, s\xe9lectionn\xe9(s)`,
318
+ other: ``
319
+ }, args.isSelected)}`,
320
+ "listboxLabel": `Suggestions`,
321
+ "selectedAnnouncement": (args) => `${args.optionText}, s\xe9lectionn\xe9`
322
+ };
323
+ //#endregion
324
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/he-IL.mjs
325
+ var $dfeafa702e92e31f$exports = {};
326
+ $dfeafa702e92e31f$exports = {
327
+ "buttonLabel": `\u{5D4}\u{5E6}\u{5D2} \u{5D4}\u{5E6}\u{5E2}\u{5D5}\u{5EA}`,
328
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
329
+ one: () => `\u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5EA} ${formatter.number(args.optionCount)}`,
330
+ other: () => `${formatter.number(args.optionCount)} \u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5D9}\u{5D5}\u{5EA}`
331
+ })} \u{5D1}\u{5DE}\u{5E6}\u{5D1} \u{5D6}\u{5DE}\u{5D9}\u{5DF}.`,
332
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
333
+ true: () => `\u{5E0}\u{5DB}\u{5E0}\u{5E1} \u{5DC}\u{5E7}\u{5D1}\u{5D5}\u{5E6}\u{5D4} ${args.groupTitle}, \u{5E2}\u{5DD} ${formatter.plural(args.groupCount, {
334
+ one: () => `\u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5EA} ${formatter.number(args.groupCount)}`,
335
+ other: () => `${formatter.number(args.groupCount)} \u{5D0}\u{5E4}\u{5E9}\u{5E8}\u{5D5}\u{5D9}\u{5D5}\u{5EA}`
336
+ })}. `,
337
+ other: ``
338
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
339
+ true: `, \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,
340
+ other: ``
341
+ }, args.isSelected)}`,
342
+ "listboxLabel": `\u{5D4}\u{5E6}\u{5E2}\u{5D5}\u{5EA}`,
343
+ "selectedAnnouncement": (args) => `${args.optionText}, \u{5E0}\u{5D1}\u{5D7}\u{5E8}`
344
+ };
345
+ //#endregion
346
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/hr-HR.mjs
347
+ var $2d125e0b34676352$exports = {};
348
+ $2d125e0b34676352$exports = {
349
+ "buttonLabel": `Prika\u{17E}i prijedloge`,
350
+ "countAnnouncement": (args, formatter) => `Dostupno jo\u{161}: ${formatter.plural(args.optionCount, {
351
+ one: () => `${formatter.number(args.optionCount)} opcija`,
352
+ other: () => `${formatter.number(args.optionCount)} opcije/a`
353
+ })}.`,
354
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
355
+ true: () => `Unesena skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
356
+ one: () => `${formatter.number(args.groupCount)} opcijom`,
357
+ other: () => `${formatter.number(args.groupCount)} opcije/a`
358
+ })}. `,
359
+ other: ``
360
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
361
+ true: `, odabranih`,
362
+ other: ``
363
+ }, args.isSelected)}`,
364
+ "listboxLabel": `Prijedlozi`,
365
+ "selectedAnnouncement": (args) => `${args.optionText}, odabrano`
366
+ };
367
+ //#endregion
368
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/hu-HU.mjs
369
+ var $ea029611d7634059$exports = {};
370
+ $ea029611d7634059$exports = {
371
+ "buttonLabel": `Javaslatok megjelen\xedt\xe9se`,
372
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
373
+ one: () => `${formatter.number(args.optionCount)} lehet\u{151}s\xe9g`,
374
+ other: () => `${formatter.number(args.optionCount)} lehet\u{151}s\xe9g`
375
+ })} \xe1ll rendelkez\xe9sre.`,
376
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
377
+ true: () => `Bel\xe9pett a(z) ${args.groupTitle} csoportba, amely ${formatter.plural(args.groupCount, {
378
+ one: () => `${formatter.number(args.groupCount)} lehet\u{151}s\xe9get`,
379
+ other: () => `${formatter.number(args.groupCount)} lehet\u{151}s\xe9get`
380
+ })} tartalmaz. `,
381
+ other: ``
382
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
383
+ true: `, kijel\xf6lve`,
384
+ other: ``
385
+ }, args.isSelected)}`,
386
+ "listboxLabel": `Javaslatok`,
387
+ "selectedAnnouncement": (args) => `${args.optionText}, kijel\xf6lve`
388
+ };
389
+ //#endregion
390
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/it-IT.mjs
391
+ var $77f075bb86ad7091$exports = {};
392
+ $77f075bb86ad7091$exports = {
393
+ "buttonLabel": `Mostra suggerimenti`,
394
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
395
+ one: () => `${formatter.number(args.optionCount)} opzione disponibile`,
396
+ other: () => `${formatter.number(args.optionCount)} opzioni disponibili`
397
+ })}.`,
398
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
399
+ true: () => `Ingresso nel gruppo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {
400
+ one: () => `${formatter.number(args.groupCount)} opzione`,
401
+ other: () => `${formatter.number(args.groupCount)} opzioni`
402
+ })}. `,
403
+ other: ``
404
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
405
+ true: `, selezionato`,
406
+ other: ``
407
+ }, args.isSelected)}`,
408
+ "listboxLabel": `Suggerimenti`,
409
+ "selectedAnnouncement": (args) => `${args.optionText}, selezionato`
410
+ };
411
+ //#endregion
412
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ja-JP.mjs
413
+ var $6e87462e84907983$exports = {};
414
+ $6e87462e84907983$exports = {
415
+ "buttonLabel": `\u{5019}\u{88DC}\u{3092}\u{8868}\u{793A}`,
416
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
417
+ one: () => `${formatter.number(args.optionCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`,
418
+ other: () => `${formatter.number(args.optionCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`
419
+ })}\u{3092}\u{5229}\u{7528}\u{3067}\u{304D}\u{307E}\u{3059}\u{3002}`,
420
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
421
+ true: () => `\u{5165}\u{529B}\u{3055}\u{308C}\u{305F}\u{30B0}\u{30EB}\u{30FC}\u{30D7} ${args.groupTitle}\u{3001}${formatter.plural(args.groupCount, {
422
+ one: () => `${formatter.number(args.groupCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`,
423
+ other: () => `${formatter.number(args.groupCount)} \u{500B}\u{306E}\u{30AA}\u{30D7}\u{30B7}\u{30E7}\u{30F3}`
424
+ })}\u{3092}\u{542B}\u{3080}\u{3002}`,
425
+ other: ``
426
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
427
+ true: `\u{3001}\u{9078}\u{629E}\u{6E08}\u{307F}`,
428
+ other: ``
429
+ }, args.isSelected)}`,
430
+ "listboxLabel": `\u{5019}\u{88DC}`,
431
+ "selectedAnnouncement": (args) => `${args.optionText}\u{3001}\u{9078}\u{629E}\u{6E08}\u{307F}`
432
+ };
433
+ //#endregion
434
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ko-KR.mjs
435
+ var $9246f2c6edc6b232$exports = {};
436
+ $9246f2c6edc6b232$exports = {
437
+ "buttonLabel": `\u{C81C}\u{C548} \u{C0AC}\u{D56D} \u{D45C}\u{C2DC}`,
438
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
439
+ one: () => `${formatter.number(args.optionCount)}\u{AC1C} \u{C635}\u{C158}`,
440
+ other: () => `${formatter.number(args.optionCount)}\u{AC1C} \u{C635}\u{C158}`
441
+ })}\u{C744} \u{C0AC}\u{C6A9}\u{D560} \u{C218} \u{C788}\u{C2B5}\u{B2C8}\u{B2E4}.`,
442
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
443
+ true: () => `\u{C785}\u{B825}\u{D55C} \u{ADF8}\u{B8F9} ${args.groupTitle}, ${formatter.plural(args.groupCount, {
444
+ one: () => `${formatter.number(args.groupCount)}\u{AC1C} \u{C635}\u{C158}`,
445
+ other: () => `${formatter.number(args.groupCount)}\u{AC1C} \u{C635}\u{C158}`
446
+ })}. `,
447
+ other: ``
448
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
449
+ true: `, \u{C120}\u{D0DD}\u{B428}`,
450
+ other: ``
451
+ }, args.isSelected)}`,
452
+ "listboxLabel": `\u{C81C}\u{C548}`,
453
+ "selectedAnnouncement": (args) => `${args.optionText}, \u{C120}\u{D0DD}\u{B428}`
454
+ };
455
+ //#endregion
456
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/lt-LT.mjs
457
+ var $e587accc6c0a434c$exports = {};
458
+ $e587accc6c0a434c$exports = {
459
+ "buttonLabel": `Rodyti pasi\u{16B}lymus`,
460
+ "countAnnouncement": (args, formatter) => `Yra ${formatter.plural(args.optionCount, {
461
+ one: () => `${formatter.number(args.optionCount)} parinktis`,
462
+ other: () => `${formatter.number(args.optionCount)} parinktys (-i\u{173})`
463
+ })}.`,
464
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
465
+ true: () => `\u{12E}vesta grup\u{117} ${args.groupTitle}, su ${formatter.plural(args.groupCount, {
466
+ one: () => `${formatter.number(args.groupCount)} parinktimi`,
467
+ other: () => `${formatter.number(args.groupCount)} parinktimis (-i\u{173})`
468
+ })}. `,
469
+ other: ``
470
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
471
+ true: `, pasirinkta`,
472
+ other: ``
473
+ }, args.isSelected)}`,
474
+ "listboxLabel": `Pasi\u{16B}lymai`,
475
+ "selectedAnnouncement": (args) => `${args.optionText}, pasirinkta`
476
+ };
477
+ //#endregion
478
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/lv-LV.mjs
479
+ var $03a1900e7400b5ab$exports = {};
480
+ $03a1900e7400b5ab$exports = {
481
+ "buttonLabel": `R\u{101}d\u{12B}t ieteikumus`,
482
+ "countAnnouncement": (args, formatter) => `Pieejamo opciju skaits: ${formatter.plural(args.optionCount, {
483
+ one: () => `${formatter.number(args.optionCount)} opcija`,
484
+ other: () => `${formatter.number(args.optionCount)} opcijas`
485
+ })}.`,
486
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
487
+ true: () => `Ievad\u{12B}ta grupa ${args.groupTitle}, ar ${formatter.plural(args.groupCount, {
488
+ one: () => `${formatter.number(args.groupCount)} opciju`,
489
+ other: () => `${formatter.number(args.groupCount)} opcij\u{101}m`
490
+ })}. `,
491
+ other: ``
492
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
493
+ true: `, atlas\u{12B}ta`,
494
+ other: ``
495
+ }, args.isSelected)}`,
496
+ "listboxLabel": `Ieteikumi`,
497
+ "selectedAnnouncement": (args) => `${args.optionText}, atlas\u{12B}ta`
498
+ };
499
+ //#endregion
500
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/nb-NO.mjs
501
+ var $1387676441be6cf6$exports = {};
502
+ $1387676441be6cf6$exports = {
503
+ "buttonLabel": `Vis forslag`,
504
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
505
+ one: () => `${formatter.number(args.optionCount)} alternativ`,
506
+ other: () => `${formatter.number(args.optionCount)} alternativer`
507
+ })} finnes.`,
508
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
509
+ true: () => `Angitt gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
510
+ one: () => `${formatter.number(args.groupCount)} alternativ`,
511
+ other: () => `${formatter.number(args.groupCount)} alternativer`
512
+ })}. `,
513
+ other: ``
514
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
515
+ true: `, valgt`,
516
+ other: ``
517
+ }, args.isSelected)}`,
518
+ "listboxLabel": `Forslag`,
519
+ "selectedAnnouncement": (args) => `${args.optionText}, valgt`
520
+ };
521
+ //#endregion
522
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/nl-NL.mjs
523
+ var $17e82ebf0f8ab91f$exports = {};
524
+ $17e82ebf0f8ab91f$exports = {
525
+ "buttonLabel": `Suggesties weergeven`,
526
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
527
+ one: () => `${formatter.number(args.optionCount)} optie`,
528
+ other: () => `${formatter.number(args.optionCount)} opties`
529
+ })} beschikbaar.`,
530
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
531
+ true: () => `Groep ${args.groupTitle} ingevoerd met ${formatter.plural(args.groupCount, {
532
+ one: () => `${formatter.number(args.groupCount)} optie`,
533
+ other: () => `${formatter.number(args.groupCount)} opties`
534
+ })}. `,
535
+ other: ``
536
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
537
+ true: `, geselecteerd`,
538
+ other: ``
539
+ }, args.isSelected)}`,
540
+ "listboxLabel": `Suggesties`,
541
+ "selectedAnnouncement": (args) => `${args.optionText}, geselecteerd`
542
+ };
543
+ //#endregion
544
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/pl-PL.mjs
545
+ var $2f5377d3471630e5$exports = {};
546
+ $2f5377d3471630e5$exports = {
547
+ "buttonLabel": `Wy\u{15B}wietlaj sugestie`,
548
+ "countAnnouncement": (args, formatter) => `dost\u{119}pna/dost\u{119}pne(-nych) ${formatter.plural(args.optionCount, {
549
+ one: () => `${formatter.number(args.optionCount)} opcja`,
550
+ other: () => `${formatter.number(args.optionCount)} opcje(-i)`
551
+ })}.`,
552
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
553
+ true: () => `Do\u{142}\u{105}czono do grupy ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
554
+ one: () => `${formatter.number(args.groupCount)} opcj\u{105}`,
555
+ other: () => `${formatter.number(args.groupCount)} opcjami`
556
+ })}. `,
557
+ other: ``
558
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
559
+ true: `, wybrano`,
560
+ other: ``
561
+ }, args.isSelected)}`,
562
+ "listboxLabel": `Sugestie`,
563
+ "selectedAnnouncement": (args) => `${args.optionText}, wybrano`
564
+ };
565
+ //#endregion
566
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/pt-BR.mjs
567
+ var $dee9868b6fa95ffe$exports = {};
568
+ $dee9868b6fa95ffe$exports = {
569
+ "buttonLabel": `Mostrar sugest\xf5es`,
570
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
571
+ one: () => `${formatter.number(args.optionCount)} op\xe7\xe3o`,
572
+ other: () => `${formatter.number(args.optionCount)} op\xe7\xf5es`
573
+ })} dispon\xedvel.`,
574
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
575
+ true: () => `Grupo inserido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
576
+ one: () => `${formatter.number(args.groupCount)} op\xe7\xe3o`,
577
+ other: () => `${formatter.number(args.groupCount)} op\xe7\xf5es`
578
+ })}. `,
579
+ other: ``
580
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
581
+ true: `, selecionado`,
582
+ other: ``
583
+ }, args.isSelected)}`,
584
+ "listboxLabel": `Sugest\xf5es`,
585
+ "selectedAnnouncement": (args) => `${args.optionText}, selecionado`
586
+ };
587
+ //#endregion
588
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/pt-PT.mjs
589
+ var $f8b2e63637cbb5a6$exports = {};
590
+ $f8b2e63637cbb5a6$exports = {
591
+ "buttonLabel": `Apresentar sugest\xf5es`,
592
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
593
+ one: () => `${formatter.number(args.optionCount)} op\xe7\xe3o`,
594
+ other: () => `${formatter.number(args.optionCount)} op\xe7\xf5es`
595
+ })} dispon\xedvel.`,
596
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
597
+ true: () => `Grupo introduzido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
598
+ one: () => `${formatter.number(args.groupCount)} op\xe7\xe3o`,
599
+ other: () => `${formatter.number(args.groupCount)} op\xe7\xf5es`
600
+ })}. `,
601
+ other: ``
602
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
603
+ true: `, selecionado`,
604
+ other: ``
605
+ }, args.isSelected)}`,
606
+ "listboxLabel": `Sugest\xf5es`,
607
+ "selectedAnnouncement": (args) => `${args.optionText}, selecionado`
608
+ };
609
+ //#endregion
610
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ro-RO.mjs
611
+ var $46a885db3b44ea95$exports = {};
612
+ $46a885db3b44ea95$exports = {
613
+ "buttonLabel": `Afi\u{219}are sugestii`,
614
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
615
+ one: () => `${formatter.number(args.optionCount)} op\u{21B}iune`,
616
+ other: () => `${formatter.number(args.optionCount)} op\u{21B}iuni`
617
+ })} disponibile.`,
618
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
619
+ true: () => `Grup ${args.groupTitle} introdus, cu ${formatter.plural(args.groupCount, {
620
+ one: () => `${formatter.number(args.groupCount)} op\u{21B}iune`,
621
+ other: () => `${formatter.number(args.groupCount)} op\u{21B}iuni`
622
+ })}. `,
623
+ other: ``
624
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
625
+ true: `, selectat`,
626
+ other: ``
627
+ }, args.isSelected)}`,
628
+ "listboxLabel": `Sugestii`,
629
+ "selectedAnnouncement": (args) => `${args.optionText}, selectat`
630
+ };
631
+ //#endregion
632
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/ru-RU.mjs
633
+ var $50d8a8f0afa9dee5$exports = {};
634
+ $50d8a8f0afa9dee5$exports = {
635
+ "buttonLabel": `\u{41F}\u{43E}\u{43A}\u{430}\u{437}\u{430}\u{442}\u{44C} \u{43F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
636
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
637
+ one: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
638
+ other: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{43E}\u{432}`
639
+ })} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}.`,
640
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
641
+ true: () => `\u{412}\u{432}\u{435}\u{434}\u{435}\u{43D}\u{43D}\u{430}\u{44F} \u{433}\u{440}\u{443}\u{43F}\u{43F}\u{430} ${args.groupTitle}, \u{441} ${formatter.plural(args.groupCount, {
642
+ one: () => `${formatter.number(args.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{43E}\u{43C}`,
643
+ other: () => `${formatter.number(args.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{430}\u{43C}\u{438}`
644
+ })}. `,
645
+ other: ``
646
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
647
+ true: `, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{43C}\u{438}`,
648
+ other: ``
649
+ }, args.isSelected)}`,
650
+ "listboxLabel": `\u{41F}\u{440}\u{435}\u{434}\u{43B}\u{43E}\u{436}\u{435}\u{43D}\u{438}\u{44F}`,
651
+ "selectedAnnouncement": (args) => `${args.optionText}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}`
652
+ };
653
+ //#endregion
654
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/sk-SK.mjs
655
+ var $2867ee6173245507$exports = {};
656
+ $2867ee6173245507$exports = {
657
+ "buttonLabel": `Zobrazi\u{165} n\xe1vrhy`,
658
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
659
+ one: () => `${formatter.number(args.optionCount)} mo\u{17E}nos\u{165}`,
660
+ other: () => `${formatter.number(args.optionCount)} mo\u{17E}nosti/-\xed`
661
+ })} k dispoz\xedcii.`,
662
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
663
+ true: () => `Zadan\xe1 skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
664
+ one: () => `${formatter.number(args.groupCount)} mo\u{17E}nos\u{165}ou`,
665
+ other: () => `${formatter.number(args.groupCount)} mo\u{17E}nos\u{165}ami`
666
+ })}. `,
667
+ other: ``
668
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
669
+ true: `, vybrat\xe9`,
670
+ other: ``
671
+ }, args.isSelected)}`,
672
+ "listboxLabel": `N\xe1vrhy`,
673
+ "selectedAnnouncement": (args) => `${args.optionText}, vybrat\xe9`
674
+ };
675
+ //#endregion
676
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/sl-SI.mjs
677
+ var $0631b65beeb09b50$exports = {};
678
+ $0631b65beeb09b50$exports = {
679
+ "buttonLabel": `Prika\u{17E}i predloge`,
680
+ "countAnnouncement": (args, formatter) => `Na voljo je ${formatter.plural(args.optionCount, {
681
+ one: () => `${formatter.number(args.optionCount)} opcija`,
682
+ other: () => `${formatter.number(args.optionCount)} opcije`
683
+ })}.`,
684
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
685
+ true: () => `Vnesena skupina ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
686
+ one: () => `${formatter.number(args.groupCount)} opcija`,
687
+ other: () => `${formatter.number(args.groupCount)} opcije`
688
+ })}. `,
689
+ other: ``
690
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
691
+ true: `, izbrano`,
692
+ other: ``
693
+ }, args.isSelected)}`,
694
+ "listboxLabel": `Predlogi`,
695
+ "selectedAnnouncement": (args) => `${args.optionText}, izbrano`
696
+ };
697
+ //#endregion
698
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/sr-SP.mjs
699
+ var $65fc749265dcd686$exports = {};
700
+ $65fc749265dcd686$exports = {
701
+ "buttonLabel": `Prika\u{17E}i predloge`,
702
+ "countAnnouncement": (args, formatter) => `Dostupno jo\u{161}: ${formatter.plural(args.optionCount, {
703
+ one: () => `${formatter.number(args.optionCount)} opcija`,
704
+ other: () => `${formatter.number(args.optionCount)} opcije/a`
705
+ })}.`,
706
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
707
+ true: () => `Unesena grupa ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
708
+ one: () => `${formatter.number(args.groupCount)} opcijom`,
709
+ other: () => `${formatter.number(args.groupCount)} optione/a`
710
+ })}. `,
711
+ other: ``
712
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
713
+ true: `, izabranih`,
714
+ other: ``
715
+ }, args.isSelected)}`,
716
+ "listboxLabel": `Predlozi`,
717
+ "selectedAnnouncement": (args) => `${args.optionText}, izabrano`
718
+ };
719
+ //#endregion
720
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/sv-SE.mjs
721
+ var $69ba655c7853c08e$exports = {};
722
+ $69ba655c7853c08e$exports = {
723
+ "buttonLabel": `Visa f\xf6rslag`,
724
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
725
+ one: () => `${formatter.number(args.optionCount)} alternativ`,
726
+ other: () => `${formatter.number(args.optionCount)} alternativ`
727
+ })} tillg\xe4ngliga.`,
728
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
729
+ true: () => `Ingick i gruppen ${args.groupTitle} med ${formatter.plural(args.groupCount, {
730
+ one: () => `${formatter.number(args.groupCount)} alternativ`,
731
+ other: () => `${formatter.number(args.groupCount)} alternativ`
732
+ })}. `,
733
+ other: ``
734
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
735
+ true: `, valda`,
736
+ other: ``
737
+ }, args.isSelected)}`,
738
+ "listboxLabel": `F\xf6rslag`,
739
+ "selectedAnnouncement": (args) => `${args.optionText}, valda`
740
+ };
741
+ //#endregion
742
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/tr-TR.mjs
743
+ var $a79794784d61577c$exports = {};
744
+ $a79794784d61577c$exports = {
745
+ "buttonLabel": `\xd6nerileri g\xf6ster`,
746
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
747
+ one: () => `${formatter.number(args.optionCount)} se\xe7enek`,
748
+ other: () => `${formatter.number(args.optionCount)} se\xe7enekler`
749
+ })} kullan\u{131}labilir.`,
750
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
751
+ true: () => `Girilen grup ${args.groupTitle}, ile ${formatter.plural(args.groupCount, {
752
+ one: () => `${formatter.number(args.groupCount)} se\xe7enek`,
753
+ other: () => `${formatter.number(args.groupCount)} se\xe7enekler`
754
+ })}. `,
755
+ other: ``
756
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
757
+ true: `, se\xe7ildi`,
758
+ other: ``
759
+ }, args.isSelected)}`,
760
+ "listboxLabel": `\xd6neriler`,
761
+ "selectedAnnouncement": (args) => `${args.optionText}, se\xe7ildi`
762
+ };
763
+ //#endregion
764
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/uk-UA.mjs
765
+ var $c2845791417ebaf4$exports = {};
766
+ $c2845791417ebaf4$exports = {
767
+ "buttonLabel": `\u{41F}\u{43E}\u{43A}\u{430}\u{437}\u{430}\u{442}\u{438} \u{43F}\u{440}\u{43E}\u{43F}\u{43E}\u{437}\u{438}\u{446}\u{456}\u{457}`,
768
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
769
+ one: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
770
+ other: () => `${formatter.number(args.optionCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{438}(-\u{456}\u{432})`
771
+ })} \u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{43E}.`,
772
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
773
+ true: () => `\u{412}\u{432}\u{435}\u{434}\u{435}\u{43D}\u{430} \u{433}\u{440}\u{443}\u{43F}\u{430} ${args.groupTitle}, \u{437} ${formatter.plural(args.groupCount, {
774
+ one: () => `${formatter.number(args.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}`,
775
+ other: () => `${formatter.number(args.groupCount)} \u{43F}\u{430}\u{440}\u{430}\u{43C}\u{435}\u{442}\u{440}\u{438}(-\u{456}\u{432})`
776
+ })}. `,
777
+ other: ``
778
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
779
+ true: `, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`,
780
+ other: ``
781
+ }, args.isSelected)}`,
782
+ "listboxLabel": `\u{41F}\u{440}\u{43E}\u{43F}\u{43E}\u{437}\u{438}\u{446}\u{456}\u{457}`,
783
+ "selectedAnnouncement": (args) => `${args.optionText}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}`
784
+ };
785
+ //#endregion
786
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/zh-CN.mjs
787
+ var $29b642d0025cc7a4$exports = {};
788
+ $29b642d0025cc7a4$exports = {
789
+ "buttonLabel": `\u{663E}\u{793A}\u{5EFA}\u{8BAE}`,
790
+ "countAnnouncement": (args, formatter) => `\u{6709} ${formatter.plural(args.optionCount, {
791
+ one: () => `${formatter.number(args.optionCount)} \u{4E2A}\u{9009}\u{9879}`,
792
+ other: () => `${formatter.number(args.optionCount)} \u{4E2A}\u{9009}\u{9879}`
793
+ })}\u{53EF}\u{7528}\u{3002}`,
794
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
795
+ true: () => `\u{8FDB}\u{5165}\u{4E86} ${args.groupTitle} \u{7EC4}\u{FF0C}\u{5176}\u{4E2D}\u{6709} ${formatter.plural(args.groupCount, {
796
+ one: () => `${formatter.number(args.groupCount)} \u{4E2A}\u{9009}\u{9879}`,
797
+ other: () => `${formatter.number(args.groupCount)} \u{4E2A}\u{9009}\u{9879}`
798
+ })}. `,
799
+ other: ``
800
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
801
+ true: `, \u{5DF2}\u{9009}\u{62E9}`,
802
+ other: ``
803
+ }, args.isSelected)}`,
804
+ "listboxLabel": `\u{5EFA}\u{8BAE}`,
805
+ "selectedAnnouncement": (args) => `${args.optionText}, \u{5DF2}\u{9009}\u{62E9}`
806
+ };
807
+ //#endregion
808
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/zh-TW.mjs
809
+ var $cd36dd33f9d46936$exports = {};
810
+ $cd36dd33f9d46936$exports = {
811
+ "buttonLabel": `\u{986F}\u{793A}\u{5EFA}\u{8B70}`,
812
+ "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
813
+ one: () => `${formatter.number(args.optionCount)} \u{9078}\u{9805}`,
814
+ other: () => `${formatter.number(args.optionCount)} \u{9078}\u{9805}`
815
+ })} \u{53EF}\u{7528}\u{3002}`,
816
+ "focusAnnouncement": (args, formatter) => `${formatter.select({
817
+ true: () => `\u{8F38}\u{5165}\u{7684}\u{7FA4}\u{7D44} ${args.groupTitle}, \u{6709} ${formatter.plural(args.groupCount, {
818
+ one: () => `${formatter.number(args.groupCount)} \u{9078}\u{9805}`,
819
+ other: () => `${formatter.number(args.groupCount)} \u{9078}\u{9805}`
820
+ })}. `,
821
+ other: ``
822
+ }, args.isGroupChange)}${args.optionText}${formatter.select({
823
+ true: `, \u{5DF2}\u{9078}\u{53D6}`,
824
+ other: ``
825
+ }, args.isSelected)}`,
826
+ "listboxLabel": `\u{5EFA}\u{8B70}`,
827
+ "selectedAnnouncement": (args) => `${args.optionText}, \u{5DF2}\u{9078}\u{53D6}`
828
+ };
829
+ //#endregion
830
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/intlStrings.mjs
831
+ var $de5926a92e8ebc5b$exports = {};
832
+ $de5926a92e8ebc5b$exports = {
833
+ "ar-AE": $02cb4c75c506befe$exports,
834
+ "bg-BG": $568b8163f1e56faf$exports,
835
+ "cs-CZ": $87581c0202d106b8$exports,
836
+ "da-DK": $a10a0369f5433ed1$exports,
837
+ "de-DE": $bfd288727d5cb166$exports,
838
+ "el-GR": $ca177778f9a74e3c$exports,
839
+ "en-US": $9b5aa79ef84beb6c$exports,
840
+ "es-ES": $57968e8209de2557$exports,
841
+ "et-EE": $60690790bf4c1c6a$exports,
842
+ "fi-FI": $1101246e8c7d9357$exports,
843
+ "fr-FR": $6404b5cb5b241730$exports,
844
+ "he-IL": $dfeafa702e92e31f$exports,
845
+ "hr-HR": $2d125e0b34676352$exports,
846
+ "hu-HU": $ea029611d7634059$exports,
847
+ "it-IT": $77f075bb86ad7091$exports,
848
+ "ja-JP": $6e87462e84907983$exports,
849
+ "ko-KR": $9246f2c6edc6b232$exports,
850
+ "lt-LT": $e587accc6c0a434c$exports,
851
+ "lv-LV": $03a1900e7400b5ab$exports,
852
+ "nb-NO": $1387676441be6cf6$exports,
853
+ "nl-NL": $17e82ebf0f8ab91f$exports,
854
+ "pl-PL": $2f5377d3471630e5$exports,
855
+ "pt-BR": $dee9868b6fa95ffe$exports,
856
+ "pt-PT": $f8b2e63637cbb5a6$exports,
857
+ "ro-RO": $46a885db3b44ea95$exports,
858
+ "ru-RU": $50d8a8f0afa9dee5$exports,
859
+ "sk-SK": $2867ee6173245507$exports,
860
+ "sl-SI": $0631b65beeb09b50$exports,
861
+ "sr-SP": $65fc749265dcd686$exports,
862
+ "sv-SE": $69ba655c7853c08e$exports,
863
+ "tr-TR": $a79794784d61577c$exports,
864
+ "uk-UA": $c2845791417ebaf4$exports,
865
+ "zh-CN": $29b642d0025cc7a4$exports,
866
+ "zh-TW": $cd36dd33f9d46936$exports
867
+ };
868
+ //#endregion
869
+ //#region ../../node_modules/.bun/@react-aria+combobox@3.14.2+67f6792bdf102c28/node_modules/@react-aria/combobox/dist/useComboBox.mjs
870
+ function $parcel$interopDefault(a) {
871
+ return a && a.__esModule ? a.default : a;
872
+ }
873
+ function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
874
+ let { buttonRef, popoverRef, inputRef, listBoxRef, keyboardDelegate, layoutDelegate, shouldFocusWrap, isReadOnly, isDisabled } = props;
875
+ let backupBtnRef = useRef(null);
876
+ buttonRef = buttonRef !== null && buttonRef !== void 0 ? buttonRef : backupBtnRef;
877
+ let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($de5926a92e8ebc5b$exports), "@react-aria/combobox");
878
+ let { menuTriggerProps, menuProps } = $168583247155ddda$export$dc9c12ed27dd1b49({
879
+ type: "listbox",
880
+ isDisabled: isDisabled || isReadOnly
881
+ }, state, buttonRef);
882
+ $b1f0cad8af73213b$export$3585ede4d035bf14.set(state, { id: menuProps.id });
883
+ let { collection } = state;
884
+ let { disabledKeys } = state.selectionManager;
885
+ let delegate = useMemo(() => keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
886
+ collection,
887
+ disabledKeys,
888
+ ref: listBoxRef,
889
+ layoutDelegate
890
+ }), [
891
+ keyboardDelegate,
892
+ layoutDelegate,
893
+ collection,
894
+ disabledKeys,
895
+ listBoxRef
896
+ ]);
897
+ let { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
898
+ selectionManager: state.selectionManager,
899
+ keyboardDelegate: delegate,
900
+ disallowTypeAhead: true,
901
+ disallowEmptySelection: true,
902
+ shouldFocusWrap,
903
+ ref: inputRef,
904
+ isVirtualized: true
905
+ });
906
+ let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
907
+ let onKeyDown = (e) => {
908
+ if (e.nativeEvent.isComposing) return;
909
+ switch (e.key) {
910
+ case "Enter":
911
+ case "Tab":
912
+ if (state.isOpen && e.key === "Enter") e.preventDefault();
913
+ if (state.isOpen && listBoxRef.current && state.selectionManager.focusedKey != null) {
914
+ let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);
915
+ if (collectionItem === null || collectionItem === void 0 ? void 0 : collectionItem.props.href) {
916
+ let item = listBoxRef.current.querySelector(`[data-key="${CSS.escape(state.selectionManager.focusedKey.toString())}"]`);
917
+ if (e.key === "Enter" && item instanceof HTMLAnchorElement) router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);
918
+ state.close();
919
+ break;
920
+ } else if (collectionItem === null || collectionItem === void 0 ? void 0 : collectionItem.props.onAction) {
921
+ collectionItem.props.onAction();
922
+ state.close();
923
+ break;
924
+ }
925
+ }
926
+ state.commit();
927
+ break;
928
+ case "Escape":
929
+ if (state.selectedKey !== null || state.inputValue === "" || props.allowsCustomValue) e.continuePropagation();
930
+ state.revert();
931
+ break;
932
+ case "ArrowDown":
933
+ state.open("first", "manual");
934
+ break;
935
+ case "ArrowUp":
936
+ state.open("last", "manual");
937
+ break;
938
+ case "ArrowLeft":
939
+ case "ArrowRight": state.selectionManager.setFocusedKey(null);
940
+ }
941
+ };
942
+ let onBlur = (e) => {
943
+ let blurFromButton = (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) && buttonRef.current === e.relatedTarget;
944
+ let blurIntoPopover = $d4ee10de306f2510$export$4282f70798064fe0(popoverRef.current, e.relatedTarget);
945
+ if (blurFromButton || blurIntoPopover) return;
946
+ if (props.onBlur) props.onBlur(e);
947
+ state.setFocused(false);
948
+ };
949
+ let onFocus = (e) => {
950
+ if (state.isFocused) return;
951
+ if (props.onFocus) props.onFocus(e);
952
+ state.setFocused(true);
953
+ };
954
+ let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
955
+ let { labelProps, inputProps, descriptionProps, errorMessageProps } = $2d73ec29415bd339$export$712718f7aec83d5({
956
+ ...props,
957
+ onChange: state.setInputValue,
958
+ onKeyDown: !isReadOnly ? $ff5963eb1fccf552$export$e08e3b67e392101e(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown) : props.onKeyDown,
959
+ onBlur,
960
+ value: state.inputValue,
961
+ defaultValue: state.defaultInputValue,
962
+ onFocus,
963
+ autoComplete: "off",
964
+ validate: void 0,
965
+ [$e5be200c675c3b3a$export$a763b9476acd3eb]: state
966
+ }, inputRef);
967
+ $99facab73266f662$export$5add1d006293d136(inputRef, state.defaultSelectedKey, state.setSelectedKey);
968
+ let onPress = (e) => {
969
+ if (e.pointerType === "touch") {
970
+ var _inputRef_current;
971
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 || _inputRef_current.focus();
972
+ state.toggle(null, "manual");
973
+ }
974
+ };
975
+ let onPressStart = (e) => {
976
+ if (e.pointerType !== "touch") {
977
+ var _inputRef_current;
978
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 || _inputRef_current.focus();
979
+ state.toggle(e.pointerType === "keyboard" || e.pointerType === "virtual" ? "first" : null, "manual");
980
+ }
981
+ };
982
+ let triggerLabelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
983
+ id: menuTriggerProps.id,
984
+ "aria-label": stringFormatter.format("buttonLabel"),
985
+ "aria-labelledby": props["aria-labelledby"] || labelProps.id
986
+ });
987
+ let listBoxProps = $313b98861ee5dd6c$export$d6875122194c7b44({
988
+ id: menuProps.id,
989
+ "aria-label": stringFormatter.format("listboxLabel"),
990
+ "aria-labelledby": props["aria-labelledby"] || labelProps.id
991
+ });
992
+ let lastEventTime = useRef(0);
993
+ let onTouchEnd = (e) => {
994
+ if (isDisabled || isReadOnly) return;
995
+ if (e.timeStamp - lastEventTime.current < 500) {
996
+ var _inputRef_current;
997
+ e.preventDefault();
998
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 || _inputRef_current.focus();
999
+ return;
1000
+ }
1001
+ let rect = e.target.getBoundingClientRect();
1002
+ let touch = e.changedTouches[0];
1003
+ let centerX = Math.ceil(rect.left + .5 * rect.width);
1004
+ let centerY = Math.ceil(rect.top + .5 * rect.height);
1005
+ if (touch.clientX === centerX && touch.clientY === centerY) {
1006
+ var _inputRef_current1;
1007
+ e.preventDefault();
1008
+ (_inputRef_current1 = inputRef.current) === null || _inputRef_current1 === void 0 || _inputRef_current1.focus();
1009
+ state.toggle(null, "manual");
1010
+ lastEventTime.current = e.timeStamp;
1011
+ }
1012
+ };
1013
+ let focusedItem = state.selectionManager.focusedKey != null && state.isOpen ? state.collection.getItem(state.selectionManager.focusedKey) : void 0;
1014
+ var _focusedItem_parentKey;
1015
+ let sectionKey = (_focusedItem_parentKey = focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) !== null && _focusedItem_parentKey !== void 0 ? _focusedItem_parentKey : null;
1016
+ var _state_selectionManager_focusedKey;
1017
+ let itemKey = (_state_selectionManager_focusedKey = state.selectionManager.focusedKey) !== null && _state_selectionManager_focusedKey !== void 0 ? _state_selectionManager_focusedKey : null;
1018
+ let lastSection = useRef(sectionKey);
1019
+ let lastItem = useRef(itemKey);
1020
+ useEffect(() => {
1021
+ if ($c87311424ea30a05$export$e1865c3bedcd822b() && focusedItem != null && itemKey != null && itemKey !== lastItem.current) {
1022
+ let isSelected = state.selectionManager.isSelected(itemKey);
1023
+ let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;
1024
+ let sectionTitle = (section === null || section === void 0 ? void 0 : section["aria-label"]) || (typeof (section === null || section === void 0 ? void 0 : section.rendered) === "string" ? section.rendered : "") || "";
1025
+ var _ref;
1026
+ let announcement = stringFormatter.format("focusAnnouncement", {
1027
+ isGroupChange: (_ref = section && sectionKey !== lastSection.current) !== null && _ref !== void 0 ? _ref : false,
1028
+ groupTitle: sectionTitle,
1029
+ groupCount: section ? [...$c5a24bc478652b5f$export$1005530eda016c13(section, state.collection)].length : 0,
1030
+ optionText: focusedItem["aria-label"] || focusedItem.textValue || "",
1031
+ isSelected
1032
+ });
1033
+ $319e236875307eab$export$a9b970dcc4ae71a9(announcement);
1034
+ }
1035
+ lastSection.current = sectionKey;
1036
+ lastItem.current = itemKey;
1037
+ });
1038
+ let optionCount = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
1039
+ let lastSize = useRef(optionCount);
1040
+ let lastOpen = useRef(state.isOpen);
1041
+ useEffect(() => {
1042
+ let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || $c87311424ea30a05$export$e1865c3bedcd822b());
1043
+ if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) {
1044
+ let announcement = stringFormatter.format("countAnnouncement", { optionCount });
1045
+ $319e236875307eab$export$a9b970dcc4ae71a9(announcement);
1046
+ }
1047
+ lastSize.current = optionCount;
1048
+ lastOpen.current = state.isOpen;
1049
+ });
1050
+ let lastSelectedKey = useRef(state.selectedKey);
1051
+ useEffect(() => {
1052
+ if ($c87311424ea30a05$export$e1865c3bedcd822b() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {
1053
+ let optionText = state.selectedItem["aria-label"] || state.selectedItem.textValue || "";
1054
+ let announcement = stringFormatter.format("selectedAnnouncement", { optionText });
1055
+ $319e236875307eab$export$a9b970dcc4ae71a9(announcement);
1056
+ }
1057
+ lastSelectedKey.current = state.selectedKey;
1058
+ });
1059
+ useEffect(() => {
1060
+ if (state.isOpen) return $5e3802645cc19319$export$1c3ebcada18427bf([inputRef.current, popoverRef.current].filter((element) => element != null));
1061
+ }, [
1062
+ state.isOpen,
1063
+ inputRef,
1064
+ popoverRef
1065
+ ]);
1066
+ $4f58c5f72bcf79f7$export$496315a1608d9602(() => {
1067
+ if (!focusedItem && inputRef.current && $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(inputRef.current)) === inputRef.current) $55f9b1ae81f22853$export$2b35b76d2e30e129(inputRef.current, null);
1068
+ }, [focusedItem]);
1069
+ $e9faafb641e167db$export$90fc3a17d93f704c(listBoxRef, "react-aria-item-action", state.isOpen ? () => {
1070
+ state.close();
1071
+ } : void 0);
1072
+ return {
1073
+ labelProps,
1074
+ buttonProps: {
1075
+ ...menuTriggerProps,
1076
+ ...triggerLabelProps,
1077
+ excludeFromTabOrder: true,
1078
+ preventFocusOnPress: true,
1079
+ onPress,
1080
+ onPressStart,
1081
+ isDisabled: isDisabled || isReadOnly
1082
+ },
1083
+ inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(inputProps, {
1084
+ role: "combobox",
1085
+ "aria-expanded": menuTriggerProps["aria-expanded"],
1086
+ "aria-controls": state.isOpen ? menuProps.id : void 0,
1087
+ "aria-autocomplete": "list",
1088
+ "aria-activedescendant": focusedItem ? $b1f0cad8af73213b$export$9145995848b05025(state, focusedItem.key) : void 0,
1089
+ onTouchEnd,
1090
+ autoCorrect: "off",
1091
+ spellCheck: "false"
1092
+ }),
1093
+ listBoxProps: $3ef42575df84b30b$export$9d1611c77c2fe928(menuProps, listBoxProps, {
1094
+ autoFocus: state.focusStrategy || true,
1095
+ shouldUseVirtualFocus: true,
1096
+ shouldSelectOnPressUp: true,
1097
+ shouldFocusOnHover: true,
1098
+ linkBehavior: "selection",
1099
+ ["UNSTABLE_itemBehavior"]: "action"
1100
+ }),
1101
+ descriptionProps,
1102
+ errorMessageProps,
1103
+ isInvalid,
1104
+ validationErrors,
1105
+ validationDetails
1106
+ };
1107
+ }
1108
+ //#endregion
1109
+ //#region ../../node_modules/.bun/@react-stately+list@3.13.3+83d5fd7b249dbeef/node_modules/@react-stately/list/dist/useSingleSelectListState.mjs
1110
+ function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
1111
+ var _props_defaultSelectedKey;
1112
+ let [selectedKey, setSelectedKey] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange);
1113
+ let selectedKeys = useMemo(() => selectedKey != null ? [selectedKey] : [], [selectedKey]);
1114
+ let { collection, disabledKeys, selectionManager } = $e72dd72e1c76a225$export$2f645645f7bca764({
1115
+ ...props,
1116
+ selectionMode: "single",
1117
+ disallowEmptySelection: true,
1118
+ allowDuplicateSelectionEvents: true,
1119
+ selectedKeys,
1120
+ onSelectionChange: (keys) => {
1121
+ if (keys === "all") return;
1122
+ var _keys_values_next_value;
1123
+ let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
1124
+ if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);
1125
+ setSelectedKey(key);
1126
+ }
1127
+ });
1128
+ return {
1129
+ collection,
1130
+ disabledKeys,
1131
+ selectionManager,
1132
+ selectedKey,
1133
+ setSelectedKey,
1134
+ selectedItem: selectedKey != null ? collection.getItem(selectedKey) : null
1135
+ };
1136
+ }
1137
+ //#endregion
1138
+ //#region ../../node_modules/.bun/@react-stately+combobox@3.12.2+83d5fd7b249dbeef/node_modules/@react-stately/combobox/dist/useComboBoxState.mjs
1139
+ function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
1140
+ var _collection_getItem;
1141
+ let { defaultFilter, menuTrigger = "input", allowsEmptyCollection = false, allowsCustomValue, shouldCloseOnBlur = true } = props;
1142
+ let [showAllItems, setShowAllItems] = useState(false);
1143
+ let [isFocused, setFocusedState] = useState(false);
1144
+ let [focusStrategy, setFocusStrategy] = useState(null);
1145
+ let onSelectionChange = (key) => {
1146
+ if (props.onSelectionChange) props.onSelectionChange(key);
1147
+ if (key === selectedKey) {
1148
+ resetInputValue();
1149
+ closeMenu();
1150
+ }
1151
+ };
1152
+ var _props_items;
1153
+ let { collection, selectionManager, selectedKey, setSelectedKey, selectedItem, disabledKeys } = $a0d645289fe9b86b$export$e7f05e985daf4b5f({
1154
+ ...props,
1155
+ onSelectionChange,
1156
+ items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems
1157
+ });
1158
+ let [inputValue, setInputValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.inputValue, $a9e7382a7d111cb5$var$getDefaultInputValue(props.defaultInputValue, selectedKey, collection) || "", props.onInputChange);
1159
+ let [initialSelectedKey] = useState(selectedKey);
1160
+ let [initialValue] = useState(inputValue);
1161
+ let originalCollection = collection;
1162
+ let filteredCollection = useMemo(() => props.items != null || !defaultFilter ? collection : $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, defaultFilter), [
1163
+ collection,
1164
+ inputValue,
1165
+ defaultFilter,
1166
+ props.items
1167
+ ]);
1168
+ let [lastCollection, setLastCollection] = useState(filteredCollection);
1169
+ let menuOpenTrigger = useRef("focus");
1170
+ let onOpenChange = (open) => {
1171
+ if (props.onOpenChange) props.onOpenChange(open, open ? menuOpenTrigger.current : void 0);
1172
+ selectionManager.setFocused(open);
1173
+ if (!open) selectionManager.setFocusedKey(null);
1174
+ };
1175
+ let triggerState = $fc909762b330b746$export$61c6a8c84e605fb6({
1176
+ ...props,
1177
+ onOpenChange,
1178
+ isOpen: void 0,
1179
+ defaultOpen: void 0
1180
+ });
1181
+ let open = (focusStrategy = null, trigger) => {
1182
+ let displayAllItems = trigger === "manual" || trigger === "focus" && menuTrigger === "focus";
1183
+ if (allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) {
1184
+ if (displayAllItems && !triggerState.isOpen && props.items === void 0) setShowAllItems(true);
1185
+ menuOpenTrigger.current = trigger;
1186
+ setFocusStrategy(focusStrategy);
1187
+ triggerState.open();
1188
+ }
1189
+ };
1190
+ let toggle = (focusStrategy = null, trigger) => {
1191
+ let displayAllItems = trigger === "manual" || trigger === "focus" && menuTrigger === "focus";
1192
+ if (!(allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) && !triggerState.isOpen) return;
1193
+ if (displayAllItems && !triggerState.isOpen && props.items === void 0) setShowAllItems(true);
1194
+ if (!triggerState.isOpen) menuOpenTrigger.current = trigger;
1195
+ toggleMenu(focusStrategy);
1196
+ };
1197
+ let updateLastCollection = useCallback(() => {
1198
+ setLastCollection(showAllItems ? originalCollection : filteredCollection);
1199
+ }, [
1200
+ showAllItems,
1201
+ originalCollection,
1202
+ filteredCollection
1203
+ ]);
1204
+ let toggleMenu = useCallback((focusStrategy = null) => {
1205
+ if (triggerState.isOpen) updateLastCollection();
1206
+ setFocusStrategy(focusStrategy);
1207
+ triggerState.toggle();
1208
+ }, [triggerState, updateLastCollection]);
1209
+ let closeMenu = useCallback(() => {
1210
+ if (triggerState.isOpen) {
1211
+ updateLastCollection();
1212
+ triggerState.close();
1213
+ }
1214
+ }, [triggerState, updateLastCollection]);
1215
+ let [lastValue, setLastValue] = useState(inputValue);
1216
+ let resetInputValue = () => {
1217
+ var _collection_getItem;
1218
+ var _collection_getItem_textValue;
1219
+ let itemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
1220
+ setLastValue(itemText);
1221
+ setInputValue(itemText);
1222
+ };
1223
+ var _props_selectedKey, _ref;
1224
+ let lastSelectedKey = useRef((_ref = (_props_selectedKey = props.selectedKey) !== null && _props_selectedKey !== void 0 ? _props_selectedKey : props.defaultSelectedKey) !== null && _ref !== void 0 ? _ref : null);
1225
+ var _collection_getItem_textValue;
1226
+ let lastSelectedKeyText = useRef(selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "");
1227
+ useEffect(() => {
1228
+ var _collection_getItem;
1229
+ if (isFocused && (filteredCollection.size > 0 || allowsEmptyCollection) && !triggerState.isOpen && inputValue !== lastValue && menuTrigger !== "manual") open(null, "input");
1230
+ if (!showAllItems && !allowsEmptyCollection && triggerState.isOpen && filteredCollection.size === 0) closeMenu();
1231
+ if (selectedKey != null && selectedKey !== lastSelectedKey.current) closeMenu();
1232
+ if (inputValue !== lastValue) {
1233
+ selectionManager.setFocusedKey(null);
1234
+ setShowAllItems(false);
1235
+ if (inputValue === "" && (props.inputValue === void 0 || props.selectedKey === void 0)) setSelectedKey(null);
1236
+ }
1237
+ if (selectedKey !== lastSelectedKey.current && (props.inputValue === void 0 || props.selectedKey === void 0)) resetInputValue();
1238
+ else if (lastValue !== inputValue) setLastValue(inputValue);
1239
+ var _collection_getItem_textValue;
1240
+ let selectedItemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
1241
+ if (!isFocused && selectedKey != null && props.inputValue === void 0 && selectedKey === lastSelectedKey.current) {
1242
+ if (lastSelectedKeyText.current !== selectedItemText) {
1243
+ setLastValue(selectedItemText);
1244
+ setInputValue(selectedItemText);
1245
+ }
1246
+ }
1247
+ lastSelectedKey.current = selectedKey;
1248
+ lastSelectedKeyText.current = selectedItemText;
1249
+ });
1250
+ let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
1251
+ ...props,
1252
+ value: useMemo(() => ({
1253
+ inputValue,
1254
+ selectedKey
1255
+ }), [inputValue, selectedKey])
1256
+ });
1257
+ let revert = () => {
1258
+ if (allowsCustomValue && selectedKey == null) commitCustomValue();
1259
+ else commitSelection();
1260
+ };
1261
+ let commitCustomValue = () => {
1262
+ lastSelectedKey.current = null;
1263
+ setSelectedKey(null);
1264
+ closeMenu();
1265
+ };
1266
+ let commitSelection = () => {
1267
+ if (props.selectedKey !== void 0 && props.inputValue !== void 0) {
1268
+ var _props_onSelectionChange, _collection_getItem;
1269
+ (_props_onSelectionChange = props.onSelectionChange) === null || _props_onSelectionChange === void 0 || _props_onSelectionChange.call(props, selectedKey);
1270
+ var _collection_getItem_textValue;
1271
+ let itemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
1272
+ setLastValue(itemText);
1273
+ closeMenu();
1274
+ } else {
1275
+ resetInputValue();
1276
+ closeMenu();
1277
+ }
1278
+ };
1279
+ const commitValue = () => {
1280
+ if (allowsCustomValue) {
1281
+ var _collection_getItem;
1282
+ var _collection_getItem_textValue;
1283
+ const itemText = selectedKey != null ? (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "" : "";
1284
+ inputValue === itemText ? commitSelection() : commitCustomValue();
1285
+ } else commitSelection();
1286
+ };
1287
+ let commit = () => {
1288
+ if (triggerState.isOpen && selectionManager.focusedKey != null) if (selectedKey === selectionManager.focusedKey) commitSelection();
1289
+ else setSelectedKey(selectionManager.focusedKey);
1290
+ else commitValue();
1291
+ };
1292
+ let valueOnFocus = useRef(inputValue);
1293
+ let setFocused = (isFocused) => {
1294
+ if (isFocused) {
1295
+ valueOnFocus.current = inputValue;
1296
+ if (menuTrigger === "focus" && !props.isReadOnly) open(null, "focus");
1297
+ } else {
1298
+ if (shouldCloseOnBlur) commitValue();
1299
+ if (inputValue !== valueOnFocus.current) validation.commitValidation();
1300
+ }
1301
+ setFocusedState(isFocused);
1302
+ };
1303
+ let displayedCollection = useMemo(() => {
1304
+ if (triggerState.isOpen) if (showAllItems) return originalCollection;
1305
+ else return filteredCollection;
1306
+ else return lastCollection;
1307
+ }, [
1308
+ triggerState.isOpen,
1309
+ originalCollection,
1310
+ filteredCollection,
1311
+ showAllItems,
1312
+ lastCollection
1313
+ ]);
1314
+ var _props_defaultSelectedKey;
1315
+ let defaultSelectedKey = (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : initialSelectedKey;
1316
+ var _getDefaultInputValue;
1317
+ return {
1318
+ ...validation,
1319
+ ...triggerState,
1320
+ focusStrategy,
1321
+ toggle,
1322
+ open,
1323
+ close: commitValue,
1324
+ selectionManager,
1325
+ selectedKey,
1326
+ defaultSelectedKey,
1327
+ setSelectedKey,
1328
+ disabledKeys,
1329
+ isFocused,
1330
+ setFocused,
1331
+ selectedItem,
1332
+ collection: displayedCollection,
1333
+ inputValue,
1334
+ defaultInputValue: (_getDefaultInputValue = $a9e7382a7d111cb5$var$getDefaultInputValue(props.defaultInputValue, defaultSelectedKey, collection)) !== null && _getDefaultInputValue !== void 0 ? _getDefaultInputValue : initialValue,
1335
+ setInputValue,
1336
+ commit,
1337
+ revert
1338
+ };
1339
+ }
1340
+ function $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, filter) {
1341
+ return new $a02d57049d202695$export$d085fb9e920b5ca7($a9e7382a7d111cb5$var$filterNodes(collection, collection, inputValue, filter));
1342
+ }
1343
+ function $a9e7382a7d111cb5$var$filterNodes(collection, nodes, inputValue, filter) {
1344
+ let filteredNode = [];
1345
+ for (let node of nodes) if (node.type === "section" && node.hasChildNodes) {
1346
+ let filtered = $a9e7382a7d111cb5$var$filterNodes(collection, $c5a24bc478652b5f$export$1005530eda016c13(node, collection), inputValue, filter);
1347
+ if ([...filtered].some((node) => node.type === "item")) filteredNode.push({
1348
+ ...node,
1349
+ childNodes: filtered
1350
+ });
1351
+ } else if (node.type === "item" && filter(node.textValue, inputValue)) filteredNode.push({ ...node });
1352
+ else if (node.type !== "item") filteredNode.push({ ...node });
1353
+ return filteredNode;
1354
+ }
1355
+ function $a9e7382a7d111cb5$var$getDefaultInputValue(defaultInputValue, selectedKey, collection) {
1356
+ if (defaultInputValue == null) {
1357
+ var _collection_getItem;
1358
+ var _collection_getItem_textValue;
1359
+ if (selectedKey != null) return (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "";
1360
+ }
1361
+ return defaultInputValue;
1362
+ }
1363
+ //#endregion
1364
+ //#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Group.mjs
1365
+ const $a049562f99e7db0e$export$f9c6924e160136d1 = /*#__PURE__*/ createContext({});
1366
+ //#endregion
1367
+ //#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/ComboBox.mjs
1368
+ const $d01f2c01039c0eec$export$d414ccceff7063c3 = /*#__PURE__*/ createContext(null);
1369
+ const $d01f2c01039c0eec$export$c02625b26074192c = /*#__PURE__*/ createContext(null);
1370
+ const $d01f2c01039c0eec$export$72b9695b8216309a = /*#__PURE__*/ forwardRef(function ComboBox(props, ref) {
1371
+ [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d01f2c01039c0eec$export$d414ccceff7063c3);
1372
+ let { children, isDisabled = false, isInvalid = false, isRequired = false } = props;
1373
+ let content = useMemo(() => {
1374
+ var _props_items;
1375
+ return /*#__PURE__*/ $HgANd$react.createElement($eed445e0843c11d0$export$7ff8f37d2d81a48d.Provider, { value: { items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems } }, typeof children === "function" ? children({
1376
+ isOpen: false,
1377
+ isDisabled,
1378
+ isInvalid,
1379
+ isRequired,
1380
+ defaultChildren: null
1381
+ }) : children);
1382
+ }, [
1383
+ children,
1384
+ isDisabled,
1385
+ isInvalid,
1386
+ isRequired,
1387
+ props.items,
1388
+ props.defaultItems
1389
+ ]);
1390
+ return /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$export$bf788dd355e3a401, { content }, (collection) => /*#__PURE__*/ $HgANd$react.createElement($d01f2c01039c0eec$var$ComboBoxInner, {
1391
+ props,
1392
+ collection,
1393
+ comboBoxRef: ref
1394
+ }));
1395
+ });
1396
+ const $d01f2c01039c0eec$var$CLEAR_CONTEXTS = [
1397
+ $01b77f81d0f07f68$export$75b6ee27786ba447,
1398
+ $d2b4bc8c273e7be6$export$24d547caef80ccd1,
1399
+ $3985021b0ad6602f$export$37fb8590cf2c088c,
1400
+ $a049562f99e7db0e$export$f9c6924e160136d1,
1401
+ $514c0188e459b4c0$export$9afb8bc826b033ea
1402
+ ];
1403
+ function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: ref }) {
1404
+ let { name, formValue = "key", allowsCustomValue } = props;
1405
+ if (allowsCustomValue) formValue = "text";
1406
+ let { validationBehavior: formValidationBehavior } = $64fa3d84918910a7$export$fabf2dc03a41866e($d3e0e05bdfcf66bd$export$c24727297075ec6a) || {};
1407
+ var _props_validationBehavior, _ref;
1408
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : "native";
1409
+ let { contains } = $bb77f239b46e8c72$export$3274cf84b703fff({ sensitivity: "base" });
1410
+ let state = $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({
1411
+ ...props,
1412
+ defaultFilter: props.defaultFilter || contains,
1413
+ items: props.items,
1414
+ children: void 0,
1415
+ collection,
1416
+ validationBehavior
1417
+ });
1418
+ let buttonRef = useRef(null);
1419
+ let inputRef = useRef(null);
1420
+ let listBoxRef = useRef(null);
1421
+ let popoverRef = useRef(null);
1422
+ let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
1423
+ let { buttonProps, inputProps, listBoxProps, labelProps, descriptionProps, errorMessageProps, ...validation } = $c350ade66beef0af$export$8c18d1b4f7232bbf({
1424
+ ...$64fa3d84918910a7$export$ef03459518577ad4(props),
1425
+ label,
1426
+ inputRef,
1427
+ buttonRef,
1428
+ listBoxRef,
1429
+ popoverRef,
1430
+ name: formValue === "text" ? name : void 0,
1431
+ validationBehavior
1432
+ }, state);
1433
+ let [menuWidth, setMenuWidth] = useState(null);
1434
+ let onResize = useCallback(() => {
1435
+ if (inputRef.current) {
1436
+ var _buttonRef_current;
1437
+ let buttonRect = (_buttonRef_current = buttonRef.current) === null || _buttonRef_current === void 0 ? void 0 : _buttonRef_current.getBoundingClientRect();
1438
+ let inputRect = inputRef.current.getBoundingClientRect();
1439
+ let minX = buttonRect ? Math.min(buttonRect.left, inputRect.left) : inputRect.left;
1440
+ let maxX = buttonRect ? Math.max(buttonRect.right, inputRect.right) : inputRect.right;
1441
+ setMenuWidth(maxX - minX + "px");
1442
+ }
1443
+ }, [
1444
+ buttonRef,
1445
+ inputRef,
1446
+ setMenuWidth
1447
+ ]);
1448
+ $9daab02d461809db$export$683480f191c0e3ea({
1449
+ ref: inputRef,
1450
+ onResize
1451
+ });
1452
+ let renderPropsState = useMemo(() => ({
1453
+ isOpen: state.isOpen,
1454
+ isDisabled: props.isDisabled || false,
1455
+ isInvalid: validation.isInvalid || false,
1456
+ isRequired: props.isRequired || false
1457
+ }), [
1458
+ state.isOpen,
1459
+ props.isDisabled,
1460
+ validation.isInvalid,
1461
+ props.isRequired
1462
+ ]);
1463
+ let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
1464
+ ...props,
1465
+ values: renderPropsState,
1466
+ defaultClassName: "react-aria-ComboBox"
1467
+ });
1468
+ let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
1469
+ delete DOMProps.id;
1470
+ var _state_selectedKey;
1471
+ return /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
1472
+ [$d01f2c01039c0eec$export$c02625b26074192c, state],
1473
+ [$01b77f81d0f07f68$export$75b6ee27786ba447, {
1474
+ ...labelProps,
1475
+ ref: labelRef
1476
+ }],
1477
+ [$d2b4bc8c273e7be6$export$24d547caef80ccd1, {
1478
+ ...buttonProps,
1479
+ ref: buttonRef,
1480
+ isPressed: state.isOpen
1481
+ }],
1482
+ [$3985021b0ad6602f$export$37fb8590cf2c088c, {
1483
+ ...inputProps,
1484
+ ref: inputRef
1485
+ }],
1486
+ [$de32f1b87079253c$export$d2f961adcb0afbe, state],
1487
+ [$07b14b47974efb58$export$9b9a0cd73afb7ca4, {
1488
+ ref: popoverRef,
1489
+ triggerRef: inputRef,
1490
+ scrollRef: listBoxRef,
1491
+ placement: "bottom start",
1492
+ isNonModal: true,
1493
+ trigger: "ComboBox",
1494
+ style: { "--trigger-width": menuWidth },
1495
+ clearContexts: $d01f2c01039c0eec$var$CLEAR_CONTEXTS
1496
+ }],
1497
+ [$eed445e0843c11d0$export$7ff8f37d2d81a48d, {
1498
+ ...listBoxProps,
1499
+ ref: listBoxRef
1500
+ }],
1501
+ [$eed445e0843c11d0$export$7c5906fe4f1f2af2, state],
1502
+ [$514c0188e459b4c0$export$9afb8bc826b033ea, { slots: {
1503
+ description: descriptionProps,
1504
+ errorMessage: errorMessageProps
1505
+ } }],
1506
+ [$a049562f99e7db0e$export$f9c6924e160136d1, {
1507
+ isInvalid: validation.isInvalid,
1508
+ isDisabled: props.isDisabled || false
1509
+ }],
1510
+ [$ee014567cb39d3f0$export$ff05c3ac10437e03, validation]
1511
+ ] }, /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
1512
+ ...DOMProps,
1513
+ ...renderProps,
1514
+ ref,
1515
+ slot: props.slot || void 0,
1516
+ "data-focused": state.isFocused || void 0,
1517
+ "data-open": state.isOpen || void 0,
1518
+ "data-disabled": props.isDisabled || void 0,
1519
+ "data-invalid": validation.isInvalid || void 0,
1520
+ "data-required": props.isRequired || void 0
1521
+ }), name && formValue === "key" && /*#__PURE__*/ $HgANd$react.createElement("input", {
1522
+ type: "hidden",
1523
+ name,
1524
+ form: props.form,
1525
+ value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ""
1526
+ }));
1527
+ }
1528
+ //#endregion
1529
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Layout.mjs
1530
+ var $c74cda7d31af1253$export$c84671f46d6a1ca = class {
1531
+ /**
1532
+ * Returns whether the layout should invalidate in response to
1533
+ * visible rectangle changes. By default, it only invalidates
1534
+ * when the virtualizer's size changes. Return true always
1535
+ * to make the layout invalidate while scrolling (e.g. sticky headers).
1536
+ */ shouldInvalidate(newRect, oldRect) {
1537
+ return newRect.width !== oldRect.width || newRect.height !== oldRect.height;
1538
+ }
1539
+ /**
1540
+ * Returns whether the layout should invalidate when the layout options change.
1541
+ * By default it invalidates when the object identity changes. Override this
1542
+ * method to optimize layout updates based on specific option changes.
1543
+ */ shouldInvalidateLayoutOptions(newOptions, oldOptions) {
1544
+ return newOptions !== oldOptions;
1545
+ }
1546
+ /**
1547
+ * This method allows the layout to perform any pre-computation
1548
+ * it needs to in order to prepare LayoutInfos for retrieval.
1549
+ * Called by the virtualizer before `getVisibleLayoutInfos`
1550
+ * or `getLayoutInfo` are called.
1551
+ */ update(invalidationContext) {}
1552
+ /** @private */ getItemRect(key) {
1553
+ var _this_getLayoutInfo;
1554
+ var _this_getLayoutInfo_rect;
1555
+ return (_this_getLayoutInfo_rect = (_this_getLayoutInfo = this.getLayoutInfo(key)) === null || _this_getLayoutInfo === void 0 ? void 0 : _this_getLayoutInfo.rect) !== null && _this_getLayoutInfo_rect !== void 0 ? _this_getLayoutInfo_rect : null;
1556
+ }
1557
+ /** @private */ getVisibleRect() {
1558
+ return this.virtualizer.visibleRect;
1559
+ }
1560
+ constructor() {
1561
+ /** The Virtualizer the layout is currently attached to. */ this.virtualizer = null;
1562
+ }
1563
+ };
1564
+ //#endregion
1565
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/LayoutInfo.mjs
1566
+ var $d7fd61009c21d0bb$export$7e0eeb9da702a085 = class $d7fd61009c21d0bb$export$7e0eeb9da702a085 {
1567
+ /**
1568
+ * Returns a copy of the LayoutInfo.
1569
+ */ copy() {
1570
+ let res = new $d7fd61009c21d0bb$export$7e0eeb9da702a085(this.type, this.key, this.rect.copy());
1571
+ res.estimatedSize = this.estimatedSize;
1572
+ res.opacity = this.opacity;
1573
+ res.transform = this.transform;
1574
+ res.parentKey = this.parentKey;
1575
+ res.content = this.content;
1576
+ res.isSticky = this.isSticky;
1577
+ res.zIndex = this.zIndex;
1578
+ res.allowOverflow = this.allowOverflow;
1579
+ return res;
1580
+ }
1581
+ /**
1582
+ * @param type The type of element represented by this LayoutInfo. Should match the `type` of the corresponding collection node.
1583
+ * @param key A unique key for this LayoutInfo. Should match the `key` of the corresponding collection node.
1584
+ * @param rect The rectangle describing the size and position of this element.
1585
+ */ constructor(type, key, rect) {
1586
+ this.type = type;
1587
+ this.key = key;
1588
+ this.parentKey = null;
1589
+ this.content = null;
1590
+ this.rect = rect;
1591
+ this.estimatedSize = false;
1592
+ this.isSticky = false;
1593
+ this.opacity = 1;
1594
+ this.transform = null;
1595
+ this.zIndex = 0;
1596
+ this.allowOverflow = false;
1597
+ }
1598
+ };
1599
+ //#endregion
1600
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Point.mjs
1601
+ var $3041db3296945e6e$export$baf26146a414f24a = class $3041db3296945e6e$export$baf26146a414f24a {
1602
+ /**
1603
+ * Returns a copy of this point.
1604
+ */ copy() {
1605
+ return new $3041db3296945e6e$export$baf26146a414f24a(this.x, this.y);
1606
+ }
1607
+ /**
1608
+ * Checks if two points are equal.
1609
+ */ equals(point) {
1610
+ return this.x === point.x && this.y === point.y;
1611
+ }
1612
+ /**
1613
+ * Returns true if this point is the origin.
1614
+ */ isOrigin() {
1615
+ return this.x === 0 && this.y === 0;
1616
+ }
1617
+ constructor(x = 0, y = 0) {
1618
+ this.x = x;
1619
+ this.y = y;
1620
+ }
1621
+ };
1622
+ //#endregion
1623
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Rect.mjs
1624
+ var $60423f92c7f9ad87$export$c79fc6492f3af13d = class $60423f92c7f9ad87$export$c79fc6492f3af13d {
1625
+ /**
1626
+ * The maximum x-coordinate in the rectangle.
1627
+ */ get maxX() {
1628
+ return this.x + this.width;
1629
+ }
1630
+ /**
1631
+ * The maximum y-coordinate in the rectangle.
1632
+ */ get maxY() {
1633
+ return this.y + this.height;
1634
+ }
1635
+ /**
1636
+ * The area of the rectangle.
1637
+ */ get area() {
1638
+ return this.width * this.height;
1639
+ }
1640
+ /**
1641
+ * The top left corner of the rectangle.
1642
+ */ get topLeft() {
1643
+ return new $3041db3296945e6e$export$baf26146a414f24a(this.x, this.y);
1644
+ }
1645
+ /**
1646
+ * The top right corner of the rectangle.
1647
+ */ get topRight() {
1648
+ return new $3041db3296945e6e$export$baf26146a414f24a(this.maxX, this.y);
1649
+ }
1650
+ /**
1651
+ * The bottom left corner of the rectangle.
1652
+ */ get bottomLeft() {
1653
+ return new $3041db3296945e6e$export$baf26146a414f24a(this.x, this.maxY);
1654
+ }
1655
+ /**
1656
+ * The bottom right corner of the rectangle.
1657
+ */ get bottomRight() {
1658
+ return new $3041db3296945e6e$export$baf26146a414f24a(this.maxX, this.maxY);
1659
+ }
1660
+ /**
1661
+ * Returns whether this rectangle intersects another rectangle.
1662
+ * @param rect - The rectangle to check.
1663
+ */ intersects(rect) {
1664
+ return this.area > 0 && rect.area > 0 && this.x <= rect.x + rect.width && rect.x <= this.x + this.width && this.y <= rect.y + rect.height && rect.y <= this.y + this.height;
1665
+ }
1666
+ /**
1667
+ * Returns whether this rectangle fully contains another rectangle.
1668
+ * @param rect - The rectangle to check.
1669
+ */ containsRect(rect) {
1670
+ return this.x <= rect.x && this.y <= rect.y && this.maxX >= rect.maxX && this.maxY >= rect.maxY;
1671
+ }
1672
+ /**
1673
+ * Returns whether the rectangle contains the given point.
1674
+ * @param point - The point to check.
1675
+ */ containsPoint(point) {
1676
+ return this.x <= point.x && this.y <= point.y && this.maxX >= point.x && this.maxY >= point.y;
1677
+ }
1678
+ /**
1679
+ * Returns the first corner of this rectangle (from top to bottom, left to right)
1680
+ * that is contained in the given rectangle, or null of the rectangles do not intersect.
1681
+ * @param rect - The rectangle to check.
1682
+ */ getCornerInRect(rect) {
1683
+ for (let key of [
1684
+ "topLeft",
1685
+ "topRight",
1686
+ "bottomLeft",
1687
+ "bottomRight"
1688
+ ]) if (rect.containsPoint(this[key])) return key;
1689
+ return null;
1690
+ }
1691
+ equals(rect) {
1692
+ return rect.x === this.x && rect.y === this.y && rect.width === this.width && rect.height === this.height;
1693
+ }
1694
+ pointEquals(point) {
1695
+ return this.x === point.x && this.y === point.y;
1696
+ }
1697
+ sizeEquals(size) {
1698
+ return this.width === size.width && this.height === size.height;
1699
+ }
1700
+ /**
1701
+ * Returns the union of this Rect and another.
1702
+ */ union(other) {
1703
+ let x = Math.min(this.x, other.x);
1704
+ let y = Math.min(this.y, other.y);
1705
+ let width = Math.max(this.maxX, other.maxX) - x;
1706
+ let height = Math.max(this.maxY, other.maxY) - y;
1707
+ return new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, width, height);
1708
+ }
1709
+ /**
1710
+ * Returns the intersection of this Rect with another.
1711
+ * If the rectangles do not intersect, an all zero Rect is returned.
1712
+ */ intersection(other) {
1713
+ if (!this.intersects(other)) return new $60423f92c7f9ad87$export$c79fc6492f3af13d(0, 0, 0, 0);
1714
+ let x = Math.max(this.x, other.x);
1715
+ let y = Math.max(this.y, other.y);
1716
+ return new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, Math.min(this.maxX, other.maxX) - x, Math.min(this.maxY, other.maxY) - y);
1717
+ }
1718
+ /**
1719
+ * Returns a copy of this rectangle.
1720
+ */ copy() {
1721
+ return new $60423f92c7f9ad87$export$c79fc6492f3af13d(this.x, this.y, this.width, this.height);
1722
+ }
1723
+ constructor(x = 0, y = 0, width = 0, height = 0) {
1724
+ this.x = x;
1725
+ this.y = y;
1726
+ this.width = width;
1727
+ this.height = height;
1728
+ }
1729
+ };
1730
+ //#endregion
1731
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Size.mjs
1732
+ var $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec = class $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec {
1733
+ /**
1734
+ * Returns a copy of this size.
1735
+ */ copy() {
1736
+ return new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec(this.width, this.height);
1737
+ }
1738
+ /**
1739
+ * Returns whether this size is equal to another one.
1740
+ */ equals(other) {
1741
+ return this.width === other.width && this.height === other.height;
1742
+ }
1743
+ /**
1744
+ * The total area of the Size.
1745
+ */ get area() {
1746
+ return this.width * this.height;
1747
+ }
1748
+ constructor(width = 0, height = 0) {
1749
+ this.width = Math.max(width, 0);
1750
+ this.height = Math.max(height, 0);
1751
+ }
1752
+ };
1753
+ //#endregion
1754
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/ReusableView.mjs
1755
+ let $ad1d98aa8f0c31b4$var$KEY = 0;
1756
+ var $ad1d98aa8f0c31b4$export$1a5223887c560441 = class {
1757
+ /**
1758
+ * Prepares the view for reuse. Called just before the view is removed from the DOM.
1759
+ */ prepareForReuse() {
1760
+ this.content = null;
1761
+ this.rendered = null;
1762
+ this.layoutInfo = null;
1763
+ }
1764
+ getReusableView(reuseType) {
1765
+ let reusable = this.reusableViews.get(reuseType);
1766
+ return reusable && reusable.length > 0 ? reusable.shift() : new $ad1d98aa8f0c31b4$export$7a41b6f219e61634(this.virtualizer, this, reuseType);
1767
+ }
1768
+ reuseChild(child) {
1769
+ child.prepareForReuse();
1770
+ let reusable = this.reusableViews.get(child.viewType);
1771
+ if (!reusable) {
1772
+ reusable = [];
1773
+ this.reusableViews.set(child.viewType, reusable);
1774
+ }
1775
+ reusable.push(child);
1776
+ }
1777
+ constructor(virtualizer, viewType) {
1778
+ this.virtualizer = virtualizer;
1779
+ this.key = ++$ad1d98aa8f0c31b4$var$KEY;
1780
+ this.viewType = viewType;
1781
+ this.children = /* @__PURE__ */ new Set();
1782
+ this.reusableViews = /* @__PURE__ */ new Map();
1783
+ this.layoutInfo = null;
1784
+ this.content = null;
1785
+ this.rendered = null;
1786
+ }
1787
+ };
1788
+ var $ad1d98aa8f0c31b4$export$e21886a4eef6b29a = class extends $ad1d98aa8f0c31b4$export$1a5223887c560441 {
1789
+ constructor(virtualizer) {
1790
+ super(virtualizer, "root");
1791
+ }
1792
+ };
1793
+ var $ad1d98aa8f0c31b4$export$7a41b6f219e61634 = class extends $ad1d98aa8f0c31b4$export$1a5223887c560441 {
1794
+ constructor(virtualizer, parent, viewType) {
1795
+ super(virtualizer, viewType);
1796
+ this.parent = parent;
1797
+ }
1798
+ };
1799
+ //#endregion
1800
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/utils.mjs
1801
+ /** Returns whether two sets are equal. */ function $fc36f9a046a9ce79$export$a8d0d0c8d1c5df64(a, b) {
1802
+ if (a === b) return true;
1803
+ if (a.size !== b.size) return false;
1804
+ for (let key of a) if (!b.has(key)) return false;
1805
+ return true;
1806
+ }
1807
+ //#endregion
1808
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/OverscanManager.mjs
1809
+ var $364191b3decf3697$export$4455ee6afb38dcbb = class {
1810
+ setVisibleRect(rect) {
1811
+ let time = performance.now() - this.startTime;
1812
+ if (time < 500) {
1813
+ if (rect.x !== this.visibleRect.x && time > 0) this.velocity.x = (rect.x - this.visibleRect.x) / time;
1814
+ if (rect.y !== this.visibleRect.y && time > 0) this.velocity.y = (rect.y - this.visibleRect.y) / time;
1815
+ }
1816
+ this.startTime = performance.now();
1817
+ this.visibleRect = rect;
1818
+ }
1819
+ getOverscannedRect() {
1820
+ let overscanned = this.visibleRect.copy();
1821
+ let overscanY = this.visibleRect.height / 3;
1822
+ overscanned.height += overscanY;
1823
+ if (this.velocity.y < 0) overscanned.y -= overscanY;
1824
+ if (this.velocity.x !== 0) {
1825
+ let overscanX = this.visibleRect.width / 3;
1826
+ overscanned.width += overscanX;
1827
+ if (this.velocity.x < 0) overscanned.x -= overscanX;
1828
+ }
1829
+ return overscanned;
1830
+ }
1831
+ constructor() {
1832
+ this.startTime = 0;
1833
+ this.velocity = new $3041db3296945e6e$export$baf26146a414f24a(0, 0);
1834
+ this.visibleRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d();
1835
+ }
1836
+ };
1837
+ //#endregion
1838
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/Virtualizer.mjs
1839
+ var $38b9490c1cca8fc4$export$89be5a243e59c4b2 = class {
1840
+ /** Returns whether the given key, or an ancestor, is persisted. */ isPersistedKey(key) {
1841
+ if (this.persistedKeys.has(key)) return true;
1842
+ for (let k of this.persistedKeys) while (k != null) {
1843
+ let layoutInfo = this.layout.getLayoutInfo(k);
1844
+ if (!layoutInfo || layoutInfo.parentKey == null) break;
1845
+ k = layoutInfo.parentKey;
1846
+ if (k === key) return true;
1847
+ }
1848
+ return false;
1849
+ }
1850
+ getParentView(layoutInfo) {
1851
+ return layoutInfo.parentKey != null ? this._visibleViews.get(layoutInfo.parentKey) : this._rootView;
1852
+ }
1853
+ getReusableView(layoutInfo) {
1854
+ let view = this.getParentView(layoutInfo).getReusableView(layoutInfo.type);
1855
+ view.layoutInfo = layoutInfo;
1856
+ this._renderView(view);
1857
+ return view;
1858
+ }
1859
+ _renderView(reusableView) {
1860
+ if (reusableView.layoutInfo) {
1861
+ let { type, key, content } = reusableView.layoutInfo;
1862
+ reusableView.content = content || this.collection.getItem(key);
1863
+ reusableView.rendered = this._renderContent(type, reusableView.content);
1864
+ }
1865
+ }
1866
+ _renderContent(type, content) {
1867
+ let cached = content != null ? this._renderedContent.get(content) : null;
1868
+ if (cached != null) return cached;
1869
+ let rendered = this.delegate.renderView(type, content);
1870
+ if (content) this._renderedContent.set(content, rendered);
1871
+ return rendered;
1872
+ }
1873
+ /**
1874
+ * Returns the key for the item view currently at the given point.
1875
+ */ keyAtPoint(point) {
1876
+ let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(point.x, point.y, 1, 1);
1877
+ let layoutInfos = rect.area === 0 ? [] : this.layout.getVisibleLayoutInfos(rect);
1878
+ for (let layoutInfo of layoutInfos) if (layoutInfo.rect.intersects(rect)) return layoutInfo.key;
1879
+ return null;
1880
+ }
1881
+ relayout(context = {}) {
1882
+ this.layout.update(context);
1883
+ this.contentSize = this.layout.getContentSize();
1884
+ let visibleRect = this.visibleRect;
1885
+ let contentOffsetX = context.contentChanged ? 0 : visibleRect.x;
1886
+ let contentOffsetY = context.contentChanged ? 0 : visibleRect.y;
1887
+ contentOffsetX = Math.max(0, Math.min(this.contentSize.width - visibleRect.width, contentOffsetX));
1888
+ contentOffsetY = Math.max(0, Math.min(this.contentSize.height - visibleRect.height, contentOffsetY));
1889
+ if (contentOffsetX !== visibleRect.x || contentOffsetY !== visibleRect.y) {
1890
+ let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(contentOffsetX, contentOffsetY, visibleRect.width, visibleRect.height);
1891
+ this.delegate.setVisibleRect(rect);
1892
+ } else this.updateSubviews();
1893
+ }
1894
+ getVisibleLayoutInfos() {
1895
+ let rect;
1896
+ rect = this._overscanManager.getOverscannedRect();
1897
+ let layoutInfos = this.layout.getVisibleLayoutInfos(rect);
1898
+ let map = /* @__PURE__ */ new Map();
1899
+ for (let layoutInfo of layoutInfos) map.set(layoutInfo.key, layoutInfo);
1900
+ return map;
1901
+ }
1902
+ updateSubviews() {
1903
+ let visibleLayoutInfos = this.getVisibleLayoutInfos();
1904
+ let removed = /* @__PURE__ */ new Set();
1905
+ for (let [key, view] of this._visibleViews) {
1906
+ let layoutInfo = visibleLayoutInfos.get(key);
1907
+ if (!layoutInfo || view.parent !== this.getParentView(layoutInfo)) {
1908
+ this._visibleViews.delete(key);
1909
+ view.parent.reuseChild(view);
1910
+ removed.add(view);
1911
+ }
1912
+ }
1913
+ for (let [key, layoutInfo] of visibleLayoutInfos) {
1914
+ let view = this._visibleViews.get(key);
1915
+ if (!view) {
1916
+ view = this.getReusableView(layoutInfo);
1917
+ view.parent.children.add(view);
1918
+ this._visibleViews.set(key, view);
1919
+ removed.delete(view);
1920
+ } else {
1921
+ view.layoutInfo = layoutInfo;
1922
+ let item = this.collection.getItem(layoutInfo.key);
1923
+ if (view.content !== item) {
1924
+ if (view.content != null) this._renderedContent.delete(view.content);
1925
+ this._renderView(view);
1926
+ }
1927
+ }
1928
+ }
1929
+ for (let view of removed) {
1930
+ view.parent.children.delete(view);
1931
+ view.parent.reusableViews.clear();
1932
+ }
1933
+ if (!this._isScrolling) for (let key of visibleLayoutInfos.keys()) {
1934
+ let view = this._visibleViews.get(key);
1935
+ view.parent.children.delete(view);
1936
+ view.parent.children.add(view);
1937
+ }
1938
+ }
1939
+ /** Performs layout and updates visible views as needed. */ render(opts) {
1940
+ let mutableThis = this;
1941
+ let needsLayout = false;
1942
+ let offsetChanged = false;
1943
+ let sizeChanged = false;
1944
+ let itemSizeChanged = false;
1945
+ let layoutOptionsChanged = false;
1946
+ let needsUpdate = false;
1947
+ if (opts.collection !== this.collection) {
1948
+ mutableThis.collection = opts.collection;
1949
+ needsLayout = true;
1950
+ }
1951
+ if (opts.layout !== this.layout || this.layout.virtualizer !== this) {
1952
+ if (this.layout) this.layout.virtualizer = null;
1953
+ opts.layout.virtualizer = this;
1954
+ mutableThis.layout = opts.layout;
1955
+ needsLayout = true;
1956
+ }
1957
+ if (opts.persistedKeys && !$fc36f9a046a9ce79$export$a8d0d0c8d1c5df64(opts.persistedKeys, this.persistedKeys)) {
1958
+ mutableThis.persistedKeys = opts.persistedKeys;
1959
+ needsUpdate = true;
1960
+ }
1961
+ if (!this.visibleRect.equals(opts.visibleRect)) {
1962
+ this._overscanManager.setVisibleRect(opts.visibleRect);
1963
+ if (this.layout.shouldInvalidate(opts.visibleRect, this.visibleRect)) {
1964
+ offsetChanged = !opts.visibleRect.pointEquals(this.visibleRect);
1965
+ sizeChanged = !opts.visibleRect.sizeEquals(this.visibleRect);
1966
+ needsLayout = true;
1967
+ } else needsUpdate = true;
1968
+ mutableThis.visibleRect = opts.visibleRect;
1969
+ }
1970
+ if (opts.invalidationContext !== this._invalidationContext) {
1971
+ if (opts.invalidationContext) {
1972
+ sizeChanged || (sizeChanged = opts.invalidationContext.sizeChanged || false);
1973
+ offsetChanged || (offsetChanged = opts.invalidationContext.offsetChanged || false);
1974
+ itemSizeChanged || (itemSizeChanged = opts.invalidationContext.itemSizeChanged || false);
1975
+ layoutOptionsChanged || (layoutOptionsChanged = opts.invalidationContext.layoutOptions != null && this._invalidationContext.layoutOptions != null && opts.invalidationContext.layoutOptions !== this._invalidationContext.layoutOptions && this.layout.shouldInvalidateLayoutOptions(opts.invalidationContext.layoutOptions, this._invalidationContext.layoutOptions));
1976
+ needsLayout || (needsLayout = itemSizeChanged || sizeChanged || offsetChanged || layoutOptionsChanged);
1977
+ }
1978
+ this._invalidationContext = opts.invalidationContext;
1979
+ }
1980
+ if (opts.isScrolling !== this._isScrolling) {
1981
+ this._isScrolling = opts.isScrolling;
1982
+ if (!opts.isScrolling) needsUpdate = true;
1983
+ }
1984
+ if (needsLayout) this.relayout({
1985
+ offsetChanged,
1986
+ sizeChanged,
1987
+ itemSizeChanged,
1988
+ layoutOptionsChanged,
1989
+ layoutOptions: this._invalidationContext.layoutOptions
1990
+ });
1991
+ else if (needsUpdate) this.updateSubviews();
1992
+ return Array.from(this._rootView.children);
1993
+ }
1994
+ getVisibleView(key) {
1995
+ return this._visibleViews.get(key);
1996
+ }
1997
+ invalidate(context) {
1998
+ this.delegate.invalidate(context);
1999
+ }
2000
+ updateItemSize(key, size) {
2001
+ if (!this.layout.updateItemSize) return;
2002
+ if (this.layout.updateItemSize(key, size)) this.invalidate({ itemSizeChanged: true });
2003
+ }
2004
+ constructor(options) {
2005
+ this.delegate = options.delegate;
2006
+ this.collection = options.collection;
2007
+ this.layout = options.layout;
2008
+ this.contentSize = new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec();
2009
+ this.visibleRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d();
2010
+ this.persistedKeys = /* @__PURE__ */ new Set();
2011
+ this._visibleViews = /* @__PURE__ */ new Map();
2012
+ this._renderedContent = /* @__PURE__ */ new WeakMap();
2013
+ this._rootView = new $ad1d98aa8f0c31b4$export$e21886a4eef6b29a(this);
2014
+ this._isScrolling = false;
2015
+ this._invalidationContext = {};
2016
+ this._overscanManager = new $364191b3decf3697$export$4455ee6afb38dcbb();
2017
+ }
2018
+ };
2019
+ //#endregion
2020
+ //#region ../../node_modules/.bun/@react-stately+virtualizer@4.4.5+67f6792bdf102c28/node_modules/@react-stately/virtualizer/dist/useVirtualizerState.mjs
2021
+ const $fc0b13b484ac1194$export$e5c5a5f917a5871c = typeof document !== "undefined" ? $HgANd$react.useLayoutEffect : () => {};
2022
+ function $fc0b13b484ac1194$export$1505db82fe357e65(opts) {
2023
+ let [visibleRect, setVisibleRect] = useState(new $60423f92c7f9ad87$export$c79fc6492f3af13d(0, 0, 0, 0));
2024
+ let [isScrolling, setScrolling] = useState(false);
2025
+ let [invalidationContext, setInvalidationContext] = useState({});
2026
+ let visibleRectChanged = useRef(false);
2027
+ let [virtualizer] = useState(() => new $38b9490c1cca8fc4$export$89be5a243e59c4b2({
2028
+ collection: opts.collection,
2029
+ layout: opts.layout,
2030
+ delegate: {
2031
+ setVisibleRect(rect) {
2032
+ setVisibleRect(rect);
2033
+ visibleRectChanged.current = true;
2034
+ },
2035
+ renderView: opts.renderView,
2036
+ invalidate: setInvalidationContext
2037
+ }
2038
+ }));
2039
+ $fc0b13b484ac1194$export$e5c5a5f917a5871c(() => {
2040
+ if (visibleRectChanged.current) {
2041
+ visibleRectChanged.current = false;
2042
+ opts.onVisibleRectChange(visibleRect);
2043
+ }
2044
+ });
2045
+ let mergedInvalidationContext = useMemo(() => {
2046
+ if (opts.layoutOptions != null) return {
2047
+ ...invalidationContext,
2048
+ layoutOptions: opts.layoutOptions
2049
+ };
2050
+ return invalidationContext;
2051
+ }, [invalidationContext, opts.layoutOptions]);
2052
+ let visibleViews = virtualizer.render({
2053
+ layout: opts.layout,
2054
+ collection: opts.collection,
2055
+ persistedKeys: opts.persistedKeys,
2056
+ layoutOptions: opts.layoutOptions,
2057
+ visibleRect,
2058
+ invalidationContext: mergedInvalidationContext,
2059
+ isScrolling
2060
+ });
2061
+ let contentSize = virtualizer.contentSize;
2062
+ let startScrolling = useCallback(() => {
2063
+ setScrolling(true);
2064
+ }, []);
2065
+ let endScrolling = useCallback(() => {
2066
+ setScrolling(false);
2067
+ }, []);
2068
+ return useMemo(() => ({
2069
+ virtualizer,
2070
+ visibleViews,
2071
+ setVisibleRect,
2072
+ contentSize,
2073
+ isScrolling,
2074
+ startScrolling,
2075
+ endScrolling
2076
+ }), [
2077
+ virtualizer,
2078
+ visibleViews,
2079
+ setVisibleRect,
2080
+ contentSize,
2081
+ isScrolling,
2082
+ startScrolling,
2083
+ endScrolling
2084
+ ]);
2085
+ }
2086
+ //#endregion
2087
+ //#region ../../node_modules/.bun/@react-stately+layout@4.5.3+67f6792bdf102c28/node_modules/@react-stately/layout/dist/ListLayout.mjs
2088
+ const $61ef60fc9b1041f4$var$DEFAULT_HEIGHT = 48;
2089
+ var $61ef60fc9b1041f4$export$cacbb3924155d68e = class extends $c74cda7d31af1253$export$c84671f46d6a1ca {
2090
+ get collection() {
2091
+ return this.virtualizer.collection;
2092
+ }
2093
+ getLayoutInfo(key) {
2094
+ var _this_layoutNodes_get;
2095
+ this.ensureLayoutInfo(key);
2096
+ return ((_this_layoutNodes_get = this.layoutNodes.get(key)) === null || _this_layoutNodes_get === void 0 ? void 0 : _this_layoutNodes_get.layoutInfo) || null;
2097
+ }
2098
+ getVisibleLayoutInfos(rect) {
2099
+ if (rect.height > 1) {
2100
+ var _this_rowHeight, _ref;
2101
+ let rowHeight = ((_ref = (_this_rowHeight = this.rowHeight) !== null && _this_rowHeight !== void 0 ? _this_rowHeight : this.estimatedRowHeight) !== null && _ref !== void 0 ? _ref : $61ef60fc9b1041f4$var$DEFAULT_HEIGHT) + this.gap;
2102
+ rect.y = Math.floor(rect.y / rowHeight) * rowHeight;
2103
+ rect.height = Math.ceil(rect.height / rowHeight) * rowHeight;
2104
+ }
2105
+ this.layoutIfNeeded(rect);
2106
+ let res = [];
2107
+ let addNodes = (nodes) => {
2108
+ for (let node of nodes) if (this.isVisible(node, rect)) {
2109
+ res.push(node.layoutInfo);
2110
+ if (node.children) addNodes(node.children);
2111
+ }
2112
+ };
2113
+ addNodes(this.rootNodes);
2114
+ return res;
2115
+ }
2116
+ layoutIfNeeded(rect) {
2117
+ if (!this.lastCollection) return;
2118
+ if (!this.requestedRect.containsRect(rect)) {
2119
+ this.requestedRect = this.requestedRect.union(rect);
2120
+ this.rootNodes = this.buildCollection();
2121
+ }
2122
+ for (let key of this.virtualizer.persistedKeys) if (this.ensureLayoutInfo(key)) return;
2123
+ }
2124
+ ensureLayoutInfo(key) {
2125
+ if (!this.layoutNodes.has(key) && this.requestedRect.area < this.contentSize.area && this.lastCollection) {
2126
+ this.requestedRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(0, 0, Infinity, Infinity);
2127
+ this.rootNodes = this.buildCollection();
2128
+ this.requestedRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(0, 0, this.contentSize.width, this.contentSize.height);
2129
+ return true;
2130
+ }
2131
+ return false;
2132
+ }
2133
+ isVisible(node, rect) {
2134
+ return node.layoutInfo.rect.intersects(rect) || node.layoutInfo.isSticky || node.layoutInfo.type === "header" || node.layoutInfo.type === "loader" || this.virtualizer.isPersistedKey(node.layoutInfo.key);
2135
+ }
2136
+ shouldInvalidateEverything(invalidationContext) {
2137
+ let options = invalidationContext.layoutOptions;
2138
+ var _options_rowHeight, _options_headingHeight, _options_loaderHeight, _options_gap, _options_padding;
2139
+ return invalidationContext.sizeChanged || this.rowHeight !== ((_options_rowHeight = options === null || options === void 0 ? void 0 : options.rowHeight) !== null && _options_rowHeight !== void 0 ? _options_rowHeight : this.rowHeight) || this.headingHeight !== ((_options_headingHeight = options === null || options === void 0 ? void 0 : options.headingHeight) !== null && _options_headingHeight !== void 0 ? _options_headingHeight : this.headingHeight) || this.loaderHeight !== ((_options_loaderHeight = options === null || options === void 0 ? void 0 : options.loaderHeight) !== null && _options_loaderHeight !== void 0 ? _options_loaderHeight : this.loaderHeight) || this.gap !== ((_options_gap = options === null || options === void 0 ? void 0 : options.gap) !== null && _options_gap !== void 0 ? _options_gap : this.gap) || this.padding !== ((_options_padding = options === null || options === void 0 ? void 0 : options.padding) !== null && _options_padding !== void 0 ? _options_padding : this.padding);
2140
+ }
2141
+ shouldInvalidateLayoutOptions(newOptions, oldOptions) {
2142
+ return newOptions.rowHeight !== oldOptions.rowHeight || newOptions.estimatedRowHeight !== oldOptions.estimatedRowHeight || newOptions.headingHeight !== oldOptions.headingHeight || newOptions.estimatedHeadingHeight !== oldOptions.estimatedHeadingHeight || newOptions.loaderHeight !== oldOptions.loaderHeight || newOptions.dropIndicatorThickness !== oldOptions.dropIndicatorThickness || newOptions.gap !== oldOptions.gap || newOptions.padding !== oldOptions.padding;
2143
+ }
2144
+ update(invalidationContext) {
2145
+ let collection = this.virtualizer.collection;
2146
+ this.invalidateEverything = this.shouldInvalidateEverything(invalidationContext);
2147
+ if (this.invalidateEverything) {
2148
+ this.requestedRect = this.virtualizer.visibleRect.copy();
2149
+ this.layoutNodes.clear();
2150
+ }
2151
+ let options = invalidationContext.layoutOptions;
2152
+ var _options_rowHeight;
2153
+ this.rowHeight = (_options_rowHeight = options === null || options === void 0 ? void 0 : options.rowHeight) !== null && _options_rowHeight !== void 0 ? _options_rowHeight : this.rowHeight;
2154
+ var _options_estimatedRowHeight;
2155
+ this.estimatedRowHeight = (_options_estimatedRowHeight = options === null || options === void 0 ? void 0 : options.estimatedRowHeight) !== null && _options_estimatedRowHeight !== void 0 ? _options_estimatedRowHeight : this.estimatedRowHeight;
2156
+ var _options_headingHeight;
2157
+ this.headingHeight = (_options_headingHeight = options === null || options === void 0 ? void 0 : options.headingHeight) !== null && _options_headingHeight !== void 0 ? _options_headingHeight : this.headingHeight;
2158
+ var _options_estimatedHeadingHeight;
2159
+ this.estimatedHeadingHeight = (_options_estimatedHeadingHeight = options === null || options === void 0 ? void 0 : options.estimatedHeadingHeight) !== null && _options_estimatedHeadingHeight !== void 0 ? _options_estimatedHeadingHeight : this.estimatedHeadingHeight;
2160
+ var _options_loaderHeight;
2161
+ this.loaderHeight = (_options_loaderHeight = options === null || options === void 0 ? void 0 : options.loaderHeight) !== null && _options_loaderHeight !== void 0 ? _options_loaderHeight : this.loaderHeight;
2162
+ var _options_dropIndicatorThickness;
2163
+ this.dropIndicatorThickness = (_options_dropIndicatorThickness = options === null || options === void 0 ? void 0 : options.dropIndicatorThickness) !== null && _options_dropIndicatorThickness !== void 0 ? _options_dropIndicatorThickness : this.dropIndicatorThickness;
2164
+ var _options_gap;
2165
+ this.gap = (_options_gap = options === null || options === void 0 ? void 0 : options.gap) !== null && _options_gap !== void 0 ? _options_gap : this.gap;
2166
+ var _options_padding;
2167
+ this.padding = (_options_padding = options === null || options === void 0 ? void 0 : options.padding) !== null && _options_padding !== void 0 ? _options_padding : this.padding;
2168
+ this.rootNodes = this.buildCollection();
2169
+ if (this.lastCollection && collection !== this.lastCollection) {
2170
+ for (let key of this.lastCollection.getKeys()) if (!collection.getItem(key)) {
2171
+ if (this.layoutNodes.get(key)) this.layoutNodes.delete(key);
2172
+ }
2173
+ }
2174
+ this.lastCollection = collection;
2175
+ this.invalidateEverything = false;
2176
+ this.validRect = this.requestedRect.copy();
2177
+ }
2178
+ buildCollection(y = this.padding) {
2179
+ let collection = this.virtualizer.collection;
2180
+ let collectionNodes = [...collection];
2181
+ let loaderNodes = collectionNodes.filter((node) => node.type === "loader");
2182
+ let nodes = [];
2183
+ let isEmptyOrLoading = (collection === null || collection === void 0 ? void 0 : collection.size) === 0;
2184
+ if (isEmptyOrLoading) y = 0;
2185
+ for (let node of collectionNodes) {
2186
+ var _this_rowHeight, _ref;
2187
+ let rowHeight = ((_ref = (_this_rowHeight = this.rowHeight) !== null && _this_rowHeight !== void 0 ? _this_rowHeight : this.estimatedRowHeight) !== null && _ref !== void 0 ? _ref : $61ef60fc9b1041f4$var$DEFAULT_HEIGHT) + this.gap;
2188
+ if (node.type === "item" && y + rowHeight < this.requestedRect.y && !this.isValid(node, y)) {
2189
+ y += rowHeight;
2190
+ continue;
2191
+ }
2192
+ let layoutNode = this.buildChild(node, this.padding, y, null);
2193
+ y = layoutNode.layoutInfo.rect.maxY + this.gap;
2194
+ nodes.push(layoutNode);
2195
+ if (node.type === "loader") {
2196
+ let index = loaderNodes.indexOf(node);
2197
+ loaderNodes.splice(index, 1);
2198
+ }
2199
+ if ((node.type === "item" || node.type === "loader") && y > this.requestedRect.maxY) {
2200
+ let lastProcessedIndex = collectionNodes.indexOf(node);
2201
+ for (let loaderNode of loaderNodes) {
2202
+ let loaderNodeIndex = collectionNodes.indexOf(loaderNode);
2203
+ y += (loaderNodeIndex - lastProcessedIndex - 1) * rowHeight;
2204
+ let loader = this.buildChild(loaderNode, this.padding, y, null);
2205
+ nodes.push(loader);
2206
+ y = loader.layoutInfo.rect.maxY;
2207
+ lastProcessedIndex = loaderNodeIndex;
2208
+ }
2209
+ y += (collectionNodes.length - lastProcessedIndex - 1) * rowHeight;
2210
+ break;
2211
+ }
2212
+ }
2213
+ y -= this.gap;
2214
+ y += isEmptyOrLoading ? 0 : this.padding;
2215
+ this.contentSize = new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec(this.virtualizer.visibleRect.width, y);
2216
+ return nodes;
2217
+ }
2218
+ isValid(node, y) {
2219
+ let cached = this.layoutNodes.get(node.key);
2220
+ return !this.invalidateEverything && !!cached && cached.node === node && y === cached.layoutInfo.rect.y && cached.layoutInfo.rect.intersects(this.validRect) && cached.validRect.containsRect(cached.layoutInfo.rect.intersection(this.requestedRect));
2221
+ }
2222
+ buildChild(node, x, y, parentKey) {
2223
+ if (this.isValid(node, y)) return this.layoutNodes.get(node.key);
2224
+ let layoutNode = this.buildNode(node, x, y);
2225
+ layoutNode.layoutInfo.parentKey = parentKey !== null && parentKey !== void 0 ? parentKey : null;
2226
+ layoutNode.layoutInfo.allowOverflow = true;
2227
+ this.layoutNodes.set(node.key, layoutNode);
2228
+ return layoutNode;
2229
+ }
2230
+ buildNode(node, x, y) {
2231
+ switch (node.type) {
2232
+ case "section": return this.buildSection(node, x, y);
2233
+ case "item": return this.buildItem(node, x, y);
2234
+ case "header": return this.buildSectionHeader(node, x, y);
2235
+ case "loader": return this.buildLoader(node, x, y);
2236
+ case "separator": return this.buildItem(node, x, y);
2237
+ default: throw new Error("Unsupported node type: " + node.type);
2238
+ }
2239
+ }
2240
+ buildLoader(node, x, y) {
2241
+ let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, this.padding, 0);
2242
+ let layoutInfo = new $d7fd61009c21d0bb$export$7e0eeb9da702a085("loader", node.key, rect);
2243
+ rect.width = this.virtualizer.contentSize.width - this.padding - x;
2244
+ var _this_loaderHeight, _ref, _ref1;
2245
+ rect.height = node.props.isLoading ? (_ref1 = (_ref = (_this_loaderHeight = this.loaderHeight) !== null && _this_loaderHeight !== void 0 ? _this_loaderHeight : this.rowHeight) !== null && _ref !== void 0 ? _ref : this.estimatedRowHeight) !== null && _ref1 !== void 0 ? _ref1 : $61ef60fc9b1041f4$var$DEFAULT_HEIGHT : 0;
2246
+ return {
2247
+ layoutInfo,
2248
+ validRect: rect.intersection(this.requestedRect)
2249
+ };
2250
+ }
2251
+ buildSection(node, x, y) {
2252
+ let collection = this.virtualizer.collection;
2253
+ let width = this.virtualizer.visibleRect.width - this.padding;
2254
+ let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, width - x, 0);
2255
+ let layoutInfo = new $d7fd61009c21d0bb$export$7e0eeb9da702a085(node.type, node.key, rect);
2256
+ let startY = y;
2257
+ let skipped = 0;
2258
+ let children = [];
2259
+ for (let child of $c5a24bc478652b5f$export$1005530eda016c13(node, collection)) {
2260
+ var _this_rowHeight, _ref;
2261
+ let rowHeight = ((_ref = (_this_rowHeight = this.rowHeight) !== null && _this_rowHeight !== void 0 ? _this_rowHeight : this.estimatedRowHeight) !== null && _ref !== void 0 ? _ref : $61ef60fc9b1041f4$var$DEFAULT_HEIGHT) + this.gap;
2262
+ if (y + rowHeight < this.requestedRect.y && !this.isValid(node, y)) {
2263
+ y += rowHeight;
2264
+ skipped++;
2265
+ continue;
2266
+ }
2267
+ let layoutNode = this.buildChild(child, x, y, layoutInfo.key);
2268
+ y = layoutNode.layoutInfo.rect.maxY + this.gap;
2269
+ children.push(layoutNode);
2270
+ if (y > this.requestedRect.maxY) {
2271
+ y += ([...$c5a24bc478652b5f$export$1005530eda016c13(node, collection)].length - (children.length + skipped)) * rowHeight;
2272
+ break;
2273
+ }
2274
+ }
2275
+ y -= this.gap;
2276
+ rect.height = y - startY;
2277
+ return {
2278
+ layoutInfo,
2279
+ children,
2280
+ validRect: layoutInfo.rect.intersection(this.requestedRect),
2281
+ node
2282
+ };
2283
+ }
2284
+ buildSectionHeader(node, x, y) {
2285
+ let width = this.virtualizer.visibleRect.width - this.padding;
2286
+ let rectHeight = this.headingHeight;
2287
+ let isEstimated = false;
2288
+ if (rectHeight == null) {
2289
+ let previousLayoutNode = this.layoutNodes.get(node.key);
2290
+ let previousLayoutInfo = previousLayoutNode === null || previousLayoutNode === void 0 ? void 0 : previousLayoutNode.layoutInfo;
2291
+ if (previousLayoutInfo) {
2292
+ let curNode = this.virtualizer.collection.getItem(node.key);
2293
+ let lastNode = this.lastCollection ? this.lastCollection.getItem(node.key) : null;
2294
+ rectHeight = previousLayoutInfo.rect.height;
2295
+ isEstimated = width !== previousLayoutInfo.rect.width || curNode !== lastNode || previousLayoutInfo.estimatedSize;
2296
+ } else {
2297
+ rectHeight = node.rendered ? this.estimatedHeadingHeight : 0;
2298
+ isEstimated = true;
2299
+ }
2300
+ }
2301
+ if (rectHeight == null) rectHeight = $61ef60fc9b1041f4$var$DEFAULT_HEIGHT;
2302
+ let headerRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, width - x, rectHeight);
2303
+ let header = new $d7fd61009c21d0bb$export$7e0eeb9da702a085("header", node.key, headerRect);
2304
+ header.estimatedSize = isEstimated;
2305
+ return {
2306
+ layoutInfo: header,
2307
+ children: [],
2308
+ validRect: header.rect.intersection(this.requestedRect),
2309
+ node
2310
+ };
2311
+ }
2312
+ buildItem(node, x, y) {
2313
+ let width = this.virtualizer.visibleRect.width - this.padding - x;
2314
+ let rectHeight = this.rowHeight;
2315
+ let isEstimated = false;
2316
+ if (rectHeight == null) {
2317
+ let previousLayoutNode = this.layoutNodes.get(node.key);
2318
+ if (previousLayoutNode) {
2319
+ rectHeight = previousLayoutNode.layoutInfo.rect.height;
2320
+ isEstimated = width !== previousLayoutNode.layoutInfo.rect.width || node !== previousLayoutNode.node || previousLayoutNode.layoutInfo.estimatedSize;
2321
+ } else {
2322
+ rectHeight = this.estimatedRowHeight;
2323
+ isEstimated = true;
2324
+ }
2325
+ }
2326
+ if (rectHeight == null) rectHeight = $61ef60fc9b1041f4$var$DEFAULT_HEIGHT;
2327
+ let rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, y, width, rectHeight);
2328
+ let layoutInfo = new $d7fd61009c21d0bb$export$7e0eeb9da702a085(node.type, node.key, rect);
2329
+ layoutInfo.estimatedSize = isEstimated;
2330
+ return {
2331
+ layoutInfo,
2332
+ children: [],
2333
+ validRect: layoutInfo.rect,
2334
+ node
2335
+ };
2336
+ }
2337
+ updateItemSize(key, size) {
2338
+ let layoutNode = this.layoutNodes.get(key);
2339
+ if (!layoutNode) return false;
2340
+ let collection = this.virtualizer.collection;
2341
+ let layoutInfo = layoutNode.layoutInfo;
2342
+ layoutInfo.estimatedSize = false;
2343
+ if (layoutInfo.rect.height !== size.height) {
2344
+ let newLayoutInfo = layoutInfo.copy();
2345
+ newLayoutInfo.rect.height = size.height;
2346
+ layoutNode.layoutInfo = newLayoutInfo;
2347
+ this.validRect.height = Math.min(this.validRect.height, layoutInfo.rect.y - this.validRect.y);
2348
+ this.requestedRect.height += newLayoutInfo.rect.height - layoutInfo.rect.height;
2349
+ this.updateLayoutNode(key, layoutInfo, newLayoutInfo);
2350
+ let node = layoutInfo.parentKey != null ? collection.getItem(layoutInfo.parentKey) : null;
2351
+ while (node) {
2352
+ this.updateLayoutNode(node.key, layoutInfo, newLayoutInfo);
2353
+ node = node.parentKey != null ? collection.getItem(node.parentKey) : null;
2354
+ }
2355
+ return true;
2356
+ }
2357
+ return false;
2358
+ }
2359
+ updateLayoutNode(key, oldLayoutInfo, newLayoutInfo) {
2360
+ let n = this.layoutNodes.get(key);
2361
+ if (n) {
2362
+ n.validRect = n.validRect.intersection(this.validRect);
2363
+ if (n.layoutInfo === oldLayoutInfo) n.layoutInfo = newLayoutInfo;
2364
+ }
2365
+ }
2366
+ getContentSize() {
2367
+ return this.contentSize;
2368
+ }
2369
+ getDropTargetFromPoint(x, y, isValidDropTarget) {
2370
+ x += this.virtualizer.visibleRect.x;
2371
+ y += this.virtualizer.visibleRect.y;
2372
+ let searchRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(x, Math.max(0, y - this.gap), 1, Math.max(1, this.gap * 2));
2373
+ let candidates = this.getVisibleLayoutInfos(searchRect);
2374
+ let key = null;
2375
+ let minDistance = Infinity;
2376
+ for (let candidate of candidates) {
2377
+ if (!candidate.rect.intersects(searchRect)) continue;
2378
+ let yDist = Math.abs(candidate.rect.y - y);
2379
+ let maxYDist = Math.abs(candidate.rect.maxY - y);
2380
+ let dist = Math.min(yDist, maxYDist);
2381
+ if (dist < minDistance) {
2382
+ minDistance = dist;
2383
+ key = candidate.key;
2384
+ }
2385
+ }
2386
+ if (key == null || this.virtualizer.collection.size === 0) return { type: "root" };
2387
+ let layoutInfo = this.getLayoutInfo(key);
2388
+ if (!layoutInfo) return null;
2389
+ let rect = layoutInfo.rect;
2390
+ let target = {
2391
+ type: "item",
2392
+ key: layoutInfo.key,
2393
+ dropPosition: "on"
2394
+ };
2395
+ if (!isValidDropTarget(target)) {
2396
+ if (y <= rect.y + rect.height / 2 && isValidDropTarget({
2397
+ ...target,
2398
+ dropPosition: "before"
2399
+ })) target.dropPosition = "before";
2400
+ else if (isValidDropTarget({
2401
+ ...target,
2402
+ dropPosition: "after"
2403
+ })) target.dropPosition = "after";
2404
+ } else if (y <= rect.y + 10 && isValidDropTarget({
2405
+ ...target,
2406
+ dropPosition: "before"
2407
+ })) target.dropPosition = "before";
2408
+ else if (y >= rect.maxY - 10 && isValidDropTarget({
2409
+ ...target,
2410
+ dropPosition: "after"
2411
+ })) target.dropPosition = "after";
2412
+ return target;
2413
+ }
2414
+ getDropTargetLayoutInfo(target) {
2415
+ let layoutInfo = this.getLayoutInfo(target.key);
2416
+ let rect;
2417
+ if (target.dropPosition === "before") rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(layoutInfo.rect.x, Math.max(0, layoutInfo.rect.y - this.dropIndicatorThickness / 2), layoutInfo.rect.width, this.dropIndicatorThickness);
2418
+ else if (target.dropPosition === "after") {
2419
+ let targetNode = this.collection.getItem(target.key);
2420
+ if (targetNode) {
2421
+ var _targetNode_level;
2422
+ let targetLevel = (_targetNode_level = targetNode.level) !== null && _targetNode_level !== void 0 ? _targetNode_level : 0;
2423
+ let currentKey = this.collection.getKeyAfter(target.key);
2424
+ while (currentKey != null) {
2425
+ let node = this.collection.getItem(currentKey);
2426
+ if (!node || node.level <= targetLevel) break;
2427
+ layoutInfo = this.getLayoutInfo(currentKey) || layoutInfo;
2428
+ currentKey = this.collection.getKeyAfter(currentKey);
2429
+ }
2430
+ }
2431
+ rect = new $60423f92c7f9ad87$export$c79fc6492f3af13d(layoutInfo.rect.x, layoutInfo.rect.maxY - this.dropIndicatorThickness / 2, layoutInfo.rect.width, this.dropIndicatorThickness);
2432
+ } else rect = layoutInfo.rect;
2433
+ return new $d7fd61009c21d0bb$export$7e0eeb9da702a085("dropIndicator", target.key + ":" + target.dropPosition, rect);
2434
+ }
2435
+ /**
2436
+ * Creates a new ListLayout with options. See the list of properties below for a description
2437
+ * of the options that can be provided.
2438
+ */ constructor(options = {}) {
2439
+ super();
2440
+ var _options_rowHeight;
2441
+ this.rowHeight = (_options_rowHeight = options.rowHeight) !== null && _options_rowHeight !== void 0 ? _options_rowHeight : null;
2442
+ var _options_estimatedRowHeight;
2443
+ this.estimatedRowHeight = (_options_estimatedRowHeight = options.estimatedRowHeight) !== null && _options_estimatedRowHeight !== void 0 ? _options_estimatedRowHeight : null;
2444
+ var _options_headingHeight;
2445
+ this.headingHeight = (_options_headingHeight = options.headingHeight) !== null && _options_headingHeight !== void 0 ? _options_headingHeight : null;
2446
+ var _options_estimatedHeadingHeight;
2447
+ this.estimatedHeadingHeight = (_options_estimatedHeadingHeight = options.estimatedHeadingHeight) !== null && _options_estimatedHeadingHeight !== void 0 ? _options_estimatedHeadingHeight : null;
2448
+ var _options_loaderHeight;
2449
+ this.loaderHeight = (_options_loaderHeight = options.loaderHeight) !== null && _options_loaderHeight !== void 0 ? _options_loaderHeight : null;
2450
+ this.dropIndicatorThickness = options.dropIndicatorThickness || 2;
2451
+ this.gap = options.gap || 0;
2452
+ this.padding = options.padding || 0;
2453
+ this.layoutNodes = /* @__PURE__ */ new Map();
2454
+ this.rootNodes = [];
2455
+ this.lastCollection = null;
2456
+ this.invalidateEverything = false;
2457
+ this.validRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d();
2458
+ this.requestedRect = new $60423f92c7f9ad87$export$c79fc6492f3af13d();
2459
+ this.contentSize = new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec();
2460
+ }
2461
+ };
2462
+ //#endregion
2463
+ //#region ../../node_modules/.bun/@react-aria+virtualizer@4.1.12+67f6792bdf102c28/node_modules/@react-aria/virtualizer/dist/utils.mjs
2464
+ let $ce415dc67314b753$var$cachedRTLResult = null;
2465
+ function $ce415dc67314b753$export$faf7630257ad4304(recalculate = false) {
2466
+ if ($ce415dc67314b753$var$cachedRTLResult === null || recalculate) {
2467
+ const outerDiv = document.createElement("div");
2468
+ const outerStyle = outerDiv.style;
2469
+ outerStyle.width = "50px";
2470
+ outerStyle.height = "50px";
2471
+ outerStyle.overflow = "scroll";
2472
+ outerStyle.direction = "rtl";
2473
+ const innerDiv = document.createElement("div");
2474
+ const innerStyle = innerDiv.style;
2475
+ innerStyle.width = "100px";
2476
+ innerStyle.height = "100px";
2477
+ outerDiv.appendChild(innerDiv);
2478
+ document.body.appendChild(outerDiv);
2479
+ if (outerDiv.scrollLeft > 0) $ce415dc67314b753$var$cachedRTLResult = "positive-descending";
2480
+ else {
2481
+ outerDiv.scrollLeft = 1;
2482
+ if (outerDiv.scrollLeft === 0) $ce415dc67314b753$var$cachedRTLResult = "negative";
2483
+ else $ce415dc67314b753$var$cachedRTLResult = "positive-ascending";
2484
+ }
2485
+ document.body.removeChild(outerDiv);
2486
+ return $ce415dc67314b753$var$cachedRTLResult;
2487
+ }
2488
+ return $ce415dc67314b753$var$cachedRTLResult;
2489
+ }
2490
+ function $ce415dc67314b753$export$1389d168952b34b5(node, direction) {
2491
+ let { scrollLeft } = node;
2492
+ if (direction === "rtl") {
2493
+ let { scrollWidth, clientWidth } = node;
2494
+ switch ($ce415dc67314b753$export$faf7630257ad4304()) {
2495
+ case "negative":
2496
+ scrollLeft = -scrollLeft;
2497
+ break;
2498
+ case "positive-descending": scrollLeft = scrollWidth - clientWidth - scrollLeft;
2499
+ }
2500
+ }
2501
+ return scrollLeft;
2502
+ }
2503
+ //#endregion
2504
+ //#region ../../node_modules/.bun/@react-aria+virtualizer@4.1.12+67f6792bdf102c28/node_modules/@react-aria/virtualizer/dist/ScrollView.mjs
2505
+ function $44a6ee657928b002$export$2ea0c4974da4731b(props, ref) {
2506
+ let { contentSize, onVisibleRectChange, innerStyle, onScrollStart, onScrollEnd, scrollDirection = "both", ...otherProps } = props;
2507
+ let state = useRef({
2508
+ scrollTop: 0,
2509
+ scrollLeft: 0,
2510
+ scrollEndTime: 0,
2511
+ scrollTimeout: null,
2512
+ width: 0,
2513
+ height: 0,
2514
+ isScrolling: false
2515
+ }).current;
2516
+ let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
2517
+ let [isScrolling, setScrolling] = useState(false);
2518
+ let onScroll = useCallback((e) => {
2519
+ if (e.target !== e.currentTarget) return;
2520
+ if (props.onScroll) props.onScroll(e);
2521
+ flushSync(() => {
2522
+ let scrollTop = e.currentTarget.scrollTop;
2523
+ let scrollLeft = $ce415dc67314b753$export$1389d168952b34b5(e.currentTarget, direction);
2524
+ state.scrollTop = Math.max(0, Math.min(scrollTop, contentSize.height - state.height));
2525
+ state.scrollLeft = Math.max(0, Math.min(scrollLeft, contentSize.width - state.width));
2526
+ onVisibleRectChange(new $60423f92c7f9ad87$export$c79fc6492f3af13d(state.scrollLeft, state.scrollTop, state.width, state.height));
2527
+ if (!state.isScrolling) {
2528
+ state.isScrolling = true;
2529
+ setScrolling(true);
2530
+ window.dispatchEvent(new Event("tk.disconnect-observer"));
2531
+ if (onScrollStart) onScrollStart();
2532
+ }
2533
+ let now = Date.now();
2534
+ if (state.scrollEndTime <= now + 50) {
2535
+ state.scrollEndTime = now + 300;
2536
+ if (state.scrollTimeout != null) clearTimeout(state.scrollTimeout);
2537
+ state.scrollTimeout = setTimeout(() => {
2538
+ state.isScrolling = false;
2539
+ setScrolling(false);
2540
+ state.scrollTimeout = null;
2541
+ window.dispatchEvent(new Event("tk.connect-observer"));
2542
+ if (onScrollEnd) onScrollEnd();
2543
+ }, 300);
2544
+ }
2545
+ });
2546
+ }, [
2547
+ props,
2548
+ direction,
2549
+ state,
2550
+ contentSize,
2551
+ onVisibleRectChange,
2552
+ onScrollStart,
2553
+ onScrollEnd
2554
+ ]);
2555
+ $e9faafb641e167db$export$90fc3a17d93f704c(ref, "scroll", onScroll);
2556
+ useEffect(() => {
2557
+ return () => {
2558
+ if (state.scrollTimeout != null) clearTimeout(state.scrollTimeout);
2559
+ if (state.isScrolling) window.dispatchEvent(new Event("tk.connect-observer"));
2560
+ };
2561
+ }, []);
2562
+ let isUpdatingSize = useRef(false);
2563
+ let updateSize = useCallback((flush) => {
2564
+ let dom = ref.current;
2565
+ if (!dom || isUpdatingSize.current) return;
2566
+ isUpdatingSize.current = true;
2567
+ Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth");
2568
+ Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight");
2569
+ let clientWidth = dom.clientWidth;
2570
+ let clientHeight = dom.clientHeight;
2571
+ let w = clientWidth;
2572
+ let h = clientHeight;
2573
+ if (state.width !== w || state.height !== h) {
2574
+ state.width = w;
2575
+ state.height = h;
2576
+ flush(() => {
2577
+ onVisibleRectChange(new $60423f92c7f9ad87$export$c79fc6492f3af13d(state.scrollLeft, state.scrollTop, w, h));
2578
+ });
2579
+ if (clientWidth !== dom.clientWidth || clientHeight !== dom.clientHeight) {
2580
+ state.width = dom.clientWidth;
2581
+ state.height = dom.clientHeight;
2582
+ flush(() => {
2583
+ onVisibleRectChange(new $60423f92c7f9ad87$export$c79fc6492f3af13d(state.scrollLeft, state.scrollTop, state.width, state.height));
2584
+ });
2585
+ }
2586
+ }
2587
+ isUpdatingSize.current = false;
2588
+ }, [
2589
+ ref,
2590
+ state,
2591
+ onVisibleRectChange
2592
+ ]);
2593
+ let updateSizeEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(updateSize);
2594
+ let lastContentSize = useRef(null);
2595
+ let [update, setUpdate] = useState({});
2596
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
2597
+ if (!isUpdatingSize.current && (lastContentSize.current == null || !contentSize.equals(lastContentSize.current))) if (typeof IS_REACT_ACT_ENVIRONMENT === "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== "undefined") {
2598
+ setUpdate({});
2599
+ lastContentSize.current = contentSize;
2600
+ return;
2601
+ } else queueMicrotask(() => updateSizeEvent(flushSync));
2602
+ lastContentSize.current = contentSize;
2603
+ });
2604
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
2605
+ updateSizeEvent((fn) => fn());
2606
+ }, [update]);
2607
+ let onResize = useCallback(() => {
2608
+ updateSize(flushSync);
2609
+ }, [updateSize]);
2610
+ $9daab02d461809db$export$683480f191c0e3ea({
2611
+ ref,
2612
+ box: "border-box",
2613
+ onResize
2614
+ });
2615
+ let style = {
2616
+ padding: 0,
2617
+ ...otherProps.style
2618
+ };
2619
+ if (scrollDirection === "horizontal") {
2620
+ style.overflowX = "auto";
2621
+ style.overflowY = "hidden";
2622
+ } else if (scrollDirection === "vertical" || contentSize.width === state.width) {
2623
+ style.overflowY = "auto";
2624
+ style.overflowX = "hidden";
2625
+ } else style.overflow = "auto";
2626
+ innerStyle = {
2627
+ width: Number.isFinite(contentSize.width) ? contentSize.width : void 0,
2628
+ height: Number.isFinite(contentSize.height) ? contentSize.height : void 0,
2629
+ pointerEvents: isScrolling ? "none" : "auto",
2630
+ position: "relative",
2631
+ ...innerStyle
2632
+ };
2633
+ return {
2634
+ isScrolling,
2635
+ scrollViewProps: {
2636
+ ...otherProps,
2637
+ style
2638
+ },
2639
+ contentProps: {
2640
+ role: "presentation",
2641
+ style: innerStyle
2642
+ }
2643
+ };
2644
+ }
2645
+ //#endregion
2646
+ //#region ../../node_modules/.bun/@react-aria+virtualizer@4.1.12+67f6792bdf102c28/node_modules/@react-aria/virtualizer/dist/useVirtualizerItem.mjs
2647
+ function $47736c1e63ba1c6d$export$1da781778207e0a2(options) {
2648
+ let { layoutInfo, virtualizer, ref } = options;
2649
+ let key = layoutInfo === null || layoutInfo === void 0 ? void 0 : layoutInfo.key;
2650
+ let updateSize = useCallback(() => {
2651
+ if (key != null && ref.current) {
2652
+ let size = $47736c1e63ba1c6d$var$getSize(ref.current);
2653
+ virtualizer.updateItemSize(key, size);
2654
+ }
2655
+ }, [
2656
+ virtualizer,
2657
+ key,
2658
+ ref
2659
+ ]);
2660
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
2661
+ if (layoutInfo === null || layoutInfo === void 0 ? void 0 : layoutInfo.estimatedSize) updateSize();
2662
+ });
2663
+ return { updateSize };
2664
+ }
2665
+ function $47736c1e63ba1c6d$var$getSize(node) {
2666
+ let height = node.style.height;
2667
+ node.style.height = "";
2668
+ let size = new $ee1bfa90a957fb8a$export$cb6da89c6af1a8ec(node.scrollWidth, node.scrollHeight);
2669
+ node.style.height = height;
2670
+ return size;
2671
+ }
2672
+ //#endregion
2673
+ //#region ../../node_modules/.bun/@react-aria+virtualizer@4.1.12+67f6792bdf102c28/node_modules/@react-aria/virtualizer/dist/VirtualizerItem.mjs
2674
+ function $ccf8a0a04e4175ae$export$6796df8ba7398521(props) {
2675
+ let { style, className, layoutInfo, virtualizer, parent, children } = props;
2676
+ let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
2677
+ let ref = useRef(null);
2678
+ $47736c1e63ba1c6d$export$1da781778207e0a2({
2679
+ layoutInfo,
2680
+ virtualizer,
2681
+ ref
2682
+ });
2683
+ return /*#__PURE__*/ $HgANd$react.createElement("div", {
2684
+ role: "presentation",
2685
+ ref,
2686
+ className,
2687
+ style: {
2688
+ ...$ccf8a0a04e4175ae$export$1481e64fbe01b8b3(layoutInfo, direction, parent),
2689
+ ...style
2690
+ }
2691
+ }, children);
2692
+ }
2693
+ let $ccf8a0a04e4175ae$var$cache = /* @__PURE__ */ new WeakMap();
2694
+ function $ccf8a0a04e4175ae$export$1481e64fbe01b8b3(layoutInfo, dir, parent) {
2695
+ let xProperty = dir === "rtl" ? "right" : "left";
2696
+ let cached = $ccf8a0a04e4175ae$var$cache.get(layoutInfo);
2697
+ if (cached && cached[xProperty] != null) {
2698
+ if (!parent) return cached;
2699
+ let top = layoutInfo.rect.y - parent.rect.y;
2700
+ let x = layoutInfo.rect.x - parent.rect.x;
2701
+ if (cached.top === top && cached[xProperty] === x) return cached;
2702
+ }
2703
+ let rectStyles = {
2704
+ top: layoutInfo.rect.y - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.y : 0),
2705
+ [xProperty]: layoutInfo.rect.x - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.x : 0),
2706
+ width: layoutInfo.rect.width,
2707
+ height: layoutInfo.rect.height
2708
+ };
2709
+ Object.entries(rectStyles).forEach(([key, value]) => {
2710
+ if (!Number.isFinite(value)) rectStyles[key] = void 0;
2711
+ });
2712
+ var _layoutInfo_transform;
2713
+ let style = {
2714
+ position: layoutInfo.isSticky ? "sticky" : "absolute",
2715
+ display: layoutInfo.isSticky ? "inline-block" : void 0,
2716
+ overflow: layoutInfo.allowOverflow ? "visible" : "hidden",
2717
+ opacity: layoutInfo.opacity,
2718
+ zIndex: layoutInfo.zIndex,
2719
+ transform: (_layoutInfo_transform = layoutInfo.transform) !== null && _layoutInfo_transform !== void 0 ? _layoutInfo_transform : void 0,
2720
+ contain: "size layout style",
2721
+ ...rectStyles
2722
+ };
2723
+ $ccf8a0a04e4175ae$var$cache.set(layoutInfo, style);
2724
+ return style;
2725
+ }
2726
+ //#endregion
2727
+ //#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Virtualizer.mjs
2728
+ const $ce3a951440fc273f$var$VirtualizerContext = /*#__PURE__*/ createContext(null);
2729
+ const $ce3a951440fc273f$var$LayoutContext = /*#__PURE__*/ createContext(null);
2730
+ function $ce3a951440fc273f$export$89be5a243e59c4b2(props) {
2731
+ let { children, layout: layoutProp, layoutOptions } = props;
2732
+ let layout = useMemo(() => typeof layoutProp === "function" ? new layoutProp() : layoutProp, [layoutProp]);
2733
+ let renderer = useMemo(() => ({
2734
+ isVirtualized: true,
2735
+ layoutDelegate: layout,
2736
+ dropTargetDelegate: layout.getDropTargetFromPoint ? layout : void 0,
2737
+ CollectionRoot: $ce3a951440fc273f$var$CollectionRoot,
2738
+ CollectionBranch: $ce3a951440fc273f$var$CollectionBranch
2739
+ }), [layout]);
2740
+ return /*#__PURE__*/ $HgANd$react.createElement($7135fc7d473fd974$export$4feb769f8ddf26c5.Provider, { value: renderer }, /*#__PURE__*/ $HgANd$react.createElement($ce3a951440fc273f$var$LayoutContext.Provider, { value: {
2741
+ layout,
2742
+ layoutOptions
2743
+ } }, children));
2744
+ }
2745
+ function $ce3a951440fc273f$var$CollectionRoot({ collection, persistedKeys, scrollRef, renderDropIndicator }) {
2746
+ var _layout_useLayoutOptions;
2747
+ let { layout, layoutOptions } = useContext($ce3a951440fc273f$var$LayoutContext);
2748
+ let layoutOptions2 = (_layout_useLayoutOptions = layout.useLayoutOptions) === null || _layout_useLayoutOptions === void 0 ? void 0 : _layout_useLayoutOptions.call(layout);
2749
+ let state = $fc0b13b484ac1194$export$1505db82fe357e65({
2750
+ layout,
2751
+ collection,
2752
+ renderView: (type, item) => {
2753
+ var _item_render;
2754
+ return item === null || item === void 0 ? void 0 : (_item_render = item.render) === null || _item_render === void 0 ? void 0 : _item_render.call(item, item);
2755
+ },
2756
+ onVisibleRectChange(rect) {
2757
+ let element = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current;
2758
+ if (element) {
2759
+ element.scrollLeft = rect.x;
2760
+ element.scrollTop = rect.y;
2761
+ }
2762
+ },
2763
+ persistedKeys,
2764
+ layoutOptions: useMemo(() => {
2765
+ if (layoutOptions && layoutOptions2) return {
2766
+ ...layoutOptions,
2767
+ ...layoutOptions2
2768
+ };
2769
+ return layoutOptions || layoutOptions2;
2770
+ }, [layoutOptions, layoutOptions2])
2771
+ });
2772
+ let { contentProps } = $44a6ee657928b002$export$2ea0c4974da4731b({
2773
+ onVisibleRectChange: state.setVisibleRect,
2774
+ contentSize: state.contentSize,
2775
+ onScrollStart: state.startScrolling,
2776
+ onScrollEnd: state.endScrolling
2777
+ }, scrollRef);
2778
+ return /*#__PURE__*/ $HgANd$react.createElement("div", contentProps, /*#__PURE__*/ $HgANd$react.createElement($ce3a951440fc273f$var$VirtualizerContext.Provider, { value: state }, $ce3a951440fc273f$var$renderChildren(null, state.visibleViews, renderDropIndicator)));
2779
+ }
2780
+ function $ce3a951440fc273f$var$CollectionBranch({ parent, renderDropIndicator }) {
2781
+ let parentView = useContext($ce3a951440fc273f$var$VirtualizerContext).virtualizer.getVisibleView(parent.key);
2782
+ return $ce3a951440fc273f$var$renderChildren(parentView, Array.from(parentView.children), renderDropIndicator);
2783
+ }
2784
+ function $ce3a951440fc273f$var$renderChildren(parent, children, renderDropIndicator) {
2785
+ return children.map((view) => $ce3a951440fc273f$var$renderWrapper(parent, view, renderDropIndicator));
2786
+ }
2787
+ function $ce3a951440fc273f$var$renderWrapper(parent, reusableView, renderDropIndicator) {
2788
+ let rendered = /*#__PURE__*/ $HgANd$react.createElement($ccf8a0a04e4175ae$export$6796df8ba7398521, {
2789
+ key: reusableView.key,
2790
+ layoutInfo: reusableView.layoutInfo,
2791
+ virtualizer: reusableView.virtualizer,
2792
+ parent: parent === null || parent === void 0 ? void 0 : parent.layoutInfo
2793
+ }, reusableView.rendered);
2794
+ let { collection, layout } = reusableView.virtualizer;
2795
+ let node = reusableView.content;
2796
+ if ((node === null || node === void 0 ? void 0 : node.type) === "item" && renderDropIndicator && layout.getDropTargetLayoutInfo) rendered = /*#__PURE__*/ $HgANd$react.createElement($HgANd$react.Fragment, { key: reusableView.key }, $ce3a951440fc273f$var$renderDropIndicatorWrapper(parent, reusableView, {
2797
+ type: "item",
2798
+ key: reusableView.content.key,
2799
+ dropPosition: "before"
2800
+ }, renderDropIndicator), rendered, $7135fc7d473fd974$export$2dbbd341daed716d(collection, node, (target) => $ce3a951440fc273f$var$renderDropIndicatorWrapper(parent, reusableView, target, renderDropIndicator)));
2801
+ return rendered;
2802
+ }
2803
+ function $ce3a951440fc273f$var$renderDropIndicatorWrapper(parent, reusableView, target, renderDropIndicator) {
2804
+ let indicator = renderDropIndicator(target);
2805
+ if (indicator) {
2806
+ let layoutInfo = reusableView.virtualizer.layout.getDropTargetLayoutInfo(target);
2807
+ indicator = /*#__PURE__*/ $HgANd$react.createElement($ccf8a0a04e4175ae$export$6796df8ba7398521, {
2808
+ layoutInfo,
2809
+ virtualizer: reusableView.virtualizer,
2810
+ parent: parent === null || parent === void 0 ? void 0 : parent.layoutInfo
2811
+ }, indicator);
2812
+ }
2813
+ return indicator;
2814
+ }
2815
+ //#endregion
2816
+ //#region src/components/inputs/Selection/shared/SelectInputTags.tsx
2817
+ const SelectInputTags = ({ selectedItems, isDisabled, selectedTagsType, collapseAfter, onRemove }) => {
2818
+ const { displayedItems, remainingCount } = useMemo(() => {
2819
+ if (!collapseAfter || selectedItems.length <= collapseAfter) return {
2820
+ displayedItems: selectedItems,
2821
+ remainingCount: 0
2822
+ };
2823
+ return {
2824
+ displayedItems: selectedItems.slice(0, collapseAfter - 1),
2825
+ remainingCount: selectedItems.length - (collapseAfter - 1)
2826
+ };
2827
+ }, [selectedItems, collapseAfter]);
2828
+ if (selectedTagsType === "tags") return /* @__PURE__ */ jsxs(Fragment$1, { children: [displayedItems.map((item) => /* @__PURE__ */ jsx(Tag, {
2829
+ dismissable: true,
2830
+ isDisabled,
2831
+ onDismiss: () => onRemove(item.id),
2832
+ excludeFromTabOrder: true,
2833
+ className: "z-raised",
2834
+ children: item.label
2835
+ }, item.id)), remainingCount > 0 && /* @__PURE__ */ jsx(Tag, {
2836
+ isDisabled,
2837
+ excludeFromTabOrder: true,
2838
+ children: `+${remainingCount} more`
2839
+ }, "remaining-count")] });
2840
+ return /* @__PURE__ */ jsx("p", { children: selectedItems.map((item) => item.label).join(", ") });
2841
+ };
2842
+ //#endregion
2843
+ //#region src/components/inputs/Selection/shared/useSelectItems.tsx
2844
+ const SelectAllItemId = "all-item-id";
2845
+ const SelectAllItem = (inputValue) => ({
2846
+ id: SelectAllItemId,
2847
+ label: inputValue,
2848
+ isSelectAllItem: true
2849
+ });
2850
+ const NewItemId = "new-item-id";
2851
+ const NewItem = (inputValue) => ({
2852
+ id: NewItemId,
2853
+ label: inputValue,
2854
+ isNewItem: true
2855
+ });
2856
+ const LoadingItemId = "loading-item-id";
2857
+ const LoadingItem = (inputValue) => ({
2858
+ id: LoadingItemId,
2859
+ label: inputValue,
2860
+ isLoadingItem: true
2861
+ });
2862
+ const ReservedItemIds = [
2863
+ SelectAllItemId,
2864
+ NewItemId,
2865
+ LoadingItemId
2866
+ ];
2867
+ function useSelectItems({ initialSelectedItems, selectedItems, cachedItems, inputValue, showAll, isMultiple, showSelectAllOption, showNewItemOption, newItemMinLength = 3, isLoading, hasLoadMore, isClientSearchDisabled }) {
2868
+ const { contains } = $bb77f239b46e8c72$export$3274cf84b703fff({ sensitivity: "base" });
2869
+ const allListItems = useMemo(() => {
2870
+ const showSelectAllItem = isMultiple && showSelectAllOption && inputValue.length === 0 && !hasLoadMore;
2871
+ const showNewItem = showNewItemOption && inputValue.length >= newItemMinLength && !cachedItems.find((item) => contains(item.label, inputValue));
2872
+ const showLoadingItem = isLoading || hasLoadMore;
2873
+ return [
2874
+ ...showSelectAllItem ? [SelectAllItem(inputValue)] : [],
2875
+ ...cachedItems,
2876
+ ...showNewItem ? [NewItem(inputValue)] : [],
2877
+ ...showLoadingItem ? [LoadingItem(inputValue)] : []
2878
+ ];
2879
+ }, [
2880
+ isMultiple,
2881
+ showNewItemOption,
2882
+ inputValue,
2883
+ newItemMinLength,
2884
+ cachedItems,
2885
+ contains,
2886
+ isLoading,
2887
+ hasLoadMore,
2888
+ showSelectAllOption
2889
+ ]);
2890
+ const allItems = useMemo(() => {
2891
+ const items = [
2892
+ ...Array.isArray(initialSelectedItems) ? initialSelectedItems : [initialSelectedItems],
2893
+ ...Array.isArray(selectedItems) ? selectedItems : [selectedItems],
2894
+ ...allListItems
2895
+ ].filter((item) => !!item);
2896
+ const allItemsMap = /* @__PURE__ */ new Map();
2897
+ items.forEach((item) => allItemsMap.set(item.id, item));
2898
+ return Array.from(allItemsMap.values());
2899
+ }, [
2900
+ allListItems,
2901
+ initialSelectedItems,
2902
+ selectedItems
2903
+ ]);
2904
+ const filteredListItems = useMemo(() => allListItems.filter((item) => contains(item.label, inputValue)), [
2905
+ allListItems,
2906
+ contains,
2907
+ inputValue
2908
+ ]);
2909
+ const listItems = useMemo(() => showAll || isClientSearchDisabled ? allListItems : filteredListItems, [
2910
+ showAll,
2911
+ isClientSearchDisabled,
2912
+ allListItems,
2913
+ filteredListItems
2914
+ ]);
2915
+ return {
2916
+ allItems,
2917
+ allListItems,
2918
+ filteredListItems,
2919
+ listItems,
2920
+ selectableListItems: useMemo(() => listItems.filter((item) => !item.isDisabled && !ReservedItemIds.includes(String(item.id))), [listItems])
2921
+ };
2922
+ }
2923
+ //#endregion
2924
+ //#region src/hooks/useDebounceCallback.ts
2925
+ function useDebounceCallback(callback, t0) {
2926
+ const $ = c(10);
2927
+ let t1;
2928
+ if ($[0] !== t0) {
2929
+ t1 = t0 === void 0 ? {} : t0;
2930
+ $[0] = t0;
2931
+ $[1] = t1;
2932
+ } else t1 = $[1];
2933
+ const { delay: t2 } = t1;
2934
+ const delay = t2 === void 0 ? 500 : t2;
2935
+ const timeoutRef = useRef(null);
2936
+ const [isDebouncing, setIsDebouncing] = useState(false);
2937
+ let t3;
2938
+ if ($[2] !== callback || $[3] !== delay) {
2939
+ t3 = (...t4) => {
2940
+ const args = t4;
2941
+ if (timeoutRef.current) clearTimeout(timeoutRef.current);
2942
+ setIsDebouncing(true);
2943
+ timeoutRef.current = setTimeout(() => {
2944
+ setIsDebouncing(false);
2945
+ callback?.(...args);
2946
+ }, delay);
2947
+ };
2948
+ $[2] = callback;
2949
+ $[3] = delay;
2950
+ $[4] = t3;
2951
+ } else t3 = $[4];
2952
+ const debouncedCallback = t3;
2953
+ let t4;
2954
+ let t5;
2955
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
2956
+ t4 = () => () => {
2957
+ if (timeoutRef.current) clearTimeout(timeoutRef.current);
2958
+ };
2959
+ t5 = [];
2960
+ $[5] = t4;
2961
+ $[6] = t5;
2962
+ } else {
2963
+ t4 = $[5];
2964
+ t5 = $[6];
2965
+ }
2966
+ useEffect(t4, t5);
2967
+ let t6;
2968
+ if ($[7] !== debouncedCallback || $[8] !== isDebouncing) {
2969
+ t6 = {
2970
+ callback: debouncedCallback,
2971
+ isDebouncing
2972
+ };
2973
+ $[7] = debouncedCallback;
2974
+ $[8] = isDebouncing;
2975
+ $[9] = t6;
2976
+ } else t6 = $[9];
2977
+ return t6;
2978
+ }
2979
+ //#endregion
2980
+ //#region src/components/inputs/Selection/shared/select.context.tsx
2981
+ let SelectContext;
2982
+ (function(_SelectContext) {
2983
+ const Context = createContext({});
2984
+ const defaultMapInitialToSelectItem = (item) => ({
2985
+ id: item.id,
2986
+ label: item.label ?? item.name ?? ""
2987
+ });
2988
+ _SelectContext.Provider = ({ items, onInputChange, onSearchChange, showSelectAllOption, showNewItemOption, newItemMinLength, onNewItemOption, isLoading, hasLoadMore, isClientSearchDisabled, ignoreInputValueFiltering, searchDebounceDelay, multiSelectAutoConfirm = false, onBlur: fieldOnBlur, onChange: fieldOnChange, initialSelection, isSearchable, selectionMode, value: controlledValue, children, mapInitialToSelectItem = defaultMapInitialToSelectItem }) => {
2989
+ const isMultiple = selectionMode === "multiple";
2990
+ const initialSelectedItems = useMemo(() => {
2991
+ if (!initialSelection) return null;
2992
+ if (Array.isArray(initialSelection)) return initialSelection.map(mapInitialToSelectItem);
2993
+ return mapInitialToSelectItem(initialSelection);
2994
+ }, [initialSelection, mapInitialToSelectItem]);
2995
+ const [isOpen, setIsOpen] = useState(false);
2996
+ const [fieldState, setFieldState] = useState({
2997
+ value: controlledValue ?? (isMultiple ? [] : null),
2998
+ inputValue: "",
2999
+ searchValue: ""
3000
+ });
3001
+ const { callback: onSearchChangeDebounced, isDebouncing } = useDebounceCallback(onSearchChange, { delay: searchDebounceDelay });
3002
+ const [showAll, setShowAll] = useState(false);
3003
+ const [cachedItems, setCachedItems] = useState(items);
3004
+ const valueRef = useRef(initialSelectedItems);
3005
+ useEffect(() => {
3006
+ if (!isLoading) setCachedItems(items);
3007
+ }, [isLoading, items]);
3008
+ const { allItems, allListItems, listItems, selectableListItems } = useSelectItems({
3009
+ initialSelectedItems,
3010
+ selectedItems: valueRef.current,
3011
+ cachedItems,
3012
+ inputValue: fieldState.inputValue,
3013
+ showAll,
3014
+ isMultiple,
3015
+ showSelectAllOption,
3016
+ showNewItemOption,
3017
+ newItemMinLength,
3018
+ isLoading,
3019
+ hasLoadMore,
3020
+ isClientSearchDisabled: ignoreInputValueFiltering ?? isClientSearchDisabled
3021
+ });
3022
+ const selectedItems = useMemo(() => {
3023
+ const getItem = (id) => allItems.find((item) => item.id === id) ?? null;
3024
+ if (Array.isArray(fieldState.value)) return fieldState.value.map((id) => getItem(id)).filter((item) => item !== null);
3025
+ const selectedItem = fieldState.value != null ? getItem(fieldState.value) : null;
3026
+ return selectedItem ? [selectedItem] : [];
3027
+ }, [allItems, fieldState.value]);
3028
+ const selectedIds = useMemo(() => selectedItems.map(({ id }) => id), [selectedItems]);
3029
+ const getItem = useCallback((value) => allItems.find((item) => item && item.id === value) ?? null, [allItems]);
3030
+ const updateValue = useCallback((value) => {
3031
+ if (Array.isArray(value)) valueRef.current = value.map((id) => getItem(id)).filter((item) => item !== null);
3032
+ else valueRef.current = getItem(value);
3033
+ }, [getItem]);
3034
+ const getValueIds = () => Array.isArray(valueRef.current) ? valueRef.current.map(({ id }) => id) : valueRef.current?.id ?? null;
3035
+ const emitStateChanges = useCallback((changes, skipSelectionChange) => {
3036
+ const valueChanged = JSON.stringify(changes.value) !== JSON.stringify(getValueIds());
3037
+ if (valueChanged) {
3038
+ updateValue(changes.value);
3039
+ if (!skipSelectionChange) if (isMultiple) fieldOnChange?.(changes.value);
3040
+ else fieldOnChange?.(changes.value);
3041
+ }
3042
+ if (changes.inputValue !== fieldState.inputValue) onInputChange?.(changes.inputValue);
3043
+ if (changes.searchValue !== fieldState.searchValue) onSearchChangeDebounced?.(changes.searchValue);
3044
+ return valueChanged;
3045
+ }, [
3046
+ fieldState,
3047
+ isMultiple,
3048
+ fieldOnChange,
3049
+ onInputChange,
3050
+ onSearchChangeDebounced,
3051
+ updateValue
3052
+ ]);
3053
+ const syncFieldState = (value) => {
3054
+ const newFieldState = {
3055
+ value,
3056
+ inputValue: isMultiple || Array.isArray(value) ? fieldState.inputValue : getItem(value)?.label ?? "",
3057
+ searchValue: ""
3058
+ };
3059
+ setFieldState(newFieldState);
3060
+ emitStateChanges(newFieldState, true);
3061
+ if (!isMultiple) setShowAll(true);
3062
+ };
3063
+ useEffect(() => {
3064
+ const value = controlledValue ?? null;
3065
+ if (JSON.stringify(value) !== JSON.stringify(fieldState.value)) syncFieldState(value);
3066
+ else updateValue(value);
3067
+ }, [controlledValue]);
3068
+ useEffect(() => {
3069
+ if (!isMultiple && controlledValue !== null && controlledValue !== void 0 && fieldState.value !== null && fieldState.value !== void 0 && fieldState.inputValue === "" && getItem(fieldState.value)?.label) syncFieldState(fieldState.value);
3070
+ }, [allListItems]);
3071
+ const handleInputChange = useCallback((inputValue) => {
3072
+ const newFieldState = {
3073
+ value: isMultiple || inputValue !== "" ? fieldState.value : null,
3074
+ inputValue,
3075
+ searchValue: inputValue
3076
+ };
3077
+ setFieldState(newFieldState);
3078
+ emitStateChanges(newFieldState);
3079
+ setShowAll(false);
3080
+ if (!isOpen && inputValue !== "" && isSearchable) setIsOpen(true);
3081
+ }, [
3082
+ emitStateChanges,
3083
+ fieldState.value,
3084
+ isMultiple
3085
+ ]);
3086
+ const onChange = useCallback((value) => {
3087
+ if (value === "new-item-id") onNewItemOption?.(fieldState.inputValue);
3088
+ else {
3089
+ const newFieldState = {
3090
+ value,
3091
+ inputValue: isMultiple || Array.isArray(value) ? "" : getItem(value)?.label ?? "",
3092
+ searchValue: ""
3093
+ };
3094
+ setFieldState(newFieldState);
3095
+ emitStateChanges(newFieldState);
3096
+ }
3097
+ if (!isMultiple) {
3098
+ setIsOpen(false);
3099
+ setShowAll(true);
3100
+ }
3101
+ }, [
3102
+ emitStateChanges,
3103
+ onNewItemOption,
3104
+ fieldState.inputValue,
3105
+ getItem,
3106
+ isMultiple
3107
+ ]);
3108
+ const onClear = useCallback(() => {
3109
+ if (selectedIds.length === 0) {
3110
+ const newFieldState = {
3111
+ ...fieldState,
3112
+ inputValue: "",
3113
+ searchValue: ""
3114
+ };
3115
+ setFieldState(newFieldState);
3116
+ emitStateChanges(newFieldState, true);
3117
+ setShowAll(true);
3118
+ return;
3119
+ }
3120
+ if (isMultiple) onChange([]);
3121
+ else onChange(null);
3122
+ }, [
3123
+ emitStateChanges,
3124
+ fieldState,
3125
+ isMultiple,
3126
+ onChange,
3127
+ selectedIds.length
3128
+ ]);
3129
+ const onSelectAll = useCallback(() => {
3130
+ onChange(selectableListItems.map(({ id }) => id));
3131
+ }, [selectableListItems, onChange]);
3132
+ const onRemove = useCallback((value) => {
3133
+ if (isMultiple && Array.isArray(fieldState.value)) onChange(fieldState.value.filter((id) => id !== value));
3134
+ }, [
3135
+ isMultiple,
3136
+ fieldState.value,
3137
+ onChange
3138
+ ]);
3139
+ const onBlur = useCallback(() => {
3140
+ if (isSearchable && isMultiple && fieldState.searchValue !== "") {
3141
+ const newFieldState = {
3142
+ ...fieldState,
3143
+ inputValue: "",
3144
+ searchValue: ""
3145
+ };
3146
+ setFieldState(newFieldState);
3147
+ emitStateChanges(newFieldState);
3148
+ setShowAll(true);
3149
+ }
3150
+ fieldOnBlur?.({});
3151
+ }, [
3152
+ isSearchable,
3153
+ isMultiple,
3154
+ fieldState,
3155
+ fieldOnBlur
3156
+ ]);
3157
+ const value = useMemo(() => ({
3158
+ fieldState,
3159
+ isOpen,
3160
+ setIsOpen,
3161
+ isDebouncing,
3162
+ onInputChange: handleInputChange,
3163
+ onChange,
3164
+ onClear,
3165
+ onSelectAll,
3166
+ onRemove,
3167
+ onBlur,
3168
+ listItems,
3169
+ selectableListItems,
3170
+ selectedItems,
3171
+ selectedIds,
3172
+ isMultiple,
3173
+ multiSelectAutoConfirm,
3174
+ isLoading,
3175
+ hasLoadMore
3176
+ }), [
3177
+ fieldState,
3178
+ isOpen,
3179
+ setIsOpen,
3180
+ isDebouncing,
3181
+ handleInputChange,
3182
+ onChange,
3183
+ onClear,
3184
+ onSelectAll,
3185
+ onRemove,
3186
+ onBlur,
3187
+ listItems,
3188
+ selectableListItems,
3189
+ selectedIds,
3190
+ selectedItems,
3191
+ isMultiple,
3192
+ multiSelectAutoConfirm,
3193
+ isLoading,
3194
+ hasLoadMore
3195
+ ]);
3196
+ return /* @__PURE__ */ jsx(Context.Provider, {
3197
+ value,
3198
+ children
3199
+ });
3200
+ };
3201
+ _SelectContext.useSelect = () => {
3202
+ return use(Context);
3203
+ };
3204
+ })(SelectContext || (SelectContext = {}));
3205
+ //#endregion
3206
+ //#region src/components/inputs/Selection/shared/selectInput.cva.ts
3207
+ const selectInputTagsContentWrapperDefinition = UIOverrides.defineConfig({
3208
+ base: ["flex flex-1 flex-wrap gap-input-gap-input-text-to-elements truncate"],
3209
+ config: { variants: { isSearchable: { false: "pointer-events-none z-raised" } } }
3210
+ });
3211
+ //#endregion
3212
+ //#region src/hooks/useKeyInteractions.ts
3213
+ const KEY_TO_ACTION = {
3214
+ ArrowUp: "up",
3215
+ ArrowDown: "down",
3216
+ ArrowLeft: "left",
3217
+ ArrowRight: "right",
3218
+ " ": "space",
3219
+ Spacebar: "space",
3220
+ Escape: "escape",
3221
+ Enter: "enter",
3222
+ Backspace: "backspace"
3223
+ };
3224
+ const getKeyInteractionAction = (event) => {
3225
+ return KEY_TO_ACTION[event.key] ?? (event.code === "Space" ? "space" : void 0);
3226
+ };
3227
+ const createKeyInteractionsHandler = (interactions) => {
3228
+ return (event) => handleKeyInteraction({
3229
+ event,
3230
+ interactions
3231
+ });
3232
+ };
3233
+ const useKeyInteractions = (interactions) => {
3234
+ const $ = c(4);
3235
+ let t0;
3236
+ if ($[0] !== interactions) {
3237
+ t0 = (event) => handleKeyInteraction({
3238
+ event,
3239
+ interactions
3240
+ });
3241
+ $[0] = interactions;
3242
+ $[1] = t0;
3243
+ } else t0 = $[1];
3244
+ const onKeyDown = t0;
3245
+ let t1;
3246
+ if ($[2] !== onKeyDown) {
3247
+ t1 = { onKeyDown };
3248
+ $[2] = onKeyDown;
3249
+ $[3] = t1;
3250
+ } else t1 = $[3];
3251
+ return t1;
3252
+ };
3253
+ const handleKeyInteraction = ({ event, interactions }) => {
3254
+ const action = getKeyInteractionAction(event);
3255
+ if (!action) return;
3256
+ const interaction = interactions[action];
3257
+ const groupInteraction = interactions.interactions?.find((group) => group.actions.includes(action));
3258
+ const selectedInteraction = interaction ?? groupInteraction;
3259
+ if (!selectedInteraction || selectedInteraction.enabled === false) return;
3260
+ if (selectedInteraction.preventDefault) event.preventDefault();
3261
+ selectedInteraction.callback(event);
3262
+ };
3263
+ //#endregion
3264
+ //#region src/components/inputs/Selection/shared/SelectInput.tsx
3265
+ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props }) => {
3266
+ const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
3267
+ const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
3268
+ const inputClearClassCva = UIOverrides.useCva("input.clearClassCva", inputClearClassDefinition);
3269
+ const selectInputTagsContentWrapperCva = UIOverrides.useCva("select.tagsContentWrapperCva", selectInputTagsContentWrapperDefinition);
3270
+ const { t } = useTranslation("ui");
3271
+ const state = use($d01f2c01039c0eec$export$c02625b26074192c);
3272
+ const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({ isDisabled });
3273
+ const [isFocused, setIsFocused] = useState(false);
3274
+ const { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({ onFocusWithinChange: setIsFocused });
3275
+ const { isFocusVisible } = $507fabe10e71c6fb$export$ffd9e5021c1fb2d6();
3276
+ const inputRef = useRef(null);
3277
+ const { fieldState, isOpen, setIsOpen, selectableListItems, selectedItems, onChange, onClear, onRemove, isMultiple, multiSelectAutoConfirm, isLoading } = SelectContext.useSelect();
3278
+ const isEmpty = selectedItems.length === 0;
3279
+ const showTags = isMultiple && !isEmpty;
3280
+ const showClearButton = (!isDisabled || isClearableIfDisabled === true) && isClearable && (selectedItems.length > 0 || isSearchable && fieldState.inputValue !== "");
3281
+ const labelProps = useMemo(() => {
3282
+ const { labelProps: headerLabelProps } = headerProps ?? {};
3283
+ if (!(as && ["filter", "floating"].includes(as)) || isSearchable) return headerLabelProps;
3284
+ return {
3285
+ ...headerLabelProps,
3286
+ className: clsx(headerLabelProps?.className, "pointer-events-none")
3287
+ };
3288
+ }, [
3289
+ as,
3290
+ headerProps,
3291
+ isSearchable
3292
+ ]);
3293
+ let exactMatchItem;
3294
+ if (isMultiple && multiSelectAutoConfirm && fieldState.inputValue !== "") exactMatchItem = selectableListItems.find((item) => item.label.toLowerCase() === fieldState.inputValue.toLowerCase());
3295
+ let singleRemainingItem;
3296
+ if (!isLoading && selectableListItems.length === 1 && !selectableListItems[0].isDisabled) singleRemainingItem = selectableListItems[0];
3297
+ let autoConfirmItem;
3298
+ if (isMultiple) {
3299
+ if (multiSelectAutoConfirm) autoConfirmItem = exactMatchItem ?? singleRemainingItem;
3300
+ } else autoConfirmItem = singleRemainingItem;
3301
+ const { onKeyDown } = useKeyInteractions({
3302
+ enter: {
3303
+ enabled: !isLoading && !!autoConfirmItem,
3304
+ preventDefault: true,
3305
+ callback: () => {
3306
+ if (!autoConfirmItem) return;
3307
+ if (isMultiple) {
3308
+ if (Array.isArray(fieldState.value)) if (fieldState.value.includes(autoConfirmItem.id)) onChange(fieldState.value.filter((id) => id !== autoConfirmItem.id));
3309
+ else onChange(fieldState.value.concat(autoConfirmItem.id));
3310
+ else onChange([autoConfirmItem.id]);
3311
+ return;
3312
+ }
3313
+ onChange(autoConfirmItem.id);
3314
+ onCloseComboBox?.(state);
3315
+ }
3316
+ },
3317
+ backspace: {
3318
+ enabled: isMultiple && fieldState.inputValue === "" && Array.isArray(fieldState.value) && fieldState.value.length > 0,
3319
+ callback: () => {
3320
+ if (!Array.isArray(fieldState.value)) return;
3321
+ onChange(fieldState.value.slice(0, -1));
3322
+ }
3323
+ }
3324
+ });
3325
+ const { onKeyDown: onTriggerKeyDown } = useKeyInteractions({ interactions: [{
3326
+ actions: ["up", "down"],
3327
+ enabled: !isSearchable && !isDisabled && !isOpen,
3328
+ preventDefault: true,
3329
+ callback: () => {
3330
+ setIsOpen(true);
3331
+ }
3332
+ }] });
3333
+ const onClick = () => {
3334
+ if (isDisabled) return;
3335
+ if (!isSearchable) {
3336
+ setIsOpen(!isOpen);
3337
+ return;
3338
+ }
3339
+ inputRef.current?.focus();
3340
+ };
3341
+ return /* @__PURE__ */ jsxs("div", {
3342
+ ref,
3343
+ className: inputBaseCva({
3344
+ variant,
3345
+ as,
3346
+ ...props,
3347
+ className: clsx("group/select-content relative flex px-0!", !isDisabled && isSearchable && "cursor-text", className)
3348
+ }),
3349
+ "data-rac": "",
3350
+ "data-disabled": isDisabled || void 0,
3351
+ "data-is-disabled": isDisabled || void 0,
3352
+ "data-hovered": isHovered || void 0,
3353
+ "data-focused": isOpen || isFocused || void 0,
3354
+ "data-focus-within": isFocused || void 0,
3355
+ "data-searchable-focus-within": isFocused && isSearchable || void 0,
3356
+ "data-focus-visible": isFocused && isFocusVisible || void 0,
3357
+ "data-has-selection": !isEmpty || void 0,
3358
+ "data-has-search": fieldState.searchValue !== "" || void 0,
3359
+ "data-invalid": isInvalid || void 0,
3360
+ "data-is-empty": isEmpty || void 0,
3361
+ "data-is-filled": !isEmpty || void 0,
3362
+ "data-is-required": isRequired || void 0,
3363
+ "data-is-dirty": isDirty || void 0,
3364
+ "data-select-input": "",
3365
+ onMouseEnter,
3366
+ onFocusCapture,
3367
+ ...hoverProps,
3368
+ ...focusWithinProps,
3369
+ children: [
3370
+ /* @__PURE__ */ jsxs("div", {
3371
+ className: clsx("relative flex flex-1 items-center gap-input-gap-input-text-to-elements truncate", !isDisabled && isSearchable && "cursor-text", !isDisabled && !isSearchable && "cursor-pointer", inputSizeCva({
3372
+ as,
3373
+ size,
3374
+ ...props
3375
+ })),
3376
+ onClick,
3377
+ children: [
3378
+ as && ["filter", "floating"].includes(as) && headerProps && /* @__PURE__ */ jsx(FormFieldLabel, {
3379
+ as,
3380
+ ...headerProps,
3381
+ labelProps
3382
+ }),
3383
+ leadingContent && /* @__PURE__ */ jsx("div", {
3384
+ className: "ml-input-side-default flex shrink-0 items-center",
3385
+ children: leadingContent
3386
+ }),
3387
+ (showTags || isSearchable) && /* @__PURE__ */ jsxs("div", {
3388
+ className: selectInputTagsContentWrapperCva({ isSearchable }),
3389
+ children: [showTags && /* @__PURE__ */ jsx(SelectInputTags, {
3390
+ selectedItems,
3391
+ isDisabled,
3392
+ collapseAfter,
3393
+ selectedTagsType,
3394
+ onRemove
3395
+ }), isSearchable && /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, {
3396
+ ref: inputRef,
3397
+ placeholder: as === "floating" ? void 0 : placeholder,
3398
+ onBlur,
3399
+ className: clsx("w-full flex-1 bg-transparent outline-none placeholder:text-text-default-3", "disabled:text-text-default-3 disabled:placeholder:text-interactive-text-secondary-disabled", inputClassName),
3400
+ onKeyDown,
3401
+ ...fieldProps
3402
+ })]
3403
+ }),
3404
+ !isSearchable && /* @__PURE__ */ jsxs($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
3405
+ isDisabled,
3406
+ onPress: () => setIsOpen(!isOpen),
3407
+ onBlur,
3408
+ "data-type": "select-trigger",
3409
+ className: clsx("group/select-trigger w-full truncate text-start outline-none disabled:text-text-default-3", showTags && "absolute inset-0 z-base"),
3410
+ onKeyDown: onTriggerKeyDown,
3411
+ ...fieldProps,
3412
+ children: [(as === "floating" && isEmpty || isMultiple && !isEmpty) && /* @__PURE__ */ jsx(Fragment$1, { children: "\xA0" }), (isEmpty || !isMultiple) && (as !== "floating" || !isEmpty) && /* @__PURE__ */ jsxs(Typography, {
3413
+ size: "label-1",
3414
+ as: "span",
3415
+ className: clsx("truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-text-default-3 group-disabled/select-trigger:text-interactive-text-secondary-disabled"),
3416
+ children: [isEmpty && placeholder, !isEmpty && (showSelectionContent ? selectedItems[0].content : selectedItems[0].label)]
3417
+ })]
3418
+ })
3419
+ ]
3420
+ }),
3421
+ isClearable && (!isDisabled || isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
3422
+ onClear: () => {
3423
+ onClear();
3424
+ },
3425
+ className: inputClearClassCva({ as }),
3426
+ show: showClearButton
3427
+ }),
3428
+ trailingContent && /* @__PURE__ */ jsx("div", {
3429
+ className: "flex shrink-0 items-center",
3430
+ children: trailingContent
3431
+ }),
3432
+ !hideDropdownIcon && /* @__PURE__ */ jsx($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
3433
+ excludeFromTabOrder: true,
3434
+ "aria-label": t(($) => isOpen ? $.ui.closeAlt : $.ui.openAlt),
3435
+ className: clsx("self-stretch pl-1-5 outline-none", inputSizeCva({ size })),
3436
+ isDisabled,
3437
+ onPress: () => {
3438
+ if (!isSearchable) setIsOpen(!isOpen);
3439
+ },
3440
+ children: /* @__PURE__ */ jsx("span", {
3441
+ className: clsx("flex size-6 shrink-0 items-center justify-center", isOpen && "rotate-180", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle"),
3442
+ "aria-hidden": "true",
3443
+ children: /* @__PURE__ */ jsx(Triangle, { className: "h-2 w-3 rotate-180 fill-current stroke-0" })
3444
+ })
3445
+ })
3446
+ ]
3447
+ });
3448
+ };
3449
+ //#endregion
3450
+ //#region src/components/inputs/Selection/shared/selectItem.cva.ts
3451
+ const selectListBoxItemDefinition = UIOverrides.defineConfig({
3452
+ base: [
3453
+ "group flex cursor-pointer items-center gap-2 px-list-side-item-left py-list-height-item",
3454
+ "border-b border-b-elevation-outline-default-1 outline-none",
3455
+ "font-labels-default text-label-2",
3456
+ "hover:text-interactive-text-secondary-hover",
3457
+ "focus-visible:bg-interactive-contained-primary-focus focus-visible:text-interactive-text-secondary-idle-inverted",
3458
+ "disabled:cursor-default disabled:text-interactive-text-secondary-disabled"
3459
+ ],
3460
+ config: {
3461
+ variants: {
3462
+ isSingle: { true: "selected:bg-interactive-contained-primary-idle selected:text-interactive-contained-primary-on-idle" },
3463
+ isNewItem: {
3464
+ true: "text-interactive-text-primary-idle",
3465
+ false: "text-interactive-text-secondary-idle"
3466
+ }
3467
+ },
3468
+ defaultVariants: { isNewItem: false }
3469
+ }
3470
+ });
3471
+ //#endregion
3472
+ //#region src/components/inputs/Selection/shared/SelectListBoxItem.tsx
3473
+ const SelectListBoxItem = ({ isSearchable, isNewItem, newItemRender, id, label, content, isDisabled }) => {
3474
+ const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
3475
+ const ref = useRef(null);
3476
+ const { t } = useTranslation("ui");
3477
+ const { selectedIds, isMultiple } = SelectContext.useSelect();
3478
+ const itemContent = useMemo(() => {
3479
+ if (isNewItem) return newItemRender?.(label) ?? `${t(($) => $.ui.autocomplete.createNewBtn)} '${label}'`;
3480
+ return content ?? label;
3481
+ }, [
3482
+ isNewItem,
3483
+ newItemRender,
3484
+ label,
3485
+ content,
3486
+ t
3487
+ ]);
3488
+ return /* @__PURE__ */ jsxs($eed445e0843c11d0$export$a11e76429ed99b4, {
3489
+ ref,
3490
+ id,
3491
+ textValue: label,
3492
+ isDisabled,
3493
+ className: selectListItemCva({
3494
+ isSingle: !isMultiple,
3495
+ isNewItem
3496
+ }),
3497
+ children: [
3498
+ isMultiple && !isSearchable && /* @__PURE__ */ jsx(CheckboxCheckmark, {
3499
+ variant: "default",
3500
+ className: "group-focus-visible:outline-none!"
3501
+ }),
3502
+ isMultiple && isSearchable && /* @__PURE__ */ jsx("div", {
3503
+ className: "group",
3504
+ "data-rac": "",
3505
+ "data-selected": selectedIds.includes(id) || void 0,
3506
+ children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
3507
+ variant: "default",
3508
+ className: "group-focus-visible:outline-none!"
3509
+ })
3510
+ }),
3511
+ itemContent
3512
+ ]
3513
+ });
3514
+ };
3515
+ //#endregion
3516
+ //#region src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.tsx
3517
+ const SelectListBoxItemSelectAll = ({ id, label, isDisabled }) => {
3518
+ const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
3519
+ const ref = useRef(null);
3520
+ const { t } = useTranslation("ui");
3521
+ const { selectableListItems, selectedIds } = SelectContext.useSelect();
3522
+ return /* @__PURE__ */ jsxs($eed445e0843c11d0$export$a11e76429ed99b4, {
3523
+ ref,
3524
+ id,
3525
+ textValue: label || t(($) => $.ui.select.allOption),
3526
+ isDisabled,
3527
+ className: selectListItemCva({}),
3528
+ children: [/* @__PURE__ */ jsx("div", {
3529
+ className: "group",
3530
+ "data-rac": "",
3531
+ "data-selected": selectedIds.length === selectableListItems.length || void 0,
3532
+ "data-indeterminate": selectedIds.length > 0 && selectedIds.length < selectableListItems.length || void 0,
3533
+ children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
3534
+ variant: "default",
3535
+ className: "group-focus-visible:outline-none!"
3536
+ })
3537
+ }), t(($) => $.ui.select.allOption)]
3538
+ });
3539
+ };
3540
+ //#endregion
3541
+ //#region src/components/inputs/Selection/shared/SelectListBoxLoadingItem.tsx
3542
+ const SelectListBoxLoadingItem = ({ id, label, onLoadMore }) => {
3543
+ const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
3544
+ const { t } = useTranslation("ui");
3545
+ const { isDebouncing, isLoading, hasLoadMore } = SelectContext.useSelect();
3546
+ const onIntersection = useCallback(() => {
3547
+ if (!isDebouncing && !isLoading && hasLoadMore) onLoadMore?.();
3548
+ }, [
3549
+ isDebouncing,
3550
+ isLoading,
3551
+ hasLoadMore,
3552
+ onLoadMore
3553
+ ]);
3554
+ const { ref } = useIntersectionObserver({
3555
+ onIntersection,
3556
+ rootMargin: "40px"
3557
+ });
3558
+ return /* @__PURE__ */ jsx($eed445e0843c11d0$export$a11e76429ed99b4, {
3559
+ id,
3560
+ textValue: label || t(($) => $.ui.loadingState.text),
3561
+ isDisabled: true,
3562
+ className: selectListItemCva({}),
3563
+ children: /* @__PURE__ */ jsx("div", {
3564
+ ref,
3565
+ className: "flex flex-1 justify-center text-interactive-text-primary-idle",
3566
+ children: /* @__PURE__ */ jsx(Loader, {})
3567
+ })
3568
+ });
3569
+ };
3570
+ //#endregion
3571
+ //#region src/components/inputs/Selection/shared/SelectListBox.tsx
3572
+ const SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true, virtualizerOptions, totalItems, newItemRender, onLoadMore, className, onClose, ...props }) => {
3573
+ const { fieldState, onChange, listItems, selectableListItems, selectedIds, isMultiple, onClear, onSelectAll, hasLoadMore } = SelectContext.useSelect();
3574
+ const onSelectionChange = (value) => {
3575
+ const ids = Array.from(value);
3576
+ if (!isMultiple && ids.length === 0) {
3577
+ if (fieldState.value) {
3578
+ onClose?.();
3579
+ onChange(fieldState.value);
3580
+ }
3581
+ return;
3582
+ }
3583
+ if (isMultiple && ids.includes("all-item-id")) {
3584
+ if (ids.length > selectableListItems.length) onClear();
3585
+ else onSelectAll();
3586
+ return;
3587
+ }
3588
+ if (isMultiple) onChange(ids);
3589
+ else {
3590
+ onClose?.();
3591
+ onChange(ids[0]);
3592
+ }
3593
+ };
3594
+ const renderItem = (item) => {
3595
+ if (item.isSelectAllItem) return /* @__PURE__ */ jsx(SelectListBoxItemSelectAll, { ...item }, item.id);
3596
+ if (item.isLoadingItem) return /* @__PURE__ */ jsx(SelectListBoxLoadingItem, {
3597
+ ...item,
3598
+ onLoadMore
3599
+ }, item.id);
3600
+ return /* @__PURE__ */ jsx(SelectListBoxItem, {
3601
+ ...item,
3602
+ isSearchable,
3603
+ isNewItem: item.isNewItem,
3604
+ newItemRender
3605
+ }, item.id);
3606
+ };
3607
+ if (virtualizerOptions || (totalItems ?? listItems.length) > 100 || hasLoadMore) return /* @__PURE__ */ jsx($ce3a951440fc273f$export$89be5a243e59c4b2, {
3608
+ layout: $61ef60fc9b1041f4$export$cacbb3924155d68e,
3609
+ layoutOptions: virtualizerOptions,
3610
+ children: /* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, {
3611
+ ...props,
3612
+ "aria-label": label,
3613
+ selectionMode,
3614
+ className: clsx("flex-1 outline-none [&>div:last-child>*]:border-b-0", isScrollable ? "max-h-full overflow-y-auto overflow-x-hidden" : "overflow-hidden", className),
3615
+ items: listItems,
3616
+ selectedKeys: selectedIds,
3617
+ onSelectionChange,
3618
+ escapeKeyBehavior: "none",
3619
+ shouldSelectOnPressUp: true,
3620
+ children: renderItem
3621
+ })
3622
+ });
3623
+ return /* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, {
3624
+ ...props,
3625
+ "aria-label": label,
3626
+ selectionMode,
3627
+ className: clsx("flex-1 outline-none [&>div:last-child]:border-b-0", isScrollable ? "max-h-full overflow-y-auto overflow-x-hidden" : "overflow-hidden", className),
3628
+ items: listItems,
3629
+ selectedKeys: selectedIds,
3630
+ onSelectionChange,
3631
+ escapeKeyBehavior: "none",
3632
+ shouldSelectOnPressUp: true,
3633
+ children: renderItem
3634
+ });
3635
+ };
3636
+ //#endregion
3637
+ //#region src/components/inputs/Selection/shared/selectDesktop.cva.ts
3638
+ const selectPopoverDefinition = UIOverrides.defineConfig({ base: ["my-4 outline-none"] });
3639
+ //#endregion
3640
+ //#region src/components/inputs/Selection/shared/SelectDesktop.tsx
3641
+ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, ...props }) => {
3642
+ const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, isLoading, as, size, collapseAfter, selectedTagsType } = props;
3643
+ const popoverCva = UIOverrides.useCva("popover.cva", popoverDefinition);
3644
+ const selectPopoverCva = UIOverrides.useCva("select.popoverCva", selectPopoverDefinition);
3645
+ const formFieldProps = {
3646
+ error,
3647
+ label,
3648
+ tooltipText,
3649
+ helperText,
3650
+ isRequired,
3651
+ rightContent,
3652
+ isHeaderHidden: isHeaderHidden || as === "inline" || as === "filter" || as === "floating",
3653
+ hideLabel,
3654
+ isDisabled,
3655
+ headerClassName,
3656
+ errorClassName
3657
+ };
3658
+ const { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f({ label });
3659
+ const triggerRef = useRef(null);
3660
+ const closeComboBoxRef = useRef(null);
3661
+ const wrapperRef = useRef(null);
3662
+ const [popoverWidth, setPopoverWidth] = useState(void 0);
3663
+ const { fieldState, isOpen, setIsOpen, onInputChange, onChange, onClear, onSelectAll, listItems, selectableListItems, selectedIds, isMultiple } = SelectContext.useSelect();
3664
+ $49c51c25361d4cd2$export$ee0f7cc6afcd1c18({ isDisabled: !isOpen });
3665
+ useLayoutEffect(() => {
3666
+ if (!isOpen || !wrapperRef.current) return;
3667
+ setPopoverWidth(wrapperRef.current.getBoundingClientRect().width);
3668
+ const observer = new ResizeObserver((entries) => {
3669
+ setPopoverWidth(entries[0].contentRect.width);
3670
+ });
3671
+ observer.observe(wrapperRef.current);
3672
+ return () => {
3673
+ observer.disconnect();
3674
+ };
3675
+ }, [isOpen]);
3676
+ const onSelectionChange = (value) => {
3677
+ if (!value) return;
3678
+ if (value === "all-item-id") {
3679
+ if (selectedIds.length === selectableListItems.length) onClear();
3680
+ else onSelectAll();
3681
+ return;
3682
+ }
3683
+ if (!isMultiple) {
3684
+ onChange(value);
3685
+ return;
3686
+ }
3687
+ if (!Array.isArray(fieldState.value)) {
3688
+ onChange([value]);
3689
+ return;
3690
+ }
3691
+ if (fieldState.value.includes(value)) onChange(fieldState.value.filter((id) => id !== value));
3692
+ else onChange(fieldState.value.concat(value));
3693
+ };
3694
+ const openChangeHandler = (value) => {
3695
+ if (closeComboBoxRef.current && value) {
3696
+ closeComboBoxRef.current.setOpen(false);
3697
+ closeComboBoxRef.current = null;
3698
+ } else setIsOpen(value);
3699
+ };
3700
+ const WrapperComponent = isSearchable ? $d01f2c01039c0eec$export$72b9695b8216309a : Fragment;
3701
+ const comboBoxProps = {
3702
+ items: listItems,
3703
+ selectedKey: isMultiple ? null : fieldState.value,
3704
+ onSelectionChange,
3705
+ inputValue: fieldState.inputValue,
3706
+ onInputChange,
3707
+ onOpenChange: openChangeHandler,
3708
+ allowsEmptyCollection: true,
3709
+ isDisabled,
3710
+ isInvalid: !!error,
3711
+ menuTrigger: "focus",
3712
+ className: clsx("group w-full", containerClassName)
3713
+ };
3714
+ const headerProps = {
3715
+ label,
3716
+ tooltipText,
3717
+ helperText,
3718
+ isRequired,
3719
+ rightContent,
3720
+ isHeaderHidden: hideLabel || isHeaderHidden,
3721
+ isDisabled,
3722
+ className: headerClassName,
3723
+ labelProps
3724
+ };
3725
+ const dialogTriggerProps = {
3726
+ isOpen,
3727
+ onOpenChange: setIsOpen
3728
+ };
3729
+ const showPopover = useMemo(() => listItems.filter((item) => !item.isSelectAllItem).length > 0 || isLoading, [listItems, isLoading]);
3730
+ return /* @__PURE__ */ jsx(TooltipWrapper, {
3731
+ as,
3732
+ error,
3733
+ children: /* @__PURE__ */ jsx(WrapperComponent, {
3734
+ ...isSearchable ? comboBoxProps : {},
3735
+ children: /* @__PURE__ */ jsxs(FormField, {
3736
+ ...formFieldProps,
3737
+ ...!isSearchable && {
3738
+ labelProps,
3739
+ className: clsx("group w-full", containerClassName)
3740
+ },
3741
+ as,
3742
+ onMouseEnter,
3743
+ onFocusCapture,
3744
+ ref: wrapperRef,
3745
+ children: [customTrigger ? /* @__PURE__ */ jsx($de32f1b87079253c$export$2e1e1122cf0cba88, {
3746
+ ...dialogTriggerProps,
3747
+ children: /* @__PURE__ */ jsx("div", {
3748
+ ...fieldProps,
3749
+ ref: $5dc95899b306f630$export$c9058316764c140e(ref, triggerRef),
3750
+ children: customTrigger
3751
+ })
3752
+ }) : /* @__PURE__ */ jsx(SelectInput, {
3753
+ ref: $5dc95899b306f630$export$c9058316764c140e(ref, triggerRef),
3754
+ placeholder,
3755
+ variant,
3756
+ as,
3757
+ size,
3758
+ isDisabled,
3759
+ isInvalid: !!error,
3760
+ className,
3761
+ hideDropdownIcon,
3762
+ isSearchable,
3763
+ isClearable,
3764
+ isClearableIfDisabled,
3765
+ showSelectionContent,
3766
+ inputClassName,
3767
+ leadingContent,
3768
+ trailingContent,
3769
+ collapseAfter,
3770
+ selectedTagsType,
3771
+ isRequired,
3772
+ isDirty,
3773
+ onBlur,
3774
+ onCloseComboBox: (state) => {
3775
+ if (isSearchable) closeComboBoxRef.current = state;
3776
+ },
3777
+ fieldProps,
3778
+ headerProps
3779
+ }), (!isSearchable || showPopover) && /* @__PURE__ */ jsx($07b14b47974efb58$export$5b6b19405a83ff9d, {
3780
+ triggerRef,
3781
+ isOpen,
3782
+ onOpenChange: setIsOpen,
3783
+ className: selectPopoverCva({}),
3784
+ style: { width: !ignoreTriggerWidth ? popoverWidth : void 0 },
3785
+ offset: 0,
3786
+ children: /* @__PURE__ */ jsx(SelectListBox, {
3787
+ ...props,
3788
+ className: clsx(popoverCva({}), "max-h-80! [scrollbar-width:thin]"),
3789
+ autoFocus: !isSearchable
3790
+ })
3791
+ })]
3792
+ })
3793
+ })
3794
+ });
3795
+ };
3796
+ //#endregion
3797
+ //#region src/components/inputs/FormField/FormFieldHeaderClose.tsx
3798
+ const FormFieldHeaderClose = ({ onClose }) => {
3799
+ const { t } = useTranslation("ui");
3800
+ return /* @__PURE__ */ jsx($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
3801
+ onPress: onClose,
3802
+ "aria-label": t(($) => $.ui.closeAlt),
3803
+ className: "shrink-0 focus-visible:outline-interactive-text-secondary-focus",
3804
+ children: /* @__PURE__ */ jsx(X, { className: "size-6 text-interactive-text-secondary-idle" })
3805
+ });
3806
+ };
3807
+ //#endregion
3808
+ //#region src/components/inputs/Selection/shared/SelectListBoxSelectionBar.tsx
3809
+ const SelectListBoxSelectionBar = ({ className }) => {
3810
+ const { t } = useTranslation("ui");
3811
+ const { onClear, onSelectAll } = SelectContext.useSelect();
3812
+ return /* @__PURE__ */ jsxs("div", {
3813
+ className: clsx("flex items-center justify-between border-elevation-outline-default-1 border-b px-4 py-3", className),
3814
+ children: [/* @__PURE__ */ jsx(TextButton, {
3815
+ type: "button",
3816
+ color: "primary",
3817
+ onPress: onSelectAll,
3818
+ children: t(($) => $.ui.select.selectAll)
3819
+ }), /* @__PURE__ */ jsx(TextButton, {
3820
+ type: "button",
3821
+ color: "secondary",
3822
+ onPress: onClear,
3823
+ children: t(($) => $.ui.select.clearSelection)
3824
+ })]
3825
+ });
3826
+ };
3827
+ //#endregion
3828
+ //#region src/components/inputs/Selection/shared/SelectMobile.tsx
3829
+ const SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, bottomSheetProps, ...props }) => {
3830
+ const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, hideSearchIcon, isSearchable, isClearable, isClearableIfDisabled, as, size, collapseAfter, selectedTagsType } = props;
3831
+ const formFieldProps = {
3832
+ error,
3833
+ label,
3834
+ tooltipText,
3835
+ helperText,
3836
+ isRequired,
3837
+ rightContent,
3838
+ isHeaderHidden: isHeaderHidden || as === "inline" || as === "filter" || as === "floating",
3839
+ hideLabel,
3840
+ isDisabled,
3841
+ headerClassName,
3842
+ errorClassName
3843
+ };
3844
+ const { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f({ label });
3845
+ const headerProps = {
3846
+ label,
3847
+ tooltipText,
3848
+ helperText,
3849
+ isRequired,
3850
+ rightContent,
3851
+ isHeaderHidden: hideLabel || isHeaderHidden,
3852
+ isDisabled,
3853
+ className: headerClassName,
3854
+ labelProps
3855
+ };
3856
+ const { fieldState, isOpen, setIsOpen, onInputChange, isMultiple } = SelectContext.useSelect();
3857
+ const searchInputRef = useRef(null);
3858
+ const onBlurRef = useRef(onBlur);
3859
+ onBlurRef.current = onBlur;
3860
+ const handleOpenChange = (open) => {
3861
+ if (!open) onBlurRef.current?.({});
3862
+ setIsOpen(open);
3863
+ };
3864
+ const dialogTriggerProps = {
3865
+ isOpen,
3866
+ onOpenChange: handleOpenChange
3867
+ };
3868
+ return /* @__PURE__ */ jsx(FormField, {
3869
+ ...formFieldProps,
3870
+ as,
3871
+ labelProps,
3872
+ className: clsx("group w-full", containerClassName),
3873
+ onMouseEnter,
3874
+ onFocusCapture,
3875
+ children: /* @__PURE__ */ jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, {
3876
+ ...dialogTriggerProps,
3877
+ children: [customTrigger ? /* @__PURE__ */ jsx("div", {
3878
+ ...fieldProps,
3879
+ ref,
3880
+ children: customTrigger
3881
+ }) : /* @__PURE__ */ jsx(SelectInput, {
3882
+ ref,
3883
+ placeholder,
3884
+ variant,
3885
+ as,
3886
+ size,
3887
+ isDisabled,
3888
+ isInvalid: !!error,
3889
+ className,
3890
+ hideDropdownIcon,
3891
+ isSearchable: false,
3892
+ isClearable,
3893
+ isClearableIfDisabled,
3894
+ showSelectionContent,
3895
+ onBlur: void 0,
3896
+ fieldProps,
3897
+ headerProps,
3898
+ leadingContent,
3899
+ trailingContent,
3900
+ collapseAfter,
3901
+ selectedTagsType,
3902
+ isRequired,
3903
+ isDirty
3904
+ }), /* @__PURE__ */ jsx(BottomSheet, {
3905
+ isDismissable: true,
3906
+ hideHeader: isSearchable,
3907
+ ...bottomSheetProps,
3908
+ isOpen,
3909
+ onOpenChange: handleOpenChange,
3910
+ onStateChange: (state) => {
3911
+ if (state === "opened") searchInputRef.current?.focus();
3912
+ },
3913
+ label,
3914
+ footer: isMultiple && /* @__PURE__ */ jsx(SelectListBoxSelectionBar, {}),
3915
+ children: (close) => /* @__PURE__ */ jsxs("div", {
3916
+ className: "flex max-h-full flex-col overflow-hidden",
3917
+ children: [isSearchable && /* @__PURE__ */ jsx(TextInput, {
3918
+ ref: searchInputRef,
3919
+ label,
3920
+ placeholder,
3921
+ value: fieldState.inputValue,
3922
+ onChange: onInputChange,
3923
+ rightContent: /* @__PURE__ */ jsx(FormFieldHeaderClose, { onClose: close }),
3924
+ inputClassName,
3925
+ className: "mb-list-height-title-bottom px-list-side-title",
3926
+ leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(Search, { className: "size-6" }) : void 0,
3927
+ size: "default",
3928
+ isClearable
3929
+ }), /* @__PURE__ */ jsx(SelectListBox, {
3930
+ ...props,
3931
+ autoFocus: !isSearchable,
3932
+ onClose: close,
3933
+ isScrollable: true
3934
+ })]
3935
+ })
3936
+ })]
3937
+ })
3938
+ });
3939
+ };
3940
+ //#endregion
3941
+ //#region src/components/inputs/Selection/shared/SelectBase.tsx
3942
+ const SelectBase = (dProps) => {
3943
+ const ui = UIConfig.useConfig();
3944
+ const props = useMemo(() => ({
3945
+ ...dProps,
3946
+ selectionMode: dProps.selectionMode ?? ui.select.selectionMode,
3947
+ variant: dProps.variant ?? ui.input.variant,
3948
+ as: dProps.as ?? ui.input.as,
3949
+ size: dProps.size ?? ui.input.size,
3950
+ hideLabel: dProps.hideLabel ?? ui.input.hideLabel,
3951
+ isClearable: dProps.isClearable ?? ui.input.isClearable,
3952
+ isSearchable: dProps.isSearchable ?? ui.select.isSearchable,
3953
+ selectedTagsType: dProps.selectedTagsType ?? ui.select.selectedTagsType,
3954
+ ignoreTriggerWidth: dProps.virtualizerOptions || (dProps.totalItems ?? 0) > 100 || dProps.hasLoadMore ? false : dProps.ignoreTriggerWidth ?? false,
3955
+ collapseAfter: dProps.collapseAfter ?? ui.select.collapseAfter,
3956
+ hideSearchIcon: dProps.hideSearchIcon ?? ui.select.hideSearchIcon,
3957
+ multiSelectAutoConfirm: dProps.multiSelectAutoConfirm ?? ui.select.multiSelectAutoConfirm,
3958
+ isClientSearchDisabled: dProps.ignoreInputValueFiltering ?? dProps.isClientSearchDisabled
3959
+ }), [
3960
+ dProps,
3961
+ ui.input,
3962
+ ui.select
3963
+ ]);
3964
+ const isDesktop = useBreakpoint("md");
3965
+ return /* @__PURE__ */ jsx(SelectContext.Provider, {
3966
+ ...props,
3967
+ children: isDesktop ? /* @__PURE__ */ jsx(SelectDesktop, { ...props }) : /* @__PURE__ */ jsx(SelectMobile, { ...props })
3968
+ });
3969
+ };
3970
+ //#endregion
3971
+ //#region src/components/inputs/Selection/shared/StaticSelectTrailingContent.tsx
3972
+ const StaticSelectTrailingContent = ({ trailingContent, hideDropdownIcon, isDisabled, size }) => {
3973
+ const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
3974
+ if (!trailingContent && hideDropdownIcon) return null;
3975
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [trailingContent && /* @__PURE__ */ jsx("div", {
3976
+ className: "flex shrink-0 items-center",
3977
+ children: trailingContent
3978
+ }), !hideDropdownIcon ? /* @__PURE__ */ jsx("button", {
3979
+ type: "button",
3980
+ tabIndex: -1,
3981
+ className: clsx("self-stretch border-0! pl-1-5 outline-none", inputSizeCva({ size })),
3982
+ "aria-hidden": "true",
3983
+ children: /* @__PURE__ */ jsx("span", {
3984
+ className: clsx("flex size-6 shrink-0 items-center justify-center", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle"),
3985
+ children: /* @__PURE__ */ jsx(Triangle, { className: "h-2 w-3 rotate-180 fill-current stroke-0" })
3986
+ })
3987
+ }) : void 0] });
3988
+ };
3989
+ //#endregion
3990
+ //#region src/components/inputs/Selection/shared/staticSelect.utils.tsx
3991
+ const getStaticMultipleDisplayValue = ({ selectedItems, isDisabled, collapseAfter, selectedTagsType }) => {
3992
+ if (selectedItems.length === 0) return "";
3993
+ return /* @__PURE__ */ jsx(SelectInputTags, {
3994
+ selectedItems,
3995
+ isDisabled,
3996
+ collapseAfter,
3997
+ selectedTagsType,
3998
+ onRemove: () => void 0
3999
+ });
4000
+ };
4001
+ const getStaticSingleDisplayValue = ({ selectedItem, showSelectionContent }) => {
4002
+ if (!selectedItem) return "";
4003
+ if (showSelectionContent && selectedItem.content) return selectedItem.content;
4004
+ return /* @__PURE__ */ jsx("div", {
4005
+ className: "min-w-0 flex-1 truncate",
4006
+ children: selectedItem.label
4007
+ });
4008
+ };
4009
+ const getStaticSelectValue = ({ items, value, selectionMode, initialSelection, mapInitialToSelectItem = ((item) => ({
4010
+ id: item.id,
4011
+ label: item.label ?? item.name ?? ""
4012
+ })), showSelectionContent, isDisabled, collapseAfter, selectedTagsType }) => {
4013
+ const initialSelectedItems = initialSelection ? (Array.isArray(initialSelection) ? initialSelection : [initialSelection]).map((item) => mapInitialToSelectItem(item)) : [];
4014
+ const allItemsMap = /* @__PURE__ */ new Map();
4015
+ [...initialSelectedItems, ...items].forEach((item) => allItemsMap.set(item.id, item));
4016
+ const getItem = (id) => allItemsMap.get(id) ?? null;
4017
+ const selectedItems = Array.isArray(value) ? value.map((id) => getItem(id)).filter((item) => item != null) : [];
4018
+ const selectedItem = !Array.isArray(value) && value != null ? getItem(value) : null;
4019
+ if (selectionMode === "multiple") return {
4020
+ selectedItem,
4021
+ selectedItems,
4022
+ displayValue: getStaticMultipleDisplayValue({
4023
+ selectedItems,
4024
+ isDisabled,
4025
+ collapseAfter,
4026
+ selectedTagsType
4027
+ }),
4028
+ isEmpty: selectedItems.length === 0
4029
+ };
4030
+ return {
4031
+ selectedItem,
4032
+ selectedItems,
4033
+ displayValue: getStaticSingleDisplayValue({
4034
+ selectedItem,
4035
+ showSelectionContent
4036
+ }),
4037
+ isEmpty: selectedItem == null
4038
+ };
4039
+ };
4040
+ //#endregion
4041
+ export { selectListBoxItemDefinition as a, useKeyInteractions as c, selectPopoverDefinition as i, selectInputTagsContentWrapperDefinition as l, StaticSelectTrailingContent as n, createKeyInteractionsHandler as o, SelectBase as r, getKeyInteractionAction as s, getStaticSelectValue as t, useDebounceCallback as u };