@unchainedshop/admin-ui 4.8.26 → 4.8.28

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 (586) hide show
  1. package/dist/chunk-2RTX42IE.js +2083 -0
  2. package/dist/chunk-4VNS5WPM.js +37 -0
  3. package/dist/chunk-54DKBWXV.js +33 -0
  4. package/dist/chunk-6UGLNLJG.js +44 -0
  5. package/dist/chunk-7PPOGX7R.js +581 -0
  6. package/dist/chunk-COV7BREX.js +50 -0
  7. package/dist/chunk-EJDZRZSZ.js +59 -0
  8. package/dist/chunk-ELPURWDC.js +75 -0
  9. package/dist/chunk-F2TCVEQX.js +514 -0
  10. package/dist/chunk-GY2DRQGW.js +166 -0
  11. package/dist/chunk-IAQPLRXZ.js +16 -0
  12. package/dist/chunk-ILYPJE4N.js +57 -0
  13. package/dist/chunk-IXBMHOB5.js +13 -0
  14. package/dist/chunk-JAVEZY3Q.js +65 -0
  15. package/dist/chunk-KCN7DDPH.js +1116 -0
  16. package/dist/chunk-KH5MK6ZW.js +18 -0
  17. package/dist/chunk-MSPWYMDY.js +665 -0
  18. package/dist/chunk-NT7RB7AK.js +70 -0
  19. package/dist/chunk-OKGJ6HDE.js +26 -0
  20. package/dist/chunk-Q6S3LBUF.js +180 -0
  21. package/dist/chunk-QNLGYFV7.js +22 -0
  22. package/dist/chunk-QWQ3WJJN.js +1 -0
  23. package/dist/chunk-RAQV2GYF.js +70 -0
  24. package/dist/chunk-RORNAN2J.js +12 -0
  25. package/dist/chunk-RVG6IOFC.js +11 -0
  26. package/dist/chunk-SRAAKMWY.js +39 -0
  27. package/dist/chunk-VDKQGOMV.js +840 -0
  28. package/dist/chunk-XHOCXPD5.js +9 -0
  29. package/dist/chunk-XJBPMIC4.js +284 -0
  30. package/dist/chunk-YO6PT7KD.js +13 -0
  31. package/dist/chunk-YZGQJJCD.js +37 -0
  32. package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
  33. package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
  34. package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
  35. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
  36. package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
  37. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
  38. package/dist/components/ui/ActiveInActive.d.ts +10 -0
  39. package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
  40. package/dist/components/ui/AnimatedCounter.d.ts +7 -0
  41. package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
  42. package/dist/components/ui/Badge.d.ts +10 -0
  43. package/dist/components/ui/Badge.d.ts.map +1 -0
  44. package/dist/components/ui/BreadCrumbs.d.ts +7 -0
  45. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
  46. package/dist/components/ui/Button.d.ts +36 -0
  47. package/dist/components/ui/Button.d.ts.map +1 -0
  48. package/dist/components/ui/CopyableText.d.ts +5 -0
  49. package/dist/components/ui/CopyableText.d.ts.map +1 -0
  50. package/dist/components/ui/DateInput.d.ts +15 -0
  51. package/dist/components/ui/DateInput.d.ts.map +1 -0
  52. package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
  53. package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
  54. package/dist/components/ui/DetailHeader.d.ts +6 -0
  55. package/dist/components/ui/DetailHeader.d.ts.map +1 -0
  56. package/dist/components/ui/DraggableIcon.d.ts +3 -0
  57. package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
  58. package/dist/components/ui/ErrorBoundary.d.ts +18 -0
  59. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  60. package/dist/components/ui/ErrorFallback.d.ts +6 -0
  61. package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
  62. package/dist/components/ui/HelpText.d.ts +11 -0
  63. package/dist/components/ui/HelpText.d.ts.map +1 -0
  64. package/dist/components/ui/ImageWithFallback.d.ts +7 -0
  65. package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
  66. package/dist/components/ui/InfoTextBanner.d.ts +6 -0
  67. package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
  68. package/dist/components/ui/JSONView.d.ts +6 -0
  69. package/dist/components/ui/JSONView.d.ts.map +1 -0
  70. package/dist/components/ui/ListHeader.d.ts +6 -0
  71. package/dist/components/ui/ListHeader.d.ts.map +1 -0
  72. package/dist/components/ui/Loading.d.ts +3 -0
  73. package/dist/components/ui/Loading.d.ts.map +1 -0
  74. package/dist/components/ui/NoData.d.ts +7 -0
  75. package/dist/components/ui/NoData.d.ts.map +1 -0
  76. package/dist/components/ui/NoImage.d.ts +7 -0
  77. package/dist/components/ui/NoImage.d.ts.map +1 -0
  78. package/dist/components/ui/NoImageSvg.d.ts +8 -0
  79. package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
  80. package/dist/components/ui/PageHeader.d.ts +11 -0
  81. package/dist/components/ui/PageHeader.d.ts.map +1 -0
  82. package/dist/components/ui/Pagination.d.ts +8 -0
  83. package/dist/components/ui/Pagination.d.ts.map +1 -0
  84. package/dist/components/ui/Portal/Portal.d.ts +16 -0
  85. package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
  86. package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
  87. package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
  88. package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
  89. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
  90. package/dist/components/ui/SearchField.d.ts +7 -0
  91. package/dist/components/ui/SearchField.d.ts.map +1 -0
  92. package/dist/components/ui/Tab.d.ts +18 -0
  93. package/dist/components/ui/Tab.d.ts.map +1 -0
  94. package/dist/components/ui/Tag/TagInput.d.ts +19 -0
  95. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
  96. package/dist/components/ui/Tag/TagList.d.ts +8 -0
  97. package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
  98. package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
  99. package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
  100. package/dist/components/ui/Toggle.d.ts +11 -0
  101. package/dist/components/ui/Toggle.d.ts.map +1 -0
  102. package/dist/components/ui/ToolTip.d.ts +7 -0
  103. package/dist/components/ui/ToolTip.d.ts.map +1 -0
  104. package/dist/components/ui/card.d.ts +9 -0
  105. package/dist/components/ui/card.d.ts.map +1 -0
  106. package/dist/components/ui/chart.d.ts +42 -0
  107. package/dist/components/ui/chart.d.ts.map +1 -0
  108. package/dist/components/ui/form/CheckboxField.d.ts +4 -0
  109. package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
  110. package/dist/components/ui/form/ChoicesField.d.ts +12 -0
  111. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
  112. package/dist/components/ui/form/Combobox.d.ts +20 -0
  113. package/dist/components/ui/form/Combobox.d.ts.map +1 -0
  114. package/dist/components/ui/form/DatePickerField.d.ts +4 -0
  115. package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
  116. package/dist/components/ui/form/EmailField.d.ts +7 -0
  117. package/dist/components/ui/form/EmailField.d.ts.map +1 -0
  118. package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
  119. package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
  120. package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
  121. package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
  122. package/dist/components/ui/form/FormErrors.d.ts +6 -0
  123. package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
  124. package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
  125. package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
  126. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
  127. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
  128. package/dist/components/ui/form/PasswordField.d.ts +3 -0
  129. package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
  130. package/dist/components/ui/form/SelectField.d.ts +11 -0
  131. package/dist/components/ui/form/SelectField.d.ts.map +1 -0
  132. package/dist/components/ui/form/SubmitButton.d.ts +9 -0
  133. package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
  134. package/dist/components/ui/form/TagInputField.d.ts +7 -0
  135. package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
  136. package/dist/components/ui/form/TextAreaField.d.ts +8 -0
  137. package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
  138. package/dist/components/ui/form/TextField.d.ts +10 -0
  139. package/dist/components/ui/form/TextField.d.ts.map +1 -0
  140. package/dist/components/ui/form/index.d.ts +17 -0
  141. package/dist/components/ui/form/index.d.ts.map +1 -0
  142. package/dist/components/ui/icons.d.ts +4 -0
  143. package/dist/components/ui/icons.d.ts.map +1 -0
  144. package/dist/components/ui/index.d.ts +41 -0
  145. package/dist/components/ui/index.d.ts.map +1 -0
  146. package/dist/form.js +28310 -0
  147. package/dist/gql/operation-types.d.ts +13043 -0
  148. package/dist/gql/operation-types.d.ts.map +1 -0
  149. package/dist/gql/schema-types.d.ts +3820 -0
  150. package/dist/gql/schema-types.d.ts.map +1 -0
  151. package/dist/gql/types.d.ts +3 -0
  152. package/dist/gql/types.d.ts.map +1 -0
  153. package/dist/hooks.js +42 -0
  154. package/dist/lib/utils.d.ts +3 -0
  155. package/dist/lib/utils.d.ts.map +1 -0
  156. package/dist/modal.js +118 -0
  157. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
  158. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
  159. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
  160. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
  161. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
  162. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
  163. package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
  164. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
  165. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
  166. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
  167. package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
  168. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
  169. package/dist/modules/accounts.js +1169 -0
  170. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
  171. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
  172. package/dist/modules/assortment.js +1126 -0
  173. package/dist/modules/common/components/AppContext.d.ts +18 -0
  174. package/dist/modules/common/components/AppContext.d.ts.map +1 -0
  175. package/dist/modules/common/components/FormWrapper.d.ts +8 -0
  176. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
  177. package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
  178. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
  179. package/dist/modules/common/data/iso-codes.d.ts +4 -0
  180. package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
  181. package/dist/modules/common/data/miscellaneous.d.ts +51 -0
  182. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
  183. package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
  184. package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
  185. package/dist/modules/common/hooks/useApp.d.ts +11 -0
  186. package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
  187. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
  188. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
  189. package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
  190. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
  191. package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
  192. package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
  193. package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
  194. package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
  195. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
  196. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
  197. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
  198. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
  199. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
  200. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
  201. package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
  202. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
  203. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
  204. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
  205. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
  206. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
  207. package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
  208. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
  209. package/dist/modules/common/hooks/usePortal.d.ts +20 -0
  210. package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
  211. package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
  212. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
  213. package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
  214. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
  215. package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
  216. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
  217. package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
  218. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
  219. package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
  220. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
  221. package/dist/modules/common/hooks/useTheme.d.ts +7 -0
  222. package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
  223. package/dist/modules/common/utils/deBounce.d.ts +3 -0
  224. package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
  225. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
  226. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
  227. package/dist/modules/common/utils/formatUsername.d.ts +3 -0
  228. package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
  229. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
  230. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
  231. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
  232. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
  233. package/dist/modules/common/utils/useFormatDateTime.d.ts +16 -0
  234. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
  235. package/dist/modules/common/utils/utils.d.ts +21 -0
  236. package/dist/modules/common/utils/utils.d.ts.map +1 -0
  237. package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
  238. package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
  239. package/dist/modules/country/hooks/useCountries.d.ts +22 -0
  240. package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
  241. package/dist/modules/country.js +108 -0
  242. package/dist/modules/currency.js +119 -0
  243. package/dist/modules/delivery-provider.js +269 -0
  244. package/dist/modules/enrollment.js +374 -0
  245. package/dist/modules/event.js +123 -0
  246. package/dist/modules/filter.js +448 -0
  247. package/dist/modules/forms/components/Form.d.ts +8 -0
  248. package/dist/modules/forms/components/Form.d.ts.map +1 -0
  249. package/dist/modules/forms/hooks/useField.d.ts +35 -0
  250. package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
  251. package/dist/modules/forms/hooks/useForm.d.ts +44 -0
  252. package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
  253. package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
  254. package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
  255. package/dist/modules/forms/lib/FormContext.d.ts +13 -0
  256. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
  257. package/dist/modules/forms/lib/clean.d.ts +3 -0
  258. package/dist/modules/forms/lib/clean.d.ts.map +1 -0
  259. package/dist/modules/forms/lib/validators.d.ts +20 -0
  260. package/dist/modules/forms/lib/validators.d.ts.map +1 -0
  261. package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
  262. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
  263. package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
  264. package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
  265. package/dist/modules/language.js +106 -0
  266. package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
  267. package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
  268. package/dist/modules/modal/components/DangerMessage.d.ts +13 -0
  269. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
  270. package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
  271. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
  272. package/dist/modules/modal/components/Modal.d.ts +10 -0
  273. package/dist/modules/modal/components/Modal.d.ts.map +1 -0
  274. package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
  275. package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
  276. package/dist/modules/modal/hooks/useModal.d.ts +7 -0
  277. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
  278. package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
  279. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
  280. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
  281. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
  282. package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
  283. package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
  284. package/dist/modules/order/hooks/useOrders.d.ts +46 -0
  285. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
  286. package/dist/modules/order.js +569 -0
  287. package/dist/modules/payment-providers.js +206 -0
  288. package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
  289. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
  290. package/dist/modules/product-review.js +270 -0
  291. package/dist/modules/product.js +1925 -0
  292. package/dist/modules/quotation.js +317 -0
  293. package/dist/modules/token.js +143 -0
  294. package/dist/modules/warehousing-providers.js +206 -0
  295. package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
  296. package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
  297. package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
  298. package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
  299. package/dist/modules/work/hooks/useWork.d.ts +32 -0
  300. package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
  301. package/dist/modules/work.js +320 -0
  302. package/dist/plugins.js +13 -0
  303. package/dist/providers.js +6 -0
  304. package/dist/sdk/hooks.d.ts +9 -0
  305. package/dist/sdk/hooks.d.ts.map +1 -0
  306. package/dist/sdk/modal.d.ts +7 -0
  307. package/dist/sdk/modal.d.ts.map +1 -0
  308. package/dist/sdk/plugins.d.ts +78 -0
  309. package/dist/sdk/plugins.d.ts.map +1 -0
  310. package/dist/sdk/providers.d.ts +5 -0
  311. package/dist/sdk/providers.d.ts.map +1 -0
  312. package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
  313. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
  314. package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
  315. package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
  316. package/dist/sdk/shims/apollo-client.d.ts +3 -0
  317. package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
  318. package/dist/sdk/shims/host.d.ts +17 -0
  319. package/dist/sdk/shims/host.d.ts.map +1 -0
  320. package/dist/sdk/shims/next-head.d.ts +3 -0
  321. package/dist/sdk/shims/next-head.d.ts.map +1 -0
  322. package/dist/sdk/shims/next-image.d.ts +3 -0
  323. package/dist/sdk/shims/next-image.d.ts.map +1 -0
  324. package/dist/sdk/shims/next-link.d.ts +3 -0
  325. package/dist/sdk/shims/next-link.d.ts.map +1 -0
  326. package/dist/sdk/shims/next-router.d.ts +3 -0
  327. package/dist/sdk/shims/next-router.d.ts.map +1 -0
  328. package/dist/sdk/shims/react-dom-client.d.ts +3 -0
  329. package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
  330. package/dist/sdk/shims/react-dom.d.ts +3 -0
  331. package/dist/sdk/shims/react-dom.d.ts.map +1 -0
  332. package/dist/sdk/shims/react-hook-form.d.ts +3 -0
  333. package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
  334. package/dist/sdk/shims/react-intl.d.ts +3 -0
  335. package/dist/sdk/shims/react-intl.d.ts.map +1 -0
  336. package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
  337. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
  338. package/dist/sdk/shims/react-toastify.d.ts +3 -0
  339. package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
  340. package/dist/sdk/shims/react.d.ts +3 -0
  341. package/dist/sdk/shims/react.d.ts.map +1 -0
  342. package/dist/sdk/theme.d.ts +26 -0
  343. package/dist/sdk/theme.d.ts.map +1 -0
  344. package/dist/shims/admin-ui-plugins.js +9 -0
  345. package/dist/shims/apollo-client-react.js +25 -0
  346. package/dist/shims/apollo-client.js +55 -0
  347. package/dist/shims/next-head.js +9 -0
  348. package/dist/shims/next-image.js +9 -0
  349. package/dist/shims/next-link.js +9 -0
  350. package/dist/shims/next-router.js +13 -0
  351. package/dist/shims/react-dom-client.js +11 -0
  352. package/dist/shims/react-dom.js +22 -0
  353. package/dist/shims/react-hook-form.js +25 -0
  354. package/dist/shims/react-intl.js +37 -0
  355. package/dist/shims/react-jsx-runtime.js +11 -0
  356. package/dist/shims/react-toastify.js +16 -0
  357. package/dist/shims/react.js +52 -0
  358. package/dist/theme.js +34 -0
  359. package/dist/ui.js +19358 -0
  360. package/out/403/index.html +2 -2
  361. package/out/404/index.html +2 -2
  362. package/out/404.html +2 -2
  363. package/out/423/index.html +2 -2
  364. package/out/500/index.html +2 -2
  365. package/out/_next/static/chunks/04bb4k67x398t.js +1 -0
  366. package/out/_next/static/chunks/{2g0f0awj5p2qc.js → 06a1c2sikfkdk.js} +4 -4
  367. package/out/_next/static/chunks/{036jcj4okqca4.js → 06tejx8u1_0kg.js} +1 -1
  368. package/out/_next/static/chunks/{3u3tcrl7wxrzi.js → 0amvl_hv6wa7d.js} +5 -5
  369. package/out/_next/static/chunks/{2rw-r9fvx6t4y.js → 0bx11n-vs9rye.js} +5 -5
  370. package/out/_next/static/chunks/0fiwxqhlo_suy.js +14 -0
  371. package/out/_next/static/chunks/{18e-92lfg29wn.js → 0g1ikcsz2gw8d.js} +8 -8
  372. package/out/_next/static/chunks/{1bhsgjj7bbftc.js → 0g6hr3dmen536.js} +2 -2
  373. package/out/_next/static/chunks/{1r0jyqmys60fw.js → 0hg96-q-sy8p3.js} +5 -5
  374. package/out/_next/static/chunks/{21lf0tu71e9e5.js → 0irr04sbnadk8.js} +8 -8
  375. package/out/_next/static/chunks/{0pj6j2o4ya0xs.js → 0pp2j5ys0s75h.js} +8 -8
  376. package/out/_next/static/chunks/{3k98cr566roh-.js → 0prynyrvhm7ef.js} +2 -2
  377. package/out/_next/static/chunks/0r5wwinf72z4g.js +1 -0
  378. package/out/_next/static/chunks/{2cnc1jkfc85_x.js → 0t-8fvpr3gwkw.js} +4 -4
  379. package/out/_next/static/chunks/{1_g-csysa-i-9.js → 0w0zigi7aws2m.js} +1 -1
  380. package/out/_next/static/chunks/{1w_4l5gk0n27a.js → 0w6403ca0wd40.js} +5 -5
  381. package/out/_next/static/chunks/{1mo_wvf-1w8h-.js → 0x34_uvhgol1o.js} +5 -5
  382. package/out/_next/static/chunks/{2p6deqdf8dlo0.js → 11496j8y5izl0.js} +7 -7
  383. package/out/_next/static/chunks/{0dvf7ltl55td_.js → 16b-fme2lvyik.js} +6 -6
  384. package/out/_next/static/chunks/{0l3hp2c6_v3vu.js → 17rvdo97_73-r.js} +5 -5
  385. package/out/_next/static/chunks/{1gv6j3dx9s71x.js → 17t_4qy79-xou.js} +6 -6
  386. package/out/_next/static/chunks/{2v0koj5wv-png.js → 194e8b6x5qm5k.js} +5 -5
  387. package/out/_next/static/chunks/{0yhj5b33a-dp1.js → 1asyhd18d8b19.js} +12 -12
  388. package/out/_next/static/chunks/{40v94fy15qxej.js → 1dj6rtr2zagxl.js} +5 -5
  389. package/out/_next/static/chunks/{0172idn4wi-am.js → 1dv2thnikolnz.js} +6 -6
  390. package/out/_next/static/chunks/1f8hl62epp2bs.js +5 -0
  391. package/out/_next/static/chunks/1fzbon-ih4_3j.js +1 -0
  392. package/out/_next/static/chunks/{2vy8ae-zwwle1.js → 1ikc8-ca87tw_.js} +8 -8
  393. package/out/_next/static/chunks/{0ac5zzn3zeki5.js → 1pv3s5pi4mn-7.js} +8 -8
  394. package/out/_next/static/chunks/{404_8bnljpu18.js → 1qnsi9q49l6yt.js} +5 -5
  395. package/out/_next/static/chunks/{4188i5qe83m24.js → 1s5id04nxpmov.js} +7 -7
  396. package/out/_next/static/chunks/{05dtc5uryjkmn.js → 1u56ggvtfz1pw.js} +5 -5
  397. package/out/_next/static/chunks/{37rq4vcfobv9x.js → 1u9myfa-qi11x.js} +5 -5
  398. package/out/_next/static/chunks/{3dbskin37ha12.js → 1vmcguc9yb6gq.js} +6 -6
  399. package/out/_next/static/chunks/{0-b63f3cwlt9h.js → 1w30h0skp16nw.js} +5 -5
  400. package/out/_next/static/chunks/{1hpx7xjq9a5bq.js → 1wrffo12-xpad.js} +5 -5
  401. package/out/_next/static/chunks/{3-h5nu9jontfy.js → 1yi1a106ht-nz.js} +6 -6
  402. package/out/_next/static/chunks/{1epelh6347c59.js → 1zh3wmaf2a0wq.js} +9 -9
  403. package/out/_next/static/chunks/{1o41sjh1nhwir.js → 1zmw93-y4onb8.js} +7 -7
  404. package/out/_next/static/chunks/{3yqw8z_udrol0.js → 201rx84kyo8ag.js} +1 -1
  405. package/out/_next/static/chunks/22ial6oluoicg.js +100 -0
  406. package/out/_next/static/chunks/{21c515liq8_sf.js → 22mbms24up6d4.js} +4 -4
  407. package/out/_next/static/chunks/{1f536itbgwelp.js → 23thyqnxwb_h4.js} +6 -6
  408. package/out/_next/static/chunks/{2_0bsdj7k4kue.js → 24zql9mxp7je7.js} +5 -5
  409. package/out/_next/static/chunks/{31j6x_qgtn-7j.js → 26qclo9iliv0v.js} +5 -5
  410. package/out/_next/static/chunks/{2vhqw66fy605y.js → 2_kc34rl9smyf.js} +6 -6
  411. package/out/_next/static/chunks/{0c1eqd9oamcur.js → 2ay53yz_k-gka.js} +6 -6
  412. package/out/_next/static/chunks/{1k703f4i1hgfy.js → 2cl2qh-t0bp-x.js} +6 -6
  413. package/out/_next/static/chunks/{30zp6-w17u9rt.js → 2impwm9m10-y5.js} +6 -6
  414. package/out/_next/static/chunks/{3s18b668qqa87.js → 2mq7-oeknij50.js} +6 -6
  415. package/out/_next/static/chunks/{2f8qzo__ksyu7.js → 2puhcafuku-tt.js} +6 -6
  416. package/out/_next/static/chunks/{2ecq8dhsm2eu1.js → 2qocgb90m12d8.js} +1 -1
  417. package/out/_next/static/chunks/{2z5b35yv3i6aq.js → 2r9etl_ej7yq8.js} +5 -5
  418. package/out/_next/static/chunks/{0dtahnosgvou_.js → 2s6eb6877qk5z.js} +5 -5
  419. package/out/_next/static/chunks/{2b_lhf_533k0a.js → 2slrs8mk6-_qy.js} +7 -7
  420. package/out/_next/static/chunks/2t724bghemjmf.js +28 -0
  421. package/out/_next/static/chunks/{20wamkfz03l6l.js → 2u435g-3ydo_e.js} +6 -6
  422. package/out/_next/static/chunks/{0k433cermb_mg.js → 2vv2odme20_bj.js} +11 -11
  423. package/out/_next/static/chunks/{2-ciniqgtu96t.js → 2yjnzxw72qkwa.js} +4 -4
  424. package/out/_next/static/chunks/{40bl8g3_13c59.js → 2ypcj5e-tv2ki.js} +4 -4
  425. package/out/_next/static/chunks/{3wm88ukxj8u46.js → 31yuk0tzdgnsq.js} +6 -6
  426. package/out/_next/static/chunks/33tjpl4-mac6i.js +10 -0
  427. package/out/_next/static/chunks/36yth4lm03_j8.js +1 -0
  428. package/out/_next/static/chunks/{2eo4m196-t6ed.js → 389rjxe1t1mxi.js} +4 -4
  429. package/out/_next/static/chunks/{378867ti5yucc.js → 3a7wm2331v13r.js} +1 -1
  430. package/out/_next/static/chunks/{27tp9qrxhs6uf.js → 3dshohnaq5dpb.js} +7 -7
  431. package/out/_next/static/chunks/{0c2th4nk1xlfd.js → 3e-hohr5rbfgs.js} +6 -6
  432. package/out/_next/static/chunks/{0o16fnqhx30be.js → 3e2sowyws346l.js} +6 -6
  433. package/out/_next/static/chunks/{2y9z7y6i5cawj.js → 3gl6y4hg4xqh1.js} +5 -5
  434. package/out/_next/static/chunks/{1hwup6qqzqzh8.js → 3js2_oj1o86yv.js} +9 -9
  435. package/out/_next/static/chunks/{17wc5344qnib1.js → 3nnzjetbwg4mr.js} +5 -5
  436. package/out/_next/static/chunks/{1v16gcok-ktdo.js → 3oxv1fo564rrf.js} +1 -1
  437. package/out/_next/static/chunks/3s22ovhmk-4h7.js +1 -0
  438. package/out/_next/static/chunks/3sktz8258so64.js +2 -0
  439. package/out/_next/static/chunks/{3-av_88np5f5_.js → 3t-cwqu-9qfvs.js} +4 -4
  440. package/out/_next/static/chunks/{2o7wjpjbr5vau.js → 3tn3fjkayia2l.js} +5 -5
  441. package/out/_next/static/chunks/{1bp_0jnta8nj1.js → 3v-4df_kpu7wl.js} +6 -6
  442. package/out/_next/static/chunks/3xfj8_2nd5d_1.js +1 -0
  443. package/out/_next/static/chunks/42gvqnnznu5d5.js +10 -0
  444. package/out/_next/static/chunks/{03_e40kzqm4nj.js → 44hx7evqwmlix.js} +4 -4
  445. package/out/_next/static/chunks/{turbopack-0bljt1tp0zt4q.js → turbopack-0-h3wxx12zewd.js} +1 -1
  446. package/out/_next/static/chunks/{turbopack-3xem4akmi9at9.js → turbopack-0-huij9pkr6i5.js} +1 -1
  447. package/out/_next/static/chunks/{turbopack-3-kzs1xrhesa8.js → turbopack-00ka03s4zfhmk.js} +1 -1
  448. package/out/_next/static/chunks/turbopack-00rnle9d3h5j8.js +1 -0
  449. package/out/_next/static/chunks/{turbopack-1gbk68s3o1ulv.js → turbopack-0a9my88c0do8o.js} +1 -1
  450. package/out/_next/static/chunks/{turbopack-14zydki2yqyd3.js → turbopack-0ah23ustnbjgw.js} +1 -1
  451. package/out/_next/static/chunks/turbopack-0bj4v4kbzidiu.js +1 -0
  452. package/out/_next/static/chunks/{turbopack-3zxsk_hikkrwx.js → turbopack-0ca90b_8se2ws.js} +1 -1
  453. package/out/_next/static/chunks/{turbopack-1bnaj5x8w5m6z.js → turbopack-0hwktepjs4shu.js} +1 -1
  454. package/out/_next/static/chunks/{turbopack-328hjoqts5fe-.js → turbopack-0iqoh65_n4y31.js} +1 -1
  455. package/out/_next/static/chunks/{turbopack-0j92hsdmi8k6p.js → turbopack-0m53ts1akyqg9.js} +1 -1
  456. package/out/_next/static/chunks/{turbopack-1k2h3st-nygbo.js → turbopack-0mp6vcjbi4oj6.js} +1 -1
  457. package/out/_next/static/chunks/{turbopack-08u3rgl_09tb7.js → turbopack-0p995f9piwklo.js} +1 -1
  458. package/out/_next/static/chunks/{turbopack-0ywznohf-p_-1.js → turbopack-0pdfslh_xau4v.js} +1 -1
  459. package/out/_next/static/chunks/{turbopack-15x3cqzaaew93.js → turbopack-0q1m4v0r5_pw-.js} +1 -1
  460. package/out/_next/static/chunks/{turbopack-0cbhwv4g0ak0q.js → turbopack-0wc1wpl3t5cbf.js} +1 -1
  461. package/out/_next/static/chunks/{turbopack-34gjko7_04blz.js → turbopack-0wu_ea8477kfb.js} +1 -1
  462. package/out/_next/static/chunks/{turbopack-26z9lzkojt-cx.js → turbopack-0x-489k903f9f.js} +1 -1
  463. package/out/_next/static/chunks/{turbopack-252a5rlyrq9fk.js → turbopack-11i280gb7ytob.js} +1 -1
  464. package/out/_next/static/chunks/{turbopack-3cnuj1vf45306.js → turbopack-11mgtsuzuth10.js} +1 -1
  465. package/out/_next/static/chunks/{turbopack-1w3-o4vpw_tgq.js → turbopack-14elmv-0t42r4.js} +1 -1
  466. package/out/_next/static/chunks/{turbopack-10l1gows-lyo9.js → turbopack-18b89oxgeg1p3.js} +1 -1
  467. package/out/_next/static/chunks/{turbopack-0jijm5fs2d3pa.js → turbopack-1j4b2o2gyndaw.js} +1 -1
  468. package/out/_next/static/chunks/{turbopack-3qmjh91o7wte5.js → turbopack-1kg_x57lhnhln.js} +1 -1
  469. package/out/_next/static/chunks/{turbopack-2xm-84om1nxe3.js → turbopack-1m20zbo-8iwfh.js} +1 -1
  470. package/out/_next/static/chunks/{turbopack-34cd6px36-_ae.js → turbopack-1rmdtpi005n_6.js} +1 -1
  471. package/out/_next/static/chunks/{turbopack-0bp88aylp19tu.js → turbopack-1sy__tr_jpy9p.js} +1 -1
  472. package/out/_next/static/chunks/{turbopack-0hpk8f7-2xoz3.js → turbopack-22l2qxvuvnfnm.js} +1 -1
  473. package/out/_next/static/chunks/{turbopack-3ma-qc75tctdd.js → turbopack-259f81vw0sjro.js} +1 -1
  474. package/out/_next/static/chunks/{turbopack-42akqkt4irsps.js → turbopack-25n3ygfcffvqv.js} +1 -1
  475. package/out/_next/static/chunks/{turbopack-3ouyppea8jp6k.js → turbopack-2ah1mf3i_019l.js} +1 -1
  476. package/out/_next/static/chunks/{turbopack-272y7gt3ncsq7.js → turbopack-2d2i6sp7ig7ar.js} +1 -1
  477. package/out/_next/static/chunks/{turbopack-0i_uv1p6_dyo-.js → turbopack-2dog_ytiydz1b.js} +1 -1
  478. package/out/_next/static/chunks/{turbopack-3591lq9bl5zm-.js → turbopack-2dp-kk65cjuz1.js} +1 -1
  479. package/out/_next/static/chunks/turbopack-2kbsoz95aykk8.js +1 -0
  480. package/out/_next/static/chunks/{turbopack-3n_3uj335tm0n.js → turbopack-2rnunhgad49uw.js} +1 -1
  481. package/out/_next/static/chunks/{turbopack-2h3q2k9k2riyq.js → turbopack-2u8czufggehlj.js} +1 -1
  482. package/out/_next/static/chunks/{turbopack-06hufy_7yovzw.js → turbopack-2v6rz3zo07si0.js} +1 -1
  483. package/out/_next/static/chunks/{turbopack-25bgi6hb6qg8w.js → turbopack-2w27fkgilqbl3.js} +1 -1
  484. package/out/_next/static/chunks/{turbopack-0cu-maxx6s175.js → turbopack-2x4qn8b3l97el.js} +1 -1
  485. package/out/_next/static/chunks/{turbopack-3uov6gvwwuxmx.js → turbopack-31liqa7xywfc3.js} +1 -1
  486. package/out/_next/static/chunks/{turbopack-14qzcqdgveoel.js → turbopack-32aublis-jlvx.js} +1 -1
  487. package/out/_next/static/chunks/{turbopack-34rebh56g2zjd.js → turbopack-3467hrkyb1r4-.js} +1 -1
  488. package/out/_next/static/chunks/{turbopack-3aujkr72l5znq.js → turbopack-35lc2tzfqfnq3.js} +1 -1
  489. package/out/_next/static/chunks/{turbopack-3mxiudedhdbib.js → turbopack-37465j0f7qzui.js} +1 -1
  490. package/out/_next/static/chunks/{turbopack-3seov_dvv8im-.js → turbopack-374ar5091nfoc.js} +1 -1
  491. package/out/_next/static/chunks/{turbopack-2jpit5njafpgz.js → turbopack-37k0iid3ve75q.js} +1 -1
  492. package/out/_next/static/chunks/{turbopack-3np05fneli2gv.js → turbopack-37z02xo4d9761.js} +1 -1
  493. package/out/_next/static/chunks/{turbopack-22r1qh8g6munp.js → turbopack-3aw_3x16wx0hg.js} +1 -1
  494. package/out/_next/static/chunks/{turbopack-2b14t7jx5tgn7.js → turbopack-3d4st1erykui5.js} +1 -1
  495. package/out/_next/static/chunks/{turbopack-0nlhzx_9rg6_p.js → turbopack-3nxt9w32_n_vs.js} +1 -1
  496. package/out/_next/static/chunks/{turbopack-1w2r6t0rjz8pp.js → turbopack-3p03o8o_0h4o1.js} +1 -1
  497. package/out/_next/static/chunks/turbopack-3qenf92gnhnqu.js +1 -0
  498. package/out/_next/static/chunks/{turbopack-148_1qw3wae7d.js → turbopack-3s9690f4fp1sr.js} +1 -1
  499. package/out/_next/static/chunks/{turbopack-13nb0axu41yph.js → turbopack-3v-9xb14o2wcf.js} +1 -1
  500. package/out/_next/static/chunks/{turbopack-3opb94dwpz7bg.js → turbopack-3wy9kdvqtyrqr.js} +1 -1
  501. package/out/_next/static/chunks/{turbopack-2cvqtdfi5z-33.js → turbopack-3xy1pj-av41-3.js} +1 -1
  502. package/out/_next/static/chunks/{turbopack-0la8grv9f6bxn.js → turbopack-3z_pmy149cb3t.js} +1 -1
  503. package/out/_next/static/chunks/{turbopack-1r4g2xna7gckz.js → turbopack-3zk-yr-2ktefz.js} +1 -1
  504. package/out/_next/static/chunks/{turbopack-2ihmy6dk991x4.js → turbopack-400v7uvt-ygyn.js} +1 -1
  505. package/out/_next/static/chunks/{turbopack-1ddkj8w1l0b4_.js → turbopack-41jswgtq4l3-n.js} +1 -1
  506. package/out/_next/static/chunks/{turbopack-0rt_vkqrb6ykb.js → turbopack-42kawbzqb610r.js} +1 -1
  507. package/out/_next/static/chunks/{turbopack-25hv3ltvy0wos.js → turbopack-430a09gmn8rwm.js} +1 -1
  508. package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → lMHTn15MSw1RJOw-DD9ir}/_buildManifest.js +62 -62
  509. package/out/_offline/index.html +2 -2
  510. package/out/account/forgot-password/index.html +2 -2
  511. package/out/account/index.html +2 -2
  512. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  513. package/out/assortments/index.html +2 -2
  514. package/out/assortments/new/index.html +2 -2
  515. package/out/copilot/index.html +2 -2
  516. package/out/country/CountryDetailPage/index.html +2 -2
  517. package/out/country/index.html +2 -2
  518. package/out/country/new/index.html +2 -2
  519. package/out/currency/CurrencyDetailPage/index.html +2 -2
  520. package/out/currency/index.html +2 -2
  521. package/out/currency/new/index.html +2 -2
  522. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  523. package/out/delivery-provider/index.html +2 -2
  524. package/out/delivery-provider/new/index.html +2 -2
  525. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  526. package/out/enrollments/index.html +2 -2
  527. package/out/events/EventDetailPage/index.html +2 -2
  528. package/out/events/index.html +2 -2
  529. package/out/exports/index.html +2 -2
  530. package/out/external/index.html +2 -2
  531. package/out/filters/FilterDetailPage/index.html +2 -2
  532. package/out/filters/index.html +2 -2
  533. package/out/filters/new/index.html +2 -2
  534. package/out/index.html +2 -2
  535. package/out/install/index.html +2 -2
  536. package/out/language/LanguageDetailPage/index.html +2 -2
  537. package/out/language/index.html +2 -2
  538. package/out/language/new/index.html +2 -2
  539. package/out/log-in/index.html +2 -2
  540. package/out/manifest.json +48 -0
  541. package/out/orders/OrderDetailPage/index.html +2 -2
  542. package/out/orders/index.html +2 -2
  543. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  544. package/out/payment-provider/index.html +2 -2
  545. package/out/payment-provider/new/index.html +2 -2
  546. package/out/products/ProductDetailPage/index.html +2 -2
  547. package/out/products/index.html +2 -2
  548. package/out/products/new/index.html +2 -2
  549. package/out/quotations/QuotationDetailPage/index.html +2 -2
  550. package/out/quotations/index.html +2 -2
  551. package/out/reset-password/index.html +2 -2
  552. package/out/sign-up/index.html +2 -2
  553. package/out/styleguide/index.html +2 -2
  554. package/out/tokens/TokenDetailPage/index.html +2 -2
  555. package/out/tokens/index.html +2 -2
  556. package/out/users/UserDetailPage/index.html +2 -2
  557. package/out/users/index.html +2 -2
  558. package/out/users/new/index.html +2 -2
  559. package/out/verify-email/index.html +2 -2
  560. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  561. package/out/warehousing-provider/index.html +2 -2
  562. package/out/warehousing-provider/new/index.html +2 -2
  563. package/out/works/WorkDetailPage/index.html +2 -2
  564. package/out/works/WorkQueueListView/index.html +2 -2
  565. package/out/works/index.html +2 -2
  566. package/out/works/management/index.html +2 -2
  567. package/package.json +2 -2
  568. package/out/_next/static/chunks/0cm0oyd82zvez.js +0 -1
  569. package/out/_next/static/chunks/119eyvb0tl4d7.js +0 -5
  570. package/out/_next/static/chunks/1shkyosfbiwr4.js +0 -1
  571. package/out/_next/static/chunks/1t20r1ofch5r3.js +0 -95
  572. package/out/_next/static/chunks/1yv01jo2m1gkf.js +0 -1
  573. package/out/_next/static/chunks/2cwzp5h99c8es.js +0 -10
  574. package/out/_next/static/chunks/2tw-iq1oliu-h.js +0 -1
  575. package/out/_next/static/chunks/3-hdz4_6asex-.js +0 -10
  576. package/out/_next/static/chunks/31_pg1fxqgdfx.js +0 -14
  577. package/out/_next/static/chunks/3bxtyo0u_psf7.js +0 -1
  578. package/out/_next/static/chunks/3f-ap6wo94un_.js +0 -1
  579. package/out/_next/static/chunks/3ghzaufs2n8uq.js +0 -2
  580. package/out/_next/static/chunks/3rnl7-84z1op5.js +0 -28
  581. package/out/_next/static/chunks/turbopack-3-84r4h6w7ztq.js +0 -1
  582. package/out/_next/static/chunks/turbopack-3x5pttfv2qlpw.js +0 -1
  583. package/out/_next/static/chunks/turbopack-3z9v3oefxw81i.js +0 -1
  584. package/out/_next/static/chunks/turbopack-44bpgib3rn1s2.js +0 -1
  585. /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → lMHTn15MSw1RJOw-DD9ir}/_clientMiddlewareManifest.js +0 -0
  586. /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → lMHTn15MSw1RJOw-DD9ir}/_ssgManifest.js +0 -0
