@unchainedshop/admin-ui 5.0.0-alpha.1 → 5.0.0-alpha.10

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 (1073) hide show
  1. package/README.md +136 -16
  2. package/dist/chunk-3L6EZQ6P.js +135 -0
  3. package/dist/chunk-54DKBWXV.js +33 -0
  4. package/dist/chunk-5WPFHQZN.js +388 -0
  5. package/dist/chunk-6UGLNLJG.js +44 -0
  6. package/dist/chunk-AE5LOZGH.js +3350 -0
  7. package/dist/chunk-AOR2B5N5.js +74 -0
  8. package/dist/chunk-COV7BREX.js +50 -0
  9. package/dist/chunk-DTJ2DTKS.js +314 -0
  10. package/dist/chunk-E7BVYJ3R.js +2083 -0
  11. package/dist/chunk-EJDZRZSZ.js +59 -0
  12. package/dist/chunk-ELPURWDC.js +75 -0
  13. package/dist/chunk-F6LBNV3H.js +9 -0
  14. package/dist/chunk-FDHXLNZQ.js +44 -0
  15. package/dist/chunk-GY2DRQGW.js +166 -0
  16. package/dist/chunk-H6G4UTZ5.js +700 -0
  17. package/dist/chunk-HERLM47Z.js +309 -0
  18. package/dist/chunk-HTPSKUXQ.js +22476 -0
  19. package/dist/chunk-I64TXIE7.js +618 -0
  20. package/dist/chunk-IAQPLRXZ.js +16 -0
  21. package/dist/chunk-ILYPJE4N.js +57 -0
  22. package/dist/chunk-IXBMHOB5.js +13 -0
  23. package/dist/chunk-IYKPRAWC.js +26 -0
  24. package/dist/chunk-J23QSWDL.js +8 -0
  25. package/dist/chunk-JED6SHHG.js +41 -0
  26. package/dist/chunk-KH5MK6ZW.js +18 -0
  27. package/dist/chunk-KRIRF7F6.js +76 -0
  28. package/dist/chunk-NT7RB7AK.js +70 -0
  29. package/dist/chunk-OKGJ6HDE.js +26 -0
  30. package/dist/chunk-OTXM2UCD.js +19 -0
  31. package/dist/chunk-Q6S3LBUF.js +180 -0
  32. package/dist/chunk-QHR23GVH.js +1099 -0
  33. package/dist/chunk-QWQ3WJJN.js +1 -0
  34. package/dist/chunk-RAQV2GYF.js +70 -0
  35. package/dist/chunk-VBO377AY.js +14 -0
  36. package/dist/chunk-VDKQGOMV.js +840 -0
  37. package/dist/chunk-WPLOTFGW.js +36 -0
  38. package/dist/chunk-YO6PT7KD.js +13 -0
  39. package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
  40. package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
  41. package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
  42. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
  43. package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
  44. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
  45. package/dist/components/ui/ActiveInActive.d.ts +10 -0
  46. package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
  47. package/dist/components/ui/AnimatedCounter.d.ts +7 -0
  48. package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
  49. package/dist/components/ui/Badge.d.ts +10 -0
  50. package/dist/components/ui/Badge.d.ts.map +1 -0
  51. package/dist/components/ui/BreadCrumbs.d.ts +7 -0
  52. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
  53. package/dist/components/ui/Button.d.ts +36 -0
  54. package/dist/components/ui/Button.d.ts.map +1 -0
  55. package/dist/components/ui/CopyableText.d.ts +5 -0
  56. package/dist/components/ui/CopyableText.d.ts.map +1 -0
  57. package/dist/components/ui/DateInput.d.ts +15 -0
  58. package/dist/components/ui/DateInput.d.ts.map +1 -0
  59. package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
  60. package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
  61. package/dist/components/ui/DetailHeader.d.ts +6 -0
  62. package/dist/components/ui/DetailHeader.d.ts.map +1 -0
  63. package/dist/components/ui/DraggableIcon.d.ts +3 -0
  64. package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
  65. package/dist/components/ui/ErrorBoundary.d.ts +18 -0
  66. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  67. package/dist/components/ui/ErrorFallback.d.ts +6 -0
  68. package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
  69. package/dist/components/ui/HelpText.d.ts +11 -0
  70. package/dist/components/ui/HelpText.d.ts.map +1 -0
  71. package/dist/components/ui/ImageWithFallback.d.ts +7 -0
  72. package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
  73. package/dist/components/ui/InfoTextBanner.d.ts +6 -0
  74. package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
  75. package/dist/components/ui/JSONView.d.ts +6 -0
  76. package/dist/components/ui/JSONView.d.ts.map +1 -0
  77. package/dist/components/ui/ListHeader.d.ts +6 -0
  78. package/dist/components/ui/ListHeader.d.ts.map +1 -0
  79. package/dist/components/ui/Loading.d.ts +3 -0
  80. package/dist/components/ui/Loading.d.ts.map +1 -0
  81. package/dist/components/ui/NoData.d.ts +7 -0
  82. package/dist/components/ui/NoData.d.ts.map +1 -0
  83. package/dist/components/ui/NoImage.d.ts +7 -0
  84. package/dist/components/ui/NoImage.d.ts.map +1 -0
  85. package/dist/components/ui/NoImageSvg.d.ts +8 -0
  86. package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
  87. package/dist/components/ui/PageHeader.d.ts +11 -0
  88. package/dist/components/ui/PageHeader.d.ts.map +1 -0
  89. package/dist/components/ui/Pagination.d.ts +8 -0
  90. package/dist/components/ui/Pagination.d.ts.map +1 -0
  91. package/dist/components/ui/Portal/Portal.d.ts +16 -0
  92. package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
  93. package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
  94. package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
  95. package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
  96. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
  97. package/dist/components/ui/SearchField.d.ts +7 -0
  98. package/dist/components/ui/SearchField.d.ts.map +1 -0
  99. package/dist/components/ui/Tab.d.ts +18 -0
  100. package/dist/components/ui/Tab.d.ts.map +1 -0
  101. package/dist/components/ui/Tag/TagInput.d.ts +19 -0
  102. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
  103. package/dist/components/ui/Tag/TagList.d.ts +8 -0
  104. package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
  105. package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
  106. package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
  107. package/dist/components/ui/Toggle.d.ts +11 -0
  108. package/dist/components/ui/Toggle.d.ts.map +1 -0
  109. package/dist/components/ui/ToolTip.d.ts +7 -0
  110. package/dist/components/ui/ToolTip.d.ts.map +1 -0
  111. package/dist/components/ui/card.d.ts +9 -0
  112. package/dist/components/ui/card.d.ts.map +1 -0
  113. package/dist/components/ui/chart.d.ts +42 -0
  114. package/dist/components/ui/chart.d.ts.map +1 -0
  115. package/dist/components/ui/form/CheckboxField.d.ts +4 -0
  116. package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
  117. package/dist/components/ui/form/ChoicesField.d.ts +12 -0
  118. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
  119. package/dist/components/ui/form/Combobox.d.ts +20 -0
  120. package/dist/components/ui/form/Combobox.d.ts.map +1 -0
  121. package/dist/components/ui/form/DatePickerField.d.ts +4 -0
  122. package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
  123. package/dist/components/ui/form/EmailField.d.ts +7 -0
  124. package/dist/components/ui/form/EmailField.d.ts.map +1 -0
  125. package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
  126. package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
  127. package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
  128. package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
  129. package/dist/components/ui/form/FormErrors.d.ts +6 -0
  130. package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
  131. package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
  132. package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
  133. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
  134. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
  135. package/dist/components/ui/form/PasswordField.d.ts +3 -0
  136. package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
  137. package/dist/components/ui/form/SelectField.d.ts +11 -0
  138. package/dist/components/ui/form/SelectField.d.ts.map +1 -0
  139. package/dist/components/ui/form/SubmitButton.d.ts +9 -0
  140. package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
  141. package/dist/components/ui/form/TagInputField.d.ts +7 -0
  142. package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
  143. package/dist/components/ui/form/TextAreaField.d.ts +8 -0
  144. package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
  145. package/dist/components/ui/form/TextField.d.ts +10 -0
  146. package/dist/components/ui/form/TextField.d.ts.map +1 -0
  147. package/dist/components/ui/form/index.d.ts +18 -0
  148. package/dist/components/ui/form/index.d.ts.map +1 -0
  149. package/dist/components/ui/icons.d.ts +4 -0
  150. package/dist/components/ui/icons.d.ts.map +1 -0
  151. package/dist/components/ui/index.d.ts +46 -0
  152. package/dist/components/ui/index.d.ts.map +1 -0
  153. package/dist/form.js +2606 -0
  154. package/dist/gql/operation-types.d.ts +13063 -0
  155. package/dist/gql/operation-types.d.ts.map +1 -0
  156. package/dist/gql/schema-types.d.ts +3821 -0
  157. package/dist/gql/schema-types.d.ts.map +1 -0
  158. package/dist/gql/types.d.ts +3 -0
  159. package/dist/gql/types.d.ts.map +1 -0
  160. package/dist/hooks.js +49 -0
  161. package/dist/lib/utils.d.ts +3 -0
  162. package/dist/lib/utils.d.ts.map +1 -0
  163. package/dist/modal.js +51 -0
  164. package/dist/modules/Auth/AuthContext.d.ts +9 -0
  165. package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
  166. package/dist/modules/Auth/useAuth.d.ts +6 -0
  167. package/dist/modules/Auth/useAuth.d.ts.map +1 -0
  168. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
  169. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
  170. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
  171. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
  172. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
  173. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
  174. package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
  175. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
  176. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
  177. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
  178. package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
  179. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
  180. package/dist/modules/accounts.js +1169 -0
  181. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
  182. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
  183. package/dist/modules/assortment.js +1126 -0
  184. package/dist/modules/common/components/AppContext.d.ts +18 -0
  185. package/dist/modules/common/components/AppContext.d.ts.map +1 -0
  186. package/dist/modules/common/components/FormWrapper.d.ts +8 -0
  187. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
  188. package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
  189. package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
  190. package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
  191. package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
  192. package/dist/modules/common/components/SelectOptions.d.ts +17 -0
  193. package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
  194. package/dist/modules/common/components/Table.d.ts +25 -0
  195. package/dist/modules/common/components/Table.d.ts.map +1 -0
  196. package/dist/modules/common/components/TableCell.d.ts +12 -0
  197. package/dist/modules/common/components/TableCell.d.ts.map +1 -0
  198. package/dist/modules/common/components/TableRow.d.ts +10 -0
  199. package/dist/modules/common/components/TableRow.d.ts.map +1 -0
  200. package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
  201. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
  202. package/dist/modules/common/data/iso-codes.d.ts +4 -0
  203. package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
  204. package/dist/modules/common/data/miscellaneous.d.ts +51 -0
  205. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
  206. package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
  207. package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
  208. package/dist/modules/common/hooks/useApp.d.ts +11 -0
  209. package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
  210. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
  211. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
  212. package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
  213. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
  214. package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
  215. package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
  216. package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
  217. package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
  218. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
  219. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
  220. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
  221. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
  222. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
  223. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
  224. package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
  225. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
  226. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
  227. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
  228. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
  229. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
  230. package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
  231. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
  232. package/dist/modules/common/hooks/usePortal.d.ts +20 -0
  233. package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
  234. package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
  235. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
  236. package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
  237. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
  238. package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
  239. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
  240. package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
  241. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
  242. package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
  243. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
  244. package/dist/modules/common/hooks/useTheme.d.ts +7 -0
  245. package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
  246. package/dist/modules/common/utils/deBounce.d.ts +3 -0
  247. package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
  248. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
  249. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
  250. package/dist/modules/common/utils/formatUsername.d.ts +3 -0
  251. package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
  252. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
  253. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
  254. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
  255. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
  256. package/dist/modules/common/utils/sharedContext.d.ts +9 -0
  257. package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
  258. package/dist/modules/common/utils/useFormatDateTime.d.ts +16 -0
  259. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
  260. package/dist/modules/common/utils/utils.d.ts +21 -0
  261. package/dist/modules/common/utils/utils.d.ts.map +1 -0
  262. package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
  263. package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
  264. package/dist/modules/country/hooks/useCountries.d.ts +22 -0
  265. package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
  266. package/dist/modules/country.js +108 -0
  267. package/dist/modules/currency.js +119 -0
  268. package/dist/modules/delivery-provider.js +269 -0
  269. package/dist/modules/enrollment.js +374 -0
  270. package/dist/modules/event.js +123 -0
  271. package/dist/modules/filter.js +448 -0
  272. package/dist/modules/forms/components/Form.d.ts +8 -0
  273. package/dist/modules/forms/components/Form.d.ts.map +1 -0
  274. package/dist/modules/forms/hooks/useField.d.ts +35 -0
  275. package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
  276. package/dist/modules/forms/hooks/useForm.d.ts +44 -0
  277. package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
  278. package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
  279. package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
  280. package/dist/modules/forms/lib/FormContext.d.ts +13 -0
  281. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
  282. package/dist/modules/forms/lib/clean.d.ts +3 -0
  283. package/dist/modules/forms/lib/clean.d.ts.map +1 -0
  284. package/dist/modules/forms/lib/validators.d.ts +20 -0
  285. package/dist/modules/forms/lib/validators.d.ts.map +1 -0
  286. package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
  287. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
  288. package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
  289. package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
  290. package/dist/modules/language.js +106 -0
  291. package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
  292. package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
  293. package/dist/modules/modal/components/DangerMessage.d.ts +13 -0
  294. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
  295. package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
  296. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
  297. package/dist/modules/modal/components/Modal.d.ts +10 -0
  298. package/dist/modules/modal/components/Modal.d.ts.map +1 -0
  299. package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
  300. package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
  301. package/dist/modules/modal/hooks/useModal.d.ts +7 -0
  302. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
  303. package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
  304. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
  305. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
  306. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
  307. package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
  308. package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
  309. package/dist/modules/order/hooks/useOrders.d.ts +46 -0
  310. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
  311. package/dist/modules/order.js +569 -0
  312. package/dist/modules/payment-providers.js +206 -0
  313. package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
  314. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
  315. package/dist/modules/product-review.js +270 -0
  316. package/dist/modules/product.js +6666 -0
  317. package/dist/modules/quotation.js +317 -0
  318. package/dist/modules/token.js +143 -0
  319. package/dist/modules/warehousing-providers.js +206 -0
  320. package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
  321. package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
  322. package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
  323. package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
  324. package/dist/modules/work/hooks/useWork.d.ts +32 -0
  325. package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
  326. package/dist/modules/work.js +316 -0
  327. package/dist/plugins.js +13 -0
  328. package/dist/providers.js +9 -0
  329. package/dist/sdk/hooks.d.ts +12 -0
  330. package/dist/sdk/hooks.d.ts.map +1 -0
  331. package/dist/sdk/modal.d.ts +7 -0
  332. package/dist/sdk/modal.d.ts.map +1 -0
  333. package/dist/sdk/plugins.d.ts +78 -0
  334. package/dist/sdk/plugins.d.ts.map +1 -0
  335. package/dist/sdk/providers.d.ts +5 -0
  336. package/dist/sdk/providers.d.ts.map +1 -0
  337. package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
  338. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
  339. package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
  340. package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
  341. package/dist/sdk/shims/apollo-client.d.ts +3 -0
  342. package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
  343. package/dist/sdk/shims/host.d.ts +17 -0
  344. package/dist/sdk/shims/host.d.ts.map +1 -0
  345. package/dist/sdk/shims/next-head.d.ts +3 -0
  346. package/dist/sdk/shims/next-head.d.ts.map +1 -0
  347. package/dist/sdk/shims/next-image.d.ts +3 -0
  348. package/dist/sdk/shims/next-image.d.ts.map +1 -0
  349. package/dist/sdk/shims/next-link.d.ts +3 -0
  350. package/dist/sdk/shims/next-link.d.ts.map +1 -0
  351. package/dist/sdk/shims/next-router.d.ts +3 -0
  352. package/dist/sdk/shims/next-router.d.ts.map +1 -0
  353. package/dist/sdk/shims/react-dom-client.d.ts +3 -0
  354. package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
  355. package/dist/sdk/shims/react-dom.d.ts +3 -0
  356. package/dist/sdk/shims/react-dom.d.ts.map +1 -0
  357. package/dist/sdk/shims/react-hook-form.d.ts +3 -0
  358. package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
  359. package/dist/sdk/shims/react-intl.d.ts +3 -0
  360. package/dist/sdk/shims/react-intl.d.ts.map +1 -0
  361. package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
  362. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
  363. package/dist/sdk/shims/react-toastify.d.ts +3 -0
  364. package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
  365. package/dist/sdk/shims/react.d.ts +3 -0
  366. package/dist/sdk/shims/react.d.ts.map +1 -0
  367. package/dist/sdk/theme.d.ts +26 -0
  368. package/dist/sdk/theme.d.ts.map +1 -0
  369. package/dist/shims/admin-ui-plugins.js +9 -0
  370. package/dist/shims/apollo-client-react.js +25 -0
  371. package/dist/shims/apollo-client.js +55 -0
  372. package/dist/shims/next-head.js +9 -0
  373. package/dist/shims/next-image.js +9 -0
  374. package/dist/shims/next-link.js +9 -0
  375. package/dist/shims/next-router.js +13 -0
  376. package/dist/shims/react-dom-client.js +11 -0
  377. package/dist/shims/react-dom.js +22 -0
  378. package/dist/shims/react-hook-form.js +25 -0
  379. package/dist/shims/react-intl.js +37 -0
  380. package/dist/shims/react-jsx-runtime.js +11 -0
  381. package/dist/shims/react-toastify.js +16 -0
  382. package/dist/shims/react.js +52 -0
  383. package/dist/theme.js +34 -0
  384. package/dist/ui.js +19700 -0
  385. package/out/403/index.html +2 -2
  386. package/out/404/index.html +2 -2
  387. package/out/404.html +2 -2
  388. package/out/423/index.html +2 -2
  389. package/out/500/index.html +2 -2
  390. package/out/_next/static/chunks/0-2b37ubdpy0o.js +7 -0
  391. package/out/_next/static/chunks/012cafv-4m7rj.js +807 -0
  392. package/out/_next/static/chunks/02dnhll1bce87.js +46 -0
  393. package/out/_next/static/chunks/02ptvddfjlsxb.js +1 -0
  394. package/out/_next/static/chunks/03ebenjfvoj8n.js +1 -0
  395. package/out/_next/static/chunks/03r347235l6c4.js +7 -0
  396. package/out/_next/static/chunks/05au-xyt__0f2.js +3 -0
  397. package/out/_next/static/chunks/05nn5xr3ufcsh.js +1 -0
  398. package/out/_next/static/chunks/05o_q7jg8wucs.js +44 -0
  399. package/out/_next/static/chunks/05scroolqe8fu.js +234 -0
  400. package/out/_next/static/chunks/072qxdqjtqvn9.js +11 -0
  401. package/out/_next/static/chunks/0752goe9_9g2s.js +110 -0
  402. package/out/_next/static/chunks/07e-sk6v9u-qh.js +807 -0
  403. package/out/_next/static/chunks/07evy5u8ldd1y.js +50 -0
  404. package/out/_next/static/chunks/083ylavob4a8d.js +3 -0
  405. package/out/_next/static/chunks/08jrw03_vxllg.js +54 -0
  406. package/out/_next/static/chunks/08pag0k09j2b3.js +807 -0
  407. package/out/_next/static/chunks/09n6h-_l73rez.js +13 -0
  408. package/out/_next/static/chunks/0_b5faks_mrvi.js +14 -0
  409. package/out/_next/static/chunks/0a_bg-ub3r2eo.js +60 -0
  410. package/out/_next/static/chunks/0aqxsjssb0dh9.js +21 -0
  411. package/out/_next/static/chunks/0aw4jxe6zcc0c.js +32 -0
  412. package/out/_next/static/chunks/0b0hrx3sbbs70.js +807 -0
  413. package/out/_next/static/chunks/0bg4_y1qh5y5h.js +47 -0
  414. package/out/_next/static/chunks/0bgz44wi1lidl.js +13 -0
  415. package/out/_next/static/chunks/0dcpvidzyamvk.js +100 -0
  416. package/out/_next/static/chunks/0dnh0kr83_tj0.js +1 -0
  417. package/out/_next/static/chunks/0dxp17sbyy_dr.js +22 -0
  418. package/out/_next/static/chunks/0dxu94yin5gdn.js +35 -0
  419. package/out/_next/static/chunks/0e2c-jlh2q_eq.js +74 -0
  420. package/out/_next/static/chunks/0el7gr-83bm5j.js +3 -0
  421. package/out/_next/static/chunks/0f_ofo__wyqsp.js +22 -0
  422. package/out/_next/static/chunks/0gx9t6j5kx_ho.js +9 -0
  423. package/out/_next/static/chunks/0h0r_q6xa9qr_.js +1 -0
  424. package/out/_next/static/chunks/0i9ymn9xxs0nx.js +18 -0
  425. package/out/_next/static/chunks/0iy11ws57hzzr.js +99 -0
  426. package/out/_next/static/chunks/0j8_uikfyrn1f.js +1 -0
  427. package/out/_next/static/chunks/0jeddko6bac8h.js +1 -0
  428. package/out/_next/static/chunks/0jzx7vxh13cpi.js +15 -0
  429. package/out/_next/static/chunks/0kody3217__os.js +16 -0
  430. package/out/_next/static/chunks/0kwo-m1-mo-s-.js +31 -0
  431. package/out/_next/static/chunks/0lp_pnq1t06sl.js +104 -0
  432. package/out/_next/static/chunks/0m6jydfuy_4o3.js +1 -0
  433. package/out/_next/static/chunks/0mez27zlo26ni.js +103 -0
  434. package/out/_next/static/chunks/0nj8vn3509oe-.js +9 -0
  435. package/out/_next/static/chunks/0np9pcbt6dmxe.js +25 -0
  436. package/out/_next/static/chunks/0o7k5vanq57ch.js +807 -0
  437. package/out/_next/static/chunks/0r5wwinf72z4g.js +1 -0
  438. package/out/_next/static/chunks/0rqjr_lmrk4pz.js +5 -0
  439. package/out/_next/static/chunks/0swe0fkt4vyzn.js +136 -0
  440. package/out/_next/static/chunks/0u4st428hgv1v.js +27 -0
  441. package/out/_next/static/chunks/0u7--d8_-qyne.js +83 -0
  442. package/out/_next/static/chunks/0ubzi2s1spm4e.js +342 -0
  443. package/out/_next/static/chunks/0uecw_5mn0zvr.js +110 -0
  444. package/out/_next/static/chunks/0uw9cbq0ivaz0.js +1 -0
  445. package/out/_next/static/chunks/0uxwblyj0htyb.js +1 -0
  446. package/out/_next/static/chunks/0uyhr7vs9ltp0.js +141 -0
  447. package/out/_next/static/chunks/0vr19nswhvt2-.js +14 -0
  448. package/out/_next/static/chunks/0vyvc19p87f_r.js +234 -0
  449. package/out/_next/static/chunks/0wznlnzc2xsbz.js +16 -0
  450. package/out/_next/static/chunks/0ycu-q8fcc8ta.js +1 -0
  451. package/out/_next/static/chunks/0ytserk6fuf71.js +175 -0
  452. package/out/_next/static/chunks/0zoum0jzrtu0s.js +145 -0
  453. package/out/_next/static/chunks/1-6s62fsl_z_7.js +126 -0
  454. package/out/_next/static/chunks/10b6et0qn-pa0.js +59 -0
  455. package/out/_next/static/chunks/13m7st62a61df.js +25 -0
  456. package/out/_next/static/chunks/13u_a5l2xngm4.js +1 -0
  457. package/out/_next/static/chunks/15vz50rks0o2-.js +238 -0
  458. package/out/_next/static/chunks/1647yxi4ymq0z.js +14 -0
  459. package/out/_next/static/chunks/16hd7xvkocqxs.js +807 -0
  460. package/out/_next/static/chunks/16t18hhd4ax36.js +2 -0
  461. package/out/_next/static/chunks/17wle25pg9jkp.js +11 -0
  462. package/out/_next/static/chunks/18juy_eauk94g.js +58 -0
  463. package/out/_next/static/chunks/19eflki8bmivb.js +81 -0
  464. package/out/_next/static/chunks/19eu5d-wm2hfr.js +23 -0
  465. package/out/_next/static/chunks/19izcjxrrapb3.js +9 -0
  466. package/out/_next/static/chunks/1_jbj-c1d2606.js +21 -0
  467. package/out/_next/static/chunks/1_pwqdjxb6oou.js +226 -0
  468. package/out/_next/static/chunks/1ae-9ft5cgojf.js +1 -0
  469. package/out/_next/static/chunks/1bftmuhck_-7b.js +1 -0
  470. package/out/_next/static/chunks/1bww_2og01jxh.js +807 -0
  471. package/out/_next/static/chunks/1c0cemuv_tf6i.js +16 -0
  472. package/out/_next/static/chunks/1c4a2qxtb3r4_.js +16 -0
  473. package/out/_next/static/chunks/1cjd95y23a9qx.js +1 -0
  474. package/out/_next/static/chunks/1cy-2yb5j5_9b.js +157 -0
  475. package/out/_next/static/chunks/1dkv555kaccbl.js +13 -0
  476. package/out/_next/static/chunks/1dt9_bzfioi8a.js +24 -0
  477. package/out/_next/static/chunks/1fd7ewfb7bi_g.js +234 -0
  478. package/out/_next/static/chunks/1gncrqljnmqjn.js +43 -0
  479. package/out/_next/static/chunks/1gt65pz91hyuz.js +1 -0
  480. package/out/_next/static/chunks/1iewktf-9h_n8.js +15 -0
  481. package/out/_next/static/chunks/1l7p7exnzd0c2.js +12 -0
  482. package/out/_next/static/chunks/1nqu3ymv6lgev.js +3 -0
  483. package/out/_next/static/chunks/1o_8g-kpuqi9h.js +1 -0
  484. package/out/_next/static/chunks/1oent0-9-0rgb.js +20 -0
  485. package/out/_next/static/chunks/1og09fg689_nc.js +180 -0
  486. package/out/_next/static/chunks/1pj279k5ntty3.js +13 -0
  487. package/out/_next/static/chunks/1q_sewe1wbxsk.js +54 -0
  488. package/out/_next/static/chunks/1qvs4gd4rbhb2.js +15 -0
  489. package/out/_next/static/chunks/1rtv3c_klo0jk.js +1 -0
  490. package/out/_next/static/chunks/1sdqr2_r6o46f.js +16 -0
  491. package/out/_next/static/chunks/1vti949e9wuhz.js +15 -0
  492. package/out/_next/static/chunks/1x-yucftdml28.js +1 -0
  493. package/out/_next/static/chunks/1xbofs3ibkjvj.js +1 -0
  494. package/out/_next/static/chunks/1ylgjha1c0ua_.js +124 -0
  495. package/out/_next/static/chunks/1yp98n-n4gxwy.js +15 -0
  496. package/out/_next/static/chunks/1zcm_9oew7412.js +14 -0
  497. package/out/_next/static/chunks/2-e0d1qpp7rk9.js +14 -0
  498. package/out/_next/static/chunks/20ubrczdsehfm.js +879 -0
  499. package/out/_next/static/chunks/23m--gc-gjenm.js +3 -0
  500. package/out/_next/static/chunks/24-pobk4qjjvp.js +3 -0
  501. package/out/_next/static/chunks/24jptulqn322i.js +15 -0
  502. package/out/_next/static/chunks/24jyi7e2pq4gy.js +15 -0
  503. package/out/_next/static/chunks/252jebodi67kg.js +1 -0
  504. package/out/_next/static/chunks/26eux546aoag5.js +58 -0
  505. package/out/_next/static/chunks/270ua9t85a7ev.js +5 -0
  506. package/out/_next/static/chunks/28r_j2kquxrjn.js +807 -0
  507. package/out/_next/static/chunks/2_ccruvok3u8j.js +16 -0
  508. package/out/_next/static/chunks/2_ojfjgg8do9t.js +1 -0
  509. package/out/_next/static/chunks/2aj5aq_c0b4r_.js +13 -0
  510. package/out/_next/static/chunks/2ba3n9zx9e9q9.js +807 -0
  511. package/out/_next/static/chunks/2d-hxb31pgpn7.js +13 -0
  512. package/out/_next/static/chunks/2df2cqwidgpan.js +15 -0
  513. package/out/_next/static/chunks/2djnsowjy3p8y.js +1 -0
  514. package/out/_next/static/chunks/2dyj8q92_k5el.js +708 -0
  515. package/out/_next/static/chunks/2e0k9dt1emjfm.js +1 -0
  516. package/out/_next/static/chunks/2e3gba1n-yyuj.js +15 -0
  517. package/out/_next/static/chunks/2e_p1vqr0g_-_.js +7 -0
  518. package/out/_next/static/chunks/2e_te6sbs_5uw.js +1 -0
  519. package/out/_next/static/chunks/2f16josk9b_cl.js +8 -0
  520. package/out/_next/static/chunks/2fo2ki1egxbah.js +39 -0
  521. package/out/_next/static/chunks/2g8gzs8wpsofk.js +2 -0
  522. package/out/_next/static/chunks/2gh355-kh19zx.js +13 -0
  523. package/out/_next/static/chunks/2gr4t5xe0atdr.js +15 -0
  524. package/out/_next/static/chunks/2ib6fee-nqe-z.js +23 -0
  525. package/out/_next/static/chunks/2kjux30i3gg-c.js +5 -0
  526. package/out/_next/static/chunks/2kzyda4a6mqut.js +1 -0
  527. package/out/_next/static/chunks/2ljoq6sr-g2da.js +1 -0
  528. package/out/_next/static/chunks/2ll_mqee86g8c.js +1 -0
  529. package/out/_next/static/chunks/2lx_iig9xewfj.js +52 -0
  530. package/out/_next/static/chunks/2lylr4-3tu1_t.js +15 -0
  531. package/out/_next/static/chunks/2n1v8ph2nt43w.js +17 -0
  532. package/out/_next/static/chunks/2o9hdz0gk1-s7.js +165 -0
  533. package/out/_next/static/chunks/2oadogfqpak51.js +1 -0
  534. package/out/_next/static/chunks/2oogwntgnu9rf.js +17 -0
  535. package/out/_next/static/chunks/2p4e3kh8sa8iq.js +13 -0
  536. package/out/_next/static/chunks/2q-mpau-4gsvd.js +1 -0
  537. package/out/_next/static/chunks/2rddaar-ns45d.js +116 -0
  538. package/out/_next/static/chunks/2s3qhuh87mu_w.js +126 -0
  539. package/out/_next/static/chunks/2s6u8274_jzk2.js +105 -0
  540. package/out/_next/static/chunks/2skfzjx2g9hkk.js +134 -0
  541. package/out/_next/static/chunks/2u6jwsqz0uhes.js +24 -0
  542. package/out/_next/static/chunks/2v4k4vpb2id7m.js +44 -0
  543. package/out/_next/static/chunks/2xctb084h1lyg.js +329 -0
  544. package/out/_next/static/chunks/2xgpwzpd6-tdb.js +234 -0
  545. package/out/_next/static/chunks/3-soz24u9483h.js +15 -0
  546. package/out/_next/static/chunks/30_ns6urg1dkn.js +41 -0
  547. package/out/_next/static/chunks/30nxkqu5mcga3.js +1 -0
  548. package/out/_next/static/chunks/313i1x81q2xj1.js +1 -0
  549. package/out/_next/static/chunks/31qwglme02a_r.js +807 -0
  550. package/out/_next/static/chunks/31sk60zzj3bc5.js +17 -0
  551. package/out/_next/static/chunks/325a7n__tfxy_.js +61 -0
  552. package/out/_next/static/chunks/33emlry70k-lv.js +2 -0
  553. package/out/_next/static/chunks/33v8la4hkia7j.js +1 -0
  554. package/out/_next/static/chunks/34ar-34flu6bu.js +43 -0
  555. package/out/_next/static/chunks/34z48lfdm9u0l.js +9 -0
  556. package/out/_next/static/chunks/351jscvbk_wb9.js +13 -0
  557. package/out/_next/static/chunks/357odtev0t245.js +59 -0
  558. package/out/_next/static/chunks/360g4b1clnt45.js +142 -0
  559. package/out/_next/static/chunks/360uyru28azf6.js +20 -0
  560. package/out/_next/static/chunks/366apf6d0xh2u.js +30 -0
  561. package/out/_next/static/chunks/36_zbuqpk5cpj.js +14 -0
  562. package/out/_next/static/chunks/36aqs7u7s-lb1.js +119 -0
  563. package/out/_next/static/chunks/36beon3q8orx2.js +1 -0
  564. package/out/_next/static/chunks/37703j9_zf5_h.js +13 -0
  565. package/out/_next/static/chunks/37rwzuocwsv_k.js +16 -0
  566. package/out/_next/static/chunks/37w6b3h04uc4c.js +19 -0
  567. package/out/_next/static/chunks/38ffn8gazqz8_.js +3 -0
  568. package/out/_next/static/chunks/38xse6_r51yqp.js +234 -0
  569. package/out/_next/static/chunks/39s8xbnm9f08v.js +14 -0
  570. package/out/_next/static/chunks/39x-p8r_sl0ng.js +15 -0
  571. package/out/_next/static/chunks/39zisxvmik0t_.js +34 -0
  572. package/out/_next/static/chunks/3_97tge0xvvon.js +11 -0
  573. package/out/_next/static/chunks/3aw-ri7876ngd.js +39 -0
  574. package/out/_next/static/chunks/3bv7gi3o6-41h.js +11 -0
  575. package/out/_next/static/chunks/3cdfuacs4_0d-.js +1 -0
  576. package/out/_next/static/chunks/3cxpx38ycu7u2.js +9 -0
  577. package/out/_next/static/chunks/3d1ofcqmlbg-5.js +52 -0
  578. package/out/_next/static/chunks/3e3i3qqkv_my7.js +15 -0
  579. package/out/_next/static/chunks/3ex71q3pp_ekc.js +247 -0
  580. package/out/_next/static/chunks/3g1lpkudwo8kg.js +1 -0
  581. package/out/_next/static/chunks/3h68t22714to5.js +3 -0
  582. package/out/_next/static/chunks/3jpzhwqgdnobq.js +103 -0
  583. package/out/_next/static/chunks/3jxuqt_2-j_uc.js +18 -0
  584. package/out/_next/static/chunks/3kqqv33l7ssn0.js +16 -0
  585. package/out/_next/static/chunks/3l-9xxd1i1sya.js +1 -0
  586. package/out/_next/static/chunks/3mancxzz8c7hl.js +51 -0
  587. package/out/_next/static/chunks/3mq2s9rfy78je.js +27 -0
  588. package/out/_next/static/chunks/3om1fkw-lrmng.js +1 -0
  589. package/out/_next/static/chunks/3oynij37wfjb2.js +119 -0
  590. package/out/_next/static/chunks/3pbyo5kkko3wh.js +1 -0
  591. package/out/_next/static/chunks/3pjja1obml896.js +15 -0
  592. package/out/_next/static/chunks/3qaiz-jwi7q2x.js +1 -0
  593. package/out/_next/static/chunks/3rh3nigvg06yu.js +337 -0
  594. package/out/_next/static/chunks/3rppjab6j3_k9.js +1 -0
  595. package/out/_next/static/chunks/3t_3vlnk1ntkb.js +95 -0
  596. package/out/_next/static/chunks/3tpo2ho54vtth.js +807 -0
  597. package/out/_next/static/chunks/3tqspv0ggt8j0.js +17 -0
  598. package/out/_next/static/chunks/3um54w4ca27n_.js +17 -0
  599. package/out/_next/static/chunks/3vet2a9q9rf2c.js +61 -0
  600. package/out/_next/static/chunks/3vjgbl76cgrmt.js +1 -0
  601. package/out/_next/static/chunks/3vz3gqmojh7sx.js +4 -0
  602. package/out/_next/static/chunks/3w2e5xa061qou.js +9 -0
  603. package/out/_next/static/chunks/3w9xrlkiztuwi.js +23 -0
  604. package/out/_next/static/chunks/3x4xfy_av3o0d.js +1 -0
  605. package/out/_next/static/chunks/3x9k13s5fam4j.js +22 -0
  606. package/out/_next/static/chunks/3xmtbqm0gddn8.js +3 -0
  607. package/out/_next/static/chunks/3z5uyt9mc9_fd.js +2 -0
  608. package/out/_next/static/chunks/3zlwp96x3hoy9.js +16 -0
  609. package/out/_next/static/chunks/3zr_sumh1g7il.js +22 -0
  610. package/out/_next/static/chunks/40jl8yfmy6tp6.js +234 -0
  611. package/out/_next/static/chunks/40xhwnc_48o73.js +297 -0
  612. package/out/_next/static/chunks/41-iysd7qkyg1.js +16 -0
  613. package/out/_next/static/chunks/4105a9rejv_p4.js +1 -0
  614. package/out/_next/static/chunks/41e2wlkp9_pvk.js +28 -0
  615. package/out/_next/static/chunks/41g7mv3yuhz6k.js +68 -0
  616. package/out/_next/static/chunks/43jyzccx6x0lw.js +1 -0
  617. package/out/_next/static/chunks/43vuxh3wdo567.js +10 -0
  618. package/out/_next/static/chunks/44daaafswok67.css +1 -0
  619. package/out/_next/static/chunks/452fv7r-tie6t.js +1 -0
  620. package/out/_next/static/chunks/457j51b69odrw.js +1 -0
  621. package/out/_next/static/chunks/turbopack-02vysfmmbped5.js +1 -0
  622. package/out/_next/static/chunks/turbopack-03fj2scz_09ul.js +1 -0
  623. package/out/_next/static/chunks/turbopack-07wtduwtfqsl_.js +1 -0
  624. package/out/_next/static/chunks/turbopack-0_zihh5ueb_wj.js +1 -0
  625. package/out/_next/static/chunks/turbopack-0b8-ww_z1vgvn.js +1 -0
  626. package/out/_next/static/chunks/turbopack-0beql_u-wc_3e.js +1 -0
  627. package/out/_next/static/chunks/turbopack-0dxdn-gyy3_qj.js +1 -0
  628. package/out/_next/static/chunks/turbopack-0hqw81t-42tbj.js +1 -0
  629. package/out/_next/static/chunks/turbopack-0jsdrr-oq87lm.js +1 -0
  630. package/out/_next/static/chunks/turbopack-0jxa33q3ikjqg.js +1 -0
  631. package/out/_next/static/chunks/turbopack-0k9zths9zte_8.js +1 -0
  632. package/out/_next/static/chunks/turbopack-0pa42wgwsv141.js +1 -0
  633. package/out/_next/static/chunks/turbopack-0te09_mp07k1x.js +1 -0
  634. package/out/_next/static/chunks/turbopack-0xsxl45thi-35.js +1 -0
  635. package/out/_next/static/chunks/turbopack-10-8q-q2zomxa.js +1 -0
  636. package/out/_next/static/chunks/turbopack-142w-8owzbg7_.js +1 -0
  637. package/out/_next/static/chunks/turbopack-18tezl3vagvil.js +1 -0
  638. package/out/_next/static/chunks/turbopack-1_1a-_v7vml72.js +1 -0
  639. package/out/_next/static/chunks/turbopack-1_k-7s9lmntml.js +1 -0
  640. package/out/_next/static/chunks/turbopack-1a47di2tss4e-.js +1 -0
  641. package/out/_next/static/chunks/turbopack-1c60gn7g-uduw.js +1 -0
  642. package/out/_next/static/chunks/turbopack-1e1yk3pkaodr5.js +1 -0
  643. package/out/_next/static/chunks/turbopack-1jtk1c9w2axlk.js +1 -0
  644. package/out/_next/static/chunks/turbopack-1k2ukl9u-7ovo.js +1 -0
  645. package/out/_next/static/chunks/turbopack-1lkz81ntcp1zv.js +1 -0
  646. package/out/_next/static/chunks/turbopack-1pkw_r5dvv20d.js +1 -0
  647. package/out/_next/static/chunks/turbopack-1pu2s2k3szn0s.js +1 -0
  648. package/out/_next/static/chunks/turbopack-1rxz_6lqtls5b.js +1 -0
  649. package/out/_next/static/chunks/turbopack-1uf07pugrv1fy.js +1 -0
  650. package/out/_next/static/chunks/turbopack-1uobzdn2r7ebw.js +1 -0
  651. package/out/_next/static/chunks/turbopack-1wv610ktbtzka.js +1 -0
  652. package/out/_next/static/chunks/turbopack-1wz4te1fj20zp.js +1 -0
  653. package/out/_next/static/chunks/turbopack-1zi2ss8eiiyfx.js +1 -0
  654. package/out/_next/static/chunks/turbopack-207p7bsc5wea7.js +1 -0
  655. package/out/_next/static/chunks/turbopack-21zngkzhonfcm.js +1 -0
  656. package/out/_next/static/chunks/turbopack-23y20ll8n-nwk.js +1 -0
  657. package/out/_next/static/chunks/turbopack-26wtylwa4_s95.js +1 -0
  658. package/out/_next/static/chunks/turbopack-27l7xplqpifq6.js +1 -0
  659. package/out/_next/static/chunks/turbopack-285oyoobdo21x.js +1 -0
  660. package/out/_next/static/chunks/turbopack-28b0zyhf3uqaq.js +1 -0
  661. package/out/_next/static/chunks/turbopack-28m_9eg3draop.js +1 -0
  662. package/out/_next/static/chunks/turbopack-29h9fgcal-fng.js +1 -0
  663. package/out/_next/static/chunks/turbopack-2a84kh6nmf_78.js +1 -0
  664. package/out/_next/static/chunks/turbopack-2b73dx1bsdg5f.js +1 -0
  665. package/out/_next/static/chunks/turbopack-2bslf96g-y1vv.js +1 -0
  666. package/out/_next/static/chunks/turbopack-2d-2wg8-_f9-v.js +1 -0
  667. package/out/_next/static/chunks/turbopack-2ez-mfb63qve0.js +1 -0
  668. package/out/_next/static/chunks/turbopack-2g7u83j1wlswz.js +1 -0
  669. package/out/_next/static/chunks/turbopack-2m4gns1_64-7_.js +1 -0
  670. package/out/_next/static/chunks/turbopack-2n4ba44aafc4x.js +1 -0
  671. package/out/_next/static/chunks/turbopack-2t3zb47_j-ahd.js +1 -0
  672. package/out/_next/static/chunks/turbopack-2tf6rdek5zvm6.js +1 -0
  673. package/out/_next/static/chunks/turbopack-2vb0p2htqo4nd.js +1 -0
  674. package/out/_next/static/chunks/turbopack-30-bi-9_7jd01.js +1 -0
  675. package/out/_next/static/chunks/turbopack-32pjcar5xpn1o.js +1 -0
  676. package/out/_next/static/chunks/turbopack-3a3skasosq9-4.js +1 -0
  677. package/out/_next/static/chunks/turbopack-3d2rk8-5wcgrs.js +1 -0
  678. package/out/_next/static/chunks/turbopack-3i91g2le3tkne.js +1 -0
  679. package/out/_next/static/chunks/turbopack-3j4bdo8-ldea5.js +1 -0
  680. package/out/_next/static/chunks/turbopack-3m47jybfw85nc.js +1 -0
  681. package/out/_next/static/chunks/turbopack-3yfksvslbm14s.js +1 -0
  682. package/out/_next/static/chunks/turbopack-414roft8p92hp.js +1 -0
  683. package/out/_next/static/chunks/turbopack-424slv1lqxh_5.js +1 -0
  684. package/out/_next/static/chunks/turbopack-444yt6auyioxn.js +1 -0
  685. package/out/_next/static/z5KrmhOz2mLscINN5EbUf/_buildManifest.js +262 -0
  686. package/out/_offline/index.html +2 -2
  687. package/out/account/forgot-password/index.html +2 -2
  688. package/out/account/index.html +2 -2
  689. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  690. package/out/assortments/index.html +2 -2
  691. package/out/assortments/new/index.html +2 -2
  692. package/out/copilot/index.html +2 -2
  693. package/out/country/CountryDetailPage/index.html +2 -2
  694. package/out/country/index.html +2 -2
  695. package/out/country/new/index.html +2 -2
  696. package/out/currency/CurrencyDetailPage/index.html +2 -2
  697. package/out/currency/index.html +2 -2
  698. package/out/currency/new/index.html +2 -2
  699. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  700. package/out/delivery-provider/index.html +2 -2
  701. package/out/delivery-provider/new/index.html +2 -2
  702. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  703. package/out/enrollments/index.html +2 -2
  704. package/out/events/EventDetailPage/index.html +2 -2
  705. package/out/events/index.html +2 -2
  706. package/out/exports/index.html +2 -2
  707. package/out/ext/[[...slug]]/index.html +11 -0
  708. package/out/external/index.html +2 -2
  709. package/out/filters/FilterDetailPage/index.html +2 -2
  710. package/out/filters/index.html +2 -2
  711. package/out/filters/new/index.html +2 -2
  712. package/out/index.html +2 -2
  713. package/out/install/index.html +2 -2
  714. package/out/language/LanguageDetailPage/index.html +2 -2
  715. package/out/language/index.html +2 -2
  716. package/out/language/new/index.html +2 -2
  717. package/out/log-in/index.html +2 -2
  718. package/out/orders/OrderDetailPage/index.html +2 -2
  719. package/out/orders/index.html +2 -2
  720. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  721. package/out/payment-provider/index.html +2 -2
  722. package/out/payment-provider/new/index.html +2 -2
  723. package/out/products/ProductDetailPage/index.html +2 -2
  724. package/out/products/index.html +2 -2
  725. package/out/products/new/index.html +2 -2
  726. package/out/quotations/QuotationDetailPage/index.html +2 -2
  727. package/out/quotations/index.html +2 -2
  728. package/out/reset-password/index.html +2 -2
  729. package/out/sign-up/index.html +2 -2
  730. package/out/styleguide/index.html +2 -2
  731. package/out/tokens/TokenDetailPage/index.html +2 -2
  732. package/out/tokens/index.html +2 -2
  733. package/out/users/UserDetailPage/index.html +2 -2
  734. package/out/users/index.html +2 -2
  735. package/out/users/new/index.html +2 -2
  736. package/out/verify-email/index.html +2 -2
  737. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  738. package/out/warehousing-provider/index.html +2 -2
  739. package/out/warehousing-provider/new/index.html +2 -2
  740. package/out/works/WorkDetailPage/index.html +2 -2
  741. package/out/works/WorkQueueListView/index.html +2 -2
  742. package/out/works/index.html +2 -2
  743. package/out/works/management/index.html +2 -2
  744. package/package.json +129 -32
  745. package/src/modules/accounts/index.ts +34 -0
  746. package/src/modules/assortment/index.ts +29 -0
  747. package/src/modules/copilot/index.ts +4 -0
  748. package/src/modules/country/index.ts +5 -0
  749. package/src/modules/currency/index.ts +5 -0
  750. package/src/modules/delivery-provider/index.ts +7 -0
  751. package/src/modules/enrollment/index.ts +6 -0
  752. package/src/modules/event/index.ts +3 -0
  753. package/src/modules/filter/index.ts +13 -0
  754. package/src/modules/language/index.ts +5 -0
  755. package/src/modules/order/index.ts +8 -0
  756. package/src/modules/payment-providers/index.ts +7 -0
  757. package/src/modules/product/index.ts +49 -0
  758. package/src/modules/product-review/index.ts +6 -0
  759. package/src/modules/quotation/index.ts +6 -0
  760. package/src/modules/token/index.ts +3 -0
  761. package/src/modules/warehousing-providers/index.ts +7 -0
  762. package/src/modules/work/index.ts +7 -0
  763. package/src/sdk/README.md +226 -0
  764. package/src/sdk/form-entry.test.mjs +11 -0
  765. package/src/sdk/hooks.ts +15 -0
  766. package/src/sdk/modal.ts +6 -0
  767. package/src/sdk/plugin-build.mjs +97 -0
  768. package/src/sdk/plugin-build.test.mjs +46 -0
  769. package/src/sdk/plugin-runtime.cjs +66 -0
  770. package/src/sdk/plugin-runtime.d.mts +11 -0
  771. package/src/sdk/plugin-runtime.mjs +27 -0
  772. package/src/sdk/plugin-runtime.test.mjs +32 -0
  773. package/src/sdk/plugins.mjs +17 -0
  774. package/src/sdk/plugins.ts +105 -0
  775. package/src/sdk/providers.ts +4 -0
  776. package/src/sdk/shared-context.test.mjs +40 -0
  777. package/src/sdk/shims/admin-ui-plugins.ts +3 -0
  778. package/src/sdk/shims/apollo-client-react.ts +3 -0
  779. package/src/sdk/shims/apollo-client.ts +3 -0
  780. package/src/sdk/shims/host.ts +61 -0
  781. package/src/sdk/shims/next-head.ts +3 -0
  782. package/src/sdk/shims/next-image.ts +3 -0
  783. package/src/sdk/shims/next-link.ts +3 -0
  784. package/src/sdk/shims/next-router.ts +3 -0
  785. package/src/sdk/shims/react-dom-client.ts +3 -0
  786. package/src/sdk/shims/react-dom.ts +3 -0
  787. package/src/sdk/shims/react-hook-form.ts +3 -0
  788. package/src/sdk/shims/react-intl.ts +3 -0
  789. package/src/sdk/shims/react-jsx-runtime.ts +3 -0
  790. package/src/sdk/shims/react-toastify.ts +3 -0
  791. package/src/sdk/shims/react.ts +3 -0
  792. package/src/sdk/tailwind-preset.mjs +94 -0
  793. package/src/sdk/theme.ts +61 -0
  794. package/src/styles/globals.css +291 -0
  795. package/out/_next/static/_ZCNVAj2ptQ3WvyS9d8fH/_buildManifest.js +0 -258
  796. package/out/_next/static/chunks/0-3aqi0z~0~kq.js +0 -1
  797. package/out/_next/static/chunks/0-_n2k06ojx7r.js +0 -5
  798. package/out/_next/static/chunks/0-b7z0cgkcxjg.js +0 -12
  799. package/out/_next/static/chunks/0-khetjtcca7j.js +0 -23
  800. package/out/_next/static/chunks/0-vzy055sp9wr.js +0 -1
  801. package/out/_next/static/chunks/0.7c6ora-keix.js +0 -291
  802. package/out/_next/static/chunks/0.7jou~9s-9ly.js +0 -342
  803. package/out/_next/static/chunks/0.9xrb29zv20w.js +0 -1
  804. package/out/_next/static/chunks/0.qq-wh2-26q3.js +0 -1
  805. package/out/_next/static/chunks/00.vtv-~sgyl1.js +0 -1
  806. package/out/_next/static/chunks/002w~0kz13czu.js +0 -2
  807. package/out/_next/static/chunks/00am.v9yslbhb.js +0 -227
  808. package/out/_next/static/chunks/00z-be-uhq5~b.js +0 -138
  809. package/out/_next/static/chunks/01.ky4xf9k36u.js +0 -1
  810. package/out/_next/static/chunks/01m_2h75jti7r.js +0 -173
  811. package/out/_next/static/chunks/01r~p51b_ree7.js +0 -12
  812. package/out/_next/static/chunks/01ua~kzkn_2re.js +0 -2
  813. package/out/_next/static/chunks/01~bicjgx9ycz.js +0 -13
  814. package/out/_next/static/chunks/02.h.hxc5z45l.js +0 -58
  815. package/out/_next/static/chunks/020ov1cd5ubsp.js +0 -1
  816. package/out/_next/static/chunks/022.6ji94gj66.js +0 -90
  817. package/out/_next/static/chunks/02ljwx.y7xl4e.js +0 -384
  818. package/out/_next/static/chunks/02mkjzfq3ks0c.js +0 -342
  819. package/out/_next/static/chunks/034ij~x6p.1xq.js +0 -7
  820. package/out/_next/static/chunks/0387wujkm6quw.js +0 -26
  821. package/out/_next/static/chunks/03j~743_iaz5a.js +0 -87
  822. package/out/_next/static/chunks/03zc-8olk-a4z.js +0 -11
  823. package/out/_next/static/chunks/042vny1lzms1d.js +0 -1
  824. package/out/_next/static/chunks/045b8oqunhkwz.js +0 -1
  825. package/out/_next/static/chunks/04d1nicvb1h43.js +0 -12
  826. package/out/_next/static/chunks/04hnzv8.xnhtq.js +0 -12
  827. package/out/_next/static/chunks/04j3vrvch7ujx.js +0 -1
  828. package/out/_next/static/chunks/04j47t-gfncz0.js +0 -17
  829. package/out/_next/static/chunks/04wxvqon75sl5.js +0 -15
  830. package/out/_next/static/chunks/0511iudhvmzyd.js +0 -14
  831. package/out/_next/static/chunks/054x6af~vznwl.js +0 -13
  832. package/out/_next/static/chunks/055l.ongzthsf.js +0 -2
  833. package/out/_next/static/chunks/05r6-kh0ahzac.js +0 -288
  834. package/out/_next/static/chunks/068vu6mcq90.a.js +0 -14
  835. package/out/_next/static/chunks/069qmjrpifff9.js +0 -10
  836. package/out/_next/static/chunks/06c.18b146dst.js +0 -43
  837. package/out/_next/static/chunks/06ciqx79i2-.y.js +0 -16
  838. package/out/_next/static/chunks/06em3notkoupj.js +0 -60
  839. package/out/_next/static/chunks/06fu~nzcm6-xx.js +0 -13
  840. package/out/_next/static/chunks/06ldt6o0kv861.js +0 -12
  841. package/out/_next/static/chunks/06nnfpkytc2xp.js +0 -101
  842. package/out/_next/static/chunks/071ms7.~t3bpc.js +0 -73
  843. package/out/_next/static/chunks/07absjbyi5efz.js +0 -200
  844. package/out/_next/static/chunks/07e9hvcn2m7m0.css +0 -1
  845. package/out/_next/static/chunks/07gn.w-1ng2vv.js +0 -13
  846. package/out/_next/static/chunks/07ok4zsn3fbvv.js +0 -8
  847. package/out/_next/static/chunks/07rzofd~n_8p3.js +0 -111
  848. package/out/_next/static/chunks/08mu1xcbu0z5i.js +0 -1
  849. package/out/_next/static/chunks/08np.usn69g26.js +0 -12
  850. package/out/_next/static/chunks/08oxo2i_s5k32.js +0 -22
  851. package/out/_next/static/chunks/09.xyqg-s5.hj.js +0 -1
  852. package/out/_next/static/chunks/09kdzdul.4ws~.js +0 -5
  853. package/out/_next/static/chunks/09u84u49rpg~q.js +0 -10
  854. package/out/_next/static/chunks/0_0s9kzhzuc0n.js +0 -51
  855. package/out/_next/static/chunks/0_34hlmm2xs02.js +0 -1
  856. package/out/_next/static/chunks/0__0blfuajz3u.js +0 -1
  857. package/out/_next/static/chunks/0_bohk37n03zc.js +0 -13
  858. package/out/_next/static/chunks/0_fs4fka5dmk4.js +0 -14
  859. package/out/_next/static/chunks/0_t._or66p529.js +0 -10
  860. package/out/_next/static/chunks/0a6n-.sxlxj9i.js +0 -44
  861. package/out/_next/static/chunks/0aewtng76o8~g.js +0 -1
  862. package/out/_next/static/chunks/0aokk5k383t_7.js +0 -1
  863. package/out/_next/static/chunks/0bb3o6y0psmp~.js +0 -137
  864. package/out/_next/static/chunks/0binkax94nk~0.js +0 -286
  865. package/out/_next/static/chunks/0b~s0.jgd-9e2.js +0 -1
  866. package/out/_next/static/chunks/0c6p-vlcfco03.js +0 -2
  867. package/out/_next/static/chunks/0cau~hqb0jkf..js +0 -1
  868. package/out/_next/static/chunks/0chk_j9c0w74~.js +0 -21
  869. package/out/_next/static/chunks/0cnjwc8yv_7du.js +0 -36
  870. package/out/_next/static/chunks/0d1xe7n4~ift~.js +0 -119
  871. package/out/_next/static/chunks/0d2egm4vz55tp.js +0 -16
  872. package/out/_next/static/chunks/0dcng-~m.1-6b.js +0 -31
  873. package/out/_next/static/chunks/0dwysww-f770p.js +0 -43
  874. package/out/_next/static/chunks/0d~ogeoavcw1p.js +0 -2
  875. package/out/_next/static/chunks/0eh08mw_ge-97.js +0 -20
  876. package/out/_next/static/chunks/0ehfzo.p_8b1p.js +0 -142
  877. package/out/_next/static/chunks/0ei4k52e-lv4o.js +0 -596
  878. package/out/_next/static/chunks/0eq_bq11j1d8h.js +0 -73
  879. package/out/_next/static/chunks/0exrsz6ax-mbc.js +0 -50
  880. package/out/_next/static/chunks/0f7dus4chk-b7.js +0 -1
  881. package/out/_next/static/chunks/0f_2kctvcf9fc.js +0 -132
  882. package/out/_next/static/chunks/0fiu9kb2mg_pe.js +0 -1
  883. package/out/_next/static/chunks/0fzcyuwh8xfnw.js +0 -2
  884. package/out/_next/static/chunks/0gepdh_x8l03e.js +0 -31
  885. package/out/_next/static/chunks/0h3apzm4sorb-.js +0 -144
  886. package/out/_next/static/chunks/0hf6k~k9i9dml.js +0 -101
  887. package/out/_next/static/chunks/0hggeos.n3ho1.js +0 -324
  888. package/out/_next/static/chunks/0hs_qs3vvqt40.js +0 -224
  889. package/out/_next/static/chunks/0i.xcdg6xys-l.js +0 -1
  890. package/out/_next/static/chunks/0i2a62pwzd90a.js +0 -1
  891. package/out/_next/static/chunks/0i6yv64iri6c7.js +0 -14
  892. package/out/_next/static/chunks/0id0hab4x07mp.js +0 -13
  893. package/out/_next/static/chunks/0itsov_woj_gc.js +0 -11
  894. package/out/_next/static/chunks/0j0vos96uuvzn.js +0 -19
  895. package/out/_next/static/chunks/0jl_db3hgihi8.js +0 -1
  896. package/out/_next/static/chunks/0jsod19bi_.b4.js +0 -1
  897. package/out/_next/static/chunks/0jt2g8-m-bu3h.js +0 -15
  898. package/out/_next/static/chunks/0jxpx..caiup3.js +0 -51
  899. package/out/_next/static/chunks/0k3anlop2ta22.js +0 -1
  900. package/out/_next/static/chunks/0kg9ib_s2gdgg.js +0 -13
  901. package/out/_next/static/chunks/0klqyqhl-cmiq.js +0 -46
  902. package/out/_next/static/chunks/0krimw~~gz366.js +0 -2
  903. package/out/_next/static/chunks/0kwn.hg1e.um~.js +0 -44
  904. package/out/_next/static/chunks/0kwrzdkwhn88r.js +0 -13
  905. package/out/_next/static/chunks/0lcrt1adr76yw.js +0 -8
  906. package/out/_next/static/chunks/0ljk.6lm3l484.js +0 -7
  907. package/out/_next/static/chunks/0lq8y5ij59ip~.js +0 -1
  908. package/out/_next/static/chunks/0ltj_coftxt~y.js +0 -3
  909. package/out/_next/static/chunks/0lvph83c6z2a-.js +0 -1
  910. package/out/_next/static/chunks/0mehfyjroyd5m.js +0 -22
  911. package/out/_next/static/chunks/0n0rvtqgyilhu.js +0 -13
  912. package/out/_next/static/chunks/0n_8yfa~wwmvn.js +0 -16
  913. package/out/_next/static/chunks/0ncx_fjx5r3e9.js +0 -13
  914. package/out/_next/static/chunks/0njruqifmj7eb.js +0 -73
  915. package/out/_next/static/chunks/0nxa2d3rd~_hk.js +0 -20
  916. package/out/_next/static/chunks/0oavskn-j3nfr.js +0 -12
  917. package/out/_next/static/chunks/0oe9_~e6jba2c.js +0 -108
  918. package/out/_next/static/chunks/0on_9mgul7_i2.js +0 -188
  919. package/out/_next/static/chunks/0o~whquist5u6.js +0 -1
  920. package/out/_next/static/chunks/0p1dktj9e81.u.js +0 -209
  921. package/out/_next/static/chunks/0p2l~~8x6478b.js +0 -73
  922. package/out/_next/static/chunks/0p47r5clv~tji.js +0 -10
  923. package/out/_next/static/chunks/0pu7s41rb3je3.js +0 -1
  924. package/out/_next/static/chunks/0pvo5m24k8fer.js +0 -61
  925. package/out/_next/static/chunks/0q_s9ru.9iese.js +0 -193
  926. package/out/_next/static/chunks/0qoukboupb.ht.js +0 -14
  927. package/out/_next/static/chunks/0qsxmm8vi313~.js +0 -1
  928. package/out/_next/static/chunks/0qvf8s9fxj~ah.js +0 -41
  929. package/out/_next/static/chunks/0qy-relppwey0.js +0 -384
  930. package/out/_next/static/chunks/0r-a0zxkpzy.c.js +0 -14
  931. package/out/_next/static/chunks/0r017e-0mhnx2.js +0 -16
  932. package/out/_next/static/chunks/0r4jylm5inuxv.js +0 -13
  933. package/out/_next/static/chunks/0r6m.pwe-fw0s.js +0 -18
  934. package/out/_next/static/chunks/0rbjbp6y.a5ze.js +0 -8
  935. package/out/_next/static/chunks/0rds3div~3bsj.js +0 -15
  936. package/out/_next/static/chunks/0ridpuenplsy6.js +0 -46
  937. package/out/_next/static/chunks/0rwb5kn3yi~nn.js +0 -16
  938. package/out/_next/static/chunks/0s8kpaa2at0vl.js +0 -1
  939. package/out/_next/static/chunks/0sbwu9f3ons7y.js +0 -13
  940. package/out/_next/static/chunks/0sqtyywk.m-gb.js +0 -119
  941. package/out/_next/static/chunks/0suvx3w6t11x1.js +0 -14
  942. package/out/_next/static/chunks/0t.cqbkm36.29.js +0 -16
  943. package/out/_next/static/chunks/0ta5trm5g8qpx.js +0 -1
  944. package/out/_next/static/chunks/0u5rgvh_590-0.js +0 -15
  945. package/out/_next/static/chunks/0uzv9isqw0xwo.js +0 -12
  946. package/out/_next/static/chunks/0vu00vv4k8fm2.js +0 -5
  947. package/out/_next/static/chunks/0wbeo27c~tc9b.js +0 -13
  948. package/out/_next/static/chunks/0wc49~p9kujfb.js +0 -137
  949. package/out/_next/static/chunks/0we-.8a4ky2dw.js +0 -2
  950. package/out/_next/static/chunks/0whq69wyy9mrh.js +0 -1
  951. package/out/_next/static/chunks/0wjcrj2l-j~_f.js +0 -188
  952. package/out/_next/static/chunks/0wo4urhtm22ug.js +0 -1
  953. package/out/_next/static/chunks/0wuu4uyer4mlk.js +0 -31
  954. package/out/_next/static/chunks/0x4-t7xmjlqx1.js +0 -12
  955. package/out/_next/static/chunks/0x6_x80dsgoq7.js +0 -2
  956. package/out/_next/static/chunks/0xczkhpv81j3p.js +0 -1
  957. package/out/_next/static/chunks/0xo2uquse155f.js +0 -26
  958. package/out/_next/static/chunks/0xve~a_ipc.21.js +0 -81
  959. package/out/_next/static/chunks/0y153o27bxgcb.js +0 -1
  960. package/out/_next/static/chunks/0y51ico3_h9g3.js +0 -346
  961. package/out/_next/static/chunks/0y5ttyo5uc5l-.js +0 -15
  962. package/out/_next/static/chunks/0ydxs-rl4u1j7.js +0 -8
  963. package/out/_next/static/chunks/0yrt60iy59wz5.js +0 -13
  964. package/out/_next/static/chunks/0z.rzro53h5n6.js +0 -15
  965. package/out/_next/static/chunks/0zhqlp5hndrqa.js +0 -1
  966. package/out/_next/static/chunks/0znn2bf~0xx64.js +0 -46
  967. package/out/_next/static/chunks/0zpe1nbzz~f8h.js +0 -5
  968. package/out/_next/static/chunks/0zr4c4gwoe48t.js +0 -15
  969. package/out/_next/static/chunks/0~gsuncyic_fy.js +0 -2
  970. package/out/_next/static/chunks/0~tk5o7vtfrjq.js +0 -66
  971. package/out/_next/static/chunks/103dw~jwhci8m.js +0 -61
  972. package/out/_next/static/chunks/1041bp0usprml.js +0 -217
  973. package/out/_next/static/chunks/10bhd86pfsoy5.js +0 -3
  974. package/out/_next/static/chunks/10jmwo0cv2790.js +0 -100
  975. package/out/_next/static/chunks/10m8c175impy1.js +0 -135
  976. package/out/_next/static/chunks/10y5-.kflf93t.js +0 -13
  977. package/out/_next/static/chunks/11_s223xijkg..js +0 -14
  978. package/out/_next/static/chunks/11fl4v~k-i6dd.js +0 -1
  979. package/out/_next/static/chunks/11rfgl5vsu7np.js +0 -147
  980. package/out/_next/static/chunks/11sml2nj796.7.js +0 -59
  981. package/out/_next/static/chunks/11smy7~k0731f.js +0 -12
  982. package/out/_next/static/chunks/12e_gn-hj1ad4.js +0 -5
  983. package/out/_next/static/chunks/12nnf6pgi3n_-.js +0 -16
  984. package/out/_next/static/chunks/12q9qfk5yyvku.js +0 -288
  985. package/out/_next/static/chunks/13h_3r03rklr2.js +0 -54
  986. package/out/_next/static/chunks/13tjz9q-ls~t3.js +0 -1
  987. package/out/_next/static/chunks/13ytbvm.zbpoc.js +0 -13
  988. package/out/_next/static/chunks/13ztct7h9n9ly.js +0 -1
  989. package/out/_next/static/chunks/14.go5qd.nd-p.js +0 -22
  990. package/out/_next/static/chunks/14e4xylnze3x2.js +0 -1
  991. package/out/_next/static/chunks/14kk7enrk.1zd.js +0 -14
  992. package/out/_next/static/chunks/14q69-rwokbvm.js +0 -13
  993. package/out/_next/static/chunks/14tbg01czewdy.js +0 -1
  994. package/out/_next/static/chunks/14vhb8kz5tl75.js +0 -471
  995. package/out/_next/static/chunks/15r--ckscx-95.js +0 -227
  996. package/out/_next/static/chunks/15wy-.8-w435h.js +0 -92
  997. package/out/_next/static/chunks/15z9m-o4tbe0n.js +0 -1
  998. package/out/_next/static/chunks/169ub5vhwew62.js +0 -1
  999. package/out/_next/static/chunks/16_-z_hnq-xk7.js +0 -12
  1000. package/out/_next/static/chunks/16s_3ks~~cizu.js +0 -31
  1001. package/out/_next/static/chunks/16wl81ja44b1o.js +0 -54
  1002. package/out/_next/static/chunks/16yuttvlotzf1.js +0 -13
  1003. package/out/_next/static/chunks/17iwj3.fr3dk8.js +0 -7
  1004. package/out/_next/static/chunks/17l28vjc_z915.js +0 -596
  1005. package/out/_next/static/chunks/17v04.so.9g1..js +0 -1
  1006. package/out/_next/static/chunks/181fxym9wgh_m.js +0 -1
  1007. package/out/_next/static/chunks/188m.-obobpy_.js +0 -178
  1008. package/out/_next/static/chunks/turbopack-0-c-m~y_.l8n2.js +0 -1
  1009. package/out/_next/static/chunks/turbopack-0-ly3m1ffx4wa.js +0 -1
  1010. package/out/_next/static/chunks/turbopack-0-w~ect25bcud.js +0 -1
  1011. package/out/_next/static/chunks/turbopack-0.2nskz5ux6vf.js +0 -1
  1012. package/out/_next/static/chunks/turbopack-00s1egv_1qxjy.js +0 -1
  1013. package/out/_next/static/chunks/turbopack-00xxfsstzot2t.js +0 -1
  1014. package/out/_next/static/chunks/turbopack-01cocbtxks9vh.js +0 -1
  1015. package/out/_next/static/chunks/turbopack-032afnigdvseo.js +0 -1
  1016. package/out/_next/static/chunks/turbopack-03hvtuilfwgpp.js +0 -1
  1017. package/out/_next/static/chunks/turbopack-04r-j8f.wnbc8.js +0 -1
  1018. package/out/_next/static/chunks/turbopack-06m0ig9acgabg.js +0 -1
  1019. package/out/_next/static/chunks/turbopack-06rfum.y.5-0h.js +0 -1
  1020. package/out/_next/static/chunks/turbopack-07kkmwgy.zqc4.js +0 -1
  1021. package/out/_next/static/chunks/turbopack-07qbascdm6h.j.js +0 -1
  1022. package/out/_next/static/chunks/turbopack-087jzd1gou_ln.js +0 -1
  1023. package/out/_next/static/chunks/turbopack-08h61bgwzagra.js +0 -1
  1024. package/out/_next/static/chunks/turbopack-09d04tqccs343.js +0 -1
  1025. package/out/_next/static/chunks/turbopack-0a1fdpd8.q282.js +0 -1
  1026. package/out/_next/static/chunks/turbopack-0azc8sns1skk7.js +0 -1
  1027. package/out/_next/static/chunks/turbopack-0b6fo_~4ih.xu.js +0 -1
  1028. package/out/_next/static/chunks/turbopack-0bv6z-ics5a1v.js +0 -1
  1029. package/out/_next/static/chunks/turbopack-0c6v~i5zl-_gb.js +0 -1
  1030. package/out/_next/static/chunks/turbopack-0cn_kcha7l~dv.js +0 -1
  1031. package/out/_next/static/chunks/turbopack-0d6899l2l47lo.js +0 -1
  1032. package/out/_next/static/chunks/turbopack-0f3a-2xdfi37o.js +0 -1
  1033. package/out/_next/static/chunks/turbopack-0h1nt4kh7q.sg.js +0 -1
  1034. package/out/_next/static/chunks/turbopack-0hh49n1y8gh-z.js +0 -1
  1035. package/out/_next/static/chunks/turbopack-0ike2xsgynih8.js +0 -1
  1036. package/out/_next/static/chunks/turbopack-0iyvc628rll34.js +0 -1
  1037. package/out/_next/static/chunks/turbopack-0j-vlj505~ob9.js +0 -1
  1038. package/out/_next/static/chunks/turbopack-0j4w2c8pgyzts.js +0 -1
  1039. package/out/_next/static/chunks/turbopack-0kblf3k62bseb.js +0 -1
  1040. package/out/_next/static/chunks/turbopack-0l-~7v3-4~9hg.js +0 -1
  1041. package/out/_next/static/chunks/turbopack-0lb9brrvzbipj.js +0 -1
  1042. package/out/_next/static/chunks/turbopack-0lxybl6vxlhqz.js +0 -1
  1043. package/out/_next/static/chunks/turbopack-0mlri9n~ktoxa.js +0 -1
  1044. package/out/_next/static/chunks/turbopack-0mrgw~e1q9n4l.js +0 -1
  1045. package/out/_next/static/chunks/turbopack-0na33zduv8spb.js +0 -1
  1046. package/out/_next/static/chunks/turbopack-0o_.gb8s5jo85.js +0 -1
  1047. package/out/_next/static/chunks/turbopack-0ofwh3p918g-t.js +0 -1
  1048. package/out/_next/static/chunks/turbopack-0o~anfgw~s_~q.js +0 -1
  1049. package/out/_next/static/chunks/turbopack-0q3dp3wkxb9ro.js +0 -1
  1050. package/out/_next/static/chunks/turbopack-0q5hq623ooh_q.js +0 -1
  1051. package/out/_next/static/chunks/turbopack-0rd~zo~yh9.xl.js +0 -1
  1052. package/out/_next/static/chunks/turbopack-0s3jauzip9.x..js +0 -1
  1053. package/out/_next/static/chunks/turbopack-0uukmkfqyl0h8.js +0 -1
  1054. package/out/_next/static/chunks/turbopack-0w_qsium_grk3.js +0 -1
  1055. package/out/_next/static/chunks/turbopack-0wbajkw2~1l3z.js +0 -1
  1056. package/out/_next/static/chunks/turbopack-0wej6bu7ey9au.js +0 -1
  1057. package/out/_next/static/chunks/turbopack-0wk424kj.kar2.js +0 -1
  1058. package/out/_next/static/chunks/turbopack-0xew6rccsve8y.js +0 -1
  1059. package/out/_next/static/chunks/turbopack-0y898tb-~kae~.js +0 -1
  1060. package/out/_next/static/chunks/turbopack-0~lzxx1ip4b0u.js +0 -1
  1061. package/out/_next/static/chunks/turbopack-11.ar48mv3rch.js +0 -1
  1062. package/out/_next/static/chunks/turbopack-11eqwvrhzm6gb.js +0 -1
  1063. package/out/_next/static/chunks/turbopack-12cd3.da_pv_e.js +0 -1
  1064. package/out/_next/static/chunks/turbopack-12hcx9pi_e_wy.js +0 -1
  1065. package/out/_next/static/chunks/turbopack-12pksi_8~z4-a.js +0 -1
  1066. package/out/_next/static/chunks/turbopack-146i7rj93.pk3.js +0 -1
  1067. package/out/_next/static/chunks/turbopack-15d8c1ob0a6m0.js +0 -1
  1068. package/out/_next/static/chunks/turbopack-16-bzzuvc9d9..js +0 -1
  1069. package/out/_next/static/chunks/turbopack-17sr.m9o6jhdb.js +0 -1
  1070. package/out/_next/static/chunks/turbopack-1829xb~o3h36e.js +0 -1
  1071. package/out/admin-ui-permissions.js +0 -129
  1072. /package/out/_next/static/{_ZCNVAj2ptQ3WvyS9d8fH → z5KrmhOz2mLscINN5EbUf}/_clientMiddlewareManifest.js +0 -0
  1073. /package/out/_next/static/{_ZCNVAj2ptQ3WvyS9d8fH → z5KrmhOz2mLscINN5EbUf}/_ssgManifest.js +0 -0
