@unchainedshop/admin-ui 4.8.26 → 4.8.27

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 (377) hide show
  1. package/dist/chunk-45H2WVIC.js +51 -0
  2. package/dist/chunk-4VNS5WPM.js +37 -0
  3. package/dist/chunk-54DKBWXV.js +33 -0
  4. package/dist/chunk-6TXD4TA7.js +1196 -0
  5. package/dist/chunk-BGCKJQGS.js +58 -0
  6. package/dist/chunk-BYXBJQAS.js +1 -0
  7. package/dist/chunk-EJDZRZSZ.js +59 -0
  8. package/dist/chunk-ELPURWDC.js +75 -0
  9. package/dist/chunk-IAQPLRXZ.js +16 -0
  10. package/dist/chunk-ILYPJE4N.js +57 -0
  11. package/dist/chunk-IXBMHOB5.js +13 -0
  12. package/dist/chunk-KH5MK6ZW.js +18 -0
  13. package/dist/chunk-NT7RB7AK.js +70 -0
  14. package/dist/chunk-OKGJ6HDE.js +26 -0
  15. package/dist/chunk-Q6S3LBUF.js +180 -0
  16. package/dist/chunk-QNLGYFV7.js +22 -0
  17. package/dist/chunk-RAQV2GYF.js +70 -0
  18. package/dist/chunk-RHUFQVKL.js +514 -0
  19. package/dist/chunk-RVG6IOFC.js +11 -0
  20. package/dist/chunk-SRAAKMWY.js +39 -0
  21. package/dist/chunk-UFYR5WZT.js +165 -0
  22. package/dist/chunk-UXG7EYHC.js +614 -0
  23. package/dist/chunk-VDKQGOMV.js +840 -0
  24. package/dist/chunk-XHOCXPD5.js +9 -0
  25. package/dist/chunk-XJBPMIC4.js +284 -0
  26. package/dist/chunk-YO6PT7KD.js +13 -0
  27. package/dist/chunk-YSKZE2KN.js +652 -0
  28. package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
  29. package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
  30. package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
  31. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
  32. package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
  33. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
  34. package/dist/components/ui/ActiveInActive.d.ts +10 -0
  35. package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
  36. package/dist/components/ui/AnimatedCounter.d.ts +7 -0
  37. package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
  38. package/dist/components/ui/Badge.d.ts +10 -0
  39. package/dist/components/ui/Badge.d.ts.map +1 -0
  40. package/dist/components/ui/BreadCrumbs.d.ts +7 -0
  41. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
  42. package/dist/components/ui/Button.d.ts +36 -0
  43. package/dist/components/ui/Button.d.ts.map +1 -0
  44. package/dist/components/ui/CopyableText.d.ts +5 -0
  45. package/dist/components/ui/CopyableText.d.ts.map +1 -0
  46. package/dist/components/ui/DateInput.d.ts +15 -0
  47. package/dist/components/ui/DateInput.d.ts.map +1 -0
  48. package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
  49. package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
  50. package/dist/components/ui/DetailHeader.d.ts +6 -0
  51. package/dist/components/ui/DetailHeader.d.ts.map +1 -0
  52. package/dist/components/ui/DraggableIcon.d.ts +3 -0
  53. package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
  54. package/dist/components/ui/ErrorBoundary.d.ts +18 -0
  55. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  56. package/dist/components/ui/ErrorFallback.d.ts +6 -0
  57. package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
  58. package/dist/components/ui/HelpText.d.ts +11 -0
  59. package/dist/components/ui/HelpText.d.ts.map +1 -0
  60. package/dist/components/ui/ImageWithFallback.d.ts +7 -0
  61. package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
  62. package/dist/components/ui/InfoTextBanner.d.ts +6 -0
  63. package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
  64. package/dist/components/ui/JSONView.d.ts +6 -0
  65. package/dist/components/ui/JSONView.d.ts.map +1 -0
  66. package/dist/components/ui/ListHeader.d.ts +6 -0
  67. package/dist/components/ui/ListHeader.d.ts.map +1 -0
  68. package/dist/components/ui/Loading.d.ts +3 -0
  69. package/dist/components/ui/Loading.d.ts.map +1 -0
  70. package/dist/components/ui/NoData.d.ts +7 -0
  71. package/dist/components/ui/NoData.d.ts.map +1 -0
  72. package/dist/components/ui/NoImage.d.ts +7 -0
  73. package/dist/components/ui/NoImage.d.ts.map +1 -0
  74. package/dist/components/ui/NoImageSvg.d.ts +8 -0
  75. package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
  76. package/dist/components/ui/PageHeader.d.ts +11 -0
  77. package/dist/components/ui/PageHeader.d.ts.map +1 -0
  78. package/dist/components/ui/Pagination.d.ts +8 -0
  79. package/dist/components/ui/Pagination.d.ts.map +1 -0
  80. package/dist/components/ui/Portal/Portal.d.ts +16 -0
  81. package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
  82. package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
  83. package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
  84. package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
  85. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
  86. package/dist/components/ui/SearchField.d.ts +7 -0
  87. package/dist/components/ui/SearchField.d.ts.map +1 -0
  88. package/dist/components/ui/Tab.d.ts +18 -0
  89. package/dist/components/ui/Tab.d.ts.map +1 -0
  90. package/dist/components/ui/Tag/TagInput.d.ts +14 -0
  91. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
  92. package/dist/components/ui/Tag/TagList.d.ts +8 -0
  93. package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
  94. package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
  95. package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
  96. package/dist/components/ui/Toggle.d.ts +11 -0
  97. package/dist/components/ui/Toggle.d.ts.map +1 -0
  98. package/dist/components/ui/ToolTip.d.ts +7 -0
  99. package/dist/components/ui/ToolTip.d.ts.map +1 -0
  100. package/dist/components/ui/card.d.ts +9 -0
  101. package/dist/components/ui/card.d.ts.map +1 -0
  102. package/dist/components/ui/chart.d.ts +42 -0
  103. package/dist/components/ui/chart.d.ts.map +1 -0
  104. package/dist/components/ui/form/CheckboxField.d.ts +4 -0
  105. package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
  106. package/dist/components/ui/form/ChoicesField.d.ts +12 -0
  107. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
  108. package/dist/components/ui/form/Combobox.d.ts +20 -0
  109. package/dist/components/ui/form/Combobox.d.ts.map +1 -0
  110. package/dist/components/ui/form/DatePickerField.d.ts +4 -0
  111. package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
  112. package/dist/components/ui/form/EmailField.d.ts +7 -0
  113. package/dist/components/ui/form/EmailField.d.ts.map +1 -0
  114. package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
  115. package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
  116. package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
  117. package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
  118. package/dist/components/ui/form/FormErrors.d.ts +6 -0
  119. package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
  120. package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
  121. package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
  122. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
  123. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
  124. package/dist/components/ui/form/PasswordField.d.ts +3 -0
  125. package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
  126. package/dist/components/ui/form/SelectField.d.ts +11 -0
  127. package/dist/components/ui/form/SelectField.d.ts.map +1 -0
  128. package/dist/components/ui/form/SubmitButton.d.ts +9 -0
  129. package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
  130. package/dist/components/ui/form/TagInputField.d.ts +6 -0
  131. package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
  132. package/dist/components/ui/form/TextAreaField.d.ts +8 -0
  133. package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
  134. package/dist/components/ui/form/TextField.d.ts +10 -0
  135. package/dist/components/ui/form/TextField.d.ts.map +1 -0
  136. package/dist/components/ui/form/index.d.ts +17 -0
  137. package/dist/components/ui/form/index.d.ts.map +1 -0
  138. package/dist/components/ui/icons.d.ts +4 -0
  139. package/dist/components/ui/icons.d.ts.map +1 -0
  140. package/dist/components/ui/index.d.ts +41 -0
  141. package/dist/components/ui/index.d.ts.map +1 -0
  142. package/dist/form.js +30108 -0
  143. package/dist/gql/types.d.ts +17209 -0
  144. package/dist/gql/types.d.ts.map +1 -0
  145. package/dist/hooks.js +41 -0
  146. package/dist/lib/utils.d.ts +3 -0
  147. package/dist/lib/utils.d.ts.map +1 -0
  148. package/dist/modal.js +114 -0
  149. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
  150. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
  151. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
  152. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
  153. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
  154. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
  155. package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
  156. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
  157. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
  158. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
  159. package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
  160. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
  161. package/dist/modules/accounts.js +1013 -0
  162. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
  163. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
  164. package/dist/modules/assortment.js +1121 -0
  165. package/dist/modules/common/components/AppContext.d.ts +18 -0
  166. package/dist/modules/common/components/AppContext.d.ts.map +1 -0
  167. package/dist/modules/common/components/FormWrapper.d.ts +8 -0
  168. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
  169. package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
  170. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
  171. package/dist/modules/common/data/iso-codes.d.ts +4 -0
  172. package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
  173. package/dist/modules/common/data/miscellaneous.d.ts +51 -0
  174. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
  175. package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
  176. package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
  177. package/dist/modules/common/hooks/useApp.d.ts +11 -0
  178. package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
  179. package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
  180. package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
  181. package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
  182. package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
  183. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
  184. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
  185. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
  186. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
  187. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
  188. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
  189. package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
  190. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
  191. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
  192. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
  193. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
  194. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
  195. package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
  196. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
  197. package/dist/modules/common/hooks/usePortal.d.ts +20 -0
  198. package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
  199. package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
  200. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
  201. package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
  202. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
  203. package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
  204. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
  205. package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
  206. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
  207. package/dist/modules/common/hooks/useTheme.d.ts +7 -0
  208. package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
  209. package/dist/modules/common/utils/deBounce.d.ts +3 -0
  210. package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
  211. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
  212. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
  213. package/dist/modules/common/utils/formatUsername.d.ts +3 -0
  214. package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
  215. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
  216. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
  217. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
  218. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
  219. package/dist/modules/common/utils/useFormatDateTime.d.ts +7 -0
  220. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
  221. package/dist/modules/common/utils/utils.d.ts +21 -0
  222. package/dist/modules/common/utils/utils.d.ts.map +1 -0
  223. package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
  224. package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
  225. package/dist/modules/country/hooks/useCountries.d.ts +22 -0
  226. package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
  227. package/dist/modules/country.js +108 -0
  228. package/dist/modules/currency.js +119 -0
  229. package/dist/modules/delivery-provider.js +269 -0
  230. package/dist/modules/enrollment.js +353 -0
  231. package/dist/modules/event.js +123 -0
  232. package/dist/modules/filter.js +448 -0
  233. package/dist/modules/forms/components/Form.d.ts +8 -0
  234. package/dist/modules/forms/components/Form.d.ts.map +1 -0
  235. package/dist/modules/forms/hooks/useField.d.ts +35 -0
  236. package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
  237. package/dist/modules/forms/hooks/useForm.d.ts +44 -0
  238. package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
  239. package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
  240. package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
  241. package/dist/modules/forms/lib/FormContext.d.ts +13 -0
  242. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
  243. package/dist/modules/forms/lib/clean.d.ts +3 -0
  244. package/dist/modules/forms/lib/clean.d.ts.map +1 -0
  245. package/dist/modules/forms/lib/validators.d.ts +20 -0
  246. package/dist/modules/forms/lib/validators.d.ts.map +1 -0
  247. package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
  248. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
  249. package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
  250. package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
  251. package/dist/modules/language.js +106 -0
  252. package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
  253. package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
  254. package/dist/modules/modal/components/DangerMessage.d.ts +12 -0
  255. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
  256. package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
  257. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
  258. package/dist/modules/modal/components/Modal.d.ts +10 -0
  259. package/dist/modules/modal/components/Modal.d.ts.map +1 -0
  260. package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
  261. package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
  262. package/dist/modules/modal/hooks/useModal.d.ts +7 -0
  263. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
  264. package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
  265. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
  266. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
  267. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
  268. package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
  269. package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
  270. package/dist/modules/order/hooks/useOrders.d.ts +46 -0
  271. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
  272. package/dist/modules/order.js +563 -0
  273. package/dist/modules/payment-providers.js +206 -0
  274. package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
  275. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
  276. package/dist/modules/product-review.js +251 -0
  277. package/dist/modules/product.js +1929 -0
  278. package/dist/modules/quotation.js +297 -0
  279. package/dist/modules/token.js +143 -0
  280. package/dist/modules/warehousing-providers.js +206 -0
  281. package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
  282. package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
  283. package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
  284. package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
  285. package/dist/modules/work/hooks/useWork.d.ts +32 -0
  286. package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
  287. package/dist/modules/work.js +308 -0
  288. package/dist/plugins.js +8 -0
  289. package/dist/providers.js +6 -0
  290. package/dist/sdk/hooks.d.ts +9 -0
  291. package/dist/sdk/hooks.d.ts.map +1 -0
  292. package/dist/sdk/modal.d.ts +7 -0
  293. package/dist/sdk/modal.d.ts.map +1 -0
  294. package/dist/sdk/plugins.d.ts +67 -0
  295. package/dist/sdk/plugins.d.ts.map +1 -0
  296. package/dist/sdk/providers.d.ts +5 -0
  297. package/dist/sdk/providers.d.ts.map +1 -0
  298. package/dist/sdk/theme.d.ts +26 -0
  299. package/dist/sdk/theme.d.ts.map +1 -0
  300. package/dist/theme.js +34 -0
  301. package/dist/ui.js +21540 -0
  302. package/out/403/index.html +2 -2
  303. package/out/404/index.html +2 -2
  304. package/out/404.html +2 -2
  305. package/out/423/index.html +2 -2
  306. package/out/500/index.html +2 -2
  307. package/out/_next/static/chunks/{31_pg1fxqgdfx.js → 01crynfjy3xpb.js} +2 -2
  308. package/out/_next/static/chunks/{1hwup6qqzqzh8.js → 1-mz7zwy-mbvq.js} +2 -2
  309. package/out/_next/static/chunks/{2ecq8dhsm2eu1.js → 1szkbg0-e_tli.js} +1 -1
  310. package/out/_next/static/chunks/{0ac5zzn3zeki5.js → 2ncenexps2330.js} +2 -2
  311. package/out/_next/static/chunks/3-2opr3e2h-8o.js +105 -0
  312. package/out/_next/static/chunks/{turbopack-14zydki2yqyd3.js → turbopack-058ikg9c4qsyu.js} +1 -1
  313. package/out/_next/static/chunks/{turbopack-0la8grv9f6bxn.js → turbopack-22gnlzp5il9ai.js} +1 -1
  314. package/out/_next/static/chunks/{turbopack-1w2r6t0rjz8pp.js → turbopack-2h_05wv-1o-qp.js} +1 -1
  315. package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_buildManifest.js +2 -2
  316. package/out/_offline/index.html +2 -2
  317. package/out/account/forgot-password/index.html +2 -2
  318. package/out/account/index.html +2 -2
  319. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  320. package/out/assortments/index.html +2 -2
  321. package/out/assortments/new/index.html +2 -2
  322. package/out/copilot/index.html +2 -2
  323. package/out/country/CountryDetailPage/index.html +2 -2
  324. package/out/country/index.html +2 -2
  325. package/out/country/new/index.html +2 -2
  326. package/out/currency/CurrencyDetailPage/index.html +2 -2
  327. package/out/currency/index.html +2 -2
  328. package/out/currency/new/index.html +2 -2
  329. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  330. package/out/delivery-provider/index.html +2 -2
  331. package/out/delivery-provider/new/index.html +2 -2
  332. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  333. package/out/enrollments/index.html +2 -2
  334. package/out/events/EventDetailPage/index.html +2 -2
  335. package/out/events/index.html +2 -2
  336. package/out/exports/index.html +2 -2
  337. package/out/external/index.html +2 -2
  338. package/out/filters/FilterDetailPage/index.html +2 -2
  339. package/out/filters/index.html +2 -2
  340. package/out/filters/new/index.html +2 -2
  341. package/out/index.html +2 -2
  342. package/out/install/index.html +2 -2
  343. package/out/language/LanguageDetailPage/index.html +2 -2
  344. package/out/language/index.html +2 -2
  345. package/out/language/new/index.html +2 -2
  346. package/out/log-in/index.html +2 -2
  347. package/out/manifest.json +48 -0
  348. package/out/orders/OrderDetailPage/index.html +2 -2
  349. package/out/orders/index.html +2 -2
  350. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  351. package/out/payment-provider/index.html +2 -2
  352. package/out/payment-provider/new/index.html +2 -2
  353. package/out/products/ProductDetailPage/index.html +2 -2
  354. package/out/products/index.html +2 -2
  355. package/out/products/new/index.html +2 -2
  356. package/out/quotations/QuotationDetailPage/index.html +2 -2
  357. package/out/quotations/index.html +2 -2
  358. package/out/reset-password/index.html +2 -2
  359. package/out/sign-up/index.html +2 -2
  360. package/out/styleguide/index.html +2 -2
  361. package/out/tokens/TokenDetailPage/index.html +2 -2
  362. package/out/tokens/index.html +2 -2
  363. package/out/users/UserDetailPage/index.html +2 -2
  364. package/out/users/index.html +2 -2
  365. package/out/users/new/index.html +2 -2
  366. package/out/verify-email/index.html +2 -2
  367. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  368. package/out/warehousing-provider/index.html +2 -2
  369. package/out/warehousing-provider/new/index.html +2 -2
  370. package/out/works/WorkDetailPage/index.html +2 -2
  371. package/out/works/WorkQueueListView/index.html +2 -2
  372. package/out/works/index.html +2 -2
  373. package/out/works/management/index.html +2 -2
  374. package/package.json +1 -1
  375. package/out/_next/static/chunks/1t20r1ofch5r3.js +0 -95
  376. /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_clientMiddlewareManifest.js +0 -0
  377. /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_ssgManifest.js +0 -0