@@ -0,0 +1,1169 @@
1
+ import '../chunk-QWQ3WJJN.js';
2
+ import { useConfirmMediaUpload_default, PUTMedia_default } from '../chunk-COV7BREX.js';
3
+ import { UserFragment_default, MD5MetaDataFragment_default } from '../chunk-GY2DRQGW.js';
4
+ export { useCurrentUser_default as useCurrentUser } from '../chunk-GY2DRQGW.js';
5
+ import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
6
+ import '../chunk-4VNS5WPM.js';
7
+ import { gql } from '@apollo/client';
8
+ import { useMutation, useQuery } from '@apollo/client/react';
9
+
10
+ var logOut = async (apollo, router = null) => {
11
+ await apollo.mutate({
12
+ mutation: gql`
13
+ mutation Logout {
14
+ logout {
15
+ success
16
+ }
17
+ }
18
+ `
19
+ });
20
+ try {
21
+ await apollo.resetStore();
22
+ } catch (e) {
23
+ if (e?.name !== "AbortError") throw e;
24
+ }
25
+ if (router) {
26
+ router.push("/log-in");
27
+ } else if (typeof window !== "undefined") {
28
+ window.location.href = "/log-in";
29
+ }
30
+ };
31
+ var logOut_default = logOut;
32
+ var AddEmailMutation = gql`
33
+ mutation AddEmail($email: String!, $userId: ID) {
34
+ addEmail(email: $email, userId: $userId) {
35
+ _id
36
+ }
37
+ }
38
+ `;
39
+ var useAddEmail = () => {
40
+ const [addEmailMutation] = useMutation(AddEmailMutation);
41
+ const addEmail = async ({ email, userId }) => {
42
+ return addEmailMutation({
43
+ variables: { email, userId },
44
+ refetchQueries: ["UserPermissions", "User", "CurrentUser"]
45
+ });
46
+ };
47
+ return {
48
+ addEmail
49
+ };
50
+ };
51
+ var useAddEmail_default = useAddEmail;
52
+ var AddWeb3AddressMutation = gql`
53
+ mutation AddWeb3Address($address: String!) {
54
+ addWeb3Address(address: $address) {
55
+ ...UserFragment
56
+ }
57
+ }
58
+ ${UserFragment_default}
59
+ `;
60
+ var useAddWeb3Address = () => {
61
+ const [addWeb3AddressMutation] = useMutation(AddWeb3AddressMutation);
62
+ const addWeb3Address = async ({
63
+ address
64
+ }) => {
65
+ return addWeb3AddressMutation({
66
+ variables: {
67
+ address
68
+ }
69
+ });
70
+ };
71
+ return {
72
+ addWeb3Address
73
+ };
74
+ };
75
+ var useAddWeb3Address_default = useAddWeb3Address;
76
+ var AddWebAuthnCredentialsMutation = gql`
77
+ mutation AddWebAuthnCredentials($credentials: JSON!) {
78
+ addWebAuthnCredentials(credentials: $credentials) {
79
+ ...UserFragment
80
+ webAuthnCredentials {
81
+ _id
82
+ created
83
+ aaguid
84
+ counter
85
+ mdsMetadata {
86
+ ...MD5MetaDataFragment
87
+ }
88
+ }
89
+ }
90
+ }
91
+ ${UserFragment_default}
92
+ ${MD5MetaDataFragment_default}
93
+ `;
94
+ var useAddWebAuthnCredentials = () => {
95
+ const [addWebAuthnCredentialsMutation] = useMutation(AddWebAuthnCredentialsMutation);
96
+ const addWebAuthnCredentials = async ({
97
+ credentials
98
+ }) => {
99
+ return addWebAuthnCredentialsMutation({
100
+ variables: { credentials }
101
+ });
102
+ };
103
+ return {
104
+ addWebAuthnCredentials
105
+ };
106
+ };
107
+ var useAddWebAuthnCredentials_default = useAddWebAuthnCredentials;
108
+ var ChangePasswordMutation = gql`
109
+ mutation ChangePassword($oldPassword: String!, $newPassword: String!) {
110
+ changePassword(oldPassword: $oldPassword, newPassword: $newPassword) {
111
+ success
112
+ }
113
+ }
114
+ `;
115
+ var useChangePassword = () => {
116
+ const [changePasswordMutation] = useMutation(ChangePasswordMutation);
117
+ const changePassword = async ({
118
+ oldPassword = void 0,
119
+ newPassword = void 0
120
+ }) => {
121
+ return changePasswordMutation({
122
+ variables: { oldPassword, newPassword }
123
+ });
124
+ };
125
+ return {
126
+ changePassword
127
+ };
128
+ };
129
+ var useChangePassword_default = useChangePassword;
130
+ var CreateUserMutation = gql`
131
+ mutation CreateUser(
132
+ $username: String
133
+ $email: String
134
+ $plainPassword: String
135
+ $profile: UserProfileInput
136
+ $webAuthnPublicKeyCredentials: JSON
137
+ ) {
138
+ createUser(
139
+ username: $username
140
+ email: $email
141
+ password: $plainPassword
142
+ profile: $profile
143
+ webAuthnPublicKeyCredentials: $webAuthnPublicKeyCredentials
144
+ ) {
145
+ _id
146
+ tokenExpires
147
+ }
148
+ }
149
+ `;
150
+ var useCreateUser = () => {
151
+ const [createUserMutation, { data, error, loading, client }] = useMutation(CreateUserMutation);
152
+ const createUser = async ({
153
+ username,
154
+ email,
155
+ plainPassword,
156
+ profile,
157
+ webAuthnPublicKeyCredentials
158
+ }) => {
159
+ const variables = {
160
+ username: null,
161
+ email: null,
162
+ profile,
163
+ plainPassword: null,
164
+ webAuthnPublicKeyCredentials
165
+ };
166
+ if (email) {
167
+ variables.email = email;
168
+ }
169
+ if (username) {
170
+ variables.username = username;
171
+ }
172
+ variables.plainPassword = plainPassword;
173
+ const result = await createUserMutation({
174
+ variables,
175
+ refetchQueries: ["Users", "ShopStatus", "ShopInfo"]
176
+ });
177
+ await client.resetStore();
178
+ return result;
179
+ };
180
+ const newUser = data?.createUser;
181
+ return {
182
+ createUser,
183
+ newUser,
184
+ error,
185
+ loading
186
+ };
187
+ };
188
+ var useCreateUser_default = useCreateUser;
189
+ var CreateWebAuthnCredentialCreationOptionsMutation = gql`
190
+ mutation CreateWebAuthnCredentialCreationOptions($username: String!) {
191
+ createWebAuthnCredentialCreationOptions(username: $username)
192
+ }
193
+ `;
194
+ var useCreateWebAuthnCredentialCreationOptions = () => {
195
+ const [createWebAuthnCredentialCreationOptionsMutation] = useMutation(CreateWebAuthnCredentialCreationOptionsMutation);
196
+ const createWebAuthnCredentialCreationOptions = async ({
197
+ username
198
+ }) => {
199
+ return createWebAuthnCredentialCreationOptionsMutation({
200
+ variables: { username }
201
+ });
202
+ };
203
+ return { createWebAuthnCredentialCreationOptions };
204
+ };
205
+ var useCreateWebAuthnCredentialCreationOptions_default = useCreateWebAuthnCredentialCreationOptions;
206
+ var CreateWebAuthnCredentialRequestOptionsMutation = gql`
207
+ mutation CreateWebAuthnCredentialRequestOptions($username: String) {
208
+ createWebAuthnCredentialRequestOptions(username: $username)
209
+ }
210
+ `;
211
+ var useCreateWebAuthnCredentialRequestOptions = () => {
212
+ const [createWebAuthnCredentialRequestOptionsMutation] = useMutation(CreateWebAuthnCredentialRequestOptionsMutation);
213
+ const createWebAuthnCredentialRequestOptions = async ({
214
+ username
215
+ }) => {
216
+ return createWebAuthnCredentialRequestOptionsMutation({
217
+ variables: { username }
218
+ });
219
+ };
220
+ return { createWebAuthnCredentialRequestOptions };
221
+ };
222
+ var useCreateWebAuthnCredentialRequestOptions_default = useCreateWebAuthnCredentialRequestOptions;
223
+ var DeleteUserMutation = gql`
224
+ mutation DeleteUser($userId: ID) {
225
+ removeUser(userId: $userId) {
226
+ _id
227
+ }
228
+ }
229
+ `;
230
+ var useDeleteUser = () => {
231
+ const [deleteUserMutation] = useMutation(DeleteUserMutation);
232
+ const deleteUser = async (userId = void 0) => {
233
+ return deleteUserMutation({
234
+ variables: {
235
+ userId
236
+ }
237
+ });
238
+ };
239
+ return {
240
+ deleteUser
241
+ };
242
+ };
243
+ var useDeleteUser_default = useDeleteUser;
244
+ var ForgotPasswordMutation = gql`
245
+ mutation ForgotPassword($email: String!) {
246
+ forgotPassword(email: $email) {
247
+ success
248
+ }
249
+ }
250
+ `;
251
+ var useForgotPassword = () => {
252
+ const [forgotPasswordMutation] = useMutation(ForgotPasswordMutation);
253
+ const forgotPassword = async ({
254
+ email
255
+ }) => {
256
+ return forgotPasswordMutation({
257
+ variables: { email }
258
+ });
259
+ };
260
+ return {
261
+ forgotPassword
262
+ };
263
+ };
264
+ var useForgotPassword_default = useForgotPassword;
265
+
266
+ // src/modules/common/utils/base64ToArrayBuffer.ts
267
+ var base64ToArrayBuffer = (b64) => {
268
+ if (window.atob && Uint8Array) {
269
+ const base64 = b64.replace(/-/g, "+").replace(/_/g, "/");
270
+ const padded = base64 + "=".repeat((4 - base64.length % 4) % 4);
271
+ const binaryString = window.atob(padded);
272
+ const len = binaryString.length;
273
+ const bytes = new Uint8Array(len);
274
+ for (let i = 0; i < len; i += 1) {
275
+ bytes[i] = binaryString.charCodeAt(i);
276
+ }
277
+ return bytes.buffer;
278
+ }
279
+ throw new Error("The atob and Uint8Array methods are not available");
280
+ };
281
+ var base64ToArrayBuffer_default = base64ToArrayBuffer;
282
+
283
+ // src/modules/accounts/hooks/useGenerateLoginCredentials.ts
284
+ var arrayBufferToBase64url = (buffer) => {
285
+ const bytes = buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer);
286
+ const base64 = window.btoa(String.fromCharCode(...bytes));
287
+ return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
288
+ };
289
+ var useGenerateLoginCredentials = () => {
290
+ const { createWebAuthnCredentialRequestOptions } = useCreateWebAuthnCredentialRequestOptions_default();
291
+ const generateLoginCredentials = async ({ username }) => {
292
+ const { data } = await createWebAuthnCredentialRequestOptions({
293
+ username
294
+ });
295
+ const publicKey = data?.createWebAuthnCredentialRequestOptions;
296
+ if (!publicKey?.allowCredentials?.length) return null;
297
+ const preparedKey = {
298
+ challenge: base64ToArrayBuffer_default(publicKey.challenge),
299
+ allowCredentials: publicKey.allowCredentials?.map(({ id: id2, type, ...rest }) => ({
300
+ id: base64ToArrayBuffer_default(id2),
301
+ type: type || "public-key",
302
+ ...rest
303
+ })) || []
304
+ };
305
+ const PublicKeyCredentials = await navigator.credentials.get({
306
+ publicKey: preparedKey
307
+ });
308
+ if (!PublicKeyCredentials) return null;
309
+ const response = PublicKeyCredentials.response;
310
+ const authenticatorData = arrayBufferToBase64url(
311
+ response.authenticatorData
312
+ );
313
+ const signature = arrayBufferToBase64url(response.signature);
314
+ const userHandle = response.userHandle ? arrayBufferToBase64url(response.userHandle) : arrayBufferToBase64url(new TextEncoder().encode(username));
315
+ const clientDataJSON = arrayBufferToBase64url(response.clientDataJSON);
316
+ const id = arrayBufferToBase64url(PublicKeyCredentials.rawId);
317
+ return {
318
+ requestId: publicKey.requestId,
319
+ id,
320
+ response: {
321
+ clientDataJSON,
322
+ authenticatorData,
323
+ signature,
324
+ userHandle
325
+ }
326
+ };
327
+ };
328
+ return { generateLoginCredentials };
329
+ };
330
+ var useGenerateLoginCredentials_default = useGenerateLoginCredentials;
331
+
332
+ // src/modules/accounts/hooks/useGenerateWebAuthCredentials.ts
333
+ var arrayBufferToBase64url2 = (buffer) => {
334
+ const base64 = window.btoa(String.fromCharCode(...new Uint8Array(buffer)));
335
+ return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
336
+ };
337
+ var useGenerateWebAuthCredentials = () => {
338
+ const { createWebAuthnCredentialCreationOptions } = useCreateWebAuthnCredentialCreationOptions_default();
339
+ const generateWebAuthCredentials = async ({ username }) => {
340
+ const { data } = await createWebAuthnCredentialCreationOptions({
341
+ username
342
+ });
343
+ const options = data.createWebAuthnCredentialCreationOptions;
344
+ const textEncoder = new TextEncoder();
345
+ const publicKey = {
346
+ ...options,
347
+ challenge: base64ToArrayBuffer_default(options.challenge),
348
+ user: {
349
+ id: textEncoder.encode(username),
350
+ name: username,
351
+ displayName: username
352
+ }
353
+ };
354
+ const publicKeyCredentials = await navigator.credentials.create({
355
+ publicKey
356
+ });
357
+ if (!publicKeyCredentials) return null;
358
+ const response = publicKeyCredentials.response;
359
+ const attestationObject = arrayBufferToBase64url2(
360
+ response.attestationObject
361
+ );
362
+ const clientDataJSON = arrayBufferToBase64url2(response.clientDataJSON);
363
+ const rawId = arrayBufferToBase64url2(publicKeyCredentials.rawId);
364
+ const authenticatorData = response.getAuthenticatorData ? arrayBufferToBase64url2(response.getAuthenticatorData()) : "";
365
+ const responsePublicKey = response.getPublicKey ? arrayBufferToBase64url2(response.getPublicKey()) : "";
366
+ const publicKeyAlgorithm = response.getPublicKeyAlgorithm ? response.getPublicKeyAlgorithm() : -7;
367
+ const transports = response.getTransports ? response.getTransports() : ["internal"];
368
+ return {
369
+ id: rawId,
370
+ rawId,
371
+ response: {
372
+ clientDataJSON,
373
+ attestationObject,
374
+ authenticatorData,
375
+ publicKey: responsePublicKey,
376
+ publicKeyAlgorithm,
377
+ transports
378
+ },
379
+ authenticatorAttachment: publicKeyCredentials.authenticatorAttachment || "platform",
380
+ clientExtensionResults: publicKeyCredentials.getClientExtensionResults?.() || {},
381
+ type: "public-key",
382
+ user: {
383
+ id: username,
384
+ name: username,
385
+ displayName: username
386
+ }
387
+ };
388
+ };
389
+ return { generateWebAuthCredentials };
390
+ };
391
+ var useGenerateWebAuthCredentials_default = useGenerateWebAuthCredentials;
392
+
393
+ // src/modules/common/utils/isEmail.ts
394
+ var regexExp = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z]{2,})+$/i;
395
+ var isEmail = (str) => typeof str === "string" && regexExp.test(str.trim());
396
+ var isEmail_default = isEmail;
397
+
398
+ // src/modules/accounts/hooks/useLoginWithPassword.ts
399
+ var LogInWithPasswordMutation = gql`
400
+ mutation LoginWithPassword(
401
+ $username: String
402
+ $email: String
403
+ $password: String!
404
+ ) {
405
+ loginWithPassword(username: $username, email: $email, password: $password) {
406
+ _id
407
+ tokenExpires
408
+ user {
409
+ _id
410
+ allowedActions
411
+ roles
412
+ }
413
+ }
414
+ }
415
+ `;
416
+ var useLoginWithPassword = () => {
417
+ const [logInWithPasswordMutation, { client }] = useMutation(LogInWithPasswordMutation, {
418
+ errorPolicy: "all"
419
+ });
420
+ const logInWithPassword = async ({ usernameOrEmail, password }) => {
421
+ const variables = {
422
+ username: null,
423
+ email: null,
424
+ password: null
425
+ };
426
+ if (isEmail_default(usernameOrEmail)) {
427
+ const normalizedEmail = usernameOrEmail?.trim();
428
+ variables.email = normalizedEmail;
429
+ } else {
430
+ variables.username = usernameOrEmail;
431
+ }
432
+ variables.password = password;
433
+ const result = await logInWithPasswordMutation({
434
+ variables,
435
+ awaitRefetchQueries: true
436
+ });
437
+ if (result?.data?.loginWithPassword) {
438
+ await client.resetStore();
439
+ }
440
+ return result;
441
+ };
442
+ return {
443
+ logInWithPassword
444
+ };
445
+ };
446
+ var useLoginWithPassword_default = useLoginWithPassword;
447
+ var LogWithWebAuthnMutation = gql`
448
+ mutation LoginWithWebAuthn($webAuthnPublicKeyCredentials: JSON!) {
449
+ loginWithWebAuthn(
450
+ webAuthnPublicKeyCredentials: $webAuthnPublicKeyCredentials
451
+ ) {
452
+ _id
453
+ tokenExpires
454
+ }
455
+ }
456
+ `;
457
+ var useLoginWithWebAuthn = () => {
458
+ const [loginWithWebAuthnMutation, { client }] = useMutation(LogWithWebAuthnMutation);
459
+ const loginWithWebAuthn = async ({
460
+ webAuthnPublicKeyCredentials
461
+ }) => {
462
+ const result = await loginWithWebAuthnMutation({
463
+ variables: { webAuthnPublicKeyCredentials },
464
+ awaitRefetchQueries: true
465
+ });
466
+ await client.resetStore();
467
+ return result;
468
+ };
469
+ return { loginWithWebAuthn };
470
+ };
471
+ var useLoginWithWebAuthn_default = useLoginWithWebAuthn;
472
+ var RemoveEmailMutation = gql`
473
+ mutation RemoveEmail($email: String!, $userId: ID) {
474
+ removeEmail(email: $email, userId: $userId) {
475
+ _id
476
+ }
477
+ }
478
+ `;
479
+ var useRemoveEmail = () => {
480
+ const [removeEmailMutation] = useMutation(RemoveEmailMutation);
481
+ const removeEmail = async ({
482
+ email,
483
+ userId
484
+ }) => {
485
+ return removeEmailMutation({
486
+ variables: {
487
+ email,
488
+ userId
489
+ },
490
+ refetchQueries: ["UserPermissions", "User", "CurrentUser"]
491
+ });
492
+ };
493
+ return {
494
+ removeEmail
495
+ };
496
+ };
497
+ var useRemoveEmail_default = useRemoveEmail;
498
+ var RemoveWeb3AddressMutation = gql`
499
+ mutation RemoveWeb3Address($address: String!) {
500
+ removeWeb3Address(address: $address) {
501
+ ...UserFragment
502
+ }
503
+ }
504
+ ${UserFragment_default}
505
+ `;
506
+ var useRemoveWeb3Address = () => {
507
+ const [removeWeb3AddressMutation] = useMutation(RemoveWeb3AddressMutation);
508
+ const removeWeb3Address = async ({
509
+ address
510
+ }) => {
511
+ return removeWeb3AddressMutation({
512
+ variables: {
513
+ address
514
+ }
515
+ });
516
+ };
517
+ return {
518
+ removeWeb3Address
519
+ };
520
+ };
521
+ var useRemoveWeb3Address_default = useRemoveWeb3Address;
522
+ var RemoveWebAuthCredentialsMutation = gql`
523
+ mutation removeWebAuthCredentials($credentialsId: ID!) {
524
+ removeWebAuthnCredentials(credentialsId: $credentialsId) {
525
+ ...UserFragment
526
+ }
527
+ }
528
+ ${UserFragment_default}
529
+ `;
530
+ var useRemoveWebAuthCredentials = () => {
531
+ const [removeWebAuthCredentialsMutation] = useMutation(RemoveWebAuthCredentialsMutation);
532
+ const removeWebAuthCredentials = async ({
533
+ credentialsId
534
+ }) => {
535
+ return removeWebAuthCredentialsMutation({
536
+ variables: { credentialsId }
537
+ });
538
+ };
539
+ return {
540
+ removeWebAuthCredentials
541
+ };
542
+ };
543
+ var useRemoveWebAuthCredentials_default = useRemoveWebAuthCredentials;
544
+ var ResetPasswordMutation = gql`
545
+ mutation ResetPassword($newPlainPassword: String!, $token: String!) {
546
+ resetPassword(newPassword: $newPlainPassword, token: $token) {
547
+ _id
548
+ tokenExpires
549
+ }
550
+ }
551
+ `;
552
+ var useResetPassword = () => {
553
+ const [resetPasswordMutation, { client }] = useMutation(ResetPasswordMutation);
554
+ const resetPassword = async ({
555
+ newPlainPassword,
556
+ token
557
+ }) => {
558
+ const variables = {
559
+ token,
560
+ newPlainPassword: null
561
+ };
562
+ variables.newPlainPassword = newPlainPassword;
563
+ const result = await resetPasswordMutation({
564
+ variables,
565
+ awaitRefetchQueries: true
566
+ });
567
+ await client.resetStore();
568
+ return result;
569
+ };
570
+ return {
571
+ resetPassword
572
+ };
573
+ };
574
+ var useResetPassword_default = useResetPassword;
575
+ var SendVerificationEmailMutation = gql`
576
+ mutation SendVerificationEmail($email: String) {
577
+ sendVerificationEmail(email: $email) {
578
+ success
579
+ }
580
+ }
581
+ `;
582
+ var useSendVerificationEmail = () => {
583
+ const [sendVerificationEmailMutation] = useMutation(SendVerificationEmailMutation);
584
+ const sendVerificationEmail = async ({
585
+ email
586
+ }) => {
587
+ return sendVerificationEmailMutation({
588
+ variables: { email }
589
+ });
590
+ };
591
+ return {
592
+ sendVerificationEmail
593
+ };
594
+ };
595
+ var useSendVerificationEmail_default = useSendVerificationEmail;
596
+ var SetPasswordMutation = gql`
597
+ mutation SetPassword($newPlainPassword: String!, $userId: ID!) {
598
+ setPassword(newPassword: $newPlainPassword, userId: $userId) {
599
+ _id
600
+ }
601
+ }
602
+ `;
603
+ var useSetPassword = () => {
604
+ const [setPasswordMutation] = useMutation(SetPasswordMutation);
605
+ const setPassword = async ({
606
+ newPlainPassword = void 0,
607
+ userId
608
+ }) => {
609
+ const variables = { newPlainPassword, userId };
610
+ return setPasswordMutation({
611
+ variables,
612
+ refetchQueries: ["UserPermissions", "User", "CurrentUser"]
613
+ });
614
+ };
615
+ return {
616
+ setPassword
617
+ };
618
+ };
619
+ var useSetPassword_default = useSetPassword;
620
+ var SetRoleMutation = gql`
621
+ mutation SetRoles($roles: [String!]!, $userId: ID!) {
622
+ setRoles(roles: $roles, userId: $userId) {
623
+ _id
624
+ }
625
+ }
626
+ `;
627
+ var useSetRoles = () => {
628
+ const [setRoleMutation] = useMutation(SetRoleMutation);
629
+ const setRoles = async ({
630
+ roles = [],
631
+ userId = null
632
+ }) => {
633
+ return setRoleMutation({
634
+ variables: {
635
+ roles,
636
+ userId
637
+ },
638
+ refetchQueries: ["UserPermissions", "User", "CurrentUser"]
639
+ });
640
+ };
641
+ return {
642
+ setRoles
643
+ };
644
+ };
645
+ var useSetRoles_default = useSetRoles;
646
+ var SetUserTagsMutation = gql`
647
+ mutation SetUserTags($tags: [LowerCaseString]!, $userId: ID!) {
648
+ setUserTags(tags: $tags, userId: $userId) {
649
+ _id
650
+ tags
651
+ }
652
+ }
653
+ `;
654
+ var useSetUserTags = () => {
655
+ const [setUserTagsMutation] = useMutation(SetUserTagsMutation);
656
+ const setUserTags = async ({
657
+ tags = [],
658
+ userId = null
659
+ }) => {
660
+ return setUserTagsMutation({
661
+ variables: {
662
+ tags,
663
+ userId
664
+ },
665
+ refetchQueries: [
666
+ "Users",
667
+ "UserPermissions",
668
+ "User",
669
+ "CurrentUser",
670
+ "ShopStatus",
671
+ "ShopInfo"
672
+ ]
673
+ });
674
+ };
675
+ return {
676
+ setUserTags
677
+ };
678
+ };
679
+ var useSetUserTags_default = useSetUserTags;
680
+ var SetUserNameMutation = gql`
681
+ mutation SetUsername($username: String!, $userId: ID!) {
682
+ setUsername(username: $username, userId: $userId) {
683
+ _id
684
+ }
685
+ }
686
+ `;
687
+ var useSetUserName = () => {
688
+ const [setUserNameMutation] = useMutation(SetUserNameMutation);
689
+ const setUserName = async ({
690
+ username,
691
+ userId
692
+ }) => {
693
+ return setUserNameMutation({
694
+ variables: {
695
+ username,
696
+ userId
697
+ },
698
+ refetchQueries: ["UserPermissions", "User", "CurrentUser"]
699
+ });
700
+ };
701
+ return {
702
+ setUserName
703
+ };
704
+ };
705
+ var useSetUsername_default = useSetUserName;
706
+ var PrepareUserAvatarUploadMutation = gql`
707
+ mutation PrepareUserAvatarUpload($mediaName: String!, $userId: ID) {
708
+ prepareUserAvatarUpload(mediaName: $mediaName, userId: $userId) {
709
+ _id
710
+ putURL
711
+ expires
712
+ }
713
+ }
714
+ `;
715
+ var useUpdateUserAvatar = () => {
716
+ const [prepareUserAvatarUploadMutation] = useMutation(PrepareUserAvatarUploadMutation);
717
+ const { confirmMediaUpload } = useConfirmMediaUpload_default({
718
+ refetchQueries: ["User", "CurrentUser"]
719
+ });
720
+ const updateUserAvatar = async ({ avatar, userId = null }) => {
721
+ const { data } = await prepareUserAvatarUploadMutation({
722
+ variables: {
723
+ mediaName: avatar.name,
724
+ userId
725
+ }
726
+ });
727
+ const { prepareUserAvatarUpload } = data;
728
+ await PUTMedia_default(avatar, prepareUserAvatarUpload.putURL);
729
+ await confirmMediaUpload({
730
+ mediaUploadTicketId: prepareUserAvatarUpload._id,
731
+ size: avatar.size,
732
+ type: avatar.type
733
+ });
734
+ };
735
+ return {
736
+ updateUserAvatar
737
+ };
738
+ };
739
+ var useUpdateUserAvatar_default = useUpdateUserAvatar;
740
+ var UpdateUserProfileMutation = gql`
741
+ mutation UpdateUserProfile($profile: UserProfileInput!, $userId: ID) {
742
+ updateUserProfile(profile: $profile, userId: $userId) {
743
+ _id
744
+ }
745
+ }
746
+ `;
747
+ var useUpdateUserProfile = () => {
748
+ const [updateUserProfileMutation] = useMutation(UpdateUserProfileMutation);
749
+ const updateUserProfile = async ({
750
+ profile,
751
+ userId = null
752
+ }) => {
753
+ return updateUserProfileMutation({
754
+ variables: {
755
+ profile,
756
+ userId
757
+ },
758
+ refetchQueries: ["UserPermissions", "User", "CurrentUser"]
759
+ });
760
+ };
761
+ return {
762
+ updateUserProfile
763
+ };
764
+ };
765
+ var useUpdateUserProfile_default = useUpdateUserProfile;
766
+ var GetUserPermissionsQuery = gql`
767
+ query UserPermissions($userId: ID!) {
768
+ user(userId: $userId) {
769
+ _id
770
+ viewerAllowedActions
771
+ }
772
+ }
773
+ `;
774
+ var GetUserQuery = (inlineFragment = "") => gql`
775
+ query User(
776
+ $userId: ID!
777
+ $includePrivateInfos: Boolean!
778
+ $includeRoles: Boolean!
779
+ $includeOrders: Boolean!
780
+ ) {
781
+ user(userId: $userId) {
782
+ _id
783
+ name
784
+ avatar {
785
+ _id
786
+ name
787
+ size
788
+ type
789
+ url
790
+ }
791
+ ... @include(if: $includePrivateInfos) {
792
+ ${inlineFragment}
793
+ lastBillingAddress {
794
+ firstName
795
+ lastName
796
+ company
797
+ addressLine
798
+ addressLine2
799
+ postalCode
800
+ countryCode
801
+ regionCode
802
+ city
803
+ }
804
+ lastContact {
805
+ emailAddress
806
+ telNumber
807
+ }
808
+ lastLogin {
809
+ countryCode
810
+ locale
811
+ remoteAddress
812
+ remotePort
813
+ timestamp
814
+ userAgent
815
+ }
816
+ paymentCredentials {
817
+ _id
818
+ isValid
819
+ isPreferred
820
+ paymentProvider {
821
+ _id
822
+ type
823
+ interface {
824
+ _id
825
+ label
826
+ version
827
+ }
828
+ }
829
+ }
830
+ emails {
831
+ verified
832
+ address
833
+ }
834
+ web3Addresses {
835
+ address
836
+ nonce
837
+ verified
838
+ }
839
+ webAuthnCredentials {
840
+ _id
841
+ created
842
+ aaguid
843
+ counter
844
+ mdsMetadata {
845
+ ...MD5MetaDataFragment
846
+ }
847
+ }
848
+ profile {
849
+ displayName
850
+ phoneMobile
851
+ gender
852
+ address {
853
+ firstName
854
+ lastName
855
+ company
856
+ addressLine
857
+ addressLine2
858
+ postalCode
859
+ countryCode
860
+ regionCode
861
+ city
862
+ }
863
+ birthday
864
+ }
865
+ username
866
+ primaryEmail {
867
+ verified
868
+ address
869
+ }
870
+ isGuest
871
+ isInitialPassword
872
+ tags
873
+ deleted
874
+ }
875
+ ... @include(if: $includeRoles) {
876
+ roles
877
+ }
878
+ ... @include(if: $includeOrders) {
879
+ cart {
880
+ _id
881
+ items {
882
+ _id
883
+ }
884
+ }
885
+ orders {
886
+ _id
887
+ items {
888
+ _id
889
+ }
890
+ }
891
+ }
892
+ }
893
+ }
894
+ ${MD5MetaDataFragment_default}
895
+ `;
896
+ var useUser = ({ userId = null } = {}) => {
897
+ const { customProperties, hydrateFragment } = useUnchainedContext_default();
898
+ const skip = !userId;
899
+ const {
900
+ data: permissionsData,
901
+ loading: permissionsLoading,
902
+ error: permissionsError
903
+ } = useQuery(
904
+ GetUserPermissionsQuery,
905
+ {
906
+ skip,
907
+ variables: { userId },
908
+ fetchPolicy: "network-only"
909
+ }
910
+ );
911
+ const permissionTarget = permissionsData?.user?._id === userId ? permissionsData.user : null;
912
+ const viewerAllowedActions = permissionTarget?.viewerAllowedActions;
913
+ const hasPermission = (action) => viewerAllowedActions?.includes(action) ?? false;
914
+ const {
915
+ data: userData,
916
+ loading: userLoading,
917
+ error: userError
918
+ } = useQuery(
919
+ GetUserQuery(customProperties?.User),
920
+ {
921
+ skip: skip || !permissionTarget,
922
+ variables: {
923
+ userId,
924
+ includePrivateInfos: hasPermission("viewUserPrivateInfos" /* ViewUserPrivateInfos */),
925
+ includeRoles: hasPermission("viewUserRoles" /* ViewUserRoles */),
926
+ includeOrders: hasPermission("viewUserOrders" /* ViewUserOrders */)
927
+ }
928
+ }
929
+ );
930
+ const user = permissionTarget && userData?.user?._id === userId ? { ...permissionTarget, ...userData.user } : null;
931
+ const extendedData = hasPermission("viewUserPrivateInfos" /* ViewUserPrivateInfos */) ? hydrateFragment(customProperties?.User, user) : null;
932
+ return {
933
+ user,
934
+ loading: permissionsLoading || userLoading,
935
+ error: permissionsError || userError,
936
+ extendedData
937
+ };
938
+ };
939
+ var useUser_default = useUser;
940
+ var UserWebAuthnCredentialsQuery = gql`
941
+ query UserWebAuthnCredentials($userId: ID!) {
942
+ user(userId: $userId) {
943
+ _id
944
+ webAuthnCredentials {
945
+ _id
946
+ created
947
+ aaguid
948
+ counter
949
+ mdsMetadata {
950
+ ...MD5MetaDataFragment
951
+ }
952
+ }
953
+ }
954
+ }
955
+ ${MD5MetaDataFragment_default}
956
+ `;
957
+ var useUserWebAuthnCredentials = ({
958
+ userId
959
+ }) => {
960
+ const { data, loading, error } = useQuery(UserWebAuthnCredentialsQuery, {
961
+ variables: { userId }
962
+ });
963
+ return {
964
+ webAuthnCredentials: data?.user?.webAuthnCredentials,
965
+ loading,
966
+ error
967
+ };
968
+ };
969
+ var useUserWebAuthnCredentials_default = useUserWebAuthnCredentials;
970
+ var UsersQuery = gql`
971
+ query Users(
972
+ $limit: Int
973
+ $offset: Int
974
+ $includeGuests: Boolean
975
+ $queryString: String
976
+ $lastLogin: DateFilterInput
977
+ $emailVerified: Boolean
978
+ $tags: [LowerCaseString!]
979
+ ) {
980
+ users(
981
+ limit: $limit
982
+ offset: $offset
983
+ includeGuests: $includeGuests
984
+ queryString: $queryString
985
+ lastLogin: $lastLogin
986
+ emailVerified: $emailVerified
987
+ tags: $tags
988
+ ) {
989
+ ...UserFragment
990
+ }
991
+ usersCount(
992
+ includeGuests: $includeGuests
993
+ queryString: $queryString
994
+ lastLogin: $lastLogin
995
+ emailVerified: $emailVerified
996
+ tags: $tags
997
+ )
998
+ }
999
+ ${UserFragment_default}
1000
+ `;
1001
+ var useUsers = ({
1002
+ limit = 20,
1003
+ offset = 0,
1004
+ includeGuests = false,
1005
+ queryString = null,
1006
+ lastLogin = null,
1007
+ emailVerified = null,
1008
+ tags = null
1009
+ }) => {
1010
+ const { data, loading, error, fetchMore } = useQuery(UsersQuery, {
1011
+ variables: {
1012
+ limit,
1013
+ offset,
1014
+ includeGuests,
1015
+ queryString,
1016
+ lastLogin,
1017
+ emailVerified,
1018
+ tags
1019
+ }
1020
+ });
1021
+ const users = data?.users || [];
1022
+ const usersCount = data?.usersCount;
1023
+ const hasMore = users?.length < usersCount;
1024
+ const loadMore = () => {
1025
+ fetchMore({
1026
+ variables: { offset: users?.length }
1027
+ });
1028
+ };
1029
+ return {
1030
+ users,
1031
+ usersCount,
1032
+ hasMore,
1033
+ loading,
1034
+ error,
1035
+ loadMore
1036
+ };
1037
+ };
1038
+ var useUsers_default = useUsers;
1039
+ var UsersCountQuery = gql`
1040
+ query UsersCount(
1041
+ $includeGuests: Boolean
1042
+ $queryString: String
1043
+ $lastLogin: DateFilterInput
1044
+ $emailVerified: Boolean
1045
+ ) {
1046
+ usersCount(
1047
+ includeGuests: $includeGuests
1048
+ queryString: $queryString
1049
+ lastLogin: $lastLogin
1050
+ emailVerified: $emailVerified
1051
+ )
1052
+ }
1053
+ `;
1054
+ var useUsersCount = ({
1055
+ includeGuests = false,
1056
+ queryString = null,
1057
+ lastLogin = null,
1058
+ emailVerified = null
1059
+ } = {}) => {
1060
+ const { data, loading, error } = useQuery(UsersCountQuery, {
1061
+ errorPolicy: "all",
1062
+ variables: {
1063
+ includeGuests,
1064
+ queryString,
1065
+ lastLogin,
1066
+ emailVerified
1067
+ }
1068
+ });
1069
+ return {
1070
+ usersCount: data?.usersCount || 0,
1071
+ loading,
1072
+ error
1073
+ };
1074
+ };
1075
+ var useUsersCount_default = useUsersCount;
1076
+ var ValidateVerifyEmailToken = gql`
1077
+ query ValidateVerifyEmailToken($token: String!) {
1078
+ validateVerifyEmailToken(token: $token)
1079
+ }
1080
+ `;
1081
+ var useValidateEmailVerificationToken = ({ token }) => {
1082
+ const { data, loading, error, previousData } = useQuery(ValidateVerifyEmailToken, {
1083
+ skip: !token,
1084
+ variables: {
1085
+ token
1086
+ },
1087
+ fetchPolicy: "network-only"
1088
+ });
1089
+ return {
1090
+ loading,
1091
+ error,
1092
+ isValid: previousData?.validateVerifyEmailToken || data?.validateVerifyEmailToken
1093
+ };
1094
+ };
1095
+ var useValidateEmailVerificationToken_default = useValidateEmailVerificationToken;
1096
+ var VALIDATE_RESET_PASSWORD_TOKEN_QUERY = gql`
1097
+ query ValidateResetPasswordToken($token: String!) {
1098
+ validateResetPasswordToken(token: $token)
1099
+ }
1100
+ `;
1101
+ var useValidateResetPasswordToken = ({ token }) => {
1102
+ const { data, loading, error, previousData } = useQuery(VALIDATE_RESET_PASSWORD_TOKEN_QUERY, {
1103
+ skip: !token,
1104
+ variables: {
1105
+ token
1106
+ },
1107
+ fetchPolicy: "network-only"
1108
+ });
1109
+ return {
1110
+ loading,
1111
+ error,
1112
+ isValid: previousData?.validateResetPasswordToken || data?.validateResetPasswordToken
1113
+ };
1114
+ };
1115
+ var useValidateResetPasswordToken_default = useValidateResetPasswordToken;
1116
+ var VerifyEmailMutation = gql`
1117
+ mutation VerifyEmail($token: String!) {
1118
+ verifyEmail(token: $token) {
1119
+ _id
1120
+ tokenExpires
1121
+ user {
1122
+ ...UserFragment
1123
+ }
1124
+ }
1125
+ }
1126
+ ${UserFragment_default}
1127
+ `;
1128
+ var useVerifyEmail = () => {
1129
+ const [verifyEmailMutation, { client }] = useMutation(VerifyEmailMutation);
1130
+ const verifyEmail = async ({ token }) => {
1131
+ const result = await verifyEmailMutation({
1132
+ variables: { token }
1133
+ });
1134
+ await client.resetStore();
1135
+ return result;
1136
+ };
1137
+ return {
1138
+ verifyEmail
1139
+ };
1140
+ };
1141
+ var useVerifyEmail_default = useVerifyEmail;
1142
+ var VerifyWeb3AddressMutation = gql`
1143
+ mutation VerifyWeb3Address($address: String!, $hash: String!) {
1144
+ verifyWeb3Address(address: $address, hash: $hash) {
1145
+ ...UserFragment
1146
+ }
1147
+ }
1148
+ ${UserFragment_default}
1149
+ `;
1150
+ var useVerifyWeb3Address = () => {
1151
+ const [verifyWeb3AddressMutation] = useMutation(VerifyWeb3AddressMutation);
1152
+ const verifyWeb3Address = async ({
1153
+ address,
1154
+ hash
1155
+ }) => {
1156
+ return verifyWeb3AddressMutation({
1157
+ variables: {
1158
+ address,
1159
+ hash
1160
+ }
1161
+ });
1162
+ };
1163
+ return {
1164
+ verifyWeb3Address
1165
+ };
1166
+ };
1167
+ var useVerifyWeb3Address_default = useVerifyWeb3Address;
1168
+
1169
+ export { logOut_default as logOut, useAddEmail_default as useAddEmail, useAddWeb3Address_default as useAddWeb3Address, useAddWebAuthnCredentials_default as useAddWebAuthnCredentials, useChangePassword_default as useChangePassword, useCreateUser_default as useCreateUser, useCreateWebAuthnCredentialCreationOptions_default as useCreateWebAuthnCredentialCreationOptions, useCreateWebAuthnCredentialRequestOptions_default as useCreateWebAuthnCredentialRequestOptions, useDeleteUser_default as useDeleteUser, useForgotPassword_default as useForgotPassword, useGenerateLoginCredentials_default as useGenerateLoginCredentials, useGenerateWebAuthCredentials_default as useGenerateWebAuthCredentials, useLoginWithPassword_default as useLoginWithPassword, useLoginWithWebAuthn_default as useLoginWithWebAuthn, useRemoveEmail_default as useRemoveEmail, useRemoveWeb3Address_default as useRemoveWeb3Address, useRemoveWebAuthCredentials_default as useRemoveWebAuthCredentials, useResetPassword_default as useResetPassword, useSendVerificationEmail_default as useSendVerificationEmail, useSetPassword_default as useSetPassword, useSetRoles_default as useSetRoles, useSetUserTags_default as useSetUserTags, useSetUsername_default as useSetUsername, useUpdateUserAvatar_default as useUpdateUserAvatar, useUpdateUserProfile_default as useUpdateUserProfile, useUser_default as useUser, useUserWebAuthnCredentials_default as useUserWebAuthnCredentials, useUsers_default as useUsers, useUsersCount_default as useUsersCount, useValidateEmailVerificationToken_default as useValidateEmailVerificationToken, useValidateResetPasswordToken_default as useValidateResetPasswordToken, useVerifyEmail_default as useVerifyEmail, useVerifyWeb3Address_default as useVerifyWeb3Address };