package/dist/form.js ADDED
@@ -0,0 +1,2606 @@
1
+ import { TextField_default } from './chunk-HTPSKUXQ.js';
2
+ export { FormErrors_default as FormErrors, MarkdownTextAreaField_default as MarkdownTextAreaField, TextField_default as TextField } from './chunk-HTPSKUXQ.js';
3
+ import { Z, l, b, u2, V, Ae, j, L, S as S$1, c as c$1, s, N, $0c4a58759813079a$export$4e328f61c538687f, $e969f22b6713ca4a$export$ae780daf29e6d456, w, e, u as u$1, Fe, ye, Re, Te, w2, u4, s2, g2, u3 as u3$1, p as p$1, c2 as c2$1, f, a as a$1, JSONView_default } from './chunk-AE5LOZGH.js';
4
+ import { HelpText_default, FieldWrapper_default, clsx_default, Badge_default, ChevronUpDownIcon_default, CheckIcon_default } from './chunk-H6G4UTZ5.js';
5
+ export { FieldWrapper_default as FieldWrapper, Form_default as Form, SubmitButton_default as SubmitButton, TagInputField_default as TagInputField } from './chunk-H6G4UTZ5.js';
6
+ import './chunk-VDKQGOMV.js';
7
+ import { useField_default, validateMaxLength, validateDate, validateEmail } from './chunk-I64TXIE7.js';
8
+ import './chunk-HERLM47Z.js';
9
+ import { m, n as n$1, E } from './chunk-FDHXLNZQ.js';
10
+ import { A, Y, r, a, o2, u, S, n, x, k3 as k3$1, n2, K, c, i3, y, n3, o4, V as V$1, p, d, w as w$1, u2 as u2$1, u3, N as N$1, p2, f2, y2, x2, le, s as s$1, o, n4, c2, l2, l as l$1, T, k2, G } from './chunk-QHR23GVH.js';
11
+ import './chunk-J23QSWDL.js';
12
+ import './chunk-WPLOTFGW.js';
13
+ import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
14
+ import * as L2 from 'react';
15
+ import L2__default, { createContext, useRef, useCallback, useMemo, Fragment, useState, useContext, useEffect } from 'react';
16
+ import { flushSync } from 'react-dom';
17
+
18
+ var FieldWithHelp = ({
19
+ helpKey,
20
+ helpText,
21
+ helpValues,
22
+ ...textFieldProps
23
+ }) => {
24
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
25
+ /* @__PURE__ */ jsx(TextField_default, { ...textFieldProps }),
26
+ (helpKey || helpText) && /* @__PURE__ */ jsx(
27
+ HelpText_default,
28
+ {
29
+ messageKey: helpKey || `${textFieldProps.name}_help`,
30
+ defaultMessage: helpText,
31
+ values: helpValues,
32
+ className: "mt-1"
33
+ }
34
+ )
35
+ ] });
36
+ };
37
+ var FieldWithHelp_default = FieldWithHelp;
38
+ var TextAreaField = ({
39
+ maxLength,
40
+ validators = [],
41
+ ...props
42
+ }) => {
43
+ const field = useField_default({
44
+ validators: [...validators, maxLength && validateMaxLength(maxLength)],
45
+ ...props
46
+ });
47
+ return /* @__PURE__ */ jsx(FieldWrapper_default, { ...field, children: /* @__PURE__ */ jsx(
48
+ "textarea",
49
+ {
50
+ className: clsx_default(
51
+ "relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-400 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 border-border-default px-4 py-2.5 text-sm text-slate-900 placeholder-slate-400 shadow-xs placeholder:text-slate-400 focus:outline-hidden focus:ring-2 focus:ring-focus-ring",
52
+ field.className,
53
+ {
54
+ "border-rose-700 placeholder:text-rose-300 placeholder-rose-300": !!field.error
55
+ }
56
+ ),
57
+ disabled: field.disabled,
58
+ id: field.name,
59
+ name: field.name,
60
+ rows: field.rows || 10,
61
+ onChange: field.onChange,
62
+ onBlur: field.onBlur,
63
+ placeholder: field.placeholder,
64
+ autoComplete: field.autoComplete || "off",
65
+ value: field.value
66
+ }
67
+ ) });
68
+ };
69
+ var TextAreaField_default = TextAreaField;
70
+ var SelectField = (props) => {
71
+ const { options, ...field } = useField_default(props);
72
+ const { className } = props || { className: "" };
73
+ return /* @__PURE__ */ jsx(FieldWrapper_default, { ...field, children: /* @__PURE__ */ jsx("div", { className: "select-wrap", children: /* @__PURE__ */ jsxs(
74
+ "select",
75
+ {
76
+ className: clsx_default(
77
+ "block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-border-default py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring sm:text-sm",
78
+ className,
79
+ {
80
+ "border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400": !!field.error
81
+ }
82
+ ),
83
+ disabled: field.disabled,
84
+ id: field.name,
85
+ name: field.name,
86
+ onChange: field.onChange,
87
+ onBlur: field.onBlur,
88
+ value: field.value,
89
+ children: [
90
+ /* @__PURE__ */ jsx(
91
+ "option",
92
+ {
93
+ className: "dark:text-slate-200",
94
+ value: "",
95
+ disabled: field.required,
96
+ hidden: field.required,
97
+ children: field.placeholder || field.label
98
+ }
99
+ ),
100
+ Object.entries(options).map(([value, display]) => /* @__PURE__ */ jsx("option", { className: "dark:text-slate-200", value, children: display }, value))
101
+ ]
102
+ }
103
+ ) }) });
104
+ };
105
+ var SelectField_default = SelectField;
106
+ var CheckboxField = (props) => {
107
+ const {
108
+ disabled,
109
+ labelClassName,
110
+ containerClassName,
111
+ inputClassName,
112
+ ...checkboxProps
113
+ } = props;
114
+ const field = useField_default({ ...props, type: "checkbox" });
115
+ return /* @__PURE__ */ jsxs(
116
+ "div",
117
+ {
118
+ className: clsx_default(
119
+ "",
120
+ {
121
+ "text-rose-600": !!field.error,
122
+ checkbox: true,
123
+ disabled: field.disabled,
124
+ required: field.required
125
+ },
126
+ containerClassName
127
+ ),
128
+ children: [
129
+ /* @__PURE__ */ jsx(
130
+ "input",
131
+ {
132
+ checked: !!field.value,
133
+ disabled,
134
+ id: field.name,
135
+ name: field.name,
136
+ onChange: field.onChange,
137
+ onBlur: field.onBlur,
138
+ type: "checkbox",
139
+ className: clsx_default(
140
+ "h-4 w-4 rounded-xs border-border-default bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-focus-ring",
141
+ inputClassName,
142
+ props.className
143
+ ),
144
+ ...checkboxProps
145
+ }
146
+ ),
147
+ /* @__PURE__ */ jsx(
148
+ "label",
149
+ {
150
+ htmlFor: field.name,
151
+ className: clsx_default("text-sm text-text-primary", labelClassName, {
152
+ "text-danger": !!field.error
153
+ }),
154
+ children: field.label
155
+ }
156
+ )
157
+ ]
158
+ }
159
+ );
160
+ };
161
+ var CheckboxField_default = CheckboxField;
162
+ var ChoicesField = ({ multiple, options, ...props }) => {
163
+ const field = useField_default({ multiple, options, ...props });
164
+ const {
165
+ choiceClassName = "col-md-6 col-lg-4'",
166
+ choiceContainerClassName = "",
167
+ labelClassName = "",
168
+ inputClassName = ""
169
+ } = props;
170
+ const mappableValue = typeof field.value === "string" ? [field.value] : Array.isArray(field.value) ? field.value : [];
171
+ const handleChange = (event) => {
172
+ if (field.multiple) {
173
+ const clickedValue = event.target.value;
174
+ const newValues = event.target.checked ? [...mappableValue, clickedValue] : mappableValue.filter((v3) => v3 !== clickedValue);
175
+ field.setValue(newValues, true);
176
+ } else {
177
+ field.onChange(event);
178
+ }
179
+ };
180
+ const { className, hideLabel } = props;
181
+ return /* @__PURE__ */ jsxs(
182
+ "div",
183
+ {
184
+ className: clsx_default("container", className, {
185
+ "is-invalid": !!field.error,
186
+ disabled: field.disabled,
187
+ required: field.required
188
+ }),
189
+ children: [
190
+ /* @__PURE__ */ jsx(
191
+ "label",
192
+ {
193
+ className: clsx_default("text-sm", className, {
194
+ "text-rose-600": !!field.error,
195
+ "sr-only": hideLabel
196
+ }),
197
+ children: field.label
198
+ }
199
+ ),
200
+ /* @__PURE__ */ jsx(
201
+ "div",
202
+ {
203
+ className: clsx_default(
204
+ `row flex flex-row gap-3 ${choiceContainerClassName}`,
205
+ className
206
+ ),
207
+ children: Object.entries(field.options).map(([value, display]) => /* @__PURE__ */ jsx(
208
+ "div",
209
+ {
210
+ className: clsx_default(`-ml-2 ${choiceClassName}`, className),
211
+ children: /* @__PURE__ */ jsxs(
212
+ "label",
213
+ {
214
+ htmlFor: `${field.name}-${value}`,
215
+ className: clsx_default("", labelClassName),
216
+ children: [
217
+ /* @__PURE__ */ jsx(
218
+ "input",
219
+ {
220
+ value,
221
+ checked: mappableValue.includes(value),
222
+ className: clsx_default(
223
+ "mr-2 h-4 w-4 rounded-sm border-border-default bg-white dark:!bg-slate-800 text-slate-950 focus:ring-focus-ring",
224
+ inputClassName
225
+ ),
226
+ disabled: field.disabled,
227
+ id: `${field.name}-${value}`,
228
+ name: field.name,
229
+ onChange: handleChange,
230
+ type: field.multiple ? "checkbox" : "radio"
231
+ }
232
+ ),
233
+ /* @__PURE__ */ jsx("span", { children: display })
234
+ ]
235
+ }
236
+ )
237
+ },
238
+ value
239
+ ))
240
+ }
241
+ )
242
+ ]
243
+ }
244
+ );
245
+ };
246
+ var ChoicesField_default = ChoicesField;
247
+ var DatePickerField = ({
248
+ validators = [],
249
+ className,
250
+ ...props
251
+ }) => {
252
+ const field = useField_default({
253
+ validators: [...validators, validateDate],
254
+ ...props
255
+ });
256
+ const formattedValue = field.value ? new Date(field.value).toISOString().split("T")[0] : "";
257
+ return /* @__PURE__ */ jsx(FieldWrapper_default, { ...field, className: props.containerClassName, children: /* @__PURE__ */ jsx(
258
+ "input",
259
+ {
260
+ type: "date",
261
+ id: field.id,
262
+ name: field.name,
263
+ disabled: field.disabled,
264
+ className: clsx_default(
265
+ "relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-border-default px-4 py-2.5 text-sm text-text-primary dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-focus-ring",
266
+ className,
267
+ {
268
+ "border-rose-700 placeholder:text-rose-300": !!field.error
269
+ }
270
+ ),
271
+ onChange: field.onChange,
272
+ onBlur: field.onBlur,
273
+ value: formattedValue,
274
+ placeholder: field.placeholder,
275
+ autoComplete: "off",
276
+ ...props
277
+ }
278
+ ) });
279
+ };
280
+ var DatePickerField_default = DatePickerField;
281
+ var EmailField = ({ validators = [], value = "", ...props }) => {
282
+ return /* @__PURE__ */ jsx(
283
+ TextField_default,
284
+ {
285
+ ...{
286
+ value,
287
+ autoComplete: props?.autoComplete || "on",
288
+ name: "email",
289
+ validators: [...validators, validateEmail],
290
+ ...props
291
+ }
292
+ }
293
+ );
294
+ };
295
+ var EmailField_default = EmailField;
296
+ var PasswordField = ({ autoComplete = "on", ...props }) => {
297
+ const [isPasswordVisible, setPasswordVisible] = useState(false);
298
+ const togglePassword = (event) => {
299
+ event.preventDefault();
300
+ setPasswordVisible(!isPasswordVisible);
301
+ };
302
+ return /* @__PURE__ */ jsxs("div", { className: clsx_default("relative", props.className), children: [
303
+ /* @__PURE__ */ jsx(
304
+ TextField_default,
305
+ {
306
+ ...{
307
+ autoComplete: autoComplete || "on",
308
+ name: "password",
309
+ ...props,
310
+ type: isPasswordVisible ? "text" : "password"
311
+ }
312
+ }
313
+ ),
314
+ /* @__PURE__ */ jsx(
315
+ "span",
316
+ {
317
+ role: "button",
318
+ tabIndex: -1,
319
+ "aria-label": "toggle password visibility",
320
+ className: "absolute translate-y-[-137%] outline-hidden block right-3",
321
+ onClick: togglePassword,
322
+ onKeyUp: togglePassword,
323
+ children: isPasswordVisible ? /* @__PURE__ */ jsxs(
324
+ "svg",
325
+ {
326
+ xmlns: "http://www.w3.org/2000/svg",
327
+ className: "h-6 w-6 stroke-slate-700",
328
+ fill: "none",
329
+ viewBox: "0 0 24 24",
330
+ children: [
331
+ /* @__PURE__ */ jsx(
332
+ "path",
333
+ {
334
+ strokeLinecap: "round",
335
+ strokeLinejoin: "round",
336
+ strokeWidth: "2",
337
+ d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
338
+ }
339
+ ),
340
+ /* @__PURE__ */ jsx(
341
+ "path",
342
+ {
343
+ strokeLinecap: "round",
344
+ strokeLinejoin: "round",
345
+ strokeWidth: "2",
346
+ d: "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"
347
+ }
348
+ )
349
+ ]
350
+ }
351
+ ) : /* @__PURE__ */ jsx(
352
+ "svg",
353
+ {
354
+ xmlns: "http://www.w3.org/2000/svg",
355
+ className: "h-6 w-6 stroke-slate-700",
356
+ fill: "none",
357
+ viewBox: "0 0 24 24",
358
+ children: /* @__PURE__ */ jsx(
359
+ "path",
360
+ {
361
+ strokeLinecap: "round",
362
+ strokeLinejoin: "round",
363
+ strokeWidth: "2",
364
+ d: "M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"
365
+ }
366
+ )
367
+ }
368
+ )
369
+ }
370
+ )
371
+ ] });
372
+ };
373
+ var PasswordField_default = PasswordField;
374
+ var JSONAreaField = ({
375
+ validators = [],
376
+ rows = 10,
377
+ ...props
378
+ }) => {
379
+ const field = useField_default({
380
+ ...props,
381
+ validators: [
382
+ ...validators,
383
+ {
384
+ isValid: (v3) => {
385
+ try {
386
+ JSON?.parse(v3);
387
+ return true;
388
+ } catch (err) {
389
+ return false;
390
+ }
391
+ },
392
+ intlMessageDescriptor: {
393
+ id: "invalid_json_input",
394
+ defaultMessage: "Invalid JSON input"
395
+ }
396
+ }
397
+ ]
398
+ });
399
+ const handleOnChange = (e2) => {
400
+ try {
401
+ JSON.parse(e2.target.value || "{}");
402
+ field.setError("");
403
+ } catch (err) {
404
+ field.setError(err.message?.replace("JSON.parse", ""));
405
+ } finally {
406
+ field.setValue(e2.target.value, true);
407
+ field.setTouched(true);
408
+ }
409
+ };
410
+ const handleOnBlur = (e2) => {
411
+ try {
412
+ field.setValue(
413
+ JSON.stringify(JSON.parse(e2.target.value), void 0, 2),
414
+ true
415
+ );
416
+ field.setError("");
417
+ } catch (err) {
418
+ field.setError(err.message);
419
+ }
420
+ };
421
+ return /* @__PURE__ */ jsx(FieldWrapper_default, { ...field, children: /* @__PURE__ */ jsx(
422
+ JSONView_default,
423
+ {
424
+ className: clsx_default(
425
+ "mt-1 block w-full max-w-full rounded-md border-1 border-border-default dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-focus-ring sm:text-sm",
426
+ {
427
+ "border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600": !!field.error
428
+ },
429
+ props.className
430
+ ),
431
+ disabled: field.disabled,
432
+ id: field.name,
433
+ name: field.name,
434
+ onChange: handleOnChange,
435
+ onBlur: handleOnBlur,
436
+ placeholder: field.placeholder,
437
+ autoComplete: field.autoComplete,
438
+ value: field.value
439
+ }
440
+ ) });
441
+ };
442
+ var JSONAreaField_default = JSONAreaField;
443
+
444
+ // ../node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js
445
+ function getMeasurementKey(item) {
446
+ return typeof item === "object" ? item.key : item;
447
+ }
448
+ function createLazyMeasurementsView(cache, flat) {
449
+ const count = cache.length;
450
+ return new Proxy(cache, {
451
+ get(target, prop, receiver) {
452
+ if (typeof prop === "string") {
453
+ const c5 = prop.charCodeAt(0);
454
+ if (c5 >= 48 && c5 <= 57) {
455
+ const i2 = +prop;
456
+ if (Number.isInteger(i2) && i2 >= 0 && i2 < count) {
457
+ let v3 = target[i2];
458
+ if (typeof v3 !== "object") {
459
+ const s4 = flat[i2 * 2];
460
+ v3 = target[i2] = {
461
+ index: i2,
462
+ key: v3,
463
+ start: s4,
464
+ size: flat[i2 * 2 + 1],
465
+ end: s4 + flat[i2 * 2 + 1],
466
+ lane: 0
467
+ };
468
+ }
469
+ return v3;
470
+ }
471
+ }
472
+ if (prop === "length") return count;
473
+ }
474
+ return Reflect.get(target, prop, receiver);
475
+ }
476
+ });
477
+ }
478
+
479
+ // ../node_modules/@tanstack/virtual-core/dist/esm/utils.js
480
+ function memo(getDeps, fn, opts) {
481
+ let deps = opts.initialDeps ?? [];
482
+ let result;
483
+ let isInitial = true;
484
+ function memoizedFunction() {
485
+ var _a;
486
+ const debugEnabled = !!opts.key && !!((_a = opts.debug) == null ? void 0 : _a.call(opts));
487
+ let depTime = 0;
488
+ if (debugEnabled) depTime = Date.now();
489
+ const newDeps = getDeps();
490
+ const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);
491
+ if (!depsChanged) {
492
+ return result;
493
+ }
494
+ deps = newDeps;
495
+ let resultTime = 0;
496
+ if (debugEnabled) resultTime = Date.now();
497
+ result = fn(...newDeps);
498
+ if (debugEnabled) {
499
+ const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
500
+ const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
501
+ const resultFpsPercentage = resultEndTime / 16;
502
+ const pad = (str, num) => {
503
+ str = String(str);
504
+ while (str.length < num) {
505
+ str = " " + str;
506
+ }
507
+ return str;
508
+ };
509
+ console.info(
510
+ `%c\u23F1 ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`,
511
+ `
512
+ font-size: .6rem;
513
+ font-weight: bold;
514
+ color: hsl(${Math.max(
515
+ 0,
516
+ Math.min(120 - 120 * resultFpsPercentage, 120)
517
+ )}deg 100% 31%);`,
518
+ opts == null ? void 0 : opts.key
519
+ );
520
+ }
521
+ if ((opts == null ? void 0 : opts.onChange) && !(isInitial && opts.skipInitialOnChange)) {
522
+ opts.onChange(result);
523
+ }
524
+ isInitial = false;
525
+ return result;
526
+ }
527
+ memoizedFunction.updateDeps = (newDeps) => {
528
+ deps = newDeps;
529
+ };
530
+ return memoizedFunction;
531
+ }
532
+ function notUndefined(value, msg) {
533
+ if (value === void 0) {
534
+ throw new Error(`Unexpected undefined${""}`);
535
+ } else {
536
+ return value;
537
+ }
538
+ }
539
+ var approxEqual = (a4, b3) => Math.abs(a4 - b3) < 1.01;
540
+ var debounce = (targetWindow, fn, ms) => {
541
+ let timeoutId;
542
+ return Object.assign(
543
+ function(...args) {
544
+ targetWindow.clearTimeout(timeoutId);
545
+ timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
546
+ },
547
+ {
548
+ // The handle is closure-local, so a caller that has already
549
+ // unsubscribed has no way to stop a queued call. Teardown paths use
550
+ // this to drop the pending invocation instead of letting it land.
551
+ cancel: () => {
552
+ targetWindow.clearTimeout(timeoutId);
553
+ }
554
+ }
555
+ );
556
+ };
557
+
558
+ // ../node_modules/@tanstack/virtual-core/dist/esm/index.js
559
+ var _isIOSResult;
560
+ var isIOSWebKit = () => {
561
+ if (_isIOSResult !== void 0) return _isIOSResult;
562
+ if (typeof navigator === "undefined") return _isIOSResult = false;
563
+ if (/iP(hone|od|ad)/.test(navigator.userAgent)) return _isIOSResult = true;
564
+ const mtp = navigator.maxTouchPoints;
565
+ return _isIOSResult = navigator.platform === "MacIntel" && mtp !== void 0 && mtp > 0;
566
+ };
567
+ var getRect = (element) => {
568
+ const { offsetWidth, offsetHeight } = element;
569
+ return { width: offsetWidth, height: offsetHeight };
570
+ };
571
+ var defaultKeyExtractor = (index) => index;
572
+ var defaultRangeExtractor = (range) => {
573
+ const start = Math.max(range.startIndex - range.overscan, 0);
574
+ const end = Math.min(range.endIndex + range.overscan, range.count - 1);
575
+ const len = end - start + 1;
576
+ const arr = new Array(len);
577
+ for (let i2 = 0; i2 < len; i2++) {
578
+ arr[i2] = start + i2;
579
+ }
580
+ return arr;
581
+ };
582
+ var observeElementRect = (instance, cb) => {
583
+ const element = instance.scrollElement;
584
+ if (!element) {
585
+ return;
586
+ }
587
+ const targetWindow = instance.targetWindow;
588
+ if (!targetWindow) {
589
+ return;
590
+ }
591
+ const handler = (rect) => {
592
+ const { width, height } = rect;
593
+ cb({ width: Math.round(width), height: Math.round(height) });
594
+ };
595
+ handler(getRect(element));
596
+ if (!targetWindow.ResizeObserver) {
597
+ return () => {
598
+ };
599
+ }
600
+ const observer = new targetWindow.ResizeObserver((entries) => {
601
+ const run = () => {
602
+ const entry = entries[0];
603
+ if (entry == null ? void 0 : entry.borderBoxSize) {
604
+ const box = entry.borderBoxSize[0];
605
+ if (box) {
606
+ handler({ width: box.inlineSize, height: box.blockSize });
607
+ return;
608
+ }
609
+ }
610
+ handler(getRect(element));
611
+ };
612
+ instance.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
613
+ });
614
+ observer.observe(element, { box: "border-box" });
615
+ return () => {
616
+ observer.unobserve(element);
617
+ };
618
+ };
619
+ var addEventListenerOptions = {
620
+ passive: true
621
+ };
622
+ var supportsScrollend = typeof window == "undefined" ? true : "onscrollend" in window;
623
+ var observeOffset = (instance, cb, readOffset) => {
624
+ const element = instance.scrollElement;
625
+ if (!element) {
626
+ return;
627
+ }
628
+ const targetWindow = instance.targetWindow;
629
+ if (!targetWindow) {
630
+ return;
631
+ }
632
+ const registerScrollendEvent = instance.options.useScrollendEvent && supportsScrollend;
633
+ let offset = 0;
634
+ const fallback = registerScrollendEvent ? null : debounce(
635
+ targetWindow,
636
+ () => cb(readOffset(element), false),
637
+ instance.options.isScrollingResetDelay
638
+ );
639
+ const createHandler = (isScrolling) => () => {
640
+ offset = readOffset(element);
641
+ fallback == null ? void 0 : fallback();
642
+ cb(offset, isScrolling);
643
+ };
644
+ const handler = createHandler(true);
645
+ const endHandler = createHandler(false);
646
+ element.addEventListener("scroll", handler, addEventListenerOptions);
647
+ if (registerScrollendEvent) {
648
+ element.addEventListener("scrollend", endHandler, addEventListenerOptions);
649
+ }
650
+ return () => {
651
+ element.removeEventListener("scroll", handler);
652
+ if (registerScrollendEvent) {
653
+ element.removeEventListener("scrollend", endHandler);
654
+ }
655
+ fallback == null ? void 0 : fallback.cancel();
656
+ };
657
+ };
658
+ var observeElementOffset = (instance, cb) => observeOffset(instance, cb, (el) => {
659
+ const { horizontal, isRtl } = instance.options;
660
+ return horizontal ? el.scrollLeft * (isRtl && -1 || 1) : el.scrollTop;
661
+ });
662
+ var measureElement = (element, entry, instance) => {
663
+ if (instance.options.useCachedMeasurements) {
664
+ const index = instance.indexFromElement(element);
665
+ const key = instance.options.getItemKey(index);
666
+ return instance.itemSizeCache.get(key) ?? instance.options.estimateSize(index);
667
+ }
668
+ if (entry == null ? void 0 : entry.borderBoxSize) {
669
+ const box = entry.borderBoxSize[0];
670
+ if (box) {
671
+ const size = Math.round(
672
+ box[instance.options.horizontal ? "inlineSize" : "blockSize"]
673
+ );
674
+ return size;
675
+ }
676
+ }
677
+ if (!entry) {
678
+ const index = instance.indexFromElement(element);
679
+ const key = instance.options.getItemKey(index);
680
+ const cachedSize = instance.itemSizeCache.get(key);
681
+ if (cachedSize !== void 0) {
682
+ return cachedSize;
683
+ }
684
+ }
685
+ return element[instance.options.horizontal ? "offsetWidth" : "offsetHeight"];
686
+ };
687
+ var scrollWithAdjustments = (offset, {
688
+ adjustments = 0,
689
+ behavior
690
+ }, instance) => {
691
+ var _a, _b;
692
+ (_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null ? void 0 : _b.call(_a, {
693
+ [instance.options.horizontal ? "left" : "top"]: offset + adjustments,
694
+ behavior
695
+ });
696
+ };
697
+ var elementScroll = scrollWithAdjustments;
698
+ function isAppendWithTrim(prevCount, nextCount, getPreviousKey, getNextKey) {
699
+ if (nextCount === 0) return false;
700
+ const firstKey = getNextKey(0);
701
+ const removedKeys = /* @__PURE__ */ new Set();
702
+ let removedCount = 0;
703
+ while (removedCount < prevCount) {
704
+ const key = getPreviousKey(removedCount);
705
+ if (key === firstKey) break;
706
+ removedKeys.add(key);
707
+ removedCount++;
708
+ }
709
+ const retainedCount = prevCount - removedCount;
710
+ if (retainedCount === 0 || retainedCount >= nextCount) return false;
711
+ for (let i2 = 0; i2 < retainedCount; i2++) {
712
+ if (getNextKey(i2) !== getPreviousKey(removedCount + i2)) return false;
713
+ }
714
+ for (let i2 = retainedCount; i2 < nextCount; i2++) {
715
+ if (removedKeys.has(getNextKey(i2))) return false;
716
+ }
717
+ return true;
718
+ }
719
+ var Virtualizer = class {
720
+ constructor(opts) {
721
+ this.unsubs = [];
722
+ this.scrollElement = null;
723
+ this.targetWindow = null;
724
+ this.isScrolling = false;
725
+ this.scrollState = null;
726
+ this.measurementsCache = [];
727
+ this._singleLaneMeasurements = null;
728
+ this.itemSizeCache = /* @__PURE__ */ new Map();
729
+ this.itemSizeCacheVersion = 0;
730
+ this.laneAssignments = /* @__PURE__ */ new Map();
731
+ this.pendingMin = null;
732
+ this.prevLanes = void 0;
733
+ this.lanesChangedFlag = false;
734
+ this.lanesSettling = false;
735
+ this.pendingScrollAnchor = null;
736
+ this.scrollRect = null;
737
+ this.scrollOffset = null;
738
+ this.scrollDirection = null;
739
+ this.scrollAdjustments = 0;
740
+ this._iosDeferredAdjustment = 0;
741
+ this._iosTouching = false;
742
+ this._iosJustTouchEnded = false;
743
+ this._iosTouchEndTimerId = null;
744
+ this._intendedScrollOffset = null;
745
+ this._clampedAdjustment = null;
746
+ this.elementsCache = /* @__PURE__ */ new Map();
747
+ this.now = () => {
748
+ var _a, _b, _c;
749
+ return ((_c = (_b = (_a = this.targetWindow) == null ? void 0 : _a.performance) == null ? void 0 : _b.now) == null ? void 0 : _c.call(_b)) ?? Date.now();
750
+ };
751
+ this.observer = /* @__PURE__ */ (() => {
752
+ let _ro = null;
753
+ const get = () => {
754
+ if (_ro) {
755
+ return _ro;
756
+ }
757
+ if (!this.targetWindow || !this.targetWindow.ResizeObserver) {
758
+ return null;
759
+ }
760
+ return _ro = new this.targetWindow.ResizeObserver((entries) => {
761
+ entries.forEach((entry) => {
762
+ const run = () => {
763
+ const node = entry.target;
764
+ const index = this.indexFromElement(node);
765
+ if (!node.isConnected) {
766
+ this.observer.unobserve(node);
767
+ for (const [cacheKey, cachedNode] of this.elementsCache) {
768
+ if (cachedNode === node) {
769
+ this.elementsCache.delete(cacheKey);
770
+ break;
771
+ }
772
+ }
773
+ return;
774
+ }
775
+ if (!this.isIndexInRange(index)) return;
776
+ if (this.shouldMeasureDuringScroll(index)) {
777
+ this.resizeItem(
778
+ index,
779
+ this.options.measureElement(node, entry, this)
780
+ );
781
+ }
782
+ };
783
+ this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
784
+ });
785
+ });
786
+ };
787
+ return {
788
+ disconnect: () => {
789
+ var _a;
790
+ (_a = get()) == null ? void 0 : _a.disconnect();
791
+ _ro = null;
792
+ },
793
+ observe: (target) => {
794
+ var _a;
795
+ return (_a = get()) == null ? void 0 : _a.observe(target, { box: "border-box" });
796
+ },
797
+ unobserve: (target) => {
798
+ var _a;
799
+ return (_a = get()) == null ? void 0 : _a.unobserve(target);
800
+ }
801
+ };
802
+ })();
803
+ this.range = null;
804
+ this.setOptions = (opts2) => {
805
+ var _a;
806
+ const merged = {
807
+ debug: false,
808
+ initialOffset: 0,
809
+ overscan: 1,
810
+ paddingStart: 0,
811
+ paddingEnd: 0,
812
+ scrollPaddingStart: 0,
813
+ scrollPaddingEnd: 0,
814
+ horizontal: false,
815
+ getItemKey: defaultKeyExtractor,
816
+ rangeExtractor: defaultRangeExtractor,
817
+ onChange: () => {
818
+ },
819
+ measureElement,
820
+ initialRect: { width: 0, height: 0 },
821
+ scrollMargin: 0,
822
+ gap: 0,
823
+ indexAttribute: "data-index",
824
+ initialMeasurementsCache: [],
825
+ lanes: 1,
826
+ anchorTo: "start",
827
+ followOnAppend: false,
828
+ scrollEndThreshold: 1,
829
+ isScrollingResetDelay: 150,
830
+ enabled: true,
831
+ isRtl: false,
832
+ useScrollendEvent: false,
833
+ useAnimationFrameWithResizeObserver: false,
834
+ laneAssignmentMode: "estimate",
835
+ useCachedMeasurements: false
836
+ };
837
+ for (const key in opts2) {
838
+ const v3 = opts2[key];
839
+ if (v3 !== void 0) merged[key] = v3;
840
+ }
841
+ const prevOptions = this.options;
842
+ let anchor = null;
843
+ let followOnAppend = null;
844
+ let edgeKeysChanged = false;
845
+ if (prevOptions !== void 0 && prevOptions.enabled && merged.enabled && merged.anchorTo === "end" && this.scrollElement !== null) {
846
+ const prevCount = prevOptions.count;
847
+ const nextCount = merged.count;
848
+ const measurements = this.getMeasurements();
849
+ const previousItems = ((_a = this._singleLaneMeasurements) == null ? void 0 : _a.items) ?? measurements;
850
+ const getPreviousKey = (index) => getMeasurementKey(previousItems[index]);
851
+ const prevFirstKey = prevCount > 0 ? getPreviousKey(0) : null;
852
+ const prevLastKey = prevCount > 0 ? getPreviousKey(prevCount - 1) : null;
853
+ const didCountChange = nextCount !== prevCount;
854
+ const didEdgeKeysChange = didCountChange || prevCount > 0 && nextCount > 0 && (merged.getItemKey(0) !== prevFirstKey || merged.getItemKey(nextCount - 1) !== prevLastKey);
855
+ if (didEdgeKeysChange) {
856
+ edgeKeysChanged = true;
857
+ const item = prevCount > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? measurements[0] : null;
858
+ if (item) {
859
+ anchor = [item.key, this.getScrollOffset() - item.start];
860
+ }
861
+ const behavior = merged.followOnAppend === true ? "auto" : merged.followOnAppend || null;
862
+ if (behavior && nextCount > 0 && this.isAtEnd(prevOptions.scrollEndThreshold) && (prevCount === 0 || merged.getItemKey(nextCount - 1) !== prevLastKey)) {
863
+ if (nextCount > prevCount || isAppendWithTrim(
864
+ prevCount,
865
+ nextCount,
866
+ getPreviousKey,
867
+ merged.getItemKey
868
+ )) {
869
+ followOnAppend = behavior;
870
+ }
871
+ }
872
+ }
873
+ }
874
+ this.options = merged;
875
+ if (edgeKeysChanged) {
876
+ this.pendingMin = 0;
877
+ this.itemSizeCacheVersion++;
878
+ }
879
+ let anchorResolved = false;
880
+ let anchorDelta = 0;
881
+ if (anchor && this.scrollOffset !== null) {
882
+ const [anchorKey, anchorOffset] = anchor;
883
+ const newMeasurements = this.getMeasurements();
884
+ const { count, getItemKey } = this.options;
885
+ let idx = 0;
886
+ while (idx < count && getItemKey(idx) !== anchorKey) {
887
+ idx++;
888
+ }
889
+ if (idx < count) {
890
+ const anchorItem = newMeasurements[idx];
891
+ if (anchorItem) {
892
+ const newOffset = Math.max(0, anchorItem.start + anchorOffset);
893
+ if (!followOnAppend && newOffset !== this.scrollOffset) {
894
+ anchorDelta = newOffset - this.scrollOffset;
895
+ this.scrollOffset = newOffset;
896
+ anchorResolved = true;
897
+ }
898
+ }
899
+ }
900
+ }
901
+ if (anchorResolved || followOnAppend) {
902
+ this.pendingScrollAnchor = [
903
+ anchorResolved ? anchor[0] : null,
904
+ anchorResolved ? anchor[1] : 0,
905
+ followOnAppend,
906
+ anchorDelta
907
+ ];
908
+ }
909
+ };
910
+ this.notify = (sync) => {
911
+ var _a, _b;
912
+ (_b = (_a = this.options).onChange) == null ? void 0 : _b.call(_a, this, sync);
913
+ };
914
+ this.maybeNotify = memo(
915
+ () => {
916
+ this.calculateRange();
917
+ return [
918
+ this.isScrolling,
919
+ this.range ? this.range.startIndex : null,
920
+ this.range ? this.range.endIndex : null
921
+ ];
922
+ },
923
+ (isScrolling) => {
924
+ this.notify(isScrolling);
925
+ },
926
+ {
927
+ key: "maybeNotify",
928
+ debug: () => this.options.debug,
929
+ initialDeps: [
930
+ this.isScrolling,
931
+ this.range ? this.range.startIndex : null,
932
+ this.range ? this.range.endIndex : null
933
+ ]
934
+ }
935
+ );
936
+ this.cleanup = () => {
937
+ this.unsubs.filter(Boolean).forEach((d2) => d2());
938
+ this.unsubs = [];
939
+ this.observer.disconnect();
940
+ if (this.rafId != null && this.targetWindow) {
941
+ this.targetWindow.cancelAnimationFrame(this.rafId);
942
+ this.rafId = null;
943
+ }
944
+ this.scrollState = null;
945
+ this.isScrolling = false;
946
+ this.scrollDirection = null;
947
+ this._iosDeferredAdjustment = 0;
948
+ this._iosTouching = false;
949
+ this._iosJustTouchEnded = false;
950
+ this._clampedAdjustment = null;
951
+ this.scrollElement = null;
952
+ this.targetWindow = null;
953
+ };
954
+ this._didMount = () => {
955
+ return () => {
956
+ this.cleanup();
957
+ };
958
+ };
959
+ this._willUpdate = () => {
960
+ var _a, _b;
961
+ const scrollElement = this.options.enabled ? this.options.getScrollElement() : null;
962
+ if (this.scrollElement !== scrollElement) {
963
+ this.cleanup();
964
+ if (!scrollElement) {
965
+ this.maybeNotify();
966
+ return;
967
+ }
968
+ this.scrollElement = scrollElement;
969
+ if (this.scrollElement && "ownerDocument" in this.scrollElement) {
970
+ this.targetWindow = this.scrollElement.ownerDocument.defaultView;
971
+ } else {
972
+ this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;
973
+ }
974
+ this.elementsCache.forEach((cached) => {
975
+ this.observer.observe(cached);
976
+ });
977
+ this.unsubs.push(
978
+ this.options.observeElementRect(this, (rect) => {
979
+ this.scrollRect = rect;
980
+ this.maybeNotify();
981
+ })
982
+ );
983
+ this.unsubs.push(
984
+ this.options.observeElementOffset(this, (offset, isScrolling) => {
985
+ if (isScrolling && this._intendedScrollOffset === null && offset === this.scrollOffset) {
986
+ return;
987
+ }
988
+ if (this._intendedScrollOffset !== null && Math.abs(offset - this._intendedScrollOffset) < 1.5) {
989
+ offset = this._intendedScrollOffset;
990
+ }
991
+ this._intendedScrollOffset = null;
992
+ if (this._clampedAdjustment !== null && Math.abs(offset - this._clampedAdjustment.maxAtWrite) >= 1.5) {
993
+ this._clampedAdjustment = null;
994
+ }
995
+ this.scrollAdjustments = 0;
996
+ const prevOffset = this.getScrollOffset();
997
+ this.scrollDirection = isScrolling ? prevOffset === offset ? this.scrollDirection : prevOffset < offset ? "forward" : "backward" : null;
998
+ this.scrollOffset = offset;
999
+ this.isScrolling = isScrolling;
1000
+ this._flushIosDeferredIfReady();
1001
+ if (this.scrollState) {
1002
+ this.scheduleScrollReconcile();
1003
+ }
1004
+ this.maybeNotify();
1005
+ })
1006
+ );
1007
+ if ("addEventListener" in this.scrollElement) {
1008
+ const scrollEl = this.scrollElement;
1009
+ const onTouchStart = () => {
1010
+ this._iosTouching = true;
1011
+ this._iosJustTouchEnded = false;
1012
+ if (this._iosTouchEndTimerId !== null && this.targetWindow != null) {
1013
+ this.targetWindow.clearTimeout(this._iosTouchEndTimerId);
1014
+ this._iosTouchEndTimerId = null;
1015
+ }
1016
+ };
1017
+ const onTouchEnd = () => {
1018
+ this._iosTouching = false;
1019
+ if (!isIOSWebKit() || this.targetWindow == null) {
1020
+ return;
1021
+ }
1022
+ this._iosJustTouchEnded = true;
1023
+ this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
1024
+ this._iosJustTouchEnded = false;
1025
+ this._iosTouchEndTimerId = null;
1026
+ this._flushIosDeferredIfReady();
1027
+ }, 150);
1028
+ };
1029
+ scrollEl.addEventListener(
1030
+ "touchstart",
1031
+ onTouchStart,
1032
+ addEventListenerOptions
1033
+ );
1034
+ scrollEl.addEventListener(
1035
+ "touchend",
1036
+ onTouchEnd,
1037
+ addEventListenerOptions
1038
+ );
1039
+ this.unsubs.push(() => {
1040
+ scrollEl.removeEventListener("touchstart", onTouchStart);
1041
+ scrollEl.removeEventListener("touchend", onTouchEnd);
1042
+ if (this._iosTouchEndTimerId !== null && this.targetWindow != null) {
1043
+ this.targetWindow.clearTimeout(this._iosTouchEndTimerId);
1044
+ this._iosTouchEndTimerId = null;
1045
+ }
1046
+ });
1047
+ }
1048
+ this._scrollToOffset(this.getScrollOffset(), {
1049
+ adjustments: void 0,
1050
+ behavior: void 0
1051
+ });
1052
+ }
1053
+ const anchor = this.pendingScrollAnchor;
1054
+ this.pendingScrollAnchor = null;
1055
+ if (anchor && this.scrollElement && this.options.enabled) {
1056
+ const [key, _offset, followOnAppend, anchorDelta] = anchor;
1057
+ if (key !== null && !followOnAppend) {
1058
+ if (isIOSWebKit() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded)) {
1059
+ if (anchorDelta !== 0) {
1060
+ this._iosDeferredAdjustment += anchorDelta;
1061
+ }
1062
+ } else if (((_b = this.scrollState) == null ? void 0 : _b.behavior) === "smooth" && !approxEqual(
1063
+ this.getScrollOffset() - anchorDelta,
1064
+ this.scrollState.lastTargetOffset
1065
+ )) ;
1066
+ else {
1067
+ this._scrollToOffset(this.getScrollOffset(), {
1068
+ adjustments: void 0,
1069
+ behavior: void 0
1070
+ });
1071
+ }
1072
+ }
1073
+ if (followOnAppend) {
1074
+ this.scrollToEnd({ behavior: followOnAppend });
1075
+ }
1076
+ }
1077
+ this._retryClampedAdjustment();
1078
+ };
1079
+ this._retryClampedAdjustment = () => {
1080
+ if (this._clampedAdjustment === null || !this.scrollElement || !this.options.enabled) {
1081
+ return;
1082
+ }
1083
+ const { target, maxAtWrite } = this._clampedAdjustment;
1084
+ const max = this.getMaxScrollOffset();
1085
+ if (max > maxAtWrite + 0.5) {
1086
+ this._clampedAdjustment = target > max + 0.5 ? { target, maxAtWrite: max } : null;
1087
+ this._scrollToOffset(target, {
1088
+ adjustments: void 0,
1089
+ behavior: void 0
1090
+ });
1091
+ }
1092
+ };
1093
+ this._flushIosDeferredIfReady = () => {
1094
+ if (this._iosDeferredAdjustment === 0) return;
1095
+ if (this.isScrolling) return;
1096
+ if (this._iosTouching) return;
1097
+ if (this._iosJustTouchEnded) return;
1098
+ const cur = this.getScrollOffset();
1099
+ const max = this.getMaxScrollOffset();
1100
+ if (cur < 0 || cur > max) return;
1101
+ if (this._iosDeferredAdjustment < 0 && cur >= max - 1) {
1102
+ this._iosDeferredAdjustment = 0;
1103
+ return;
1104
+ }
1105
+ const delta = this._iosDeferredAdjustment;
1106
+ this._iosDeferredAdjustment = 0;
1107
+ this._scrollToOffset(cur, {
1108
+ adjustments: this.scrollAdjustments += delta,
1109
+ behavior: void 0
1110
+ });
1111
+ };
1112
+ this.rafId = null;
1113
+ this.getSize = () => {
1114
+ if (!this.options.enabled) {
1115
+ this.scrollRect = null;
1116
+ return 0;
1117
+ }
1118
+ this.scrollRect = this.scrollRect ?? this.options.initialRect;
1119
+ return this.scrollRect[this.options.horizontal ? "width" : "height"];
1120
+ };
1121
+ this.getScrollOffset = () => {
1122
+ if (!this.options.enabled) {
1123
+ this.scrollOffset = null;
1124
+ return 0;
1125
+ }
1126
+ this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset === "function" ? this.options.initialOffset() : this.options.initialOffset);
1127
+ return this.scrollOffset;
1128
+ };
1129
+ this.getMeasurementOptions = memo(
1130
+ () => [
1131
+ this.options.count,
1132
+ this.options.paddingStart,
1133
+ this.options.scrollMargin,
1134
+ this.options.getItemKey,
1135
+ this.options.enabled,
1136
+ this.options.lanes,
1137
+ this.options.laneAssignmentMode,
1138
+ this.options.gap
1139
+ ],
1140
+ (count, paddingStart, scrollMargin, getItemKey, enabled, lanes, laneAssignmentMode, gap) => {
1141
+ const lanesChanged = this.prevLanes !== void 0 && this.prevLanes !== lanes;
1142
+ if (lanesChanged) {
1143
+ this.lanesChangedFlag = true;
1144
+ }
1145
+ this.prevLanes = lanes;
1146
+ this.pendingMin = null;
1147
+ return {
1148
+ count,
1149
+ paddingStart,
1150
+ scrollMargin,
1151
+ getItemKey,
1152
+ enabled,
1153
+ lanes,
1154
+ laneAssignmentMode,
1155
+ gap
1156
+ };
1157
+ },
1158
+ {
1159
+ key: false
1160
+ }
1161
+ );
1162
+ this.isIndexInRange = (index) => index >= 0 && index < this.options.count;
1163
+ this.getMeasurements = memo(
1164
+ () => [this.getMeasurementOptions(), this.itemSizeCacheVersion],
1165
+ ({
1166
+ count,
1167
+ paddingStart,
1168
+ scrollMargin,
1169
+ getItemKey,
1170
+ enabled,
1171
+ lanes,
1172
+ laneAssignmentMode,
1173
+ gap
1174
+ }, _itemSizeCacheVersion) => {
1175
+ var _a;
1176
+ const itemSizeCache = this.itemSizeCache;
1177
+ if (!enabled) {
1178
+ this.measurementsCache = [];
1179
+ this._singleLaneMeasurements = null;
1180
+ this.itemSizeCache.clear();
1181
+ this.laneAssignments.clear();
1182
+ return [];
1183
+ }
1184
+ if (this.laneAssignments.size > count) {
1185
+ for (const index of this.laneAssignments.keys()) {
1186
+ if (index >= count) {
1187
+ this.laneAssignments.delete(index);
1188
+ }
1189
+ }
1190
+ }
1191
+ if (this.lanesChangedFlag) {
1192
+ this.lanesChangedFlag = false;
1193
+ this.lanesSettling = true;
1194
+ this.measurementsCache = [];
1195
+ this._singleLaneMeasurements = null;
1196
+ this.itemSizeCache.clear();
1197
+ this.laneAssignments.clear();
1198
+ this.pendingMin = null;
1199
+ }
1200
+ if (this.measurementsCache.length === 0 && !this.lanesSettling) {
1201
+ this.measurementsCache = this.options.initialMeasurementsCache;
1202
+ this.measurementsCache.forEach((item) => {
1203
+ this.itemSizeCache.set(item.key, item.size);
1204
+ });
1205
+ }
1206
+ const min = this.lanesSettling ? 0 : this.pendingMin ?? 0;
1207
+ this.pendingMin = null;
1208
+ if (this.lanesSettling && this.measurementsCache.length === count) {
1209
+ this.lanesSettling = false;
1210
+ }
1211
+ if (lanes === 1) {
1212
+ const need = count * 2;
1213
+ let flat = (_a = this._singleLaneMeasurements) == null ? void 0 : _a.flat;
1214
+ if (!flat || flat.length < need) {
1215
+ const next = new Float64Array(need);
1216
+ if (flat && min > 0) next.set(flat.subarray(0, min * 2));
1217
+ flat = next;
1218
+ }
1219
+ const items = min === 0 ? new Array(count) : this._singleLaneMeasurements.items.slice();
1220
+ let runningStart;
1221
+ if (min === 0) {
1222
+ runningStart = paddingStart + scrollMargin;
1223
+ } else {
1224
+ const prevIdx = min - 1;
1225
+ runningStart = flat[prevIdx * 2] + flat[prevIdx * 2 + 1] + gap;
1226
+ }
1227
+ for (let i2 = min; i2 < count; i2++) {
1228
+ const key = getItemKey(i2);
1229
+ items[i2] = key;
1230
+ const measuredSize = itemSizeCache.get(key);
1231
+ const size = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i2);
1232
+ flat[i2 * 2] = runningStart;
1233
+ flat[i2 * 2 + 1] = size;
1234
+ runningStart += size + gap;
1235
+ }
1236
+ this._singleLaneMeasurements = { flat, items };
1237
+ const view = createLazyMeasurementsView(items, flat);
1238
+ this.measurementsCache = view;
1239
+ return view;
1240
+ }
1241
+ const measurements = this.measurementsCache.slice(0, min);
1242
+ const laneLastIndex = new Array(lanes).fill(
1243
+ void 0
1244
+ );
1245
+ const laneEnds = new Float64Array(lanes);
1246
+ let filledLanes = 0;
1247
+ for (let m3 = 0; m3 < min; m3++) {
1248
+ const item = measurements[m3];
1249
+ if (item) {
1250
+ if (laneLastIndex[item.lane] === void 0) filledLanes++;
1251
+ laneLastIndex[item.lane] = m3;
1252
+ laneEnds[item.lane] = item.end;
1253
+ }
1254
+ }
1255
+ for (let i2 = min; i2 < count; i2++) {
1256
+ const key = getItemKey(i2);
1257
+ const cachedLane = this.laneAssignments.get(i2);
1258
+ let lane;
1259
+ let start;
1260
+ const shouldCacheLane = laneAssignmentMode === "estimate" || itemSizeCache.has(key);
1261
+ if (cachedLane !== void 0 && this.options.lanes > 1) {
1262
+ lane = cachedLane;
1263
+ const prevIndex = laneLastIndex[lane];
1264
+ const prevInLane = prevIndex !== void 0 ? measurements[prevIndex] : void 0;
1265
+ start = prevInLane ? prevInLane.end + gap : paddingStart + scrollMargin;
1266
+ } else if (filledLanes === lanes) {
1267
+ let bestLane = 0;
1268
+ let bestEnd = laneEnds[0];
1269
+ let bestIdx = laneLastIndex[0];
1270
+ for (let l4 = 1; l4 < lanes; l4++) {
1271
+ const e2 = laneEnds[l4];
1272
+ if (e2 < bestEnd || e2 === bestEnd && laneLastIndex[l4] < bestIdx) {
1273
+ bestLane = l4;
1274
+ bestEnd = e2;
1275
+ bestIdx = laneLastIndex[l4];
1276
+ }
1277
+ }
1278
+ lane = bestLane;
1279
+ start = bestEnd + gap;
1280
+ if (shouldCacheLane) {
1281
+ this.laneAssignments.set(i2, lane);
1282
+ }
1283
+ } else {
1284
+ lane = i2 % this.options.lanes;
1285
+ start = paddingStart + scrollMargin;
1286
+ if (shouldCacheLane) {
1287
+ this.laneAssignments.set(i2, lane);
1288
+ }
1289
+ }
1290
+ const measuredSize = itemSizeCache.get(key);
1291
+ const size = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i2);
1292
+ const end = start + size;
1293
+ measurements[i2] = {
1294
+ index: i2,
1295
+ start,
1296
+ size,
1297
+ end,
1298
+ key,
1299
+ lane
1300
+ };
1301
+ if (laneLastIndex[lane] === void 0) filledLanes++;
1302
+ laneLastIndex[lane] = i2;
1303
+ laneEnds[lane] = end;
1304
+ }
1305
+ this.measurementsCache = measurements;
1306
+ return measurements;
1307
+ },
1308
+ {
1309
+ key: "getMeasurements",
1310
+ debug: () => this.options.debug
1311
+ }
1312
+ );
1313
+ this.calculateRange = memo(
1314
+ () => [
1315
+ this.getMeasurements(),
1316
+ this.getSize(),
1317
+ this.getScrollOffset(),
1318
+ this.options.lanes
1319
+ ],
1320
+ (measurements, outerSize, scrollOffset, lanes) => {
1321
+ if (measurements.length === 0 || outerSize === 0) {
1322
+ this.range = null;
1323
+ return null;
1324
+ }
1325
+ this.range = calculateRangeImpl(
1326
+ measurements,
1327
+ outerSize,
1328
+ scrollOffset,
1329
+ lanes,
1330
+ // Pass the typed array so binary search + forward-walk can read
1331
+ // start/end directly from Float64Array, skipping the Proxy traps.
1332
+ lanes === 1 && this._singleLaneMeasurements !== null ? this._singleLaneMeasurements.flat : null
1333
+ );
1334
+ return this.range;
1335
+ },
1336
+ {
1337
+ key: "calculateRange",
1338
+ debug: () => this.options.debug
1339
+ }
1340
+ );
1341
+ this.getVirtualIndexes = memo(
1342
+ () => {
1343
+ let startIndex = null;
1344
+ let endIndex = null;
1345
+ const range = this.calculateRange();
1346
+ if (range) {
1347
+ startIndex = range.startIndex;
1348
+ endIndex = range.endIndex;
1349
+ }
1350
+ this.maybeNotify.updateDeps([this.isScrolling, startIndex, endIndex]);
1351
+ return [
1352
+ this.options.rangeExtractor,
1353
+ this.options.overscan,
1354
+ this.options.count,
1355
+ startIndex,
1356
+ endIndex
1357
+ ];
1358
+ },
1359
+ (rangeExtractor, overscan, count, startIndex, endIndex) => {
1360
+ return startIndex === null || endIndex === null ? [] : rangeExtractor({
1361
+ startIndex,
1362
+ endIndex,
1363
+ overscan,
1364
+ count
1365
+ });
1366
+ },
1367
+ {
1368
+ key: "getVirtualIndexes",
1369
+ debug: () => this.options.debug
1370
+ }
1371
+ );
1372
+ this.indexFromElement = (node) => {
1373
+ const attributeName = this.options.indexAttribute;
1374
+ const indexStr = node.getAttribute(attributeName);
1375
+ if (!indexStr) {
1376
+ console.warn(
1377
+ `Missing attribute name '${attributeName}={index}' on measured element.`
1378
+ );
1379
+ return -1;
1380
+ }
1381
+ return parseInt(indexStr, 10);
1382
+ };
1383
+ this.shouldMeasureDuringScroll = (index) => {
1384
+ var _a;
1385
+ if (!this.scrollState || this.scrollState.behavior !== "smooth") {
1386
+ return true;
1387
+ }
1388
+ const scrollIndex = this.scrollState.index ?? ((_a = this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)) == null ? void 0 : _a.index);
1389
+ if (scrollIndex !== void 0 && this.range) {
1390
+ const bufferSize = Math.max(
1391
+ this.options.overscan,
1392
+ Math.ceil((this.range.endIndex - this.range.startIndex) / 2)
1393
+ );
1394
+ const minIndex = Math.max(0, scrollIndex - bufferSize);
1395
+ const maxIndex = Math.min(
1396
+ this.options.count - 1,
1397
+ scrollIndex + bufferSize
1398
+ );
1399
+ return index >= minIndex && index <= maxIndex;
1400
+ }
1401
+ return true;
1402
+ };
1403
+ this.measureElement = (node) => {
1404
+ if (!node) {
1405
+ this.elementsCache.forEach((cached, key2) => {
1406
+ if (!cached.isConnected) {
1407
+ this.observer.unobserve(cached);
1408
+ this.elementsCache.delete(key2);
1409
+ }
1410
+ });
1411
+ return;
1412
+ }
1413
+ const index = this.indexFromElement(node);
1414
+ if (!this.isIndexInRange(index)) return;
1415
+ const key = this.options.getItemKey(index);
1416
+ const prevNode = this.elementsCache.get(key);
1417
+ if (prevNode !== node) {
1418
+ if (prevNode) {
1419
+ this.observer.unobserve(prevNode);
1420
+ }
1421
+ this.observer.observe(node);
1422
+ this.elementsCache.set(key, node);
1423
+ }
1424
+ if ((!this.isScrolling || this.scrollState) && this.shouldMeasureDuringScroll(index)) {
1425
+ this.resizeItem(index, this.options.measureElement(node, void 0, this));
1426
+ }
1427
+ };
1428
+ this.resizeItem = (index, size) => {
1429
+ var _a, _b, _c;
1430
+ if (!this.isIndexInRange(index)) return;
1431
+ let cachedSize;
1432
+ let itemStart;
1433
+ let key;
1434
+ const flat = (_a = this._singleLaneMeasurements) == null ? void 0 : _a.flat;
1435
+ if (this.options.lanes === 1 && flat != null) {
1436
+ key = this.options.getItemKey(index);
1437
+ itemStart = flat[index * 2];
1438
+ cachedSize = flat[index * 2 + 1];
1439
+ } else {
1440
+ const item = this.measurementsCache[index];
1441
+ if (!item) return;
1442
+ key = item.key;
1443
+ itemStart = item.start;
1444
+ cachedSize = item.size;
1445
+ }
1446
+ const itemSize = this.itemSizeCache.get(key) ?? cachedSize;
1447
+ const delta = size - itemSize;
1448
+ if (delta !== 0) {
1449
+ const wasAtEnd = this.options.anchorTo === "end" && ((_b = this.scrollState) == null ? void 0 : _b.behavior) !== "smooth" && this.getVirtualDistanceFromEnd() <= this.options.scrollEndThreshold;
1450
+ const prevTotalSize = wasAtEnd ? this.getTotalSize() : 0;
1451
+ const scrollOffsetWithAdj = this.getScrollOffset() + this.scrollAdjustments;
1452
+ const isFirstMeasure = !this.itemSizeCache.has(key);
1453
+ const defaultShouldAdjust = isFirstMeasure ? (
1454
+ // First measurement: compensate any item whose top sits above the
1455
+ // fold — the estimate→actual delta must be corrected regardless of
1456
+ // scroll direction, since the whole estimated block was above it.
1457
+ itemStart < scrollOffsetWithAdj
1458
+ ) : (
1459
+ // Re-measurement: only compensate an item that is ENTIRELY above the
1460
+ // fold. An item that merely *spans* the fold (top above, bottom
1461
+ // below — e.g. a streaming chat message growing at its bottom)
1462
+ // changes size *below* the anchor point, so shifting scrollTop by the
1463
+ // delta would drag the viewport downward on every growth (#1218).
1464
+ // Also skip during backward scroll to avoid the "items jump while
1465
+ // scrolling up" cascade.
1466
+ itemStart + itemSize <= scrollOffsetWithAdj && this.scrollDirection !== "backward"
1467
+ );
1468
+ const shouldAdjustScroll = ((_c = this.scrollState) == null ? void 0 : _c.behavior) !== "smooth" && (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(
1469
+ // The callback expects a VirtualItem; build one lazily only
1470
+ // when the consumer actually supplied a custom predicate.
1471
+ this.measurementsCache[index] ?? {
1472
+ index,
1473
+ key,
1474
+ start: itemStart,
1475
+ size: cachedSize,
1476
+ end: itemStart + cachedSize,
1477
+ lane: 0
1478
+ },
1479
+ delta,
1480
+ this
1481
+ ) : defaultShouldAdjust);
1482
+ if (this.pendingMin === null || index < this.pendingMin) {
1483
+ this.pendingMin = index;
1484
+ }
1485
+ this.itemSizeCache.set(key, size);
1486
+ this.itemSizeCacheVersion++;
1487
+ let adjustedSync = false;
1488
+ if (wasAtEnd) {
1489
+ adjustedSync = this.applyScrollAdjustment(
1490
+ this.getTotalSize() - prevTotalSize
1491
+ );
1492
+ } else if (shouldAdjustScroll) {
1493
+ adjustedSync = this.applyScrollAdjustment(delta);
1494
+ }
1495
+ this.notify(adjustedSync);
1496
+ this._retryClampedAdjustment();
1497
+ }
1498
+ };
1499
+ this.getVirtualItems = memo(
1500
+ () => [this.getVirtualIndexes(), this.getMeasurements()],
1501
+ (indexes, measurements) => {
1502
+ const virtualItems = [];
1503
+ for (let k4 = 0, len = indexes.length; k4 < len; k4++) {
1504
+ const i2 = indexes[k4];
1505
+ const measurement = measurements[i2];
1506
+ virtualItems.push(measurement);
1507
+ }
1508
+ return virtualItems;
1509
+ },
1510
+ {
1511
+ key: "getVirtualItems",
1512
+ debug: () => this.options.debug
1513
+ }
1514
+ );
1515
+ this.getVirtualItemForOffset = (offset) => {
1516
+ var _a;
1517
+ const measurements = this.getMeasurements();
1518
+ if (measurements.length === 0) {
1519
+ return void 0;
1520
+ }
1521
+ const flat = (_a = this._singleLaneMeasurements) == null ? void 0 : _a.flat;
1522
+ const useFlat = this.options.lanes === 1 && flat != null;
1523
+ const idx = findNearestBinarySearch(
1524
+ 0,
1525
+ measurements.length - 1,
1526
+ useFlat ? (i2) => flat[i2 * 2] : (i2) => notUndefined(measurements[i2]).start,
1527
+ offset
1528
+ );
1529
+ return notUndefined(measurements[idx]);
1530
+ };
1531
+ this.getMaxScrollOffset = () => {
1532
+ if (!this.scrollElement) return 0;
1533
+ if ("scrollHeight" in this.scrollElement) {
1534
+ return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
1535
+ } else {
1536
+ const doc = this.scrollElement.document.documentElement;
1537
+ return this.options.horizontal ? doc.scrollWidth - this.scrollElement.innerWidth : doc.scrollHeight - this.scrollElement.innerHeight;
1538
+ }
1539
+ };
1540
+ this.getVirtualDistanceFromEnd = () => {
1541
+ return Math.max(
1542
+ this.getTotalSize() - this.getSize() - this.getScrollOffset(),
1543
+ 0
1544
+ );
1545
+ };
1546
+ this.getDistanceFromEnd = () => {
1547
+ return Math.max(this.getMaxScrollOffset() - this.getScrollOffset(), 0);
1548
+ };
1549
+ this.isAtEnd = (threshold = this.options.scrollEndThreshold) => {
1550
+ return this.getDistanceFromEnd() <= threshold;
1551
+ };
1552
+ this.getOffsetForAlignment = (toOffset, align, itemSize = 0) => {
1553
+ if (!this.scrollElement) return 0;
1554
+ const size = this.getSize();
1555
+ const scrollOffset = this.getScrollOffset();
1556
+ if (align === "auto") {
1557
+ align = toOffset >= scrollOffset + size ? "end" : "start";
1558
+ }
1559
+ if (align === "center") {
1560
+ toOffset += (itemSize - size) / 2;
1561
+ } else if (align === "end") {
1562
+ toOffset -= size;
1563
+ }
1564
+ const maxOffset = this.getMaxScrollOffset();
1565
+ return Math.max(Math.min(maxOffset, toOffset), 0);
1566
+ };
1567
+ this.getOffsetForIndex = (index, align = "auto") => {
1568
+ index = Math.max(0, Math.min(index, this.options.count - 1));
1569
+ const size = this.getSize();
1570
+ const scrollOffset = this.getScrollOffset();
1571
+ const item = this.measurementsCache[index];
1572
+ if (!item) return;
1573
+ if (align === "auto") {
1574
+ if (item.end >= scrollOffset + size - this.options.scrollPaddingEnd) {
1575
+ align = "end";
1576
+ } else if (item.start <= scrollOffset + this.options.scrollPaddingStart) {
1577
+ align = "start";
1578
+ } else {
1579
+ return [scrollOffset, align];
1580
+ }
1581
+ }
1582
+ if (align === "end" && index === this.options.count - 1) {
1583
+ return [this.getMaxScrollOffset(), align];
1584
+ }
1585
+ const toOffset = align === "end" ? item.end + this.options.scrollPaddingEnd : item.start - this.options.scrollPaddingStart;
1586
+ return [
1587
+ this.getOffsetForAlignment(toOffset, align, item.size),
1588
+ align
1589
+ ];
1590
+ };
1591
+ this.scrollToOffset = (toOffset, { align = "start", behavior = "auto" } = {}) => {
1592
+ this._iosDeferredAdjustment = 0;
1593
+ const offset = this.getOffsetForAlignment(toOffset, align);
1594
+ const now = this.now();
1595
+ this.scrollState = {
1596
+ index: null,
1597
+ align,
1598
+ behavior,
1599
+ startedAt: now,
1600
+ lastTargetOffset: offset,
1601
+ stableFrames: 0
1602
+ };
1603
+ this._scrollToOffset(offset, { adjustments: void 0, behavior });
1604
+ this.scheduleScrollReconcile();
1605
+ };
1606
+ this.scrollToIndex = (index, {
1607
+ align: initialAlign = "auto",
1608
+ behavior = "auto"
1609
+ } = {}) => {
1610
+ this._iosDeferredAdjustment = 0;
1611
+ index = Math.max(0, Math.min(index, this.options.count - 1));
1612
+ const offsetInfo = this.getOffsetForIndex(index, initialAlign);
1613
+ if (!offsetInfo) {
1614
+ return;
1615
+ }
1616
+ const [offset, align] = offsetInfo;
1617
+ const now = this.now();
1618
+ this.scrollState = {
1619
+ index,
1620
+ align,
1621
+ behavior,
1622
+ startedAt: now,
1623
+ lastTargetOffset: offset,
1624
+ stableFrames: 0
1625
+ };
1626
+ this._scrollToOffset(offset, { adjustments: void 0, behavior });
1627
+ this.scheduleScrollReconcile();
1628
+ };
1629
+ this.scrollBy = (delta, { behavior = "auto" } = {}) => {
1630
+ const offset = this.getScrollOffset() + delta;
1631
+ const now = this.now();
1632
+ this.scrollState = {
1633
+ index: null,
1634
+ align: "start",
1635
+ behavior,
1636
+ startedAt: now,
1637
+ lastTargetOffset: offset,
1638
+ stableFrames: 0
1639
+ };
1640
+ this._scrollToOffset(offset, { adjustments: void 0, behavior });
1641
+ this.scheduleScrollReconcile();
1642
+ };
1643
+ this.scrollToEnd = ({ behavior = "auto" } = {}) => {
1644
+ if (this.options.count > 0) {
1645
+ this.scrollToIndex(this.options.count - 1, {
1646
+ align: "end",
1647
+ behavior
1648
+ });
1649
+ return;
1650
+ }
1651
+ this.scrollToOffset(Math.max(this.getTotalSize() - this.getSize(), 0), {
1652
+ behavior
1653
+ });
1654
+ };
1655
+ this.getTotalSize = () => {
1656
+ var _a, _b;
1657
+ const measurements = this.getMeasurements();
1658
+ let end;
1659
+ if (measurements.length === 0) {
1660
+ end = this.options.paddingStart;
1661
+ } else if (this.options.lanes === 1) {
1662
+ const lastIdx = measurements.length - 1;
1663
+ const flat = (_a = this._singleLaneMeasurements) == null ? void 0 : _a.flat;
1664
+ if (flat != null) {
1665
+ end = flat[lastIdx * 2] + flat[lastIdx * 2 + 1];
1666
+ } else {
1667
+ end = ((_b = measurements[lastIdx]) == null ? void 0 : _b.end) ?? 0;
1668
+ }
1669
+ } else {
1670
+ const endByLane = Array(this.options.lanes).fill(null);
1671
+ let endIndex = measurements.length - 1;
1672
+ while (endIndex >= 0 && endByLane.some((val) => val === null)) {
1673
+ const item = measurements[endIndex];
1674
+ if (endByLane[item.lane] === null) {
1675
+ endByLane[item.lane] = item.end;
1676
+ }
1677
+ endIndex--;
1678
+ }
1679
+ end = Math.max(...endByLane.filter((val) => val !== null));
1680
+ }
1681
+ return Math.max(
1682
+ end - this.options.scrollMargin + this.options.paddingEnd,
1683
+ 0
1684
+ );
1685
+ };
1686
+ this.takeSnapshot = () => {
1687
+ const snapshot = [];
1688
+ if (this.itemSizeCache.size === 0) return snapshot;
1689
+ const m3 = this.getMeasurements();
1690
+ for (const item of m3) {
1691
+ if (item && this.itemSizeCache.has(item.key)) {
1692
+ snapshot.push({
1693
+ index: item.index,
1694
+ key: item.key,
1695
+ start: item.start,
1696
+ size: item.size,
1697
+ end: item.end,
1698
+ lane: item.lane
1699
+ });
1700
+ }
1701
+ }
1702
+ return snapshot;
1703
+ };
1704
+ this._scrollToOffset = (offset, {
1705
+ adjustments,
1706
+ behavior
1707
+ }) => {
1708
+ this._intendedScrollOffset = offset + (adjustments ?? 0);
1709
+ this.options.scrollToFn(offset, { behavior, adjustments }, this);
1710
+ };
1711
+ this.measure = () => {
1712
+ this.pendingMin = null;
1713
+ this.itemSizeCache.clear();
1714
+ this.laneAssignments.clear();
1715
+ this.itemSizeCacheVersion++;
1716
+ this.notify(false);
1717
+ };
1718
+ this.setOptions(opts);
1719
+ }
1720
+ // Returns `true` when it performed a synchronous `scrollTop` write this
1721
+ // tick, `false` when the delta was zero or the write was deferred (iOS).
1722
+ // `resizeItem` uses that to decide whether the follow-up `notify` must be
1723
+ // synchronous so the grown transforms commit in the same paint (#1227).
1724
+ applyScrollAdjustment(delta, behavior) {
1725
+ if (delta === 0) return false;
1726
+ if (this.options.debug) {
1727
+ console.info("correction", delta);
1728
+ }
1729
+ if (isIOSWebKit() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded)) {
1730
+ this._iosDeferredAdjustment += delta;
1731
+ return false;
1732
+ } else {
1733
+ const target = this.getScrollOffset() + this.scrollAdjustments + delta;
1734
+ const el = this.scrollElement;
1735
+ const maxAtWrite = el !== null && ("scrollHeight" in el || "document" in el) ? this.getMaxScrollOffset() : null;
1736
+ this._clampedAdjustment = maxAtWrite !== null && target > maxAtWrite + 0.5 ? { target, maxAtWrite } : null;
1737
+ this._scrollToOffset(this.getScrollOffset(), {
1738
+ adjustments: this.scrollAdjustments += delta,
1739
+ behavior
1740
+ });
1741
+ if (this.scrollOffset !== null) {
1742
+ this.scrollOffset += this.scrollAdjustments;
1743
+ if (this.scrollOffset < 0) this.scrollOffset = 0;
1744
+ this.scrollAdjustments = 0;
1745
+ }
1746
+ return true;
1747
+ }
1748
+ }
1749
+ scheduleScrollReconcile() {
1750
+ if (!this.targetWindow) {
1751
+ this.scrollState = null;
1752
+ return;
1753
+ }
1754
+ if (this.rafId != null) return;
1755
+ this.rafId = this.targetWindow.requestAnimationFrame(() => {
1756
+ this.rafId = null;
1757
+ this.reconcileScroll();
1758
+ });
1759
+ }
1760
+ reconcileScroll() {
1761
+ if (!this.scrollState) return;
1762
+ const el = this.scrollElement;
1763
+ if (!el) return;
1764
+ const MAX_RECONCILE_MS = 5e3;
1765
+ if (this.now() - this.scrollState.startedAt > MAX_RECONCILE_MS) {
1766
+ this.scrollState = null;
1767
+ return;
1768
+ }
1769
+ const offsetInfo = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0;
1770
+ const targetOffset = offsetInfo ? offsetInfo[0] : this.scrollState.lastTargetOffset;
1771
+ const STABLE_FRAMES = 1;
1772
+ const targetChanged = targetOffset !== this.scrollState.lastTargetOffset;
1773
+ if (!targetChanged && approxEqual(targetOffset, this.getScrollOffset())) {
1774
+ this.scrollState.stableFrames++;
1775
+ if (this.scrollState.stableFrames >= STABLE_FRAMES) {
1776
+ if (this.getScrollOffset() !== targetOffset) {
1777
+ this._scrollToOffset(targetOffset, {
1778
+ adjustments: void 0,
1779
+ behavior: "auto"
1780
+ });
1781
+ }
1782
+ this.scrollState = null;
1783
+ return;
1784
+ }
1785
+ } else {
1786
+ this.scrollState.stableFrames = 0;
1787
+ if (targetChanged) {
1788
+ const viewport = this.getSize() || 600;
1789
+ const distance = Math.abs(targetOffset - this.getScrollOffset());
1790
+ const keepSmooth = this.scrollState.behavior === "smooth" && distance > viewport;
1791
+ this.scrollState.lastTargetOffset = targetOffset;
1792
+ if (!keepSmooth) {
1793
+ this.scrollState.behavior = "auto";
1794
+ }
1795
+ this._scrollToOffset(targetOffset, {
1796
+ adjustments: void 0,
1797
+ behavior: keepSmooth ? "smooth" : "auto"
1798
+ });
1799
+ }
1800
+ }
1801
+ this.scheduleScrollReconcile();
1802
+ }
1803
+ };
1804
+ var findNearestBinarySearch = (low, high, getCurrentValue, value) => {
1805
+ while (low <= high) {
1806
+ const middle = (low + high) / 2 | 0;
1807
+ const currentValue = getCurrentValue(middle);
1808
+ if (currentValue < value) {
1809
+ low = middle + 1;
1810
+ } else if (currentValue > value) {
1811
+ high = middle - 1;
1812
+ } else {
1813
+ return middle;
1814
+ }
1815
+ }
1816
+ if (low > 0) {
1817
+ return low - 1;
1818
+ } else {
1819
+ return 0;
1820
+ }
1821
+ };
1822
+ function findNearestBinarySearchFlat(flat, high, value) {
1823
+ let low = 0;
1824
+ while (low <= high) {
1825
+ const middle = (low + high) / 2 | 0;
1826
+ const currentValue = flat[middle * 2];
1827
+ if (currentValue < value) {
1828
+ low = middle + 1;
1829
+ } else if (currentValue > value) {
1830
+ high = middle - 1;
1831
+ } else {
1832
+ return middle;
1833
+ }
1834
+ }
1835
+ return low > 0 ? low - 1 : 0;
1836
+ }
1837
+ function calculateRangeImpl(measurements, outerSize, scrollOffset, lanes, flat) {
1838
+ const lastIndex = measurements.length - 1;
1839
+ if (measurements.length <= lanes) {
1840
+ return { startIndex: 0, endIndex: lastIndex };
1841
+ }
1842
+ if (lanes === 1 && flat !== null) {
1843
+ const startIndex2 = findNearestBinarySearchFlat(
1844
+ flat,
1845
+ lastIndex,
1846
+ scrollOffset
1847
+ );
1848
+ let endIndex2 = startIndex2;
1849
+ const limit = scrollOffset + outerSize;
1850
+ while (endIndex2 < lastIndex && flat[endIndex2 * 2] + flat[endIndex2 * 2 + 1] < limit) {
1851
+ endIndex2++;
1852
+ }
1853
+ return { startIndex: startIndex2, endIndex: endIndex2 };
1854
+ }
1855
+ const getStart = (index) => measurements[index].start;
1856
+ let startIndex = findNearestBinarySearch(0, lastIndex, getStart, scrollOffset);
1857
+ let endIndex = startIndex;
1858
+ if (lanes === 1) {
1859
+ while (endIndex < lastIndex && measurements[endIndex].end < scrollOffset + outerSize) {
1860
+ endIndex++;
1861
+ }
1862
+ } else if (lanes > 1) {
1863
+ const endPerLane = Array(lanes).fill(0);
1864
+ while (endIndex < lastIndex && endPerLane.some((pos) => pos < scrollOffset + outerSize)) {
1865
+ const item = measurements[endIndex];
1866
+ endPerLane[item.lane] = item.end;
1867
+ endIndex++;
1868
+ }
1869
+ const startPerLane = Array(lanes).fill(scrollOffset + outerSize);
1870
+ while (startIndex >= 0 && startPerLane.some((pos) => pos >= scrollOffset)) {
1871
+ const item = measurements[startIndex];
1872
+ startPerLane[item.lane] = item.start;
1873
+ startIndex--;
1874
+ }
1875
+ startIndex = Math.max(0, startIndex - startIndex % lanes);
1876
+ endIndex = Math.min(lastIndex, endIndex + (lanes - 1 - endIndex % lanes));
1877
+ }
1878
+ return { startIndex, endIndex };
1879
+ }
1880
+
1881
+ // ../node_modules/@tanstack/react-virtual/dist/esm/index.js
1882
+ var useIsomorphicLayoutEffect = typeof document !== "undefined" ? L2.useLayoutEffect : L2.useEffect;
1883
+ function useVirtualizerBase({
1884
+ useFlushSync = true,
1885
+ directDomUpdates = false,
1886
+ directDomUpdatesMode = "transform",
1887
+ ...options
1888
+ }) {
1889
+ const rerender = L2.useReducer((x3) => x3 + 1, 0)[1];
1890
+ const directRef = L2.useRef({
1891
+ enabled: directDomUpdates,
1892
+ mode: directDomUpdatesMode,
1893
+ container: null,
1894
+ lastSize: null,
1895
+ // Keyed by the element itself so a remounted node (same key, new DOM
1896
+ // node — e.g. when `enabled` is toggled off then on) is treated as fresh
1897
+ // and gets its style written.
1898
+ lastPositions: /* @__PURE__ */ new WeakMap(),
1899
+ prevRange: null
1900
+ });
1901
+ directRef.current.enabled = directDomUpdates;
1902
+ directRef.current.mode = directDomUpdatesMode;
1903
+ const measuringFromRef = L2.useRef(false);
1904
+ const applyContainerSize = (instance2) => {
1905
+ const state = directRef.current;
1906
+ if (!state.enabled || !state.container) return;
1907
+ const totalSize = instance2.getTotalSize();
1908
+ if (totalSize !== state.lastSize) {
1909
+ state.lastSize = totalSize;
1910
+ const sizeAxis = instance2.options.horizontal ? "width" : "height";
1911
+ state.container.style[sizeAxis] = `${totalSize}px`;
1912
+ }
1913
+ };
1914
+ const applyDirectStyles = (instance2) => {
1915
+ const state = directRef.current;
1916
+ if (!state.enabled || !state.container) return;
1917
+ applyContainerSize(instance2);
1918
+ const horizontal = !!instance2.options.horizontal;
1919
+ const useTransform = state.mode === "transform";
1920
+ const posAxis = horizontal ? "left" : "top";
1921
+ const scrollMargin = instance2.options.scrollMargin;
1922
+ const items = instance2.getVirtualItems();
1923
+ for (const item of items) {
1924
+ const next = item.start - scrollMargin;
1925
+ const el = instance2.elementsCache.get(item.key);
1926
+ if (!el) continue;
1927
+ if (state.lastPositions.get(el) === next) continue;
1928
+ state.lastPositions.set(el, next);
1929
+ if (useTransform) {
1930
+ el.style.transform = horizontal ? `translate3d(${next}px, 0, 0)` : `translate3d(0, ${next}px, 0)`;
1931
+ } else {
1932
+ el.style[posAxis] = `${next}px`;
1933
+ }
1934
+ }
1935
+ };
1936
+ const resolvedOptions = {
1937
+ ...options,
1938
+ onChange: (instance2, sync) => {
1939
+ var _a;
1940
+ const state = directRef.current;
1941
+ let shouldRerender = true;
1942
+ if (state.enabled) {
1943
+ applyDirectStyles(instance2);
1944
+ const range = instance2.range;
1945
+ const prev = state.prevRange;
1946
+ shouldRerender = !prev || prev.isScrolling !== instance2.isScrolling || prev.startIndex !== (range == null ? void 0 : range.startIndex) || prev.endIndex !== (range == null ? void 0 : range.endIndex);
1947
+ if (shouldRerender) {
1948
+ state.prevRange = range ? {
1949
+ startIndex: range.startIndex,
1950
+ endIndex: range.endIndex,
1951
+ isScrolling: instance2.isScrolling
1952
+ } : null;
1953
+ }
1954
+ }
1955
+ if (shouldRerender) {
1956
+ if (useFlushSync && sync && !measuringFromRef.current) {
1957
+ flushSync(rerender);
1958
+ } else {
1959
+ rerender();
1960
+ }
1961
+ }
1962
+ (_a = options.onChange) == null ? void 0 : _a.call(options, instance2, sync);
1963
+ }
1964
+ };
1965
+ const [instance] = L2.useState(() => {
1966
+ const v3 = new Virtualizer(resolvedOptions);
1967
+ const measureElement2 = v3.measureElement;
1968
+ v3.measureElement = (node) => {
1969
+ measuringFromRef.current = true;
1970
+ try {
1971
+ measureElement2(node);
1972
+ } finally {
1973
+ measuringFromRef.current = false;
1974
+ }
1975
+ };
1976
+ return Object.assign(v3, {
1977
+ containerRef: (node) => {
1978
+ const state = directRef.current;
1979
+ state.container = node;
1980
+ state.lastSize = null;
1981
+ if (node && state.enabled) {
1982
+ const total = v3.getTotalSize();
1983
+ state.lastSize = total;
1984
+ const axis = v3.options.horizontal ? "width" : "height";
1985
+ node.style[axis] = `${total}px`;
1986
+ }
1987
+ }
1988
+ });
1989
+ });
1990
+ instance.setOptions(resolvedOptions);
1991
+ useIsomorphicLayoutEffect(() => {
1992
+ return instance._didMount();
1993
+ }, []);
1994
+ useIsomorphicLayoutEffect(() => {
1995
+ applyContainerSize(instance);
1996
+ return instance._willUpdate();
1997
+ });
1998
+ useIsomorphicLayoutEffect(() => {
1999
+ applyDirectStyles(instance);
2000
+ });
2001
+ return instance;
2002
+ }
2003
+ function useVirtualizer(options) {
2004
+ return useVirtualizerBase({
2005
+ observeElementRect,
2006
+ observeElementOffset,
2007
+ scrollToFn: elementScroll,
2008
+ ...options
2009
+ });
2010
+ }
2011
+ function v(e2) {
2012
+ let l4 = useRef({ value: "", selectionStart: null, selectionEnd: null });
2013
+ return E(e2, "blur", (n6) => {
2014
+ let t = n6.target;
2015
+ l2(t) && (l4.current = { value: t.value, selectionStart: t.selectionStart, selectionEnd: t.selectionEnd });
2016
+ }), o2(() => {
2017
+ if (!d(e2) && l2(e2) && e2.isConnected) {
2018
+ if (e2.focus({ preventScroll: true }), e2.value !== l4.current.value) e2.setSelectionRange(e2.value.length, e2.value.length);
2019
+ else {
2020
+ let { selectionStart: n6, selectionEnd: t } = l4.current;
2021
+ n6 !== null && t !== null && e2.setSelectionRange(n6, t);
2022
+ }
2023
+ l4.current = { value: "", selectionStart: null, selectionEnd: null };
2024
+ }
2025
+ });
2026
+ }
2027
+ function F(c5, { container: e2, accept: t, walk: r3 }) {
2028
+ let o4 = useRef(t), l4 = useRef(r3);
2029
+ useEffect(() => {
2030
+ o4.current = t, l4.current = r3;
2031
+ }, [t, r3]), n(() => {
2032
+ if (!e2 || !c5) return;
2033
+ let n6 = l$1(e2);
2034
+ if (!n6) return;
2035
+ let f4 = o4.current, p5 = l4.current, i2 = Object.assign((m3) => f4(m3), { acceptNode: f4 }), u10 = n6.createTreeWalker(e2, NodeFilter.SHOW_ELEMENT, i2, false);
2036
+ for (; u10.nextNode(); ) p5(u10.currentNode);
2037
+ }, [e2, c5, o4, l4]);
2038
+ }
2039
+
2040
+ // ../node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js
2041
+ var I = Object.defineProperty;
2042
+ var h = (t, i2, e2) => i2 in t ? I(t, i2, { enumerable: true, configurable: true, writable: true, value: e2 }) : t[i2] = e2;
2043
+ var f3 = (t, i2, e2) => (h(t, typeof i2 != "symbol" ? i2 + "" : i2, e2), e2);
2044
+ var P = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(P || {});
2045
+ var k3 = ((e2) => (e2[e2.Single = 0] = "Single", e2[e2.Multi = 1] = "Multi", e2))(k3 || {});
2046
+ var _ = ((n6) => (n6[n6.Pointer = 0] = "Pointer", n6[n6.Focus = 1] = "Focus", n6[n6.Other = 2] = "Other", n6))(_ || {});
2047
+ var D = ((l4) => (l4[l4.OpenCombobox = 0] = "OpenCombobox", l4[l4.CloseCombobox = 1] = "CloseCombobox", l4[l4.GoToOption = 2] = "GoToOption", l4[l4.SetTyping = 3] = "SetTyping", l4[l4.RegisterOption = 4] = "RegisterOption", l4[l4.UnregisterOption = 5] = "UnregisterOption", l4[l4.DefaultToFirstOption = 6] = "DefaultToFirstOption", l4[l4.SetActivationTrigger = 7] = "SetActivationTrigger", l4[l4.UpdateVirtualConfiguration = 8] = "UpdateVirtualConfiguration", l4[l4.SetInputElement = 9] = "SetInputElement", l4[l4.SetButtonElement = 10] = "SetButtonElement", l4[l4.SetOptionsElement = 11] = "SetOptionsElement", l4[l4.MarkInputAsMoved = 12] = "MarkInputAsMoved", l4))(D || {});
2048
+ function v2(t, i2 = (e2) => e2) {
2049
+ let e2 = t.activeOptionIndex !== null ? t.options[t.activeOptionIndex] : null, n6 = i2(t.options.slice()), o4 = n6.length > 0 && n6[0].dataRef.current.order !== null ? n6.sort((u10, a4) => u10.dataRef.current.order - a4.dataRef.current.order) : G(n6, (u10) => u10.dataRef.current.domRef.current), r3 = e2 ? o4.indexOf(e2) : null;
2050
+ return r3 === -1 && (r3 = null), { options: o4, activeOptionIndex: r3 };
2051
+ }
2052
+ var j2 = { [1](t) {
2053
+ var e2;
2054
+ if ((e2 = t.dataRef.current) != null && e2.disabled || t.comboboxState === 1) return t;
2055
+ let i2 = t.inputElement ? c2$1.Tracked(a$1(t.inputElement)) : t.inputPositionState;
2056
+ return { ...t, activeOptionIndex: null, comboboxState: 1, isTyping: false, activationTrigger: 2, inputPositionState: i2, __demoMode: false };
2057
+ }, [0](t) {
2058
+ var i2, e2;
2059
+ if ((i2 = t.dataRef.current) != null && i2.disabled || t.comboboxState === 0) return t;
2060
+ if ((e2 = t.dataRef.current) != null && e2.value) {
2061
+ let n6 = t.dataRef.current.calculateIndex(t.dataRef.current.value);
2062
+ if (n6 !== -1) return { ...t, activeOptionIndex: n6, comboboxState: 0, __demoMode: false, inputPositionState: c2$1.Idle };
2063
+ }
2064
+ return { ...t, comboboxState: 0, inputPositionState: c2$1.Idle, __demoMode: false };
2065
+ }, [3](t, i2) {
2066
+ return t.isTyping === i2.isTyping ? t : { ...t, isTyping: i2.isTyping };
2067
+ }, [2](t, i2) {
2068
+ var r3, u10, a4, s4;
2069
+ if ((r3 = t.dataRef.current) != null && r3.disabled || t.optionsElement && !((u10 = t.dataRef.current) != null && u10.optionsPropsRef.current.static) && t.comboboxState === 1) return t;
2070
+ if (t.virtual) {
2071
+ let { options: p5, disabled: c5 } = t.virtual, m3 = i2.focus === c$1.Specific ? i2.idx : f(i2, { resolveItems: () => p5, resolveActiveIndex: () => {
2072
+ var l4, x3;
2073
+ return (x3 = (l4 = t.activeOptionIndex) != null ? l4 : p5.findIndex((S3) => !c5(S3))) != null ? x3 : null;
2074
+ }, resolveDisabled: c5, resolveId() {
2075
+ throw new Error("Function not implemented.");
2076
+ } }), b3 = (a4 = i2.trigger) != null ? a4 : 2;
2077
+ return t.activeOptionIndex === m3 && t.activationTrigger === b3 ? t : { ...t, activeOptionIndex: m3, activationTrigger: b3, isTyping: false, __demoMode: false };
2078
+ }
2079
+ let e2 = v2(t);
2080
+ if (e2.activeOptionIndex === null) {
2081
+ let p5 = e2.options.findIndex((c5) => !c5.dataRef.current.disabled);
2082
+ p5 !== -1 && (e2.activeOptionIndex = p5);
2083
+ }
2084
+ let n6 = i2.focus === c$1.Specific ? i2.idx : f(i2, { resolveItems: () => e2.options, resolveActiveIndex: () => e2.activeOptionIndex, resolveId: (p5) => p5.id, resolveDisabled: (p5) => p5.dataRef.current.disabled }), o4 = (s4 = i2.trigger) != null ? s4 : 2;
2085
+ return t.activeOptionIndex === n6 && t.activationTrigger === o4 ? t : { ...t, ...e2, isTyping: false, activeOptionIndex: n6, activationTrigger: o4, __demoMode: false };
2086
+ }, [4]: (t, i2) => {
2087
+ var r3, u10, a4, s4;
2088
+ if ((r3 = t.dataRef.current) != null && r3.virtual) return { ...t, options: [...t.options, i2.payload] };
2089
+ let e2 = i2.payload, n6 = v2(t, (p5) => (p5.push(e2), p5));
2090
+ t.activeOptionIndex === null && (a4 = (u10 = t.dataRef.current).isSelected) != null && a4.call(u10, i2.payload.dataRef.current.value) && (n6.activeOptionIndex = n6.options.indexOf(e2));
2091
+ let o4 = { ...t, ...n6, activationTrigger: 2 };
2092
+ return (s4 = t.dataRef.current) != null && s4.__demoMode && t.dataRef.current.value === void 0 && (o4.activeOptionIndex = 0), o4;
2093
+ }, [5]: (t, i2) => {
2094
+ var n6;
2095
+ if ((n6 = t.dataRef.current) != null && n6.virtual) return { ...t, options: t.options.filter((o4) => o4.id !== i2.id) };
2096
+ let e2 = v2(t, (o4) => {
2097
+ let r3 = o4.findIndex((u10) => u10.id === i2.id);
2098
+ return r3 !== -1 && o4.splice(r3, 1), o4;
2099
+ });
2100
+ return { ...t, ...e2, activationTrigger: 2 };
2101
+ }, [6]: (t, i2) => t.defaultToFirstOption === i2.value ? t : { ...t, defaultToFirstOption: i2.value }, [7]: (t, i2) => t.activationTrigger === i2.trigger ? t : { ...t, activationTrigger: i2.trigger }, [8]: (t, i2) => {
2102
+ var n6, o4;
2103
+ if (t.virtual === null) return { ...t, virtual: { options: i2.options, disabled: (n6 = i2.disabled) != null ? n6 : () => false } };
2104
+ if (t.virtual.options === i2.options && t.virtual.disabled === i2.disabled) return t;
2105
+ let e2 = t.activeOptionIndex;
2106
+ if (t.activeOptionIndex !== null) {
2107
+ let r3 = i2.options.indexOf(t.virtual.options[t.activeOptionIndex]);
2108
+ r3 !== -1 ? e2 = r3 : e2 = null;
2109
+ }
2110
+ return { ...t, activeOptionIndex: e2, virtual: { options: i2.options, disabled: (o4 = i2.disabled) != null ? o4 : () => false } };
2111
+ }, [9]: (t, i2) => t.inputElement === i2.element ? t : { ...t, inputElement: i2.element }, [10]: (t, i2) => t.buttonElement === i2.element ? t : { ...t, buttonElement: i2.element }, [11]: (t, i2) => t.optionsElement === i2.element ? t : { ...t, optionsElement: i2.element }, [12](t) {
2112
+ return t.inputPositionState.kind !== "Tracked" ? t : { ...t, inputPositionState: c2$1.Moved };
2113
+ } };
2114
+ var y3 = class _y extends T {
2115
+ constructor(e2) {
2116
+ super(e2);
2117
+ f3(this, "actions", { onChange: (e3) => {
2118
+ let { onChange: n6, compare: o4, mode: r3, value: u10 } = this.state.dataRef.current;
2119
+ return u(r3, { [0]: () => n6 == null ? void 0 : n6(e3), [1]: () => {
2120
+ let a4 = u10.slice(), s4 = a4.findIndex((p5) => o4(p5, e3));
2121
+ return s4 === -1 ? a4.push(e3) : a4.splice(s4, 1), n6 == null ? void 0 : n6(a4);
2122
+ } });
2123
+ }, registerOption: (e3, n6) => (this.send({ type: 4, payload: { id: e3, dataRef: n6 } }), () => {
2124
+ this.state.activeOptionIndex === this.state.dataRef.current.calculateIndex(n6.current.value) && this.send({ type: 6, value: true }), this.send({ type: 5, id: e3 });
2125
+ }), goToOption: (e3, n6) => (this.send({ type: 6, value: false }), this.send({ type: 2, ...e3, trigger: n6 })), setIsTyping: (e3) => {
2126
+ this.send({ type: 3, isTyping: e3 });
2127
+ }, closeCombobox: () => {
2128
+ var e3, n6;
2129
+ this.send({ type: 1 }), this.send({ type: 6, value: false }), (n6 = (e3 = this.state.dataRef.current).onClose) == null || n6.call(e3);
2130
+ }, openCombobox: () => {
2131
+ this.send({ type: 0 }), this.send({ type: 6, value: true });
2132
+ }, setActivationTrigger: (e3) => {
2133
+ this.send({ type: 7, trigger: e3 });
2134
+ }, selectActiveOption: () => {
2135
+ let e3 = this.selectors.activeOptionIndex(this.state);
2136
+ if (e3 !== null) {
2137
+ if (this.actions.setIsTyping(false), this.state.virtual) this.actions.onChange(this.state.virtual.options[e3]);
2138
+ else {
2139
+ let { dataRef: n6 } = this.state.options[e3];
2140
+ this.actions.onChange(n6.current.value);
2141
+ }
2142
+ this.actions.goToOption({ focus: c$1.Specific, idx: e3 });
2143
+ }
2144
+ }, setInputElement: (e3) => {
2145
+ this.send({ type: 9, element: e3 });
2146
+ }, setButtonElement: (e3) => {
2147
+ this.send({ type: 10, element: e3 });
2148
+ }, setOptionsElement: (e3) => {
2149
+ this.send({ type: 11, element: e3 });
2150
+ } });
2151
+ f3(this, "selectors", { activeDescendantId: (e3) => {
2152
+ var o4, r3;
2153
+ let n6 = this.selectors.activeOptionIndex(e3);
2154
+ if (n6 !== null) return e3.virtual ? (r3 = e3.options.find((u10) => !u10.dataRef.current.disabled && e3.dataRef.current.compare(u10.dataRef.current.value, e3.virtual.options[n6]))) == null ? void 0 : r3.id : (o4 = e3.options[n6]) == null ? void 0 : o4.id;
2155
+ }, activeOptionIndex: (e3) => {
2156
+ if (e3.defaultToFirstOption && e3.activeOptionIndex === null && (e3.virtual ? e3.virtual.options.length > 0 : e3.options.length > 0)) {
2157
+ if (e3.virtual) {
2158
+ let { options: o4, disabled: r3 } = e3.virtual, u10 = o4.findIndex((a4) => {
2159
+ var s4;
2160
+ return !((s4 = r3 == null ? void 0 : r3(a4)) != null && s4);
2161
+ });
2162
+ if (u10 !== -1) return u10;
2163
+ }
2164
+ let n6 = e3.options.findIndex((o4) => !o4.dataRef.current.disabled);
2165
+ if (n6 !== -1) return n6;
2166
+ }
2167
+ return e3.activeOptionIndex;
2168
+ }, activeOption: (e3) => {
2169
+ var o4, r3;
2170
+ let n6 = this.selectors.activeOptionIndex(e3);
2171
+ return n6 === null ? null : e3.virtual ? e3.virtual.options[n6 != null ? n6 : 0] : (r3 = (o4 = e3.options[n6]) == null ? void 0 : o4.dataRef.current.value) != null ? r3 : null;
2172
+ }, isActive: (e3, n6, o4) => {
2173
+ var u10;
2174
+ let r3 = this.selectors.activeOptionIndex(e3);
2175
+ return r3 === null ? false : e3.virtual ? r3 === e3.dataRef.current.calculateIndex(n6) : ((u10 = e3.options[r3]) == null ? void 0 : u10.id) === o4;
2176
+ }, shouldScrollIntoView: (e3, n6, o4) => !(e3.virtual || e3.__demoMode || e3.comboboxState !== 0 || e3.activationTrigger === 0 || !this.selectors.isActive(e3, n6, o4)), didInputMove(e3) {
2177
+ return e3.inputPositionState.kind === "Moved";
2178
+ } });
2179
+ {
2180
+ let n6 = this.state.id, o4 = x.get(null);
2181
+ this.disposables.add(o4.on(k2.Push, (r3) => {
2182
+ !o4.selectors.isTop(r3, n6) && this.state.comboboxState === 0 && this.actions.closeCombobox();
2183
+ })), this.on(0, () => o4.actions.push(n6)), this.on(1, () => o4.actions.pop(n6));
2184
+ }
2185
+ this.disposables.group((n6) => {
2186
+ this.on(1, (o4) => {
2187
+ o4.inputElement && (n6.dispose(), n6.add(p$1(o4.inputElement, o4.inputPositionState, () => {
2188
+ this.send({ type: 12 });
2189
+ })));
2190
+ });
2191
+ });
2192
+ }
2193
+ static new({ id: e2, virtual: n6 = null, __demoMode: o4 = false }) {
2194
+ var r3;
2195
+ return new _y({ id: e2, dataRef: { current: {} }, comboboxState: o4 ? 0 : 1, isTyping: false, options: [], virtual: n6 ? { options: n6.options, disabled: (r3 = n6.disabled) != null ? r3 : () => false } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: o4, inputPositionState: c2$1.Idle });
2196
+ }
2197
+ reduce(e2, n6) {
2198
+ return u(n6.type, j2, e2, n6);
2199
+ }
2200
+ };
2201
+ var u9 = createContext(null);
2202
+ function p4(n6) {
2203
+ let o4 = useContext(u9);
2204
+ if (o4 === null) {
2205
+ let e2 = new Error(`<${n6} /> is missing a parent <Combobox /> component.`);
2206
+ throw Error.captureStackTrace && Error.captureStackTrace(e2, b2), e2;
2207
+ }
2208
+ return o4;
2209
+ }
2210
+ function b2({ id: n6, virtual: o4 = null, __demoMode: e2 = false }) {
2211
+ let t = useMemo(() => y3.new({ id: n6, virtual: o4, __demoMode: e2 }), []);
2212
+ return c2(() => t.dispose()), t;
2213
+ }
2214
+
2215
+ // ../node_modules/@headlessui/react/dist/components/combobox/combobox.js
2216
+ var de = createContext(null);
2217
+ de.displayName = "ComboboxDataContext";
2218
+ function te(T3) {
2219
+ let O = useContext(de);
2220
+ if (O === null) {
2221
+ let e2 = new Error(`<${T3} /> is missing a parent <Combobox /> component.`);
2222
+ throw Error.captureStackTrace && Error.captureStackTrace(e2, te), e2;
2223
+ }
2224
+ return O;
2225
+ }
2226
+ var Le = createContext(null);
2227
+ function Eo(T3) {
2228
+ let O = p4("VirtualProvider"), e2 = te("VirtualProvider"), { options: o4 } = e2.virtual, E3 = S(O, (a4) => a4.optionsElement), [R, y4] = useMemo(() => {
2229
+ let a4 = E3;
2230
+ if (!a4) return [0, 0];
2231
+ let u10 = window.getComputedStyle(a4);
2232
+ return [parseFloat(u10.paddingBlockStart || u10.paddingTop), parseFloat(u10.paddingBlockEnd || u10.paddingBottom)];
2233
+ }, [E3]), b3 = useVirtualizer({ enabled: o4.length !== 0, scrollPaddingStart: R, scrollPaddingEnd: y4, count: o4.length, estimateSize() {
2234
+ return 40;
2235
+ }, getScrollElement() {
2236
+ return O.state.optionsElement;
2237
+ }, overscan: 12 }), [h2, p5] = useState(0);
2238
+ n(() => {
2239
+ p5((a4) => a4 + 1);
2240
+ }, [o4]);
2241
+ let f4 = b3.getVirtualItems(), n6 = S(O, (a4) => a4.activationTrigger === _.Pointer), m3 = S(O, O.selectors.activeOptionIndex);
2242
+ return f4.length === 0 ? null : L2__default.createElement(Le.Provider, { value: b3 }, L2__default.createElement("div", { style: { position: "relative", width: "100%", height: `${b3.getTotalSize()}px` }, ref: (a4) => {
2243
+ a4 && (n6 || m3 !== null && o4.length > m3 && b3.scrollToIndex(m3));
2244
+ } }, f4.map((a4) => {
2245
+ var u10;
2246
+ return L2__default.createElement(Fragment, { key: a4.key }, L2__default.cloneElement((u10 = T3.children) == null ? void 0 : u10.call(T3, { ...T3.slot, option: o4[a4.index] }), { key: `${h2}-${a4.key}`, "data-index": a4.index, "aria-setsize": o4.length, "aria-posinset": a4.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${a4.start}px)`, overflowAnchor: "none" } }));
2247
+ })));
2248
+ }
2249
+ var ho = Fragment;
2250
+ function Ao(T3, O) {
2251
+ let e2 = r(), o4 = a(), { value: E3, defaultValue: R, onChange: y4, form: b3, name: h2, by: p5, invalid: f4 = false, disabled: n6 = o4 || false, onClose: m3, __demoMode: a4 = false, multiple: u10 = false, immediate: A2 = false, virtual: d2 = null, nullable: X, ...G2 } = T3, C = l(R), [x3 = u10 ? [] : void 0, v3] = b(E3, y4, C), c5 = b2({ id: e2, virtual: d2, __demoMode: a4 }), z = useRef({ static: false, hold: false }), D2 = u2(p5), K2 = o2((i2) => d2 ? p5 === null ? d2.options.indexOf(i2) : d2.options.findIndex((M) => D2(M, i2)) : c5.state.options.findIndex((M) => D2(M.dataRef.current.value, i2))), W = useCallback((i2) => u(l4.mode, { [k3.Multi]: () => x3.some((M) => D2(M, i2)), [k3.Single]: () => D2(x3, i2) }), [x3]), S3 = S(c5, (i2) => i2.virtual), j3 = o2(() => m3 == null ? void 0 : m3()), l4 = useMemo(() => ({ __demoMode: a4, immediate: A2, optionsPropsRef: z, value: x3, defaultValue: C, disabled: n6, invalid: f4, mode: u10 ? k3.Multi : k3.Single, virtual: d2 ? S3 : null, onChange: v3, isSelected: W, calculateIndex: K2, compare: D2, onClose: j3 }), [a4, A2, z, x3, C, n6, f4, u10, d2, S3, v3, W, K2, D2, j3]);
2252
+ n(() => {
2253
+ var i2;
2254
+ d2 && c5.send({ type: D.UpdateVirtualConfiguration, options: d2.options, disabled: (i2 = d2.disabled) != null ? i2 : null });
2255
+ }, [d2, d2 == null ? void 0 : d2.options, d2 == null ? void 0 : d2.disabled]), n(() => {
2256
+ c5.state.dataRef.current = l4;
2257
+ }, [l4]);
2258
+ let [k4, Y2, s4, U] = S(c5, (i2) => [i2.comboboxState, i2.buttonElement, i2.inputElement, i2.optionsElement]), $ = x.get(null), ne = S($, useCallback((i2) => $.selectors.isTop(i2, e2), [$, e2]));
2259
+ k3$1(ne, [Y2, s4, U], () => c5.actions.closeCombobox());
2260
+ let be = S(c5, c5.selectors.activeOptionIndex), ee = S(c5, c5.selectors.activeOption), q = n2({ open: k4 === P.Open, disabled: n6, invalid: f4, activeIndex: be, activeOption: ee, value: x3 }), [t, V3] = V(), P2 = O === null ? {} : { ref: O }, N3 = useCallback(() => {
2261
+ if (C !== void 0) return v3 == null ? void 0 : v3(C);
2262
+ }, [v3, C]), g2 = K();
2263
+ return L2__default.createElement(V3, { value: t, props: { htmlFor: s4 == null ? void 0 : s4.id }, slot: { open: k4 === P.Open, disabled: n6 } }, L2__default.createElement(Ae, null, L2__default.createElement(de.Provider, { value: l4 }, L2__default.createElement(u9.Provider, { value: c5 }, L2__default.createElement(c, { value: u(k4, { [P.Open]: i3.Open, [P.Closed]: i3.Closed }) }, h2 != null && L2__default.createElement(j, { disabled: n6, data: x3 != null ? { [h2]: x3 } : {}, form: b3, onReset: N3 }), g2({ ourProps: P2, theirProps: G2, slot: q, defaultTag: ho, name: "Combobox" }))))));
2264
+ }
2265
+ var Io = "input";
2266
+ function Ro(T3, O) {
2267
+ var ee, q;
2268
+ let e2 = p4("Combobox.Input"), o4$1 = te("Combobox.Input"), E3 = r(), R = u$1(), { id: y4 = R || `headlessui-combobox-input-${E3}`, onChange: b3, displayValue: h2, disabled: p5 = o4$1.disabled || false, autoFocus: f4 = false, type: n6 = "text", ...m3 } = T3, a4 = useRef(null), u10 = y(a4, O, Fe(), e2.actions.setInputElement), [A2, d2] = S(e2, (t) => [t.comboboxState, t.isTyping]), X = p(), G2 = o2(() => {
2269
+ e2.actions.onChange(null), e2.state.optionsElement && (e2.state.optionsElement.scrollTop = 0), e2.actions.goToOption({ focus: c$1.Nothing });
2270
+ }), C = useMemo(() => {
2271
+ var t;
2272
+ return typeof h2 == "function" && o4$1.value !== void 0 ? (t = h2(o4$1.value)) != null ? t : "" : typeof o4$1.value == "string" ? o4$1.value : "";
2273
+ }, [o4$1.value, h2]);
2274
+ m(([t, V3], [P2, N3]) => {
2275
+ if (e2.state.isTyping) return;
2276
+ let g2 = a4.current;
2277
+ g2 && ((N3 === P.Open && V3 === P.Closed || t !== P2) && (g2.value = t), requestAnimationFrame(() => {
2278
+ if (e2.state.isTyping || !g2 || d(g2)) return;
2279
+ let { selectionStart: i2, selectionEnd: M } = g2;
2280
+ Math.abs((M != null ? M : 0) - (i2 != null ? i2 : 0)) === 0 && i2 === 0 && g2.setSelectionRange(g2.value.length, g2.value.length);
2281
+ }));
2282
+ }, [C, A2, d2]), m(([t], [V3]) => {
2283
+ if (t === P.Open && V3 === P.Closed) {
2284
+ if (e2.state.isTyping) return;
2285
+ let P2 = a4.current;
2286
+ if (!P2) return;
2287
+ let N3 = P2.value, { selectionStart: g2, selectionEnd: i2, selectionDirection: M } = P2;
2288
+ P2.value = "", P2.value = N3, M !== null ? P2.setSelectionRange(g2, i2, M) : P2.setSelectionRange(g2, i2);
2289
+ }
2290
+ }, [A2]);
2291
+ let x3 = useRef(false), v3 = o2(() => {
2292
+ x3.current = true;
2293
+ }), c5 = o2(() => {
2294
+ X.nextFrame(() => {
2295
+ x3.current = false;
2296
+ });
2297
+ }), z = o2((t) => {
2298
+ switch (e2.actions.setIsTyping(true), t.key) {
2299
+ case o4.Enter:
2300
+ if (e2.state.comboboxState !== P.Open || x3.current) return;
2301
+ if (t.preventDefault(), t.stopPropagation(), e2.selectors.activeOptionIndex(e2.state) === null) {
2302
+ e2.actions.closeCombobox();
2303
+ return;
2304
+ }
2305
+ e2.actions.selectActiveOption(), o4$1.mode === k3.Single && e2.actions.closeCombobox();
2306
+ break;
2307
+ case o4.ArrowDown:
2308
+ return t.preventDefault(), t.stopPropagation(), u(e2.state.comboboxState, { [P.Open]: () => e2.actions.goToOption({ focus: c$1.Next }), [P.Closed]: () => e2.actions.openCombobox() });
2309
+ case o4.ArrowUp:
2310
+ return t.preventDefault(), t.stopPropagation(), u(e2.state.comboboxState, { [P.Open]: () => e2.actions.goToOption({ focus: c$1.Previous }), [P.Closed]: () => {
2311
+ flushSync(() => e2.actions.openCombobox()), o4$1.value || e2.actions.goToOption({ focus: c$1.Last });
2312
+ } });
2313
+ case o4.Home:
2314
+ if (e2.state.comboboxState === P.Closed || t.shiftKey) break;
2315
+ return t.preventDefault(), t.stopPropagation(), e2.actions.goToOption({ focus: c$1.First });
2316
+ case o4.PageUp:
2317
+ return t.preventDefault(), t.stopPropagation(), e2.actions.goToOption({ focus: c$1.First });
2318
+ case o4.End:
2319
+ if (e2.state.comboboxState === P.Closed || t.shiftKey) break;
2320
+ return t.preventDefault(), t.stopPropagation(), e2.actions.goToOption({ focus: c$1.Last });
2321
+ case o4.PageDown:
2322
+ return t.preventDefault(), t.stopPropagation(), e2.actions.goToOption({ focus: c$1.Last });
2323
+ case o4.Escape:
2324
+ return e2.state.comboboxState !== P.Open ? void 0 : (t.preventDefault(), e2.state.optionsElement && !o4$1.optionsPropsRef.current.static && t.stopPropagation(), o4$1.mode === k3.Single && o4$1.value === null && G2(), e2.actions.closeCombobox());
2325
+ case o4.Tab:
2326
+ if (e2.actions.setIsTyping(false), e2.state.comboboxState !== P.Open) return;
2327
+ o4$1.mode === k3.Single && e2.state.activationTrigger !== _.Focus && e2.actions.selectActiveOption(), e2.actions.closeCombobox();
2328
+ break;
2329
+ }
2330
+ }), D2 = o2((t) => {
2331
+ b3 == null || b3(t), o4$1.mode === k3.Single && t.target.value === "" && G2(), e2.actions.openCombobox();
2332
+ }), K2 = o2((t) => {
2333
+ var P2, N3, g2;
2334
+ let V3 = (P2 = t.relatedTarget) != null ? P2 : n$1.find((i2) => i2 !== t.currentTarget);
2335
+ if (!((N3 = e2.state.optionsElement) != null && N3.contains(V3)) && !((g2 = e2.state.buttonElement) != null && g2.contains(V3)) && e2.state.comboboxState === P.Open) return t.preventDefault(), o4$1.mode === k3.Single && o4$1.value === null && G2(), e2.actions.closeCombobox();
2336
+ }), W = o2((t) => {
2337
+ var P2, N3, g2;
2338
+ let V3 = (P2 = t.relatedTarget) != null ? P2 : n$1.find((i2) => i2 !== t.currentTarget);
2339
+ (N3 = e2.state.buttonElement) != null && N3.contains(V3) || (g2 = e2.state.optionsElement) != null && g2.contains(V3) || o4$1.disabled || o4$1.immediate && e2.state.comboboxState !== P.Open && X.microTask(() => {
2340
+ flushSync(() => e2.actions.openCombobox()), e2.actions.setActivationTrigger(_.Focus);
2341
+ });
2342
+ }), S3 = N(), j3 = w$1(), { isFocused: l4, focusProps: k4 } = $0c4a58759813079a$export$4e328f61c538687f({ autoFocus: f4 }), { isHovered: Y2, hoverProps: s4 } = $e969f22b6713ca4a$export$ae780daf29e6d456({ isDisabled: p5 }), U = S(e2, (t) => t.optionsElement), $ = n2({ open: A2 === P.Open, disabled: p5, invalid: o4$1.invalid, hover: Y2, focus: l4, autofocus: f4 }), ne = V$1({ ref: u10, id: y4, role: "combobox", type: n6, "aria-controls": U == null ? void 0 : U.id, "aria-expanded": A2 === P.Open, "aria-activedescendant": S(e2, e2.selectors.activeDescendantId), "aria-labelledby": S3, "aria-describedby": j3, "aria-autocomplete": "list", defaultValue: (q = (ee = T3.defaultValue) != null ? ee : o4$1.defaultValue !== void 0 ? h2 == null ? void 0 : h2(o4$1.defaultValue) : null) != null ? q : o4$1.defaultValue, disabled: p5 || void 0, autoFocus: f4, onCompositionStart: v3, onCompositionEnd: c5, onKeyDown: z, onChange: D2, onFocus: W, onBlur: K2 }, k4, s4);
2343
+ return K()({ ourProps: ne, theirProps: m3, slot: $, defaultTag: Io, name: "Combobox.Input" });
2344
+ }
2345
+ var _o = "button";
2346
+ function Fo(T3, O) {
2347
+ let e2 = p4("Combobox.Button"), o4$1 = te("Combobox.Button"), [E3, R] = useState(null), y4 = y(O, R, e2.actions.setButtonElement), b3 = r(), { id: h2 = `headlessui-combobox-button-${b3}`, disabled: p5 = o4$1.disabled || false, autoFocus: f4 = false, ...n6 } = T3, [m3, a4, u10] = S(e2, (l4) => [l4.comboboxState, l4.inputElement, l4.optionsElement]), A2 = v(a4), d2 = m3 === P.Open;
2348
+ L(d2, { trigger: E3, action: useCallback((l4) => {
2349
+ if (E3 != null && E3.contains(l4.target)) return S$1.Ignore;
2350
+ if (a4 != null && a4.contains(l4.target)) return S$1.Ignore;
2351
+ let k4 = l4.target.closest('[role="option"]:not([data-disabled])');
2352
+ return n3(k4) ? S$1.Select(k4) : u10 != null && u10.contains(l4.target) ? S$1.Ignore : S$1.Close;
2353
+ }, [E3, a4, u10]), close: e2.actions.closeCombobox, select: e2.actions.selectActiveOption });
2354
+ let X = o2((l4) => {
2355
+ switch (l4.key) {
2356
+ case o4.Space:
2357
+ case o4.Enter:
2358
+ l4.preventDefault(), l4.stopPropagation(), e2.state.comboboxState === P.Closed && flushSync(() => e2.actions.openCombobox()), A2();
2359
+ return;
2360
+ case o4.ArrowDown:
2361
+ l4.preventDefault(), l4.stopPropagation(), e2.state.comboboxState === P.Closed && (flushSync(() => e2.actions.openCombobox()), e2.state.dataRef.current.value || e2.actions.goToOption({ focus: c$1.First })), A2();
2362
+ return;
2363
+ case o4.ArrowUp:
2364
+ l4.preventDefault(), l4.stopPropagation(), e2.state.comboboxState === P.Closed && (flushSync(() => e2.actions.openCombobox()), e2.state.dataRef.current.value || e2.actions.goToOption({ focus: c$1.Last })), A2();
2365
+ return;
2366
+ case o4.Escape:
2367
+ if (e2.state.comboboxState !== P.Open) return;
2368
+ l4.preventDefault(), e2.state.optionsElement && !o4$1.optionsPropsRef.current.static && l4.stopPropagation(), flushSync(() => e2.actions.closeCombobox()), A2();
2369
+ return;
2370
+ default:
2371
+ return;
2372
+ }
2373
+ }), G2 = s(() => {
2374
+ e2.state.comboboxState === P.Open ? e2.actions.closeCombobox() : e2.actions.openCombobox(), A2();
2375
+ }), C = N([h2]), { isFocusVisible: x3, focusProps: v3 } = $0c4a58759813079a$export$4e328f61c538687f({ autoFocus: f4 }), { isHovered: c5, hoverProps: z } = $e969f22b6713ca4a$export$ae780daf29e6d456({ isDisabled: p5 }), { pressed: D2, pressProps: K2 } = w({ disabled: p5 }), W = n2({ open: m3 === P.Open, active: D2 || m3 === P.Open, disabled: p5, invalid: o4$1.invalid, value: o4$1.value, hover: c5, focus: x3 }), S3 = V$1({ ref: y4, id: h2, type: e(T3, E3), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": u10 == null ? void 0 : u10.id, "aria-expanded": m3 === P.Open, "aria-labelledby": C, disabled: p5 || void 0, autoFocus: f4, onKeyDown: X }, G2, v3, z, K2);
2376
+ return K()({ ourProps: S3, theirProps: n6, slot: W, defaultTag: _o, name: "Combobox.Button" });
2377
+ }
2378
+ var Do = "div";
2379
+ var So = A.RenderStrategy | A.Static;
2380
+ function Mo(T3, O) {
2381
+ var M, Ce, ve;
2382
+ let e2 = r(), { id: o4 = `headlessui-combobox-options-${e2}`, hold: E3 = false, anchor: R, portal: y4 = false, modal: b3 = true, transition: h2 = false, ...p5 } = T3, f4 = p4("Combobox.Options"), n6 = te("Combobox.Options"), m3 = ye(R);
2383
+ m3 && (y4 = true);
2384
+ let [a4, u10] = Re(m3), [A2, d2] = useState(null), X = Te(), G2 = y(O, m3 ? a4 : null, f4.actions.setOptionsElement, d2), [C, x3, v3, c5, z] = S(f4, (_2) => [_2.comboboxState, _2.inputElement, _2.buttonElement, _2.optionsElement, _2.activationTrigger]), D2 = u2$1(x3 || v3), K2 = u2$1(c5), W = u3(), [S3, j3] = N$1(h2, A2, W !== null ? (W & i3.Open) === i3.Open : C === P.Open);
2385
+ p2(S3, x3, f4.actions.closeCombobox);
2386
+ let l4 = n6.__demoMode ? false : b3 && C === P.Open;
2387
+ f2(l4, K2);
2388
+ let k4 = n6.__demoMode ? false : b3 && C === P.Open;
2389
+ y2(k4, { allowed: useCallback(() => [x3, v3, c5], [x3, v3, c5]) });
2390
+ let s4 = S(f4, f4.selectors.didInputMove) ? false : S3;
2391
+ n(() => {
2392
+ var _2;
2393
+ n6.optionsPropsRef.current.static = (_2 = T3.static) != null ? _2 : false;
2394
+ }, [n6.optionsPropsRef, T3.static]), n(() => {
2395
+ n6.optionsPropsRef.current.hold = E3;
2396
+ }, [n6.optionsPropsRef, E3]), F(C === P.Open, { container: c5, accept(_2) {
2397
+ return _2.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : _2.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
2398
+ }, walk(_2) {
2399
+ _2.setAttribute("role", "none");
2400
+ } });
2401
+ let U = N([v3 == null ? void 0 : v3.id]), $ = n2({ open: C === P.Open, option: void 0 }), ne = o2(() => {
2402
+ f4.actions.setActivationTrigger(_.Pointer);
2403
+ }), be = o2((_2) => {
2404
+ _2.preventDefault(), f4.actions.setActivationTrigger(_.Pointer);
2405
+ }), ee = V$1(m3 ? X() : {}, { "aria-labelledby": U, role: "listbox", "aria-multiselectable": n6.mode === k3.Multi ? true : void 0, id: o4, ref: G2, style: { ...p5.style, ...u10, "--input-width": w2(S3, x3, true).width, "--button-width": w2(S3, v3, true).width }, onWheel: z === _.Pointer ? void 0 : ne, onMouseDown: be, ...x2(j3) }), q = S3 && C === P.Closed && !T3.static, t = u4(q, (M = n6.virtual) == null ? void 0 : M.options), V3 = u4(q, n6.value), P2 = useCallback((_2) => n6.compare(V3, _2), [n6.compare, V3]), N3 = useMemo(() => {
2406
+ if (!n6.virtual) return n6;
2407
+ if (t === void 0) throw new Error("Missing `options` in virtual mode");
2408
+ return t !== n6.virtual.options ? { ...n6, virtual: { ...n6.virtual, options: t } } : n6;
2409
+ }, [n6, t, (Ce = n6.virtual) == null ? void 0 : Ce.options]);
2410
+ n6.virtual && Object.assign(p5, { children: L2__default.createElement(de.Provider, { value: N3 }, L2__default.createElement(Eo, { slot: $ }, p5.children)) });
2411
+ let g2 = K(), i2 = useMemo(() => n6.mode === k3.Multi ? n6 : { ...n6, isSelected: P2 }, [n6, P2]);
2412
+ return L2__default.createElement(le, { enabled: y4 ? T3.static || S3 : false, ownerDocument: D2 }, L2__default.createElement(de.Provider, { value: i2 }, g2({ ourProps: ee, theirProps: { ...p5, children: L2__default.createElement(s2, { freeze: q }, typeof p5.children == "function" ? (ve = p5.children) == null ? void 0 : ve.call(p5, $) : p5.children) }, slot: $, defaultTag: Do, features: So, visible: s4, name: "Combobox.Options" })));
2413
+ }
2414
+ var Lo = "div";
2415
+ function Vo(T3, O) {
2416
+ var l4, k4, Y2;
2417
+ let e2 = te("Combobox.Option"), o4 = p4("Combobox.Option"), E3 = r(), { id: R = `headlessui-combobox-option-${E3}`, value: y4, disabled: b3 = (Y2 = (k4 = (l4 = e2.virtual) == null ? void 0 : l4.disabled) == null ? void 0 : k4.call(l4, y4)) != null ? Y2 : false, order: h2 = null, ...p5 } = T3, [f4] = S(o4, (s4) => [s4.inputElement]), n6 = v(f4), m3 = S(o4, useCallback((s4) => o4.selectors.isActive(s4, y4, R), [y4, R])), a4 = e2.isSelected(y4), u10 = useRef(null), A2 = s$1({ disabled: b3, value: y4, domRef: u10, order: h2 }), d2 = useContext(Le), X = y(O, u10, d2 ? d2.measureElement : null), G2 = o2(() => {
2418
+ o4.actions.setIsTyping(false), o4.actions.onChange(y4);
2419
+ });
2420
+ n(() => o4.actions.registerOption(R, A2), [A2, R]);
2421
+ let C = S(o4, useCallback((s4) => o4.selectors.shouldScrollIntoView(s4, y4, R), [y4, R]));
2422
+ n(() => {
2423
+ if (C) return o().requestAnimationFrame(() => {
2424
+ var s4, U;
2425
+ (U = (s4 = u10.current) == null ? void 0 : s4.scrollIntoView) == null || U.call(s4, { block: "nearest" });
2426
+ });
2427
+ }, [C, u10]);
2428
+ let x3 = o2((s4) => {
2429
+ s4.preventDefault(), s4.button === g2.Left && (b3 || (G2(), n4() || requestAnimationFrame(() => n6()), e2.mode === k3.Single && o4.actions.closeCombobox()));
2430
+ }), v3 = o2(() => {
2431
+ if (b3) return o4.actions.goToOption({ focus: c$1.Nothing });
2432
+ let s4 = e2.calculateIndex(y4);
2433
+ o4.actions.goToOption({ focus: c$1.Specific, idx: s4 });
2434
+ }), c5 = u3$1(), z = o2((s4) => c5.update(s4)), D2 = o2((s4) => {
2435
+ if (!c5.wasMoved(s4) || b3 || m3 && o4.state.activationTrigger === _.Pointer) return;
2436
+ let U = e2.calculateIndex(y4);
2437
+ o4.actions.goToOption({ focus: c$1.Specific, idx: U }, _.Pointer);
2438
+ }), K2 = o2((s4) => {
2439
+ c5.wasMoved(s4) && (b3 || m3 && (e2.optionsPropsRef.current.hold || o4.state.activationTrigger === _.Pointer && o4.actions.goToOption({ focus: c$1.Nothing })));
2440
+ }), W = n2({ active: m3, focus: m3, selected: a4, disabled: b3 }), S3 = { id: R, ref: X, role: "option", tabIndex: b3 === true ? void 0 : -1, "aria-disabled": b3 === true ? true : void 0, "aria-selected": a4, disabled: void 0, onMouseDown: x3, onFocus: v3, onPointerEnter: z, onMouseEnter: z, onPointerMove: D2, onMouseMove: D2, onPointerLeave: K2, onMouseLeave: K2 };
2441
+ return K()({ ourProps: S3, theirProps: p5, slot: W, defaultTag: Lo, name: "Combobox.Option" });
2442
+ }
2443
+ var wo = Y(Ao);
2444
+ var Bo = Y(Fo);
2445
+ var ko = Y(Ro);
2446
+ var No = Z;
2447
+ var Uo = Y(Mo);
2448
+ var Ho = Y(Vo);
2449
+ var Ht = Object.assign(wo, { Input: ko, Button: Bo, Label: No, Options: Uo, Option: Ho });
2450
+ var Combobox = ({
2451
+ options,
2452
+ value,
2453
+ onChange,
2454
+ onSearch,
2455
+ placeholder = "Search...",
2456
+ multiple = false,
2457
+ isLoading = false,
2458
+ disabled = false,
2459
+ name,
2460
+ id,
2461
+ className
2462
+ }) => {
2463
+ const [query, setQuery] = useState("");
2464
+ const filteredOptions = useMemo(() => {
2465
+ if (onSearch) return options;
2466
+ if (!query) return options;
2467
+ return options.filter(
2468
+ (opt) => opt.label.toLowerCase().includes(query.toLowerCase())
2469
+ );
2470
+ }, [options, query, onSearch]);
2471
+ const handleInputChange = (e2) => {
2472
+ const q = e2.target.value;
2473
+ setQuery(q);
2474
+ onSearch?.(q);
2475
+ };
2476
+ const selectedLabels = useMemo(() => {
2477
+ if (!multiple || !Array.isArray(value)) return [];
2478
+ return value.map((v3) => options.find((o4) => o4.value === v3)).filter(Boolean);
2479
+ }, [value, options, multiple]);
2480
+ const displayValue = useMemo(() => {
2481
+ if (multiple) return "";
2482
+ if (!value || Array.isArray(value)) return "";
2483
+ return options.find((o4) => o4.value === value)?.label || "";
2484
+ }, [value, options, multiple]);
2485
+ if (multiple) {
2486
+ return /* @__PURE__ */ jsxs("div", { className, children: [
2487
+ selectedLabels.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1 mb-2", children: selectedLabels.map((opt) => /* @__PURE__ */ jsx(
2488
+ Badge_default,
2489
+ {
2490
+ text: opt.label,
2491
+ color: "slate",
2492
+ onClick: () => {
2493
+ const next = value.filter(
2494
+ (v3) => v3 !== opt.value
2495
+ );
2496
+ onChange(next);
2497
+ }
2498
+ },
2499
+ opt.value
2500
+ )) }),
2501
+ /* @__PURE__ */ jsx(
2502
+ Ht,
2503
+ {
2504
+ value: value || [],
2505
+ onChange,
2506
+ multiple: true,
2507
+ disabled,
2508
+ name,
2509
+ immediate: true,
2510
+ children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2511
+ /* @__PURE__ */ jsx(
2512
+ ko,
2513
+ {
2514
+ id,
2515
+ className: "w-full rounded-md border border-border-default bg-surface-input py-2 pl-3 pr-10 text-sm text-text-primary placeholder:text-text-muted shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",
2516
+ placeholder,
2517
+ onChange: handleInputChange,
2518
+ displayValue: () => query
2519
+ }
2520
+ ),
2521
+ /* @__PURE__ */ jsx(Bo, { className: "absolute inset-y-0 right-0 flex items-center pr-2", children: /* @__PURE__ */ jsx(
2522
+ ChevronUpDownIcon_default,
2523
+ {
2524
+ className: "h-5 w-5 text-text-muted",
2525
+ "aria-hidden": "true"
2526
+ }
2527
+ ) }),
2528
+ /* @__PURE__ */ jsx(Uo, { className: "absolute z-50 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg focus:outline-hidden", children: isLoading ? /* @__PURE__ */ jsx("div", { className: "px-4 py-2 text-text-muted", children: "Loading..." }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx("div", { className: "px-4 py-2 text-text-muted", children: "No results found" }) : filteredOptions.map((opt) => /* @__PURE__ */ jsx(
2529
+ Ho,
2530
+ {
2531
+ value: opt.value,
2532
+ className: "group relative cursor-pointer select-none py-2 pl-10 pr-4 text-text-primary data-focus:bg-surface-raised",
2533
+ children: ({ selected }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
2534
+ /* @__PURE__ */ jsx(
2535
+ "span",
2536
+ {
2537
+ className: clsx_default(
2538
+ "block truncate",
2539
+ selected && "font-medium"
2540
+ ),
2541
+ children: opt.label
2542
+ }
2543
+ ),
2544
+ selected && /* @__PURE__ */ jsx("span", { className: "absolute inset-y-0 left-0 flex items-center pl-3 text-accent", children: /* @__PURE__ */ jsx(CheckIcon_default, { className: "h-5 w-5", "aria-hidden": "true" }) })
2545
+ ] })
2546
+ },
2547
+ opt.value
2548
+ )) })
2549
+ ] })
2550
+ }
2551
+ )
2552
+ ] });
2553
+ }
2554
+ return /* @__PURE__ */ jsx(
2555
+ Ht,
2556
+ {
2557
+ value: value || null,
2558
+ onChange,
2559
+ disabled,
2560
+ name,
2561
+ children: /* @__PURE__ */ jsxs("div", { className: clsx_default("relative", className), children: [
2562
+ /* @__PURE__ */ jsx(
2563
+ ko,
2564
+ {
2565
+ id,
2566
+ className: "w-full rounded-md border border-border-default bg-surface-input py-2.5 pl-4 pr-10 text-sm text-text-primary placeholder:text-text-muted shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",
2567
+ placeholder,
2568
+ onChange: handleInputChange,
2569
+ displayValue: () => query || displayValue
2570
+ }
2571
+ ),
2572
+ /* @__PURE__ */ jsx(Bo, { className: "absolute inset-y-0 right-0 flex items-center pr-2", children: /* @__PURE__ */ jsx(
2573
+ ChevronUpDownIcon_default,
2574
+ {
2575
+ className: "h-5 w-5 text-text-muted",
2576
+ "aria-hidden": "true"
2577
+ }
2578
+ ) }),
2579
+ /* @__PURE__ */ jsx(Uo, { className: "absolute z-50 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg focus:outline-hidden", children: isLoading ? /* @__PURE__ */ jsx("div", { className: "px-4 py-2 text-text-muted", children: "Loading..." }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx("div", { className: "px-4 py-2 text-text-muted", children: "No results found" }) : filteredOptions.map((opt) => /* @__PURE__ */ jsx(
2580
+ Ho,
2581
+ {
2582
+ value: opt.value,
2583
+ className: "group relative cursor-pointer select-none py-2 pl-10 pr-4 text-text-primary data-focus:bg-surface-raised",
2584
+ children: ({ selected }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
2585
+ /* @__PURE__ */ jsx(
2586
+ "span",
2587
+ {
2588
+ className: clsx_default(
2589
+ "block truncate",
2590
+ selected && "font-medium"
2591
+ ),
2592
+ children: opt.label
2593
+ }
2594
+ ),
2595
+ selected && /* @__PURE__ */ jsx("span", { className: "absolute inset-y-0 left-0 flex items-center pl-3 text-accent", children: /* @__PURE__ */ jsx(CheckIcon_default, { className: "h-5 w-5", "aria-hidden": "true" }) })
2596
+ ] })
2597
+ },
2598
+ opt.value
2599
+ )) })
2600
+ ] })
2601
+ }
2602
+ );
2603
+ };
2604
+ var Combobox_default = Combobox;
2605
+
2606
+ export { CheckboxField_default as CheckboxField, ChoicesField_default as ChoicesField, Combobox_default as Combobox, DatePickerField_default as DatePickerField, EmailField_default as EmailField, FieldWithHelp_default as FieldWithHelp, JSONAreaField_default as JSONAreaField, PasswordField_default as PasswordField, SelectField_default as SelectField, TextAreaField_default as TextAreaField };