@@ -0,0 +1,514 @@
1
+ import { Y, A, r, u3, i3, y, u2, o2, l3, oe, y2, x, n, S, k2, f2, p2, H, n2, K, s4, l4 as l4$1, le, B, M, n3, u, v, T2, I, p, f, s2, C, N, m, x2, t2, c, l, t3, E2, o4, m3, d, w2 as w2$1, c2, t, A2, s3, i, b, s, n5 } from './chunk-6TXD4TA7.js';
2
+ import { ModalContext_default } from './chunk-RVG6IOFC.js';
3
+ import l4, { createContext, useRef, useReducer, createRef, useCallback, useMemo, useState, Fragment, useEffect, useContext } from 'react';
4
+ import { useIntl } from 'react-intl';
5
+ import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
6
+
7
+ var e = createContext(() => {
8
+ });
9
+ function C2({ value: t4, children: o4 }) {
10
+ return l4.createElement(e.Provider, { value: t4 }, o4);
11
+ }
12
+
13
+ // ../node_modules/@headlessui/react/dist/hooks/use-escape.js
14
+ function a(o4$1, r4 = typeof document != "undefined" ? document.defaultView : null, t4) {
15
+ let n6 = I(o4$1, "escape");
16
+ E2(r4, "keydown", (e2) => {
17
+ n6 && (e2.defaultPrevented || e2.key === o4.Escape && t4(e2));
18
+ });
19
+ }
20
+ function f3() {
21
+ var t4;
22
+ let [e2] = useState(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [o4, c4] = useState((t4 = e2 == null ? void 0 : e2.matches) != null ? t4 : false);
23
+ return n(() => {
24
+ if (!e2) return;
25
+ function n6(r4) {
26
+ c4(r4.matches);
27
+ }
28
+ return e2.addEventListener("change", n6), () => e2.removeEventListener("change", n6);
29
+ }, [e2]), o4;
30
+ }
31
+ function S2({ defaultContainers: l5 = [], portals: n6, mainTreeNode: o4 } = {}) {
32
+ let c4 = o2(() => {
33
+ var r4, u5;
34
+ let i5 = l(o4), t4 = [];
35
+ for (let e2 of l5) e2 !== null && (t3(e2) ? t4.push(e2) : "current" in e2 && t3(e2.current) && t4.push(e2.current));
36
+ if (n6 != null && n6.current) for (let e2 of n6.current) t4.push(e2);
37
+ for (let e2 of (r4 = i5 == null ? void 0 : i5.querySelectorAll("html > *, body > *")) != null ? r4 : []) e2 !== document.body && e2 !== document.head && t3(e2) && e2.id !== "headlessui-portal-root" && (o4 && (e2.contains(o4) || e2.contains((u5 = o4 == null ? void 0 : o4.getRootNode()) == null ? void 0 : u5.host)) || t4.some((E2) => e2.contains(E2)) || t4.push(e2));
38
+ return t4;
39
+ });
40
+ return { resolveContainers: c4, contains: o2((i5) => c4().some((t4) => t4.contains(i5))) };
41
+ }
42
+ var d2 = createContext(null);
43
+ function j({ children: l5, node: n6 }) {
44
+ let [o4, c4] = useState(null), i5 = x3(n6 != null ? n6 : o4);
45
+ return l4.createElement(d2.Provider, { value: i5 }, l5, i5 === null && l4.createElement(f, { features: s2.Hidden, ref: (t4) => {
46
+ var r4, u5;
47
+ if (t4) {
48
+ for (let e2 of (u5 = (r4 = l(t4)) == null ? void 0 : r4.querySelectorAll("html > *, body > *")) != null ? u5 : []) if (e2 !== document.body && e2 !== document.head && t3(e2) && e2 != null && e2.contains(t4)) {
49
+ c4(e2);
50
+ break;
51
+ }
52
+ }
53
+ } }));
54
+ }
55
+ function x3(l5 = null) {
56
+ var n6;
57
+ return (n6 = useContext(d2)) != null ? n6 : l5;
58
+ }
59
+ function f4() {
60
+ let e2 = useRef(false);
61
+ return n(() => (e2.current = true, () => {
62
+ e2.current = false;
63
+ }), []), e2;
64
+ }
65
+ var a2 = ((r4) => (r4[r4.Forwards = 0] = "Forwards", r4[r4.Backwards = 1] = "Backwards", r4))(a2 || {});
66
+ function u4() {
67
+ let e2 = useRef(0);
68
+ return s3(true, "keydown", (r4) => {
69
+ r4.key === "Tab" && (e2.current = r4.shiftKey ? 1 : 0);
70
+ }, true), e2;
71
+ }
72
+
73
+ // ../node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js
74
+ function x4(o4) {
75
+ if (!o4) return /* @__PURE__ */ new Set();
76
+ if (typeof o4 == "function") return new Set(o4());
77
+ let t4 = /* @__PURE__ */ new Set();
78
+ for (let e2 of o4.current) t3(e2.current) && t4.add(e2.current);
79
+ return t4;
80
+ }
81
+ var $ = "div";
82
+ var G = ((n6) => (n6[n6.None = 0] = "None", n6[n6.InitialFocus = 1] = "InitialFocus", n6[n6.TabLock = 2] = "TabLock", n6[n6.FocusLock = 4] = "FocusLock", n6[n6.RestoreFocus = 8] = "RestoreFocus", n6[n6.AutoFocus = 16] = "AutoFocus", n6))(G || {});
83
+ function w2(o4, t4) {
84
+ let e2 = useRef(null), r4 = y(e2, t4), { initialFocus: u5, initialFocusFallback: a3, containers: n6, features: s6 = 15, ...f5 } = o4;
85
+ l3() || (s6 = 0);
86
+ let l5 = u2(e2.current);
87
+ re(s6, { ownerDocument: l5 });
88
+ let T2$1 = ne(s6, { ownerDocument: l5, container: e2, initialFocus: u5, initialFocusFallback: a3 });
89
+ oe2(s6, { ownerDocument: l5, container: e2, containers: n6, previousActiveElement: T2$1 });
90
+ let g = u4(), A3 = o2((c4) => {
91
+ if (!n3(e2.current)) return;
92
+ let E2 = e2.current;
93
+ ((V2) => V2())(() => {
94
+ u(g.current, { [a2.Forwards]: () => {
95
+ v(E2, T2.First, { skipElements: [c4.relatedTarget, a3] });
96
+ }, [a2.Backwards]: () => {
97
+ v(E2, T2.Last, { skipElements: [c4.relatedTarget, a3] });
98
+ } });
99
+ });
100
+ }), v2 = I(!!(s6 & 2), "focus-trap#tab-lock"), N2 = p(), b4 = useRef(false), k3 = { ref: r4, onKeyDown(c4) {
101
+ c4.key == "Tab" && (b4.current = true, N2.requestAnimationFrame(() => {
102
+ b4.current = false;
103
+ }));
104
+ }, onBlur(c4) {
105
+ if (!(s6 & 4)) return;
106
+ let E2 = x4(n6);
107
+ n3(e2.current) && E2.add(e2.current);
108
+ let L = c4.relatedTarget;
109
+ i(L) && L.dataset.headlessuiFocusGuard !== "true" && (I2(E2, L) || (b4.current ? v(e2.current, u(g.current, { [a2.Forwards]: () => T2.Next, [a2.Backwards]: () => T2.Previous }) | T2.WrapAround, { relativeTo: c4.target }) : i(c4.target) && w2$1(c4.target)));
110
+ } }, B2 = K();
111
+ return l4.createElement(l4.Fragment, null, v2 && l4.createElement(f, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: A3, features: s2.Focusable }), B2({ ourProps: k3, theirProps: f5, defaultTag: $, name: "FocusTrap" }), v2 && l4.createElement(f, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: A3, features: s2.Focusable }));
112
+ }
113
+ var ee = Y(w2);
114
+ var ge = Object.assign(ee, { features: G });
115
+ function te(o4 = true) {
116
+ let t4 = useRef(n5.slice());
117
+ return m3(([e2], [r4]) => {
118
+ r4 === true && e2 === false && t(() => {
119
+ t4.current.splice(0);
120
+ }), r4 === false && e2 === true && (t4.current = n5.slice());
121
+ }, [o4, n5, t4]), o2(() => {
122
+ var e2;
123
+ return (e2 = t4.current.find((r4) => r4 != null && r4.isConnected)) != null ? e2 : null;
124
+ });
125
+ }
126
+ function re(o4, { ownerDocument: t4 }) {
127
+ let e2 = !!(o4 & 8), r4 = te(e2);
128
+ m3(() => {
129
+ e2 || d(t4 == null ? void 0 : t4.body) && w2$1(r4());
130
+ }, [e2]), c2(() => {
131
+ e2 && w2$1(r4());
132
+ });
133
+ }
134
+ function ne(o4, { ownerDocument: t4, container: e2, initialFocus: r4, initialFocusFallback: u5 }) {
135
+ let a3 = useRef(null), n6 = I(!!(o4 & 1), "focus-trap#initial-focus"), s6 = f4();
136
+ return m3(() => {
137
+ if (o4 === 0) return;
138
+ if (!n6) {
139
+ u5 != null && u5.current && w2$1(u5.current);
140
+ return;
141
+ }
142
+ let f5 = e2.current;
143
+ f5 && t(() => {
144
+ if (!s6.current) return;
145
+ let l5 = t4 == null ? void 0 : t4.activeElement;
146
+ if (r4 != null && r4.current) {
147
+ if ((r4 == null ? void 0 : r4.current) === l5) {
148
+ a3.current = l5;
149
+ return;
150
+ }
151
+ } else if (f5.contains(l5)) {
152
+ a3.current = l5;
153
+ return;
154
+ }
155
+ if (r4 != null && r4.current) w2$1(r4.current);
156
+ else {
157
+ if (o4 & 16) {
158
+ if (v(f5, T2.First | T2.AutoFocus) !== A2.Error) return;
159
+ } else if (v(f5, T2.First) !== A2.Error) return;
160
+ if (u5 != null && u5.current && (w2$1(u5.current), (t4 == null ? void 0 : t4.activeElement) === u5.current)) return;
161
+ console.warn("There are no focusable elements inside the <FocusTrap />");
162
+ }
163
+ a3.current = t4 == null ? void 0 : t4.activeElement;
164
+ });
165
+ }, [u5, n6, o4]), a3;
166
+ }
167
+ function oe2(o4, { ownerDocument: t4, container: e2, containers: r4, previousActiveElement: u5 }) {
168
+ let a3 = f4(), n6 = !!(o4 & 4);
169
+ E2(t4 == null ? void 0 : t4.defaultView, "focus", (s6) => {
170
+ if (!n6 || !a3.current) return;
171
+ let f5 = x4(r4);
172
+ n3(e2.current) && f5.add(e2.current);
173
+ let l5 = u5.current;
174
+ if (!l5) return;
175
+ let T2 = s6.target;
176
+ n3(T2) ? I2(f5, T2) ? (u5.current = T2, w2$1(T2)) : (s6.preventDefault(), s6.stopPropagation(), w2$1(l5)) : w2$1(u5.current);
177
+ }, true);
178
+ }
179
+ function I2(o4, t4) {
180
+ for (let e2 of o4) if (e2.contains(t4)) return true;
181
+ return false;
182
+ }
183
+ function ue(e2) {
184
+ var t4;
185
+ return !!(e2.enter || e2.enterFrom || e2.enterTo || e2.leave || e2.leaveFrom || e2.leaveTo) || !b((t4 = e2.as) != null ? t4 : de) || l4.Children.count(e2.children) === 1;
186
+ }
187
+ var V = createContext(null);
188
+ V.displayName = "TransitionContext";
189
+ var De = ((n6) => (n6.Visible = "visible", n6.Hidden = "hidden", n6))(De || {});
190
+ function He() {
191
+ let e2 = useContext(V);
192
+ if (e2 === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
193
+ return e2;
194
+ }
195
+ function Ae() {
196
+ let e2 = useContext(w3);
197
+ if (e2 === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
198
+ return e2;
199
+ }
200
+ var w3 = createContext(null);
201
+ w3.displayName = "NestingContext";
202
+ function M3(e2) {
203
+ return "children" in e2 ? M3(e2.children) : e2.current.filter(({ el: t4 }) => t4.current !== null).filter(({ state: t4 }) => t4 === "visible").length > 0;
204
+ }
205
+ function Te(e2, t4) {
206
+ let n6 = s(e2), l5 = useRef([]), S3 = f4(), R = p(), d3 = o2((o4, i5 = C.Hidden) => {
207
+ let a3 = l5.current.findIndex(({ el: s6 }) => s6 === o4);
208
+ a3 !== -1 && (u(i5, { [C.Unmount]() {
209
+ l5.current.splice(a3, 1);
210
+ }, [C.Hidden]() {
211
+ l5.current[a3].state = "hidden";
212
+ } }), R.microTask(() => {
213
+ var s6;
214
+ !M3(l5) && S3.current && ((s6 = n6.current) == null || s6.call(n6));
215
+ }));
216
+ }), y3 = o2((o4) => {
217
+ let i5 = l5.current.find(({ el: a3 }) => a3 === o4);
218
+ return i5 ? i5.state !== "visible" && (i5.state = "visible") : l5.current.push({ el: o4, state: "visible" }), () => d3(o4, C.Unmount);
219
+ }), C3 = useRef([]), p4 = useRef(Promise.resolve()), h2 = useRef({ enter: [], leave: [] }), g = o2((o4, i5, a3) => {
220
+ C3.current.splice(0), t4 && (t4.chains.current[i5] = t4.chains.current[i5].filter(([s6]) => s6 !== o4)), t4 == null || t4.chains.current[i5].push([o4, new Promise((s6) => {
221
+ C3.current.push(s6);
222
+ })]), t4 == null || t4.chains.current[i5].push([o4, new Promise((s6) => {
223
+ Promise.all(h2.current[i5].map(([r4, f5]) => f5)).then(() => s6());
224
+ })]), i5 === "enter" ? p4.current = p4.current.then(() => t4 == null ? void 0 : t4.wait.current).then(() => a3(i5)) : a3(i5);
225
+ }), v2 = o2((o4, i5, a3) => {
226
+ Promise.all(h2.current[i5].splice(0).map(([s6, r4]) => r4)).then(() => {
227
+ var s6;
228
+ (s6 = C3.current.shift()) == null || s6();
229
+ }).then(() => a3(i5));
230
+ });
231
+ return useMemo(() => ({ children: l5, register: y3, unregister: d3, onStart: g, onStop: v2, wait: p4, chains: h2 }), [y3, d3, l5, g, v2, h2, p4]);
232
+ }
233
+ var de = Fragment;
234
+ var fe = A.RenderStrategy;
235
+ function Fe(e2, t4) {
236
+ var ee2, te2;
237
+ let { transition: n6 = true, beforeEnter: l5, afterEnter: S3, beforeLeave: R, afterLeave: d3, enter: y3, enterFrom: C3, enterTo: p4, entered: h2, leave: g, leaveFrom: v2, leaveTo: o4, ...i5 } = e2, [a3, s6] = useState(null), r4 = useRef(null), f5 = ue(e2), U = y(...f5 ? [r4, t4, s6] : t4 === null ? [] : [t4]), H2 = (ee2 = i5.unmount) == null || ee2 ? C.Unmount : C.Hidden, { show: u5, appear: z2, initial: K2 } = He(), [m3, j3] = useState(u5 ? "visible" : "hidden"), Q = Ae(), { register: A3, unregister: F2 } = Q;
238
+ n(() => A3(r4), [A3, r4]), n(() => {
239
+ if (H2 === C.Hidden && r4.current) {
240
+ if (u5 && m3 !== "visible") {
241
+ j3("visible");
242
+ return;
243
+ }
244
+ return u(m3, { ["hidden"]: () => F2(r4), ["visible"]: () => A3(r4) });
245
+ }
246
+ }, [m3, r4, A3, F2, u5, H2]);
247
+ let G2 = l3();
248
+ n(() => {
249
+ if (f5 && G2 && m3 === "visible" && r4.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
250
+ }, [r4, m3, G2, f5]);
251
+ let ce = K2 && !z2, Y2 = z2 && u5 && K2, B2 = useRef(false), I3 = Te(() => {
252
+ B2.current || (j3("hidden"), F2(r4));
253
+ }, Q), Z = o2((W) => {
254
+ B2.current = true;
255
+ let L = W ? "enter" : "leave";
256
+ I3.onStart(r4, L, (_) => {
257
+ _ === "enter" ? l5 == null || l5() : _ === "leave" && (R == null || R());
258
+ });
259
+ }), $3 = o2((W) => {
260
+ let L = W ? "enter" : "leave";
261
+ B2.current = false, I3.onStop(r4, L, (_) => {
262
+ _ === "enter" ? S3 == null || S3() : _ === "leave" && (d3 == null || d3());
263
+ }), L === "leave" && !M3(I3) && (j3("hidden"), F2(r4));
264
+ });
265
+ useEffect(() => {
266
+ f5 && n6 || (Z(u5), $3(u5));
267
+ }, [u5, f5, n6]);
268
+ let pe2 = /* @__PURE__ */ (() => !(!n6 || !f5 || !G2 || ce))(), [, T2] = N(pe2, a3, u5, { start: Z, end: $3 }), Ce = m({ ref: U, className: ((te2 = t2(i5.className, Y2 && y3, Y2 && C3, T2.enter && y3, T2.enter && T2.closed && C3, T2.enter && !T2.closed && p4, T2.leave && g, T2.leave && !T2.closed && v2, T2.leave && T2.closed && o4, !T2.transition && u5 && h2)) == null ? void 0 : te2.trim()) || void 0, ...x2(T2) }), N2 = 0;
269
+ m3 === "visible" && (N2 |= i3.Open), m3 === "hidden" && (N2 |= i3.Closed), u5 && m3 === "hidden" && (N2 |= i3.Opening), !u5 && m3 === "visible" && (N2 |= i3.Closing);
270
+ let he = K();
271
+ return l4.createElement(w3.Provider, { value: I3 }, l4.createElement(c, { value: N2 }, he({ ourProps: Ce, theirProps: i5, defaultTag: de, features: fe, visible: m3 === "visible", name: "Transition.Child" })));
272
+ }
273
+ function Ie(e2, t4) {
274
+ let { show: n6, appear: l5 = false, unmount: S3 = true, ...R } = e2, d3 = useRef(null), y3 = ue(e2), C3 = y(...y3 ? [d3, t4] : t4 === null ? [] : [t4]);
275
+ l3();
276
+ let p4 = u3();
277
+ if (n6 === void 0 && p4 !== null && (n6 = (p4 & i3.Open) === i3.Open), n6 === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
278
+ let [h2, g] = useState(n6 ? "visible" : "hidden"), v2 = Te(() => {
279
+ n6 || g("hidden");
280
+ }), [o4, i5] = useState(true), a3 = useRef([n6]);
281
+ n(() => {
282
+ o4 !== false && a3.current[a3.current.length - 1] !== n6 && (a3.current.push(n6), i5(false));
283
+ }, [a3, n6]);
284
+ let s6 = useMemo(() => ({ show: n6, appear: l5, initial: o4 }), [n6, l5, o4]);
285
+ n(() => {
286
+ n6 ? g("visible") : !M3(v2) && d3.current !== null && g("hidden");
287
+ }, [n6, v2]);
288
+ let r4 = { unmount: S3 }, f5 = o2(() => {
289
+ var u5;
290
+ o4 && i5(false), (u5 = e2.beforeEnter) == null || u5.call(e2);
291
+ }), U = o2(() => {
292
+ var u5;
293
+ o4 && i5(false), (u5 = e2.beforeLeave) == null || u5.call(e2);
294
+ }), H2 = K();
295
+ return l4.createElement(w3.Provider, { value: v2 }, l4.createElement(V.Provider, { value: s6 }, H2({ ourProps: { ...r4, as: Fragment, children: l4.createElement(me, { ref: C3, ...r4, ...R, beforeEnter: f5, beforeLeave: U }) }, theirProps: {}, defaultTag: Fragment, features: fe, visible: h2 === "visible", name: "Transition" })));
296
+ }
297
+ function Le(e2, t4) {
298
+ let n6 = useContext(V) !== null, l5 = u3() !== null;
299
+ return l4.createElement(l4.Fragment, null, !n6 && l5 ? l4.createElement(X, { ref: t4, ...e2 }) : l4.createElement(me, { ref: t4, ...e2 }));
300
+ }
301
+ var X = Y(Ie);
302
+ var me = Y(Fe);
303
+ var Oe = Y(Le);
304
+ var Ke = Object.assign(X, { Child: Oe, Root: X });
305
+
306
+ // ../node_modules/@headlessui/react/dist/components/dialog/dialog.js
307
+ var we = ((o4) => (o4[o4.Open = 0] = "Open", o4[o4.Closed = 1] = "Closed", o4))(we || {});
308
+ var Be = ((t4) => (t4[t4.SetTitleId = 0] = "SetTitleId", t4))(Be || {});
309
+ var Ue = { [0](e2, t4) {
310
+ return e2.titleId === t4.id ? e2 : { ...e2, titleId: t4.id };
311
+ } };
312
+ var w4 = createContext(null);
313
+ w4.displayName = "DialogContext";
314
+ function O2(e2) {
315
+ let t4 = useContext(w4);
316
+ if (t4 === null) {
317
+ let o4 = new Error(`<${e2} /> is missing a parent <Dialog /> component.`);
318
+ throw Error.captureStackTrace && Error.captureStackTrace(o4, O2), o4;
319
+ }
320
+ return t4;
321
+ }
322
+ function He2(e2, t4) {
323
+ return u(t4.type, Ue, e2, t4);
324
+ }
325
+ var z = Y(function(t4, o4) {
326
+ let a3 = r(), { id: n6 = `headlessui-dialog-${a3}`, open: i5, onClose: p4, initialFocus: d3, role: s6 = "dialog", autoFocus: f5 = true, __demoMode: u5 = false, unmount: y3 = false, ...S3 } = t4, R = useRef(false);
327
+ s6 = (function() {
328
+ return s6 === "dialog" || s6 === "alertdialog" ? s6 : (R.current || (R.current = true, console.warn(`Invalid role [${s6}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
329
+ })();
330
+ let g = u3();
331
+ i5 === void 0 && g !== null && (i5 = (g & i3.Open) === i3.Open);
332
+ let T2 = useRef(null), I3 = y(T2, o4), F2 = u2(T2.current), c4 = i5 ? 0 : 1, [b4, Q] = useReducer(He2, { titleId: null, descriptionId: null, panelRef: createRef() }), m3 = o2(() => p4(false)), B2 = o2((r4) => Q({ type: 0, id: r4 })), D = l3() ? c4 === 0 : false, [Z, ee2] = oe(), te2 = { get current() {
333
+ var r4;
334
+ return (r4 = b4.panelRef.current) != null ? r4 : T2.current;
335
+ } }, v2 = x3(), { resolveContainers: M4 } = S2({ mainTreeNode: v2, portals: Z, defaultContainers: [te2] }), U = g !== null ? (g & i3.Closing) === i3.Closing : false;
336
+ y2(u5 || U ? false : D, { allowed: o2(() => {
337
+ var r4, W;
338
+ return [(W = (r4 = T2.current) == null ? void 0 : r4.closest("[data-headlessui-portal]")) != null ? W : null];
339
+ }), disallowed: o2(() => {
340
+ var r4;
341
+ return [(r4 = v2 == null ? void 0 : v2.closest("body > *:not(#headlessui-portal-root)")) != null ? r4 : null];
342
+ }) });
343
+ let P = x.get(null);
344
+ n(() => {
345
+ if (D) return P.actions.push(n6), () => P.actions.pop(n6);
346
+ }, [P, n6, D]);
347
+ let H2 = S(P, useCallback((r4) => P.selectors.isTop(r4, n6), [P, n6]));
348
+ k2(H2, M4, (r4) => {
349
+ r4.preventDefault(), m3();
350
+ }), a(H2, F2 == null ? void 0 : F2.defaultView, (r4) => {
351
+ r4.preventDefault(), r4.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), m3();
352
+ }), f2(u5 || U ? false : D, F2, M4), p2(D, T2, m3);
353
+ let [oe3, ne3] = H(), re2 = useMemo(() => [{ dialogState: c4, close: m3, setTitleId: B2, unmount: y3 }, b4], [c4, m3, B2, y3, b4]), N2 = n2({ open: c4 === 0 }), le2 = { ref: I3, id: n6, role: s6, tabIndex: -1, "aria-modal": u5 ? void 0 : c4 === 0 ? true : void 0, "aria-labelledby": b4.titleId, "aria-describedby": oe3, unmount: y3 }, ae = !f3(), E2 = G.None;
354
+ D && !u5 && (E2 |= G.RestoreFocus, E2 |= G.TabLock, f5 && (E2 |= G.AutoFocus), ae && (E2 |= G.InitialFocus));
355
+ let ie2 = K();
356
+ return l4.createElement(s4, null, l4.createElement(l4$1, { force: true }, l4.createElement(le, null, l4.createElement(w4.Provider, { value: re2 }, l4.createElement(B, { target: T2 }, l4.createElement(l4$1, { force: false }, l4.createElement(ne3, { slot: N2 }, l4.createElement(ee2, null, l4.createElement(ge, { initialFocus: d3, initialFocusFallback: T2, containers: M4, features: E2 }, l4.createElement(C2, { value: m3 }, ie2({ ourProps: le2, theirProps: S3, slot: N2, defaultTag: Ne, features: We, visible: c4 === 0, name: "Dialog" })))))))))));
357
+ });
358
+ var Ne = "div";
359
+ var We = A.RenderStrategy | A.Static;
360
+ function $e(e2, t4) {
361
+ let { transition: o4 = false, open: a3, ...n6 } = e2, i5 = u3(), p4 = e2.hasOwnProperty("open") || i5 !== null, d3 = e2.hasOwnProperty("onClose");
362
+ if (!p4 && !d3) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
363
+ if (!p4) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
364
+ if (!d3) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
365
+ if (!i5 && typeof e2.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e2.open}`);
366
+ if (typeof e2.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e2.onClose}`);
367
+ return (a3 !== void 0 || o4) && !n6.static ? l4.createElement(j, null, l4.createElement(Ke, { show: a3, transition: o4, unmount: n6.unmount }, l4.createElement(z, { ref: t4, ...n6 }))) : l4.createElement(j, null, l4.createElement(z, { ref: t4, open: a3, ...n6 }));
368
+ }
369
+ var je = "div";
370
+ function Ye(e2, t4) {
371
+ let o4 = r(), { id: a3 = `headlessui-dialog-panel-${o4}`, transition: n6 = false, ...i5 } = e2, [{ dialogState: p4, unmount: d3 }, s6] = O2("Dialog.Panel"), f5 = y(t4, s6.panelRef), u5 = n2({ open: p4 === 0 }), y3 = o2((I3) => {
372
+ I3.stopPropagation();
373
+ }), S3 = { ref: f5, id: a3, onClick: y3 }, R = n6 ? Oe : Fragment, g = n6 ? { unmount: d3 } : {}, T2 = K();
374
+ return l4.createElement(R, { ...g }, T2({ ourProps: S3, theirProps: i5, slot: u5, defaultTag: je, name: "Dialog.Panel" }));
375
+ }
376
+ var Je = "div";
377
+ function Ke2(e2, t4) {
378
+ let { transition: o4 = false, ...a3 } = e2, [{ dialogState: n6, unmount: i5 }] = O2("Dialog.Backdrop"), p4 = n2({ open: n6 === 0 }), d3 = { ref: t4, "aria-hidden": true }, s6 = o4 ? Oe : Fragment, f5 = o4 ? { unmount: i5 } : {}, u5 = K();
379
+ return l4.createElement(s6, { ...f5 }, u5({ ourProps: d3, theirProps: a3, slot: p4, defaultTag: Je, name: "Dialog.Backdrop" }));
380
+ }
381
+ var Xe = "h2";
382
+ function Ve(e2, t4) {
383
+ let o4 = r(), { id: a3 = `headlessui-dialog-title-${o4}`, ...n6 } = e2, [{ dialogState: i5, setTitleId: p4 }] = O2("Dialog.Title"), d3 = y(t4);
384
+ useEffect(() => (p4(a3), () => p4(null)), [a3, p4]);
385
+ let s6 = n2({ open: i5 === 0 }), f5 = { ref: d3, id: a3 };
386
+ return K()({ ourProps: f5, theirProps: n6, slot: s6, defaultTag: Xe, name: "Dialog.Title" });
387
+ }
388
+ var qe = Y($e);
389
+ var ze = Y(Ye);
390
+ Y(Ke2);
391
+ var Qe = Y(Ve);
392
+ var ht = Object.assign(qe, { Panel: ze, Title: Qe, Description: M });
393
+ var Modal = ({
394
+ onClose: close,
395
+ children,
396
+ visible = false,
397
+ closeOnOutsideClick = false
398
+ }) => {
399
+ const intl = useIntl();
400
+ const handleClose = () => {
401
+ if (closeOnOutsideClick && close) {
402
+ close();
403
+ }
404
+ };
405
+ return /* @__PURE__ */ jsx(Ke, { show: visible, children: /* @__PURE__ */ jsxs(ht, { onClose: handleClose, className: "relative z-50", children: [
406
+ /* @__PURE__ */ jsx(
407
+ Oe,
408
+ {
409
+ enter: "ease-out duration-200",
410
+ enterFrom: "opacity-0",
411
+ enterTo: "opacity-100",
412
+ leave: "ease-in duration-150",
413
+ leaveFrom: "opacity-100",
414
+ leaveTo: "opacity-0",
415
+ children: /* @__PURE__ */ jsx(
416
+ "div",
417
+ {
418
+ className: "fixed inset-0 bg-slate-950/60 backdrop-blur-sm",
419
+ "aria-hidden": "true"
420
+ }
421
+ )
422
+ }
423
+ ),
424
+ /* @__PURE__ */ jsx("div", { className: "fixed inset-0 overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ jsx(
425
+ Oe,
426
+ {
427
+ enter: "ease-out duration-200",
428
+ enterFrom: "opacity-0 scale-95 translate-y-4",
429
+ enterTo: "opacity-100 scale-100 translate-y-0",
430
+ leave: "ease-in duration-150",
431
+ leaveFrom: "opacity-100 scale-100 translate-y-0",
432
+ leaveTo: "opacity-0 scale-95 translate-y-4",
433
+ children: /* @__PURE__ */ jsxs(ze, { className: "relative w-full max-w-lg transform overflow-hidden rounded-lg bg-surface px-4 pt-5 pb-4 text-left shadow-2xl sm:p-6", children: [
434
+ /* @__PURE__ */ jsx("div", { className: "absolute top-0 right-0 pt-4 pr-4 sm:block", children: /* @__PURE__ */ jsxs(
435
+ "button",
436
+ {
437
+ id: "modal_close",
438
+ type: "button",
439
+ onClick: close,
440
+ className: "rounded-md bg-surface-input text-text-muted hover:text-text-secondary focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",
441
+ children: [
442
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: intl.formatMessage({
443
+ id: "close",
444
+ defaultMessage: "Close"
445
+ }) }),
446
+ /* @__PURE__ */ jsx(
447
+ "svg",
448
+ {
449
+ className: "h-6 w-6",
450
+ xmlns: "http://www.w3.org/2000/svg",
451
+ fill: "none",
452
+ viewBox: "0 0 24 24",
453
+ stroke: "currentColor",
454
+ "aria-hidden": "true",
455
+ children: /* @__PURE__ */ jsx(
456
+ "path",
457
+ {
458
+ strokeLinecap: "round",
459
+ strokeLinejoin: "round",
460
+ strokeWidth: "2",
461
+ d: "M6 18L18 6M6 6l12 12"
462
+ }
463
+ )
464
+ }
465
+ )
466
+ ]
467
+ }
468
+ ) }),
469
+ children && l4.isValidElement(children) ? l4.cloneElement(children, {
470
+ close
471
+ }) : children
472
+ ] })
473
+ }
474
+ ) }) })
475
+ ] }) });
476
+ };
477
+ var Modal_default = Modal;
478
+ var ModalWrapper = ({ children }) => {
479
+ const [modalChildren, setChildren] = useState(null);
480
+ const [closeOnOutsideClick, setCloseOnOutsideClick] = useState(false);
481
+ const hideModal = () => setChildren(null);
482
+ const [onClose, setOnClose] = useState(() => hideModal);
483
+ const ctx = useMemo(() => {
484
+ const setModal = (newModalChildren, { closeOnOutsideClick: newCloseOnOutsideClick = false } = {}) => {
485
+ return new Promise((resolve) => {
486
+ if (!newModalChildren) {
487
+ resolve(true);
488
+ }
489
+ setCloseOnOutsideClick(newCloseOnOutsideClick);
490
+ setChildren(() => newModalChildren);
491
+ setOnClose(() => () => {
492
+ hideModal();
493
+ resolve(true);
494
+ });
495
+ });
496
+ };
497
+ return { setModal };
498
+ }, []);
499
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
500
+ /* @__PURE__ */ jsx(
501
+ Modal_default,
502
+ {
503
+ visible: !!modalChildren,
504
+ onClose,
505
+ closeOnOutsideClick,
506
+ children: modalChildren
507
+ }
508
+ ),
509
+ /* @__PURE__ */ jsx(ModalContext_default.Provider, { value: ctx, children })
510
+ ] });
511
+ };
512
+ var ModalWrapper_default = ModalWrapper;
513
+
514
+ export { ModalWrapper_default, Modal_default };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+
3
+ // src/modules/modal/utils/ModalContext.ts
4
+ var ModalContext = React.createContext({
5
+ setModal: () => {
6
+ throw new Error("No ModalContext/ModalWrapper ancestor found.");
7
+ }
8
+ });
9
+ var ModalContext_default = ModalContext;
10
+
11
+ export { ModalContext_default };
@@ -0,0 +1,39 @@
1
+ import { useLocalStorage_default } from './chunk-54DKBWXV.js';
2
+ import { createContext, useEffect, useMemo } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var ThemeContext = createContext(
6
+ void 0
7
+ );
8
+ var getInitialTheme = () => {
9
+ if (typeof window === "undefined") return "light";
10
+ try {
11
+ const stored = window.localStorage.getItem("theme");
12
+ if (stored) {
13
+ const parsed = JSON.parse(stored);
14
+ if (parsed === "dark" || parsed === "light") return parsed;
15
+ }
16
+ } catch {
17
+ const raw = window.localStorage.getItem("theme");
18
+ if (raw === "dark" || raw === '"dark"') return "dark";
19
+ if (raw === "light" || raw === '"light"') return "light";
20
+ }
21
+ if (window.matchMedia("(prefers-color-scheme: dark)").matches) return "dark";
22
+ return "light";
23
+ };
24
+ var ThemeWrapper = ({ children }) => {
25
+ const [theme, setTheme] = useLocalStorage_default("theme", getInitialTheme());
26
+ useEffect(() => {
27
+ const html = document.documentElement;
28
+ if (theme === "dark") {
29
+ html.classList.add("dark");
30
+ } else {
31
+ html.classList.remove("dark");
32
+ }
33
+ }, [theme]);
34
+ const value = useMemo(() => [theme, setTheme], [theme]);
35
+ return /* @__PURE__ */ jsx(ThemeContext.Provider, { value, children });
36
+ };
37
+ var ThemeWrapper_default = ThemeWrapper;
38
+
39
+ export { ThemeContext, ThemeWrapper_default };